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 @@
1
+ "use strict";var O=Object.defineProperty,z=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var U=(m,i,v)=>i in m?O(m,i,{enumerable:!0,configurable:!0,writable:!0,value:v}):m[i]=v,b=(m,i)=>{for(var v in i||(i={}))G.call(i,v)&&U(m,v,i[v]);if(q)for(var v of q(i))Q.call(i,v)&&U(m,v,i[v]);return m},N=(m,i)=>z(m,j(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/date-picker/style/css");const e=require("vue"),E=require("./index-Mh5Dw2sd.cjs"),F=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),W=require("@element-plus/icons-vue"),J={key:0,class:"config-section"},K={class:"section-header"},X={class:"section-title"},Z={key:0,class:"granularity-switch"},$=["onClick"],x=["onClick"],ee={key:0,class:"quick-range"},le=["onClick"],te={key:1,class:"date-inputs"},ae={key:1,class:"config-section"},oe={class:"section-header"},ne={class:"section-title"},se={key:0,class:"list-actions"},ce={class:"selected-count"},re={class:"select-list"},ue={key:2,class:"config-section"},de={class:"section-header"},ie={class:"section-title"},ve={class:"switch-options"},pe={key:3,class:"config-section"},me={class:"section-header"},fe={class:"section-title"},ke={class:"range-inputs"},ge={key:0,class:"range-unit"},he={key:4,class:"config-section"},ye={DEFAULT_ICON:F.DEFAULT_ICON,ACTIVE_ICON:F.ACTIVE_ICON,NAME_CN:"通用控制面板",NAME_EN:"Universal Config Panel",ORDER:20},Ce={bindId:{value:"",type:"string",label:"component.deepDisplacement.bindId"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.options.accentColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"},bindMode:{value:"channel",type:"select",label:"绑定模式",options:[{label:"频道模式",value:"channel"},{label:"直接绑定",value:"direct"}]},linkChannel:{value:"deepDisplacement",type:"select",label:"联动频道",options:[{label:"深部位移",value:"deepDisplacement"},{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"设备联动",value:"device"},{label:"告警联动",value:"alarm"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},_e=[{type:"timeRange",label:"时间段",key:"timeRange",targetIds:"",showGranularity:!0,showQuickRange:!0,dateType:"datetime",dateFormat:"YYYY-MM-DD HH:mm:ss"},{type:"selectList",label:"节点列表",key:"nodeList",targetIds:"",multiple:!1,options:[{label:"-123米",value:-123},{label:"-126米",value:-126},{label:"-129米",value:-129}]}],Ve=["type","label","key","targetIds","showGranularity","showQuickRange","dateType","dateFormat","multiple","options","minPlaceholder","maxPlaceholder","unit","buttonType","icon"],be=[],Ee={useAlias:!1,multiObject:!1,source:""},De={DEFAULT:ye,OPTIONS:Ce,DATA:_e,PARAMS:Ve,SOURCE:be,COMMON:Ee},Be=e.defineComponent(N(b({},De),{__name:"universalConfigPanel",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(m){e.useCssVars(l=>({v4ab6e686:D.value.backgroundColor,v1e19f6c8:D.value.borderColor,v59892072:p.value.textColor,v16aba7e8:p.value.borderColor,b493cbec:p.value.accentColor}));const i=E.useLinkStore(),v=m,p=e.computed(()=>{var u,d,f,_,V,y,s,n;const{options:l}=v.conf||{},t=((u=l==null?void 0:l.linkChannel)==null?void 0:u.value)||"deepDisplacement",r=((d=l==null?void 0:l.customChannel)==null?void 0:d.value)||"",c=t==="custom"&&r?r:t;return{bindId:((f=l==null?void 0:l.bindId)==null?void 0:f.value)||"",bgColor:((_=l==null?void 0:l.bgColor)==null?void 0:_.value)||"#ffffff",textColor:((V=l==null?void 0:l.textColor)==null?void 0:V.value)||"#333333",accentColor:((y=l==null?void 0:l.accentColor)==null?void 0:y.value)||"#409eff",borderColor:((s=l==null?void 0:l.borderColor)==null?void 0:s.value)||"#e5e5e5",bindMode:((n=l==null?void 0:l.bindMode)==null?void 0:n.value)||"channel",linkChannel:c}}),S=e.computed(()=>p.value.bindId||v.uid||""),g=e.computed(()=>{var l;return(((l=v.conf)==null?void 0:l.data)||[]).filter(Boolean)}),a=e.ref({}),R=[{label:"近7天",value:"week"},{label:"近30天",value:"month"},{label:"近90天",value:"quarter"}],D=e.computed(()=>({backgroundColor:p.value.bgColor,color:p.value.textColor,borderColor:p.value.borderColor})),I=l=>{const t=a.value[l];return t&&typeof t.granularity!="undefined"?t.granularity:"day"},Y=()=>{a.value={},g.value.forEach((l,t)=>{var r,c,u;if(a.value[t]={},l.type==="timeRange"){a.value[t]={granularity:"day",quickRange:"week",startDate:"",endDate:""};const d=E.dayjs();a.value[t].endDate=d.format(l.dateFormat||"YYYY-MM-DD HH:mm:ss"),a.value[t].startDate=d.subtract(7,"day").format(l.dateFormat||"YYYY-MM-DD HH:mm:ss")}else if(l.type==="selectList")a.value[t]={selectedValues:l.multiple?[]:"",selectedValue:l.multiple?void 0:((c=(r=l.options)==null?void 0:r[0])==null?void 0:c.value)||"",selectAll:!1},l.multiple&&l.options&&(a.value[t].selectedValues=l.options.map(d=>d.value),a.value[t].selectAll=!0);else if(l.type==="switch"){const d={};(u=l.options)==null||u.forEach(f=>{d[f.value]=f.defaultValue!==!1}),a.value[t]=d}else l.type==="range"&&(a.value[t]={min:"",max:""})})},w=()=>{const l={};return g.value.forEach((t,r)=>{if(t.key&&a.value[r]){const c=a.value[r];t.type==="timeRange"?l[t.key]={granularity:c.granularity,startDate:c.startDate,endDate:c.endDate,quickRange:c.quickRange}:t.type==="selectList"?l[t.key]=t.multiple?c.selectedValues:c.selectedValue:t.type==="switch"?l[t.key]=b({},c):t.type==="range"&&(l[t.key]={min:c.min===""?null:parseFloat(c.min),max:c.max===""?null:parseFloat(c.max)})}}),l},B=()=>{const l=w(),t=S.value,r=p.value.bindMode,c=p.value.linkChannel;t&&(console.log("[UniversalConfigPanel] 广播配置:",{id:t,bindMode:r,linkChannel:c,config:l}),r==="channel"?i.publish(c,"universalConfigPanel",{objectId:t,type:"config",fv:l}):g.value.forEach(u=>{if(!u.targetIds)return;u.targetIds.split(",").map(f=>f.trim()).filter(Boolean).forEach(f=>{i.publish(c,"universalConfigPanel",{objectId:f,type:"bindConfig",fv:N(b({},l),{[u.key]:l[u.key]})})})}))},M=(l,t)=>{a.value[l]&&(a.value[l].granularity=t,k())},A=(l,t)=>{if(!a.value[l])return;const r=g.value[l],c=E.dayjs(),u=r.dateFormat||"YYYY-MM-DD HH:mm:ss";a.value[l].quickRange=t,a.value[l].endDate=c.format(u),t==="week"?a.value[l].startDate=c.subtract(7,"day").format(u):t==="month"?a.value[l].startDate=c.subtract(30,"day").format(u):t==="quarter"&&(a.value[l].startDate=c.subtract(90,"day").format(u)),k()},k=l=>{B()},H=l=>{var r;const t=g.value[l];!t.multiple||!a.value[l]||(a.value[l].selectAll?a.value[l].selectedValues=((r=t.options)==null?void 0:r.map(c=>c.value))||[]:a.value[l].selectedValues=[],k())},P=l=>{a.value[l]&&(a.value[l].selectedValues=[],a.value[l].selectAll=!1,k())},T=l=>{var r;const t=g.value[l];t.multiple&&a.value[l]&&(a.value[l].selectAll=a.value[l].selectedValues.length===(((r=t.options)==null?void 0:r.length)||0)),k()},L=l=>{var c;const t=g.value[l],r=w();p.value.bindMode==="channel"?i.publish(p.value.linkChannel,"universalConfigPanel",{objectId:S.value,type:"action",action:t.key,fv:r}):(((c=t.targetIds)==null?void 0:c.split(",").map(d=>d.trim()).filter(Boolean))||[]).forEach(d=>{i.publish(p.value.linkChannel,"universalConfigPanel",{objectId:d,type:"action",action:t.key,fv:r})})};return e.watch(g,()=>{Y(),setTimeout(B,300)},{immediate:!0,deep:!0,flush:"sync"}),e.onMounted(()=>{Y(),setTimeout(B,300)}),(l,t)=>{const r=h.ElDatePicker,c=h.ElCheckbox,u=h.ElIcon,d=h.ElButton,f=h.ElCheckboxGroup,_=h.ElRadio,V=h.ElRadioGroup,y=h.ElInput;return e.openBlock(),e.createElementBlock("div",{class:"universal-config-panel",style:e.normalizeStyle(D.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(s,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:n},[s&&s.type==="timeRange"?(e.openBlock(),e.createElementBlock("div",J,[e.createElementVNode("div",K,[e.createElementVNode("span",X,e.toDisplayString(s.label||"时间段"),1),s.showGranularity&&a.value[n]?(e.openBlock(),e.createElementBlock("div",Z,[e.createElementVNode("span",{class:e.normalizeClass(["switch-item",{active:I(n)==="day"}]),onClick:o=>M(n,"day")}," 日均 ",10,$),e.createElementVNode("span",{class:e.normalizeClass(["switch-item",{active:I(n)==="hour"}]),onClick:o=>M(n,"hour")}," 小时 ",10,x)])):e.createCommentVNode("",!0)]),s.showQuickRange&&a.value[n]?(e.openBlock(),e.createElementBlock("div",ee,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(R,o=>{var C;return e.createElementVNode("span",{key:o.value,class:e.normalizeClass(["range-item",{active:((C=a.value[n])==null?void 0:C.quickRange)===o.value}]),onClick:Se=>A(n,o.value)},e.toDisplayString(o.label),11,le)}),64))])):e.createCommentVNode("",!0),a.value[n]?(e.openBlock(),e.createElementBlock("div",te,[e.createVNode(r,{modelValue:a.value[n].startDate,"onUpdate:modelValue":o=>a.value[n].startDate=o,type:s.dateType||"datetime",placeholder:"开始时间",format:s.dateFormat||"YYYY-MM-DD HH:mm:ss","value-format":s.dateFormat||"YYYY-MM-DD HH:mm:ss",size:"small",class:"date-picker",onChange:o=>k()},null,8,["modelValue","onUpdate:modelValue","type","format","value-format","onChange"]),e.createVNode(r,{modelValue:a.value[n].endDate,"onUpdate:modelValue":o=>a.value[n].endDate=o,type:s.dateType||"datetime",placeholder:"结束时间",format:s.dateFormat||"YYYY-MM-DD HH:mm:ss","value-format":s.dateFormat||"YYYY-MM-DD HH:mm:ss",size:"small",class:"date-picker",onChange:o=>k()},null,8,["modelValue","onUpdate:modelValue","type","format","value-format","onChange"])])):e.createCommentVNode("",!0)])):s&&s.type==="selectList"&&a.value[n]?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",oe,[e.createElementVNode("span",ne,e.toDisplayString(s.label||"选择列表"),1)]),s.multiple?(e.openBlock(),e.createElementBlock("div",se,[e.createVNode(c,{modelValue:a.value[n].selectAll,"onUpdate:modelValue":o=>a.value[n].selectAll=o,onChange:o=>H(n)},{default:e.withCtx(()=>[...t[0]||(t[0]=[e.createTextVNode("全选",-1)])]),_:1},8,["modelValue","onUpdate:modelValue","onChange"]),e.createVNode(d,{size:"small",text:"",onClick:o=>P(n)},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(e.unref(W.Delete))]),_:1}),t[1]||(t[1]=e.createTextVNode("清空 ",-1))]),_:1},8,["onClick"]),e.createElementVNode("span",ce,[t[2]||(t[2]=e.createTextVNode("已选 ",-1)),e.createElementVNode("em",null,e.toDisplayString(a.value[n].selectedValues&&a.value[n].selectedValues.length||0),1),t[3]||(t[3]=e.createTextVNode(" 项",-1))])])):e.createCommentVNode("",!0),e.createElementVNode("div",re,[s.multiple?(e.openBlock(),e.createBlock(f,{key:0,modelValue:a.value[n].selectedValues,"onUpdate:modelValue":o=>a.value[n].selectedValues=o,onChange:o=>T(n)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,o=>(e.openBlock(),e.createBlock(c,{key:o.value,value:o.value,class:"list-checkbox"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):(e.openBlock(),e.createBlock(V,{key:1,modelValue:a.value[n].selectedValue,"onUpdate:modelValue":o=>a.value[n].selectedValue=o,onChange:o=>T(n)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,o=>(e.openBlock(),e.createBlock(_,{key:o.value,value:o.value,class:"list-radio"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))])])):s&&s.type==="switch"&&a.value[n]?(e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("div",de,[e.createElementVNode("span",ie,e.toDisplayString(s.label||"开关"),1)]),e.createElementVNode("div",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,o=>(e.openBlock(),e.createBlock(c,{key:o.value,modelValue:a.value[n][o.value],"onUpdate:modelValue":C=>a.value[n][o.value]=C,onChange:C=>k()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]))),128))])])):s&&s.type==="range"&&a.value[n]?(e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("div",me,[e.createElementVNode("span",fe,e.toDisplayString(s.label||"范围设置"),1)]),e.createElementVNode("div",ke,[e.createVNode(y,{modelValue:a.value[n].min,"onUpdate:modelValue":o=>a.value[n].min=o,size:"small",placeholder:s.minPlaceholder||"最小值",class:"range-input",onChange:o=>k()},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]),t[4]||(t[4]=e.createElementVNode("span",{class:"range-sep"},"~",-1)),e.createVNode(y,{modelValue:a.value[n].max,"onUpdate:modelValue":o=>a.value[n].max=o,size:"small",placeholder:s.maxPlaceholder||"最大值",class:"range-input",onChange:o=>k()},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]),s.unit?(e.openBlock(),e.createElementBlock("span",ge,e.toDisplayString(s.unit),1)):e.createCommentVNode("",!0)])])):s&&s.type==="button"?(e.openBlock(),e.createElementBlock("div",he,[e.createVNode(d,{size:"small",onClick:o=>L(n),class:"action-btn",type:s.buttonType||"primary"},{default:e.withCtx(()=>[s.icon?(e.openBlock(),e.createBlock(u,{key:0},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.icon)))]),_:2},1024)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(s.label||"执行操作"),1)]),_:2},1032,["onClick","type"])])):e.createCommentVNode("",!0)],64))),128)),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),Ne=E._export_sfc(Be,[["__scopeId","data-v-50871f8e"]]);exports.default=Ne;
@@ -0,0 +1,477 @@
1
+ var Z = Object.defineProperty, x = Object.defineProperties;
2
+ var ee = Object.getOwnPropertyDescriptors;
3
+ var B = Object.getOwnPropertySymbols;
4
+ var le = Object.prototype.hasOwnProperty, ae = Object.prototype.propertyIsEnumerable;
5
+ var G = (h, i, m) => i in h ? Z(h, i, { enumerable: !0, configurable: !0, writable: !0, value: m }) : h[i] = m, U = (h, i) => {
6
+ for (var m in i || (i = {}))
7
+ le.call(i, m) && G(h, m, i[m]);
8
+ if (B)
9
+ for (var m of B(i))
10
+ ae.call(i, m) && G(h, m, i[m]);
11
+ return h;
12
+ }, P = (h, i) => x(h, ee(i));
13
+ import { ElDatePicker as te, ElCheckbox as oe, ElButton as se, ElIcon as ne, ElCheckboxGroup as ue, ElRadioGroup as ce, ElRadio as re, ElInput as de } from "element-plus/es";
14
+ import "element-plus/es/components/base/style/css";
15
+ import "element-plus/es/components/input/style/css";
16
+ import "element-plus/es/components/radio-group/style/css";
17
+ import "element-plus/es/components/radio/style/css";
18
+ import "element-plus/es/components/checkbox-group/style/css";
19
+ import "element-plus/es/components/button/style/css";
20
+ import "element-plus/es/components/icon/style/css";
21
+ import "element-plus/es/components/checkbox/style/css";
22
+ import "element-plus/es/components/date-picker/style/css";
23
+ import { defineComponent as ie, useCssVars as ve, computed as A, ref as pe, watch as me, onMounted as fe, openBlock as c, createElementBlock as v, normalizeStyle as he, Fragment as I, renderList as w, createElementVNode as p, toDisplayString as y, normalizeClass as T, createCommentVNode as D, createVNode as k, withCtx as C, createTextVNode as V, unref as ge, createBlock as Y, resolveDynamicComponent as ye, renderSlot as _e } from "vue";
24
+ import { u as Ce, d as j, _ as be } from "./index-kShjySl9.js";
25
+ import { A as ke, D as Ve } from "./ele-ctrSet-icon-BtKGrCid.js";
26
+ import { Delete as De } from "@element-plus/icons-vue";
27
+ const Ye = {
28
+ key: 0,
29
+ class: "config-section"
30
+ }, Ie = { class: "section-header" }, Me = { class: "section-title" }, Ee = {
31
+ key: 0,
32
+ class: "granularity-switch"
33
+ }, we = ["onClick"], Re = ["onClick"], Se = {
34
+ key: 0,
35
+ class: "quick-range"
36
+ }, Ue = ["onClick"], Ae = {
37
+ key: 1,
38
+ class: "date-inputs"
39
+ }, He = {
40
+ key: 1,
41
+ class: "config-section"
42
+ }, Fe = { class: "section-header" }, Pe = { class: "section-title" }, Te = {
43
+ key: 0,
44
+ class: "list-actions"
45
+ }, $e = { class: "selected-count" }, Ne = { class: "select-list" }, Oe = {
46
+ key: 2,
47
+ class: "config-section"
48
+ }, qe = { class: "section-header" }, Le = { class: "section-title" }, ze = { class: "switch-options" }, Be = {
49
+ key: 3,
50
+ class: "config-section"
51
+ }, Ge = { class: "section-header" }, je = { class: "section-title" }, Qe = { class: "range-inputs" }, We = {
52
+ key: 0,
53
+ class: "range-unit"
54
+ }, Je = {
55
+ key: 4,
56
+ class: "config-section"
57
+ }, Ke = {
58
+ DEFAULT_ICON: Ve,
59
+ ACTIVE_ICON: ke,
60
+ NAME_CN: "通用控制面板",
61
+ NAME_EN: "Universal Config Panel",
62
+ ORDER: 20
63
+ }, Xe = {
64
+ bindId: { value: "", type: "string", label: "component.deepDisplacement.bindId" },
65
+ bgColor: { value: "#ffffff", type: "color", label: "setting.bgColor" },
66
+ textColor: { value: "#333333", type: "color", label: "setting.textColor" },
67
+ accentColor: { value: "#409eff", type: "color", label: "component.options.accentColor" },
68
+ borderColor: { value: "#e5e5e5", type: "color", label: "component.options.borderColor" },
69
+ // 绑定模式:channel(频道模式)或 direct(直接绑定)
70
+ bindMode: {
71
+ value: "channel",
72
+ type: "select",
73
+ label: "绑定模式",
74
+ options: [
75
+ { label: "频道模式", value: "channel" },
76
+ { label: "直接绑定", value: "direct" }
77
+ ]
78
+ },
79
+ // 频道名称(频道模式使用)
80
+ linkChannel: {
81
+ value: "deepDisplacement",
82
+ type: "select",
83
+ label: "联动频道",
84
+ options: [
85
+ { label: "深部位移", value: "deepDisplacement" },
86
+ { label: "GNSS监测", value: "gnss" },
87
+ { label: "边坡监测", value: "slope" },
88
+ { label: "设备联动", value: "device" },
89
+ { label: "告警联动", value: "alarm" },
90
+ { label: "自定义", value: "custom" }
91
+ ]
92
+ },
93
+ customChannel: {
94
+ value: "",
95
+ type: "string",
96
+ label: "自定义频道名",
97
+ showWhen: { linkChannel: "custom" }
98
+ }
99
+ }, Ze = [
100
+ {
101
+ type: "timeRange",
102
+ // 控制类型
103
+ label: "时间段",
104
+ // 显示标签
105
+ key: "timeRange",
106
+ // 配置键名(用于生成配置对象)
107
+ targetIds: "",
108
+ // 目标组件uid列表(逗号分隔,直接绑定模式使用)
109
+ showGranularity: !0,
110
+ // 显示粒度切换
111
+ showQuickRange: !0,
112
+ // 显示快速范围选择
113
+ dateType: "datetime",
114
+ // 日期类型:date/datetime
115
+ dateFormat: "YYYY-MM-DD HH:mm:ss"
116
+ // 日期格式
117
+ },
118
+ {
119
+ type: "selectList",
120
+ label: "节点列表",
121
+ key: "nodeList",
122
+ targetIds: "",
123
+ multiple: !1,
124
+ // 是否多选
125
+ options: [
126
+ // 选项列表
127
+ { label: "-123米", value: -123 },
128
+ { label: "-126米", value: -126 },
129
+ { label: "-129米", value: -129 }
130
+ ]
131
+ }
132
+ ], xe = ["type", "label", "key", "targetIds", "showGranularity", "showQuickRange", "dateType", "dateFormat", "multiple", "options", "minPlaceholder", "maxPlaceholder", "unit", "buttonType", "icon"], el = [], ll = { useAlias: !1, multiObject: !1, source: "" }, al = { DEFAULT: Ke, OPTIONS: Xe, DATA: Ze, PARAMS: xe, SOURCE: el, COMMON: ll }, tl = /* @__PURE__ */ ie(P(U({}, al), {
133
+ __name: "universalConfigPanel",
134
+ props: {
135
+ conf: { type: Object, default: () => ({}) },
136
+ mode: { type: String, default: "edit" },
137
+ uid: { type: String, default: "" },
138
+ theme: { type: String, default: "light" }
139
+ },
140
+ setup(h) {
141
+ ve((e) => ({
142
+ v4ab6e686: H.value.backgroundColor,
143
+ v1e19f6c8: H.value.borderColor,
144
+ v59892072: f.value.textColor,
145
+ v16aba7e8: f.value.borderColor,
146
+ b493cbec: f.value.accentColor
147
+ }));
148
+ const i = Ce(), m = h, f = A(() => {
149
+ var r, d, g, R, S, M, s, o;
150
+ const { options: e } = m.conf || {}, l = ((r = e == null ? void 0 : e.linkChannel) == null ? void 0 : r.value) || "deepDisplacement", u = ((d = e == null ? void 0 : e.customChannel) == null ? void 0 : d.value) || "", n = l === "custom" && u ? u : l;
151
+ return {
152
+ bindId: ((g = e == null ? void 0 : e.bindId) == null ? void 0 : g.value) || "",
153
+ bgColor: ((R = e == null ? void 0 : e.bgColor) == null ? void 0 : R.value) || "#ffffff",
154
+ textColor: ((S = e == null ? void 0 : e.textColor) == null ? void 0 : S.value) || "#333333",
155
+ accentColor: ((M = e == null ? void 0 : e.accentColor) == null ? void 0 : M.value) || "#409eff",
156
+ borderColor: ((s = e == null ? void 0 : e.borderColor) == null ? void 0 : s.value) || "#e5e5e5",
157
+ bindMode: ((o = e == null ? void 0 : e.bindMode) == null ? void 0 : o.value) || "channel",
158
+ linkChannel: n
159
+ };
160
+ }), $ = A(() => f.value.bindId || m.uid || ""), b = A(() => {
161
+ var e;
162
+ return (((e = m.conf) == null ? void 0 : e.data) || []).filter(Boolean);
163
+ }), a = pe({}), Q = [
164
+ { label: "近7天", value: "week" },
165
+ { label: "近30天", value: "month" },
166
+ { label: "近90天", value: "quarter" }
167
+ ], H = A(() => ({
168
+ backgroundColor: f.value.bgColor,
169
+ color: f.value.textColor,
170
+ borderColor: f.value.borderColor
171
+ })), N = (e) => {
172
+ const l = a.value[e];
173
+ return l && typeof l.granularity != "undefined" ? l.granularity : "day";
174
+ }, O = () => {
175
+ a.value = {}, b.value.forEach((e, l) => {
176
+ var u, n, r;
177
+ if (a.value[l] = {}, e.type === "timeRange") {
178
+ a.value[l] = {
179
+ granularity: "day",
180
+ quickRange: "week",
181
+ startDate: "",
182
+ endDate: ""
183
+ };
184
+ const d = j();
185
+ a.value[l].endDate = d.format(e.dateFormat || "YYYY-MM-DD HH:mm:ss"), a.value[l].startDate = d.subtract(7, "day").format(e.dateFormat || "YYYY-MM-DD HH:mm:ss");
186
+ } else if (e.type === "selectList")
187
+ a.value[l] = {
188
+ selectedValues: e.multiple ? [] : "",
189
+ selectedValue: e.multiple ? void 0 : ((n = (u = e.options) == null ? void 0 : u[0]) == null ? void 0 : n.value) || "",
190
+ selectAll: !1
191
+ }, e.multiple && e.options && (a.value[l].selectedValues = e.options.map((d) => d.value), a.value[l].selectAll = !0);
192
+ else if (e.type === "switch") {
193
+ const d = {};
194
+ (r = e.options) == null || r.forEach((g) => {
195
+ d[g.value] = g.defaultValue !== !1;
196
+ }), a.value[l] = d;
197
+ } else e.type === "range" && (a.value[l] = {
198
+ min: "",
199
+ max: ""
200
+ });
201
+ });
202
+ }, q = () => {
203
+ const e = {};
204
+ return b.value.forEach((l, u) => {
205
+ if (l.key && a.value[u]) {
206
+ const n = a.value[u];
207
+ l.type === "timeRange" ? e[l.key] = {
208
+ granularity: n.granularity,
209
+ startDate: n.startDate,
210
+ endDate: n.endDate,
211
+ quickRange: n.quickRange
212
+ } : l.type === "selectList" ? e[l.key] = l.multiple ? n.selectedValues : n.selectedValue : l.type === "switch" ? e[l.key] = U({}, n) : l.type === "range" && (e[l.key] = {
213
+ min: n.min === "" ? null : parseFloat(n.min),
214
+ max: n.max === "" ? null : parseFloat(n.max)
215
+ });
216
+ }
217
+ }), e;
218
+ }, F = () => {
219
+ const e = q(), l = $.value, u = f.value.bindMode, n = f.value.linkChannel;
220
+ l && (console.log("[UniversalConfigPanel] 广播配置:", { id: l, bindMode: u, linkChannel: n, config: e }), u === "channel" ? i.publish(n, "universalConfigPanel", {
221
+ objectId: l,
222
+ type: "config",
223
+ fv: e
224
+ }) : b.value.forEach((r) => {
225
+ if (!r.targetIds) return;
226
+ r.targetIds.split(",").map((g) => g.trim()).filter(Boolean).forEach((g) => {
227
+ i.publish(n, "universalConfigPanel", {
228
+ objectId: g,
229
+ type: "bindConfig",
230
+ fv: P(U({}, e), {
231
+ // 可以单独发送某个控制项的配置
232
+ [r.key]: e[r.key]
233
+ })
234
+ });
235
+ });
236
+ }));
237
+ }, L = (e, l) => {
238
+ a.value[e] && (a.value[e].granularity = l, _());
239
+ }, W = (e, l) => {
240
+ if (!a.value[e]) return;
241
+ const u = b.value[e], n = j(), r = u.dateFormat || "YYYY-MM-DD HH:mm:ss";
242
+ a.value[e].quickRange = l, a.value[e].endDate = n.format(r), l === "week" ? a.value[e].startDate = n.subtract(7, "day").format(r) : l === "month" ? a.value[e].startDate = n.subtract(30, "day").format(r) : l === "quarter" && (a.value[e].startDate = n.subtract(90, "day").format(r)), _();
243
+ }, _ = (e) => {
244
+ F();
245
+ }, J = (e) => {
246
+ var u;
247
+ const l = b.value[e];
248
+ !l.multiple || !a.value[e] || (a.value[e].selectAll ? a.value[e].selectedValues = ((u = l.options) == null ? void 0 : u.map((n) => n.value)) || [] : a.value[e].selectedValues = [], _());
249
+ }, K = (e) => {
250
+ a.value[e] && (a.value[e].selectedValues = [], a.value[e].selectAll = !1, _());
251
+ }, z = (e) => {
252
+ var u;
253
+ const l = b.value[e];
254
+ l.multiple && a.value[e] && (a.value[e].selectAll = a.value[e].selectedValues.length === (((u = l.options) == null ? void 0 : u.length) || 0)), _();
255
+ }, X = (e) => {
256
+ var n;
257
+ const l = b.value[e], u = q();
258
+ f.value.bindMode === "channel" ? i.publish(f.value.linkChannel, "universalConfigPanel", {
259
+ objectId: $.value,
260
+ type: "action",
261
+ action: l.key,
262
+ fv: u
263
+ }) : (((n = l.targetIds) == null ? void 0 : n.split(",").map((d) => d.trim()).filter(Boolean)) || []).forEach((d) => {
264
+ i.publish(f.value.linkChannel, "universalConfigPanel", {
265
+ objectId: d,
266
+ type: "action",
267
+ action: l.key,
268
+ fv: u
269
+ });
270
+ });
271
+ };
272
+ return me(b, () => {
273
+ O(), setTimeout(F, 300);
274
+ }, { immediate: !0, deep: !0, flush: "sync" }), fe(() => {
275
+ O(), setTimeout(F, 300);
276
+ }), (e, l) => {
277
+ const u = te, n = oe, r = ne, d = se, g = ue, R = re, S = ce, M = de;
278
+ return c(), v("div", {
279
+ class: "universal-config-panel",
280
+ style: he(H.value)
281
+ }, [
282
+ (c(!0), v(I, null, w(b.value, (s, o) => (c(), v(I, { key: o }, [
283
+ s && s.type === "timeRange" ? (c(), v("div", Ye, [
284
+ p("div", Ie, [
285
+ p("span", Me, y(s.label || "时间段"), 1),
286
+ s.showGranularity && a.value[o] ? (c(), v("div", Ee, [
287
+ p("span", {
288
+ class: T(["switch-item", { active: N(o) === "day" }]),
289
+ onClick: (t) => L(o, "day")
290
+ }, " 日均 ", 10, we),
291
+ p("span", {
292
+ class: T(["switch-item", { active: N(o) === "hour" }]),
293
+ onClick: (t) => L(o, "hour")
294
+ }, " 小时 ", 10, Re)
295
+ ])) : D("", !0)
296
+ ]),
297
+ s.showQuickRange && a.value[o] ? (c(), v("div", Se, [
298
+ (c(), v(I, null, w(Q, (t) => {
299
+ var E;
300
+ return p("span", {
301
+ key: t.value,
302
+ class: T(["range-item", { active: ((E = a.value[o]) == null ? void 0 : E.quickRange) === t.value }]),
303
+ onClick: (ol) => W(o, t.value)
304
+ }, y(t.label), 11, Ue);
305
+ }), 64))
306
+ ])) : D("", !0),
307
+ a.value[o] ? (c(), v("div", Ae, [
308
+ k(u, {
309
+ modelValue: a.value[o].startDate,
310
+ "onUpdate:modelValue": (t) => a.value[o].startDate = t,
311
+ type: s.dateType || "datetime",
312
+ placeholder: "开始时间",
313
+ format: s.dateFormat || "YYYY-MM-DD HH:mm:ss",
314
+ "value-format": s.dateFormat || "YYYY-MM-DD HH:mm:ss",
315
+ size: "small",
316
+ class: "date-picker",
317
+ onChange: (t) => _()
318
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "onChange"]),
319
+ k(u, {
320
+ modelValue: a.value[o].endDate,
321
+ "onUpdate:modelValue": (t) => a.value[o].endDate = t,
322
+ type: s.dateType || "datetime",
323
+ placeholder: "结束时间",
324
+ format: s.dateFormat || "YYYY-MM-DD HH:mm:ss",
325
+ "value-format": s.dateFormat || "YYYY-MM-DD HH:mm:ss",
326
+ size: "small",
327
+ class: "date-picker",
328
+ onChange: (t) => _()
329
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "onChange"])
330
+ ])) : D("", !0)
331
+ ])) : s && s.type === "selectList" && a.value[o] ? (c(), v("div", He, [
332
+ p("div", Fe, [
333
+ p("span", Pe, y(s.label || "选择列表"), 1)
334
+ ]),
335
+ s.multiple ? (c(), v("div", Te, [
336
+ k(n, {
337
+ modelValue: a.value[o].selectAll,
338
+ "onUpdate:modelValue": (t) => a.value[o].selectAll = t,
339
+ onChange: (t) => J(o)
340
+ }, {
341
+ default: C(() => [...l[0] || (l[0] = [
342
+ V("全选", -1)
343
+ ])]),
344
+ _: 1
345
+ }, 8, ["modelValue", "onUpdate:modelValue", "onChange"]),
346
+ k(d, {
347
+ size: "small",
348
+ text: "",
349
+ onClick: (t) => K(o)
350
+ }, {
351
+ default: C(() => [
352
+ k(r, null, {
353
+ default: C(() => [
354
+ k(ge(De))
355
+ ]),
356
+ _: 1
357
+ }),
358
+ l[1] || (l[1] = V("清空 ", -1))
359
+ ]),
360
+ _: 1
361
+ }, 8, ["onClick"]),
362
+ p("span", $e, [
363
+ l[2] || (l[2] = V("已选 ", -1)),
364
+ p("em", null, y(a.value[o].selectedValues && a.value[o].selectedValues.length || 0), 1),
365
+ l[3] || (l[3] = V(" 项", -1))
366
+ ])
367
+ ])) : D("", !0),
368
+ p("div", Ne, [
369
+ s.multiple ? (c(), Y(g, {
370
+ key: 0,
371
+ modelValue: a.value[o].selectedValues,
372
+ "onUpdate:modelValue": (t) => a.value[o].selectedValues = t,
373
+ onChange: (t) => z(o)
374
+ }, {
375
+ default: C(() => [
376
+ (c(!0), v(I, null, w(s.options, (t) => (c(), Y(n, {
377
+ key: t.value,
378
+ value: t.value,
379
+ class: "list-checkbox"
380
+ }, {
381
+ default: C(() => [
382
+ V(y(t.label), 1)
383
+ ]),
384
+ _: 2
385
+ }, 1032, ["value"]))), 128))
386
+ ]),
387
+ _: 2
388
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (c(), Y(S, {
389
+ key: 1,
390
+ modelValue: a.value[o].selectedValue,
391
+ "onUpdate:modelValue": (t) => a.value[o].selectedValue = t,
392
+ onChange: (t) => z(o)
393
+ }, {
394
+ default: C(() => [
395
+ (c(!0), v(I, null, w(s.options, (t) => (c(), Y(R, {
396
+ key: t.value,
397
+ value: t.value,
398
+ class: "list-radio"
399
+ }, {
400
+ default: C(() => [
401
+ V(y(t.label), 1)
402
+ ]),
403
+ _: 2
404
+ }, 1032, ["value"]))), 128))
405
+ ]),
406
+ _: 2
407
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"]))
408
+ ])
409
+ ])) : s && s.type === "switch" && a.value[o] ? (c(), v("div", Oe, [
410
+ p("div", qe, [
411
+ p("span", Le, y(s.label || "开关"), 1)
412
+ ]),
413
+ p("div", ze, [
414
+ (c(!0), v(I, null, w(s.options, (t) => (c(), Y(n, {
415
+ key: t.value,
416
+ modelValue: a.value[o][t.value],
417
+ "onUpdate:modelValue": (E) => a.value[o][t.value] = E,
418
+ onChange: (E) => _()
419
+ }, {
420
+ default: C(() => [
421
+ V(y(t.label), 1)
422
+ ]),
423
+ _: 2
424
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"]))), 128))
425
+ ])
426
+ ])) : s && s.type === "range" && a.value[o] ? (c(), v("div", Be, [
427
+ p("div", Ge, [
428
+ p("span", je, y(s.label || "范围设置"), 1)
429
+ ]),
430
+ p("div", Qe, [
431
+ k(M, {
432
+ modelValue: a.value[o].min,
433
+ "onUpdate:modelValue": (t) => a.value[o].min = t,
434
+ size: "small",
435
+ placeholder: s.minPlaceholder || "最小值",
436
+ class: "range-input",
437
+ onChange: (t) => _()
438
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"]),
439
+ l[4] || (l[4] = p("span", { class: "range-sep" }, "~", -1)),
440
+ k(M, {
441
+ modelValue: a.value[o].max,
442
+ "onUpdate:modelValue": (t) => a.value[o].max = t,
443
+ size: "small",
444
+ placeholder: s.maxPlaceholder || "最大值",
445
+ class: "range-input",
446
+ onChange: (t) => _()
447
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"]),
448
+ s.unit ? (c(), v("span", We, y(s.unit), 1)) : D("", !0)
449
+ ])
450
+ ])) : s && s.type === "button" ? (c(), v("div", Je, [
451
+ k(d, {
452
+ size: "small",
453
+ onClick: (t) => X(o),
454
+ class: "action-btn",
455
+ type: s.buttonType || "primary"
456
+ }, {
457
+ default: C(() => [
458
+ s.icon ? (c(), Y(r, { key: 0 }, {
459
+ default: C(() => [
460
+ (c(), Y(ye(s.icon)))
461
+ ]),
462
+ _: 2
463
+ }, 1024)) : D("", !0),
464
+ V(" " + y(s.label || "执行操作"), 1)
465
+ ]),
466
+ _: 2
467
+ }, 1032, ["onClick", "type"])
468
+ ])) : D("", !0)
469
+ ], 64))), 128)),
470
+ _e(e.$slots, "default", {}, void 0, !0)
471
+ ], 4);
472
+ };
473
+ }
474
+ })), Cl = /* @__PURE__ */ be(tl, [["__scopeId", "data-v-50871f8e"]]);
475
+ export {
476
+ Cl as default
477
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";var ue=Object.defineProperty,se=Object.defineProperties;var ce=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var j=(p,s,v)=>s in p?ue(p,s,{enumerable:!0,configurable:!0,writable:!0,value:v}):p[s]=v,q=(p,s)=>{for(var v in s||(s={}))ie.call(s,v)&&j(p,v,s[v]);if(U)for(var v of U(s))de.call(s,v)&&j(p,v,s[v]);return p},P=(p,s)=>se(p,ce(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio-button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/button/style/css");const t=require("vue"),W=require("./index-Mh5Dw2sd.cjs"),pe=require("./EChartComponentBase-BaQpBzVC.cjs"),Y=require("./ele-lst-icon-CrxnHZ-A.cjs"),ve={class:"table-header"},me={class:"title"},fe={class:"header-right"},ye={class:"row-count"},be={key:0,class:"toolbar"},he={key:0,class:"toolbar-left"},ge={key:1,class:"toolbar-right"},ke={class:"table-body"},_e=["colspan","rowspan"],we={key:0},Ce=["colspan"],Se={class:"pager"},Ee={DEFAULT_ICON:Y.DEFAULT_ICON,ACTIVE_ICON:Y.ACTIVE_ICON,NAME_CN:"通用表组件",NAME_EN:"UniversalTable",ORDER:28},Ne={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},pageSize:{value:10,type:"number",label:"每页条数"},depthStart:{value:120,type:"number",label:"深度起始值",showWhen:{filterMode:["depth","both"]}},depthEnd:{value:140,type:"number",label:"深度结束值",showWhen:{filterMode:["depth","both"]}},depthStep:{value:10,type:"number",label:"深度间隔",showWhen:{filterMode:["depth","both"]}},metricOptions:{value:[{key:"全部",label:"全部"},{key:"s",label:"合位移"},{key:"x",label:"X位移"},{key:"y",label:"Y位移"},{key:"temp",label:"温度"}],type:"columns",label:"指标选项(名称/值)",showWhen:{filterMode:["metric","both"]}},filterMode:{value:"depth",type:"select",label:"筛选模式",options:[{label:"用深度",value:"depth"},{label:"用指标",value:"metric"},{label:"都用",value:"both"},{label:"都不用",value:"none"}]},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},xe=[{key:"index",label:"序号",colType:"基础列",width:"70px",order:1},{key:"time",label:"时间",colType:"基础列",fv:"reporttime",width:"170px",order:2},{key:"node",label:"节点",colType:"基础列",fv:"node",width:"100px",order:3},{key:"disp_s",label:"合",group:"累计位移(mm)",colType:"指标列",direction:"s",fv:"s_130",width:"90px",order:10},{key:"disp_x",label:"X",group:"累计位移(mm)",colType:"指标列",direction:"x",fv:"x_130",width:"90px",order:11},{key:"disp_y",label:"Y",group:"累计位移(mm)",colType:"指标列",direction:"y",fv:"y_130",width:"90px",order:12},{key:"rate_s",label:"合",group:"累计速率(mm/d)",colType:"指标列",direction:"s",fv:"sv_130",width:"90px",order:20},{key:"rate_x",label:"X",group:"累计速率(mm/d)",colType:"指标列",direction:"x",fv:"xv_130",width:"90px",order:21},{key:"rate_y",label:"Y",group:"累计速率(mm/d)",colType:"指标列",direction:"y",fv:"yv_130",width:"90px",order:22}],Ve=[{key:"key",label:"配置键名",type:"string"},{key:"label",label:"显示名称",type:"string"},{key:"group",label:"group",type:"string"},{key:"colType",label:"类型",type:"select",options:[{label:"基础列",value:"基础列"},{label:"指标列",value:"指标列"}]},{key:"direction",label:"方向",type:"select",options:[{label:"合(s)",value:"s"},{label:"X",value:"x"},{label:"Y",value:"y"}],dependent:"colType",dependentValue:"指标列"},{key:"fv",label:"FV",type:"string"},{key:"width",label:"宽度",type:"string"},{key:"order",label:"order",type:"number"}],Be=["mosaic","statistics","calculate"],De={useAlias:!1,multiObject:!0,source:"mosaic"},Te={DEFAULT:Ee,OPTIONS:Ne,DATA:xe,PARAMS:Ve,SOURCE:Be,COMMON:De},Ae=t.defineComponent(P(q({},Te),{__name:"universalTable",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const s=p;class v extends pe.EChartComponentBase{extractStyles(){var a,o,c,u,i;const l=((a=this.props.conf)==null?void 0:a.options)||{},n=((o=l==null?void 0:l.linkChannel)==null?void 0:o.value)||"deepDisplacement",r=((c=l==null?void 0:l.customChannel)==null?void 0:c.value)||"";return{bgColor:((u=l==null?void 0:l.bgColor)==null?void 0:u.value)||"#fff",textColor:((i=l==null?void 0:l.textColor)==null?void 0:i.value)||"#333",linkChannel:n==="custom"&&r?r:n}}getChartOption(){return{}}setSocketData(l){if(!l)return;const n=re(l);if(n.length){if(n.length>1){C.value=n;return}C.value=[...C.value.slice(-499),n[0]]}}}const w=new v(s,"universalTable");w.setupLifecycle();const x=w.getStyle(),X=W.useLinkStore(),y=t.ref(1),G=t.ref("s"),K=t.ref(!1),V=t.ref([]),h=t.ref(null),C=t.ref([]),m=t.ref(""),f=t.ref("全部"),B=t.computed(()=>{var e,l,n;return Number(((n=(l=(e=s.conf)==null?void 0:e.options)==null?void 0:l.pageSize)==null?void 0:n.value)||10)}),L=t.computed(()=>{var l;return[...((l=s.conf)==null?void 0:l.data)||[]]}),Z=e=>{const l=String(e.colType||"基础列");return l==="指标列"||l==="metric"},R=e=>{const n=String(e||"").match(/_(\d+)$/);return n?n[1]:""},H=t.computed(()=>{const e=new Set;return L.value.forEach(l=>{const n=R(l.fv);n&&e.add(n)}),Array.from(e).sort((l,n)=>Number(l)-Number(n))}),J=e=>{const n=String(e||"").match(/^([a-zA-Z]+)_\d+$/);return n?n[1]:""},g=t.computed(()=>{var l,n,r;const e=String(((r=(n=(l=s.conf)==null?void 0:l.options)==null?void 0:n.filterMode)==null?void 0:r.value)||"depth");return e==="metric"||e==="both"||e==="none"?e:"depth"}),D=t.computed(()=>{var r,a,o,c,u,i,d,b,S;const e=Number((o=(a=(r=s.conf)==null?void 0:r.options)==null?void 0:a.depthStart)==null?void 0:o.value),l=Number((i=(u=(c=s.conf)==null?void 0:c.options)==null?void 0:u.depthEnd)==null?void 0:i.value),n=Number((S=(b=(d=s.conf)==null?void 0:d.options)==null?void 0:b.depthStep)==null?void 0:S.value);if(Number.isFinite(e)&&Number.isFinite(l)&&Number.isFinite(n)&&n>0){const N=[];if(e<=l)for(let _=e;_<=l;_+=n)N.push(String(_));else for(let _=e;_>=l;_-=n)N.push(String(_));if(N.length)return N}return H.value}),T=t.computed(()=>{var l,n,r;const e=((r=(n=(l=s.conf)==null?void 0:l.options)==null?void 0:n.metricOptions)==null?void 0:r.value)||[];if(Array.isArray(e)&&e.length){const a=e.map(o=>{var c,u,i,d,b,S;return{label:String((i=(u=(c=o==null?void 0:o.label)!=null?c:o==null?void 0:o.value)!=null?u:o==null?void 0:o.key)!=null?i:""),value:String((S=(b=(d=o==null?void 0:o.key)!=null?d:o==null?void 0:o.value)!=null?b:o==null?void 0:o.label)!=null?S:"")}}).filter(o=>o.value);if(a.length)return a}return[{label:"全部",value:"全部"},{label:"合位移",value:"s"},{label:"X位移",value:"x"},{label:"Y位移",value:"y"}]}),M=t.computed(()=>g.value==="none"||g.value==="metric"?!1:D.value.length>0),I=t.computed(()=>g.value==="none"||g.value==="depth"?!1:T.value.length>0);t.watch(D,e=>{e.length&&(!m.value||!e.includes(m.value))&&(m.value=e[0])},{immediate:!0}),t.watch(T,e=>{if(!e.length)return;const l=e.map(n=>String(n.value));(!f.value||!l.includes(f.value))&&(f.value=l[0])},{immediate:!0});const k=t.computed(()=>L.value.filter(e=>{if(!Z(e))return!0;const l=R(e.fv),n=J(e.fv);return g.value==="depth"?!(m.value&&l&&l!==m.value):g.value==="metric"?!(f.value!=="全部"&&n!==f.value):g.value==="both"?!(m.value&&l&&l!==m.value||f.value!=="全部"&&n!==f.value):!0})),Q=t.computed(()=>{const e=[],l=[],n=k.value.filter(a=>!a.group),r=new Map;return k.value.filter(a=>!!a.group).forEach(a=>{const o=String(a.group);r.has(o)||r.set(o,[]),r.get(o).push(a)}),n.forEach(a=>{e.push({key:`top-${a.key}`,label:a.label,colspan:1,rowspan:r.size>0?2:1,width:a.width})}),Array.from(r.entries()).forEach(([a,o])=>{e.push({key:`top-group-${a}`,label:a,colspan:o.length,rowspan:1}),o.forEach(c=>l.push({key:`sub-${c.key}`,label:c.label,colspan:1,rowspan:1,width:c.width}))}),r.size===0?[e]:[e,l]}),ee=()=>x.value.linkChannel,te=t.computed(()=>({background:x.value.bgColor,color:x.value.textColor})),A=e=>String((e==null?void 0:e.reporttime)||(e==null?void 0:e.create_time)||(e==null?void 0:e.time)||(e==null?void 0:e.datetime)||""),O=e=>String((e==null?void 0:e.node)||(e==null?void 0:e.nodeId)||(e==null?void 0:e.point_id)||"-"),le=e=>{var a,o,c,u;if(!((a=h.value)!=null&&a.startDate)&&!((o=h.value)!=null&&o.endDate))return!0;const l=new Date(e).getTime();if(Number.isNaN(l))return!0;const n=(c=h.value)!=null&&c.startDate?new Date(h.value.startDate).getTime():Number.NEGATIVE_INFINITY,r=(u=h.value)!=null&&u.endDate?new Date(h.value.endDate).getTime():Number.POSITIVE_INFINITY;return l>=n&&l<=r},ne=t.computed(()=>C.value.filter(e=>!(!le(A(e))||V.value.length&&!V.value.includes(O(e))))),F=t.computed(()=>ne.value.map((e,l)=>{const n={__rowKey:`${A(e)}-${O(e)}-${l}`,index:l+1,time:A(e)||"-",node:O(e)||"-"};return k.value.forEach(r=>{var o;if(["index","time","node"].includes(r.key))return;const a=r.fv||r.key;n[r.key]=(o=e==null?void 0:e[a])!=null?o:"-"}),n})),$=t.computed(()=>Math.max(1,Math.ceil(F.value.length/B.value))),z=t.computed(()=>{const e=(y.value-1)*B.value;return F.value.slice(e,e+B.value)}),oe=()=>{const e=k.value.map(c=>c.label),l=F.value.map(c=>k.value.map(u=>{var i;return String((i=c[u.key])!=null?i:"-")})),n=[e,...l].map(c=>c.join(",")).join(`
2
+ `),r=new Blob([n],{type:"text/csv;charset=utf-8;"}),a=URL.createObjectURL(r),o=document.createElement("a");o.href=a,o.download=`universal-table-${Date.now()}.csv`,o.click(),URL.revokeObjectURL(a)},ae=e=>{const l=e.payload||{};if(l.type!=="filter")return;const n=l.filter||l,r=String(n.direction||n.displacementDirection||"").toLowerCase();(r==="s"||r==="x"||r==="y")&&(G.value=r,K.value=!0);const a=n.nodeList||n.selectedNodes||n.selectList;Array.isArray(a)&&(V.value=a.map(c=>String(c)));const o=n.timeRange||n.dateRange||null;h.value=o&&(o.startDate||o.endDate)?o:null,y.value=1},re=e=>{var l,n,r,a;return e?Array.isArray(e)?e:Array.isArray(e==null?void 0:e.data)?e.data:Array.isArray(e==null?void 0:e.history)?e.history.map(o=>(o==null?void 0:o[0])||o).filter(Boolean):Array.isArray((l=e==null?void 0:e.mosaic)==null?void 0:l.data)?e.mosaic.data:Array.isArray((n=e==null?void 0:e.statistics)==null?void 0:n.data)?e.statistics.data:(r=e==null?void 0:e.mosaic)!=null&&r.data&&typeof e.mosaic.data=="object"?[e.mosaic.data]:(a=e==null?void 0:e.statistics)!=null&&a.data&&typeof e.statistics.data=="object"?[e.statistics.data]:e!=null&&e.data&&typeof e.data=="object"?[e.data]:typeof e=="object"?[e]:[]:[]};return t.watch(()=>X.channels[ee()],e=>{e&&ae(e)},{deep:!0}),t.watchEffect(()=>{var e;(e=s.conf)!=null&&e.socketData&&w.setSocketData(s.conf.socketData)}),t.watch(()=>{var e;return(e=s.conf)==null?void 0:e.options},()=>{w.getStyle().value=w.extractStyles()},{deep:!0}),t.watch(()=>s.conf,()=>{y.value=1},{deep:!0}),(e,l)=>{const n=E.ElButton,r=E.ElOption,a=E.ElSelect,o=E.ElRadioButton,c=E.ElRadioGroup;return t.openBlock(),t.createElementBlock("div",{class:"mix-component universal-table",style:t.normalizeStyle(te.value)},[t.createElementVNode("div",ve,[t.createElementVNode("div",me,t.toDisplayString(p.conf.caption||p.conf.name||"通用表组件"),1),t.createElementVNode("div",fe,[t.createElementVNode("span",ye,"rows: "+t.toDisplayString(C.value.length),1),t.createVNode(n,{size:"small",class:"export-btn",onClick:oe},{default:t.withCtx(()=>[...l[4]||(l[4]=[t.createTextVNode("导出",-1)])]),_:1})])]),M.value||I.value?(t.openBlock(),t.createElementBlock("div",be,[M.value?(t.openBlock(),t.createElementBlock("div",he,[l[5]||(l[5]=t.createElementVNode("span",{class:"toolbar-label"},"深度",-1)),t.createVNode(a,{modelValue:m.value,"onUpdate:modelValue":l[0]||(l[0]=u=>m.value=u),size:"small",style:{width:"110px"}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,u=>(t.openBlock(),t.createBlock(r,{key:u,label:`${u}m`,value:u},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),I.value?(t.openBlock(),t.createElementBlock("div",ge,[t.createVNode(c,{modelValue:f.value,"onUpdate:modelValue":l[1]||(l[1]=u=>f.value=u),size:"small"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(T.value,u=>(t.openBlock(),t.createBlock(o,{key:String(u.value),label:String(u.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(String(u.label)),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",ke,[t.createElementVNode("table",null,[t.createElementVNode("thead",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Q.value,(u,i)=>(t.openBlock(),t.createElementBlock("tr",{key:`hr-${i}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u,d=>(t.openBlock(),t.createElementBlock("th",{key:d.key,colspan:d.colspan,rowspan:d.rowspan,style:t.normalizeStyle({width:d.width||"auto"})},t.toDisplayString(d.label),13,_e))),128))]))),128))]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value,(u,i)=>(t.openBlock(),t.createElementBlock("tr",{key:`${u.__rowKey}-${i}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k.value,d=>{var b;return t.openBlock(),t.createElementBlock("td",{key:d.key},t.toDisplayString((b=u[d.key])!=null?b:"-"),1)}),128))]))),128)),z.value.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",we,[t.createElementVNode("td",{colspan:k.value.length||1,class:"empty"},"暂无数据",8,Ce)]))])])]),t.createElementVNode("div",Se,[t.createVNode(n,{size:"small",disabled:y.value<=1,onClick:l[2]||(l[2]=u=>y.value--)},{default:t.withCtx(()=>[...l[6]||(l[6]=[t.createTextVNode("上一页",-1)])]),_:1},8,["disabled"]),t.createElementVNode("span",null,t.toDisplayString(y.value)+" / "+t.toDisplayString($.value),1),t.createVNode(n,{size:"small",disabled:y.value>=$.value,onClick:l[3]||(l[3]=u=>y.value++)},{default:t.withCtx(()=>[...l[7]||(l[7]=[t.createTextVNode("下一页",-1)])]),_:1},8,["disabled"])]),t.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),Oe=W._export_sfc(Ae,[["__scopeId","data-v-ddb95c12"]]);exports.default=Oe;