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.
Files changed (470) hide show
  1. package/dist/{BaseComponent-D5tlYehc.js → BaseComponent-CBagahPU.js} +138 -109
  2. package/dist/BaseComponent-Chnv4fBT.cjs +1 -0
  3. package/dist/{EChartComponentBase-CAabYXSj.js → EChartComponentBase-cFfawl6h.js} +2 -2
  4. package/dist/{EChartComponentBase-D4wMej9X.cjs → EChartComponentBase-dLE5F7Tt.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-Th4ZNdCb.js → EmergencyPlanPanel--jTGG89o.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-D96XjhRq.cjs → EmergencyPlanPanel-BJb-Bbxh.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-rn2Bp0Gx.cjs → HistoryPlanDialog-C-QPdV4V.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-D2mQLhkO.js → HistoryPlanDialog-DerClU2U.js} +1 -1
  9. package/dist/{MonitoringMap-BZ98NYTJ.cjs → MonitoringMap-B6RMbiIS.cjs} +1 -1
  10. package/dist/{MonitoringMap-Coozb35G.js → MonitoringMap-CNaGsq83.js} +2 -2
  11. package/dist/UniverSheet-CM-vvc23.cjs +1 -0
  12. package/dist/{UniverSheet-CJCunVAM.js → UniverSheet-KI09RqKm.js} +16 -15
  13. package/dist/{accelerationChart-DacjcSHD.js → accelerationChart-D7KNk5fI.js} +61 -59
  14. package/dist/accelerationChart-HBCb2bRW.cjs +6 -0
  15. package/dist/{actionItem-d-4p5HZK.js → actionItem-BmNYzAXu.js} +48 -41
  16. package/dist/actionItem-Bx4mW0jP.cjs +1 -0
  17. package/dist/alarmLevelChart-Cvnw4z1w.cjs +2 -0
  18. package/dist/{alarmLevelChart-DddN1NVy.js → alarmLevelChart-DdSw2s7W.js} +91 -46
  19. package/dist/{alertTable-Q-Waa5jf.js → alertTable-CC3c8DFb.js} +40 -39
  20. package/dist/alertTable-hH6HA9pY.cjs +1 -0
  21. package/dist/aliasObjectSelectorDemo-C7E_fnCf.cjs +1 -0
  22. package/dist/{aliasObjectSelectorDemo-BZygQw9k.js → aliasObjectSelectorDemo-yDiavTpG.js} +11 -10
  23. package/dist/{annualRainfallChart-CthANCvn.js → annualRainfallChart-B9ar8vo8.js} +32 -30
  24. package/dist/annualRainfallChart-C6JLSPIf.cjs +1 -0
  25. package/dist/{aqi-C_HnKsjh.js → aqi-BNc5QCM3.js} +21 -19
  26. package/dist/{aqi-BFW_8xYd.cjs → aqi-DEiCVIVa.cjs} +3 -3
  27. package/dist/aqiIndass-Bowic_Pc.cjs +3 -0
  28. package/dist/{aqiIndass-NVRa3lmj.js → aqiIndass-CAGV8_Uf.js} +41 -40
  29. package/dist/{areaDeformCurve-mQiOHdtN.js → areaDeformCurve-CSpR060t.js} +51 -49
  30. package/dist/areaDeformCurve-CVy23kV2.cjs +1 -0
  31. package/dist/arrayCard-NqoQKcE9.cjs +1 -0
  32. package/dist/{arrayCard-DZitcjMs.js → arrayCard-PPDb7U6X.js} +29 -28
  33. package/dist/{audio-CDAMVEgC.js → audio-BJPFIQIr.js} +42 -41
  34. package/dist/audio-Bw-GaYe1.cjs +1 -0
  35. package/dist/{bar--JrlRud9.js → bar-C38h_mUA.js} +72 -70
  36. package/dist/{bar-C7uQADV1.cjs → bar-Cru6WosS.cjs} +2 -2
  37. package/dist/bmp-BXaEkkpa.cjs +1 -0
  38. package/dist/{bmp-DrVcnYxy.js → bmp-BnSOaFEr.js} +15 -14
  39. package/dist/box-CKuGsh2k.cjs +1 -0
  40. package/dist/{box-szcLhted.js → box-DIHVOqrV.js} +58 -57
  41. package/dist/chartConfigPanel-BVdVXbs6.cjs +1 -0
  42. package/dist/{chartConfigPanel-C32o1gyJ.js → chartConfigPanel-D1rO6SGh.js} +86 -79
  43. package/dist/{circleBar-CeL2rqMJ.cjs → circleBar-BzXqA-Cz.cjs} +3 -3
  44. package/dist/{circleBar-BmTjsLHo.js → circleBar-CBLcp4Xi.js} +27 -25
  45. package/dist/{clock-CuQpD76K.js → clock-4AMfFDGC.js} +35 -34
  46. package/dist/clock-DmWyBpo-.cjs +1 -0
  47. package/dist/clt-CmPPtp9c.cjs +1 -0
  48. package/dist/{clt-XCswxZ6i.js → clt-D5i_8-pq.js} +60 -59
  49. package/dist/cmc-8jH3DGv9.cjs +1 -0
  50. package/dist/{cmc-CXmAv6fz.js → cmc-Cjb5w3om.js} +23 -22
  51. package/dist/{cmp-Duz_v-LC.js → cmp-COJzlQPa.js} +19 -18
  52. package/dist/{cmp-DmpxjexT.cjs → cmp-CpmGtNal.cjs} +2 -2
  53. package/dist/{composite-CWgy-w61.js → composite-CsFgfxih.js} +37 -36
  54. package/dist/{composite-DdHASMFQ.cjs → composite-DLmzZNIj.cjs} +3 -3
  55. package/dist/{conclusionCard-BtB0rARK.js → conclusionCard-BQUlLFde.js} +15 -14
  56. package/dist/conclusionCard-C-TT6znN.cjs +1 -0
  57. package/dist/{controlList-C0AQ8Yb8.js → controlList-5D5UIDQL.js} +40 -38
  58. package/dist/controlList-CIwzKylK.cjs +1 -0
  59. package/dist/{controlRecordList-CSPKG1HU.js → controlRecordList-Cp5mmEQ1.js} +55 -53
  60. package/dist/controlRecordList-uEQ3ohmB.cjs +1 -0
  61. package/dist/controlRecordListAPP-B5d4x_xH.cjs +1 -0
  62. package/dist/controlRecordListAPP-p_skbQVD.js +502 -0
  63. package/dist/{crd-DQruf9o3.js → crd-8gRWMf2Y.js} +14 -13
  64. package/dist/crd-Dfl2XKAx.cjs +1 -0
  65. package/dist/{ctrBtn-jEWTt_f2.js → ctrBtn-BzmFxucy.js} +106 -107
  66. package/dist/ctrBtn-OOgL9esv.cjs +1 -0
  67. package/dist/{ctrSet-C4wCODMY.js → ctrSet-Btg2T9w6.js} +24 -23
  68. package/dist/ctrSet-CifyJt05.cjs +1 -0
  69. package/dist/ctrSwitch-6nMHbIE7.js +206 -0
  70. package/dist/ctrSwitch-C8mwxLPe.cjs +1 -0
  71. package/dist/{dataManagement-BQVZS7Hi.js → dataManagement-BZiSmktM.js} +52 -45
  72. package/dist/dataManagement-sQpuBaDz.cjs +1 -0
  73. package/dist/{dataReport-vP1LBJjE.js → dataReport-CbJzXeCE.js} +25 -24
  74. package/dist/{dataReport-DRopth3A.cjs → dataReport-D9Q9c43B.cjs} +2 -2
  75. package/dist/{dataTable-C2AgSR36.cjs → dataTable-BJ4SVFbu.cjs} +1 -1
  76. package/dist/{dataTable-B1FQ3XIq.js → dataTable-BuBB0b-A.js} +1 -1
  77. package/dist/datetime-B66VgJL1.cjs +1 -0
  78. package/dist/{datetime-DU3rzi1v.js → datetime-DO03QrXz.js} +25 -24
  79. package/dist/deepClusterSlipSurface-BqT55vkY.cjs +1 -0
  80. package/dist/{deepClusterSlipSurface-BHwB0eu9.js → deepClusterSlipSurface-DpSAXgFf.js} +45 -43
  81. package/dist/{deepDataMatrix-C3uKZmon.js → deepDataMatrix-CPrIOv5r.js} +46 -45
  82. package/dist/deepDataMatrix-DZZaTMbD.cjs +1 -0
  83. package/dist/{deepDisplacement3D-BBYgB-rK.cjs → deepDisplacement3D-Cd9nwwPt.cjs} +3 -3
  84. package/dist/{deepDisplacement3D-CDNPul6D.js → deepDisplacement3D-JlMej7-5.js} +9 -7
  85. package/dist/{deepDisplacementChart-C_pwwgIC.js → deepDisplacementChart-BiDt60xI.js} +89 -88
  86. package/dist/deepDisplacementChart-CALM3gna.cjs +5 -0
  87. package/dist/deepDisplacementChart-CEaj2bUV.cjs +6 -0
  88. package/dist/{deepDisplacementChart-C6GQHO-J.js → deepDisplacementChart-CjlGpeHj.js} +54 -52
  89. package/dist/{deepDisplacementView-C837RNer.js → deepDisplacementView-BpUw-b-i.js} +37 -36
  90. package/dist/deepDisplacementView-CoSNzN1q.cjs +8 -0
  91. package/dist/deepNodeTemperatureChart-DPN0rYir.cjs +1 -0
  92. package/dist/{deepNodeTemperatureChart-BcH3ZNi4.js → deepNodeTemperatureChart-DfZq7kLx.js} +50 -48
  93. package/dist/{deepTangentAngleChart-DSpCyIdq.js → deepTangentAngleChart-Ca01hah9.js} +92 -90
  94. package/dist/deepTangentAngleChart-Dg9PJspK.cjs +1 -0
  95. package/dist/deepTemperatureField-BqDB97SW.cjs +1 -0
  96. package/dist/{deepTemperatureField-B2qIHL1-.js → deepTemperatureField-CYBTjhEp.js} +95 -93
  97. package/dist/deepTrendChart-B5BAHTeY.cjs +1 -0
  98. package/dist/{deepTrendChart-DFGSV17a.js → deepTrendChart-DBjxV7_A.js} +56 -54
  99. package/dist/{deviceOnlineStatus-CiIFdo9I.js → deviceOnlineStatus-1eoHCl_-.js} +58 -50
  100. package/dist/deviceOnlineStatus-DHzaAzCp.cjs +2 -0
  101. package/dist/deviceStatus-4BMy4qBD.cjs +1 -0
  102. package/dist/{deviceStatus-Dd1pqVnO.js → deviceStatus-90rQa1uj.js} +61 -60
  103. package/dist/{displacementDataTable-CGIHGxye.js → displacementDataTable-BArwj-xp.js} +52 -51
  104. package/dist/displacementDataTable-BLWjiaRQ.cjs +1 -0
  105. package/dist/{displacementTrajectoryChart-RL97CTML.js → displacementTrajectoryChart-CxOPJVlD.js} +34 -32
  106. package/dist/displacementTrajectoryChart-DfJMOCFJ.cjs +22 -0
  107. package/dist/{displacementTrendChart-Bqnv7hiP.js → displacementTrendChart-4E6cDsX8.js} +49 -48
  108. package/dist/displacementTrendChart-Cuxa5iTp.cjs +5 -0
  109. package/dist/{dxf-BQoArgPS.cjs → dxf-BgklkksV.cjs} +1 -1
  110. package/dist/{dxf-DBu1iA-r.js → dxf-BogwbJID.js} +5 -4
  111. package/dist/{dzc-DMVPjosV.cjs → dzc-CApfzriC.cjs} +2 -2
  112. package/dist/{dzc-7tLxe18d.js → dzc-D7tTBLaA.js} +24 -22
  113. package/dist/emergencyPlan-BuFz4XFc.cjs +1 -0
  114. package/dist/{emergencyPlan-C9Edkw51.js → emergencyPlan-CjbuX-N5.js} +19 -18
  115. package/dist/evn-BcSenXF3.cjs +1 -0
  116. package/dist/{evn-CeLoYCUr.js → evn-DTPm72ZM.js} +23 -22
  117. package/dist/evolutionChart-CrwR8i40.cjs +1 -0
  118. package/dist/{evolutionChart-DAlncdLU.js → evolutionChart-D1dVKWOt.js} +25 -23
  119. package/dist/{fileViewer-BFMFEN2f.js → fileViewer-BNHwlZRa.js} +57 -56
  120. package/dist/fileViewer-BUuST3Rp.cjs +1 -0
  121. package/dist/filterBar-BJzjPFFg.cjs +1 -0
  122. package/dist/{filterBar-qJJKdxYE.js → filterBar-CRJinh5K.js} +44 -43
  123. package/dist/fireCombustionCurve-BGdJ1ybj.cjs +1 -0
  124. package/dist/{fireCombustionCurve-DyRikhHw.js → fireCombustionCurve-BZ6qJ1kq.js} +69 -67
  125. package/dist/fireFilterBar-DZejT0oL.cjs +1 -0
  126. package/dist/{fireFilterBar-DkjBGPXa.js → fireFilterBar-KvvbsCsZ.js} +25 -24
  127. package/dist/{fireHistoryTable-ldXil5up.js → fireHistoryTable-80ygqnOG.js} +73 -65
  128. package/dist/fireHistoryTable-CMSGKb3w.cjs +3 -0
  129. package/dist/gag-1bvAZ5m6.cjs +1 -0
  130. package/dist/{gag-KZfFHn72.js → gag-D2obj7AF.js} +30 -28
  131. package/dist/{gasStationList-Btoo_olJ.js → gasStationList-DM-laJsi.js} +527 -526
  132. package/dist/gasStationList-DjJtXnqL.cjs +1 -0
  133. package/dist/{geo3dViewer-Cif9uFqd.cjs → geo3dViewer-CL_89mQf.cjs} +1 -1
  134. package/dist/{geo3dViewer-iZhkCiTP.js → geo3dViewer-FhmMIvMJ.js} +12 -5
  135. package/dist/{glbModel-MJZgDSJf.js → glbModel-B0nWYYJQ.js} +19 -18
  136. package/dist/{glbModel-2xydaxDT.cjs → glbModel-DakMJal6.cjs} +3 -3
  137. package/dist/{globalObjectSelector-CHtYGpi9.js → globalObjectSelector-Gv4srHhp.js} +79 -78
  138. package/dist/globalObjectSelector-jNzZxdnL.cjs +1 -0
  139. package/dist/{gnssFilterBar-CPis6bUI.js → gnssFilterBar-C4rpyNw3.js} +70 -63
  140. package/dist/gnssFilterBar-kEIW7Tjs.cjs +1 -0
  141. package/dist/{gnssHistoryTable-kHZY48EZ.js → gnssHistoryTable-CyMwQJ7_.js} +58 -50
  142. package/dist/gnssHistoryTable-DRKlP8-b.cjs +3 -0
  143. package/dist/{gnssMapView-BNIkieqL.cjs → gnssMapView-DpExCi0x.cjs} +4 -4
  144. package/dist/{gnssMapView-DXP8yz0v.js → gnssMapView-EVufCGrW.js} +174 -167
  145. package/dist/{gnssSectionProfile-DEUDEvJ1.js → gnssSectionProfile-CaJwF9wp.js} +41 -34
  146. package/dist/gnssSectionProfile-DdcOMdNC.cjs +1 -0
  147. package/dist/{gnssTimeSeriesChart-C_xqd0su.js → gnssTimeSeriesChart-iffDvMNx.js} +57 -49
  148. package/dist/gnssTimeSeriesChart-y11Y8k2-.cjs +1 -0
  149. package/dist/{gnssXYTrajectory-GqgFw_qK.js → gnssXYTrajectory-C_1fuLWn.js} +53 -45
  150. package/dist/gnssXYTrajectory-DGBGGDwi.cjs +5 -0
  151. package/dist/grd-C4hCrpvH.cjs +1 -0
  152. package/dist/{grd-QCuVN1jE.js → grd-FfuMQJb7.js} +43 -42
  153. package/dist/{grdIndass-BEcfZTYw.js → grdIndass-BTbZmPLZ.js} +30 -29
  154. package/dist/grdIndass-CyuRKD5H.cjs +1 -0
  155. package/dist/{grg-CMVrF5tB.js → grg-CcnI5kRY.js} +27 -26
  156. package/dist/grg-Cuxa17d6.cjs +1 -0
  157. package/dist/gridview-CKjBuTRq.cjs +1 -0
  158. package/dist/{gridview-Cd3Tqzph.js → gridview-ffVc5Wvg.js} +32 -31
  159. package/dist/groundwaterFilterBar-D3l7GLVY.cjs +1 -0
  160. package/dist/{groundwaterFilterBar-D7lrbzDC.js → groundwaterFilterBar-DaPR-kbl.js} +13 -12
  161. package/dist/groundwaterProfileChart-BxJKIPXF.cjs +11 -0
  162. package/dist/{groundwaterProfileChart-Bjtqz-Zv.js → groundwaterProfileChart-DoSx7WWp.js} +42 -40
  163. package/dist/groundwaterTimeCurve-Bp5MxM9k.cjs +1 -0
  164. package/dist/{groundwaterTimeCurve-Bu6vgAaC.js → groundwaterTimeCurve-D-SdVYeq.js} +57 -55
  165. package/dist/{groupCard-CPvAsuPb.cjs → groupCard-BzUQ8xY0.cjs} +1 -1
  166. package/dist/{groupCard-DQvEe6cc.js → groupCard-COMEkzIb.js} +29 -28
  167. package/dist/headerBar-iFe0YQKE.cjs +1 -0
  168. package/dist/{headerBar-CGOtSvFn.js → headerBar-ouXO8bzC.js} +48 -47
  169. package/dist/{history-D6C3tSut.js → history-BZ869y2d.js} +18 -18
  170. package/dist/{history-9ToM-rJ6.cjs → history-MxYUUwkm.cjs} +1 -1
  171. package/dist/index-DVqMfQVc.cjs +612 -0
  172. package/dist/{index-Bdq33405.js → index-DwPJu6XM.js} +1159 -1128
  173. package/dist/{insarDeformChart-Ls-cdqaP.js → insarDeformChart-5BhCUq8L.js} +24 -17
  174. package/dist/insarDeformChart-Ca3AMsBk.cjs +1 -0
  175. package/dist/{insarImageViewer-Dnke9JDG.js → insarImageViewer-DHNxmLpa.js} +41 -34
  176. package/dist/insarImageViewer-DWPsoHz6.cjs +1 -0
  177. package/dist/{kds-B4BKGG0r.js → kds-BYZC4pIM.js} +57 -50
  178. package/dist/{kds-BjX5tXhF.cjs → kds-Dpf_3WWj.cjs} +2 -2
  179. package/dist/{kpiCard-C77vHJ_E.js → kpiCard-CStPtl-c.js} +5 -4
  180. package/dist/kpiCard-OLJgA48-.cjs +2 -0
  181. package/dist/{landslideMap-BEkbnCqP.js → landslideMap-BUq0x7rd.js} +34 -33
  182. package/dist/landslideMap-JTdoQjW-.cjs +1 -0
  183. package/dist/{landslideWarning-C5upI2cf.js → landslideWarning-VAn9XGUj.js} +55 -54
  184. package/dist/landslideWarning-ZA5LCsIr.cjs +1 -0
  185. package/dist/{layerTabs-DoGw1Jfv.js → layerTabs-CAJ6f-2W.js} +40 -38
  186. package/dist/layerTabs-CdhowHB1.cjs +1 -0
  187. package/dist/{leaflet-src-BUWIqhPn.cjs → leaflet-src-CxFQ_Cn7.cjs} +1 -1
  188. package/dist/{leaflet-src-DFE_g2gF.js → leaflet-src-DNO2-OsP.js} +1 -1
  189. package/dist/{lerc-CXc9KSRL.js → lerc-bF2jqjoV.js} +2 -2
  190. package/dist/{lerc-BBgQP785.cjs → lerc-qU4WKXeS.cjs} +1 -1
  191. package/dist/{lin-ClO2MqZl.cjs → lin-BHI2KgyW.cjs} +2 -2
  192. package/dist/{lin-Difz8N88.js → lin-DbQw7wZw.js} +20 -18
  193. package/dist/linIndass-CIrObeZT.cjs +2 -0
  194. package/dist/{linIndass-DqXVOBh3.js → linIndass-Cd9Hjzs_.js} +31 -30
  195. package/dist/lst-BRsEe-Hq.cjs +1 -0
  196. package/dist/{lst-4RMMZZkY.js → lst-C3C2m1v_.js} +40 -39
  197. package/dist/{manualEntry-B3_4Z-Lj.js → manualEntry-B8TDMcDg.js} +29 -22
  198. package/dist/manualEntry-C3_WtYz8.cjs +1 -0
  199. package/dist/{mapBackground-B3OHQsXZ.js → mapBackground-BrVIQUcT.js} +21 -20
  200. package/dist/{mapBackground-Bmt-oZt6.cjs → mapBackground-Du7R_ICY.cjs} +2 -2
  201. package/dist/{mappingList-DVj7H206.js → mappingList-BpJUawmv.js} +22 -20
  202. package/dist/mappingList-C5OZ8oUx.cjs +1 -0
  203. package/dist/{markdownViewer-fheM5uV4.js → markdownViewer-CoRrvdY7.js} +16 -15
  204. package/dist/{markdownViewer-BAuNEWRt.cjs → markdownViewer-D96bwxEt.cjs} +2 -2
  205. package/dist/materialFileUrl-CubtnHeq.js +108 -0
  206. package/dist/materialFileUrl-DfPNm265.cjs +1 -0
  207. package/dist/{mix-control-modal-BoYynGT2.cjs → mix-control-modal-DwxwW65v.cjs} +1 -1
  208. package/dist/{mix-control-modal-BBiKe4MM.js → mix-control-modal-Qg_mzyT_.js} +1 -1
  209. package/dist/{mixGrid-BUjP1qv2.js → mixGrid-CtJWul6c.js} +44 -43
  210. package/dist/mixGrid-Hj0OJjkg.cjs +1 -0
  211. package/dist/mixMap-CJzmC0IR.cjs +1 -0
  212. package/dist/{mixMap-DPIwyKuP.js → mixMap-E36SDnEa.js} +36 -35
  213. package/dist/mixModel-BMRxhvWn.cjs +3 -0
  214. package/dist/{mixModel-CIdQp4V9.js → mixModel-_McJ6OuH.js} +30 -29
  215. package/dist/{mixPie-C6OhdOCV.js → mixPie-CMOkAe9p.js} +31 -30
  216. package/dist/mixPie-MAKXeYVp.cjs +2 -0
  217. package/dist/mixdashboards.cjs +1 -1
  218. package/dist/mixdashboards.css +1 -1
  219. package/dist/mixdashboards.js +1 -1
  220. package/dist/mixiotObjectListApi-BaeBL318.js +82 -0
  221. package/dist/mixiotObjectListApi-D9OyHNQ3.cjs +1 -0
  222. package/dist/mjpegCamera-BY7pmbDc.cjs +1 -0
  223. package/dist/{mjpegCamera-Cd1vhZ5v.js → mjpegCamera-Dc4IsJA6.js} +12 -11
  224. package/dist/monitorAlert-DVNvJyTy.cjs +1 -0
  225. package/dist/{monitorAlert-DIJtH557.js → monitorAlert-F8QFOchR.js} +45 -44
  226. package/dist/monitorData-AkPbhJ9q.cjs +1 -0
  227. package/dist/{monitorData-B6jhpzVK.js → monitorData-BzqNIdrW.js} +61 -59
  228. package/dist/{monitorSpeedChart-DF5zvxs9.js → monitorSpeedChart-348U37LW.js} +22 -21
  229. package/dist/{monitorSpeedChart-EIcGs3NX.cjs → monitorSpeedChart-DVH1xihw.cjs} +2 -2
  230. package/dist/{mxa-COxjxwpC.js → mxa-CkJjCHA-.js} +29 -27
  231. package/dist/{mxa-BfwIV49n.cjs → mxa-DShU528J.cjs} +2 -2
  232. package/dist/myValue-BCeycpdO.cjs +1 -0
  233. package/dist/{myValue-Crba15Wc.js → myValue-CEfp19i2.js} +17 -16
  234. package/dist/myValueList-CAPOW8TK.cjs +1 -0
  235. package/dist/{myValueList-m2yaIcuf.js → myValueList-y3GR4AX2.js} +41 -40
  236. package/dist/objectList-4rYQk5uq.cjs +1 -0
  237. package/dist/{objectList-BwZJzrXs.js → objectList-D16yLbzD.js} +538 -599
  238. package/dist/objectListAPP-DCwTyqFp.js +1864 -0
  239. package/dist/objectListAPP-Db5beOAM.cjs +1 -0
  240. package/dist/photo-BV6rkbWO.js +811 -0
  241. package/dist/photo-D67wLRkY.cjs +1 -0
  242. package/dist/{pie-CSLVJv0Y.cjs → pie-BeRwVkTk.cjs} +2 -2
  243. package/dist/{pie-C9MU90ON.js → pie-bNKhq6ak.js} +16 -14
  244. package/dist/{placeholder-CRARTMF4.js → placeholder-_iK4rVyU.js} +26 -25
  245. package/dist/placeholder-zByzfWaH.cjs +1 -0
  246. package/dist/{pressBtn-CkYcW1a8.js → pressBtn-B-rZPXK2.js} +124 -124
  247. package/dist/pressBtn-BjqYIPC-.cjs +1 -0
  248. package/dist/processTable-ByPlSKRJ.cjs +3 -0
  249. package/dist/{processTable-BgAhGGAq.js → processTable-s_y8uups.js} +12 -11
  250. package/dist/{progressBar-BbDFps1r.cjs → progressBar-CRdA7oJT.cjs} +1 -1
  251. package/dist/{progressBar-CIPUVeaf.js → progressBar-DskxZk1P.js} +19 -18
  252. package/dist/{progressCircle-DDc5zsd6.js → progressCircle-BE_Am-AP.js} +13 -12
  253. package/dist/{progressCircle-CgkZ1EC1.cjs → progressCircle-CHe-12Hb.cjs} +1 -1
  254. package/dist/{qrcode-CQbWGVgq.cjs → qrcode-D8cFyUpL.cjs} +1 -1
  255. package/dist/{qrcode-CCu677Ad.js → qrcode-Dgth6KwU.js} +39 -38
  256. package/dist/{raceBar-CzNGSYCt.cjs → raceBar-CeybrpCB.cjs} +3 -3
  257. package/dist/{raceBar-Cn8oPhCE.js → raceBar-DV-3KFg2.js} +18 -16
  258. package/dist/rad-BerkC70H.cjs +1 -0
  259. package/dist/{rad-D_cLWeMk.js → rad-BhsfF0XI.js} +22 -20
  260. package/dist/{radarMapViewer-BaAXjsWx.js → radarMapViewer-C2dde8EN.js} +82 -81
  261. package/dist/radarMapViewer-HWzvBTzT.cjs +1 -0
  262. package/dist/{rainfallFilterBar-Bhpadat8.js → rainfallFilterBar-CiT1mvYh.js} +22 -21
  263. package/dist/rainfallFilterBar-kuAQO0M-.cjs +1 -0
  264. package/dist/rainfallTimeCurve-7uHaSkuE.cjs +1 -0
  265. package/dist/{rainfallTimeCurve-sDYapogL.js → rainfallTimeCurve-BlOnCq2M.js} +58 -56
  266. package/dist/rangeLin-BQeWFL_E.cjs +3 -0
  267. package/dist/{rangeLin-CdMOPwMP.js → rangeLin-BvKd8kEv.js} +32 -31
  268. package/dist/realtimeEvolutionMap-BUnD3JjE.cjs +1 -0
  269. package/dist/{realtimeEvolutionMap-CIH_sZ29.js → realtimeEvolutionMap-DZ6yniwl.js} +46 -44
  270. package/dist/regionBar-mMaN5NEc.cjs +3 -0
  271. package/dist/{regionBar-VB-2GpR0.js → regionBar-vp5D52Jd.js} +14 -13
  272. package/dist/{request-BHfDxLXZ.js → request-CMbwWTDF.js} +9 -9
  273. package/dist/{request-DU8pRyvu.cjs → request-DegEaaCG.cjs} +1 -1
  274. package/dist/retainer1-CF2Tr7Zt.cjs +1 -0
  275. package/dist/{retainer1-C_109Weq.js → retainer1-Xvdlh-B_.js} +17 -16
  276. package/dist/retainer2-BQVUhgcH.cjs +1 -0
  277. package/dist/{retainer2-BiHUTumr.js → retainer2-D3a-c_BA.js} +43 -42
  278. package/dist/{retainerRecordList-Cgil_g8a.js → retainerRecordList-BJbPsJ4D.js} +47 -45
  279. package/dist/retainerRecordList-Rqnoz6_6.cjs +1 -0
  280. package/dist/retainerRecordListAPP-B4IDQK3C.cjs +1 -0
  281. package/dist/retainerRecordListAPP-CNntGyA-.js +1068 -0
  282. package/dist/{ringTopN-C9AH-t3T.js → ringTopN-BFKlXqGX.js} +18 -16
  283. package/dist/ringTopN-CsouIsk1.cjs +1 -0
  284. package/dist/{riskRegionTable-Co1uxMzf.js → riskRegionTable-B6k4uM0_.js} +26 -19
  285. package/dist/riskRegionTable-DttMvHe5.cjs +1 -0
  286. package/dist/sankey-CAuBQaYh.cjs +1 -0
  287. package/dist/{sankey-Bag0ladh.js → sankey-DEQK7uU6.js} +17 -15
  288. package/dist/{scd-D9AiOiPg.js → scd-D5TicpCZ.js} +1282 -1062
  289. package/dist/scd-qaap6hGW.cjs +1 -0
  290. package/dist/{sideMenu-869HFB0p.js → sideMenu-ByyrOOYh.js} +28 -27
  291. package/dist/sideMenu-D-73DoYb.cjs +1 -0
  292. package/dist/{slopeStability-bZ0lHLjZ.js → slopeStability-BtgMH3oW.js} +44 -42
  293. package/dist/slopeStability-CTN6Kpva.cjs +1 -0
  294. package/dist/speedCurve-C5NoQCjK.cjs +1 -0
  295. package/dist/{speedCurve-DZ52XKCk.js → speedCurve-CInn7NAC.js} +43 -41
  296. package/dist/staticLine-BC-zj5yZ.cjs +1 -0
  297. package/dist/{staticLine-CyPnmKCh.js → staticLine-CLqN4lpU.js} +51 -50
  298. package/dist/stressFilterBar-Cpfbmllu.cjs +1 -0
  299. package/dist/{stressFilterBar-BAUt2bGy.js → stressFilterBar-D_QqOHna.js} +46 -45
  300. package/dist/{stressTimeCurve-IW4ArsyA.js → stressTimeCurve-1HXHUj-F.js} +64 -62
  301. package/dist/stressTimeCurve-Bp6Cevk1.cjs +1 -0
  302. package/dist/{swiper-BPS9C2GV.cjs → swiper-B8YZ2VQ2.cjs} +1 -1
  303. package/dist/{swiper-RM0GoZkW.js → swiper-D_y4Fj_D.js} +25 -24
  304. package/dist/terminalConfigList-B39cEptG.cjs +1 -0
  305. package/dist/{terminalConfigList-n7NE5NdJ.js → terminalConfigList-CHbA4y-S.js} +38 -36
  306. package/dist/terminalList-Vf-Dbybr.cjs +1 -0
  307. package/dist/{terminalList-Byb4eLcD.js → terminalList-oJFrGVtT.js} +38 -36
  308. package/dist/terminalListAPP-CdBG8krw.cjs +1 -0
  309. package/dist/terminalListAPP-DWArp2D4.js +1366 -0
  310. package/dist/{textbox-DM1AUWw8.js → textbox-D8nmoGjG.js} +13 -12
  311. package/dist/textbox-DPoyxB4u.cjs +1 -0
  312. package/dist/{timeQueryBar-Tbd9M8UT.js → timeQueryBar-DyC0iHq9.js} +21 -20
  313. package/dist/timeQueryBar-uUGotoTx.cjs +1 -0
  314. package/dist/{timeSeries-DCV2YjC2.cjs → timeSeries-BhlqgEOq.cjs} +2 -2
  315. package/dist/{timeSeries-CdpEx6bf.js → timeSeries-U91gMDDQ.js} +66 -64
  316. package/dist/timeSeriesCurve-CiRMnZRD.cjs +1 -0
  317. package/dist/{timeSeriesCurve-C1AmF6TP.js → timeSeriesCurve-DOhIS88N.js} +68 -66
  318. package/dist/{toggleBtn-BGjXjIuK.cjs → toggleBtn-CuWwHFjD.cjs} +1 -1
  319. package/dist/{toggleBtn-XS9MjfKM.js → toggleBtn-DE35dkxx.js} +46 -44
  320. package/dist/trajectoryConfigPanel-DAbF8oE9.cjs +1 -0
  321. package/dist/{trajectoryConfigPanel-BC90nD1T.js → trajectoryConfigPanel-Ye7NY6rd.js} +35 -34
  322. package/dist/{trajectoryScatter-DF_ESBn8.js → trajectoryScatter-DL7HUNJI.js} +47 -45
  323. package/dist/trajectoryScatter-Dg99HzM3.cjs +1 -0
  324. package/dist/universalConfigPanel-1svBCvD9.cjs +1 -0
  325. package/dist/{universalConfigPanel-DjNTwJkz.js → universalConfigPanel-CkyIDl_x.js} +50 -49
  326. package/dist/{universalTable-BY9vRraC.js → universalTable--dpnyNO2.js} +56 -54
  327. package/dist/universalTable-D8w7FQbl.cjs +2 -0
  328. package/dist/useMixiotPanelSurface-CAZgexY5.cjs +1 -0
  329. package/dist/useMixiotPanelSurface-DRl3cZvc.js +22 -0
  330. package/dist/useTableBodyHeight-CwrQvi7M.js +21 -0
  331. package/dist/useTableBodyHeight-pf87uGjw.cjs +1 -0
  332. package/dist/{video-DDvDGDql.js → video-BmMSRRa_.js} +5 -4
  333. package/dist/{video-8_Sf1uz0.cjs → video-RGIZoUn6.cjs} +2 -2
  334. package/dist/videoMonitor-Bo5T0MT_.cjs +1 -0
  335. package/dist/{videoMonitor-sce5N4Q5.js → videoMonitor-uf6tt2E6.js} +34 -33
  336. package/dist/{vlu-BKeYJtOO.js → vlu-D8l5zE_P.js} +24 -23
  337. package/dist/vlu-DEo_h1qN.cjs +1 -0
  338. package/dist/warningOverview-A5AA_vCc.cjs +1 -0
  339. package/dist/{warningOverview-CG5mwtaO.js → warningOverview-CA0PikjV.js} +31 -30
  340. package/dist/{weather-CWvAqxgX.cjs → weather-D20MGzuJ.cjs} +1 -1
  341. package/dist/{weather-BrX2a1an.js → weather-DuseqeNF.js} +19 -18
  342. package/dist/{windLin-BbbsSwuF.cjs → windLin-BU6Q87dE.cjs} +1 -1
  343. package/dist/{windLin-P4Gs2aBB.js → windLin-D8AUL_dV.js} +58 -57
  344. package/package.json +120 -120
  345. package/dist/BaseComponent-CNXUpPY1.cjs +0 -1
  346. package/dist/UniverSheet-CntkzcVZ.cjs +0 -1
  347. package/dist/accelerationChart-DLV-1mpA.cjs +0 -6
  348. package/dist/actionItem-CFxzHf4E.cjs +0 -1
  349. package/dist/alarmLevelChart-DCC6D1fH.cjs +0 -2
  350. package/dist/alertTable-BREZBeS5.cjs +0 -1
  351. package/dist/aliasObjectSelectorDemo-DunKWEkT.cjs +0 -1
  352. package/dist/annualRainfallChart-BJyoUBDn.cjs +0 -1
  353. package/dist/aqiIndass-B441j8CT.cjs +0 -3
  354. package/dist/areaDeformCurve-Dj405Jil.cjs +0 -1
  355. package/dist/arrayCard-B7zb1dFi.cjs +0 -1
  356. package/dist/audio-BfsYRWbm.cjs +0 -1
  357. package/dist/bmp-DIkLqzRN.cjs +0 -1
  358. package/dist/box-kXjrgG2u.cjs +0 -1
  359. package/dist/chartConfigPanel-DN4LMy8-.cjs +0 -1
  360. package/dist/clock-EbmFBRb-.cjs +0 -1
  361. package/dist/clt-C-9xGiKs.cjs +0 -1
  362. package/dist/cmc-CFa8Q3tu.cjs +0 -1
  363. package/dist/conclusionCard-Dlg5GWlE.cjs +0 -1
  364. package/dist/controlList-C1vhlonT.cjs +0 -1
  365. package/dist/controlRecordList-BhK7KtLR.cjs +0 -1
  366. package/dist/crd-CgxqxwKV.cjs +0 -1
  367. package/dist/ctrBtn-BSJ9c7Pt.cjs +0 -1
  368. package/dist/ctrSet-B9M4yI53.cjs +0 -1
  369. package/dist/ctrSwitch-C6dUn_qm.js +0 -206
  370. package/dist/ctrSwitch-ZvMCYKvG.cjs +0 -1
  371. package/dist/dataManagement-CNrEa_zB.cjs +0 -1
  372. package/dist/datetime-CAyDWKE8.cjs +0 -1
  373. package/dist/deepClusterSlipSurface-DzoyF6i1.cjs +0 -1
  374. package/dist/deepDataMatrix--AstWPiL.cjs +0 -1
  375. package/dist/deepDisplacementChart-BnT1ZdfR.cjs +0 -6
  376. package/dist/deepDisplacementChart-DOPij7KP.cjs +0 -5
  377. package/dist/deepDisplacementView-u1IPcbxN.cjs +0 -8
  378. package/dist/deepNodeTemperatureChart-CD3JbqkA.cjs +0 -1
  379. package/dist/deepTangentAngleChart-BCAauuDY.cjs +0 -1
  380. package/dist/deepTemperatureField-BxuKsrtc.cjs +0 -1
  381. package/dist/deepTrendChart-6L4cCHgh.cjs +0 -1
  382. package/dist/deviceOnlineStatus-WkwzGom4.cjs +0 -2
  383. package/dist/deviceStatus-BoIv8fbr.cjs +0 -1
  384. package/dist/displacementDataTable-BwcxrsuU.cjs +0 -1
  385. package/dist/displacementTrajectoryChart-BOPIBgi5.cjs +0 -22
  386. package/dist/displacementTrendChart-CI8i0oQY.cjs +0 -5
  387. package/dist/emergencyPlan-BRFhMubg.cjs +0 -1
  388. package/dist/evn-B05d7LtF.cjs +0 -1
  389. package/dist/evolutionChart-y2mkLVwU.cjs +0 -1
  390. package/dist/fileViewer-Dy2fdABW.cjs +0 -1
  391. package/dist/filterBar-CcrUdD-O.cjs +0 -1
  392. package/dist/fireCombustionCurve-B-6MZLul.cjs +0 -1
  393. package/dist/fireFilterBar-C9b_Ohvr.cjs +0 -1
  394. package/dist/fireHistoryTable-5sG5FDCD.cjs +0 -3
  395. package/dist/gag-CDX99Ta4.cjs +0 -1
  396. package/dist/gasStationList-Dl9qawf_.cjs +0 -1
  397. package/dist/globalObjectSelector-Bz2XhgxT.cjs +0 -1
  398. package/dist/gnssFilterBar-BT19n0j_.cjs +0 -1
  399. package/dist/gnssHistoryTable-CrS2qO6S.cjs +0 -3
  400. package/dist/gnssSectionProfile-_KbP1NXU.cjs +0 -1
  401. package/dist/gnssTimeSeriesChart-BgFoXAZv.cjs +0 -1
  402. package/dist/gnssXYTrajectory-C1N3RWzp.cjs +0 -5
  403. package/dist/grd-DtDoJOOa.cjs +0 -1
  404. package/dist/grdIndass-ci3JkvGZ.cjs +0 -1
  405. package/dist/grg-C2qVuXYE.cjs +0 -1
  406. package/dist/gridview-BLAlr5uj.cjs +0 -1
  407. package/dist/groundwaterFilterBar-1E1j67JT.cjs +0 -1
  408. package/dist/groundwaterProfileChart-CS9xelz8.cjs +0 -11
  409. package/dist/groundwaterTimeCurve-DYiDLgVY.cjs +0 -1
  410. package/dist/headerBar-OwCxpc4o.cjs +0 -1
  411. package/dist/index-D8dh_6Qd.cjs +0 -612
  412. package/dist/insarDeformChart-CSQ7fc2p.cjs +0 -1
  413. package/dist/insarImageViewer-DvaRS1zr.cjs +0 -1
  414. package/dist/kpiCard-oLpk5d4m.cjs +0 -2
  415. package/dist/landslideMap-CO8o7T8J.cjs +0 -1
  416. package/dist/landslideWarning-BZXa5qTB.cjs +0 -1
  417. package/dist/layerTabs-BxRAsklw.cjs +0 -1
  418. package/dist/linIndass-Bb7UA-zk.cjs +0 -2
  419. package/dist/lst-Dri1MTDI.cjs +0 -1
  420. package/dist/manualEntry-D74dgZv8.cjs +0 -1
  421. package/dist/mappingList-CBN7ArkQ.cjs +0 -1
  422. package/dist/mixGrid-DTj2pmFW.cjs +0 -1
  423. package/dist/mixMap-B4T4R6kA.cjs +0 -1
  424. package/dist/mixModel-BzilRtjf.cjs +0 -3
  425. package/dist/mixPie-DtQm-LGp.cjs +0 -2
  426. package/dist/mjpegCamera-Lu3UHJ83.cjs +0 -1
  427. package/dist/monitorAlert-Ctt2kCxQ.cjs +0 -1
  428. package/dist/monitorData-D_tMbx_Y.cjs +0 -1
  429. package/dist/myValue-FZPOucSS.cjs +0 -1
  430. package/dist/myValueList-XIDK3ove.cjs +0 -1
  431. package/dist/objectList-BtbxHtJj.cjs +0 -1
  432. package/dist/photo-BITvEhKG.cjs +0 -1
  433. package/dist/photo-CjulDHTM.js +0 -873
  434. package/dist/placeholder-3kajeeeb.cjs +0 -1
  435. package/dist/pressBtn-pUcQtd5n.cjs +0 -1
  436. package/dist/processTable-CDulvQlu.cjs +0 -3
  437. package/dist/rad-Dk4PrnyI.cjs +0 -1
  438. package/dist/radarMapViewer-TJIPACdT.cjs +0 -1
  439. package/dist/rainfallFilterBar-Myq0MBCf.cjs +0 -1
  440. package/dist/rainfallTimeCurve-BUI-RlnG.cjs +0 -1
  441. package/dist/rangeLin-DYCZ8wVc.cjs +0 -3
  442. package/dist/realtimeEvolutionMap-BwyQdAhL.cjs +0 -1
  443. package/dist/regionBar-DsxqfirI.cjs +0 -3
  444. package/dist/retainer1-CSqjvY4k.cjs +0 -1
  445. package/dist/retainer2-Bqlwvr53.cjs +0 -1
  446. package/dist/retainerRecordList-DWZ3WDiz.cjs +0 -1
  447. package/dist/ringTopN-Bp0er_zV.cjs +0 -1
  448. package/dist/riskRegionTable-B3bzMaR_.cjs +0 -1
  449. package/dist/sankey-B4BJ4xIo.cjs +0 -1
  450. package/dist/scd-Dgd3KDpk.cjs +0 -1
  451. package/dist/sideMenu-BQ5rrGBr.cjs +0 -1
  452. package/dist/slopeStability-D96aiykf.cjs +0 -1
  453. package/dist/speedCurve-5nWqVAzz.cjs +0 -1
  454. package/dist/staticLine-DUCg-0tI.cjs +0 -1
  455. package/dist/stressFilterBar-CorWdmpQ.cjs +0 -1
  456. package/dist/stressTimeCurve-Bci50Cwv.cjs +0 -1
  457. package/dist/terminalConfigList-O881ke5o.cjs +0 -1
  458. package/dist/terminalList-C9TB2cJH.cjs +0 -1
  459. package/dist/textbox-BMWnbPvz.cjs +0 -1
  460. package/dist/timeQueryBar-C6ZheMvD.cjs +0 -1
  461. package/dist/timeSeriesCurve-DRlr5n3U.cjs +0 -1
  462. package/dist/trajectoryConfigPanel-DJ6fOeb1.cjs +0 -1
  463. package/dist/trajectoryScatter-C7kfSkyS.cjs +0 -1
  464. package/dist/universalConfigPanel-PO1hdgjw.cjs +0 -1
  465. package/dist/universalTable-QAb6UKCq.cjs +0 -2
  466. package/dist/useMixiotPanelSurface-BMNrWBMF.cjs +0 -1
  467. package/dist/useMixiotPanelSurface-DlVkLttU.js +0 -40
  468. package/dist/videoMonitor-BKLD_aQs.cjs +0 -1
  469. package/dist/vlu-C0XLDKKk.cjs +0 -1
  470. package/dist/warningOverview--n7crFnZ.cjs +0 -1
@@ -0,0 +1,811 @@
1
+ var ne = Object.defineProperty, se = Object.defineProperties;
2
+ var le = Object.getOwnPropertyDescriptors;
3
+ var G = Object.getOwnPropertySymbols;
4
+ var de = Object.prototype.hasOwnProperty, ce = Object.prototype.propertyIsEnumerable;
5
+ var Z = (e, t, o) => t in e ? ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, b = (e, t) => {
6
+ for (var o in t || (t = {}))
7
+ de.call(t, o) && Z(e, o, t[o]);
8
+ if (G)
9
+ for (var o of G(t))
10
+ ce.call(t, o) && Z(e, o, t[o]);
11
+ return e;
12
+ }, E = (e, t) => se(e, le(t));
13
+ var s = (e, t, o) => new Promise((n, a) => {
14
+ var d = (m) => {
15
+ try {
16
+ i(o.next(m));
17
+ } catch (v) {
18
+ a(v);
19
+ }
20
+ }, u = (m) => {
21
+ try {
22
+ i(o.throw(m));
23
+ } catch (v) {
24
+ a(v);
25
+ }
26
+ }, i = (m) => m.done ? n(m.value) : Promise.resolve(m.value).then(d, u);
27
+ i((o = o.apply(e, t)).next());
28
+ });
29
+ import { ElButton as ue } 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 he, ref as R, defineComponent as _e, computed as O, onMounted as pe, onBeforeUnmount as me, openBlock as L, createElementBlock as M, normalizeStyle as x, unref as A, createElementVNode as g, normalizeClass as fe, toDisplayString as T, createVNode as ye, withCtx as ve, createTextVNode as ge, createCommentVNode as $, renderSlot as we } from "vue";
33
+ import { u as be } from "./vue-i18n-5Nahpzrm.js";
34
+ import { B as Re } from "./BaseComponent-CBagahPU.js";
35
+ import { a as y, u as Le, r as Me, _ as Se } from "./index-DwPJu6XM.js";
36
+ import { e as Ne, b as j } from "./materialFileUrl-CubtnHeq.js";
37
+ import { ElMessage as H } from "element-plus";
38
+ import { A as Ce, D as Ee } from "./ele-bmp-icon-Pdolk1J5.js";
39
+ process.env.NODE_ENV;
40
+ process.env.NODE_ENV;
41
+ process.env.NODE_ENV;
42
+ process.env.NODE_ENV;
43
+ const Ae = /* @__PURE__ */ Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
44
+ process.env.NODE_ENV;
45
+ function Be(e) {
46
+ return he(Ae);
47
+ }
48
+ const I = (e) => {
49
+ const t = typeof e == "string" ? Number(e) : e;
50
+ return t === 0 || t === 200;
51
+ }, Ue = (e, t) => {
52
+ if (e && String(e).trim()) {
53
+ const o = String(e).trim();
54
+ if (o.startsWith("http://") || o.startsWith("https://"))
55
+ try {
56
+ return new URL(o).pathname || "";
57
+ } catch (n) {
58
+ return o;
59
+ }
60
+ return o.startsWith("/") ? o : `/${o}`;
61
+ }
62
+ return t ? `/yunfiles/material/file/${t}` : "";
63
+ }, De = {
64
+ /**
65
+ * 上传文件到存储服务(旧流程,非素材接口使用)
66
+ * @param file 文件对象
67
+ * @returns 返回文件访问URL
68
+ */
69
+ uploadFile(e) {
70
+ return s(this, null, function* () {
71
+ var n;
72
+ const t = new FormData();
73
+ t.append("file", e);
74
+ const o = yield y.upload(t, !0);
75
+ if (I(o.code) && ((n = o.result) != null && n.url))
76
+ return o.result.url;
77
+ throw new Error(o.msg || "文件上传失败");
78
+ });
79
+ },
80
+ /**
81
+ * 上传原图(Base64)到存储,获取 material_path;同时可带缩略图 Base64
82
+ * @param materialDataBase64 原图 Base64(可为 data:image/png;base64,xxx 或纯 base64)
83
+ * @param materialType 素材类型,如 png、jpeg
84
+ * @returns 返回 material_path、uid 等,用于后续 create_dashboard_material
85
+ */
86
+ uploadMaterialGetPath(e, t) {
87
+ return s(this, null, function* () {
88
+ var d, u;
89
+ const n = {
90
+ material_data: e.includes(",") ? e.split(",")[1] : e,
91
+ material_type: t || "png"
92
+ }, a = yield y.post("upload_material", n, !0);
93
+ if (I(a.code) && a.result) {
94
+ const i = a.result, m = Ue(i.material_path || i.relative_path || "", i.file_id);
95
+ if (m)
96
+ return E(b({}, i), {
97
+ material_path: m,
98
+ material_size: (u = (d = i.material_size) != null ? d : i.file_size) != null ? u : 0,
99
+ material_type: i.material_type || i.mime_type || t || "png",
100
+ name: i.name || i.file_name || ""
101
+ });
102
+ }
103
+ throw new Error(a.info || a.msg || "上传原图获取路径失败");
104
+ });
105
+ },
106
+ /**
107
+ * 创建素材(将 upload_material 返回的 material_path 与 thumbnail base64 一并提交)
108
+ * @param params 创建参数,其中 material_path 来自 upload_material,thumbnail 为 Base64 字符串
109
+ * @returns 返回创建的素材 { uid },供 add_data_to_menu 等使用
110
+ */
111
+ createMaterial(e) {
112
+ return s(this, null, function* () {
113
+ var o;
114
+ const t = yield y.post("create_dashboard_material", e, !0);
115
+ if (I(t.code) && ((o = t.result) != null && o.uid))
116
+ return t.result;
117
+ throw new Error(t.info || t.msg || "创建素材失败");
118
+ });
119
+ },
120
+ /**
121
+ * 上传素材(临时流程:仅调用 upload_material)
122
+ * @param file 用户选择的文件
123
+ * @param options 可选:name、is_system(当前仅保留入参兼容,接口不使用)
124
+ * @returns 返回上传后的素材 UID
125
+ */
126
+ uploadAndCreateMaterial(o) {
127
+ return s(this, arguments, function* (e, t = {}) {
128
+ var u;
129
+ const n = ((u = e.name.split(".").pop()) == null ? void 0 : u.toLowerCase()) || "png", a = yield this._fileToBase64(e), d = yield this.uploadMaterialGetPath(a, n);
130
+ if (d.uid)
131
+ return { uid: d.uid };
132
+ throw new Error("upload_material 未返回 uid");
133
+ });
134
+ },
135
+ /** 将 File 转为 Base64 data URL */
136
+ _fileToBase64(e) {
137
+ return new Promise((t, o) => {
138
+ const n = new FileReader();
139
+ n.onload = () => t(n.result), n.onerror = () => o(new Error("文件读取失败")), n.readAsDataURL(e);
140
+ });
141
+ },
142
+ /**
143
+ * 获取素材列表(不按用户过滤)
144
+ * @param params 查询参数
145
+ */
146
+ getMaterialList() {
147
+ return s(this, arguments, function* (e = {}) {
148
+ const t = b({
149
+ page_index: e.page_index || 1,
150
+ page_size: e.page_size || 20,
151
+ order_by: e.order_by || "created",
152
+ order_type: e.order_type || "desc"
153
+ }, e);
154
+ return yield y.post("get_dashboard_material_list", t);
155
+ });
156
+ },
157
+ /**
158
+ * 获取我的素材列表(按当前用户过滤)
159
+ * 注意:user_id 由后端从 Token 解析,无需传递
160
+ * @param params 查询参数
161
+ */
162
+ getMyMaterialList() {
163
+ return s(this, arguments, function* (e = {}) {
164
+ const t = b({
165
+ page_index: e.page_index || 1,
166
+ page_size: e.page_size || 20,
167
+ order_by: e.order_by || "created",
168
+ order_type: e.order_type || "desc"
169
+ }, e);
170
+ return yield y.post("get_my_dashboard_material_list", t);
171
+ });
172
+ },
173
+ /**
174
+ * 获取素材详情
175
+ * 注意:uid 从请求参数中读取
176
+ * @param uid 素材UID
177
+ */
178
+ getMaterialItem(e) {
179
+ return s(this, null, function* () {
180
+ return yield y.post("get_dashboard_material_item", { uid: e });
181
+ });
182
+ },
183
+ /**
184
+ * 更新素材
185
+ * 注意:仅白名单内字段允许更新
186
+ * @param params 更新参数
187
+ */
188
+ updateMaterial(e) {
189
+ return s(this, null, function* () {
190
+ return yield y.post("update_dashboard_material", e, !0);
191
+ });
192
+ },
193
+ /**
194
+ * 删除素材
195
+ * 注意:uid 从请求参数中读取
196
+ * 注意:若素材存在关联记录,将拒绝删除
197
+ * @param uid 素材UID
198
+ */
199
+ deleteMaterial(e) {
200
+ return s(this, null, function* () {
201
+ return yield y.post("delete_dashboard_material", { uid: e }, !0);
202
+ });
203
+ },
204
+ /**
205
+ * 根据素材路径删除素材(先按 material_path 查询我的素材,再按 uid 调用 delete_dashboard_material)
206
+ * 用于替代已废弃的 delete_image,上传新图前清理旧素材
207
+ * @param path 素材路径(即 URL 去掉 FILE_URL 前缀后的部分,可有可无前导 /)
208
+ */
209
+ deleteMaterialByPath(e) {
210
+ return s(this, null, function* () {
211
+ var o;
212
+ if (!e || !String(e).trim()) return;
213
+ const t = String(e).replace(/^\//, "");
214
+ try {
215
+ const n = yield this.getMyMaterialList({
216
+ page_index: 1,
217
+ page_size: 10,
218
+ where_and: JSON.stringify([["material_path", "=", t]])
219
+ }), a = (o = n == null ? void 0 : n.result) == null ? void 0 : o.data;
220
+ Array.isArray(a) && a.length > 0 && a[0].uid && (yield this.deleteMaterial(a[0].uid));
221
+ } catch (n) {
222
+ }
223
+ });
224
+ }
225
+ }, K = {
226
+ _buildWhereAnd(e) {
227
+ return JSON.stringify(e.filter(([, , t]) => t != null));
228
+ },
229
+ _isEmptyId(e) {
230
+ return e == null || String(e).trim() === "";
231
+ },
232
+ _isComponentLevel(e) {
233
+ return !this._isEmptyId(e.component_id);
234
+ },
235
+ _isLayerLevel(e) {
236
+ return this._isEmptyId(e.component_id) && !this._isEmptyId(e.layer_id);
237
+ },
238
+ _isSheetLevel(e) {
239
+ return this._isEmptyId(e.component_id) && this._isEmptyId(e.layer_id) && !this._isEmptyId(e.sheet_id);
240
+ },
241
+ _isDashboardLevel(e) {
242
+ return this._isEmptyId(e.component_id) && this._isEmptyId(e.layer_id) && this._isEmptyId(e.sheet_id);
243
+ },
244
+ _listRelations(e) {
245
+ return s(this, null, function* () {
246
+ var o;
247
+ const t = yield this.getMaterialRelationList({
248
+ page_index: 1,
249
+ page_size: 999,
250
+ where_and: e
251
+ });
252
+ return ((o = t == null ? void 0 : t.result) == null ? void 0 : o.data) || [];
253
+ });
254
+ },
255
+ _deleteByUid(e, t) {
256
+ return s(this, null, function* () {
257
+ t && (yield this.deleteMaterialRelation({
258
+ dashboard_record_uid: e,
259
+ uid: t
260
+ }));
261
+ });
262
+ },
263
+ _deleteByRelation(e) {
264
+ return s(this, null, function* () {
265
+ e != null && e.dashboard_record_uid && (yield this.deleteMaterialRelation({
266
+ dashboard_record_uid: e.dashboard_record_uid,
267
+ dashboard_id: e.dashboard_id,
268
+ sheet_id: e.sheet_id,
269
+ layer_id: e.layer_id,
270
+ component_id: e.component_id,
271
+ uid: e.uid
272
+ }));
273
+ });
274
+ },
275
+ _deleteRelationList(e, t) {
276
+ return s(this, null, function* () {
277
+ for (const o of t)
278
+ yield this._deleteByUid(e, o.uid);
279
+ });
280
+ },
281
+ /**
282
+ * 新增素材关联
283
+ *
284
+ * 特殊逻辑:如果 dashboard_record_uid + dashboard_id + sheet_id + layer_id + component_id
285
+ * 五个条件完全相同的记录已存在,则执行更新而非新建
286
+ *
287
+ * @param params 创建参数
288
+ * @returns 返回创建的关联 UID
289
+ */
290
+ createMaterialRelation(e) {
291
+ return s(this, null, function* () {
292
+ return yield y.post("create_dashboard_materials_relation", e, !0);
293
+ });
294
+ },
295
+ /**
296
+ * 删除素材关联
297
+ *
298
+ * 通过 Body 传递条件进行批量删除
299
+ * dashboard_record_uid 为必填,其余条件可选,用于缩小删除范围
300
+ *
301
+ * @param params 删除参数
302
+ */
303
+ deleteMaterialRelation(e) {
304
+ return s(this, null, function* () {
305
+ return yield y.post("delete_dashboard_materials_relation", e, !0);
306
+ });
307
+ },
308
+ /**
309
+ * 查询素材关联列表
310
+ *
311
+ * 注意:虽然命名为 "get_my_...",但实际路由到通用 GetList,不会自动按 user_id 过滤
312
+ * 如需按用户过滤,请通过 where_and 条件手动指定
313
+ *
314
+ * @param params 查询参数
315
+ */
316
+ getMaterialRelationList() {
317
+ return s(this, arguments, function* (e = {}) {
318
+ const t = b({
319
+ page_index: e.page_index || 1,
320
+ page_size: e.page_size || 20,
321
+ order_by: e.order_by || "created",
322
+ order_type: e.order_type || "desc"
323
+ }, e);
324
+ 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);
325
+ });
326
+ },
327
+ /**
328
+ * 查询指定显示板的素材关联列表
329
+ *
330
+ * @param dashboardRecordUid 显示板设计记录 UID
331
+ * @param params 其他查询参数
332
+ */
333
+ getMaterialRelationsByDashboard(o) {
334
+ return s(this, arguments, function* (e, t = {}) {
335
+ const n = JSON.stringify([["dashboard_record_uid", "=", e]]);
336
+ return yield this.getMaterialRelationList(E(b({}, t), {
337
+ where_and: n
338
+ }));
339
+ });
340
+ },
341
+ /**
342
+ * 查询指定组件的素材关联
343
+ *
344
+ * @param dashboardRecordUid 显示板设计记录 UID
345
+ * @param componentId 组件 ID
346
+ * @param params 其他查询参数
347
+ */
348
+ getMaterialRelationByComponent(n, a) {
349
+ return s(this, arguments, function* (e, t, o = {}) {
350
+ const d = JSON.stringify([
351
+ ["dashboard_record_uid", "=", e],
352
+ ["component_id", "=", t]
353
+ ]);
354
+ return yield this.getMaterialRelationList(E(b({}, o), {
355
+ where_and: d
356
+ }));
357
+ });
358
+ },
359
+ /**
360
+ * 查询某素材的所有关联关系
361
+ */
362
+ getRelationsByMaterial(e) {
363
+ return s(this, null, function* () {
364
+ var n;
365
+ if (!e) return [];
366
+ const t = JSON.stringify([["material_uid", "=", e]]), o = yield this.getMaterialRelationList({
367
+ page_index: 1,
368
+ page_size: 999,
369
+ where_and: t
370
+ });
371
+ return ((n = o == null ? void 0 : o.result) == null ? void 0 : n.data) || [];
372
+ });
373
+ },
374
+ /**
375
+ * 统计素材使用概览(关联条数 + 关联显示板数)
376
+ */
377
+ getMaterialUsageSummary(e) {
378
+ return s(this, null, function* () {
379
+ const t = yield this.getRelationsByMaterial(e), o = /* @__PURE__ */ new Set();
380
+ return t.forEach((n) => {
381
+ const a = String(n.dashboard_record_uid || "").trim();
382
+ a && o.add(a);
383
+ }), {
384
+ relationCount: t.length,
385
+ dashboardCount: o.size,
386
+ relations: t
387
+ };
388
+ });
389
+ },
390
+ /**
391
+ * 删除某素材的所有关联(仅删关系,不删素材实体)
392
+ */
393
+ deleteAllRelationsByMaterial(e) {
394
+ return s(this, null, function* () {
395
+ const t = yield this.getRelationsByMaterial(e);
396
+ for (const o of t)
397
+ !(o != null && o.uid) || !(o != null && o.dashboard_record_uid) || (yield this.deleteMaterialRelation({
398
+ dashboard_record_uid: o.dashboard_record_uid,
399
+ uid: o.uid
400
+ }));
401
+ return t.length;
402
+ });
403
+ },
404
+ /**
405
+ * 删除指定显示板的所有素材关联
406
+ *
407
+ * @param dashboardRecordUid 显示板设计记录 UID
408
+ */
409
+ deleteAllRelationsByDashboard(e) {
410
+ return s(this, null, function* () {
411
+ return yield this.deleteRelationsByDashboardHierarchy(e);
412
+ });
413
+ },
414
+ /**
415
+ * 删除指定组件的素材关联
416
+ *
417
+ * @param dashboardRecordUid 显示板设计记录 UID
418
+ * @param componentId 组件 ID
419
+ */
420
+ deleteRelationByComponent(e, t) {
421
+ return s(this, null, function* () {
422
+ return yield this.deleteMaterialRelation({
423
+ dashboard_record_uid: e,
424
+ component_id: t
425
+ });
426
+ });
427
+ },
428
+ /**
429
+ * 删除组件级关系(精确:dashboard + sheet + layer + component)
430
+ */
431
+ deleteComponentRelations(e, t, o, n) {
432
+ return s(this, null, function* () {
433
+ if (!e || !t || !o || !n) return;
434
+ const a = this._buildWhereAnd([
435
+ ["dashboard_record_uid", "=", e],
436
+ ["sheet_id", "=", t],
437
+ ["layer_id", "=", o],
438
+ ["component_id", "=", n]
439
+ ]), d = yield this._listRelations(a);
440
+ for (const u of d)
441
+ yield this._deleteByRelation(u);
442
+ });
443
+ },
444
+ /**
445
+ * 删除图层级自身关系(不删组件关系)
446
+ */
447
+ deleteLayerLevelRelations(e, t, o) {
448
+ return s(this, null, function* () {
449
+ if (!e || !t || !o) return;
450
+ const n = this._buildWhereAnd([
451
+ ["dashboard_record_uid", "=", e],
452
+ ["sheet_id", "=", t],
453
+ ["layer_id", "=", o]
454
+ ]), d = (yield this._listRelations(n)).filter((u) => this._isLayerLevel(u));
455
+ for (const u of d)
456
+ yield this._deleteByRelation(u);
457
+ });
458
+ },
459
+ /**
460
+ * 删除 sheet 级自身关系(不删 layer/component)
461
+ */
462
+ deleteSheetLevelRelations(e, t) {
463
+ return s(this, null, function* () {
464
+ if (!e || !t) return;
465
+ const o = this._buildWhereAnd([
466
+ ["dashboard_record_uid", "=", e],
467
+ ["sheet_id", "=", t]
468
+ ]), a = (yield this._listRelations(o)).filter((d) => this._isSheetLevel(d));
469
+ for (const d of a)
470
+ yield this._deleteByRelation(d);
471
+ });
472
+ },
473
+ /**
474
+ * 删除 dashboard 级自身关系(不删 sheet/layer/component)
475
+ */
476
+ deleteDashboardLevelRelations(e) {
477
+ return s(this, null, function* () {
478
+ if (!e) return;
479
+ const t = this._buildWhereAnd([
480
+ ["dashboard_record_uid", "=", e]
481
+ ]), n = (yield this._listRelations(t)).filter((a) => this._isDashboardLevel(a));
482
+ for (const a of n)
483
+ yield this._deleteByRelation(a);
484
+ });
485
+ },
486
+ /**
487
+ * 级联删除图层:组件关系 -> 图层自身关系
488
+ */
489
+ deleteRelationsByLayerHierarchy(e, t, o) {
490
+ return s(this, null, function* () {
491
+ if (!e || !t || !o) return;
492
+ const n = this._buildWhereAnd([
493
+ ["dashboard_record_uid", "=", e],
494
+ ["sheet_id", "=", t],
495
+ ["layer_id", "=", o]
496
+ ]), a = yield this._listRelations(n), d = a.filter((i) => this._isComponentLevel(i)), u = a.filter((i) => this._isLayerLevel(i));
497
+ for (const i of d)
498
+ yield this._deleteByRelation(i);
499
+ for (const i of u)
500
+ yield this._deleteByRelation(i);
501
+ });
502
+ },
503
+ /**
504
+ * 级联删除 sheet:组件关系 -> 图层关系 -> sheet 自身关系
505
+ */
506
+ deleteRelationsBySheetHierarchy(e, t) {
507
+ return s(this, null, function* () {
508
+ if (!e || !t) return;
509
+ const o = this._buildWhereAnd([
510
+ ["dashboard_record_uid", "=", e],
511
+ ["sheet_id", "=", t]
512
+ ]), n = yield this._listRelations(o), a = n.filter((i) => this._isComponentLevel(i)), d = n.filter((i) => this._isLayerLevel(i)), u = n.filter((i) => this._isSheetLevel(i));
513
+ for (const i of a)
514
+ yield this._deleteByRelation(i);
515
+ for (const i of d)
516
+ yield this._deleteByRelation(i);
517
+ for (const i of u)
518
+ yield this._deleteByRelation(i);
519
+ });
520
+ },
521
+ /**
522
+ * 级联删除 dashboard:组件关系 -> 图层关系 -> sheet 关系 -> dashboard 关系
523
+ */
524
+ deleteRelationsByDashboardHierarchy(e) {
525
+ return s(this, null, function* () {
526
+ if (!e) return;
527
+ const t = this._buildWhereAnd([
528
+ ["dashboard_record_uid", "=", e]
529
+ ]), o = yield this._listRelations(t), n = o.filter((i) => this._isComponentLevel(i)), a = o.filter((i) => this._isLayerLevel(i)), d = o.filter((i) => this._isSheetLevel(i)), u = o.filter((i) => this._isDashboardLevel(i));
530
+ for (const i of n)
531
+ yield this._deleteByRelation(i);
532
+ for (const i of a)
533
+ yield this._deleteByRelation(i);
534
+ for (const i of d)
535
+ yield this._deleteByRelation(i);
536
+ for (const i of u)
537
+ yield this._deleteByRelation(i);
538
+ });
539
+ }
540
+ }, Pe = R(!1), Oe = R("all");
541
+ function xe(e = "all") {
542
+ return Oe.value = e, Pe.value = !0, new Promise((t) => {
543
+ });
544
+ }
545
+ const Ie = { class: "mix-body" }, ke = { class: "upload-content" }, ze = {
546
+ viewBox: "0 0 24 24",
547
+ width: "48",
548
+ height: "48",
549
+ fill: "currentColor",
550
+ style: { opacity: "0.5" }
551
+ }, Fe = { class: "upload-text" }, Ve = {
552
+ key: 0,
553
+ class: "upload-actions"
554
+ }, We = {
555
+ key: 1,
556
+ class: "viewer-container"
557
+ }, Te = {
558
+ key: 0,
559
+ class: "file-info"
560
+ }, $e = { class: "file-name" }, je = ["title"], He = ["src", "alt"], Je = {
561
+ DEFAULT_ICON: Ee,
562
+ ACTIVE_ICON: Ce,
563
+ NAME_CN: "图片查看器",
564
+ NAME_EN: "Photo Viewer",
565
+ ORDER: 2,
566
+ PLATFORM: ["pc", "screen", "mobile"]
567
+ }, qe = {
568
+ imageDisplayMode: {
569
+ value: "center",
570
+ type: "select",
571
+ options: [
572
+ { label: "component.photo.center", value: "center" },
573
+ { label: "component.photo.tile", value: "tile" },
574
+ { label: "component.photo.stretch", value: "stretch" }
575
+ ],
576
+ label: "component.options.imageDisplayMode"
577
+ },
578
+ fileUrl: { value: "", type: "string", label: "component.options.fileUrl", placeholder: "请上传素材" },
579
+ fileName: { value: "", type: "string", label: "component.options.fileName", placeholder: "请上传素材" },
580
+ materialUid: { value: "", type: "string", label: "component.options.materialUid", placeholder: "素材UID" }
581
+ }, Ge = [], Ze = [], Ke = [], Qe = null, Xe = { DEFAULT: Je, OPTIONS: qe, DATA: Ge, PARAMS: Ze, SOURCE: Ke, COMMON: Qe }, Ye = /* @__PURE__ */ _e(E(b({}, Xe), {
582
+ __name: "photo",
583
+ props: {
584
+ conf: { type: Object, default: () => ({}) },
585
+ uid: { type: String, default: "" },
586
+ mode: { type: String, default: "edit" },
587
+ theme: { type: String, default: "light" }
588
+ },
589
+ setup(e) {
590
+ const { t } = be(), o = Le(), n = Be(), a = e;
591
+ class d extends Re {
592
+ extractStyles() {
593
+ return {
594
+ imageDisplayMode: this.getOptionValue("imageDisplayMode", "center"),
595
+ radiusSize: this.getOptionValue("radiusSize", 0)
596
+ };
597
+ }
598
+ init() {
599
+ this.Style.value = this.extractStyles(), this.applyTheme(), X();
600
+ }
601
+ }
602
+ const u = new d(a, "photo");
603
+ u.setupLifecycle();
604
+ const i = u.getStyle(), m = R(null), v = R(""), _ = R(""), S = R(""), k = R(!1), z = R(!1), Q = (r) => j(r), X = () => s(null, null, function* () {
605
+ var l, c, h;
606
+ const { conf: r } = a;
607
+ (c = (l = r == null ? void 0 : r.options) == null ? void 0 : l.fileUrl) != null && c.value && (v.value = Q(r.options.fileUrl.value), yield V(), S.value = ((h = r.options.fileName) == null ? void 0 : h.value) || "");
608
+ }), F = (r) => {
609
+ r && r.startsWith("blob:") && URL.revokeObjectURL(r);
610
+ }, V = () => s(null, null, function* () {
611
+ if (v.value)
612
+ try {
613
+ const r = Me();
614
+ if (!r) {
615
+ _.value = "";
616
+ return;
617
+ }
618
+ const l = Ne(v.value), c = yield fetch(l, {
619
+ mode: "cors",
620
+ credentials: "include",
621
+ headers: { Authorization: `Bearer ${r}` }
622
+ });
623
+ if (!c.ok) throw new Error(`load image failed: ${c.status}`);
624
+ const h = yield c.blob(), f = URL.createObjectURL(h);
625
+ F(_.value), _.value = f;
626
+ } catch (r) {
627
+ console.error("[Photo] 拉取图片失败:", r), F(_.value), _.value = "";
628
+ }
629
+ }), Y = O(() => ({
630
+ width: "100%",
631
+ height: "100%",
632
+ display: "flex",
633
+ alignItems: "center",
634
+ justifyContent: "center",
635
+ overflow: "hidden"
636
+ })), ee = O(() => {
637
+ var l;
638
+ const r = (l = i == null ? void 0 : i.value) == null ? void 0 : l.imageDisplayMode;
639
+ return r === "tile" ? { display: "none" } : r === "stretch" ? { width: "100%", height: "100%", objectFit: "fill" } : { width: "100%", height: "100%", objectFit: "contain" };
640
+ }), te = O(() => {
641
+ var r;
642
+ return ((r = i == null ? void 0 : i.value) == null ? void 0 : r.imageDisplayMode) !== "tile" || !_.value ? {} : {
643
+ width: "100%",
644
+ height: "100%",
645
+ backgroundImage: `url(${_.value})`,
646
+ backgroundRepeat: "repeat",
647
+ backgroundPosition: "center center"
648
+ };
649
+ }), W = O(() => {
650
+ const r = n.params.id;
651
+ return r ? String(r) : "";
652
+ }), J = (r) => {
653
+ var c;
654
+ const l = ((c = o.pageData) == null ? void 0 : c.sheets) || [];
655
+ for (const h of l) {
656
+ const f = h.id, N = h.caption || h.name || h.id, B = h.layers || [];
657
+ for (const w of B) {
658
+ const U = w.id, D = w.caption || w.name || w.id, P = w.components || [];
659
+ for (const p of P)
660
+ if ((p == null ? void 0 : p.id) === r) {
661
+ const C = p.caption || p.name || p.id;
662
+ return { sheetId: f, layerId: U, sheetName: N, layerName: D, componentName: C };
663
+ }
664
+ }
665
+ }
666
+ return { sheetId: "", layerId: "", sheetName: "", layerName: "", componentName: "" };
667
+ }, oe = (r) => s(null, null, function* () {
668
+ var f;
669
+ if (!W.value) return;
670
+ const l = a.uid || ((f = a.conf) == null ? void 0 : f.id);
671
+ if (!l || !r) return;
672
+ const { sheetId: c, layerId: h } = J(l);
673
+ try {
674
+ yield K.deleteComponentRelations(
675
+ W.value,
676
+ c,
677
+ h,
678
+ l
679
+ ), yield K.createMaterialRelation({
680
+ dashboard_record_uid: W.value,
681
+ material_uid: r,
682
+ sheet_id: c || void 0,
683
+ layer_id: h || void 0,
684
+ component_id: l
685
+ });
686
+ } catch (N) {
687
+ console.warn("[Photo] 同步素材关联失败:", N);
688
+ }
689
+ }), q = () => s(null, null, function* () {
690
+ try {
691
+ const r = yield xe("image");
692
+ if (r) {
693
+ 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) {
694
+ H.warning("该素材缺少 material_path,无法获取原图"), console.warn("[Photo] 素材缺少 material_path");
695
+ return;
696
+ }
697
+ const l = String(r.material_path).trim(), c = j(l);
698
+ console.log("[Photo] 原图URL:", c), v.value = c, yield V(), S.value = r.name, a.conf && a.conf.options && (a.conf.options.fileUrl || (a.conf.options.fileUrl = { value: "", type: "string", label: "" }), a.conf.options.fileName || (a.conf.options.fileName = { value: "", type: "string", label: "" }), a.conf.options.materialUid || (a.conf.options.materialUid = { value: "", type: "string", label: "" }), a.conf.options.fileUrl.value = l, a.conf.options.fileName.value = r.name, a.conf.options.materialUid.value = r.uid, console.log("[Photo] 配置已保存:", {
699
+ fileUrl: a.conf.options.fileUrl.value,
700
+ fileName: a.conf.options.fileName.value,
701
+ materialUid: a.conf.options.materialUid.value
702
+ })), console.log("[Photo] uploadedFileUrl.value:", _.value), H.success(t("component.photo.materialSelected") || "素材选择成功"), yield oe(r.uid);
703
+ } else
704
+ console.log("[Photo] 用户取消选择");
705
+ } catch (r) {
706
+ console.error("[Photo] 素材选择失败:", r), H.error("素材选择失败");
707
+ }
708
+ }), ae = () => {
709
+ F(_.value), _.value = "", v.value = "", S.value = "", a.mode !== "preview" && q();
710
+ }, ie = () => {
711
+ k.value = !1, m.value, console.log("图片加载成功");
712
+ }, re = (r) => {
713
+ var f, N, B, w, U, D, P;
714
+ if (console.error("图片加载失败:", r), k.value || z.value) return;
715
+ const l = a.uid || ((f = a.conf) == null ? void 0 : f.id) || "", c = l ? J(l) : null;
716
+ c && (c.sheetName || c.layerName || c.componentName) ? `${c.sheetName || "-"}${c.layerName || "-"}${c.componentName || "-"}` : S.value;
717
+ const h = String(
718
+ ((w = (B = (N = a.conf) == null ? void 0 : N.options) == null ? void 0 : B.materialUid) == null ? void 0 : w.value) || ((P = (D = (U = a.conf) == null ? void 0 : U.options) == null ? void 0 : D.imageUid) == null ? void 0 : P.value) || ""
719
+ ).trim();
720
+ h && (z.value = !0, De.getMaterialItem(h).then((p) => {
721
+ if (I(p == null ? void 0 : p.code) && (p != null && p.result)) {
722
+ const C = p.result;
723
+ C != null && C.material_path && (v.value = j(String(C.material_path).trim()), V());
724
+ return;
725
+ }
726
+ k.value = !0;
727
+ }).catch(() => {
728
+ }).finally(() => {
729
+ z.value = !1;
730
+ }));
731
+ };
732
+ return pe(() => {
733
+ }), me(() => {
734
+ _.value && _.value.startsWith("blob:") && URL.revokeObjectURL(_.value);
735
+ }), (r, l) => {
736
+ var h, f;
737
+ const c = ue;
738
+ return L(), M("div", {
739
+ class: "mix-component",
740
+ style: x({ borderRadius: `${A(i).radiusSize}px` })
741
+ }, [
742
+ g("div", Ie, [
743
+ _.value ? (L(), M("div", We, [
744
+ a.mode !== "preview" ? (L(), M("div", Te, [
745
+ g("span", $e, T(S.value), 1),
746
+ g("button", {
747
+ class: "change-file-btn",
748
+ onClick: ae,
749
+ title: A(t)("component.photo.changeFile") || "更换文件"
750
+ }, [...l[1] || (l[1] = [
751
+ g("svg", {
752
+ viewBox: "0 0 24 24",
753
+ width: "16",
754
+ height: "16",
755
+ fill: "currentColor"
756
+ }, [
757
+ g("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" })
758
+ ], -1)
759
+ ])], 8, je)
760
+ ])) : $("", !0),
761
+ g("div", {
762
+ class: "image-container",
763
+ style: x(Y.value)
764
+ }, [
765
+ g("img", {
766
+ ref_key: "imageRef",
767
+ ref: m,
768
+ src: _.value,
769
+ alt: S.value,
770
+ style: x(ee.value),
771
+ onLoad: ie,
772
+ onError: re
773
+ }, null, 44, He),
774
+ ((f = (h = A(i)) == null ? void 0 : h.value) == null ? void 0 : f.imageDisplayMode) === "tile" ? (L(), M("div", {
775
+ key: 0,
776
+ class: "tiled-background",
777
+ style: x(te.value)
778
+ }, null, 4)) : $("", !0)
779
+ ], 4)
780
+ ])) : (L(), M("div", {
781
+ key: 0,
782
+ class: fe(["upload-area", { "preview-mode": a.mode === "preview" }])
783
+ }, [
784
+ g("div", ke, [
785
+ (L(), M("svg", ze, [...l[0] || (l[0] = [
786
+ g("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)
787
+ ])])),
788
+ g("p", Fe, T(a.mode === "preview" ? "未上传素材" : A(t)("component.photo.selectFromLibrary") || "从素材库选择"), 1),
789
+ a.mode !== "preview" ? (L(), M("div", Ve, [
790
+ ye(c, {
791
+ type: "primary",
792
+ size: "small",
793
+ onClick: q
794
+ }, {
795
+ default: ve(() => [
796
+ ge(T(A(t)("component.photo.selectFromLibrary") || "从素材库选择"), 1)
797
+ ]),
798
+ _: 1
799
+ })
800
+ ])) : $("", !0)
801
+ ])
802
+ ], 2))
803
+ ]),
804
+ we(r.$slots, "default", {}, void 0, !0)
805
+ ], 4);
806
+ };
807
+ }
808
+ })), ut = /* @__PURE__ */ Se(Ye, [["__scopeId", "data-v-57314f5b"]]);
809
+ export {
810
+ ut as default
811
+ };