mixdashboards 1.1.13 → 1.1.14
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/{AgGridTable-BjGMC3qC.js → AgGridTable-Cr7AVD7d.js} +1 -1
- package/dist/{AgGridTable-Bi7O66-r.cjs → AgGridTable-DU6yvOpb.cjs} +1 -1
- package/dist/{BaseComponent-9njJjeix.cjs → BaseComponent-CPat9pFl.cjs} +1 -1
- package/dist/{BaseComponent-B38Blgw3.js → BaseComponent-DMJmgFIo.js} +3 -3
- package/dist/{EChartComponentBase-BwbycwwW.cjs → EChartComponentBase-Cj_dO_ES.cjs} +1 -1
- package/dist/{EChartComponentBase-DJScukmS.js → EChartComponentBase-DrDdGF1C.js} +2 -2
- package/dist/{EmergencyPlanPanel-BxzP1xYW.cjs → EmergencyPlanPanel-B_zAk2e3.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-D3GF-xQQ.js → EmergencyPlanPanel-TBKoqIa0.js} +1 -1
- package/dist/{HistoryPlanDialog-DQXCUsy4.cjs → HistoryPlanDialog-92_V1nQB.cjs} +1 -1
- package/dist/{HistoryPlanDialog-DpaiRZgi.js → HistoryPlanDialog-HKCYJnCh.js} +1 -1
- package/dist/{MixiotAppDetailPage-BGfF3qrm.js → MixiotAppDetailPage-BQZhhM3Q.js} +1 -1
- package/dist/{MixiotAppDetailPage-CL1Sd9HJ.cjs → MixiotAppDetailPage-wddBsvgj.cjs} +1 -1
- package/dist/{MonitoringMap-Wzsw3hVH.cjs → MonitoringMap-Dh9TWEoX.cjs} +1 -1
- package/dist/{MonitoringMap-DQkO116Z.js → MonitoringMap-wOD2eWiY.js} +2 -2
- package/dist/{UniverSheet-Bne7JZyr.cjs → UniverSheet-B76C9C3z.cjs} +1 -1
- package/dist/{UniverSheet-Cd2a9LPx.js → UniverSheet-BxGZmiAP.js} +2 -2
- package/dist/{accelerationChart-BJhVC_l5.cjs → accelerationChart-BHspqWCw.cjs} +1 -1
- package/dist/{accelerationChart-BUsbSkwA.js → accelerationChart-T-LB2UqH.js} +2 -2
- package/dist/{actionItem-DxB7IvtW.cjs → actionItem-CD6E8s6n.cjs} +1 -1
- package/dist/{actionItem-B3B4MFcW.js → actionItem-Ch9jL-8V.js} +2 -2
- package/dist/{alarmLevelChart-DC_hx4Pn.cjs → alarmLevelChart-Chh-SGw4.cjs} +1 -1
- package/dist/{alarmLevelChart-DC-q2AgI.js → alarmLevelChart-DuQtzr0i.js} +2 -2
- package/dist/{alertTable-CHfA0TR-.cjs → alertTable-CnZCtID1.cjs} +1 -1
- package/dist/{alertTable-CGRDnNPw.js → alertTable-DoE1UTWF.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-DGoLPE4i.cjs → aliasObjectSelectorDemo-BKLLJY3E.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-DuGQCEcG.js → aliasObjectSelectorDemo-CAKTzbqy.js} +1 -1
- package/dist/{annualRainfallChart-Dr8KKYOG.js → annualRainfallChart-C06ujiLk.js} +2 -2
- package/dist/{annualRainfallChart-CLxVqN5Z.cjs → annualRainfallChart-CjaFNTTM.cjs} +1 -1
- package/dist/{aqi-BmYGSf2e.cjs → aqi-B6CEx8sE.cjs} +1 -1
- package/dist/{aqi-rBhSWA_m.js → aqi-CZ2gjTXo.js} +2 -2
- package/dist/{aqiIndass-Cpqau5M0.cjs → aqiIndass-CUuczycJ.cjs} +1 -1
- package/dist/{aqiIndass-DqJBc799.js → aqiIndass-CV6JefRZ.js} +2 -2
- package/dist/{areaDeformCurve-B924KVWX.cjs → areaDeformCurve-C60FahWu.cjs} +1 -1
- package/dist/{areaDeformCurve-DpHWg6pf.js → areaDeformCurve-CyG8zh6J.js} +2 -2
- package/dist/{arrayCard-C7anoYI-.js → arrayCard-BSI7KqPn.js} +2 -2
- package/dist/{arrayCard-Bzjg3HKN.cjs → arrayCard-CLu8UfQy.cjs} +1 -1
- package/dist/{audio-DTiS2piX.js → audio-Q13sznt_.js} +2 -2
- package/dist/{audio-aADcgdZP.cjs → audio-zKQ44FKN.cjs} +1 -1
- package/dist/{bar-D32xICYZ.js → bar-BISEWCfM.js} +2 -2
- package/dist/{bar-DqY55XnC.cjs → bar-CNb34Izd.cjs} +1 -1
- package/dist/{basicShapeToolbox-D8q86CzB.js → basicShapeToolbox--WQ0UXKa.js} +2 -2
- package/dist/{basicShapeToolbox-BvJjH4fV.cjs → basicShapeToolbox-BkPIElK7.cjs} +1 -1
- package/dist/{bmp-DU3vm7yj.js → bmp-Ohs2XiTO.js} +2 -2
- package/dist/{bmp-DIFGLoNl.cjs → bmp-fBe7llKN.cjs} +1 -1
- package/dist/{box-C8pOZXek.cjs → box-BZGYB00G.cjs} +1 -1
- package/dist/{box-DTQKGR9g.js → box-UAgHgnGs.js} +2 -2
- package/dist/{chartConfigPanel-Bz82sVyH.js → chartConfigPanel-Bw8uepae.js} +1 -1
- package/dist/{chartConfigPanel-D4vk7zWs.cjs → chartConfigPanel-WLvSpg3a.cjs} +1 -1
- package/dist/{circleBar-B48h_-uK.cjs → circleBar-B1JVQluC.cjs} +1 -1
- package/dist/{circleBar-ClO05bgq.js → circleBar-BUtmqZym.js} +2 -2
- package/dist/{clock-DB94wQje.cjs → clock-BNJFjC85.cjs} +1 -1
- package/dist/{clock-D8ZXhy53.js → clock-DhNe_L29.js} +2 -2
- package/dist/{clt-cxeCTOaA.cjs → clt-DS09EYqd.cjs} +1 -1
- package/dist/{clt-BX0SNGZr.js → clt-DgElAJo_.js} +2 -2
- package/dist/{cmc-BvnYrQrR.cjs → cmc-YYd7u-QY.cjs} +1 -1
- package/dist/{cmc-Co13D559.js → cmc-uYTH_bql.js} +2 -2
- package/dist/{cmp-B4cYCR4p.js → cmp-DwNUtgiD.js} +2 -2
- package/dist/{cmp-Dd56EQ09.cjs → cmp-_LIlSPJ1.cjs} +1 -1
- package/dist/{conclusionCard-Bla25-qd.js → conclusionCard-2e7U38q9.js} +2 -2
- package/dist/{conclusionCard-Cd3DoD1l.cjs → conclusionCard-BJCT66AX.cjs} +1 -1
- package/dist/{controlList-CyT_LYgr.cjs → controlList-Cm7vrNpm.cjs} +1 -1
- package/dist/{controlList-Dx4wSpA7.js → controlList-J_DItB3R.js} +3 -3
- package/dist/{controlRecordList-DsxYHRrs.cjs → controlRecordList-DwH-MkK_.cjs} +1 -1
- package/dist/{controlRecordList-BAI_15ZN.js → controlRecordList-GGUGUMMv.js} +3 -3
- package/dist/{controlRecordListAPP-BQlABx3f.js → controlRecordListAPP-C4LPtUXx.js} +2 -2
- package/dist/{controlRecordListAPP-Zfiwcrmq.cjs → controlRecordListAPP-CWJlq6Q4.cjs} +1 -1
- package/dist/{crd-IsqkYOAy.js → crd-DqDMG-hx.js} +56 -57
- package/dist/crd-W0OZyu6Q.cjs +1 -0
- package/dist/{ctrBtn-C3OqkyNS.cjs → ctrBtn-CWT3PVMG.cjs} +1 -1
- package/dist/{ctrBtn-LwuY-nVR.js → ctrBtn-DSqCP9tA.js} +3 -3
- package/dist/{ctrSet-B0nYCdwh.cjs → ctrSet-BKppFnu1.cjs} +1 -1
- package/dist/{ctrSet-Qb5XEdD4.js → ctrSet-D-bAunly.js} +3 -3
- package/dist/{ctrSwitch-Bps4Ak15.cjs → ctrSwitch-BFJ-KrvY.cjs} +1 -1
- package/dist/{ctrSwitch-B3jo3Gx0.js → ctrSwitch-CvuXs2UU.js} +3 -3
- package/dist/{dataManagement-CVHalRKp.js → dataManagement-BorUl90l.js} +2 -2
- package/dist/{dataManagement-BFxVtU33.cjs → dataManagement-C13-RFUx.cjs} +1 -1
- package/dist/{dataReport-Bk79cBkV.cjs → dataReport-Bur1aIJL.cjs} +1 -1
- package/dist/{dataReport-B2AiDMdM.js → dataReport-F8EPUK0m.js} +2 -2
- package/dist/{dataTable-Dh7s14jM.cjs → dataTable-B1uLxNVm.cjs} +1 -1
- package/dist/{dataTable-D9sSJRQn.js → dataTable-Digc4UYG.js} +1 -1
- package/dist/{datetime-CEKzNAlD.js → datetime-B2HzR4oW.js} +2 -2
- package/dist/{datetime-C25d1bAc.cjs → datetime-JquezhC4.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-DODVh-Qw.js → deepClusterSlipSurface-C5KWD61Q.js} +2 -2
- package/dist/{deepClusterSlipSurface-BLZL2xX6.cjs → deepClusterSlipSurface-LiAhIFTL.cjs} +1 -1
- package/dist/{deepDataMatrix-D_NPV2sQ.cjs → deepDataMatrix-Cf_RcM6k.cjs} +1 -1
- package/dist/{deepDataMatrix-9iClruS0.js → deepDataMatrix-CrVKo32h.js} +2 -2
- package/dist/{deepDisplacement3D-C6puNK1m.cjs → deepDisplacement3D-CFGsM61z.cjs} +1 -1
- package/dist/{deepDisplacement3D-C5YMqHiD.js → deepDisplacement3D-CqpBMdR9.js} +2 -2
- package/dist/{deepDisplacementChart-DEn2yqGO.js → deepDisplacementChart-BltwfhE1.js} +3 -3
- package/dist/{deepDisplacementChart-DhQO428W.cjs → deepDisplacementChart-Df3FUPCh.cjs} +1 -1
- package/dist/{deepDisplacementChart-D-dqPlzq.cjs → deepDisplacementChart-DkjQ4fkv.cjs} +1 -1
- package/dist/{deepDisplacementChart-9sQF6tFO.js → deepDisplacementChart-qEVHkptV.js} +2 -2
- package/dist/{deepDisplacementView-tzX-vzxO.cjs → deepDisplacementView-CiqJXRCI.cjs} +1 -1
- package/dist/{deepDisplacementView-Cux6lFtG.js → deepDisplacementView-a9DN060j.js} +1 -1
- package/dist/{deepNodeTemperatureChart-Cyfnw2BR.cjs → deepNodeTemperatureChart-BtcEmexL.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart--GH8-4O7.js → deepNodeTemperatureChart-t6-mnDzl.js} +2 -2
- package/dist/{deepTangentAngleChart-Dae_3j30.js → deepTangentAngleChart-ZzdLeEzC.js} +2 -2
- package/dist/{deepTangentAngleChart-DPMDFXiA.cjs → deepTangentAngleChart-gewuzLOU.cjs} +1 -1
- package/dist/{deepTemperatureField-B3Eu4zqv.cjs → deepTemperatureField-BxIxt-TJ.cjs} +1 -1
- package/dist/{deepTemperatureField-Cr2e_Ytp.js → deepTemperatureField-yLmp7ory.js} +3 -3
- package/dist/{deepTrendChart-8fniZ16K.js → deepTrendChart-BiPoTZsv.js} +2 -2
- package/dist/{deepTrendChart-BPYqojQ2.cjs → deepTrendChart-Crqx6O9C.cjs} +1 -1
- package/dist/{deviceOnlineStatus-mJ0KVMo4.cjs → deviceOnlineStatus-DiK6L6te.cjs} +1 -1
- package/dist/{deviceOnlineStatus-DP7-u5lC.js → deviceOnlineStatus-vMr4Ttoe.js} +2 -2
- package/dist/{deviceStatus-B0AxN-cY.cjs → deviceStatus-BWr8xMGE.cjs} +1 -1
- package/dist/{deviceStatus-Ih0jQNYO.js → deviceStatus-DQ1mH-tr.js} +2 -2
- package/dist/{displacementDataTable-BbZjdMtX.js → displacementDataTable-C1YNWIwQ.js} +2 -2
- package/dist/{displacementDataTable-Dkka_jGJ.cjs → displacementDataTable-CX9Hk2mo.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-DDwm-jr2.cjs → displacementTrajectoryChart-Bxiam7z3.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-BZDSkYoZ.js → displacementTrajectoryChart-DSPVm9mn.js} +2 -2
- package/dist/{displacementTrendChart-CUeVa58Q.cjs → displacementTrendChart-4z9j3til.cjs} +1 -1
- package/dist/{displacementTrendChart-DZZaVi86.js → displacementTrendChart-DM18rfxN.js} +2 -2
- package/dist/{dxf-BOfmTSO8.cjs → dxf-BIvGNyQr.cjs} +1 -1
- package/dist/{dxf-DYC74yWV.js → dxf-CZdTRr3-.js} +2 -2
- package/dist/{dzc-DUFiz7a_.cjs → dzc-BrR_-vKI.cjs} +1 -1
- package/dist/{dzc-BU7yYW4I.js → dzc-b6JbaxSz.js} +2 -2
- package/dist/{emergencyPlan-DDb6j7YU.cjs → emergencyPlan-CIHoGe6V.cjs} +1 -1
- package/dist/{emergencyPlan-DabL46QK.js → emergencyPlan-Gi2_uHgX.js} +3 -3
- package/dist/{evn-DhdColcF.js → evn-B0lZlMO4.js} +2 -2
- package/dist/{evn-DrreVqnm.cjs → evn-_5PRwXFL.cjs} +1 -1
- package/dist/{evolutionChart-aedDj0mQ.js → evolutionChart-Cg14O4jy.js} +3 -3
- package/dist/{evolutionChart-QuGAgjXo.cjs → evolutionChart-xsho6XVP.cjs} +1 -1
- package/dist/{fileViewer-oBpWIjGb.js → fileViewer-Cyrv561L.js} +2 -2
- package/dist/{fileViewer-CvNnUxUK.cjs → fileViewer-z1v9eLyT.cjs} +1 -1
- package/dist/{filterBar-CwHODFoy.cjs → filterBar-BUNhPZd2.cjs} +1 -1
- package/dist/{filterBar-DYpEssxC.js → filterBar-DB4bnLZ0.js} +2 -2
- package/dist/{fireCombustionCurve-lu2qH6_b.cjs → fireCombustionCurve-Dej-lndv.cjs} +1 -1
- package/dist/{fireCombustionCurve-wbKsWk4E.js → fireCombustionCurve-S5aOdnbU.js} +3 -3
- package/dist/{fireFilterBar-9_fqGo2q.js → fireFilterBar-CtBV9WL_.js} +2 -2
- package/dist/{fireFilterBar-B8su74tt.cjs → fireFilterBar-cB6h_XQy.cjs} +1 -1
- package/dist/{fireHistoryTable-pOJz1_Rp.cjs → fireHistoryTable-DOCuy-HR.cjs} +1 -1
- package/dist/{fireHistoryTable-C1C95uYN.js → fireHistoryTable-DZZOy0kR.js} +2 -2
- package/dist/{gag-BGUeQKJJ.js → gag-B9dx9otC.js} +2 -2
- package/dist/{gag-LSkHPD7f.cjs → gag-DkKmJPZ1.cjs} +1 -1
- package/dist/{gasStationList-DJTrXjkv.cjs → gasStationList-DisLh5Uj.cjs} +1 -1
- package/dist/{gasStationList-4TtBLsqC.js → gasStationList-X2Asa789.js} +2 -2
- package/dist/{geo3dViewer-CK89hYK7.cjs → geo3dViewer-CBt6ecb8.cjs} +1 -1
- package/dist/{geo3dViewer-DIjv75YP.js → geo3dViewer-CiKzVKzd.js} +3 -3
- package/dist/{glbModel-IOIVpCjq.js → glbModel-BnnNfJu8.js} +2 -2
- package/dist/{glbModel-BDgY9S4f.cjs → glbModel-vxOxcBfY.cjs} +1 -1
- package/dist/{globalObjectSelector-B2dkzNyk.js → globalObjectSelector-BuY_B24m.js} +1 -1
- package/dist/{globalObjectSelector-N7s0yyOp.cjs → globalObjectSelector-CGjUMfxb.cjs} +1 -1
- package/dist/{gnssFilterBar-BF_tbN4_.js → gnssFilterBar-BAjtjr4i.js} +2 -2
- package/dist/{gnssFilterBar-8eSkGWMH.cjs → gnssFilterBar-BFA38iLP.cjs} +1 -1
- package/dist/{gnssHistoryTable-DUjRjXoS.js → gnssHistoryTable-Djvc6Jdb.js} +2 -2
- package/dist/{gnssHistoryTable-X_cgOa6r.cjs → gnssHistoryTable-WkPj3f6N.cjs} +1 -1
- package/dist/{gnssMapView-DnF2bYAD.cjs → gnssMapView-BH3RBHEQ.cjs} +2 -2
- package/dist/{gnssMapView-BnwPDey9.js → gnssMapView-DeJLZEJb.js} +4 -4
- package/dist/{gnssSectionProfile-D0sbRu3A.js → gnssSectionProfile-CU_czVAF.js} +2 -2
- package/dist/{gnssSectionProfile-DoEXHKTy.cjs → gnssSectionProfile-xaVKtgrn.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-glTixABx.js → gnssTimeSeriesChart-BvSyllnp.js} +2 -2
- package/dist/{gnssTimeSeriesChart-Csm6PwRv.cjs → gnssTimeSeriesChart-hpXlRHme.cjs} +1 -1
- package/dist/{gnssXYTrajectory-4c8JDd_b.cjs → gnssXYTrajectory-CIC6gn9B.cjs} +1 -1
- package/dist/{gnssXYTrajectory-BMCO0sb0.js → gnssXYTrajectory-Dmdq-PnT.js} +2 -2
- package/dist/{grd-BTGTCp0z.js → grd-B3_37W5r.js} +2 -2
- package/dist/{grd-D1enzYOI.cjs → grd-BNh82cJv.cjs} +1 -1
- package/dist/{grdIndass-Dn62HL6y.js → grdIndass-C2_cKlqo.js} +2 -2
- package/dist/{grdIndass-B6fwa_k8.cjs → grdIndass-UL5YpOVN.cjs} +1 -1
- package/dist/{grg-B5128EcW.cjs → grg-RBfTeprb.cjs} +1 -1
- package/dist/{grg-DMOF8h8j.js → grg-l-LZiFIi.js} +2 -2
- package/dist/{gridview-Ddin99YO.cjs → gridview-DQ3UYvRc.cjs} +1 -1
- package/dist/{gridview-Dewc5Eax.js → gridview-DdVcRQDa.js} +2 -2
- package/dist/{groundwaterFilterBar-2uj_Hf_Q.cjs → groundwaterFilterBar-CNt_-xoQ.cjs} +1 -1
- package/dist/{groundwaterFilterBar-mukvYHDm.js → groundwaterFilterBar-DBMk3gox.js} +2 -2
- package/dist/{groundwaterProfileChart-BPTP8WBi.js → groundwaterProfileChart-CJeACUDa.js} +3 -3
- package/dist/{groundwaterProfileChart-DDVsfzyr.cjs → groundwaterProfileChart-DPgBwHGo.cjs} +2 -2
- package/dist/{groundwaterTimeCurve-Zzn-sEsW.cjs → groundwaterTimeCurve-BJ2-dRCa.cjs} +1 -1
- package/dist/{groundwaterTimeCurve-jtQFr0hU.js → groundwaterTimeCurve-DPQlZknH.js} +3 -3
- package/dist/{groupCard-B3fp05QD.js → groupCard-CaoCu7P5.js} +2 -2
- package/dist/{groupCard-DWjFdiH0.cjs → groupCard-yyzjr8U4.cjs} +1 -1
- package/dist/{headerBar-B6lX3WST.cjs → headerBar-B_XVnPEY.cjs} +1 -1
- package/dist/{headerBar-BkpSQMNy.js → headerBar-UZR69ix4.js} +2 -2
- package/dist/{history-DqPjJP_E.cjs → history-DHsGJFOf.cjs} +1 -1
- package/dist/{history-DgSlSTUD.js → history-DptcYt8k.js} +1 -1
- package/dist/{index-Bo49zvKb.cjs → index-D9ehIVda.cjs} +8 -8
- package/dist/{index-BbXEpgom.js → index-nru6zK5E.js} +1560 -1549
- package/dist/{insarDeformChart-8UyVWXTx.cjs → insarDeformChart-D5y2pi6R.cjs} +1 -1
- package/dist/{insarDeformChart-DNBHbVuk.js → insarDeformChart-DYrt3aNq.js} +2 -2
- package/dist/{insarImageViewer-B8PhDcuG.cjs → insarImageViewer-BGP-ktoS.cjs} +1 -1
- package/dist/{insarImageViewer-BeykgIJy.js → insarImageViewer-DuXOrFV0.js} +2 -2
- package/dist/{kds-CS473Sia.js → kds-DQW17H8R.js} +2 -2
- package/dist/{kds-BJwYrjV_.cjs → kds-Dp4hx0W6.cjs} +1 -1
- package/dist/{kpiCard-OMuCQe7O.cjs → kpiCard-0aUt2U5z.cjs} +1 -1
- package/dist/{kpiCard-CNgj9P9s.js → kpiCard-DyO-3YLf.js} +2 -2
- package/dist/{landslideMap-NaGM5jJE.cjs → landslideMap-2yF_d4_7.cjs} +1 -1
- package/dist/{landslideMap-DMNcfDYF.js → landslideMap-D5U5hSkY.js} +3 -3
- package/dist/{landslideWarning-V1wB3aWq.cjs → landslideWarning-C2BZY-at.cjs} +1 -1
- package/dist/{landslideWarning-DU-dDiiS.js → landslideWarning-bIAgVIIX.js} +5 -5
- package/dist/{layerTabs-Bgi7pfof.js → layerTabs-C26xKIu6.js} +2 -2
- package/dist/{layerTabs-VfYlv6Ks.cjs → layerTabs-iEkQSuRJ.cjs} +1 -1
- package/dist/{leaflet-src-WG2ob5HA.cjs → leaflet-src-DGU8KhZD.cjs} +1 -1
- package/dist/{leaflet-src-4AJHN6it.js → leaflet-src-xderqfOz.js} +1 -1
- package/dist/{lerc-BDiJ3I_S.js → lerc-CCL-0sUH.js} +2 -2
- package/dist/{lerc-CEea2nO1.cjs → lerc-nnW6QG9P.cjs} +1 -1
- package/dist/{lin-B_rN6QBj.cjs → lin-psrIdmWq.cjs} +1 -1
- package/dist/{lin-BO1pGlXr.js → lin-qPc-DZV1.js} +2 -2
- package/dist/{linIndass-B7XnW5XO.cjs → linIndass-C3h0p0ok.cjs} +1 -1
- package/dist/{linIndass-BGpoCQ4j.js → linIndass-DHJqj7k0.js} +2 -2
- package/dist/{lst-BBl9nn63.js → lst-CI_bABXS.js} +2 -2
- package/dist/{lst-BeB_Gi9l.cjs → lst-D3Qmo7He.cjs} +1 -1
- package/dist/{manualEntry-C3qifAlP.js → manualEntry-C3A9qrDX.js} +2 -2
- package/dist/{manualEntry-BQVUqtm7.cjs → manualEntry-D7SZvGOp.cjs} +1 -1
- package/dist/{mapBackground-CDS60ZJC.js → mapBackground-BugTUIga.js} +3 -3
- package/dist/{mapBackground-D3-V7S-d.cjs → mapBackground-CYvUGNV6.cjs} +1 -1
- package/dist/{mappingList-B0jG2LlO.js → mappingList-70-e0OmS.js} +3 -3
- package/dist/{mappingList-DnoAuivo.cjs → mappingList-BJ-loWWS.cjs} +1 -1
- package/dist/{markdownViewer-BlXaqjhL.js → markdownViewer-BxSVHMco.js} +2 -2
- package/dist/{markdownViewer-BMkbW1Cl.cjs → markdownViewer-D_j1zaJM.cjs} +1 -1
- package/dist/materialFileUrl-DkrGz5LQ.cjs +1 -0
- package/dist/{materialFileUrl-hKqW_JAq.js → materialFileUrl-SyvwFB5E.js} +5 -4
- package/dist/{mix-control-modal-aUWGjwZP.cjs → mix-control-modal-CS-lOybT.cjs} +1 -1
- package/dist/{mix-control-modal-BEXucxt5.js → mix-control-modal-DvWbmJn_.js} +1 -1
- package/dist/{mixGrid-B5pKpGT3.cjs → mixGrid-BmZ5Qqa9.cjs} +1 -1
- package/dist/{mixGrid-DQf7U1_8.js → mixGrid-XI6dlQNw.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-C6pxWuEr.js → mjpegCamera-BXrFeGm3.js} +2 -2
- package/dist/{mjpegCamera-CJgiIk0q.cjs → mjpegCamera-D2-Uc2EO.cjs} +1 -1
- package/dist/{monitorAlert-BPd1b_Cx.cjs → monitorAlert-CnP_gjvI.cjs} +1 -1
- package/dist/{monitorAlert-ZNF5siqY.js → monitorAlert-TjkxV9nx.js} +2 -2
- package/dist/{monitorData-slk6ogNe.cjs → monitorData-BpyzcuzE.cjs} +1 -1
- package/dist/{monitorData-DIxZYNVr.js → monitorData-CkD6tz8x.js} +2 -2
- package/dist/{monitorSpeedChart-BRwbLD8B.cjs → monitorSpeedChart-BE9wJ8LA.cjs} +1 -1
- package/dist/{monitorSpeedChart-DCO39Aka.js → monitorSpeedChart-LMAvdp1a.js} +1 -1
- package/dist/{mxa-DFq19ply.js → mxa-BGm4E2oj.js} +2 -2
- package/dist/{mxa-Bp4RH0w3.cjs → mxa-CzskPPvU.cjs} +1 -1
- package/dist/{myValue-g8shJQA9.cjs → myValue-BeTEf6SX.cjs} +1 -1
- package/dist/{myValue-BvItzUMv.js → myValue-BnlcjDSq.js} +2 -2
- package/dist/{myValueList-A_UGyNxN.js → myValueList-B5swLYff.js} +2 -2
- package/dist/{myValueList-DnZBoJXp.cjs → myValueList-zVkTLQrP.cjs} +1 -1
- package/dist/{objectList-DgVJlA1o.js → objectList-BHKtuK_E.js} +225 -213
- package/dist/objectList-CVz7jUhV.cjs +1 -0
- package/dist/{objectListAPP-CdewSo8l.js → objectListAPP-0Iuanvz-.js} +3 -3
- package/dist/{objectListAPP-DxRImk8W.cjs → objectListAPP-BAXwRH73.cjs} +1 -1
- package/dist/{percentBar-Cq5ACj9c.cjs → percentBar-Dy_RZ-16.cjs} +1 -1
- package/dist/{percentBar-BvmYW_u6.js → percentBar-UaUBa8pT.js} +2 -2
- package/dist/{photo-t11P9WKh.js → photo-BN8MzHVR.js} +3 -3
- package/dist/{photo-B-kxNdb5.cjs → photo-C7eoToJB.cjs} +1 -1
- package/dist/{pie-yTahcSl_.js → pie-C0gZTNM3.js} +2 -2
- package/dist/{pie-0s6FwVBt.cjs → pie-CPyctjgS.cjs} +1 -1
- package/dist/{placeholder-DBmyvwFn.cjs → placeholder-BHJQm9H3.cjs} +1 -1
- package/dist/{placeholder-D_CaQ-hg.js → placeholder-tSU5fQxu.js} +1 -1
- package/dist/{pressBtn-CP4kJr-P.js → pressBtn-D4vNvwB7.js} +3 -3
- package/dist/{pressBtn-JFezb7Yx.cjs → pressBtn-DmprQWtp.cjs} +1 -1
- package/dist/{processTable-BXswsnmt.js → processTable-BfbVj9Rv.js} +2 -2
- package/dist/{processTable-DRdI9ExW.cjs → processTable-CItb59hD.cjs} +1 -1
- package/dist/{progressBar-Sn6tAxTY.cjs → progressBar-BNArO298.cjs} +1 -1
- package/dist/{progressBar-D1Xh5APg.js → progressBar-CeWq1Q8-.js} +2 -2
- package/dist/{progressCircle-BMpJVwIE.js → progressCircle-BshtPibr.js} +2 -2
- package/dist/{progressCircle-DLk9v_Os.cjs → progressCircle-CFPbq8WS.cjs} +1 -1
- package/dist/{qrcode-BDtn3Ql7.cjs → qrcode-DVtk1b5F.cjs} +1 -1
- package/dist/{qrcode-BqlqV7Jf.js → qrcode-UsFuP8-Y.js} +2 -2
- package/dist/{raceBar-BpvWNCV7.cjs → raceBar-BYLfgaFz.cjs} +1 -1
- package/dist/{raceBar-zSL-J18j.js → raceBar-COvS_R8D.js} +2 -2
- package/dist/{rad-DSfVfaMa.cjs → rad-CkB-n_ms.cjs} +1 -1
- package/dist/{rad-CZhY-L-z.js → rad-D33c2RGY.js} +2 -2
- package/dist/{radarMapViewer-B4tTLLyl.js → radarMapViewer-BODSZl1u.js} +2 -2
- package/dist/{radarMapViewer-GmzS18dJ.cjs → radarMapViewer-DlFWHDQy.cjs} +1 -1
- package/dist/{rainfallFilterBar-ijVmoglb.js → rainfallFilterBar-BFMnGW2A.js} +2 -2
- package/dist/{rainfallFilterBar-DHaVjXt5.cjs → rainfallFilterBar-DquisAn6.cjs} +1 -1
- package/dist/{rainfallTimeCurve-B3_bl5L6.js → rainfallTimeCurve-C7AGPuwX.js} +3 -3
- package/dist/{rainfallTimeCurve-Crz3Adzh.cjs → rainfallTimeCurve-DXFH_dGt.cjs} +1 -1
- package/dist/{rangeLin-BOEsEaV1.js → rangeLin-Cda_LTSF.js} +2 -2
- package/dist/{rangeLin-DpEbvxsg.cjs → rangeLin-s-_gmKS0.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-C2u4a2JL.js → realtimeEvolutionMap-BZGG9sn0.js} +2 -2
- package/dist/{realtimeEvolutionMap-BwQJkus6.cjs → realtimeEvolutionMap-DZAGkUNu.cjs} +1 -1
- package/dist/{regionBar-BQr-kq-M.js → regionBar-BJL96Emk.js} +2 -2
- package/dist/{regionBar-P1fqv7Vb.cjs → regionBar-LMJvgf0X.cjs} +1 -1
- package/dist/{request-Bn2gQLgM.js → request-DegJhVlL.js} +1 -1
- package/dist/{request-D9N74QdZ.cjs → request-DkP7M6Af.cjs} +1 -1
- package/dist/{retainer1-BCh8WSOq.cjs → retainer1-B0ZegRdn.cjs} +1 -1
- package/dist/{retainer1-Fnw0-Jvy.js → retainer1-CkOgZNh9.js} +3 -3
- package/dist/{retainer2-_3NOOefF.cjs → retainer2-D28sge-m.cjs} +1 -1
- package/dist/{retainer2-nPyFv6Hs.js → retainer2-npgiiskx.js} +3 -3
- package/dist/{retainerRecordList-BaOTTQQN.cjs → retainerRecordList-B8nyu28l.cjs} +1 -1
- package/dist/{retainerRecordList-C_UsUKsQ.js → retainerRecordList-hv5QyWME.js} +3 -3
- package/dist/{retainerRecordListAPP-BgKyfAMh.js → retainerRecordListAPP-DkXvtq9K.js} +3 -3
- package/dist/{retainerRecordListAPP-CE3l6WrB.cjs → retainerRecordListAPP-WALqHGbm.cjs} +1 -1
- package/dist/{ringTopN-Dz0EoM-A.js → ringTopN-Becl3FRO.js} +2 -2
- package/dist/{ringTopN-DEv30Ms2.cjs → ringTopN-BknMVZLZ.cjs} +1 -1
- package/dist/{riskRegionTable-Dot8zD_6.js → riskRegionTable-Cd_0Rd-M.js} +2 -2
- package/dist/{riskRegionTable-BODT2UTF.cjs → riskRegionTable-CyJIOy57.cjs} +1 -1
- package/dist/{sankey-CbEUEE5B.js → sankey-DcdzfDDI.js} +2 -2
- package/dist/{sankey-CYTyQB-L.cjs → sankey-wr0x7tfw.cjs} +1 -1
- package/dist/scd-B7RWxgVJ.cjs +1 -0
- package/dist/{scd-Btsiastw.js → scd-vg1A8R5X.js} +344 -348
- package/dist/{sideMenu-dnpq3qTF.cjs → sideMenu-BQmUk_pp.cjs} +1 -1
- package/dist/{sideMenu-BxJRAAdM.js → sideMenu-r-paLSMO.js} +2 -2
- package/dist/{slopeStability-DX7WP5ZW.cjs → slopeStability-C9dfB2fF.cjs} +1 -1
- package/dist/{slopeStability-DrooNf1g.js → slopeStability-CCGImuom.js} +2 -2
- package/dist/{speedCurve-BT8wnfZI.cjs → speedCurve-BVeqdClI.cjs} +1 -1
- package/dist/{speedCurve-CNUJ5ScK.js → speedCurve-Dwf-w3GL.js} +2 -2
- package/dist/{stackedBar-X8Y4lVgT.cjs → stackedBar-C0M7bOpV.cjs} +1 -1
- package/dist/{stackedBar-nIfO6Aa3.js → stackedBar-lXH6oJX4.js} +2 -2
- package/dist/{stationList-D7lGCblu.js → stationList-34Qu34hq.js} +2 -2
- package/dist/{stationList-DVzvGGHI.cjs → stationList-DB-Hn4KT.cjs} +1 -1
- package/dist/{stressFilterBar-D5xktTRI.cjs → stressFilterBar-BfmLl6RK.cjs} +1 -1
- package/dist/{stressFilterBar-DqeqFHm7.js → stressFilterBar-e1E4tOup.js} +2 -2
- package/dist/{stressTimeCurve-DfjNQ0rU.js → stressTimeCurve-BUo51IkU.js} +3 -3
- package/dist/{stressTimeCurve-Bhhb-eqB.cjs → stressTimeCurve-D_lNCKx9.cjs} +1 -1
- package/dist/{swiper-DuNuvT_N.js → swiper-43PBhQqD.js} +2 -2
- package/dist/{swiper-XCpwFkWS.cjs → swiper-CrFwcs3m.cjs} +1 -1
- package/dist/{tablemanCreate-Cp5DaYUd.cjs → tablemanCreate-1S_EcSDm.cjs} +1 -1
- package/dist/{tablemanCreate-Cp9nOGg2.js → tablemanCreate-CpbZDLF6.js} +3 -3
- package/dist/{tablemanDetail-3ZMWkdpz.cjs → tablemanDetail-DlTYZCx5.cjs} +1 -1
- package/dist/{tablemanDetail-DvZdgdHD.js → tablemanDetail-DyCQ7DyB.js} +4 -4
- package/dist/{tablemanList-OLxgUmAi.cjs → tablemanList-BbjUecnu.cjs} +1 -1
- package/dist/{tablemanList-DZdb1FUR.js → tablemanList-C6Gtfx1o.js} +4 -4
- package/dist/{tablemanTableList-BN6QjYEV.cjs → tablemanTableList-DR_KxUuu.cjs} +1 -1
- package/dist/{tablemanTableList-CqsnRIHS.js → tablemanTableList-Dj71HRDW.js} +3 -3
- package/dist/{tablemanUpdate-CHs5OgAG.js → tablemanUpdate-BtnIRkBn.js} +3 -3
- package/dist/{tablemanUpdate-E3d7A3WM.cjs → tablemanUpdate-CA7JRGBh.cjs} +1 -1
- package/dist/{terminalConfigList-BlgcWy40.cjs → terminalConfigList-BDaYrefd.cjs} +1 -1
- package/dist/{terminalConfigList-BEBNi1Nl.js → terminalConfigList-Brd1oIU1.js} +3 -3
- package/dist/{terminalList-CJpH2Z-r.js → terminalList-B5R-5IYH.js} +3 -3
- package/dist/{terminalList-Bl5BPmF9.cjs → terminalList-DyYTp_7j.cjs} +1 -1
- package/dist/{terminalListAPP-BpONJQOA.js → terminalListAPP-Cz9-XSy9.js} +3 -3
- package/dist/{terminalListAPP-Dgvz8I3j.cjs → terminalListAPP-DQyeShOh.cjs} +1 -1
- package/dist/{textbox-CJnSDwg7.js → textbox-AofzoSoM.js} +2 -2
- package/dist/{textbox-DR0bQEX7.cjs → textbox-DQg0UmXD.cjs} +1 -1
- package/dist/{timeQueryBar-FJDQv-gp.js → timeQueryBar-B62qxOHn.js} +1 -1
- package/dist/{timeQueryBar-Cmyan_30.cjs → timeQueryBar-BPKD7Elj.cjs} +1 -1
- package/dist/{timeSeries-_RLSUPmg.cjs → timeSeries-Bp_iMD22.cjs} +1 -1
- package/dist/{timeSeries-t4uZvXRF.js → timeSeries-Vl1W6ELZ.js} +3 -3
- package/dist/{timeSeriesCurve-BxWiI6w-.js → timeSeriesCurve-D8iElxyO.js} +3 -3
- package/dist/{timeSeriesCurve-BUuLFQ8A.cjs → timeSeriesCurve-DNYyUKj1.cjs} +1 -1
- package/dist/{toggleBtn-Cx44qVci.js → toggleBtn-CizAxinC.js} +2 -2
- package/dist/{toggleBtn-BcpJcxpU.cjs → toggleBtn-DOXzintk.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-dyo30nx9.js → trajectoryConfigPanel-BYMdJKNX.js} +1 -1
- package/dist/{trajectoryConfigPanel-BTUv5OVS.cjs → trajectoryConfigPanel-Bw_l7pKo.cjs} +1 -1
- package/dist/{trajectoryScatter-CK4_Z1iU.cjs → trajectoryScatter-DP56FRFE.cjs} +1 -1
- package/dist/{trajectoryScatter-BghFGqxH.js → trajectoryScatter-DPbgYMS8.js} +2 -2
- package/dist/{universalConfigPanel-yJFrQDBa.js → universalConfigPanel-B3BIF8L5.js} +1 -1
- package/dist/{universalConfigPanel-Cvlpgn-j.cjs → universalConfigPanel-DV9h6sMj.cjs} +1 -1
- package/dist/{universalTable-CvBC-L9Z.js → universalTable-CQ3B2I-G.js} +2 -2
- package/dist/{universalTable-CRJ7Rx0P.cjs → universalTable-Jxfp2RkG.cjs} +1 -1
- package/dist/{useTablemanApi-BAt370b-.js → useTablemanApi-Bh5_NFWe.js} +1 -1
- package/dist/{useTablemanApi-fqoMpRxe.cjs → useTablemanApi-Df1q1aWI.cjs} +1 -1
- package/dist/{useTablemanFormPanel-Cxo0WsI1.cjs → useTablemanFormPanel-Byr9usXu.cjs} +1 -1
- package/dist/{useTablemanFormPanel-BKbM39_H.js → useTablemanFormPanel-DRv-m4UQ.js} +2 -2
- package/dist/{useTablemanListActions-DRXW-WTa.cjs → useTablemanListActions-DWDKR-3Y.cjs} +1 -1
- package/dist/{useTablemanListActions-CYauYy6z.js → useTablemanListActions-DX-_BfWk.js} +3 -3
- package/dist/{video-C1N8Ikkh.js → video-C6XgnAxj.js} +2 -2
- package/dist/{video-BN19nKK_.cjs → video-D_eGQjE9.cjs} +1 -1
- package/dist/{videoMonitor-fkEuZ25x.js → videoMonitor-Cez3ENoV.js} +2 -2
- package/dist/{videoMonitor-PKypdwRl.cjs → videoMonitor-_F66e2Ol.cjs} +1 -1
- package/dist/{vlu-B8tqM9md.js → vlu-8CrS8YvY.js} +2 -2
- package/dist/{vlu-DrABl6SW.cjs → vlu-Cz0gMSym.cjs} +1 -1
- package/dist/{warningOverview-_rp_SbLs.js → warningOverview-DfDN7kF-.js} +3 -3
- package/dist/{warningOverview-DaTHPveq.cjs → warningOverview-YWMdtsgL.cjs} +1 -1
- package/dist/{weather-qvsptrt0.js → weather-BDi6MTCV.js} +2 -2
- package/dist/{weather-B_XCWwDa.cjs → weather-p1VDVqeB.cjs} +1 -1
- package/dist/{windLin-BDtJUYBu.js → windLin-BpS0UWbr.js} +2 -2
- package/dist/{windLin-P84T5W3o.cjs → windLin-CCfJT1_-.cjs} +1 -1
- package/package.json +1 -1
- package/dist/crd-C6iegy7d.cjs +0 -1
- package/dist/materialFileUrl-8YHw7z1T.cjs +0 -1
- package/dist/objectList-BcSCvy54.cjs +0 -1
- package/dist/scd-DwdWl6Wz.cjs +0 -1
|
@@ -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-CPat9pFl.cjs"),y=require("./index-D9ehIVda.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;
|
|
@@ -27,8 +27,8 @@ var b = (i, e, t) => new Promise((_, r) => {
|
|
|
27
27
|
u((t = t.apply(i, e)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as V, ref as M, computed as N, openBlock as B, createElementBlock as R, normalizeStyle as y, unref as l, createElementVNode as S, toDisplayString as g, renderSlot as j } from "vue";
|
|
30
|
-
import { B as L } from "./BaseComponent-
|
|
31
|
-
import { d as I, _ as U } from "./index-
|
|
30
|
+
import { B as L } from "./BaseComponent-DMJmgFIo.js";
|
|
31
|
+
import { d as I, _ as U } from "./index-nru6zK5E.js";
|
|
32
32
|
import { g as k } from "./titleStyle-BT5GlpAb.js";
|
|
33
33
|
import { A as F, D as H } from "./ele-vlu-icon-Bg6EHZdJ.js";
|
|
34
34
|
const P = { class: "mix-body" }, Y = { class: "mix-footer" }, $ = "--", w = "--", W = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty,z=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var g=(l,o,t)=>o in l?A(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)=>z(l,b(o));var h=(l,o,t)=>new Promise((y,c)=>{var n=a=>{try{d(t.next(a))}catch(i){c(i)}},u=a=>{try{d(t.throw(a))}catch(i){c(i)}},d=a=>a.done?y(a.value):Promise.resolve(a.value).then(n,u);d((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("./BaseComponent-
|
|
1
|
+
"use strict";var A=Object.defineProperty,z=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var g=(l,o,t)=>o in l?A(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)=>z(l,b(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-CPat9pFl.cjs"),O=require("./index-D9ehIVda.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",titleSize:14,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-e0ed34ae"]]);exports.default=$;
|
|
@@ -12,10 +12,10 @@ var k = (t, o, a) => o in t ? q(t, o, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, U = (t, o) => G(t, J(o));
|
|
13
13
|
import { defineComponent as X, computed as b, reactive as Y, ref as V, onMounted as Z, onBeforeUnmount as ee, openBlock as le, createElementBlock as oe, normalizeStyle as ae, createVNode as p, renderSlot as te } from "vue";
|
|
14
14
|
import "html2canvas";
|
|
15
|
-
import { B as ne } from "./BaseComponent-
|
|
16
|
-
import { _ as re } from "./index-
|
|
15
|
+
import { B as ne } from "./BaseComponent-DMJmgFIo.js";
|
|
16
|
+
import { _ as re } from "./index-nru6zK5E.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-HKCYJnCh.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-CPat9pFl.cjs"),Y=require("./index-D9ehIVda.cjs"),Z=require("./mockData-Cj71Qk7-.cjs"),b=require("./HistoryPlanDialog-92_V1nQB.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;
|
|
@@ -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-DMJmgFIo.js";
|
|
16
|
+
import { F as f, _ as B } from "./index-nru6zK5E.js";
|
|
17
17
|
const N = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e天气%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-807.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", O = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e天气%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-807.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", z = { class: "mix-component" }, L = ["src"], A = {
|
|
18
18
|
DEFAULT_ICON: N,
|
|
19
19
|
ACTIVE_ICON: O,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var 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-9njJjeix.cjs"),i=require("./index-Bo49zvKb.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-CPat9pFl.cjs"),i=require("./index-D9ehIVda.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;
|
|
@@ -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 { j as Vn, G as Xn, I as on, J as Yn, B as Hn, _ as Gn } from "./index-
|
|
14
|
+
import { B as Kn, u as Wn, p as bn } from "./BaseComponent-DMJmgFIo.js";
|
|
15
|
+
import { j as Vn, G as Xn, I as on, J as Yn, B as Hn, _ as Gn } from "./index-nru6zK5E.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-9njJjeix.cjs"),Q=require("./index-Bo49zvKb.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-CPat9pFl.cjs"),Q=require("./index-D9ehIVda.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
package/dist/crd-C6iegy7d.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var F=Object.defineProperty,L=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var V=(p,i,l)=>i in p?F(p,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):p[i]=l,y=(p,i)=>{for(var l in i||(i={}))H.call(i,l)&&V(p,l,i[l]);if(T)for(var l of T(i))j.call(i,l)&&V(p,l,i[l]);return p},x=(p,i)=>L(p,D(i));var O=(p,i,l)=>new Promise((h,g)=>{var c=u=>{try{m(l.next(u))}catch(f){g(f)}},S=u=>{try{m(l.throw(u))}catch(f){g(f)}},m=u=>u.done?h(u.value):Promise.resolve(u.value).then(c,S);m((l=l.apply(p,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),R=require("./BaseComponent-9njJjeix.cjs"),G=require("./index-Bo49zvKb.cjs"),$=require("./titleStyle-NSnz6cUg.cjs"),_=require("./ele-crd-icon-BvNgAPKW.cjs"),M={class:"value-main"},W={key:0,class:"value-unit"},B="--",U={DEFAULT_ICON:_.DEFAULT_ICON,ACTIVE_ICON:_.ACTIVE_ICON,NAME_CN:"基础卡片",NAME_EN:"Card",ORDER:1,PLATFORM:["pc","screen","mobile"]},q={titleColor:"#111",titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,labelColor:"#111",textColor:"#111",bgColor:"#fff",valueSize:28,nameSize:14,radiusSize:8,isHideTitle:!0,showTopGradient:!1,topGradientStart:{value:"#f5a623",type:"color",label:"component.options.topGradientStart",dependent:"showTopGradient"},topGradientHeight:{value:2,type:"number",min:1,max:16,label:"component.options.topGradientHeight",dependent:"showTopGradient"},topGradientPosition:{value:"cardItem",type:"select",label:"component.options.topGradientPosition",dependent:"showTopGradient",options:[{label:"component.options.topGradientPosition_cardItem",value:"cardItem"},{label:"component.options.topGradientPosition_aboveTitle",value:"aboveTitle"}]},showBgIcon:!1,defaultBgIcon:{value:"",type:"text",label:"component.options.defaultBgIcon",dependent:"showBgIcon"},bgIconOpacity:{value:.06,type:"number",min:0,max:1,step:.01,label:"component.options.bgIconOpacity",dependent:"showBgIcon"},bgIconSize:{value:40,type:"number",min:8,max:120,label:"component.options.bgIconSize",dependent:"showBgIcon"},bgIconPosition:{value:"right",type:"select",label:"component.options.bgIconPosition",dependent:"showBgIcon",options:[{label:"component.options.bgIconPosition_right",value:"right"},{label:"component.options.bgIconPosition_left",value:"left"}]},paramsLayout:{value:"horizontal",type:"select",label:"component.options.paramsLayout",options:[{label:"component.options.paramsLayout_horizontal",value:"horizontal"},{label:"component.options.paramsLayout_vertical",value:"vertical"}]}},J=[{name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1,valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"}],K=["name","fv","object_id","unit","default","isText",{key:"valueFontSize",type:"number",label:"component.options.crdValueFontSize",group:"component.options.crdGroupCellStyle",groupCollapsedByDefault:!0,min:0,max:120},{key:"nameFontSize",type:"number",label:"component.options.crdNameFontSize",group:"component.options.crdGroupCellStyle",min:0,max:120},{key:"valueTextColor",type:"color",label:"component.options.crdValueTextColor",group:"component.options.crdGroupCellStyle"},{key:"valueAlign",type:"select",label:"component.options.crdValueAlign",group:"component.options.crdGroupCellStyle",options:[{label:"component.options.crdValueAlign_left",value:"left"},{label:"component.options.crdValueAlign_center",value:"center"},{label:"component.options.crdValueAlign_right",value:"right"}]},{key:"nameTextColor",type:"color",label:"component.options.crdNameTextColor",group:"component.options.crdGroupCellStyle"},{key:"areaWeight",type:"number",label:"component.options.crdAreaWeight",group:"component.options.crdGroupCellStyle",min:1,max:32},{key:"cellPadding",type:"number",label:"component.options.crdCellPadding",group:"component.options.crdGroupCellStyle",min:0,max:64}],Q=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],X={useAlias:!1,multiObject:!1,source:"mosaic",object_id:"",object_alias:""},Y={DEFAULT:U,OPTIONS:q,DATA:J,PARAMS:K,SOURCE:Q,COMMON:X},Z=e.defineComponent(x(y({},Y),{__name:"crd",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const i={valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"},l=p;class h extends R.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),labelColor:this.getOptionValue("labelColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",14),valueSize:this.getOptionValue("valueSize",28),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0),showTopGradient:this.getOptionValue("showTopGradient",!1),topGradientStart:this.getOptionValue("topGradientStart","#f5a623"),topGradientHeight:this.getOptionValue("topGradientHeight",2),topGradientPosition:this.getOptionValue("topGradientPosition","cardItem"),showBgIcon:this.getOptionValue("showBgIcon",!1),defaultBgIcon:this.getOptionValue("defaultBgIcon",""),bgIconOpacity:this.getOptionValue("bgIconOpacity",.06),bgIconSize:this.getOptionValue("bgIconSize",40),bgIconPosition:this.getOptionValue("bgIconPosition","right"),paramsLayout:this.getOptionValue("paramsLayout","horizontal")}}init(){return O(this,null,function*(){var o;this.Style.value=this.extractStyles(),this.applyTheme();const n={name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1};if(!((o=this.props.conf.data)!=null&&o.length))this.props.conf.data=[y(y({},n),i)];else for(const a of this.props.conf.data)if(!(!a||typeof a!="object"))for(const[s,r]of Object.entries(i))a[s]===void 0&&(a[s]=r)})}setHistoryData(n){if(!n)return;const{data:o}=this.props.conf;!Array.isArray(o)||!o.length||o.forEach((a,s)=>{try{const r=n[s].data[0];r!=null&&(a.value=r)}catch(r){}})}}const g=new h(l,"crd");g.setupLifecycle();const c=g.getStyle(),S=e.computed(()=>$.generateTitleStyle(l.conf.options)),m=e.computed(()=>{const t=S.value||{},n=parseFloat(String(t.fontSize||"14"))||14,o=String(t.padding||"").split(" ").filter(Boolean),a=o.length>0&&parseFloat(o[0])||0,s=Math.ceil(n*1.5),r=Math.max(0,s+a*2);return x(y({},t),{minHeight:`${r}px`})}),u=e.computed(()=>{const t=c.value,n=Number(t.topGradientHeight)||2,o=t.topGradientStart||"#f5a623";return{height:`${n}px`,background:`linear-gradient(90deg, ${o}, transparent)`}}),f=e.computed(()=>{const t=c.value;return!!t.showTopGradient&&t.topGradientPosition==="aboveTitle"}),N=e.computed(()=>{const t=c.value;return!!t.showTopGradient&&t.topGradientPosition!=="aboveTitle"}),z=e.computed(()=>c.value.paramsLayout==="vertical"),k=e.computed(()=>{var o;const t=c.value,n=t.bgIconPosition==="right";return{opacity:(o=t.bgIconOpacity)!=null?o:.06,fontSize:`${Number(t.bgIconSize)||40}px`,display:"flex",alignItems:"center",justifyContent:n?"flex-end":"flex-start",paddingRight:n?"12px":void 0,paddingLeft:n?void 0:"12px"}});function A(t){const n=Number(t==null?void 0:t.areaWeight),o=Number.isFinite(n)&&n>0?n:1,a=Number(t==null?void 0:t.cellPadding),s={flex:`${o} 1 0`,minWidth:"0",minHeight:"0"};return Number.isFinite(a)&&a>0&&(s.padding=`${a}px`),s}function E(t){const n=c.value,o=Number(t==null?void 0:t.valueFontSize),a=Number.isFinite(o)&&o>0?o:n.valueSize,s=typeof(t==null?void 0:t.valueTextColor)=="string"?t.valueTextColor.trim():"",r=t==null?void 0:t.valueAlign,d=r==="left"||r==="right"||r==="center"?r:"center",b=d==="left"?"flex-start":d==="right"?"flex-end":"center";return{color:s||n.textColor,fontSize:`${a}px`,width:"100%",justifyContent:b,textAlign:d}}function P(t){const n=c.value,o=Number(t==null?void 0:t.nameFontSize),a=Number.isFinite(o)&&o>0?o:n.nameSize;return{color:(typeof(t==null?void 0:t.nameTextColor)=="string"?t.nameTextColor.trim():"")||n.labelColor,fontSize:`${a}px`}}function I(){const t=c.value.defaultBgIcon,n=typeof t=="string"?t.trim():"";return n?G.decodeIconFromStorage(n):""}const v=t=>{var s,r,d,b;if(!t)return{value:B,name:"--",unit:""};const n=(s=t.name)!=null?s:"",o=typeof t.unit=="string"?t.unit.trim():"";return t.isText?{value:(((r=t.flag)==null?void 0:r.find(w=>String(w.code)==String(t.value)))||{}).text||B,name:n,unit:o}:{value:(b=(d=t.value)!=null?d:t.default)!=null?b:0,name:n,unit:o}},C=l.conf;return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:e.unref(c).radiusSize+"px"})},[f.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-component-top-gradient",style:e.normalizeStyle(u.value)},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(m.value)},e.toDisplayString(e.unref(C).caption||e.unref(C).name),5),e.createElementVNode("div",{class:e.normalizeClass(["mix-body",{"mix-body--params-vertical":z.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C).data,(o,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"card-item",style:e.normalizeStyle(A(o))},[e.createElementVNode("div",{class:"card-item-surface",style:e.normalizeStyle({background:e.unref(c).bgColor})},null,4),N.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"card-item-top-gradient",style:e.normalizeStyle(u.value)},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["card-item-inner",{"card-item-inner--row":z.value}])},[e.createElementVNode("div",{class:"value",style:e.normalizeStyle(E(o))},[e.createElementVNode("span",M,e.toDisplayString(v(o).value),1),v(o).unit?(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(v(o).unit),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",{class:"name",style:e.normalizeStyle(P(o))},e.toDisplayString(v(o).name),5)],2)],4))),128)),e.unref(c).showBgIcon&&I()?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-body-bg-icon",style:e.normalizeStyle(k.value)},e.toDisplayString(I()),5)):e.createCommentVNode("",!0)],2),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),ee=G._export_sfc(Z,[["__scopeId","data-v-5ea5da48"]]);exports.default=ee;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function a(t){return t.replace(/\/$/,"")}function h(){return!0}function g(){var l,i;const t="".trim();if(t)return a(t);if(h()&&typeof window!="undefined"&&((l=window.location)!=null&&l.origin))return`${a(window.location.origin)}/mixservice/storage/material/file`;const e="".trim();if(e){const n=a(e);return n.toLowerCase().includes("yunfiles/material/file")?n:`${n}/mixdesignd/yunfiles/material/file`}if(typeof window!="undefined"&&((i=window.location)!=null&&i.origin))return`${a(window.location.origin)}/mixdesignd/yunfiles/material/file`;const r="".trim();if(r){const n=a(r);return n.toLowerCase().includes("yunfiles/material/file")?n:`${n}/mixdesignd/yunfiles/material/file`}return`${a("https://yunui.mixyun.top")}/mixdesignd/yunfiles/material/file`}function w(t){if(!(t!=null&&t.trim()))return"";let e=String(t).trim().replace(/\\/g,"/");e=e.replace(/^\/+/,"");const r=e.toLowerCase(),l=o=>{const f=o.toLowerCase();if(r.startsWith(f))return e.slice(o.length).replace(/^\/+/,"");const p=r.indexOf("/"+f);return p>=0?e.slice(p+1+o.length).replace(/^\/+/,""):null};let i=l("mixdesignd/yunfiles/material/file/");if(i!=null||(i=l("preview/yunfiles/material/file/"),i!=null)||(i=l("mixservice/storage/yunfiles/material/file/"),i!=null)||(i=l("yunfiles/material/file/"),i!=null)||(i=l("mixservice/storage/material/file/"),i!=null)||(i=l("material/file/"),i!=null))return i;const n="mixservice/storage/material/mixyun_dashboard/",s=r.indexOf(n);if(s>=0)return e.slice(s+n.length).replace(/^\/+/,"");const c=o=>{const f=`${o}/`;return r.startsWith(f)&&(e=e.slice(f.length),e.toLowerCase().startsWith("yunfiles/material/file/"))?e.slice(23).replace(/^\/+/,""):null},m=c("mixdesignd");if(m!=null)return m;const d=c("preview");return d!=null?d:e.replace(/^\/+/,"")}function u(t){return t.split("/").filter(Boolean).map(e=>{try{return encodeURIComponent(decodeURIComponent(e))}catch(r){return encodeURIComponent(e)}}).join("/")}function x(t){var r;const e=t.replace(/^\/+/,"");return typeof window!="undefined"&&((r=window.location)!=null&&r.origin)?`${a(window.location.origin)}/${e}`.replace(/([^:])\/{2,}/g,"$1/"):`/${e}`}function y(t){if(!(t!=null&&t.trim()))return"";const e=t.trim();if(e.startsWith("data:")||e.startsWith("blob:"))return e;if(e.startsWith("http://")||e.startsWith("https://"))try{const n=new URL(e),s=n.pathname.replace(/^\/+/,""),c=s.toLowerCase();if(c.includes("yunfiles/material/file")||c.includes("mixservice/storage/material/file")||c.includes("mixservice/storage/material/mixyun_dashboard")){const o=u(w(s));if(o)return`${g()}/${o}`.replace(/([^:])\/{2,}/g,"$1/")}const d=u(s);return n.pathname="/"+d,n.toString()}catch(n){return e}const r=w(e).replace(/^\/+/,"");if(/^mixservice\/storage\//i.test(r))return x(u(r));if(/^mixportal\//i.test(r))return x(u(`mixservice/storage/${r}`));const l=u(r);return l?`${g()}/${l}`.replace(/([^:])\/{2,}/g,"$1/"):""}function $(t){if(!(t!=null&&t.trim()))return"";const e=t.trim();if(e.startsWith("blob:")||e.startsWith("data:"))return e;try{const r=new URL(e,typeof window!="undefined"?window.location.href:void 0),l=r.pathname.split("/").filter(Boolean).map(i=>{try{return encodeURIComponent(decodeURIComponent(i))}catch(n){return encodeURIComponent(i)}});return r.pathname="/"+l.join("/"),r.toString()}catch(r){return e}}exports.buildMaterialFileUrlByMaterialPath=y;exports.encodeMaterialFileRequestUrl=$;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var Dt=Object.defineProperty,Et=Object.defineProperties;var Tt=Object.getOwnPropertyDescriptors;var Je=Object.getOwnPropertySymbols;var At=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable;var Ge=(h,g,b)=>g in h?Dt(h,g,{enumerable:!0,configurable:!0,writable:!0,value:b}):h[g]=b,J=(h,g)=>{for(var b in g||(g={}))At.call(g,b)&&Ge(h,b,g[b]);if(Je)for(var b of Je(g))Lt.call(g,b)&&Ge(h,b,g[b]);return h},se=(h,g)=>Et(h,Tt(g));var w=(h,g,b)=>new Promise((ae,_)=>{var z=S=>{try{G(b.next(S))}catch(Q){_(Q)}},ue=S=>{try{G(b.throw(S))}catch(Q){_(Q)}},G=S=>S.done?ae(S.value):Promise.resolve(S.value).then(z,ue);G((b=b.apply(h,g)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/empty/style/css");require("element-plus/es/components/collapse/style/css");require("element-plus/es/components/collapse-item/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/alert/style/css");require("element-plus/es/components/divider/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),V=require("./index-Bo49zvKb.cjs"),Ft=require("./useMixiotPanelSurface-CAZgexY5.cjs"),jt=require("./BaseComponent-9njJjeix.cjs"),Ot=require("./titleStyle-NSnz6cUg.cjs"),x=require("element-plus"),Rt=require("@element-plus/icons-vue"),Ut=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),ce=require("./objectList.tabs-BRCf7OY9.cjs"),Qe=require("./objectList.history-BkLFQ-o7.cjs"),we=require("./syncMixiotListConfig-Elkp8zAs.cjs"),Mt=require("./migrateMixiotListKeys-C8_DM_Sv.cjs"),qt=require("./AgGridTable-Bi7O66-r.cjs"),Pt=require("./AgActionsRenderer.vue_vue_type_script_setup_true_lang-Cojc_jSG.cjs"),Xe=require("./ele-lst-icon-CrxnHZ-A.cjs"),It={class:"mix-body"},Kt={class:"top-bar"},zt={class:"dialog-footer"},Ht={class:"dialog-footer"},$t={class:"view-detail-body"},Yt={key:1,class:"view-detail-layout"},Wt={class:"view-detail-tabs"},Jt=["onClick"],Gt={class:"view-detail-pane"},Qt={key:0,class:"view-detail-error"},Xt={class:"mix-detail-block"},Zt=["src"],ea={key:1,class:"mix-detail-title-sm"},ta={key:2,class:"mix-detail-block"},aa={key:1,class:"detail-tab-body detail-tab-body--monitor"},la={key:2,class:"detail-tab-body"},oa={key:3,class:"detail-tab-body"},ia={class:"tab-card-title"},ra={class:"tab-card-meta"},na={key:0},da={key:1},sa={key:4,class:"detail-tab-body"},ca={class:"tab-card-title"},ua={class:"tab-card-meta"},ma={key:0},pa={key:1},va={key:5,class:"detail-tab-body"},fa={class:"tab-card-title"},ga={class:"tab-card-meta"},ya={key:0},_a={key:1},Va={key:6,class:"detail-tab-body"},ba={class:"tab-toolbar"},ha={key:7,class:"view-detail-stub"},Na={class:"stub-uid"},ka={DEFAULT_ICON:Xe.DEFAULT_ICON,ACTIVE_ICON:Xe.ACTIVE_ICON,NAME_CN:"对象列表",NAME_EN:"ObjectList",ORDER:1,PLATFORM:["pc","screen"]},xa={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},titleColor:"#111",titleSize:14,isHideTitle:!1,columns:[]},Ce=[se(J({add:!0,view:!0,edit:!0,archive:!0,delete:!0},ce.detailTabRowDefaults()),{addRealtimeData:!1,realtimeParams:[{name:"",fv:""}],textValueTransform:{mode:"numeric",numericRules:[{matchType:"value",matchValue:"",displayText:"",color:"#333333"}],rangeRules:[{op:"gt",boundary:"",displayText:"",color:"#333333"}]}})],wa=[{key:"add",label:"添加对象",type:"checkbox"}],Ca=[{key:"view",label:"查看",type:"checkbox"},{key:"edit",label:"编辑",type:"checkbox"},{key:"archive",label:"资料备档",type:"checkbox"},{key:"delete",label:"删除",type:"checkbox"}],Sa=[],Ba={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.gridFields.objectName"},{value:"uid",label:"setting.gridFields.objectId"},{value:"alias",label:"setting.gridFields.objectAlias"},{value:"customer_id",label:"setting.gridFields.customerId"},{value:"customer_alias",label:"setting.gridFields.customerAlias"},{value:"customer_name",label:"setting.gridFields.customerName"},{value:"mapping_id",label:"setting.gridFields.mappingId"},{value:"mapping_name",label:"setting.gridFields.mappingName"},{value:"terminal_list",label:"setting.gridFields.linkedTerminals"},{value:"tag",label:"setting.gridFields.tag"},{value:"province",label:"setting.gridFields.province"},{value:"city",label:"setting.gridFields.city"},{value:"model",label:"setting.gridFields.model"},{value:"serial_no",label:"setting.gridFields.serialNumber"},{value:"created",label:"setting.gridFields.created"}]},Da={DEFAULT:ka,OPTIONS:xa,DATA:Ce,COMMANDS:wa,OPERATIONS:Ca,SOURCE:Sa,COMMON:Ba},Ea=e.defineComponent(se(J({},Da),{__name:"objectList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},objectList:{default:()=>[]},code:{default:""}},setup(h){const g=h;class b extends jt.BaseComponent{getDataBool(t,l){var d,n;const i=(n=(d=this.props.conf)==null?void 0:d.data)==null?void 0:n[0];return i&&Object.prototype.hasOwnProperty.call(i,t)&&i[t]!==void 0?!!i[t]:this.getOptionValue(t,l)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),isHideTitle:this.getOptionValue("isHideTitle",!1),add:this.getDataBool("add",!0),view:this.getDataBool("view",!0),edit:this.getDataBool("edit",!0),archive:this.getDataBool("archive",!0),delete:this.getDataBool("delete",!0)}}migrateCommandOperationKeys(t){Mt.migrateMixiotCommandOperationKeys(t)}init(){return w(this,null,function*(){var n;this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=JSON.parse(JSON.stringify(Ce)));const t=this.props.conf.data[0];this.migrateCommandOperationKeys(t);const l={add:!0,view:!0,edit:!0,archive:!0,delete:!0};for(const[m,f]of Object.entries(l))t[m]===void 0&&(t[m]=f);const i=ce.detailTabRowDefaults();for(const[m,f]of Object.entries(i))t[m]===void 0&&(t[m]=f);t.textValueTransform===void 0&&(t.textValueTransform=JSON.parse(JSON.stringify(Ce[0].textValueTransform)));const d=we.sortFieldsBySavedOrder(we.getMixiotListDefaultFields("objectList"),this.props.conf);we.syncMixiotListFieldsToConf(this.props.conf,d),this.Style.value=this.extractStyles()})}}const ae=new b(g,"objectList");ae.setupLifecycle();const _=ae.getStyle(),z={view:60,edit:60,archive:88,delete:60},ue=e.computed(()=>{const a=[_.value.view?z.view:0,_.value.edit?z.edit:0,_.value.archive?z.archive:0,_.value.delete?z.delete:0].filter(t=>t>0);return a.length?a.reduce((t,l)=>t+l,0)+(a.length-1)*8+24:80}),{mixiotPanelClass:G,mixiotPanelRootStyle:S}=Ft.useMixiotPanelSurface(_),Q=e.computed(()=>Ot.generateTitleStyle(g.conf.options)),Ze=e.computed(()=>{var d,n,m,f;const a=(n=(d=g.conf)==null?void 0:d.options)==null?void 0:n.columns,t=a&&typeof a=="object"&&"value"in a?a.value:a||[],l=((f=(m=g.conf)==null?void 0:m.data)==null?void 0:f[0])||{},i=(Array.isArray(t)?t:[]).filter(s=>{const N=s.key;return N?l[`${N}_visible`]!==!1&&s.visible!==!1:!1}).map(s=>{const N=l[s.key];return{prop:s.key,label:N!==void 0&&N!==""?String(N):s.label||s.key,width:s.width,visible:!0}});return l.addRealtimeData&&Array.isArray(l.realtimeParams)&&l.realtimeParams.forEach(s=>{s.name&&s.fv&&i.push({prop:s.fv,label:s.name,width:150,visible:!0})}),i}),F=e.reactive({current:1,pageSize:20,total:0}),X=e.ref(""),H=e.ref("name"),Z=e.ref(null),me=e.ref([]),pe=e.ref(!1);function et(){H.value==="created"?X.value="":Z.value=null}function tt(){const a=[];if(H.value==="created"){const l=Z.value;if(l&&l.length===2&&l[0]&&l[1]){const[i,d]=l;a.push(["created",">=",i<=d?i:d]),a.push(["created","<=",i<=d?d:i])}}else{const l=X.value.trim();l&&a.push([H.value,"like",`%${l}%`])}Ut.appendCommonDesignerWhereAnd(g.conf.common,a);const t={page_index:F.current,page_size:F.pageSize};return a.length&&(t.where_and=JSON.stringify(a)),t}function j(){return w(this,null,function*(){var a,t;pe.value=!0;try{const l=yield V.api.http("get_object_list",tt(),!0),i=(a=l==null?void 0:l.result)!=null?a:l;let d=Array.isArray(i==null?void 0:i.data)?[...i.data]:Array.isArray(i)?[...i]:[];if((t=g.objectList)!=null&&t.length){const n=new Set(g.objectList.map(String));d=d.filter(m=>n.has(String(m.uid)))}me.value=d,typeof total!="number"&&(total=Array.isArray(i)?i.length:d.length),F.total=total,l&&l.code!==void 0&&l.code!==200&&console.warn("[objectList] 列表接口非成功",l.msg||l.info,l)}catch(l){console.error(l),me.value=[],F.total=0}finally{pe.value=!1}})}function Se(a){return a===!0||a===1||a==="1"}const ee=e.ref(!1),v=e.reactive({uid:"",name:"",alias:"",model:"",created:new Date().toLocaleString(),last_modified:new Date().toLocaleString(),description:"",customer_id:"",customer_name:"",customer_alias:"",terminal_list:"",mapping_id:"",mapping_name:"",tag:"",province:"",city:"",create_by_tpl:!1,tpl_uid:"",tpl_name:"",tpl_alias:""}),Be=()=>{F.current=1,j()},at=()=>{X.value="",Z.value=null,F.current=1,j()},$=e.ref(!1),le=e.ref(!1),O=e.ref(""),c=e.ref(null),R=e.computed(()=>{var a,t;return((t=(a=g.conf)==null?void 0:a.data)==null?void 0:t[0])||{}}),lt=e.computed(()=>{const a=new Set,t=R.value;if(t.addRealtimeData&&Array.isArray(t.realtimeParams))for(const l of t.realtimeParams)l!=null&&l.fv&&a.add(String(l.fv));return a}),De=e.computed(()=>{const a=R.value;return!a.addRealtimeData||!Array.isArray(a.realtimeParams)?[]:a.realtimeParams.filter(t=>(t==null?void 0:t.name)&&(t==null?void 0:t.fv)).map(t=>({name:String(t.name),fv:String(t.fv)}))}),ot=e.computed(()=>{var a;return(a=R.value)==null?void 0:a.textValueTransform});function it(a){if(a==null||a==="")return!0;const t=String(a).trim();return!t||t==="未获取"}function rt(a,t){if(!t)return null;if(t.mode==="numeric"){for(const l of t.numericRules||[])if(l.matchType==="unavailable"){if(it(a))return{text:l.displayText,color:l.color}}else if(String(a)===String(l.matchValue))return{text:l.displayText,color:l.color}}else{const l=typeof a=="number"?a:parseFloat(String(a).replace(/,/g,""));if(Number.isNaN(l))return null;for(const i of t.rangeRules||[]){const d=parseFloat(String(i.boundary));if(!Number.isNaN(d)){if(i.op==="gt"&&l>d)return{text:i.displayText,color:i.color};if(i.op==="lt"&&l<d)return{text:i.displayText,color:i.color}}}}return null}function nt(a){return lt.value.has(a)}const U=e.computed(()=>ce.OBJECT_DETAIL_TAB_DEFS.filter(a=>R.value[a.dataKey]===!0).map(a=>se(J({},a),{tabKey:ce.dataKeyToTabKey(a.dataKey)}))),k=e.ref("baseinfo"),dt=e.computed(()=>{var t;const a=U.value.find(l=>l.tabKey===k.value);return(t=a==null?void 0:a.label)!=null?t:""}),st=e.computed(()=>{try{return localStorage.getItem("sys_mode")||""}catch(a){return""}}),Ee=e.computed(()=>{var l;const a=(l=c.value)==null?void 0:l.image;if(!a||typeof a!="string")return"";if(a.startsWith("http")||a.startsWith(V.FILE_URL))return a;const t=a.startsWith("/")?a.slice(1):a;return`${V.FILE_URL}${t}`}),Te=e.computed(()=>{var t;const a=(t=c.value)==null?void 0:t.tag;return Array.isArray(a)?a.map(String).filter(Boolean):typeof a=="string"&&a.trim()?a.split(/[,,]/).map(l=>l.trim()).filter(Boolean):[]}),ve=e.computed(()=>{var t;const a=(t=c.value)==null?void 0:t.addition;return Array.isArray(a)?a.filter(l=>l&&typeof l=="object"&&Array.isArray(l.data)):[]}),oe=e.ref(!1),M=e.ref(null),Ae=e.ref(""),fe=e.ref(""),ge=e.ref(!1),Y=e.ref([]),ye=e.ref(!1),W=e.ref([]),ie=e.ref([]),_e=e.ref(!1),q=e.ref([]),Ve=e.ref(!1),P=e.ref([]),be=e.ref([V.dayjs().subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),V.dayjs().format("YYYY-MM-DD HH:mm:ss")]),ct=a=>w(null,null,function*(){var t;ge.value=!0;try{const l=yield V.api.http("get_retainer_result_list",{object_id:a,page_size:50,page_index:1},!0),i=(t=l==null?void 0:l.result)!=null?t:l;Y.value=Array.isArray(i==null?void 0:i.data)?i.data:[]}catch(l){Y.value=[]}finally{ge.value=!1}}),ut=a=>w(null,null,function*(){var t;ye.value=!0;try{const l=yield V.api.http("get_collect_list",{object_id:a,page_size:50,page_index:1},!0),i=(t=l==null?void 0:l.result)!=null?t:l;W.value=Array.isArray(i==null?void 0:i.data)?i.data:[]}catch(l){W.value=[]}finally{ye.value=!1}}),mt=(a,t)=>w(null,null,function*(){var l;if(!t.length){q.value=[];return}_e.value=!0;try{const i=[["uid","in",t]],d=yield V.api.http("terminal_list",{page_size:100,page_index:1,where_and:JSON.stringify(i)},!0),n=(l=d==null?void 0:d.result)!=null?l:d;q.value=Array.isArray(n==null?void 0:n.data)?n.data:[]}catch(i){q.value=[]}finally{_e.value=!1}}),he=()=>w(null,null,function*(){var l,i;const a=(l=c.value)==null?void 0:l.uid;if(!a)return;if(!Le().length){P.value=[];return}Ve.value=!0;try{P.value=yield Qe.fetchObjectHistoryRows(V.api.http.bind(V.api),{objectUid:a,timeRange:be.value,fvList:(i=c.value)==null?void 0:i.fv_list})}catch(d){P.value=[]}finally{Ve.value=!1}});function Le(){return Qe.resolveHistoryFvKeys(c.value)}function pt(a,t){const l=t.toLowerCase();return a.find(i=>{var m,f;const d=String((m=i==null?void 0:i.device_type)!=null?m:"").toLowerCase(),n=String((f=i==null?void 0:i.type)!=null?f:"").toLowerCase();return d===l||n===l})}const vt=a=>w(null,null,function*(){var t,l;if(a){oe.value=!0,M.value=null,Ae.value=a;try{const i=Array.isArray((t=c.value)==null?void 0:t.dashboard_list)?c.value.dashboard_list:[],d=pt(i,"pc"),n=String((l=d==null?void 0:d.uid)!=null?l:"").trim();if(!n){x.ElMessage.warning("该对象未绑定电脑显示板");return}fe.value=n;const m=yield V.api.http("get_dashboard_item",{uid:n},!1),f=(m==null?void 0:m.result)||{},s=f==null?void 0:f.script;s&&typeof s=="object"&&Object.keys(s).length?M.value=s:x.ElMessage.warning("显示板脚本为空")}catch(i){console.error(i),M.value=null}finally{oe.value=!1}}}),ft=a=>`「${a}」的完整能力在 mixui 对象管理模块中提供;大屏组件内仅保留配置占位。`,Fe=()=>{const a=U.value;k.value=a.length?a[0].tabKey:"baseinfo"},je=a=>w(null,null,function*(){var t,l;if(O.value="",c.value=null,Fe(),!U.value.length){$.value=!0;return}$.value=!0,le.value=!0;try{const i=yield V.api.http("get_object_item",{uid:a.uid},!0);i!=null&&i.result&&typeof i.result=="object"?(c.value=i.result,ie.value=(l=(t=i.result)==null?void 0:t.object_list)!=null?l:[]):c.value=J({},a),(i==null?void 0:i.code)!==void 0&&i.code!==200?O.value=i.msg||i.info||`请求失败 (${i.code})`:i!=null&&i.result||(O.value="未返回详情数据,已使用列表行暂代显示。")}catch(i){c.value=J({},a),O.value="加载详情失败,已使用列表行暂代显示。"}finally{le.value=!1,Oe(k.value)}}),gt=()=>{c.value=null,O.value="",le.value=!1,M.value=null,fe.value="",Y.value=[],W.value=[],ie.value=[],q.value=[],P.value=[]};function Oe(a){var l,i;const t=(l=c.value)==null?void 0:l.uid;if(!(!t||a==="baseinfo"||a==="child"))if(a==="monitor"&&!M.value)vt(t);else if(a==="retainer-record"&&!Y.value.length)ct(t);else if(a==="collect"&&!W.value.length)ut(t);else if(a==="terminal"&&!q.value.length){const d=(i=c.value)==null?void 0:i.terminal_list,n=Array.isArray(d)?d:typeof d=="string"&&d?d.split(/[,,]/).map(m=>m.trim()).filter(Boolean):[];mt(t,n)}else a==="history"&&!P.value.length&&he()}e.watch(k,a=>{Oe(a)}),e.watch(U,()=>{if(!$.value)return;new Set(U.value.map(t=>t.tabKey)).has(k.value)||Fe()});const Re=()=>({uid:"",name:"",alias:"",model:"",description:"",customer_id:"",customer_name:"",customer_alias:"",terminal_list:"",mapping_id:"",mapping_name:"",tag:"",province:"",city:"",create_by_tpl:!1,tpl_uid:"",tpl_name:"",tpl_alias:""}),te=e.ref(!1),u=e.reactive(Re()),Ue=e.ref(0),Ne=e.ref(!1),ke=e.ref(!1),xe=e.ref(!1);function yt(a){return Array.isArray(a)?a.map(String).filter(Boolean).join(", "):typeof a=="string"?a:""}function Me(a){return a.split(/[,,]/).map(t=>t.trim()).filter(Boolean)}function _t(a){return Array.isArray(a)?a.map(String).filter(Boolean).join(", "):typeof a=="string"?a:""}function Vt(a){const t=a.terminal_list;return Array.isArray(t)?t.map(String).map(l=>l.trim()).filter(Boolean):Me(String(t!=null?t:""))}function bt(){const a=R.value;if(a.addRealtimeData&&Array.isArray(a.realtimeParams))for(const t of a.realtimeParams)t!=null&&t.fv&&Reflect.deleteProperty(u,String(t.fv));Object.assign(u,Re())}function qe(a){const t=R.value;if(!(!t.addRealtimeData||!Array.isArray(t.realtimeParams))){for(const l of t.realtimeParams)if(l!=null&&l.name&&(l!=null&&l.fv)){const i=String(l.fv),d=a[i];u[i]=d!=null?String(d):""}}}function Pe(a){var t,l,i,d,n,m,f,s,N,C,I,K,p,D,E;bt(),Object.assign(u,{uid:String((t=a.uid)!=null?t:""),name:String((l=a.name)!=null?l:""),alias:String((i=a.alias)!=null?i:""),model:String((d=a.model)!=null?d:""),description:String((n=a.description)!=null?n:""),customer_id:String((m=a.customer_id)!=null?m:""),customer_name:String((f=a.customer_name)!=null?f:""),customer_alias:String((s=a.customer_alias)!=null?s:""),terminal_list:_t(a.terminal_list),mapping_id:String((N=a.mapping_id)!=null?N:""),mapping_name:String((C=a.mapping_name)!=null?C:""),tag:yt(a.tag),province:String((I=a.province)!=null?I:""),city:String((K=a.city)!=null?K:""),create_by_tpl:Se(a.create_by_tpl),tpl_uid:String((p=a.tpl_uid)!=null?p:""),tpl_name:String((D=a.tpl_name)!=null?D:""),tpl_alias:String((E=a.tpl_alias)!=null?E:"")}),Ue.value=Number(a.id)||0}function Ie(a,t){var l,i,d,n,m,f,s,N,C,I,K,p,D,E,re,ne;return{id:t,uid:String((l=a.uid)!=null?l:"").trim(),name:String((i=a.name)!=null?i:"").trim(),alias:String((d=a.alias)!=null?d:""),model:String((n=a.model)!=null?n:""),description:String((m=a.description)!=null?m:""),customer_id:String((f=a.customer_id)!=null?f:""),customer_name:String((s=a.customer_name)!=null?s:""),customer_alias:String((N=a.customer_alias)!=null?N:""),terminal_list:Vt(a),mapping_id:String((C=a.mapping_id)!=null?C:""),mapping_name:String((I=a.mapping_name)!=null?I:""),tag:Me(String((K=a.tag)!=null?K:"")),province:String((p=a.province)!=null?p:""),city:String((D=a.city)!=null?D:""),create_by_tpl:a.create_by_tpl?1:0,tpl_uid:String((E=a.tpl_uid)!=null?E:""),tpl_name:String((re=a.tpl_name)!=null?re:""),tpl_alias:String((ne=a.tpl_alias)!=null?ne:""),addition:"[]"}}const Ke=a=>w(null,null,function*(){var t;te.value=!0,Ne.value=!0;try{const l=yield V.api.http("get_object_item",{uid:a.uid},!0),i=(t=l==null?void 0:l.result)!=null?t:a;Pe(i),qe(i)}catch(l){Pe(a),qe(a),x.ElMessage.warning("拉取对象详情失败,已使用列表行编辑")}finally{Ne.value=!1}}),ht=()=>w(null,null,function*(){if(!u.name.trim()){x.ElMessage.warning("请填写对象名称");return}ke.value=!0;try{yield V.api.http("update_object",Ie(u,Ue.value),!0),x.ElMessage.success("保存成功"),te.value=!1,yield j()}catch(a){x.ElMessage.error("保存失败")}finally{ke.value=!1}}),ze=a=>{x.ElMessageBox.confirm("确认删除该对象吗?","警告",{type:"warning"}).then(()=>w(null,null,function*(){try{yield V.api.http("delete_object",{uid:a.uid,id:a.id},!0),x.ElMessage.success("删除成功"),yield j()}catch(t){x.ElMessage.error("删除失败")}})).catch(()=>{})},Nt=()=>{const a=typeof crypto!="undefined"&&typeof crypto.randomUUID=="function"?`obj_${crypto.randomUUID()}`:`obj_${Date.now()}_${Math.random().toString(16).slice(2)}`;Object.assign(v,{uid:a,name:"",alias:"",model:"",created:new Date().toLocaleString(),last_modified:new Date().toLocaleString(),description:"",customer_id:"",customer_name:"",customer_alias:"",terminal_list:"",mapping_id:"",mapping_name:"",tag:"",province:"",city:"",create_by_tpl:!1,tpl_uid:"",tpl_name:"",tpl_alias:""}),ee.value=!0},kt=()=>w(null,null,function*(){var a;if(!((a=v.name)!=null&&a.trim())){x.ElMessage.warning("请填写对象名称");return}xe.value=!0;try{yield V.api.http("create_object",Ie(v,0),!0),ee.value=!1,x.ElMessage.success("添加成功"),yield j()}catch(t){x.ElMessage.error("添加失败")}finally{xe.value=!1}}),He=a=>{x.ElMessageBox.confirm(`确认对对象 [${a.name}] 进行资料备档吗?`,"提示",{type:"info"}).then(()=>{x.ElMessage.success("备档成功")}).catch(()=>{})},xt={CellDisplayRenderer:e.defineComponent({name:"CellDisplayRenderer",props:["params"],setup(a){return()=>{var d;const t=a.params;if(!t)return"";const l=t.value,i=(d=t.colDef)==null?void 0:d.field;if(i==="create_by_tpl")return Se(l)?"模板创建":"手动创建";if(i&&nt(i)){const n=rt(l,ot.value);if(n){const m={};return n.color&&(m.color=n.color),e.h("span",{style:m},n.text)}}return l==null?"":String(l)}}}),AgActionsRenderer:Pt._sfc_main},wt=e.computed(()=>{const a=Ze.value.filter(t=>t.visible).map(t=>({field:t.prop,headerName:t.label,width:t.width||120,minWidth:80,cellRenderer:"CellDisplayRenderer"}));return a.push({headerName:"操作",minWidth:ue.value,pinned:"right",cellRenderer:"AgActionsRenderer",cellStyle:{cursor:"pointer"},cellRendererParams:{showView:_.value.view,showEdit:_.value.edit,showArchive:_.value.archive,showDelete:_.value.delete,onView:je,onEdit:Ke,onArchive:He,onDelete:ze}}),a}),Ct=e.computed(()=>({getContextMenuItems:a=>{const t=a.data;if(!t)return[];const l=[];return _.value.view&&l.push({name:"查看详情",action:()=>je(t)}),_.value.edit&&l.push({name:"编辑对象",action:()=>Ke(t)}),_.value.archive&&l.push({name:"资料备档",action:()=>He(t)}),_.value.delete&&l.push({name:"删除对象",action:()=>ze(t)}),l}}));function St(){j()}return e.onMounted(()=>{j()}),(a,t)=>{const l=y.ElOption,i=y.ElSelect,d=y.ElIcon,n=y.ElInput,m=y.ElDatePicker,f=y.ElButton,s=y.ElFormItem,N=y.ElForm,C=y.ElDialog,I=y.ElDivider,K=y.ElAlert,p=y.ElDescriptionsItem,D=y.ElTag,E=y.ElDescriptions,re=y.ElCollapseItem,ne=y.ElCollapse,T=y.ElEmpty,A=y.ElTableColumn,$e=y.ElTable,L=y.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["object-list mix-component",e.unref(G)]),style:e.normalizeStyle(e.unref(S))},[e.unref(_).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(Q.value)},e.toDisplayString(h.conf.caption||h.conf.name),5)),e.createElementVNode("div",It,[e.createElementVNode("div",Kt,[e.createVNode(i,{modelValue:H.value,"onUpdate:modelValue":t[0]||(t[0]=r=>H.value=r),class:"toolbar-field-select",onChange:et},{default:e.withCtx(()=>[e.createVNode(l,{label:"对象名称",value:"name"}),e.createVNode(l,{label:"对象编号",value:"uid"}),e.createVNode(l,{label:"对象别名",value:"alias"}),e.createVNode(l,{label:"客户编号",value:"customer_id"}),e.createVNode(l,{label:"客户别名",value:"customer_alias"}),e.createVNode(l,{label:"客户名称",value:"customer_name"}),e.createVNode(l,{label:"映射表编号",value:"mapping_id"}),e.createVNode(l,{label:"映射表名称",value:"mapping_name"}),e.createVNode(l,{label:"关联终端",value:"terminal_list"}),e.createVNode(l,{label:"标签",value:"tag"}),e.createVNode(l,{label:"省份",value:"province"}),e.createVNode(l,{label:"市/区",value:"city"}),e.createVNode(l,{label:"型号",value:"model"}),e.createVNode(l,{label:"序列号",value:"serial_no"}),e.createVNode(l,{label:"创建时间",value:"created"})]),_:1},8,["modelValue"]),H.value!=="created"?(e.openBlock(),e.createBlock(n,{key:0,modelValue:X.value,"onUpdate:modelValue":t[1]||(t[1]=r=>X.value=r),placeholder:"搜索对象(与 mixui ObjectList 搜索字段一致)",class:"toolbar-search",onKeyup:e.withKeys(Be,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(d,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Rt.Search))]),_:1})]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(m,{key:1,modelValue:Z.value,"onUpdate:modelValue":t[2]||(t[2]=r=>Z.value=r),type:"datetimerange","range-separator":"至","start-placeholder":"创建开始","end-placeholder":"创建结束","value-format":"YYYY-MM-DD HH:mm:ss",class:"toolbar-created-range"},null,8,["modelValue"])),e.createVNode(f,{type:"primary",onClick:Be},{default:e.withCtx(()=>[...t[37]||(t[37]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(f,{onClick:at},{default:e.withCtx(()=>[...t[38]||(t[38]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(_).add?(e.openBlock(),e.createBlock(f,{key:2,type:"success",onClick:Nt},{default:e.withCtx(()=>[...t[39]||(t[39]=[e.createTextVNode("添加对象",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.unref(qt.AgGridTable),{"column-defs":wt.value,"row-data":me.value,"show-pagination":!0,pager:F,"auto-fill-columns":!0,components:xt,"grid-options":Ct.value,onPageChange:St},null,8,["column-defs","row-data","pager","grid-options"]),e.createVNode(C,{modelValue:ee.value,"onUpdate:modelValue":t[17]||(t[17]=r=>ee.value=r),title:"添加对象",width:"600px"},{footer:e.withCtx(()=>[e.createElementVNode("span",zt,[e.createVNode(f,{onClick:t[16]||(t[16]=r=>ee.value=!1)},{default:e.withCtx(()=>[...t[40]||(t[40]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(f,{type:"primary",loading:xe.value,onClick:kt},{default:e.withCtx(()=>[...t[41]||(t[41]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.createVNode(N,{model:v,"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.name,"onUpdate:modelValue":t[3]||(t[3]=r=>v.name=r),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.alias,"onUpdate:modelValue":t[4]||(t[4]=r=>v.alias=r),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.model,"onUpdate:modelValue":t[5]||(t[5]=r=>v.model=r),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.description,"onUpdate:modelValue":t[6]||(t[6]=r=>v.description=r),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.customer_id,"onUpdate:modelValue":t[7]||(t[7]=r=>v.customer_id=r),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.customer_name,"onUpdate:modelValue":t[8]||(t[8]=r=>v.customer_name=r),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.customer_alias,"onUpdate:modelValue":t[9]||(t[9]=r=>v.customer_alias=r),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.terminal_list,"onUpdate:modelValue":t[10]||(t[10]=r=>v.terminal_list=r),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.mapping_id,"onUpdate:modelValue":t[11]||(t[11]=r=>v.mapping_id=r),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.mapping_name,"onUpdate:modelValue":t[12]||(t[12]=r=>v.mapping_name=r),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.tag,"onUpdate:modelValue":t[13]||(t[13]=r=>v.tag=r),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.province,"onUpdate:modelValue":t[14]||(t[14]=r=>v.province=r),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.city,"onUpdate:modelValue":t[15]||(t[15]=r=>v.city=r),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(C,{modelValue:te.value,"onUpdate:modelValue":t[33]||(t[33]=r=>te.value=r),title:"编辑对象",width:"600px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createElementVNode("span",Ht,[e.createVNode(f,{onClick:t[32]||(t[32]=r=>te.value=!1)},{default:e.withCtx(()=>[...t[43]||(t[43]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(f,{type:"primary",loading:ke.value,onClick:ht},{default:e.withCtx(()=>[...t[44]||(t[44]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(N,{model:u,"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"对象编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:u.uid,"onUpdate:modelValue":t[18]||(t[18]=r=>u.uid=r),placeholder:"请输入对象编号",disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:u.name,"onUpdate:modelValue":t[19]||(t[19]=r=>u.name=r),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:u.alias,"onUpdate:modelValue":t[20]||(t[20]=r=>u.alias=r),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:u.model,"onUpdate:modelValue":t[21]||(t[21]=r=>u.model=r),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:u.description,"onUpdate:modelValue":t[22]||(t[22]=r=>u.description=r),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:u.customer_id,"onUpdate:modelValue":t[23]||(t[23]=r=>u.customer_id=r),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:u.customer_name,"onUpdate:modelValue":t[24]||(t[24]=r=>u.customer_name=r),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:u.customer_alias,"onUpdate:modelValue":t[25]||(t[25]=r=>u.customer_alias=r),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:u.terminal_list,"onUpdate:modelValue":t[26]||(t[26]=r=>u.terminal_list=r),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:u.mapping_id,"onUpdate:modelValue":t[27]||(t[27]=r=>u.mapping_id=r),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:u.mapping_name,"onUpdate:modelValue":t[28]||(t[28]=r=>u.mapping_name=r),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:u.tag,"onUpdate:modelValue":t[29]||(t[29]=r=>u.tag=r),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:u.province,"onUpdate:modelValue":t[30]||(t[30]=r=>u.province=r),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:u.city,"onUpdate:modelValue":t[31]||(t[31]=r=>u.city=r),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1}),R.value.addRealtimeData&&De.value.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(I,{"content-position":"left"},{default:e.withCtx(()=>[...t[42]||(t[42]=[e.createTextVNode("实时数据",-1)])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(De.value,r=>(e.openBlock(),e.createBlock(s,{key:r.fv,label:r.name},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:u[r.fv],"onUpdate:modelValue":de=>u[r.fv]=de,placeholder:"请输入"+r.name},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["label"]))),128))],64)):e.createCommentVNode("",!0)]),_:1},8,["model"])),[[L,Ne.value]])]),_:1},8,["modelValue"]),e.createVNode(C,{modelValue:$.value,"onUpdate:modelValue":t[36]||(t[36]=r=>$.value=r),title:"对象详情",width:"920px",class:"object-view-detail-dialog","destroy-on-close":"",onClosed:gt},{footer:e.withCtx(()=>[e.createVNode(f,{type:"primary",onClick:t[35]||(t[35]=r=>$.value=!1)},{default:e.withCtx(()=>[...t[46]||(t[46]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>{var r,de;return[e.withDirectives((e.openBlock(),e.createElementBlock("div",$t,[U.value.length?(e.openBlock(),e.createElementBlock("div",Yt,[e.createElementVNode("aside",Wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,o=>(e.openBlock(),e.createElementBlock("div",{key:o.tabKey,class:e.normalizeClass(["view-detail-tab-item",{active:k.value===o.tabKey}]),onClick:B=>k.value=o.tabKey},e.toDisplayString(o.label),11,Jt))),128))]),e.createElementVNode("div",Gt,[k.value==="baseinfo"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[O.value?(e.openBlock(),e.createElementBlock("div",Qt,e.toDisplayString(O.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Xt,[c.value?(e.openBlock(),e.createBlock(E,{key:0,column:2,border:""},{default:e.withCtx(()=>[Ee.value?(e.openBlock(),e.createBlock(p,{key:0,label:"对象图片",span:2},{default:e.withCtx(()=>[e.createElementVNode("img",{class:"view-detail-head-img",src:Ee.value,alt:""},null,8,Zt)]),_:1})):e.createCommentVNode("",!0),e.createVNode(p,{label:"对象编号"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.uid)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"对象名称"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.name)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"对象别名"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.alias)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"型号"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.model)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"序列号"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.serial_no)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"映射表编号"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.mapping_id)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"映射表名称"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.mapping_name)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"映射表别名"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.mapping_alias)!=null?o:""),1)]}),_:1}),st.value!=="box"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(p,{label:"项目编号"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.customer_id)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"项目名称"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.customer_name)!=null?o:""),1)]}),_:1})],64)):e.createCommentVNode("",!0),e.createVNode(p,{label:"控制密码"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.control)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"控制码编号"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.control_id)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"控制码名称"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.control_name)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"控制码别名"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.control_alias)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"地址"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.address)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"设置经纬度"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.custom_gis)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"GPS经纬度"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.gis)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"省份"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.province)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"城市"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.city)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"创建时间"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.created)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"更新时间"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.last_modified)!=null?o:""),1)]}),_:1}),e.createVNode(p,{label:"标签",span:2},{default:e.withCtx(()=>[Te.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(Te.value,o=>(e.openBlock(),e.createBlock(D,{key:o,style:{"margin-right":"6px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o),1)]),_:2},1024))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(p,{label:"描述",span:2},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString((o=c.value.description)!=null?o:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)]),ve.value.length?(e.openBlock(),e.createElementBlock("div",ea,"扩展脚本信息")):e.createCommentVNode("",!0),ve.value.length?(e.openBlock(),e.createElementBlock("div",ta,[e.createVNode(ne,{"expand-icon-position":"left"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ve.value,(o,B)=>(e.openBlock(),e.createBlock(re,{key:B,name:B,title:o.title},{default:e.withCtx(()=>[e.createVNode(E,{border:"",column:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.data,(Ye,Bt)=>(e.openBlock(),e.createBlock(p,{key:Bt,label:String(Ye[0])},{default:e.withCtx(()=>{var We;return[e.createTextVNode(e.toDisplayString((We=Ye[1])!=null?We:""),1)]}),_:2},1032,["label"]))),128))]),_:2},1024)]),_:2},1032,["name","title"]))),128))]),_:1})])):e.createCommentVNode("",!0)],64)):k.value==="monitor"?e.withDirectives((e.openBlock(),e.createElementBlock("div",aa,[M.value?(e.openBlock(),e.createBlock(V._sfc_main,{key:fe.value,script:M.value,uid:Ae.value,"enable-web-socket":!0,"follow-host-theme":!0},null,8,["script","uid"])):oe.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(T,{key:1,description:"暂无关联电脑显示板"}))])),[[L,oe.value]]):k.value==="retainer-record"?e.withDirectives((e.openBlock(),e.createElementBlock("div",la,[Y.value.length?(e.openBlock(),e.createBlock($e,{key:0,data:Y.value,stripe:"",size:"small",class:"detail-table","max-height":"420"},{default:e.withCtx(()=>[e.createVNode(A,{prop:"template_id",label:"项目编号",width:"120"}),e.createVNode(A,{prop:"label_cn",label:"历程项名称","min-width":"120"}),e.createVNode(A,{prop:"code",label:"编码",width:"100"}),e.createVNode(A,{prop:"category",label:"类型",width:"80"}),e.createVNode(A,{prop:"opened_at",label:"开始时间",width:"160"})]),_:1},8,["data"])):(e.openBlock(),e.createBlock(T,{key:1,description:"暂无历程记录"}))])),[[L,ge.value]]):k.value==="collect"?e.withDirectives((e.openBlock(),e.createElementBlock("div",oa,[W.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(W.value,(o,B)=>(e.openBlock(),e.createElementBlock("div",{key:B,class:"tab-card-item"},[e.createElementVNode("div",ia,e.toDisplayString(o.name||o.uid||"—"),1),e.createElementVNode("div",ra,[o.uid?(e.openBlock(),e.createElementBlock("span",na,"编号:"+e.toDisplayString(o.uid),1)):e.createCommentVNode("",!0),o.is_active!==void 0?(e.openBlock(),e.createElementBlock("span",da,"状态:"+e.toDisplayString(o.is_active===1?"开启":"关闭"),1)):e.createCommentVNode("",!0)])]))),128)):(e.openBlock(),e.createBlock(T,{key:1,description:"暂无离线采集项目"}))])),[[L,ye.value]]):k.value==="child"?(e.openBlock(),e.createElementBlock("div",sa,[ie.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(ie.value,(o,B)=>(e.openBlock(),e.createElementBlock("div",{key:B,class:"tab-card-item"},[e.createElementVNode("div",ca,e.toDisplayString(o.name||o.uid||"—"),1),e.createElementVNode("div",ua,[o.uid?(e.openBlock(),e.createElementBlock("span",ma,"编号:"+e.toDisplayString(o.uid),1)):e.createCommentVNode("",!0),o.model?(e.openBlock(),e.createElementBlock("span",pa,"型号:"+e.toDisplayString(o.model),1)):e.createCommentVNode("",!0)])]))),128)):(e.openBlock(),e.createBlock(T,{key:1,description:"暂无子对象"}))])):k.value==="terminal"?e.withDirectives((e.openBlock(),e.createElementBlock("div",va,[q.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(q.value,(o,B)=>(e.openBlock(),e.createElementBlock("div",{key:B,class:"tab-card-item"},[e.createElementVNode("div",fa,e.toDisplayString(o.name||o.uid||"—"),1),e.createElementVNode("div",ga,[o.uid?(e.openBlock(),e.createElementBlock("span",ya,"编号:"+e.toDisplayString(o.uid),1)):e.createCommentVNode("",!0),o.type?(e.openBlock(),e.createElementBlock("span",_a,"类型:"+e.toDisplayString(o.type),1)):e.createCommentVNode("",!0),e.createVNode(D,{type:o.online===1?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.online===1?"在线":"离线"),1)]),_:2},1032,["type"])])]))),128)):(e.openBlock(),e.createBlock(T,{key:1,description:"暂无关联终端"}))])),[[L,_e.value]]):k.value==="history"?e.withDirectives((e.openBlock(),e.createElementBlock("div",Va,[e.createElementVNode("div",ba,[e.createVNode(m,{modelValue:be.value,"onUpdate:modelValue":t[34]||(t[34]=o=>be.value=o),type:"datetimerange",size:"small","range-separator":"-","start-placeholder":"开始","end-placeholder":"结束",onChange:he},null,8,["modelValue"]),e.createVNode(f,{size:"small",type:"primary",onClick:he},{default:e.withCtx(()=>[...t[45]||(t[45]=[e.createTextVNode("查询",-1)])]),_:1})]),Le().length?P.value.length?(e.openBlock(),e.createBlock($e,{key:1,data:P.value,stripe:"",size:"small",class:"detail-table","max-height":"380"},{default:e.withCtx(()=>[e.createVNode(A,{prop:"time",label:"时间",width:"160"}),e.createVNode(A,{prop:"fv_key",label:"变量",width:"120"}),e.createVNode(A,{prop:"value",label:"值","min-width":"100"})]),_:1},8,["data"])):(e.openBlock(),e.createBlock(T,{key:2,description:"暂无历史数据"})):(e.openBlock(),e.createBlock(T,{key:0,description:"对象未配置可查询变量"}))])),[[L,Ve.value]]):(e.openBlock(),e.createElementBlock("div",ha,[e.createVNode(T,{description:ft(dt.value)},null,8,["description"]),e.createElementVNode("div",Na,"对象编号:"+e.toDisplayString((de=(r=c.value)==null?void 0:r.uid)!=null?de:"—"),1)]))])])):(e.openBlock(),e.createBlock(K,{key:0,type:"warning","show-icon":"",closable:!1,title:"请先在右侧「数据」面板勾选「查看」,并在其下的详情页签中至少启用一项。"}))])),[[L,le.value]])]}),_:1},8,["modelValue"])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],6)),[[L,pe.value]])}}})),Ta=V._export_sfc(Ea,[["__scopeId","data-v-66c01373"]]);exports.default=Ta;
|