mixdashboards 1.0.54 → 1.0.56

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 (391) hide show
  1. package/dist/{EChartComponentBase-BRBRhzrb.js → EChartComponentBase-CzT2liuU.js} +2 -2
  2. package/dist/EChartComponentBase-D2qhY44d.cjs +1 -0
  3. package/dist/{UniverSheet-BxosZ7jw.cjs → UniverSheet-Cn8O4yRJ.cjs} +1 -1
  4. package/dist/{UniverSheet-D65ljgQC.js → UniverSheet-OqQR9Xpx.js} +4 -5
  5. package/dist/{accelerationChart-DhNEo2Cb.js → accelerationChart-DO4g2n8Z.js} +20 -20
  6. package/dist/{accelerationChart-Cy2ku-xh.cjs → accelerationChart-DbOjSoci.cjs} +2 -2
  7. package/dist/{actionItem-f4WGQW-8.js → actionItem-1cEFrfLE.js} +69 -71
  8. package/dist/actionItem-BjTpF__-.cjs +1 -0
  9. package/dist/{alarmLevelChart-CLcqyHUI.cjs → alarmLevelChart-Bfl10Hgz.cjs} +1 -1
  10. package/dist/{alarmLevelChart-DrO7gVSo.js → alarmLevelChart-CzPssI0G.js} +2 -2
  11. package/dist/{alertTable-DNEXcxhL.js → alertTable-3gve3p_f.js} +4 -5
  12. package/dist/{alertTable-CNK2Naoz.cjs → alertTable-BgVwLOV8.cjs} +1 -1
  13. package/dist/{aliasObjectSelectorDemo-B51XmIyB.js → aliasObjectSelectorDemo-CDrse2ph.js} +2 -2
  14. package/dist/{aliasObjectSelectorDemo-BZB4MslF.cjs → aliasObjectSelectorDemo-CHhOsCeZ.cjs} +1 -1
  15. package/dist/{annualRainfallChart-B3RNkgJ9.cjs → annualRainfallChart-CAvTI2NZ.cjs} +1 -1
  16. package/dist/{annualRainfallChart-DbRAOwcf.js → annualRainfallChart-D--SHfPR.js} +2 -2
  17. package/dist/{aqi-BrRpbRlj.js → aqi-BmwGZXpy.js} +3 -3
  18. package/dist/aqi-CfevwhP_.cjs +3 -0
  19. package/dist/aqiIndass-CVLnlB29.cjs +3 -0
  20. package/dist/{aqiIndass-BltwHOLs.js → aqiIndass-Oej5I6Jz.js} +55 -56
  21. package/dist/{areaDeformCurve-D7iKrpda.js → areaDeformCurve-4HLbtHyi.js} +2 -2
  22. package/dist/{areaDeformCurve-bXMZX2Fo.cjs → areaDeformCurve-CE9aUZPN.cjs} +1 -1
  23. package/dist/{arrayCard-DhapLfN9.js → arrayCard-CIADi_OK.js} +4 -5
  24. package/dist/{arrayCard-CiE29Xrj.cjs → arrayCard-D-7jYjh7.cjs} +1 -1
  25. package/dist/{audio-BjPrH9m_.js → audio-BT-SZPpP.js} +29 -33
  26. package/dist/audio-MqghWYzh.cjs +1 -0
  27. package/dist/{bar-BWI3aRwW.js → bar-CcYJ1fUp.js} +48 -49
  28. package/dist/bar-DOK66rzY.cjs +2 -0
  29. package/dist/{bmp-8YdByhg7.js → bmp-CNjVlpC5.js} +31 -33
  30. package/dist/bmp-DT3dqvF0.cjs +1 -0
  31. package/dist/{box-DG0czgnl.js → box-BcWAsHgI.js} +4 -5
  32. package/dist/{box-BzWiHnOc.cjs → box-D8K-vZci.cjs} +1 -1
  33. package/dist/{chartConfigPanel-PregA74H.js → chartConfigPanel-C_gexAQJ.js} +1 -1
  34. package/dist/{chartConfigPanel-Cfk4-rIS.cjs → chartConfigPanel-D26X3d_r.cjs} +1 -1
  35. package/dist/{circleBar-ClRf4GI6.js → circleBar-DeJ5zCUx.js} +3 -3
  36. package/dist/{circleBar-DcrHyU0H.cjs → circleBar-JXwCA9fT.cjs} +1 -1
  37. package/dist/{clock-DV0DfDAZ.cjs → clock-BcprLyqk.cjs} +1 -1
  38. package/dist/{clock-D835fLGJ.js → clock-CyLwEudX.js} +17 -18
  39. package/dist/clt-7V4hR8jn.cjs +1 -0
  40. package/dist/{clt-DdySu3b4.js → clt-DBuW7xoS.js} +33 -35
  41. package/dist/cmc-BmrhUoeQ.cjs +1 -0
  42. package/dist/{cmc-CbwdbGRJ.js → cmc-LwOn0iyF.js} +11 -13
  43. package/dist/cmp-DAFsuJVR.cjs +6 -0
  44. package/dist/{cmp-QC3czu9K.js → cmp-DzWWUZMK.js} +7 -7
  45. package/dist/common-B2ZjLcLF.js +72 -0
  46. package/dist/common-B_yk66iB.cjs +1 -0
  47. package/dist/composite-BvAhHZz8.cjs +3 -0
  48. package/dist/{composite-BHvgTKHC.js → composite-C_5fclvo.js} +12 -14
  49. package/dist/{controlList-CMSn-7hz.js → controlList-CADxP_Z_.js} +4 -6
  50. package/dist/controlList-DCOOsFZQ.cjs +1 -0
  51. package/dist/{controlRecordList-BtSRAmu4.js → controlRecordList-BFKZtu8R.js} +37 -39
  52. package/dist/controlRecordList-x4O6Njn7.cjs +1 -0
  53. package/dist/{crd-CRk4bS7a.cjs → crd-CK3E2ThH.cjs} +1 -1
  54. package/dist/{crd-B6N0hJ2f.js → crd-Cimld_F4.js} +4 -5
  55. package/dist/ctrBtn-CrQ5jT9I.cjs +1 -0
  56. package/dist/{ctrBtn-Qc3ZLk8L.js → ctrBtn-DlCBZr6t.js} +32 -34
  57. package/dist/{ctrSet-ByzfZF-u.js → ctrSet-D2xnH7VJ.js} +6 -8
  58. package/dist/ctrSet-DC4Te2AT.cjs +1 -0
  59. package/dist/{ctrSwitch-BZhvOc_I.js → ctrSwitch-C6D5FrNX.js} +19 -21
  60. package/dist/ctrSwitch-D7ed7bI9.cjs +1 -0
  61. package/dist/{dataManagement-D8S8wtfv.cjs → dataManagement-B5tNONg2.cjs} +1 -1
  62. package/dist/{dataManagement-DAEqL_BZ.js → dataManagement-D2H8v2xR.js} +4 -5
  63. package/dist/{dataReport-BMZhpzKg.cjs → dataReport-B3XV-tKP.cjs} +1 -1
  64. package/dist/{dataReport-hBv1Z0ck.js → dataReport-r8k2o4-M.js} +4 -5
  65. package/dist/{dataTable-BwLf7_9n.js → dataTable-5PDAmK0k.js} +1 -1
  66. package/dist/{dataTable-D7SwJmAE.cjs → dataTable-DtemqaQ8.cjs} +1 -1
  67. package/dist/{datetime-BnBMxe6x.cjs → datetime-B8zlXWJ1.cjs} +1 -1
  68. package/dist/{datetime-C0p9zqWu.js → datetime-CoIjAEU4.js} +11 -12
  69. package/dist/{deepClusterSlipSurface-DYUDRWU0.js → deepClusterSlipSurface-DkDvdPrX.js} +3 -3
  70. package/dist/deepClusterSlipSurface-pmqVqBDV.cjs +1 -0
  71. package/dist/{deepDataMatrix-B6Zmj-Hd.cjs → deepDataMatrix-BcTOzE3F.cjs} +1 -1
  72. package/dist/{deepDataMatrix-CDROnfQH.js → deepDataMatrix-CtkE4CGT.js} +13 -14
  73. package/dist/{deepDisplacement3D-DKqY2jpY.js → deepDisplacement3D-CTA3Ukwc.js} +3 -3
  74. package/dist/{deepDisplacement3D-CzdQtCUt.cjs → deepDisplacement3D-Tzd97kbm.cjs} +1 -1
  75. package/dist/{deepDisplacementChart-Cp6r_FfC.js → deepDisplacementChart-18DeEk1g.js} +30 -31
  76. package/dist/{deepDisplacementChart-BRR1eegh.cjs → deepDisplacementChart-B7WcJFMN.cjs} +1 -1
  77. package/dist/deepDisplacementChart-BgEAyn5V.cjs +6 -0
  78. package/dist/{deepDisplacementChart-BShxl2oy.js → deepDisplacementChart-OUAr8g3E.js} +4 -4
  79. package/dist/{deepDisplacementView-RyZloUJw.cjs → deepDisplacementView-Bgb42J4H.cjs} +1 -1
  80. package/dist/{deepDisplacementView-Cq4XGCeD.js → deepDisplacementView-CZ-fSzPN.js} +1 -1
  81. package/dist/deepNodeTemperatureChart-CFoRmXfr.cjs +1 -0
  82. package/dist/{deepNodeTemperatureChart-CYk3n_7r.js → deepNodeTemperatureChart-Da9XBlh9.js} +11 -11
  83. package/dist/deepTangentAngleChart-CN_oXlve.cjs +1 -0
  84. package/dist/{deepTangentAngleChart-UwBzNIOl.js → deepTangentAngleChart-xW2ujCYq.js} +13 -13
  85. package/dist/{deepTemperatureField-BUJLg81E.js → deepTemperatureField-BsizF__A.js} +20 -20
  86. package/dist/deepTemperatureField-CilOizYk.cjs +1 -0
  87. package/dist/{deepTrendChart-Dz-XjjjF.js → deepTrendChart-DnE3av9q.js} +3 -3
  88. package/dist/deepTrendChart-tpNu4GR5.cjs +1 -0
  89. package/dist/{deviceOnlineStatus-64d9JX48.cjs → deviceOnlineStatus-CfQdiplL.cjs} +1 -1
  90. package/dist/{deviceOnlineStatus-I-uK2RT9.js → deviceOnlineStatus-D9HLwy_9.js} +2 -2
  91. package/dist/{deviceStatus-DbyMa5ar.js → deviceStatus-DbGh6Qom.js} +7 -8
  92. package/dist/{deviceStatus-D6Pf5auY.cjs → deviceStatus-dLcxuR6v.cjs} +1 -1
  93. package/dist/{displacementDataTable-CBNLqKXk.js → displacementDataTable-CD9uZqPM.js} +41 -42
  94. package/dist/{displacementDataTable-BYwaqp-t.cjs → displacementDataTable-MChS7ddc.cjs} +1 -1
  95. package/dist/displacementTrajectoryChart-CoyvQSrs.cjs +22 -0
  96. package/dist/{displacementTrajectoryChart-y6YgesPE.js → displacementTrajectoryChart-PpUJMk5f.js} +3 -3
  97. package/dist/{displacementTrendChart-Cxlupymz.js → displacementTrendChart-B2bD9z3h.js} +4 -5
  98. package/dist/{displacementTrendChart-DMBmdzBq.cjs → displacementTrendChart-DSnFNcVK.cjs} +4 -4
  99. package/dist/{dxf-QFhXE1hM.js → dxf--7fZmERr.js} +226 -230
  100. package/dist/dxf-D1kESG-q.cjs +1 -0
  101. package/dist/dzc-B5lQKcpk.cjs +2 -0
  102. package/dist/{dzc-Rt6ughT2.js → dzc-CQTT2aL_.js} +4 -4
  103. package/dist/{evn-B8dUhe1s.js → evn-BSgSV1bx.js} +4 -5
  104. package/dist/{evn-h2yOGUME.cjs → evn-CdFukFUu.cjs} +1 -1
  105. package/dist/{evolutionChart-C_zAgxsG.cjs → evolutionChart-C0brgT9y.cjs} +1 -1
  106. package/dist/{evolutionChart-BYlgD0VY.js → evolutionChart-CUzrZLFk.js} +3 -3
  107. package/dist/fileViewer-OEU3TM1Q.cjs +1 -0
  108. package/dist/{fileViewer-u5HyHcxq.js → fileViewer-m1Tatqpu.js} +35 -39
  109. package/dist/{filterBar-TZNGE4vT.js → filterBar-6L4ARr_y.js} +4 -5
  110. package/dist/{filterBar-Ct7Xhi9k.cjs → filterBar-cIF6mW3I.cjs} +1 -1
  111. package/dist/{fireCombustionCurve-DUJIj365.cjs → fireCombustionCurve-B91mM1EM.cjs} +1 -1
  112. package/dist/{fireCombustionCurve-RglKretq.js → fireCombustionCurve-DJ46HqI-.js} +3 -3
  113. package/dist/{fireFilterBar-BIJJvatC.js → fireFilterBar-CQZvh1dG.js} +18 -19
  114. package/dist/{fireFilterBar-DmTmaYpY.cjs → fireFilterBar-rhlngCiC.cjs} +1 -1
  115. package/dist/{fireHistoryTable-DMf8Go1w.js → fireHistoryTable-BaITxqIc.js} +5 -5
  116. package/dist/fireHistoryTable-BuHf-rF8.cjs +3 -0
  117. package/dist/{gag-DvLPlu8y.cjs → gag-C6oL1kx7.cjs} +1 -1
  118. package/dist/{gag-rvfOcTJs.js → gag-CSwmVE48.js} +2 -2
  119. package/dist/gasStationList-2nfyRBKT.cjs +1 -0
  120. package/dist/{gasStationList-BOwrZPFG.js → gasStationList-IPRLg6wJ.js} +4 -6
  121. package/dist/geo3dViewer-D7-Ih4k1.js +3856 -0
  122. package/dist/geo3dViewer-i9S50G75.cjs +1 -0
  123. package/dist/{glbModel-DmqybwQd.js → glbModel-CTElM35V.js} +4 -5
  124. package/dist/{glbModel-tdIKJFIa.cjs → glbModel-D-KSRwEq.cjs} +3 -3
  125. package/dist/{globalObjectSelector-DzJ-z2yK.cjs → globalObjectSelector-DAYeYQOD.cjs} +1 -1
  126. package/dist/{globalObjectSelector-Cvjp79SW.js → globalObjectSelector-DSKZoTPT.js} +1 -1
  127. package/dist/{gnssFilterBar-Dc8BZ0uH.js → gnssFilterBar-C5OM6NTc.js} +4 -5
  128. package/dist/{gnssFilterBar-CyOIWzGv.cjs → gnssFilterBar-W5_4qvYI.cjs} +1 -1
  129. package/dist/gnssHistoryTable-3X6UK8xC.js +375 -0
  130. package/dist/gnssHistoryTable-DDPYPbRi.cjs +3 -0
  131. package/dist/{gnssMapView-D6bigBZM.cjs → gnssMapView-DUIBjZSN.cjs} +2 -2
  132. package/dist/{gnssMapView-Clwd_69P.js → gnssMapView-gYj8VLGv.js} +171 -172
  133. package/dist/{gnssSectionProfile-C5oEg8lT.cjs → gnssSectionProfile-D3E9QnDe.cjs} +1 -1
  134. package/dist/{gnssSectionProfile-DBkwU6Hd.js → gnssSectionProfile-DvAMVU6m.js} +4 -5
  135. package/dist/gnssTimeSeriesChart-0EGQfxRI.cjs +1 -0
  136. package/dist/{gnssTimeSeriesChart-Dgap-iBw.js → gnssTimeSeriesChart-BgqB0yH0.js} +8 -8
  137. package/dist/{gnssXYTrajectory-BMb3Qw6x.js → gnssXYTrajectory-BRSg8Cr9.js} +38 -38
  138. package/dist/gnssXYTrajectory-Cl4zEzAg.cjs +5 -0
  139. package/dist/grd-CJu01KbD.cjs +1 -0
  140. package/dist/{grd-DieudgOZ.js → grd-CfLJ25Nc.js} +14 -16
  141. package/dist/grdIndass-B8WuJock.cjs +1 -0
  142. package/dist/{grdIndass-BEYvmd5Y.js → grdIndass-Ci9fAtAC.js} +12 -14
  143. package/dist/{grg-Bq8cqJys.js → grg-CVXsnqNH.js} +18 -19
  144. package/dist/grg-r8gj8uNF.cjs +1 -0
  145. package/dist/{gridview-CF7zC8FY.cjs → gridview-Cbm04dQa.cjs} +1 -1
  146. package/dist/{gridview-D236TDFv.js → gridview-LdudyQJt.js} +4 -5
  147. package/dist/{groundwaterFilterBar-DjOIl3l5.js → groundwaterFilterBar-BL_-2a_o.js} +4 -5
  148. package/dist/{groundwaterFilterBar-tshjibQh.cjs → groundwaterFilterBar-C5OLWfFD.cjs} +1 -1
  149. package/dist/{groundwaterProfileChart-DAQO2UFZ.cjs → groundwaterProfileChart-CTIhz8ie.cjs} +2 -2
  150. package/dist/{groundwaterProfileChart-Dtr1z82i.js → groundwaterProfileChart-DW9X26lr.js} +3 -3
  151. package/dist/{groundwaterTimeCurve-DPFn4uUj.js → groundwaterTimeCurve-B3y-RfB-.js} +3 -3
  152. package/dist/{groundwaterTimeCurve-Bs2lmAnk.cjs → groundwaterTimeCurve-CD8E2Odm.cjs} +1 -1
  153. package/dist/{groupCard-BFyXI1MK.js → groupCard-BDCszLs8.js} +4 -5
  154. package/dist/{groupCard-Dgmwk1JH.cjs → groupCard-PibkXDFd.cjs} +1 -1
  155. package/dist/{headerBar-BcRvIdPe.js → headerBar-7hdzFCcE.js} +5 -7
  156. package/dist/headerBar-DM2RDjgi.cjs +1 -0
  157. package/dist/history-C_JSpBhQ.js +466 -0
  158. package/dist/history-begujJkl.cjs +1 -0
  159. package/dist/{index-LaRCo47G.js → index-DGhC_Afv.js} +5976 -2717
  160. package/dist/index-Ds0OaO-O.cjs +600 -0
  161. package/dist/{insarDeformChart-Co407aH5.js → insarDeformChart-BIbVf1vT.js} +24 -25
  162. package/dist/{insarDeformChart-is7IrzCn.cjs → insarDeformChart-KqikOcGO.cjs} +1 -1
  163. package/dist/{insarImageViewer-D33-oShs.cjs → insarImageViewer-DZACMTFO.cjs} +1 -1
  164. package/dist/{insarImageViewer-BI-oxCY1.js → insarImageViewer-TRJ3QE9c.js} +4 -5
  165. package/dist/{kds-9BnEtu_6.js → kds-BBKczQpu.js} +6 -7
  166. package/dist/kds-BKvyifs9.cjs +3 -0
  167. package/dist/{layerTabs-CBFEeWJj.cjs → layerTabs-ChOk0m3w.cjs} +1 -1
  168. package/dist/{layerTabs-DbBbbyeG.js → layerTabs-pbjWyJnj.js} +2 -2
  169. package/dist/{leaflet-src-C_KgTvWC.cjs → leaflet-src-C64S6eqB.cjs} +1 -1
  170. package/dist/{leaflet-src-rmSpLSAV.js → leaflet-src-oEQlzg9l.js} +1 -1
  171. package/dist/{lerc-Gg09YZfb.js → lerc-RjFlZ2vA.js} +2 -2
  172. package/dist/{lerc-Dzbe7WC_.cjs → lerc-nobYmg0M.cjs} +1 -1
  173. package/dist/{lin-C-QRBeD9.cjs → lin-RnkLFDwx.cjs} +1 -1
  174. package/dist/{lin-YT8XYvrY.js → lin-dpJr-g9F.js} +4 -4
  175. package/dist/{linIndass-DxzInyFa.js → linIndass-9kc5MABx.js} +20 -21
  176. package/dist/linIndass-CjVS4TO8.cjs +2 -0
  177. package/dist/{lst-BsTnL-72.cjs → lst-BRRIWSG2.cjs} +1 -1
  178. package/dist/{lst-CQD0Yeqh.js → lst-BsDclJND.js} +4 -5
  179. package/dist/{manualEntry-D0L5spRO.js → manualEntry-Cam-CxlW.js} +4 -5
  180. package/dist/{manualEntry-CkrGHssb.cjs → manualEntry-DvaLKZYc.cjs} +1 -1
  181. package/dist/{mapBackground-OXkd9YEQ.js → mapBackground-DPwRZs1T.js} +5 -6
  182. package/dist/{mapBackground-kmkn3W4u.cjs → mapBackground-DbcoVtS6.cjs} +3 -3
  183. package/dist/{mappingList-DxnTa9kq.js → mappingList-BMdtbkXv.js} +4 -6
  184. package/dist/mappingList-lWWQiLmf.cjs +1 -0
  185. package/dist/markdownViewer-BLiRHtIp.cjs +3 -0
  186. package/dist/{markdownViewer-BIs5lB1e.js → markdownViewer-DkzTfqu-.js} +19 -23
  187. package/dist/{mix-control-modal-e5zJaCrM.js → mix-control-modal-BVEy1eeS.js} +5 -5
  188. package/dist/mix-control-modal-DdOCM5BB.cjs +1 -0
  189. package/dist/{mixGrid-Yrttfpsn.js → mixGrid-CVrAyUTI.js} +24 -26
  190. package/dist/mixGrid-DMsmytpm.cjs +1 -0
  191. package/dist/mixMap-CwknfnaQ.cjs +1 -0
  192. package/dist/{mixMap-BIc2ZmeH.js → mixMap-DhXVe69w.js} +4 -6
  193. package/dist/{mixModel-BzHT-MG0.js → mixModel-B7MQfjdx.js} +21 -23
  194. package/dist/mixModel-BDZ3EoVa.cjs +3 -0
  195. package/dist/mixPie-BWXreEEu.cjs +2 -0
  196. package/dist/{mixPie-BFjoC4AJ.js → mixPie-DdGtFFOT.js} +23 -25
  197. package/dist/mixdashboards.cjs +1 -1
  198. package/dist/mixdashboards.css +1 -1
  199. package/dist/mixdashboards.js +4 -4
  200. package/dist/{mjpegCamera-DNW4lMQI.cjs → mjpegCamera-DI8_kBe3.cjs} +1 -1
  201. package/dist/{mjpegCamera-BozO0soJ.js → mjpegCamera-DbbJRSku.js} +4 -5
  202. package/dist/{monitorAlert-CQN4Y7uL.cjs → monitorAlert-B6Qv6DR2.cjs} +1 -1
  203. package/dist/{monitorAlert-CTK7bxNy.js → monitorAlert-CTkZSGUc.js} +7 -8
  204. package/dist/{monitorData-DyqeqCK_.js → monitorData-CF4diPUo.js} +8 -8
  205. package/dist/monitorData-DsnrNdj9.cjs +1 -0
  206. package/dist/{monitorSpeedChart-CKX3-EI2.cjs → monitorSpeedChart-AfGoObXA.cjs} +1 -1
  207. package/dist/{monitorSpeedChart-BGwCtr-d.js → monitorSpeedChart-DiPvPUo1.js} +1 -1
  208. package/dist/{mxa-gjB07_xd.js → mxa-C8O2vS-4.js} +4 -4
  209. package/dist/mxa-Dz6HovXT.cjs +2 -0
  210. package/dist/myValue-C3AFaNDE.cjs +1 -0
  211. package/dist/{myValue-BR4hwge5.js → myValue-Dnx2kGFt.js} +39 -41
  212. package/dist/{myValueList-ZJFMGHnU.js → myValueList-Cbjpg32m.js} +4 -5
  213. package/dist/myValueList-D0Kcoi-J.cjs +1 -0
  214. package/dist/objectList-DJ0aUoqc.cjs +1 -0
  215. package/dist/{objectList-BIZfQ5n0.js → objectList-KLihT_Zq.js} +555 -545
  216. package/dist/{photo-v454a5q6.js → photo-CC0oSFTL.js} +265 -260
  217. package/dist/photo-Dj3kpXwk.cjs +1 -0
  218. package/dist/{pie-DzkeJdcg.cjs → pie-B3y8Q3Vc.cjs} +1 -1
  219. package/dist/{pie-BQmhXiLZ.js → pie-y1T60GqR.js} +12 -12
  220. package/dist/{pressBtn-CLIwOrWo.js → pressBtn-CC_nnw5L.js} +39 -41
  221. package/dist/pressBtn-t3nhOIeR.cjs +1 -0
  222. package/dist/{progressBar-CGJD2MUi.cjs → progressBar-CHmK66iD.cjs} +1 -1
  223. package/dist/{progressBar-CftcbaeT.js → progressBar-CMPCknH_.js} +4 -5
  224. package/dist/{progressCircle-D5rtSjb3.cjs → progressCircle-CMg_mVKm.cjs} +1 -1
  225. package/dist/{progressCircle-q-enNZL-.js → progressCircle-GnqAeHBZ.js} +12 -13
  226. package/dist/{qrcode-D9TmiuZT.cjs → qrcode-B7w-010c.cjs} +1 -1
  227. package/dist/{qrcode-DWhrbiy0.js → qrcode-mEwqUnK6.js} +4 -5
  228. package/dist/raceBar-D5fTxtoV.cjs +4 -0
  229. package/dist/{raceBar-CxdCluQ4.js → raceBar-hVcfhGyJ.js} +4 -4
  230. package/dist/{rad-DZjCbXyD.js → rad-C-Ef_5GP.js} +2 -2
  231. package/dist/{rad-D0LeWDKc.cjs → rad-DcWonT_3.cjs} +1 -1
  232. package/dist/{radarMapViewer-BhIqtRPM.cjs → radarMapViewer-C-CNAlYF.cjs} +1 -1
  233. package/dist/{radarMapViewer-CIc4Dbkg.js → radarMapViewer-CF47cPX-.js} +4 -5
  234. package/dist/{rainfallFilterBar-BNUBetcH.cjs → rainfallFilterBar-CD1zA_ix.cjs} +1 -1
  235. package/dist/{rainfallFilterBar-CwmDDzGf.js → rainfallFilterBar-gJKV6YCB.js} +4 -5
  236. package/dist/{rainfallTimeCurve-Cihvd7sp.cjs → rainfallTimeCurve-CuaYNfzS.cjs} +1 -1
  237. package/dist/{rainfallTimeCurve-DDy1EB2i.js → rainfallTimeCurve-Djv1wHRB.js} +3 -3
  238. package/dist/rangeLin-B2SmKgq2.cjs +3 -0
  239. package/dist/{rangeLin-BS4QGj8O.js → rangeLin-BZAsyEsc.js} +36 -37
  240. package/dist/{realtimeEvolutionMap-JwfQ-kge.js → realtimeEvolutionMap-CdELJIHe.js} +2 -2
  241. package/dist/{realtimeEvolutionMap-Dz1h1S5Q.cjs → realtimeEvolutionMap-M0qgOP7b.cjs} +1 -1
  242. package/dist/request-8TjYQaPc.js +120 -0
  243. package/dist/request-ZobLcovD.cjs +1 -0
  244. package/dist/{retainer1-BG8FVFrt.js → retainer1-DpFXHdgn.js} +5 -6
  245. package/dist/{retainer1-EXZIwIPk.cjs → retainer1-DzY4frh8.cjs} +1 -1
  246. package/dist/{retainer2-BF4vADrH.js → retainer2-BKXYOjsN.js} +5 -6
  247. package/dist/{retainer2-DG-i1LDs.cjs → retainer2-CSRgwBjk.cjs} +1 -1
  248. package/dist/{riskRegionTable-Dcm0HpRG.js → riskRegionTable-6UlBZPV8.js} +4 -5
  249. package/dist/{riskRegionTable-B25jGMKZ.cjs → riskRegionTable-DEyTesih.cjs} +1 -1
  250. package/dist/sankey-BAdvFOOc.cjs +1 -0
  251. package/dist/{sankey-BlnopdFa.js → sankey-CYjpajW5.js} +3 -3
  252. package/dist/{scd-BUA5F3Bv.js → scd-CdsRnKoc.js} +4 -5
  253. package/dist/{scd-F1TXRQKC.cjs → scd-Dzp2LMyf.cjs} +1 -1
  254. package/dist/{sideMenu-Bn2o3s_t.cjs → sideMenu-BmJjXIk4.cjs} +1 -1
  255. package/dist/{sideMenu-DHcDS6gf.js → sideMenu-DzGxDbWY.js} +4 -5
  256. package/dist/{slopeStability-CuS2ffaj.js → slopeStability-CPV_grM2.js} +3 -3
  257. package/dist/slopeStability-dewHhWP-.cjs +1 -0
  258. package/dist/speedCurve-CRkFB2GR.cjs +1 -0
  259. package/dist/{speedCurve-CIB2vuMP.js → speedCurve-CUwtA1Sj.js} +133 -127
  260. package/dist/staticLine-BBV3SXsb.cjs +1 -0
  261. package/dist/{staticLine-RRTzer-Y.js → staticLine-C0Eb3FfH.js} +60 -62
  262. package/dist/{stressFilterBar-CZRKms7n.js → stressFilterBar-AX4-DQ49.js} +4 -5
  263. package/dist/{stressFilterBar-Dub7i2Tc.cjs → stressFilterBar-YvD5GFBS.cjs} +1 -1
  264. package/dist/{stressTimeCurve-C3HojV8F.cjs → stressTimeCurve-DQOrEmnd.cjs} +1 -1
  265. package/dist/{stressTimeCurve-DzgRPrOo.js → stressTimeCurve-DsiflJlv.js} +3 -3
  266. package/dist/{swiper-DG9DAiV0.js → swiper-BhSGhvsY.js} +22 -24
  267. package/dist/swiper-WWdh6DjI.cjs +1 -0
  268. package/dist/{terminalConfigList-B7ANY23S.js → terminalConfigList-DIHDqQuk.js} +4 -6
  269. package/dist/terminalConfigList-MyHxBCNw.cjs +1 -0
  270. package/dist/{terminalList-BmmN4m3j.js → terminalList-D734G73H.js} +4 -6
  271. package/dist/terminalList-DHqpv9Q1.cjs +1 -0
  272. package/dist/{textbox-57Y2eVv7.js → textbox-CxYZJhS0.js} +46 -49
  273. package/dist/textbox-OKmX2j1n.cjs +1 -0
  274. package/dist/{timeQueryBar-C5m4OPkT.js → timeQueryBar-BGtMNtUh.js} +4 -4
  275. package/dist/{timeQueryBar-D77M1K3i.cjs → timeQueryBar-KFAuZ3VY.cjs} +1 -1
  276. package/dist/{timeSeries-DX9d7ZlF.js → timeSeries-BUagIxOU.js} +51 -51
  277. package/dist/timeSeries-BWLxPbAR.cjs +4 -0
  278. package/dist/{timeSeriesCurve-QuOE717g.js → timeSeriesCurve-Bz_fpcyd.js} +3 -3
  279. package/dist/{timeSeriesCurve-Cn8cWqoP.cjs → timeSeriesCurve-DJs5qtgb.cjs} +1 -1
  280. package/dist/{toggleBtn-CqFMVrRN.js → toggleBtn-CBAEfkHD.js} +3 -3
  281. package/dist/{toggleBtn-DyJTsVGj.cjs → toggleBtn-xEJz7aPM.cjs} +1 -1
  282. package/dist/{trajectoryConfigPanel-B24dt6MN.js → trajectoryConfigPanel-C_dMtiCU.js} +1 -1
  283. package/dist/{trajectoryConfigPanel-BrEHGlbX.cjs → trajectoryConfigPanel-ugGWH9ED.cjs} +1 -1
  284. package/dist/trajectoryScatter-D6QhslSA.cjs +1 -0
  285. package/dist/{trajectoryScatter-B2k9Ad3L.js → trajectoryScatter-DaqGUamy.js} +4 -4
  286. package/dist/{universalConfigPanel-BBbc-1-u.cjs → universalConfigPanel-J2Q5lL5-.cjs} +1 -1
  287. package/dist/{universalConfigPanel-BEfEjBHo.js → universalConfigPanel-j0lkW5mE.js} +1 -1
  288. package/dist/{universalTable-xp1kTbFS.js → universalTable--AIL6r1P.js} +2 -2
  289. package/dist/{universalTable-DnMO2tM_.cjs → universalTable-D2EHABMh.cjs} +1 -1
  290. package/dist/utils-BMlSy2G6.js +1197 -0
  291. package/dist/utils-DKji-TsS.cjs +1 -0
  292. package/dist/{video-DL9HSrZC.cjs → video-CNtqVUzG.cjs} +16 -16
  293. package/dist/{video-DiZcuRjw.js → video-kqDpzItI.js} +7 -11
  294. package/dist/{videoMonitor-C0eTtw1Z.cjs → videoMonitor-9Xc-w3tg.cjs} +1 -1
  295. package/dist/{videoMonitor-w3AKRAZg.js → videoMonitor-CTfyqL-a.js} +18 -19
  296. package/dist/{vlu-BfKbcCHL.js → vlu-BvAiYFsZ.js} +4 -5
  297. package/dist/{vlu-Cv-J90_y.cjs → vlu-CGYKtHDJ.cjs} +1 -1
  298. package/dist/weather-BLrrXyJ2.cjs +1 -0
  299. package/dist/{weather-eLT-iPND.js → weather-CYJQa47a.js} +17 -19
  300. package/dist/{windLin-jWF-o2rk.js → windLin-DGqwVgbc.js} +8 -9
  301. package/dist/windLin-ifX_gyRh.cjs +1 -0
  302. package/package.json +120 -118
  303. package/dist/BaseComponent-B7wPQZV9.js +0 -703
  304. package/dist/BaseComponent-DhHavntG.cjs +0 -1
  305. package/dist/EChartComponentBase-y-56bxn_.cjs +0 -1
  306. package/dist/actionItem-DrlOEHrK.cjs +0 -1
  307. package/dist/api-CBPVZsPi.cjs +0 -1
  308. package/dist/api-DjuMtD1L.js +0 -164
  309. package/dist/aqi-CgEPAELS.cjs +0 -3
  310. package/dist/aqiIndass-lgjfOgCb.cjs +0 -3
  311. package/dist/audio-DKOI3Vpt.cjs +0 -1
  312. package/dist/bar-DfTh0w-P.cjs +0 -2
  313. package/dist/bmp-BbKNItcS.cjs +0 -1
  314. package/dist/clt-DI58g2ZN.cjs +0 -1
  315. package/dist/cmc-BQu0tEoa.cjs +0 -1
  316. package/dist/cmp-DPP-5fOq.cjs +0 -6
  317. package/dist/common-C2M2nTMe.js +0 -51
  318. package/dist/common-CRX05V1u.cjs +0 -1
  319. package/dist/composite-Cg6FmHgp.cjs +0 -3
  320. package/dist/config-BrMFHyZe.js +0 -9
  321. package/dist/config-DbZfhrwE.cjs +0 -1
  322. package/dist/controlList-DeTaQKoo.cjs +0 -1
  323. package/dist/controlRecordList-zJ4cNf-b.cjs +0 -1
  324. package/dist/ctrBtn-Ci9EaFXA.cjs +0 -1
  325. package/dist/ctrSet-DxezI4JJ.cjs +0 -1
  326. package/dist/ctrSwitch-Dqkvg7Oh.cjs +0 -1
  327. package/dist/deepClusterSlipSurface-DrUjQPhc.cjs +0 -1
  328. package/dist/deepDisplacementChart-BXgu1XBy.cjs +0 -6
  329. package/dist/deepNodeTemperatureChart-D1LLvDPB.cjs +0 -1
  330. package/dist/deepTangentAngleChart-DXJYDZmg.cjs +0 -1
  331. package/dist/deepTemperatureField-BEOhk_FX.cjs +0 -1
  332. package/dist/deepTrendChart-BoztYASZ.cjs +0 -1
  333. package/dist/displacementTrajectoryChart-wRHQ7FUG.cjs +0 -22
  334. package/dist/dxf-Ci4Xmeyl.cjs +0 -1
  335. package/dist/dzc-DC9Aj60I.cjs +0 -2
  336. package/dist/element-resize-detector-CNNVPUiP.cjs +0 -6
  337. package/dist/element-resize-detector-_sDR6e5I.js +0 -808
  338. package/dist/fileViewer-tG4TL8P-.cjs +0 -1
  339. package/dist/fireHistoryTable-B8jid9kx.cjs +0 -3
  340. package/dist/gasStationList-DQ5E1VCC.cjs +0 -1
  341. package/dist/geo3dViewer-CUHjCV6O.js +0 -3738
  342. package/dist/geo3dViewer-DDy5NyyJ.cjs +0 -1
  343. package/dist/gnssHistoryTable-BOo5hEe0.cjs +0 -3
  344. package/dist/gnssHistoryTable-_4m8ANzn.js +0 -379
  345. package/dist/gnssTimeSeriesChart-PLXduZ05.cjs +0 -1
  346. package/dist/gnssXYTrajectory-CuGMDHz_.cjs +0 -5
  347. package/dist/grd-ynF51-VX.cjs +0 -1
  348. package/dist/grdIndass-Ca_Dt2kg.cjs +0 -1
  349. package/dist/grg-FC_XN7_o.cjs +0 -1
  350. package/dist/headerBar-BNZVS4Av.cjs +0 -1
  351. package/dist/history-DBT1UIpm.cjs +0 -1
  352. package/dist/history-DyxvwmkC.js +0 -443
  353. package/dist/index-By4IGBQZ.cjs +0 -591
  354. package/dist/kds-BIYebIeQ.cjs +0 -3
  355. package/dist/linIndass-BskQesvM.cjs +0 -2
  356. package/dist/mappingList-D_1Mrl_m.cjs +0 -1
  357. package/dist/markdownViewer-Brb4uS57.cjs +0 -3
  358. package/dist/mix-control-modal-B01a4IBM.cjs +0 -1
  359. package/dist/mixDataPermission-Bay9dtby.cjs +0 -1
  360. package/dist/mixDataPermission-Dpr7PqwV.js +0 -784
  361. package/dist/mixGrid-BUCDdjJo.cjs +0 -1
  362. package/dist/mixMap-Ch1pSTls.cjs +0 -1
  363. package/dist/mixModel-BEyIHO7k.cjs +0 -3
  364. package/dist/mixPie-CoB-QJ-k.cjs +0 -2
  365. package/dist/monitorData-CsoyBBI1.cjs +0 -1
  366. package/dist/mxa-OPM0Gmvj.cjs +0 -2
  367. package/dist/myValue-6y6UOv3o.cjs +0 -1
  368. package/dist/myValueList-pO-NMYxT.cjs +0 -1
  369. package/dist/objectList-Cr4NVsXT.cjs +0 -1
  370. package/dist/photo-dlVvii94.cjs +0 -1
  371. package/dist/pressBtn-CDLXJoxL.cjs +0 -1
  372. package/dist/raceBar-D4yQrlx8.cjs +0 -4
  373. package/dist/rangeLin-BDxvr-SX.cjs +0 -3
  374. package/dist/request-BxJasPXG.js +0 -75
  375. package/dist/request-CHmKi4NB.cjs +0 -1
  376. package/dist/sankey-C1pOm2Ah.cjs +0 -1
  377. package/dist/slopeStability-C88KKQJU.cjs +0 -1
  378. package/dist/speedCurve-C_Dpx675.cjs +0 -1
  379. package/dist/staticLine-C6YjX3jk.cjs +0 -1
  380. package/dist/store-CU2wm4LQ.cjs +0 -5
  381. package/dist/store-NrnyUk6l.js +0 -1910
  382. package/dist/swiper-BYGkPgOK.cjs +0 -1
  383. package/dist/terminalConfigList-gald-p0m.cjs +0 -1
  384. package/dist/terminalList-CJzRUDOI.cjs +0 -1
  385. package/dist/textbox-DJVF-4nb.cjs +0 -1
  386. package/dist/timeSeries-pcLk8-AB.cjs +0 -4
  387. package/dist/trajectoryScatter-i2rlD5zL.cjs +0 -1
  388. package/dist/vue-router-Dm2sWqKB.cjs +0 -1
  389. package/dist/vue-router-g_SMKWX4.js +0 -16
  390. package/dist/weather-Bo2Y00xW.cjs +0 -1
  391. package/dist/windLin-Bu2q3tL9.cjs +0 -1
@@ -1,6 +1,6 @@
1
1
  import { nextTick as i } from "vue";
2
- import { B as s, h as r, e as a } from "./BaseComponent-B7wPQZV9.js";
3
- import { e as h } from "./element-resize-detector-_sDR6e5I.js";
2
+ import { B as s, h as r, i as a } from "./utils-BMlSy2G6.js";
3
+ import { l as h } from "./index-DGhC_Afv.js";
4
4
  import { i as o, d as n } from "./echarts-BVht3HHb.js";
5
5
  class g extends s {
6
6
  constructor(t, e) {
@@ -0,0 +1 @@
1
+ "use strict";const r=require("vue"),i=require("./utils-DKji-TsS.cjs"),a=require("./index-Ds0OaO-O.cjs"),s=require("./echarts-BB8O2KSA.cjs");class h extends i.BaseComponent{constructor(t,e){super(t,e),this.chartObj=null,this.erd=null,this.echartId=`${e}_${Math.random().toString(16).slice(4,12)}`}getChartOption(){return{}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),r.nextTick(()=>this.initChart())}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",30),bottom:this.getOptionValue("bottom",40),left:this.getOptionValue("left",40),right:this.getOptionValue("right",20),points:this.getOptionValue("points",10)}}ensureData(){var t;(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=this.getDefaultData())}getDefaultData(){return[{name:"参数一",fv:"",color:"#4162ff"}]}initChart(){const t=document.querySelector(`#${this.echartId}`);if(!t)return;this.chartObj||(this.chartObj=s.init(t),this.setupResizeListener(t));const e=this.getChartOption();this.chartObj.setOption(e,!0)}setupResizeListener(t){this.erd=a.elementResizeDetectorMaker({strategy:"scroll"}),this.erd.listenTo(t,()=>{var e;(e=this.chartObj)==null||e.resize()})}hasData(){return i.hasDataSource(this.props.conf)}getTimeAxis(){return i.getxAxisDataTime(this.Style.value.points,this.props.mode,this.hasData())}updateChart(t){var e;(e=this.chartObj)==null||e.setOption(t)}cleanup(){if(this.erd){const t=document.querySelector(`#${this.echartId}`);t&&this.erd.uninstall(t),this.erd=null}this.chartObj&&(this.chartObj.clear(),s.dispose(this.chartObj),this.chartObj=null)}getEchartId(){return this.echartId}getChartInstance(){return this.chartObj}}exports.EChartComponentBase=h;
@@ -1 +1 @@
1
- "use strict";var R=Object.create;var C=Object.defineProperty,j=Object.defineProperties,Z=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyDescriptors,F=Object.getOwnPropertyNames,N=Object.getOwnPropertySymbols,P=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var U=(t,e,i)=>e in t?C(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,O=(t,e)=>{for(var i in e||(e={}))E.call(e,i)&&U(t,i,e[i]);if(N)for(var i of N(e))G.call(e,i)&&U(t,i,e[i]);return t},V=(t,e)=>j(t,$(e));var W=(t,e,i,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of F(e))!E.call(t,l)&&l!==i&&C(t,l,{get:()=>e[l],enumerable:!(a=Z(e,l))||a.enumerable});return t};var m=(t,e,i)=>(i=t!=null?R(P(t)):{},W(e||!t||!t.__esModule?C(i,"default",{value:t,enumerable:!0}):i,t));var w=(t,e,i)=>new Promise((a,l)=>{var c=n=>{try{v(i.next(n))}catch(r){l(r)}},u=n=>{try{v(i.throw(n))}catch(r){l(r)}},v=n=>n.done?a(n.value):Promise.resolve(n.value).then(c,u);v((i=i.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),J=require("./BaseComponent-DhHavntG.cjs"),K=require("./index-By4IGBQZ.cjs");require("./element-resize-detector-CNNVPUiP.cjs");const Q=require("./titleStyle-NSnz6cUg.cjs"),k=require("./ele-gridview-icon-D3GcssP6.cjs"),X={class:"mix-body"},Y={key:0,class:"univer-placeholder"},ee={class:"placeholder-tip"},te={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"Univer表格",NAME_EN:"Univer Sheet",ORDER:2},oe={bgColor:"#ffffff",titleColor:"#111",titleSize:14,radiusSize:8,isHideTitle:!1,showToolbar:!0,ribbonType:"simple",locale:"zh-CN"},ie={DEFAULT:te,OPTIONS:oe},le=o.defineComponent(V(O({},ie),{__name:"UniverSheet",props:{conf:{type:Object,default:()=>({name:"Univer表格"})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(t){const e=t,i=o.ref(null),a=o.ref(!1),l=o.ref("");let c=null,u=null;class v extends J.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#ffffff"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showToolbar:this.getOptionValue("showToolbar",!0),ribbonType:this.getOptionValue("ribbonType","simple"),locale:this.getOptionValue("locale","zh-CN")}}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const n=new v(e,"univerSheet");n.setupLifecycle();const r=n.getStyle(),z=o.computed(()=>Q.generateTitleStyle(e.conf.options)),B=o.computed(()=>{var s,p,f,h;return{background:(p=(s=r.value)==null?void 0:s.bgColor)!=null?p:"#ffffff",borderRadius:`${(h=(f=r.value)==null?void 0:f.radiusSize)!=null?h:8}px`}});function x(){return w(this,null,function*(){var p,f,h;const s=i.value;if(s)try{const d=`univer-sheet-${e.uid||Math.random().toString(36).slice(2,8)}`;s.id=d;const{createUniver:I,LocaleType:S,mergeLocales:T}=yield import("@univerjs/presets"),{UniverSheetsCorePreset:M}=yield import("@univerjs/preset-sheets-core"),A=yield import("@univerjs/preset-sheets-core/locales/zh-CN").then(b=>b.default).catch(()=>({})),q=yield import("@univerjs/preset-sheets-core/locales/en-US").then(b=>b.default).catch(()=>({}));yield import("@univerjs/preset-sheets-core/lib/index.css");const H=((p=r.value)==null?void 0:p.locale)==="zh-CN"?S.ZH_CN:S.EN_US,y=((f=r.value)==null?void 0:f.showToolbar)!==!1,_=((h=r.value)==null?void 0:h.ribbonType)||"simple",{univer:L,univerAPI:g}=I({locale:H,locales:{[S.EN_US]:T(q),[S.ZH_CN]:T(A)},presets:[M({container:d,header:y,toolbar:y,formulaBar:y,footer:!1,ribbonType:_==="collapsed"?"collapsed":_==="classic"?"classic":"simple"})]});g.createWorkbook({sheetOrder:["sheet1"],sheets:{sheet1:{id:"sheet1",name:"Sheet1",rowCount:50,columnCount:26,cellData:{0:{0:{v:"月份",t:1},1:{v:"收入",t:1},2:{v:"支出",t:1},3:{v:"利润",t:1}},1:{0:{v:"一月",t:1},1:{v:1e4,t:2},2:{v:6e3,t:2},3:{v:4e3,t:2}},2:{0:{v:"二月",t:1},1:{v:12e3,t:2},2:{v:7e3,t:2},3:{v:5e3,t:2}},3:{0:{v:"三月",t:1},1:{v:11e3,t:2},2:{v:6500,t:2},3:{v:4500,t:2}},4:{0:{v:"合计",t:1},1:{f:"=SUM(B2:B4)",t:2},2:{f:"=SUM(C2:C4)",t:2},3:{f:"=SUM(D2:D4)",t:2}}}}}}),c=L,u=g,a.value=!0}catch(d){console.error("[UniverSheet] init error:",d),l.value=(d==null?void 0:d.message)||"请安装 @univerjs/presets 与 @univerjs/preset-sheets-core"}})}function D(){try{c==null||c.dispose(),u==null||u.dispose()}catch(s){}c=null,u=null,a.value=!1}return o.onMounted(()=>{o.nextTick(()=>x())}),o.onBeforeUnmount(()=>{D()}),(s,p)=>(o.openBlock(),o.createElementBlock("div",{class:"mix-component univer-sheet-wrap",style:o.normalizeStyle(B.value)},[o.unref(r).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(z.value)},o.toDisplayString(t.conf.caption||t.conf.name||"Univer表格"),5)),o.createElementVNode("div",X,[a.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Y,[o.createElementVNode("span",ee,o.toDisplayString(l.value||"加载表格…"),1)])),o.createElementVNode("div",{ref_key:"containerRef",ref:i,class:"univer-container"},null,512)]),o.renderSlot(s.$slots,"default",{},void 0,!0)],4))}})),ne=K._export_sfc(le,[["__scopeId","data-v-fb33a4b0"]]);exports.default=ne;
1
+ "use strict";var q=Object.create;var C=Object.defineProperty,j=Object.defineProperties,Z=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyDescriptors,F=Object.getOwnPropertyNames,N=Object.getOwnPropertySymbols,P=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var U=(t,e,i)=>e in t?C(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,O=(t,e)=>{for(var i in e||(e={}))E.call(e,i)&&U(t,i,e[i]);if(N)for(var i of N(e))G.call(e,i)&&U(t,i,e[i]);return t},V=(t,e)=>j(t,$(e));var W=(t,e,i,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of F(e))!E.call(t,l)&&l!==i&&C(t,l,{get:()=>e[l],enumerable:!(a=Z(e,l))||a.enumerable});return t};var m=(t,e,i)=>(i=t!=null?q(P(t)):{},W(e||!t||!t.__esModule?C(i,"default",{value:t,enumerable:!0}):i,t));var w=(t,e,i)=>new Promise((a,l)=>{var c=n=>{try{v(i.next(n))}catch(r){l(r)}},u=n=>{try{v(i.throw(n))}catch(r){l(r)}},v=n=>n.done?a(n.value):Promise.resolve(n.value).then(c,u);v((i=i.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),J=require("./utils-DKji-TsS.cjs"),K=require("./index-Ds0OaO-O.cjs"),Q=require("./titleStyle-NSnz6cUg.cjs"),k=require("./ele-gridview-icon-D3GcssP6.cjs"),X={class:"mix-body"},Y={key:0,class:"univer-placeholder"},ee={class:"placeholder-tip"},te={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"Univer表格",NAME_EN:"Univer Sheet",ORDER:2},oe={bgColor:"#ffffff",titleColor:"#111",titleSize:14,radiusSize:8,isHideTitle:!1,showToolbar:!0,ribbonType:"simple",locale:"zh-CN"},ie={DEFAULT:te,OPTIONS:oe},le=o.defineComponent(V(O({},ie),{__name:"UniverSheet",props:{conf:{type:Object,default:()=>({name:"Univer表格"})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(t){const e=t,i=o.ref(null),a=o.ref(!1),l=o.ref("");let c=null,u=null;class v extends J.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#ffffff"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showToolbar:this.getOptionValue("showToolbar",!0),ribbonType:this.getOptionValue("ribbonType","simple"),locale:this.getOptionValue("locale","zh-CN")}}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const n=new v(e,"univerSheet");n.setupLifecycle();const r=n.getStyle(),z=o.computed(()=>Q.generateTitleStyle(e.conf.options)),B=o.computed(()=>{var s,p,f,h;return{background:(p=(s=r.value)==null?void 0:s.bgColor)!=null?p:"#ffffff",borderRadius:`${(h=(f=r.value)==null?void 0:f.radiusSize)!=null?h:8}px`}});function x(){return w(this,null,function*(){var p,f,h;const s=i.value;if(s)try{const d=`univer-sheet-${e.uid||Math.random().toString(36).slice(2,8)}`;s.id=d;const{createUniver:I,LocaleType:S,mergeLocales:T}=yield import("@univerjs/presets"),{UniverSheetsCorePreset:M}=yield import("@univerjs/preset-sheets-core"),A=yield import("@univerjs/preset-sheets-core/locales/zh-CN").then(b=>b.default).catch(()=>({})),H=yield import("@univerjs/preset-sheets-core/locales/en-US").then(b=>b.default).catch(()=>({}));yield import("@univerjs/preset-sheets-core/lib/index.css");const L=((p=r.value)==null?void 0:p.locale)==="zh-CN"?S.ZH_CN:S.EN_US,y=((f=r.value)==null?void 0:f.showToolbar)!==!1,_=((h=r.value)==null?void 0:h.ribbonType)||"simple",{univer:R,univerAPI:g}=I({locale:L,locales:{[S.EN_US]:T(H),[S.ZH_CN]:T(A)},presets:[M({container:d,header:y,toolbar:y,formulaBar:y,footer:!1,ribbonType:_==="collapsed"?"collapsed":_==="classic"?"classic":"simple"})]});g.createWorkbook({sheetOrder:["sheet1"],sheets:{sheet1:{id:"sheet1",name:"Sheet1",rowCount:50,columnCount:26,cellData:{0:{0:{v:"月份",t:1},1:{v:"收入",t:1},2:{v:"支出",t:1},3:{v:"利润",t:1}},1:{0:{v:"一月",t:1},1:{v:1e4,t:2},2:{v:6e3,t:2},3:{v:4e3,t:2}},2:{0:{v:"二月",t:1},1:{v:12e3,t:2},2:{v:7e3,t:2},3:{v:5e3,t:2}},3:{0:{v:"三月",t:1},1:{v:11e3,t:2},2:{v:6500,t:2},3:{v:4500,t:2}},4:{0:{v:"合计",t:1},1:{f:"=SUM(B2:B4)",t:2},2:{f:"=SUM(C2:C4)",t:2},3:{f:"=SUM(D2:D4)",t:2}}}}}}),c=R,u=g,a.value=!0}catch(d){console.error("[UniverSheet] init error:",d),l.value=(d==null?void 0:d.message)||"请安装 @univerjs/presets 与 @univerjs/preset-sheets-core"}})}function D(){try{c==null||c.dispose(),u==null||u.dispose()}catch(s){}c=null,u=null,a.value=!1}return o.onMounted(()=>{o.nextTick(()=>x())}),o.onBeforeUnmount(()=>{D()}),(s,p)=>(o.openBlock(),o.createElementBlock("div",{class:"mix-component univer-sheet-wrap",style:o.normalizeStyle(B.value)},[o.unref(r).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(z.value)},o.toDisplayString(t.conf.caption||t.conf.name||"Univer表格"),5)),o.createElementVNode("div",X,[a.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Y,[o.createElementVNode("span",ee,o.toDisplayString(l.value||"加载表格…"),1)])),o.createElementVNode("div",{ref_key:"containerRef",ref:i,class:"univer-container"},null,512)]),o.renderSlot(s.$slots,"default",{},void 0,!0)],4))}})),ne=K._export_sfc(le,[["__scopeId","data-v-fb33a4b0"]]);exports.default=ne;
@@ -27,9 +27,8 @@ var E = (o, e, t) => new Promise((u, p) => {
27
27
  f((t = t.apply(o, e)).next());
28
28
  });
29
29
  import { defineComponent as J, ref as y, computed as V, onMounted as K, nextTick as Q, onBeforeUnmount as X, openBlock as b, createElementBlock as C, normalizeStyle as x, unref as Y, toDisplayString as k, createCommentVNode as B, createElementVNode as _, renderSlot as ee } from "vue";
30
- import { B as te } from "./BaseComponent-B7wPQZV9.js";
31
- import { _ as oe } from "./index-LaRCo47G.js";
32
- import "./element-resize-detector-_sDR6e5I.js";
30
+ import { B as te } from "./utils-BMlSy2G6.js";
31
+ import { _ as oe } from "./index-DGhC_Afv.js";
33
32
  import { g as ie } from "./titleStyle-BT5GlpAb.js";
34
33
  import { A as le, D as se } from "./ele-gridview-icon-cSd1oIDi.js";
35
34
  const ne = { class: "mix-body" }, re = {
@@ -175,7 +174,7 @@ const ne = { class: "mix-body" }, re = {
175
174
  ee(s.$slots, "default", {}, void 0, !0)
176
175
  ], 4));
177
176
  }
178
- })), _e = /* @__PURE__ */ oe(fe, [["__scopeId", "data-v-fb33a4b0"]]);
177
+ })), Ce = /* @__PURE__ */ oe(fe, [["__scopeId", "data-v-fb33a4b0"]]);
179
178
  export {
180
- _e as default
179
+ Ce as default
181
180
  };
@@ -18,15 +18,15 @@ import "element-plus/es/components/radio-group/style/css";
18
18
  import "element-plus/es/components/radio-button/style/css";
19
19
  import "element-plus/es/components/select/style/css";
20
20
  import "element-plus/es/components/option/style/css";
21
- import { defineComponent as ue, useCssVars as me, unref as A, ref as M, computed as k, watch as Y, onMounted as de, nextTick as $, openBlock as g, createElementBlock as F, createElementVNode as m, createVNode as x, withCtx as b, Fragment as L, renderList as O, createBlock as G, createTextVNode as E, toDisplayString as T, normalizeStyle as W, renderSlot as fe } from "vue";
21
+ import { defineComponent as ue, useCssVars as me, unref as k, ref as M, computed as A, watch as Y, onMounted as de, nextTick as $, openBlock as g, createElementBlock as F, createElementVNode as m, createVNode as x, withCtx as b, Fragment as L, renderList as O, createBlock as G, createTextVNode as E, toDisplayString as T, normalizeStyle as W, renderSlot as fe } from "vue";
22
22
  import "html2canvas";
23
- import { e as he, f as ve, i as ye } from "./BaseComponent-B7wPQZV9.js";
24
- import { d as z, _ as pe } from "./index-LaRCo47G.js";
25
- import { E as xe } from "./EChartComponentBase-BRBRhzrb.js";
23
+ import { i as he, j as ve, k as ye } from "./utils-BMlSy2G6.js";
24
+ import { i as j, _ as pe } from "./index-DGhC_Afv.js";
25
+ import { E as xe } from "./EChartComponentBase-CzT2liuU.js";
26
26
  import "./index-ButoLLAe.js";
27
27
  import { A as be, D as _e } from "./ele-lin-icon-Dax-ZiWV.js";
28
28
  import { i as De } from "./echarts-BVht3HHb.js";
29
- const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, Se = { class: "toolbar-left" }, Me = { class: "toolbar-center" }, Ye = { class: "toolbar-right" }, Fe = { class: "chart-header" }, Ee = { class: "chart-title" }, Ae = { class: "chart-legend" }, ke = { class: "legend-text" }, we = { class: "y-axis-unit" }, He = { class: "chart-body" }, Ve = ["id"], Le = {
29
+ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, Se = { class: "toolbar-left" }, Me = { class: "toolbar-center" }, Ye = { class: "toolbar-right" }, Fe = { class: "chart-header" }, Ee = { class: "chart-title" }, ke = { class: "chart-legend" }, Ae = { class: "legend-text" }, we = { class: "y-axis-unit" }, He = { class: "chart-body" }, Ve = ["id"], Le = {
30
30
  DEFAULT_ICON: _e,
31
31
  ACTIVE_ICON: be,
32
32
  NAME_CN: "加速度监测",
@@ -86,7 +86,7 @@ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, S
86
86
  { name: "xyh加速度", fv: "acc_xyh", color: "#1E90FF" }
87
87
  ]
88
88
  }
89
- ], ze = ["name", "area", "object_id", "curves"], je = ["name", "fv", "color"], Be = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], Re = { useAlias: !1, multiObject: !0, source: "mosaic" }, Ne = { DEFAULT: Le, OPTIONS: Oe, DATA: Te, PARAMS: ze, SOURCE: Be, COMMON: Re, CURVE_PARAMS: je }, Ie = /* @__PURE__ */ ue(U(P({}, Ne), {
89
+ ], je = ["name", "area", "object_id", "curves"], ze = ["name", "fv", "color"], Be = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], Re = { useAlias: !1, multiObject: !0, source: "mosaic" }, Ne = { DEFAULT: Le, OPTIONS: Oe, DATA: Te, PARAMS: je, SOURCE: Be, COMMON: Re, CURVE_PARAMS: ze }, Ie = /* @__PURE__ */ ue(U(P({}, Ne), {
90
90
  __name: "accelerationChart",
91
91
  props: {
92
92
  conf: { type: Object, default: () => ({ data: [] }) },
@@ -96,24 +96,24 @@ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, S
96
96
  },
97
97
  setup(y) {
98
98
  me((a) => ({
99
- v3cfd941c: A(V).bgColor,
100
- ea31b698: A(V).textColor
99
+ v3cfd941c: k(V).bgColor,
100
+ ea31b698: k(V).textColor
101
101
  }));
102
- const s = y, c = M(""), j = k(() => {
102
+ const s = y, c = M(""), z = A(() => {
103
103
  var o, n, u, d;
104
104
  const a = ((o = s.conf) == null ? void 0 : o.data) || [], e = /* @__PURE__ */ new Set();
105
105
  return a.forEach((r) => {
106
106
  r.area && e.add(r.area);
107
107
  }), e.size === 0 ? (((d = (u = (n = s.conf) == null ? void 0 : n.options) == null ? void 0 : u.areaList) == null ? void 0 : d.value) || "内排,外排,边坡,平台").split(",").map((l) => l.trim()).filter((l) => l) : Array.from(e);
108
108
  });
109
- Y(j, (a) => {
109
+ Y(z, (a) => {
110
110
  a.length > 0 && !c.value && (c.value = a[0]);
111
111
  }, { immediate: !0 });
112
112
  const Q = () => {
113
113
  console.log("区域切换:", c.value);
114
114
  const a = w.value;
115
115
  a.length > 0 ? v.value = a[0].value : v.value = "", H();
116
- }, v = M(""), w = k(() => {
116
+ }, v = M(""), w = A(() => {
117
117
  var o;
118
118
  return (((o = s.conf) == null ? void 0 : o.data) || []).filter((n) => n.area ? n.area === c.value : !0).map((n) => ({
119
119
  label: n.name,
@@ -123,15 +123,15 @@ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, S
123
123
  Y(w, (a) => {
124
124
  a.length > 0 && !v.value && (v.value = a[0].value);
125
125
  }, { immediate: !0 });
126
- const X = k(() => {
126
+ const X = A(() => {
127
127
  var e;
128
128
  const a = ((e = s.conf) == null ? void 0 : e.data) || [];
129
129
  return a.find((o) => o.name === v.value) || a[0] || null;
130
- }), C = k(() => {
130
+ }), C = A(() => {
131
131
  const a = X.value;
132
132
  return a ? a.curves || [] : [];
133
- }), B = M("7days"), _ = M(z().subtract(7, "day").format("YYYY-MM-DD HH:mm:ss")), D = M(z().format("YYYY-MM-DD HH:mm:ss")), Z = (a) => {
134
- const e = z();
133
+ }), B = M("7days"), _ = M(j().subtract(7, "day").format("YYYY-MM-DD HH:mm:ss")), D = M(j().format("YYYY-MM-DD HH:mm:ss")), Z = (a) => {
134
+ const e = j();
135
135
  switch (a) {
136
136
  case "today":
137
137
  _.value = e.startOf("day").format("YYYY-MM-DD HH:mm:ss"), D.value = e.format("YYYY-MM-DD HH:mm:ss");
@@ -443,7 +443,7 @@ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, S
443
443
  onChange: Q
444
444
  }, {
445
445
  default: b(() => [
446
- (g(!0), F(L, null, O(j.value, (t) => (g(), G(o, {
446
+ (g(!0), F(L, null, O(z.value, (t) => (g(), G(o, {
447
447
  key: t,
448
448
  label: t,
449
449
  value: t
@@ -542,7 +542,7 @@ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, S
542
542
  ]),
543
543
  m("div", Fe, [
544
544
  m("div", Ee, T(v.value), 1),
545
- m("div", Ae, [
545
+ m("div", ke, [
546
546
  (g(!0), F(L, null, O(C.value, (t) => (g(), F("div", {
547
547
  key: t.name,
548
548
  class: "legend-item"
@@ -556,14 +556,14 @@ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, S
556
556
  style: W({ borderColor: t.color })
557
557
  }, null, 4)
558
558
  ], 4),
559
- m("span", ke, T(t.name), 1)
559
+ m("span", Ae, T(t.name), 1)
560
560
  ]))), 128))
561
561
  ])
562
562
  ]),
563
- m("div", we, T(A(V).unit), 1),
563
+ m("div", we, T(k(V).unit), 1),
564
564
  m("div", He, [
565
565
  m("div", {
566
- id: A(R),
566
+ id: k(R),
567
567
  class: "chart-container"
568
568
  }, null, 8, Ve)
569
569
  ]),
@@ -1,6 +1,6 @@
1
- "use strict";var q=Object.defineProperty,I=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var w=(y,s,i)=>s in y?q(y,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):y[s]=i,A=(y,s)=>{for(var i in s||(s={}))P.call(s,i)&&w(y,i,s[i]);if(k)for(var i of k(s))U.call(s,i)&&w(y,i,s[i]);return y},T=(y,s)=>I(y,R(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/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");const t=require("vue");require("html2canvas");const M=require("./BaseComponent-DhHavntG.cjs"),D=require("./index-By4IGBQZ.cjs"),$=require("./EChartComponentBase-y-56bxn_.cjs");require("./index-mAPVa0s4.cjs");const H=require("./ele-lin-icon-Dke_1AmT.cjs"),G=require("./echarts-BB8O2KSA.cjs"),W={class:"acceleration-chart-wrapper"},Q={class:"toolbar"},X={class:"toolbar-left"},Z={class:"toolbar-center"},J={class:"toolbar-right"},K={class:"chart-header"},ee={class:"chart-title"},te={class:"chart-legend"},ae={class:"legend-text"},oe={class:"y-axis-unit"},le={class:"chart-body"},re=["id"],ne={DEFAULT_ICON:H.DEFAULT_ICON,ACTIVE_ICON:H.ACTIVE_ICON,NAME_CN:"加速度监测",NAME_EN:"Acceleration Chart",ORDER:10},se={unit:{value:"mm",type:"string",label:"component.accelerationChart.unit"},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},gridLineColor:{value:"#e5e5e5",type:"color",label:"component.accelerationChart.gridLineColor"},points:{value:50,type:"number",label:"component.options.points",min:10,max:200},lineType:{value:"smooth",type:"select",label:"component.accelerationChart.lineType",options:[{label:"平滑曲线",value:"smooth"},{label:"折线",value:"line"},{label:"阶梯线",value:"step"}]},showSymbol:{value:!1,type:"checkbox",label:"component.accelerationChart.showSymbol"},lineWidth:{value:1.5,type:"number",label:"component.accelerationChart.lineWidth",min:1,max:5},yMax:{value:30,type:"number",label:"component.line.yMax"},yMin:{value:-20,type:"number",label:"component.line.yMin"},areaList:{value:"内排,外排,边坡,平台",type:"string",label:"component.accelerationChart.areaList"}},ce=[{name:"GPS01",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS02",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS03",area:"外排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]}],ie=["name","area","object_id","curves"],ue=["name","fv","color"],de=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],me={useAlias:!1,multiObject:!0,source:"mosaic"},fe={DEFAULT:ne,OPTIONS:se,DATA:ce,PARAMS:ie,SOURCE:de,COMMON:me,CURVE_PARAMS:ue},he=t.defineComponent(T(A({},fe),{__name:"accelerationChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(y){t.useCssVars(o=>({v3cfd941c:t.unref(V).bgColor,ea31b698:t.unref(V).textColor}));const s=y,i=t.ref(""),F=t.computed(()=>{var l,c,d,m;const o=((l=s.conf)==null?void 0:l.data)||[],e=new Set;return o.forEach(n=>{n.area&&e.add(n.area)}),e.size===0?(((m=(d=(c=s.conf)==null?void 0:c.options)==null?void 0:d.areaList)==null?void 0:m.value)||"内排,外排,边坡,平台").split(",").map(r=>r.trim()).filter(r=>r):Array.from(e)});t.watch(F,o=>{o.length>0&&!i.value&&(i.value=o[0])},{immediate:!0});const B=()=>{console.log("区域切换:",i.value);const o=E.value;o.length>0?v.value=o[0].value:v.value="",S()},v=t.ref(""),E=t.computed(()=>{var l;return(((l=s.conf)==null?void 0:l.data)||[]).filter(c=>c.area?c.area===i.value:!0).map(c=>({label:c.name,value:c.name}))});t.watch(E,o=>{o.length>0&&!v.value&&(v.value=o[0].value)},{immediate:!0});const L=t.computed(()=>{var e;const o=((e=s.conf)==null?void 0:e.data)||[];return o.find(l=>l.name===v.value)||o[0]||null}),g=t.computed(()=>{const o=L.value;return o?o.curves||[]:[]}),Y=t.ref("7days"),x=t.ref(D.dayjs().subtract(7,"day").format("YYYY-MM-DD HH:mm:ss")),b=t.ref(D.dayjs().format("YYYY-MM-DD HH:mm:ss")),O=o=>{const e=D.dayjs();switch(o){case"today":x.value=e.startOf("day").format("YYYY-MM-DD HH:mm:ss"),b.value=e.format("YYYY-MM-DD HH:mm:ss");break;case"7days":x.value=e.subtract(7,"day").format("YYYY-MM-DD HH:mm:ss"),b.value=e.format("YYYY-MM-DD HH:mm:ss");break;case"30days":x.value=e.subtract(30,"day").format("YYYY-MM-DD HH:mm:ss"),b.value=e.format("YYYY-MM-DD HH:mm:ss");break}S()},S=()=>{console.log("查询数据:",{area:i.value,device:v.value,startTime:x.value,endTime:b.value}),p.updateChartData(g.value)},j=()=>{console.log("导出数据:",{area:i.value,device:v.value,startTime:x.value,endTime:b.value})};t.watch(v,()=>{p.updateChartData(g.value)});class z extends $.EChartComponentBase{constructor(){super(...arguments),this.historyData=new Map,this.xAxisData=[]}extractStyles(){var l,c,d,m,n,r,a,u,f,h,C;const{options:e}=this.props.conf;return{unit:((l=e==null?void 0:e.unit)==null?void 0:l.value)||"mm",bgColor:((c=e==null?void 0:e.bgColor)==null?void 0:c.value)||"#ffffff",textColor:((d=e==null?void 0:e.textColor)==null?void 0:d.value)||"#333333",gridLineColor:((m=e==null?void 0:e.gridLineColor)==null?void 0:m.value)||"#e5e5e5",points:((n=e==null?void 0:e.points)==null?void 0:n.value)||50,lineType:((r=e==null?void 0:e.lineType)==null?void 0:r.value)||"smooth",showSymbol:(u=(a=e==null?void 0:e.showSymbol)==null?void 0:a.value)!=null?u:!1,lineWidth:((f=e==null?void 0:e.lineWidth)==null?void 0:f.value)||1.5,yMax:((h=e==null?void 0:e.yMax)==null?void 0:h.value)||30,yMin:((C=e==null?void 0:e.yMin)==null?void 0:C.value)||-20}}getDefaultData(){return[{name:"GPS01",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS02",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS03",area:"外排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]}]}generateMockData(e,l=0,c=15){const d=[];let m=Math.random()*Math.PI*2;for(let n=0;n<e;n++){const r=(Math.random()-.5)*c*.5,a=Math.sin(m+n*.15)*c*.6,u=l+a+r;d.push(parseFloat(u.toFixed(1)))}return d}getChartOption(e=[]){const l=this.extractStyles(),c=l.points;this.xAxisData=M.getxAxisDataTime(c,this.props.mode,!1);const m=(e.length>0?e:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]).map((n,r)=>{const a=`${v.value}_${n.name}`;let u=this.historyData.get(a);if(!u||u.length===0){const h=[15,-12,-11,19,22];u=this.generateMockData(c,h[r]||0,2),this.historyData.set(a,u)}const f={name:n.name,type:"line",symbol:l.showSymbol?"circle":"none",symbolSize:4,data:u,lineStyle:{width:l.lineWidth,color:n.color},itemStyle:{color:n.color}};return l.lineType==="smooth"?f.smooth=!0:(l.lineType==="step"&&(f.step="middle"),f.smooth=!1),f});return{grid:{left:50,right:20,top:20,bottom:70},tooltip:{trigger:"axis",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:n=>{let r=`<div style="font-weight:bold;margin-bottom:5px">${n[0].axisValue}</div>`;return n.forEach(a=>{r+=`<div style="display:flex;align-items:center;gap:5px">
1
+ "use strict";var q=Object.defineProperty,I=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var w=(y,s,i)=>s in y?q(y,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):y[s]=i,A=(y,s)=>{for(var i in s||(s={}))P.call(s,i)&&w(y,i,s[i]);if(k)for(var i of k(s))U.call(s,i)&&w(y,i,s[i]);return y},T=(y,s)=>I(y,R(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/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");const t=require("vue");require("html2canvas");const M=require("./utils-DKji-TsS.cjs"),C=require("./index-Ds0OaO-O.cjs"),$=require("./EChartComponentBase-D2qhY44d.cjs");require("./index-mAPVa0s4.cjs");const H=require("./ele-lin-icon-Dke_1AmT.cjs"),G=require("./echarts-BB8O2KSA.cjs"),W={class:"acceleration-chart-wrapper"},Q={class:"toolbar"},X={class:"toolbar-left"},Z={class:"toolbar-center"},J={class:"toolbar-right"},K={class:"chart-header"},ee={class:"chart-title"},te={class:"chart-legend"},ae={class:"legend-text"},oe={class:"y-axis-unit"},le={class:"chart-body"},re=["id"],ne={DEFAULT_ICON:H.DEFAULT_ICON,ACTIVE_ICON:H.ACTIVE_ICON,NAME_CN:"加速度监测",NAME_EN:"Acceleration Chart",ORDER:10},se={unit:{value:"mm",type:"string",label:"component.accelerationChart.unit"},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},gridLineColor:{value:"#e5e5e5",type:"color",label:"component.accelerationChart.gridLineColor"},points:{value:50,type:"number",label:"component.options.points",min:10,max:200},lineType:{value:"smooth",type:"select",label:"component.accelerationChart.lineType",options:[{label:"平滑曲线",value:"smooth"},{label:"折线",value:"line"},{label:"阶梯线",value:"step"}]},showSymbol:{value:!1,type:"checkbox",label:"component.accelerationChart.showSymbol"},lineWidth:{value:1.5,type:"number",label:"component.accelerationChart.lineWidth",min:1,max:5},yMax:{value:30,type:"number",label:"component.line.yMax"},yMin:{value:-20,type:"number",label:"component.line.yMin"},areaList:{value:"内排,外排,边坡,平台",type:"string",label:"component.accelerationChart.areaList"}},ce=[{name:"GPS01",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS02",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS03",area:"外排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]}],ie=["name","area","object_id","curves"],ue=["name","fv","color"],de=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],me={useAlias:!1,multiObject:!0,source:"mosaic"},fe={DEFAULT:ne,OPTIONS:se,DATA:ce,PARAMS:ie,SOURCE:de,COMMON:me,CURVE_PARAMS:ue},he=t.defineComponent(T(A({},fe),{__name:"accelerationChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(y){t.useCssVars(o=>({v3cfd941c:t.unref(V).bgColor,ea31b698:t.unref(V).textColor}));const s=y,i=t.ref(""),F=t.computed(()=>{var l,c,d,m;const o=((l=s.conf)==null?void 0:l.data)||[],e=new Set;return o.forEach(n=>{n.area&&e.add(n.area)}),e.size===0?(((m=(d=(c=s.conf)==null?void 0:c.options)==null?void 0:d.areaList)==null?void 0:m.value)||"内排,外排,边坡,平台").split(",").map(r=>r.trim()).filter(r=>r):Array.from(e)});t.watch(F,o=>{o.length>0&&!i.value&&(i.value=o[0])},{immediate:!0});const L=()=>{console.log("区域切换:",i.value);const o=E.value;o.length>0?v.value=o[0].value:v.value="",S()},v=t.ref(""),E=t.computed(()=>{var l;return(((l=s.conf)==null?void 0:l.data)||[]).filter(c=>c.area?c.area===i.value:!0).map(c=>({label:c.name,value:c.name}))});t.watch(E,o=>{o.length>0&&!v.value&&(v.value=o[0].value)},{immediate:!0});const B=t.computed(()=>{var e;const o=((e=s.conf)==null?void 0:e.data)||[];return o.find(l=>l.name===v.value)||o[0]||null}),g=t.computed(()=>{const o=B.value;return o?o.curves||[]:[]}),Y=t.ref("7days"),x=t.ref(C.dayjs().subtract(7,"day").format("YYYY-MM-DD HH:mm:ss")),b=t.ref(C.dayjs().format("YYYY-MM-DD HH:mm:ss")),O=o=>{const e=C.dayjs();switch(o){case"today":x.value=e.startOf("day").format("YYYY-MM-DD HH:mm:ss"),b.value=e.format("YYYY-MM-DD HH:mm:ss");break;case"7days":x.value=e.subtract(7,"day").format("YYYY-MM-DD HH:mm:ss"),b.value=e.format("YYYY-MM-DD HH:mm:ss");break;case"30days":x.value=e.subtract(30,"day").format("YYYY-MM-DD HH:mm:ss"),b.value=e.format("YYYY-MM-DD HH:mm:ss");break}S()},S=()=>{console.log("查询数据:",{area:i.value,device:v.value,startTime:x.value,endTime:b.value}),p.updateChartData(g.value)},j=()=>{console.log("导出数据:",{area:i.value,device:v.value,startTime:x.value,endTime:b.value})};t.watch(v,()=>{p.updateChartData(g.value)});class z extends $.EChartComponentBase{constructor(){super(...arguments),this.historyData=new Map,this.xAxisData=[]}extractStyles(){var l,c,d,m,n,r,a,u,f,h,D;const{options:e}=this.props.conf;return{unit:((l=e==null?void 0:e.unit)==null?void 0:l.value)||"mm",bgColor:((c=e==null?void 0:e.bgColor)==null?void 0:c.value)||"#ffffff",textColor:((d=e==null?void 0:e.textColor)==null?void 0:d.value)||"#333333",gridLineColor:((m=e==null?void 0:e.gridLineColor)==null?void 0:m.value)||"#e5e5e5",points:((n=e==null?void 0:e.points)==null?void 0:n.value)||50,lineType:((r=e==null?void 0:e.lineType)==null?void 0:r.value)||"smooth",showSymbol:(u=(a=e==null?void 0:e.showSymbol)==null?void 0:a.value)!=null?u:!1,lineWidth:((f=e==null?void 0:e.lineWidth)==null?void 0:f.value)||1.5,yMax:((h=e==null?void 0:e.yMax)==null?void 0:h.value)||30,yMin:((D=e==null?void 0:e.yMin)==null?void 0:D.value)||-20}}getDefaultData(){return[{name:"GPS01",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS02",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS03",area:"外排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]}]}generateMockData(e,l=0,c=15){const d=[];let m=Math.random()*Math.PI*2;for(let n=0;n<e;n++){const r=(Math.random()-.5)*c*.5,a=Math.sin(m+n*.15)*c*.6,u=l+a+r;d.push(parseFloat(u.toFixed(1)))}return d}getChartOption(e=[]){const l=this.extractStyles(),c=l.points;this.xAxisData=M.getxAxisDataTime(c,this.props.mode,!1);const m=(e.length>0?e:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]).map((n,r)=>{const a=`${v.value}_${n.name}`;let u=this.historyData.get(a);if(!u||u.length===0){const h=[15,-12,-11,19,22];u=this.generateMockData(c,h[r]||0,2),this.historyData.set(a,u)}const f={name:n.name,type:"line",symbol:l.showSymbol?"circle":"none",symbolSize:4,data:u,lineStyle:{width:l.lineWidth,color:n.color},itemStyle:{color:n.color}};return l.lineType==="smooth"?f.smooth=!0:(l.lineType==="step"&&(f.step="middle"),f.smooth=!1),f});return{grid:{left:50,right:20,top:20,bottom:70},tooltip:{trigger:"axis",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:n=>{let r=`<div style="font-weight:bold;margin-bottom:5px">${n[0].axisValue}</div>`;return n.forEach(a=>{r+=`<div style="display:flex;align-items:center;gap:5px">
2
2
  ${a.marker}
3
3
  <span>${a.seriesName}:</span>
4
4
  <span style="font-weight:bold">${a.value} ${l.unit}</span>
5
5
  </div>`}),r}},xAxis:{type:"category",data:this.xAxisData,axisLine:{lineStyle:{color:l.gridLineColor}},axisLabel:{color:l.textColor,fontSize:11,rotate:0,formatter:n=>{if(n.includes(" ")){const r=n.split(" ");return r[0].substring(5)+`
6
- `+r[1].substring(0,5)}return n}},splitLine:{show:!1}},yAxis:{type:"value",max:l.yMax,min:l.yMin,axisLine:{show:!1},axisLabel:{color:l.textColor,fontSize:11},splitLine:{lineStyle:{color:l.gridLineColor,type:"solid"}}},dataZoom:[{type:"slider",show:!0,xAxisIndex:[0],bottom:5,height:30,start:0,end:100,borderColor:"#ddd",backgroundColor:"#f5f5f5",fillerColor:"rgba(65, 105, 225, 0.15)",showDetail:!0,showDataShadow:!0,realtime:!0,textStyle:{color:"#666",fontSize:11},handleIcon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z",handleSize:"80%",handleStyle:{color:"#fff",borderColor:"#aaa",borderWidth:1,shadowBlur:2,shadowColor:"rgba(0,0,0,0.2)",shadowOffsetX:1,shadowOffsetY:1},dataBackground:{lineStyle:{color:"#8392A5",width:1},areaStyle:{color:"rgba(131, 146, 165, 0.2)"}},selectedDataBackground:{lineStyle:{color:"#4169E1",width:1},areaStyle:{color:"rgba(65, 105, 225, 0.1)"}}},{type:"inside",xAxisIndex:[0],start:0,end:100}],series:m}}setHistoryData(e){const{data:l,common:c}=this.props.conf;if(!l.some(r=>r.object_id&&r.fv))return;const m=c.source||"mosaic";["statistics","calculate"].includes(m)&&(e=M.formatStatisticsResult(e,l));let n=M.handleNullData(e,this.props,"history");l.forEach((r,a)=>{if(!(!r.object_id||!r.fv))try{const u=n.history[a]||[],f=u.map(h=>{var C;return(C=h[r.fv])!=null?C:0});this.historyData.set(r.name,f),a===0&&u.length>0&&(this.xAxisData=u.map(h=>h.time))}catch(u){}}),this.updateChartData()}setSocketData(e){if(!e)return;const{data:l}=this.props.conf;if(!l.some(r=>r.object_id&&r.fv))return;const d=this.extractStyles().points,n=this.getSource()==="mosaic"?e.datetime:e.start_time;l.forEach(r=>{!r.object_id||!r.curves||r.curves.forEach(a=>{if(!a.fv)return;const u=this.extractDataValue(e,a.fv);if(u!=null){const f=`${r.name}_${a.name}`;let h=this.historyData.get(f)||[];h.push(u),h.length>d&&h.shift(),this.historyData.set(f,h)}})}),n&&(this.xAxisData.push(n),this.xAxisData.length>d&&this.xAxisData.shift()),this.updateChartData()}updateChartData(e=[]){this.chartObj&&this.chartObj.setOption(this.getChartOption(e),!0)}}const p=new z(s,"accelerationChart");(!s.conf.data||s.conf.data.length===0)&&(s.conf.data=p.getDefaultData()),p.setupLifecycle();const V=p.getStyle(),N=p.getEchartId();return t.onMounted(()=>{t.nextTick(()=>{const o=document.getElementById(N);if(o){const e=G.init(o);e.setOption(p.getChartOption(g.value)),p.chartObj=e}})}),t.watch(()=>{var o;return(o=s.conf)==null?void 0:o.data},()=>{t.nextTick(()=>p.updateChartData(g.value))},{deep:!0}),t.watch(()=>{var o;return(o=s.conf)==null?void 0:o.socketData},o=>{o&&p.setSocketData(o)}),(o,e)=>{const l=_.ElOption,c=_.ElSelect,d=_.ElRadioButton,m=_.ElRadioGroup,n=_.ElDatePicker,r=_.ElButton;return t.openBlock(),t.createElementBlock("div",W,[t.createElementVNode("div",Q,[t.createElementVNode("div",X,[e[5]||(e[5]=t.createElementVNode("span",{class:"toolbar-label"},"区域",-1)),t.createVNode(c,{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=a=>i.value=a),class:"area-select",size:"small",onChange:B},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(F.value,a=>(t.openBlock(),t.createBlock(l,{key:a,label:a,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[6]||(e[6]=t.createElementVNode("span",{class:"toolbar-label"},"设备",-1)),t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":e[1]||(e[1]=a=>v.value=a),class:"device-select",size:"small"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(E.value,a=>(t.openBlock(),t.createBlock(l,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),t.createElementVNode("div",Z,[t.createVNode(m,{modelValue:Y.value,"onUpdate:modelValue":e[2]||(e[2]=a=>Y.value=a),size:"small",onChange:O},{default:t.withCtx(()=>[t.createVNode(d,{label:"today"},{default:t.withCtx(()=>[...e[7]||(e[7]=[t.createTextVNode("今天",-1)])]),_:1}),t.createVNode(d,{label:"7days"},{default:t.withCtx(()=>[...e[8]||(e[8]=[t.createTextVNode("近7天",-1)])]),_:1}),t.createVNode(d,{label:"30days"},{default:t.withCtx(()=>[...e[9]||(e[9]=[t.createTextVNode("近30天",-1)])]),_:1})]),_:1},8,["modelValue"])]),t.createElementVNode("div",J,[e[12]||(e[12]=t.createElementVNode("span",{class:"toolbar-label"},"开始时间",-1)),t.createVNode(n,{modelValue:x.value,"onUpdate:modelValue":e[3]||(e[3]=a=>x.value=a),type:"datetime",size:"small",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",class:"datetime-picker"},null,8,["modelValue"]),e[13]||(e[13]=t.createElementVNode("span",{class:"toolbar-label"},"结束时间",-1)),t.createVNode(n,{modelValue:b.value,"onUpdate:modelValue":e[4]||(e[4]=a=>b.value=a),type:"datetime",size:"small",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",class:"datetime-picker"},null,8,["modelValue"]),t.createVNode(r,{type:"primary",size:"small",onClick:S},{default:t.withCtx(()=>[...e[10]||(e[10]=[t.createTextVNode("查询",-1)])]),_:1}),t.createVNode(r,{size:"small",onClick:j},{default:t.withCtx(()=>[...e[11]||(e[11]=[t.createTextVNode("导出",-1)])]),_:1})])]),t.createElementVNode("div",K,[t.createElementVNode("div",ee,t.toDisplayString(v.value),1),t.createElementVNode("div",te,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,a=>(t.openBlock(),t.createElementBlock("div",{key:a.name,class:"legend-item"},[t.createElementVNode("span",{class:"legend-marker",style:t.normalizeStyle({backgroundColor:a.color})},[t.createElementVNode("span",{class:"legend-icon",style:t.normalizeStyle({borderColor:a.color})},null,4)],4),t.createElementVNode("span",ae,t.toDisplayString(a.name),1)]))),128))])]),t.createElementVNode("div",oe,t.toDisplayString(t.unref(V).unit),1),t.createElementVNode("div",le,[t.createElementVNode("div",{id:t.unref(N),class:"chart-container"},null,8,re)]),t.renderSlot(o.$slots,"default",{},void 0,!0)])}}})),ve=D._export_sfc(he,[["__scopeId","data-v-58581516"]]);exports.default=ve;
6
+ `+r[1].substring(0,5)}return n}},splitLine:{show:!1}},yAxis:{type:"value",max:l.yMax,min:l.yMin,axisLine:{show:!1},axisLabel:{color:l.textColor,fontSize:11},splitLine:{lineStyle:{color:l.gridLineColor,type:"solid"}}},dataZoom:[{type:"slider",show:!0,xAxisIndex:[0],bottom:5,height:30,start:0,end:100,borderColor:"#ddd",backgroundColor:"#f5f5f5",fillerColor:"rgba(65, 105, 225, 0.15)",showDetail:!0,showDataShadow:!0,realtime:!0,textStyle:{color:"#666",fontSize:11},handleIcon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z",handleSize:"80%",handleStyle:{color:"#fff",borderColor:"#aaa",borderWidth:1,shadowBlur:2,shadowColor:"rgba(0,0,0,0.2)",shadowOffsetX:1,shadowOffsetY:1},dataBackground:{lineStyle:{color:"#8392A5",width:1},areaStyle:{color:"rgba(131, 146, 165, 0.2)"}},selectedDataBackground:{lineStyle:{color:"#4169E1",width:1},areaStyle:{color:"rgba(65, 105, 225, 0.1)"}}},{type:"inside",xAxisIndex:[0],start:0,end:100}],series:m}}setHistoryData(e){const{data:l,common:c}=this.props.conf;if(!l.some(r=>r.object_id&&r.fv))return;const m=c.source||"mosaic";["statistics","calculate"].includes(m)&&(e=M.formatStatisticsResult(e,l));let n=M.handleNullData(e,this.props,"history");l.forEach((r,a)=>{if(!(!r.object_id||!r.fv))try{const u=n.history[a]||[],f=u.map(h=>{var D;return(D=h[r.fv])!=null?D:0});this.historyData.set(r.name,f),a===0&&u.length>0&&(this.xAxisData=u.map(h=>h.time))}catch(u){}}),this.updateChartData()}setSocketData(e){if(!e)return;const{data:l}=this.props.conf;if(!l.some(r=>r.object_id&&r.fv))return;const d=this.extractStyles().points,n=this.getSource()==="mosaic"?e.datetime:e.start_time;l.forEach(r=>{!r.object_id||!r.curves||r.curves.forEach(a=>{if(!a.fv)return;const u=this.extractDataValue(e,a.fv);if(u!=null){const f=`${r.name}_${a.name}`;let h=this.historyData.get(f)||[];h.push(u),h.length>d&&h.shift(),this.historyData.set(f,h)}})}),n&&(this.xAxisData.push(n),this.xAxisData.length>d&&this.xAxisData.shift()),this.updateChartData()}updateChartData(e=[]){this.chartObj&&this.chartObj.setOption(this.getChartOption(e),!0)}}const p=new z(s,"accelerationChart");(!s.conf.data||s.conf.data.length===0)&&(s.conf.data=p.getDefaultData()),p.setupLifecycle();const V=p.getStyle(),N=p.getEchartId();return t.onMounted(()=>{t.nextTick(()=>{const o=document.getElementById(N);if(o){const e=G.init(o);e.setOption(p.getChartOption(g.value)),p.chartObj=e}})}),t.watch(()=>{var o;return(o=s.conf)==null?void 0:o.data},()=>{t.nextTick(()=>p.updateChartData(g.value))},{deep:!0}),t.watch(()=>{var o;return(o=s.conf)==null?void 0:o.socketData},o=>{o&&p.setSocketData(o)}),(o,e)=>{const l=_.ElOption,c=_.ElSelect,d=_.ElRadioButton,m=_.ElRadioGroup,n=_.ElDatePicker,r=_.ElButton;return t.openBlock(),t.createElementBlock("div",W,[t.createElementVNode("div",Q,[t.createElementVNode("div",X,[e[5]||(e[5]=t.createElementVNode("span",{class:"toolbar-label"},"区域",-1)),t.createVNode(c,{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=a=>i.value=a),class:"area-select",size:"small",onChange:L},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(F.value,a=>(t.openBlock(),t.createBlock(l,{key:a,label:a,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e[6]||(e[6]=t.createElementVNode("span",{class:"toolbar-label"},"设备",-1)),t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":e[1]||(e[1]=a=>v.value=a),class:"device-select",size:"small"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(E.value,a=>(t.openBlock(),t.createBlock(l,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),t.createElementVNode("div",Z,[t.createVNode(m,{modelValue:Y.value,"onUpdate:modelValue":e[2]||(e[2]=a=>Y.value=a),size:"small",onChange:O},{default:t.withCtx(()=>[t.createVNode(d,{label:"today"},{default:t.withCtx(()=>[...e[7]||(e[7]=[t.createTextVNode("今天",-1)])]),_:1}),t.createVNode(d,{label:"7days"},{default:t.withCtx(()=>[...e[8]||(e[8]=[t.createTextVNode("近7天",-1)])]),_:1}),t.createVNode(d,{label:"30days"},{default:t.withCtx(()=>[...e[9]||(e[9]=[t.createTextVNode("近30天",-1)])]),_:1})]),_:1},8,["modelValue"])]),t.createElementVNode("div",J,[e[12]||(e[12]=t.createElementVNode("span",{class:"toolbar-label"},"开始时间",-1)),t.createVNode(n,{modelValue:x.value,"onUpdate:modelValue":e[3]||(e[3]=a=>x.value=a),type:"datetime",size:"small",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",class:"datetime-picker"},null,8,["modelValue"]),e[13]||(e[13]=t.createElementVNode("span",{class:"toolbar-label"},"结束时间",-1)),t.createVNode(n,{modelValue:b.value,"onUpdate:modelValue":e[4]||(e[4]=a=>b.value=a),type:"datetime",size:"small",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",class:"datetime-picker"},null,8,["modelValue"]),t.createVNode(r,{type:"primary",size:"small",onClick:S},{default:t.withCtx(()=>[...e[10]||(e[10]=[t.createTextVNode("查询",-1)])]),_:1}),t.createVNode(r,{size:"small",onClick:j},{default:t.withCtx(()=>[...e[11]||(e[11]=[t.createTextVNode("导出",-1)])]),_:1})])]),t.createElementVNode("div",K,[t.createElementVNode("div",ee,t.toDisplayString(v.value),1),t.createElementVNode("div",te,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,a=>(t.openBlock(),t.createElementBlock("div",{key:a.name,class:"legend-item"},[t.createElementVNode("span",{class:"legend-marker",style:t.normalizeStyle({backgroundColor:a.color})},[t.createElementVNode("span",{class:"legend-icon",style:t.normalizeStyle({borderColor:a.color})},null,4)],4),t.createElementVNode("span",ae,t.toDisplayString(a.name),1)]))),128))])]),t.createElementVNode("div",oe,t.toDisplayString(t.unref(V).unit),1),t.createElementVNode("div",le,[t.createElementVNode("div",{id:t.unref(N),class:"chart-container"},null,8,re)]),t.renderSlot(o.$slots,"default",{},void 0,!0)])}}})),ve=C._export_sfc(he,[["__scopeId","data-v-58581516"]]);exports.default=ve;
@@ -10,20 +10,20 @@ var L = (b, e, r) => e in b ? de(b, e, { enumerable: !0, configurable: !0, writa
10
10
  he.call(e, r) && L(b, r, e[r]);
11
11
  return b;
12
12
  }, W = (b, e) => fe(b, pe(e));
13
- var K = (b, e, r) => new Promise((o, s) => {
13
+ var K = (b, e, r) => new Promise((s, o) => {
14
14
  var n = (i) => {
15
15
  try {
16
16
  y(r.next(i));
17
17
  } catch (v) {
18
- s(v);
18
+ o(v);
19
19
  }
20
20
  }, p = (i) => {
21
21
  try {
22
22
  y(r.throw(i));
23
23
  } catch (v) {
24
- s(v);
24
+ o(v);
25
25
  }
26
- }, y = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(n, p);
26
+ }, y = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(n, p);
27
27
  y((r = r.apply(b, e)).next());
28
28
  });
29
29
  import { ElEmpty as ge, ElForm as _e } from "element-plus/es";
@@ -31,12 +31,10 @@ import "element-plus/es/components/base/style/css";
31
31
  import "element-plus/es/components/form/style/css";
32
32
  import "element-plus/es/components/empty/style/css";
33
33
  import { reactive as be, ref as z, watch as ke, defineComponent as G, computed as Q, h as f, onMounted as ve, onUnmounted as Ve, watchEffect as De, openBlock as O, createElementBlock as w, normalizeStyle as X, unref as c, createElementVNode as $, toDisplayString as Y, createVNode as V, withCtx as D, createTextVNode as C, createCommentVNode as I, Fragment as Se, renderList as Fe, createBlock as Z, renderSlot as Oe } from "vue";
34
- import { ElFormItem as j, ElButton as x, ElInput as A, ElSwitch as ee, ElInputNumber as te, ElSelect as re, ElOption as oe, ElDialog as xe, ElMessage as J } from "element-plus";
34
+ import { ElFormItem as j, ElButton as x, ElInput as A, ElSwitch as ee, ElInputNumber as te, ElSelect as re, ElOption as se, ElDialog as xe, ElMessage as J } from "element-plus";
35
35
  import { Delete as Ee, Plus as we } from "@element-plus/icons-vue";
36
- import { u as Ce } from "./store-NrnyUk6l.js";
37
- import { _ as Ae } from "./index-LaRCo47G.js";
38
- import "./element-resize-detector-_sDR6e5I.js";
39
- import { B as Ie } from "./BaseComponent-B7wPQZV9.js";
36
+ import { u as Ce, _ as Ae } from "./index-DGhC_Afv.js";
37
+ import { B as Ie } from "./utils-BMlSy2G6.js";
40
38
  import { g as Je } from "./titleStyle-BT5GlpAb.js";
41
39
  import { A as Ne, D as Pe } from "./ele-crd-icon-BXxB7P3T.js";
42
40
  class Te extends Ie {
@@ -75,9 +73,9 @@ class Te extends Ie {
75
73
  }
76
74
  /** 获取表单校验规则(支持嵌套路径) */
77
75
  getFormRules() {
78
- const e = {}, r = (o, s = "") => {
79
- o.forEach((n) => {
80
- const p = s ? `${s}.${n.key}` : n.key;
76
+ const e = {}, r = (s, o = "") => {
77
+ s.forEach((n) => {
78
+ const p = o ? `${o}.${n.key}` : n.key;
81
79
  if (n.form_type === "sub_form" && n.properties && !n.items) {
82
80
  r(n.properties, p);
83
81
  return;
@@ -92,10 +90,10 @@ class Te extends Ie {
92
90
  }
93
91
  /** 初始化表单数据 */
94
92
  initFormData() {
95
- var r, o;
96
- const e = (o = (r = this.props.conf) == null ? void 0 : r.data) == null ? void 0 : o.values;
97
- this.getParams().forEach((s) => {
98
- e && e[s.key] !== void 0 ? this.formData[s.key] = e[s.key] : this.formData[s.key] = this.getDefaultValue(s);
93
+ var r, s;
94
+ const e = (s = (r = this.props.conf) == null ? void 0 : r.data) == null ? void 0 : s.values;
95
+ this.getParams().forEach((o) => {
96
+ e && e[o.key] !== void 0 ? this.formData[o.key] = e[o.key] : this.formData[o.key] = this.getDefaultValue(o);
99
97
  });
100
98
  }
101
99
  /** 重置表单 */
@@ -105,56 +103,56 @@ class Te extends Ie {
105
103
  // ==================== 字段处理 ====================
106
104
  /** 获取默认值(支持递归嵌套) */
107
105
  getDefaultValue(e) {
108
- var r, o;
106
+ var r, s;
109
107
  if (e.form_type === "sub_form" && e.properties && !e.items) {
110
- const s = {};
108
+ const o = {};
111
109
  return e.properties.forEach((n) => {
112
- s[n.key] = this.getDefaultValue(n);
113
- }), s;
110
+ o[n.key] = this.getDefaultValue(n);
111
+ }), o;
114
112
  }
115
- return e.form_type === "sub_form" && e.items ? Array.isArray(e.default_value) ? e.default_value : [] : e.form_type === "checkbox_group" ? Array.isArray(e.default_value) ? e.default_value : [] : e.default_value !== null && e.default_value !== void 0 ? e.default_value : e.form_type === "switch" ? !1 : e.form_type === "number" ? (o = (r = e.format) == null ? void 0 : r.min) != null ? o : 0 : "";
113
+ return e.form_type === "sub_form" && e.items ? Array.isArray(e.default_value) ? e.default_value : [] : e.form_type === "checkbox_group" ? Array.isArray(e.default_value) ? e.default_value : [] : e.default_value !== null && e.default_value !== void 0 ? e.default_value : e.form_type === "switch" ? !1 : e.form_type === "number" ? (s = (r = e.format) == null ? void 0 : r.min) != null ? s : 0 : "";
116
114
  }
117
115
  /** 构建校验规则 */
118
116
  buildValidationRules(e) {
119
117
  const r = [];
120
118
  e.required && r.push({ required: !0, message: `请输入${e.cn_name}`, trigger: "blur" });
121
- const o = e.format;
122
- return o && (o.pattern && r.push({ pattern: new RegExp(o.pattern), message: `${e.cn_name}格式不正确`, trigger: "blur" }), (o.min_length || o.max_length) && r.push({
123
- min: o.min_length,
124
- max: o.max_length,
125
- message: o.min_length && o.max_length ? `长度在 ${o.min_length} 到 ${o.max_length} 个字符` : o.min_length ? `最少 ${o.min_length} 个字符` : `最多 ${o.max_length} 个字符`,
119
+ const s = e.format;
120
+ return s && (s.pattern && r.push({ pattern: new RegExp(s.pattern), message: `${e.cn_name}格式不正确`, trigger: "blur" }), (s.min_length || s.max_length) && r.push({
121
+ min: s.min_length,
122
+ max: s.max_length,
123
+ message: s.min_length && s.max_length ? `长度在 ${s.min_length} 到 ${s.max_length} 个字符` : s.min_length ? `最少 ${s.min_length} 个字符` : `最多 ${s.max_length} 个字符`,
126
124
  trigger: "blur"
127
125
  })), r;
128
126
  }
129
127
  /** 字段是否隐藏 */
130
128
  isFieldHidden(e) {
131
- var r, o, s, n;
129
+ var r, s, o, n;
132
130
  if (!((r = e.rules) != null && r.length)) return !1;
133
131
  for (const p of e.rules) {
134
- const y = this.formData[(o = p.related_key) == null ? void 0 : o.split(".")[0]], i = (s = p.conditions) == null ? void 0 : s.find((v) => v.value === y);
132
+ const y = this.formData[(s = p.related_key) == null ? void 0 : s.split(".")[0]], i = (o = p.conditions) == null ? void 0 : o.find((v) => v.value === y);
135
133
  if ((n = i == null ? void 0 : i.property) != null && n.hidden) return !0;
136
134
  }
137
135
  return !1;
138
136
  }
139
137
  /** 字段是否禁用 */
140
138
  isFieldDisabled(e) {
141
- var r, o, s, n;
139
+ var r, s, o, n;
142
140
  if (!((r = e.rules) != null && r.length)) return !1;
143
141
  for (const p of e.rules) {
144
- const y = this.formData[(o = p.related_key) == null ? void 0 : o.split(".")[0]], i = (s = p.conditions) == null ? void 0 : s.find((v) => v.value === y);
142
+ const y = this.formData[(s = p.related_key) == null ? void 0 : s.split(".")[0]], i = (o = p.conditions) == null ? void 0 : o.find((v) => v.value === y);
145
143
  if ((n = i == null ? void 0 : i.property) != null && n.disabled) return !0;
146
144
  }
147
145
  return !1;
148
146
  }
149
147
  /** 获取字段选项(支持联动) */
150
148
  getFieldOptions(e) {
151
- var o, s;
149
+ var s, o;
152
150
  let r = e.enum || [];
153
151
  if (e.rules)
154
152
  for (const n of e.rules) {
155
153
  if (!n.related_key) continue;
156
- const p = this.formData[n.related_key], y = (o = n.conditions) == null ? void 0 : o.find((i) => i.value === p);
157
- if ((s = y == null ? void 0 : y.property) != null && s.enum) {
154
+ const p = this.formData[n.related_key], y = (s = n.conditions) == null ? void 0 : s.find((i) => i.value === p);
155
+ if ((o = y == null ? void 0 : y.property) != null && o.enum) {
158
156
  r = y.property.enum;
159
157
  break;
160
158
  }
@@ -165,45 +163,45 @@ class Te extends Ie {
165
163
  onFieldChange(e) {
166
164
  this.getParams().forEach((r) => {
167
165
  if (r.rules)
168
- for (const o of r.rules)
169
- o.related_key === e.key && (this.formData[r.key] = r.form_type === "checkbox_group" ? [] : r.form_type === "switch" ? !1 : "");
166
+ for (const s of r.rules)
167
+ s.related_key === e.key && (this.formData[r.key] = r.form_type === "checkbox_group" ? [] : r.form_type === "switch" ? !1 : "");
170
168
  });
171
169
  }
172
170
  // ==================== 子表单处理 ====================
173
171
  /** 添加子表单行 */
174
172
  addSubItem(e) {
175
- var s;
173
+ var o;
176
174
  Array.isArray(this.formData[e.key]) || (this.formData[e.key] = []);
177
- const r = ((s = e.items) == null ? void 0 : s.properties) || e.properties || [], o = {};
175
+ const r = ((o = e.items) == null ? void 0 : o.properties) || e.properties || [], s = {};
178
176
  r.forEach((n) => {
179
- o[n.key] = this.getDefaultValue(n);
180
- }), this.formData[e.key].push(o);
177
+ s[n.key] = this.getDefaultValue(n);
178
+ }), this.formData[e.key].push(s);
181
179
  }
182
180
  /** 删除子表单行 */
183
181
  removeSubItem(e, r) {
184
- var o;
185
- (o = this.formData[e]) == null || o.splice(r, 1);
182
+ var s;
183
+ (s = this.formData[e]) == null || s.splice(r, 1);
186
184
  }
187
185
  /** 获取子表单字段选项 */
188
186
  getSubFieldOptions(e, r) {
189
- var o, s, n;
190
- if ((o = e.enum) != null && o.length) return e.enum;
187
+ var s, o, n;
188
+ if ((s = e.enum) != null && s.length) return e.enum;
191
189
  if (e.rules)
192
190
  for (const p of e.rules) {
193
191
  if (!p.related_key) continue;
194
- const y = p.related_key.split(".").pop(), i = (s = p.conditions) == null ? void 0 : s.find((v) => v.value === r[y]);
192
+ const y = p.related_key.split(".").pop(), i = (o = p.conditions) == null ? void 0 : o.find((v) => v.value === r[y]);
195
193
  if ((n = i == null ? void 0 : i.property) != null && n.enum) return i.property.enum;
196
194
  }
197
195
  return [];
198
196
  }
199
197
  /** 子表单字段变化 */
200
- onSubFieldChange(e, r, o) {
198
+ onSubFieldChange(e, r, s) {
201
199
  var n;
202
200
  (((n = e.items) == null ? void 0 : n.properties) || e.properties || []).forEach((p) => {
203
201
  var y;
204
202
  if (p.rules)
205
203
  for (const i of p.rules)
206
- ((y = i.related_key) == null ? void 0 : y.split(".").pop()) === r.key && (o[p.key] = "");
204
+ ((y = i.related_key) == null ? void 0 : y.split(".").pop()) === r.key && (s[p.key] = "");
207
205
  });
208
206
  }
209
207
  // ==================== JSON 编辑器 ====================
@@ -266,25 +264,25 @@ class Te extends Ie {
266
264
  }
267
265
  /** 递归转换 formData 为原始格式 */
268
266
  convertFormDataToOriginal(e, r) {
269
- const o = {};
270
- return r.forEach((s) => {
267
+ const s = {};
268
+ return r.forEach((o) => {
271
269
  var p;
272
- const n = e[s.key];
273
- s.form_type === "sub_form" ? s.properties && !s.items ? o[s.key] = this.convertFormDataToOriginal(n || {}, s.properties) : (p = s.items) != null && p.properties && (o[s.key] = Array.isArray(n) ? n.map((y) => this.convertArrayItemToOriginal(y, s.items.properties)) : []) : s.db_type === "boolean" && typeof n == "boolean" ? o[s.key] = n ? "true" : "false" : o[s.key] = n;
274
- }), o;
270
+ const n = e[o.key];
271
+ o.form_type === "sub_form" ? o.properties && !o.items ? s[o.key] = this.convertFormDataToOriginal(n || {}, o.properties) : (p = o.items) != null && p.properties && (s[o.key] = Array.isArray(n) ? n.map((y) => this.convertArrayItemToOriginal(y, o.items.properties)) : []) : o.db_type === "boolean" && typeof n == "boolean" ? s[o.key] = n ? "true" : "false" : s[o.key] = n;
272
+ }), s;
275
273
  }
276
274
  /** 转换数组项为原始格式 */
277
275
  convertArrayItemToOriginal(e, r) {
278
- const o = {};
279
- return r.forEach((s) => {
280
- s.form_type === "sub_form" && s.properties ? o[s.key] = this.convertFormDataToOriginal(e[s.key] || {}, s.properties) : o[s.key] = e[s.key];
281
- }), o;
276
+ const s = {};
277
+ return r.forEach((o) => {
278
+ o.form_type === "sub_form" && o.properties ? s[o.key] = this.convertFormDataToOriginal(e[o.key] || {}, o.properties) : s[o.key] = e[o.key];
279
+ }), s;
282
280
  }
283
281
  /** 处理 WebSocket 数据 */
284
282
  setSocketData(e) {
285
283
  if (!e) return;
286
- const r = e.result || e, o = r.action_item || r;
287
- o != null && o.params && this.parseBackendData(o);
284
+ const r = e.result || e, s = r.action_item || r;
285
+ s != null && s.params && this.parseBackendData(s);
288
286
  }
289
287
  // ==================== 监听器 ====================
290
288
  /** 设置参数变化监听 */
@@ -320,9 +318,9 @@ const $e = { class: "mix-body" }, ze = {
320
318
  },
321
319
  emits: ["submit", "generate"],
322
320
  setup(b, { emit: e }) {
323
- const r = b, o = z(!1), s = z(""), n = e, p = Ce(), y = z(), i = new Te(r);
321
+ const r = b, s = z(!1), o = z(""), n = e, p = Ce(), y = z(), i = new Te(r);
324
322
  i.setupLifecycle(), i.watchParams();
325
- const v = i.getStyle(), N = Q(() => r.conf || {}), se = Q(() => Je(r.conf.options));
323
+ const v = i.getStyle(), N = Q(() => r.conf || {}), oe = Q(() => Je(r.conf.options));
326
324
  function P(a, t) {
327
325
  return t.split(".").reduce((m, d) => m == null ? void 0 : m[d], a);
328
326
  }
@@ -442,7 +440,7 @@ const $e = { class: "mix-body" }, ze = {
442
440
  style: "width:100%",
443
441
  size: "small"
444
442
  },
445
- () => (a.enum || []).map((g) => f(oe, { key: g.value, label: g.cn_name, value: g.value }))
443
+ () => (a.enum || []).map((g) => f(se, { key: g.value, label: g.cn_name, value: g.value }))
446
444
  );
447
445
  case "number":
448
446
  return f(te, {
@@ -483,7 +481,7 @@ const $e = { class: "mix-body" }, ze = {
483
481
  style: "width:100%",
484
482
  size: "small"
485
483
  },
486
- () => (a.enum || []).map((h) => f(oe, { key: h.value, label: h.cn_name, value: h.value }))
484
+ () => (a.enum || []).map((h) => f(se, { key: h.value, label: h.cn_name, value: h.value }))
487
485
  );
488
486
  case "number":
489
487
  return f(te, {
@@ -516,14 +514,14 @@ const $e = { class: "mix-body" }, ze = {
516
514
  try {
517
515
  yield (a = y.value) == null ? void 0 : a.validate();
518
516
  const t = i.exportTargetJson();
519
- s.value = JSON.stringify(t, null, 2), o.value = !0, n("generate", t);
517
+ o.value = JSON.stringify(t, null, 2), s.value = !0, n("generate", t);
520
518
  } catch (t) {
521
519
  J.error("请先完善必填项");
522
520
  }
523
521
  }), me = () => {
524
522
  try {
525
523
  const a = document.createElement("textarea");
526
- a.value = s.value, a.style.position = "fixed", a.style.opacity = "0", document.body.appendChild(a), a.select(), document.execCommand("copy"), document.body.removeChild(a), J.success("已复制到剪贴板");
524
+ a.value = o.value, a.style.position = "fixed", a.style.opacity = "0", document.body.appendChild(a), a.select(), document.execCommand("copy"), document.body.removeChild(a), J.success("已复制到剪贴板");
527
525
  } catch (a) {
528
526
  J.error("复制失败");
529
527
  }
@@ -542,7 +540,7 @@ const $e = { class: "mix-body" }, ze = {
542
540
  }, [
543
541
  $("div", {
544
542
  class: "mix-title",
545
- style: X(se.value)
543
+ style: X(oe.value)
546
544
  }, Y(N.value.action_name || N.value.caption || N.value.name), 5),
547
545
  $("div", $e, [
548
546
  b.mode === "edit" && c(i).showJsonEditor.value ? (O(), w("div", ze, [
@@ -588,8 +586,8 @@ const $e = { class: "mix-body" }, ze = {
588
586
  })
589
587
  ])) : I("", !0),
590
588
  V(c(xe), {
591
- modelValue: o.value,
592
- "onUpdate:modelValue": t[5] || (t[5] = (u) => o.value = u),
589
+ modelValue: s.value,
590
+ "onUpdate:modelValue": t[5] || (t[5] = (u) => s.value = u),
593
591
  title: "生成的目标JSON",
594
592
  width: "600px",
595
593
  "close-on-click-modal": !1
@@ -603,7 +601,7 @@ const $e = { class: "mix-body" }, ze = {
603
601
  }),
604
602
  V(c(x), {
605
603
  type: "primary",
606
- onClick: t[4] || (t[4] = (u) => o.value = !1)
604
+ onClick: t[4] || (t[4] = (u) => s.value = !1)
607
605
  }, {
608
606
  default: D(() => [...t[11] || (t[11] = [
609
607
  C("关闭", -1)
@@ -614,8 +612,8 @@ const $e = { class: "mix-body" }, ze = {
614
612
  default: D(() => [
615
613
  V(c(A), {
616
614
  type: "textarea",
617
- modelValue: s.value,
618
- "onUpdate:modelValue": t[3] || (t[3] = (u) => s.value = u),
615
+ modelValue: o.value,
616
+ "onUpdate:modelValue": t[3] || (t[3] = (u) => o.value = u),
619
617
  rows: 16,
620
618
  readonly: ""
621
619
  }, null, 8, ["modelValue"])
@@ -681,7 +679,7 @@ const $e = { class: "mix-body" }, ze = {
681
679
  ], 4);
682
680
  };
683
681
  }
684
- })), dt = /* @__PURE__ */ Ae(Xe, [["__scopeId", "data-v-0174b7e7"]]);
682
+ })), ct = /* @__PURE__ */ Ae(Xe, [["__scopeId", "data-v-0174b7e7"]]);
685
683
  export {
686
- dt as default
684
+ ct as default
687
685
  };