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/photo-CjulDHTM.js
DELETED
|
@@ -1,873 +0,0 @@
|
|
|
1
|
-
var le = Object.defineProperty, de = Object.defineProperties;
|
|
2
|
-
var ce = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var X = Object.getOwnPropertySymbols;
|
|
4
|
-
var ue = Object.prototype.hasOwnProperty, he = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Z = (e, t, i) => t in e ? le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, b = (e, t) => {
|
|
6
|
-
for (var i in t || (t = {}))
|
|
7
|
-
ue.call(t, i) && Z(e, i, t[i]);
|
|
8
|
-
if (X)
|
|
9
|
-
for (var i of X(t))
|
|
10
|
-
he.call(t, i) && Z(e, i, t[i]);
|
|
11
|
-
return e;
|
|
12
|
-
}, x = (e, t) => de(e, ce(t));
|
|
13
|
-
var l = (e, t, i) => new Promise((n, o) => {
|
|
14
|
-
var s = (_) => {
|
|
15
|
-
try {
|
|
16
|
-
a(i.next(_));
|
|
17
|
-
} catch (m) {
|
|
18
|
-
o(m);
|
|
19
|
-
}
|
|
20
|
-
}, c = (_) => {
|
|
21
|
-
try {
|
|
22
|
-
a(i.throw(_));
|
|
23
|
-
} catch (m) {
|
|
24
|
-
o(m);
|
|
25
|
-
}
|
|
26
|
-
}, a = (_) => _.done ? n(_.value) : Promise.resolve(_.value).then(s, c);
|
|
27
|
-
a((i = i.apply(e, t)).next());
|
|
28
|
-
});
|
|
29
|
-
import { ElButton as _e } from "element-plus/es";
|
|
30
|
-
import "element-plus/es/components/base/style/css";
|
|
31
|
-
import "element-plus/es/components/button/style/css";
|
|
32
|
-
import { inject as pe, ref as R, defineComponent as fe, computed as O, onMounted as me, onBeforeUnmount as ye, openBlock as L, createElementBlock as M, normalizeStyle as P, unref as A, createElementVNode as w, normalizeClass as ge, toDisplayString as T, createVNode as we, withCtx as ve, createTextVNode as be, createCommentVNode as j, renderSlot as Re } from "vue";
|
|
33
|
-
import { u as Le } from "./vue-i18n-5Nahpzrm.js";
|
|
34
|
-
import { B as Me } from "./BaseComponent-D5tlYehc.js";
|
|
35
|
-
import { a as y, u as Se, r as Ce, _ as Ne } from "./index-Bdq33405.js";
|
|
36
|
-
import { ElMessage as H } from "element-plus";
|
|
37
|
-
import { A as Ee, D as xe } from "./ele-bmp-icon-Pdolk1J5.js";
|
|
38
|
-
function E(e) {
|
|
39
|
-
return e.replace(/\/$/, "");
|
|
40
|
-
}
|
|
41
|
-
function Ae() {
|
|
42
|
-
return typeof window == "undefined" ? !1 : window.__MIXUI_MATERIAL_USE_MIXSERVICE_STORAGE__ === !0;
|
|
43
|
-
}
|
|
44
|
-
function Be() {
|
|
45
|
-
var n, o;
|
|
46
|
-
const e = "".trim();
|
|
47
|
-
if (e) return E(e);
|
|
48
|
-
if (Ae() && typeof window != "undefined" && ((n = window.location) != null && n.origin))
|
|
49
|
-
return `${E(window.location.origin)}/mixservice/storage/yunfiles/material/file`;
|
|
50
|
-
const t = "".trim();
|
|
51
|
-
if (t) {
|
|
52
|
-
const s = E(t);
|
|
53
|
-
return s.toLowerCase().includes("yunfiles/material/file") ? s : `${s}/mixdesignd/yunfiles/material/file`;
|
|
54
|
-
}
|
|
55
|
-
if (typeof window != "undefined" && ((o = window.location) != null && o.origin))
|
|
56
|
-
return `${E(window.location.origin)}/mixdesignd/yunfiles/material/file`;
|
|
57
|
-
const i = "".trim();
|
|
58
|
-
if (i) {
|
|
59
|
-
const s = E(i);
|
|
60
|
-
return s.toLowerCase().includes("yunfiles/material/file") ? s : `${s}/mixdesignd/yunfiles/material/file`;
|
|
61
|
-
}
|
|
62
|
-
return `${E("https://yunui.mixyun.top")}/mixdesignd/yunfiles/material/file`;
|
|
63
|
-
}
|
|
64
|
-
function Ue(e) {
|
|
65
|
-
if (!(e != null && e.trim())) return "";
|
|
66
|
-
let t = String(e).trim().replace(/\\/g, "/");
|
|
67
|
-
t = t.replace(/^\/+/, "");
|
|
68
|
-
const i = t.toLowerCase(), n = (a) => {
|
|
69
|
-
const _ = a.toLowerCase();
|
|
70
|
-
if (i.startsWith(_)) return t.slice(a.length).replace(/^\/+/, "");
|
|
71
|
-
const m = i.indexOf("/" + _);
|
|
72
|
-
return m >= 0 ? t.slice(m + 1 + a.length).replace(/^\/+/, "") : null;
|
|
73
|
-
};
|
|
74
|
-
let o = n("mixdesignd/yunfiles/material/file/");
|
|
75
|
-
if (o != null || (o = n("mixservice/storage/yunfiles/material/file/"), o != null) || (o = n("yunfiles/material/file/"), o != null)) return o;
|
|
76
|
-
const s = "mixservice/storage/material/mixyun_dashboard/", c = i.indexOf(s);
|
|
77
|
-
return c >= 0 ? t.slice(c + s.length).replace(/^\/+/, "") : i.startsWith("mixdesignd/") && (t = t.slice(11), t.toLowerCase().startsWith("yunfiles/material/file/")) ? t.slice(23).replace(/^\/+/, "") : t.replace(/^\/+/, "");
|
|
78
|
-
}
|
|
79
|
-
function K(e) {
|
|
80
|
-
return e.split("/").filter(Boolean).map((t) => {
|
|
81
|
-
try {
|
|
82
|
-
return encodeURIComponent(decodeURIComponent(t));
|
|
83
|
-
} catch (i) {
|
|
84
|
-
return encodeURIComponent(t);
|
|
85
|
-
}
|
|
86
|
-
}).join("/");
|
|
87
|
-
}
|
|
88
|
-
function J(e) {
|
|
89
|
-
if (!(e != null && e.trim())) return "";
|
|
90
|
-
const t = e.trim();
|
|
91
|
-
if (t.startsWith("data:") || t.startsWith("blob:")) return t;
|
|
92
|
-
if (t.startsWith("http://") || t.startsWith("https://"))
|
|
93
|
-
try {
|
|
94
|
-
const o = new URL(t), s = K(o.pathname.replace(/^\/+/, ""));
|
|
95
|
-
return o.pathname = "/" + s, o.toString();
|
|
96
|
-
} catch (o) {
|
|
97
|
-
return t;
|
|
98
|
-
}
|
|
99
|
-
const i = K(Ue(t));
|
|
100
|
-
return i ? `${Be()}/${i}`.replace(/([^:])\/{2,}/g, "$1/") : "";
|
|
101
|
-
}
|
|
102
|
-
process.env.NODE_ENV;
|
|
103
|
-
process.env.NODE_ENV;
|
|
104
|
-
process.env.NODE_ENV;
|
|
105
|
-
process.env.NODE_ENV;
|
|
106
|
-
const De = /* @__PURE__ */ Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
107
|
-
process.env.NODE_ENV;
|
|
108
|
-
function Ie(e) {
|
|
109
|
-
return pe(De);
|
|
110
|
-
}
|
|
111
|
-
const z = (e) => {
|
|
112
|
-
const t = typeof e == "string" ? Number(e) : e;
|
|
113
|
-
return t === 0 || t === 200;
|
|
114
|
-
}, Oe = (e, t) => {
|
|
115
|
-
if (e && String(e).trim()) {
|
|
116
|
-
const i = String(e).trim();
|
|
117
|
-
if (i.startsWith("http://") || i.startsWith("https://"))
|
|
118
|
-
try {
|
|
119
|
-
return new URL(i).pathname || "";
|
|
120
|
-
} catch (n) {
|
|
121
|
-
return i;
|
|
122
|
-
}
|
|
123
|
-
return i.startsWith("/") ? i : `/${i}`;
|
|
124
|
-
}
|
|
125
|
-
return t ? `/yunfiles/material/file/${t}` : "";
|
|
126
|
-
}, Pe = {
|
|
127
|
-
/**
|
|
128
|
-
* 上传文件到存储服务(旧流程,非素材接口使用)
|
|
129
|
-
* @param file 文件对象
|
|
130
|
-
* @returns 返回文件访问URL
|
|
131
|
-
*/
|
|
132
|
-
uploadFile(e) {
|
|
133
|
-
return l(this, null, function* () {
|
|
134
|
-
var n;
|
|
135
|
-
const t = new FormData();
|
|
136
|
-
t.append("file", e);
|
|
137
|
-
const i = yield y.upload(t, !0);
|
|
138
|
-
if (z(i.code) && ((n = i.result) != null && n.url))
|
|
139
|
-
return i.result.url;
|
|
140
|
-
throw new Error(i.msg || "文件上传失败");
|
|
141
|
-
});
|
|
142
|
-
},
|
|
143
|
-
/**
|
|
144
|
-
* 上传原图(Base64)到存储,获取 material_path;同时可带缩略图 Base64
|
|
145
|
-
* @param materialDataBase64 原图 Base64(可为 data:image/png;base64,xxx 或纯 base64)
|
|
146
|
-
* @param materialType 素材类型,如 png、jpeg
|
|
147
|
-
* @returns 返回 material_path、uid 等,用于后续 create_dashboard_material
|
|
148
|
-
*/
|
|
149
|
-
uploadMaterialGetPath(e, t) {
|
|
150
|
-
return l(this, null, function* () {
|
|
151
|
-
var s, c;
|
|
152
|
-
const n = {
|
|
153
|
-
material_data: e.includes(",") ? e.split(",")[1] : e,
|
|
154
|
-
material_type: t || "png"
|
|
155
|
-
}, o = yield y.post("upload_material", n, !0);
|
|
156
|
-
if (z(o.code) && o.result) {
|
|
157
|
-
const a = o.result, _ = Oe(a.material_path || a.relative_path || "", a.file_id);
|
|
158
|
-
if (_)
|
|
159
|
-
return x(b({}, a), {
|
|
160
|
-
material_path: _,
|
|
161
|
-
material_size: (c = (s = a.material_size) != null ? s : a.file_size) != null ? c : 0,
|
|
162
|
-
material_type: a.material_type || a.mime_type || t || "png",
|
|
163
|
-
name: a.name || a.file_name || ""
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
throw new Error(o.info || o.msg || "上传原图获取路径失败");
|
|
167
|
-
});
|
|
168
|
-
},
|
|
169
|
-
/**
|
|
170
|
-
* 创建素材(将 upload_material 返回的 material_path 与 thumbnail base64 一并提交)
|
|
171
|
-
* @param params 创建参数,其中 material_path 来自 upload_material,thumbnail 为 Base64 字符串
|
|
172
|
-
* @returns 返回创建的素材 { uid },供 add_data_to_menu 等使用
|
|
173
|
-
*/
|
|
174
|
-
createMaterial(e) {
|
|
175
|
-
return l(this, null, function* () {
|
|
176
|
-
var i;
|
|
177
|
-
const t = yield y.post("create_dashboard_material", e, !0);
|
|
178
|
-
if (z(t.code) && ((i = t.result) != null && i.uid))
|
|
179
|
-
return t.result;
|
|
180
|
-
throw new Error(t.info || t.msg || "创建素材失败");
|
|
181
|
-
});
|
|
182
|
-
},
|
|
183
|
-
/**
|
|
184
|
-
* 上传素材(临时流程:仅调用 upload_material)
|
|
185
|
-
* @param file 用户选择的文件
|
|
186
|
-
* @param options 可选:name、is_system(当前仅保留入参兼容,接口不使用)
|
|
187
|
-
* @returns 返回上传后的素材 UID
|
|
188
|
-
*/
|
|
189
|
-
uploadAndCreateMaterial(i) {
|
|
190
|
-
return l(this, arguments, function* (e, t = {}) {
|
|
191
|
-
var c;
|
|
192
|
-
const n = ((c = e.name.split(".").pop()) == null ? void 0 : c.toLowerCase()) || "png", o = yield this._fileToBase64(e), s = yield this.uploadMaterialGetPath(o, n);
|
|
193
|
-
if (s.uid)
|
|
194
|
-
return { uid: s.uid };
|
|
195
|
-
throw new Error("upload_material 未返回 uid");
|
|
196
|
-
});
|
|
197
|
-
},
|
|
198
|
-
/** 将 File 转为 Base64 data URL */
|
|
199
|
-
_fileToBase64(e) {
|
|
200
|
-
return new Promise((t, i) => {
|
|
201
|
-
const n = new FileReader();
|
|
202
|
-
n.onload = () => t(n.result), n.onerror = () => i(new Error("文件读取失败")), n.readAsDataURL(e);
|
|
203
|
-
});
|
|
204
|
-
},
|
|
205
|
-
/**
|
|
206
|
-
* 获取素材列表(不按用户过滤)
|
|
207
|
-
* @param params 查询参数
|
|
208
|
-
*/
|
|
209
|
-
getMaterialList() {
|
|
210
|
-
return l(this, arguments, function* (e = {}) {
|
|
211
|
-
const t = b({
|
|
212
|
-
page_index: e.page_index || 1,
|
|
213
|
-
page_size: e.page_size || 20,
|
|
214
|
-
order_by: e.order_by || "created",
|
|
215
|
-
order_type: e.order_type || "desc"
|
|
216
|
-
}, e);
|
|
217
|
-
return yield y.post("get_dashboard_material_list", t);
|
|
218
|
-
});
|
|
219
|
-
},
|
|
220
|
-
/**
|
|
221
|
-
* 获取我的素材列表(按当前用户过滤)
|
|
222
|
-
* 注意:user_id 由后端从 Token 解析,无需传递
|
|
223
|
-
* @param params 查询参数
|
|
224
|
-
*/
|
|
225
|
-
getMyMaterialList() {
|
|
226
|
-
return l(this, arguments, function* (e = {}) {
|
|
227
|
-
const t = b({
|
|
228
|
-
page_index: e.page_index || 1,
|
|
229
|
-
page_size: e.page_size || 20,
|
|
230
|
-
order_by: e.order_by || "created",
|
|
231
|
-
order_type: e.order_type || "desc"
|
|
232
|
-
}, e);
|
|
233
|
-
return yield y.post("get_my_dashboard_material_list", t);
|
|
234
|
-
});
|
|
235
|
-
},
|
|
236
|
-
/**
|
|
237
|
-
* 获取素材详情
|
|
238
|
-
* 注意:uid 从请求参数中读取
|
|
239
|
-
* @param uid 素材UID
|
|
240
|
-
*/
|
|
241
|
-
getMaterialItem(e) {
|
|
242
|
-
return l(this, null, function* () {
|
|
243
|
-
return yield y.post("get_dashboard_material_item", { uid: e });
|
|
244
|
-
});
|
|
245
|
-
},
|
|
246
|
-
/**
|
|
247
|
-
* 更新素材
|
|
248
|
-
* 注意:仅白名单内字段允许更新
|
|
249
|
-
* @param params 更新参数
|
|
250
|
-
*/
|
|
251
|
-
updateMaterial(e) {
|
|
252
|
-
return l(this, null, function* () {
|
|
253
|
-
return yield y.post("update_dashboard_material", e, !0);
|
|
254
|
-
});
|
|
255
|
-
},
|
|
256
|
-
/**
|
|
257
|
-
* 删除素材
|
|
258
|
-
* 注意:uid 从请求参数中读取
|
|
259
|
-
* 注意:若素材存在关联记录,将拒绝删除
|
|
260
|
-
* @param uid 素材UID
|
|
261
|
-
*/
|
|
262
|
-
deleteMaterial(e) {
|
|
263
|
-
return l(this, null, function* () {
|
|
264
|
-
return yield y.post("delete_dashboard_material", { uid: e }, !0);
|
|
265
|
-
});
|
|
266
|
-
},
|
|
267
|
-
/**
|
|
268
|
-
* 根据素材路径删除素材(先按 material_path 查询我的素材,再按 uid 调用 delete_dashboard_material)
|
|
269
|
-
* 用于替代已废弃的 delete_image,上传新图前清理旧素材
|
|
270
|
-
* @param path 素材路径(即 URL 去掉 FILE_URL 前缀后的部分,可有可无前导 /)
|
|
271
|
-
*/
|
|
272
|
-
deleteMaterialByPath(e) {
|
|
273
|
-
return l(this, null, function* () {
|
|
274
|
-
var i;
|
|
275
|
-
if (!e || !String(e).trim()) return;
|
|
276
|
-
const t = String(e).replace(/^\//, "");
|
|
277
|
-
try {
|
|
278
|
-
const n = yield this.getMyMaterialList({
|
|
279
|
-
page_index: 1,
|
|
280
|
-
page_size: 10,
|
|
281
|
-
where_and: JSON.stringify([["material_path", "=", t]])
|
|
282
|
-
}), o = (i = n == null ? void 0 : n.result) == null ? void 0 : i.data;
|
|
283
|
-
Array.isArray(o) && o.length > 0 && o[0].uid && (yield this.deleteMaterial(o[0].uid));
|
|
284
|
-
} catch (n) {
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
}, Q = {
|
|
289
|
-
_buildWhereAnd(e) {
|
|
290
|
-
return JSON.stringify(e.filter(([, , t]) => t != null));
|
|
291
|
-
},
|
|
292
|
-
_isEmptyId(e) {
|
|
293
|
-
return e == null || String(e).trim() === "";
|
|
294
|
-
},
|
|
295
|
-
_isComponentLevel(e) {
|
|
296
|
-
return !this._isEmptyId(e.component_id);
|
|
297
|
-
},
|
|
298
|
-
_isLayerLevel(e) {
|
|
299
|
-
return this._isEmptyId(e.component_id) && !this._isEmptyId(e.layer_id);
|
|
300
|
-
},
|
|
301
|
-
_isSheetLevel(e) {
|
|
302
|
-
return this._isEmptyId(e.component_id) && this._isEmptyId(e.layer_id) && !this._isEmptyId(e.sheet_id);
|
|
303
|
-
},
|
|
304
|
-
_isDashboardLevel(e) {
|
|
305
|
-
return this._isEmptyId(e.component_id) && this._isEmptyId(e.layer_id) && this._isEmptyId(e.sheet_id);
|
|
306
|
-
},
|
|
307
|
-
_listRelations(e) {
|
|
308
|
-
return l(this, null, function* () {
|
|
309
|
-
var i;
|
|
310
|
-
const t = yield this.getMaterialRelationList({
|
|
311
|
-
page_index: 1,
|
|
312
|
-
page_size: 999,
|
|
313
|
-
where_and: e
|
|
314
|
-
});
|
|
315
|
-
return ((i = t == null ? void 0 : t.result) == null ? void 0 : i.data) || [];
|
|
316
|
-
});
|
|
317
|
-
},
|
|
318
|
-
_deleteByUid(e, t) {
|
|
319
|
-
return l(this, null, function* () {
|
|
320
|
-
t && (yield this.deleteMaterialRelation({
|
|
321
|
-
dashboard_record_uid: e,
|
|
322
|
-
uid: t
|
|
323
|
-
}));
|
|
324
|
-
});
|
|
325
|
-
},
|
|
326
|
-
_deleteByRelation(e) {
|
|
327
|
-
return l(this, null, function* () {
|
|
328
|
-
e != null && e.dashboard_record_uid && (yield this.deleteMaterialRelation({
|
|
329
|
-
dashboard_record_uid: e.dashboard_record_uid,
|
|
330
|
-
dashboard_id: e.dashboard_id,
|
|
331
|
-
sheet_id: e.sheet_id,
|
|
332
|
-
layer_id: e.layer_id,
|
|
333
|
-
component_id: e.component_id,
|
|
334
|
-
uid: e.uid
|
|
335
|
-
}));
|
|
336
|
-
});
|
|
337
|
-
},
|
|
338
|
-
_deleteRelationList(e, t) {
|
|
339
|
-
return l(this, null, function* () {
|
|
340
|
-
for (const i of t)
|
|
341
|
-
yield this._deleteByUid(e, i.uid);
|
|
342
|
-
});
|
|
343
|
-
},
|
|
344
|
-
/**
|
|
345
|
-
* 新增素材关联
|
|
346
|
-
*
|
|
347
|
-
* 特殊逻辑:如果 dashboard_record_uid + dashboard_id + sheet_id + layer_id + component_id
|
|
348
|
-
* 五个条件完全相同的记录已存在,则执行更新而非新建
|
|
349
|
-
*
|
|
350
|
-
* @param params 创建参数
|
|
351
|
-
* @returns 返回创建的关联 UID
|
|
352
|
-
*/
|
|
353
|
-
createMaterialRelation(e) {
|
|
354
|
-
return l(this, null, function* () {
|
|
355
|
-
return yield y.post("create_dashboard_materials_relation", e, !0);
|
|
356
|
-
});
|
|
357
|
-
},
|
|
358
|
-
/**
|
|
359
|
-
* 删除素材关联
|
|
360
|
-
*
|
|
361
|
-
* 通过 Body 传递条件进行批量删除
|
|
362
|
-
* dashboard_record_uid 为必填,其余条件可选,用于缩小删除范围
|
|
363
|
-
*
|
|
364
|
-
* @param params 删除参数
|
|
365
|
-
*/
|
|
366
|
-
deleteMaterialRelation(e) {
|
|
367
|
-
return l(this, null, function* () {
|
|
368
|
-
return yield y.post("delete_dashboard_materials_relation", e, !0);
|
|
369
|
-
});
|
|
370
|
-
},
|
|
371
|
-
/**
|
|
372
|
-
* 查询素材关联列表
|
|
373
|
-
*
|
|
374
|
-
* 注意:虽然命名为 "get_my_...",但实际路由到通用 GetList,不会自动按 user_id 过滤
|
|
375
|
-
* 如需按用户过滤,请通过 where_and 条件手动指定
|
|
376
|
-
*
|
|
377
|
-
* @param params 查询参数
|
|
378
|
-
*/
|
|
379
|
-
getMaterialRelationList() {
|
|
380
|
-
return l(this, arguments, function* (e = {}) {
|
|
381
|
-
const t = b({
|
|
382
|
-
page_index: e.page_index || 1,
|
|
383
|
-
page_size: e.page_size || 20,
|
|
384
|
-
order_by: e.order_by || "created",
|
|
385
|
-
order_type: e.order_type || "desc"
|
|
386
|
-
}, e);
|
|
387
|
-
return !e.order_by && !e.order_type && e.order ? t.order = e.order : delete t.order, yield y.post("get_my_dashboard_materials_relation_list", t);
|
|
388
|
-
});
|
|
389
|
-
},
|
|
390
|
-
/**
|
|
391
|
-
* 查询指定显示板的素材关联列表
|
|
392
|
-
*
|
|
393
|
-
* @param dashboardRecordUid 显示板设计记录 UID
|
|
394
|
-
* @param params 其他查询参数
|
|
395
|
-
*/
|
|
396
|
-
getMaterialRelationsByDashboard(i) {
|
|
397
|
-
return l(this, arguments, function* (e, t = {}) {
|
|
398
|
-
const n = JSON.stringify([["dashboard_record_uid", "=", e]]);
|
|
399
|
-
return yield this.getMaterialRelationList(x(b({}, t), {
|
|
400
|
-
where_and: n
|
|
401
|
-
}));
|
|
402
|
-
});
|
|
403
|
-
},
|
|
404
|
-
/**
|
|
405
|
-
* 查询指定组件的素材关联
|
|
406
|
-
*
|
|
407
|
-
* @param dashboardRecordUid 显示板设计记录 UID
|
|
408
|
-
* @param componentId 组件 ID
|
|
409
|
-
* @param params 其他查询参数
|
|
410
|
-
*/
|
|
411
|
-
getMaterialRelationByComponent(n, o) {
|
|
412
|
-
return l(this, arguments, function* (e, t, i = {}) {
|
|
413
|
-
const s = JSON.stringify([
|
|
414
|
-
["dashboard_record_uid", "=", e],
|
|
415
|
-
["component_id", "=", t]
|
|
416
|
-
]);
|
|
417
|
-
return yield this.getMaterialRelationList(x(b({}, i), {
|
|
418
|
-
where_and: s
|
|
419
|
-
}));
|
|
420
|
-
});
|
|
421
|
-
},
|
|
422
|
-
/**
|
|
423
|
-
* 查询某素材的所有关联关系
|
|
424
|
-
*/
|
|
425
|
-
getRelationsByMaterial(e) {
|
|
426
|
-
return l(this, null, function* () {
|
|
427
|
-
var n;
|
|
428
|
-
if (!e) return [];
|
|
429
|
-
const t = JSON.stringify([["material_uid", "=", e]]), i = yield this.getMaterialRelationList({
|
|
430
|
-
page_index: 1,
|
|
431
|
-
page_size: 999,
|
|
432
|
-
where_and: t
|
|
433
|
-
});
|
|
434
|
-
return ((n = i == null ? void 0 : i.result) == null ? void 0 : n.data) || [];
|
|
435
|
-
});
|
|
436
|
-
},
|
|
437
|
-
/**
|
|
438
|
-
* 统计素材使用概览(关联条数 + 关联显示板数)
|
|
439
|
-
*/
|
|
440
|
-
getMaterialUsageSummary(e) {
|
|
441
|
-
return l(this, null, function* () {
|
|
442
|
-
const t = yield this.getRelationsByMaterial(e), i = /* @__PURE__ */ new Set();
|
|
443
|
-
return t.forEach((n) => {
|
|
444
|
-
const o = String(n.dashboard_record_uid || "").trim();
|
|
445
|
-
o && i.add(o);
|
|
446
|
-
}), {
|
|
447
|
-
relationCount: t.length,
|
|
448
|
-
dashboardCount: i.size,
|
|
449
|
-
relations: t
|
|
450
|
-
};
|
|
451
|
-
});
|
|
452
|
-
},
|
|
453
|
-
/**
|
|
454
|
-
* 删除某素材的所有关联(仅删关系,不删素材实体)
|
|
455
|
-
*/
|
|
456
|
-
deleteAllRelationsByMaterial(e) {
|
|
457
|
-
return l(this, null, function* () {
|
|
458
|
-
const t = yield this.getRelationsByMaterial(e);
|
|
459
|
-
for (const i of t)
|
|
460
|
-
!(i != null && i.uid) || !(i != null && i.dashboard_record_uid) || (yield this.deleteMaterialRelation({
|
|
461
|
-
dashboard_record_uid: i.dashboard_record_uid,
|
|
462
|
-
uid: i.uid
|
|
463
|
-
}));
|
|
464
|
-
return t.length;
|
|
465
|
-
});
|
|
466
|
-
},
|
|
467
|
-
/**
|
|
468
|
-
* 删除指定显示板的所有素材关联
|
|
469
|
-
*
|
|
470
|
-
* @param dashboardRecordUid 显示板设计记录 UID
|
|
471
|
-
*/
|
|
472
|
-
deleteAllRelationsByDashboard(e) {
|
|
473
|
-
return l(this, null, function* () {
|
|
474
|
-
return yield this.deleteRelationsByDashboardHierarchy(e);
|
|
475
|
-
});
|
|
476
|
-
},
|
|
477
|
-
/**
|
|
478
|
-
* 删除指定组件的素材关联
|
|
479
|
-
*
|
|
480
|
-
* @param dashboardRecordUid 显示板设计记录 UID
|
|
481
|
-
* @param componentId 组件 ID
|
|
482
|
-
*/
|
|
483
|
-
deleteRelationByComponent(e, t) {
|
|
484
|
-
return l(this, null, function* () {
|
|
485
|
-
return yield this.deleteMaterialRelation({
|
|
486
|
-
dashboard_record_uid: e,
|
|
487
|
-
component_id: t
|
|
488
|
-
});
|
|
489
|
-
});
|
|
490
|
-
},
|
|
491
|
-
/**
|
|
492
|
-
* 删除组件级关系(精确:dashboard + sheet + layer + component)
|
|
493
|
-
*/
|
|
494
|
-
deleteComponentRelations(e, t, i, n) {
|
|
495
|
-
return l(this, null, function* () {
|
|
496
|
-
if (!e || !t || !i || !n) return;
|
|
497
|
-
const o = this._buildWhereAnd([
|
|
498
|
-
["dashboard_record_uid", "=", e],
|
|
499
|
-
["sheet_id", "=", t],
|
|
500
|
-
["layer_id", "=", i],
|
|
501
|
-
["component_id", "=", n]
|
|
502
|
-
]), s = yield this._listRelations(o);
|
|
503
|
-
for (const c of s)
|
|
504
|
-
yield this._deleteByRelation(c);
|
|
505
|
-
});
|
|
506
|
-
},
|
|
507
|
-
/**
|
|
508
|
-
* 删除图层级自身关系(不删组件关系)
|
|
509
|
-
*/
|
|
510
|
-
deleteLayerLevelRelations(e, t, i) {
|
|
511
|
-
return l(this, null, function* () {
|
|
512
|
-
if (!e || !t || !i) return;
|
|
513
|
-
const n = this._buildWhereAnd([
|
|
514
|
-
["dashboard_record_uid", "=", e],
|
|
515
|
-
["sheet_id", "=", t],
|
|
516
|
-
["layer_id", "=", i]
|
|
517
|
-
]), s = (yield this._listRelations(n)).filter((c) => this._isLayerLevel(c));
|
|
518
|
-
for (const c of s)
|
|
519
|
-
yield this._deleteByRelation(c);
|
|
520
|
-
});
|
|
521
|
-
},
|
|
522
|
-
/**
|
|
523
|
-
* 删除 sheet 级自身关系(不删 layer/component)
|
|
524
|
-
*/
|
|
525
|
-
deleteSheetLevelRelations(e, t) {
|
|
526
|
-
return l(this, null, function* () {
|
|
527
|
-
if (!e || !t) return;
|
|
528
|
-
const i = this._buildWhereAnd([
|
|
529
|
-
["dashboard_record_uid", "=", e],
|
|
530
|
-
["sheet_id", "=", t]
|
|
531
|
-
]), o = (yield this._listRelations(i)).filter((s) => this._isSheetLevel(s));
|
|
532
|
-
for (const s of o)
|
|
533
|
-
yield this._deleteByRelation(s);
|
|
534
|
-
});
|
|
535
|
-
},
|
|
536
|
-
/**
|
|
537
|
-
* 删除 dashboard 级自身关系(不删 sheet/layer/component)
|
|
538
|
-
*/
|
|
539
|
-
deleteDashboardLevelRelations(e) {
|
|
540
|
-
return l(this, null, function* () {
|
|
541
|
-
if (!e) return;
|
|
542
|
-
const t = this._buildWhereAnd([
|
|
543
|
-
["dashboard_record_uid", "=", e]
|
|
544
|
-
]), n = (yield this._listRelations(t)).filter((o) => this._isDashboardLevel(o));
|
|
545
|
-
for (const o of n)
|
|
546
|
-
yield this._deleteByRelation(o);
|
|
547
|
-
});
|
|
548
|
-
},
|
|
549
|
-
/**
|
|
550
|
-
* 级联删除图层:组件关系 -> 图层自身关系
|
|
551
|
-
*/
|
|
552
|
-
deleteRelationsByLayerHierarchy(e, t, i) {
|
|
553
|
-
return l(this, null, function* () {
|
|
554
|
-
if (!e || !t || !i) return;
|
|
555
|
-
const n = this._buildWhereAnd([
|
|
556
|
-
["dashboard_record_uid", "=", e],
|
|
557
|
-
["sheet_id", "=", t],
|
|
558
|
-
["layer_id", "=", i]
|
|
559
|
-
]), o = yield this._listRelations(n), s = o.filter((a) => this._isComponentLevel(a)), c = o.filter((a) => this._isLayerLevel(a));
|
|
560
|
-
for (const a of s)
|
|
561
|
-
yield this._deleteByRelation(a);
|
|
562
|
-
for (const a of c)
|
|
563
|
-
yield this._deleteByRelation(a);
|
|
564
|
-
});
|
|
565
|
-
},
|
|
566
|
-
/**
|
|
567
|
-
* 级联删除 sheet:组件关系 -> 图层关系 -> sheet 自身关系
|
|
568
|
-
*/
|
|
569
|
-
deleteRelationsBySheetHierarchy(e, t) {
|
|
570
|
-
return l(this, null, function* () {
|
|
571
|
-
if (!e || !t) return;
|
|
572
|
-
const i = this._buildWhereAnd([
|
|
573
|
-
["dashboard_record_uid", "=", e],
|
|
574
|
-
["sheet_id", "=", t]
|
|
575
|
-
]), n = yield this._listRelations(i), o = n.filter((a) => this._isComponentLevel(a)), s = n.filter((a) => this._isLayerLevel(a)), c = n.filter((a) => this._isSheetLevel(a));
|
|
576
|
-
for (const a of o)
|
|
577
|
-
yield this._deleteByRelation(a);
|
|
578
|
-
for (const a of s)
|
|
579
|
-
yield this._deleteByRelation(a);
|
|
580
|
-
for (const a of c)
|
|
581
|
-
yield this._deleteByRelation(a);
|
|
582
|
-
});
|
|
583
|
-
},
|
|
584
|
-
/**
|
|
585
|
-
* 级联删除 dashboard:组件关系 -> 图层关系 -> sheet 关系 -> dashboard 关系
|
|
586
|
-
*/
|
|
587
|
-
deleteRelationsByDashboardHierarchy(e) {
|
|
588
|
-
return l(this, null, function* () {
|
|
589
|
-
if (!e) return;
|
|
590
|
-
const t = this._buildWhereAnd([
|
|
591
|
-
["dashboard_record_uid", "=", e]
|
|
592
|
-
]), i = yield this._listRelations(t), n = i.filter((a) => this._isComponentLevel(a)), o = i.filter((a) => this._isLayerLevel(a)), s = i.filter((a) => this._isSheetLevel(a)), c = i.filter((a) => this._isDashboardLevel(a));
|
|
593
|
-
for (const a of n)
|
|
594
|
-
yield this._deleteByRelation(a);
|
|
595
|
-
for (const a of o)
|
|
596
|
-
yield this._deleteByRelation(a);
|
|
597
|
-
for (const a of s)
|
|
598
|
-
yield this._deleteByRelation(a);
|
|
599
|
-
for (const a of c)
|
|
600
|
-
yield this._deleteByRelation(a);
|
|
601
|
-
});
|
|
602
|
-
}
|
|
603
|
-
}, ze = R(!1), ke = R("all");
|
|
604
|
-
function Ve(e = "all") {
|
|
605
|
-
return ke.value = e, ze.value = !0, new Promise((t) => {
|
|
606
|
-
});
|
|
607
|
-
}
|
|
608
|
-
const We = { class: "mix-body" }, $e = { class: "upload-content" }, Fe = {
|
|
609
|
-
viewBox: "0 0 24 24",
|
|
610
|
-
width: "48",
|
|
611
|
-
height: "48",
|
|
612
|
-
fill: "currentColor",
|
|
613
|
-
style: { opacity: "0.5" }
|
|
614
|
-
}, Te = { class: "upload-text" }, je = {
|
|
615
|
-
key: 0,
|
|
616
|
-
class: "upload-actions"
|
|
617
|
-
}, He = {
|
|
618
|
-
key: 1,
|
|
619
|
-
class: "viewer-container"
|
|
620
|
-
}, Je = {
|
|
621
|
-
key: 0,
|
|
622
|
-
class: "file-info"
|
|
623
|
-
}, qe = { class: "file-name" }, Ge = ["title"], Xe = ["src", "alt"], Ze = {
|
|
624
|
-
DEFAULT_ICON: xe,
|
|
625
|
-
ACTIVE_ICON: Ee,
|
|
626
|
-
NAME_CN: "图片查看器",
|
|
627
|
-
NAME_EN: "Photo Viewer",
|
|
628
|
-
ORDER: 2
|
|
629
|
-
}, Ke = {
|
|
630
|
-
imageDisplayMode: {
|
|
631
|
-
value: "center",
|
|
632
|
-
type: "select",
|
|
633
|
-
options: [
|
|
634
|
-
{ label: "component.photo.center", value: "center" },
|
|
635
|
-
{ label: "component.photo.tile", value: "tile" },
|
|
636
|
-
{ label: "component.photo.stretch", value: "stretch" }
|
|
637
|
-
],
|
|
638
|
-
label: "component.options.imageDisplayMode"
|
|
639
|
-
},
|
|
640
|
-
fileUrl: { value: "", type: "string", label: "component.options.fileUrl", placeholder: "请上传素材" },
|
|
641
|
-
fileName: { value: "", type: "string", label: "component.options.fileName", placeholder: "请上传素材" },
|
|
642
|
-
materialUid: { value: "", type: "string", label: "component.options.materialUid", placeholder: "素材UID" }
|
|
643
|
-
}, Qe = [], Ye = [], et = [], tt = null, it = { DEFAULT: Ze, OPTIONS: Ke, DATA: Qe, PARAMS: Ye, SOURCE: et, COMMON: tt }, ot = /* @__PURE__ */ fe(x(b({}, it), {
|
|
644
|
-
__name: "photo",
|
|
645
|
-
props: {
|
|
646
|
-
conf: { type: Object, default: () => ({}) },
|
|
647
|
-
uid: { type: String, default: "" },
|
|
648
|
-
mode: { type: String, default: "edit" },
|
|
649
|
-
theme: { type: String, default: "light" }
|
|
650
|
-
},
|
|
651
|
-
setup(e) {
|
|
652
|
-
const { t } = Le(), i = Se(), n = Ie(), o = e;
|
|
653
|
-
class s extends Me {
|
|
654
|
-
extractStyles() {
|
|
655
|
-
return {
|
|
656
|
-
imageDisplayMode: this.getOptionValue("imageDisplayMode", "center"),
|
|
657
|
-
radiusSize: this.getOptionValue("radiusSize", 0)
|
|
658
|
-
};
|
|
659
|
-
}
|
|
660
|
-
init() {
|
|
661
|
-
this.Style.value = this.extractStyles(), this.applyTheme(), ee();
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
const c = new s(o, "photo");
|
|
665
|
-
c.setupLifecycle();
|
|
666
|
-
const a = c.getStyle(), _ = R(null), m = R(""), p = R(""), S = R(""), k = R(!1), V = R(!1), Y = (r) => J(r), ee = () => l(null, null, function* () {
|
|
667
|
-
var d, u, h;
|
|
668
|
-
const { conf: r } = o;
|
|
669
|
-
(u = (d = r == null ? void 0 : r.options) == null ? void 0 : d.fileUrl) != null && u.value && (m.value = Y(r.options.fileUrl.value), yield $(), S.value = ((h = r.options.fileName) == null ? void 0 : h.value) || "");
|
|
670
|
-
}), W = (r) => {
|
|
671
|
-
r && r.startsWith("blob:") && URL.revokeObjectURL(r);
|
|
672
|
-
}, $ = () => l(null, null, function* () {
|
|
673
|
-
if (m.value)
|
|
674
|
-
try {
|
|
675
|
-
const r = Ce();
|
|
676
|
-
if (!r) {
|
|
677
|
-
p.value = "";
|
|
678
|
-
return;
|
|
679
|
-
}
|
|
680
|
-
const d = yield fetch(m.value, {
|
|
681
|
-
mode: "cors",
|
|
682
|
-
credentials: "include",
|
|
683
|
-
headers: { Authorization: `Bearer ${r}` }
|
|
684
|
-
});
|
|
685
|
-
if (!d.ok) throw new Error(`load image failed: ${d.status}`);
|
|
686
|
-
const u = yield d.blob(), h = URL.createObjectURL(u);
|
|
687
|
-
W(p.value), p.value = h;
|
|
688
|
-
} catch (r) {
|
|
689
|
-
console.error("[Photo] 拉取图片失败:", r), W(p.value), p.value = "";
|
|
690
|
-
}
|
|
691
|
-
}), te = O(() => ({
|
|
692
|
-
width: "100%",
|
|
693
|
-
height: "100%",
|
|
694
|
-
display: "flex",
|
|
695
|
-
alignItems: "center",
|
|
696
|
-
justifyContent: "center",
|
|
697
|
-
overflow: "hidden"
|
|
698
|
-
})), ie = O(() => {
|
|
699
|
-
var d;
|
|
700
|
-
const r = (d = a == null ? void 0 : a.value) == null ? void 0 : d.imageDisplayMode;
|
|
701
|
-
return r === "tile" ? { display: "none" } : r === "stretch" ? { width: "100%", height: "100%", objectFit: "fill" } : { width: "100%", height: "100%", objectFit: "contain" };
|
|
702
|
-
}), oe = O(() => {
|
|
703
|
-
var r;
|
|
704
|
-
return ((r = a == null ? void 0 : a.value) == null ? void 0 : r.imageDisplayMode) !== "tile" || !p.value ? {} : {
|
|
705
|
-
width: "100%",
|
|
706
|
-
height: "100%",
|
|
707
|
-
backgroundImage: `url(${p.value})`,
|
|
708
|
-
backgroundRepeat: "repeat",
|
|
709
|
-
backgroundPosition: "center center"
|
|
710
|
-
};
|
|
711
|
-
}), F = O(() => {
|
|
712
|
-
const r = n.params.id;
|
|
713
|
-
return r ? String(r) : "";
|
|
714
|
-
}), q = (r) => {
|
|
715
|
-
var u;
|
|
716
|
-
const d = ((u = i.pageData) == null ? void 0 : u.sheets) || [];
|
|
717
|
-
for (const h of d) {
|
|
718
|
-
const g = h.id, C = h.caption || h.name || h.id, B = h.layers || [];
|
|
719
|
-
for (const v of B) {
|
|
720
|
-
const U = v.id, D = v.caption || v.name || v.id, I = v.components || [];
|
|
721
|
-
for (const f of I)
|
|
722
|
-
if ((f == null ? void 0 : f.id) === r) {
|
|
723
|
-
const N = f.caption || f.name || f.id;
|
|
724
|
-
return { sheetId: g, layerId: U, sheetName: C, layerName: D, componentName: N };
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
return { sheetId: "", layerId: "", sheetName: "", layerName: "", componentName: "" };
|
|
729
|
-
}, ae = (r) => l(null, null, function* () {
|
|
730
|
-
var g;
|
|
731
|
-
if (!F.value) return;
|
|
732
|
-
const d = o.uid || ((g = o.conf) == null ? void 0 : g.id);
|
|
733
|
-
if (!d || !r) return;
|
|
734
|
-
const { sheetId: u, layerId: h } = q(d);
|
|
735
|
-
try {
|
|
736
|
-
yield Q.deleteComponentRelations(
|
|
737
|
-
F.value,
|
|
738
|
-
u,
|
|
739
|
-
h,
|
|
740
|
-
d
|
|
741
|
-
), yield Q.createMaterialRelation({
|
|
742
|
-
dashboard_record_uid: F.value,
|
|
743
|
-
material_uid: r,
|
|
744
|
-
sheet_id: u || void 0,
|
|
745
|
-
layer_id: h || void 0,
|
|
746
|
-
component_id: d
|
|
747
|
-
});
|
|
748
|
-
} catch (C) {
|
|
749
|
-
console.warn("[Photo] 同步素材关联失败:", C);
|
|
750
|
-
}
|
|
751
|
-
}), G = () => l(null, null, function* () {
|
|
752
|
-
try {
|
|
753
|
-
const r = yield Ve("image");
|
|
754
|
-
if (r) {
|
|
755
|
-
if (console.log("[Photo] 选中的素材:", r), console.log("[Photo] material_path:", r.material_path), console.log("[Photo] thumbnail:", r.thumbnail), console.log("[Photo] file_id:", r.file_id), !r.material_path) {
|
|
756
|
-
H.warning("该素材缺少 material_path,无法获取原图"), console.warn("[Photo] 素材缺少 material_path");
|
|
757
|
-
return;
|
|
758
|
-
}
|
|
759
|
-
const d = String(r.material_path).trim(), u = J(d);
|
|
760
|
-
console.log("[Photo] 原图URL:", u), m.value = u, yield $(), S.value = r.name, o.conf && o.conf.options && (o.conf.options.fileUrl || (o.conf.options.fileUrl = { value: "", type: "string", label: "" }), o.conf.options.fileName || (o.conf.options.fileName = { value: "", type: "string", label: "" }), o.conf.options.materialUid || (o.conf.options.materialUid = { value: "", type: "string", label: "" }), o.conf.options.fileUrl.value = d, o.conf.options.fileName.value = r.name, o.conf.options.materialUid.value = r.uid, console.log("[Photo] 配置已保存:", {
|
|
761
|
-
fileUrl: o.conf.options.fileUrl.value,
|
|
762
|
-
fileName: o.conf.options.fileName.value,
|
|
763
|
-
materialUid: o.conf.options.materialUid.value
|
|
764
|
-
})), console.log("[Photo] uploadedFileUrl.value:", p.value), H.success(t("component.photo.materialSelected") || "素材选择成功"), yield ae(r.uid);
|
|
765
|
-
} else
|
|
766
|
-
console.log("[Photo] 用户取消选择");
|
|
767
|
-
} catch (r) {
|
|
768
|
-
console.error("[Photo] 素材选择失败:", r), H.error("素材选择失败");
|
|
769
|
-
}
|
|
770
|
-
}), ne = () => {
|
|
771
|
-
W(p.value), p.value = "", m.value = "", S.value = "", o.mode !== "preview" && G();
|
|
772
|
-
}, re = () => {
|
|
773
|
-
k.value = !1, _.value, console.log("图片加载成功");
|
|
774
|
-
}, se = (r) => {
|
|
775
|
-
var g, C, B, v, U, D, I;
|
|
776
|
-
if (console.error("图片加载失败:", r), k.value || V.value) return;
|
|
777
|
-
const d = o.uid || ((g = o.conf) == null ? void 0 : g.id) || "", u = d ? q(d) : null;
|
|
778
|
-
u && (u.sheetName || u.layerName || u.componentName) ? `${u.sheetName || "-"}${u.layerName || "-"}${u.componentName || "-"}` : S.value;
|
|
779
|
-
const h = String(
|
|
780
|
-
((v = (B = (C = o.conf) == null ? void 0 : C.options) == null ? void 0 : B.materialUid) == null ? void 0 : v.value) || ((I = (D = (U = o.conf) == null ? void 0 : U.options) == null ? void 0 : D.imageUid) == null ? void 0 : I.value) || ""
|
|
781
|
-
).trim();
|
|
782
|
-
h && (V.value = !0, Pe.getMaterialItem(h).then((f) => {
|
|
783
|
-
if (z(f == null ? void 0 : f.code) && (f != null && f.result)) {
|
|
784
|
-
const N = f.result;
|
|
785
|
-
N != null && N.material_path && (m.value = J(String(N.material_path).trim()), $());
|
|
786
|
-
return;
|
|
787
|
-
}
|
|
788
|
-
k.value = !0;
|
|
789
|
-
}).catch(() => {
|
|
790
|
-
}).finally(() => {
|
|
791
|
-
V.value = !1;
|
|
792
|
-
}));
|
|
793
|
-
};
|
|
794
|
-
return me(() => {
|
|
795
|
-
}), ye(() => {
|
|
796
|
-
p.value && p.value.startsWith("blob:") && URL.revokeObjectURL(p.value);
|
|
797
|
-
}), (r, d) => {
|
|
798
|
-
var h, g;
|
|
799
|
-
const u = _e;
|
|
800
|
-
return L(), M("div", {
|
|
801
|
-
class: "mix-component",
|
|
802
|
-
style: P({ borderRadius: `${A(a).radiusSize}px` })
|
|
803
|
-
}, [
|
|
804
|
-
w("div", We, [
|
|
805
|
-
p.value ? (L(), M("div", He, [
|
|
806
|
-
o.mode !== "preview" ? (L(), M("div", Je, [
|
|
807
|
-
w("span", qe, T(S.value), 1),
|
|
808
|
-
w("button", {
|
|
809
|
-
class: "change-file-btn",
|
|
810
|
-
onClick: ne,
|
|
811
|
-
title: A(t)("component.photo.changeFile") || "更换文件"
|
|
812
|
-
}, [...d[1] || (d[1] = [
|
|
813
|
-
w("svg", {
|
|
814
|
-
viewBox: "0 0 24 24",
|
|
815
|
-
width: "16",
|
|
816
|
-
height: "16",
|
|
817
|
-
fill: "currentColor"
|
|
818
|
-
}, [
|
|
819
|
-
w("path", { d: "M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z" })
|
|
820
|
-
], -1)
|
|
821
|
-
])], 8, Ge)
|
|
822
|
-
])) : j("", !0),
|
|
823
|
-
w("div", {
|
|
824
|
-
class: "image-container",
|
|
825
|
-
style: P(te.value)
|
|
826
|
-
}, [
|
|
827
|
-
w("img", {
|
|
828
|
-
ref_key: "imageRef",
|
|
829
|
-
ref: _,
|
|
830
|
-
src: p.value,
|
|
831
|
-
alt: S.value,
|
|
832
|
-
style: P(ie.value),
|
|
833
|
-
onLoad: re,
|
|
834
|
-
onError: se
|
|
835
|
-
}, null, 44, Xe),
|
|
836
|
-
((g = (h = A(a)) == null ? void 0 : h.value) == null ? void 0 : g.imageDisplayMode) === "tile" ? (L(), M("div", {
|
|
837
|
-
key: 0,
|
|
838
|
-
class: "tiled-background",
|
|
839
|
-
style: P(oe.value)
|
|
840
|
-
}, null, 4)) : j("", !0)
|
|
841
|
-
], 4)
|
|
842
|
-
])) : (L(), M("div", {
|
|
843
|
-
key: 0,
|
|
844
|
-
class: ge(["upload-area", { "preview-mode": o.mode === "preview" }])
|
|
845
|
-
}, [
|
|
846
|
-
w("div", $e, [
|
|
847
|
-
(L(), M("svg", Fe, [...d[0] || (d[0] = [
|
|
848
|
-
w("path", { d: "M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z" }, null, -1)
|
|
849
|
-
])])),
|
|
850
|
-
w("p", Te, T(o.mode === "preview" ? "未上传素材" : A(t)("component.photo.selectFromLibrary") || "从素材库选择"), 1),
|
|
851
|
-
o.mode !== "preview" ? (L(), M("div", je, [
|
|
852
|
-
we(u, {
|
|
853
|
-
type: "primary",
|
|
854
|
-
size: "small",
|
|
855
|
-
onClick: G
|
|
856
|
-
}, {
|
|
857
|
-
default: ve(() => [
|
|
858
|
-
be(T(A(t)("component.photo.selectFromLibrary") || "从素材库选择"), 1)
|
|
859
|
-
]),
|
|
860
|
-
_: 1
|
|
861
|
-
})
|
|
862
|
-
])) : j("", !0)
|
|
863
|
-
])
|
|
864
|
-
], 2))
|
|
865
|
-
]),
|
|
866
|
-
Re(r.$slots, "default", {}, void 0, !0)
|
|
867
|
-
], 4);
|
|
868
|
-
};
|
|
869
|
-
}
|
|
870
|
-
})), pt = /* @__PURE__ */ Ne(ot, [["__scopeId", "data-v-c449a1c6"]]);
|
|
871
|
-
export {
|
|
872
|
-
pt as default
|
|
873
|
-
};
|