mixdashboards 1.1.12 → 1.1.13
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-HD819tdR.cjs → AgGridTable-Bi7O66-r.cjs} +1 -1
- package/dist/{AgGridTable-nAGZ7EH9.js → AgGridTable-BjGMC3qC.js} +1 -1
- package/dist/{BaseComponent-DJDC3N1j.cjs → BaseComponent-9njJjeix.cjs} +1 -1
- package/dist/{BaseComponent-Czscoh5u.js → BaseComponent-B38Blgw3.js} +3 -3
- package/dist/{EChartComponentBase-DTgKUpc5.cjs → EChartComponentBase-BwbycwwW.cjs} +1 -1
- package/dist/{EChartComponentBase-D7dng7iR.js → EChartComponentBase-DJScukmS.js} +2 -2
- package/dist/{EmergencyPlanPanel-DrA-Ra41.cjs → EmergencyPlanPanel-BxzP1xYW.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-fgufYdpl.js → EmergencyPlanPanel-D3GF-xQQ.js} +1 -1
- package/dist/{HistoryPlanDialog-B97jCXpL.cjs → HistoryPlanDialog-DQXCUsy4.cjs} +1 -1
- package/dist/{HistoryPlanDialog-D5KMySdq.js → HistoryPlanDialog-DpaiRZgi.js} +1 -1
- package/dist/{MixiotAppDetailPage-BoVBQmRp.js → MixiotAppDetailPage-BGfF3qrm.js} +1 -1
- package/dist/{MixiotAppDetailPage-BWfa2etu.cjs → MixiotAppDetailPage-CL1Sd9HJ.cjs} +1 -1
- package/dist/{MonitoringMap-BZXSLqxf.js → MonitoringMap-DQkO116Z.js} +2 -2
- package/dist/{MonitoringMap-BJkUI1pD.cjs → MonitoringMap-Wzsw3hVH.cjs} +1 -1
- package/dist/{UniverSheet-D_6uk1JD.cjs → UniverSheet-Bne7JZyr.cjs} +1 -1
- package/dist/{UniverSheet-BUN2z8VE.js → UniverSheet-Cd2a9LPx.js} +2 -2
- package/dist/{accelerationChart-Dp7AGEHG.cjs → accelerationChart-BJhVC_l5.cjs} +1 -1
- package/dist/{accelerationChart-4Mqw0sHl.js → accelerationChart-BUsbSkwA.js} +2 -2
- package/dist/{actionItem-BoRHosoc.js → actionItem-B3B4MFcW.js} +2 -2
- package/dist/{actionItem-DscCZQ48.cjs → actionItem-DxB7IvtW.cjs} +1 -1
- package/dist/{alarmLevelChart-B16mk8qS.js → alarmLevelChart-DC-q2AgI.js} +2 -2
- package/dist/{alarmLevelChart-5The333F.cjs → alarmLevelChart-DC_hx4Pn.cjs} +1 -1
- package/dist/{alertTable-DKcW7PFG.js → alertTable-CGRDnNPw.js} +2 -2
- package/dist/{alertTable-CadCjxaO.cjs → alertTable-CHfA0TR-.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-BPFTAHv4.cjs → aliasObjectSelectorDemo-DGoLPE4i.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-Bf3MRVJv.js → aliasObjectSelectorDemo-DuGQCEcG.js} +1 -1
- package/dist/{annualRainfallChart-lCOmHSa_.cjs → annualRainfallChart-CLxVqN5Z.cjs} +1 -1
- package/dist/{annualRainfallChart-COE-1nNd.js → annualRainfallChart-Dr8KKYOG.js} +2 -2
- package/dist/{aqi-CIk5X_nw.cjs → aqi-BmYGSf2e.cjs} +1 -1
- package/dist/{aqi-DePtdnZP.js → aqi-rBhSWA_m.js} +2 -2
- package/dist/{aqiIndass-Cw7v9YpQ.cjs → aqiIndass-Cpqau5M0.cjs} +1 -1
- package/dist/{aqiIndass-CQQJSQqp.js → aqiIndass-DqJBc799.js} +2 -2
- package/dist/{areaDeformCurve-Bm0KbS3X.cjs → areaDeformCurve-B924KVWX.cjs} +1 -1
- package/dist/{areaDeformCurve-DwvEX03i.js → areaDeformCurve-DpHWg6pf.js} +2 -2
- package/dist/{arrayCard-Bn6Yq9l2.cjs → arrayCard-Bzjg3HKN.cjs} +1 -1
- package/dist/{arrayCard-DjH4PcOf.js → arrayCard-C7anoYI-.js} +2 -2
- package/dist/{audio-DqvJi-vV.js → audio-DTiS2piX.js} +2 -2
- package/dist/{audio-Dkv8VaJ-.cjs → audio-aADcgdZP.cjs} +1 -1
- package/dist/{bar-ClZLZ4qE.js → bar-D32xICYZ.js} +2 -2
- package/dist/{bar-Bf2Xd3Qm.cjs → bar-DqY55XnC.cjs} +1 -1
- package/dist/{basicShapeToolbox-DepnqGgg.cjs → basicShapeToolbox-BvJjH4fV.cjs} +1 -1
- package/dist/{basicShapeToolbox-BHkBW7aZ.js → basicShapeToolbox-D8q86CzB.js} +2 -2
- package/dist/{bmp-DqZ6htuk.cjs → bmp-DIFGLoNl.cjs} +1 -1
- package/dist/{bmp-DA9Nmg3e.js → bmp-DU3vm7yj.js} +2 -2
- package/dist/{box-DigZa0tF.cjs → box-C8pOZXek.cjs} +1 -1
- package/dist/{box-Dg-IjzND.js → box-DTQKGR9g.js} +2 -2
- package/dist/{chartConfigPanel-jvvu8lrK.js → chartConfigPanel-Bz82sVyH.js} +1 -1
- package/dist/{chartConfigPanel-DPISQMIb.cjs → chartConfigPanel-D4vk7zWs.cjs} +1 -1
- package/dist/{circleBar-3F_4en8C.cjs → circleBar-B48h_-uK.cjs} +1 -1
- package/dist/{circleBar-DKjyAM3b.js → circleBar-ClO05bgq.js} +2 -2
- package/dist/{clock-CbAU2bN_.js → clock-D8ZXhy53.js} +2 -2
- package/dist/{clock-CDQGERCL.cjs → clock-DB94wQje.cjs} +1 -1
- package/dist/{clt-DVwOetod.js → clt-BX0SNGZr.js} +2 -2
- package/dist/{clt-C7ytgefy.cjs → clt-cxeCTOaA.cjs} +1 -1
- package/dist/{cmc-Bqo2Dcet.cjs → cmc-BvnYrQrR.cjs} +1 -1
- package/dist/{cmc-Cv2iAlzd.js → cmc-Co13D559.js} +2 -2
- package/dist/{cmp-CQcusIbt.js → cmp-B4cYCR4p.js} +2 -2
- package/dist/{cmp--UxNWXcc.cjs → cmp-Dd56EQ09.cjs} +1 -1
- package/dist/{conclusionCard-DtQqAdoD.js → conclusionCard-Bla25-qd.js} +2 -2
- package/dist/{conclusionCard-D99-lvE-.cjs → conclusionCard-Cd3DoD1l.cjs} +1 -1
- package/dist/controlList-CyT_LYgr.cjs +1 -0
- package/dist/{controlList-tjiYNkvr.js → controlList-Dx4wSpA7.js} +125 -125
- package/dist/controlRecordList-BAI_15ZN.js +296 -0
- package/dist/controlRecordList-DsxYHRrs.cjs +1 -0
- package/dist/{controlRecordListAPP-DhmaLGHR.js → controlRecordListAPP-BQlABx3f.js} +2 -2
- package/dist/{controlRecordListAPP-BAeBSJVf.cjs → controlRecordListAPP-Zfiwcrmq.cjs} +1 -1
- package/dist/{crd-DLhcKjCB.cjs → crd-C6iegy7d.cjs} +1 -1
- package/dist/{crd-Bc2QGGgg.js → crd-IsqkYOAy.js} +2 -2
- package/dist/{ctrBtn-Bcyy5Udc.cjs → ctrBtn-C3OqkyNS.cjs} +1 -1
- package/dist/{ctrBtn-DCWyMx44.js → ctrBtn-LwuY-nVR.js} +3 -3
- package/dist/{ctrSet-DzVLCodN.cjs → ctrSet-B0nYCdwh.cjs} +1 -1
- package/dist/{ctrSet-CFDc3igH.js → ctrSet-Qb5XEdD4.js} +3 -3
- package/dist/{ctrSwitch-DxfFj9fY.js → ctrSwitch-B3jo3Gx0.js} +3 -3
- package/dist/{ctrSwitch-B6bXoe3E.cjs → ctrSwitch-Bps4Ak15.cjs} +1 -1
- package/dist/{dataManagement-DF32IOUJ.cjs → dataManagement-BFxVtU33.cjs} +1 -1
- package/dist/{dataManagement-B_RNPSET.js → dataManagement-CVHalRKp.js} +2 -2
- package/dist/{dataReport-Ca5kqAiN.js → dataReport-B2AiDMdM.js} +2 -2
- package/dist/{dataReport-B8Sf7izf.cjs → dataReport-Bk79cBkV.cjs} +1 -1
- package/dist/{dataTable-BNr1pEO5.js → dataTable-D9sSJRQn.js} +1 -1
- package/dist/{dataTable-CQuW1G6J.cjs → dataTable-Dh7s14jM.cjs} +1 -1
- package/dist/{datetime-MvzoAmzb.cjs → datetime-C25d1bAc.cjs} +1 -1
- package/dist/{datetime-C30NWm5x.js → datetime-CEKzNAlD.js} +2 -2
- package/dist/{deepClusterSlipSurface-OXbQquqP.cjs → deepClusterSlipSurface-BLZL2xX6.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-DTv8RLbP.js → deepClusterSlipSurface-DODVh-Qw.js} +2 -2
- package/dist/{deepDataMatrix-2a1wNcHl.js → deepDataMatrix-9iClruS0.js} +2 -2
- package/dist/{deepDataMatrix-C8S4Jzo0.cjs → deepDataMatrix-D_NPV2sQ.cjs} +1 -1
- package/dist/{deepDisplacement3D-HkBOsn7t.js → deepDisplacement3D-C5YMqHiD.js} +2 -2
- package/dist/{deepDisplacement3D-DriT8bC2.cjs → deepDisplacement3D-C6puNK1m.cjs} +1 -1
- package/dist/{deepDisplacementChart-BUDAXIas.js → deepDisplacementChart-9sQF6tFO.js} +2 -2
- package/dist/{deepDisplacementChart-DpmribHR.cjs → deepDisplacementChart-D-dqPlzq.cjs} +1 -1
- package/dist/{deepDisplacementChart-BluIVQfL.js → deepDisplacementChart-DEn2yqGO.js} +3 -3
- package/dist/{deepDisplacementChart-DOnrdJfy.cjs → deepDisplacementChart-DhQO428W.cjs} +1 -1
- package/dist/{deepDisplacementView-C8ejaLBn.js → deepDisplacementView-Cux6lFtG.js} +1 -1
- package/dist/{deepDisplacementView-CDVumR_F.cjs → deepDisplacementView-tzX-vzxO.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-BaAju6OI.js → deepNodeTemperatureChart--GH8-4O7.js} +2 -2
- package/dist/{deepNodeTemperatureChart-6urdc5U2.cjs → deepNodeTemperatureChart-Cyfnw2BR.cjs} +1 -1
- package/dist/{deepTangentAngleChart-Ct88jXTV.cjs → deepTangentAngleChart-DPMDFXiA.cjs} +1 -1
- package/dist/{deepTangentAngleChart-Dy3suL_k.js → deepTangentAngleChart-Dae_3j30.js} +2 -2
- package/dist/{deepTemperatureField-CLwPoNZP.cjs → deepTemperatureField-B3Eu4zqv.cjs} +1 -1
- package/dist/{deepTemperatureField-mRdNCEMh.js → deepTemperatureField-Cr2e_Ytp.js} +3 -3
- package/dist/{deepTrendChart-DbSqAyDa.js → deepTrendChart-8fniZ16K.js} +2 -2
- package/dist/{deepTrendChart-tzRoK1qN.cjs → deepTrendChart-BPYqojQ2.cjs} +1 -1
- package/dist/{deviceOnlineStatus-C2Wh3EKy.js → deviceOnlineStatus-DP7-u5lC.js} +2 -2
- package/dist/{deviceOnlineStatus-CObChVau.cjs → deviceOnlineStatus-mJ0KVMo4.cjs} +1 -1
- package/dist/{deviceStatus-BRQ1cqPX.cjs → deviceStatus-B0AxN-cY.cjs} +1 -1
- package/dist/{deviceStatus-CGERf3iy.js → deviceStatus-Ih0jQNYO.js} +2 -2
- package/dist/{displacementDataTable-uyRGO9XR.js → displacementDataTable-BbZjdMtX.js} +2 -2
- package/dist/{displacementDataTable-D78HYkkv.cjs → displacementDataTable-Dkka_jGJ.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-DB1PoEXJ.js → displacementTrajectoryChart-BZDSkYoZ.js} +2 -2
- package/dist/{displacementTrajectoryChart-C7HV_QR6.cjs → displacementTrajectoryChart-DDwm-jr2.cjs} +1 -1
- package/dist/{displacementTrendChart--5YqKKG-.cjs → displacementTrendChart-CUeVa58Q.cjs} +1 -1
- package/dist/{displacementTrendChart-D9CDhIVV.js → displacementTrendChart-DZZaVi86.js} +2 -2
- package/dist/{dxf-DJOGj2ML.cjs → dxf-BOfmTSO8.cjs} +1 -1
- package/dist/{dxf-CVRAv2X8.js → dxf-DYC74yWV.js} +2 -2
- package/dist/{dzc-4HJywPB7.js → dzc-BU7yYW4I.js} +2 -2
- package/dist/{dzc-Cce9viSS.cjs → dzc-DUFiz7a_.cjs} +1 -1
- package/dist/{emergencyPlan-DxV3q__u.cjs → emergencyPlan-DDb6j7YU.cjs} +1 -1
- package/dist/{emergencyPlan-Cdq9Tvtc.js → emergencyPlan-DabL46QK.js} +3 -3
- package/dist/{evn-k13V4ieQ.js → evn-DhdColcF.js} +2 -2
- package/dist/{evn-DtUR2qTB.cjs → evn-DrreVqnm.cjs} +1 -1
- package/dist/{evolutionChart-CQGeaAsX.cjs → evolutionChart-QuGAgjXo.cjs} +1 -1
- package/dist/{evolutionChart-BUAM__4R.js → evolutionChart-aedDj0mQ.js} +3 -3
- package/dist/{fileViewer-B9sKfXYb.cjs → fileViewer-CvNnUxUK.cjs} +1 -1
- package/dist/{fileViewer-OycF744y.js → fileViewer-oBpWIjGb.js} +2 -2
- package/dist/{filterBar-d5Bd0diy.cjs → filterBar-CwHODFoy.cjs} +1 -1
- package/dist/{filterBar-eeSXcDXt.js → filterBar-DYpEssxC.js} +2 -2
- package/dist/{fireCombustionCurve-CFk_VVDh.cjs → fireCombustionCurve-lu2qH6_b.cjs} +1 -1
- package/dist/{fireCombustionCurve-Bqo0TM2X.js → fireCombustionCurve-wbKsWk4E.js} +3 -3
- package/dist/{fireFilterBar-DI5acP0s.js → fireFilterBar-9_fqGo2q.js} +2 -2
- package/dist/{fireFilterBar-Doz_8h8x.cjs → fireFilterBar-B8su74tt.cjs} +1 -1
- package/dist/{fireHistoryTable-C0B4Fmzn.js → fireHistoryTable-C1C95uYN.js} +2 -2
- package/dist/{fireHistoryTable-xaDxKqKV.cjs → fireHistoryTable-pOJz1_Rp.cjs} +1 -1
- package/dist/{gag-CcEl0eYO.js → gag-BGUeQKJJ.js} +2 -2
- package/dist/{gag-Dw1fUKrC.cjs → gag-LSkHPD7f.cjs} +1 -1
- package/dist/{gasStationList-omM6P-PM.js → gasStationList-4TtBLsqC.js} +2 -2
- package/dist/{gasStationList-B1Po2ZsT.cjs → gasStationList-DJTrXjkv.cjs} +1 -1
- package/dist/{geo3dViewer-CTuToF4V.cjs → geo3dViewer-CK89hYK7.cjs} +1 -1
- package/dist/{geo3dViewer-CT1r2jtI.js → geo3dViewer-DIjv75YP.js} +3 -3
- package/dist/{glbModel-BWD7hdXt.cjs → glbModel-BDgY9S4f.cjs} +1 -1
- package/dist/{glbModel-B2ENiwvX.js → glbModel-IOIVpCjq.js} +2 -2
- package/dist/{globalObjectSelector-B-mP0irr.js → globalObjectSelector-B2dkzNyk.js} +1 -1
- package/dist/{globalObjectSelector-C8L0iu4X.cjs → globalObjectSelector-N7s0yyOp.cjs} +1 -1
- package/dist/{gnssFilterBar-Dwxzvpoi.cjs → gnssFilterBar-8eSkGWMH.cjs} +1 -1
- package/dist/{gnssFilterBar-CvmRI34J.js → gnssFilterBar-BF_tbN4_.js} +2 -2
- package/dist/{gnssHistoryTable-4NiskFYi.js → gnssHistoryTable-DUjRjXoS.js} +2 -2
- package/dist/{gnssHistoryTable-DmUS0bVK.cjs → gnssHistoryTable-X_cgOa6r.cjs} +1 -1
- package/dist/{gnssMapView-DCZ00hV9.js → gnssMapView-BnwPDey9.js} +4 -4
- package/dist/{gnssMapView-D_4Xe87Z.cjs → gnssMapView-DnF2bYAD.cjs} +2 -2
- package/dist/{gnssSectionProfile-CIEj6D_4.js → gnssSectionProfile-D0sbRu3A.js} +2 -2
- package/dist/{gnssSectionProfile-BdCAYBOE.cjs → gnssSectionProfile-DoEXHKTy.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-DwYU51n-.cjs → gnssTimeSeriesChart-Csm6PwRv.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-Bz36zvsC.js → gnssTimeSeriesChart-glTixABx.js} +2 -2
- package/dist/{gnssXYTrajectory-CpNDyLak.cjs → gnssXYTrajectory-4c8JDd_b.cjs} +1 -1
- package/dist/{gnssXYTrajectory-BdZRBPAr.js → gnssXYTrajectory-BMCO0sb0.js} +2 -2
- package/dist/{grd-C7prHOo7.js → grd-BTGTCp0z.js} +2 -2
- package/dist/{grd-CmYNXpaT.cjs → grd-D1enzYOI.cjs} +1 -1
- package/dist/{grdIndass-gl3k5cDB.cjs → grdIndass-B6fwa_k8.cjs} +1 -1
- package/dist/{grdIndass-cPmN14WG.js → grdIndass-Dn62HL6y.js} +2 -2
- package/dist/{grg-CnIEbT4n.cjs → grg-B5128EcW.cjs} +1 -1
- package/dist/{grg-DogeoUFD.js → grg-DMOF8h8j.js} +2 -2
- package/dist/{gridview-LCc51MgK.cjs → gridview-Ddin99YO.cjs} +1 -1
- package/dist/{gridview-kXII6eSo.js → gridview-Dewc5Eax.js} +2 -2
- package/dist/{groundwaterFilterBar-BtkhWjro.cjs → groundwaterFilterBar-2uj_Hf_Q.cjs} +1 -1
- package/dist/{groundwaterFilterBar-Dxlqxgcd.js → groundwaterFilterBar-mukvYHDm.js} +2 -2
- package/dist/{groundwaterProfileChart-CXdxFmWa.js → groundwaterProfileChart-BPTP8WBi.js} +3 -3
- package/dist/{groundwaterProfileChart-wiaIpxSx.cjs → groundwaterProfileChart-DDVsfzyr.cjs} +2 -2
- package/dist/{groundwaterTimeCurve-CPOjCK5O.cjs → groundwaterTimeCurve-Zzn-sEsW.cjs} +1 -1
- package/dist/{groundwaterTimeCurve-yCk7ZC3W.js → groundwaterTimeCurve-jtQFr0hU.js} +3 -3
- package/dist/{groupCard-Cj5Vzqzs.js → groupCard-B3fp05QD.js} +2 -2
- package/dist/{groupCard-DYKbZRg4.cjs → groupCard-DWjFdiH0.cjs} +1 -1
- package/dist/{headerBar-DR3ZSA2F.cjs → headerBar-B6lX3WST.cjs} +1 -1
- package/dist/{headerBar-BfZBY98Y.js → headerBar-BkpSQMNy.js} +2 -2
- package/dist/{history-mnG9_L6M.js → history-DgSlSTUD.js} +1 -1
- package/dist/{history-CiY07roO.cjs → history-DqPjJP_E.cjs} +1 -1
- package/dist/{index-DU4OIZEL.js → index-BbXEpgom.js} +2468 -2486
- package/dist/{index-BwtkVH_e.cjs → index-Bo49zvKb.cjs} +10 -10
- package/dist/{insarDeformChart-Dndk2HVd.cjs → insarDeformChart-8UyVWXTx.cjs} +1 -1
- package/dist/{insarDeformChart-D_p7noCD.js → insarDeformChart-DNBHbVuk.js} +2 -2
- package/dist/{insarImageViewer-DP_KfQaB.cjs → insarImageViewer-B8PhDcuG.cjs} +1 -1
- package/dist/{insarImageViewer-DScfbTZ5.js → insarImageViewer-BeykgIJy.js} +2 -2
- package/dist/{kds-B0Fit0Fq.cjs → kds-BJwYrjV_.cjs} +1 -1
- package/dist/{kds-D4z2zyZo.js → kds-CS473Sia.js} +2 -2
- package/dist/{kpiCard-D_gw4X0a.js → kpiCard-CNgj9P9s.js} +2 -2
- package/dist/{kpiCard-DjPf1qHE.cjs → kpiCard-OMuCQe7O.cjs} +1 -1
- package/dist/{landslideMap-DcjEu1ZO.js → landslideMap-DMNcfDYF.js} +3 -3
- package/dist/{landslideMap-DP0shvsC.cjs → landslideMap-NaGM5jJE.cjs} +1 -1
- package/dist/{landslideWarning-DBJXzY-N.js → landslideWarning-DU-dDiiS.js} +5 -5
- package/dist/{landslideWarning-BA_Sb0zk.cjs → landslideWarning-V1wB3aWq.cjs} +1 -1
- package/dist/{layerTabs-DxueDjyU.js → layerTabs-Bgi7pfof.js} +2 -2
- package/dist/{layerTabs-TpEk0WFR.cjs → layerTabs-VfYlv6Ks.cjs} +1 -1
- package/dist/{leaflet-src-DJJgts7k.js → leaflet-src-4AJHN6it.js} +1 -1
- package/dist/{leaflet-src-4S656x1-.cjs → leaflet-src-WG2ob5HA.cjs} +1 -1
- package/dist/{lerc-G5h0UNPO.js → lerc-BDiJ3I_S.js} +2 -2
- package/dist/{lerc-31FBETaU.cjs → lerc-CEea2nO1.cjs} +1 -1
- package/dist/{lin-BPYGMn8m.js → lin-BO1pGlXr.js} +2 -2
- package/dist/{lin-C4-NK6Nf.cjs → lin-B_rN6QBj.cjs} +1 -1
- package/dist/{linIndass-YB7bHhkE.cjs → linIndass-B7XnW5XO.cjs} +1 -1
- package/dist/{linIndass-Dirvz5Z7.js → linIndass-BGpoCQ4j.js} +2 -2
- package/dist/{lst-Biogy6C2.js → lst-BBl9nn63.js} +2 -2
- package/dist/{lst-C_KPRJrQ.cjs → lst-BeB_Gi9l.cjs} +1 -1
- package/dist/{manualEntry-FwaqtMKg.cjs → manualEntry-BQVUqtm7.cjs} +1 -1
- package/dist/{manualEntry-BwN0di-Q.js → manualEntry-C3qifAlP.js} +2 -2
- package/dist/{mapBackground-BScSVH7e.js → mapBackground-CDS60ZJC.js} +3 -3
- package/dist/{mapBackground-I0qYmxI7.cjs → mapBackground-D3-V7S-d.cjs} +1 -1
- package/dist/{mappingList-DscuhC-L.js → mappingList-B0jG2LlO.js} +114 -114
- package/dist/mappingList-DnoAuivo.cjs +1 -0
- package/dist/{markdownViewer-DXVR2den.cjs → markdownViewer-BMkbW1Cl.cjs} +1 -1
- package/dist/{markdownViewer-RlFrcE7Q.js → markdownViewer-BlXaqjhL.js} +2 -2
- package/dist/{mix-control-modal-DzYQkr3y.js → mix-control-modal-BEXucxt5.js} +1 -1
- package/dist/{mix-control-modal-CJGiZ9Xp.cjs → mix-control-modal-aUWGjwZP.cjs} +1 -1
- package/dist/{mixGrid-DLzTyDZW.cjs → mixGrid-B5pKpGT3.cjs} +1 -1
- package/dist/{mixGrid-DevBPAsP.js → mixGrid-DQf7U1_8.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-GsCP7ABf.js → mjpegCamera-C6pxWuEr.js} +2 -2
- package/dist/{mjpegCamera-7rG6onnX.cjs → mjpegCamera-CJgiIk0q.cjs} +1 -1
- package/dist/{monitorAlert-DyBmNIK5.cjs → monitorAlert-BPd1b_Cx.cjs} +1 -1
- package/dist/{monitorAlert-olF_ZdWq.js → monitorAlert-ZNF5siqY.js} +2 -2
- package/dist/{monitorData-dac_cUje.js → monitorData-DIxZYNVr.js} +2 -2
- package/dist/{monitorData-C1ZKCQCG.cjs → monitorData-slk6ogNe.cjs} +1 -1
- package/dist/{monitorSpeedChart-CelQ4DJQ.cjs → monitorSpeedChart-BRwbLD8B.cjs} +1 -1
- package/dist/{monitorSpeedChart-Bf9D1fKQ.js → monitorSpeedChart-DCO39Aka.js} +1 -1
- package/dist/{mxa-Bt7zKhqy.cjs → mxa-Bp4RH0w3.cjs} +1 -1
- package/dist/{mxa-CUJAT-Lb.js → mxa-DFq19ply.js} +2 -2
- package/dist/{myValue-Bm7nNapa.js → myValue-BvItzUMv.js} +2 -2
- package/dist/{myValue-BXcCb5p-.cjs → myValue-g8shJQA9.cjs} +1 -1
- package/dist/{myValueList-Dx8W8cJR.js → myValueList-A_UGyNxN.js} +2 -2
- package/dist/{myValueList-ClgUHkPF.cjs → myValueList-DnZBoJXp.cjs} +1 -1
- package/dist/{objectList-CasWv0FC.cjs → objectList-BcSCvy54.cjs} +1 -1
- package/dist/{objectList-ByeMsv8T.js → objectList-DgVJlA1o.js} +3 -3
- package/dist/{objectListAPP-DMO3acgZ.js → objectListAPP-CdewSo8l.js} +3 -3
- package/dist/{objectListAPP-Dx5caqQJ.cjs → objectListAPP-DxRImk8W.cjs} +1 -1
- package/dist/{percentBar-CdJqOi2x.js → percentBar-BvmYW_u6.js} +2 -2
- package/dist/{percentBar-wbGZHR1S.cjs → percentBar-Cq5ACj9c.cjs} +1 -1
- package/dist/{photo-BiK9C6_R.cjs → photo-B-kxNdb5.cjs} +1 -1
- package/dist/{photo-qhSg3zN6.js → photo-t11P9WKh.js} +2 -2
- package/dist/{pie-C5oKve2Q.cjs → pie-0s6FwVBt.cjs} +1 -1
- package/dist/{pie-D260otXM.js → pie-yTahcSl_.js} +2 -2
- package/dist/{placeholder-7rPzvsFC.cjs → placeholder-DBmyvwFn.cjs} +1 -1
- package/dist/{placeholder-BKDd--YC.js → placeholder-D_CaQ-hg.js} +1 -1
- package/dist/{pressBtn-CHnT9hZ7.js → pressBtn-CP4kJr-P.js} +3 -3
- package/dist/{pressBtn-IanV1FIr.cjs → pressBtn-JFezb7Yx.cjs} +1 -1
- package/dist/{processTable-BdRhFBQ5.js → processTable-BXswsnmt.js} +2 -2
- package/dist/{processTable-Vy1IyYJ6.cjs → processTable-DRdI9ExW.cjs} +1 -1
- package/dist/{progressBar-JGt97LIB.js → progressBar-D1Xh5APg.js} +2 -2
- package/dist/{progressBar-DF7KsLLl.cjs → progressBar-Sn6tAxTY.cjs} +1 -1
- package/dist/{progressCircle-DqSe38tf.js → progressCircle-BMpJVwIE.js} +2 -2
- package/dist/{progressCircle-CN73ocS0.cjs → progressCircle-DLk9v_Os.cjs} +1 -1
- package/dist/{qrcode-B5HPHLiJ.cjs → qrcode-BDtn3Ql7.cjs} +1 -1
- package/dist/{qrcode-BzgKD1bJ.js → qrcode-BqlqV7Jf.js} +2 -2
- package/dist/{raceBar-D2m4cDwN.cjs → raceBar-BpvWNCV7.cjs} +1 -1
- package/dist/{raceBar-ocjvVrDW.js → raceBar-zSL-J18j.js} +2 -2
- package/dist/{rad-CK47aw7W.js → rad-CZhY-L-z.js} +2 -2
- package/dist/{rad-BK7rira8.cjs → rad-DSfVfaMa.cjs} +1 -1
- package/dist/{radarMapViewer-BzO9flTu.js → radarMapViewer-B4tTLLyl.js} +2 -2
- package/dist/{radarMapViewer-DIStQXd6.cjs → radarMapViewer-GmzS18dJ.cjs} +1 -1
- package/dist/{rainfallFilterBar-Dv3ItR-7.cjs → rainfallFilterBar-DHaVjXt5.cjs} +1 -1
- package/dist/{rainfallFilterBar-D5pr31or.js → rainfallFilterBar-ijVmoglb.js} +2 -2
- package/dist/{rainfallTimeCurve-CSG1Q4c1.js → rainfallTimeCurve-B3_bl5L6.js} +3 -3
- package/dist/{rainfallTimeCurve-8kyuntWB.cjs → rainfallTimeCurve-Crz3Adzh.cjs} +1 -1
- package/dist/{rangeLin-DJhAhoc0.js → rangeLin-BOEsEaV1.js} +2 -2
- package/dist/{rangeLin-DlvyhF-D.cjs → rangeLin-DpEbvxsg.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-BfOYVSQW.cjs → realtimeEvolutionMap-BwQJkus6.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-BNHTopBp.js → realtimeEvolutionMap-C2u4a2JL.js} +2 -2
- package/dist/{regionBar-BLKEA5Z0.js → regionBar-BQr-kq-M.js} +2 -2
- package/dist/{regionBar-Djw33KyC.cjs → regionBar-P1fqv7Vb.cjs} +1 -1
- package/dist/{request-T8yWp5yj.js → request-Bn2gQLgM.js} +1 -1
- package/dist/{request-BluBK5cj.cjs → request-D9N74QdZ.cjs} +1 -1
- package/dist/{retainer1-DIiJodMB.cjs → retainer1-BCh8WSOq.cjs} +1 -1
- package/dist/{retainer1-CTiX53Tb.js → retainer1-Fnw0-Jvy.js} +3 -3
- package/dist/{retainer2-DwhDAkaF.cjs → retainer2-_3NOOefF.cjs} +1 -1
- package/dist/{retainer2-DZJwLW1P.js → retainer2-nPyFv6Hs.js} +3 -3
- package/dist/retainerRecordList-BaOTTQQN.cjs +1 -0
- package/dist/{retainerRecordList-CQRtb3HZ.js → retainerRecordList-C_UsUKsQ.js} +142 -142
- package/dist/{retainerRecordListAPP-Cv6ZsKox.js → retainerRecordListAPP-BgKyfAMh.js} +3 -3
- package/dist/{retainerRecordListAPP-DKTHCZ0W.cjs → retainerRecordListAPP-CE3l6WrB.cjs} +1 -1
- package/dist/{ringTopN-TvU4Dky-.cjs → ringTopN-DEv30Ms2.cjs} +1 -1
- package/dist/{ringTopN-8mnA4ob3.js → ringTopN-Dz0EoM-A.js} +2 -2
- package/dist/{riskRegionTable-De0J5B7R.cjs → riskRegionTable-BODT2UTF.cjs} +1 -1
- package/dist/{riskRegionTable-9C6mkoJJ.js → riskRegionTable-Dot8zD_6.js} +2 -2
- package/dist/{sankey-BpY9ML75.cjs → sankey-CYTyQB-L.cjs} +1 -1
- package/dist/{sankey-hio8XdQS.js → sankey-CbEUEE5B.js} +2 -2
- package/dist/{scd-BARna3lD.js → scd-Btsiastw.js} +2 -2
- package/dist/{scd-BdHO3SYR.cjs → scd-DwdWl6Wz.cjs} +1 -1
- package/dist/{sideMenu-CU5SdOaK.js → sideMenu-BxJRAAdM.js} +2 -2
- package/dist/{sideMenu-Cvm6Y1nv.cjs → sideMenu-dnpq3qTF.cjs} +1 -1
- package/dist/{slopeStability-SzTknABn.cjs → slopeStability-DX7WP5ZW.cjs} +1 -1
- package/dist/{slopeStability-C500RQxy.js → slopeStability-DrooNf1g.js} +2 -2
- package/dist/{speedCurve-ClsHxLjw.cjs → speedCurve-BT8wnfZI.cjs} +1 -1
- package/dist/{speedCurve-CEwrLjGA.js → speedCurve-CNUJ5ScK.js} +2 -2
- package/dist/{stackedBar-PpVQmu_f.cjs → stackedBar-X8Y4lVgT.cjs} +1 -1
- package/dist/{stackedBar-Brau0_ok.js → stackedBar-nIfO6Aa3.js} +2 -2
- package/dist/{stationList-C3mM3ApG.js → stationList-D7lGCblu.js} +2 -2
- package/dist/{stationList-Ywg4HS56.cjs → stationList-DVzvGGHI.cjs} +1 -1
- package/dist/{stressFilterBar-CmHLiXf2.cjs → stressFilterBar-D5xktTRI.cjs} +1 -1
- package/dist/{stressFilterBar-BytjEnSA.js → stressFilterBar-DqeqFHm7.js} +2 -2
- package/dist/{stressTimeCurve-DbYSiyp1.cjs → stressTimeCurve-Bhhb-eqB.cjs} +1 -1
- package/dist/{stressTimeCurve-C8kFVDYi.js → stressTimeCurve-DfjNQ0rU.js} +3 -3
- package/dist/{swiper-CkCqhmFM.js → swiper-DuNuvT_N.js} +2 -2
- package/dist/{swiper-CUWDOYi3.cjs → swiper-XCpwFkWS.cjs} +1 -1
- package/dist/{tablemanCreate-2k1eE7H8.cjs → tablemanCreate-Cp5DaYUd.cjs} +1 -1
- package/dist/{tablemanCreate-CMZgX2uJ.js → tablemanCreate-Cp9nOGg2.js} +3 -3
- package/dist/{tablemanDetail-B_amfNkX.cjs → tablemanDetail-3ZMWkdpz.cjs} +1 -1
- package/dist/{tablemanDetail-co_Q7xHR.js → tablemanDetail-DvZdgdHD.js} +4 -4
- package/dist/{tablemanList-NkW8OpAQ.js → tablemanList-DZdb1FUR.js} +4 -4
- package/dist/{tablemanList-C5CG1Z_t.cjs → tablemanList-OLxgUmAi.cjs} +1 -1
- package/dist/{tablemanTableList-CbK0Qu2E.cjs → tablemanTableList-BN6QjYEV.cjs} +1 -1
- package/dist/{tablemanTableList-QVedppzS.js → tablemanTableList-CqsnRIHS.js} +3 -3
- package/dist/{tablemanUpdate-Cr5w5ELd.js → tablemanUpdate-CHs5OgAG.js} +3 -3
- package/dist/{tablemanUpdate-eimnWXQn.cjs → tablemanUpdate-E3d7A3WM.cjs} +1 -1
- package/dist/{terminalConfigList-DRt8XV7h.js → terminalConfigList-BEBNi1Nl.js} +146 -146
- package/dist/terminalConfigList-BlgcWy40.cjs +1 -0
- package/dist/terminalList-Bl5BPmF9.cjs +1 -0
- package/dist/{terminalList-CHl3hZTh.js → terminalList-CJpH2Z-r.js} +23 -23
- package/dist/{terminalListAPP-BSwCwgJu.js → terminalListAPP-BpONJQOA.js} +3 -3
- package/dist/{terminalListAPP-BQG0F491.cjs → terminalListAPP-Dgvz8I3j.cjs} +1 -1
- package/dist/{textbox-DSJd60o5.js → textbox-CJnSDwg7.js} +2 -2
- package/dist/{textbox-DNXnOEfz.cjs → textbox-DR0bQEX7.cjs} +1 -1
- package/dist/{timeQueryBar-DS_5n1oF.cjs → timeQueryBar-Cmyan_30.cjs} +1 -1
- package/dist/{timeQueryBar-BGEPXTOP.js → timeQueryBar-FJDQv-gp.js} +1 -1
- package/dist/{timeSeries-BQpqhi63.cjs → timeSeries-_RLSUPmg.cjs} +1 -1
- package/dist/{timeSeries-zUlfvHmW.js → timeSeries-t4uZvXRF.js} +3 -3
- package/dist/{timeSeriesCurve-ovc_xdoj.cjs → timeSeriesCurve-BUuLFQ8A.cjs} +1 -1
- package/dist/{timeSeriesCurve-Dbr_3sJm.js → timeSeriesCurve-BxWiI6w-.js} +3 -3
- package/dist/{toggleBtn-CjdUge2U.cjs → toggleBtn-BcpJcxpU.cjs} +1 -1
- package/dist/{toggleBtn-I83YB-PO.js → toggleBtn-Cx44qVci.js} +2 -2
- package/dist/{trajectoryConfigPanel-BIA2y6qD.cjs → trajectoryConfigPanel-BTUv5OVS.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-CvmIIt8k.js → trajectoryConfigPanel-dyo30nx9.js} +1 -1
- package/dist/{trajectoryScatter-C3x-y428.js → trajectoryScatter-BghFGqxH.js} +2 -2
- package/dist/{trajectoryScatter-D1z1IMa0.cjs → trajectoryScatter-CK4_Z1iU.cjs} +1 -1
- package/dist/{universalConfigPanel-D8LPOrV9.cjs → universalConfigPanel-Cvlpgn-j.cjs} +1 -1
- package/dist/{universalConfigPanel-BkysUy8B.js → universalConfigPanel-yJFrQDBa.js} +1 -1
- package/dist/{universalTable-C76uUfeF.cjs → universalTable-CRJ7Rx0P.cjs} +1 -1
- package/dist/{universalTable-6-S9swsP.js → universalTable-CvBC-L9Z.js} +2 -2
- package/dist/{useTablemanApi-104WbAHd.js → useTablemanApi-BAt370b-.js} +1 -1
- package/dist/{useTablemanApi-BuMq5Q_k.cjs → useTablemanApi-fqoMpRxe.cjs} +1 -1
- package/dist/{useTablemanFormPanel-CWKnnrOS.js → useTablemanFormPanel-BKbM39_H.js} +2 -2
- package/dist/{useTablemanFormPanel-D3ATdUhB.cjs → useTablemanFormPanel-Cxo0WsI1.cjs} +1 -1
- package/dist/{useTablemanListActions-DozXrkvP.js → useTablemanListActions-CYauYy6z.js} +3 -3
- package/dist/{useTablemanListActions-5QcnKKj4.cjs → useTablemanListActions-DRXW-WTa.cjs} +1 -1
- package/dist/{video-BsYeKGOo.cjs → video-BN19nKK_.cjs} +1 -1
- package/dist/{video-C_bAd-rR.js → video-C1N8Ikkh.js} +2 -2
- package/dist/{videoMonitor-Bn40fiFL.cjs → videoMonitor-PKypdwRl.cjs} +1 -1
- package/dist/{videoMonitor-CbXYP6FT.js → videoMonitor-fkEuZ25x.js} +2 -2
- package/dist/{vlu-BxkDbM5S.js → vlu-B8tqM9md.js} +2 -2
- package/dist/{vlu-Erw-xe3f.cjs → vlu-DrABl6SW.cjs} +1 -1
- package/dist/{warningOverview-CbtRe7Tt.cjs → warningOverview-DaTHPveq.cjs} +1 -1
- package/dist/{warningOverview-C2eLQeLA.js → warningOverview-_rp_SbLs.js} +3 -3
- package/dist/{weather-D9tQevqb.cjs → weather-B_XCWwDa.cjs} +1 -1
- package/dist/{weather-y0g4_vta.js → weather-qvsptrt0.js} +2 -2
- package/dist/{windLin-DQgRe_l6.js → windLin-BDtJUYBu.js} +2 -2
- package/dist/{windLin-2PZJ-EHv.cjs → windLin-P84T5W3o.cjs} +1 -1
- package/package.json +1 -1
- package/dist/controlList-C2PPceHN.cjs +0 -1
- package/dist/controlRecordList-DFhrQByh.cjs +0 -1
- package/dist/controlRecordList-DW16uBgK.js +0 -296
- package/dist/mappingList-D4b8jI07.cjs +0 -1
- package/dist/retainerRecordList-zpiedsCc.cjs +0 -1
- package/dist/terminalConfigList-D2_X_G-D.cjs +0 -1
- package/dist/terminalList-BkWNnmvR.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-9njJjeix.cjs"),B=require("./index-Bo49zvKb.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-B38Blgw3.js";
|
|
39
|
+
import { L as P, _ as Oe } from "./index-BbXEpgom.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-BbXEpgom.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-BwtkVH_e.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-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,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-Bo49zvKb.cjs");require("element-plus");const D=require("./EChartComponentBase-BwbycwwW.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-BbXEpgom.js";
|
|
31
31
|
import "element-plus";
|
|
32
|
-
import { E as Q } from "./EChartComponentBase-
|
|
32
|
+
import { E as Q } from "./EChartComponentBase-DJScukmS.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";
|
|
@@ -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-B38Blgw3.js";
|
|
15
|
+
import { _ as pe } from "./index-BbXEpgom.js";
|
|
16
16
|
import { A as ge, D as fe } from "./ele-dateTime-icon-BEGFlwID.js";
|
|
17
17
|
const ye = {
|
|
18
18
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var X=Object.defineProperty,Z=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var _=(r,n,c)=>n in r?X(r,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[n]=c,x=(r,n)=>{for(var c in n||(n={}))te.call(n,c)&&_(r,c,n[c]);if(V)for(var c of V(n))oe.call(n,c)&&_(r,c,n[c]);return r},M=(r,n)=>Z(r,ee(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),le=require("./BaseComponent-
|
|
1
|
+
"use strict";var X=Object.defineProperty,Z=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var _=(r,n,c)=>n in r?X(r,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[n]=c,x=(r,n)=>{for(var c in n||(n={}))te.call(n,c)&&_(r,c,n[c]);if(V)for(var c of V(n))oe.call(n,c)&&_(r,c,n[c]);return r},M=(r,n)=>Z(r,ee(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),le=require("./BaseComponent-9njJjeix.cjs"),ae=require("./index-Bo49zvKb.cjs"),w=require("./ele-dateTime-icon-BgZ2_KWW.cjs"),ne={key:0,class:"digital-clock"},ce={key:1,class:"analog-clock-wrapper"},re=["width","height"],ie=["r","stroke","stroke-width"],ue=["r","fill"],se=["x1","y1","x2","y2","stroke"],de={key:0},me=["x","y","fill","font-size"],he=["x2","y2","stroke","stroke-width"],pe=["x2","y2","stroke","stroke-width"],ve=["x2","y2","stroke","stroke-width"],ge=["r","fill"],ke={DEFAULT_ICON:w.DEFAULT_ICON,ACTIVE_ICON:w.ACTIVE_ICON,NAME_CN:"钟表",NAME_EN:"Clock",ORDER:5,PLATFORM:["pc","screen","mobile"]},ye={clockType:{value:"analog",type:"select",label:"时钟类型",options:[{label:"模拟时钟",value:"analog"},{label:"数字时钟",value:"digital"}]},timeFormat:{value:"24",type:"select",label:"时间格式",options:[{label:"24小时制",value:"24"},{label:"12小时制",value:"12"}]},showDate:{value:!0,type:"checkbox",label:"显示日期"},showSecondHand:{value:!0,type:"checkbox",label:"显示秒针"},showNumbers:{value:!0,type:"checkbox",label:"显示数字"},digitalFontSize:32,digitalColor:"#1f2937",digitalDateSize:14,digitalDateColor:"#6b7280",clockSize:200,backgroundColor:"#ffffff",borderColor:"#374151",borderWidth:2,tickColor:"#374151",numberColor:"#1f2937",numberSize:14,hourHandColor:"#374151",minuteHandColor:"#374151",secondHandColor:"#ef4444",centerDotColor:"#374151"},fe=[],Ce=[],Se=[],be={},Ve={DEFAULT:ke,OPTIONS:ye,DATA:fe,PARAMS:Ce,SOURCE:Se,COMMON:be},_e=e.defineComponent(M(x({},Ve),{__name:"clock",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const n=r;class c extends le.BaseComponent{constructor(){super(...arguments),this.timer=null}extractStyles(){return{clockType:this.getOptionValue("clockType","analog"),timeFormat:this.getOptionValue("timeFormat","24"),showDate:this.getOptionValue("showDate",!0),showSecondHand:this.getOptionValue("showSecondHand",!0),showNumbers:this.getOptionValue("showNumbers",!0),clockSize:this.getOptionValue("clockSize",200),backgroundColor:this.getOptionValue("backgroundColor","#ffffff"),borderColor:this.getOptionValue("borderColor","#374151"),borderWidth:this.getOptionValue("borderWidth",2),tickColor:this.getOptionValue("tickColor","#374151"),numberColor:this.getOptionValue("numberColor","#1f2937"),numberSize:this.getOptionValue("numberSize",14),hourHandColor:this.getOptionValue("hourHandColor","#374151"),minuteHandColor:this.getOptionValue("minuteHandColor","#374151"),secondHandColor:this.getOptionValue("secondHandColor","#ef4444"),centerDotColor:this.getOptionValue("centerDotColor","#374151"),digitalFontSize:this.getOptionValue("digitalFontSize",32),digitalColor:this.getOptionValue("digitalColor","#1f2937"),digitalDateSize:this.getOptionValue("digitalDateSize",14),digitalDateColor:this.getOptionValue("digitalDateColor","#6b7280")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.timer&&clearInterval(this.timer),p(),this.timer=setInterval(p,1e3)}cleanup(){this.timer&&clearInterval(this.timer)}}const v=new c(n,"clock");v.setupLifecycle();const o=v.getStyle(),g=e.ref(""),h=e.ref(""),d=e.ref(0),s=e.ref(0),m=e.ref(0),N=e.computed(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})),D=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.clockType)||"analog"}),O=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.timeFormat)||"24"}),k=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showDate)!==!1}),E=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showSecondHand)!==!1}),H=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showNumbers)!==!1}),u=e.computed(()=>{var a;const t=(a=o.value)==null?void 0:a.clockSize,l=Number(t);return typeof l=="number"&&!Number.isNaN(l)&&l>0?l:200}),i=e.computed(()=>{const t=u.value;return typeof t=="number"&&!Number.isNaN(t)?t*.45:90}),z=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.backgroundColor)||"#ffffff"}),I=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.borderColor)||"#374151"}),y=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.borderWidth)||2}),B=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.tickColor)||"#374151"}),T=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.numberColor)||"#1f2937"}),F=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.numberSize)||14}),P=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.hourHandColor)||"#374151"}),$=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.minuteHandColor)||"#374151"}),A=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.secondHandColor)||"#ef4444"}),L=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.centerDotColor)||"#374151"}),f=e.computed(()=>i.value*.5),C=e.computed(()=>i.value*.7),S=e.computed(()=>i.value*.8),W=e.computed(()=>Math.max(3,u.value*.015)),R=e.computed(()=>Math.max(2,u.value*.01)),q=e.computed(()=>Math.max(1,u.value*.005)),U=e.computed(()=>Math.max(3,u.value*.015)),j=e.computed(()=>({width:`${u.value}px`,height:`${u.value}px`,maxWidth:"100%",maxHeight:"100%"})),Y=e.computed(()=>{var t,l;return{fontSize:`${((t=o.value)==null?void 0:t.digitalFontSize)||32}px`,color:((l=o.value)==null?void 0:l.digitalColor)||"#1f2937",fontWeight:"bold",fontFamily:"monospace"}}),b=e.computed(()=>{var t,l;return{fontSize:`${((t=o.value)==null?void 0:t.digitalDateSize)||14}px`,color:((l=o.value)==null?void 0:l.digitalDateColor)||"#6b7280",fontFamily:"monospace",marginTop:"8px"}}),p=()=>{const t=new Date;d.value=t.getHours(),s.value=t.getMinutes(),m.value=t.getSeconds();let l=d.value,a="";O.value==="12"&&(a=l>=12?" PM":" AM",l=l%12,l===0&&(l=12)),g.value=`${l.toString().padStart(2,"0")}:${s.value.toString().padStart(2,"0")}:${m.value.toString().padStart(2,"0")}${a}`;const G=t.getFullYear(),J=(t.getMonth()+1).toString().padStart(2,"0"),K=t.getDate().toString().padStart(2,"0"),Q=["周日","周一","周二","周三","周四","周五","周六"];h.value=`${G}-${J}-${K} ${Q[t.getDay()]}`};return e.onMounted(()=>p()),(t,l)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(N.value),class:"mix-component"},[D.value==="digital"?(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("div",{class:"time-display",style:e.normalizeStyle(Y.value)},e.toDisplayString(g.value),5),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-display",style:e.normalizeStyle(b.value)},e.toDisplayString(h.value),5)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",{class:"analog-clock",style:e.normalizeStyle(j.value)},[(e.openBlock(),e.createElementBlock("svg",{width:u.value,height:u.value,viewBox:"0 0 200 200",class:"clock-svg"},[e.createElementVNode("circle",{cx:"100",cy:"100",r:i.value,stroke:I.value,"stroke-width":y.value,fill:"none"},null,8,ie),e.createElementVNode("circle",{cx:"100",cy:"100",r:i.value-y.value/2,fill:z.value},null,8,ue),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,a=>e.createElementVNode("g",{key:`hour-${a}`},[e.createElementVNode("line",{x1:100+(i.value-15)*Math.cos((a*30-90)*Math.PI/180),y1:100+(i.value-15)*Math.sin((a*30-90)*Math.PI/180),x2:100+(i.value-5)*Math.cos((a*30-90)*Math.PI/180),y2:100+(i.value-5)*Math.sin((a*30-90)*Math.PI/180),stroke:B.value,"stroke-width":"2"},null,8,se)])),64)),H.value?(e.openBlock(),e.createElementBlock("g",de,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,a=>e.createElementVNode("text",{key:`number-${a}`,x:100+(i.value-25)*Math.cos((a*30-90)*Math.PI/180),y:100+(i.value-25)*Math.sin((a*30-90)*Math.PI/180),"text-anchor":"middle","dominant-baseline":"central",fill:T.value,"font-size":F.value,"font-weight":"bold"},e.toDisplayString(a),9,me)),64))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:"100",y1:"100",x2:100+f.value*Math.cos((d.value*30+s.value*.5-90)*Math.PI/180),y2:100+f.value*Math.sin((d.value*30+s.value*.5-90)*Math.PI/180),stroke:P.value,"stroke-width":W.value,"stroke-linecap":"round"},null,8,he),e.createElementVNode("line",{x1:"100",y1:"100",x2:100+C.value*Math.cos((s.value*6-90)*Math.PI/180),y2:100+C.value*Math.sin((s.value*6-90)*Math.PI/180),stroke:$.value,"stroke-width":R.value,"stroke-linecap":"round"},null,8,pe),E.value?(e.openBlock(),e.createElementBlock("line",{key:1,x1:"100",y1:"100",x2:100+S.value*Math.cos((m.value*6-90)*Math.PI/180),y2:100+S.value*Math.sin((m.value*6-90)*Math.PI/180),stroke:A.value,"stroke-width":q.value,"stroke-linecap":"round"},null,8,ve)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:"100",cy:"100",r:U.value,fill:L.value},null,8,ge)],8,re))],4),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-display",style:e.normalizeStyle(b.value)},e.toDisplayString(h.value),5)):e.createCommentVNode("",!0)])),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),xe=ae._export_sfc(_e,[["__scopeId","data-v-d8289d01"]]);exports.default=xe;
|
|
@@ -34,8 +34,8 @@ import "element-plus/es/components/radio/style/css";
|
|
|
34
34
|
import "element-plus/es/components/input-number/style/css";
|
|
35
35
|
import "element-plus/es/components/input/style/css";
|
|
36
36
|
import { defineComponent as re, computed as P, ref as ie, openBlock as y, createElementBlock as C, normalizeStyle as S, unref as d, createElementVNode as g, toDisplayString as _, Fragment as R, renderList as F, createBlock as O, withCtx as 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-B38Blgw3.js";
|
|
38
|
+
import { a as A, f as M, _ as se } from "./index-BbXEpgom.js";
|
|
39
39
|
import { g as ue } from "./titleStyle-BT5GlpAb.js";
|
|
40
40
|
import { ElMessage as x } from "element-plus";
|
|
41
41
|
import { A as de, D as pe } from "./ele-clt-icon-DuU4Q401.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty,U=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var B=(s,l,n)=>l in s?A(s,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[l]=n,x=(s,l)=>{for(var n in l||(l={}))M.call(l,n)&&B(s,n,l[n]);if(k)for(var n of k(l))P.call(l,n)&&B(s,n,l[n]);return s},O=(s,l)=>U(s,$(l));var V=(s,l,n)=>new Promise((v,u)=>{var S=m=>{try{p(n.next(m))}catch(_){u(_)}},b=m=>{try{p(n.throw(m))}catch(_){u(_)}},p=m=>m.done?v(m.value):Promise.resolve(m.value).then(S,b);p((n=n.apply(s,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),F=require("./BaseComponent-
|
|
1
|
+
"use strict";var A=Object.defineProperty,U=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var B=(s,l,n)=>l in s?A(s,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[l]=n,x=(s,l)=>{for(var n in l||(l={}))M.call(l,n)&&B(s,n,l[n]);if(k)for(var n of k(l))P.call(l,n)&&B(s,n,l[n]);return s},O=(s,l)=>U(s,$(l));var V=(s,l,n)=>new Promise((v,u)=>{var S=m=>{try{p(n.next(m))}catch(_){u(_)}},b=m=>{try{p(n.throw(m))}catch(_){u(_)}},p=m=>m.done?v(m.value):Promise.resolve(m.value).then(S,b);p((n=n.apply(s,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),F=require("./BaseComponent-9njJjeix.cjs"),g=require("./index-Bo49zvKb.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;
|
|
@@ -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-9njJjeix.cjs"),V=require("./index-Bo49zvKb.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-B38Blgw3.js";
|
|
38
|
+
import { a as H, w as it, f as nt, _ as st } from "./index-BbXEpgom.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-BbXEpgom.js";
|
|
31
31
|
import { ElMessage as R } from "element-plus";
|
|
32
|
-
import { E as W } from "./EChartComponentBase-
|
|
32
|
+
import { E as W } from "./EChartComponentBase-DJScukmS.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";
|