mixdashboards 1.0.71 → 1.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseComponent-D5tlYehc.js → BaseComponent-CBagahPU.js} +138 -109
- package/dist/BaseComponent-Chnv4fBT.cjs +1 -0
- package/dist/{EChartComponentBase-CAabYXSj.js → EChartComponentBase-cFfawl6h.js} +2 -2
- package/dist/{EChartComponentBase-D4wMej9X.cjs → EChartComponentBase-dLE5F7Tt.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-Th4ZNdCb.js → EmergencyPlanPanel--jTGG89o.js} +1 -1
- package/dist/{EmergencyPlanPanel-D96XjhRq.cjs → EmergencyPlanPanel-BJb-Bbxh.cjs} +1 -1
- package/dist/{HistoryPlanDialog-rn2Bp0Gx.cjs → HistoryPlanDialog-C-QPdV4V.cjs} +1 -1
- package/dist/{HistoryPlanDialog-D2mQLhkO.js → HistoryPlanDialog-DerClU2U.js} +1 -1
- package/dist/{MonitoringMap-BZ98NYTJ.cjs → MonitoringMap-B6RMbiIS.cjs} +1 -1
- package/dist/{MonitoringMap-Coozb35G.js → MonitoringMap-CNaGsq83.js} +2 -2
- package/dist/UniverSheet-CM-vvc23.cjs +1 -0
- package/dist/{UniverSheet-CJCunVAM.js → UniverSheet-KI09RqKm.js} +16 -15
- package/dist/{accelerationChart-DacjcSHD.js → accelerationChart-D7KNk5fI.js} +61 -59
- package/dist/accelerationChart-HBCb2bRW.cjs +6 -0
- package/dist/{actionItem-d-4p5HZK.js → actionItem-BmNYzAXu.js} +48 -41
- package/dist/actionItem-Bx4mW0jP.cjs +1 -0
- package/dist/alarmLevelChart-Cvnw4z1w.cjs +2 -0
- package/dist/{alarmLevelChart-DddN1NVy.js → alarmLevelChart-DdSw2s7W.js} +91 -46
- package/dist/{alertTable-Q-Waa5jf.js → alertTable-CC3c8DFb.js} +40 -39
- package/dist/alertTable-hH6HA9pY.cjs +1 -0
- package/dist/aliasObjectSelectorDemo-C7E_fnCf.cjs +1 -0
- package/dist/{aliasObjectSelectorDemo-BZygQw9k.js → aliasObjectSelectorDemo-yDiavTpG.js} +11 -10
- package/dist/{annualRainfallChart-CthANCvn.js → annualRainfallChart-B9ar8vo8.js} +32 -30
- package/dist/annualRainfallChart-C6JLSPIf.cjs +1 -0
- package/dist/{aqi-C_HnKsjh.js → aqi-BNc5QCM3.js} +21 -19
- package/dist/{aqi-BFW_8xYd.cjs → aqi-DEiCVIVa.cjs} +3 -3
- package/dist/aqiIndass-Bowic_Pc.cjs +3 -0
- package/dist/{aqiIndass-NVRa3lmj.js → aqiIndass-CAGV8_Uf.js} +41 -40
- package/dist/{areaDeformCurve-mQiOHdtN.js → areaDeformCurve-CSpR060t.js} +51 -49
- package/dist/areaDeformCurve-CVy23kV2.cjs +1 -0
- package/dist/arrayCard-NqoQKcE9.cjs +1 -0
- package/dist/{arrayCard-DZitcjMs.js → arrayCard-PPDb7U6X.js} +29 -28
- package/dist/{audio-CDAMVEgC.js → audio-BJPFIQIr.js} +42 -41
- package/dist/audio-Bw-GaYe1.cjs +1 -0
- package/dist/{bar--JrlRud9.js → bar-C38h_mUA.js} +72 -70
- package/dist/{bar-C7uQADV1.cjs → bar-Cru6WosS.cjs} +2 -2
- package/dist/bmp-BXaEkkpa.cjs +1 -0
- package/dist/{bmp-DrVcnYxy.js → bmp-BnSOaFEr.js} +15 -14
- package/dist/box-CKuGsh2k.cjs +1 -0
- package/dist/{box-szcLhted.js → box-DIHVOqrV.js} +58 -57
- package/dist/chartConfigPanel-BVdVXbs6.cjs +1 -0
- package/dist/{chartConfigPanel-C32o1gyJ.js → chartConfigPanel-D1rO6SGh.js} +86 -79
- package/dist/{circleBar-CeL2rqMJ.cjs → circleBar-BzXqA-Cz.cjs} +3 -3
- package/dist/{circleBar-BmTjsLHo.js → circleBar-CBLcp4Xi.js} +27 -25
- package/dist/{clock-CuQpD76K.js → clock-4AMfFDGC.js} +35 -34
- package/dist/clock-DmWyBpo-.cjs +1 -0
- package/dist/clt-CmPPtp9c.cjs +1 -0
- package/dist/{clt-XCswxZ6i.js → clt-D5i_8-pq.js} +60 -59
- package/dist/cmc-8jH3DGv9.cjs +1 -0
- package/dist/{cmc-CXmAv6fz.js → cmc-Cjb5w3om.js} +23 -22
- package/dist/{cmp-Duz_v-LC.js → cmp-COJzlQPa.js} +19 -18
- package/dist/{cmp-DmpxjexT.cjs → cmp-CpmGtNal.cjs} +2 -2
- package/dist/{composite-CWgy-w61.js → composite-CsFgfxih.js} +37 -36
- package/dist/{composite-DdHASMFQ.cjs → composite-DLmzZNIj.cjs} +3 -3
- package/dist/{conclusionCard-BtB0rARK.js → conclusionCard-BQUlLFde.js} +15 -14
- package/dist/conclusionCard-C-TT6znN.cjs +1 -0
- package/dist/{controlList-C0AQ8Yb8.js → controlList-5D5UIDQL.js} +40 -38
- package/dist/controlList-CIwzKylK.cjs +1 -0
- package/dist/{controlRecordList-CSPKG1HU.js → controlRecordList-Cp5mmEQ1.js} +55 -53
- package/dist/controlRecordList-uEQ3ohmB.cjs +1 -0
- package/dist/controlRecordListAPP-B5d4x_xH.cjs +1 -0
- package/dist/controlRecordListAPP-p_skbQVD.js +502 -0
- package/dist/{crd-DQruf9o3.js → crd-8gRWMf2Y.js} +14 -13
- package/dist/crd-Dfl2XKAx.cjs +1 -0
- package/dist/{ctrBtn-jEWTt_f2.js → ctrBtn-BzmFxucy.js} +106 -107
- package/dist/ctrBtn-OOgL9esv.cjs +1 -0
- package/dist/{ctrSet-C4wCODMY.js → ctrSet-Btg2T9w6.js} +24 -23
- package/dist/ctrSet-CifyJt05.cjs +1 -0
- package/dist/ctrSwitch-6nMHbIE7.js +206 -0
- package/dist/ctrSwitch-C8mwxLPe.cjs +1 -0
- package/dist/{dataManagement-BQVZS7Hi.js → dataManagement-BZiSmktM.js} +52 -45
- package/dist/dataManagement-sQpuBaDz.cjs +1 -0
- package/dist/{dataReport-vP1LBJjE.js → dataReport-CbJzXeCE.js} +25 -24
- package/dist/{dataReport-DRopth3A.cjs → dataReport-D9Q9c43B.cjs} +2 -2
- package/dist/{dataTable-C2AgSR36.cjs → dataTable-BJ4SVFbu.cjs} +1 -1
- package/dist/{dataTable-B1FQ3XIq.js → dataTable-BuBB0b-A.js} +1 -1
- package/dist/datetime-B66VgJL1.cjs +1 -0
- package/dist/{datetime-DU3rzi1v.js → datetime-DO03QrXz.js} +25 -24
- package/dist/deepClusterSlipSurface-BqT55vkY.cjs +1 -0
- package/dist/{deepClusterSlipSurface-BHwB0eu9.js → deepClusterSlipSurface-DpSAXgFf.js} +45 -43
- package/dist/{deepDataMatrix-C3uKZmon.js → deepDataMatrix-CPrIOv5r.js} +46 -45
- package/dist/deepDataMatrix-DZZaTMbD.cjs +1 -0
- package/dist/{deepDisplacement3D-BBYgB-rK.cjs → deepDisplacement3D-Cd9nwwPt.cjs} +3 -3
- package/dist/{deepDisplacement3D-CDNPul6D.js → deepDisplacement3D-JlMej7-5.js} +9 -7
- package/dist/{deepDisplacementChart-C_pwwgIC.js → deepDisplacementChart-BiDt60xI.js} +89 -88
- package/dist/deepDisplacementChart-CALM3gna.cjs +5 -0
- package/dist/deepDisplacementChart-CEaj2bUV.cjs +6 -0
- package/dist/{deepDisplacementChart-C6GQHO-J.js → deepDisplacementChart-CjlGpeHj.js} +54 -52
- package/dist/{deepDisplacementView-C837RNer.js → deepDisplacementView-BpUw-b-i.js} +37 -36
- package/dist/deepDisplacementView-CoSNzN1q.cjs +8 -0
- package/dist/deepNodeTemperatureChart-DPN0rYir.cjs +1 -0
- package/dist/{deepNodeTemperatureChart-BcH3ZNi4.js → deepNodeTemperatureChart-DfZq7kLx.js} +50 -48
- package/dist/{deepTangentAngleChart-DSpCyIdq.js → deepTangentAngleChart-Ca01hah9.js} +92 -90
- package/dist/deepTangentAngleChart-Dg9PJspK.cjs +1 -0
- package/dist/deepTemperatureField-BqDB97SW.cjs +1 -0
- package/dist/{deepTemperatureField-B2qIHL1-.js → deepTemperatureField-CYBTjhEp.js} +95 -93
- package/dist/deepTrendChart-B5BAHTeY.cjs +1 -0
- package/dist/{deepTrendChart-DFGSV17a.js → deepTrendChart-DBjxV7_A.js} +56 -54
- package/dist/{deviceOnlineStatus-CiIFdo9I.js → deviceOnlineStatus-1eoHCl_-.js} +58 -50
- package/dist/deviceOnlineStatus-DHzaAzCp.cjs +2 -0
- package/dist/deviceStatus-4BMy4qBD.cjs +1 -0
- package/dist/{deviceStatus-Dd1pqVnO.js → deviceStatus-90rQa1uj.js} +61 -60
- package/dist/{displacementDataTable-CGIHGxye.js → displacementDataTable-BArwj-xp.js} +52 -51
- package/dist/displacementDataTable-BLWjiaRQ.cjs +1 -0
- package/dist/{displacementTrajectoryChart-RL97CTML.js → displacementTrajectoryChart-CxOPJVlD.js} +34 -32
- package/dist/displacementTrajectoryChart-DfJMOCFJ.cjs +22 -0
- package/dist/{displacementTrendChart-Bqnv7hiP.js → displacementTrendChart-4E6cDsX8.js} +49 -48
- package/dist/displacementTrendChart-Cuxa5iTp.cjs +5 -0
- package/dist/{dxf-BQoArgPS.cjs → dxf-BgklkksV.cjs} +1 -1
- package/dist/{dxf-DBu1iA-r.js → dxf-BogwbJID.js} +5 -4
- package/dist/{dzc-DMVPjosV.cjs → dzc-CApfzriC.cjs} +2 -2
- package/dist/{dzc-7tLxe18d.js → dzc-D7tTBLaA.js} +24 -22
- package/dist/emergencyPlan-BuFz4XFc.cjs +1 -0
- package/dist/{emergencyPlan-C9Edkw51.js → emergencyPlan-CjbuX-N5.js} +19 -18
- package/dist/evn-BcSenXF3.cjs +1 -0
- package/dist/{evn-CeLoYCUr.js → evn-DTPm72ZM.js} +23 -22
- package/dist/evolutionChart-CrwR8i40.cjs +1 -0
- package/dist/{evolutionChart-DAlncdLU.js → evolutionChart-D1dVKWOt.js} +25 -23
- package/dist/{fileViewer-BFMFEN2f.js → fileViewer-BNHwlZRa.js} +57 -56
- package/dist/fileViewer-BUuST3Rp.cjs +1 -0
- package/dist/filterBar-BJzjPFFg.cjs +1 -0
- package/dist/{filterBar-qJJKdxYE.js → filterBar-CRJinh5K.js} +44 -43
- package/dist/fireCombustionCurve-BGdJ1ybj.cjs +1 -0
- package/dist/{fireCombustionCurve-DyRikhHw.js → fireCombustionCurve-BZ6qJ1kq.js} +69 -67
- package/dist/fireFilterBar-DZejT0oL.cjs +1 -0
- package/dist/{fireFilterBar-DkjBGPXa.js → fireFilterBar-KvvbsCsZ.js} +25 -24
- package/dist/{fireHistoryTable-ldXil5up.js → fireHistoryTable-80ygqnOG.js} +73 -65
- package/dist/fireHistoryTable-CMSGKb3w.cjs +3 -0
- package/dist/gag-1bvAZ5m6.cjs +1 -0
- package/dist/{gag-KZfFHn72.js → gag-D2obj7AF.js} +30 -28
- package/dist/{gasStationList-Btoo_olJ.js → gasStationList-DM-laJsi.js} +527 -526
- package/dist/gasStationList-DjJtXnqL.cjs +1 -0
- package/dist/{geo3dViewer-Cif9uFqd.cjs → geo3dViewer-CL_89mQf.cjs} +1 -1
- package/dist/{geo3dViewer-iZhkCiTP.js → geo3dViewer-FhmMIvMJ.js} +12 -5
- package/dist/{glbModel-MJZgDSJf.js → glbModel-B0nWYYJQ.js} +19 -18
- package/dist/{glbModel-2xydaxDT.cjs → glbModel-DakMJal6.cjs} +3 -3
- package/dist/{globalObjectSelector-CHtYGpi9.js → globalObjectSelector-Gv4srHhp.js} +79 -78
- package/dist/globalObjectSelector-jNzZxdnL.cjs +1 -0
- package/dist/{gnssFilterBar-CPis6bUI.js → gnssFilterBar-C4rpyNw3.js} +70 -63
- package/dist/gnssFilterBar-kEIW7Tjs.cjs +1 -0
- package/dist/{gnssHistoryTable-kHZY48EZ.js → gnssHistoryTable-CyMwQJ7_.js} +58 -50
- package/dist/gnssHistoryTable-DRKlP8-b.cjs +3 -0
- package/dist/{gnssMapView-BNIkieqL.cjs → gnssMapView-DpExCi0x.cjs} +4 -4
- package/dist/{gnssMapView-DXP8yz0v.js → gnssMapView-EVufCGrW.js} +174 -167
- package/dist/{gnssSectionProfile-DEUDEvJ1.js → gnssSectionProfile-CaJwF9wp.js} +41 -34
- package/dist/gnssSectionProfile-DdcOMdNC.cjs +1 -0
- package/dist/{gnssTimeSeriesChart-C_xqd0su.js → gnssTimeSeriesChart-iffDvMNx.js} +57 -49
- package/dist/gnssTimeSeriesChart-y11Y8k2-.cjs +1 -0
- package/dist/{gnssXYTrajectory-GqgFw_qK.js → gnssXYTrajectory-C_1fuLWn.js} +53 -45
- package/dist/gnssXYTrajectory-DGBGGDwi.cjs +5 -0
- package/dist/grd-C4hCrpvH.cjs +1 -0
- package/dist/{grd-QCuVN1jE.js → grd-FfuMQJb7.js} +43 -42
- package/dist/{grdIndass-BEcfZTYw.js → grdIndass-BTbZmPLZ.js} +30 -29
- package/dist/grdIndass-CyuRKD5H.cjs +1 -0
- package/dist/{grg-CMVrF5tB.js → grg-CcnI5kRY.js} +27 -26
- package/dist/grg-Cuxa17d6.cjs +1 -0
- package/dist/gridview-CKjBuTRq.cjs +1 -0
- package/dist/{gridview-Cd3Tqzph.js → gridview-ffVc5Wvg.js} +32 -31
- package/dist/groundwaterFilterBar-D3l7GLVY.cjs +1 -0
- package/dist/{groundwaterFilterBar-D7lrbzDC.js → groundwaterFilterBar-DaPR-kbl.js} +13 -12
- package/dist/groundwaterProfileChart-BxJKIPXF.cjs +11 -0
- package/dist/{groundwaterProfileChart-Bjtqz-Zv.js → groundwaterProfileChart-DoSx7WWp.js} +42 -40
- package/dist/groundwaterTimeCurve-Bp5MxM9k.cjs +1 -0
- package/dist/{groundwaterTimeCurve-Bu6vgAaC.js → groundwaterTimeCurve-D-SdVYeq.js} +57 -55
- package/dist/{groupCard-CPvAsuPb.cjs → groupCard-BzUQ8xY0.cjs} +1 -1
- package/dist/{groupCard-DQvEe6cc.js → groupCard-COMEkzIb.js} +29 -28
- package/dist/headerBar-iFe0YQKE.cjs +1 -0
- package/dist/{headerBar-CGOtSvFn.js → headerBar-ouXO8bzC.js} +48 -47
- package/dist/{history-D6C3tSut.js → history-BZ869y2d.js} +18 -18
- package/dist/{history-9ToM-rJ6.cjs → history-MxYUUwkm.cjs} +1 -1
- package/dist/index-DVqMfQVc.cjs +612 -0
- package/dist/{index-Bdq33405.js → index-DwPJu6XM.js} +1159 -1128
- package/dist/{insarDeformChart-Ls-cdqaP.js → insarDeformChart-5BhCUq8L.js} +24 -17
- package/dist/insarDeformChart-Ca3AMsBk.cjs +1 -0
- package/dist/{insarImageViewer-Dnke9JDG.js → insarImageViewer-DHNxmLpa.js} +41 -34
- package/dist/insarImageViewer-DWPsoHz6.cjs +1 -0
- package/dist/{kds-B4BKGG0r.js → kds-BYZC4pIM.js} +57 -50
- package/dist/{kds-BjX5tXhF.cjs → kds-Dpf_3WWj.cjs} +2 -2
- package/dist/{kpiCard-C77vHJ_E.js → kpiCard-CStPtl-c.js} +5 -4
- package/dist/kpiCard-OLJgA48-.cjs +2 -0
- package/dist/{landslideMap-BEkbnCqP.js → landslideMap-BUq0x7rd.js} +34 -33
- package/dist/landslideMap-JTdoQjW-.cjs +1 -0
- package/dist/{landslideWarning-C5upI2cf.js → landslideWarning-VAn9XGUj.js} +55 -54
- package/dist/landslideWarning-ZA5LCsIr.cjs +1 -0
- package/dist/{layerTabs-DoGw1Jfv.js → layerTabs-CAJ6f-2W.js} +40 -38
- package/dist/layerTabs-CdhowHB1.cjs +1 -0
- package/dist/{leaflet-src-BUWIqhPn.cjs → leaflet-src-CxFQ_Cn7.cjs} +1 -1
- package/dist/{leaflet-src-DFE_g2gF.js → leaflet-src-DNO2-OsP.js} +1 -1
- package/dist/{lerc-CXc9KSRL.js → lerc-bF2jqjoV.js} +2 -2
- package/dist/{lerc-BBgQP785.cjs → lerc-qU4WKXeS.cjs} +1 -1
- package/dist/{lin-ClO2MqZl.cjs → lin-BHI2KgyW.cjs} +2 -2
- package/dist/{lin-Difz8N88.js → lin-DbQw7wZw.js} +20 -18
- package/dist/linIndass-CIrObeZT.cjs +2 -0
- package/dist/{linIndass-DqXVOBh3.js → linIndass-Cd9Hjzs_.js} +31 -30
- package/dist/lst-BRsEe-Hq.cjs +1 -0
- package/dist/{lst-4RMMZZkY.js → lst-C3C2m1v_.js} +40 -39
- package/dist/{manualEntry-B3_4Z-Lj.js → manualEntry-B8TDMcDg.js} +29 -22
- package/dist/manualEntry-C3_WtYz8.cjs +1 -0
- package/dist/{mapBackground-B3OHQsXZ.js → mapBackground-BrVIQUcT.js} +21 -20
- package/dist/{mapBackground-Bmt-oZt6.cjs → mapBackground-Du7R_ICY.cjs} +2 -2
- package/dist/{mappingList-DVj7H206.js → mappingList-BpJUawmv.js} +22 -20
- package/dist/mappingList-C5OZ8oUx.cjs +1 -0
- package/dist/{markdownViewer-fheM5uV4.js → markdownViewer-CoRrvdY7.js} +16 -15
- package/dist/{markdownViewer-BAuNEWRt.cjs → markdownViewer-D96bwxEt.cjs} +2 -2
- package/dist/materialFileUrl-CubtnHeq.js +108 -0
- package/dist/materialFileUrl-DfPNm265.cjs +1 -0
- package/dist/{mix-control-modal-BoYynGT2.cjs → mix-control-modal-DwxwW65v.cjs} +1 -1
- package/dist/{mix-control-modal-BBiKe4MM.js → mix-control-modal-Qg_mzyT_.js} +1 -1
- package/dist/{mixGrid-BUjP1qv2.js → mixGrid-CtJWul6c.js} +44 -43
- package/dist/mixGrid-Hj0OJjkg.cjs +1 -0
- package/dist/mixMap-CJzmC0IR.cjs +1 -0
- package/dist/{mixMap-DPIwyKuP.js → mixMap-E36SDnEa.js} +36 -35
- package/dist/mixModel-BMRxhvWn.cjs +3 -0
- package/dist/{mixModel-CIdQp4V9.js → mixModel-_McJ6OuH.js} +30 -29
- package/dist/{mixPie-C6OhdOCV.js → mixPie-CMOkAe9p.js} +31 -30
- package/dist/mixPie-MAKXeYVp.cjs +2 -0
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/mixiotObjectListApi-BaeBL318.js +82 -0
- package/dist/mixiotObjectListApi-D9OyHNQ3.cjs +1 -0
- package/dist/mjpegCamera-BY7pmbDc.cjs +1 -0
- package/dist/{mjpegCamera-Cd1vhZ5v.js → mjpegCamera-Dc4IsJA6.js} +12 -11
- package/dist/monitorAlert-DVNvJyTy.cjs +1 -0
- package/dist/{monitorAlert-DIJtH557.js → monitorAlert-F8QFOchR.js} +45 -44
- package/dist/monitorData-AkPbhJ9q.cjs +1 -0
- package/dist/{monitorData-B6jhpzVK.js → monitorData-BzqNIdrW.js} +61 -59
- package/dist/{monitorSpeedChart-DF5zvxs9.js → monitorSpeedChart-348U37LW.js} +22 -21
- package/dist/{monitorSpeedChart-EIcGs3NX.cjs → monitorSpeedChart-DVH1xihw.cjs} +2 -2
- package/dist/{mxa-COxjxwpC.js → mxa-CkJjCHA-.js} +29 -27
- package/dist/{mxa-BfwIV49n.cjs → mxa-DShU528J.cjs} +2 -2
- package/dist/myValue-BCeycpdO.cjs +1 -0
- package/dist/{myValue-Crba15Wc.js → myValue-CEfp19i2.js} +17 -16
- package/dist/myValueList-CAPOW8TK.cjs +1 -0
- package/dist/{myValueList-m2yaIcuf.js → myValueList-y3GR4AX2.js} +41 -40
- package/dist/objectList-4rYQk5uq.cjs +1 -0
- package/dist/{objectList-BwZJzrXs.js → objectList-D16yLbzD.js} +538 -599
- package/dist/objectListAPP-DCwTyqFp.js +1864 -0
- package/dist/objectListAPP-Db5beOAM.cjs +1 -0
- package/dist/photo-BV6rkbWO.js +811 -0
- package/dist/photo-D67wLRkY.cjs +1 -0
- package/dist/{pie-CSLVJv0Y.cjs → pie-BeRwVkTk.cjs} +2 -2
- package/dist/{pie-C9MU90ON.js → pie-bNKhq6ak.js} +16 -14
- package/dist/{placeholder-CRARTMF4.js → placeholder-_iK4rVyU.js} +26 -25
- package/dist/placeholder-zByzfWaH.cjs +1 -0
- package/dist/{pressBtn-CkYcW1a8.js → pressBtn-B-rZPXK2.js} +124 -124
- package/dist/pressBtn-BjqYIPC-.cjs +1 -0
- package/dist/processTable-ByPlSKRJ.cjs +3 -0
- package/dist/{processTable-BgAhGGAq.js → processTable-s_y8uups.js} +12 -11
- package/dist/{progressBar-BbDFps1r.cjs → progressBar-CRdA7oJT.cjs} +1 -1
- package/dist/{progressBar-CIPUVeaf.js → progressBar-DskxZk1P.js} +19 -18
- package/dist/{progressCircle-DDc5zsd6.js → progressCircle-BE_Am-AP.js} +13 -12
- package/dist/{progressCircle-CgkZ1EC1.cjs → progressCircle-CHe-12Hb.cjs} +1 -1
- package/dist/{qrcode-CQbWGVgq.cjs → qrcode-D8cFyUpL.cjs} +1 -1
- package/dist/{qrcode-CCu677Ad.js → qrcode-Dgth6KwU.js} +39 -38
- package/dist/{raceBar-CzNGSYCt.cjs → raceBar-CeybrpCB.cjs} +3 -3
- package/dist/{raceBar-Cn8oPhCE.js → raceBar-DV-3KFg2.js} +18 -16
- package/dist/rad-BerkC70H.cjs +1 -0
- package/dist/{rad-D_cLWeMk.js → rad-BhsfF0XI.js} +22 -20
- package/dist/{radarMapViewer-BaAXjsWx.js → radarMapViewer-C2dde8EN.js} +82 -81
- package/dist/radarMapViewer-HWzvBTzT.cjs +1 -0
- package/dist/{rainfallFilterBar-Bhpadat8.js → rainfallFilterBar-CiT1mvYh.js} +22 -21
- package/dist/rainfallFilterBar-kuAQO0M-.cjs +1 -0
- package/dist/rainfallTimeCurve-7uHaSkuE.cjs +1 -0
- package/dist/{rainfallTimeCurve-sDYapogL.js → rainfallTimeCurve-BlOnCq2M.js} +58 -56
- package/dist/rangeLin-BQeWFL_E.cjs +3 -0
- package/dist/{rangeLin-CdMOPwMP.js → rangeLin-BvKd8kEv.js} +32 -31
- package/dist/realtimeEvolutionMap-BUnD3JjE.cjs +1 -0
- package/dist/{realtimeEvolutionMap-CIH_sZ29.js → realtimeEvolutionMap-DZ6yniwl.js} +46 -44
- package/dist/regionBar-mMaN5NEc.cjs +3 -0
- package/dist/{regionBar-VB-2GpR0.js → regionBar-vp5D52Jd.js} +14 -13
- package/dist/{request-BHfDxLXZ.js → request-CMbwWTDF.js} +9 -9
- package/dist/{request-DU8pRyvu.cjs → request-DegEaaCG.cjs} +1 -1
- package/dist/retainer1-CF2Tr7Zt.cjs +1 -0
- package/dist/{retainer1-C_109Weq.js → retainer1-Xvdlh-B_.js} +17 -16
- package/dist/retainer2-BQVUhgcH.cjs +1 -0
- package/dist/{retainer2-BiHUTumr.js → retainer2-D3a-c_BA.js} +43 -42
- package/dist/{retainerRecordList-Cgil_g8a.js → retainerRecordList-BJbPsJ4D.js} +47 -45
- package/dist/retainerRecordList-Rqnoz6_6.cjs +1 -0
- package/dist/retainerRecordListAPP-B4IDQK3C.cjs +1 -0
- package/dist/retainerRecordListAPP-CNntGyA-.js +1068 -0
- package/dist/{ringTopN-C9AH-t3T.js → ringTopN-BFKlXqGX.js} +18 -16
- package/dist/ringTopN-CsouIsk1.cjs +1 -0
- package/dist/{riskRegionTable-Co1uxMzf.js → riskRegionTable-B6k4uM0_.js} +26 -19
- package/dist/riskRegionTable-DttMvHe5.cjs +1 -0
- package/dist/sankey-CAuBQaYh.cjs +1 -0
- package/dist/{sankey-Bag0ladh.js → sankey-DEQK7uU6.js} +17 -15
- package/dist/{scd-D9AiOiPg.js → scd-D5TicpCZ.js} +1282 -1062
- package/dist/scd-qaap6hGW.cjs +1 -0
- package/dist/{sideMenu-869HFB0p.js → sideMenu-ByyrOOYh.js} +28 -27
- package/dist/sideMenu-D-73DoYb.cjs +1 -0
- package/dist/{slopeStability-bZ0lHLjZ.js → slopeStability-BtgMH3oW.js} +44 -42
- package/dist/slopeStability-CTN6Kpva.cjs +1 -0
- package/dist/speedCurve-C5NoQCjK.cjs +1 -0
- package/dist/{speedCurve-DZ52XKCk.js → speedCurve-CInn7NAC.js} +43 -41
- package/dist/staticLine-BC-zj5yZ.cjs +1 -0
- package/dist/{staticLine-CyPnmKCh.js → staticLine-CLqN4lpU.js} +51 -50
- package/dist/stressFilterBar-Cpfbmllu.cjs +1 -0
- package/dist/{stressFilterBar-BAUt2bGy.js → stressFilterBar-D_QqOHna.js} +46 -45
- package/dist/{stressTimeCurve-IW4ArsyA.js → stressTimeCurve-1HXHUj-F.js} +64 -62
- package/dist/stressTimeCurve-Bp6Cevk1.cjs +1 -0
- package/dist/{swiper-BPS9C2GV.cjs → swiper-B8YZ2VQ2.cjs} +1 -1
- package/dist/{swiper-RM0GoZkW.js → swiper-D_y4Fj_D.js} +25 -24
- package/dist/terminalConfigList-B39cEptG.cjs +1 -0
- package/dist/{terminalConfigList-n7NE5NdJ.js → terminalConfigList-CHbA4y-S.js} +38 -36
- package/dist/terminalList-Vf-Dbybr.cjs +1 -0
- package/dist/{terminalList-Byb4eLcD.js → terminalList-oJFrGVtT.js} +38 -36
- package/dist/terminalListAPP-CdBG8krw.cjs +1 -0
- package/dist/terminalListAPP-DWArp2D4.js +1366 -0
- package/dist/{textbox-DM1AUWw8.js → textbox-D8nmoGjG.js} +13 -12
- package/dist/textbox-DPoyxB4u.cjs +1 -0
- package/dist/{timeQueryBar-Tbd9M8UT.js → timeQueryBar-DyC0iHq9.js} +21 -20
- package/dist/timeQueryBar-uUGotoTx.cjs +1 -0
- package/dist/{timeSeries-DCV2YjC2.cjs → timeSeries-BhlqgEOq.cjs} +2 -2
- package/dist/{timeSeries-CdpEx6bf.js → timeSeries-U91gMDDQ.js} +66 -64
- package/dist/timeSeriesCurve-CiRMnZRD.cjs +1 -0
- package/dist/{timeSeriesCurve-C1AmF6TP.js → timeSeriesCurve-DOhIS88N.js} +68 -66
- package/dist/{toggleBtn-BGjXjIuK.cjs → toggleBtn-CuWwHFjD.cjs} +1 -1
- package/dist/{toggleBtn-XS9MjfKM.js → toggleBtn-DE35dkxx.js} +46 -44
- package/dist/trajectoryConfigPanel-DAbF8oE9.cjs +1 -0
- package/dist/{trajectoryConfigPanel-BC90nD1T.js → trajectoryConfigPanel-Ye7NY6rd.js} +35 -34
- package/dist/{trajectoryScatter-DF_ESBn8.js → trajectoryScatter-DL7HUNJI.js} +47 -45
- package/dist/trajectoryScatter-Dg99HzM3.cjs +1 -0
- package/dist/universalConfigPanel-1svBCvD9.cjs +1 -0
- package/dist/{universalConfigPanel-DjNTwJkz.js → universalConfigPanel-CkyIDl_x.js} +50 -49
- package/dist/{universalTable-BY9vRraC.js → universalTable--dpnyNO2.js} +56 -54
- package/dist/universalTable-D8w7FQbl.cjs +2 -0
- package/dist/useMixiotPanelSurface-CAZgexY5.cjs +1 -0
- package/dist/useMixiotPanelSurface-DRl3cZvc.js +22 -0
- package/dist/useTableBodyHeight-CwrQvi7M.js +21 -0
- package/dist/useTableBodyHeight-pf87uGjw.cjs +1 -0
- package/dist/{video-DDvDGDql.js → video-BmMSRRa_.js} +5 -4
- package/dist/{video-8_Sf1uz0.cjs → video-RGIZoUn6.cjs} +2 -2
- package/dist/videoMonitor-Bo5T0MT_.cjs +1 -0
- package/dist/{videoMonitor-sce5N4Q5.js → videoMonitor-uf6tt2E6.js} +34 -33
- package/dist/{vlu-BKeYJtOO.js → vlu-D8l5zE_P.js} +24 -23
- package/dist/vlu-DEo_h1qN.cjs +1 -0
- package/dist/warningOverview-A5AA_vCc.cjs +1 -0
- package/dist/{warningOverview-CG5mwtaO.js → warningOverview-CA0PikjV.js} +31 -30
- package/dist/{weather-CWvAqxgX.cjs → weather-D20MGzuJ.cjs} +1 -1
- package/dist/{weather-BrX2a1an.js → weather-DuseqeNF.js} +19 -18
- package/dist/{windLin-BbbsSwuF.cjs → windLin-BU6Q87dE.cjs} +1 -1
- package/dist/{windLin-P4Gs2aBB.js → windLin-D8AUL_dV.js} +58 -57
- package/package.json +120 -120
- package/dist/BaseComponent-CNXUpPY1.cjs +0 -1
- package/dist/UniverSheet-CntkzcVZ.cjs +0 -1
- package/dist/accelerationChart-DLV-1mpA.cjs +0 -6
- package/dist/actionItem-CFxzHf4E.cjs +0 -1
- package/dist/alarmLevelChart-DCC6D1fH.cjs +0 -2
- package/dist/alertTable-BREZBeS5.cjs +0 -1
- package/dist/aliasObjectSelectorDemo-DunKWEkT.cjs +0 -1
- package/dist/annualRainfallChart-BJyoUBDn.cjs +0 -1
- package/dist/aqiIndass-B441j8CT.cjs +0 -3
- package/dist/areaDeformCurve-Dj405Jil.cjs +0 -1
- package/dist/arrayCard-B7zb1dFi.cjs +0 -1
- package/dist/audio-BfsYRWbm.cjs +0 -1
- package/dist/bmp-DIkLqzRN.cjs +0 -1
- package/dist/box-kXjrgG2u.cjs +0 -1
- package/dist/chartConfigPanel-DN4LMy8-.cjs +0 -1
- package/dist/clock-EbmFBRb-.cjs +0 -1
- package/dist/clt-C-9xGiKs.cjs +0 -1
- package/dist/cmc-CFa8Q3tu.cjs +0 -1
- package/dist/conclusionCard-Dlg5GWlE.cjs +0 -1
- package/dist/controlList-C1vhlonT.cjs +0 -1
- package/dist/controlRecordList-BhK7KtLR.cjs +0 -1
- package/dist/crd-CgxqxwKV.cjs +0 -1
- package/dist/ctrBtn-BSJ9c7Pt.cjs +0 -1
- package/dist/ctrSet-B9M4yI53.cjs +0 -1
- package/dist/ctrSwitch-C6dUn_qm.js +0 -206
- package/dist/ctrSwitch-ZvMCYKvG.cjs +0 -1
- package/dist/dataManagement-CNrEa_zB.cjs +0 -1
- package/dist/datetime-CAyDWKE8.cjs +0 -1
- package/dist/deepClusterSlipSurface-DzoyF6i1.cjs +0 -1
- package/dist/deepDataMatrix--AstWPiL.cjs +0 -1
- package/dist/deepDisplacementChart-BnT1ZdfR.cjs +0 -6
- package/dist/deepDisplacementChart-DOPij7KP.cjs +0 -5
- package/dist/deepDisplacementView-u1IPcbxN.cjs +0 -8
- package/dist/deepNodeTemperatureChart-CD3JbqkA.cjs +0 -1
- package/dist/deepTangentAngleChart-BCAauuDY.cjs +0 -1
- package/dist/deepTemperatureField-BxuKsrtc.cjs +0 -1
- package/dist/deepTrendChart-6L4cCHgh.cjs +0 -1
- package/dist/deviceOnlineStatus-WkwzGom4.cjs +0 -2
- package/dist/deviceStatus-BoIv8fbr.cjs +0 -1
- package/dist/displacementDataTable-BwcxrsuU.cjs +0 -1
- package/dist/displacementTrajectoryChart-BOPIBgi5.cjs +0 -22
- package/dist/displacementTrendChart-CI8i0oQY.cjs +0 -5
- package/dist/emergencyPlan-BRFhMubg.cjs +0 -1
- package/dist/evn-B05d7LtF.cjs +0 -1
- package/dist/evolutionChart-y2mkLVwU.cjs +0 -1
- package/dist/fileViewer-Dy2fdABW.cjs +0 -1
- package/dist/filterBar-CcrUdD-O.cjs +0 -1
- package/dist/fireCombustionCurve-B-6MZLul.cjs +0 -1
- package/dist/fireFilterBar-C9b_Ohvr.cjs +0 -1
- package/dist/fireHistoryTable-5sG5FDCD.cjs +0 -3
- package/dist/gag-CDX99Ta4.cjs +0 -1
- package/dist/gasStationList-Dl9qawf_.cjs +0 -1
- package/dist/globalObjectSelector-Bz2XhgxT.cjs +0 -1
- package/dist/gnssFilterBar-BT19n0j_.cjs +0 -1
- package/dist/gnssHistoryTable-CrS2qO6S.cjs +0 -3
- package/dist/gnssSectionProfile-_KbP1NXU.cjs +0 -1
- package/dist/gnssTimeSeriesChart-BgFoXAZv.cjs +0 -1
- package/dist/gnssXYTrajectory-C1N3RWzp.cjs +0 -5
- package/dist/grd-DtDoJOOa.cjs +0 -1
- package/dist/grdIndass-ci3JkvGZ.cjs +0 -1
- package/dist/grg-C2qVuXYE.cjs +0 -1
- package/dist/gridview-BLAlr5uj.cjs +0 -1
- package/dist/groundwaterFilterBar-1E1j67JT.cjs +0 -1
- package/dist/groundwaterProfileChart-CS9xelz8.cjs +0 -11
- package/dist/groundwaterTimeCurve-DYiDLgVY.cjs +0 -1
- package/dist/headerBar-OwCxpc4o.cjs +0 -1
- package/dist/index-D8dh_6Qd.cjs +0 -612
- package/dist/insarDeformChart-CSQ7fc2p.cjs +0 -1
- package/dist/insarImageViewer-DvaRS1zr.cjs +0 -1
- package/dist/kpiCard-oLpk5d4m.cjs +0 -2
- package/dist/landslideMap-CO8o7T8J.cjs +0 -1
- package/dist/landslideWarning-BZXa5qTB.cjs +0 -1
- package/dist/layerTabs-BxRAsklw.cjs +0 -1
- package/dist/linIndass-Bb7UA-zk.cjs +0 -2
- package/dist/lst-Dri1MTDI.cjs +0 -1
- package/dist/manualEntry-D74dgZv8.cjs +0 -1
- package/dist/mappingList-CBN7ArkQ.cjs +0 -1
- package/dist/mixGrid-DTj2pmFW.cjs +0 -1
- package/dist/mixMap-B4T4R6kA.cjs +0 -1
- package/dist/mixModel-BzilRtjf.cjs +0 -3
- package/dist/mixPie-DtQm-LGp.cjs +0 -2
- package/dist/mjpegCamera-Lu3UHJ83.cjs +0 -1
- package/dist/monitorAlert-Ctt2kCxQ.cjs +0 -1
- package/dist/monitorData-D_tMbx_Y.cjs +0 -1
- package/dist/myValue-FZPOucSS.cjs +0 -1
- package/dist/myValueList-XIDK3ove.cjs +0 -1
- package/dist/objectList-BtbxHtJj.cjs +0 -1
- package/dist/photo-BITvEhKG.cjs +0 -1
- package/dist/photo-CjulDHTM.js +0 -873
- package/dist/placeholder-3kajeeeb.cjs +0 -1
- package/dist/pressBtn-pUcQtd5n.cjs +0 -1
- package/dist/processTable-CDulvQlu.cjs +0 -3
- package/dist/rad-Dk4PrnyI.cjs +0 -1
- package/dist/radarMapViewer-TJIPACdT.cjs +0 -1
- package/dist/rainfallFilterBar-Myq0MBCf.cjs +0 -1
- package/dist/rainfallTimeCurve-BUI-RlnG.cjs +0 -1
- package/dist/rangeLin-DYCZ8wVc.cjs +0 -3
- package/dist/realtimeEvolutionMap-BwyQdAhL.cjs +0 -1
- package/dist/regionBar-DsxqfirI.cjs +0 -3
- package/dist/retainer1-CSqjvY4k.cjs +0 -1
- package/dist/retainer2-Bqlwvr53.cjs +0 -1
- package/dist/retainerRecordList-DWZ3WDiz.cjs +0 -1
- package/dist/ringTopN-Bp0er_zV.cjs +0 -1
- package/dist/riskRegionTable-B3bzMaR_.cjs +0 -1
- package/dist/sankey-B4BJ4xIo.cjs +0 -1
- package/dist/scd-Dgd3KDpk.cjs +0 -1
- package/dist/sideMenu-BQ5rrGBr.cjs +0 -1
- package/dist/slopeStability-D96aiykf.cjs +0 -1
- package/dist/speedCurve-5nWqVAzz.cjs +0 -1
- package/dist/staticLine-DUCg-0tI.cjs +0 -1
- package/dist/stressFilterBar-CorWdmpQ.cjs +0 -1
- package/dist/stressTimeCurve-Bci50Cwv.cjs +0 -1
- package/dist/terminalConfigList-O881ke5o.cjs +0 -1
- package/dist/terminalList-C9TB2cJH.cjs +0 -1
- package/dist/textbox-BMWnbPvz.cjs +0 -1
- package/dist/timeQueryBar-C6ZheMvD.cjs +0 -1
- package/dist/timeSeriesCurve-DRlr5n3U.cjs +0 -1
- package/dist/trajectoryConfigPanel-DJ6fOeb1.cjs +0 -1
- package/dist/trajectoryScatter-C7kfSkyS.cjs +0 -1
- package/dist/universalConfigPanel-PO1hdgjw.cjs +0 -1
- package/dist/universalTable-QAb6UKCq.cjs +0 -2
- package/dist/useMixiotPanelSurface-BMNrWBMF.cjs +0 -1
- package/dist/useMixiotPanelSurface-DlVkLttU.js +0 -40
- package/dist/videoMonitor-BKLD_aQs.cjs +0 -1
- package/dist/vlu-C0XLDKKk.cjs +0 -1
- package/dist/warningOverview--n7crFnZ.cjs +0 -1
package/dist/box-kXjrgG2u.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var j=Object.defineProperty,H=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var A=(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)&&A(r,i,o[i]);if(D)for(var i of D(o))X.call(o,i)&&A(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-CNXUpPY1.cjs"),B=require("./index-D8dh_6Qd.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},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 V,w,l,c,s,T,I,z;const t=((V=y.value)==null?void 0:V.slotCount)||2,n=((w=y.value)==null?void 0:w.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 O={x:0,y:0,w:100,h:100};n==="free"&&f?O={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"?O={x:100/t*d,y:0,w:100/t,h:100}:n==="vertical"&&(O={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}`},O),{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))},W=(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)},F=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,V=S.ElCollapse,w=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=>W(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(w,{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(V,{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=>F(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-1c0a6918"]]);exports.default=he;
|
|
@@ -1 +0,0 @@
|
|
|
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-D8dh_6Qd.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"],we={key:4,class:"config-section"},Me={class:"section-title"},Ie={class:"range-inputs"},Te={key:5,class:"config-section"},qe={class:"section-title"},Re={class:"range-inputs"},Ue={key:6,class:"config-section"},Ae={class:"section-title"},Oe={class:"function-options"},Pe={key:7,class:"config-section"},ze={DEFAULT_ICON:H.DEFAULT_ICON,ACTIVE_ICON:H.ACTIVE_ICON,NAME_CN:"图表配置面板",NAME_EN:"Chart Config Panel",ORDER:14},Fe={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"}},Le=[{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:ze,OPTIONS:Fe,DATA:Le,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=>({v6460e860:y.value.bgColor,v15b6596e:y.value.borderColor,v2f19ff68:y.value.textColor,f7a1752a: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"}}),U=e.computed(()=>{var l;return((l=r.conf)==null?void 0:l.data)||[]}),A=e.computed(()=>y.value.bindId||r.uid||""),k=e.ref("day"),O=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(""),w=e.ref(""),M=e.ref(""),I=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(w.value)||null},relativeDispRange:{min:parseFloat(M.value)||null,max:parseFloat(I.value)||null},showDisp:E.value,showRelativeDisp:h.value}),d=()=>{const l=P(),t=U.value,i=A.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 T=C===0?E.value:h.value;a.publish("deepDisplacement","chartConfigPanel",{objectId:V,type:"bindConfig",fv:R(q({},l),{visible:T})})}):a.publish("deepDisplacement","chartConfigPanel",{objectId:u,type:"bindConfig",fv:l}))})},z=l=>{k.value=l,d()},F=l=>{O.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()},L=()=>{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=A.value;l&&a.publish("deepDisplacement",{objectId:l,type:"export",fv:{type:"chart",config:P()},source:"chartConfigPanel"})};return e.onMounted(()=>{F("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,T=m.ElRadioGroup,x=m.ElInput;return e.openBlock(),e.createElementBlock("div",ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.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=>z("day"))},"日均",2),e.createElementVNode("span",{class:e.normalizeClass(["switch-item",{active:k.value==="hour"}]),onClick:t[1]||(t[1]=o=>z("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:O.value===o.value}]),onClick:ne=>F(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:L},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:L},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(T,{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",we,[e.createElementVNode("div",Me,e.toDisplayString(s.label||"累计位移区间"),1),e.createElementVNode("div",Ie,[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:w.value,"onUpdate:modelValue":t[8]||(t[8]=o=>w.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",Te,[e.createElementVNode("div",qe,e.toDisplayString(s.label||"相对位移区间"),1),e.createElementVNode("div",Re,[e.createVNode(x,{modelValue:M.value,"onUpdate:modelValue":t[9]||(t[9]=o=>M.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:I.value,"onUpdate:modelValue":t[10]||(t[10]=o=>I.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",Ue,[e.createElementVNode("div",Ae,e.toDisplayString(s.label||"功能"),1),e.createElementVNode("div",Oe,[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-1a145f90"]]);exports.default=He;
|
package/dist/clock-EbmFBRb-.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 _=(c,n,r)=>n in c?X(c,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[n]=r,x=(c,n)=>{for(var r in n||(n={}))te.call(n,r)&&_(c,r,n[r]);if(V)for(var r of V(n))oe.call(n,r)&&_(c,r,n[r]);return c},M=(c,n)=>Z(c,ee(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),le=require("./BaseComponent-CNXUpPY1.cjs"),ae=require("./index-D8dh_6Qd.cjs"),w=require("./ele-dateTime-icon-BgZ2_KWW.cjs"),ne={key:0,class:"digital-clock"},re={key:1,class:"analog-clock-wrapper"},ce=["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},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(c){const n=c;class r 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 r(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"}),W=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),L=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",re,[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":L.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:W.value},null,8,ge)],8,ce))],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-22a24b28"]]);exports.default=xe;
|
package/dist/clt-C-9xGiKs.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var I=Object.defineProperty,U=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var j=(u,l,r)=>l in u?I(u,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):u[l]=r,B=(u,l)=>{for(var r in l||(l={}))A.call(l,r)&&j(u,r,l[r]);if(N)for(var r of N(l))M.call(l,r)&&j(u,r,l[r]);return u},x=(u,l)=>U(u,$(l));var O=(u,l,r)=>new Promise((v,s)=>{var g=m=>{try{d(r.next(m))}catch(y){s(y)}},b=m=>{try{d(r.throw(m))}catch(y){s(y)}},d=m=>m.done?v(m.value):Promise.resolve(m.value).then(g,b);d((r=r.apply(u,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-CNXUpPY1.cjs"),_=require("./index-D8dh_6Qd.cjs"),H=require("./titleStyle-NSnz6cUg.cjs"),C=require("element-plus"),T=require("./ele-clt-icon-BEVOS7Tq.cjs"),P={class:"item-val"},L={key:0,class:"item-btn"},R={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"项目采集",NAME_EN:"Project",ORDER:1},W={bgColor:"#fff",projectColor:"#999",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},G=[{project_id:"",object_id:""}],J=["project_id","object_id"],K={DEFAULT:R,OPTIONS:W,DATA:G,PARAMS:J,COMMON:{}},Q=e.defineComponent(x(B({},K),{__name:"clt",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){const l=u;class r extends F.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),projectColor:this.getOptionValue("projectColor","#999"),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(){this.Style.value=this.extractStyles(),this.applyTheme()}}const v=new r(l,"clt");v.setupLifecycle();const s=v.getStyle(),g=l.conf,b=e.computed(()=>H.generateTitleStyle(l.conf.options)),d=e.ref([{name:"离线项目",data:[{name:"采集项",type:"Integer",unit:"℃",value:""}]}]),m=()=>O(null,null,function*(){const{data:a}=l.conf;d.value=[];const n=a.filter(t=>t.project_id).map(t=>t.project_id);if(!n.length)return;let o={where_in:JSON.stringify([["uid",n.join(",")]])};const{result:c}=yield _.api.post("get_collect_list",o);c.data.length>0&&c.data.forEach(t=>{d.value.push({name:t.name,uid:t.uid,object_id:t.object_id,data:y(t.script)})})}),y=a=>{const n=[];return a.forEach(o=>{n.push({name:o.label_loc,type:o.type,unit:o.unit,key:o.key})}),n},E=e.computed(()=>{let a=!0;return d.value.forEach(n=>{n.data.forEach(o=>{(o.value||o.value===0)&&(a=!1)})}),a}),D=()=>{l.mode!=="edit"&&(s.value.type==="object"?z():w())},w=()=>{const a=[],n=_.auth.getUser();d.value.forEach(o=>{const c={};if(o.data.forEach(p=>{(p.value||p.value===0)&&(c[p.key]=["Integer","Float"].includes(p.type)?Number(p.value):p.type==="Bool"?!!p.value:p.value)}),!Object.keys(c).length)return;const t={name:o.name,value:c,collect_id:o.uid,collector:n.username};a.push(_.api.post("add_collect_value_without_object",t))}),Promise.all(a).then(o=>{let c=!0;o.forEach(t=>{t.code!==200&&(c=!1,C.ElMessage.error(t.msg))}),c&&C.ElMessage.success("操作成功")})},z=()=>{const a=[];d.value.forEach(n=>{const o={};if(n.data.forEach(t=>{(t.value||t.value===0)&&(o[t.key]=["Integer","Float"].includes(t.type)?Number(t.value):t.type==="Bool"?!!t.value:t.value)}),!Object.keys(o).length)return;const c={name:n.name,value:o,collect_id:n.uid,object_id:n.object_id||l.uid};a.push(_.api.post("collect_add",c))}),Promise.all(a).then(n=>{let o=!0;n.forEach(c=>{c.code!==200&&(o=!1,C.ElMessage.error(c.msg))}),o&&C.ElMessage.success("操作成功")})};return e.watch(()=>l.conf.data,()=>{m()},{deep:!0,immediate:!0}),(a,n)=>{const o=h.ElInput,c=h.ElInputNumber,t=h.ElRadio,p=h.ElRadioGroup,q=h.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(s).bgColor,borderRadius:`${e.unref(s).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(b.value)},e.toDisplayString(e.unref(g).caption||e.unref(g).name),5),e.createElementVNode("div",{class:e.normalizeClass(["mix-body",e.unref(s).isHideTitle?"h-[100%]":" h-[calc(100%-42px)]"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(S,V)=>(e.openBlock(),e.createElementBlock("div",{key:V},[e.createElementVNode("div",{class:"item-title",style:e.normalizeStyle({fontSize:`${e.unref(s).projectSize}px`,color:e.unref(s).projectColor})},e.toDisplayString(S.name),5),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.data,(i,k)=>(e.openBlock(),e.createElementBlock("div",{class:"item-wrap",key:`${V}_${k}`},[e.createElementVNode("div",{class:"item-item",style:e.normalizeStyle({width:`${e.unref(s).labelWidth}px`,fontSize:`${e.unref(s).paramSize}px`,color:e.unref(s).paramColor,height:`${e.unref(s).paramHeight}px`})},e.toDisplayString(i.name)+": ",5),e.createElementVNode("div",P,[i.type==="String"?(e.openBlock(),e.createBlock(o,{key:0,type:"text",modelValue:i.value,"onUpdate:modelValue":f=>i.value=f},{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(c,{key:1,style:{width:"100%"},modelValue:i.value,"onUpdate:modelValue":f=>i.value=f,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(c,{key:2,style:{width:"100%"},modelValue:i.value,"onUpdate:modelValue":f=>i.value=f,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(p,{key:3,value:i.value,"onUpdate:value":f=>i.value=f},{default:e.withCtx(()=>[e.createVNode(t,{value:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("common.yes")),1)]),_:1}),e.createVNode(t,{value:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("common.no")),1)]),_:1})]),_:1},8,["value","onUpdate:value"])):e.createCommentVNode("",!0)]),V===d.value.length-1&&k===S.data.length-1?(e.openBlock(),e.createElementBlock("div",L,[e.createVNode(q,{type:E.value?"default":"primary",disabled:E.value,onClick:D},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])):e.createCommentVNode("",!0)]))),128))]))),128))],2),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),X=_._export_sfc(Q,[["__scopeId","data-v-895f1618"]]);exports.default=X;
|
package/dist/cmc-CFa8Q3tu.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var B=Object.defineProperty,w=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var x=(d,l,o)=>l in d?B(d,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):d[l]=o,j=(d,l)=>{for(var o in l||(l={}))A.call(l,o)&&x(d,o,l[o]);if(O)for(var o of O(l))U.call(l,o)&&x(d,o,l[o]);return d},I=(d,l)=>w(d,z(l));var N=(d,l,o)=>new Promise((h,E)=>{var V=f=>{try{_(o.next(f))}catch(b){E(b)}},m=f=>{try{_(o.throw(f))}catch(b){E(b)}},_=f=>f.done?h(f.value):Promise.resolve(f.value).then(V,m);_((o=o.apply(d,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=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-CNXUpPY1.cjs"),S=require("./index-D8dh_6Qd.cjs"),$=require("./titleStyle-NSnz6cUg.cjs"),D=require("./ele-clt-icon-BEVOS7Tq.cjs"),M={class:"item-val"},H={key:0,class:"btn-wrap"},L={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"定制采集",NAME_EN:"Customer",ORDER:2},F={bgColor:"#fff",titleColor:"#111",paramColor:"#333",labelWidth:64,titleSize:14,paramSize:12,paramHeight:32,radiusSize:8,isHideTitle:!1},R=[{object_id:"",project_id:"",collect:"",label_cn:"",item_fv:""}],P=["mosaic"],W=["object_id","project_id","collect","label_cn","item_fv"],G={DEFAULT:L,OPTIONS:F,DATA:R,PARAMS:W,SOURCE:P,COMMON:{}},J=e.defineComponent(I(j({},G),{__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(d){const{proxy:l}=e.getCurrentInstance(),o=d,h="--";class E 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(){this.Style.value=this.extractStyles(),this.applyTheme(),b()}setHistoryData(p){const{data:n}=this.props.conf;n.forEach((s,r)=>{var t,u;try{s.value=(u=(t=p.history[r])==null?void 0:t[0][s.item_fv])!=null?u:h}catch(i){s.value=h}})}setSocketData(p){const{common:n,data:s}=this.props.conf;let r="";n.multiObject||(r=S.getObjectId(n,n.useAlias,this.props.uid)),s.forEach(t=>{var u,i,g,a;n.multiObject&&(r=S.getObjectId(t,n.useAlias,this.props.uid));try{t.value=(a=(g=(i=(u=p[r])==null?void 0:u.mosaic)==null?void 0:i.data)==null?void 0:g[t.item_fv])!=null?a:h}catch(k){t.value=h}})}}const V=new E(o,"cmc");V.setupLifecycle();const m=V.getStyle(),_=o.conf,f=e.computed(()=>$.generateTitleStyle(o.conf.options)),b=()=>N(null,null,function*(){const{data:c}=o.conf;if(!c||c.length===0)return;const p=c.filter(t=>t.project_id).map(t=>t.project_id);if(!p.length){o.mode==="edit"&&c.forEach(t=>{t.label_cn=t.label_cn||l.$t("component.collect.collectItem"),t.type=t.type||"Integer",t.unit=t.unit||""});return}let n={where_in:JSON.stringify([["uid",p.join(",")]])};const{result:s}=yield S.api.post("get_collect_list",n,!0),r={};s.data.forEach(t=>{r[t.uid]=t}),c.forEach(t=>{var u;if((u=r[t.project_id])!=null&&u.script){const i=r[t.project_id].script.find(g=>g.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}})}),v=e.computed(()=>{const{data:c}=o.conf;let p=!0;return c.forEach(n=>{(n.setting||n.setting===0)&&(p=!1)}),p}),T=()=>N(null,null,function*(){if(o.mode==="edit")return;const{data:c,common:p}=o.conf,n=JSON.parse(sessionStorage.getItem(S.ALIAS_MAPPING_KEY)||"{}")||{},s=[];if(c.forEach(t=>{const u=p.useAlias?n[t.object_alias]:t.object_id||o.uid;(t.setting||t.setting===0)&&u&&s.push({collect_id:t.project_id,object_id:u,value:{[t.collect]:["Integer","Float"].includes(t.type)?Number(t.setting):t.setting},name:t.label_cn})}),s.length===0)return;const{result:r}=yield S.api.post("add_collect_value_plus",{data:s});r&&l.$message.success(l.$t("common.success"))});return e.watchEffect(()=>{o.conf.socketData&&V.setSocketData(o.conf.socketData)}),(c,p)=>{var i,g;const n=C.ElInput,s=C.ElInputNumber,r=C.ElRadio,t=C.ElRadioGroup,u=C.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(_).caption||e.unref(_).name),5),e.createElementVNode("div",{class:e.normalizeClass(["mix-body",e.unref(m).isHideTitle?"h-[100%]":" h-[calc(100%-42px)]"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_).data,(a,k)=>(e.openBlock(),e.createElementBlock("div",{key:k,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(a.label_cn)+": ",5),e.createElementVNode("div",M,[a.type==="String"?(e.openBlock(),e.createBlock(n,{key:0,type:"text",class:"w-full",modelValue:a.setting,"onUpdate:modelValue":y=>a.setting=y},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),a.type==="Integer"?(e.openBlock(),e.createBlock(s,{key:1,style:{width:"100%"},modelValue:a.setting,"onUpdate:modelValue":y=>a.setting=y,precision:0,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),a.type==="Float"?(e.openBlock(),e.createBlock(s,{key:2,style:{width:"100%"},modelValue:a.setting,"onUpdate:modelValue":y=>a.setting=y,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),a.type==="Boolean"?(e.openBlock(),e.createBlock(t,{key:3,class:"w-full",modelValue:a.setting,"onUpdate:modelValue":y=>a.setting=y},{default:e.withCtx(()=>[e.createVNode(r,{value:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.$t("common.yes")),1)]),_:1}),e.createVNode(r,{value:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.$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(a.value||"--"),5)]))),128)),(g=(i=e.unref(_))==null?void 0:i.data)!=null&&g.length?(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(u,{type:v.value?"default":"primary",disabled:v.value,onClick:T},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])):e.createCommentVNode("",!0)],2),e.renderSlot(c.$slots,"default",{},void 0,!0)],4)}}})),K=S._export_sfc(J,[["__scopeId","data-v-c953e511"]]);exports.default=K;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var O=Object.defineProperty,A=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var g=(l,t,o)=>t in l?O(l,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[t]=o,C=(l,t)=>{for(var o in t||(t={}))k.call(t,o)&&g(l,o,t[o]);if(b)for(var o of b(t))w.call(t,o)&&g(l,o,t[o]);return l},v=(l,t)=>A(l,V(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./BaseComponent-CNXUpPY1.cjs"),I=require("./index-D8dh_6Qd.cjs"),T=require("./titleStyle-NSnz6cUg.cjs"),y=require("./ele-evn-icon-DUQMS-9T.cjs"),N={class:"title-text"},z={class:"mix-body"},D={DEFAULT_ICON:y.DEFAULT_ICON,ACTIVE_ICON:y.ACTIVE_ICON,NAME_CN:"识别结论卡",NAME_EN:"Conclusion Card",ORDER:14},L={bgColor:"#fff8e1",titleColor:"#1f2329",textColor:"#333",radiusSize:8,textSize:13,isHideTitle:!1,content:"南帮区域误报率持续偏高,建议优先复核春耕样本范围与扰动数据剔除规则。",lineHeight:1.6,btnText:"策略编辑",btnAction:{value:"publish",type:"select",label:"component.options.lw_btnAction",options:[{label:"component.options.lw_btnAction_publish",value:"publish"},{label:"component.options.lw_btnAction_modal",value:"modal"},{label:"component.options.lw_btnAction_navigate",value:"navigate"}]},modalLayerId:{value:"",type:"string",label:"component.options.lw_modalLayerId",dependent:"btnAction",dependentValue:"modal"},navigateUrl:{value:"",type:"string",label:"component.options.lw_navigateUrl",dependent:"btnAction",dependentValue:"navigate"},linkChannel:{value:"landslide",type:"select",label:"component.options.lw_linkChannel",options:[{label:"component.options.lw_linkChannel_landslide",value:"landslide"},{label:"component.options.lw_linkChannel_custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.options.lw_customChannel",showWhen:{linkChannel:"custom"}}},U=[{name:"结论文本",fv:"",object_id:""}],H=["name","fv","object_id"],M=["mosaic","statistics","calculate"],j={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},B={DEFAULT:D,OPTIONS:L,DATA:U,PARAMS:H,SOURCE:M,COMMON:j},q=e.defineComponent(v(C({},B),{__name:"conclusionCard",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const t=l,o=e.ref("");class _ extends E.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff8e1"),titleColor:this.getOptionValue("titleColor","#1f2329"),textColor:this.getOptionValue("textColor","#333"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",13),content:this.getOptionValue("content",""),lineHeight:this.getOptionValue("lineHeight",1.6),btnText:this.getOptionValue("btnText",""),btnAction:this.getOptionValue("btnAction","publish"),modalLayerId:this.getOptionValue("modalLayerId",""),navigateUrl:this.getOptionValue("navigateUrl",""),linkChannel:this.getOptionValue("linkChannel","landslide"),customChannel:this.getOptionValue("customChannel","")}}getLinkChannel(){const n=this.Style.value;return(n==null?void 0:n.linkChannel)==="custom"?n.customChannel||"":(n==null?void 0:n.linkChannel)||""}setSocketData(n){var r,u;if(!n)return;const i=(u=(r=this.props.conf)==null?void 0:r.data)==null?void 0:u[0];if(!(i!=null&&i.fv))return;const c=this.extractDataValue(n,i.fv);c!=null&&c!==""&&(o.value=String(c))}setHistoryData(n){var r,u,f,h;if(!n||!Array.isArray(n.history))return;const i=(u=(r=this.props.conf)==null?void 0:r.data)==null?void 0:u[0];if(!(i!=null&&i.fv))return;const c=(h=(f=n.history)==null?void 0:f[0])==null?void 0:h[0];c&&c[i.fv]&&(o.value=String(c[i.fv]))}}const p=new _(t,"conclusionCard");p.setupLifecycle();const a=p.getStyle(),d=t.conf,S=e.computed(()=>T.generateTitleStyle(t.conf.options)),m=e.computed(()=>o.value||a.value.content||"--");function x(){if(t.mode!=="preview")return;const s=a.value;switch(s.btnAction){case"modal":s.modalLayerId&&window.dispatchEvent(new CustomEvent("mix-modal",{detail:{action:"show",layerId:s.modalLayerId,sheetIndex:-1}}));break;case"navigate":s.navigateUrl&&window.open(s.navigateUrl,"_blank");break;default:p.publish({type:"conclusion-action",title:d.caption||d.name,content:m.value,action:s.btnText})}}return(s,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(a).bgColor,borderRadius:`${e.unref(a).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(S.value)},[e.createElementVNode("span",N,e.toDisplayString(e.unref(d).caption||e.unref(d).name),1),e.unref(a).btnText?(e.openBlock(),e.createElementBlock("button",{key:0,class:"cc-btn",onClick:x},e.toDisplayString(e.unref(a).btnText),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",z,[e.createElementVNode("p",{class:"body-content",style:e.normalizeStyle({fontSize:`${e.unref(a).textSize}px`,color:e.unref(a).textColor,lineHeight:e.unref(a).lineHeight})},e.toDisplayString(m.value),5)]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4))}})),R=I._export_sfc(q,[["__scopeId","data-v-45a89734"]]);exports.default=R;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var he=Object.defineProperty,ye=Object.defineProperties;var be=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var we=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable;var X=(m,s,c)=>s in m?he(m,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[s]=c,J=(m,s)=>{for(var c in s||(s={}))we.call(s,c)&&X(m,c,s[c]);if(G)for(var c of G(s))Ce.call(s,c)&&X(m,c,s[c]);return m},Y=(m,s)=>ye(m,be(s));var _=(m,s,c)=>new Promise((M,w)=>{var R=C=>{try{T(c.next(C))}catch(O){w(O)}},$=C=>{try{T(c.throw(C))}catch(O){w(O)}},T=C=>C.done?M(C.value):Promise.resolve(C.value).then(R,$);T((c=c.apply(m,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),Z=require("./useMixiotPanelSurface-BMNrWBMF.cjs"),Ne=require("./BaseComponent-CNXUpPY1.cjs"),B=require("./index-D8dh_6Qd.cjs"),xe=require("./titleStyle-NSnz6cUg.cjs"),p=require("element-plus"),ke=require("@element-plus/icons-vue"),Se=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),ee=require("./ele-lst-icon-CrxnHZ-A.cjs"),_e={class:"mix-body"},Be={class:"toolbar"},Ee={class:"pagination"},Te={class:"view-body"},Oe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"控制码列表",NAME_EN:"ControlList",ORDER:3},De={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"uid",label:"控制码编号",width:160,visible:!0},{key:"alias",label:"控制码别名",width:140,visible:!0},{key:"name",label:"控制码名称",width:160,visible:!0},{key:"description",label:"描述",minWidth:160,visible:!0},{key:"created",label:"创建时间",width:170,visible:!0},{key:"last_modified",label:"更新时间",width:170,visible:!0}]},te=[{name:"控制码名称",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0,uid:"控制码编号",uid_visible:!0,alias:"控制码别名",alias_visible:!0,description:"描述",description_visible:!0,created:"创建时间",created_visible:!0,last_modified:"更新时间",last_modified_visible:!0}],ze=[{key:"showAddBtn",label:"添加控制码",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组"},{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"uid",label:"控制码编号",checkable:!0,checkboxKey:"uid_visible"},{key:"alias",label:"控制码别名",checkable:!0,checkboxKey:"alias_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"},{key:"last_modified",label:"更新时间",checkable:!0,checkboxKey:"last_modified_visible"}],Ae=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],qe={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.gridFields.name"},{value:"uid",label:"setting.gridFields.uid"},{value:"alias",label:"setting.gridFields.objectAlias"},{value:"description",label:"setting.gridFields.description"}]},Me={DEFAULT:Oe,OPTIONS:De,DATA:te,PARAMS:ze,SOURCE:Ae,COMMON:qe},Ue=e.defineComponent(Y(J({},Me),{__name:"controlList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},controlUidList:{default:()=>[]}},setup(m){const s=m;class c extends Ne.BaseComponent{getDataBool(t,a){var d,u;const n=(u=(d=this.props.conf)==null?void 0:d.data)==null?void 0:u[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[t]:this.getOptionValue(t,a)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(te));else{const a=this.props.conf.data[0],n={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[u,r]of Object.entries(n))a[u]===void 0&&(a[u]=r);const d={uid_visible:!0,alias_visible:!0,description_visible:!0,created_visible:!0,last_modified_visible:!0};for(const[u,r]of Object.entries(d))a[u]===void 0&&(a[u]=r)}}}const M=new c(s,"controlList");M.setupLifecycle();const w=M.getStyle(),{mixiotPanelClass:R,mixiotPanelRootStyle:$}=Z.useMixiotPanelSurface(w),{tableWrapRef:T,tableBodyHeight:C}=Z.useTableBodyHeight(),O=e.computed(()=>xe.generateTitleStyle(s.conf.options)),le=e.computed(()=>{var a,n,d,u;const o=((n=(a=s.conf)==null?void 0:a.options)==null?void 0:n.columns)||[],t=((u=(d=s.conf)==null?void 0:d.data)==null?void 0:u[0])||{};return(Array.isArray(o)?o:[]).map(r=>{const y=t[r.key],k=t[`${r.key}_visible`];return{prop:r.key,label:y!==void 0&&y!==""?String(y):r.label,width:r.width,minWidth:r.minWidth,visible:k!==void 0?!!k:r.visible!==!1}})}),g=e.reactive({current:1,pageSize:10,total:0}),U=e.ref(""),j=e.ref("name"),W=e.ref([]),K=e.ref(!1);function ie(){const o={page_index:g.current,page_size:g.pageSize},t=[],a=U.value.trim();return a&&t.push([j.value,"like",`%${a}%`]),Se.appendCommonDesignerWhereAnd(s.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function N(){return _(this,null,function*(){var o,t;K.value=!0;try{const a=yield B.api.post("control_list",ie(),!0),n=(o=a==null?void 0:a.result)!=null?o:a;let d=Array.isArray(n==null?void 0:n.data)?[...n.data]:[];if((t=s.controlUidList)!=null&&t.length){const r=new Set(s.controlUidList.map(String));d=d.filter(y=>r.has(String(y.uid)))}W.value=d;const u=n==null?void 0:n.total_records;g.total=typeof u=="number"?u:d.length,a&&a.code!==void 0&&a.code!==200&&console.warn("[controlList] 列表接口非成功",a.msg||a.info,a)}catch(a){console.error(a),W.value=[],g.total=0}finally{K.value=!1}})}const oe=e.computed(()=>W.value);function ae(o,t){const a=o[t];return a==null?"":String(a)}function Q(){g.current=1,N()}function ne(){U.value="",g.current=1,N()}function re(){g.current=1,N()}function se(){N()}e.watch(()=>{var o;return(o=s.controlUidList)==null?void 0:o.join(",")},()=>{g.current=1,N()});const D=e.ref(!1),z=e.ref(!1),x=e.ref(!1),i=e.reactive({id:0,uid:"",name:"",alias:"",description:"",script:"[]",template:"[]"});function L(){i.id=0,i.uid="",i.name="",i.alias="",i.description="",i.script="[]",i.template="[]"}function F(o,t){const a=(o==null?void 0:o.trim())||"";if(!a)return t;try{return JSON.stringify(JSON.parse(a))}catch(n){return null}}function de(){L(),D.value=!0}function ue(o){return _(this,null,function*(){var t,a,n,d,u,r,y,k,I,V,A,E;L(),z.value=!0,x.value=!0;try{const h=yield B.api.post("control_item",{uid:o.uid},!0),b=(t=h==null?void 0:h.result)!=null?t:h;if(b&&typeof b=="object"){i.id=Number(b.id)||0,i.uid=String((n=(a=b.uid)!=null?a:o.uid)!=null?n:""),i.name=String((d=b.name)!=null?d:""),i.alias=String((u=b.alias)!=null?u:""),i.description=String((r=b.description)!=null?r:"");const S=b.script;i.script=typeof S=="string"?S:S!=null?JSON.stringify(S):"[]";const l=b.template;i.template=typeof l=="string"?l:l!=null?JSON.stringify(l):"[]"}else i.uid=String(o.uid),i.name=String((y=o.name)!=null?y:""),i.alias=String((k=o.alias)!=null?k:""),i.description=String((I=o.description)!=null?I:"")}catch(h){i.uid=String(o.uid),i.name=String((V=o.name)!=null?V:""),i.alias=String((A=o.alias)!=null?A:""),i.description=String((E=o.description)!=null?E:""),p.ElMessage.warning("拉取控制码详情失败,已使用列表行数据编辑")}finally{x.value=!1}})}function ce(){return _(this,null,function*(){var a;if(!((a=i.name)!=null&&a.trim())){p.ElMessage.warning("请填写控制码名称");return}const o=F(i.script,"[]"),t=F(i.template,"[]");if(o===null||t===null){p.ElMessage.error("脚本或模板不是合法 JSON");return}x.value=!0;try{yield B.api.post("control_create",{name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:o,template:t},!0),p.ElMessage.success("添加成功"),D.value=!1,yield N()}catch(n){p.ElMessage.error("添加失败")}finally{x.value=!1}})}function pe(){return _(this,null,function*(){var a;if(!((a=i.name)!=null&&a.trim())){p.ElMessage.warning("请填写控制码名称");return}const o=F(i.script,"[]"),t=F(i.template,"[]");if(o===null||t===null){p.ElMessage.error("脚本或模板不是合法 JSON");return}x.value=!0;try{yield B.api.post("control_update",{id:i.id,uid:i.uid,name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:o,template:t},!0),p.ElMessage.success("保存成功"),z.value=!1,yield N()}catch(n){p.ElMessage.error("保存失败")}finally{x.value=!1}})}const P=e.ref(!1),H=e.ref(!1),v=e.ref(null);function me(o){if(o==null)return"";if(typeof o=="string")try{return JSON.stringify(JSON.parse(o),null,2)}catch(t){return o}try{return JSON.stringify(o,null,2)}catch(t){return String(o)}}const fe=e.computed(()=>v.value?me(v.value.script):"");function ge(o){return _(this,null,function*(){v.value=null,P.value=!0,H.value=!0;try{const t=yield B.api.post("control_item",{uid:o.uid},!0),a=t==null?void 0:t.result;a&&typeof a=="object"?v.value=a:(v.value=J({},o),p.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){v.value=J({},o),p.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{H.value=!1}})}function ve(o){p.ElMessageBox.confirm(`确认对控制码「${o.name||o.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{p.ElMessage.success("已提交备档(完整流程请在 mixui 控制码管理中操作)")}).catch(()=>{})}function Ve(o){p.ElMessageBox.confirm(`确认删除控制码「${o.name||o.uid}」吗?`,"警告",{type:"warning"}).then(()=>_(null,null,function*(){try{yield B.api.post("control_delete",{uid:o.uid,id:o.id},!0),p.ElMessage.success("删除成功"),yield N()}catch(t){p.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{N()}),(o,t)=>{const a=f.ElIcon,n=f.ElInput,d=f.ElOption,u=f.ElSelect,r=f.ElButton,y=f.ElTableColumn,k=f.ElTable,I=f.ElPagination,V=f.ElFormItem,A=f.ElForm,E=f.ElDialog,h=f.ElDescriptionsItem,b=f.ElDescriptions,S=f.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-list mix-component",e.unref(R)]),style:e.normalizeStyle(e.unref($))},[e.unref(w).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(O.value)},e.toDisplayString(m.conf.caption||m.conf.name),5)),e.createElementVNode("div",_e,[e.createElementVNode("div",Be,[e.createVNode(n,{modelValue:U.value,"onUpdate:modelValue":t[0]||(t[0]=l=>U.value=l),placeholder:"搜索控制码",size:"small",class:"toolbar-search",onKeyup:e.withKeys(Q,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(a,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(ke.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(u,{modelValue:j.value,"onUpdate:modelValue":t[1]||(t[1]=l=>j.value=l),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(d,{label:"控制码名称",value:"name"}),e.createVNode(d,{label:"控制码编号",value:"uid"}),e.createVNode(d,{label:"控制码别名",value:"alias"}),e.createVNode(d,{label:"描述",value:"description"})]),_:1},8,["modelValue"]),e.createVNode(r,{type:"primary",onClick:Q},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(r,{onClick:ne},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(w).showAddBtn?(e.openBlock(),e.createBlock(r,{key:0,type:"success",onClick:de},{default:e.withCtx(()=>[...t[21]||(t[21]=[e.createTextVNode("添加控制码",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:T,class:"table-wrapper"},[e.createVNode(k,{data:oe.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(le.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(y,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(q=>[e.createElementVNode("span",null,e.toDisplayString(ae(q.row,l.prop)),1)]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(y,{label:"操作","min-width":"220",fixed:"right"},{default:e.withCtx(l=>[e.unref(w).showViewBtn?(e.openBlock(),e.createBlock(r,{key:0,size:"small",onClick:q=>ge(l.row)},{default:e.withCtx(()=>[...t[22]||(t[22]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showEditBtn?(e.openBlock(),e.createBlock(r,{key:1,size:"small",type:"primary",onClick:q=>ue(l.row)},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showArchiveBtn?(e.openBlock(),e.createBlock(r,{key:2,size:"small",type:"info",onClick:q=>ve(l.row)},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showDeleteBtn?(e.openBlock(),e.createBlock(r,{key:3,size:"small",type:"danger",onClick:q=>Ve(l.row)},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",Ee,[e.createVNode(I,{"current-page":g.current,"onUpdate:currentPage":t[2]||(t[2]=l=>g.current=l),"page-size":g.pageSize,"onUpdate:pageSize":t[3]||(t[3]=l=>g.pageSize=l),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:g.total,onSizeChange:re,onCurrentChange:se},null,8,["current-page","page-size","total"])])]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[S,K.value]]),e.createVNode(E,{modelValue:D.value,"onUpdate:modelValue":t[9]||(t[9]=l=>D.value=l),title:"添加控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[8]||(t[8]=l=>D.value=!1)},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",loading:x.value,onClick:ce},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(A,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(V,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.name,"onUpdate:modelValue":t[4]||(t[4]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.alias,"onUpdate:modelValue":t[5]||(t[5]=l=>i.alias=l),placeholder:"可选"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.description,"onUpdate:modelValue":t[6]||(t[6]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.script,"onUpdate:modelValue":t[7]||(t[7]=l=>i.script=l),type:"textarea",rows:8,placeholder:"JSON 数组,默认 []"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:z.value,"onUpdate:modelValue":t[16]||(t[16]=l=>z.value=l),title:"编辑控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[15]||(t[15]=l=>z.value=!1)},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",loading:x.value,onClick:pe},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(A,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(V,{label:"控制码编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.uid,"onUpdate:modelValue":t[10]||(t[10]=l=>i.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.name,"onUpdate:modelValue":t[11]||(t[11]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.alias,"onUpdate:modelValue":t[12]||(t[12]=l=>i.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.description,"onUpdate:modelValue":t[13]||(t[13]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.script,"onUpdate:modelValue":t[14]||(t[14]=l=>i.script=l),type:"textarea",rows:8},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:P.value,"onUpdate:modelValue":t[18]||(t[18]=l=>P.value=l),title:"控制码详情",width:"720px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(r,{type:"primary",onClick:t[17]||(t[17]=l=>P.value=!1)},{default:e.withCtx(()=>[...t[31]||(t[31]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Te,[v.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(b,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(h,{label:"控制码编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"控制码名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"控制码别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"更新时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.description)!=null?l:""),1)]}),_:1})]),_:1}),t[30]||(t[30]=e.createElementVNode("div",{class:"view-block-title"},"控制码脚本",-1)),e.createVNode(n,{"model-value":fe.value,type:"textarea",rows:10,readonly:""},null,8,["model-value"])],64)):e.createCommentVNode("",!0)])),[[S,H.value]])]),_:1},8,["modelValue"])],64)}}})),Le=B._export_sfc(Ue,[["__scopeId","data-v-27ad520d"]]);exports.default=Le;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var Z=Object.defineProperty,ee=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var P=(c,i,r)=>i in c?Z(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,j=(c,i)=>{for(var r in i||(i={}))oe.call(i,r)&&P(c,r,i[r]);if(M)for(var r of M(i))ae.call(i,r)&&P(c,r,i[r]);return c},F=(c,i)=>ee(c,te(i));var D=(c,i,r)=>new Promise((k,_)=>{var E=b=>{try{g(r.next(b))}catch(v){_(v)}},B=b=>{try{g(r.throw(b))}catch(v){_(v)}},g=b=>b.done?k(b.value):Promise.resolve(b.value).then(E,B);g((r=r.apply(c,i)).next())});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/loading/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),I=require("./useMixiotPanelSurface-BMNrWBMF.cjs"),le=require("./BaseComponent-CNXUpPY1.cjs"),R=require("./index-D8dh_6Qd.cjs"),ie=require("./titleStyle-NSnz6cUg.cjs"),y=require("element-plus"),ne=require("@element-plus/icons-vue"),re=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),$=require("./ele-lst-icon-CrxnHZ-A.cjs"),se={class:"mix-body"},ce={class:"toolbar"},de={key:1},ue={class:"pagination"},pe={DEFAULT_ICON:$.DEFAULT_ICON,ACTIVE_ICON:$.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordList",ORDER:4},me={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"object_id",label:"对象编号",width:140,visible:!0},{key:"created_by",label:"用户名",width:120,visible:!0},{key:"command",label:"控制码指令",width:140,visible:!0},{key:"command_name",label:"指令名称",width:140,visible:!0},{key:"value",label:"控制值",width:120,visible:!0},{key:"status",label:"下发状态",width:100,visible:!0},{key:"created",label:"控制时间",width:180,visible:!0}]},K=[{name:"控制记录",fv:"",object_id:"",unit:"",default:"",isText:!1,showExportBtn:!0,object_id_label:"对象编号",object_id_visible:!0,created_by:"用户名",created_by_visible:!0,command:"控制码指令",command_visible:!0,command_name:"指令名称",command_name_visible:!0,value:"控制值",value_visible:!0,status:"下发状态",status_visible:!0,created:"控制时间",created_visible:!0}],be=[{key:"showExportBtn",label:"导出按钮",type:"checkbox",group:"命令组"},{key:"name",label:"参数名称"},{key:"object_id_label",label:"对象编号",checkable:!0,checkboxKey:"object_id_visible"},{key:"created_by",label:"用户名",checkable:!0,checkboxKey:"created_by_visible"},{key:"command",label:"控制码指令",checkable:!0,checkboxKey:"command_visible"},{key:"command_name",label:"指令名称",checkable:!0,checkboxKey:"command_name_visible"},{key:"value",label:"控制值",checkable:!0,checkboxKey:"value_visible"},{key:"status",label:"下发状态",checkable:!0,checkboxKey:"status_visible"},{key:"created",label:"控制时间",checkable:!0,checkboxKey:"created_visible"}],_e=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ge={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"object_id",label:"setting.gridFields.objectId"},{value:"created_by",label:"setting.gridFields.createdBy"},{value:"command",label:"setting.gridFields.commandCode"},{value:"command_name",label:"setting.gridFields.commandName"}]},ve={DEFAULT:pe,OPTIONS:me,DATA:K,PARAMS:be,SOURCE:_e,COMMON:ge},he=e.defineComponent(F(j({},ve),{__name:"controlRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(c){const i=c;class r extends le.BaseComponent{getDataBool(t,o){var n,p;const l=(p=(n=this.props.conf)==null?void 0:n.data)==null?void 0:p[0];return l&&Object.prototype.hasOwnProperty.call(l,t)&&l[t]!==void 0?!!l[t]:this.getOptionValue(t,o)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showExportBtn:this.getDataBool("showExportBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(K));else{const o=this.props.conf.data[0];o.showExportBtn===void 0&&(o.showExportBtn=!0);const l={object_id_visible:!0,created_by_visible:!0,command_visible:!0,command_name_visible:!0,value_visible:!0,status_visible:!0,created_visible:!0};for(const[n,p]of Object.entries(l))o[n]===void 0&&(o[n]=p)}}}const k=new r(i,"controlRecordList");k.setupLifecycle();const _=k.getStyle(),{mixiotPanelClass:E,mixiotPanelRootStyle:B}=I.useMixiotPanelSurface(_),{tableWrapRef:g,tableBodyHeight:b}=I.useTableBodyHeight(),v=e.computed(()=>ie.generateTitleStyle(i.conf.options)),U=e.computed(()=>{var o,l,n,p;const a=((l=(o=i.conf)==null?void 0:o.options)==null?void 0:l.columns)||[],t=((p=(n=i.conf)==null?void 0:n.data)==null?void 0:p[0])||{};return(Array.isArray(a)?a:[]).map(d=>{var V;let S=d.key;d.key==="object_id"&&(S="object_id_label");const f=(V=t[S])!=null?V:t[d.key],O=d.key==="object_id"?"object_id_visible":`${d.key}_visible`,x=t[O];return{prop:d.key,label:f!==void 0&&f!==""?String(f):d.label,width:d.width,minWidth:d.minWidth,visible:x!==void 0?!!x:d.visible!==!1}})}),u=e.reactive({current:1,pageSize:10,total:0}),w=e.ref(""),N=e.ref("object_id"),C=e.ref([]),T=e.ref(!1);function H(){const a={page_index:u.current,page_size:u.pageSize},t=[],o=w.value.trim();return o&&t.push([N.value,"like",`%${o}%`]),re.appendCommonDesignerWhereAnd(i.conf.common,t),t.length&&(a.where_and=JSON.stringify(t)),a}function A(a){const t=a.error;return t===""||t===null||t===void 0}function h(){return D(this,null,function*(){var a;T.value=!0;try{const t=yield R.api.post("get_control_record_list",H(),!0),o=(a=t==null?void 0:t.result)!=null?a:t,l=Array.isArray(o==null?void 0:o.data)?o.data:[];C.value=l.map(p=>j({},p));const n=o==null?void 0:o.total_records;u.total=typeof n=="number"?n:l.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[controlRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),C.value=[],u.total=0}finally{T.value=!1}})}const W=e.computed(()=>C.value);function J(a,t){const o=a[t];return o==null?"":String(o)}function L(){u.current=1,h()}function Q(){w.value="",u.current=1,h()}function Y(){u.current=1,h()}function G(){h()}function z(a){const t=o=>String(o).padStart(2,"0");return`${a.getFullYear()}-${t(a.getMonth()+1)}-${t(a.getDate())} ${t(a.getHours())}:${t(a.getMinutes())}:${t(a.getSeconds())}`}function X(){return D(this,null,function*(){const a=[...new Set(C.value.map(l=>{var n;return String((n=l.object_id)!=null?n:"").trim()}).filter(Boolean))];if(!a.length){y.ElMessage.warning("当前列表无对象编号,请加载记录后再导出");return}const t=new Date,o=new Date(t.getTime()-168*3600*1e3);try{yield y.ElMessageBox.confirm(`将按最近 7 天、当前已加载列表中的 ${a.length} 个对象编号发起导出任务,是否继续?`,"导出控制记录",{type:"info"})}catch(l){return}try{const l=yield R.api.post("export_control_record",{file_name:`control_record_${z(t).replace(/[: ]/g,"_")}`,start_time:z(o),end_time:z(t),object_ids:a},!0);if(l.code!==void 0&&l.code!==200){y.ElMessage.warning(l.msg||l.info||"导出请求未成功");return}y.ElMessage.success("导出任务已提交")}catch(l){y.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{h()}),(a,t)=>{const o=m.ElIcon,l=m.ElInput,n=m.ElOption,p=m.ElSelect,d=m.ElButton,S=m.ElTag,f=m.ElTableColumn,O=m.ElTable,x=m.ElPagination,V=m.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list mix-component",e.unref(E)]),style:e.normalizeStyle(e.unref(B))},[e.unref(_).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(v.value)},e.toDisplayString(c.conf.caption||c.conf.name),5)),e.createElementVNode("div",se,[e.createElementVNode("div",ce,[e.createVNode(l,{modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=s=>w.value=s),placeholder:"搜索控制记录",size:"small",class:"toolbar-search",onKeyup:e.withKeys(L,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(ne.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(p,{modelValue:N.value,"onUpdate:modelValue":t[1]||(t[1]=s=>N.value=s),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(n,{label:"对象编号",value:"object_id"}),e.createVNode(n,{label:"用户名",value:"created_by"}),e.createVNode(n,{label:"控制码指令",value:"command"}),e.createVNode(n,{label:"指令名称",value:"command_name"})]),_:1},8,["modelValue"]),e.createVNode(d,{type:"primary",onClick:L},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(d,{onClick:Q},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(_).showExportBtn?(e.openBlock(),e.createBlock(d,{key:0,type:"success",onClick:X},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:g,class:"table-wrapper"},[e.createVNode(O,{data:W.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(b)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,s=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s.prop},[s.visible?(e.openBlock(),e.createBlock(f,{key:0,prop:s.prop,label:s.label,width:s.width,"min-width":s.minWidth},{default:e.withCtx(q=>[s.prop==="status"?(e.openBlock(),e.createBlock(S,{key:0,type:A(q.row)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A(q.row)?"成功":"失败"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",de,e.toDisplayString(J(q.row,s.prop)),1))]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128))]),_:1},8,["data","height"])],512),e.createElementVNode("div",ue,[e.createVNode(x,{"current-page":u.current,"onUpdate:currentPage":t[2]||(t[2]=s=>u.current=s),"page-size":u.pageSize,"onUpdate:pageSize":t[3]||(t[3]=s=>u.pageSize=s),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:u.total,onSizeChange:Y,onCurrentChange:G},null,8,["current-page","page-size","total"])])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],6)),[[V,T.value]])}}})),fe=R._export_sfc(he,[["__scopeId","data-v-d8b42ab6"]]);exports.default=fe;
|
package/dist/crd-CgxqxwKV.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var L=Object.defineProperty,D=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var _=(p,i,a)=>i in p?L(p,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):p[i]=a,b=(p,i)=>{for(var a in i||(i={}))j.call(i,a)&&_(p,a,i[a]);if(V)for(var a of V(i))R.call(i,a)&&_(p,a,i[a]);return p},I=(p,i)=>D(p,H(i));var O=(p,i,a)=>new Promise((S,m)=>{var c=u=>{try{f(a.next(u))}catch(y){m(y)}},C=u=>{try{f(a.throw(u))}catch(y){m(y)}},f=u=>u.done?S(u.value):Promise.resolve(u.value).then(c,C);f((a=a.apply(p,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),$=require("./BaseComponent-CNXUpPY1.cjs"),N=require("./index-D8dh_6Qd.cjs"),W=require("./titleStyle-NSnz6cUg.cjs"),B=require("./ele-crd-icon-BvNgAPKW.cjs"),M={class:"card-item-inner"},U={class:"value-main"},q={key:0,class:"value-unit"},G="--",J={DEFAULT_ICON:B.DEFAULT_ICON,ACTIVE_ICON:B.ACTIVE_ICON,NAME_CN:"基础卡片",NAME_EN:"Card",ORDER:1},K={titleColor:"#111",titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,labelColor:"#111",textColor:"#111",bgColor:"#fff",valueSize:28,nameSize:14,radiusSize:8,isHideTitle:!0,showTopGradient:!1,topGradientStart:{value:"#f5a623",type:"color",label:"component.options.topGradientStart",dependent:"showTopGradient"},topGradientHeight:{value:2,type:"number",min:1,max:16,label:"component.options.topGradientHeight",dependent:"showTopGradient"},topGradientPosition:{value:"cardItem",type:"select",label:"component.options.topGradientPosition",dependent:"showTopGradient",options:[{label:"component.options.topGradientPosition_cardItem",value:"cardItem"},{label:"component.options.topGradientPosition_aboveTitle",value:"aboveTitle"}]},showBgIcon:!1,defaultBgIcon:{value:"",type:"text",label:"component.options.defaultBgIcon",dependent:"showBgIcon"},bgIconOpacity:{value:.06,type:"number",min:0,max:1,step:.01,label:"component.options.bgIconOpacity",dependent:"showBgIcon"},bgIconSize:{value:40,type:"number",min:8,max:120,label:"component.options.bgIconSize",dependent:"showBgIcon"},bgIconPosition:{value:"right",type:"select",label:"component.options.bgIconPosition",dependent:"showBgIcon",options:[{label:"component.options.bgIconPosition_right",value:"right"},{label:"component.options.bgIconPosition_left",value:"left"}]},paramsLayout:{value:"horizontal",type:"select",label:"component.options.paramsLayout",options:[{label:"component.options.paramsLayout_horizontal",value:"horizontal"},{label:"component.options.paramsLayout_vertical",value:"vertical"}]}},Q=[{name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1,valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"}],X=["name","fv","object_id","unit","default","isText",{key:"valueFontSize",type:"number",label:"component.options.crdValueFontSize",group:"component.options.crdGroupCellStyle",groupCollapsedByDefault:!0,min:0,max:120},{key:"nameFontSize",type:"number",label:"component.options.crdNameFontSize",group:"component.options.crdGroupCellStyle",min:0,max:120},{key:"valueTextColor",type:"color",label:"component.options.crdValueTextColor",group:"component.options.crdGroupCellStyle"},{key:"valueAlign",type:"select",label:"component.options.crdValueAlign",group:"component.options.crdGroupCellStyle",options:[{label:"component.options.crdValueAlign_left",value:"left"},{label:"component.options.crdValueAlign_center",value:"center"},{label:"component.options.crdValueAlign_right",value:"right"}]},{key:"nameTextColor",type:"color",label:"component.options.crdNameTextColor",group:"component.options.crdGroupCellStyle"},{key:"areaWeight",type:"number",label:"component.options.crdAreaWeight",group:"component.options.crdGroupCellStyle",min:1,max:32},{key:"cellPadding",type:"number",label:"component.options.crdCellPadding",group:"component.options.crdGroupCellStyle",min:0,max:64}],Y=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],Z={useAlias:!1,multiObject:!1,source:"mosaic",object_id:"",object_alias:""},ee={DEFAULT:J,OPTIONS:K,DATA:Q,PARAMS:X,SOURCE:Y,COMMON:Z},te=t.defineComponent(I(b({},ee),{__name:"crd",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const i={valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"},a=p;class S extends $.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),labelColor:this.getOptionValue("labelColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",14),valueSize:this.getOptionValue("valueSize",28),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0),showTopGradient:this.getOptionValue("showTopGradient",!1),topGradientStart:this.getOptionValue("topGradientStart","#f5a623"),topGradientHeight:this.getOptionValue("topGradientHeight",2),topGradientPosition:this.getOptionValue("topGradientPosition","cardItem"),showBgIcon:this.getOptionValue("showBgIcon",!1),defaultBgIcon:this.getOptionValue("defaultBgIcon",""),bgIconOpacity:this.getOptionValue("bgIconOpacity",.06),bgIconSize:this.getOptionValue("bgIconSize",40),bgIconPosition:this.getOptionValue("bgIconPosition","right"),paramsLayout:this.getOptionValue("paramsLayout","horizontal")}}init(){return O(this,null,function*(){var o;this.Style.value=this.extractStyles(),this.applyTheme();const n={name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1};if(!((o=this.props.conf.data)!=null&&o.length))this.props.conf.data=[b(b({},n),i)];else for(const l of this.props.conf.data)if(!(!l||typeof l!="object"))for(const[r,s]of Object.entries(i))l[r]===void 0&&(l[r]=s)})}setHistoryData(n){if(!n)return;const{data:o}=this.props.conf;!Array.isArray(o)||!o.length||o.forEach((l,r)=>{var s,g;try{const d=(g=(s=n==null?void 0:n.history)==null?void 0:s[r])==null?void 0:g[0];if(!d)return;const z=l==null?void 0:l.fv;if(!z)return;const v=d==null?void 0:d[z];v!=null&&(l.value=v)}catch(d){}})}}const m=new S(a,"crd");m.setupLifecycle();const c=m.getStyle(),C=t.computed(()=>W.generateTitleStyle(a.conf.options)),f=t.computed(()=>{const e=C.value||{},n=parseFloat(String(e.fontSize||"14"))||14,o=String(e.padding||"").split(" ").filter(Boolean),l=o.length>0&&parseFloat(o[0])||0,r=Math.ceil(n*1.5),s=Math.max(0,r+l*2);return I(b({},e),{minHeight:`${s}px`})}),u=t.computed(()=>{const e=c.value,n=Number(e.topGradientHeight)||2,o=e.topGradientStart||"#f5a623";return{height:`${n}px`,background:`linear-gradient(90deg, ${o}, transparent)`}}),y=t.computed(()=>{const e=c.value;return!!e.showTopGradient&&e.topGradientPosition==="aboveTitle"}),k=t.computed(()=>{const e=c.value;return!!e.showTopGradient&&e.topGradientPosition!=="aboveTitle"}),A=t.computed(()=>c.value.paramsLayout==="vertical"),E=t.computed(()=>{var o;const e=c.value,n=e.bgIconPosition==="right";return{opacity:(o=e.bgIconOpacity)!=null?o:.06,fontSize:`${Number(e.bgIconSize)||40}px`,display:"flex",alignItems:"center",justifyContent:n?"flex-end":"flex-start",paddingRight:n?"12px":void 0,paddingLeft:n?void 0:"12px"}});function P(e){const n=Number(e==null?void 0:e.areaWeight),o=Number.isFinite(n)&&n>0?n:1,l=Number(e==null?void 0:e.cellPadding),r={flex:`${o} 1 0`,minWidth:"0",minHeight:"0"};return Number.isFinite(l)&&l>0&&(r.padding=`${l}px`),r}function w(e){const n=c.value,o=Number(e==null?void 0:e.valueFontSize),l=Number.isFinite(o)&&o>0?o:n.valueSize,r=typeof(e==null?void 0:e.valueTextColor)=="string"?e.valueTextColor.trim():"",s=e==null?void 0:e.valueAlign,g=s==="left"||s==="right"||s==="center"?s:"center",d=g==="left"?"flex-start":g==="right"?"flex-end":"center";return{color:r||n.textColor,fontSize:`${l}px`,width:"100%",justifyContent:d,textAlign:g}}function F(e){const n=c.value,o=Number(e==null?void 0:e.nameFontSize),l=Number.isFinite(o)&&o>0?o:n.nameSize;return{color:(typeof(e==null?void 0:e.nameTextColor)=="string"?e.nameTextColor.trim():"")||n.labelColor,fontSize:`${l}px`}}function T(){const e=c.value.defaultBgIcon,n=typeof e=="string"?e.trim():"";return n?N.decodeIconFromStorage(n):""}const h=e=>{var r,s,g,d;if(!e)return{value:G,name:"--",unit:""};const n=(r=e.name)!=null?r:"",o=typeof e.unit=="string"?e.unit.trim():"";return e.isText?{value:(((s=e.flag)==null?void 0:s.find(v=>String(v.code)==String(e.value)))||{}).text||G,name:n,unit:o}:{value:(d=(g=e.value)!=null?g:e.default)!=null?d:0,name:n,unit:o}},x=a.conf;return(e,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(c).bgColor,borderRadius:t.unref(c).radiusSize+"px"})},[y.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mix-component-top-gradient",style:t.normalizeStyle(u.value)},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(f.value)},t.toDisplayString(t.unref(x).caption||t.unref(x).name),5),t.createElementVNode("div",{class:t.normalizeClass(["mix-body",{"mix-body--params-vertical":A.value}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(x).data,(o,l)=>(t.openBlock(),t.createElementBlock("div",{key:l,class:"card-item",style:t.normalizeStyle(P(o))},[t.createElementVNode("div",{class:"card-item-surface",style:t.normalizeStyle({background:t.unref(c).bgColor})},null,4),k.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card-item-top-gradient",style:t.normalizeStyle(u.value)},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",M,[t.createElementVNode("div",{class:"value",style:t.normalizeStyle(w(o))},[t.createElementVNode("span",U,t.toDisplayString(h(o).value),1),h(o).unit?(t.openBlock(),t.createElementBlock("span",q,t.toDisplayString(h(o).unit),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:"name",style:t.normalizeStyle(F(o))},t.toDisplayString(h(o).name),5)])],4))),128)),t.unref(c).showBgIcon&&T()?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mix-body-bg-icon",style:t.normalizeStyle(E.value)},t.toDisplayString(T()),5)):t.createCommentVNode("",!0)],2),t.renderSlot(e.$slots,"default",{},void 0,!0)],4))}})),oe=N._export_sfc(te,[["__scopeId","data-v-da371c91"]]);exports.default=oe;
|
package/dist/ctrBtn-BSJ9c7Pt.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var j=Object.defineProperty,R=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols,H=Object.getPrototypeOf,$=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,Z=Reflect.get;var O=(n,l,o)=>l in n?j(n,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[l]=o,A=(n,l)=>{for(var o in l||(l={}))$.call(l,o)&&O(n,o,l[o]);if(N)for(var o of N(l))U.call(l,o)&&O(n,o,l[o]);return n},B=(n,l)=>R(n,q(l));var F=(n,l,o)=>Z(H(n),o,l);var M=(n,l,o)=>new Promise((g,u)=>{var p=i=>{try{f(o.next(i))}catch(s){u(s)}},h=i=>{try{f(o.throw(i))}catch(s){u(s)}},f=i=>i.done?g(i.value):Promise.resolve(i.value).then(p,h);f((o=o.apply(n,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const G=require("./BaseComponent-CNXUpPY1.cjs"),x=require("./index-D8dh_6Qd.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),T=require("./mix-control-modal-BoYynGT2.cjs"),L=require("element-plus"),K="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-213.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M225.674156,1208.89481%20C225.944595,1209.04924%20226.205387,1209.21954%20226.455068,1209.40467%20C226.881095,1209.72052%20227.273774,1210.07876%20227.626647,1210.47337%20C228.878628,1211.87353%20229.582251,1213.67438%20229.582251,1215.58182%20C229.582251,1219.84629%20226.083331,1223.3%20221.771264,1223.3%20C217.459198,1223.3%20213.960278,1219.84629%20213.960278,1215.58182%20C213.960278,1213.67437%20214.663898,1211.87352%20215.9159,1210.47335%20C216.268755,1210.07876%20216.661433,1209.72052%20217.087434,1209.40469%20C217.337142,1209.21954%20217.597933,1209.04924%20217.868372,1208.89481%20C218.16979,1208.7227%20218.55366,1208.82753%20218.725771,1209.12895%20C218.897882,1209.43036%20218.793058,1209.81423%20218.49164,1209.98634%20C218.264609,1210.11598%20218.045681,1210.25894%20217.836048,1210.41438%20C217.478472,1210.67948%20217.148907,1210.98015%20216.85287,1211.31119%20C215.804685,1212.48343%20215.217218,1213.98699%20215.217218,1215.58182%20C215.217218,1219.14841%20218.149754,1222.04306%20221.771264,1222.04306%20C225.392775,1222.04306%20228.32531,1219.14841%20228.32531,1215.58182%20C228.32531,1213.987%20227.73784,1212.48344%20226.689675,1211.31121%20C226.393622,1210.98015%20226.064056,1210.67948%20225.706453,1210.41436%20C225.496847,1210.25894%20225.27792,1210.11598%20225.050889,1209.98634%20C224.749471,1209.81423%20224.644647,1209.43036%20224.816758,1209.12895%20C224.988868,1208.82753%20225.372739,1208.7227%20225.674156,1208.89481%20Z%20M221.771264,1207.3%20C222.089434,1207.3%20222.352382,1207.53643%20222.393997,1207.84319%20L222.399735,1207.92847%20L222.399735,1215.48901%20C222.399735,1215.83611%20222.118359,1216.11748%20221.771264,1216.11748%20C221.453094,1216.11748%20221.190147,1215.88105%20221.148531,1215.57429%20L221.142794,1215.48901%20L221.142794,1207.92847%20C221.142794,1207.58138%20221.42417,1207.3%20221.771264,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",W="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e按钮%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M115.0528,1208.89481%20C115.323239,1209.04924%20115.58403,1209.21954%20115.833711,1209.40467%20C116.259739,1209.72052%20116.652418,1210.07876%20117.00529,1210.47337%20C118.257271,1211.87353%20118.960894,1213.67438%20118.960894,1215.58182%20C118.960894,1219.84629%20115.461974,1223.3%20111.149908,1223.3%20C106.837841,1223.3%20103.338921,1219.84629%20103.338921,1215.58182%20C103.338921,1213.67437%20104.042541,1211.87352%20105.294544,1210.47335%20C105.647398,1210.07876%20106.040077,1209.72052%20106.466077,1209.40469%20C106.715786,1209.21954%20106.976577,1209.04924%20107.247016,1208.89481%20C107.548433,1208.7227%20107.932304,1208.82753%20108.104414,1209.12895%20C108.276525,1209.43036%20108.171701,1209.81423%20107.870284,1209.98634%20C107.643252,1210.11598%20107.424325,1210.25894%20107.214692,1210.41438%20C106.857116,1210.67948%20106.52755,1210.98015%20106.231514,1211.31119%20C105.183328,1212.48343%20104.595862,1213.98699%20104.595862,1215.58182%20C104.595862,1219.14841%20107.528398,1222.04306%20111.149908,1222.04306%20C114.771418,1222.04306%20117.703954,1219.14841%20117.703954,1215.58182%20C117.703954,1213.987%20117.116484,1212.48344%20116.068318,1211.31121%20C115.772265,1210.98015%20115.4427,1210.67948%20115.085097,1210.41436%20C114.875491,1210.25894%20114.656563,1210.11598%20114.429532,1209.98634%20C114.128115,1209.81423%20114.023291,1209.43036%20114.195401,1209.12895%20C114.367512,1208.82753%20114.751382,1208.7227%20115.0528,1208.89481%20Z%20M111.149908,1207.3%20C111.468078,1207.3%20111.731026,1207.53643%20111.772641,1207.84319%20L111.778378,1207.92847%20L111.778378,1215.48901%20C111.778378,1215.83611%20111.497002,1216.11748%20111.149908,1216.11748%20C110.831738,1216.11748%20110.56879,1215.88105%20110.527175,1215.57429%20L110.521438,1215.48901%20L110.521438,1207.92847%20C110.521438,1207.58138%20110.802813,1207.3%20111.149908,1207.3%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Y={class:"font-semibold"},Q={class:"mix-body"},X={class:"w-full flex flex-wrap content-start"},e2=["onClick"],t2={DEFAULT_ICON:K,ACTIVE_ICON:W,NAME_CN:"按键",NAME_EN:"Button",ORDER:2},o2={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,method:{value:"alway",type:"select",label:"component.switch.method",options:x.CONTROL_OPTIONS}},I=[{command:"Control_01",name:"关机",color:"#c92309",code:"0"},{command:"Control_01",name:"开机",color:"#217406",code:"1"}],l2=["name","command","color","code"],n2=["mosaic"],r2={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},a2={DEFAULT:t2,OPTIONS:o2,DATA:I,PARAMS:l2,SOURCE:n2,COMMON:r2},s2=e.defineComponent(B(A({},a2),{__name:"ctrBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""},authorized:{type:Array,default:()=>[]}},setup(n){const l=n,o=e.reactive({authorized:[],password:""}),g=e.reactive({rule:"",code:"",command:""}),u=e.reactive({text:"",color:""}),p=e.ref(null),h=e.ref(!0);class f extends G.BaseComponent{extractStyles(){var r,a,m,v,c,C,y,b,_,k,z,E;const{options:t}=this.props.conf;return{bgColor:((r=t==null?void 0:t.bgColor)==null?void 0:r.value)||"#fff",titleColor:((a=t==null?void 0:t.titleColor)==null?void 0:a.value)||"#111",textColor:((m=t==null?void 0:t.textColor)==null?void 0:m.value)||"#fff",titleSize:((v=t==null?void 0:t.titleSize)==null?void 0:v.value)||16,textSize:((c=t==null?void 0:t.textSize)==null?void 0:c.value)||14,itemHeight:((C=t==null?void 0:t.itemHeight)==null?void 0:C.value)||42,radiusSize:(b=(y=t==null?void 0:t.radiusSize)==null?void 0:y.value)!=null?b:8,items:(k=(_=t==null?void 0:t.items)==null?void 0:_.value)!=null?k:2,isHideTitle:(E=(z=t==null?void 0:t.isHideTitle)==null?void 0:z.value)!=null?E:!1}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:I}onPreview(){return M(this,null,function*(){yield F(f.prototype,this,"onPreview").call(this);const t=yield T.getAuthorized(this.props);o.authorized=t.authorized,o.password=t.password})}setSocketData(t){var m,v;if(!t)return;const{common:r}=this.props.conf,a=this.extractDataValue(t,r.statusFv);if(a!=null){const c=r.status.find(C=>String(C.code)===String(a));u.text=(m=c==null?void 0:c.text)!=null?m:"",u.color=(v=c==null?void 0:c.color)!=null?v:""}}}const i=new f(l,"ctrBtn");i.setupLifecycle();const s=i.getStyle(),D=e.computed(()=>J.generateTitleStyle(l.conf.options)),P=e.computed(()=>`${(100/s.value.items).toFixed(2)||100}%`),w=d=>o.authorized.indexOf(d.command)===-1,V=d=>{var a;if(w(d)){L.ElMessage.warning("无权限操作");return}const{options:t}=l.conf;let r=((a=t==null?void 0:t.method)==null?void 0:a.value)||"alway";g.rule=r,g.code=String(d.code),g.command=d.command,r==="alway"||r==="once"&&h.value?p.value.modal.visible=!0:S()},S=()=>{const{code:d,rule:t,command:r}=g,{common:a}=l.conf,m=JSON.parse(sessionStorage.getItem(x.ALIAS_MAPPING_KEY)||"{}");let c={block_mapping:"pusher",action:"publish_command",object_id:a.useAlias?m[a.object_alias]:a.object_id||l.uid,command:r,value:d,rule:t,control:o.password};x.api.platform(C=>{C.code===200&&(L.ElMessage.success(C.msg),p.value.modal.visible=!1,h.value=!1)},c)};return(d,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(s).bgColor,borderRadius:`${e.unref(s).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(D.value)},[e.createElementVNode("div",Y,e.toDisplayString(n.conf.caption||n.conf.name),1),u.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"status-btn",style:e.normalizeStyle({backgroundColor:u.color,color:e.unref(s).textColor})},e.toDisplayString(u.text),5)):e.createCommentVNode("",!0)],4),e.createElementVNode("div",Q,[e.createElementVNode("div",X,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.conf.data,(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:a,style:e.normalizeStyle({width:P.value,height:`${e.unref(s).itemHeight}px`,fontSize:`${e.unref(s).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:w(r)}]),style:e.normalizeStyle({backgroundColor:r.color,color:e.unref(s).textColor}),onClick:m=>V(r)},e.toDisplayString(r.name),15,e2)],4))),128))])]),e.renderSlot(d.$slots,"default",{},void 0,!0)],4),e.createVNode(T._sfc_main,{ref_key:"controlRef",ref:p,onSubmit:S,password:o.password},null,8,["password"])],64))}})),c2=x._export_sfc(s2,[["__scopeId","data-v-61464d09"]]);exports.default=c2;
|
package/dist/ctrSet-B9M4yI53.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var F=Object.defineProperty,L=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols,U=Object.getPrototypeOf,$=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,W=Reflect.get;var O=(l,o,a)=>o in l?F(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,w=(l,o)=>{for(var a in o||(o={}))$.call(o,a)&&O(l,a,o[a]);if(N)for(var a of N(o))H.call(o,a)&&O(l,a,o[a]);return l},z=(l,o)=>L(l,R(o));var A=(l,o,a)=>W(U(l),a,o);var T=(l,o,a)=>new Promise((f,y)=>{var c=s=>{try{r(a.next(s))}catch(d){y(d)}},E=s=>{try{r(a.throw(s))}catch(d){y(d)}},r=s=>s.done?f(s.value):Promise.resolve(s.value).then(c,E);r((a=a.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=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/input/style/css");const e=require("vue"),G=require("./BaseComponent-CNXUpPY1.cjs"),C=require("./index-D8dh_6Qd.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),D=require("./mix-control-modal-BoYynGT2.cjs"),I=require("element-plus"),M=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),K={class:"font-[600]"},Y={class:"font-[600] opacity-[0.7]"},Q={key:0,class:"ml-[12px] min-w-[70px]"},X={key:0,class:"submint"},Z={DEFAULT_ICON:M.DEFAULT_ICON,ACTIVE_ICON:M.ACTIVE_ICON,NAME_CN:"参数控件",NAME_EN:"Parameter Control",ORDER:1},ee={bgColor:"#fff",titleColor:"#111",textColor:"#111",titleSize:14,textSize:14,labelWidth:100,radiusSize:8,isHideTitle:!1,method:{value:"alway",type:"select",label:"component.params.verifyMethod",options:"CONTROL_OPTIONS"}},te=[{command:"Control_01",name:"参数一",unit:"",fv:""}],oe=["name","fv","command","unit"],le=["mosaic"],ae={useAlias:!1,multiObject:!1,hideMultiObject:!0},ne={DEFAULT:Z,OPTIONS:ee,DATA:te,PARAMS:oe,SOURCE:le,COMMON:ae},ie=e.defineComponent(z(w({},ne),{__name:"ctrSet",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""},socketData:{type:Object,default:()=>({})},authorized:{type:Array,default:()=>[]}},setup(l){const o=l,a="--";class f extends G.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),titleSize:this.getOptionValue("titleSize",14),textSize:this.getOptionValue("textSize",12),labelWidth:this.getOptionValue("labelWidth",100),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){this.Style.value=this.extractStyles(),this.applyTheme()}onPreview(){return T(this,null,function*(){yield A(f.prototype,this,"onPreview").call(this);const i=yield D.getAuthorized(this.props);r.authorized=i.authorized,r.password=i.password})}setSocketData(i){if(!i)return;const{data:n}=this.props.conf;n.forEach(m=>{const u=this.extractDataValue(i,m.fv);m.value=u!=null?u:a})}}const y=new f(o,"ctrSet");y.setupLifecycle();const c=y.getStyle(),E=e.computed(()=>J.generateTitleStyle(o.conf.options)),r=e.reactive({authorized:[],password:""}),s=e.ref([]),d=e.ref(null),k=e.ref(!0),h=e.computed(()=>{var t;return((t=o.conf.data)==null?void 0:t.length)===1}),q=t=>r.authorized.indexOf(t.command)===-1,S=e.computed(()=>s.value.filter(t=>t).length===0),j=e.computed(()=>{var i,n;const{data:t}=o.conf;return(((i=t==null?void 0:t[0])==null?void 0:i.value)||a)+" "+(((n=t==null?void 0:t[0])==null?void 0:n.unit)||"")}),V=()=>{var n;const{options:t}=o.conf,i=((n=t==null?void 0:t.method)==null?void 0:n.value)||"alway";i==="alway"||i==="once"&&k.value?d.value.modal.visible=!0:x()},x=()=>{var p,g;const{common:t,data:i,options:n}=o.conf,m=JSON.parse(sessionStorage.getItem(C.ALIAS_MAPPING_KEY)||"{}")||{},u=t.useAlias?m[t.object_alias]:t.object_id||o.uid;if(h.value){const b={block_mapping:"pusher",action:"publish_command",object_id:u,command:i[0].command,value:s.value[0],control:r.password,rule:((p=n==null?void 0:n.method)==null?void 0:p.value)||"alway"};C.api.platform(_=>{_.code===200&&(I.ElMessage.success(_.msg),d.value.modal.visible=!1,k.value=!1)},b)}else{const b=[];s.value.forEach((v,P)=>{v&&b.push({object_id:u,command:i[P].command,value:v})});const _={block_mapping:"pusher",action:"publish_command_plus",publishes:b,control:r.password,rule:((g=n==null?void 0:n.method)==null?void 0:g.value)||"alway"};C.api.platform(v=>{v.code===200&&(I.ElMessage.success(v.msg),d.value.modal.visible=!1,k.value=!1)},_)}};return(t,i)=>{const n=B.ElInput,m=B.ElButton;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[h.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",K,e.toDisplayString(l.conf.caption||l.conf.name),1),e.createElementVNode("div",{class:"w-[2px] h-[18px] mx-[12px] opacity-[0.7]",style:e.normalizeStyle({backgroundColor:e.unref(c).titleColor})},null,4),e.createElementVNode("div",Y,e.toDisplayString(j.value),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.conf.caption||l.conf.name),1)],64))],4),e.createElementVNode("div",{class:e.normalizeClass(["mix-body",e.unref(c).isHideTitle?"h-[100%]":"h-[calc(100%-42px)]"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(u,p)=>(e.openBlock(),e.createElementBlock("div",{class:"set-item",key:p,style:e.normalizeStyle({fontSize:`${e.unref(c).textSize}px`,color:e.unref(c).textColor})},[e.createElementVNode("div",{class:"item-name",style:e.normalizeStyle({width:`${e.unref(c).labelWidth}px`})},e.toDisplayString(u.name),5),e.createVNode(n,{modelValue:s.value[p],"onUpdate:modelValue":g=>s.value[p]=g,disabled:q(u)},null,8,["modelValue","onUpdate:modelValue","disabled"]),h.value?(e.openBlock(),e.createElementBlock("div",Q,[e.createVNode(m,{type:S.value?"default":"primary",style:{width:"100%"},onClick:V,disabled:S.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"item-value",style:e.normalizeStyle([{"margin-left":"12px"},{background:e.unref(c).bgColor}])},e.toDisplayString(u.value),5))],4))),128)),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",X,[e.createVNode(m,{type:S.value?"default":"primary",onClick:V,disabled:S.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("common.confirm")),1)]),_:1},8,["type","disabled"])]))],2),e.renderSlot(t.$slots,"default",{},void 0,!0)],4),e.createVNode(D._sfc_main,{ref_key:"controlRef",ref:d,onSubmit:x,password:r.password},null,8,["password"])],64)}}})),se=C._export_sfc(ie,[["__scopeId","data-v-f9f9d070"]]);exports.default=se;
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
var B = Object.defineProperty, Z = Object.defineProperties;
|
|
2
|
-
var V = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var E = Object.getOwnPropertySymbols, G = Object.getPrototypeOf, J = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable, Y = Reflect.get;
|
|
4
|
-
var M = (a, o, t) => o in a ? B(a, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[o] = t, N = (a, o) => {
|
|
5
|
-
for (var t in o || (o = {}))
|
|
6
|
-
J.call(o, t) && M(a, t, o[t]);
|
|
7
|
-
if (E)
|
|
8
|
-
for (var t of E(o))
|
|
9
|
-
K.call(o, t) && M(a, t, o[t]);
|
|
10
|
-
return a;
|
|
11
|
-
}, T = (a, o) => Z(a, V(o));
|
|
12
|
-
var F = (a, o, t) => Y(G(a), t, o);
|
|
13
|
-
var I = (a, o, t) => new Promise((d, u) => {
|
|
14
|
-
var w = (i) => {
|
|
15
|
-
try {
|
|
16
|
-
m(t.next(i));
|
|
17
|
-
} catch (p) {
|
|
18
|
-
u(p);
|
|
19
|
-
}
|
|
20
|
-
}, g = (i) => {
|
|
21
|
-
try {
|
|
22
|
-
m(t.throw(i));
|
|
23
|
-
} catch (p) {
|
|
24
|
-
u(p);
|
|
25
|
-
}
|
|
26
|
-
}, m = (i) => i.done ? d(i.value) : Promise.resolve(i.value).then(w, g);
|
|
27
|
-
m((t = t.apply(a, o)).next());
|
|
28
|
-
});
|
|
29
|
-
import { defineComponent as q, reactive as D, ref as j, computed as Q, openBlock as x, createElementBlock as y, Fragment as P, createElementVNode as c, normalizeStyle as v, unref as f, toDisplayString as R, renderList as W, normalizeClass as H, renderSlot as X, createVNode as e1 } from "vue";
|
|
30
|
-
import "html2canvas";
|
|
31
|
-
import { B as t1 } from "./BaseComponent-D5tlYehc.js";
|
|
32
|
-
import { O as o1, A as s1, a as a1, _ as l1 } from "./index-Bdq33405.js";
|
|
33
|
-
import { g as i1 } from "./titleStyle-BT5GlpAb.js";
|
|
34
|
-
import { _ as r1, g as n1 } from "./mix-control-modal-BBiKe4MM.js";
|
|
35
|
-
import { ElMessage as U } from "element-plus";
|
|
36
|
-
const c1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e开关%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-1145.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M1158.87913,103.913793%20C1160.85974,103.913793%201162.46533,105.51939%201162.46533,107.5%20C1162.46533,109.480615%201160.85974,111.086207%201158.87913,111.086207%20L1158.87913,111.086207%20L1150.05154,111.086207%20C1148.07093,111.086207%201146.46533,109.480613%201146.46533,107.5%20C1146.46533,105.519392%201148.07093,103.913793%201150.05154,103.913793%20L1150.05154,103.913793%20Z%20M1158.87913,105.201149%20L1150.05154,105.201149%20C1148.78192,105.201149%201147.75269,106.230379%201147.75269,107.5%20C1147.75269,108.769625%201148.78192,109.798851%201150.05154,109.798851%20L1150.05154,109.798851%20L1158.87913,109.798851%20C1160.14876,109.798851%201161.17798,108.769628%201161.17798,107.5%20C1161.17798,106.230376%201160.14875,105.201149%201158.87913,105.201149%20L1158.87913,105.201149%20Z%20M1158.60051,106.243295%20C1159.3115,106.243295%201159.88786,106.819654%201159.88786,107.530651%20C1159.88786,108.241648%201159.3115,108.818008%201158.60051,108.818008%20C1157.88951,108.818008%201157.31315,108.241648%201157.31315,107.530651%20C1157.31315,106.819654%201157.88951,106.243295%201158.60051,106.243295%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", d1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e开关%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-1145.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M1158.87913,103.913793%20C1160.85974,103.913793%201162.46533,105.51939%201162.46533,107.5%20C1162.46533,109.480615%201160.85974,111.086207%201158.87913,111.086207%20L1158.87913,111.086207%20L1150.05154,111.086207%20C1148.07093,111.086207%201146.46533,109.480613%201146.46533,107.5%20C1146.46533,105.519392%201148.07093,103.913793%201150.05154,103.913793%20L1150.05154,103.913793%20Z%20M1158.87913,105.201149%20L1150.05154,105.201149%20C1148.78192,105.201149%201147.75269,106.230379%201147.75269,107.5%20C1147.75269,108.769625%201148.78192,109.798851%201150.05154,109.798851%20L1150.05154,109.798851%20L1158.87913,109.798851%20C1160.14876,109.798851%201161.17798,108.769628%201161.17798,107.5%20C1161.17798,106.230376%201160.14875,105.201149%201158.87913,105.201149%20L1158.87913,105.201149%20Z%20M1158.60051,106.243295%20C1159.3115,106.243295%201159.88786,106.819654%201159.88786,107.530651%20C1159.88786,108.241648%201159.3115,108.818008%201158.60051,108.818008%20C1157.88951,108.818008%201157.31315,108.241648%201157.31315,107.530651%20C1157.31315,106.819654%201157.88951,106.243295%201158.60051,106.243295%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", u1 = { class: "mix-body" }, m1 = { class: "switch-wrap" }, f1 = { class: "name" }, g1 = ["onClick"], p1 = ["onClick"], h1 = "--", v1 = {
|
|
37
|
-
DEFAULT_ICON: c1,
|
|
38
|
-
ACTIVE_ICON: d1,
|
|
39
|
-
NAME_CN: "开关",
|
|
40
|
-
NAME_EN: "Switch",
|
|
41
|
-
ORDER: 1
|
|
42
|
-
}, w1 = {
|
|
43
|
-
bgColor: "#fff",
|
|
44
|
-
titleColor: "#111",
|
|
45
|
-
textColor: "#111",
|
|
46
|
-
titleSize: 14,
|
|
47
|
-
textSize: 14,
|
|
48
|
-
itemHeight: 32,
|
|
49
|
-
radiusSize: 8,
|
|
50
|
-
isHideTitle: !1,
|
|
51
|
-
method: {
|
|
52
|
-
value: "alway",
|
|
53
|
-
type: "select",
|
|
54
|
-
label: "component.switch.method",
|
|
55
|
-
options: o1
|
|
56
|
-
}
|
|
57
|
-
}, $ = [{ command: "Control_01", status_name: "状态", status_fv: "", start: "", stop: "" }], C1 = ["status_fv", "status_name", "command", "start", "stop"], S1 = ["mosaic"], _1 = {
|
|
58
|
-
useAlias: !1,
|
|
59
|
-
multiObject: !1,
|
|
60
|
-
hideMultiObject: !0
|
|
61
|
-
}, x1 = { DEFAULT: v1, OPTIONS: w1, DATA: $, PARAMS: C1, SOURCE: S1, COMMON: _1 }, y1 = /* @__PURE__ */ q(T(N({}, x1), {
|
|
62
|
-
__name: "ctrSwitch",
|
|
63
|
-
props: {
|
|
64
|
-
conf: {
|
|
65
|
-
type: Object,
|
|
66
|
-
default: () => ({ data: [] })
|
|
67
|
-
},
|
|
68
|
-
mode: {
|
|
69
|
-
type: String,
|
|
70
|
-
default: "edit"
|
|
71
|
-
},
|
|
72
|
-
uid: {
|
|
73
|
-
type: String,
|
|
74
|
-
default: ""
|
|
75
|
-
},
|
|
76
|
-
theme: {
|
|
77
|
-
type: String,
|
|
78
|
-
default: "light"
|
|
79
|
-
},
|
|
80
|
-
password: {
|
|
81
|
-
type: String,
|
|
82
|
-
default: ""
|
|
83
|
-
},
|
|
84
|
-
authorized: {
|
|
85
|
-
type: Array,
|
|
86
|
-
default: () => []
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
setup(a) {
|
|
90
|
-
const o = a, t = D({
|
|
91
|
-
authorized: [],
|
|
92
|
-
password: ""
|
|
93
|
-
}), d = D({
|
|
94
|
-
mode: "",
|
|
95
|
-
item: {},
|
|
96
|
-
rule: ""
|
|
97
|
-
}), u = j(null), w = j(!0);
|
|
98
|
-
class g extends t1 {
|
|
99
|
-
extractStyles() {
|
|
100
|
-
var s, l, r, _, C, h, L, k, A, O;
|
|
101
|
-
const { options: e } = this.props.conf;
|
|
102
|
-
return {
|
|
103
|
-
bgColor: ((s = e == null ? void 0 : e.bgColor) == null ? void 0 : s.value) || "#fff",
|
|
104
|
-
titleColor: ((l = e == null ? void 0 : e.titleColor) == null ? void 0 : l.value) || "#111",
|
|
105
|
-
textColor: ((r = e == null ? void 0 : e.textColor) == null ? void 0 : r.value) || "#111",
|
|
106
|
-
titleSize: ((_ = e == null ? void 0 : e.titleSize) == null ? void 0 : _.value) || 16,
|
|
107
|
-
textSize: ((C = e == null ? void 0 : e.textSize) == null ? void 0 : C.value) || 14,
|
|
108
|
-
itemHeight: ((h = e == null ? void 0 : e.itemHeight) == null ? void 0 : h.value) || 32,
|
|
109
|
-
radiusSize: (k = (L = e == null ? void 0 : e.radiusSize) == null ? void 0 : L.value) != null ? k : 8,
|
|
110
|
-
isHideTitle: (O = (A = e == null ? void 0 : e.isHideTitle) == null ? void 0 : A.value) != null ? O : !1
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
init() {
|
|
114
|
-
super.init(), this.props.conf.data = this.props.conf.data.length ? this.props.conf.data : $;
|
|
115
|
-
}
|
|
116
|
-
onPreview() {
|
|
117
|
-
return I(this, null, function* () {
|
|
118
|
-
yield F(g.prototype, this, "onPreview").call(this);
|
|
119
|
-
const e = yield n1(this.props);
|
|
120
|
-
t.authorized = e.authorized, t.password = e.password;
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
setSocketData(e) {
|
|
124
|
-
if (!e) return;
|
|
125
|
-
const { data: s } = this.props.conf;
|
|
126
|
-
s.forEach((l) => {
|
|
127
|
-
const r = this.extractDataValue(e, l.status_fv);
|
|
128
|
-
l.value = r != null ? r : h1;
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
const m = new g(o, "ctrSwitch");
|
|
133
|
-
m.setupLifecycle();
|
|
134
|
-
const i = m.getStyle(), p = Q(() => i1(o.conf.options)), S = (n) => t.authorized.indexOf(n.command) === -1, b = (n, e) => {
|
|
135
|
-
var r;
|
|
136
|
-
if (S(e)) {
|
|
137
|
-
U.warning("无权限操作");
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
const { options: s } = o.conf;
|
|
141
|
-
let l = ((r = s == null ? void 0 : s.method) == null ? void 0 : r.value) || "alway";
|
|
142
|
-
d.mode = n, d.item = e, d.rule = l, l === "alway" || l === "once" && w.value ? u.value.modal.visible = !0 : z();
|
|
143
|
-
}, z = () => {
|
|
144
|
-
const { mode: n, item: e, rule: s } = d, { common: l } = o.conf, r = JSON.parse(sessionStorage.getItem(s1) || "{}");
|
|
145
|
-
let C = {
|
|
146
|
-
block_mapping: "pusher",
|
|
147
|
-
action: "publish_command",
|
|
148
|
-
object_id: l.useAlias ? r[l.object_alias] : l.object_id || o.uid,
|
|
149
|
-
command: e.command,
|
|
150
|
-
value: e[n],
|
|
151
|
-
rule: s,
|
|
152
|
-
control: t.password
|
|
153
|
-
};
|
|
154
|
-
a1.platform((h) => {
|
|
155
|
-
h.code === 200 && (U.success(h.msg), u.value.modal.visible = !1, w.value = !1);
|
|
156
|
-
}, C);
|
|
157
|
-
};
|
|
158
|
-
return (n, e) => (x(), y(P, null, [
|
|
159
|
-
c("div", {
|
|
160
|
-
class: "mix-component",
|
|
161
|
-
style: v({ background: f(i).bgColor, borderRadius: `${f(i).radiusSize}px` })
|
|
162
|
-
}, [
|
|
163
|
-
c("div", {
|
|
164
|
-
class: "mix-title",
|
|
165
|
-
style: v(p.value)
|
|
166
|
-
}, R(a.conf.caption || a.conf.name), 5),
|
|
167
|
-
c("div", u1, [
|
|
168
|
-
c("div", m1, [
|
|
169
|
-
(x(!0), y(P, null, W(a.conf.data, (s, l) => (x(), y("div", {
|
|
170
|
-
class: "switch-item",
|
|
171
|
-
key: l,
|
|
172
|
-
style: v({
|
|
173
|
-
height: `${f(i).itemHeight}px`,
|
|
174
|
-
backgroundColor: f(i).bgColor,
|
|
175
|
-
fontSize: `${f(i).textSize}px`,
|
|
176
|
-
color: f(i).textColor
|
|
177
|
-
})
|
|
178
|
-
}, [
|
|
179
|
-
c("div", f1, R(s.status_name), 1),
|
|
180
|
-
c("div", {
|
|
181
|
-
class: H(["circle-on", { "active-on": String(s.value) && String(s.value) === s.start }]),
|
|
182
|
-
style: v({ cursor: S(s) ? "not-allowed" : "pointer" }),
|
|
183
|
-
onClick: (r) => b("start", s)
|
|
184
|
-
}, null, 14, g1),
|
|
185
|
-
c("div", {
|
|
186
|
-
class: H(["circle-off", { "active-off": String(s.value) && String(s.value) === s.stop }]),
|
|
187
|
-
style: v({ cursor: S(s) ? "not-allowed" : "pointer" }),
|
|
188
|
-
onClick: (r) => b("stop", s)
|
|
189
|
-
}, null, 14, p1)
|
|
190
|
-
], 4))), 128))
|
|
191
|
-
])
|
|
192
|
-
]),
|
|
193
|
-
X(n.$slots, "default", {}, void 0, !0)
|
|
194
|
-
], 4),
|
|
195
|
-
e1(r1, {
|
|
196
|
-
ref_key: "controlRef",
|
|
197
|
-
ref: u,
|
|
198
|
-
onSubmit: z,
|
|
199
|
-
password: t.password
|
|
200
|
-
}, null, 8, ["password"])
|
|
201
|
-
], 64));
|
|
202
|
-
}
|
|
203
|
-
})), N1 = /* @__PURE__ */ l1(y1, [["__scopeId", "data-v-4e26d77b"]]);
|
|
204
|
-
export {
|
|
205
|
-
N1 as default
|
|
206
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var V=Object.defineProperty,B=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols,P=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,q=Reflect.get;var L=(s,o,l)=>o in s?V(s,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[o]=l,N=(s,o)=>{for(var l in o||(o={}))j.call(o,l)&&L(s,l,o[l]);if(E)for(var l of E(o))R.call(o,l)&&L(s,l,o[l]);return s},A=(s,o)=>B(s,D(o));var M=(s,o,l)=>q(P(s),l,o);var O=(s,o,l)=>new Promise((d,u)=>{var h=i=>{try{m(l.next(i))}catch(g){u(g)}},f=i=>{try{m(l.throw(i))}catch(g){u(g)}},m=i=>i.done?d(i.value):Promise.resolve(i.value).then(h,f);m((l=l.apply(s,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const H=require("./BaseComponent-CNXUpPY1.cjs"),C=require("./index-D8dh_6Qd.cjs"),U=require("./titleStyle-NSnz6cUg.cjs"),T=require("./mix-control-modal-BoYynGT2.cjs"),F=require("element-plus"),$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e开关%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-1145.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M1158.87913,103.913793%20C1160.85974,103.913793%201162.46533,105.51939%201162.46533,107.5%20C1162.46533,109.480615%201160.85974,111.086207%201158.87913,111.086207%20L1158.87913,111.086207%20L1150.05154,111.086207%20C1148.07093,111.086207%201146.46533,109.480613%201146.46533,107.5%20C1146.46533,105.519392%201148.07093,103.913793%201150.05154,103.913793%20L1150.05154,103.913793%20Z%20M1158.87913,105.201149%20L1150.05154,105.201149%20C1148.78192,105.201149%201147.75269,106.230379%201147.75269,107.5%20C1147.75269,108.769625%201148.78192,109.798851%201150.05154,109.798851%20L1150.05154,109.798851%20L1158.87913,109.798851%20C1160.14876,109.798851%201161.17798,108.769628%201161.17798,107.5%20C1161.17798,106.230376%201160.14875,105.201149%201158.87913,105.201149%20L1158.87913,105.201149%20Z%20M1158.60051,106.243295%20C1159.3115,106.243295%201159.88786,106.819654%201159.88786,107.530651%20C1159.88786,108.241648%201159.3115,108.818008%201158.60051,108.818008%20C1157.88951,108.818008%201157.31315,108.241648%201157.31315,107.530651%20C1157.31315,106.819654%201157.88951,106.243295%201158.60051,106.243295%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Z="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e开关%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-1145.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M1158.87913,103.913793%20C1160.85974,103.913793%201162.46533,105.51939%201162.46533,107.5%20C1162.46533,109.480615%201160.85974,111.086207%201158.87913,111.086207%20L1158.87913,111.086207%20L1150.05154,111.086207%20C1148.07093,111.086207%201146.46533,109.480613%201146.46533,107.5%20C1146.46533,105.519392%201148.07093,103.913793%201150.05154,103.913793%20L1150.05154,103.913793%20Z%20M1158.87913,105.201149%20L1150.05154,105.201149%20C1148.78192,105.201149%201147.75269,106.230379%201147.75269,107.5%20C1147.75269,108.769625%201148.78192,109.798851%201150.05154,109.798851%20L1150.05154,109.798851%20L1158.87913,109.798851%20C1160.14876,109.798851%201161.17798,108.769628%201161.17798,107.5%20C1161.17798,106.230376%201160.14875,105.201149%201158.87913,105.201149%20L1158.87913,105.201149%20Z%20M1158.60051,106.243295%20C1159.3115,106.243295%201159.88786,106.819654%201159.88786,107.530651%20C1159.88786,108.241648%201159.3115,108.818008%201158.60051,108.818008%20C1157.88951,108.818008%201157.31315,108.241648%201157.31315,107.530651%20C1157.31315,106.819654%201157.88951,106.243295%201158.60051,106.243295%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",G={class:"mix-body"},J={class:"switch-wrap"},K={class:"name"},Y=["onClick"],Q=["onClick"],W="--",X={DEFAULT_ICON:$,ACTIVE_ICON:Z,NAME_CN:"开关",NAME_EN:"Switch",ORDER:1},e1={bgColor:"#fff",titleColor:"#111",textColor:"#111",titleSize:14,textSize:14,itemHeight:32,radiusSize:8,isHideTitle:!1,method:{value:"alway",type:"select",label:"component.switch.method",options:C.CONTROL_OPTIONS}},I=[{command:"Control_01",status_name:"状态",status_fv:"",start:"",stop:""}],t1=["status_fv","status_name","command","start","stop"],l1=["mosaic"],o1={useAlias:!1,multiObject:!1,hideMultiObject:!0},a1={DEFAULT:X,OPTIONS:e1,DATA:I,PARAMS:t1,SOURCE:l1,COMMON:o1},s1=e.defineComponent(A(N({},a1),{__name:"ctrSwitch",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""},authorized:{type:Array,default:()=>[]}},setup(s){const o=s,l=e.reactive({authorized:[],password:""}),d=e.reactive({mode:"",item:{},rule:""}),u=e.ref(null),h=e.ref(!0);class f extends H.BaseComponent{extractStyles(){var a,n,r,S,p,v,y,b,z,k;const{options:t}=this.props.conf;return{bgColor:((a=t==null?void 0:t.bgColor)==null?void 0:a.value)||"#fff",titleColor:((n=t==null?void 0:t.titleColor)==null?void 0:n.value)||"#111",textColor:((r=t==null?void 0:t.textColor)==null?void 0:r.value)||"#111",titleSize:((S=t==null?void 0:t.titleSize)==null?void 0:S.value)||16,textSize:((p=t==null?void 0:t.textSize)==null?void 0:p.value)||14,itemHeight:((v=t==null?void 0:t.itemHeight)==null?void 0:v.value)||32,radiusSize:(b=(y=t==null?void 0:t.radiusSize)==null?void 0:y.value)!=null?b:8,isHideTitle:(k=(z=t==null?void 0:t.isHideTitle)==null?void 0:z.value)!=null?k:!1}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:I}onPreview(){return O(this,null,function*(){yield M(f.prototype,this,"onPreview").call(this);const t=yield T.getAuthorized(this.props);l.authorized=t.authorized,l.password=t.password})}setSocketData(t){if(!t)return;const{data:a}=this.props.conf;a.forEach(n=>{const r=this.extractDataValue(t,n.status_fv);n.value=r!=null?r:W})}}const m=new f(o,"ctrSwitch");m.setupLifecycle();const i=m.getStyle(),g=e.computed(()=>U.generateTitleStyle(o.conf.options)),w=c=>l.authorized.indexOf(c.command)===-1,x=(c,t)=>{var r;if(w(t)){F.ElMessage.warning("无权限操作");return}const{options:a}=o.conf;let n=((r=a==null?void 0:a.method)==null?void 0:r.value)||"alway";d.mode=c,d.item=t,d.rule=n,n==="alway"||n==="once"&&h.value?u.value.modal.visible=!0:_()},_=()=>{const{mode:c,item:t,rule:a}=d,{common:n}=o.conf,r=JSON.parse(sessionStorage.getItem(C.ALIAS_MAPPING_KEY)||"{}");let p={block_mapping:"pusher",action:"publish_command",object_id:n.useAlias?r[n.object_alias]:n.object_id||o.uid,command:t.command,value:t[c],rule:a,control:l.password};C.api.platform(v=>{v.code===200&&(F.ElMessage.success(v.msg),u.value.modal.visible=!1,h.value=!1)},p)};return(c,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(i).bgColor,borderRadius:`${e.unref(i).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(g.value)},e.toDisplayString(s.conf.caption||s.conf.name),5),e.createElementVNode("div",G,[e.createElementVNode("div",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.conf.data,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"switch-item",key:n,style:e.normalizeStyle({height:`${e.unref(i).itemHeight}px`,backgroundColor:e.unref(i).bgColor,fontSize:`${e.unref(i).textSize}px`,color:e.unref(i).textColor})},[e.createElementVNode("div",K,e.toDisplayString(a.status_name),1),e.createElementVNode("div",{class:e.normalizeClass(["circle-on",{"active-on":String(a.value)&&String(a.value)===a.start}]),style:e.normalizeStyle({cursor:w(a)?"not-allowed":"pointer"}),onClick:r=>x("start",a)},null,14,Y),e.createElementVNode("div",{class:e.normalizeClass(["circle-off",{"active-off":String(a.value)&&String(a.value)===a.stop}]),style:e.normalizeStyle({cursor:w(a)?"not-allowed":"pointer"}),onClick:r=>x("stop",a)},null,14,Q)],4))),128))])]),e.renderSlot(c.$slots,"default",{},void 0,!0)],4),e.createVNode(T._sfc_main,{ref_key:"controlRef",ref:u,onSubmit:_,password:l.password},null,8,["password"])],64))}})),n1=C._export_sfc(s1,[["__scopeId","data-v-4e26d77b"]]);exports.default=n1;
|