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 j=Object.defineProperty,H=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var D=(r,o,i)=>o in r?j(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i,v=(r,o)=>{for(var i in o||(o={}))Q.call(o,i)&&D(r,i,o[i]);if(A)for(var i of A(o))X.call(o,i)&&D(r,i,o[i]);return r},C=(r,o)=>H(r,G(o));var M=(r,o,i)=>new Promise((E,h)=>{var N=p=>{try{g(i.next(p))}catch(x){h(x)}},b=p=>{try{g(i.throw(p))}catch(x){h(x)}},g=p=>p.done?E(p.value):Promise.resolve(p.value).then(N,b);g((i=i.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/collapse/style/css");require("element-plus/es/components/collapse-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),q=require("@element-plus/icons-vue"),Y=require("./BaseComponent-
|
|
1
|
+
"use strict";var j=Object.defineProperty,H=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var D=(r,o,i)=>o in r?j(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i,v=(r,o)=>{for(var i in o||(o={}))Q.call(o,i)&&D(r,i,o[i]);if(A)for(var i of A(o))X.call(o,i)&&D(r,i,o[i]);return r},C=(r,o)=>H(r,G(o));var M=(r,o,i)=>new Promise((E,h)=>{var N=p=>{try{g(i.next(p))}catch(x){h(x)}},b=p=>{try{g(i.throw(p))}catch(x){h(x)}},g=p=>p.done?E(p.value):Promise.resolve(p.value).then(N,b);g((i=i.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/collapse/style/css");require("element-plus/es/components/collapse-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),q=require("@element-plus/icons-vue"),Y=require("./BaseComponent-CPat9pFl.cjs"),B=require("./index-D9ehIVda.cjs"),P=require("./ele-box-icon-NZ0BTjhm.cjs"),Z=["onClick"],K=["onClick"],ee={key:1,class:"slot-placeholder"},te={key:2,class:"slot-actions"},oe={class:"component-selector"},ne={class:"component-grid"},le=["onClick"],ae={class:"comp-icon"},re=["src","alt"],ie={class:"comp-name"},ce={DEFAULT_ICON:P.DEFAULT_ICON,ACTIVE_ICON:P.ACTIVE_ICON,NAME_CN:"组合盒子",NAME_EN:"Box",ORDER:0,PLATFORM:["pc","screen","mobile"]},se={layoutType:{value:"horizontal",type:"select",label:"布局方式",options:[{label:"水平排列",value:"horizontal"},{label:"垂直排列",value:"vertical"},{label:"自由布局",value:"free"},{label:"网格布局",value:"grid"}]},slotCount:{value:2,type:"number",label:"插槽数量",min:1,max:12},gridCols:{value:2,type:"number",label:"网格列数",min:1,max:6},gap:{value:8,type:"number",label:"间距(px)",min:0,max:50},padding:{value:8,type:"number",label:"内边距(px)",min:0,max:50},backgroundColor:{value:"transparent",type:"color",label:"背景色"},borderWidth:{value:0,type:"number",label:"边框宽度",min:0,max:10},borderColor:{value:"#e5e7eb",type:"color",label:"边框颜色"},borderRadius:{value:4,type:"number",label:"圆角(px)",min:0,max:50},slotsConfig:{value:"[]",type:"textarea",label:"插槽配置(JSON)",placeholder:'[{"x":0,"y":0,"w":50,"h":100},{"x":50,"y":0,"w":50,"h":100}]'}},de=[],ue=[],pe=[],me={},ye={DEFAULT:ce,OPTIONS:se,DATA:de,PARAMS:ue,SOURCE:pe,COMMON:me},fe=e.defineComponent(C(v({},ye),{__name:"box",props:{conf:{type:Object,default:()=>({data:[],options:{}})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const o=r,i=e.shallowRef({}),E=e.ref({}),h=e.ref(!1),N=e.ref([]),b=e.ref(-1),g=e.ref(-1);e.onMounted(()=>M(null,null,function*(){i.value=B.elements.loadComponents(),E.value=yield B.elements.getElementsMap()}));class p extends Y.BaseComponent{extractStyles(){return{layoutType:this.getOptionValue("layoutType","horizontal"),slotCount:this.getOptionValue("slotCount",2),gridCols:this.getOptionValue("gridCols",2),gap:this.getOptionValue("gap",8),padding:this.getOptionValue("padding",8),backgroundColor:this.getOptionValue("backgroundColor","transparent"),borderWidth:this.getOptionValue("borderWidth",0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderRadius:this.getOptionValue("borderRadius",4),slotsConfig:this.getOptionValue("slotsConfig","[]")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),$()}}const x=new p(o,"box");x.setupLifecycle();const y=x.getStyle(),_=e.ref([]),$=()=>{var O,V,l,c,s,T,I,z;const t=((O=y.value)==null?void 0:O.slotCount)||2,n=((V=y.value)==null?void 0:V.layoutType)||"horizontal",a=((l=o.conf)==null?void 0:l.slots)||[];let u=[];try{const d=((c=y.value)==null?void 0:c.slotsConfig)||"[]";u=JSON.parse(d)}catch(d){u=[]}const k=[];for(let d=0;d<t;d++){const m=a[d],f=u[d];let w={x:0,y:0,w:100,h:100};n==="free"&&f?w={x:(s=f.x)!=null?s:0,y:(T=f.y)!=null?T:0,w:(I=f.w)!=null?I:50,h:(z=f.h)!=null?z:100}:n==="horizontal"?w={x:100/t*d,y:0,w:100/t,h:100}:n==="vertical"&&(w={x:0,y:100/t*d,w:100,h:100/t}),k.push(C(v({id:(m==null?void 0:m.id)||`slot-${Date.now()}-${d}`,name:(m==null?void 0:m.name)||(f==null?void 0:f.name)||`插槽 ${d+1}`},w),{component:(m==null?void 0:m.component)||null}))}_.value=k,o.conf&&(o.conf.slots=k)},R=e.computed(()=>{const t=y.value,n=(t==null?void 0:t.layoutType)||"horizontal",a={width:"100%",height:"100%",backgroundColor:(t==null?void 0:t.backgroundColor)||"transparent",borderWidth:`${(t==null?void 0:t.borderWidth)||0}px`,borderStyle:(t==null?void 0:t.borderWidth)>0?"solid":"none",borderColor:(t==null?void 0:t.borderColor)||"#e5e7eb",borderRadius:`${(t==null?void 0:t.borderRadius)||4}px`,padding:`${(t==null?void 0:t.padding)||8}px`,boxSizing:"border-box",overflow:"hidden"};return n==="horizontal"?C(v({},a),{display:"flex",flexDirection:"row",gap:`${(t==null?void 0:t.gap)||8}px`}):n==="vertical"?C(v({},a),{display:"flex",flexDirection:"column",gap:`${(t==null?void 0:t.gap)||8}px`}):n==="grid"?C(v({},a),{display:"grid",gridTemplateColumns:`repeat(${(t==null?void 0:t.gridCols)||2}, 1fr)`,gap:`${(t==null?void 0:t.gap)||8}px`}):C(v({},a),{position:"relative"})}),J=t=>{var a;const n=((a=y.value)==null?void 0:a.layoutType)||"horizontal";return n==="free"?{position:"absolute",left:`${t.x}%`,top:`${t.y}%`,width:`${t.w}%`,height:`${t.h}%`}:{flex:n==="horizontal"||n==="vertical"?1:void 0,minWidth:0,minHeight:0,overflow:"hidden"}},L=(t,n)=>{o.mode==="edit"&&(t.component||(b.value=n,h.value=!0))},F=(t,n)=>{var u;if(o.mode!=="edit"||!t.component)return;g.value=n;const a=new CustomEvent("box-component-selected",{bubbles:!0,detail:{component:t.component,boxId:(u=o.conf)==null?void 0:u.id,slotIndex:n}});document.dispatchEvent(a)},W=t=>{if(b.value<0)return;const a=B.elements.getAllExposedProps()[t.type]||{},u={id:`box-comp-${Date.now()}`,type:t.type,i:`box-comp-${Date.now()}`,x:0,y:0,w:1,h:1,options:JSON.parse(JSON.stringify(a.OPTIONS||{})),data:JSON.parse(JSON.stringify(a.DATA||[])),common:JSON.parse(JSON.stringify(a.COMMON||{}))};_.value[b.value].component=u,o.conf&&(o.conf.slots=_.value),h.value=!1,b.value=-1},U=t=>{_.value[t].component=null,o.conf&&(o.conf.slots=_.value)};return e.watch(()=>{var t,n,a;return[(t=y.value)==null?void 0:t.slotCount,(n=y.value)==null?void 0:n.layoutType,(a=y.value)==null?void 0:a.slotsConfig]},()=>{$()},{deep:!0}),(t,n)=>{const a=S.ElIcon,u=S.ElButton,k=S.ElCollapseItem,O=S.ElCollapse,V=S.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:"box-container",style:e.normalizeStyle(R.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,c)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["box-slot",{"slot-empty":!l.component,"slot-hover":r.mode==="edit"&&!l.component}]),style:e.normalizeStyle(J(l)),onClick:e.withModifiers(s=>L(l,c),["stop"])},[l.component&&i.value[l.component.type]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["slot-component-wrapper",{"slot-component-selected":r.mode==="edit"&&g.value===c}]),onClick:e.withModifiers(s=>F(l,c),["stop"])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value[l.component.type]),{conf:l.component,theme:r.theme,mode:r.mode,class:"slot-component"},null,8,["conf","theme","mode"]))],10,K)):r.mode==="edit"?(e.openBlock(),e.createElementBlock("div",ee,[e.createVNode(a,{size:24},{default:e.withCtx(()=>[e.createVNode(e.unref(q.Plus))]),_:1}),e.createElementVNode("span",null,e.toDisplayString(l.name||`插槽 ${c+1}`),1)])):e.createCommentVNode("",!0),r.mode==="edit"&&l.component?(e.openBlock(),e.createElementBlock("div",te,[e.createVNode(u,{type:"danger",size:"small",circle:"",onClick:e.withModifiers(s=>U(c),["stop"])},{default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(q.Close))]),_:1})]),_:1},8,["onClick"])])):e.createCommentVNode("",!0)],14,Z))),128)),e.renderSlot(t.$slots,"default",{},void 0,!0),e.createVNode(V,{modelValue:h.value,"onUpdate:modelValue":n[1]||(n[1]=l=>h.value=l),title:"选择组件",width:"600px","append-to-body":!0,"close-on-click-modal":!0,"destroy-on-close":""},{default:e.withCtx(()=>[e.createElementVNode("div",oe,[e.createVNode(O,{modelValue:N.value,"onUpdate:modelValue":n[0]||(n[0]=l=>N.value=l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(l,c)=>(e.openBlock(),e.createBlock(k,{key:c,title:l.name,name:c},{default:e.withCtx(()=>[e.createElementVNode("div",ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.data,s=>(e.openBlock(),e.createElementBlock("div",{key:s.type,class:"component-item",onClick:T=>W(s)},[e.createElementVNode("div",ae,[e.createElementVNode("img",{src:s.default_icon,alt:s.name},null,8,re)]),e.createElementVNode("div",ie,e.toDisplayString(s.name),1)],8,le))),128))])]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"])],4)}}})),he=B._export_sfc(fe,[["__scopeId","data-v-61ed94fc"]]);exports.default=he;
|
|
@@ -35,8 +35,8 @@ import "element-plus/es/components/button/style/css";
|
|
|
35
35
|
import "element-plus/es/components/icon/style/css";
|
|
36
36
|
import { defineComponent as me, shallowRef as fe, ref as w, onMounted as ye, computed as ve, watch as he, openBlock as d, createElementBlock as f, normalizeStyle as j, Fragment as I, renderList as M, withModifiers as R, normalizeClass as H, createBlock as q, resolveDynamicComponent as be, createVNode as C, withCtx as k, unref as G, createElementVNode as $, toDisplayString as Q, createCommentVNode as X, renderSlot as ge } from "vue";
|
|
37
37
|
import { Plus as Ce, Close as xe } from "@element-plus/icons-vue";
|
|
38
|
-
import { B as _e } from "./BaseComponent-
|
|
39
|
-
import { L as P, _ as Oe } from "./index-
|
|
38
|
+
import { B as _e } from "./BaseComponent-DMJmgFIo.js";
|
|
39
|
+
import { L as P, _ as Oe } from "./index-nru6zK5E.js";
|
|
40
40
|
import { A as Se, D as we } from "./ele-box-icon-Brlhb3oN.js";
|
|
41
41
|
const ke = ["onClick"], $e = ["onClick"], Ne = {
|
|
42
42
|
key: 1,
|
|
@@ -22,7 +22,7 @@ import "element-plus/es/components/checkbox/style/css";
|
|
|
22
22
|
import "element-plus/es/components/date-picker/style/css";
|
|
23
23
|
import { defineComponent as Ie, useCssVars as Ee, computed as B, ref as u, onMounted as Re, openBlock as r, createElementBlock as c, Fragment as x, renderList as A, createElementVNode as o, toDisplayString as m, normalizeClass as U, createVNode as a, withCtx as p, createTextVNode as f, unref as ae, createBlock as Se, createCommentVNode as we, renderSlot as Te } from "vue";
|
|
24
24
|
import { Delete as Ae, Upload as Ue } from "@element-plus/icons-vue";
|
|
25
|
-
import { l as Oe, d as G, _ as Ne } from "./index-
|
|
25
|
+
import { l as Oe, d as G, _ as Ne } from "./index-nru6zK5E.js";
|
|
26
26
|
import { A as Pe, D as ze } from "./ele-ctrSet-icon-BtKGrCid.js";
|
|
27
27
|
const Le = { class: "chart-config-panel" }, Fe = {
|
|
28
28
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var se=Object.defineProperty,re=Object.defineProperties;var ie=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var Q=(c,a,r)=>a in c?se(c,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[a]=r,q=(c,a)=>{for(var r in a||(a={}))ce.call(a,r)&&Q(c,r,a[r]);if(G)for(var r of G(a))de.call(a,r)&&Q(c,r,a[r]);return c},R=(c,a)=>re(c,ie(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/date-picker/style/css");const e=require("vue"),X=require("@element-plus/icons-vue"),b=require("./index-Bo49zvKb.cjs"),H=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),ue={class:"chart-config-panel"},pe={key:0,class:"config-section"},ve={class:"section-header"},me={class:"section-title"},fe={class:"granularity-switch"},ge={class:"quick-range"},Ve=["onClick"],Ce={class:"date-inputs"},ye={key:1,class:"config-section"},Ne={class:"section-header"},be={class:"section-title"},ke={class:"time-list-actions"},_e={class:"selected-count"},Ee={class:"time-list"},he={key:2,class:"config-section"},De={class:"section-title"},xe={key:3,class:"config-section"},Ye={class:"section-title"},Se={class:"direction-tabs"},Be=["onClick"],Me={key:4,class:"config-section"},we={class:"section-title"},Te={class:"range-inputs"},Ie={key:5,class:"config-section"},qe={class:"section-title"},Re={class:"range-inputs"},Ae={key:6,class:"config-section"},Oe={class:"section-title"},Ue={class:"function-options"},Pe={key:7,class:"config-section"},Fe={DEFAULT_ICON:H.DEFAULT_ICON,ACTIVE_ICON:H.ACTIVE_ICON,NAME_CN:"图表配置面板",NAME_EN:"Chart Config Panel",ORDER:14,PLATFORM:["pc","screen"]},Le={bindId:{value:"",type:"string",label:"component.deepDisplacement.bindId"},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.options.accentColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"}},ze=[{type:"timeRange",label:"时间段",targetId:""},{type:"timeList",label:"采集时间列表",targetId:""},{type:"direction",label:"位移方向",targetId:""},{type:"dispSwitch",label:"累计/相对切换",targetId:""}],je=["type","label","targetId"],$e=[],Ge={useAlias:!1,multiObject:!1,source:""},Qe={DEFAULT:Fe,OPTIONS:Le,DATA:ze,PARAMS:je,SOURCE:$e,COMMON:Ge},Xe=e.defineComponent(R(q({},Qe),{__name:"chartConfigPanel",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){e.useCssVars(l=>({v7cc69559:y.value.bgColor,v520c1f5c:y.value.borderColor,v07166a9e:y.value.textColor,v66046274:y.value.accentColor}));const a=b.useLinkStore(),r=c,y=e.computed(()=>{var t,i,n,u,g;const{options:l}=r.conf||{};return{bindId:((t=l==null?void 0:l.bindId)==null?void 0:t.value)||"",bgColor:((i=l==null?void 0:l.bgColor)==null?void 0:i.value)||"#ffffff",textColor:((n=l==null?void 0:l.textColor)==null?void 0:n.value)||"#333333",accentColor:((u=l==null?void 0:l.accentColor)==null?void 0:u.value)||"#409eff",borderColor:((g=l==null?void 0:l.borderColor)==null?void 0:g.value)||"#e5e5e5"}}),A=e.computed(()=>{var l;return((l=r.conf)==null?void 0:l.data)||[]}),O=e.computed(()=>y.value.bindId||r.uid||""),k=e.ref("day"),U=e.ref("week"),p=e.ref(""),f=e.ref(""),J=[{label:"近7天",value:"week"},{label:"近30天",value:"month"},{label:"近90天",value:"quarter"}],_=e.ref([]),v=e.ref([]),N=e.ref(!0),Y=e.ref("relative"),S=e.ref("total"),K=[{label:"合",value:"total"},{label:"X轴",value:"x"},{label:"Y轴",value:"y"}],B=e.ref(""),M=e.ref(""),w=e.ref(""),T=e.ref(""),E=e.ref(!0),h=e.ref(!0),P=()=>({granularity:k.value,startDate:p.value,endDate:f.value,selectedTimes:v.value,chartType:Y.value,direction:S.value,dispRange:{min:parseFloat(B.value)||null,max:parseFloat(M.value)||null},relativeDispRange:{min:parseFloat(w.value)||null,max:parseFloat(T.value)||null},showDisp:E.value,showRelativeDisp:h.value}),d=()=>{const l=P(),t=A.value,i=O.value;i&&(console.log("[ConfigPanel] 广播配置 (uid):",i,l),a.publish("deepDisplacement","chartConfigPanel",{objectId:i,type:"config",fv:l})),t.forEach(n=>{const u=n.targetId;u&&(n.type==="dispSwitch"?u.split(",").map(V=>V.trim()).forEach((V,C)=>{if(!V)return;const I=C===0?E.value:h.value;a.publish("deepDisplacement","chartConfigPanel",{objectId:V,type:"bindConfig",fv:R(q({},l),{visible:I})})}):a.publish("deepDisplacement","chartConfigPanel",{objectId:u,type:"bindConfig",fv:l}))})},F=l=>{k.value=l,d()},L=l=>{U.value=l;const t=b.dayjs();f.value=t.format("YYYY-MM-DD"),l==="week"?p.value=t.subtract(7,"day").format("YYYY-MM-DD"):l==="month"?p.value=t.subtract(30,"day").format("YYYY-MM-DD"):l==="quarter"&&(p.value=t.subtract(90,"day").format("YYYY-MM-DD")),j(),d()},z=()=>{p.value&&f.value&&(j(),d())},j=()=>{const l=b.dayjs(p.value),t=b.dayjs(f.value),i=[];let n=t;for(;n.isAfter(l)||n.isSame(l);)i.push(n.format("YYYY-MM-DD")),n=n.subtract(1,"day");_.value=i,v.value=[...i],N.value=!0},W=l=>{v.value=l?[..._.value]:[],d()},Z=()=>{v.value=[],N.value=!1,d()},ee=()=>{N.value=v.value.length===_.value.length,d()},te=()=>{d()},le=l=>{S.value=l,d()},D=()=>{d()},$=()=>{d()},oe=()=>{const l=O.value;l&&a.publish("deepDisplacement",{objectId:l,type:"export",fv:{type:"chart",config:P()},source:"chartConfigPanel"})};return e.onMounted(()=>{L("week"),setTimeout(d,300)}),(l,t)=>{const i=m.ElDatePicker,n=m.ElCheckbox,u=m.ElIcon,g=m.ElButton,V=m.ElCheckboxGroup,C=m.ElRadio,I=m.ElRadioGroup,x=m.ElInput;return e.openBlock(),e.createElementBlock("div",ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(s,ae)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:ae},[s.type==="timeRange"?(e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("div",ve,[e.createElementVNode("span",me,e.toDisplayString(s.label||"时间段"),1),e.createElementVNode("div",fe,[e.createElementVNode("span",{class:e.normalizeClass(["switch-item",{active:k.value==="day"}]),onClick:t[0]||(t[0]=o=>F("day"))},"日均",2),e.createElementVNode("span",{class:e.normalizeClass(["switch-item",{active:k.value==="hour"}]),onClick:t[1]||(t[1]=o=>F("hour"))},"小时",2)])]),e.createElementVNode("div",ge,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(J,o=>e.createElementVNode("span",{key:o.value,class:e.normalizeClass(["range-item",{active:U.value===o.value}]),onClick:ne=>L(o.value)},e.toDisplayString(o.label),11,Ve)),64))]),e.createElementVNode("div",Ce,[e.createVNode(i,{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=o=>p.value=o),type:"date",placeholder:"开始日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",size:"small",class:"date-picker",onChange:z},null,8,["modelValue"]),e.createVNode(i,{modelValue:f.value,"onUpdate:modelValue":t[3]||(t[3]=o=>f.value=o),type:"date",placeholder:"结束日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",size:"small",class:"date-picker",onChange:z},null,8,["modelValue"])])])):s.type==="timeList"?(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("div",Ne,[e.createElementVNode("span",be,e.toDisplayString(s.label||"采集时间列表"),1)]),e.createElementVNode("div",ke,[e.createVNode(n,{modelValue:N.value,"onUpdate:modelValue":t[4]||(t[4]=o=>N.value=o),onChange:W},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("全选",-1)])]),_:1},8,["modelValue"]),e.createVNode(g,{size:"small",text:"",onClick:Z},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Delete))]),_:1}),t[14]||(t[14]=e.createTextVNode("清空",-1))]),_:1}),e.createElementVNode("span",_e,[t[15]||(t[15]=e.createTextVNode("已选 ",-1)),e.createElementVNode("em",null,e.toDisplayString(v.value.length),1),t[16]||(t[16]=e.createTextVNode(" 项",-1))])]),e.createElementVNode("div",Ee,[e.createVNode(V,{modelValue:v.value,"onUpdate:modelValue":t[5]||(t[5]=o=>v.value=o),onChange:ee},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,o=>(e.openBlock(),e.createBlock(n,{key:o,value:o,class:"time-checkbox"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])])):s.type==="chartType"?(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",De,e.toDisplayString(s.label||"图类型"),1),e.createVNode(I,{modelValue:Y.value,"onUpdate:modelValue":t[6]||(t[6]=o=>Y.value=o),class:"chart-type-group",onChange:te},{default:e.withCtx(()=>[e.createVNode(C,{value:"relative"},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("相对位移",-1)])]),_:1}),e.createVNode(C,{value:"cluster"},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode("滑面聚类判识",-1)])]),_:1}),e.createVNode(C,{value:"borehole"},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("钻孔柱状图",-1)])]),_:1}),e.createVNode(C,{value:"sensor"},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("传感器分布图",-1)])]),_:1})]),_:1},8,["modelValue"])])):s.type==="direction"?(e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("div",Ye,e.toDisplayString(s.label||"位移方向"),1),e.createElementVNode("div",Se,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(K,o=>e.createElementVNode("span",{key:o.value,class:e.normalizeClass(["direction-item",{active:S.value===o.value}]),onClick:ne=>le(o.value)},e.toDisplayString(o.label),11,Be)),64))])])):s.type==="dispRange"?(e.openBlock(),e.createElementBlock("div",Me,[e.createElementVNode("div",we,e.toDisplayString(s.label||"累计位移区间"),1),e.createElementVNode("div",Te,[e.createVNode(x,{modelValue:B.value,"onUpdate:modelValue":t[7]||(t[7]=o=>B.value=o),size:"small",placeholder:"最小值",class:"range-input",onChange:D},null,8,["modelValue"]),t[21]||(t[21]=e.createElementVNode("span",{class:"range-sep"},"~",-1)),e.createVNode(x,{modelValue:M.value,"onUpdate:modelValue":t[8]||(t[8]=o=>M.value=o),size:"small",placeholder:"最大值",class:"range-input",onChange:D},null,8,["modelValue"]),t[22]||(t[22]=e.createElementVNode("span",{class:"range-unit"},"mm",-1))])])):s.type==="relativeDispRange"?(e.openBlock(),e.createElementBlock("div",Ie,[e.createElementVNode("div",qe,e.toDisplayString(s.label||"相对位移区间"),1),e.createElementVNode("div",Re,[e.createVNode(x,{modelValue:w.value,"onUpdate:modelValue":t[9]||(t[9]=o=>w.value=o),size:"small",placeholder:"最小值",class:"range-input",onChange:D},null,8,["modelValue"]),t[23]||(t[23]=e.createElementVNode("span",{class:"range-sep"},"~",-1)),e.createVNode(x,{modelValue:T.value,"onUpdate:modelValue":t[10]||(t[10]=o=>T.value=o),size:"small",placeholder:"最大值",class:"range-input",onChange:D},null,8,["modelValue"]),t[24]||(t[24]=e.createElementVNode("span",{class:"range-unit"},"mm",-1))])])):s.type==="dispSwitch"?(e.openBlock(),e.createElementBlock("div",Ae,[e.createElementVNode("div",Oe,e.toDisplayString(s.label||"功能"),1),e.createElementVNode("div",Ue,[e.createVNode(n,{modelValue:E.value,"onUpdate:modelValue":t[11]||(t[11]=o=>E.value=o),onChange:$},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("累计位移",-1)])]),_:1},8,["modelValue"]),e.createVNode(n,{modelValue:h.value,"onUpdate:modelValue":t[12]||(t[12]=o=>h.value=o),onChange:$},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("相对位移",-1)])]),_:1},8,["modelValue"])])])):s.type==="export"?(e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(g,{size:"small",onClick:oe,class:"export-btn"},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Upload))]),_:1}),e.createTextVNode(e.toDisplayString(s.label||"导出图"),1)]),_:2},1024)])):e.createCommentVNode("",!0)],64))),128)),e.renderSlot(l.$slots,"default",{},void 0,!0)])}}})),He=b._export_sfc(Xe,[["__scopeId","data-v-8b0e3d68"]]);exports.default=He;
|
|
1
|
+
"use strict";var se=Object.defineProperty,re=Object.defineProperties;var ie=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var Q=(c,a,r)=>a in c?se(c,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[a]=r,q=(c,a)=>{for(var r in a||(a={}))ce.call(a,r)&&Q(c,r,a[r]);if(G)for(var r of G(a))de.call(a,r)&&Q(c,r,a[r]);return c},R=(c,a)=>re(c,ie(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/date-picker/style/css");const e=require("vue"),X=require("@element-plus/icons-vue"),b=require("./index-D9ehIVda.cjs"),H=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),ue={class:"chart-config-panel"},pe={key:0,class:"config-section"},ve={class:"section-header"},me={class:"section-title"},fe={class:"granularity-switch"},ge={class:"quick-range"},Ve=["onClick"],Ce={class:"date-inputs"},ye={key:1,class:"config-section"},Ne={class:"section-header"},be={class:"section-title"},ke={class:"time-list-actions"},_e={class:"selected-count"},Ee={class:"time-list"},he={key:2,class:"config-section"},De={class:"section-title"},xe={key:3,class:"config-section"},Ye={class:"section-title"},Se={class:"direction-tabs"},Be=["onClick"],Me={key:4,class:"config-section"},we={class:"section-title"},Te={class:"range-inputs"},Ie={key:5,class:"config-section"},qe={class:"section-title"},Re={class:"range-inputs"},Ae={key:6,class:"config-section"},Oe={class:"section-title"},Ue={class:"function-options"},Pe={key:7,class:"config-section"},Fe={DEFAULT_ICON:H.DEFAULT_ICON,ACTIVE_ICON:H.ACTIVE_ICON,NAME_CN:"图表配置面板",NAME_EN:"Chart Config Panel",ORDER:14,PLATFORM:["pc","screen"]},Le={bindId:{value:"",type:"string",label:"component.deepDisplacement.bindId"},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.options.accentColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"}},ze=[{type:"timeRange",label:"时间段",targetId:""},{type:"timeList",label:"采集时间列表",targetId:""},{type:"direction",label:"位移方向",targetId:""},{type:"dispSwitch",label:"累计/相对切换",targetId:""}],je=["type","label","targetId"],$e=[],Ge={useAlias:!1,multiObject:!1,source:""},Qe={DEFAULT:Fe,OPTIONS:Le,DATA:ze,PARAMS:je,SOURCE:$e,COMMON:Ge},Xe=e.defineComponent(R(q({},Qe),{__name:"chartConfigPanel",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){e.useCssVars(l=>({v7cc69559:y.value.bgColor,v520c1f5c:y.value.borderColor,v07166a9e:y.value.textColor,v66046274:y.value.accentColor}));const a=b.useLinkStore(),r=c,y=e.computed(()=>{var t,i,n,u,g;const{options:l}=r.conf||{};return{bindId:((t=l==null?void 0:l.bindId)==null?void 0:t.value)||"",bgColor:((i=l==null?void 0:l.bgColor)==null?void 0:i.value)||"#ffffff",textColor:((n=l==null?void 0:l.textColor)==null?void 0:n.value)||"#333333",accentColor:((u=l==null?void 0:l.accentColor)==null?void 0:u.value)||"#409eff",borderColor:((g=l==null?void 0:l.borderColor)==null?void 0:g.value)||"#e5e5e5"}}),A=e.computed(()=>{var l;return((l=r.conf)==null?void 0:l.data)||[]}),O=e.computed(()=>y.value.bindId||r.uid||""),k=e.ref("day"),U=e.ref("week"),p=e.ref(""),f=e.ref(""),J=[{label:"近7天",value:"week"},{label:"近30天",value:"month"},{label:"近90天",value:"quarter"}],_=e.ref([]),v=e.ref([]),N=e.ref(!0),Y=e.ref("relative"),S=e.ref("total"),K=[{label:"合",value:"total"},{label:"X轴",value:"x"},{label:"Y轴",value:"y"}],B=e.ref(""),M=e.ref(""),w=e.ref(""),T=e.ref(""),E=e.ref(!0),h=e.ref(!0),P=()=>({granularity:k.value,startDate:p.value,endDate:f.value,selectedTimes:v.value,chartType:Y.value,direction:S.value,dispRange:{min:parseFloat(B.value)||null,max:parseFloat(M.value)||null},relativeDispRange:{min:parseFloat(w.value)||null,max:parseFloat(T.value)||null},showDisp:E.value,showRelativeDisp:h.value}),d=()=>{const l=P(),t=A.value,i=O.value;i&&(console.log("[ConfigPanel] 广播配置 (uid):",i,l),a.publish("deepDisplacement","chartConfigPanel",{objectId:i,type:"config",fv:l})),t.forEach(n=>{const u=n.targetId;u&&(n.type==="dispSwitch"?u.split(",").map(V=>V.trim()).forEach((V,C)=>{if(!V)return;const I=C===0?E.value:h.value;a.publish("deepDisplacement","chartConfigPanel",{objectId:V,type:"bindConfig",fv:R(q({},l),{visible:I})})}):a.publish("deepDisplacement","chartConfigPanel",{objectId:u,type:"bindConfig",fv:l}))})},F=l=>{k.value=l,d()},L=l=>{U.value=l;const t=b.dayjs();f.value=t.format("YYYY-MM-DD"),l==="week"?p.value=t.subtract(7,"day").format("YYYY-MM-DD"):l==="month"?p.value=t.subtract(30,"day").format("YYYY-MM-DD"):l==="quarter"&&(p.value=t.subtract(90,"day").format("YYYY-MM-DD")),j(),d()},z=()=>{p.value&&f.value&&(j(),d())},j=()=>{const l=b.dayjs(p.value),t=b.dayjs(f.value),i=[];let n=t;for(;n.isAfter(l)||n.isSame(l);)i.push(n.format("YYYY-MM-DD")),n=n.subtract(1,"day");_.value=i,v.value=[...i],N.value=!0},W=l=>{v.value=l?[..._.value]:[],d()},Z=()=>{v.value=[],N.value=!1,d()},ee=()=>{N.value=v.value.length===_.value.length,d()},te=()=>{d()},le=l=>{S.value=l,d()},D=()=>{d()},$=()=>{d()},oe=()=>{const l=O.value;l&&a.publish("deepDisplacement",{objectId:l,type:"export",fv:{type:"chart",config:P()},source:"chartConfigPanel"})};return e.onMounted(()=>{L("week"),setTimeout(d,300)}),(l,t)=>{const i=m.ElDatePicker,n=m.ElCheckbox,u=m.ElIcon,g=m.ElButton,V=m.ElCheckboxGroup,C=m.ElRadio,I=m.ElRadioGroup,x=m.ElInput;return e.openBlock(),e.createElementBlock("div",ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(s,ae)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:ae},[s.type==="timeRange"?(e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("div",ve,[e.createElementVNode("span",me,e.toDisplayString(s.label||"时间段"),1),e.createElementVNode("div",fe,[e.createElementVNode("span",{class:e.normalizeClass(["switch-item",{active:k.value==="day"}]),onClick:t[0]||(t[0]=o=>F("day"))},"日均",2),e.createElementVNode("span",{class:e.normalizeClass(["switch-item",{active:k.value==="hour"}]),onClick:t[1]||(t[1]=o=>F("hour"))},"小时",2)])]),e.createElementVNode("div",ge,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(J,o=>e.createElementVNode("span",{key:o.value,class:e.normalizeClass(["range-item",{active:U.value===o.value}]),onClick:ne=>L(o.value)},e.toDisplayString(o.label),11,Ve)),64))]),e.createElementVNode("div",Ce,[e.createVNode(i,{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=o=>p.value=o),type:"date",placeholder:"开始日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",size:"small",class:"date-picker",onChange:z},null,8,["modelValue"]),e.createVNode(i,{modelValue:f.value,"onUpdate:modelValue":t[3]||(t[3]=o=>f.value=o),type:"date",placeholder:"结束日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",size:"small",class:"date-picker",onChange:z},null,8,["modelValue"])])])):s.type==="timeList"?(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("div",Ne,[e.createElementVNode("span",be,e.toDisplayString(s.label||"采集时间列表"),1)]),e.createElementVNode("div",ke,[e.createVNode(n,{modelValue:N.value,"onUpdate:modelValue":t[4]||(t[4]=o=>N.value=o),onChange:W},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("全选",-1)])]),_:1},8,["modelValue"]),e.createVNode(g,{size:"small",text:"",onClick:Z},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Delete))]),_:1}),t[14]||(t[14]=e.createTextVNode("清空",-1))]),_:1}),e.createElementVNode("span",_e,[t[15]||(t[15]=e.createTextVNode("已选 ",-1)),e.createElementVNode("em",null,e.toDisplayString(v.value.length),1),t[16]||(t[16]=e.createTextVNode(" 项",-1))])]),e.createElementVNode("div",Ee,[e.createVNode(V,{modelValue:v.value,"onUpdate:modelValue":t[5]||(t[5]=o=>v.value=o),onChange:ee},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,o=>(e.openBlock(),e.createBlock(n,{key:o,value:o,class:"time-checkbox"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])])):s.type==="chartType"?(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",De,e.toDisplayString(s.label||"图类型"),1),e.createVNode(I,{modelValue:Y.value,"onUpdate:modelValue":t[6]||(t[6]=o=>Y.value=o),class:"chart-type-group",onChange:te},{default:e.withCtx(()=>[e.createVNode(C,{value:"relative"},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("相对位移",-1)])]),_:1}),e.createVNode(C,{value:"cluster"},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode("滑面聚类判识",-1)])]),_:1}),e.createVNode(C,{value:"borehole"},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("钻孔柱状图",-1)])]),_:1}),e.createVNode(C,{value:"sensor"},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("传感器分布图",-1)])]),_:1})]),_:1},8,["modelValue"])])):s.type==="direction"?(e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("div",Ye,e.toDisplayString(s.label||"位移方向"),1),e.createElementVNode("div",Se,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(K,o=>e.createElementVNode("span",{key:o.value,class:e.normalizeClass(["direction-item",{active:S.value===o.value}]),onClick:ne=>le(o.value)},e.toDisplayString(o.label),11,Be)),64))])])):s.type==="dispRange"?(e.openBlock(),e.createElementBlock("div",Me,[e.createElementVNode("div",we,e.toDisplayString(s.label||"累计位移区间"),1),e.createElementVNode("div",Te,[e.createVNode(x,{modelValue:B.value,"onUpdate:modelValue":t[7]||(t[7]=o=>B.value=o),size:"small",placeholder:"最小值",class:"range-input",onChange:D},null,8,["modelValue"]),t[21]||(t[21]=e.createElementVNode("span",{class:"range-sep"},"~",-1)),e.createVNode(x,{modelValue:M.value,"onUpdate:modelValue":t[8]||(t[8]=o=>M.value=o),size:"small",placeholder:"最大值",class:"range-input",onChange:D},null,8,["modelValue"]),t[22]||(t[22]=e.createElementVNode("span",{class:"range-unit"},"mm",-1))])])):s.type==="relativeDispRange"?(e.openBlock(),e.createElementBlock("div",Ie,[e.createElementVNode("div",qe,e.toDisplayString(s.label||"相对位移区间"),1),e.createElementVNode("div",Re,[e.createVNode(x,{modelValue:w.value,"onUpdate:modelValue":t[9]||(t[9]=o=>w.value=o),size:"small",placeholder:"最小值",class:"range-input",onChange:D},null,8,["modelValue"]),t[23]||(t[23]=e.createElementVNode("span",{class:"range-sep"},"~",-1)),e.createVNode(x,{modelValue:T.value,"onUpdate:modelValue":t[10]||(t[10]=o=>T.value=o),size:"small",placeholder:"最大值",class:"range-input",onChange:D},null,8,["modelValue"]),t[24]||(t[24]=e.createElementVNode("span",{class:"range-unit"},"mm",-1))])])):s.type==="dispSwitch"?(e.openBlock(),e.createElementBlock("div",Ae,[e.createElementVNode("div",Oe,e.toDisplayString(s.label||"功能"),1),e.createElementVNode("div",Ue,[e.createVNode(n,{modelValue:E.value,"onUpdate:modelValue":t[11]||(t[11]=o=>E.value=o),onChange:$},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("累计位移",-1)])]),_:1},8,["modelValue"]),e.createVNode(n,{modelValue:h.value,"onUpdate:modelValue":t[12]||(t[12]=o=>h.value=o),onChange:$},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("相对位移",-1)])]),_:1},8,["modelValue"])])])):s.type==="export"?(e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(g,{size:"small",onClick:oe,class:"export-btn"},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Upload))]),_:1}),e.createTextVNode(e.toDisplayString(s.label||"导出图"),1)]),_:2},1024)])):e.createCommentVNode("",!0)],64))),128)),e.renderSlot(l.$slots,"default",{},void 0,!0)])}}})),He=b._export_sfc(Xe,[["__scopeId","data-v-8b0e3d68"]]);exports.default=He;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty,I=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var _=(a,l,n)=>l in a?A(a,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[l]=n,z=(a,l)=>{for(var n in l||(l={}))H.call(l,n)&&_(a,n,l[n]);if(V)for(var n of V(l))$.call(l,n)&&_(a,n,l[n]);return a},B=(a,l)=>I(a,q(l));var j=(a,l,n)=>new Promise((h,v)=>{var g=f=>{try{u(n.next(f))}catch(x){v(x)}},N=f=>{try{u(n.throw(f))}catch(x){v(x)}},u=f=>f.done?h(f.value):Promise.resolve(f.value).then(g,N);u((n=n.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),T=require("./index-
|
|
1
|
+
"use strict";var A=Object.defineProperty,I=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var _=(a,l,n)=>l in a?A(a,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[l]=n,z=(a,l)=>{for(var n in l||(l={}))H.call(l,n)&&_(a,n,l[n]);if(V)for(var n of V(l))$.call(l,n)&&_(a,n,l[n]);return a},B=(a,l)=>I(a,q(l));var j=(a,l,n)=>new Promise((h,v)=>{var g=f=>{try{u(n.next(f))}catch(x){v(x)}},N=f=>{try{u(n.throw(f))}catch(x){v(x)}},u=f=>f.done?h(f.value):Promise.resolve(f.value).then(g,N);u((n=n.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),T=require("./index-D9ehIVda.cjs");require("element-plus");const D=require("./EChartComponentBase-Cj_dO_ES.cjs"),L=require("./titleStyle-NSnz6cUg.cjs"),k=require("./ele-circleBar-icon-Da0-L9sa.cjs"),E=require("./installCanvasRenderer-CyhM1Qpl.cjs"),R=require("./install-DV5cEgNV.cjs"),F=require("./install-CltTFs4e.cjs"),M=require("./install-nDY6w-GK.cjs"),P=require("./echarts-BB8O2KSA.cjs"),U={class:"mix-body"},W=["id"],K={class:"bar-wrap"},G={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"环形图",NAME_EN:"CircleBar",ORDER:2,PLATFORM:["pc","screen","mobile"]},J={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",barColor:"#e5e5e5",radiusSize:8,textSize:12,barHeight:10,isHideTitle:!1,showTotal:!0,fixed:{value:2,type:"number",label:"component.options.circleBar_fixed",dependent:"showTotal"},totalText:{value:"总数",type:"string",label:"component.options.circleBar_totalText",dependent:"showTotal"},titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},w=[{name:"参数一",fv:"",color:"#4162ff",object_id:"",default:"10",value:10},{name:"参数二",fv:"",color:"#3bbc6a",object_id:"",default:"10",value:10},{name:"参数三",fv:"",color:"#e24359",object_id:"",default:"10",value:10}],Q=["name","fv","object_id","color","default"],X=["mosaic","statistics","calculate"],Y={useAlias:!1,multiObject:!1,source:"mosaic"},Z={DEFAULT:G,OPTIONS:J,DATA:w,PARAMS:Q,SOURCE:X,COMMON:Y},ee=e.defineComponent(B(z({},Z),{__name:"circleBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){E.use([R.install,F.install,E.install,E.install$1,M.install]);const l=a,n=T.useLinkStore();let h=0;class v extends D.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),barColor:this.getOptionValue("barColor","#e5e5e5"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),barHeight:this.getOptionValue("barHeight",10),isHideTitle:this.getOptionValue("isHideTitle",!1),showTotal:this.getOptionValue("showTotal",!0),fixed:this.getOptionValue("fixed",2),totalText:this.getOptionValue("totalText","总数")}}buildCenterTitleText(){const t=Number(this.getOptionValue("fixed",2)),o=Number.isFinite(t)?t:2,i=this.getOptionValue("totalText","总数");return[`{value|${h.toFixed(o)}}`,`{name|${i||"总数"}}`].join(`
|
|
2
2
|
`)}init(){return j(this,null,function*(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=w),this.props.conf.data.forEach(o=>{o.default!==void 0&&o.default!==""&&(o.value=Number(o.default)||0)}),h=this.props.conf.data.reduce((o,i)=>o+Number(i.value||0),0),e.nextTick(()=>this.initChart())})}initChart(){var o,i,c;const t=document.querySelector(`#${this.echartId}`);t&&(this.chartObj||(this.chartObj=P.init(t),this.setupResizeListener(t)),(o=this.chartObj)==null||o.setOption(this.getChartOption(),!0),this.props.mode==="preview"&&((i=this.chartObj)==null||i.off("click"),(c=this.chartObj)==null||c.on("click",r=>{var d,S,b,m,p,C;const s=r==null?void 0:r.name;if(typeof s=="string"&&s){const y=((S=(d=this.props.conf)==null?void 0:d.options)==null?void 0:S.linkChannel)==="custom"?(m=(b=this.props.conf)==null?void 0:b.options)==null?void 0:m.customChannel:(C=(p=this.props.conf)==null?void 0:p.options)==null?void 0:C.linkChannel;n.publish(y||"circleBar","circleBar",{objectId:"",deviceId:"",type:"select",fieldKey:s,fv:z({key:s},r),source:"circleBar"})}})))}getChartOption(){const t=this.Style.value,{data:o,name:i}=this.props.conf,c=o.map((s,d)=>s.color||T.COLORS[d]),r=o.map(s=>({value:s.value||0,name:s.name}));return{title:{zlevel:0,show:t.showTotal,text:this.buildCenterTitleText(),textStyle:{rich:{value:{color:t.textColor,fontSize:t.textSize,fontWeight:"bold",lineHeight:t.textSize+8},name:{color:t.textColor,lineHeight:t.textSize+8,fontSize:t.textSize}}},top:"center",left:"center"},color:c,series:[{name:i,type:"pie",radius:["50%","85%"],center:["50%","50%"],data:r,label:{position:"center",show:!1,color:"inherit"},emphasis:{scale:0,label:{show:t.showTotal,fontSize:t.textSize,fontWeight:"bold",formatter:`{d}%
|
|
3
3
|
{b}`,lineHeight:t.textSize+8}}}]}}setHistoryData(t){var c;if(!t||!(t!=null&&t.length))return;const{data:o}=this.props.conf,i=this.chartObj.getOption();if(h=0,i.series[0].data.forEach((r,s)=>{var d;r.value=(d=t[s].data[0])!=null?d:0,h+=r.value,o[s].value=r.value}),(c=i.title)!=null&&c[0]){const r=this.getOptionValue("showTotal",!0);i.title[0].show=r,i.title[0].text=this.buildCenterTitleText()}this.chartObj.setOption(i,!0)}setSocketData(t){var r,s,d,S;if(!t||!this.chartObj)return;const{data:o,options:i}=this.props.conf,c=this.chartObj.getOption();o.forEach((b,m)=>{var C,y;const p=this.extractDataValue(t,b.fv);b.value=p!=null?p:0,(y=(C=c.series)==null?void 0:C[0])!=null&&y.data&&(c.series[0].data[m].value=p!=null?p:0)}),h=o.reduce((b,m)=>b+Number(m.value||0),0),(r=c.title)!=null&&r[0]&&(c.title[0].text=[`{value|${h.toFixed(((s=i==null?void 0:i.fixed)==null?void 0:s.value)||2)}}`,`{name|${((d=i==null?void 0:i.totalText)==null?void 0:d.value)||"总数"}}`].join(`
|
|
4
4
|
`)),(S=this.chartObj)==null||S.setOption(c)}}const g=new v(l,"circleBar"),N=g.getEchartId();g.setupLifecycle();const u=g.getStyle(),f=e.computed(()=>L.generateTitleStyle(l.conf.options)),x=O=>{const t=Number(O),o=Number(h);return!isNaN(t)&&!isNaN(o)&&o!==0?(t/o*100).toFixed(2)+"%":"0%"};return(O,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(u).bgColor,borderRadius:`${e.unref(u).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(f.value)},e.toDisplayString(a.conf.caption||a.conf.name),5),e.createElementVNode("div",U,[e.createElementVNode("div",{class:"echart-container",id:e.unref(N)},null,8,W),e.createElementVNode("div",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:"bar-item level flex",key:i},[e.createElementVNode("div",{class:"label",style:e.normalizeStyle({color:e.unref(u).textColor,fontSize:`${e.unref(u).textSize}px`})},e.toDisplayString(o.name),5),e.createElementVNode("div",{class:"bar",style:e.normalizeStyle({height:e.unref(u).barHeight+"px",backgroundColor:e.unref(u).barColor})},[e.createElementVNode("div",{class:"percent",style:e.normalizeStyle({backgroundColor:o.color||e.unref(T.COLORS)[i],width:x(o.value)})},null,4)],4),e.createElementVNode("div",{class:"value",style:e.normalizeStyle({color:e.unref(u).textColor,fontSize:`${e.unref(u).textSize}px`})},e.toDisplayString(o.value),5)]))),128))])]),e.renderSlot(O.$slots,"default",{},void 0,!0)],4))}})),te=T._export_sfc(ee,[["__scopeId","data-v-255681d1"]]);exports.default=te;
|
|
@@ -27,9 +27,9 @@ var A = (a, i, l) => new Promise((h, y) => {
|
|
|
27
27
|
c((l = l.apply(a, i)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as M, computed as P, openBlock as j, createElementBlock as V, normalizeStyle as x, unref as d, createElementVNode as m, toDisplayString as w, Fragment as W, renderList as U, renderSlot as q, nextTick as K } from "vue";
|
|
30
|
-
import { l as G, C as $, _ as J } from "./index-
|
|
30
|
+
import { l as G, C as $, _ as J } from "./index-nru6zK5E.js";
|
|
31
31
|
import "element-plus";
|
|
32
|
-
import { E as Q } from "./EChartComponentBase-
|
|
32
|
+
import { E as Q } from "./EChartComponentBase-DrDdGF1C.js";
|
|
33
33
|
import { g as X } from "./titleStyle-BT5GlpAb.js";
|
|
34
34
|
import { A as Y, D as Z } from "./ele-circleBar-icon-DNBUxt0A.js";
|
|
35
35
|
import { u as tt, i as et, a as ot } from "./installCanvasRenderer-oDYkyVFy.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var X=Object.defineProperty,Z=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var _=(r,n,c)=>n in r?X(r,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[n]=c,x=(r,n)=>{for(var c in n||(n={}))te.call(n,c)&&_(r,c,n[c]);if(V)for(var c of V(n))oe.call(n,c)&&_(r,c,n[c]);return r},M=(r,n)=>Z(r,ee(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),le=require("./BaseComponent-
|
|
1
|
+
"use strict";var X=Object.defineProperty,Z=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var _=(r,n,c)=>n in r?X(r,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[n]=c,x=(r,n)=>{for(var c in n||(n={}))te.call(n,c)&&_(r,c,n[c]);if(V)for(var c of V(n))oe.call(n,c)&&_(r,c,n[c]);return r},M=(r,n)=>Z(r,ee(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),le=require("./BaseComponent-CPat9pFl.cjs"),ae=require("./index-D9ehIVda.cjs"),w=require("./ele-dateTime-icon-BgZ2_KWW.cjs"),ne={key:0,class:"digital-clock"},ce={key:1,class:"analog-clock-wrapper"},re=["width","height"],ie=["r","stroke","stroke-width"],ue=["r","fill"],se=["x1","y1","x2","y2","stroke"],de={key:0},me=["x","y","fill","font-size"],he=["x2","y2","stroke","stroke-width"],pe=["x2","y2","stroke","stroke-width"],ve=["x2","y2","stroke","stroke-width"],ge=["r","fill"],ke={DEFAULT_ICON:w.DEFAULT_ICON,ACTIVE_ICON:w.ACTIVE_ICON,NAME_CN:"钟表",NAME_EN:"Clock",ORDER:5,PLATFORM:["pc","screen","mobile"]},ye={clockType:{value:"analog",type:"select",label:"时钟类型",options:[{label:"模拟时钟",value:"analog"},{label:"数字时钟",value:"digital"}]},timeFormat:{value:"24",type:"select",label:"时间格式",options:[{label:"24小时制",value:"24"},{label:"12小时制",value:"12"}]},showDate:{value:!0,type:"checkbox",label:"显示日期"},showSecondHand:{value:!0,type:"checkbox",label:"显示秒针"},showNumbers:{value:!0,type:"checkbox",label:"显示数字"},digitalFontSize:32,digitalColor:"#1f2937",digitalDateSize:14,digitalDateColor:"#6b7280",clockSize:200,backgroundColor:"#ffffff",borderColor:"#374151",borderWidth:2,tickColor:"#374151",numberColor:"#1f2937",numberSize:14,hourHandColor:"#374151",minuteHandColor:"#374151",secondHandColor:"#ef4444",centerDotColor:"#374151"},fe=[],Ce=[],Se=[],be={},Ve={DEFAULT:ke,OPTIONS:ye,DATA:fe,PARAMS:Ce,SOURCE:Se,COMMON:be},_e=e.defineComponent(M(x({},Ve),{__name:"clock",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const n=r;class c extends le.BaseComponent{constructor(){super(...arguments),this.timer=null}extractStyles(){return{clockType:this.getOptionValue("clockType","analog"),timeFormat:this.getOptionValue("timeFormat","24"),showDate:this.getOptionValue("showDate",!0),showSecondHand:this.getOptionValue("showSecondHand",!0),showNumbers:this.getOptionValue("showNumbers",!0),clockSize:this.getOptionValue("clockSize",200),backgroundColor:this.getOptionValue("backgroundColor","#ffffff"),borderColor:this.getOptionValue("borderColor","#374151"),borderWidth:this.getOptionValue("borderWidth",2),tickColor:this.getOptionValue("tickColor","#374151"),numberColor:this.getOptionValue("numberColor","#1f2937"),numberSize:this.getOptionValue("numberSize",14),hourHandColor:this.getOptionValue("hourHandColor","#374151"),minuteHandColor:this.getOptionValue("minuteHandColor","#374151"),secondHandColor:this.getOptionValue("secondHandColor","#ef4444"),centerDotColor:this.getOptionValue("centerDotColor","#374151"),digitalFontSize:this.getOptionValue("digitalFontSize",32),digitalColor:this.getOptionValue("digitalColor","#1f2937"),digitalDateSize:this.getOptionValue("digitalDateSize",14),digitalDateColor:this.getOptionValue("digitalDateColor","#6b7280")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.timer&&clearInterval(this.timer),p(),this.timer=setInterval(p,1e3)}cleanup(){this.timer&&clearInterval(this.timer)}}const v=new c(n,"clock");v.setupLifecycle();const o=v.getStyle(),g=e.ref(""),h=e.ref(""),d=e.ref(0),s=e.ref(0),m=e.ref(0),N=e.computed(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})),D=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.clockType)||"analog"}),O=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.timeFormat)||"24"}),k=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showDate)!==!1}),E=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showSecondHand)!==!1}),H=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showNumbers)!==!1}),u=e.computed(()=>{var a;const t=(a=o.value)==null?void 0:a.clockSize,l=Number(t);return typeof l=="number"&&!Number.isNaN(l)&&l>0?l:200}),i=e.computed(()=>{const t=u.value;return typeof t=="number"&&!Number.isNaN(t)?t*.45:90}),z=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.backgroundColor)||"#ffffff"}),I=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.borderColor)||"#374151"}),y=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.borderWidth)||2}),B=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.tickColor)||"#374151"}),T=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.numberColor)||"#1f2937"}),F=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.numberSize)||14}),P=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.hourHandColor)||"#374151"}),$=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.minuteHandColor)||"#374151"}),A=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.secondHandColor)||"#ef4444"}),L=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.centerDotColor)||"#374151"}),f=e.computed(()=>i.value*.5),C=e.computed(()=>i.value*.7),S=e.computed(()=>i.value*.8),W=e.computed(()=>Math.max(3,u.value*.015)),R=e.computed(()=>Math.max(2,u.value*.01)),q=e.computed(()=>Math.max(1,u.value*.005)),U=e.computed(()=>Math.max(3,u.value*.015)),j=e.computed(()=>({width:`${u.value}px`,height:`${u.value}px`,maxWidth:"100%",maxHeight:"100%"})),Y=e.computed(()=>{var t,l;return{fontSize:`${((t=o.value)==null?void 0:t.digitalFontSize)||32}px`,color:((l=o.value)==null?void 0:l.digitalColor)||"#1f2937",fontWeight:"bold",fontFamily:"monospace"}}),b=e.computed(()=>{var t,l;return{fontSize:`${((t=o.value)==null?void 0:t.digitalDateSize)||14}px`,color:((l=o.value)==null?void 0:l.digitalDateColor)||"#6b7280",fontFamily:"monospace",marginTop:"8px"}}),p=()=>{const t=new Date;d.value=t.getHours(),s.value=t.getMinutes(),m.value=t.getSeconds();let l=d.value,a="";O.value==="12"&&(a=l>=12?" PM":" AM",l=l%12,l===0&&(l=12)),g.value=`${l.toString().padStart(2,"0")}:${s.value.toString().padStart(2,"0")}:${m.value.toString().padStart(2,"0")}${a}`;const G=t.getFullYear(),J=(t.getMonth()+1).toString().padStart(2,"0"),K=t.getDate().toString().padStart(2,"0"),Q=["周日","周一","周二","周三","周四","周五","周六"];h.value=`${G}-${J}-${K} ${Q[t.getDay()]}`};return e.onMounted(()=>p()),(t,l)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(N.value),class:"mix-component"},[D.value==="digital"?(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("div",{class:"time-display",style:e.normalizeStyle(Y.value)},e.toDisplayString(g.value),5),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-display",style:e.normalizeStyle(b.value)},e.toDisplayString(h.value),5)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",{class:"analog-clock",style:e.normalizeStyle(j.value)},[(e.openBlock(),e.createElementBlock("svg",{width:u.value,height:u.value,viewBox:"0 0 200 200",class:"clock-svg"},[e.createElementVNode("circle",{cx:"100",cy:"100",r:i.value,stroke:I.value,"stroke-width":y.value,fill:"none"},null,8,ie),e.createElementVNode("circle",{cx:"100",cy:"100",r:i.value-y.value/2,fill:z.value},null,8,ue),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,a=>e.createElementVNode("g",{key:`hour-${a}`},[e.createElementVNode("line",{x1:100+(i.value-15)*Math.cos((a*30-90)*Math.PI/180),y1:100+(i.value-15)*Math.sin((a*30-90)*Math.PI/180),x2:100+(i.value-5)*Math.cos((a*30-90)*Math.PI/180),y2:100+(i.value-5)*Math.sin((a*30-90)*Math.PI/180),stroke:B.value,"stroke-width":"2"},null,8,se)])),64)),H.value?(e.openBlock(),e.createElementBlock("g",de,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,a=>e.createElementVNode("text",{key:`number-${a}`,x:100+(i.value-25)*Math.cos((a*30-90)*Math.PI/180),y:100+(i.value-25)*Math.sin((a*30-90)*Math.PI/180),"text-anchor":"middle","dominant-baseline":"central",fill:T.value,"font-size":F.value,"font-weight":"bold"},e.toDisplayString(a),9,me)),64))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:"100",y1:"100",x2:100+f.value*Math.cos((d.value*30+s.value*.5-90)*Math.PI/180),y2:100+f.value*Math.sin((d.value*30+s.value*.5-90)*Math.PI/180),stroke:P.value,"stroke-width":W.value,"stroke-linecap":"round"},null,8,he),e.createElementVNode("line",{x1:"100",y1:"100",x2:100+C.value*Math.cos((s.value*6-90)*Math.PI/180),y2:100+C.value*Math.sin((s.value*6-90)*Math.PI/180),stroke:$.value,"stroke-width":R.value,"stroke-linecap":"round"},null,8,pe),E.value?(e.openBlock(),e.createElementBlock("line",{key:1,x1:"100",y1:"100",x2:100+S.value*Math.cos((m.value*6-90)*Math.PI/180),y2:100+S.value*Math.sin((m.value*6-90)*Math.PI/180),stroke:A.value,"stroke-width":q.value,"stroke-linecap":"round"},null,8,ve)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:"100",cy:"100",r:U.value,fill:L.value},null,8,ge)],8,re))],4),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-display",style:e.normalizeStyle(b.value)},e.toDisplayString(h.value),5)):e.createCommentVNode("",!0)])),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),xe=ae._export_sfc(_e,[["__scopeId","data-v-d8289d01"]]);exports.default=xe;
|
|
@@ -11,8 +11,8 @@ var z = (s, n, i) => n in s ? ie(s, n, { enumerable: !0, configurable: !0, writa
|
|
|
11
11
|
return s;
|
|
12
12
|
}, I = (s, n) => se(s, re(n));
|
|
13
13
|
import { defineComponent as de, ref as m, computed as t, onMounted as he, openBlock as u, createElementBlock as c, normalizeStyle as p, createElementVNode as d, toDisplayString as y, createCommentVNode as k, Fragment as F, renderList as P, renderSlot as ve } from "vue";
|
|
14
|
-
import { B as me } from "./BaseComponent-
|
|
15
|
-
import { _ as pe } from "./index-
|
|
14
|
+
import { B as me } from "./BaseComponent-DMJmgFIo.js";
|
|
15
|
+
import { _ as pe } from "./index-nru6zK5E.js";
|
|
16
16
|
import { A as ge, D as fe } from "./ele-dateTime-icon-BEGFlwID.js";
|
|
17
17
|
const ye = {
|
|
18
18
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty,U=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var B=(s,l,n)=>l in s?A(s,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[l]=n,x=(s,l)=>{for(var n in l||(l={}))M.call(l,n)&&B(s,n,l[n]);if(k)for(var n of k(l))P.call(l,n)&&B(s,n,l[n]);return s},O=(s,l)=>U(s,$(l));var V=(s,l,n)=>new Promise((v,u)=>{var S=m=>{try{p(n.next(m))}catch(_){u(_)}},b=m=>{try{p(n.throw(m))}catch(_){u(_)}},p=m=>m.done?v(m.value):Promise.resolve(m.value).then(S,b);p((n=n.apply(s,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),F=require("./BaseComponent-
|
|
1
|
+
"use strict";var A=Object.defineProperty,U=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var B=(s,l,n)=>l in s?A(s,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[l]=n,x=(s,l)=>{for(var n in l||(l={}))M.call(l,n)&&B(s,n,l[n]);if(k)for(var n of k(l))P.call(l,n)&&B(s,n,l[n]);return s},O=(s,l)=>U(s,$(l));var V=(s,l,n)=>new Promise((v,u)=>{var S=m=>{try{p(n.next(m))}catch(_){u(_)}},b=m=>{try{p(n.throw(m))}catch(_){u(_)}},p=m=>m.done?v(m.value):Promise.resolve(m.value).then(S,b);p((n=n.apply(s,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),F=require("./BaseComponent-CPat9pFl.cjs"),g=require("./index-D9ehIVda.cjs"),H=require("./titleStyle-NSnz6cUg.cjs"),C=require("element-plus"),T=require("./ele-clt-icon-BEVOS7Tq.cjs"),R={class:"item-val"},L={class:"w-full flex justify-end"},W={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"项目采集",NAME_EN:"Project",ORDER:1,PLATFORM:["pc","screen","mobile"]},G={bgColor:"#fff",projectColor:"#999",projectSize:14,paramColor:"#333",labelWidth:64,paramSize:12,paramHeight:32,radiusSize:8,type:{value:"project",type:"radio",option:[{value:"project",label:"component.collect.projectType"},{value:"object",label:"component.collect.objectType"}],label:"component.collect.collectType"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},J=[{project_id:"",object_id:""}],K=["project_id","object_id"],Q={DEFAULT:W,OPTIONS:G,DATA:J,PARAMS:K,COMMON:{}},X=e.defineComponent(O(x({},Q),{__name:"clt",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(s){const l=s;class n extends F.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),projectColor:this.getOptionValue("projectColor","#999"),projectSize:this.getOptionValue("projectSize",14),paramColor:this.getOptionValue("paramColor","#333"),labelWidth:this.getOptionValue("labelWidth",64),paramSize:this.getOptionValue("paramSize",12),paramHeight:this.getOptionValue("paramHeight",32),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1),type:this.getOptionValue("type","project")}}init(){return V(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),_()})}}const v=new n(l,"clt");v.setupLifecycle();const u=v.getStyle(),S=l.conf,b=e.computed(()=>H.generateTitleStyle(l.conf.options)),p=e.ref([{name:"离线项目",data:[{name:"采集项",type:"Integer",unit:"℃",value:""}]}]);let m=0;const _=()=>V(null,null,function*(){const{data:a}=l.conf;p.value=[];const d=a.filter(f=>f.project_id).map(f=>f.project_id);if(!d.length)return;const t=++m,r={where_in:JSON.stringify([["uid",d.join(",")]])},{result:c}=yield g.api.post("get_collect_list",r);if(t!==m)return;const o=c==null?void 0:c.data;Array.isArray(o)&&o.length>0&&(p.value=o.map(f=>({name:f.name,uid:f.uid,object_id:f.object_id,data:z(f.script)})))}),z=a=>{const d=[];return a.forEach(t=>{d.push({name:t.label_loc,type:t.type,unit:t.unit,key:t.key})}),d},E=e.computed(()=>{let a=!0;return p.value.forEach(d=>{d.data.forEach(t=>{(t.value||t.value===0)&&(a=!1)})}),a}),q=()=>{l.mode!=="edit"&&(u.value.type==="object"?D():w())},w=()=>{const a=[],d=g.auth.getUser();p.value.forEach(t=>{const r={};if(t.data.forEach(o=>{(o.value||o.value===0)&&(r[o.key]=["Integer","Float"].includes(o.type)?Number(o.value):o.type==="Bool"?!!o.value:o.value)}),!Object.keys(r).length)return;const c={name:t.name,value:r,collect_id:t.uid,collector:d.name};a.push(g.api.post("add_collect_value_without_object",c))}),Promise.all(a).then(t=>{let r=!0;t.forEach(c=>{c.code!==200&&(r=!1,C.ElMessage.error(c.msg))}),r&&C.ElMessage.success("操作成功")})},D=()=>{const a=[],d=g.auth.getUser();p.value.forEach(t=>{const r={};if(t.data.forEach(o=>{(o.value||o.value===0)&&(r[o.key]=["Integer","Float"].includes(o.type)?Number(o.value):o.type==="Bool"?!!o.value:o.value)}),!Object.keys(r).length)return;const c={name:t.name,value:r,collect_id:t.uid,object_id:t.object_id||l.uid,collector:d.name};a.push(g.api.post("add_collect_value",c))}),Promise.all(a).then(t=>{let r=!0;t.forEach(c=>{c.code!==200&&(r=!1,C.ElMessage.error(c.msg))}),r&&C.ElMessage.success("操作成功")})};return(a,d)=>{const t=h.ElInput,r=h.ElInputNumber,c=h.ElRadio,o=h.ElRadioGroup,f=h.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(u).bgColor,borderRadius:`${e.unref(u).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(b.value)},e.toDisplayString(e.unref(S).caption||e.unref(S).name),5),e.createElementVNode("div",{class:"mix-body",style:e.normalizeStyle({height:e.unref(u).isHideTitle?"100%":"calc(100% - 42px)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(j,N)=>(e.openBlock(),e.createElementBlock("div",{key:N},[e.createElementVNode("div",{class:"item-title",style:e.normalizeStyle({fontSize:`${e.unref(u).projectSize}px`,color:e.unref(u).projectColor})},e.toDisplayString(j.name),5),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.data,(i,I)=>(e.openBlock(),e.createElementBlock("div",{class:"item-wrap",key:`${N}_${I}`},[e.createElementVNode("div",{class:"item-item",style:e.normalizeStyle({width:`${e.unref(u).labelWidth}px`,fontSize:`${e.unref(u).paramSize}px`,color:e.unref(u).paramColor,height:`${e.unref(u).paramHeight}px`})},e.toDisplayString(i.name)+": ",5),e.createElementVNode("div",R,[i.type==="String"?(e.openBlock(),e.createBlock(t,{key:0,type:"text",modelValue:i.value,"onUpdate:modelValue":y=>i.value=y},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),i.type==="Integer"?(e.openBlock(),e.createBlock(r,{key:1,style:{width:"100%"},modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,precision:0,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),i.type==="Float"?(e.openBlock(),e.createBlock(r,{key:2,style:{width:"100%"},modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),i.type==="Bool"?(e.openBlock(),e.createBlock(o,{key:3,value:i.value,"onUpdate:value":y=>i.value=y},{default:e.withCtx(()=>[e.createVNode(c,{value:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("common.yes")),1)]),_:1}),e.createVNode(c,{value:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("common.no")),1)]),_:1})]),_:1},8,["value","onUpdate:value"])):e.createCommentVNode("",!0)])]))),128))]))),128)),e.createElementVNode("div",L,[e.createVNode(f,{type:E.value?"default":"primary",disabled:E.value,onClick:q},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])],4),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),Y=g._export_sfc(X,[["__scopeId","data-v-c54bd4ad"]]);exports.default=Y;
|
|
@@ -34,8 +34,8 @@ import "element-plus/es/components/radio/style/css";
|
|
|
34
34
|
import "element-plus/es/components/input-number/style/css";
|
|
35
35
|
import "element-plus/es/components/input/style/css";
|
|
36
36
|
import { defineComponent as re, computed as P, ref as ie, openBlock as y, createElementBlock as C, normalizeStyle as S, unref as d, createElementVNode as g, toDisplayString as _, Fragment as R, renderList as F, createBlock as O, withCtx as h, createTextVNode as b, createCommentVNode as k, createVNode as z, renderSlot as ne } from "vue";
|
|
37
|
-
import { B as ce } from "./BaseComponent-
|
|
38
|
-
import { a as A, f as M, _ as se } from "./index-
|
|
37
|
+
import { B as ce } from "./BaseComponent-DMJmgFIo.js";
|
|
38
|
+
import { a as A, f as M, _ as se } from "./index-nru6zK5E.js";
|
|
39
39
|
import { g as ue } from "./titleStyle-BT5GlpAb.js";
|
|
40
40
|
import { ElMessage as x } from "element-plus";
|
|
41
41
|
import { A as de, D as pe } from "./ele-clt-icon-DuU4Q401.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var z=Object.defineProperty,A=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var x=(c,a,o)=>a in c?z(c,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):c[a]=o,O=(c,a)=>{for(var o in a||(a={}))w.call(a,o)&&x(c,o,a[o]);if(v)for(var o of v(a))U.call(a,o)&&x(c,o,a[o]);return c},B=(c,a)=>A(c,j(a));var N=(c,a,o)=>new Promise((C,b)=>{var y=f=>{try{g(o.next(f))}catch(h){b(h)}},m=f=>{try{g(o.throw(f))}catch(h){b(h)}},g=f=>f.done?C(f.value):Promise.resolve(f.value).then(y,m);g((o=o.apply(c,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),q=require("./BaseComponent-
|
|
1
|
+
"use strict";var z=Object.defineProperty,A=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var x=(c,a,o)=>a in c?z(c,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):c[a]=o,O=(c,a)=>{for(var o in a||(a={}))w.call(a,o)&&x(c,o,a[o]);if(v)for(var o of v(a))U.call(a,o)&&x(c,o,a[o]);return c},B=(c,a)=>A(c,j(a));var N=(c,a,o)=>new Promise((C,b)=>{var y=f=>{try{g(o.next(f))}catch(h){b(h)}},m=f=>{try{g(o.throw(f))}catch(h){b(h)}},g=f=>f.done?C(f.value):Promise.resolve(f.value).then(y,m);g((o=o.apply(c,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),q=require("./BaseComponent-CPat9pFl.cjs"),V=require("./index-D9ehIVda.cjs"),M=require("./titleStyle-NSnz6cUg.cjs"),T=require("./ele-clt-icon-BEVOS7Tq.cjs"),P=require("element-plus"),$={class:"item-val"},H={key:0,class:"btn-wrap"},L={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"定制采集",NAME_EN:"Customer",ORDER:2,PLATFORM:["pc","screen","mobile"]},F={bgColor:"#fff",titleColor:"#111",paramColor:"#333",labelWidth:64,titleSize:14,paramSize:12,paramHeight:32,radiusSize:8,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},R=[{object_id:"",project_id:"",collect:"",label_cn:"",fv:""}],W=["mosaic"],G=["object_id","project_id","collect","label_cn","fv"],J={DEFAULT:L,OPTIONS:F,DATA:R,PARAMS:G,SOURCE:W,COMMON:{}},K=e.defineComponent(B(O({},J),{__name:"cmc",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},sourceData:{type:Object,default:()=>({})}},setup(c){const{proxy:a}=e.getCurrentInstance(),o=c,C="--";class b extends q.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),paramColor:this.getOptionValue("paramColor","#333"),labelWidth:this.getOptionValue("labelWidth",64),titleSize:this.getOptionValue("titleSize",14),paramSize:this.getOptionValue("paramSize",12),paramHeight:this.getOptionValue("paramHeight",32),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1),type:this.getOptionValue("type","project")}}init(){return N(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),h()})}setHistoryData(r){const{data:d}=this.props.conf;d.forEach((u,p)=>{var t;u.value=(t=r[p].data[0])!=null?t:C})}setSocketData(r){const{common:d,data:u,uid:p}=this.props.conf;console.log(r,"result socket"),u.forEach(t=>{var s;t.value=(s=r.data[t.fv])!=null?s:C})}}const y=new b(o,"cmc");y.setupLifecycle();const m=y.getStyle(),g=o.conf,f=e.computed(()=>M.generateTitleStyle(o.conf.options)),h=()=>N(null,null,function*(){const{data:n}=o.conf;if(!n||n.length===0)return;const r=n.filter(t=>t.project_id).map(t=>t.project_id);if(!r.length){o.mode==="edit"&&n.forEach(t=>{t.label_cn=t.label_cn||a.$t("component.collect.collectItem"),t.type=t.type||"Integer",t.unit=t.unit||""});return}let d={where_in:JSON.stringify([["uid",r.join(",")]])};const{result:u}=yield V.api.post("get_collect_list",d,!0),p={};u.data.forEach(t=>{p[t.uid]=t}),n.forEach(t=>{var s;if((s=p[t.project_id])!=null&&s.script){const i=p[t.project_id].script.find(E=>E.key===t.collect);t.unit=i==null?void 0:i.unit,t.label_cn=t.label_cn||(i==null?void 0:i.label_loc),t.type=i==null?void 0:i.type}})}),k=e.computed(()=>{const{data:n}=o.conf;let r=!0;return n.forEach(d=>{(d.setting||d.setting===0)&&(r=!1)}),r}),D=()=>N(null,null,function*(){if(o.mode==="edit")return;const{data:n,common:r}=o.conf,d=JSON.parse(sessionStorage.getItem(V.ALIAS_MAPPING_KEY)||"{}")||{},u=[],p=V.auth.getUser();n.forEach(t=>{const s=r.useAlias?d[t.object_alias]:t.object_id||o.uid;if((t.setting||t.setting===0)&&s){let i={collect_id:t.project_id,object_id:s,value:{[t.collect]:["Integer","Float"].includes(t.type)?Number(t.setting):t.setting},name:t.label_cn,collector:p.name};u.push(V.api.post("add_collect_value",i))}}),Promise.all(u).then(t=>{console.log(t),t.every(s=>s.code===200)&&P.ElMessage.success("操作成功")})});return e.watchEffect(()=>{o.conf.socketData&&y.setSocketData(o.conf.socketData)}),(n,r)=>{var i,E;const d=S.ElInput,u=S.ElInputNumber,p=S.ElRadio,t=S.ElRadioGroup,s=S.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(m).bgColor,borderRadius:`${e.unref(m).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(f.value)},e.toDisplayString(e.unref(g).caption||e.unref(g).name),5),e.createElementVNode("div",{class:"mix-body",style:e.normalizeStyle({height:e.unref(m).isHideTitle?"100%":"calc(100% - 42px)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g).data,(l,I)=>(e.openBlock(),e.createElementBlock("div",{key:I,class:"item-wrap"},[e.createElementVNode("div",{class:"item-item",style:e.normalizeStyle({width:`${e.unref(m).labelWidth}px`,fontSize:`${e.unref(m).paramSize}px`,color:e.unref(m).paramColor})},e.toDisplayString(l.label_cn)+": ",5),e.createElementVNode("div",$,[l.type==="String"?(e.openBlock(),e.createBlock(d,{key:0,type:"text",class:"w-full",modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),l.type==="Integer"?(e.openBlock(),e.createBlock(u,{key:1,style:{width:"100%"},modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_,precision:0,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),l.type==="Float"?(e.openBlock(),e.createBlock(u,{key:2,style:{width:"100%"},modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),l.type==="Boolean"?(e.openBlock(),e.createBlock(t,{key:3,class:"w-full",modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_},{default:e.withCtx(()=>[e.createVNode(p,{value:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("common.yes")),1)]),_:1}),e.createVNode(p,{value:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("common.no")),1)]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"item-label",style:e.normalizeStyle({fontSize:`${e.unref(m).paramSize}px`})},e.toDisplayString(l.value||"--"),5)]))),128)),(E=(i=e.unref(g))==null?void 0:i.data)!=null&&E.length?(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(s,{type:k.value?"default":"primary",disabled:k.value,onClick:D},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])):e.createCommentVNode("",!0)],4),e.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),Y=V._export_sfc(K,[["__scopeId","data-v-e71e3deb"]]);exports.default=Y;
|
|
@@ -34,8 +34,8 @@ import "element-plus/es/components/radio/style/css";
|
|
|
34
34
|
import "element-plus/es/components/input-number/style/css";
|
|
35
35
|
import "element-plus/es/components/input/style/css";
|
|
36
36
|
import { defineComponent as X, getCurrentInstance as Z, computed as M, watchEffect as tt, openBlock as y, createElementBlock as N, normalizeStyle as E, unref as u, createElementVNode as v, toDisplayString as _, Fragment as et, renderList as ot, createBlock as I, withCtx as b, createTextVNode as S, createCommentVNode as O, createVNode as z, renderSlot as at } from "vue";
|
|
37
|
-
import { B as lt } from "./BaseComponent-
|
|
38
|
-
import { a as H, w as it, f as nt, _ as st } from "./index-
|
|
37
|
+
import { B as lt } from "./BaseComponent-DMJmgFIo.js";
|
|
38
|
+
import { a as H, w as it, f as nt, _ as st } from "./index-nru6zK5E.js";
|
|
39
39
|
import { g as ct } from "./titleStyle-BT5GlpAb.js";
|
|
40
40
|
import { A as rt, D as dt } from "./ele-clt-icon-DuU4Q401.js";
|
|
41
41
|
import { ElMessage as pt } from "element-plus";
|
|
@@ -27,9 +27,9 @@ var L = (o, e, t) => new Promise((u, c) => {
|
|
|
27
27
|
l((t = t.apply(o, e)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as k, ref as E, computed as Z, openBlock as $, createElementBlock as T, normalizeStyle as M, unref as g, createElementVNode as v, toDisplayString as D, renderSlot as A, nextTick as j } from "vue";
|
|
30
|
-
import { a as V, _ as B } from "./index-
|
|
30
|
+
import { a as V, _ as B } from "./index-nru6zK5E.js";
|
|
31
31
|
import { ElMessage as R } from "element-plus";
|
|
32
|
-
import { E as W } from "./EChartComponentBase-
|
|
32
|
+
import { E as W } from "./EChartComponentBase-DrDdGF1C.js";
|
|
33
33
|
import { g as U } from "./titleStyle-BT5GlpAb.js";
|
|
34
34
|
import { i as H, c as J } from "./install-CY89Nrxl.js";
|
|
35
35
|
import { i as q } from "./install-B_v5XJLG.js";
|