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,408 @@
1
+ var me = Object.defineProperty, ge = Object.defineProperties;
2
+ var Ce = Object.getOwnPropertyDescriptors;
3
+ var le = Object.getOwnPropertySymbols;
4
+ var be = Object.prototype.hasOwnProperty, _e = Object.prototype.propertyIsEnumerable;
5
+ var oe = (g, n, d) => n in g ? me(g, n, { enumerable: !0, configurable: !0, writable: !0, value: d }) : g[n] = d, $ = (g, n) => {
6
+ for (var d in n || (n = {}))
7
+ be.call(n, d) && oe(g, d, n[d]);
8
+ if (le)
9
+ for (var d of le(n))
10
+ _e.call(n, d) && oe(g, d, n[d]);
11
+ return g;
12
+ }, q = (g, n) => ge(g, Ce(n));
13
+ import { ElDatePicker as ye, ElCheckbox as he, ElButton as De, ElIcon as ke, ElCheckboxGroup as Ve, ElRadioGroup as Ye, ElRadio as Me, ElInput as xe } 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 Ee, computed as B, ref as u, onMounted as Se, openBlock as r, createElementBlock as c, Fragment as x, renderList as U, createElementVNode as o, toDisplayString as f, normalizeClass as A, createVNode as a, withCtx as p, createTextVNode as m, unref as ae, createBlock as we, createCommentVNode as Re, renderSlot as Te } from "vue";
24
+ import { Delete as Ue, Upload as Ae } from "@element-plus/icons-vue";
25
+ import { u as Ne, d as G, _ as Oe } from "./index-kShjySl9.js";
26
+ import { A as Pe, D as ze } from "./ele-ctrSet-icon-BtKGrCid.js";
27
+ const Le = { class: "chart-config-panel" }, je = {
28
+ key: 0,
29
+ class: "config-section"
30
+ }, Fe = { class: "section-header" }, $e = { class: "section-title" }, qe = { class: "granularity-switch" }, Be = { class: "quick-range" }, Ge = ["onClick"], Qe = { class: "date-inputs" }, Xe = {
31
+ key: 1,
32
+ class: "config-section"
33
+ }, He = { class: "section-header" }, Je = { class: "section-title" }, Ke = { class: "time-list-actions" }, We = { class: "selected-count" }, Ze = { class: "time-list" }, et = {
34
+ key: 2,
35
+ class: "config-section"
36
+ }, tt = { class: "section-title" }, lt = {
37
+ key: 3,
38
+ class: "config-section"
39
+ }, ot = { class: "section-title" }, at = { class: "direction-tabs" }, nt = ["onClick"], st = {
40
+ key: 4,
41
+ class: "config-section"
42
+ }, it = { class: "section-title" }, ut = { class: "range-inputs" }, rt = {
43
+ key: 5,
44
+ class: "config-section"
45
+ }, dt = { class: "section-title" }, ct = { class: "range-inputs" }, pt = {
46
+ key: 6,
47
+ class: "config-section"
48
+ }, vt = { class: "section-title" }, ft = { class: "function-options" }, mt = {
49
+ key: 7,
50
+ class: "config-section"
51
+ }, gt = { DEFAULT_ICON: ze, ACTIVE_ICON: Pe, NAME_CN: "图表配置面板", NAME_EN: "Chart Config Panel", ORDER: 14 }, Ct = {
52
+ bindId: { value: "", type: "string", label: "component.deepDisplacement.bindId" },
53
+ bgColor: { value: "#ffffff", type: "color", label: "component.options.bgColor" },
54
+ textColor: { value: "#333333", type: "color", label: "component.options.textColor" },
55
+ accentColor: { value: "#409eff", type: "color", label: "component.options.accentColor" },
56
+ borderColor: { value: "#e5e5e5", type: "color", label: "component.options.borderColor" }
57
+ }, bt = [
58
+ { type: "timeRange", label: "时间段", targetId: "" },
59
+ { type: "timeList", label: "采集时间列表", targetId: "" },
60
+ { type: "direction", label: "位移方向", targetId: "" },
61
+ { type: "dispSwitch", label: "累计/相对切换", targetId: "" }
62
+ ], _t = ["type", "label", "targetId"], yt = [], ht = { useAlias: !1, multiObject: !1, source: "" }, Dt = { DEFAULT: gt, OPTIONS: Ct, DATA: bt, PARAMS: _t, SOURCE: yt, COMMON: ht }, kt = /* @__PURE__ */ Ie(q($({}, Dt), {
63
+ __name: "chartConfigPanel",
64
+ props: {
65
+ conf: { type: Object, default: () => ({}) },
66
+ mode: { type: String, default: "edit" },
67
+ uid: { type: String, default: "" },
68
+ theme: { type: String, default: "light" }
69
+ },
70
+ setup(g) {
71
+ Ee((t) => ({
72
+ v6460e860: Y.value.bgColor,
73
+ v15b6596e: Y.value.borderColor,
74
+ v2f19ff68: Y.value.textColor,
75
+ f7a1752a: Y.value.accentColor
76
+ }));
77
+ const n = Ne(), d = g, Y = B(() => {
78
+ var e, v, s, b, D;
79
+ const { options: t } = d.conf || {};
80
+ return {
81
+ bindId: ((e = t == null ? void 0 : t.bindId) == null ? void 0 : e.value) || "",
82
+ bgColor: ((v = t == null ? void 0 : t.bgColor) == null ? void 0 : v.value) || "#ffffff",
83
+ textColor: ((s = t == null ? void 0 : t.textColor) == null ? void 0 : s.value) || "#333333",
84
+ accentColor: ((b = t == null ? void 0 : t.accentColor) == null ? void 0 : b.value) || "#409eff",
85
+ borderColor: ((D = t == null ? void 0 : t.borderColor) == null ? void 0 : D.value) || "#e5e5e5"
86
+ };
87
+ }), Q = B(() => {
88
+ var t;
89
+ return ((t = d.conf) == null ? void 0 : t.data) || [];
90
+ }), X = B(() => Y.value.bindId || d.uid || ""), I = u("day"), H = u("week"), _ = u(""), h = u(""), ne = [{ label: "近7天", value: "week" }, { label: "近30天", value: "month" }, { label: "近90天", value: "quarter" }], E = u([]), y = u([]), M = u(!0), N = u("relative"), O = u("total"), se = [{ label: "合", value: "total" }, { label: "X轴", value: "x" }, { label: "Y轴", value: "y" }], P = u(""), z = u(""), L = u(""), j = u(""), S = u(!0), w = u(!0), J = () => ({
91
+ granularity: I.value,
92
+ startDate: _.value,
93
+ endDate: h.value,
94
+ selectedTimes: y.value,
95
+ chartType: N.value,
96
+ direction: O.value,
97
+ dispRange: { min: parseFloat(P.value) || null, max: parseFloat(z.value) || null },
98
+ relativeDispRange: { min: parseFloat(L.value) || null, max: parseFloat(j.value) || null },
99
+ showDisp: S.value,
100
+ showRelativeDisp: w.value
101
+ }), C = () => {
102
+ const t = J(), e = Q.value, v = X.value;
103
+ v && (console.log("[ConfigPanel] 广播配置 (uid):", v, t), n.publish("deepDisplacement", "chartConfigPanel", {
104
+ objectId: v,
105
+ type: "config",
106
+ fv: t
107
+ })), e.forEach((s) => {
108
+ const b = s.targetId;
109
+ b && (s.type === "dispSwitch" ? b.split(",").map((k) => k.trim()).forEach((k, V) => {
110
+ if (!k) return;
111
+ const F = V === 0 ? S.value : w.value;
112
+ n.publish("deepDisplacement", "chartConfigPanel", {
113
+ objectId: k,
114
+ type: "bindConfig",
115
+ fv: q($({}, t), { visible: F })
116
+ });
117
+ }) : n.publish("deepDisplacement", "chartConfigPanel", {
118
+ objectId: b,
119
+ type: "bindConfig",
120
+ fv: t
121
+ }));
122
+ });
123
+ }, K = (t) => {
124
+ I.value = t, C();
125
+ }, W = (t) => {
126
+ H.value = t;
127
+ const e = G();
128
+ h.value = e.format("YYYY-MM-DD"), t === "week" ? _.value = e.subtract(7, "day").format("YYYY-MM-DD") : t === "month" ? _.value = e.subtract(30, "day").format("YYYY-MM-DD") : t === "quarter" && (_.value = e.subtract(90, "day").format("YYYY-MM-DD")), ee(), C();
129
+ }, Z = () => {
130
+ _.value && h.value && (ee(), C());
131
+ }, ee = () => {
132
+ const t = G(_.value), e = G(h.value), v = [];
133
+ let s = e;
134
+ for (; s.isAfter(t) || s.isSame(t); )
135
+ v.push(s.format("YYYY-MM-DD")), s = s.subtract(1, "day");
136
+ E.value = v, y.value = [...v], M.value = !0;
137
+ }, ie = (t) => {
138
+ y.value = t ? [...E.value] : [], C();
139
+ }, ue = () => {
140
+ y.value = [], M.value = !1, C();
141
+ }, re = () => {
142
+ M.value = y.value.length === E.value.length, C();
143
+ }, de = () => {
144
+ C();
145
+ }, ce = (t) => {
146
+ O.value = t, C();
147
+ }, R = () => {
148
+ C();
149
+ }, te = () => {
150
+ C();
151
+ }, pe = () => {
152
+ const t = X.value;
153
+ t && n.publish("deepDisplacement", {
154
+ objectId: t,
155
+ type: "export",
156
+ fv: { type: "chart", config: J() },
157
+ source: "chartConfigPanel"
158
+ });
159
+ };
160
+ return Se(() => {
161
+ W("week"), setTimeout(C, 300);
162
+ }), (t, e) => {
163
+ const v = ye, s = he, b = ke, D = De, k = Ve, V = Me, F = Ye, T = xe;
164
+ return r(), c("div", Le, [
165
+ (r(!0), c(x, null, U(Q.value, (i, ve) => (r(), c(x, { key: ve }, [
166
+ i.type === "timeRange" ? (r(), c("div", je, [
167
+ o("div", Fe, [
168
+ o("span", $e, f(i.label || "时间段"), 1),
169
+ o("div", qe, [
170
+ o("span", {
171
+ class: A(["switch-item", { active: I.value === "day" }]),
172
+ onClick: e[0] || (e[0] = (l) => K("day"))
173
+ }, "日均", 2),
174
+ o("span", {
175
+ class: A(["switch-item", { active: I.value === "hour" }]),
176
+ onClick: e[1] || (e[1] = (l) => K("hour"))
177
+ }, "小时", 2)
178
+ ])
179
+ ]),
180
+ o("div", Be, [
181
+ (r(), c(x, null, U(ne, (l) => o("span", {
182
+ key: l.value,
183
+ class: A(["range-item", { active: H.value === l.value }]),
184
+ onClick: (fe) => W(l.value)
185
+ }, f(l.label), 11, Ge)), 64))
186
+ ]),
187
+ o("div", Qe, [
188
+ a(v, {
189
+ modelValue: _.value,
190
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => _.value = l),
191
+ type: "date",
192
+ placeholder: "开始日期",
193
+ format: "YYYY-MM-DD",
194
+ "value-format": "YYYY-MM-DD",
195
+ size: "small",
196
+ class: "date-picker",
197
+ onChange: Z
198
+ }, null, 8, ["modelValue"]),
199
+ a(v, {
200
+ modelValue: h.value,
201
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => h.value = l),
202
+ type: "date",
203
+ placeholder: "结束日期",
204
+ format: "YYYY-MM-DD",
205
+ "value-format": "YYYY-MM-DD",
206
+ size: "small",
207
+ class: "date-picker",
208
+ onChange: Z
209
+ }, null, 8, ["modelValue"])
210
+ ])
211
+ ])) : i.type === "timeList" ? (r(), c("div", Xe, [
212
+ o("div", He, [
213
+ o("span", Je, f(i.label || "采集时间列表"), 1)
214
+ ]),
215
+ o("div", Ke, [
216
+ a(s, {
217
+ modelValue: M.value,
218
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => M.value = l),
219
+ onChange: ie
220
+ }, {
221
+ default: p(() => [...e[13] || (e[13] = [
222
+ m("全选", -1)
223
+ ])]),
224
+ _: 1
225
+ }, 8, ["modelValue"]),
226
+ a(D, {
227
+ size: "small",
228
+ text: "",
229
+ onClick: ue
230
+ }, {
231
+ default: p(() => [
232
+ a(b, null, {
233
+ default: p(() => [
234
+ a(ae(Ue))
235
+ ]),
236
+ _: 1
237
+ }),
238
+ e[14] || (e[14] = m("清空", -1))
239
+ ]),
240
+ _: 1
241
+ }),
242
+ o("span", We, [
243
+ e[15] || (e[15] = m("已选 ", -1)),
244
+ o("em", null, f(y.value.length), 1),
245
+ e[16] || (e[16] = m(" 项", -1))
246
+ ])
247
+ ]),
248
+ o("div", Ze, [
249
+ a(k, {
250
+ modelValue: y.value,
251
+ "onUpdate:modelValue": e[5] || (e[5] = (l) => y.value = l),
252
+ onChange: re
253
+ }, {
254
+ default: p(() => [
255
+ (r(!0), c(x, null, U(E.value, (l) => (r(), we(s, {
256
+ key: l,
257
+ value: l,
258
+ class: "time-checkbox"
259
+ }, {
260
+ default: p(() => [
261
+ m(f(l), 1)
262
+ ]),
263
+ _: 2
264
+ }, 1032, ["value"]))), 128))
265
+ ]),
266
+ _: 1
267
+ }, 8, ["modelValue"])
268
+ ])
269
+ ])) : i.type === "chartType" ? (r(), c("div", et, [
270
+ o("div", tt, f(i.label || "图类型"), 1),
271
+ a(F, {
272
+ modelValue: N.value,
273
+ "onUpdate:modelValue": e[6] || (e[6] = (l) => N.value = l),
274
+ class: "chart-type-group",
275
+ onChange: de
276
+ }, {
277
+ default: p(() => [
278
+ a(V, { value: "relative" }, {
279
+ default: p(() => [...e[17] || (e[17] = [
280
+ m("相对位移", -1)
281
+ ])]),
282
+ _: 1
283
+ }),
284
+ a(V, { value: "cluster" }, {
285
+ default: p(() => [...e[18] || (e[18] = [
286
+ m("滑面聚类判识", -1)
287
+ ])]),
288
+ _: 1
289
+ }),
290
+ a(V, { value: "borehole" }, {
291
+ default: p(() => [...e[19] || (e[19] = [
292
+ m("钻孔柱状图", -1)
293
+ ])]),
294
+ _: 1
295
+ }),
296
+ a(V, { value: "sensor" }, {
297
+ default: p(() => [...e[20] || (e[20] = [
298
+ m("传感器分布图", -1)
299
+ ])]),
300
+ _: 1
301
+ })
302
+ ]),
303
+ _: 1
304
+ }, 8, ["modelValue"])
305
+ ])) : i.type === "direction" ? (r(), c("div", lt, [
306
+ o("div", ot, f(i.label || "位移方向"), 1),
307
+ o("div", at, [
308
+ (r(), c(x, null, U(se, (l) => o("span", {
309
+ key: l.value,
310
+ class: A(["direction-item", { active: O.value === l.value }]),
311
+ onClick: (fe) => ce(l.value)
312
+ }, f(l.label), 11, nt)), 64))
313
+ ])
314
+ ])) : i.type === "dispRange" ? (r(), c("div", st, [
315
+ o("div", it, f(i.label || "累计位移区间"), 1),
316
+ o("div", ut, [
317
+ a(T, {
318
+ modelValue: P.value,
319
+ "onUpdate:modelValue": e[7] || (e[7] = (l) => P.value = l),
320
+ size: "small",
321
+ placeholder: "最小值",
322
+ class: "range-input",
323
+ onChange: R
324
+ }, null, 8, ["modelValue"]),
325
+ e[21] || (e[21] = o("span", { class: "range-sep" }, "~", -1)),
326
+ a(T, {
327
+ modelValue: z.value,
328
+ "onUpdate:modelValue": e[8] || (e[8] = (l) => z.value = l),
329
+ size: "small",
330
+ placeholder: "最大值",
331
+ class: "range-input",
332
+ onChange: R
333
+ }, null, 8, ["modelValue"]),
334
+ e[22] || (e[22] = o("span", { class: "range-unit" }, "mm", -1))
335
+ ])
336
+ ])) : i.type === "relativeDispRange" ? (r(), c("div", rt, [
337
+ o("div", dt, f(i.label || "相对位移区间"), 1),
338
+ o("div", ct, [
339
+ a(T, {
340
+ modelValue: L.value,
341
+ "onUpdate:modelValue": e[9] || (e[9] = (l) => L.value = l),
342
+ size: "small",
343
+ placeholder: "最小值",
344
+ class: "range-input",
345
+ onChange: R
346
+ }, null, 8, ["modelValue"]),
347
+ e[23] || (e[23] = o("span", { class: "range-sep" }, "~", -1)),
348
+ a(T, {
349
+ modelValue: j.value,
350
+ "onUpdate:modelValue": e[10] || (e[10] = (l) => j.value = l),
351
+ size: "small",
352
+ placeholder: "最大值",
353
+ class: "range-input",
354
+ onChange: R
355
+ }, null, 8, ["modelValue"]),
356
+ e[24] || (e[24] = o("span", { class: "range-unit" }, "mm", -1))
357
+ ])
358
+ ])) : i.type === "dispSwitch" ? (r(), c("div", pt, [
359
+ o("div", vt, f(i.label || "功能"), 1),
360
+ o("div", ft, [
361
+ a(s, {
362
+ modelValue: S.value,
363
+ "onUpdate:modelValue": e[11] || (e[11] = (l) => S.value = l),
364
+ onChange: te
365
+ }, {
366
+ default: p(() => [...e[25] || (e[25] = [
367
+ m("累计位移", -1)
368
+ ])]),
369
+ _: 1
370
+ }, 8, ["modelValue"]),
371
+ a(s, {
372
+ modelValue: w.value,
373
+ "onUpdate:modelValue": e[12] || (e[12] = (l) => w.value = l),
374
+ onChange: te
375
+ }, {
376
+ default: p(() => [...e[26] || (e[26] = [
377
+ m("相对位移", -1)
378
+ ])]),
379
+ _: 1
380
+ }, 8, ["modelValue"])
381
+ ])
382
+ ])) : i.type === "export" ? (r(), c("div", mt, [
383
+ a(D, {
384
+ size: "small",
385
+ onClick: pe,
386
+ class: "export-btn"
387
+ }, {
388
+ default: p(() => [
389
+ a(b, null, {
390
+ default: p(() => [
391
+ a(ae(Ae))
392
+ ]),
393
+ _: 1
394
+ }),
395
+ m(f(i.label || "导出图"), 1)
396
+ ]),
397
+ _: 2
398
+ }, 1024)
399
+ ])) : Re("", !0)
400
+ ], 64))), 128)),
401
+ Te(t.$slots, "default", {}, void 0, !0)
402
+ ]);
403
+ };
404
+ }
405
+ })), zt = /* @__PURE__ */ Oe(kt, [["__scopeId", "data-v-1a145f90"]]);
406
+ export {
407
+ zt as default
408
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";var $=Object.defineProperty,q=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var z=(a,i,r)=>i in a?$(a,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[i]=r,x=(a,i)=>{for(var r in i||(i={}))A.call(i,r)&&z(a,r,i[r]);if(O)for(var r of O(i))D.call(i,r)&&z(a,r,i[r]);return a},N=(a,i)=>q(a,w(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),E=require("./element-resize-detector-Bo5uDQAu.cjs"),T=require("./index-Mh5Dw2sd.cjs"),H=require("./EChartComponentBase-BaQpBzVC.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),_=require("./ele-circleBar-icon-Da0-L9sa.cjs"),L=require("./install-DV5cEgNV.cjs"),F=require("./install-CltTFs4e.cjs"),g=require("./installCanvasRenderer-CyhM1Qpl.cjs"),M=require("./install-nDY6w-GK.cjs"),P=require("./echarts-BB8O2KSA.cjs"),U={class:"mix-body"},W=["id"],K={class:"bar-wrap"},G={DEFAULT_ICON:_.DEFAULT_ICON,ACTIVE_ICON:_.ACTIVE_ICON,NAME_CN:"环形图",NAME_EN:"CircleBar",ORDER:2},J={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#e5e5e5",radiusSize:8,textSize:12,barHeight:10,isHideTitle:!1,showTotal:!0,fixed:{value:2,type:"number",label:"component.options.circleBar_fixed",dependent:"showTotal"},totalText:{value:"总数",type:"string",label:"component.options.circleBar_totalText",dependent:"showTotal"}},V=[{name:"参数一",fv:"",color:"#4162ff",object_id:"",default:"10",value:10},{name:"参数二",fv:"",color:"#3bbc6a",object_id:"",default:"10",value:10},{name:"参数三",fv:"",color:"#e24359",object_id:"",default:"10",value:10}],Q=["name","fv","object_id","color","default"],X=["mosaic","statistics","calculate"],Y={useAlias:!1,multiObject:!1,source:"mosaic"},Z={DEFAULT:G,OPTIONS:J,DATA:V,PARAMS:Q,SOURCE:X,COMMON:Y},ee=t.defineComponent(N(x({},Z),{__name:"circleBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){g.use([L.install,F.install,g.install,g.install$1,M.install]);const i=a,r=T.useLinkStore();let b=0;class k extends H.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),barColor:this.getOptionValue("barColor","#e5e5e5"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),barHeight:this.getOptionValue("barHeight",10),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var l;this.Style.value=this.extractStyles(),this.applyTheme(),(l=this.props.conf.data)!=null&&l.length||(this.props.conf.data=V),this.props.conf.data.forEach(e=>{e.default!==void 0&&e.default!==""&&(e.value=Number(e.default)||0)}),b=this.props.conf.data.reduce((e,o)=>e+Number(o.value||0),0),t.nextTick(()=>this.initChart())}initChart(){var e,o,s;const l=document.querySelector(`#${this.echartId}`);l&&(this.chartObj||(this.chartObj=P.init(l),this.setupResizeListener(l)),(e=this.chartObj)==null||e.setOption(this.getChartOption(),!0),this.props.mode==="preview"&&((o=this.chartObj)==null||o.off("click"),(s=this.chartObj)==null||s.on("click",h=>{var m,S,u,f,n,d;const c=h==null?void 0:h.name;if(typeof c=="string"&&c){const v=((S=(m=this.props.conf)==null?void 0:m.options)==null?void 0:S.linkChannel)==="custom"?(f=(u=this.props.conf)==null?void 0:u.options)==null?void 0:f.customChannel:(d=(n=this.props.conf)==null?void 0:n.options)==null?void 0:d.linkChannel;r.publish(v||"circleBar","circleBar",{objectId:"",deviceId:"",type:"select",fieldKey:c,fv:x({key:c},h),source:"circleBar"})}})))}getChartOption(){var c,m,S,u,f,n;const{data:l,options:e,name:o}=this.props.conf,s=l.map((d,v)=>d.color||E.COLORS[v]),h=l.map(d=>({value:d.value||0,name:d.name}));return{title:{zlevel:0,show:(c=e==null?void 0:e.showTotal)==null?void 0:c.value,text:[`{value|${b.toFixed(((m=e==null?void 0:e.fixed)==null?void 0:m.value)||2)}}`,`{name|${((S=e==null?void 0:e.totalText)==null?void 0:S.value)||"总数"}}`].join(`
2
+ `),textStyle:{rich:{value:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,fontWeight:"bold",lineHeight:this.Style.value.textSize+8},name:{color:this.Style.value.textColor,lineHeight:this.Style.value.textSize+8,fontSize:this.Style.value.textSize}}},top:"center",left:"center"},color:s,series:[{name:o,type:"pie",radius:["50%","85%"],center:["50%","50%"],data:h,label:{position:"center",show:!1,color:"inherit"},emphasis:{scale:0,label:{show:(u=e==null?void 0:e.showTotal)==null?void 0:u.value,fontSize:((f=e==null?void 0:e.textSize)==null?void 0:f.value)||12,fontWeight:"bold",formatter:`{d}%
3
+ {b}`,lineHeight:(((n=e==null?void 0:e.textSize)==null?void 0:n.value)||12)+8}}}]}}setSocketData(l){var h,c,m,S;if(!l||!this.chartObj)return;const{data:e,options:o}=this.props.conf,s=this.chartObj.getOption();e.forEach((u,f)=>{var d,v;const n=this.extractDataValue(l,u.fv);u.value=n!=null?n:0,(v=(d=s.series)==null?void 0:d[0])!=null&&v.data&&(s.series[0].data[f].value=n!=null?n:0)}),b=e.reduce((u,f)=>u+Number(f.value||0),0),(h=s.title)!=null&&h[0]&&(s.title[0].text=[`{value|${b.toFixed(((c=o==null?void 0:o.fixed)==null?void 0:c.value)||2)}}`,`{name|${((m=o==null?void 0:o.totalText)==null?void 0:m.value)||"总数"}}`].join(`
4
+ `)),(S=this.chartObj)==null||S.setOption(s)}}const C=new k(i,"circleBar"),B=C.getEchartId();C.setupLifecycle();const p=C.getStyle(),j=t.computed(()=>R.generateTitleStyle(i.conf.options)),I=y=>{const l=Number(y),e=Number(b);return!isNaN(l)&&!isNaN(e)&&e!==0?(l/e*100).toFixed(2)+"%":"0%"};return(y,l)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(p).bgColor,borderRadius:`${t.unref(p).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(j.value)},t.toDisplayString(a.conf.caption||a.conf.name),5),t.createElementVNode("div",U,[t.createElementVNode("div",{class:"echart-container",id:t.unref(B)},null,8,W),t.createElementVNode("div",K,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.conf.data,(e,o)=>(t.openBlock(),t.createElementBlock("div",{class:"bar-item level flex",key:o},[t.createElementVNode("div",{class:"label",style:t.normalizeStyle({color:t.unref(p).textColor,fontSize:`${t.unref(p).textSize}px`})},t.toDisplayString(e.name),5),t.createElementVNode("div",{class:"bar",style:t.normalizeStyle({height:t.unref(p).barHeight+"px",backgroundColor:t.unref(p).barColor})},[t.createElementVNode("div",{class:"percent",style:t.normalizeStyle({backgroundColor:e.color||t.unref(E.COLORS)[o],width:I(e.value)})},null,4)],4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle({color:t.unref(p).textColor,fontSize:`${t.unref(p).textSize}px`})},t.toDisplayString(e.value),5)]))),128))])]),t.renderSlot(y.$slots,"default",{},void 0,!0)],4))}})),te=T._export_sfc(ee,[["__scopeId","data-v-813c8d42"]]);exports.default=te;
@@ -0,0 +1,196 @@
1
+ var H = Object.defineProperty, I = Object.defineProperties;
2
+ var D = Object.getOwnPropertyDescriptors;
3
+ var N = Object.getOwnPropertySymbols;
4
+ var L = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
5
+ var j = (l, i, a) => i in l ? H(l, i, { enumerable: !0, configurable: !0, writable: !0, value: a }) : l[i] = a, O = (l, i) => {
6
+ for (var a in i || (i = {}))
7
+ L.call(i, a) && j(l, a, i[a]);
8
+ if (N)
9
+ for (var a of N(i))
10
+ R.call(i, a) && j(l, a, i[a]);
11
+ return l;
12
+ }, k = (l, i) => I(l, D(i));
13
+ import { defineComponent as F, computed as M, openBlock as _, createElementBlock as z, normalizeStyle as x, unref as d, createElementVNode as b, toDisplayString as T, Fragment as P, renderList as U, renderSlot as W, nextTick as q } from "vue";
14
+ import { C as E } from "./element-resize-detector-DJcsrJ8s.js";
15
+ import { u as K, _ as G } from "./index-kShjySl9.js";
16
+ import { E as J } from "./EChartComponentBase-BQOhWkz2.js";
17
+ import { g as Q } from "./titleStyle-BT5GlpAb.js";
18
+ import { A as X, D as Y } from "./ele-circleBar-icon-DNBUxt0A.js";
19
+ import { i as Z } from "./install-CBde4hAM.js";
20
+ import { i as tt } from "./install-hfre7yvV.js";
21
+ import { u as et, i as ot, a as it } from "./installCanvasRenderer-CLT2hquJ.js";
22
+ import { i as lt } from "./install-BzdOSCzO.js";
23
+ import { i as at } from "./echarts-BVht3HHb.js";
24
+ const rt = { class: "mix-body" }, st = ["id"], nt = { class: "bar-wrap" }, ct = {
25
+ DEFAULT_ICON: Y,
26
+ ACTIVE_ICON: X,
27
+ NAME_CN: "环形图",
28
+ NAME_EN: "CircleBar",
29
+ ORDER: 2
30
+ }, ut = {
31
+ titleColor: "#111",
32
+ textColor: "#111",
33
+ bgColor: "#fff",
34
+ barColor: "#e5e5e5",
35
+ radiusSize: 8,
36
+ textSize: 12,
37
+ barHeight: 10,
38
+ isHideTitle: !1,
39
+ showTotal: !0,
40
+ fixed: { value: 2, type: "number", label: "component.options.circleBar_fixed", dependent: "showTotal" },
41
+ totalText: { value: "总数", type: "string", label: "component.options.circleBar_totalText", dependent: "showTotal" }
42
+ }, B = [
43
+ { name: "参数一", fv: "", color: "#4162ff", object_id: "", default: "10", value: 10 },
44
+ { name: "参数二", fv: "", color: "#3bbc6a", object_id: "", default: "10", value: 10 },
45
+ { name: "参数三", fv: "", color: "#e24359", object_id: "", default: "10", value: 10 }
46
+ ], dt = ["name", "fv", "object_id", "color", "default"], ht = ["mosaic", "statistics", "calculate"], ft = {
47
+ useAlias: !1,
48
+ multiObject: !1,
49
+ source: "mosaic"
50
+ }, pt = { DEFAULT: ct, OPTIONS: ut, DATA: B, PARAMS: dt, SOURCE: ht, COMMON: ft }, mt = /* @__PURE__ */ F(k(O({}, pt), {
51
+ __name: "circleBar",
52
+ props: {
53
+ conf: { type: Object, default: () => ({ data: [] }) },
54
+ uid: { type: String, default: "" },
55
+ mode: { type: String, default: "edit" },
56
+ theme: { type: String, default: "light" }
57
+ },
58
+ setup(l) {
59
+ et([Z, tt, ot, it, lt]);
60
+ const i = l, a = K();
61
+ let g = 0;
62
+ class $ extends J {
63
+ extractStyles() {
64
+ return {
65
+ bgColor: this.getOptionValue("bgColor", "#fff"),
66
+ titleColor: this.getOptionValue("titleColor", "#111"),
67
+ textColor: this.getOptionValue("textColor", "#111"),
68
+ barColor: this.getOptionValue("barColor", "#e5e5e5"),
69
+ radiusSize: this.getOptionValue("radiusSize", 8),
70
+ textSize: this.getOptionValue("textSize", 12),
71
+ barHeight: this.getOptionValue("barHeight", 10),
72
+ isHideTitle: this.getOptionValue("isHideTitle", !1)
73
+ };
74
+ }
75
+ init() {
76
+ var e;
77
+ this.Style.value = this.extractStyles(), this.applyTheme(), (e = this.props.conf.data) != null && e.length || (this.props.conf.data = B), this.props.conf.data.forEach((t) => {
78
+ t.default !== void 0 && t.default !== "" && (t.value = Number(t.default) || 0);
79
+ }), g = this.props.conf.data.reduce((t, o) => t + Number(o.value || 0), 0), q(() => this.initChart());
80
+ }
81
+ initChart() {
82
+ var t, o, s;
83
+ const e = document.querySelector(`#${this.echartId}`);
84
+ e && (this.chartObj || (this.chartObj = at(e), this.setupResizeListener(e)), (t = this.chartObj) == null || t.setOption(this.getChartOption(), !0), this.props.mode === "preview" && ((o = this.chartObj) == null || o.off("click"), (s = this.chartObj) == null || s.on("click", (h) => {
85
+ var m, v, c, f, r, u;
86
+ const n = h == null ? void 0 : h.name;
87
+ if (typeof n == "string" && n) {
88
+ const S = ((v = (m = this.props.conf) == null ? void 0 : m.options) == null ? void 0 : v.linkChannel) === "custom" ? (f = (c = this.props.conf) == null ? void 0 : c.options) == null ? void 0 : f.customChannel : (u = (r = this.props.conf) == null ? void 0 : r.options) == null ? void 0 : u.linkChannel;
89
+ a.publish(S || "circleBar", "circleBar", {
90
+ objectId: "",
91
+ deviceId: "",
92
+ type: "select",
93
+ fieldKey: n,
94
+ fv: O({ key: n }, h),
95
+ source: "circleBar"
96
+ });
97
+ }
98
+ })));
99
+ }
100
+ getChartOption() {
101
+ var n, m, v, c, f, r;
102
+ const { data: e, options: t, name: o } = this.props.conf, s = e.map((u, S) => u.color || E[S]), h = e.map((u) => ({ value: u.value || 0, name: u.name }));
103
+ return {
104
+ title: {
105
+ zlevel: 0,
106
+ show: (n = t == null ? void 0 : t.showTotal) == null ? void 0 : n.value,
107
+ text: [`{value|${g.toFixed(((m = t == null ? void 0 : t.fixed) == null ? void 0 : m.value) || 2)}}`, `{name|${((v = t == null ? void 0 : t.totalText) == null ? void 0 : v.value) || "总数"}}`].join(`
108
+ `),
109
+ textStyle: {
110
+ rich: {
111
+ value: { color: this.Style.value.textColor, fontSize: this.Style.value.textSize, fontWeight: "bold", lineHeight: this.Style.value.textSize + 8 },
112
+ name: { color: this.Style.value.textColor, lineHeight: this.Style.value.textSize + 8, fontSize: this.Style.value.textSize }
113
+ }
114
+ },
115
+ top: "center",
116
+ left: "center"
117
+ },
118
+ color: s,
119
+ series: [{
120
+ name: o,
121
+ type: "pie",
122
+ radius: ["50%", "85%"],
123
+ center: ["50%", "50%"],
124
+ data: h,
125
+ label: { position: "center", show: !1, color: "inherit" },
126
+ emphasis: { scale: 0, label: { show: (c = t == null ? void 0 : t.showTotal) == null ? void 0 : c.value, fontSize: ((f = t == null ? void 0 : t.textSize) == null ? void 0 : f.value) || 12, fontWeight: "bold", formatter: `{d}%
127
+ {b}`, lineHeight: (((r = t == null ? void 0 : t.textSize) == null ? void 0 : r.value) || 12) + 8 } }
128
+ }]
129
+ };
130
+ }
131
+ setSocketData(e) {
132
+ var h, n, m, v;
133
+ if (!e || !this.chartObj) return;
134
+ const { data: t, options: o } = this.props.conf, s = this.chartObj.getOption();
135
+ t.forEach((c, f) => {
136
+ var u, S;
137
+ const r = this.extractDataValue(e, c.fv);
138
+ c.value = r != null ? r : 0, (S = (u = s.series) == null ? void 0 : u[0]) != null && S.data && (s.series[0].data[f].value = r != null ? r : 0);
139
+ }), g = t.reduce((c, f) => c + Number(f.value || 0), 0), (h = s.title) != null && h[0] && (s.title[0].text = [
140
+ `{value|${g.toFixed(((n = o == null ? void 0 : o.fixed) == null ? void 0 : n.value) || 2)}}`,
141
+ `{name|${((m = o == null ? void 0 : o.totalText) == null ? void 0 : m.value) || "总数"}}`
142
+ ].join(`
143
+ `)), (v = this.chartObj) == null || v.setOption(s);
144
+ }
145
+ }
146
+ const y = new $(i, "circleBar"), w = y.getEchartId();
147
+ y.setupLifecycle();
148
+ const p = y.getStyle(), V = M(() => Q(i.conf.options)), A = (C) => {
149
+ const e = Number(C), t = Number(g);
150
+ return !isNaN(e) && !isNaN(t) && t !== 0 ? (e / t * 100).toFixed(2) + "%" : "0%";
151
+ };
152
+ return (C, e) => (_(), z("div", {
153
+ class: "mix-component",
154
+ style: x({ background: d(p).bgColor, borderRadius: `${d(p).radiusSize}px` })
155
+ }, [
156
+ b("div", {
157
+ class: "mix-title",
158
+ style: x(V.value)
159
+ }, T(l.conf.caption || l.conf.name), 5),
160
+ b("div", rt, [
161
+ b("div", {
162
+ class: "echart-container",
163
+ id: d(w)
164
+ }, null, 8, st),
165
+ b("div", nt, [
166
+ (_(!0), z(P, null, U(l.conf.data, (t, o) => (_(), z("div", {
167
+ class: "bar-item level flex",
168
+ key: o
169
+ }, [
170
+ b("div", {
171
+ class: "label",
172
+ style: x({ color: d(p).textColor, fontSize: `${d(p).textSize}px` })
173
+ }, T(t.name), 5),
174
+ b("div", {
175
+ class: "bar",
176
+ style: x({ height: d(p).barHeight + "px", backgroundColor: d(p).barColor })
177
+ }, [
178
+ b("div", {
179
+ class: "percent",
180
+ style: x({ backgroundColor: t.color || d(E)[o], width: A(t.value) })
181
+ }, null, 4)
182
+ ], 4),
183
+ b("div", {
184
+ class: "value",
185
+ style: x({ color: d(p).textColor, fontSize: `${d(p).textSize}px` })
186
+ }, T(t.value), 5)
187
+ ]))), 128))
188
+ ])
189
+ ]),
190
+ W(C.$slots, "default", {}, void 0, !0)
191
+ ], 4));
192
+ }
193
+ })), jt = /* @__PURE__ */ G(mt, [["__scopeId", "data-v-813c8d42"]]);
194
+ export {
195
+ jt as default
196
+ };
@@ -0,0 +1 @@
1
+ "use strict";var X=Object.defineProperty,Z=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var _=(c,n,r)=>n in c?X(c,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[n]=r,x=(c,n)=>{for(var r in n||(n={}))te.call(n,r)&&_(c,r,n[r]);if(V)for(var r of V(n))oe.call(n,r)&&_(c,r,n[r]);return c},M=(c,n)=>Z(c,ee(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),le=require("./element-resize-detector-Bo5uDQAu.cjs"),ae=require("./index-Mh5Dw2sd.cjs"),w=require("./ele-dateTime-icon-BgZ2_KWW.cjs"),ne={key:0,class:"digital-clock"},re={key:1,class:"analog-clock-wrapper"},ce=["width","height"],ie=["r","stroke","stroke-width"],ue=["r","fill"],se=["x1","y1","x2","y2","stroke"],de={key:0},me=["x","y","fill","font-size"],he=["x2","y2","stroke","stroke-width"],pe=["x2","y2","stroke","stroke-width"],ve=["x2","y2","stroke","stroke-width"],ge=["r","fill"],ke={DEFAULT_ICON:w.DEFAULT_ICON,ACTIVE_ICON:w.ACTIVE_ICON,NAME_CN:"钟表",NAME_EN:"Clock",ORDER:5},ye={clockType:{value:"analog",type:"select",label:"时钟类型",options:[{label:"模拟时钟",value:"analog"},{label:"数字时钟",value:"digital"}]},timeFormat:{value:"24",type:"select",label:"时间格式",options:[{label:"24小时制",value:"24"},{label:"12小时制",value:"12"}]},showDate:{value:!0,type:"checkbox",label:"显示日期"},showSecondHand:{value:!0,type:"checkbox",label:"显示秒针"},showNumbers:{value:!0,type:"checkbox",label:"显示数字"},digitalFontSize:32,digitalColor:"#1f2937",digitalDateSize:14,digitalDateColor:"#6b7280",clockSize:200,backgroundColor:"#ffffff",borderColor:"#374151",borderWidth:2,tickColor:"#374151",numberColor:"#1f2937",numberSize:14,hourHandColor:"#374151",minuteHandColor:"#374151",secondHandColor:"#ef4444",centerDotColor:"#374151"},fe=[],Ce=[],Se=[],be={},Ve={DEFAULT:ke,OPTIONS:ye,DATA:fe,PARAMS:Ce,SOURCE:Se,COMMON:be},_e=e.defineComponent(M(x({},Ve),{__name:"clock",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){const n=c;class r extends le.BaseComponent{constructor(){super(...arguments),this.timer=null}extractStyles(){return{clockType:this.getOptionValue("clockType","analog"),timeFormat:this.getOptionValue("timeFormat","24"),showDate:this.getOptionValue("showDate",!0),showSecondHand:this.getOptionValue("showSecondHand",!0),showNumbers:this.getOptionValue("showNumbers",!0),clockSize:this.getOptionValue("clockSize",200),backgroundColor:this.getOptionValue("backgroundColor","#ffffff"),borderColor:this.getOptionValue("borderColor","#374151"),borderWidth:this.getOptionValue("borderWidth",2),tickColor:this.getOptionValue("tickColor","#374151"),numberColor:this.getOptionValue("numberColor","#1f2937"),numberSize:this.getOptionValue("numberSize",14),hourHandColor:this.getOptionValue("hourHandColor","#374151"),minuteHandColor:this.getOptionValue("minuteHandColor","#374151"),secondHandColor:this.getOptionValue("secondHandColor","#ef4444"),centerDotColor:this.getOptionValue("centerDotColor","#374151"),digitalFontSize:this.getOptionValue("digitalFontSize",32),digitalColor:this.getOptionValue("digitalColor","#1f2937"),digitalDateSize:this.getOptionValue("digitalDateSize",14),digitalDateColor:this.getOptionValue("digitalDateColor","#6b7280")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.timer&&clearInterval(this.timer),p(),this.timer=setInterval(p,1e3)}cleanup(){this.timer&&clearInterval(this.timer)}}const v=new r(n,"clock");v.setupLifecycle();const o=v.getStyle(),g=e.ref(""),h=e.ref(""),d=e.ref(0),s=e.ref(0),m=e.ref(0),N=e.computed(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})),D=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.clockType)||"analog"}),O=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.timeFormat)||"24"}),k=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showDate)!==!1}),E=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showSecondHand)!==!1}),z=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showNumbers)!==!1}),u=e.computed(()=>{var a;const t=(a=o.value)==null?void 0:a.clockSize,l=Number(t);return typeof l=="number"&&!Number.isNaN(l)&&l>0?l:200}),i=e.computed(()=>{const t=u.value;return typeof t=="number"&&!Number.isNaN(t)?t*.45:90}),H=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.backgroundColor)||"#ffffff"}),I=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.borderColor)||"#374151"}),y=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.borderWidth)||2}),B=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.tickColor)||"#374151"}),T=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.numberColor)||"#1f2937"}),F=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.numberSize)||14}),P=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.hourHandColor)||"#374151"}),$=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.minuteHandColor)||"#374151"}),A=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.secondHandColor)||"#ef4444"}),W=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.centerDotColor)||"#374151"}),f=e.computed(()=>i.value*.5),C=e.computed(()=>i.value*.7),S=e.computed(()=>i.value*.8),L=e.computed(()=>Math.max(3,u.value*.015)),R=e.computed(()=>Math.max(2,u.value*.01)),q=e.computed(()=>Math.max(1,u.value*.005)),U=e.computed(()=>Math.max(3,u.value*.015)),j=e.computed(()=>({width:`${u.value}px`,height:`${u.value}px`,maxWidth:"100%",maxHeight:"100%"})),Y=e.computed(()=>{var t,l;return{fontSize:`${((t=o.value)==null?void 0:t.digitalFontSize)||32}px`,color:((l=o.value)==null?void 0:l.digitalColor)||"#1f2937",fontWeight:"bold",fontFamily:"monospace"}}),b=e.computed(()=>{var t,l;return{fontSize:`${((t=o.value)==null?void 0:t.digitalDateSize)||14}px`,color:((l=o.value)==null?void 0:l.digitalDateColor)||"#6b7280",fontFamily:"monospace",marginTop:"8px"}}),p=()=>{const t=new Date;d.value=t.getHours(),s.value=t.getMinutes(),m.value=t.getSeconds();let l=d.value,a="";O.value==="12"&&(a=l>=12?" PM":" AM",l=l%12,l===0&&(l=12)),g.value=`${l.toString().padStart(2,"0")}:${s.value.toString().padStart(2,"0")}:${m.value.toString().padStart(2,"0")}${a}`;const G=t.getFullYear(),J=(t.getMonth()+1).toString().padStart(2,"0"),K=t.getDate().toString().padStart(2,"0"),Q=["周日","周一","周二","周三","周四","周五","周六"];h.value=`${G}-${J}-${K} ${Q[t.getDay()]}`};return e.onMounted(()=>p()),(t,l)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(N.value),class:"mix-component"},[D.value==="digital"?(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("div",{class:"time-display",style:e.normalizeStyle(Y.value)},e.toDisplayString(g.value),5),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-display",style:e.normalizeStyle(b.value)},e.toDisplayString(h.value),5)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",re,[e.createElementVNode("div",{class:"analog-clock",style:e.normalizeStyle(j.value)},[(e.openBlock(),e.createElementBlock("svg",{width:u.value,height:u.value,viewBox:"0 0 200 200",class:"clock-svg"},[e.createElementVNode("circle",{cx:"100",cy:"100",r:i.value,stroke:I.value,"stroke-width":y.value,fill:"none"},null,8,ie),e.createElementVNode("circle",{cx:"100",cy:"100",r:i.value-y.value/2,fill:H.value},null,8,ue),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,a=>e.createElementVNode("g",{key:`hour-${a}`},[e.createElementVNode("line",{x1:100+(i.value-15)*Math.cos((a*30-90)*Math.PI/180),y1:100+(i.value-15)*Math.sin((a*30-90)*Math.PI/180),x2:100+(i.value-5)*Math.cos((a*30-90)*Math.PI/180),y2:100+(i.value-5)*Math.sin((a*30-90)*Math.PI/180),stroke:B.value,"stroke-width":"2"},null,8,se)])),64)),z.value?(e.openBlock(),e.createElementBlock("g",de,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,a=>e.createElementVNode("text",{key:`number-${a}`,x:100+(i.value-25)*Math.cos((a*30-90)*Math.PI/180),y:100+(i.value-25)*Math.sin((a*30-90)*Math.PI/180),"text-anchor":"middle","dominant-baseline":"central",fill:T.value,"font-size":F.value,"font-weight":"bold"},e.toDisplayString(a),9,me)),64))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:"100",y1:"100",x2:100+f.value*Math.cos((d.value*30+s.value*.5-90)*Math.PI/180),y2:100+f.value*Math.sin((d.value*30+s.value*.5-90)*Math.PI/180),stroke:P.value,"stroke-width":L.value,"stroke-linecap":"round"},null,8,he),e.createElementVNode("line",{x1:"100",y1:"100",x2:100+C.value*Math.cos((s.value*6-90)*Math.PI/180),y2:100+C.value*Math.sin((s.value*6-90)*Math.PI/180),stroke:$.value,"stroke-width":R.value,"stroke-linecap":"round"},null,8,pe),E.value?(e.openBlock(),e.createElementBlock("line",{key:1,x1:"100",y1:"100",x2:100+S.value*Math.cos((m.value*6-90)*Math.PI/180),y2:100+S.value*Math.sin((m.value*6-90)*Math.PI/180),stroke:A.value,"stroke-width":q.value,"stroke-linecap":"round"},null,8,ve)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:"100",cy:"100",r:U.value,fill:W.value},null,8,ge)],8,ce))],4),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-display",style:e.normalizeStyle(b.value)},e.toDisplayString(h.value),5)):e.createCommentVNode("",!0)])),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),xe=ae._export_sfc(_e,[["__scopeId","data-v-22a24b28"]]);exports.default=xe;