mixdashboards 1.0.76 → 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-CQaDWNO0.js → BaseComponent-Dwhb9Mde.js} +3 -3
- package/dist/{BaseComponent-BmhMoM4H.cjs → BaseComponent-bzb58Hhs.cjs} +1 -1
- package/dist/{EChartComponentBase-i76OGL3z.js → EChartComponentBase-BmS2KONN.js} +2 -2
- package/dist/{EChartComponentBase-D9EUh4BZ.cjs → EChartComponentBase-CMN_pOMr.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-BiAHvTfh.cjs → EmergencyPlanPanel-CVusdpDo.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-B9S3Ru5-.js → EmergencyPlanPanel-FtvC-aXY.js} +1 -1
- package/dist/{HistoryPlanDialog-BU4GayEm.cjs → HistoryPlanDialog-CrYylrTC.cjs} +1 -1
- package/dist/{HistoryPlanDialog-CbbeFm-i.js → HistoryPlanDialog-DliuSi0p.js} +1 -1
- package/dist/{MonitoringMap-FGDoA0fw.cjs → MonitoringMap-CBnv001f.cjs} +1 -1
- package/dist/{MonitoringMap-B6tXBdvK.js → MonitoringMap-DB3R5nAJ.js} +2 -2
- package/dist/{UniverSheet-D8sflrTb.js → UniverSheet-DFyIjurx.js} +2 -2
- package/dist/{UniverSheet-D7y2pceH.cjs → UniverSheet-jy9kOyPN.cjs} +1 -1
- package/dist/{accelerationChart-DTlwSA0N.cjs → accelerationChart-Ceo371ch.cjs} +1 -1
- package/dist/{accelerationChart-bch4O3t-.js → accelerationChart-Q_Q_QlU7.js} +2 -2
- package/dist/{actionItem-Cw67YwsR.js → actionItem-BzMI_4-S.js} +2 -2
- package/dist/{actionItem-cdsgUvaC.cjs → actionItem-DB74CPi2.cjs} +1 -1
- package/dist/{alarmLevelChart-BynSRHG2.js → alarmLevelChart-Bp3SLCMe.js} +2 -2
- package/dist/{alarmLevelChart-BMjTLxB5.cjs → alarmLevelChart-CxmiBIKh.cjs} +1 -1
- package/dist/{alertTable-3VhkUZSf.cjs → alertTable-B1w_i0VB.cjs} +1 -1
- package/dist/{alertTable-CiwuaydQ.js → alertTable-DXzTm7mA.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-BLoecZkV.cjs → aliasObjectSelectorDemo-CRuq8zju.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-DfdRxb4I.js → aliasObjectSelectorDemo-Dfanalux.js} +1 -1
- package/dist/{annualRainfallChart-CHcr4-0D.js → annualRainfallChart-D4Rhc84p.js} +2 -2
- package/dist/{annualRainfallChart-DKR-A_PT.cjs → annualRainfallChart-DEeyac7q.cjs} +1 -1
- package/dist/{aqi-Gu-pAovO.js → aqi-BzCTxj0q.js} +36 -28
- package/dist/{aqi-D7VqP1QE.cjs → aqi-CBknBfTF.cjs} +2 -2
- package/dist/{aqiIndass-Bjj6n1aj.js → aqiIndass-BJGsJsmz.js} +2 -2
- package/dist/{aqiIndass-nfYUZ3UM.cjs → aqiIndass-CUs24FxP.cjs} +1 -1
- package/dist/{areaDeformCurve-fpGWmq05.cjs → areaDeformCurve-B8VGdoKK.cjs} +1 -1
- package/dist/{areaDeformCurve-nwlcUBDv.js → areaDeformCurve-bSAkB3Pt.js} +2 -2
- package/dist/{arrayCard-TfcgLrHv.js → arrayCard-BkD5sytz.js} +2 -2
- package/dist/{arrayCard-UoDqAGbN.cjs → arrayCard-kh5WRweD.cjs} +1 -1
- package/dist/{audio-BYgGYoEr.js → audio-BTrvZwCy.js} +2 -2
- package/dist/{audio-DdUv9Ot-.cjs → audio-DwJN2gca.cjs} +1 -1
- package/dist/{bar-SfGiFl1r.js → bar-DYIb4143.js} +2 -2
- package/dist/{bar-CkBXc7t1.cjs → bar-DsyyzcxB.cjs} +1 -1
- package/dist/{bmp-CY-Hb2x1.cjs → bmp-DbEyuBZw.cjs} +1 -1
- package/dist/{bmp-BbtdzIrI.js → bmp-Dt3mSkAr.js} +2 -2
- package/dist/{box-B4C_mirv.cjs → box--u3HQFj9.cjs} +1 -1
- package/dist/{box-CV41cJuX.js → box-D7RsK5Qp.js} +2 -2
- package/dist/{chartConfigPanel-D650rSn7.js → chartConfigPanel-CD-csrX-.js} +1 -1
- package/dist/{chartConfigPanel-DBlqAbbH.cjs → chartConfigPanel-DybQRqg6.cjs} +1 -1
- package/dist/{circleBar-U3iXMQr5.js → circleBar-4md65KCX.js} +2 -2
- package/dist/{circleBar-DkV7xPBl.cjs → circleBar-DJY37bwB.cjs} +1 -1
- package/dist/{clock-zKVUU8pu.js → clock-Cj0HsizY.js} +2 -2
- package/dist/{clock-CjgMeOhp.cjs → clock-Dc9jgxHT.cjs} +1 -1
- package/dist/{clt-DwI8i7zI.cjs → clt-CBbtQxMc.cjs} +1 -1
- package/dist/{clt-BsIA-YPQ.js → clt-uJT1jgHk.js} +2 -2
- package/dist/{cmc-BX9ichBB.cjs → cmc-CeTCKLBx.cjs} +1 -1
- package/dist/{cmc-CgpHejR2.js → cmc-JJ6eTxB3.js} +2 -2
- package/dist/{cmp-CTqtxzo4.cjs → cmp-CGZ_2BdE.cjs} +1 -1
- package/dist/{cmp-CS34lG7V.js → cmp-D9qlHJoW.js} +2 -2
- package/dist/{conclusionCard-N6pA6Q9P.js → conclusionCard-BsLeh3yq.js} +2 -2
- package/dist/{conclusionCard-wvtJmV_8.cjs → conclusionCard-CwLwj3zj.cjs} +1 -1
- package/dist/{controlList-Zz5ABe5b.js → controlList-CYNS0ArB.js} +2 -2
- package/dist/{controlList-BUAMdHA3.cjs → controlList-l2ZYM6m5.cjs} +1 -1
- package/dist/{controlRecordList-Dx0zj7js.js → controlRecordList-BZmCvISO.js} +2 -2
- package/dist/{controlRecordList-CMR4y_Ml.cjs → controlRecordList-N79_cTON.cjs} +1 -1
- package/dist/{controlRecordListAPP-ZDCKmz_8.cjs → controlRecordListAPP-DOzMDV4x.cjs} +1 -1
- package/dist/{controlRecordListAPP-bL9oqWzQ.js → controlRecordListAPP-aDj520mp.js} +2 -2
- package/dist/{crd-8tMwNlgx.cjs → crd-CV4kMUTB.cjs} +1 -1
- package/dist/{crd-DZPpD6XY.js → crd-bm_BHuoV.js} +2 -2
- package/dist/{ctrBtn-eCu0UDtW.cjs → ctrBtn-Cs6ZmfyJ.cjs} +1 -1
- package/dist/{ctrBtn-6Ql9ulTr.js → ctrBtn-DYceHTAq.js} +3 -3
- package/dist/{ctrSet-BwFVH1Mk.js → ctrSet-B6PlTSBE.js} +3 -3
- package/dist/{ctrSet-pX-zVivo.cjs → ctrSet-XqnGgYPn.cjs} +1 -1
- package/dist/{ctrSwitch-D95SI-aJ.cjs → ctrSwitch-B9lHJgQn.cjs} +1 -1
- package/dist/{ctrSwitch-b6hHf4QF.js → ctrSwitch-E0FM_4f2.js} +3 -3
- package/dist/{dataManagement-VucRLCK4.js → dataManagement-BAHa-OHl.js} +2 -2
- package/dist/{dataManagement-DubA1TV1.cjs → dataManagement-bKmkV2VY.cjs} +1 -1
- package/dist/{dataReport-CALIw14D.js → dataReport-B60Rb4sb.js} +2 -2
- package/dist/{dataReport-CkF5J7X1.cjs → dataReport-JcrjpK_j.cjs} +1 -1
- package/dist/{dataTable-C1rBH_p9.js → dataTable-BmvewFlr.js} +1 -1
- package/dist/{dataTable-C2q_CX5D.cjs → dataTable-CX6uktOu.cjs} +1 -1
- package/dist/{datetime-TBTeWqlf.cjs → datetime-BPM_lGiY.cjs} +1 -1
- package/dist/{datetime-Cq8scz5Q.js → datetime-DARBbZJx.js} +2 -2
- package/dist/{deepClusterSlipSurface-Cm50wbjv.js → deepClusterSlipSurface-BF77Vp7G.js} +2 -2
- package/dist/{deepClusterSlipSurface-CFaxRVmM.cjs → deepClusterSlipSurface-IywdiDlA.cjs} +1 -1
- package/dist/{deepDataMatrix-DyStA98d.js → deepDataMatrix--zgQoWer.js} +2 -2
- package/dist/{deepDataMatrix-CAYSav3X.cjs → deepDataMatrix-sRXkGqdm.cjs} +1 -1
- package/dist/{deepDisplacement3D-B3Iju2KK.cjs → deepDisplacement3D-BET8Ftuc.cjs} +1 -1
- package/dist/{deepDisplacement3D-Bat-Wc3i.js → deepDisplacement3D-BYt49pzj.js} +2 -2
- package/dist/{deepDisplacementChart-D5rHoC9r.js → deepDisplacementChart-B2zPpsk6.js} +2 -2
- package/dist/{deepDisplacementChart-CYMpNu_W.js → deepDisplacementChart-BGBhipUx.js} +3 -3
- package/dist/{deepDisplacementChart-CX9ALM89.cjs → deepDisplacementChart-BuuM485C.cjs} +1 -1
- package/dist/{deepDisplacementChart-C-Tr4DdI.cjs → deepDisplacementChart-D7loYUI5.cjs} +1 -1
- package/dist/{deepDisplacementView-DnjwQmEW.js → deepDisplacementView-Bwk9p_Qc.js} +1 -1
- package/dist/{deepDisplacementView-DTSsODJQ.cjs → deepDisplacementView-CTBH3IxP.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-CLKg72UA.js → deepNodeTemperatureChart-BqTigCTs.js} +2 -2
- package/dist/{deepNodeTemperatureChart-C9NRJ49Y.cjs → deepNodeTemperatureChart-CTLHLf0w.cjs} +1 -1
- package/dist/{deepTangentAngleChart-DklHYHhm.js → deepTangentAngleChart-5oxzMpMF.js} +2 -2
- package/dist/{deepTangentAngleChart-C9aFSFrD.cjs → deepTangentAngleChart-CHxB8OFL.cjs} +1 -1
- package/dist/{deepTemperatureField-CcnVGgbf.js → deepTemperatureField-Bhk89D3D.js} +3 -3
- package/dist/{deepTemperatureField-CXBL4_LS.cjs → deepTemperatureField-Cr6YbuR_.cjs} +1 -1
- package/dist/{deepTrendChart-De7ebpk4.js → deepTrendChart-CAbdVR8d.js} +2 -2
- package/dist/{deepTrendChart-OGW08BX-.cjs → deepTrendChart-Ch94j4W9.cjs} +1 -1
- package/dist/{deviceOnlineStatus-_3Txb8Tg.js → deviceOnlineStatus-C5ODwFsY.js} +2 -2
- package/dist/{deviceOnlineStatus-DarcMtY4.cjs → deviceOnlineStatus-DxsTb4Vb.cjs} +1 -1
- package/dist/{deviceStatus-BiJw8rnz.cjs → deviceStatus-CjFTpCaU.cjs} +1 -1
- package/dist/{deviceStatus-CL6E-pQ0.js → deviceStatus-DPfOQCSX.js} +2 -2
- package/dist/{displacementDataTable-DmAqr-JK.cjs → displacementDataTable-BIqBEkul.cjs} +1 -1
- package/dist/{displacementDataTable-tKtGe2xd.js → displacementDataTable-DG36VWok.js} +2 -2
- package/dist/{displacementTrajectoryChart-Dh6oPB0p.js → displacementTrajectoryChart-Cpmj24Jn.js} +2 -2
- package/dist/{displacementTrajectoryChart-DG2YdSqq.cjs → displacementTrajectoryChart-DRltcPfa.cjs} +1 -1
- package/dist/{displacementTrendChart-BHORe0qO.js → displacementTrendChart-D1yfRFQb.js} +2 -2
- package/dist/{displacementTrendChart-CT140vXG.cjs → displacementTrendChart-DpD79zii.cjs} +1 -1
- package/dist/{dxf-CVa4Vfm3.cjs → dxf-C_9cH0WU.cjs} +1 -1
- package/dist/{dxf-CjcHSJq-.js → dxf-zbCakRgh.js} +2 -2
- package/dist/dzc-CejqHneE.cjs +2 -0
- package/dist/{dzc-DDXNSuie.js → dzc-CfPVaIgj.js} +46 -38
- package/dist/{emergencyPlan-Vim4E6h7.js → emergencyPlan-LbeRH-P9.js} +3 -3
- package/dist/{emergencyPlan-D0AMuD-3.cjs → emergencyPlan-dEwML5xC.cjs} +1 -1
- package/dist/{evn-D2mdSoFB.cjs → evn-BvgQ3o3T.cjs} +1 -1
- package/dist/{evn-CdMN8gIC.js → evn-DsD_MKQd.js} +2 -2
- package/dist/{evolutionChart-P0l6P0Bc.js → evolutionChart-B4C9qB3I.js} +3 -3
- package/dist/{evolutionChart-I8XVW05I.cjs → evolutionChart-Dt5-xRsy.cjs} +1 -1
- package/dist/{fileViewer-DvntGv0b.js → fileViewer-B0LdLy2P.js} +2 -2
- package/dist/{fileViewer-D7sAA8-W.cjs → fileViewer-DZIREgL0.cjs} +1 -1
- package/dist/{filterBar-8gex5oR-.js → filterBar-Bt6w4_xK.js} +2 -2
- package/dist/{filterBar-GSTji96g.cjs → filterBar-D_jcuqwP.cjs} +1 -1
- package/dist/{fireCombustionCurve-B3jAhOft.js → fireCombustionCurve-C2rWY89D.js} +3 -3
- package/dist/{fireCombustionCurve-DrMmHf3N.cjs → fireCombustionCurve-CHRd1nSv.cjs} +1 -1
- package/dist/{fireFilterBar-CH6iK0Xg.js → fireFilterBar-CpwHRisZ.js} +2 -2
- package/dist/{fireFilterBar-Dy9DcHij.cjs → fireFilterBar-DX8qH1rr.cjs} +1 -1
- package/dist/{fireHistoryTable-n6L3juWp.cjs → fireHistoryTable-B38M6w5w.cjs} +1 -1
- package/dist/{fireHistoryTable-CHxHqPs0.js → fireHistoryTable-DcSgHt5q.js} +2 -2
- package/dist/{gag-BsO4kmp1.js → gag-BErw_nsf.js} +2 -2
- package/dist/{gag-BzjuwBvY.cjs → gag-qDNPdFJu.cjs} +1 -1
- package/dist/{gasStationList-7JzUcISs.js → gasStationList-BREZbC_k.js} +2 -2
- package/dist/{gasStationList-QwqTDEAG.cjs → gasStationList-NhJa4GO6.cjs} +1 -1
- package/dist/{geo3dViewer-Cf-jHpvF.cjs → geo3dViewer-D9uSt0up.cjs} +1 -1
- package/dist/{geo3dViewer-doEpUC_J.js → geo3dViewer-zAN1eIza.js} +3 -3
- package/dist/{glbModel-C6L--3dO.cjs → glbModel-C4FiDMM5.cjs} +1 -1
- package/dist/{glbModel-BgFIj_es.js → glbModel-i6HvK0m8.js} +2 -2
- package/dist/{globalObjectSelector-CdfiXRjg.js → globalObjectSelector-BrVwJEgp.js} +1 -1
- package/dist/{globalObjectSelector-P_irB0rv.cjs → globalObjectSelector-CR74psMa.cjs} +1 -1
- package/dist/{gnssFilterBar-DPNshMIx.js → gnssFilterBar-BEHXIIKI.js} +2 -2
- package/dist/{gnssFilterBar-CIwyv2yc.cjs → gnssFilterBar-BkfBQWXF.cjs} +1 -1
- package/dist/{gnssHistoryTable-j5FL6oYs.cjs → gnssHistoryTable-CQ-7ESYj.cjs} +1 -1
- package/dist/{gnssHistoryTable-C7x4-Tpp.js → gnssHistoryTable-DDWGE_ge.js} +2 -2
- package/dist/{gnssMapView-BWcS4hqj.js → gnssMapView-C9iRAzym.js} +4 -4
- package/dist/{gnssMapView-_VaJWBcE.cjs → gnssMapView-P6ed3l_W.cjs} +2 -2
- package/dist/{gnssSectionProfile-hpyiGI-6.js → gnssSectionProfile-BIqyABEf.js} +2 -2
- package/dist/{gnssSectionProfile-DGbTO7lV.cjs → gnssSectionProfile-CIZnF7VA.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-CNT6xaNs.cjs → gnssTimeSeriesChart-BgIM5U-H.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-rL9oG1ly.js → gnssTimeSeriesChart-DqH9JFBF.js} +2 -2
- package/dist/{gnssXYTrajectory-B1LZAepw.js → gnssXYTrajectory-BviUjxG9.js} +2 -2
- package/dist/{gnssXYTrajectory-CwAjhPRc.cjs → gnssXYTrajectory-CH8864n6.cjs} +1 -1
- package/dist/{grd-rJXqEimt.cjs → grd-BhpBxrpa.cjs} +1 -1
- package/dist/{grd-BLab9IY0.js → grd-DfkGlcW6.js} +2 -2
- package/dist/{grdIndass-gGrZ7gRV.js → grdIndass-ByznFwzc.js} +2 -2
- package/dist/{grdIndass-niY4UOwz.cjs → grdIndass-DhMfHz31.cjs} +1 -1
- package/dist/{grg-Dnro7bLg.js → grg-CVBoetQY.js} +2 -2
- package/dist/{grg-C1L5yeyY.cjs → grg-uzBlEm_K.cjs} +1 -1
- package/dist/{gridview-DxUsv2ny.cjs → gridview-CyXCqWKq.cjs} +1 -1
- package/dist/{gridview-BhjWlD0J.js → gridview-Dt3i1t5d.js} +2 -2
- package/dist/{groundwaterFilterBar-bNhTkX1C.js → groundwaterFilterBar-BbS81e9a.js} +2 -2
- package/dist/{groundwaterFilterBar-C-2e7S04.cjs → groundwaterFilterBar-C4xCPqa_.cjs} +1 -1
- package/dist/{groundwaterProfileChart-dhzmwfwz.js → groundwaterProfileChart-BBPFrt5W.js} +3 -3
- package/dist/{groundwaterProfileChart-BxKGPuOe.cjs → groundwaterProfileChart-DvjFvCm5.cjs} +2 -2
- package/dist/{groundwaterTimeCurve-BtzP6icm.js → groundwaterTimeCurve-CKlvc2nQ.js} +3 -3
- package/dist/{groundwaterTimeCurve-CTQPlTUr.cjs → groundwaterTimeCurve-Cb3xlM78.cjs} +1 -1
- package/dist/{groupCard-D00ElZoy.js → groupCard-BBzDl9uX.js} +2 -2
- package/dist/{groupCard-D4gdaVqR.cjs → groupCard-BVdjzdqF.cjs} +1 -1
- package/dist/{headerBar-MFw1W0qa.cjs → headerBar-B5Z8UviF.cjs} +1 -1
- package/dist/{headerBar-DEHj8fJr.js → headerBar-Dty08mHR.js} +2 -2
- package/dist/{history-BRkb914v.js → history-TkSKA8F1.js} +1 -1
- package/dist/{history-D1R2RAZQ.cjs → history-yI8XiwXi.cjs} +1 -1
- package/dist/{index-77aUdspY.cjs → index-6QhTSPkL.cjs} +13 -13
- package/dist/{index-BZpYmpDy.js → index-YNdVib_6.js} +3338 -3159
- package/dist/{insarDeformChart-pbOnnoN-.js → insarDeformChart-C9UkWIL9.js} +2 -2
- package/dist/{insarDeformChart-5EVWIkpL.cjs → insarDeformChart-Dr9Ve1vY.cjs} +1 -1
- package/dist/{insarImageViewer-DQJBN4YM.cjs → insarImageViewer-DAKBn2vV.cjs} +1 -1
- package/dist/{insarImageViewer-D3bbQA6g.js → insarImageViewer-DZbq2xch.js} +2 -2
- package/dist/{kds-D5seJB3L.cjs → kds-BkH8cJCu.cjs} +1 -1
- package/dist/{kds-gTJOwHbM.js → kds-__I8-o5i.js} +2 -2
- package/dist/{kpiCard-Cx6VNK6L.js → kpiCard-BzuF0qdE.js} +2 -2
- package/dist/{kpiCard-Bz-fg6sL.cjs → kpiCard-fRfv1QPb.cjs} +1 -1
- package/dist/{landslideMap-5erIcZo7.js → landslideMap-D84pku4Y.js} +3 -3
- package/dist/{landslideMap-D7_QpwmM.cjs → landslideMap-zD8SU2Lh.cjs} +1 -1
- package/dist/{landslideWarning-CzaddgWf.js → landslideWarning-0mckvEoZ.js} +5 -5
- package/dist/{landslideWarning-C3FZqrxT.cjs → landslideWarning-Cq-di-hN.cjs} +1 -1
- package/dist/{layerTabs-Dc1Xb11W.cjs → layerTabs-C2zq6a5M.cjs} +1 -1
- package/dist/{layerTabs-DqbOykS2.js → layerTabs-COzqQ9mn.js} +2 -2
- package/dist/{leaflet-src-BY2SMh9y.js → leaflet-src-2tPn7QVH.js} +1 -1
- package/dist/{leaflet-src-Brb8KUL5.cjs → leaflet-src-D8MF2j44.cjs} +1 -1
- package/dist/{lerc-Chm_GVte.js → lerc-BCmG0CMS.js} +2 -2
- package/dist/{lerc-DGuyYCKG.cjs → lerc-BHcVhBOn.cjs} +1 -1
- package/dist/{lin-tqtSA5ci.js → lin-CQ6TCBCr.js} +59 -51
- package/dist/{lin-8x2j8aGa.cjs → lin-niA_T9Ql.cjs} +2 -2
- package/dist/{linIndass-DHFymSVI.js → linIndass-J9rdji6E.js} +2 -2
- package/dist/{linIndass-Dxo_bzrZ.cjs → linIndass-nZx16Vos.cjs} +1 -1
- package/dist/{lst-BV6EbDPs.cjs → lst-Cw1XCAv0.cjs} +1 -1
- package/dist/{lst-BejIuO0f.js → lst-DieyrYCh.js} +2 -2
- package/dist/{manualEntry-DObI0OAq.js → manualEntry-CCmyPMJm.js} +2 -2
- package/dist/{manualEntry-Bt4cs6kn.cjs → manualEntry-ChhTpAF2.cjs} +1 -1
- package/dist/{mapBackground-oVOBK3zr.cjs → mapBackground-BzOdjhnZ.cjs} +1 -1
- package/dist/{mapBackground-Cuym5Dqr.js → mapBackground-CiiG2nHi.js} +3 -3
- package/dist/{mappingList-Dzq0zMfs.js → mappingList-CoBD8D27.js} +2 -2
- package/dist/{mappingList-BEWAqLd4.cjs → mappingList-D42mILiq.cjs} +1 -1
- package/dist/{markdownViewer-Bz50jkb6.js → markdownViewer-C3HUXDvf.js} +2 -2
- package/dist/{markdownViewer-V5b1xhPh.cjs → markdownViewer-DHs9ekCh.cjs} +1 -1
- package/dist/{mix-control-modal-DzVLdO3S.js → mix-control-modal-BEwriuWS.js} +1 -1
- package/dist/{mix-control-modal-I6DqPm04.cjs → mix-control-modal-DGd2S6Jd.cjs} +1 -1
- package/dist/{mixGrid-tVSdKPms.js → mixGrid-CBenxHD_.js} +2 -2
- package/dist/{mixGrid-_ur8VKLD.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-D5vNNWgT.js → mixiotObjectListApi-CKJLXcnf.js} +1 -1
- package/dist/{mixiotObjectListApi-BUQ-RZ3L.cjs → mixiotObjectListApi-e1qL7PHh.cjs} +1 -1
- package/dist/{mjpegCamera-DnAPpFJU.js → mjpegCamera-D8lB701i.js} +2 -2
- package/dist/{mjpegCamera-CjWe8BEK.cjs → mjpegCamera-DDFrZo-x.cjs} +1 -1
- package/dist/{monitorAlert-qmVSQ1lc.cjs → monitorAlert-C-mo-lDe.cjs} +1 -1
- package/dist/{monitorAlert-B-fTYPn6.js → monitorAlert-Z1dFDfPh.js} +2 -2
- package/dist/{monitorData-YhGSUq3H.cjs → monitorData-CNRfV5Wt.cjs} +1 -1
- package/dist/{monitorData-Dopc660L.js → monitorData-DZhO9Gos.js} +2 -2
- package/dist/{monitorSpeedChart-Dsvr_QPB.js → monitorSpeedChart-C5pN46lO.js} +1 -1
- package/dist/{monitorSpeedChart-Brj_YHsO.cjs → monitorSpeedChart-DrRdMdGD.cjs} +1 -1
- package/dist/{mxa-D4WkyBYZ.js → mxa-BFQ70ksk.js} +39 -31
- package/dist/mxa-COpw24fq.cjs +2 -0
- package/dist/{myValue-DYtBtOJ2.js → myValue-Dosl4Ro5.js} +2 -2
- package/dist/{myValue-C0tq-asC.cjs → myValue-Eb3asTOC.cjs} +1 -1
- package/dist/{myValueList-Ddpn1S68.js → myValueList-Dkc10vr6.js} +2 -2
- package/dist/{myValueList-BJctRTNd.cjs → myValueList-mcqRZanE.cjs} +1 -1
- package/dist/{objectList-Csf0hVwo.cjs → objectList-D4owr3ED.cjs} +1 -1
- package/dist/{objectList-G4wXFDwe.js → objectList-FWkZ6PAs.js} +3 -3
- package/dist/{objectListAPP-UZN4iuTn.cjs → objectListAPP-Bzevu1od.cjs} +1 -1
- package/dist/{objectListAPP-BrmUj4At.js → objectListAPP-CdfeZTgm.js} +3 -3
- package/dist/{photo-BYH_qg5O.cjs → photo-Dmxxqgrg.cjs} +1 -1
- package/dist/{photo-BEPeK7U8.js → photo-DxXTYq73.js} +2 -2
- package/dist/pie-BxpiCEYe.cjs +2 -0
- package/dist/{pie-CEVKe1lL.js → pie-COixdWUz.js} +85 -75
- package/dist/{placeholder-Bwv3VyEg.js → placeholder-CLLNLxRC.js} +1 -1
- package/dist/{placeholder-BezBEQGo.cjs → placeholder-Ole-Or58.cjs} +1 -1
- package/dist/{pressBtn-1LCNz2gE.js → pressBtn-C7Y-B8Dz.js} +3 -3
- package/dist/{pressBtn-CJZTyY8I.cjs → pressBtn-DwKg9PbD.cjs} +1 -1
- package/dist/{processTable-CHDazqah.js → processTable-CTkwZWWJ.js} +2 -2
- package/dist/{processTable-HtDeg1by.cjs → processTable-DDcKkjJx.cjs} +1 -1
- package/dist/{progressBar-BP4SmPZK.cjs → progressBar-7qHg67Sf.cjs} +1 -1
- package/dist/{progressBar-C3NcWUrS.js → progressBar-9npgJ9jD.js} +2 -2
- package/dist/{progressCircle-Bo9-Qva_.js → progressCircle-DP08TX08.js} +2 -2
- package/dist/{progressCircle-CDqK1iFt.cjs → progressCircle-Xgjnl1KF.cjs} +1 -1
- package/dist/{qrcode-VmYwvClG.js → qrcode-ClTSNzEN.js} +2 -2
- package/dist/{qrcode-qD6tOm4F.cjs → qrcode-D6wDMo-f.cjs} +1 -1
- package/dist/raceBar-C8mVFHnd.cjs +2 -0
- package/dist/{raceBar-DR2-luKW.js → raceBar-CTmsN8VC.js} +109 -101
- package/dist/{rad-1Jy1KDzt.js → rad-DWCSD35t.js} +2 -2
- package/dist/{rad-D7-YZJNO.cjs → rad-Dxaakm82.cjs} +1 -1
- package/dist/{radarMapViewer-KPhNE5XX.cjs → radarMapViewer-U7IQJjQs.cjs} +1 -1
- package/dist/{radarMapViewer-ByQXe0Mu.js → radarMapViewer-eEBE3MS-.js} +2 -2
- package/dist/{rainfallFilterBar-C1obotPf.js → rainfallFilterBar-DJTDGu7Z.js} +2 -2
- package/dist/{rainfallFilterBar-CVQpQp82.cjs → rainfallFilterBar-ow_wdOwq.cjs} +1 -1
- package/dist/{rainfallTimeCurve-DU2tt-Ls.cjs → rainfallTimeCurve-BL1I5Z2D.cjs} +1 -1
- package/dist/{rainfallTimeCurve-B2rEx3T_.js → rainfallTimeCurve-CwGmJhxu.js} +3 -3
- package/dist/{rangeLin-COsJkCky.cjs → rangeLin-BEz9xapa.cjs} +1 -1
- package/dist/{rangeLin-CdfUCFQr.js → rangeLin-BqcJpIva.js} +2 -2
- package/dist/{realtimeEvolutionMap-aR63xPW_.js → realtimeEvolutionMap-NOkyU7G3.js} +2 -2
- package/dist/{realtimeEvolutionMap-B7GT8MOq.cjs → realtimeEvolutionMap-mzXlR8gS.cjs} +1 -1
- package/dist/{regionBar-BYF7IaGA.cjs → regionBar-CEfz0Yol.cjs} +1 -1
- package/dist/{regionBar-DB-secNe.js → regionBar-DDk-2UWS.js} +2 -2
- package/dist/{request-CBsG4ipL.js → request-BIXfJXjX.js} +1 -1
- package/dist/{request-CvdHjG34.cjs → request-BfG3yDz6.cjs} +1 -1
- package/dist/{retainer1-1CFk4InO.cjs → retainer1-Ch1oZMeA.cjs} +1 -1
- package/dist/{retainer1-CMzTlM5Z.js → retainer1-Cz5rXIJj.js} +3 -3
- package/dist/{retainer2-DliOH7it.cjs → retainer2-DJ1R2GJE.cjs} +1 -1
- package/dist/{retainer2-DW4ewYX7.js → retainer2-DeelXgAZ.js} +3 -3
- package/dist/{retainerRecordList-DV7Tx39d.cjs → retainerRecordList-D3MsCnqy.cjs} +1 -1
- package/dist/{retainerRecordList-Bcm6leuD.js → retainerRecordList-DyhfjtfF.js} +2 -2
- package/dist/{retainerRecordListAPP-BDRwp8T3.js → retainerRecordListAPP-3Gr7db3D.js} +2 -2
- package/dist/{retainerRecordListAPP-CJ-u0Tj2.cjs → retainerRecordListAPP-B_hCyRak.cjs} +1 -1
- package/dist/{ringTopN-rd2UwH9f.cjs → ringTopN-fLinQVwX.cjs} +1 -1
- package/dist/{ringTopN-Duq0pzm_.js → ringTopN-t9xaVCWg.js} +2 -2
- package/dist/{riskRegionTable-BE_ggcEV.js → riskRegionTable-BThwQbTf.js} +2 -2
- package/dist/{riskRegionTable-CbPB8mlY.cjs → riskRegionTable-CagcISBC.cjs} +1 -1
- package/dist/{sankey-BqBn6_rx.cjs → sankey-BY_nwThw.cjs} +1 -1
- package/dist/{sankey-CnKm9PZe.js → sankey-Bwm0omQr.js} +2 -2
- package/dist/{scd-BgJ5P7co.cjs → scd-Bs1dG1w8.cjs} +1 -1
- package/dist/{scd-BaBLoem8.js → scd-DeYC1Rqx.js} +2 -2
- package/dist/{sideMenu-BgiQL2P1.cjs → sideMenu-CAEh3bwF.cjs} +1 -1
- package/dist/{sideMenu-CUal1UQY.js → sideMenu-Db_Nc_xz.js} +2 -2
- package/dist/{slopeStability-Y2tDzJeh.cjs → slopeStability-BWg6jhBB.cjs} +1 -1
- package/dist/{slopeStability-B9YbQLCE.js → slopeStability-CVC68Qcj.js} +2 -2
- package/dist/{speedCurve-DERBMtE1.js → speedCurve-CK4CXHeC.js} +2 -2
- package/dist/{speedCurve-Kll2RRJ8.cjs → speedCurve-DNNEIz4o.cjs} +1 -1
- package/dist/{stressFilterBar-BGI4gVfE.cjs → stressFilterBar-Cigl3IyR.cjs} +1 -1
- package/dist/{stressFilterBar-CHRWFnpP.js → stressFilterBar-DQ8nq8jV.js} +2 -2
- package/dist/{stressTimeCurve-hrlqSYS3.js → stressTimeCurve-BEANw1F8.js} +3 -3
- package/dist/{stressTimeCurve-DE5KiXEt.cjs → stressTimeCurve-BiduKfcg.cjs} +1 -1
- package/dist/{swiper-DNHC412s.js → swiper-BgkvIN5U.js} +2 -2
- package/dist/{swiper-CnGllhBQ.cjs → swiper-MIRXMnxk.cjs} +1 -1
- package/dist/{terminalConfigList-BlHAsyCm.js → terminalConfigList-B3lqvQel.js} +2 -2
- package/dist/{terminalConfigList-C45EANO4.cjs → terminalConfigList-C3zRbQvM.cjs} +1 -1
- package/dist/{terminalList-CNI3_FGb.cjs → terminalList-ArxJ1jdO.cjs} +1 -1
- package/dist/{terminalList-UGjkhyf4.js → terminalList-BevfdySj.js} +2 -2
- package/dist/{terminalListAPP-CIJZMdxI.js → terminalListAPP-CbpVft_s.js} +2 -2
- package/dist/{terminalListAPP-6fPXF-yJ.cjs → terminalListAPP-Cs0nnBfc.cjs} +1 -1
- package/dist/{textbox-BD_LQ0EN.js → textbox-CjkfmdaO.js} +2 -2
- package/dist/{textbox-yNPnOaan.cjs → textbox-DC9YLTn5.cjs} +1 -1
- package/dist/{timeQueryBar-3qiV0IV9.cjs → timeQueryBar-B69eldHQ.cjs} +1 -1
- package/dist/{timeQueryBar-B-uPtN25.js → timeQueryBar-CXd9yNgD.js} +1 -1
- package/dist/{timeSeries-DdQI4oZU.js → timeSeries-CLnLd-gX.js} +3 -3
- package/dist/{timeSeries-BTUuojvj.cjs → timeSeries-fB14CgRy.cjs} +1 -1
- package/dist/{timeSeriesCurve-TGXshTzl.js → timeSeriesCurve-CMcCzR13.js} +3 -3
- package/dist/{timeSeriesCurve-Cj_FbK4x.cjs → timeSeriesCurve-DOaxDpjr.cjs} +1 -1
- package/dist/{toggleBtn-BXcQfnTB.cjs → toggleBtn-BiUyrx_o.cjs} +1 -1
- package/dist/{toggleBtn-BMxqm5WG.js → toggleBtn-CWmuTxSD.js} +2 -2
- package/dist/{trajectoryConfigPanel-CqoKO0hL.cjs → trajectoryConfigPanel-D7IDlQIH.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-uRLWdXUb.js → trajectoryConfigPanel-DKLN3KY5.js} +1 -1
- package/dist/{trajectoryScatter-Dph8PSdN.cjs → trajectoryScatter-CL-2FKZe.cjs} +1 -1
- package/dist/{trajectoryScatter-DPE4cC8N.js → trajectoryScatter-TEactc8J.js} +2 -2
- package/dist/{universalConfigPanel-Db-pC67o.cjs → universalConfigPanel-B8JIiLXp.cjs} +1 -1
- package/dist/{universalConfigPanel-CI1CuBmr.js → universalConfigPanel-wicv4Ypw.js} +1 -1
- package/dist/{universalTable-DMrgtBrw.js → universalTable-8e3LrZvD.js} +2 -2
- package/dist/{universalTable-dQObEQog.cjs → universalTable-BlTdL3c0.cjs} +1 -1
- package/dist/{video-DEhLie80.js → video-DpRcCZZQ.js} +2 -2
- package/dist/{video-DbsKQhVD.cjs → video-nPkrKQyL.cjs} +1 -1
- package/dist/{videoMonitor-DLBtivXO.cjs → videoMonitor-DOVw5mE0.cjs} +1 -1
- package/dist/{videoMonitor-BS6_LYUb.js → videoMonitor-Z_7cZk5Y.js} +2 -2
- package/dist/{vlu-DaSjPY3I.js → vlu-BQCrHSlq.js} +2 -2
- package/dist/{vlu-DXk_wQf-.cjs → vlu-DEIgGiO-.cjs} +1 -1
- package/dist/{warningOverview-CKCEs_Jj.js → warningOverview-C7J5aXTJ.js} +3 -3
- package/dist/{warningOverview-DAUlXzr0.cjs → warningOverview-DXJNk5bT.cjs} +1 -1
- package/dist/{weather-BAI0IWNH.cjs → weather-B1Pfcn75.cjs} +1 -1
- package/dist/{weather-XUj6pFwM.js → weather-C1sjTcwC.js} +2 -2
- package/dist/{windLin-C9dsCT1w.cjs → windLin-QKZKJ1h_.cjs} +1 -1
- package/dist/{windLin-Bt4q2eUT.js → windLin-vlM63Hu7.js} +2 -2
- package/package.json +1 -1
- package/dist/dzc-DK16oTVj.cjs +0 -2
- package/dist/mxa-BzdI7BLB.cjs +0 -2
- package/dist/pie-B57zDxJV.cjs +0 -2
- package/dist/raceBar-uAs91hyk.cjs +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var F=Object.defineProperty,$=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var O=(n,o,a)=>o in n?F(n,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[o]=a,R=(n,o)=>{for(var a in o||(o={}))H.call(o,a)&&O(n,a,o[a]);if(S)for(var a of S(o))K.call(o,a)&&O(n,a,o[a]);return n},A=(n,o)=>$(n,z(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const Q=require("./BaseComponent-
|
|
1
|
+
"use strict";var F=Object.defineProperty,$=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var O=(n,o,a)=>o in n?F(n,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[o]=a,R=(n,o)=>{for(var a in o||(o={}))H.call(o,a)&&O(n,a,o[a]);if(S)for(var a of S(o))K.call(o,a)&&O(n,a,o[a]);return n},A=(n,o)=>$(n,z(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const Q=require("./BaseComponent-bzb58Hhs.cjs"),y=require("./index-6QhTSPkL.cjs"),U=require("./ele-vdo-icon-Bgp9gaT6.cjs"),G={class:"video-monitor-wrapper"},J={class:"panel-header"},W={class:"header-left"},X={class:"header-title"},Y={class:"search-bar"},Z=["placeholder"],ee={class:"time-range-row"},te={class:"time-range-item"},oe={class:"time-range-item"},le={class:"video-area"},re={key:0,class:"rec-badge"},ae={class:"video-content"},ne=["src","autoplay","loop","muted","controls"],ce={key:1,class:"video-placeholder"},se={class:"placeholder-text"},de={DEFAULT_ICON:U.DEFAULT_ICON,ACTIVE_ICON:U.ACTIVE_ICON,NAME_CN:"视频监控",NAME_EN:"Video Monitor",ORDER:11,PLATFORM:["pc","screen"]},ie={title:{value:"视频监控",type:"string",label:"component.videoMonitor.title"},realtimeBtnText:{value:"实时更新",type:"string",label:"component.videoMonitor.realtimeBtnText"},searchPlaceholder:{value:"搜索摄像头、位置...",type:"string",label:"component.videoMonitor.searchPlaceholder"},placeholderText:{value:"实时监控",type:"string",label:"component.videoMonitor.placeholderText"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.videoMonitor.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.videoMonitor.accentColor"},recColor:{value:"#e74c3c",type:"color",label:"component.videoMonitor.recColor"},glowEffect:{value:!0,type:"checkbox",label:"component.videoMonitor.glowEffect"},autoplay:{value:!0,type:"checkbox",label:"component.options.autoplay"},loop:{value:!0,type:"checkbox",label:"component.options.loop"},muted:{value:!0,type:"checkbox",label:"component.options.muted"},showControls:{value:!1,type:"checkbox",label:"component.options.controls"}},ue=[{name:"摄像头-01",fv:"video_url",object_id:"",url:""}],fe=["name","fv","object_id","url"],ve=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],me={useAlias:!1,multiObject:!1,source:"mosaic"},pe={DEFAULT:de,OPTIONS:ie,DATA:ue,PARAMS:fe,SOURCE:ve,COMMON:me},he=t.defineComponent(A(R({},pe),{__name:"videoMonitor",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){t.useCssVars(d=>({v05918fa4:t.unref(r).bgColor,d3f9beb2:t.unref(r).borderColor,v23480c46:t.unref(r).textColor,v250d92c9:t.unref(r).accentColor,v91ac3974:t.unref(r).glowEffect?`drop-shadow(0 0 6px ${t.unref(r).accentColor})`:"none",v9406041c:t.unref(r).glowEffect?`0 0 10px ${t.unref(r).accentColor}`:"none",v1bb2feba:t.unref(r).recColor}));const o=n;class a extends Q.BaseComponent{extractStyles(){var l,f,c,i,h,s,b,v,m,u,x,N,V,M,k,w,T,D,B;const{options:e}=this.props.conf;return{title:((l=e==null?void 0:e.title)==null?void 0:l.value)||"视频监控",realtimeBtnText:((f=e==null?void 0:e.realtimeBtnText)==null?void 0:f.value)||"实时更新",searchPlaceholder:((c=e==null?void 0:e.searchPlaceholder)==null?void 0:c.value)||"搜索摄像头、位置...",placeholderText:((i=e==null?void 0:e.placeholderText)==null?void 0:i.value)||"实时监控",bgColor:((h=e==null?void 0:e.bgColor)==null?void 0:h.value)||"#1a2a3a",borderColor:((s=e==null?void 0:e.borderColor)==null?void 0:s.value)||"#2a4a6a",textColor:((b=e==null?void 0:e.textColor)==null?void 0:b.value)||"#ffffff",accentColor:((v=e==null?void 0:e.accentColor)==null?void 0:v.value)||"#00d4ff",recColor:((m=e==null?void 0:e.recColor)==null?void 0:m.value)||"#e74c3c",glowEffect:(x=(u=e==null?void 0:e.glowEffect)==null?void 0:u.value)!=null?x:!0,autoplay:(V=(N=e==null?void 0:e.autoplay)==null?void 0:N.value)!=null?V:!0,loop:(k=(M=e==null?void 0:e.loop)==null?void 0:M.value)!=null?k:!0,muted:(T=(w=e==null?void 0:e.muted)==null?void 0:w.value)!=null?T:!0,showControls:(B=(D=e==null?void 0:e.showControls)==null?void 0:D.value)!=null?B:!1}}getDefaultData(){return[{name:"摄像头-01",fv:"video_url",object_id:"",url:""}]}setHistoryData(e){const{data:l,common:f}=this.props.conf;if(!l.some(s=>s.object_id&&s.fv))return;const i=f.source||"mosaic";["statistics","calculate"].includes(i)&&(e=y.formatStatisticsResult(e,l));let h=y.handleNullData(e,this.props,"history");l.forEach((s,b)=>{var v,m;if(!(!s.object_id||!s.fv))try{const u=(m=(v=h.history[b])==null?void 0:v[0])==null?void 0:m[s.fv];u&&(s.url=u)}catch(u){}})}setSocketData(e){if(!e)return;const{data:l}=this.props.conf;l.some(c=>c.object_id&&c.fv)&&l.forEach(c=>{if(!c.object_id||!c.fv)return;const i=this.extractDataValue(e,c.fv);i&&(c.url=i)})}}const C=new a(o,"videoMonitor");(!o.conf.data||o.conf.data.length===0)&&(o.conf.data=C.getDefaultData()),C.setupLifecycle();const r=C.getStyle(),p=t.ref(""),j=t.ref(!0),I=t.ref(null),E=t.ref(""),g=t.ref(""),_=t.computed(()=>{var e,l;const d=(l=(e=o.conf)==null?void 0:e.data)==null?void 0:l[0];return(d==null?void 0:d.url)||""}),P=()=>console.log("实时更新"),q=()=>console.log("搜索:",p.value),L=()=>{p.value=""};return(d,e)=>(t.openBlock(),t.createElementBlock("div",G,[t.createElementVNode("div",J,[t.createElementVNode("div",W,[e[3]||(e[3]=t.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("path",{d:"M23 7l-7 5 7 5V7z"}),t.createElementVNode("rect",{x:"1",y:"5",width:"15",height:"14",rx:"2",ry:"2"})],-1)),t.createElementVNode("span",X,t.toDisplayString(t.unref(r).title),1)]),t.createElementVNode("button",{class:"realtime-btn",onClick:P},t.toDisplayString(t.unref(r).realtimeBtnText),1)]),t.createElementVNode("div",Y,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=l=>p.value=l),type:"text",class:"search-input",placeholder:t.unref(r).searchPlaceholder},null,8,Z),[[t.vModelText,p.value]]),t.createElementVNode("button",{class:"search-btn",onClick:q},[...e[4]||(e[4]=[t.createElementVNode("span",null,"Q",-1)])]),t.createElementVNode("button",{class:"clear-btn",onClick:L},[...e[5]||(e[5]=[t.createElementVNode("span",null,"×",-1)])])]),t.createElementVNode("div",ee,[t.createElementVNode("div",te,[e[6]||(e[6]=t.createElementVNode("label",null,"开始时间",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=l=>E.value=l),type:"datetime-local",class:"time-input"},null,512),[[t.vModelText,E.value]])]),t.createElementVNode("div",oe,[e[7]||(e[7]=t.createElementVNode("label",null,"结束时间",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[2]||(e[2]=l=>g.value=l),type:"datetime-local",class:"time-input"},null,512),[[t.vModelText,g.value]])])]),t.createElementVNode("div",le,[j.value?(t.openBlock(),t.createElementBlock("div",re,"REC")):t.createCommentVNode("",!0),t.createElementVNode("div",ae,[_.value?(t.openBlock(),t.createElementBlock("video",{key:0,ref_key:"videoRef",ref:I,src:_.value,autoplay:t.unref(r).autoplay,loop:t.unref(r).loop,muted:t.unref(r).muted,controls:t.unref(r).showControls,class:"video-player"}," 您的浏览器不支持视频播放 ",8,ne)):(t.openBlock(),t.createElementBlock("div",ce,[e[8]||(e[8]=t.createElementVNode("svg",{class:"placeholder-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[t.createElementVNode("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),t.createElementVNode("circle",{cx:"12",cy:"12",r:"3"}),t.createElementVNode("path",{d:"M2 8h2M20 8h2"})],-1)),t.createElementVNode("div",se,t.toDisplayString(t.unref(r).placeholderText),1)]))])]),t.renderSlot(d.$slots,"default",{},void 0,!0)]))}})),be=y._export_sfc(he,[["__scopeId","data-v-c25a1dc2"]]);exports.default=be;
|
|
@@ -12,8 +12,8 @@ var I = (n, o, c) => o in n ? Q(n, o, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, F = (n, o) => q(n, J(o));
|
|
13
13
|
import { defineComponent as Y, useCssVars as Z, unref as r, ref as m, computed as ee, openBlock as g, createElementBlock as _, createElementVNode as t, toDisplayString as M, withDirectives as w, vModelText as E, createCommentVNode as te, renderSlot as oe } from "vue";
|
|
14
14
|
import "html2canvas";
|
|
15
|
-
import { B as le } from "./BaseComponent-
|
|
16
|
-
import { N as ae, G as re, _ as ce } from "./index-
|
|
15
|
+
import { B as le } from "./BaseComponent-Dwhb9Mde.js";
|
|
16
|
+
import { N as ae, G as re, _ as ce } from "./index-YNdVib_6.js";
|
|
17
17
|
import { A as ne, D as se } from "./ele-vdo-icon-DcWebTR5.js";
|
|
18
18
|
const ie = { class: "video-monitor-wrapper" }, de = { class: "panel-header" }, ue = { class: "header-left" }, ve = { class: "header-title" }, fe = { class: "search-bar" }, pe = ["placeholder"], he = { class: "time-range-row" }, me = { class: "time-range-item" }, be = { class: "time-range-item" }, Ce = { class: "video-area" }, ye = {
|
|
19
19
|
key: 0,
|
|
@@ -27,8 +27,8 @@ var O = (i, e, t) => new Promise((_, r) => {
|
|
|
27
27
|
u((t = t.apply(i, e)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as V, ref as M, computed as N, openBlock as B, createElementBlock as R, normalizeStyle as y, unref as l, createElementVNode as S, toDisplayString as g, renderSlot as j } from "vue";
|
|
30
|
-
import { B as L } from "./BaseComponent-
|
|
31
|
-
import { d as I, _ as U } from "./index-
|
|
30
|
+
import { B as L } from "./BaseComponent-Dwhb9Mde.js";
|
|
31
|
+
import { d as I, _ as U } from "./index-YNdVib_6.js";
|
|
32
32
|
import { g as k } from "./titleStyle-BT5GlpAb.js";
|
|
33
33
|
import { A as F, D as H } from "./ele-vlu-icon-Bg6EHZdJ.js";
|
|
34
34
|
const P = { class: "mix-body" }, Y = { class: "mix-footer" }, $ = "--", w = "--", W = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var b=Object.defineProperty,A=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var g=(l,o,t)=>o in l?b(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,_=(l,o)=>{for(var t in o||(o={}))V.call(o,t)&&g(l,t,o[t]);if(v)for(var t of v(o))T.call(o,t)&&g(l,t,o[t]);return l},C=(l,o)=>A(l,z(o));var h=(l,o,t)=>new Promise((y,c)=>{var n=a=>{try{d(t.next(a))}catch(i){c(i)}},u=a=>{try{d(t.throw(a))}catch(i){c(i)}},d=a=>a.done?y(a.value):Promise.resolve(a.value).then(n,u);d((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("./BaseComponent-
|
|
1
|
+
"use strict";var b=Object.defineProperty,A=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var g=(l,o,t)=>o in l?b(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,_=(l,o)=>{for(var t in o||(o={}))V.call(o,t)&&g(l,t,o[t]);if(v)for(var t of v(o))T.call(o,t)&&g(l,t,o[t]);return l},C=(l,o)=>A(l,z(o));var h=(l,o,t)=>new Promise((y,c)=>{var n=a=>{try{d(t.next(a))}catch(i){c(i)}},u=a=>{try{d(t.throw(a))}catch(i){c(i)}},d=a=>a.done?y(a.value):Promise.resolve(a.value).then(n,u);d((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("./BaseComponent-bzb58Hhs.cjs"),O=require("./index-6QhTSPkL.cjs"),N=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),D={class:"mix-body"},M={class:"mix-footer"},I="--",j="--",B={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"数值卡片",NAME_EN:"Value",ORDER:3,PLATFORM:["pc","screen","mobile"]},L={valueSize:36,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",textColor:"#111",isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},R=[{name:"参数一",fv:"",object_id:""}],U=["name","fv","object_id"],F=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],P={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},k=1,q={DEFAULT:B,OPTIONS:L,DATA:R,PARAMS:U,SOURCE:F,ITEMS:k,COMMON:P},H=e.defineComponent(C(_({},q),{__name:"vlu",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const o=l,t=e.ref(O.dayjs().format("YYYY-MM-DD HH:mm:ss"));class y extends x.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),valueSize:this.getOptionValue("valueSize",36),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){return h(this,null,function*(){var i;this.Style.value=this.extractStyles(),this.applyTheme(),(i=this.props.conf.data)!=null&&i.length||(this.props.conf.data=[{name:"参数一",fv:"",object_id:""}])})}setHistoryData(i){if(!i)return;const{data:r}=this.props.conf;!Array.isArray(r)||!r.length||r.forEach((S,f)=>{var m;try{const s=i[f].data[0];s!=null&&(S.value=s);const p=(m=i[f])==null?void 0:m.time[0];p&&(t.value=p)}catch(s){}})}setSocketData(i){super.setSocketData(i),i&&i.datetime&&(t.value=i.datetime)}}const c=new y(o,"vlu");c.setupLifecycle();const n=c.getStyle(),u=o.conf,d=e.computed(()=>N.generateTitleStyle(o.conf.options));return(a,i)=>{var r,S,f,m,s,p;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(d.value)},e.toDisplayString(((f=(S=(r=e.unref(u))==null?void 0:r.data)==null?void 0:S[0])==null?void 0:f.name)||e.unref(u).caption||j),5),e.createElementVNode("div",D,[e.createElementVNode("div",{class:"body-value",style:e.normalizeStyle({fontSize:`${e.unref(n).valueSize}px`,color:e.unref(n).textColor})},e.toDisplayString(((p=(s=(m=e.unref(u))==null?void 0:m.data)==null?void 0:s[0])==null?void 0:p.value)||I),5)]),e.createElementVNode("div",M,[e.createElementVNode("div",{class:"footer-time",style:e.normalizeStyle({fontSize:`${e.unref(n).timeSize}px`,color:e.unref(n).textColor})},e.toDisplayString(t.value),5)]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),$=O._export_sfc(H,[["__scopeId","data-v-bf31c6eb"]]);exports.default=$;
|
|
@@ -12,10 +12,10 @@ var k = (t, o, a) => o in t ? q(t, o, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, U = (t, o) => G(t, J(o));
|
|
13
13
|
import { defineComponent as X, computed as b, reactive as Y, ref as V, onMounted as Z, onBeforeUnmount as ee, openBlock as le, createElementBlock as oe, normalizeStyle as ae, createVNode as p, renderSlot as te } from "vue";
|
|
14
14
|
import "html2canvas";
|
|
15
|
-
import { B as ne } from "./BaseComponent-
|
|
16
|
-
import { _ as re } from "./index-
|
|
15
|
+
import { B as ne } from "./BaseComponent-Dwhb9Mde.js";
|
|
16
|
+
import { _ as re } from "./index-YNdVib_6.js";
|
|
17
17
|
import { g as ie } from "./mockData-DcqLnbJF.js";
|
|
18
|
-
import { W as se, P as ue, H as ve } from "./HistoryPlanDialog-
|
|
18
|
+
import { W as se, P as ue, H as ve } from "./HistoryPlanDialog-DliuSi0p.js";
|
|
19
19
|
import { A as be, D as pe } from "./ele-evn-icon-MWzAujnD.js";
|
|
20
20
|
const ce = {
|
|
21
21
|
DEFAULT_ICON: pe,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var $=Object.defineProperty,G=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var I=(n,t,a)=>t in n?$(n,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[t]=a,R=(n,t)=>{for(var a in t||(t={}))K.call(t,a)&&I(n,a,t[a]);if(k)for(var a of k(t))Q.call(t,a)&&I(n,a,t[a]);return n},T=(n,t)=>G(n,J(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const X=require("./BaseComponent-
|
|
1
|
+
"use strict";var $=Object.defineProperty,G=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var I=(n,t,a)=>t in n?$(n,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[t]=a,R=(n,t)=>{for(var a in t||(t={}))K.call(t,a)&&I(n,a,t[a]);if(k)for(var a of k(t))Q.call(t,a)&&I(n,a,t[a]);return n},T=(n,t)=>G(n,J(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const X=require("./BaseComponent-bzb58Hhs.cjs"),Y=require("./index-6QhTSPkL.cjs"),Z=require("./mockData-Cj71Qk7-.cjs"),b=require("./HistoryPlanDialog-CrYylrTC.cjs"),V=require("./ele-evn-icon-DUQMS-9T.cjs"),ee={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"预警数据概览",NAME_EN:"Warning Overview",ORDER:2,PLATFORM:["pc","screen"]},le={title:{value:"预警数据概览",type:"string",label:"标题"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"强调色"},baseFontSize:{value:13,type:"number",label:"基础字号(px)",min:10,max:20},titleFontSize:{value:14,type:"number",label:"标题字号(px)",min:12,max:24},titleFontWeight:{value:"600",type:"select",label:"标题字重",options:[{label:"常规",value:"400"},{label:"中等",value:"500"},{label:"半粗",value:"600"},{label:"粗体",value:"700"}]},tableHeaderFontSize:{value:12,type:"number",label:"表头字号(px)",min:10,max:18},tableBodyFontSize:{value:12,type:"number",label:"表格字号(px)",min:10,max:18},panelHeaderBgColor:{value:"#ffffff",type:"color",label:"面板头背景"},tableHeaderBgColor:{value:"#f5f7fa",type:"color",label:"表头背景"},tableHeaderColor:{value:"#333333",type:"color",label:"表头文字色"},tableBorderColor:{value:"#ebeef5",type:"color",label:"表格分隔线"},tableRowHoverColor:{value:"#f5f7fa",type:"color",label:"行悬停色"},level1Color:{value:"#e74c3c",type:"color",label:"一级预警色"},level2Color:{value:"#ff6600",type:"color",label:"二级预警色"},level3Color:{value:"#f39c12",type:"color",label:"三级预警色"},level4Color:{value:"#3498db",type:"color",label:"四级预警色"},linkChannel:{value:"landslide",type:"select",label:"联动频道",options:[{label:"滑坡预警",value:"landslide"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道",showWhen:{linkChannel:"custom"}}},oe=[],te=[],ae=["mosaic"],ne={useAlias:!1,multiObject:!1,source:"mosaic"},re={DEFAULT:ee,OPTIONS:le,DATA:oe,PARAMS:te,SOURCE:ae,COMMON:ne},ie=o.defineComponent(T(R({},re),{__name:"warningOverview",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const t=n;class a extends X.BaseComponent{extractStyles(){var i,p,f,C,d,g,y,m,w,S,F,H,x,z,B,O,h,A,D,E,N,P,W,_,M;const e=((i=this.props.conf)==null?void 0:i.options)||{};return{title:((p=e.title)==null?void 0:p.value)||"预警数据概览",bgColor:((f=e.bgColor)==null?void 0:f.value)||"#ffffff",textColor:((C=e.textColor)==null?void 0:C.value)||"#333333",accentColor:((d=e.accentColor)==null?void 0:d.value)||"#409eff",baseFontSize:(y=(g=e.baseFontSize)==null?void 0:g.value)!=null?y:13,titleFontSize:(w=(m=e.titleFontSize)==null?void 0:m.value)!=null?w:14,titleFontWeight:((S=e.titleFontWeight)==null?void 0:S.value)||"600",tableHeaderFontSize:(H=(F=e.tableHeaderFontSize)==null?void 0:F.value)!=null?H:12,tableBodyFontSize:(z=(x=e.tableBodyFontSize)==null?void 0:x.value)!=null?z:12,panelHeaderBgColor:((B=e.panelHeaderBgColor)==null?void 0:B.value)||"#ffffff",tableHeaderBgColor:((O=e.tableHeaderBgColor)==null?void 0:O.value)||"#f5f7fa",tableHeaderColor:((h=e.tableHeaderColor)==null?void 0:h.value)||"#333333",tableBorderColor:((A=e.tableBorderColor)==null?void 0:A.value)||"#ebeef5",tableRowHoverColor:((D=e.tableRowHoverColor)==null?void 0:D.value)||"#f5f7fa",level1Color:((E=e.level1Color)==null?void 0:E.value)||"#e74c3c",level2Color:((N=e.level2Color)==null?void 0:N.value)||"#ff6600",level3Color:((P=e.level3Color)==null?void 0:P.value)||"#f39c12",level4Color:((W=e.level4Color)==null?void 0:W.value)||"#3498db",linkChannel:((_=e.linkChannel)==null?void 0:_.value)||"landslide",customChannel:((M=e.customChannel)==null?void 0:M.value)||""}}getDefaultData(){return[]}}const s=new a(t,"warningOverview"),u=o.computed(()=>s.extractStyles()),q=o.computed(()=>{const l=u.value;return{background:l.bgColor,color:l.textColor,fontSize:l.baseFontSize+"px","--lw-accent":l.accentColor,"--lw-title-size":l.titleFontSize+"px","--lw-title-weight":l.titleFontWeight,"--lw-th-size":l.tableHeaderFontSize+"px","--lw-td-size":l.tableBodyFontSize+"px","--lw-panel-bg":l.bgColor,"--lw-panel-header-bg":l.panelHeaderBgColor,"--lw-table-header-bg":l.tableHeaderBgColor,"--lw-table-header-color":l.tableHeaderColor,"--lw-table-border":l.tableBorderColor,"--lw-table-hover":l.tableRowHoverColor}}),U=o.computed(()=>({1:u.value.level1Color,2:u.value.level2Color,3:u.value.level3Color,4:u.value.level4Color})),r=o.reactive(Z.getMockPageData()),v=o.ref(!1),c=o.ref(!1);function j(l){r.currentWarning=l,s.publish({type:"warning-selected",warning:l})}function L(l){r.plans=l,s.publish({type:"plans-updated",plans:l})}return o.onMounted(()=>s.init()),o.onBeforeUnmount(()=>s.cleanup()),(l,e)=>(o.openBlock(),o.createElementBlock("div",{class:"wov-wrapper",style:o.normalizeStyle(q.value)},[o.createVNode(b.WarningOverviewPanel,{warnings:r.warningEvents,"current-warning":r.currentWarning,"level-colors":U.value,onSelectWarning:j,onManagePlans:e[0]||(e[0]=i=>v.value=!0),onHistoryPlans:e[1]||(e[1]=i=>c.value=!0)},null,8,["warnings","current-warning","level-colors"]),o.createVNode(b.PlanLibraryDialog,{visible:v.value,plans:r.plans,"mobile-objects":r.mobileObjects,"current-warning":r.currentWarning,onClose:e[2]||(e[2]=i=>v.value=!1),"onUpdate:plans":L},null,8,["visible","plans","mobile-objects","current-warning"]),o.createVNode(b.HistoryPlanDialog,{visible:c.value,plans:r.plans,onClose:e[3]||(e[3]=i=>c.value=!1)},null,8,["visible","plans"]),o.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),se=Y._export_sfc(ie,[["__scopeId","data-v-7fdc2e1d"]]);exports.default=se;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var w=Object.defineProperty,v=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var g=(C,t,n)=>t in C?w(C,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):C[t]=n,u=(C,t)=>{for(var n in t||(t={}))b.call(t,n)&&g(C,n,t[n]);if(d)for(var n of d(t))_.call(t,n)&&g(C,n,t[n]);return C},m=(C,t)=>v(C,x(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue");require("html2canvas");const M=require("./BaseComponent-BmhMoM4H.cjs"),i=require("./index-77aUdspY.cjs"),y="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(-807.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%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='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(-807.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",I={class:"mix-component"},S=["src"],Z={DEFAULT_ICON:y,ACTIVE_ICON:F,NAME_CN:"天气",NAME_EN:"Weather",ORDER:4,PLATFORM:["pc","screen","mobile"]},k={transparent:{value:!1,type:"checkbox",label:"component.options.transparent"},bgColor:"#fff",textColor:{value:"#00B0F0",type:"color",label:"component.options.textColor",hideAlpha:!0},radiusSize:8,bgImg:{value:"",type:"image",label:"component.customized.bgImg"}},E={DEFAULT:Z,OPTIONS:k,COMMON:{}},L=r.defineComponent(m(u({},E),{__name:"weather",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(C){const t=C;class n extends M.BaseComponent{extractStyles(){const{options:e}=this.props.conf,c=(a,h)=>a==null?h:typeof a=="object"&&"value"in a?a.value:a;return{bgColor:c(e==null?void 0:e.bgColor,"#fff"),textColor:c(e==null?void 0:e.textColor,"#00B0F0"),radiusSize:c(e==null?void 0:e.radiusSize,8),bgImg:c(e==null?void 0:e.bgImg,""),transparent:c(e==null?void 0:e.transparent,!1)}}}const s=new n(t,"weather");s.setupLifecycle();const l=s.getStyle(),f=o=>o?o.startsWith(i.FILE_URL)||o.startsWith("http")?o:i.FILE_URL+o:"",p=r.computed(()=>{var o,e;return((e=(o=l.value)==null?void 0:o.textColor)==null?void 0:e.replace("#",""))||"00B0F0"});return(o,e)=>(r.openBlock(),r.createElementBlock("div",I,[r.createElementVNode("div",{class:"weather-wrap",style:r.normalizeStyle({backgroundColor:r.unref(l).transparent?"transparent":r.unref(l).bgColor,borderRadius:`${r.unref(l).radiusSize}px`,backgroundImage:r.unref(l).bgImg?`url(${f(r.unref(l).bgImg)})`:""})},[r.createElementVNode("iframe",{width:"200",scrolling:"no",height:"60",frameborder:"0",allowtransparency:"true",src:`https://i.tianqi.com?c=code&id=12&color=%23${p.value}&icon=1&num=1&site=15&align=center`},null,8,S)],4),r.renderSlot(o.$slots,"default",{},void 0,!0)]))}})),N=i._export_sfc(L,[["__scopeId","data-v-dfc24c16"]]);exports.default=N;
|
|
1
|
+
"use strict";var w=Object.defineProperty,v=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var g=(C,t,n)=>t in C?w(C,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):C[t]=n,u=(C,t)=>{for(var n in t||(t={}))b.call(t,n)&&g(C,n,t[n]);if(d)for(var n of d(t))_.call(t,n)&&g(C,n,t[n]);return C},m=(C,t)=>v(C,x(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue");require("html2canvas");const M=require("./BaseComponent-bzb58Hhs.cjs"),i=require("./index-6QhTSPkL.cjs"),y="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(-807.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%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='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(-807.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",I={class:"mix-component"},S=["src"],Z={DEFAULT_ICON:y,ACTIVE_ICON:F,NAME_CN:"天气",NAME_EN:"Weather",ORDER:4,PLATFORM:["pc","screen","mobile"]},k={transparent:{value:!1,type:"checkbox",label:"component.options.transparent"},bgColor:"#fff",textColor:{value:"#00B0F0",type:"color",label:"component.options.textColor",hideAlpha:!0},radiusSize:8,bgImg:{value:"",type:"image",label:"component.customized.bgImg"}},E={DEFAULT:Z,OPTIONS:k,COMMON:{}},L=r.defineComponent(m(u({},E),{__name:"weather",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(C){const t=C;class n extends M.BaseComponent{extractStyles(){const{options:e}=this.props.conf,c=(a,h)=>a==null?h:typeof a=="object"&&"value"in a?a.value:a;return{bgColor:c(e==null?void 0:e.bgColor,"#fff"),textColor:c(e==null?void 0:e.textColor,"#00B0F0"),radiusSize:c(e==null?void 0:e.radiusSize,8),bgImg:c(e==null?void 0:e.bgImg,""),transparent:c(e==null?void 0:e.transparent,!1)}}}const s=new n(t,"weather");s.setupLifecycle();const l=s.getStyle(),f=o=>o?o.startsWith(i.FILE_URL)||o.startsWith("http")?o:i.FILE_URL+o:"",p=r.computed(()=>{var o,e;return((e=(o=l.value)==null?void 0:o.textColor)==null?void 0:e.replace("#",""))||"00B0F0"});return(o,e)=>(r.openBlock(),r.createElementBlock("div",I,[r.createElementVNode("div",{class:"weather-wrap",style:r.normalizeStyle({backgroundColor:r.unref(l).transparent?"transparent":r.unref(l).bgColor,borderRadius:`${r.unref(l).radiusSize}px`,backgroundImage:r.unref(l).bgImg?`url(${f(r.unref(l).bgImg)})`:""})},[r.createElementVNode("iframe",{width:"200",scrolling:"no",height:"60",frameborder:"0",allowtransparency:"true",src:`https://i.tianqi.com?c=code&id=12&color=%23${p.value}&icon=1&num=1&site=15&align=center`},null,8,S)],4),r.renderSlot(o.$slots,"default",{},void 0,!0)]))}})),N=i._export_sfc(L,[["__scopeId","data-v-dfc24c16"]]);exports.default=N;
|
|
@@ -12,8 +12,8 @@ var d = (C, t, r) => t in C ? x(C, t, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, m = (C, t) => v(C, _(t));
|
|
13
13
|
import { defineComponent as F, computed as y, openBlock as I, createElementBlock as Z, createElementVNode as p, normalizeStyle as k, unref as s, renderSlot as S } from "vue";
|
|
14
14
|
import "html2canvas";
|
|
15
|
-
import { B as E } from "./BaseComponent-
|
|
16
|
-
import { F as f, _ as B } from "./index-
|
|
15
|
+
import { B as E } from "./BaseComponent-Dwhb9Mde.js";
|
|
16
|
+
import { F as f, _ as B } from "./index-YNdVib_6.js";
|
|
17
17
|
const N = "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(-807.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", O = "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(-807.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", z = { class: "mix-component" }, L = ["src"], A = {
|
|
18
18
|
DEFAULT_ICON: N,
|
|
19
19
|
ACTIVE_ICON: O,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Mn=Object.defineProperty,An=Object.defineProperties;var Nn=Object.getOwnPropertyDescriptors;var hn=Object.getOwnPropertySymbols;var Cn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable;var dn=(X,b,o)=>b in X?Mn(X,b,{enumerable:!0,configurable:!0,writable:!0,value:o}):X[b]=o,mn=(X,b)=>{for(var o in b||(b={}))Cn.call(b,o)&&dn(X,o,b[o]);if(hn)for(var o of hn(b))Tn.call(b,o)&&dn(X,o,b[o]);return X},gn=(X,b)=>An(X,Nn(b));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("vue"),on=require("./BaseComponent-BmhMoM4H.cjs"),Q=require("./index-77aUdspY.cjs"),In=require("./titleStyle-NSnz6cUg.cjs"),pn=require("./ele-aqi-icon-BMm9WgFH.cjs"),Pn=require("./install-DIlB2q7w.cjs"),sn=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Ln=require("./install-C8buXQPI.cjs"),zn=require("./install-CIT6k8Ga.cjs"),Fn=require("./install-z6wShIZI.cjs"),Rn=require("./install-CYwVETsi.cjs"),On=require("./universalTransition-CIN_u2Cu.cjs"),En=require("./echarts-BB8O2KSA.cjs");var k={exports:{}},Un=k.exports,Dn;function Bn(){return Dn||(Dn=1,(function(X,b){(function(f,n){X.exports=n()})(Un,function(){return(function(o){var f={};function n(t){if(f[t])return f[t].exports;var C=f[t]={exports:{},id:t,loaded:!1};return o[t].call(C.exports,C,C.exports,n),C.loaded=!0,C.exports}return n.m=o,n.c=f,n.p="",n(0)})([(function(o,f,n){var t;t=function(C){return{clustering:n(1),regression:n(5),statistics:n(6),histogram:n(15),transform:{regression:n(18),histogram:n(21),clustering:n(22)}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.dataPreprocess,E=m.normalizeDimensions,c=n(3),e=n(4),g=c.size,D=c.sumOfColumn,i=c.sum,y=c.zeros,e=n(4),l=e.isNumber,v=Math.pow,a={SINGLE:"single",MULTIPLE:"multiple"};function h(x,S,M){for(var L=y(x.length,2),P=d(S,F(x,M.dimensions)),N=!0,z,I,O,U;N;){N=!1;for(var T=0;T<x.length;T++){z=1/0,I=-1;for(var W=0;W<S;W++)O=p(x[T],P[W],M),O<z&&(z=O,I=W);L[T][0]!==I&&(N=!0),L[T][0]=I,L[T][1]=z}for(var T=0;T<S;T++){U=[];for(var W=0;W<L.length;W++)L[W][0]===T&&U.push(x[W]);P[T]=u(U,M)}}var w={centroids:P,clusterAssigned:L};return w}function u(x,S){for(var M=[],L,P,N=0;N<S.dimensions.length;N++){var z=S.dimensions[N];L=0;for(var I=0;I<x.length;I++)L+=x[I][z];P=L/x.length,M.push(P)}return M}function r(x,S,M){var L=(l(S)?{clusterCount:S,stepByStep:M}:S)||{clusterCount:2},P=L.clusterCount;if(P<2)return;var N=R(x,L),z=N.outputType===a.SINGLE,I=A(x,{dimensions:N.dimensions}),O=y(I.length,2),U,T,W;function w(V,J){O[V][1]=J}function q(V){return O[V][1]}if(z){U=[];var ln=N.outputClusterIndexDimension;T=function(V,J){U[V][ln]=J},W=function(V){return U[V][ln]};for(var H=0;H<I.length;H++)U.push(I[H].slice()),w(H,0),T(H,0)}else T=function(V,J){O[V][0]=J},W=function(V){return O[V][0]};for(var vn=u(I,N),$=[vn],H=0;H<I.length;H++){var Sn=p(I[H],vn,N);w(H,Sn)}var _,nn,rn,j,en,tn,fn=1,G={data:U,centroids:$,isEnd:!1};z||(G.clusterAssment=O);function cn(){if(fn<P){_=1/0;for(var V,J,Z,Y=0;Y<$.length;Y++){nn=[],rn=[];for(var B=0;B<I.length;B++)W(B)===Y?nn.push(I[B]):rn.push(q(B));j=h(nn,2,N),en=D(j.clusterAssigned,1),tn=i(rn),en+tn<_&&(_=tn+en,V=Y,J=j.centroids,Z=j.clusterAssigned)}for(var B=0;B<Z.length;B++)Z[B][0]===0?Z[B][0]=V:Z[B][0]===1&&(Z[B][0]=$.length);$[V]=J[0],$.push(J[1]);for(var B=0,Y=0;B<I.length&&Y<Z.length;B++)W(B)===V&&(T(B,Z[Y][0]),w(B,Z[Y++][1]));var an=[];if(!z){for(var B=0;B<$.length;B++){an[B]=[];for(var Y=0;Y<I.length;Y++)W(Y)===B&&an[B].push(I[Y])}G.pointsInCluster=an}fn++}else G.isEnd=!0}if(L.stepByStep)G.next=function(){return cn(),s(G,N),G};else for(;cn(),!G.isEnd;);return s(G,N),G}function s(x,S){var M=S.outputCentroidDimensions;if(!(S.outputType!==a.SINGLE||M==null))for(var L=x.data,P=x.centroids,N=0;N<L.length;N++)for(var z=L[N],I=z[S.outputClusterIndexDimension],O=P[I],U=Math.min(O.length,M.length),T=0;T<U;T++)z[M[T]]=O[T]}function d(x,S){for(var M=y(x,S.length),L=0;L<S.length;L++)for(var P=S[L],N=0;N<x;N++)M[N][L]=P.min+P.span*Math.random();return M}function p(x,S,M){for(var L=0,P=M.dimensions,N=M.rawExtents,z=0;z<P.length;z++){var I=N[z].span;if(I){var O=P[z],U=(x[O]-S[z])/I;L+=v(U,2)}}return L}function R(x,S){var M=g(x);if(M.length<1)throw new Error("The input data of clustering should be two-dimension array.");for(var L=M[1],P=[],N=0;N<L;N++)P.push(N);var z=E(S.dimensions,P),I=S.outputType||a.MULTIPLE,O=S.outputClusterIndexDimension;if(I===a.SINGLE&&!e.isNumber(O))throw new Error("outputClusterIndexDimension is required as a number.");var U=F(x,z);return{dimensions:z,rawExtents:U,outputType:I,outputClusterIndexDimension:O,outputCentroidDimensions:S.outputCentroidDimensions}}function F(x,S){for(var M=[],L=S.length,P=0;P<L;P++)M.push({min:1/0,max:-1/0});for(var P=0;P<x.length;P++)for(var N=x[P],z=0;z<L;z++){var I=M[z],O=N[S[z]];I.min>O&&(I.min=O),I.max<O&&(I.max=O)}for(var P=0;P<L;P++)M[P].span=M[P].max-M[P].min;return M}return{OutputType:a,hierarchicalKMeans:r}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(3),A=m.isArray,E=m.size,c=n(4),g=c.isNumber;function D(e,l){return typeof e=="number"?[e]:e==null?l:e}function i(e,l){l=l||{};var v=l.dimensions,a={};if(v!=null)for(var h=0;h<v.length;h++)a[v[h]]=!0;var u=l.toOneDimensionArray?v?v[0]:0:null;function r(x){return!v||a.hasOwnProperty(x)}if(!A(e))throw new Error("Invalid data type, you should input an array");var s=[],d=E(e);if(d.length===1)for(var h=0;h<d[0];h++){var p=e[h];g(p)&&s.push(p)}else if(d.length===2)for(var h=0;h<d[0];h++){for(var R=!0,p=e[h],F=0;F<d[1];F++)r(F)&&!g(p[F])&&(R=!1);R&&s.push(u!=null?p[u]:p)}return s}function y(e){var l=e.toString(),v=l.indexOf(".");return v<0?0:l.length-1-v}return{normalizeDimensions:D,dataPreprocess:i,getPrecision:y}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=Object.prototype.toString,A=Array.prototype,E=A.map;function c(a){for(var h=[];g(a);)h.push(a.length),a=a[0];return h}function g(a){return m.call(a)==="[object Array]"}function D(a,h){for(var u=[],r=0;r<a;r++){u[r]=[];for(var s=0;s<h;s++)u[r][s]=0}return u}function i(a){for(var h=0,u=0;u<a.length;u++)h+=a[u];return h}function y(a,h){for(var u=0,r=0;r<a.length;r++)u+=a[r][h];return u}function e(a,h){return a>h?1:a<h?-1:a===h?0:NaN}function l(a,h,u,r){for(u==null&&(u=0),r==null&&(r=a.length);u<r;){var s=Math.floor((u+r)/2),d=e(a[s],h);if(d>0)r=s;else if(d<0)u=s+1;else return s+1}return u}function v(a,h,u){if(a&&h){if(a.map&&a.map===E)return a.map(h,u);for(var r=[],s=0,d=a.length;s<d;s++)r.push(h.call(u,a[s],s,a));return r}}return{size:c,isArray:g,zeros:D,sum:i,sumOfColumn:y,ascending:e,bisect:l,map:v}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){function m(c){return c=c===null?NaN:+c,typeof c=="number"&&!isNaN(c)}function A(c){return isFinite(c)&&c===Math.round(c)}function E(c){if(c===0)return 0;var g=Math.floor(Math.log(c)/Math.LN10);return c/Math.pow(10,g)>=10&&g++,g}return{isNumber:m,isInteger:A,quantityExponent:E}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.dataPreprocess,E=m.normalizeDimensions,c={linear:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=i.length,s=0;s<r;s++){var d=i[s];v+=d[e],a+=d[l],h+=d[e]*d[l],u+=d[e]*d[e]}for(var p=(r*h-v*a)/(r*u-v*v),R=a/r-p*v/r,F=[],x=0;x<i.length;x++){var d=i[x],S=d.slice();S[e]=d[e],S[l]=p*d[e]+R,F.push(S)}var M="y = "+Math.round(p*100)/100+"x + "+Math.round(R*100)/100;return{points:F,parameter:{gradient:p,intercept:R},expression:M}},linearThroughOrigin:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0;h<i.length;h++){var u=i[h];v+=u[e]*u[e],a+=u[e]*u[l]}for(var r=a/v,s=[],d=0;d<i.length;d++){var u=i[d],p=u.slice();p[e]=u[e],p[l]=u[e]*r,s.push(p)}var R="y = "+Math.round(r*100)/100+"x";return{points:s,parameter:{gradient:r},expression:R}},exponential:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=0,s=0,d=0;d<i.length;d++){var p=i[d];v+=p[e],a+=p[l],s+=p[e]*p[l],h+=p[e]*p[e]*p[l],u+=p[l]*Math.log(p[l]),r+=p[e]*p[l]*Math.log(p[l])}for(var R=a*h-s*s,F=Math.pow(Math.E,(h*u-s*r)/R),x=(a*r-s*u)/R,S=[],M=0;M<i.length;M++){var p=i[M],L=p.slice();L[e]=p[e],L[l]=F*Math.pow(Math.E,x*p[e]),S.push(L)}var P="y = "+Math.round(F*100)/100+"e^("+Math.round(x*100)/100+"x)";return{points:S,parameter:{coefficient:F,index:x},expression:P}},logarithmic:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=0;r<i.length;r++){var s=i[r];v+=Math.log(s[e]),a+=s[l]*Math.log(s[e]),h+=s[l],u+=Math.pow(Math.log(s[e]),2)}for(var d=(r*a-h*v)/(r*u-v*v),p=(h-d*v)/r,R=[],F=0;F<i.length;F++){var s=i[F],x=s.slice();x[e]=s[e],x[l]=d*Math.log(s[e])+p,R.push(x)}var S="y = "+Math.round(p*100)/100+" + "+Math.round(d*100)/100+"ln(x)";return{points:R,parameter:{gradient:d,intercept:p},expression:S}},polynomial:function(i,y){var e=y.dimensions[0],l=y.dimensions[1],v=y.order;v==null&&(v=2);for(var a=[],h=[],u=v+1,r=0;r<u;r++){for(var s=0,d=0;d<i.length;d++){var p=i[d];s+=p[l]*Math.pow(p[e],r)}h.push(s);for(var R=[],F=0;F<u;F++){for(var x=0,S=0;S<i.length;S++)x+=Math.pow(i[S][e],r+F);R.push(x)}a.push(R)}a.push(h);for(var M=g(a,u),L=[],r=0;r<i.length;r++){for(var P=0,p=i[r],d=0;d<M.length;d++)P+=M[d]*Math.pow(p[e],d);var N=p.slice();N[e]=p[e],N[l]=P,L.push(N)}for(var z="y = ",r=M.length-1;r>=0;r--)r>1?z+=Math.round(M[r]*Math.pow(10,r+1))/Math.pow(10,r+1)+"x^"+r+" + ":r===1?z+=Math.round(M[r]*100)/100+"x + ":z+=Math.round(M[r]*100)/100;return{points:L,parameter:M,expression:z}}};function g(i,y){for(var e=0;e<i.length-1;e++){for(var l=e,v=e+1;v<i.length-1;v++)Math.abs(i[e][v])>Math.abs(i[e][l])&&(l=v);for(var a=e;a<i.length;a++){var h=i[a][e];i[a][e]=i[a][l],i[a][l]=h}for(var u=e+1;u<i.length-1;u++)for(var r=i.length-1;r>=e;r--)i[r][u]-=i[r][e]/i[e][e]*i[e][u]}for(var s=new Array(y),d=i.length-1,v=i.length-2;v>=0;v--){for(var h=0,e=v+1;e<i.length-1;e++)h+=i[e][v]*s[e];s[v]=(i[d][v]-h)/i[v][v]}return s}var D=function(i,y,e){var l=typeof e=="number"?{order:e}:e||{},v=E(l.dimensions,[0,1]),a=A(y,{dimensions:v}),h=c[i](a,{order:l.order,dimensions:v}),u=v[0];return h.points.sort(function(r,s){return r[u]-s[u]}),h};return D}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m={};return m.max=n(7),m.deviation=n(8),m.mean=n(10),m.median=n(12),m.min=n(14),m.quantile=n(13),m.sampleVariance=n(9),m.sum=n(11),m}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){for(var g=-1/0,D=0;D<c.length;D++)A(c[D])&&c[D]>g&&(g=c[D]);return g}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(9);return function(A){var E=m(A);return E&&Math.sqrt(E)}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber,E=n(10);function c(g){var D=g.length;if(!D||D<2)return 0;if(g.length>=2){for(var i=E(g),y=0,e,l=0;l<g.length;l++)A(g[l])&&(e=g[l]-i,y+=e*e);return y/(g.length-1)}}return c}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(11);function A(E){var c=E.length;return c?m(E)/E.length:0}return A}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){var g=c.length;if(!g)return 0;for(var D=0,i=0;i<g;i++)A(c[i])&&(D+=c[i]);return D}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(13);function A(E){return m(E,.5)}return A}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){return function(m,A){var E=m.length;if(!E)return 0;if(A<=0||E<2)return m[0];if(A>=1)return m[E-1];var c=(E-1)*A,g=Math.floor(c),D=m[g],i=m[g+1];return D+(i-D)*(c-g)}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){for(var g=1/0,D=0;D<c.length;D++)A(c[D])&&c[D]<g&&(g=c[D]);return g}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(7),A=n(14),E=n(13),c=n(8),g=n(2),D=g.dataPreprocess,i=g.normalizeDimensions,y=n(3),e=y.ascending,l=y.map,v=n(16),a=y.bisect,h=n(17);function u(W,d){for(var p=typeof d=="string"?{method:d}:d||{},R=p.method==null?r.squareRoot:r[p.method],F=i(p.dimensions),x=D(W,{dimensions:F,toOneDimensionArray:!0}),S=m(x),M=A(x),L=R(x,M,S),P=h(M,S,L),N=P.step,z=P.toFixedPrecision,I=v(+(Math.ceil(M/N)*N).toFixed(z),+(Math.floor(S/N)*N).toFixed(z),N,z),O=I.length,U=new Array(O+1),T=0;T<=O;T++)U[T]={},U[T].sample=[],U[T].x0=T>0?I[T-1]:I[T]-M===N?M:I[T]-N,U[T].x1=T<O?I[T]:S-I[T-1]===N?S:I[T-1]+N;for(var T=0;T<x.length;T++)M<=x[T]&&x[T]<=S&&U[a(I,x[T],0,O)].sample.push(x[T]);var W=l(U,function(q){return[+((q.x0+q.x1)/2).toFixed(z),q.sample.length,q.x0,q.x1,q.x0+" - "+q.x1]}),w=l(U,function(q){return[q.x0,q.x1,q.sample.length]});return{bins:U,data:W,customData:w}}var r={squareRoot:function(s){var d=Math.ceil(Math.sqrt(s.length));return d>50?50:d},scott:function(s,d,p){return Math.ceil((p-d)/(3.5*c(s)*Math.pow(s.length,-1/3)))},freedmanDiaconis:function(s,d,p){return s.sort(e),Math.ceil((p-d)/(2*(E(s,.75)-E(s,.25))*Math.pow(s.length,-1/3)))},sturges:function(s){return Math.ceil(Math.log(s.length)/Math.LN2)+1}};return u}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.getPrecision;return function(E,c,g,D){var i=arguments.length;i<2?(c=E,E=0,g=1):i<3?g=1:i<4?(g=+g,D=A(g)):D=+D;for(var y=Math.ceil(((c-E)/g).toFixed(D)),e=new Array(y+1),l=0;l<y+1;l++)e[l]=+(E+l*g).toFixed(D);return e}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4);return function(A,E,c){var g=Math.abs(E-A)/c,D=m.quantityExponent(g),i=Math.pow(10,D),y=g/i;y>=Math.sqrt(50)?i*=10:y>=Math.sqrt(10)?i*=5:y>=Math.sqrt(2)&&(i*=2);var e=D<0?-D:0,l=+(E>=A?i:-i).toFixed(e);return{step:l,toFixedPrecision:e}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(5),A=n(19),E=2;return{type:"ecStat:regression",transform:function(g){var D=g.upstream,i=g.config||{},y=i.method||"linear",e=m(y,D.cloneRawData(),{order:i.order,dimensions:A.normalizeExistingDimensions(g,i.dimensions)}),l=e.points,v=i.formulaOn;v==null&&(v="end");var a;if(v!=="none"){for(var h=0;h<l.length;h++)l[h][E]=v==="start"&&h===0||v==="all"||v==="end"&&h===l.length-1?e.expression:"";a=D.cloneAllDimensionInfo(),a[E]={}}return[{dimensions:a,data:l}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(3),A=n(4),E=n(20);function c(D,i){if(i==null)return;var y=D.upstream;if(m.isArray(i)){for(var e=[],l=0;l<i.length;l++){var v=y.getDimensionInfo(i[l]);a(v,i[l]),e[l]=v.index}return e}else{var v=y.getDimensionInfo(i);return a(v,i),v.index}function a(h,u){if(!h)throw new Error("Can not find dimension by "+u)}}function g(D){if(m.isArray(D)){for(var i=[],y=[],e=0;e<D.length;e++){var l=v(D[e]);i.push(l.name),y.push(l.index)}return{name:i,index:y}}else if(D!=null)return v(D);function v(a){if(A.isNumber(a))return{index:a};if(E.isObject(a)&&A.isNumber(a.index))return a;throw new Error("Illegle new dimensions config. Expect `{ name: string, index: number }`.")}}return{normalizeExistingDimensions:c,normalizeNewDimensions:g}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){function m(E,c){if(Object.assign)Object.assign(E,c);else for(var g in c)c.hasOwnProperty(g)&&(E[g]=c[g]);return E}function A(E){const c=typeof E;return c==="function"||!!E&&c==="object"}return{extend:m,isObject:A}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(15),A=n(19);return{type:"ecStat:histogram",transform:function(c){var g=c.upstream,D=c.config||{},i=m(g.cloneRawData(),{method:D.method,dimensions:A.normalizeExistingDimensions(c,D.dimensions)});return[{dimensions:["MeanOfV0V1","VCount","V0","V1","DisplayableName"],data:i.data},{data:i.customData}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(1),A=n(4),E=n(19),c=A.isNumber;return{type:"ecStat:clustering",transform:function(D){var i=D.upstream,y=D.config||{},e=y.clusterCount;if(!c(e)||e<=0)throw new Error('config param "clusterCount" need to be specified as an interger greater than 1.');if(e===1)return[{},{data:[]}];var l=E.normalizeNewDimensions(y.outputClusterIndexDimension),v=E.normalizeNewDimensions(y.outputCentroidDimensions);if(l==null)throw new Error("outputClusterIndexDimension is required as a number.");for(var a=m.hierarchicalKMeans(i.cloneRawData(),{clusterCount:e,stepByStep:!1,dimensions:E.normalizeExistingDimensions(D,y.dimensions),outputType:m.OutputType.SINGLE,outputClusterIndexDimension:l.index,outputCentroidDimensions:(v||{}).index}),h=i.cloneAllDimensionInfo(),u=[],r=0;r<h.length;r++){var s=h[r];u.push(s.name)}if(u[l.index]=l.name,v)for(var r=0;r<v.index.length;r++)v.name[r]!=null&&(u[v.index[r]]=v.name[r]);return[{dimensions:u,data:a.data},{data:a.centroids}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)})])})})(k)),k.exports}var un,xn;function Kn(){return xn||(xn=1,un=Bn()),un}var Wn=Kn();const bn=Q.getDefaultExportFromCjs(Wn),Vn={DEFAULT_ICON:pn.DEFAULT_ICON,ACTIVE_ICON:pn.ACTIVE_ICON,NAME_CN:"风向图",NAME_EN:"Wind Line",ORDER:5,PLATFORM:["pc","screen","mobile"]},Xn={titleColor:"#111",bgColor:"#fff",textColor:"#111",lineColor:"#314656",top:30,bottom:40,left:20,right:20,radiusSize:8,textSize:12,points:30,isHideTitle:!1,isSmooth:!1},yn=[{name:"参数一",项目编号:"",object_id:""}],qn=["name","项目编号"],Yn=["index","deviation","stability","balance","increment","risk"],Hn=1,Gn={useAlias:!1,null:{type:"0",value:""},multiObject:!1,hideMultiObject:!0,source:"index"},Jn={DEFAULT:Vn,OPTIONS:Xn,DATA:yn,PARAMS:qn,SOURCE:Yn,ITEMS:Hn,COMMON:Gn},Zn=K.defineComponent(gn(mn({},Jn),{__name:"windLin",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(X){sn.use([sn.install,Ln.install,zn.install,Fn.install,Rn.install,Pn.install,sn.install$1,On.installUniversalTransition]);const b=K.ref(K.inject("session",null)),{proxy:o}=K.getCurrentInstance(),f="windlin_"+Math.random().toString(16).substring(4,12);let n=null,t=null;const C=X;let m=[];class A extends on.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),lineColor:this.getOptionValue("lineColor","#314656"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),isSmooth:this.getOptionValue("isSmooth",!1)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:yn,C.mode==="edit"&&i(),K.nextTick(()=>{let r=document.querySelector("#"+f);r&&(n||(n=En.init(r),t=Q.elementResizeDetectorMaker({strategy:"scroll"}),t.listenTo(r,()=>n==null?void 0:n.resize())),n.setOption(D(),!0))})}onPreview(){a.preview()}cleanup(){t&&t.uninstall(document.querySelector("#"+f)),n&&n.clear(),n&&En.dispose(n),n=null,a.unregister()}}const E=new A(C,"windLin");E.setupLifecycle();const c=E.getStyle(),g=K.computed(()=>In.generateTitleStyle(C.conf.options)),D=()=>{var d,p,R,F;const{data:u,options:r}=C.conf;let s=u[0]||{};return{tooltip:{trigger:"axis",formatter:function(x){return[x[0].value[0],`${s==null?void 0:s.name}: `+x[0].value[1],`${o.$t("setting.gradient")}: `+x[0].value[2]].join("<br>")}},grid:{top:((d=r==null?void 0:r.top)==null?void 0:d.value)||30,bottom:((p=r==null?void 0:r.bottom)==null?void 0:p.value)||40,left:((R=r==null?void 0:r.left)==null?void 0:R.value)||20,right:((F=r==null?void 0:r.right)==null?void 0:F.value)||20,containLabel:!0},xAxis:{type:"time",splitLine:{lineStyle:{color:"#ddd"}}},yAxis:[{axisLine:{lineStyle:{color:"#666"}},splitNumber:4}],visualMap:{type:"piecewise",show:!1,orient:"horizontal",left:"center",bottom:10,pieces:[{lt:0,color:"#18BF12"},{gte:0,lte:0,color:"#f4e9a3"},{gte:0,color:"#D33C3E"}],seriesIndex:1,dimension:2},dataZoom:[{type:"slider",xAxisIndex:0,start:80,end:100,height:15,bottom:15},{type:"inside"}],series:[{type:"line",yAxisIndex:0,showSymbol:!1,emphasis:{scale:!1},symbolSize:10,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:c.value.lineColor},{offset:1,color:c.value.lineColor+"00"}]}},lineStyle:{color:c.value.lineColor},itemStyle:{color:c.value.lineColor},encode:{x:0},data:m,z:2,smooth:c.value.isSmooth},{type:"custom",renderItem:e,data:m,z:10}]}},i=()=>{var R,F;const u=Q.hasDataSource(C.conf);m=[];let r=[];const{options:s}=C.conf;let d=(F=(R=s==null?void 0:s.points)==null?void 0:R.value)!=null?F:30,p=Q.getxAxisDataTime(d,C.mode,u);if(!p.length){m=[];return}for(let x=0;x<d;x++){let S=Math.floor(Math.random()*200);r.push([p[x],S])}m=y(r)},y=u=>u.map((r,s)=>{var d;if(s===u.length-1)r[2]=0;else{let p=bn.regression("linear",[[s+1,r[1]],[s+2,u[s+1][1]]],0);r[2]=Math.atan(((d=p.parameter)==null?void 0:d.gradient)||0).toFixed(4)}return r}),e=(u,r)=>{const s=r.coord([r.value(0),0]),d=16;return{type:"path",shape:{pathData:"M31 16l-15-15v9h-26v12h26v9z",x:-d/2,y:-d/2,width:d,height:d},rotation:r.value(2),position:s,style:r.style({stroke:"#555",lineWidth:1})}},l=u=>{if(!Q.hasDataSource(C.conf))return;const{data:r}=C.conf;let s=Q.handleNullData(u,C,"history");if(!s.history.length)return;let d=s.history[0],p=[];d.forEach(R=>{let F=R[r[0].fv]||0;p.push([R.time,F])}),m=y(p),n==null||n.setOption(D())},v=u=>{Q.hasDataSource(C.conf)},a={preview:()=>on.preview(C,b.value,l,v,"windLin"),unregister:()=>on.unregister(C,b.value)};K.watchEffect(()=>{C.conf.socketData&&v(C.conf.socketData)});const h=C.conf;return(u,r)=>(K.openBlock(),K.createElementBlock("div",{class:"mix-component",style:K.normalizeStyle({background:K.unref(c).bgColor,borderRadius:`${K.unref(c).radiusSize}px`})},[K.createElementVNode("div",{class:"mix-title",style:K.normalizeStyle(g.value)},K.toDisplayString(K.unref(h).caption||K.unref(h).name),5),K.createElementVNode("div",{class:"mix-body"},[K.createElementVNode("div",{class:"w-full h-full",id:f})]),K.renderSlot(u.$slots,"default",{},void 0,!0)],4))}})),Qn=Q._export_sfc(Zn,[["__scopeId","data-v-4e09b728"]]);exports.default=Qn;
|
|
1
|
+
"use strict";var Mn=Object.defineProperty,An=Object.defineProperties;var Nn=Object.getOwnPropertyDescriptors;var hn=Object.getOwnPropertySymbols;var Cn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable;var dn=(X,b,o)=>b in X?Mn(X,b,{enumerable:!0,configurable:!0,writable:!0,value:o}):X[b]=o,mn=(X,b)=>{for(var o in b||(b={}))Cn.call(b,o)&&dn(X,o,b[o]);if(hn)for(var o of hn(b))Tn.call(b,o)&&dn(X,o,b[o]);return X},gn=(X,b)=>An(X,Nn(b));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("vue"),on=require("./BaseComponent-bzb58Hhs.cjs"),Q=require("./index-6QhTSPkL.cjs"),In=require("./titleStyle-NSnz6cUg.cjs"),pn=require("./ele-aqi-icon-BMm9WgFH.cjs"),Pn=require("./install-DIlB2q7w.cjs"),sn=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Ln=require("./install-C8buXQPI.cjs"),zn=require("./install-CIT6k8Ga.cjs"),Fn=require("./install-z6wShIZI.cjs"),Rn=require("./install-CYwVETsi.cjs"),On=require("./universalTransition-CIN_u2Cu.cjs"),En=require("./echarts-BB8O2KSA.cjs");var k={exports:{}},Un=k.exports,Dn;function Bn(){return Dn||(Dn=1,(function(X,b){(function(f,n){X.exports=n()})(Un,function(){return(function(o){var f={};function n(t){if(f[t])return f[t].exports;var C=f[t]={exports:{},id:t,loaded:!1};return o[t].call(C.exports,C,C.exports,n),C.loaded=!0,C.exports}return n.m=o,n.c=f,n.p="",n(0)})([(function(o,f,n){var t;t=function(C){return{clustering:n(1),regression:n(5),statistics:n(6),histogram:n(15),transform:{regression:n(18),histogram:n(21),clustering:n(22)}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.dataPreprocess,E=m.normalizeDimensions,c=n(3),e=n(4),g=c.size,D=c.sumOfColumn,i=c.sum,y=c.zeros,e=n(4),l=e.isNumber,v=Math.pow,a={SINGLE:"single",MULTIPLE:"multiple"};function h(x,S,M){for(var L=y(x.length,2),P=d(S,F(x,M.dimensions)),N=!0,z,I,O,U;N;){N=!1;for(var T=0;T<x.length;T++){z=1/0,I=-1;for(var W=0;W<S;W++)O=p(x[T],P[W],M),O<z&&(z=O,I=W);L[T][0]!==I&&(N=!0),L[T][0]=I,L[T][1]=z}for(var T=0;T<S;T++){U=[];for(var W=0;W<L.length;W++)L[W][0]===T&&U.push(x[W]);P[T]=u(U,M)}}var w={centroids:P,clusterAssigned:L};return w}function u(x,S){for(var M=[],L,P,N=0;N<S.dimensions.length;N++){var z=S.dimensions[N];L=0;for(var I=0;I<x.length;I++)L+=x[I][z];P=L/x.length,M.push(P)}return M}function r(x,S,M){var L=(l(S)?{clusterCount:S,stepByStep:M}:S)||{clusterCount:2},P=L.clusterCount;if(P<2)return;var N=R(x,L),z=N.outputType===a.SINGLE,I=A(x,{dimensions:N.dimensions}),O=y(I.length,2),U,T,W;function w(V,J){O[V][1]=J}function q(V){return O[V][1]}if(z){U=[];var ln=N.outputClusterIndexDimension;T=function(V,J){U[V][ln]=J},W=function(V){return U[V][ln]};for(var H=0;H<I.length;H++)U.push(I[H].slice()),w(H,0),T(H,0)}else T=function(V,J){O[V][0]=J},W=function(V){return O[V][0]};for(var vn=u(I,N),$=[vn],H=0;H<I.length;H++){var Sn=p(I[H],vn,N);w(H,Sn)}var _,nn,rn,j,en,tn,fn=1,G={data:U,centroids:$,isEnd:!1};z||(G.clusterAssment=O);function cn(){if(fn<P){_=1/0;for(var V,J,Z,Y=0;Y<$.length;Y++){nn=[],rn=[];for(var B=0;B<I.length;B++)W(B)===Y?nn.push(I[B]):rn.push(q(B));j=h(nn,2,N),en=D(j.clusterAssigned,1),tn=i(rn),en+tn<_&&(_=tn+en,V=Y,J=j.centroids,Z=j.clusterAssigned)}for(var B=0;B<Z.length;B++)Z[B][0]===0?Z[B][0]=V:Z[B][0]===1&&(Z[B][0]=$.length);$[V]=J[0],$.push(J[1]);for(var B=0,Y=0;B<I.length&&Y<Z.length;B++)W(B)===V&&(T(B,Z[Y][0]),w(B,Z[Y++][1]));var an=[];if(!z){for(var B=0;B<$.length;B++){an[B]=[];for(var Y=0;Y<I.length;Y++)W(Y)===B&&an[B].push(I[Y])}G.pointsInCluster=an}fn++}else G.isEnd=!0}if(L.stepByStep)G.next=function(){return cn(),s(G,N),G};else for(;cn(),!G.isEnd;);return s(G,N),G}function s(x,S){var M=S.outputCentroidDimensions;if(!(S.outputType!==a.SINGLE||M==null))for(var L=x.data,P=x.centroids,N=0;N<L.length;N++)for(var z=L[N],I=z[S.outputClusterIndexDimension],O=P[I],U=Math.min(O.length,M.length),T=0;T<U;T++)z[M[T]]=O[T]}function d(x,S){for(var M=y(x,S.length),L=0;L<S.length;L++)for(var P=S[L],N=0;N<x;N++)M[N][L]=P.min+P.span*Math.random();return M}function p(x,S,M){for(var L=0,P=M.dimensions,N=M.rawExtents,z=0;z<P.length;z++){var I=N[z].span;if(I){var O=P[z],U=(x[O]-S[z])/I;L+=v(U,2)}}return L}function R(x,S){var M=g(x);if(M.length<1)throw new Error("The input data of clustering should be two-dimension array.");for(var L=M[1],P=[],N=0;N<L;N++)P.push(N);var z=E(S.dimensions,P),I=S.outputType||a.MULTIPLE,O=S.outputClusterIndexDimension;if(I===a.SINGLE&&!e.isNumber(O))throw new Error("outputClusterIndexDimension is required as a number.");var U=F(x,z);return{dimensions:z,rawExtents:U,outputType:I,outputClusterIndexDimension:O,outputCentroidDimensions:S.outputCentroidDimensions}}function F(x,S){for(var M=[],L=S.length,P=0;P<L;P++)M.push({min:1/0,max:-1/0});for(var P=0;P<x.length;P++)for(var N=x[P],z=0;z<L;z++){var I=M[z],O=N[S[z]];I.min>O&&(I.min=O),I.max<O&&(I.max=O)}for(var P=0;P<L;P++)M[P].span=M[P].max-M[P].min;return M}return{OutputType:a,hierarchicalKMeans:r}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(3),A=m.isArray,E=m.size,c=n(4),g=c.isNumber;function D(e,l){return typeof e=="number"?[e]:e==null?l:e}function i(e,l){l=l||{};var v=l.dimensions,a={};if(v!=null)for(var h=0;h<v.length;h++)a[v[h]]=!0;var u=l.toOneDimensionArray?v?v[0]:0:null;function r(x){return!v||a.hasOwnProperty(x)}if(!A(e))throw new Error("Invalid data type, you should input an array");var s=[],d=E(e);if(d.length===1)for(var h=0;h<d[0];h++){var p=e[h];g(p)&&s.push(p)}else if(d.length===2)for(var h=0;h<d[0];h++){for(var R=!0,p=e[h],F=0;F<d[1];F++)r(F)&&!g(p[F])&&(R=!1);R&&s.push(u!=null?p[u]:p)}return s}function y(e){var l=e.toString(),v=l.indexOf(".");return v<0?0:l.length-1-v}return{normalizeDimensions:D,dataPreprocess:i,getPrecision:y}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=Object.prototype.toString,A=Array.prototype,E=A.map;function c(a){for(var h=[];g(a);)h.push(a.length),a=a[0];return h}function g(a){return m.call(a)==="[object Array]"}function D(a,h){for(var u=[],r=0;r<a;r++){u[r]=[];for(var s=0;s<h;s++)u[r][s]=0}return u}function i(a){for(var h=0,u=0;u<a.length;u++)h+=a[u];return h}function y(a,h){for(var u=0,r=0;r<a.length;r++)u+=a[r][h];return u}function e(a,h){return a>h?1:a<h?-1:a===h?0:NaN}function l(a,h,u,r){for(u==null&&(u=0),r==null&&(r=a.length);u<r;){var s=Math.floor((u+r)/2),d=e(a[s],h);if(d>0)r=s;else if(d<0)u=s+1;else return s+1}return u}function v(a,h,u){if(a&&h){if(a.map&&a.map===E)return a.map(h,u);for(var r=[],s=0,d=a.length;s<d;s++)r.push(h.call(u,a[s],s,a));return r}}return{size:c,isArray:g,zeros:D,sum:i,sumOfColumn:y,ascending:e,bisect:l,map:v}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){function m(c){return c=c===null?NaN:+c,typeof c=="number"&&!isNaN(c)}function A(c){return isFinite(c)&&c===Math.round(c)}function E(c){if(c===0)return 0;var g=Math.floor(Math.log(c)/Math.LN10);return c/Math.pow(10,g)>=10&&g++,g}return{isNumber:m,isInteger:A,quantityExponent:E}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.dataPreprocess,E=m.normalizeDimensions,c={linear:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=i.length,s=0;s<r;s++){var d=i[s];v+=d[e],a+=d[l],h+=d[e]*d[l],u+=d[e]*d[e]}for(var p=(r*h-v*a)/(r*u-v*v),R=a/r-p*v/r,F=[],x=0;x<i.length;x++){var d=i[x],S=d.slice();S[e]=d[e],S[l]=p*d[e]+R,F.push(S)}var M="y = "+Math.round(p*100)/100+"x + "+Math.round(R*100)/100;return{points:F,parameter:{gradient:p,intercept:R},expression:M}},linearThroughOrigin:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0;h<i.length;h++){var u=i[h];v+=u[e]*u[e],a+=u[e]*u[l]}for(var r=a/v,s=[],d=0;d<i.length;d++){var u=i[d],p=u.slice();p[e]=u[e],p[l]=u[e]*r,s.push(p)}var R="y = "+Math.round(r*100)/100+"x";return{points:s,parameter:{gradient:r},expression:R}},exponential:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=0,s=0,d=0;d<i.length;d++){var p=i[d];v+=p[e],a+=p[l],s+=p[e]*p[l],h+=p[e]*p[e]*p[l],u+=p[l]*Math.log(p[l]),r+=p[e]*p[l]*Math.log(p[l])}for(var R=a*h-s*s,F=Math.pow(Math.E,(h*u-s*r)/R),x=(a*r-s*u)/R,S=[],M=0;M<i.length;M++){var p=i[M],L=p.slice();L[e]=p[e],L[l]=F*Math.pow(Math.E,x*p[e]),S.push(L)}var P="y = "+Math.round(F*100)/100+"e^("+Math.round(x*100)/100+"x)";return{points:S,parameter:{coefficient:F,index:x},expression:P}},logarithmic:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=0;r<i.length;r++){var s=i[r];v+=Math.log(s[e]),a+=s[l]*Math.log(s[e]),h+=s[l],u+=Math.pow(Math.log(s[e]),2)}for(var d=(r*a-h*v)/(r*u-v*v),p=(h-d*v)/r,R=[],F=0;F<i.length;F++){var s=i[F],x=s.slice();x[e]=s[e],x[l]=d*Math.log(s[e])+p,R.push(x)}var S="y = "+Math.round(p*100)/100+" + "+Math.round(d*100)/100+"ln(x)";return{points:R,parameter:{gradient:d,intercept:p},expression:S}},polynomial:function(i,y){var e=y.dimensions[0],l=y.dimensions[1],v=y.order;v==null&&(v=2);for(var a=[],h=[],u=v+1,r=0;r<u;r++){for(var s=0,d=0;d<i.length;d++){var p=i[d];s+=p[l]*Math.pow(p[e],r)}h.push(s);for(var R=[],F=0;F<u;F++){for(var x=0,S=0;S<i.length;S++)x+=Math.pow(i[S][e],r+F);R.push(x)}a.push(R)}a.push(h);for(var M=g(a,u),L=[],r=0;r<i.length;r++){for(var P=0,p=i[r],d=0;d<M.length;d++)P+=M[d]*Math.pow(p[e],d);var N=p.slice();N[e]=p[e],N[l]=P,L.push(N)}for(var z="y = ",r=M.length-1;r>=0;r--)r>1?z+=Math.round(M[r]*Math.pow(10,r+1))/Math.pow(10,r+1)+"x^"+r+" + ":r===1?z+=Math.round(M[r]*100)/100+"x + ":z+=Math.round(M[r]*100)/100;return{points:L,parameter:M,expression:z}}};function g(i,y){for(var e=0;e<i.length-1;e++){for(var l=e,v=e+1;v<i.length-1;v++)Math.abs(i[e][v])>Math.abs(i[e][l])&&(l=v);for(var a=e;a<i.length;a++){var h=i[a][e];i[a][e]=i[a][l],i[a][l]=h}for(var u=e+1;u<i.length-1;u++)for(var r=i.length-1;r>=e;r--)i[r][u]-=i[r][e]/i[e][e]*i[e][u]}for(var s=new Array(y),d=i.length-1,v=i.length-2;v>=0;v--){for(var h=0,e=v+1;e<i.length-1;e++)h+=i[e][v]*s[e];s[v]=(i[d][v]-h)/i[v][v]}return s}var D=function(i,y,e){var l=typeof e=="number"?{order:e}:e||{},v=E(l.dimensions,[0,1]),a=A(y,{dimensions:v}),h=c[i](a,{order:l.order,dimensions:v}),u=v[0];return h.points.sort(function(r,s){return r[u]-s[u]}),h};return D}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m={};return m.max=n(7),m.deviation=n(8),m.mean=n(10),m.median=n(12),m.min=n(14),m.quantile=n(13),m.sampleVariance=n(9),m.sum=n(11),m}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){for(var g=-1/0,D=0;D<c.length;D++)A(c[D])&&c[D]>g&&(g=c[D]);return g}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(9);return function(A){var E=m(A);return E&&Math.sqrt(E)}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber,E=n(10);function c(g){var D=g.length;if(!D||D<2)return 0;if(g.length>=2){for(var i=E(g),y=0,e,l=0;l<g.length;l++)A(g[l])&&(e=g[l]-i,y+=e*e);return y/(g.length-1)}}return c}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(11);function A(E){var c=E.length;return c?m(E)/E.length:0}return A}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){var g=c.length;if(!g)return 0;for(var D=0,i=0;i<g;i++)A(c[i])&&(D+=c[i]);return D}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(13);function A(E){return m(E,.5)}return A}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){return function(m,A){var E=m.length;if(!E)return 0;if(A<=0||E<2)return m[0];if(A>=1)return m[E-1];var c=(E-1)*A,g=Math.floor(c),D=m[g],i=m[g+1];return D+(i-D)*(c-g)}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){for(var g=1/0,D=0;D<c.length;D++)A(c[D])&&c[D]<g&&(g=c[D]);return g}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(7),A=n(14),E=n(13),c=n(8),g=n(2),D=g.dataPreprocess,i=g.normalizeDimensions,y=n(3),e=y.ascending,l=y.map,v=n(16),a=y.bisect,h=n(17);function u(W,d){for(var p=typeof d=="string"?{method:d}:d||{},R=p.method==null?r.squareRoot:r[p.method],F=i(p.dimensions),x=D(W,{dimensions:F,toOneDimensionArray:!0}),S=m(x),M=A(x),L=R(x,M,S),P=h(M,S,L),N=P.step,z=P.toFixedPrecision,I=v(+(Math.ceil(M/N)*N).toFixed(z),+(Math.floor(S/N)*N).toFixed(z),N,z),O=I.length,U=new Array(O+1),T=0;T<=O;T++)U[T]={},U[T].sample=[],U[T].x0=T>0?I[T-1]:I[T]-M===N?M:I[T]-N,U[T].x1=T<O?I[T]:S-I[T-1]===N?S:I[T-1]+N;for(var T=0;T<x.length;T++)M<=x[T]&&x[T]<=S&&U[a(I,x[T],0,O)].sample.push(x[T]);var W=l(U,function(q){return[+((q.x0+q.x1)/2).toFixed(z),q.sample.length,q.x0,q.x1,q.x0+" - "+q.x1]}),w=l(U,function(q){return[q.x0,q.x1,q.sample.length]});return{bins:U,data:W,customData:w}}var r={squareRoot:function(s){var d=Math.ceil(Math.sqrt(s.length));return d>50?50:d},scott:function(s,d,p){return Math.ceil((p-d)/(3.5*c(s)*Math.pow(s.length,-1/3)))},freedmanDiaconis:function(s,d,p){return s.sort(e),Math.ceil((p-d)/(2*(E(s,.75)-E(s,.25))*Math.pow(s.length,-1/3)))},sturges:function(s){return Math.ceil(Math.log(s.length)/Math.LN2)+1}};return u}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.getPrecision;return function(E,c,g,D){var i=arguments.length;i<2?(c=E,E=0,g=1):i<3?g=1:i<4?(g=+g,D=A(g)):D=+D;for(var y=Math.ceil(((c-E)/g).toFixed(D)),e=new Array(y+1),l=0;l<y+1;l++)e[l]=+(E+l*g).toFixed(D);return e}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4);return function(A,E,c){var g=Math.abs(E-A)/c,D=m.quantityExponent(g),i=Math.pow(10,D),y=g/i;y>=Math.sqrt(50)?i*=10:y>=Math.sqrt(10)?i*=5:y>=Math.sqrt(2)&&(i*=2);var e=D<0?-D:0,l=+(E>=A?i:-i).toFixed(e);return{step:l,toFixedPrecision:e}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(5),A=n(19),E=2;return{type:"ecStat:regression",transform:function(g){var D=g.upstream,i=g.config||{},y=i.method||"linear",e=m(y,D.cloneRawData(),{order:i.order,dimensions:A.normalizeExistingDimensions(g,i.dimensions)}),l=e.points,v=i.formulaOn;v==null&&(v="end");var a;if(v!=="none"){for(var h=0;h<l.length;h++)l[h][E]=v==="start"&&h===0||v==="all"||v==="end"&&h===l.length-1?e.expression:"";a=D.cloneAllDimensionInfo(),a[E]={}}return[{dimensions:a,data:l}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(3),A=n(4),E=n(20);function c(D,i){if(i==null)return;var y=D.upstream;if(m.isArray(i)){for(var e=[],l=0;l<i.length;l++){var v=y.getDimensionInfo(i[l]);a(v,i[l]),e[l]=v.index}return e}else{var v=y.getDimensionInfo(i);return a(v,i),v.index}function a(h,u){if(!h)throw new Error("Can not find dimension by "+u)}}function g(D){if(m.isArray(D)){for(var i=[],y=[],e=0;e<D.length;e++){var l=v(D[e]);i.push(l.name),y.push(l.index)}return{name:i,index:y}}else if(D!=null)return v(D);function v(a){if(A.isNumber(a))return{index:a};if(E.isObject(a)&&A.isNumber(a.index))return a;throw new Error("Illegle new dimensions config. Expect `{ name: string, index: number }`.")}}return{normalizeExistingDimensions:c,normalizeNewDimensions:g}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){function m(E,c){if(Object.assign)Object.assign(E,c);else for(var g in c)c.hasOwnProperty(g)&&(E[g]=c[g]);return E}function A(E){const c=typeof E;return c==="function"||!!E&&c==="object"}return{extend:m,isObject:A}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(15),A=n(19);return{type:"ecStat:histogram",transform:function(c){var g=c.upstream,D=c.config||{},i=m(g.cloneRawData(),{method:D.method,dimensions:A.normalizeExistingDimensions(c,D.dimensions)});return[{dimensions:["MeanOfV0V1","VCount","V0","V1","DisplayableName"],data:i.data},{data:i.customData}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(1),A=n(4),E=n(19),c=A.isNumber;return{type:"ecStat:clustering",transform:function(D){var i=D.upstream,y=D.config||{},e=y.clusterCount;if(!c(e)||e<=0)throw new Error('config param "clusterCount" need to be specified as an interger greater than 1.');if(e===1)return[{},{data:[]}];var l=E.normalizeNewDimensions(y.outputClusterIndexDimension),v=E.normalizeNewDimensions(y.outputCentroidDimensions);if(l==null)throw new Error("outputClusterIndexDimension is required as a number.");for(var a=m.hierarchicalKMeans(i.cloneRawData(),{clusterCount:e,stepByStep:!1,dimensions:E.normalizeExistingDimensions(D,y.dimensions),outputType:m.OutputType.SINGLE,outputClusterIndexDimension:l.index,outputCentroidDimensions:(v||{}).index}),h=i.cloneAllDimensionInfo(),u=[],r=0;r<h.length;r++){var s=h[r];u.push(s.name)}if(u[l.index]=l.name,v)for(var r=0;r<v.index.length;r++)v.name[r]!=null&&(u[v.index[r]]=v.name[r]);return[{dimensions:u,data:a.data},{data:a.centroids}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)})])})})(k)),k.exports}var un,xn;function Kn(){return xn||(xn=1,un=Bn()),un}var Wn=Kn();const bn=Q.getDefaultExportFromCjs(Wn),Vn={DEFAULT_ICON:pn.DEFAULT_ICON,ACTIVE_ICON:pn.ACTIVE_ICON,NAME_CN:"风向图",NAME_EN:"Wind Line",ORDER:5,PLATFORM:["pc","screen","mobile"]},Xn={titleColor:"#111",bgColor:"#fff",textColor:"#111",lineColor:"#314656",top:30,bottom:40,left:20,right:20,radiusSize:8,textSize:12,points:30,isHideTitle:!1,isSmooth:!1},yn=[{name:"参数一",项目编号:"",object_id:""}],qn=["name","项目编号"],Yn=["index","deviation","stability","balance","increment","risk"],Hn=1,Gn={useAlias:!1,null:{type:"0",value:""},multiObject:!1,hideMultiObject:!0,source:"index"},Jn={DEFAULT:Vn,OPTIONS:Xn,DATA:yn,PARAMS:qn,SOURCE:Yn,ITEMS:Hn,COMMON:Gn},Zn=K.defineComponent(gn(mn({},Jn),{__name:"windLin",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(X){sn.use([sn.install,Ln.install,zn.install,Fn.install,Rn.install,Pn.install,sn.install$1,On.installUniversalTransition]);const b=K.ref(K.inject("session",null)),{proxy:o}=K.getCurrentInstance(),f="windlin_"+Math.random().toString(16).substring(4,12);let n=null,t=null;const C=X;let m=[];class A extends on.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),lineColor:this.getOptionValue("lineColor","#314656"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),isSmooth:this.getOptionValue("isSmooth",!1)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:yn,C.mode==="edit"&&i(),K.nextTick(()=>{let r=document.querySelector("#"+f);r&&(n||(n=En.init(r),t=Q.elementResizeDetectorMaker({strategy:"scroll"}),t.listenTo(r,()=>n==null?void 0:n.resize())),n.setOption(D(),!0))})}onPreview(){a.preview()}cleanup(){t&&t.uninstall(document.querySelector("#"+f)),n&&n.clear(),n&&En.dispose(n),n=null,a.unregister()}}const E=new A(C,"windLin");E.setupLifecycle();const c=E.getStyle(),g=K.computed(()=>In.generateTitleStyle(C.conf.options)),D=()=>{var d,p,R,F;const{data:u,options:r}=C.conf;let s=u[0]||{};return{tooltip:{trigger:"axis",formatter:function(x){return[x[0].value[0],`${s==null?void 0:s.name}: `+x[0].value[1],`${o.$t("setting.gradient")}: `+x[0].value[2]].join("<br>")}},grid:{top:((d=r==null?void 0:r.top)==null?void 0:d.value)||30,bottom:((p=r==null?void 0:r.bottom)==null?void 0:p.value)||40,left:((R=r==null?void 0:r.left)==null?void 0:R.value)||20,right:((F=r==null?void 0:r.right)==null?void 0:F.value)||20,containLabel:!0},xAxis:{type:"time",splitLine:{lineStyle:{color:"#ddd"}}},yAxis:[{axisLine:{lineStyle:{color:"#666"}},splitNumber:4}],visualMap:{type:"piecewise",show:!1,orient:"horizontal",left:"center",bottom:10,pieces:[{lt:0,color:"#18BF12"},{gte:0,lte:0,color:"#f4e9a3"},{gte:0,color:"#D33C3E"}],seriesIndex:1,dimension:2},dataZoom:[{type:"slider",xAxisIndex:0,start:80,end:100,height:15,bottom:15},{type:"inside"}],series:[{type:"line",yAxisIndex:0,showSymbol:!1,emphasis:{scale:!1},symbolSize:10,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:c.value.lineColor},{offset:1,color:c.value.lineColor+"00"}]}},lineStyle:{color:c.value.lineColor},itemStyle:{color:c.value.lineColor},encode:{x:0},data:m,z:2,smooth:c.value.isSmooth},{type:"custom",renderItem:e,data:m,z:10}]}},i=()=>{var R,F;const u=Q.hasDataSource(C.conf);m=[];let r=[];const{options:s}=C.conf;let d=(F=(R=s==null?void 0:s.points)==null?void 0:R.value)!=null?F:30,p=Q.getxAxisDataTime(d,C.mode,u);if(!p.length){m=[];return}for(let x=0;x<d;x++){let S=Math.floor(Math.random()*200);r.push([p[x],S])}m=y(r)},y=u=>u.map((r,s)=>{var d;if(s===u.length-1)r[2]=0;else{let p=bn.regression("linear",[[s+1,r[1]],[s+2,u[s+1][1]]],0);r[2]=Math.atan(((d=p.parameter)==null?void 0:d.gradient)||0).toFixed(4)}return r}),e=(u,r)=>{const s=r.coord([r.value(0),0]),d=16;return{type:"path",shape:{pathData:"M31 16l-15-15v9h-26v12h26v9z",x:-d/2,y:-d/2,width:d,height:d},rotation:r.value(2),position:s,style:r.style({stroke:"#555",lineWidth:1})}},l=u=>{if(!Q.hasDataSource(C.conf))return;const{data:r}=C.conf;let s=Q.handleNullData(u,C,"history");if(!s.history.length)return;let d=s.history[0],p=[];d.forEach(R=>{let F=R[r[0].fv]||0;p.push([R.time,F])}),m=y(p),n==null||n.setOption(D())},v=u=>{Q.hasDataSource(C.conf)},a={preview:()=>on.preview(C,b.value,l,v,"windLin"),unregister:()=>on.unregister(C,b.value)};K.watchEffect(()=>{C.conf.socketData&&v(C.conf.socketData)});const h=C.conf;return(u,r)=>(K.openBlock(),K.createElementBlock("div",{class:"mix-component",style:K.normalizeStyle({background:K.unref(c).bgColor,borderRadius:`${K.unref(c).radiusSize}px`})},[K.createElementVNode("div",{class:"mix-title",style:K.normalizeStyle(g.value)},K.toDisplayString(K.unref(h).caption||K.unref(h).name),5),K.createElementVNode("div",{class:"mix-body"},[K.createElementVNode("div",{class:"w-full h-full",id:f})]),K.renderSlot(u.$slots,"default",{},void 0,!0)],4))}})),Qn=Q._export_sfc(Zn,[["__scopeId","data-v-4e09b728"]]);exports.default=Qn;
|
|
@@ -11,8 +11,8 @@ var hn = (V, W, o) => W in V ? yn(V, W, { enumerable: !0, configurable: !0, writ
|
|
|
11
11
|
return V;
|
|
12
12
|
}, dn = (V, W) => Mn(V, Sn(W));
|
|
13
13
|
import { defineComponent as Cn, ref as Tn, inject as Pn, getCurrentInstance as In, computed as Ln, watchEffect as zn, openBlock as Fn, createElementBlock as Rn, normalizeStyle as gn, unref as $, createElementVNode as an, toDisplayString as Un, renderSlot as On, nextTick as Bn } from "vue";
|
|
14
|
-
import { B as Kn, u as Wn, p as bn } from "./BaseComponent-
|
|
15
|
-
import { k as Vn, J as Xn, K as on, L as Yn, G as Hn, _ as Gn } from "./index-
|
|
14
|
+
import { B as Kn, u as Wn, p as bn } from "./BaseComponent-Dwhb9Mde.js";
|
|
15
|
+
import { k as Vn, J as Xn, K as on, L as Yn, G as Hn, _ as Gn } from "./index-YNdVib_6.js";
|
|
16
16
|
import { g as Jn } from "./titleStyle-BT5GlpAb.js";
|
|
17
17
|
import { A as Zn, D as Qn } from "./ele-aqi-icon-DsYfU5th.js";
|
|
18
18
|
import { i as qn } from "./install-CJ_UX-RT.js";
|
package/package.json
CHANGED
package/dist/dzc-DK16oTVj.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var z=Object.defineProperty,v=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var O=(a,e,s)=>e in a?z(a,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[e]=s,h=(a,e)=>{for(var s in e||(e={}))N.call(e,s)&&O(a,s,e[s]);if(b)for(var s of b(e))q.call(e,s)&&O(a,s,e[s]);return a},S=(a,e)=>v(a,D(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("./index-77aUdspY.cjs");require("element-plus");const F=require("./EChartComponentBase-D9EUh4BZ.cjs"),L=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-dzc-icon-h5wOUHF0.cjs"),y=require("./installCanvasRenderer-CyhM1Qpl.cjs"),T=require("./install-DV5cEgNV.cjs"),I=require("./install-z6wShIZI.cjs"),R=require("./install-CIT6k8Ga.cjs"),V=require("./install-CltTFs4e.cjs"),$=require("./install-C8buXQPI.cjs"),j=require("./install-CYwVETsi.cjs"),w={class:"mix-body"},M=["id"],k={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"区段数据",NAME_EN:"Section Data",ORDER:4,PLATFORM:["pc","screen","mobile"]},U={titleColor:"#111",textColor:"#111",bgColor:"#fff",upColor:"#FF9E44",downColor:"#FF4683",radiusSize:8,textSize:12,top:20,bottom:40,left:20,right:50,points:100,isSmooth:!1,isHideTitle:!1},B=[{name:"参数一",fv:"",object_id:""}],G=["name","fv","object_id","source"],P=["mosaic","statistics","calculate"],H=1,Z={useAlias:!1,null:{type:"0",value:""},multiObject:!1,source:"mosaic",rate:{checked:!1,value:1}},J={DEFAULT:k,OPTIONS:U,DATA:B,PARAMS:G,SOURCE:P,ITEMS:H,COMMON:Z},K=o.defineComponent(S(h({},J),{__name:"dzc",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){y.use([T.install,I.install,R.install,V.install,y.install,$.install,y.install$1,j.install]);const e=a;class s extends F.EChartComponentBase{extractStyles(){return S(h({},super.extractStyles()),{upColor:this.getOptionValue("upColor","#FF9E44"),downColor:this.getOptionValue("downColor","#FF4683"),isSmooth:this.getOptionValue("isSmooth",!1)})}getChartOption(){const t=this.Style.value,l=this.props.conf.data[0]||{};return{tooltip:{trigger:"axis",textStyle:{fontSize:t.textSize}},legend:{show:!0,data:[l.name||""],right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!0},dataZoom:[{type:"slider",start:80,end:100,height:20,bottom:15,left:60,right:60,textStyle:{color:t.textColor}},{type:"inside",start:0,end:20}],xAxis:[{type:"category",boundaryGap:!1,data:this.getTimeAxis(),axisLabel:{formatter:n=>n.includes(" ")?n.replace(" ",`
|
|
2
|
-
`):n,color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}}}],yAxis:{type:"value",boundaryGap:[0,"20%"],splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}}},series:this.formatSeries()}}areaGradient(t,l){return{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:t},{offset:1,color:l}]}}formatSeries(){const t=this.Style.value,l=this.props.conf.data[0]||{},n=this.areaGradient(t.upColor,t.downColor);return[{name:l.name||"",type:"line",smooth:t.isSmooth,sampling:"average",itemStyle:{color:p.COLORS[0]},lineStyle:{color:p.COLORS[0]},areaStyle:{color:n},data:p.getRandomArr({num:t.points,max:200,min:0,mode:this.props.mode,hasDataSource:this.hasData()})}]}setSocketData(t){if(!this.hasData()||!this.chartObj||!t)return;const{data:l,common:n}=this.props.conf,m=n.source||"mosaic",c=this.chartObj.getOption();l.forEach((i,r)=>{const u=this.extractDataValue(t,i.fv),g=["statistics","calculate"].includes(m)?t.start_time:t.datetime;g!=null&&(r===0&&c.xAxis[0].data.push(g),c.series[r].data.push(u))});const d=p.addRealtimeData(c.xAxis[0].data,c.series.map(i=>i.data));c.xAxis[0].data=d.times.slice(-this.Style.value.points),c.series.forEach((i,r)=>{var u;i.data=((u=d.data[r])==null?void 0:u.slice(-this.Style.value.points))||[]}),this.updateChart(c)}setHistoryData(t){var d;if(!t||!(t!=null&&t.length))return;const l=t[0];if(!((d=l==null?void 0:l.time)!=null&&d.length))return;const n=this.chartObj.getOption(),m=Number(this.Style.value.points)||100,c=i=>{if(i==null||i===""||i==="-")return null;const r=Number(i);return Number.isFinite(r)?r:null};n.xAxis[0].data=l.time.slice(-m),t.forEach((i,r)=>{if(!n.series[r])return;const u=i.data||[];n.series[r].data=u.map(c).slice(-m)}),this.updateChart(n)}}const f=new s(e,"dzc");f.setupLifecycle();const x=f.getStyle(),_=f.getEchartId(),A=o.computed(()=>L.generateTitleStyle(e.conf.options));return(C,t)=>(o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(x).bgColor,borderRadius:`${o.unref(x).radiusSize}px`})},[o.createElementVNode("div",{class:"mix-title",style:o.normalizeStyle(A.value)},o.toDisplayString(a.conf.caption||a.conf.name),5),o.createElementVNode("div",w,[o.createElementVNode("div",{class:"w-full h-full",id:o.unref(_)},null,8,M)]),o.renderSlot(C.$slots,"default",{},void 0,!0)],4))}})),Q=p._export_sfc(K,[["__scopeId","data-v-f16a7768"]]);exports.default=Q;
|
package/dist/mxa-BzdI7BLB.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var v=Object.defineProperty,N=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var O=(i,o,l)=>o in i?v(i,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[o]=l,h=(i,o)=>{for(var l in o||(o={}))L.call(o,l)&&O(i,l,o[l]);if(g)for(var l of g(o))T.call(o,l)&&O(i,l,o[l]);return i},S=(i,o)=>N(i,D(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),m=require("./index-77aUdspY.cjs");require("element-plus");const z=require("./EChartComponentBase-D9EUh4BZ.cjs"),I=require("./titleStyle-NSnz6cUg.cjs"),A=require("./ele-mxa-icon-fgN0MLnh.cjs"),x=require("./installCanvasRenderer-CyhM1Qpl.cjs"),R=require("./install-DV5cEgNV.cjs"),q=require("./install-CltTFs4e.cjs"),M=require("./install-C8buXQPI.cjs"),j=require("./install-CYwVETsi.cjs"),V={class:"mix-body"},k=["id"],$={DEFAULT_ICON:A.DEFAULT_ICON,ACTIVE_ICON:A.ACTIVE_ICON,NAME_CN:"双X轴",NAME_EN:"Double X-Axis",ORDER:3,PLATFORM:["pc","screen","mobile"]},w={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,top:20,bottom:10,left:20,right:30,points:50,isSmooth:!1,isHideTitle:!1},B=[{name:"参数一",fv:"",color:"#5793f3",object_id:""},{name:"参数二",fv:"",color:"#d14a61",object_id:""}],F=["name","fv","object_id","color","source"],P=["mosaic","statistics","calculate"],U=2,X={useAlias:!1,null:{type:"0",value:""},multiObject:!1,showBothModes:!0,source:"mosaic",rate:{checked:!1,value:1}},H={DEFAULT:$,OPTIONS:w,DATA:B,PARAMS:F,SOURCE:P,ITEMS:U,COMMON:X},G=s.defineComponent(S(h({},H),{__name:"mxa",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){x.use([R.install,q.install,x.install,M.install,x.install$1,j.install]);const o=i;class l extends z.EChartComponentBase{extractStyles(){return S(h({},super.extractStyles()),{isSmooth:this.getOptionValue("isSmooth",!1)})}getChartOption(){const t=this.Style.value,{data:a}=this.props.conf;return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}},textStyle:{fontSize:t.textSize}},legend:{show:!0,data:a.map(n=>n.name),right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!0},xAxis:this.formatXAxis(),yAxis:{type:"value",splitNumber:4,splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}}},series:this.formatSeries()}}formatXAxis(){const t=this.Style.value;return this.props.conf.data.map((a,n)=>({type:"category",boundaryGap:!1,data:this.getTimeAxis(),axisLabel:{formatter:u=>u.includes(" ")?u.replace(" ",`
|
|
2
|
-
`):u,color:t.textColor,fontSize:t.textSize},axisLine:{onZero:!1,lineStyle:{color:a.color||m.COLORS[n]}},axisTick:{alignWithLabel:!0}}))}formatSeries(){const t=this.Style.value;return this.props.conf.data.map((a,n)=>({type:"line",name:a.name,xAxisIndex:n,smooth:t.isSmooth,itemStyle:{color:a.color||m.COLORS[n]},lineStyle:{color:a.color||m.COLORS[n]},data:m.getRandomArr({num:t.points,max:200,min:0,mode:this.props.mode,hasDataSource:this.hasData()})}))}setSocketData(t){if(!this.hasData()||!this.chartObj||!t)return;const{data:a,common:n}=this.props.conf,u=n.source||"mosaic",e=this.chartObj.getOption();a.forEach((c,d)=>{const p=this.extractDataValue(t,c.fv),b=["statistics","calculate"].includes(u)?t.start_time:t.datetime;b!=null&&(e.xAxis[d].data.push(b),e.series[d].data.push(p))});const r=m.addRealtimeData(e.xAxis[0].data,e.series.map(c=>c.data));e.xAxis.forEach(c=>{c.data=r.times.slice(-this.Style.value.points)}),e.series.forEach((c,d)=>{var p;c.data=((p=r.data[d])==null?void 0:p.slice(-this.Style.value.points))||[]}),this.updateChart(e)}setHistoryData(t){if(!t)return;const a=this.chartObj.getOption(),n=Number(this.Style.value.points)||50,u=e=>{if(e==null||e===""||e==="-")return null;const r=Number(e);return Number.isFinite(r)?r:null};t.forEach((e,r)=>{var d;if(!a.xAxis[r]||!a.series[r]||!((d=e.time)!=null&&d.length))return;a.xAxis[r].data=e.time.slice(-n);const c=e.data||[];a.series[r].data=c.map(u).slice(-n)}),this.updateChart(a)}}const f=new l(o,"mxa");f.setupLifecycle();const y=f.getStyle(),E=f.getEchartId(),_=s.computed(()=>I.generateTitleStyle(o.conf.options));return(C,t)=>(s.openBlock(),s.createElementBlock("div",{class:"mix-component",style:s.normalizeStyle({background:s.unref(y).bgColor,borderRadius:`${s.unref(y).radiusSize}px`})},[s.createElementVNode("div",{class:"mix-title",style:s.normalizeStyle(_.value)},s.toDisplayString(i.conf.caption||i.conf.name),5),s.createElementVNode("div",V,[s.createElementVNode("div",{class:"w-full h-full",id:s.unref(E)},null,8,k)]),s.renderSlot(C.$slots,"default",{},void 0,!0)],4))}})),W=m._export_sfc(G,[["__scopeId","data-v-a2204086"]]);exports.default=W;
|
package/dist/pie-B57zDxJV.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var $=Object.defineProperty,A=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var C=(r,a,c)=>a in r?$(r,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[a]=c,d=(r,a)=>{for(var c in a||(a={}))N.call(a,c)&&C(r,c,a[c]);if(w)for(var c of w(a))j.call(a,c)&&C(r,c,a[c]);return r},f=(r,a)=>A(r,I(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),b=require("./index-77aUdspY.cjs");require("element-plus");const k=require("./EChartComponentBase-D9EUh4BZ.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),S=require("./ele-pie-icon-BNhXPoUT.cjs"),y=require("./installCanvasRenderer-CyhM1Qpl.cjs"),R=require("./install-DV5cEgNV.cjs"),B=require("./install-CltTFs4e.cjs"),T=require("./install-nDY6w-GK.cjs"),q={class:"mix-body"},D=["id"],P={DEFAULT_ICON:S.DEFAULT_ICON,ACTIVE_ICON:S.ACTIVE_ICON,NAME_CN:"饼状图",NAME_EN:"Pie",ORDER:1,PLATFORM:["pc","screen","mobile"]},M={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,type:{value:"pie",type:"radio",option:[{value:"pie",label:"component.options.pie_type_pie"},{value:"circle",label:"component.options.pie_type_circle"}],label:"component.options.pie_type"},radius:{value:50,type:"number",label:"component.options.pie_radius",dependent:"type",repel:"circle"},inside:{value:40,type:"number",label:"component.options.pie_inside",dependent:"type",repel:"pie"},outside:{value:75,type:"number",label:"component.options.pie_outside",dependent:"type",repel:"pie"},isHideTitle:!1,showLabel:!1,showLegend:!0,orient:{value:"horizontal",type:"radio",option:[{value:"horizontal",label:"component.options.orient_horizontal"},{value:"vertical",label:"component.options.orient_vertical"}],label:"component.options.orient",dependent:"showLegend"},showValue:!0,showRate:!1,wrap:!1,wrapByte:{value:5,type:"number",label:"component.options.pie_wrapByte",dependent:"wrap"}},H=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"},{name:"参数二",fv:"",object_id:"",color:"#3bbc6a"},{name:"参数三",fv:"",object_id:"",color:"#e24359"}],F=["name","fv","object_id","color"],U=["mosaic","statistics","calculate"],G={useAlias:!1,multiObject:!1,source:"mosaic"},K={DEFAULT:P,OPTIONS:M,DATA:H,PARAMS:F,SOURCE:U,COMMON:G},X=l.defineComponent(f(d({},K),{__name:"pie",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){y.use([R.install,B.install,y.install,y.install$1,T.install]);const a=r,c=b.useLinkStore(),_={horizontal:{orient:"horizontal",bottom:"5%",left:"center"},vertical:{orient:"vertical",right:"5%",top:"5%"}};class V extends k.EChartComponentBase{initChart(){var e,o;super.initChart(),this.props.mode==="preview"&&((e=this.chartObj)==null||e.off("click"),(o=this.chartObj)==null||o.on("click",t=>{var i,s,p,u,h,O;const n=t==null?void 0:t.name;if(typeof n=="string"&&n){const x=((s=(i=this.props.conf)==null?void 0:i.options)==null?void 0:s.linkChannel)==="custom"?(u=(p=this.props.conf)==null?void 0:p.options)==null?void 0:u.customChannel:(O=(h=this.props.conf)==null?void 0:h.options)==null?void 0:O.linkChannel;c.publish(x||"pie","pie",{objectId:"",deviceId:"",type:"select",fieldKey:n,fv:d({key:n},t),source:"pie"})}}))}extractStyles(){return f(d({},super.extractStyles()),{type:this.getOptionValue("type","pie"),radius:this.getOptionValue("radius",50),inside:this.getOptionValue("inside",40),outside:this.getOptionValue("outside",75),showLabel:this.getOptionValue("showLabel",!1),showLegend:this.getOptionValue("showLegend",!0),orient:this.getOptionValue("orient","horizontal"),showValue:this.getOptionValue("showValue",!0),showRate:this.getOptionValue("showRate",!1),wrap:this.getOptionValue("wrap",!1),wrapByte:this.getOptionValue("wrapByte",5)})}getChartOption(){const e=this.Style.value,{data:o,name:t}=this.props.conf,n=o.map((i,s)=>i.color||b.COLORS[s]);return{title:{show:!1,text:t||"",x:"center"},color:n,tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:f(d({show:e.showLegend},_[e.orient]),{data:o.map(i=>i.name),textStyle:{color:e.textColor}}),series:this.formatSeries()}}formatSeries(){const e=this.Style.value,{data:o,name:t}=this.props.conf,n=o.map(s=>({value:0,name:s.name})),i=e.type==="pie"?`${e.radius}%`:[`${e.inside}%`,`${e.outside}%`];return[{name:t,type:"pie",radius:i,center:["50%","40%"],data:n,emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{color:e.textColor,lineHeight:16,fontSize:e.textSize,formatter:s=>this.formatLabel(s)}}]}formatLabel(e){const o=this.Style.value;let t=e.name;return o.showValue&&o.showRate?t=`${e.name}: ${e.value}(${e.percent}%)`:o.showValue?t=`${e.name}: ${e.value}`:o.showRate&&(t=`${e.name}${e.percent}%`),this.insertBreaks(t)}insertBreaks(e){const o=this.Style.value;if(!o.wrap)return e;const t=o.wrapByte||5;let n="",i=0,s=0;for(const p of e)p.charCodeAt(0)>=19968&&p.charCodeAt(0)<=40959?(s++,i+=2):i+=1,n+=p,(s>=t||i>=t*2)&&(n+=`
|
|
2
|
-
`,s=0,i=0);return n}setHistoryData(e){if(!e||!(e!=null&&e.length))return;const o=this.chartObj.getOption();o.series[0].data.forEach((t,n)=>{var i;t.value=(i=e[n].data[0])!=null?i:0}),this.updateChart(o)}setSocketData(e){if(!e||!this.chartObj)return;const{data:o}=this.props.conf,t=this.chartObj.getOption();o.forEach((n,i)=>{var p,u,h;const s=this.extractDataValue(e,n.fv);(h=(u=(p=t.series)==null?void 0:p[0])==null?void 0:u.data)!=null&&h[i]&&(t.series[0].data[i].value=s!=null?s:0)}),this.updateChart(t)}}const m=new V(a,"pie");m.setupLifecycle();const v=m.getStyle(),E=m.getEchartId(),L=l.computed(()=>z.generateTitleStyle(a.conf.options));return(g,e)=>(l.openBlock(),l.createElementBlock("div",{class:"mix-component",style:l.normalizeStyle({background:l.unref(v).bgColor,borderRadius:`${l.unref(v).radiusSize}px`})},[l.createElementVNode("div",{class:"mix-title",style:l.normalizeStyle(L.value)},l.toDisplayString(r.conf.caption||r.conf.name),5),l.createElementVNode("div",q,[l.createElementVNode("div",{class:"w-full h-full",id:l.unref(E)},null,8,D)]),l.renderSlot(g.$slots,"default",{},void 0,!0)],4))}})),J=b._export_sfc(X,[["__scopeId","data-v-2c38f04d"]]);exports.default=J;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var $=Object.defineProperty,k=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var V=(p,l,r)=>l in p?$(p,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):p[l]=r,T=(p,l)=>{for(var r in l||(l={}))j.call(l,r)&&V(p,r,l[r]);if(U)for(var r of U(l))H.call(l,r)&&V(p,r,l[r]);return p},O=(p,l)=>k(p,B(l));var P=(p,l,r)=>new Promise((y,R)=>{var S=f=>{try{b(r.next(f))}catch(L){R(L)}},A=f=>{try{b(r.throw(f))}catch(L){R(L)}},b=f=>f.done?y(f.value):Promise.resolve(f.value).then(S,A);b((r=r.apply(p,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),q=require("./vue-i18n-BvHMBi_b.cjs"),_=require("./index-77aUdspY.cjs");require("element-plus");const W=require("./EChartComponentBase-D9EUh4BZ.cjs"),Z=require("./titleStyle-NSnz6cUg.cjs"),E=require("./installCanvasRenderer-CyhM1Qpl.cjs"),X=require("./install-DV5cEgNV.cjs"),G=require("./install-CltTFs4e.cjs"),J=require("./install-C8buXQPI.cjs"),K=require("./install-Ch5d8i37.cjs"),Q="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",Y="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",tt={key:0,class:"mix-title-unit"},et={class:"mix-body"},it=["id"],nt={DEFAULT_ICON:Q,ACTIVE_ICON:Y,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1,PLATFORM:["pc","screen","mobile"]},ot={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},st=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],at=["name","fv","object_id","color"],lt=["mosaic"],rt={useAlias:!1,multiObject:!1,source:"mosaic",valueUnit:"",showPlanCompletionRate:!1},ct={DEFAULT:nt,OPTIONS:ot,DATA:st,PARAMS:at,SOURCE:lt,COMMON:rt},ut=a.defineComponent(O(T({},ct),{__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([X.install,G.install,E.install,J.install,E.install$1,K.install]);const l=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 y(c){return String(c).replace(/[|{}]/g,e=>({"|":"|","{":"﹛","}":"﹜"})[e]||e)}class R extends W.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 d,m,x;this.ensureCommonFields();const e=this.props.conf.common,t=(d=this.props.conf.data)==null?void 0:d[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=(m=this.props.conf.options)==null?void 0:m.valueUnit,n=i!=null&&typeof i=="object"&&"value"in i?i.value:i;(!e.valueUnit||String(e.valueUnit).trim()==="")&&n!==void 0&&n!==null&&String(n).trim()!==""&&(e.valueUnit=String(n));const o=(x=this.props.conf.options)==null?void 0:x.showPlanCompletionRate,u=o!=null&&typeof o=="object"&&"value"in o?o.value:o;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 o of i){if(o==null||o==="")continue;const u=t.indexOf(String(o));if(u!==-1)return u}const n=e==null?void 0:e.dataIndex;return typeof n=="number"&&n>=0&&n<t.length?n:Math.min(Math.max(0,n!=null?n:0),Math.max(0,t.length-1))}extractStyles(){return O(T({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){return P(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.migrateLegacyDisplayOptions(),this.initChartData(),yield a.nextTick(),this.initChart()})}initChart(){super.initChart(),requestAnimationFrame(()=>{this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)})}initChartData(){var o,u;const e=this.props.conf,t=this.CHART.rawValues,i=this.CHART.items,n=t.length===((o=e.data)==null?void 0:o.length)&&i.length===((u=e.data)==null?void 0:u.length)&&i.every((d,m)=>{var x;return d===((x=e.data[m])==null?void 0:x.name)});this.CHART={rawValues:[],items:[],colors:[],times:[]},e.data.forEach((d,m)=>{const x=_.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(d.color||_.COLORS[m]),d.value!==void 0&&d.value!==""?this.CHART.rawValues.push(d.value):n&&t[m]!==void 0&&t[m]!==""?this.CHART.rawValues.push(t[m]):this.CHART.rawValues.push(x[0]),this.CHART.items.push(d.name)})}buildSeriesAndMax(){const e=this.isPlanCompletionRateEnabled(),t=this.CHART.rawValues.map(o=>this.parseNumericRaw(o)).filter(o=>o!==null),i=t.length?Math.max(...t):0;return{seriesData:this.CHART.rawValues.map(o=>{const u=this.parseNumericRaw(o);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,n=this.isPlanCompletionRateEnabled(),{seriesData:o,maxNumeric:u}=this.buildSeriesAndMax(),d={pct:{color:"#000000",fontSize:t.textSize,align:"right",padding:[0,0,0,10]}};i.colors.forEach((s,g)=>{d[`raw${g}`]={color:s||"#5470c6",fontSize:t.textSize,align:"right",fontWeight:500}});const m=s=>{const g=this.resolveBarItemIndex(s),C=i.rawValues[g];if(n&&u>0){const v=this.parseNumericRaw(C),w=y(String(C)),F=v!==null&&u>0?`${Math.round(v/u*100)}%`:"";return`{raw${g}|${w}}{pct|${y(F)}}`}return`{raw${g}|${y(String(C))}}`},x=108,M=s=>{var v,w;const g=(w=(v=e.chartObj)==null?void 0:v.getWidth())!=null?w:0;return!g||!s.labelRect?{}:{x:g-12,y:s.labelRect.y+s.labelRect.height/2,verticalAlign:"middle",align:"right"}},z=t.direction==="x"?t.right+x:t.right;let h={grid:{top:t.top,bottom:t.bottom,left:t.left,right:z,containLabel:!1},tooltip:{show:!0,formatter:s=>{const g=this.resolveBarItemIndex(s),C=i.rawValues[g],v=this.parseNumericRaw(C);let w=`${s.name}:`;return n&&u>0&&v!==null?w+=`${C}(${Math.round(v/u*100)}%)`:w+=String(C),w}},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
|
-
`+s.substr(5):s,color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}},splitLine:{lineStyle:{}},animationDuration:300,animationDurationUpdate:300},series:[{realtimeSort:t.realSort,type:"bar",barWidth:t.barWidth+"%",data:o,labelLayout:M,label:{show:!0,position:"right",align:"right",verticalAlign:"middle",valueAnimation:!0,color:t.textColor,fontSize:t.textSize,rich:d,formatter:m},itemStyle:{color:s=>i.colors[this.resolveBarItemIndex(s)]||"#5470c6"}}],animationDuration:0,animationDurationUpdate:500,animationEasing:"linear",animationEasingUpdate:"linear"};return t.direction==="x"?(h.yAxis.data=i.items,t.realSort&&(h.yAxis.inverse=t.sortType==="desc"),h.series[0].label.position="right",h.series[0].label.align="right",h.xAxis.splitLine.lineStyle.type="dashed",n&&u>0&&(h.xAxis.max=100,h.xAxis.axisLabel.formatter=s=>`${s}%`)):(h.xAxis.data=i.items,t.realSort&&(h.xAxis.inverse=t.sortType==="asc"),h.series[0].label.position="top",h.series[0].label.align="right",h.yAxis.splitLine.lineStyle.type="dashed",delete h.yAxis.type,n&&u>0&&(h.yAxis.max=100,h.yAxis.axisLabel.formatter=s=>`${s}%`)),h}setSocketData(e){if(!this.hasData()||!e||!this.chartObj)return;const{data:t}=this.props.conf;this.CHART.rawValues=[],t.forEach(n=>{const o=this.extractDataValue(e,n.fv);this.CHART.rawValues.push(o!=null?o:"--")});const{seriesData:i}=this.buildSeriesAndMax();this.chartObj.setOption({series:[{data:i}]})}}const S=new R(l,"raceBar");S.setupLifecycle();const A=S.getStyle(),b=S.getEchartId(),f=l.conf,{t:L}=q.useI18n(),D=a.computed(()=>{var n;const c=((n=l.conf)==null?void 0:n.common)||{},e=String(c.valueUnit||"").trim(),t=!!c.showPlanCompletionRate,i=[];return e&&i.push(e),t&&i.push(L("component.options.showPlanCompletionRate")),i.join(" / ")}),N=a.computed(()=>{const c=Z.generateTitleStyle(l.conf.options);return c.display==="none"?c:O(T({},c),{display:"flex",alignItems:"center",gap:"8px",textAlign:"initial"})}),I=a.computed(()=>{var e;const c=((e=l.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)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(A).bgColor,borderRadius:`${a.unref(A).radiusSize}px`})},[a.createElementVNode("div",{class:"mix-title",style:a.normalizeStyle(N.value)},[a.createElementVNode("span",{class:"mix-title-caption",style:a.normalizeStyle(I.value)},a.toDisplayString(a.unref(f).caption||a.unref(f).name),5),D.value?(a.openBlock(),a.createElementBlock("span",tt,a.toDisplayString(D.value),1)):a.createCommentVNode("",!0)],4),a.createElementVNode("div",et,[a.createElementVNode("div",{class:"w-full h-full",id:a.unref(b)},null,8,it)]),a.renderSlot(c.$slots,"default",{},void 0,!0)],4))}})),ht=_._export_sfc(ut,[["__scopeId","data-v-a7136add"]]);exports.default=ht;
|