mixdashboards 1.0.32 → 1.0.39

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 (413) hide show
  1. package/dist/CoordinateSystem-BMkAxlii.js +6 -0
  2. package/dist/CoordinateSystem-DWnjjFwb.cjs +1 -0
  3. package/dist/EChartComponentBase-BQOhWkz2.js +114 -0
  4. package/dist/EChartComponentBase-BaQpBzVC.cjs +1 -0
  5. package/dist/LegendVisualProvider-BDw4_0K3.cjs +1 -0
  6. package/dist/LegendVisualProvider-BP9kA8co.js +44 -0
  7. package/dist/MarkerView-BG_nYESR.cjs +1 -0
  8. package/dist/MarkerView-CtWJi5UZ.js +192 -0
  9. package/dist/RoamController--cgD3aNm.cjs +1 -0
  10. package/dist/RoamController-DmBIwcAZ.js +124 -0
  11. package/dist/UniverSheet-KlvmL1Yw.cjs +1 -0
  12. package/dist/UniverSheet-MSHzUXq0.js +180 -0
  13. package/dist/VisualMapping-D-MA7S0X.js +260 -0
  14. package/dist/VisualMapping-MilpZvD_.cjs +1 -0
  15. package/dist/accelerationChart-B1HPMmd2.js +577 -0
  16. package/dist/accelerationChart-DZj2V2vD.cjs +6 -0
  17. package/dist/actionItem-BYCPoQK7.cjs +1 -0
  18. package/dist/actionItem-Bb2xiYlY.js +686 -0
  19. package/dist/alarmLevelChart-Bb0mAbwQ.cjs +2 -0
  20. package/dist/alarmLevelChart-CCioESvL.js +182 -0
  21. package/dist/alertTable-CQwr8YYt.js +301 -0
  22. package/dist/alertTable-oaX5eJC0.cjs +1 -0
  23. package/dist/annualRainfallChart-C21jEMBe.js +185 -0
  24. package/dist/annualRainfallChart-pO8q6aUJ.cjs +1 -0
  25. package/dist/api-C0GhBpqd.js +125 -0
  26. package/dist/api-P_s372dW.cjs +1 -0
  27. package/dist/aqi-DlY2r7OA.cjs +3 -0
  28. package/dist/aqi-iLwQH4rc.js +145 -0
  29. package/dist/aqiIndass-BaIVBfdC.cjs +3 -0
  30. package/dist/aqiIndass-DBeVSBdy.js +301 -0
  31. package/dist/arrayCard-DNNUEPvW.js +93 -0
  32. package/dist/arrayCard-OlVAAsZq.cjs +1 -0
  33. package/dist/audio-CAP4D-J2.js +301 -0
  34. package/dist/audio-CThzVIDU.cjs +1 -0
  35. package/dist/axisAlignTicks-BqVUa467.js +481 -0
  36. package/dist/axisAlignTicks-CDNWKJRo.cjs +1 -0
  37. package/dist/bar-BjR566__.cjs +2 -0
  38. package/dist/bar-D8C06GO4.js +232 -0
  39. package/dist/bmp-Cjizh2x6.js +226 -0
  40. package/dist/bmp-DsmTzyce.cjs +1 -0
  41. package/dist/box-DqewT3MF.js +352 -0
  42. package/dist/box-qgu_67OD.cjs +1 -0
  43. package/dist/chartConfigPanel-BiQArCoQ.cjs +1 -0
  44. package/dist/chartConfigPanel-DwAUq3pf.js +408 -0
  45. package/dist/circleBar-CO89T7kj.cjs +4 -0
  46. package/dist/circleBar-DGHDWQih.js +196 -0
  47. package/dist/clock-32hGccm4.cjs +1 -0
  48. package/dist/clock-CT8YXEU3.js +274 -0
  49. package/dist/clt-5bP_g1O-.cjs +1 -0
  50. package/dist/clt-FfIEfGtn.js +293 -0
  51. package/dist/cmc-B2nQFZIS.js +269 -0
  52. package/dist/cmc-dbuLkE8o.cjs +1 -0
  53. package/dist/cmp-QQlYcnqo.js +378 -0
  54. package/dist/cmp-l3U9fIrz.cjs +6 -0
  55. package/dist/composite-CbsUYl-u.js +136 -0
  56. package/dist/composite-Cf24lSyN.cjs +1 -0
  57. package/dist/composite-DjhrBgG1.js +323 -0
  58. package/dist/composite-DlY2_x6P.cjs +3 -0
  59. package/dist/config-BLSroAzs.cjs +1 -0
  60. package/dist/config-Cc2W4vke.js +9 -0
  61. package/dist/controlList-BdF8xNAi.js +879 -0
  62. package/dist/controlList-De6PXdOc.cjs +1 -0
  63. package/dist/controlRecordList-CKpAr1ON.js +421 -0
  64. package/dist/controlRecordList-u5a7chIX.cjs +1 -0
  65. package/dist/crd-BVAf41oX.js +113 -0
  66. package/dist/crd-BoaXQhFQ.cjs +1 -0
  67. package/dist/createSeriesData-Cz83cqoZ.cjs +1 -0
  68. package/dist/createSeriesData-E53TTCAt.js +116 -0
  69. package/dist/createSeriesDataSimply-Bsly4zZA.js +14 -0
  70. package/dist/createSeriesDataSimply-CjfZL_jf.cjs +1 -0
  71. package/dist/ctrBtn-C9kQiqY1.cjs +1 -0
  72. package/dist/ctrBtn-ZPRYWE66.js +215 -0
  73. package/dist/ctrSet-C87dxLfQ.js +247 -0
  74. package/dist/ctrSet-CNCrnLSs.cjs +1 -0
  75. package/dist/ctrSwitch-CVEtbdfb.cjs +1 -0
  76. package/dist/ctrSwitch-CkC_Axtp.js +207 -0
  77. package/dist/cursorHelper-DE0KU4_J.js +29 -0
  78. package/dist/cursorHelper-DsTR8jVF.cjs +1 -0
  79. package/dist/customGraphicKeyframeAnimation-BJ_z0kB3.js +330 -0
  80. package/dist/customGraphicKeyframeAnimation-CEIvOjMs.cjs +1 -0
  81. package/dist/dataManagement-CjlNfeYq.js +672 -0
  82. package/dist/dataManagement-n711sd1g.cjs +1 -0
  83. package/dist/dataReport-BsVjW3p7.cjs +4 -0
  84. package/dist/dataReport-ByjswEqq.js +787 -0
  85. package/dist/dataSample-BXwc06Sb.js +114 -0
  86. package/dist/dataSample-D4ycwmll.cjs +1 -0
  87. package/dist/dataTable-DX500R1i.js +217 -0
  88. package/dist/dataTable-K7j4fhnq.cjs +1 -0
  89. package/dist/datetime-DVbJtALf.js +113 -0
  90. package/dist/datetime-DYXWKrXI.cjs +1 -0
  91. package/dist/deepClusterSlipSurface-B7nkEM9A.cjs +1 -0
  92. package/dist/deepClusterSlipSurface-CQUE05cK.js +372 -0
  93. package/dist/deepDataMatrix-DHZA0IAm.cjs +1 -0
  94. package/dist/deepDataMatrix-ai5rB6ET.js +238 -0
  95. package/dist/deepDisplacement3D-BFqKqSYg.cjs +4289 -0
  96. package/dist/deepDisplacement3D-BsUzvbQb.js +26052 -0
  97. package/dist/deepDisplacementChart-2JZNrhrw.cjs +5 -0
  98. package/dist/deepDisplacementChart-BCIuCMdK.js +585 -0
  99. package/dist/deepDisplacementChart-Ba67v6um.cjs +6 -0
  100. package/dist/deepDisplacementChart-igl4rW1K.js +340 -0
  101. package/dist/deepDisplacementView-BedWJsx7.js +231 -0
  102. package/dist/deepDisplacementView-wQxyKzB-.cjs +8 -0
  103. package/dist/deepNodeTemperatureChart-DLeb9jKp.js +347 -0
  104. package/dist/deepNodeTemperatureChart-albL8hKa.cjs +1 -0
  105. package/dist/deepTangentAngleChart-C6xOiITk.js +420 -0
  106. package/dist/deepTangentAngleChart-DukevXaM.cjs +1 -0
  107. package/dist/deepTemperatureField-B-y94GPV.js +398 -0
  108. package/dist/deepTemperatureField-De4xKoHw.cjs +1 -0
  109. package/dist/deepTrendChart-DCkV2HNv.js +345 -0
  110. package/dist/deepTrendChart-MmuYSXtu.cjs +1 -0
  111. package/dist/deviceOnlineStatus-B5cCjhNA.cjs +2 -0
  112. package/dist/deviceOnlineStatus-CFuCTx7_.js +178 -0
  113. package/dist/deviceStatus-B2ibBDSi.js +194 -0
  114. package/dist/deviceStatus-DsEtKiGo.cjs +1 -0
  115. package/dist/displacementDataTable-BDqG1IvI.js +256 -0
  116. package/dist/displacementDataTable-oLnUdafv.cjs +1 -0
  117. package/dist/displacementTrajectoryChart-CBhPwZhe.cjs +22 -0
  118. package/dist/displacementTrajectoryChart-Crf55oKi.js +597 -0
  119. package/dist/displacementTrendChart-10n_lC9j.js +364 -0
  120. package/dist/displacementTrendChart-CWihCuIJ.cjs +5 -0
  121. package/dist/dxf-D8zHpz5g.js +2768 -0
  122. package/dist/dxf-DDh_DcQy.cjs +1 -0
  123. package/dist/dzc-DLCdTCwW.js +144 -0
  124. package/dist/dzc-uNTDJqpi.cjs +2 -0
  125. package/dist/echarts-BB8O2KSA.cjs +21 -0
  126. package/dist/echarts-BVht3HHb.js +13787 -0
  127. package/dist/ele-aqi-icon-BMm9WgFH.cjs +1 -0
  128. package/dist/ele-aqi-icon-DsYfU5th.js +5 -0
  129. package/dist/ele-bar-icon-C-GiCs2a.js +5 -0
  130. package/dist/ele-bar-icon-V94clxg_.cjs +1 -0
  131. package/dist/ele-bmp-icon-BBI0-SX7.cjs +1 -0
  132. package/dist/ele-bmp-icon-Pdolk1J5.js +5 -0
  133. package/dist/ele-circleBar-icon-DNBUxt0A.js +5 -0
  134. package/dist/ele-circleBar-icon-Da0-L9sa.cjs +1 -0
  135. package/dist/ele-clt-icon-BEVOS7Tq.cjs +1 -0
  136. package/dist/ele-clt-icon-DuU4Q401.js +5 -0
  137. package/dist/ele-cmp-icon-CEP91RUe.js +5 -0
  138. package/dist/ele-cmp-icon-yUlU6c_Q.cjs +1 -0
  139. package/dist/ele-crd-icon-BXxB7P3T.js +5 -0
  140. package/dist/ele-crd-icon-BvNgAPKW.cjs +1 -0
  141. package/dist/ele-ctrSet-icon-BtKGrCid.js +5 -0
  142. package/dist/ele-ctrSet-icon-DCsPO0tL.cjs +1 -0
  143. package/dist/ele-dateTime-icon-BEGFlwID.js +5 -0
  144. package/dist/ele-dateTime-icon-BgZ2_KWW.cjs +1 -0
  145. package/dist/ele-dzc-icon-D6eVpaHp.js +5 -0
  146. package/dist/ele-dzc-icon-h5wOUHF0.cjs +1 -0
  147. package/dist/ele-evn-icon-DUQMS-9T.cjs +1 -0
  148. package/dist/ele-evn-icon-MWzAujnD.js +5 -0
  149. package/dist/ele-gag-icon-CB5dJeYF.js +5 -0
  150. package/dist/ele-gag-icon-Ce1hl9NI.cjs +1 -0
  151. package/dist/ele-glbModel-icon-ByACDCrv.cjs +1 -0
  152. package/dist/ele-glbModel-icon-l_SMi3ik.js +5 -0
  153. package/dist/ele-grd-icon-DR52zwGR.js +5 -0
  154. package/dist/ele-grd-icon-ZUb-megQ.cjs +1 -0
  155. package/dist/ele-gridview-icon-D3GcssP6.cjs +1 -0
  156. package/dist/ele-gridview-icon-cSd1oIDi.js +5 -0
  157. package/dist/ele-lin-icon-Dax-ZiWV.js +5 -0
  158. package/dist/ele-lin-icon-Dke_1AmT.cjs +1 -0
  159. package/dist/ele-lst-icon-CKpeRKmk.js +5 -0
  160. package/dist/ele-lst-icon-CrxnHZ-A.cjs +1 -0
  161. package/dist/ele-mxa-icon-CJWttkCK.js +5 -0
  162. package/dist/ele-mxa-icon-fgN0MLnh.cjs +1 -0
  163. package/dist/ele-rtn-icon-BrsJIU8J.cjs +1 -0
  164. package/dist/ele-rtn-icon-CqCKSHIw.js +5 -0
  165. package/dist/ele-textbox-icon-ClGaLi5p.js +5 -0
  166. package/dist/ele-textbox-icon-g_5kV8t6.cjs +1 -0
  167. package/dist/ele-vdo-icon-Bgp9gaT6.cjs +1 -0
  168. package/dist/ele-vdo-icon-DcWebTR5.js +5 -0
  169. package/dist/ele-vlu-icon-Bg6EHZdJ.js +5 -0
  170. package/dist/ele-vlu-icon-Dv-R7Xuc.cjs +1 -0
  171. package/dist/element-resize-detector-Bo5uDQAu.cjs +6 -0
  172. package/dist/element-resize-detector-DJcsrJ8s.js +1547 -0
  173. package/dist/evn-DuL5oVRl.cjs +1 -0
  174. package/dist/evn-YwCALVXj.js +116 -0
  175. package/dist/evolutionChart-4noZSdLX.js +406 -0
  176. package/dist/evolutionChart-AeL67MAt.cjs +1 -0
  177. package/dist/fileViewer-DiH3PM0r.js +415 -0
  178. package/dist/fileViewer-bsrjlJkC.cjs +1 -0
  179. package/dist/filterBar-CWEguwYc.js +394 -0
  180. package/dist/filterBar-Ct1BFhrS.cjs +1 -0
  181. package/dist/fireCombustionCurve-DYPC4zKJ.js +405 -0
  182. package/dist/fireCombustionCurve-DyiQn-WA.cjs +1 -0
  183. package/dist/fireFilterBar-Bdm2ljuO.cjs +1 -0
  184. package/dist/fireFilterBar-DGHPNTwF.js +221 -0
  185. package/dist/gag-HiNaL81R.cjs +1 -0
  186. package/dist/gag-kvkKzJuO.js +125 -0
  187. package/dist/glbModel-CUz6CyVF.js +2724 -0
  188. package/dist/glbModel-DtBI72ap.cjs +5 -0
  189. package/dist/gnssFilterBar-BQgY5x1W.cjs +1 -0
  190. package/dist/gnssFilterBar-TBtirXIB.js +310 -0
  191. package/dist/gnssHistoryTable-D1ZLJOgh.cjs +3 -0
  192. package/dist/gnssHistoryTable-U8O7nyO7.js +398 -0
  193. package/dist/gnssMapView-42zmAd9q.cjs +7 -0
  194. package/dist/gnssMapView-CaBfWeT1.js +699 -0
  195. package/dist/gnssTimeSeriesChart-BrXYvuh6.js +421 -0
  196. package/dist/gnssTimeSeriesChart-CV2w_Aik.cjs +1 -0
  197. package/dist/gnssXYTrajectory-BmzSYjQ_.cjs +5 -0
  198. package/dist/gnssXYTrajectory-D2DoYnze.js +304 -0
  199. package/dist/grd-B0GUjLm9.js +339 -0
  200. package/dist/grd-DW8cSFVR.cjs +1 -0
  201. package/dist/grdIndass-BeBXVsos.cjs +1 -0
  202. package/dist/grdIndass-DduUKZJm.js +216 -0
  203. package/dist/grg-CeX0pirQ.js +194 -0
  204. package/dist/grg-fnpcXtju.cjs +1 -0
  205. package/dist/gridview-BPwWXza9.js +183 -0
  206. package/dist/gridview-DpABhCIw.cjs +1 -0
  207. package/dist/groupCard-De1E15mW.js +132 -0
  208. package/dist/groupCard-WNE6gAAl.cjs +1 -0
  209. package/dist/headerBar-CZ3qcLHo.js +210 -0
  210. package/dist/headerBar-Qi1EXrr6.cjs +1 -0
  211. package/dist/{history-DigzRtjC.js → history-BkZhlpdY.js} +5 -3
  212. package/dist/history-DAmBl4_5.cjs +1 -0
  213. package/dist/index-ButoLLAe.js +8655 -0
  214. package/dist/index-Mh5Dw2sd.cjs +585 -0
  215. package/dist/index-kShjySl9.js +5313 -0
  216. package/dist/index-mAPVa0s4.cjs +11 -0
  217. package/dist/insarDeformChart-BGr2xe7w.cjs +1 -0
  218. package/dist/insarDeformChart-CnuSL1d9.js +216 -0
  219. package/dist/insarImageViewer-DRgGdQmN.cjs +1 -0
  220. package/dist/insarImageViewer-EmVThmVQ.js +268 -0
  221. package/dist/install-8XfFtnlL.js +853 -0
  222. package/dist/install-9_V0b6vf.js +497 -0
  223. package/dist/install-B0x4IqQr.js +1258 -0
  224. package/dist/install-B1IEhhn3.cjs +1 -0
  225. package/dist/install-B2TChEcT.js +895 -0
  226. package/dist/install-B65ZIqAx.cjs +1 -0
  227. package/dist/install-BBrAry2m.js +8 -0
  228. package/dist/install-BRjgycz_.cjs +1 -0
  229. package/dist/install-BUu5ESB7.js +447 -0
  230. package/dist/install-BamnGDPb.cjs +1 -0
  231. package/dist/install-BifpoHNI.js +1817 -0
  232. package/dist/install-BvOpNm0Y.cjs +1 -0
  233. package/dist/install-ByPD0oOh.cjs +1 -0
  234. package/dist/install-BzdOSCzO.js +785 -0
  235. package/dist/install-C8buXQPI.cjs +1 -0
  236. package/dist/install-C9Cdzkc6.js +265 -0
  237. package/dist/install-CBde4hAM.js +112 -0
  238. package/dist/install-CIT6k8Ga.cjs +1 -0
  239. package/dist/install-CYwVETsi.cjs +1 -0
  240. package/dist/install-C_3uGWLu.js +2328 -0
  241. package/dist/install-Ch5d8i37.cjs +1 -0
  242. package/dist/install-CltTFs4e.cjs +3 -0
  243. package/dist/install-Csxa7Kv7.cjs +18 -0
  244. package/dist/install-Cx1i_m0k.js +1168 -0
  245. package/dist/install-D1QM80AD.js +227 -0
  246. package/dist/install-D7znHb-b.js +604 -0
  247. package/dist/install-DHY9y86B.cjs +3 -0
  248. package/dist/install-DIlB2q7w.cjs +1 -0
  249. package/dist/install-DV5cEgNV.cjs +1 -0
  250. package/dist/install-DWm3j_D3.js +38 -0
  251. package/dist/install-FDYiy_gL.js +250 -0
  252. package/dist/install-LtoYukZU.cjs +1 -0
  253. package/dist/install-MS3ZY7fF.js +685 -0
  254. package/dist/install-hfre7yvV.js +727 -0
  255. package/dist/install-kGXY_57n.cjs +1 -0
  256. package/dist/install-nDY6w-GK.cjs +1 -0
  257. package/dist/install-oGjJ0_bF.js +588 -0
  258. package/dist/install-z6wShIZI.cjs +1 -0
  259. package/dist/installCanvasRenderer-CLT2hquJ.js +4260 -0
  260. package/dist/installCanvasRenderer-CyhM1Qpl.cjs +3 -0
  261. package/dist/installMarkArea-Cdg4iciO.js +206 -0
  262. package/dist/installMarkArea-CjyaJPLE.cjs +1 -0
  263. package/dist/installMarkLine-BgE0YACE.js +533 -0
  264. package/dist/installMarkLine-Bv53Iw9G.cjs +1 -0
  265. package/dist/installSimple-BWTCwMdY.js +586 -0
  266. package/dist/installSimple-c87Ufc4_.cjs +1 -0
  267. package/dist/kds-CpIQFgeY.js +1203 -0
  268. package/dist/kds-DTYWOq4K.cjs +3 -0
  269. package/dist/labelHelper-Cd8oB-sZ.js +26 -0
  270. package/dist/labelHelper-npJGYQ1j.cjs +1 -0
  271. package/dist/layerTabs-BATcBkTA.cjs +1 -0
  272. package/dist/layerTabs-uze6K91A.js +139 -0
  273. package/dist/lin-Ba6fHkYf.cjs +2 -0
  274. package/dist/lin-DU_EuPRg.js +239 -0
  275. package/dist/linIndass-XHKElG7L.js +273 -0
  276. package/dist/linIndass-urYe5inp.cjs +2 -0
  277. package/dist/lst-C7aee1cU.js +147 -0
  278. package/dist/lst-CpmoEQDY.cjs +1 -0
  279. package/dist/manualEntry-CJPiO5nh.cjs +1 -0
  280. package/dist/manualEntry-D9m_WPw3.js +662 -0
  281. package/dist/mapBackground-6g_71Fwa.js +6658 -0
  282. package/dist/mapBackground-CF_TqNBy.cjs +17 -0
  283. package/dist/mappingList-CR55Tq4t.cjs +1 -0
  284. package/dist/mappingList-luT5YE0d.js +917 -0
  285. package/dist/markdownViewer-CnguoUr8.js +261 -0
  286. package/dist/markdownViewer-D1hDk2Y7.cjs +3 -0
  287. package/dist/mix-control-modal-BDHAB4Tw.cjs +1 -0
  288. package/dist/mix-control-modal-CHiX3hQs.js +147 -0
  289. package/dist/mixDataPermission-BTA1jNd1.cjs +1 -0
  290. package/dist/mixDataPermission-BaqV0Z6N.js +760 -0
  291. package/dist/mixGrid-3BqQCvg8.cjs +1 -0
  292. package/dist/mixGrid-C0eEvwPy.js +180 -0
  293. package/dist/mixMap-7upgYwWk.js +258 -0
  294. package/dist/mixMap-Bw-We4Cm.cjs +1 -0
  295. package/dist/mixModel-BqE_Kd4c.js +245 -0
  296. package/dist/mixModel-CgV4XptM.cjs +3 -0
  297. package/dist/mixPie-9LfMCTQV.cjs +2 -0
  298. package/dist/mixPie-B-HeglUn.js +168 -0
  299. package/dist/mixdashboards.cjs +1 -1
  300. package/dist/mixdashboards.css +1 -1
  301. package/dist/mixdashboards.js +7 -7
  302. package/dist/mjpegCamera-Cfw3rzT5.js +158 -0
  303. package/dist/mjpegCamera-nxKfhobY.cjs +1 -0
  304. package/dist/monitorAlert-Bg5vzzyG.js +225 -0
  305. package/dist/monitorAlert-Bt0baNh4.cjs +1 -0
  306. package/dist/monitorData-BvAMeOrp.js +319 -0
  307. package/dist/monitorData-CzPVIk_4.cjs +1 -0
  308. package/dist/monitorSpeedChart-0bDuU3Kj.js +603 -0
  309. package/dist/monitorSpeedChart-C52QjA5K.cjs +16 -0
  310. package/dist/mxa-BW80xKCc.js +143 -0
  311. package/dist/mxa-eLAgZPMC.cjs +2 -0
  312. package/dist/no-image-icon-CPA7RKkF.cjs +1 -0
  313. package/dist/no-image-icon-n2ZlEjxS.js +1864 -0
  314. package/dist/objectList-Cf9GMyXN.js +1809 -0
  315. package/dist/objectList-CpqQxG8L.cjs +1 -0
  316. package/dist/params-3W3p8QeC.cjs +1 -0
  317. package/dist/params-DfgBemk0.js +75 -0
  318. package/dist/photo-BODEtaYh.cjs +1 -0
  319. package/dist/photo-BfLkWAo8.js +256 -0
  320. package/dist/pie-BDLg-Rls.js +199 -0
  321. package/dist/pie-DxoBrm0D.cjs +2 -0
  322. package/dist/points-DcRmizmA.cjs +1 -0
  323. package/dist/points-DkG9FRF9.js +277 -0
  324. package/dist/pressBtn-CXG1eSWC.js +242 -0
  325. package/dist/pressBtn-t0g4vk7s.cjs +1 -0
  326. package/dist/progressBar-BXaFKSCq.js +130 -0
  327. package/dist/progressBar-CJEWkZ42.cjs +1 -0
  328. package/dist/progressCircle-DpOI5D5z.js +168 -0
  329. package/dist/progressCircle-uQ7vaMKM.cjs +1 -0
  330. package/dist/qrcode-CX8aymYZ.js +814 -0
  331. package/dist/qrcode-DHCRfp0M.cjs +1 -0
  332. package/dist/raceBar-Cv0-0ogd.cjs +4 -0
  333. package/dist/raceBar-DFaH342G.js +197 -0
  334. package/dist/rad-CFswUTwi.cjs +1 -0
  335. package/dist/rad-NS2G_nMg.js +143 -0
  336. package/dist/rainfallFilterBar-BI45QvJm.cjs +1 -0
  337. package/dist/rainfallFilterBar-D_Ye_NeB.js +221 -0
  338. package/dist/rainfallTimeCurve-BHWqX47Q.js +443 -0
  339. package/dist/rainfallTimeCurve-Ke1JvSWq.cjs +1 -0
  340. package/dist/rangeLin-D6VZ2U3C.cjs +3 -0
  341. package/dist/rangeLin-GMYEgLeP.js +278 -0
  342. package/dist/request-BD0x5Hkt.js +75 -0
  343. package/dist/request-Bn100qAJ.cjs +1 -0
  344. package/dist/retainer1-D2XmjXYH.cjs +1 -0
  345. package/dist/retainer1-h-Whr2c9.js +290 -0
  346. package/dist/retainer2-ByQdiRjq.js +504 -0
  347. package/dist/retainer2-cF-trL2g.cjs +1 -0
  348. package/dist/riskRegionTable-CQxAkG7k.js +170 -0
  349. package/dist/riskRegionTable-cKnxra4_.cjs +1 -0
  350. package/dist/sankey-Bk1IcVJQ.js +171 -0
  351. package/dist/sankey-MRirEgU0.cjs +1 -0
  352. package/dist/sausage-DRCw7Qmr.cjs +1 -0
  353. package/dist/sausage-xU3hOdxD.js +30 -0
  354. package/dist/scd-BDRpzmsa.js +2577 -0
  355. package/dist/scd-J-mN3eI5.cjs +1 -0
  356. package/dist/sectorHelper-BFEnYqut.cjs +1 -0
  357. package/dist/sectorHelper-DIlWFMnU.js +18 -0
  358. package/dist/sideMenu-BgTMtnMq.js +225 -0
  359. package/dist/sideMenu-l8X2E00H.cjs +1 -0
  360. package/dist/slopeStability-BPf7m0fJ.cjs +1 -0
  361. package/dist/slopeStability-C5RqZ1im.js +331 -0
  362. package/dist/speedCurve-C3pK-zZy.js +394 -0
  363. package/dist/speedCurve-CluwNAZl.cjs +1 -0
  364. package/dist/staticLine-C6tGGXcN.cjs +1 -0
  365. package/dist/staticLine-DXWOLj15.js +362 -0
  366. package/dist/store-BJW2NQkK.cjs +5 -0
  367. package/dist/store-DzDtVfSX.js +1673 -0
  368. package/dist/swiper-DGqDoUkX.cjs +1 -0
  369. package/dist/swiper-IMlGje3t.js +128 -0
  370. package/dist/terminalConfigList-D6xDHsnb.cjs +1 -0
  371. package/dist/terminalConfigList-SAyXi-BK.js +1017 -0
  372. package/dist/terminalList-CjSHshiR.js +1211 -0
  373. package/dist/terminalList-ml2C18MY.cjs +1 -0
  374. package/dist/textbox-AQtCe25j.cjs +1 -0
  375. package/dist/textbox-BLV-SY8e.js +172 -0
  376. package/dist/three.module-DNVo041Q.cjs +3824 -0
  377. package/dist/three.module-DcOQNgKS.js +16561 -0
  378. package/dist/timeQueryBar-BeMu_DYr.js +155 -0
  379. package/dist/timeQueryBar-BuKakMy8.cjs +1 -0
  380. package/dist/timeSeries-DP5iZKVM.js +587 -0
  381. package/dist/timeSeries-DfGgFWiF.cjs +4 -0
  382. package/dist/timeSeriesCurve-B0Mw6eNK.cjs +1 -0
  383. package/dist/timeSeriesCurve-BSgtPqYw.js +463 -0
  384. package/dist/titleStyle-BT5GlpAb.js +49 -0
  385. package/dist/titleStyle-NSnz6cUg.cjs +1 -0
  386. package/dist/toggleBtn-Dh64vVWo.cjs +1 -0
  387. package/dist/toggleBtn-O2Y75Uen.js +249 -0
  388. package/dist/trajectoryConfigPanel--C1h3tK6.js +635 -0
  389. package/dist/trajectoryConfigPanel-P_Qa4omj.cjs +1 -0
  390. package/dist/trajectoryScatter-BbpbgNb8.cjs +1 -0
  391. package/dist/trajectoryScatter-VLrmImlq.js +525 -0
  392. package/dist/universalConfigPanel-C0lDSzOB.cjs +1 -0
  393. package/dist/universalConfigPanel-DBg76b4F.js +477 -0
  394. package/dist/universalTable-Bzq9VqzA.cjs +2 -0
  395. package/dist/universalTable-DGK02ywi.js +410 -0
  396. package/dist/universalTransition-Bv7ibBUh.js +988 -0
  397. package/dist/universalTransition-CIN_u2Cu.cjs +1 -0
  398. package/dist/video-CyRoSQf1.cjs +1 -0
  399. package/dist/video-DCzzaEmV.js +310 -0
  400. package/dist/videoMonitor-BjD-ZFS0.cjs +1 -0
  401. package/dist/videoMonitor-ByaQeIWR.js +241 -0
  402. package/dist/vlu-CYZjYHaV.cjs +1 -0
  403. package/dist/vlu-h-9twmCr.js +100 -0
  404. package/dist/vue-i18n-5Nahpzrm.js +2732 -0
  405. package/dist/vue-i18n-BvHMBi_b.cjs +5 -0
  406. package/dist/weather-B7B5E1EJ.cjs +1 -0
  407. package/dist/weather-C_aC0XJ1.js +94 -0
  408. package/dist/windLin-B7V4NUV8.js +1226 -0
  409. package/dist/windLin-DPNzX7JN.cjs +1 -0
  410. package/package.json +17 -10
  411. package/dist/history-fvcbbxGa.cjs +0 -1
  412. package/dist/index-B-aA7889.js +0 -154003
  413. package/dist/index-CdJ-j9Gj.cjs +0 -8893
@@ -0,0 +1,415 @@
1
+ var ce = Object.defineProperty, de = Object.defineProperties;
2
+ var ue = Object.getOwnPropertyDescriptors;
3
+ var Z = Object.getOwnPropertySymbols;
4
+ var pe = Object.prototype.hasOwnProperty, ve = Object.prototype.propertyIsEnumerable;
5
+ var z = (c, d, a) => d in c ? ce(c, d, { enumerable: !0, configurable: !0, writable: !0, value: a }) : c[d] = a, q = (c, d) => {
6
+ for (var a in d || (d = {}))
7
+ pe.call(d, a) && z(c, a, d[a]);
8
+ if (Z)
9
+ for (var a of Z(d))
10
+ ve.call(d, a) && z(c, a, d[a]);
11
+ return c;
12
+ }, W = (c, d) => de(c, ue(d));
13
+ var S = (c, d, a) => new Promise((E, _) => {
14
+ var M = (n) => {
15
+ try {
16
+ p(a.next(n));
17
+ } catch (v) {
18
+ _(v);
19
+ }
20
+ }, u = (n) => {
21
+ try {
22
+ p(a.throw(n));
23
+ } catch (v) {
24
+ _(v);
25
+ }
26
+ }, p = (n) => n.done ? E(n.value) : Promise.resolve(n.value).then(M, u);
27
+ p((a = a.apply(c, d)).next());
28
+ });
29
+ import { defineComponent as fe, ref as h, getCurrentInstance as me, computed as G, onMounted as he, onBeforeUnmount as we, openBlock as r, createElementBlock as i, normalizeStyle as ye, unref as xe, createElementVNode as o, normalizeClass as J, toDisplayString as w, createCommentVNode as y, createStaticVNode as ge, Fragment as B, renderList as P, createTextVNode as K, renderSlot as Ve } from "vue";
30
+ import { B as _e } from "./element-resize-detector-DJcsrJ8s.js";
31
+ import { f as be, g as Ce, _ as Le } from "./index-kShjySl9.js";
32
+ import { a as Te } from "./api-C0GhBpqd.js";
33
+ import { F as ke } from "./config-Cc2W4vke.js";
34
+ import { ElMessage as A } from "element-plus";
35
+ import { u as He } from "./store-DzDtVfSX.js";
36
+ import { A as Se, D as Ue } from "./ele-vdo-icon-DcWebTR5.js";
37
+ const Ae = { class: "mix-body" }, Ee = { class: "upload-content" }, Me = { class: "upload-title" }, De = {
38
+ key: 0,
39
+ class: "upload-hint"
40
+ }, Fe = {
41
+ key: 1,
42
+ class: "upload-formats"
43
+ }, Ne = {
44
+ key: 1,
45
+ class: "viewer-container"
46
+ }, Oe = {
47
+ key: 0,
48
+ class: "file-controls"
49
+ }, Be = { class: "file-info" }, Pe = { class: "file-details" }, Re = { class: "file-name" }, Ie = { class: "file-type" }, $e = { class: "control-buttons" }, je = { class: "viewer-content" }, Xe = {
50
+ key: 0,
51
+ class: "pdf-viewer"
52
+ }, Ze = ["src"], ze = {
53
+ key: 1,
54
+ class: "word-viewer"
55
+ }, qe = ["innerHTML"], We = {
56
+ key: 1,
57
+ class: "loading-content"
58
+ }, Ge = {
59
+ key: 2,
60
+ class: "excel-viewer"
61
+ }, Je = {
62
+ key: 0,
63
+ class: "excel-content"
64
+ }, Ke = {
65
+ key: 0,
66
+ class: "sheet-tabs"
67
+ }, Qe = ["onClick"], Ye = { class: "excel-table-wrapper" }, et = { class: "excel-table" }, tt = {
68
+ key: 1,
69
+ class: "loading-content"
70
+ }, ot = {
71
+ key: 3,
72
+ class: "ppt-viewer"
73
+ }, lt = { class: "ppt-fallback" }, st = { class: "file-name-display" }, at = {
74
+ key: 4,
75
+ class: "text-viewer"
76
+ }, nt = { class: "text-content" }, rt = {
77
+ key: 5,
78
+ class: "unsupported-viewer"
79
+ }, it = { class: "unsupported-content" }, ct = {
80
+ viewBox: "0 0 24 24",
81
+ width: "48",
82
+ height: "48",
83
+ fill: "currentColor",
84
+ style: { opacity: "0.5" }
85
+ }, dt = {
86
+ DEFAULT_ICON: Ue,
87
+ ACTIVE_ICON: Se,
88
+ NAME_CN: "文件查看器",
89
+ NAME_EN: "File Viewer",
90
+ ORDER: 3
91
+ }, ut = {
92
+ fileUrl: { value: "", type: "string", label: "component.fileViewer.fileUrl", placeholder: "component.fileViewer.uploadPlaceholder" },
93
+ fileName: { value: "", type: "string", label: "component.fileViewer.fileName", placeholder: "component.fileViewer.uploadPlaceholder" },
94
+ fileType: { value: "", type: "string", label: "component.fileViewer.fileType", placeholder: "component.fileViewer.autoDetect" },
95
+ showToolbar: !0
96
+ }, pt = [], vt = [], ft = [], mt = null, ht = { DEFAULT: dt, OPTIONS: ut, DATA: pt, PARAMS: vt, SOURCE: ft, COMMON: mt }, wt = /* @__PURE__ */ fe(W(q({}, ht), {
97
+ __name: "fileViewer",
98
+ props: {
99
+ conf: { type: Object, required: !0 },
100
+ mode: { type: String, default: "edit" },
101
+ uid: { type: String, default: "" },
102
+ theme: { type: String, default: "light" }
103
+ },
104
+ setup(c) {
105
+ const d = He(), a = c;
106
+ class E extends _e {
107
+ extractStyles() {
108
+ return {
109
+ radiusSize: this.getOptionValue("radiusSize", 0),
110
+ showToolbar: this.getOptionValue("showToolbar", !0)
111
+ };
112
+ }
113
+ init() {
114
+ this.Style.value = this.extractStyles(), this.applyTheme(), ee();
115
+ }
116
+ }
117
+ const _ = new E(a, "fileViewer");
118
+ _.setupLifecycle();
119
+ const M = _.getStyle(), u = h(""), p = h(""), n = h(""), v = h(null), R = h(!1), b = h(""), Q = ".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt";
120
+ let m = "";
121
+ const C = h(""), L = h([]), U = h([]), T = h(0), x = me();
122
+ G(() => ["doc", "docx", "xls", "xlsx", "ppt", "pptx"].includes(n.value));
123
+ const Y = G(() => n.value === "pdf" && u.value ? u.value : ""), D = (t) => {
124
+ var e;
125
+ return t && ((e = t.split(".").pop()) == null ? void 0 : e.toLowerCase()) || "";
126
+ }, ee = () => {
127
+ var t, e, l, s, f;
128
+ (l = (e = (t = a.conf) == null ? void 0 : t.options) == null ? void 0 : e.fileUrl) != null && l.value && (u.value = a.conf.options.fileUrl.value, p.value = ((s = a.conf.options.fileName) == null ? void 0 : s.value) || "", n.value = ((f = a.conf.options.fileType) == null ? void 0 : f.value) || D(p.value), n.value === "txt" && le());
129
+ }, te = () => {
130
+ var t;
131
+ (t = v.value) == null || t.click();
132
+ }, I = (t) => S(null, null, function* () {
133
+ var g, O, k;
134
+ const e = t.target, l = (g = e == null ? void 0 : e.files) == null ? void 0 : g[0];
135
+ if (!l) return;
136
+ const s = D(l.name);
137
+ if (!["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt"].includes(s)) {
138
+ A.warning("不支持的文件格式,请选择 PDF、Office 文档或文本文件");
139
+ return;
140
+ }
141
+ p.value = l.name, n.value = s, m && URL.revokeObjectURL(m), m = URL.createObjectURL(l), u.value = m, s === "txt" ? oe(l) : s === "docx" || s === "doc" ? yield ae(l) : (s === "xlsx" || s === "xls") && (yield ne(l));
142
+ try {
143
+ R.value = !0;
144
+ const V = yield be(l), re = Ce(l.name), H = yield Te.post("upload", {
145
+ dashboard_uid: d.pageData.id,
146
+ file_data: V,
147
+ file_type: re,
148
+ user_id: ((O = d.session.userInfo) == null ? void 0 : O.id) || ""
149
+ }, !0);
150
+ if (H.code === 200 && ((k = H.result) != null && k.relative_path)) {
151
+ const ie = ke + H.result.relative_path;
152
+ F("fileUrl", ie), F("fileName", H.result.file_name || l.name), F("fileType", s), A.success("文件上传成功");
153
+ } else
154
+ throw new Error(H.msg || "上传失败");
155
+ } catch (V) {
156
+ console.error("文件上传失败:", V), A.error("文件上传失败: " + ((V == null ? void 0 : V.message) || "未知错误"));
157
+ } finally {
158
+ R.value = !1, v.value && (v.value.value = "");
159
+ }
160
+ }), oe = (t) => {
161
+ const e = new FileReader();
162
+ e.onload = (l) => {
163
+ var s;
164
+ b.value = ((s = l.target) == null ? void 0 : s.result) || "", u.value = "text-content";
165
+ }, e.readAsText(t, "UTF-8");
166
+ }, le = () => S(null, null, function* () {
167
+ if (u.value && n.value === "txt")
168
+ try {
169
+ const t = yield fetch(u.value);
170
+ b.value = yield t.text();
171
+ } catch (t) {
172
+ console.error("加载文本内容失败:", t), b.value = "无法加载文本内容";
173
+ }
174
+ }), F = (t, e) => {
175
+ var l;
176
+ (l = a.conf) != null && l.options && (a.conf.options[t] || (a.conf.options[t] = { value: "", type: "string", label: "" }), a.conf.options[t].value = e);
177
+ }, $ = (t) => {
178
+ t.preventDefault(), t.stopPropagation();
179
+ }, j = (t) => {
180
+ var s;
181
+ t.preventDefault(), t.stopPropagation();
182
+ const l = (s = t.dataTransfer) == null ? void 0 : s.files;
183
+ if (l && l.length > 0) {
184
+ const f = l[0], g = D(f.name);
185
+ if (["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt"].includes(g)) {
186
+ const k = new DataTransfer();
187
+ k.items.add(f), v.value && (v.value.files = k.files, I({ target: v.value }));
188
+ } else
189
+ A.warning("不支持的文件格式");
190
+ }
191
+ }, se = () => {
192
+ m && URL.revokeObjectURL(m), u.value = "", p.value = "", n.value = "", b.value = "", m = "", C.value = "", L.value = [], U.value = [], T.value = 0;
193
+ }, X = (t) => new Promise((e, l) => {
194
+ if (document.querySelector(`script[src="${t}"]`)) {
195
+ e();
196
+ return;
197
+ }
198
+ const s = document.createElement("script");
199
+ s.src = t, s.onload = () => e(), s.onerror = () => l(new Error(`Failed to load script: ${t}`)), document.head.appendChild(s);
200
+ }), ae = (t) => S(null, null, function* () {
201
+ try {
202
+ yield X("https://cdn.jsdelivr.net/npm/mammoth@1.6.0/mammoth.browser.min.js");
203
+ const e = yield t.arrayBuffer(), l = yield window.mammoth.convertToHtml({ arrayBuffer: e });
204
+ C.value = l.value;
205
+ } catch (e) {
206
+ console.error("解析 Word 文档失败:", e), C.value = '<p style="color: #ef4444; text-align: center;">文档解析失败,请下载后查看</p>';
207
+ }
208
+ }), ne = (t) => S(null, null, function* () {
209
+ try {
210
+ yield X("https://cdn.jsdelivr.net/npm/xlsx@0.18.5/dist/xlsx.full.min.js");
211
+ const e = yield t.arrayBuffer(), l = window.XLSX.read(e, { type: "array" });
212
+ U.value = l.SheetNames, L.value = l.SheetNames.map((s) => {
213
+ const f = l.Sheets[s];
214
+ return window.XLSX.utils.sheet_to_json(f, { header: 1, defval: "" });
215
+ }), T.value = 0;
216
+ } catch (e) {
217
+ console.error("解析 Excel 文档失败:", e), L.value = [];
218
+ }
219
+ }), N = () => {
220
+ const t = m || (u.value !== "text-content" ? u.value : "");
221
+ if (t) {
222
+ const e = document.createElement("a");
223
+ e.href = t, e.download = p.value || "download", document.body.appendChild(e), e.click(), document.body.removeChild(e);
224
+ }
225
+ };
226
+ return he(() => {
227
+ var t, e;
228
+ if (a.mode !== "preview") {
229
+ const l = (e = (t = x == null ? void 0 : x.proxy) == null ? void 0 : t.$el) == null ? void 0 : e.querySelector(".upload-area");
230
+ l && (l.addEventListener("dragover", $), l.addEventListener("drop", j));
231
+ }
232
+ }), we(() => {
233
+ var e, l;
234
+ m && URL.revokeObjectURL(m);
235
+ const t = (l = (e = x == null ? void 0 : x.proxy) == null ? void 0 : e.$el) == null ? void 0 : l.querySelector(".upload-area");
236
+ t && (t.removeEventListener("dragover", $), t.removeEventListener("drop", j));
237
+ }), (t, e) => (r(), i("div", {
238
+ class: "mix-component",
239
+ style: ye({ borderRadius: `${xe(M).radiusSize}px` })
240
+ }, [
241
+ o("div", Ae, [
242
+ u.value ? y("", !0) : (r(), i("div", {
243
+ key: 0,
244
+ class: J(["upload-area", { "preview-mode": c.mode === "preview" }]),
245
+ onClick: e[0] || (e[0] = (l) => c.mode !== "preview" && te())
246
+ }, [
247
+ o("input", {
248
+ ref_key: "fileInputRef",
249
+ ref: v,
250
+ type: "file",
251
+ accept: Q,
252
+ onChange: I,
253
+ style: { display: "none" }
254
+ }, null, 544),
255
+ o("div", Ee, [
256
+ e[2] || (e[2] = o("div", { class: "upload-icon" }, [
257
+ o("svg", {
258
+ viewBox: "0 0 24 24",
259
+ width: "32",
260
+ height: "32",
261
+ fill: "currentColor"
262
+ }, [
263
+ o("path", { d: "M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z" })
264
+ ])
265
+ ], -1)),
266
+ o("h3", Me, w(c.mode === "preview" ? t.$t("component.fileViewer.noFile") : t.$t("component.fileViewer.uploadText")), 1),
267
+ c.mode !== "preview" ? (r(), i("p", De, w(t.$t("component.fileViewer.uploadHint")), 1)) : y("", !0),
268
+ c.mode !== "preview" ? (r(), i("div", Fe, [...e[1] || (e[1] = [
269
+ ge('<span class="format-tag" data-v-a10575bc>PDF</span><span class="format-tag" data-v-a10575bc>DOC</span><span class="format-tag" data-v-a10575bc>DOCX</span><span class="format-tag" data-v-a10575bc>XLS</span><span class="format-tag" data-v-a10575bc>XLSX</span><span class="format-tag" data-v-a10575bc>PPT</span><span class="format-tag" data-v-a10575bc>PPTX</span><span class="format-tag" data-v-a10575bc>TXT</span>', 8)
270
+ ])])) : y("", !0)
271
+ ])
272
+ ], 2)),
273
+ u.value ? (r(), i("div", Ne, [
274
+ c.mode !== "preview" ? (r(), i("div", Oe, [
275
+ o("div", Be, [
276
+ o("div", Pe, [
277
+ o("span", Re, w(p.value || u.value), 1),
278
+ o("span", Ie, w(n.value.toUpperCase()), 1)
279
+ ]),
280
+ o("div", $e, [
281
+ u.value ? (r(), i("button", {
282
+ key: 0,
283
+ class: "control-btn",
284
+ onClick: N,
285
+ title: "下载文件"
286
+ }, [...e[3] || (e[3] = [
287
+ o("svg", {
288
+ viewBox: "0 0 24 24",
289
+ width: "16",
290
+ height: "16",
291
+ fill: "currentColor"
292
+ }, [
293
+ o("path", { d: "M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z" })
294
+ ], -1)
295
+ ])])) : y("", !0),
296
+ o("button", {
297
+ class: "control-btn",
298
+ onClick: se,
299
+ title: "更换文件"
300
+ }, [...e[4] || (e[4] = [
301
+ o("svg", {
302
+ viewBox: "0 0 24 24",
303
+ width: "16",
304
+ height: "16",
305
+ fill: "currentColor"
306
+ }, [
307
+ o("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" })
308
+ ], -1)
309
+ ])])
310
+ ])
311
+ ])
312
+ ])) : y("", !0),
313
+ o("div", je, [
314
+ n.value === "pdf" ? (r(), i("div", Xe, [
315
+ o("iframe", {
316
+ src: Y.value,
317
+ class: "pdf-frame",
318
+ frameborder: "0"
319
+ }, null, 8, Ze)
320
+ ])) : n.value === "docx" || n.value === "doc" ? (r(), i("div", ze, [
321
+ C.value ? (r(), i("div", {
322
+ key: 0,
323
+ class: "docx-content",
324
+ innerHTML: C.value
325
+ }, null, 8, qe)) : (r(), i("div", We, [...e[5] || (e[5] = [
326
+ o("div", { class: "loading-spinner" }, null, -1),
327
+ o("p", null, "正在解析文档...", -1)
328
+ ])]))
329
+ ])) : n.value === "xlsx" || n.value === "xls" ? (r(), i("div", Ge, [
330
+ L.value.length > 0 ? (r(), i("div", Je, [
331
+ U.value.length > 1 ? (r(), i("div", Ke, [
332
+ (r(!0), i(B, null, P(U.value, (l, s) => (r(), i("button", {
333
+ key: s,
334
+ class: J(["sheet-tab", { active: T.value === s }]),
335
+ onClick: (f) => T.value = s
336
+ }, w(l), 11, Qe))), 128))
337
+ ])) : y("", !0),
338
+ o("div", Ye, [
339
+ o("table", et, [
340
+ o("tbody", null, [
341
+ (r(!0), i(B, null, P(L.value[T.value], (l, s) => (r(), i("tr", { key: s }, [
342
+ (r(!0), i(B, null, P(l, (f, g) => (r(), i("td", { key: g }, w(f), 1))), 128))
343
+ ]))), 128))
344
+ ])
345
+ ])
346
+ ])
347
+ ])) : (r(), i("div", tt, [...e[6] || (e[6] = [
348
+ o("div", { class: "loading-spinner" }, null, -1),
349
+ o("p", null, "正在解析表格...", -1)
350
+ ])]))
351
+ ])) : n.value === "pptx" || n.value === "ppt" ? (r(), i("div", ot, [
352
+ o("div", lt, [
353
+ e[8] || (e[8] = o("div", { class: "fallback-icon" }, [
354
+ o("svg", {
355
+ viewBox: "0 0 24 24",
356
+ width: "64",
357
+ height: "64",
358
+ fill: "currentColor"
359
+ }, [
360
+ o("path", { d: "M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M8,12H16V14H8V12M8,16H13V18H8V16" })
361
+ ])
362
+ ], -1)),
363
+ e[9] || (e[9] = o("h3", null, "PowerPoint 演示文稿", -1)),
364
+ o("p", st, w(p.value), 1),
365
+ e[10] || (e[10] = o("p", { class: "ppt-tip" }, "PPT 格式暂不支持在线预览,请下载后查看", -1)),
366
+ o("button", {
367
+ class: "download-btn",
368
+ onClick: N
369
+ }, [...e[7] || (e[7] = [
370
+ o("svg", {
371
+ viewBox: "0 0 24 24",
372
+ width: "16",
373
+ height: "16",
374
+ fill: "currentColor"
375
+ }, [
376
+ o("path", { d: "M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z" })
377
+ ], -1),
378
+ K(" 下载文件 ", -1)
379
+ ])])
380
+ ])
381
+ ])) : n.value === "txt" ? (r(), i("div", at, [
382
+ o("pre", nt, w(b.value), 1)
383
+ ])) : (r(), i("div", rt, [
384
+ o("div", it, [
385
+ (r(), i("svg", ct, [...e[11] || (e[11] = [
386
+ o("path", { d: "M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z" }, null, -1)
387
+ ])])),
388
+ e[13] || (e[13] = o("h3", null, "无法预览此文件", -1)),
389
+ o("p", null, w(n.value.toUpperCase()) + " 格式暂不支持在线预览", 1),
390
+ o("button", {
391
+ class: "download-btn",
392
+ onClick: N
393
+ }, [...e[12] || (e[12] = [
394
+ o("svg", {
395
+ viewBox: "0 0 24 24",
396
+ width: "16",
397
+ height: "16",
398
+ fill: "currentColor"
399
+ }, [
400
+ o("path", { d: "M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z" })
401
+ ], -1),
402
+ K(" 下载文件 ", -1)
403
+ ])])
404
+ ])
405
+ ]))
406
+ ])
407
+ ])) : y("", !0)
408
+ ]),
409
+ Ve(t.$slots, "default", {}, void 0, !0)
410
+ ], 4));
411
+ }
412
+ })), kt = /* @__PURE__ */ Le(wt, [["__scopeId", "data-v-a10575bc"]]);
413
+ export {
414
+ kt as default
415
+ };
@@ -0,0 +1 @@
1
+ "use strict";var te=Object.defineProperty,oe=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var ne=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var R=(s,c,a)=>c in s?te(s,c,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[c]=a,I=(s,c)=>{for(var a in c||(c={}))ne.call(c,a)&&R(s,a,c[a]);if(P)for(var a of P(c))ae.call(c,a)&&R(s,a,c[a]);return s},q=(s,c)=>oe(s,le(c));var N=(s,c,a)=>new Promise((_,E)=>{var b=r=>{try{d(a.next(r))}catch(p){E(p)}},i=r=>{try{d(a.throw(r))}catch(p){E(p)}},d=r=>r.done?_(r.value):Promise.resolve(r.value).then(b,i);d((a=a.apply(s,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),re=require("./element-resize-detector-Bo5uDQAu.cjs"),D=require("./index-Mh5Dw2sd.cjs"),se=require("./api-P_s372dW.cjs"),ce=require("./config-BLSroAzs.cjs"),C=require("element-plus"),ie=require("./store-BJW2NQkK.cjs"),j=require("./ele-vdo-icon-Bgp9gaT6.cjs"),de={class:"mix-body"},pe={class:"upload-content"},ue={class:"upload-title"},me={key:0,class:"upload-hint"},ve={key:1,class:"upload-formats"},fe={key:1,class:"viewer-container"},Ve={key:0,class:"file-controls"},Ee={class:"file-info"},ye={class:"file-details"},he={class:"file-name"},ke={class:"file-type"},we={class:"control-buttons"},ge={class:"viewer-content"},xe={key:0,class:"pdf-viewer"},Ne=["src"],Be={key:1,class:"word-viewer"},Ce=["innerHTML"],_e={key:1,class:"loading-content"},be={key:2,class:"excel-viewer"},Se={key:0,class:"excel-content"},Te={key:0,class:"sheet-tabs"},Le=["onClick"],He={class:"excel-table-wrapper"},De={class:"excel-table"},Me={key:1,class:"loading-content"},Ue={key:3,class:"ppt-viewer"},Ae={class:"ppt-fallback"},Fe={class:"file-name-display"},Oe={key:4,class:"text-viewer"},Pe={class:"text-content"},Re={key:5,class:"unsupported-viewer"},Ie={class:"unsupported-content"},qe={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},je={DEFAULT_ICON:j.DEFAULT_ICON,ACTIVE_ICON:j.ACTIVE_ICON,NAME_CN:"文件查看器",NAME_EN:"File Viewer",ORDER:3},$e={fileUrl:{value:"",type:"string",label:"component.fileViewer.fileUrl",placeholder:"component.fileViewer.uploadPlaceholder"},fileName:{value:"",type:"string",label:"component.fileViewer.fileName",placeholder:"component.fileViewer.uploadPlaceholder"},fileType:{value:"",type:"string",label:"component.fileViewer.fileType",placeholder:"component.fileViewer.autoDetect"},showToolbar:!0},Xe=[],ze=[],Ze=[],We=null,Ge={DEFAULT:je,OPTIONS:$e,DATA:Xe,PARAMS:ze,SOURCE:Ze,COMMON:We},Je=e.defineComponent(q(I({},Ge),{__name:"fileViewer",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(s){const c=ie.useCounterStore(),a=s;class _ extends re.BaseComponent{extractStyles(){return{radiusSize:this.getOptionValue("radiusSize",0),showToolbar:this.getOptionValue("showToolbar",!0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),z()}}const E=new _(a,"fileViewer");E.setupLifecycle();const b=E.getStyle(),i=e.ref(""),d=e.ref(""),r=e.ref(""),p=e.ref(null),M=e.ref(!1),y=e.ref(""),$=".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt";let m="";const h=e.ref(""),k=e.ref([]),B=e.ref([]),w=e.ref(0),v=e.getCurrentInstance();e.computed(()=>["doc","docx","xls","xlsx","ppt","pptx"].includes(r.value));const X=e.computed(()=>r.value==="pdf"&&i.value?i.value:""),S=o=>{var t;return o&&((t=o.split(".").pop())==null?void 0:t.toLowerCase())||""},z=()=>{var o,t,l,n,u;(l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.fileUrl)!=null&&l.value&&(i.value=a.conf.options.fileUrl.value,d.value=((n=a.conf.options.fileName)==null?void 0:n.value)||"",r.value=((u=a.conf.options.fileType)==null?void 0:u.value)||S(d.value),r.value==="txt"&&G())},Z=()=>{var o;(o=p.value)==null||o.click()},U=o=>N(null,null,function*(){var f,H,g;const t=o.target,l=(f=t==null?void 0:t.files)==null?void 0:f[0];if(!l)return;const n=S(l.name);if(!["pdf","doc","docx","xls","xlsx","ppt","pptx","txt"].includes(n)){C.ElMessage.warning("不支持的文件格式,请选择 PDF、Office 文档或文本文件");return}d.value=l.name,r.value=n,m&&URL.revokeObjectURL(m),m=URL.createObjectURL(l),i.value=m,n==="txt"?W(l):n==="docx"||n==="doc"?yield K(l):(n==="xlsx"||n==="xls")&&(yield Q(l));try{M.value=!0;const V=yield D.fileToDataUrl(l),Y=D.getFileExtension(l.name),x=yield se.api.post("upload",{dashboard_uid:c.pageData.id,file_data:V,file_type:Y,user_id:((H=c.session.userInfo)==null?void 0:H.id)||""},!0);if(x.code===200&&((g=x.result)!=null&&g.relative_path)){const ee=ce.FILE_URL+x.result.relative_path;T("fileUrl",ee),T("fileName",x.result.file_name||l.name),T("fileType",n),C.ElMessage.success("文件上传成功")}else throw new Error(x.msg||"上传失败")}catch(V){console.error("文件上传失败:",V),C.ElMessage.error("文件上传失败: "+((V==null?void 0:V.message)||"未知错误"))}finally{M.value=!1,p.value&&(p.value.value="")}}),W=o=>{const t=new FileReader;t.onload=l=>{var n;y.value=((n=l.target)==null?void 0:n.result)||"",i.value="text-content"},t.readAsText(o,"UTF-8")},G=()=>N(null,null,function*(){if(i.value&&r.value==="txt")try{const o=yield fetch(i.value);y.value=yield o.text()}catch(o){console.error("加载文本内容失败:",o),y.value="无法加载文本内容"}}),T=(o,t)=>{var l;(l=a.conf)!=null&&l.options&&(a.conf.options[o]||(a.conf.options[o]={value:"",type:"string",label:""}),a.conf.options[o].value=t)},A=o=>{o.preventDefault(),o.stopPropagation()},F=o=>{var n;o.preventDefault(),o.stopPropagation();const l=(n=o.dataTransfer)==null?void 0:n.files;if(l&&l.length>0){const u=l[0],f=S(u.name);if(["pdf","doc","docx","xls","xlsx","ppt","pptx","txt"].includes(f)){const g=new DataTransfer;g.items.add(u),p.value&&(p.value.files=g.files,U({target:p.value}))}else C.ElMessage.warning("不支持的文件格式")}},J=()=>{m&&URL.revokeObjectURL(m),i.value="",d.value="",r.value="",y.value="",m="",h.value="",k.value=[],B.value=[],w.value=0},O=o=>new Promise((t,l)=>{if(document.querySelector(`script[src="${o}"]`)){t();return}const n=document.createElement("script");n.src=o,n.onload=()=>t(),n.onerror=()=>l(new Error(`Failed to load script: ${o}`)),document.head.appendChild(n)}),K=o=>N(null,null,function*(){try{yield O("https://cdn.jsdelivr.net/npm/mammoth@1.6.0/mammoth.browser.min.js");const t=yield o.arrayBuffer(),l=yield window.mammoth.convertToHtml({arrayBuffer:t});h.value=l.value}catch(t){console.error("解析 Word 文档失败:",t),h.value='<p style="color: #ef4444; text-align: center;">文档解析失败,请下载后查看</p>'}}),Q=o=>N(null,null,function*(){try{yield O("https://cdn.jsdelivr.net/npm/xlsx@0.18.5/dist/xlsx.full.min.js");const t=yield o.arrayBuffer(),l=window.XLSX.read(t,{type:"array"});B.value=l.SheetNames,k.value=l.SheetNames.map(n=>{const u=l.Sheets[n];return window.XLSX.utils.sheet_to_json(u,{header:1,defval:""})}),w.value=0}catch(t){console.error("解析 Excel 文档失败:",t),k.value=[]}}),L=()=>{const o=m||(i.value!=="text-content"?i.value:"");if(o){const t=document.createElement("a");t.href=o,t.download=d.value||"download",document.body.appendChild(t),t.click(),document.body.removeChild(t)}};return e.onMounted(()=>{var o,t;if(a.mode!=="preview"){const l=(t=(o=v==null?void 0:v.proxy)==null?void 0:o.$el)==null?void 0:t.querySelector(".upload-area");l&&(l.addEventListener("dragover",A),l.addEventListener("drop",F))}}),e.onBeforeUnmount(()=>{var t,l;m&&URL.revokeObjectURL(m);const o=(l=(t=v==null?void 0:v.proxy)==null?void 0:t.$el)==null?void 0:l.querySelector(".upload-area");o&&(o.removeEventListener("dragover",A),o.removeEventListener("drop",F))}),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({borderRadius:`${e.unref(b).radiusSize}px`})},[e.createElementVNode("div",de,[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["upload-area",{"preview-mode":s.mode==="preview"}]),onClick:t[0]||(t[0]=l=>s.mode!=="preview"&&Z())},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:p,type:"file",accept:$,onChange:U,style:{display:"none"}},null,544),e.createElementVNode("div",pe,[t[2]||(t[2]=e.createElementVNode("div",{class:"upload-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"32",height:"32",fill:"currentColor"},[e.createElementVNode("path",{d:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"})])],-1)),e.createElementVNode("h3",ue,e.toDisplayString(s.mode==="preview"?o.$t("component.fileViewer.noFile"):o.$t("component.fileViewer.uploadText")),1),s.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",me,e.toDisplayString(o.$t("component.fileViewer.uploadHint")),1)):e.createCommentVNode("",!0),s.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",ve,[...t[1]||(t[1]=[e.createStaticVNode('<span class="format-tag" data-v-a10575bc>PDF</span><span class="format-tag" data-v-a10575bc>DOC</span><span class="format-tag" data-v-a10575bc>DOCX</span><span class="format-tag" data-v-a10575bc>XLS</span><span class="format-tag" data-v-a10575bc>XLSX</span><span class="format-tag" data-v-a10575bc>PPT</span><span class="format-tag" data-v-a10575bc>PPTX</span><span class="format-tag" data-v-a10575bc>TXT</span>',8)])])):e.createCommentVNode("",!0)])],2)),i.value?(e.openBlock(),e.createElementBlock("div",fe,[s.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",Ve,[e.createElementVNode("div",Ee,[e.createElementVNode("div",ye,[e.createElementVNode("span",he,e.toDisplayString(d.value||i.value),1),e.createElementVNode("span",ke,e.toDisplayString(r.value.toUpperCase()),1)]),e.createElementVNode("div",we,[i.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"control-btn",onClick:L,title:"下载文件"},[...t[3]||(t[3]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})],-1)])])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"control-btn",onClick:J,title:"更换文件"},[...t[4]||(t[4]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("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"})],-1)])])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",ge,[r.value==="pdf"?(e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("iframe",{src:X.value,class:"pdf-frame",frameborder:"0"},null,8,Ne)])):r.value==="docx"||r.value==="doc"?(e.openBlock(),e.createElementBlock("div",Be,[h.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"docx-content",innerHTML:h.value},null,8,Ce)):(e.openBlock(),e.createElementBlock("div",_e,[...t[5]||(t[5]=[e.createElementVNode("div",{class:"loading-spinner"},null,-1),e.createElementVNode("p",null,"正在解析文档...",-1)])]))])):r.value==="xlsx"||r.value==="xls"?(e.openBlock(),e.createElementBlock("div",be,[k.value.length>0?(e.openBlock(),e.createElementBlock("div",Se,[B.value.length>1?(e.openBlock(),e.createElementBlock("div",Te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(l,n)=>(e.openBlock(),e.createElementBlock("button",{key:n,class:e.normalizeClass(["sheet-tab",{active:w.value===n}]),onClick:u=>w.value=n},e.toDisplayString(l),11,Le))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",He,[e.createElementVNode("table",De,[e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value[w.value],(l,n)=>(e.openBlock(),e.createElementBlock("tr",{key:n},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l,(u,f)=>(e.openBlock(),e.createElementBlock("td",{key:f},e.toDisplayString(u),1))),128))]))),128))])])])])):(e.openBlock(),e.createElementBlock("div",Me,[...t[6]||(t[6]=[e.createElementVNode("div",{class:"loading-spinner"},null,-1),e.createElementVNode("p",null,"正在解析表格...",-1)])]))])):r.value==="pptx"||r.value==="ppt"?(e.openBlock(),e.createElementBlock("div",Ue,[e.createElementVNode("div",Ae,[t[8]||(t[8]=e.createElementVNode("div",{class:"fallback-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"64",height:"64",fill:"currentColor"},[e.createElementVNode("path",{d:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M8,12H16V14H8V12M8,16H13V18H8V16"})])],-1)),t[9]||(t[9]=e.createElementVNode("h3",null,"PowerPoint 演示文稿",-1)),e.createElementVNode("p",Fe,e.toDisplayString(d.value),1),t[10]||(t[10]=e.createElementVNode("p",{class:"ppt-tip"},"PPT 格式暂不支持在线预览,请下载后查看",-1)),e.createElementVNode("button",{class:"download-btn",onClick:L},[...t[7]||(t[7]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})],-1),e.createTextVNode(" 下载文件 ",-1)])])])])):r.value==="txt"?(e.openBlock(),e.createElementBlock("div",Oe,[e.createElementVNode("pre",Pe,e.toDisplayString(y.value),1)])):(e.openBlock(),e.createElementBlock("div",Re,[e.createElementVNode("div",Ie,[(e.openBlock(),e.createElementBlock("svg",qe,[...t[11]||(t[11]=[e.createElementVNode("path",{d:"M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"},null,-1)])])),t[13]||(t[13]=e.createElementVNode("h3",null,"无法预览此文件",-1)),e.createElementVNode("p",null,e.toDisplayString(r.value.toUpperCase())+" 格式暂不支持在线预览",1),e.createElementVNode("button",{class:"download-btn",onClick:L},[...t[12]||(t[12]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})],-1),e.createTextVNode(" 下载文件 ",-1)])])])]))])])):e.createCommentVNode("",!0)]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),Ke=D._export_sfc(Je,[["__scopeId","data-v-a10575bc"]]);exports.default=Ke;