mixdashboards 1.0.74 → 1.0.76
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-BmhMoM4H.cjs +1 -0
- package/dist/{BaseComponent-NnwLq7Cf.js → BaseComponent-CQaDWNO0.js} +10 -10
- package/dist/{EChartComponentBase-D7_ZiE7P.cjs → EChartComponentBase-D9EUh4BZ.cjs} +1 -1
- package/dist/{EChartComponentBase-C3gcATBZ.js → EChartComponentBase-i76OGL3z.js} +2 -2
- package/dist/{EmergencyPlanPanel-0EfbQlQm.js → EmergencyPlanPanel-B9S3Ru5-.js} +1 -1
- package/dist/{EmergencyPlanPanel-XDtQc5aN.cjs → EmergencyPlanPanel-BiAHvTfh.cjs} +1 -1
- package/dist/{HistoryPlanDialog-fbBtPeVt.cjs → HistoryPlanDialog-BU4GayEm.cjs} +1 -1
- package/dist/{HistoryPlanDialog-ihGqWXNI.js → HistoryPlanDialog-CbbeFm-i.js} +1 -1
- package/dist/{MonitoringMap-DysFrw3B.js → MonitoringMap-B6tXBdvK.js} +2 -2
- package/dist/{MonitoringMap-UT2OL3ca.cjs → MonitoringMap-FGDoA0fw.cjs} +1 -1
- package/dist/{UniverSheet-DeZ-y5mH.cjs → UniverSheet-D7y2pceH.cjs} +1 -1
- package/dist/{UniverSheet-CMWL98B8.js → UniverSheet-D8sflrTb.js} +2 -2
- package/dist/{accelerationChart-BGjzOc4I.cjs → accelerationChart-DTlwSA0N.cjs} +1 -1
- package/dist/{accelerationChart-JNRxAqU5.js → accelerationChart-bch4O3t-.js} +9 -9
- package/dist/{actionItem-DnrNafUu.js → actionItem-Cw67YwsR.js} +2 -2
- package/dist/{actionItem-DDlL4pxR.cjs → actionItem-cdsgUvaC.cjs} +1 -1
- package/dist/{alarmLevelChart-B4TglthF.cjs → alarmLevelChart-BMjTLxB5.cjs} +1 -1
- package/dist/{alarmLevelChart-D4ZPyGyd.js → alarmLevelChart-BynSRHG2.js} +2 -2
- package/dist/{alertTable-WmivR3n_.cjs → alertTable-3VhkUZSf.cjs} +1 -1
- package/dist/{alertTable-IwL3PIbe.js → alertTable-CiwuaydQ.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-zcElLG44.cjs → aliasObjectSelectorDemo-BLoecZkV.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-DCcqetww.js → aliasObjectSelectorDemo-DfdRxb4I.js} +1 -1
- package/dist/{annualRainfallChart-CNqrXKJZ.js → annualRainfallChart-CHcr4-0D.js} +2 -2
- package/dist/{annualRainfallChart-DspMrDxt.cjs → annualRainfallChart-DKR-A_PT.cjs} +1 -1
- package/dist/{aqi-B1bcKY5p.cjs → aqi-D7VqP1QE.cjs} +1 -1
- package/dist/{aqi-CdGE9-CD.js → aqi-Gu-pAovO.js} +4 -4
- package/dist/{aqiIndass-CuKfMaYn.js → aqiIndass-Bjj6n1aj.js} +18 -18
- package/dist/{aqiIndass-BZpPo1tj.cjs → aqiIndass-nfYUZ3UM.cjs} +1 -1
- package/dist/{areaDeformCurve-bNNNS8Cb.cjs → areaDeformCurve-fpGWmq05.cjs} +1 -1
- package/dist/{areaDeformCurve-Chn4CE8w.js → areaDeformCurve-nwlcUBDv.js} +2 -2
- package/dist/arrayCard-TfcgLrHv.js +139 -0
- package/dist/arrayCard-UoDqAGbN.cjs +1 -0
- package/dist/{audio-YTfr7Lqf.js → audio-BYgGYoEr.js} +2 -2
- package/dist/{audio-BeYg08W5.cjs → audio-DdUv9Ot-.cjs} +1 -1
- package/dist/bar-CkBXc7t1.cjs +2 -0
- package/dist/{bar-YhAAV2al.js → bar-SfGiFl1r.js} +75 -67
- package/dist/{bmp-Uj7Bu61U.js → bmp-BbtdzIrI.js} +2 -2
- package/dist/{bmp-vWIH5Cu7.cjs → bmp-CY-Hb2x1.cjs} +1 -1
- package/dist/{box-Cdzw27uU.cjs → box-B4C_mirv.cjs} +1 -1
- package/dist/{box-C8RIfuID.js → box-CV41cJuX.js} +2 -2
- package/dist/{chartConfigPanel-DLa3heKy.js → chartConfigPanel-D650rSn7.js} +1 -1
- package/dist/{chartConfigPanel-D3voTkdQ.cjs → chartConfigPanel-DBlqAbbH.cjs} +1 -1
- package/dist/{circleBar-Dc_qd4gk.cjs → circleBar-DkV7xPBl.cjs} +1 -1
- package/dist/{circleBar-DUSP-iMF.js → circleBar-U3iXMQr5.js} +2 -2
- package/dist/{clock-0USfNfTc.cjs → clock-CjgMeOhp.cjs} +1 -1
- package/dist/{clock-Dk1zjBcJ.js → clock-zKVUU8pu.js} +2 -2
- package/dist/clt-BsIA-YPQ.js +301 -0
- package/dist/clt-DwI8i7zI.cjs +1 -0
- package/dist/cmc-BX9ichBB.cjs +1 -0
- package/dist/cmc-CgpHejR2.js +275 -0
- package/dist/{cmp-D4ZO7mz7.js → cmp-CS34lG7V.js} +2 -2
- package/dist/{cmp-BPM8lMqg.cjs → cmp-CTqtxzo4.cjs} +1 -1
- package/dist/{conclusionCard-BYR-fH4f.js → conclusionCard-N6pA6Q9P.js} +2 -2
- package/dist/{conclusionCard-BVHHtpxH.cjs → conclusionCard-wvtJmV_8.cjs} +1 -1
- package/dist/{controlList-DsEyes9v.cjs → controlList-BUAMdHA3.cjs} +1 -1
- package/dist/{controlList-DYV1wgUY.js → controlList-Zz5ABe5b.js} +2 -2
- package/dist/{controlRecordList-j0pBrQiU.cjs → controlRecordList-CMR4y_Ml.cjs} +1 -1
- package/dist/{controlRecordList-CBGpB41d.js → controlRecordList-Dx0zj7js.js} +2 -2
- package/dist/controlRecordListAPP-ZDCKmz_8.cjs +1 -0
- package/dist/controlRecordListAPP-bL9oqWzQ.js +569 -0
- package/dist/{crd-C8IqmHc6.cjs → crd-8tMwNlgx.cjs} +1 -1
- package/dist/{crd-Di7EfiY1.js → crd-DZPpD6XY.js} +2 -2
- package/dist/{ctrBtn-BzMHJHA9.js → ctrBtn-6Ql9ulTr.js} +3 -3
- package/dist/{ctrBtn-Cj-AqUKM.cjs → ctrBtn-eCu0UDtW.cjs} +1 -1
- package/dist/{ctrSet-DMkuRDFI.js → ctrSet-BwFVH1Mk.js} +51 -50
- package/dist/{ctrSet-CnDBng-I.cjs → ctrSet-pX-zVivo.cjs} +1 -1
- package/dist/{ctrSwitch-BRfl35Aw.cjs → ctrSwitch-D95SI-aJ.cjs} +1 -1
- package/dist/{ctrSwitch-FJgD05b0.js → ctrSwitch-b6hHf4QF.js} +3 -3
- package/dist/{dataManagement-CXbeNggN.cjs → dataManagement-DubA1TV1.cjs} +1 -1
- package/dist/{dataManagement-CQoqc9Rh.js → dataManagement-VucRLCK4.js} +2 -2
- package/dist/{dataReport-l2SE8HZx.js → dataReport-CALIw14D.js} +2 -2
- package/dist/{dataReport-BkIDOCdC.cjs → dataReport-CkF5J7X1.cjs} +1 -1
- package/dist/{dataTable-jf6qXfJJ.js → dataTable-C1rBH_p9.js} +1 -1
- package/dist/{dataTable-BdttKfHG.cjs → dataTable-C2q_CX5D.cjs} +1 -1
- package/dist/{datetime-eht4XkmD.js → datetime-Cq8scz5Q.js} +2 -2
- package/dist/{datetime-BH9orUUf.cjs → datetime-TBTeWqlf.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-CF_MN7sO.cjs → deepClusterSlipSurface-CFaxRVmM.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-D2d52L50.js → deepClusterSlipSurface-Cm50wbjv.js} +13 -13
- package/dist/{deepDataMatrix-DqbCqz8d.cjs → deepDataMatrix-CAYSav3X.cjs} +1 -1
- package/dist/{deepDataMatrix-DY1WmgGR.js → deepDataMatrix-DyStA98d.js} +13 -13
- package/dist/{deepDisplacement3D-D3-KOmef.cjs → deepDisplacement3D-B3Iju2KK.cjs} +1 -1
- package/dist/{deepDisplacement3D-CuVVhd0X.js → deepDisplacement3D-Bat-Wc3i.js} +2 -2
- package/dist/{deepDisplacementChart-BwBojI9h.cjs → deepDisplacementChart-C-Tr4DdI.cjs} +1 -1
- package/dist/{deepDisplacementChart-DzikjpBz.cjs → deepDisplacementChart-CX9ALM89.cjs} +1 -1
- package/dist/{deepDisplacementChart-C_3eHTmR.js → deepDisplacementChart-CYMpNu_W.js} +3 -3
- package/dist/{deepDisplacementChart-DFosjAQL.js → deepDisplacementChart-D5rHoC9r.js} +26 -26
- package/dist/{deepDisplacementView-gJdi6U9B.cjs → deepDisplacementView-DTSsODJQ.cjs} +1 -1
- package/dist/{deepDisplacementView-BNQaheci.js → deepDisplacementView-DnjwQmEW.js} +1 -1
- package/dist/{deepNodeTemperatureChart-oMknBT7e.cjs → deepNodeTemperatureChart-C9NRJ49Y.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-C5d-tyOA.js → deepNodeTemperatureChart-CLKg72UA.js} +2 -2
- package/dist/{deepTangentAngleChart-C7b7sEab.cjs → deepTangentAngleChart-C9aFSFrD.cjs} +1 -1
- package/dist/{deepTangentAngleChart-C35d0nBR.js → deepTangentAngleChart-DklHYHhm.js} +2 -2
- package/dist/{deepTemperatureField-BnWHpVPm.cjs → deepTemperatureField-CXBL4_LS.cjs} +1 -1
- package/dist/{deepTemperatureField-DbGy0vHS.js → deepTemperatureField-CcnVGgbf.js} +3 -3
- package/dist/{deepTrendChart-DdCYjiWZ.js → deepTrendChart-De7ebpk4.js} +2 -2
- package/dist/{deepTrendChart-D676owsq.cjs → deepTrendChart-OGW08BX-.cjs} +1 -1
- package/dist/{deviceOnlineStatus-DSuaeFZj.cjs → deviceOnlineStatus-DarcMtY4.cjs} +1 -1
- package/dist/{deviceOnlineStatus-BH-2-UBD.js → deviceOnlineStatus-_3Txb8Tg.js} +2 -2
- package/dist/{deviceStatus-ySE9suGE.cjs → deviceStatus-BiJw8rnz.cjs} +1 -1
- package/dist/{deviceStatus-CxjbfqGK.js → deviceStatus-CL6E-pQ0.js} +12 -12
- package/dist/{displacementDataTable-DwutxypE.cjs → displacementDataTable-DmAqr-JK.cjs} +1 -1
- package/dist/{displacementDataTable-CAYYafN7.js → displacementDataTable-tKtGe2xd.js} +17 -17
- package/dist/{displacementTrajectoryChart-zya-qu9n.cjs → displacementTrajectoryChart-DG2YdSqq.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-ClUAsle_.js → displacementTrajectoryChart-Dh6oPB0p.js} +31 -31
- package/dist/{displacementTrendChart-xqe9LMp8.js → displacementTrendChart-BHORe0qO.js} +40 -40
- package/dist/{displacementTrendChart-DZj52qRD.cjs → displacementTrendChart-CT140vXG.cjs} +1 -1
- package/dist/{dxf-Cmr9xmL0.cjs → dxf-CVa4Vfm3.cjs} +1 -1
- package/dist/{dxf-tZgpovsn.js → dxf-CjcHSJq-.js} +2 -2
- package/dist/{dzc-C0VMyvsH.js → dzc-DDXNSuie.js} +6 -6
- package/dist/{dzc-BwCEpLKp.cjs → dzc-DK16oTVj.cjs} +1 -1
- package/dist/{emergencyPlan-CQtYRB5n.cjs → emergencyPlan-D0AMuD-3.cjs} +1 -1
- package/dist/{emergencyPlan-j1icRflR.js → emergencyPlan-Vim4E6h7.js} +3 -3
- package/dist/evn-CdMN8gIC.js +165 -0
- package/dist/evn-D2mdSoFB.cjs +1 -0
- package/dist/{evolutionChart-q9UtSs9r.cjs → evolutionChart-I8XVW05I.cjs} +1 -1
- package/dist/{evolutionChart-C1rPjVsB.js → evolutionChart-P0l6P0Bc.js} +3 -3
- package/dist/{fileViewer-ZO55zvWU.cjs → fileViewer-D7sAA8-W.cjs} +1 -1
- package/dist/{fileViewer-Bj4FYg5G.js → fileViewer-DvntGv0b.js} +2 -2
- package/dist/{filterBar-CIYpcc9y.js → filterBar-8gex5oR-.js} +2 -2
- package/dist/{filterBar-D7js_Q7g.cjs → filterBar-GSTji96g.cjs} +1 -1
- package/dist/{fireCombustionCurve-DEHjb7Lp.js → fireCombustionCurve-B3jAhOft.js} +3 -3
- package/dist/{fireCombustionCurve-CiVXjt9E.cjs → fireCombustionCurve-DrMmHf3N.cjs} +1 -1
- package/dist/{fireFilterBar-BzgnlY5d.js → fireFilterBar-CH6iK0Xg.js} +2 -2
- package/dist/{fireFilterBar-CkQU9Yaf.cjs → fireFilterBar-Dy9DcHij.cjs} +1 -1
- package/dist/{fireHistoryTable-BoAArvjx.js → fireHistoryTable-CHxHqPs0.js} +2 -2
- package/dist/{fireHistoryTable-JCY4nLos.cjs → fireHistoryTable-n6L3juWp.cjs} +1 -1
- package/dist/{gag-DCGVulGC.js → gag-BsO4kmp1.js} +2 -2
- package/dist/{gag-CrUeBa30.cjs → gag-BzjuwBvY.cjs} +1 -1
- package/dist/gasStationList-7JzUcISs.js +1325 -0
- package/dist/gasStationList-QwqTDEAG.cjs +1 -0
- package/dist/{geo3dViewer-BSAjBg2m.cjs → geo3dViewer-Cf-jHpvF.cjs} +1 -1
- package/dist/{geo3dViewer-Du775tJ7.js → geo3dViewer-doEpUC_J.js} +3 -3
- package/dist/{glbModel-2uTNL367.js → glbModel-BgFIj_es.js} +2 -2
- package/dist/{glbModel-Cm1M6hko.cjs → glbModel-C6L--3dO.cjs} +1 -1
- package/dist/{globalObjectSelector-CEpO2o2w.js → globalObjectSelector-CdfiXRjg.js} +1 -1
- package/dist/{globalObjectSelector-W_YToM6x.cjs → globalObjectSelector-P_irB0rv.cjs} +1 -1
- package/dist/{gnssFilterBar-BSHEfiyz.cjs → gnssFilterBar-CIwyv2yc.cjs} +1 -1
- package/dist/{gnssFilterBar-DZYOL5nC.js → gnssFilterBar-DPNshMIx.js} +2 -2
- package/dist/{gnssHistoryTable-naChmXHT.js → gnssHistoryTable-C7x4-Tpp.js} +2 -2
- package/dist/{gnssHistoryTable-Ct98Vz6i.cjs → gnssHistoryTable-j5FL6oYs.cjs} +1 -1
- package/dist/{gnssMapView-DouWOPLF.js → gnssMapView-BWcS4hqj.js} +4 -4
- package/dist/{gnssMapView-CCW4_-Sn.cjs → gnssMapView-_VaJWBcE.cjs} +2 -2
- package/dist/{gnssSectionProfile-hzXQ4KzJ.cjs → gnssSectionProfile-DGbTO7lV.cjs} +1 -1
- package/dist/{gnssSectionProfile-Be-THvQP.js → gnssSectionProfile-hpyiGI-6.js} +2 -2
- package/dist/{gnssTimeSeriesChart-CbMxKxjG.cjs → gnssTimeSeriesChart-CNT6xaNs.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-DoMBz4zf.js → gnssTimeSeriesChart-rL9oG1ly.js} +2 -2
- package/dist/{gnssXYTrajectory-Bg2B89Vw.js → gnssXYTrajectory-B1LZAepw.js} +2 -2
- package/dist/{gnssXYTrajectory-BNwqQna4.cjs → gnssXYTrajectory-CwAjhPRc.cjs} +1 -1
- package/dist/{grd-XTVPofQw.js → grd-BLab9IY0.js} +26 -26
- package/dist/{grd-C-x23C0E.cjs → grd-rJXqEimt.cjs} +1 -1
- package/dist/{grdIndass-CYawTr5K.js → grdIndass-gGrZ7gRV.js} +2 -2
- package/dist/{grdIndass-h7STZwba.cjs → grdIndass-niY4UOwz.cjs} +1 -1
- package/dist/{grg-DMRsgNoC.cjs → grg-C1L5yeyY.cjs} +1 -1
- package/dist/{grg-BZPHOdr_.js → grg-Dnro7bLg.js} +6 -6
- package/dist/{gridview-C_Lqcw3n.js → gridview-BhjWlD0J.js} +2 -2
- package/dist/{gridview-BAqXV-TI.cjs → gridview-DxUsv2ny.cjs} +1 -1
- package/dist/{groundwaterFilterBar-RcVBt_vt.cjs → groundwaterFilterBar-C-2e7S04.cjs} +1 -1
- package/dist/{groundwaterFilterBar-Dq216QFO.js → groundwaterFilterBar-bNhTkX1C.js} +2 -2
- package/dist/{groundwaterProfileChart-D31MpfdN.cjs → groundwaterProfileChart-BxKGPuOe.cjs} +2 -2
- package/dist/{groundwaterProfileChart-7LN3wfLM.js → groundwaterProfileChart-dhzmwfwz.js} +3 -3
- package/dist/{groundwaterTimeCurve-CJgvt43Z.js → groundwaterTimeCurve-BtzP6icm.js} +3 -3
- package/dist/{groundwaterTimeCurve-C65gdinn.cjs → groundwaterTimeCurve-CTQPlTUr.cjs} +1 -1
- package/dist/{groupCard-BpjcijZW.js → groupCard-D00ElZoy.js} +63 -53
- package/dist/{groupCard-DNOawK4_.cjs → groupCard-D4gdaVqR.cjs} +1 -1
- package/dist/{headerBar-Bnv8ylmr.js → headerBar-DEHj8fJr.js} +2 -2
- package/dist/{headerBar-CNWKR951.cjs → headerBar-MFw1W0qa.cjs} +1 -1
- package/dist/{history-DdkBOj8L.js → history-BRkb914v.js} +22 -22
- package/dist/{history-xZTq1lUB.cjs → history-D1R2RAZQ.cjs} +1 -1
- package/dist/index-77aUdspY.cjs +612 -0
- package/dist/{index-D5BukPPY.js → index-BZpYmpDy.js} +3511 -3043
- package/dist/{insarDeformChart-DIvxdDkN.cjs → insarDeformChart-5EVWIkpL.cjs} +1 -1
- package/dist/{insarDeformChart-BKgJHbFe.js → insarDeformChart-pbOnnoN-.js} +2 -2
- package/dist/{insarImageViewer-qI5GBqkU.js → insarImageViewer-D3bbQA6g.js} +2 -2
- package/dist/{insarImageViewer-Bray3mKg.cjs → insarImageViewer-DQJBN4YM.cjs} +1 -1
- package/dist/{kds-BibvGW1n.cjs → kds-D5seJB3L.cjs} +1 -1
- package/dist/{kds-C1Chb0fa.js → kds-gTJOwHbM.js} +2 -2
- package/dist/{kpiCard-tnfcEXOn.cjs → kpiCard-Bz-fg6sL.cjs} +1 -1
- package/dist/{kpiCard-KuMZjN55.js → kpiCard-Cx6VNK6L.js} +2 -2
- package/dist/{landslideMap-B4vzymkZ.js → landslideMap-5erIcZo7.js} +3 -3
- package/dist/{landslideMap-DlMSDibx.cjs → landslideMap-D7_QpwmM.cjs} +1 -1
- package/dist/{landslideWarning-DtOMb7U_.cjs → landslideWarning-C3FZqrxT.cjs} +1 -1
- package/dist/{landslideWarning-BYlaEzUr.js → landslideWarning-CzaddgWf.js} +14 -14
- package/dist/{layerTabs-DQm_b2aH.cjs → layerTabs-Dc1Xb11W.cjs} +1 -1
- package/dist/{layerTabs-BG0gTvo8.js → layerTabs-DqbOykS2.js} +2 -2
- package/dist/{leaflet-src-DVXepwmU.js → leaflet-src-BY2SMh9y.js} +1 -1
- package/dist/{leaflet-src-qPfpknMO.cjs → leaflet-src-Brb8KUL5.cjs} +1 -1
- package/dist/{lerc-Z6kWrF7V.js → lerc-Chm_GVte.js} +2 -2
- package/dist/{lerc-CITZZDb7.cjs → lerc-DGuyYCKG.cjs} +1 -1
- package/dist/{lin-CW8Q8u-z.cjs → lin-8x2j8aGa.cjs} +1 -1
- package/dist/{lin-zJYjIE2f.js → lin-tqtSA5ci.js} +5 -5
- package/dist/{linIndass-27mWriLs.js → linIndass-DHFymSVI.js} +10 -10
- package/dist/{linIndass-CQaikC7I.cjs → linIndass-Dxo_bzrZ.cjs} +1 -1
- package/dist/{lst-Cu-ohx2m.cjs → lst-BV6EbDPs.cjs} +1 -1
- package/dist/{lst-BqXNkXrQ.js → lst-BejIuO0f.js} +2 -2
- package/dist/{manualEntry-zj6TEXL7.cjs → manualEntry-Bt4cs6kn.cjs} +1 -1
- package/dist/{manualEntry-BPEmSok7.js → manualEntry-DObI0OAq.js} +2 -2
- package/dist/{mapBackground-BhcSOZ_h.js → mapBackground-Cuym5Dqr.js} +3 -3
- package/dist/{mapBackground-CRI873EC.cjs → mapBackground-oVOBK3zr.cjs} +1 -1
- package/dist/{mappingList-DGgPl4t4.cjs → mappingList-BEWAqLd4.cjs} +1 -1
- package/dist/{mappingList-CvG8EIIC.js → mappingList-Dzq0zMfs.js} +2 -2
- package/dist/{markdownViewer-D9JqGyeI.js → markdownViewer-Bz50jkb6.js} +2 -2
- package/dist/{markdownViewer-DvbUv7kn.cjs → markdownViewer-V5b1xhPh.cjs} +1 -1
- package/dist/{mix-control-modal-DaRWnX3S.js → mix-control-modal-DzVLdO3S.js} +1 -1
- package/dist/{mix-control-modal-DpAs-GHi.cjs → mix-control-modal-I6DqPm04.cjs} +1 -1
- package/dist/{mixGrid-CHne1dXO.cjs → mixGrid-_ur8VKLD.cjs} +1 -1
- package/dist/{mixGrid-FBiMFT4V.js → mixGrid-tVSdKPms.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/mixiotObjectListApi-BUQ-RZ3L.cjs +1 -0
- package/dist/mixiotObjectListApi-D5vNNWgT.js +212 -0
- package/dist/{mjpegCamera-D32gJ5oN.cjs → mjpegCamera-CjWe8BEK.cjs} +1 -1
- package/dist/{mjpegCamera-D2quqZNc.js → mjpegCamera-DnAPpFJU.js} +2 -2
- package/dist/{monitorAlert-D4qszzHh.js → monitorAlert-B-fTYPn6.js} +15 -15
- package/dist/{monitorAlert-CxC81qAu.cjs → monitorAlert-qmVSQ1lc.cjs} +1 -1
- package/dist/{monitorData-DnWDsgTT.js → monitorData-Dopc660L.js} +7 -7
- package/dist/{monitorData-CVkL2ukF.cjs → monitorData-YhGSUq3H.cjs} +1 -1
- package/dist/{monitorSpeedChart-CKxwWE0i.cjs → monitorSpeedChart-Brj_YHsO.cjs} +1 -1
- package/dist/{monitorSpeedChart-CHpQsrDt.js → monitorSpeedChart-Dsvr_QPB.js} +1 -1
- package/dist/{mxa-UU7rQDd8.cjs → mxa-BzdI7BLB.cjs} +1 -1
- package/dist/{mxa-Cbnwonqc.js → mxa-D4WkyBYZ.js} +7 -7
- package/dist/{myValue-DzARZpdg.cjs → myValue-C0tq-asC.cjs} +1 -1
- package/dist/{myValue-DBxx1jtk.js → myValue-DYtBtOJ2.js} +2 -2
- package/dist/{myValueList-BVbeDsWn.cjs → myValueList-BJctRTNd.cjs} +1 -1
- package/dist/{myValueList-BbtPVr5y.js → myValueList-Ddpn1S68.js} +2 -2
- package/dist/objectList-Csf0hVwo.cjs +1 -0
- package/dist/objectList-G4wXFDwe.js +2040 -0
- package/dist/{objectListAPP-CYxy9UjL.js → objectListAPP-BrmUj4At.js} +49 -51
- package/dist/objectListAPP-UZN4iuTn.cjs +1 -0
- package/dist/{photo-DPOhq559.js → photo-BEPeK7U8.js} +2 -2
- package/dist/{photo-BRMACjXO.cjs → photo-BYH_qg5O.cjs} +1 -1
- package/dist/{pie-B7HO9F24.cjs → pie-B57zDxJV.cjs} +1 -1
- package/dist/{pie-CUqy6VGE.js → pie-CEVKe1lL.js} +2 -2
- package/dist/{placeholder-D-BpaT59.cjs → placeholder-BezBEQGo.cjs} +1 -1
- package/dist/{placeholder-DsyLsZM5.js → placeholder-Bwv3VyEg.js} +1 -1
- package/dist/{pressBtn-IefW25bT.js → pressBtn-1LCNz2gE.js} +33 -33
- package/dist/{pressBtn-DZz7PZ7o.cjs → pressBtn-CJZTyY8I.cjs} +1 -1
- package/dist/{processTable-Bm2HnUrZ.js → processTable-CHDazqah.js} +2 -2
- package/dist/{processTable-kVFr2ntb.cjs → processTable-HtDeg1by.cjs} +1 -1
- package/dist/{progressBar-00yP_jc2.cjs → progressBar-BP4SmPZK.cjs} +1 -1
- package/dist/{progressBar-C7RKpdcE.js → progressBar-C3NcWUrS.js} +2 -2
- package/dist/{progressCircle-BBkwMkI0.js → progressCircle-Bo9-Qva_.js} +48 -48
- package/dist/{progressCircle-CzqibMlZ.cjs → progressCircle-CDqK1iFt.cjs} +1 -1
- package/dist/{qrcode-DaHlY7Vv.js → qrcode-VmYwvClG.js} +2 -2
- package/dist/{qrcode-4NUAsx0h.cjs → qrcode-qD6tOm4F.cjs} +1 -1
- package/dist/{raceBar-WhOgwnlP.js → raceBar-DR2-luKW.js} +2 -2
- package/dist/{raceBar-BVsHg94d.cjs → raceBar-uAs91hyk.cjs} +1 -1
- package/dist/{rad-BlEn2Yx1.js → rad-1Jy1KDzt.js} +2 -2
- package/dist/{rad-sMtJPs8L.cjs → rad-D7-YZJNO.cjs} +1 -1
- package/dist/{radarMapViewer-C1_FFYFi.js → radarMapViewer-ByQXe0Mu.js} +2 -2
- package/dist/{radarMapViewer-CzhHFpRX.cjs → radarMapViewer-KPhNE5XX.cjs} +1 -1
- package/dist/{rainfallFilterBar-Bt2TbXV6.js → rainfallFilterBar-C1obotPf.js} +2 -2
- package/dist/{rainfallFilterBar-F7DU_nqK.cjs → rainfallFilterBar-CVQpQp82.cjs} +1 -1
- package/dist/{rainfallTimeCurve-C5tBf1lx.js → rainfallTimeCurve-B2rEx3T_.js} +3 -3
- package/dist/{rainfallTimeCurve-DaXSW7dI.cjs → rainfallTimeCurve-DU2tt-Ls.cjs} +1 -1
- package/dist/{rangeLin-Cr4NRYc9.cjs → rangeLin-COsJkCky.cjs} +1 -1
- package/dist/{rangeLin-Bral8Ev4.js → rangeLin-CdfUCFQr.js} +8 -8
- package/dist/{realtimeEvolutionMap-CCisvZz8.cjs → realtimeEvolutionMap-B7GT8MOq.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-xJwuPatp.js → realtimeEvolutionMap-aR63xPW_.js} +2 -2
- package/dist/{regionBar-C8myvRfQ.cjs → regionBar-BYF7IaGA.cjs} +1 -1
- package/dist/{regionBar-D1iKcs2-.js → regionBar-DB-secNe.js} +2 -2
- package/dist/{request-C-rUicMg.js → request-CBsG4ipL.js} +1 -1
- package/dist/{request-Cxljxwu9.cjs → request-CvdHjG34.cjs} +1 -1
- package/dist/{retainer1-CC6TO-vq.cjs → retainer1-1CFk4InO.cjs} +1 -1
- package/dist/{retainer1-BvzeaTtU.js → retainer1-CMzTlM5Z.js} +3 -3
- package/dist/{retainer2-BeakFCgo.js → retainer2-DW4ewYX7.js} +3 -3
- package/dist/{retainer2-CmdgkB1y.cjs → retainer2-DliOH7it.cjs} +1 -1
- package/dist/{retainerRecordList-C7lDliOb.js → retainerRecordList-Bcm6leuD.js} +254 -275
- package/dist/retainerRecordList-DV7Tx39d.cjs +1 -0
- package/dist/retainerRecordListAPP-BDRwp8T3.js +1219 -0
- package/dist/retainerRecordListAPP-CJ-u0Tj2.cjs +1 -0
- package/dist/{ringTopN-BaKY-79s.js → ringTopN-Duq0pzm_.js} +2 -2
- package/dist/{ringTopN-Wfvu1-jE.cjs → ringTopN-rd2UwH9f.cjs} +1 -1
- package/dist/{riskRegionTable-ovBbwMl2.js → riskRegionTable-BE_ggcEV.js} +2 -2
- package/dist/{riskRegionTable-C7ee9wQX.cjs → riskRegionTable-CbPB8mlY.cjs} +1 -1
- package/dist/{sankey-BmWOGLSZ.cjs → sankey-BqBn6_rx.cjs} +1 -1
- package/dist/{sankey-K5BLueeX.js → sankey-CnKm9PZe.js} +2 -2
- package/dist/{scd-CMVoKjwE.js → scd-BaBLoem8.js} +456 -449
- package/dist/scd-BgJ5P7co.cjs +1 -0
- package/dist/{sideMenu-BbiMVHw1.cjs → sideMenu-BgiQL2P1.cjs} +1 -1
- package/dist/{sideMenu-L_dYXVgD.js → sideMenu-CUal1UQY.js} +2 -2
- package/dist/{slopeStability-WUcwG1vB.js → slopeStability-B9YbQLCE.js} +25 -25
- package/dist/{slopeStability-BWVxuRRV.cjs → slopeStability-Y2tDzJeh.cjs} +1 -1
- package/dist/{speedCurve-uwPuIJp0.js → speedCurve-DERBMtE1.js} +2 -2
- package/dist/{speedCurve-QTXe81e1.cjs → speedCurve-Kll2RRJ8.cjs} +1 -1
- package/dist/{stressFilterBar-DcqWlqsx.cjs → stressFilterBar-BGI4gVfE.cjs} +1 -1
- package/dist/{stressFilterBar-CnFNp7BR.js → stressFilterBar-CHRWFnpP.js} +2 -2
- package/dist/{stressTimeCurve-C-qycuZ2.cjs → stressTimeCurve-DE5KiXEt.cjs} +1 -1
- package/dist/{stressTimeCurve-C3r3LUBt.js → stressTimeCurve-hrlqSYS3.js} +3 -3
- package/dist/{swiper-wWrsPbDA.cjs → swiper-CnGllhBQ.cjs} +1 -1
- package/dist/{swiper-JShIvM0E.js → swiper-DNHC412s.js} +2 -2
- package/dist/{terminalConfigList-DVhEvcTB.js → terminalConfigList-BlHAsyCm.js} +2 -2
- package/dist/{terminalConfigList-nQqB1W5s.cjs → terminalConfigList-C45EANO4.cjs} +1 -1
- package/dist/{terminalList-BkMuHXZw.cjs → terminalList-CNI3_FGb.cjs} +1 -1
- package/dist/{terminalList-wAz6t4Ib.js → terminalList-UGjkhyf4.js} +2 -2
- package/dist/{terminalListAPP-CePxWgcL.cjs → terminalListAPP-6fPXF-yJ.cjs} +1 -1
- package/dist/{terminalListAPP-DuLN2OVq.js → terminalListAPP-CIJZMdxI.js} +2 -2
- package/dist/{textbox-DxXuhIyj.js → textbox-BD_LQ0EN.js} +2 -2
- package/dist/{textbox-BBi-Lg1Z.cjs → textbox-yNPnOaan.cjs} +1 -1
- package/dist/{timeQueryBar-BCTeL04F.cjs → timeQueryBar-3qiV0IV9.cjs} +1 -1
- package/dist/{timeQueryBar-DtngkLJX.js → timeQueryBar-B-uPtN25.js} +1 -1
- package/dist/{timeSeries-DJZnExBA.cjs → timeSeries-BTUuojvj.cjs} +1 -1
- package/dist/{timeSeries-CrdyAYs2.js → timeSeries-DdQI4oZU.js} +3 -3
- package/dist/{timeSeriesCurve-8_n0JJyf.cjs → timeSeriesCurve-Cj_FbK4x.cjs} +1 -1
- package/dist/{timeSeriesCurve-8_exdGlQ.js → timeSeriesCurve-TGXshTzl.js} +3 -3
- package/dist/{toggleBtn-DExYfMvi.js → toggleBtn-BMxqm5WG.js} +2 -2
- package/dist/{toggleBtn-B6dJ5cAt.cjs → toggleBtn-BXcQfnTB.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-B2fwoe-I.cjs → trajectoryConfigPanel-CqoKO0hL.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-Ce1SoMtw.js → trajectoryConfigPanel-uRLWdXUb.js} +1 -1
- package/dist/{trajectoryScatter-h32teAQ0.js → trajectoryScatter-DPE4cC8N.js} +2 -2
- package/dist/{trajectoryScatter-CVLEXMPO.cjs → trajectoryScatter-Dph8PSdN.cjs} +1 -1
- package/dist/{universalConfigPanel-CxbrIc2Z.js → universalConfigPanel-CI1CuBmr.js} +1 -1
- package/dist/{universalConfigPanel-cRzJmx3l.cjs → universalConfigPanel-Db-pC67o.cjs} +1 -1
- package/dist/{universalTable-BssAi-QH.js → universalTable-DMrgtBrw.js} +2 -2
- package/dist/{universalTable-V604pFVr.cjs → universalTable-dQObEQog.cjs} +1 -1
- package/dist/{video-BjmIbrRS.js → video-DEhLie80.js} +2 -2
- package/dist/{video-B8JeGpBc.cjs → video-DbsKQhVD.cjs} +1 -1
- package/dist/{videoMonitor-CVkFwlZq.js → videoMonitor-BS6_LYUb.js} +12 -12
- package/dist/{videoMonitor-B6FzkJlS.cjs → videoMonitor-DLBtivXO.cjs} +1 -1
- package/dist/vlu-DXk_wQf-.cjs +1 -0
- package/dist/vlu-DaSjPY3I.js +149 -0
- package/dist/{warningOverview-DDOm2wwB.js → warningOverview-CKCEs_Jj.js} +3 -3
- package/dist/{warningOverview-4M-WX3Ob.cjs → warningOverview-DAUlXzr0.cjs} +1 -1
- package/dist/{weather-BGrOQFPM.cjs → weather-BAI0IWNH.cjs} +1 -1
- package/dist/{weather-CETxcsJS.js → weather-XUj6pFwM.js} +2 -2
- package/dist/{windLin-B3YXltBn.js → windLin-Bt4q2eUT.js} +2 -2
- package/dist/{windLin-B6uEtUnB.cjs → windLin-C9dsCT1w.cjs} +1 -1
- package/package.json +1 -1
- package/dist/BaseComponent-CaCkjmmb.cjs +0 -1
- package/dist/arrayCard-BYZWRop3.cjs +0 -1
- package/dist/arrayCard-CVVWnZDk.js +0 -131
- package/dist/bar-1K14ZPKy.cjs +0 -2
- package/dist/clt-BCHpLoab.cjs +0 -1
- package/dist/clt-Ba9Ov5WY.js +0 -296
- package/dist/cmc-CdDCboSm.cjs +0 -1
- package/dist/cmc-CsVB4uz3.js +0 -277
- package/dist/controlRecordListAPP-BktJCkFK.cjs +0 -1
- package/dist/controlRecordListAPP-CSt8rFZX.js +0 -502
- package/dist/evn-B2F6pbqY.js +0 -158
- package/dist/evn-B6WNZ0pv.cjs +0 -1
- package/dist/gasStationList-CN2y3zri.cjs +0 -1
- package/dist/gasStationList-CifrfkH0.js +0 -1239
- package/dist/index-BzWbqJIl.cjs +0 -612
- package/dist/mixiotObjectListApi-BwIQvSS-.js +0 -67
- package/dist/mixiotObjectListApi-ClirV2tM.cjs +0 -1
- package/dist/objectList-Cpu0yqsK.js +0 -1740
- package/dist/objectList-D5E8PU66.cjs +0 -1
- package/dist/objectListAPP-Cr4uoJuN.cjs +0 -1
- package/dist/retainerRecordList-C9xVt3Yk.cjs +0 -1
- package/dist/retainerRecordListAPP-BRmG7UnF.cjs +0 -1
- package/dist/retainerRecordListAPP-Cjip5JHS.js +0 -1070
- package/dist/scd-CCNgUI2Q.cjs +0 -1
- package/dist/vlu-CHHDngO6.js +0 -142
- package/dist/vlu-Dv1vt9r0.cjs +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Q = Object.defineProperty, q = Object.defineProperties;
|
|
2
2
|
var J = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
4
|
var W = Object.prototype.hasOwnProperty, X = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var I = (n, o, c) => o in n ?
|
|
5
|
+
var I = (n, o, c) => o in n ? Q(n, o, { enumerable: !0, configurable: !0, writable: !0, value: c }) : n[o] = c, L = (n, o) => {
|
|
6
6
|
for (var c in o || (o = {}))
|
|
7
7
|
W.call(o, c) && I(n, c, o[c]);
|
|
8
8
|
if (P)
|
|
9
9
|
for (var c of P(o))
|
|
10
10
|
X.call(o, c) && I(n, c, o[c]);
|
|
11
11
|
return n;
|
|
12
|
-
}, F = (n, o) =>
|
|
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 {
|
|
15
|
+
import { B as le } from "./BaseComponent-CQaDWNO0.js";
|
|
16
|
+
import { N as ae, G as re, _ as ce } from "./index-BZpYmpDy.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,
|
|
@@ -66,7 +66,7 @@ const ie = { class: "video-monitor-wrapper" }, de = { class: "panel-header" }, u
|
|
|
66
66
|
const o = n;
|
|
67
67
|
class c extends le {
|
|
68
68
|
extractStyles() {
|
|
69
|
-
var l, f, s, u, C, i, y, p, h, v, S, B, R,
|
|
69
|
+
var l, f, s, u, C, i, y, p, h, v, S, B, R, A, N, O, V, U, j;
|
|
70
70
|
const { options: e } = this.props.conf;
|
|
71
71
|
return {
|
|
72
72
|
title: ((l = e == null ? void 0 : e.title) == null ? void 0 : l.value) || "视频监控",
|
|
@@ -80,8 +80,8 @@ const ie = { class: "video-monitor-wrapper" }, de = { class: "panel-header" }, u
|
|
|
80
80
|
recColor: ((h = e == null ? void 0 : e.recColor) == null ? void 0 : h.value) || "#e74c3c",
|
|
81
81
|
glowEffect: (S = (v = e == null ? void 0 : e.glowEffect) == null ? void 0 : v.value) != null ? S : !0,
|
|
82
82
|
autoplay: (R = (B = e == null ? void 0 : e.autoplay) == null ? void 0 : B.value) != null ? R : !0,
|
|
83
|
-
loop: (
|
|
84
|
-
muted: (V = (
|
|
83
|
+
loop: (N = (A = e == null ? void 0 : e.loop) == null ? void 0 : A.value) != null ? N : !0,
|
|
84
|
+
muted: (V = (O = e == null ? void 0 : e.muted) == null ? void 0 : O.value) != null ? V : !0,
|
|
85
85
|
showControls: (j = (U = e == null ? void 0 : e.showControls) == null ? void 0 : U.value) != null ? j : !1
|
|
86
86
|
};
|
|
87
87
|
}
|
|
@@ -120,7 +120,7 @@ const ie = { class: "video-monitor-wrapper" }, de = { class: "panel-header" }, u
|
|
|
120
120
|
var e, l;
|
|
121
121
|
const d = (l = (e = o.conf) == null ? void 0 : e.data) == null ? void 0 : l[0];
|
|
122
122
|
return (d == null ? void 0 : d.url) || "";
|
|
123
|
-
}),
|
|
123
|
+
}), G = () => console.log("实时更新"), H = () => console.log("搜索:", b.value), K = () => {
|
|
124
124
|
b.value = "";
|
|
125
125
|
};
|
|
126
126
|
return (d, e) => (g(), _("div", ie, [
|
|
@@ -147,7 +147,7 @@ const ie = { class: "video-monitor-wrapper" }, de = { class: "panel-header" }, u
|
|
|
147
147
|
]),
|
|
148
148
|
t("button", {
|
|
149
149
|
class: "realtime-btn",
|
|
150
|
-
onClick:
|
|
150
|
+
onClick: G
|
|
151
151
|
}, M(r(a).realtimeBtnText), 1)
|
|
152
152
|
]),
|
|
153
153
|
t("div", fe, [
|
|
@@ -161,13 +161,13 @@ const ie = { class: "video-monitor-wrapper" }, de = { class: "panel-header" }, u
|
|
|
161
161
|
]),
|
|
162
162
|
t("button", {
|
|
163
163
|
class: "search-btn",
|
|
164
|
-
onClick:
|
|
164
|
+
onClick: H
|
|
165
165
|
}, [...e[4] || (e[4] = [
|
|
166
166
|
t("span", null, "Q", -1)
|
|
167
167
|
])]),
|
|
168
168
|
t("button", {
|
|
169
169
|
class: "clear-btn",
|
|
170
|
-
onClick:
|
|
170
|
+
onClick: K
|
|
171
171
|
}, [...e[5] || (e[5] = [
|
|
172
172
|
t("span", null, "×", -1)
|
|
173
173
|
])])
|
|
@@ -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-BmhMoM4H.cjs"),y=require("./index-77aUdspY.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;
|
|
@@ -0,0 +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-BmhMoM4H.cjs"),O=require("./index-77aUdspY.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=$;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
var x = Object.defineProperty, E = Object.defineProperties;
|
|
2
|
+
var z = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var h = Object.getOwnPropertySymbols;
|
|
4
|
+
var T = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var C = (i, e, t) => e in i ? x(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, A = (i, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
T.call(e, t) && C(i, t, e[t]);
|
|
8
|
+
if (h)
|
|
9
|
+
for (var t of h(e))
|
|
10
|
+
D.call(e, t) && C(i, t, e[t]);
|
|
11
|
+
return i;
|
|
12
|
+
}, b = (i, e) => E(i, z(e));
|
|
13
|
+
var O = (i, e, t) => new Promise((_, r) => {
|
|
14
|
+
var s = (a) => {
|
|
15
|
+
try {
|
|
16
|
+
u(t.next(a));
|
|
17
|
+
} catch (o) {
|
|
18
|
+
r(o);
|
|
19
|
+
}
|
|
20
|
+
}, d = (a) => {
|
|
21
|
+
try {
|
|
22
|
+
u(t.throw(a));
|
|
23
|
+
} catch (o) {
|
|
24
|
+
r(o);
|
|
25
|
+
}
|
|
26
|
+
}, u = (a) => a.done ? _(a.value) : Promise.resolve(a.value).then(s, d);
|
|
27
|
+
u((t = t.apply(i, e)).next());
|
|
28
|
+
});
|
|
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-CQaDWNO0.js";
|
|
31
|
+
import { d as I, _ as U } from "./index-BZpYmpDy.js";
|
|
32
|
+
import { g as k } from "./titleStyle-BT5GlpAb.js";
|
|
33
|
+
import { A as F, D as H } from "./ele-vlu-icon-Bg6EHZdJ.js";
|
|
34
|
+
const P = { class: "mix-body" }, Y = { class: "mix-footer" }, $ = "--", w = "--", W = {
|
|
35
|
+
DEFAULT_ICON: H,
|
|
36
|
+
ACTIVE_ICON: F,
|
|
37
|
+
NAME_CN: "数值卡片",
|
|
38
|
+
NAME_EN: "Value",
|
|
39
|
+
ORDER: 3,
|
|
40
|
+
PLATFORM: ["pc", "screen", "mobile"]
|
|
41
|
+
}, q = {
|
|
42
|
+
valueSize: 36,
|
|
43
|
+
timeSize: 12,
|
|
44
|
+
radiusSize: 8,
|
|
45
|
+
bgColor: "#fff",
|
|
46
|
+
titleColor: "#111",
|
|
47
|
+
textColor: "#111",
|
|
48
|
+
isHideTitle: !1,
|
|
49
|
+
titleAlign: "left",
|
|
50
|
+
titleWeight: "bold",
|
|
51
|
+
titleBgColor: "transparent",
|
|
52
|
+
titleBorderType: "none",
|
|
53
|
+
titleBorderColor: "#cccccc",
|
|
54
|
+
titleBorderWidth: 1,
|
|
55
|
+
titlePaddingH: 8,
|
|
56
|
+
titlePaddingV: 4
|
|
57
|
+
}, G = [{ name: "参数一", fv: "", object_id: "" }], J = ["name", "fv", "object_id"], K = [
|
|
58
|
+
"mosaic",
|
|
59
|
+
"statistics",
|
|
60
|
+
"calculate",
|
|
61
|
+
"statisticsRealtime",
|
|
62
|
+
"calculateRealtime"
|
|
63
|
+
], Q = {
|
|
64
|
+
useAlias: !1,
|
|
65
|
+
multiObject: !1,
|
|
66
|
+
hideMultiObject: !0,
|
|
67
|
+
source: "mosaic"
|
|
68
|
+
}, X = 1, Z = { DEFAULT: W, OPTIONS: q, DATA: G, PARAMS: J, SOURCE: K, ITEMS: X, COMMON: Q }, tt = /* @__PURE__ */ V(b(A({}, Z), {
|
|
69
|
+
__name: "vlu",
|
|
70
|
+
props: {
|
|
71
|
+
conf: { type: Object, default: () => ({ data: [] }) },
|
|
72
|
+
uid: { type: String, default: "" },
|
|
73
|
+
mode: { type: String, default: "edit" },
|
|
74
|
+
theme: { type: String, default: "light" }
|
|
75
|
+
},
|
|
76
|
+
setup(i) {
|
|
77
|
+
const e = i, t = M(I().format("YYYY-MM-DD HH:mm:ss"));
|
|
78
|
+
class _ extends L {
|
|
79
|
+
extractStyles() {
|
|
80
|
+
return {
|
|
81
|
+
bgColor: this.getOptionValue("bgColor", "#fff"),
|
|
82
|
+
titleColor: this.getOptionValue("titleColor", "#111"),
|
|
83
|
+
textColor: this.getOptionValue("textColor", "#111"),
|
|
84
|
+
valueSize: this.getOptionValue("valueSize", 36),
|
|
85
|
+
timeSize: this.getOptionValue("timeSize", 12),
|
|
86
|
+
radiusSize: this.getOptionValue("radiusSize", 8)
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
init() {
|
|
90
|
+
return O(this, null, function* () {
|
|
91
|
+
var o;
|
|
92
|
+
this.Style.value = this.extractStyles(), this.applyTheme(), (o = this.props.conf.data) != null && o.length || (this.props.conf.data = [{ name: "参数一", fv: "", object_id: "" }]);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
setHistoryData(o) {
|
|
96
|
+
if (!o) return;
|
|
97
|
+
const { data: c } = this.props.conf;
|
|
98
|
+
!Array.isArray(c) || !c.length || c.forEach((v, f) => {
|
|
99
|
+
var m;
|
|
100
|
+
try {
|
|
101
|
+
const n = o[f].data[0];
|
|
102
|
+
n != null && (v.value = n);
|
|
103
|
+
const p = (m = o[f]) == null ? void 0 : m.time[0];
|
|
104
|
+
p && (t.value = p);
|
|
105
|
+
} catch (n) {
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
// 重写 setSocketData 以更新时间
|
|
110
|
+
setSocketData(o) {
|
|
111
|
+
super.setSocketData(o), o && o.datetime && (t.value = o.datetime);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const r = new _(e, "vlu");
|
|
115
|
+
r.setupLifecycle();
|
|
116
|
+
const s = r.getStyle(), d = e.conf, u = N(() => k(e.conf.options));
|
|
117
|
+
return (a, o) => {
|
|
118
|
+
var c, v, f, m, n, p;
|
|
119
|
+
return B(), R("div", {
|
|
120
|
+
class: "mix-component",
|
|
121
|
+
style: y({
|
|
122
|
+
background: l(s).bgColor,
|
|
123
|
+
borderRadius: `${l(s).radiusSize}px`
|
|
124
|
+
})
|
|
125
|
+
}, [
|
|
126
|
+
S("div", {
|
|
127
|
+
class: "mix-title",
|
|
128
|
+
style: y(u.value)
|
|
129
|
+
}, g(((f = (v = (c = l(d)) == null ? void 0 : c.data) == null ? void 0 : v[0]) == null ? void 0 : f.name) || l(d).caption || w), 5),
|
|
130
|
+
S("div", P, [
|
|
131
|
+
S("div", {
|
|
132
|
+
class: "body-value",
|
|
133
|
+
style: y({ fontSize: `${l(s).valueSize}px`, color: l(s).textColor })
|
|
134
|
+
}, g(((p = (n = (m = l(d)) == null ? void 0 : m.data) == null ? void 0 : n[0]) == null ? void 0 : p.value) || $), 5)
|
|
135
|
+
]),
|
|
136
|
+
S("div", Y, [
|
|
137
|
+
S("div", {
|
|
138
|
+
class: "footer-time",
|
|
139
|
+
style: y({ fontSize: `${l(s).timeSize}px`, color: l(s).textColor })
|
|
140
|
+
}, g(t.value), 5)
|
|
141
|
+
]),
|
|
142
|
+
j(a.$slots, "default", {}, void 0, !0)
|
|
143
|
+
], 4);
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
})), nt = /* @__PURE__ */ U(tt, [["__scopeId", "data-v-bf31c6eb"]]);
|
|
147
|
+
export {
|
|
148
|
+
nt as default
|
|
149
|
+
};
|
|
@@ -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-CQaDWNO0.js";
|
|
16
|
+
import { _ as re } from "./index-BZpYmpDy.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-CbbeFm-i.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-BmhMoM4H.cjs"),Y=require("./index-77aUdspY.cjs"),Z=require("./mockData-Cj71Qk7-.cjs"),b=require("./HistoryPlanDialog-BU4GayEm.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-CaCkjmmb.cjs"),i=require("./index-BzWbqJIl.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-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;
|
|
@@ -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-CQaDWNO0.js";
|
|
16
|
+
import { F as f, _ as B } from "./index-BZpYmpDy.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,
|
|
@@ -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,
|
|
14
|
+
import { B as Kn, u as Wn, p as bn } from "./BaseComponent-CQaDWNO0.js";
|
|
15
|
+
import { k as Vn, J as Xn, K as on, L as Yn, G as Hn, _ as Gn } from "./index-BZpYmpDy.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";
|
|
@@ -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-CaCkjmmb.cjs"),Q=require("./index-BzWbqJIl.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-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;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var j=Object.defineProperty,A=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var T=(u,t,s)=>t in u?j(u,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):u[t]=s,S=(u,t)=>{for(var s in t||(t={}))O.call(t,s)&&T(u,s,t[s]);if(w)for(var s of w(t))D.call(t,s)&&T(u,s,t[s]);return u},I=(u,t)=>A(u,C(t));var f=(u,t,s)=>new Promise((e,i)=>{var n=c=>{try{r(s.next(c))}catch(a){i(a)}},o=c=>{try{r(s.throw(c))}catch(a){i(a)}},r=c=>c.done?e(c.value):Promise.resolve(c.value).then(n,o);r((s=s.apply(u,t)).next())});const b=require("vue"),l=require("./index-BzWbqJIl.cjs"),N=require("element-plus"),R=(u,t,s,e,i)=>f(null,null,function*(){try{const o=yield new(yield Promise.resolve().then(()=>require("./history-xZTq1lUB.cjs"))).default().getHistoryData(u,i);s(o)}catch(n){console.error("获取历史数据时出错:",n)}finally{if(t){const{formatRequest:n}=yield Promise.resolve().then(()=>require("./request-Cxljxwu9.cjs")),o=n(u.conf,u.uid,i);t.registerComponent({id:u.conf.id,request:o,onUpdate:(r,c)=>{r==="realtime"&&e(c)}})}}}),E=(u,t)=>{t&&t.unregisterComponent(u.conf.id)};function M(u,t){const s=JSON.parse(sessionStorage.getItem(l.DATA_PERMISSION_KEY)||"{}");if(s.type==="black_list")return s.entities[u]?!s.entities[u].includes(t):!0;if(s.type==="white_list")return s.entities[u]?s.entities[u].includes(t):!1}function d(u,t){return M(u,t)?!0:(N.ElMessage.error(`您没有权限访问 ${t} ,请联系管理员!`),!1)}class x{constructor(t){this.props=t}scriptUid(t){var s;return(s=t.uid)!=null?s:t.fv}indexIdentityKey(t){return t.is_alias?"alias":"uid"}mosaicResult(t,s){return t.fv?{block_mapping:"influxdbproxy",action:"get_mosaic_list",object_id:t.object_id,keys:[t.fv],page_index:1,page_size:s||1,order_by:"created",order_type:"desc"}:null}statisticsListCondition(t,s,e,i){const n=this.scriptUid(t);if(!n||!d(e,n)||!t.periodUnit)return null;const o=l.getStatisticsTimeRange(t.periodUnit,t.periodValue);return{block_mapping:"statistics",action:i,script_uid:n,where_and:JSON.stringify([["object_id","=",t.object_id],["start_time",">=",o[0]],["start_time","<=",o[1]]]),page_size:Number(s)||20,page_index:1,order_by:"created",order_type:"desc"}}statisticsResult(t,s){return this.statisticsListCondition(t,s,l.ACTION_ENTITIES.statistics,"get_statistics_page")}calculateResult(t,s){return this.statisticsListCondition(t,s,l.ACTION_ENTITIES.calculate,"get_calculate_page")}blockResult(t,s,e,i){return I(S({},this.indexResult(t,s)),{block_mapping:e,action:i})}indexResult(t,s){const e=this.indexIdentityKey(t);return!t[e]||!t.object_id||!d(l.ACTION_ENTITIES.index,t[e])?null:{page_index:1,page_size:s,block_mapping:"index",action:"get_index_result_list",where_and:JSON.stringify([[e,"=",t[e]],["object_id","=",t.object_id]]),order_by:"created",order_type:"asc"}}deviationResult(t,s){return this.blockResult(t,s,"deviation","get_deviation_result_list")}stabilityResult(t,s){return this.blockResult(t,s,"stability","get_stability_result_list")}balanceResult(t,s){return this.blockResult(t,s,"balance","get_balance_result_list")}incrementResult(t,s){return this.blockResult(t,s,"increment","get_increment_result_list")}riskResult(t,s){return this.blockResult(t,s,"risk","get_risk_result_list")}isValidPlatformCondition(t){const s=t==null?void 0:t.action;return typeof s=="string"&&s.trim()!==""}applyHistoryObjectResolution(t){const{conf:s,uid:e}=this.props,{common:i}=s,n=i.useAlias||!1,o=i.multiObject||!1,r=sessionStorage.getItem(l.ALIAS_MAPPING_KEY),c=JSON.parse(r||"{}"),a=o?t.object_alias:i.object_alias,p=o?t.object_id:i.object_id;return t.object_id=n?a?c[a]:e:p||e,d(l.ACTION_ENTITIES.object,t.object_id)?!!t.object_id:(delete t.object_id,!1)}mosaicBucketKey(t,s){var e;return`${(e=t.object_id)!=null?e:""}::${s||1}`}fillResponseFromMosaicRows(t,s,e){t.forEach(i=>{const n=s.fv,o="time";e.data.push(i[n]),e.time.push(l.dayjs(i[o]).format("YYYY-MM-DD HH:mm:ss"))})}postMosaicBatchMerged(t,s,e){var a;const i=[],n=new Set;for(const{item:p}of s){const h=p.fv;h&&!n.has(h)&&(n.add(h),i.push(h))}const o=(a=s[0])==null?void 0:a.item,r=o?this.mosaicResult(o,t):null;if(!r||i.length===0){for(const{index:p}of s)e[p]={data:[],time:[]};return Promise.resolve()}const c=I(S({},r),{keys:i});return new Promise(p=>{l.api.platform(h=>{var m,y;const _=(y=(m=h==null?void 0:h.result)==null?void 0:m.data)!=null?y:[];for(const{index:v,item:g}of s){const k={data:[],time:[]};this.fillResponseFromMosaicRows(_,g,k),e[v]=k}p()},c)})}postDataItem(t){var p;const{conf:s}=this.props,{common:e,options:i}=s,n=e.source||"mosaic",o=i.points||1,r={data:[],time:[]};if(!this.applyHistoryObjectResolution(t))return Promise.resolve(r);const c=this[`${n}Result`],a=(p=c==null?void 0:c.call(this,t,o))!=null?p:null;return a==null?Promise.resolve(r):new Promise(h=>{l.api.platform(_=>{(_.result.data.sort((y,v)=>l.dayjs(y.created).valueOf()-l.dayjs(v.created).valueOf())||[]).forEach(y=>{const v=["statistics","calculate"].includes(n)?"data":t.fv,g=["statistics","calculate"].includes(n)?"start_time":"time";r.data.push(y[v]),r.time.push(l.dayjs(y[g]).format("YYYY-MM-DD HH:mm:ss"))}),h(r)},a)})}initHistory(){return f(this,null,function*(){const{data:t,common:s,options:e}=this.props.conf,i=s.source||"mosaic",n=e.points||1;if(i!=="mosaic")return Promise.all(t.map(a=>this.postDataItem(a)));const o=t.length,r=new Array(o),c=new Map;for(let a=0;a<o;a++){const p=t[a];if(!this.applyHistoryObjectResolution(p)){r[a]={data:[],time:[]};continue}if(this.mosaicResult(p,n)==null){r[a]={data:[],time:[]};continue}const _=this.mosaicBucketKey(p,n);let m=c.get(_);m||(m=[],c.set(_,m)),m.push({index:a,item:p})}return yield Promise.all(Array.from(c.values()).map(a=>this.postMosaicBatchMerged(n,a,r))),r})}}class H extends x{constructor(t,s){super(t),this.linkWatchStop=null,this.componentType=s,this.session=b.ref(b.inject("session",null)),this.Style=b.ref({}),this.linkStore=l.useLinkStore()}extractStyles(){return{}}init(){return f(this,null,function*(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),yield this.expandAliasData((t=this.props.conf)==null?void 0:t.data)})}setHistoryData(t){}onPreview(){return f(this,null,function*(){var n;const{common:t,data:s}=this.props.conf,e=this.getSource(),i=yield this.expandAliasData(s);if(this.props.conf.data=i,t.multiObject&&Array.isArray(i)){const o=new Set,r=new Map;(yield Promise.all(i.map(a=>f(this,null,function*(){return{item:a,objectIds:yield this.resolveObjectIds(a)}})))).forEach(({item:a,objectIds:p})=>{p.length>1&&r.set(String((t==null?void 0:t.object_alias)||(a==null?void 0:a.object_alias)||(a==null?void 0:a.alias)||(a==null?void 0:a.object_id)||(a==null?void 0:a.uid)||""),p),p.forEach(h=>{!h||o.has(h)||(o.add(h),this.subscribeBySource(e,h,a.uid))})})}else{const o=yield this.resolveObjectId(),r=(n=i==null?void 0:i[0])==null?void 0:n.uid;this.subscribeBySource(e,o,r)}})}setSocketData(t){if(!t)return;const{data:s}=this.props.conf;!s||!Array.isArray(s)||s.forEach(e=>{try{const i=this.extractDataValue(t,e.fv);e.value=i!=null?i:"--"}catch(i){e.value="--"}})}onLinkEvent(t){}getLinkChannel(){var t;return((t=this.Style.value)==null?void 0:t.linkChannel)||""}publish(t){const s=this.getLinkChannel();if(!s){console.warn(`[${this.componentType}] 未配置联动频道,无法发布事件`);return}this.linkStore.publish(s,this.componentType,t)}shouldHandleEvent(t){return!(!t||this.props.mode==="edit"||t.topic.source===this.componentType)}setupLinkWatch(){this.linkWatchStop&&this.linkWatchStop(),this.linkWatchStop=b.watch(()=>{const t=this.getLinkChannel();return t?this.linkStore.channels[t]:null},t=>{this.shouldHandleEvent(t)&&this.onLinkEvent(t)},{deep:!0,immediate:!0})}stopLinkWatch(){this.linkWatchStop&&(this.linkWatchStop(),this.linkWatchStop=null)}isLocalIotSubscribeMode(){return localStorage.getItem("dashboardUseLocalToken")==="1"||localStorage.getItem("dashboardUseLocalToken")==="true"}subscribe(t,s,e,i){if(!this.session.value){console.warn(`[${this.componentType}] Session 未初始化,无法订阅`);return}const n={event:t,block:s,object_id:e};i&&Object.assign(n,i);const o=this.isLocalIotSubscribeMode()?{action:"sub_event",block_mapping:"mmq",event:n}:{action:"sub_agent_event",event:n},r=this.props.conf.id;this.session.value.componentRequests&&(this.session.value.componentRequests.has(r)||this.session.value.componentRequests.set(r,[]),this.session.value.componentRequests.get(r).push(o)),this.session.value.send({type:"send_message",message:o})}subscribeMmqEvent(t,s,e=""){if(!this.session.value){console.warn(`[${this.componentType}] Session 未初始化,无法订阅`);return}const i={event:t,block:s,object_id:e};e||Reflect.deleteProperty(i,"object_id");const n={action:"sub_event",block_mapping:"mmq",event:i},o=this.props.conf.id;this.session.value.componentRequests&&(this.session.value.componentRequests.has(o)||this.session.value.componentRequests.set(o,[]),this.session.value.componentRequests.get(o).push(n)),this.session.value.send({type:"send_message",message:n})}subscribeFv(t){d(l.ACTION_ENTITIES.object,t)&&this.subscribe("recv_fv","mosaic",t)}subscribeRetainerOpen(t){d(l.ACTION_ENTITIES.object,t)&&this.subscribe("retainer_open","retainer",t)}subscribeRetainerClose(t){d(l.ACTION_ENTITIES.object,t)&&this.subscribe("retainer_close","retainer",t)}subscribeRetainerEvent(t){d(l.ACTION_ENTITIES.object,t)&&this.subscribe("retainer_event","retainer",t)}subscribeRetainer(t){this.subscribeRetainerOpen(t),this.subscribeRetainerClose(t),this.subscribeRetainerEvent(t)}subscribeStatisticsRealtimeResult(t){d(l.ACTION_ENTITIES.object,t)&&this.subscribe("statistics_realtime_result","statistics",t)}subscribeStatistics(t){var e,i;const s=(i=(e=this.props.conf.data)==null?void 0:e[0])==null?void 0:i.uid;d(l.ACTION_ENTITIES.object,t)&&d(l.ACTION_ENTITIES.statistics,s)&&this.subscribeStatisticsWithUid(t,s)}subscribeStatisticsWithUid(t,s){this.subscribe("statistics_result","statistics",t,{uid:s,type:"statistics"})}subscribeCalculate(t){var e,i;const s=(i=(e=this.props.conf.data)==null?void 0:e[0])==null?void 0:i.uid;this.subscribeCalculateWithUid(s)}subscribeCalculateWithUid(t){d(l.ACTION_ENTITIES.calculate,t)&&this.subscribe("statistics_result","statistics","",{uid:t,type:"calculate"})}shouldSkipStatisticsCalculateSocket(t){var i,n,o;const s=(i=this.props.conf)==null?void 0:i.data;if(!Array.isArray(s)||!s.length)return!1;const e=t!=null&&t!==""?(n=s.find(r=>(r==null?void 0:r.uid)===t))==null?void 0:n.periodUnit:(o=s[0])==null?void 0:o.periodUnit;return typeof e=="string"&&e.startsWith("last")}subscribeBySource(t,s,e){switch(t){case"mosaic":this.subscribeFv(s);break;case"statisticsRealtime":this.subscribeStatisticsRealtimeResult(s);break;case"statistics":if(this.shouldSkipStatisticsCalculateSocket(e))return;e?this.subscribeStatisticsWithUid(s,e):this.subscribeStatistics(s);break;case"calculate":if(this.shouldSkipStatisticsCalculateSocket(e))return;e?this.subscribeCalculateWithUid(e):this.subscribeCalculate(s);break;default:console.warn(`[${this.componentType}] 未知的数据源类型: ${t}`)}}extractDataValue(t,s){var e;return!t||!t.event?null:t.event==="recv_fv"&&t.block==="mosaic"?!s||!t.data?null:t.data[s]:t.event==="statistics_realtime_result"&&t.block==="statistics"?(e=t.data)==null?void 0:e.data:t.event==="statistics_result"&&t.block==="statistics"?t.data:null}getOptionValue(t,s){var i,n;const e=(n=(i=this.props.conf)==null?void 0:i.options)==null?void 0:n[t];return e==null?s:typeof e=="object"&&"value"in e?e.value:e}applyTheme(){l.applyThemeStyles(this.props.theme,this.Style.value)}getSource(){var t,s;return((s=(t=this.props.conf)==null?void 0:t.common)==null?void 0:s.source)||"mosaic"}isStatistics(){return["statistics","calculate","statisticsRealtime","calculateRealtime"].includes(this.getSource())}resolveObjectId(t){return f(this,null,function*(){return(yield this.resolveObjectIds(t))[0]||""})}resolveObjectIds(t){return f(this,null,function*(){const{uid:s,conf:e}=this.props,{common:i,data:n}=e,o=t||i||n[0]||{},c=(yield this.expandAliasData([o])).map(a=>String((a==null?void 0:a.object_id)||(a==null?void 0:a.objectid)||s)).filter(Boolean);return c.length>0&&o&&typeof o=="object"&&(o.object_id=c[0],o.objectid=c[0]),c.length>0?c:[String((o==null?void 0:o.object_id)||(o==null?void 0:o.objectid)||"")].filter(Boolean)})}expandAliasData(t){return f(this,null,function*(){var i;const s=Array.isArray(t)?t:[],e=[];for(const n of s){if(!n||typeof n!="object"){e.push(n);continue}const o={common:n,data:[n],options:(i=this.props.conf)==null?void 0:i.options};if(!String(n.object_alias||n.alias||"").trim()){e.push(n);continue}if(!(yield l.loadAliasMappingFromJsonIfNeeded(o))){e.push(n);continue}const c=l.expandAliasItems([n]);c.length>0?e.push(...c):e.push(n)}return e})}handleNull(t,s){return l.handleNullData(t,this.props,s)}getPreviewHelper(){return{preview:()=>R(this.props,this.session.value,t=>this.setHistoryData(t),t=>{let s=t;s.datetime=l.dayjs(s.datetime).format("YYYY-MM-DD HH:mm:ss"),this.setSocketData(s)},this.componentType),unregister:()=>E(this.props,this.session.value)}}getDebouncedInit(){return l.debounce(()=>this.init(),200)}cleanup(){}needsHistoryData(){return!0}setupLifecycle(){const t=this.getDebouncedInit(),s=this.getPreviewHelper();b.onMounted(()=>f(this,null,function*(){var i,n,o,r;const e={common:(i=this.props.conf)==null?void 0:i.common,data:(n=this.props.conf)==null?void 0:n.data,options:(o=this.props.conf)==null?void 0:o.options};if(this.props.mode==="preview"&&(yield l.loadAliasMappingFromJsonIfNeeded(e),Array.isArray((r=this.props.conf)==null?void 0:r.data)&&this.props.conf.data.length&&(this.props.conf.data=yield this.expandAliasData(this.props.conf.data))),yield this.init(),this.props.mode==="preview"){if(this.needsHistoryData())try{const c=yield this.initHistory();this.setHistoryData(c)}catch(c){console.error(`[${this.componentType}] 获取历史数据失败:`,c)}this.session.value&&(this.session.value.unregisterComponent(this.props.conf.id),this.session.value.registerComponent({id:this.props.conf.id,request:null,onUpdate:(c,a)=>{if(c==="realtime"){let p=a;p.datetime=l.dayjs(p.datetime).format("YYYY-MM-DD HH:mm:ss"),this.setSocketData(p)}}})),this.onPreview()}this.setupLinkWatch()})),b.onBeforeUnmount(()=>{this.cleanup(),s.unregister(),this.stopLinkWatch()}),b.watch(()=>this.props.conf,()=>{this.props.mode==="edit"&&t()},{deep:!0}),b.watch(()=>this.props.theme,()=>{this.init()}),b.watch(()=>{var e;return(e=this.Style.value)==null?void 0:e.linkChannel},()=>{this.setupLinkWatch()})}getStyle(){return this.Style}getType(){return this.componentType}dispatchModal(t,s,e){this.props.mode==="preview"&&window.dispatchEvent(new CustomEvent("mix-modal",{detail:{action:t,layerId:s,sheetIndex:e!=null?e:-1}}))}triggerModalByKey(t){var e,i;if(this.props.mode!=="preview")return;const s=(e=this.props.conf)==null?void 0:e.modalBinding;if(s&&s.enabled&&s.mode==="key"){const o=(s.map||{})[t];if(!o||!o.layerId)return;const r=o.action||"toggle",c=(i=s.sheetIndex)!=null?i:-1;this.dispatchModal(r,o.layerId,c)}}}exports.BaseComponent=H;exports.preview=R;exports.unregister=E;
|