mixdashboards 1.1.19 → 1.1.21

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 (359) hide show
  1. package/dist/{AgActionsRenderer-PlZa78ff.js → AgActionsRenderer-3HKXKUJY.js} +1 -1
  2. package/dist/{AgActionsRenderer-Dlr21zZJ.cjs → AgActionsRenderer-DnPvuT_-.cjs} +1 -1
  3. package/dist/{AgGridTable-oXfzJc2L.js → AgGridTable-BQ8M3fDj.js} +1 -1
  4. package/dist/{AgGridTable-CE6GaYj4.cjs → AgGridTable-BQvI6jpO.cjs} +1 -1
  5. package/dist/{BaseComponent-DdC8fmD6.cjs → BaseComponent-DKuQG62G.cjs} +1 -1
  6. package/dist/{BaseComponent-Bv3RJ3vA.js → BaseComponent-Dn65PXTp.js} +3 -3
  7. package/dist/{EChartComponentBase-DzP0_KR9.cjs → EChartComponentBase-8GSbyY5P.cjs} +1 -1
  8. package/dist/{EChartComponentBase-B5seB4Mc.js → EChartComponentBase-skupRYzl.js} +2 -2
  9. package/dist/{EmergencyPlanPanel-tVOIWw2Q.js → EmergencyPlanPanel-C4OsnsPP.js} +1 -1
  10. package/dist/{EmergencyPlanPanel-9KW6SFeg.cjs → EmergencyPlanPanel-DLvOrE5U.cjs} +1 -1
  11. package/dist/{HistoryPlanDialog-CDFm2aaq.cjs → HistoryPlanDialog--99rPq54.cjs} +1 -1
  12. package/dist/{HistoryPlanDialog-BJ8jXVxW.js → HistoryPlanDialog-DI0H_vgZ.js} +1 -1
  13. package/dist/{MixiotAppDetailPage-CGxGF4b4.cjs → MixiotAppDetailPage-4mYR4gHm.cjs} +1 -1
  14. package/dist/{MixiotAppDetailPage-BY0b1cSQ.js → MixiotAppDetailPage-C_NrtqJU.js} +1 -1
  15. package/dist/{MonitoringMap-BhE-240t.cjs → MonitoringMap-CstXoU8n.cjs} +1 -1
  16. package/dist/{MonitoringMap-Caf2Shxs.js → MonitoringMap-Gxy8ldt1.js} +2 -2
  17. package/dist/{UniverSheet-DK1fnNou.js → UniverSheet-DGNOHAEJ.js} +2 -2
  18. package/dist/{UniverSheet-CoBlKEHm.cjs → UniverSheet-phDDfwXk.cjs} +1 -1
  19. package/dist/{accelerationChart-CpzAy4XN.cjs → accelerationChart-B_y_8Y4q.cjs} +1 -1
  20. package/dist/{accelerationChart-CP1QTBXX.js → accelerationChart-C4JTCc65.js} +19 -19
  21. package/dist/{actionItem-CcDYnjv-.cjs → actionItem-Bdw3MAAf.cjs} +1 -1
  22. package/dist/{actionItem-C2CUz21T.js → actionItem-CGOgCPJR.js} +2 -2
  23. package/dist/{alarmLevelChart-D1el5vNk.js → alarmLevelChart-BQF-4a0s.js} +2 -2
  24. package/dist/{alarmLevelChart-bS2UEWev.cjs → alarmLevelChart-CY4GqDio.cjs} +1 -1
  25. package/dist/{alertTable-BdKLNkVJ.cjs → alertTable-D3riLPwz.cjs} +1 -1
  26. package/dist/{alertTable-21qWBMNt.js → alertTable-DgiRdm5f.js} +2 -2
  27. package/dist/{aliasObjectSelectorDemo-CpNohSP3.js → aliasObjectSelectorDemo-C7gQUdGu.js} +5 -5
  28. package/dist/{aliasObjectSelectorDemo-C7NLq1SO.cjs → aliasObjectSelectorDemo-DXFCCnvj.cjs} +1 -1
  29. package/dist/{annualRainfallChart-DDGrKSyV.js → annualRainfallChart-C1yG42iq.js} +2 -2
  30. package/dist/{annualRainfallChart-BvvLnmDL.cjs → annualRainfallChart-D3oUahrK.cjs} +1 -1
  31. package/dist/{aqi-B51UwYP8.cjs → aqi-B3g_go92.cjs} +1 -1
  32. package/dist/{aqi-SrcWK-ox.js → aqi-DLqM9gGc.js} +4 -4
  33. package/dist/{aqiIndass-DY6U7dbZ.js → aqiIndass-DDtB5_wf.js} +17 -17
  34. package/dist/{aqiIndass-BVxD6QC4.cjs → aqiIndass-DRYU-FAs.cjs} +1 -1
  35. package/dist/{areaDeformCurve-CWgMj6Ld.cjs → areaDeformCurve-CnvUJY_x.cjs} +1 -1
  36. package/dist/{areaDeformCurve-D3BuGscE.js → areaDeformCurve-DaLtFoJT.js} +2 -2
  37. package/dist/{arrayCard-9QeKfHnv.cjs → arrayCard-9p0Bkc_e.cjs} +1 -1
  38. package/dist/{arrayCard-qgDnMdcU.js → arrayCard-FYb8TmUw.js} +2 -2
  39. package/dist/{audio-CbbNeFwR.js → audio-BBXpJP54.js} +2 -2
  40. package/dist/{audio-lrTBdjeY.cjs → audio-DGxXcB0a.cjs} +1 -1
  41. package/dist/{bar-CJN8j8gU.js → bar-D26zndUl.js} +8 -8
  42. package/dist/{bar-BfPMVpDX.cjs → bar-btY9Pwkk.cjs} +1 -1
  43. package/dist/{basicShapeToolbox-eUxdwSiA.cjs → basicShapeToolbox-XR_NHK87.cjs} +1 -1
  44. package/dist/{basicShapeToolbox-DqSW0K9M.js → basicShapeToolbox-Y6mXTA8o.js} +7 -7
  45. package/dist/{bmp-pGXNGQ6L.js → bmp-C7tYeLi0.js} +2 -2
  46. package/dist/{bmp-BhCJePGA.cjs → bmp-DlSoc3Rw.cjs} +1 -1
  47. package/dist/{box-BAgrzKXC.js → box-DroQaZjH.js} +16 -16
  48. package/dist/{box-Be6Hpox4.cjs → box-DyIX9weX.cjs} +1 -1
  49. package/dist/{chartConfigPanel-BvMXZB2L.js → chartConfigPanel-D4dbsVKj.js} +1 -1
  50. package/dist/{chartConfigPanel-CGWijgZ-.cjs → chartConfigPanel-DvTKL5EZ.cjs} +1 -1
  51. package/dist/{circleBar-CGlveIpB.js → circleBar-DCnx8wNj.js} +2 -2
  52. package/dist/{circleBar-COsnnOW8.cjs → circleBar-DulXgWd8.cjs} +1 -1
  53. package/dist/{clock-CVO43_uj.js → clock-B1X6vX22.js} +2 -2
  54. package/dist/{clock-DgyRJ55m.cjs → clock-CeM6LdAl.cjs} +1 -1
  55. package/dist/{clt-Bfh4zPhb.cjs → clt-CcpO8rrD.cjs} +1 -1
  56. package/dist/{clt-d8tEBDXa.js → clt-IAzRVgiu.js} +15 -15
  57. package/dist/{cmc-B7O-zg2t.cjs → cmc-B4xRwSti.cjs} +1 -1
  58. package/dist/{cmc-By56qP2c.js → cmc-Swd4NfxE.js} +10 -10
  59. package/dist/{cmp-xri5dKb9.js → cmp--gCtei5x.js} +2 -2
  60. package/dist/{cmp-D73tbgfL.cjs → cmp-B9Aip3T2.cjs} +1 -1
  61. package/dist/{conclusionCard-EsUi-cs0.cjs → conclusionCard-CRif9GmS.cjs} +1 -1
  62. package/dist/{conclusionCard-Dk1KoNii.js → conclusionCard-DQ0HTHsg.js} +2 -2
  63. package/dist/{controlList-DlFba9SA.js → controlList-4TidO_XJ.js} +4 -4
  64. package/dist/{controlList-jIvwSzAZ.cjs → controlList-CwLNEkAi.cjs} +1 -1
  65. package/dist/{controlRecordList-Bmtp681m.cjs → controlRecordList-CuvV65TE.cjs} +1 -1
  66. package/dist/{controlRecordList-BJjkRs8d.js → controlRecordList-dPW6e4FN.js} +3 -3
  67. package/dist/{controlRecordListAPP-C_oMTkva.js → controlRecordListAPP-CObVdW3l.js} +2 -2
  68. package/dist/{controlRecordListAPP-C02TdcvH.cjs → controlRecordListAPP-DCzTOeXr.cjs} +1 -1
  69. package/dist/{crd-BS6MSmcS.cjs → crd-AH_sGivo.cjs} +1 -1
  70. package/dist/{crd-BYLbCcrj.js → crd-CEWC005o.js} +20 -20
  71. package/dist/{ctrBtn-V4qjGGtx.js → ctrBtn-8xev-mny.js} +3 -3
  72. package/dist/{ctrBtn-DhvhVrCW.cjs → ctrBtn-nYp9T0n0.cjs} +1 -1
  73. package/dist/{ctrSet-CHZZJIF7.js → ctrSet-3Q4eJSfK.js} +11 -11
  74. package/dist/{ctrSet-CQHpxMxP.cjs → ctrSet-z_9ztVyG.cjs} +1 -1
  75. package/dist/{ctrSwitch-ChvtxV9I.js → ctrSwitch-BhqYXTMZ.js} +7 -7
  76. package/dist/{ctrSwitch-D5n8S2_r.cjs → ctrSwitch-DacpvyBJ.cjs} +1 -1
  77. package/dist/{dataManagement-C3z0jdVy.js → dataManagement-BiPhJbF1.js} +2 -2
  78. package/dist/{dataManagement-DzESXejv.cjs → dataManagement-DP1Chfo2.cjs} +1 -1
  79. package/dist/{dataReport-D7WV4er3.js → dataReport-CQaL-d_q.js} +2 -2
  80. package/dist/{dataReport-D1myyCz7.cjs → dataReport-C_8TF5Dz.cjs} +1 -1
  81. package/dist/{dataTable-DkCWvmYS.js → dataTable-Bbx5XgV-.js} +1 -1
  82. package/dist/{dataTable-DOQRfWJN.cjs → dataTable-D6-325qb.cjs} +1 -1
  83. package/dist/{datetime-BfA0Yxsf.js → datetime-CmXZdgkW.js} +2 -2
  84. package/dist/{datetime-Dgr1l4mG.cjs → datetime-DBrUO7wD.cjs} +1 -1
  85. package/dist/{deepClusterSlipSurface-BTNdbcD0.cjs → deepClusterSlipSurface-Ch8i2ql5.cjs} +1 -1
  86. package/dist/{deepClusterSlipSurface-BotjleWU.js → deepClusterSlipSurface-D7o7mgg7.js} +27 -27
  87. package/dist/{deepDataMatrix-CqsdmOoD.js → deepDataMatrix-D9GCg496.js} +23 -23
  88. package/dist/{deepDataMatrix-B1glL8v7.cjs → deepDataMatrix-DoM8KUHn.cjs} +1 -1
  89. package/dist/{deepDisplacement3D-DNwOT442.cjs → deepDisplacement3D-C8ZRCP-R.cjs} +1 -1
  90. package/dist/{deepDisplacement3D-DLdpPEbS.js → deepDisplacement3D-Cjx11pre.js} +2 -2
  91. package/dist/{deepDisplacementChart-DjaHZ1pw.js → deepDisplacementChart-BHe83IoB.js} +23 -23
  92. package/dist/{deepDisplacementChart-CfGD5BrP.cjs → deepDisplacementChart-BlcS3DVl.cjs} +1 -1
  93. package/dist/{deepDisplacementChart-jJJQQFY6.js → deepDisplacementChart-HuWab3pz.js} +27 -27
  94. package/dist/{deepDisplacementChart-lDFewdsF.cjs → deepDisplacementChart-r3GIC8hq.cjs} +1 -1
  95. package/dist/{deepDisplacementView-B4Go1Hq0.js → deepDisplacementView-B4RBH8Ie.js} +1 -1
  96. package/dist/{deepDisplacementView-BH0UfjV6.cjs → deepDisplacementView-BHZQ4s3K.cjs} +1 -1
  97. package/dist/{deepNodeTemperatureChart-DUszGqXz.cjs → deepNodeTemperatureChart-BswYkP9V.cjs} +1 -1
  98. package/dist/{deepNodeTemperatureChart-9JmmT_3j.js → deepNodeTemperatureChart-D9maVN-M.js} +28 -28
  99. package/dist/{deepTangentAngleChart-rQ8QfuGN.js → deepTangentAngleChart-DIWKa8r3.js} +18 -18
  100. package/dist/{deepTangentAngleChart-C2CwkfSV.cjs → deepTangentAngleChart-DQxOv4Vz.cjs} +1 -1
  101. package/dist/{deepTemperatureField-C-ilAUbT.cjs → deepTemperatureField-2GBzigs_.cjs} +1 -1
  102. package/dist/{deepTemperatureField-CubuMfdf.js → deepTemperatureField-DlLLcuFb.js} +23 -23
  103. package/dist/{deepTrendChart-CLQFmRr2.cjs → deepTrendChart-CbYdfjcX.cjs} +1 -1
  104. package/dist/{deepTrendChart-Bo7kcMpS.js → deepTrendChart-CdX41nqe.js} +40 -40
  105. package/dist/{deviceOnlineStatus-DBulFfoC.cjs → deviceOnlineStatus-BMfNv4fX.cjs} +1 -1
  106. package/dist/{deviceOnlineStatus-CtIL7VFP.js → deviceOnlineStatus-BdOeLbLy.js} +2 -2
  107. package/dist/{deviceStatus-BDVPjgyN.js → deviceStatus-B8Ijgoyf.js} +15 -15
  108. package/dist/{deviceStatus-CF7z3bfZ.cjs → deviceStatus-CbYBmGvy.cjs} +1 -1
  109. package/dist/{displacementDataTable-B9HARhGm.cjs → displacementDataTable-BI8cE-vY.cjs} +1 -1
  110. package/dist/{displacementDataTable-GkggvGaZ.js → displacementDataTable-Cqi5Ql6a.js} +17 -17
  111. package/dist/{displacementTrajectoryChart-C_6Yq97U.js → displacementTrajectoryChart-D1UPR4dt.js} +30 -30
  112. package/dist/{displacementTrajectoryChart-CEui7uVX.cjs → displacementTrajectoryChart-DJM_B-gL.cjs} +1 -1
  113. package/dist/{displacementTrendChart-BStbvtyS.cjs → displacementTrendChart-C4jvpdRY.cjs} +1 -1
  114. package/dist/{displacementTrendChart-C40yhGCg.js → displacementTrendChart-Dii90QjN.js} +18 -18
  115. package/dist/{dxf-BoF0vKri.js → dxf-DAAwQlgQ.js} +2 -2
  116. package/dist/{dxf-CVjZUhtn.cjs → dxf-DsJIwOOJ.cjs} +1 -1
  117. package/dist/{dzc-B4ZvwN_l.js → dzc-BjOYTnIF.js} +5 -5
  118. package/dist/{dzc-Bc9cF-kF.cjs → dzc-CpML7WAZ.cjs} +1 -1
  119. package/dist/{emergencyPlan-DVoHbsNX.cjs → emergencyPlan-DWpGIszu.cjs} +1 -1
  120. package/dist/{emergencyPlan-Bae0pJIK.js → emergencyPlan-DeL1roPL.js} +3 -3
  121. package/dist/{evn-DwzNdVCs.js → evn-CUajXlYc.js} +2 -2
  122. package/dist/{evn-CwVRqTsX.cjs → evn-D0ROeiQD.cjs} +1 -1
  123. package/dist/{evolutionChart-xgWP4gp9.js → evolutionChart-B-2W9qVE.js} +3 -3
  124. package/dist/{evolutionChart-DcYx4Pka.cjs → evolutionChart-D23ALmPJ.cjs} +1 -1
  125. package/dist/{fileViewer-BD81tOyy.js → fileViewer-D6-jyRWy.js} +9 -9
  126. package/dist/{fileViewer-I2uylpjR.cjs → fileViewer-DHDmo6px.cjs} +1 -1
  127. package/dist/{filterBar-Dri4QUIb.cjs → filterBar-Bx0qkR7L.cjs} +1 -1
  128. package/dist/{filterBar-1JX2PNo7.js → filterBar-Cw-wbtF1.js} +2 -2
  129. package/dist/{fireCombustionCurve-B7fBz7l4.cjs → fireCombustionCurve-Dj2o6qcy.cjs} +1 -1
  130. package/dist/{fireCombustionCurve-Bh4mHmWN.js → fireCombustionCurve-wPPE55j_.js} +3 -3
  131. package/dist/{fireFilterBar-C_6JQb5k.js → fireFilterBar-COgdZt2b.js} +2 -2
  132. package/dist/{fireFilterBar-B916WbkV.cjs → fireFilterBar-t-aUk0FZ.cjs} +1 -1
  133. package/dist/{fireHistoryTable-DYbmSsbK.cjs → fireHistoryTable-BgzroLVi.cjs} +1 -1
  134. package/dist/{fireHistoryTable-DG0VPFRM.js → fireHistoryTable-Em_cwZSy.js} +2 -2
  135. package/dist/{gag-BBSJFndH.cjs → gag-C5gOltT8.cjs} +1 -1
  136. package/dist/{gag-BMrGqaQL.js → gag-Dd-osrR9.js} +2 -2
  137. package/dist/{gasStationList-yiSPtQ7o.cjs → gasStationList-CKe02Teb.cjs} +1 -1
  138. package/dist/{gasStationList-CgeVIXbG.js → gasStationList-CepcJ9BG.js} +3 -3
  139. package/dist/{geo3dViewer-DQfOfbvI.cjs → geo3dViewer-CSq4-kE-.cjs} +1 -1
  140. package/dist/{geo3dViewer-C9_rSsKP.js → geo3dViewer-yHqVv2BH.js} +3 -3
  141. package/dist/{glbModel-Dhw1Gtbr.cjs → glbModel-CBM7-1vZ.cjs} +1 -1
  142. package/dist/{glbModel-NldHnOVl.js → glbModel-DFDIJi5z.js} +2 -2
  143. package/dist/{globalObjectSelector-KnFppL_e.js → globalObjectSelector-BoBf_njv.js} +43 -43
  144. package/dist/{globalObjectSelector-BCPaufx_.cjs → globalObjectSelector-BvK0QxXk.cjs} +1 -1
  145. package/dist/{gnssFilterBar-CV4Toj67.cjs → gnssFilterBar-BabiLlIC.cjs} +1 -1
  146. package/dist/{gnssFilterBar-BwKMyUrQ.js → gnssFilterBar-C4Ozsjee.js} +2 -2
  147. package/dist/{gnssHistoryTable-CPf2oH22.cjs → gnssHistoryTable-CEtxui4z.cjs} +1 -1
  148. package/dist/{gnssHistoryTable-C6Wkw7OW.js → gnssHistoryTable-DWICO-OK.js} +2 -2
  149. package/dist/{gnssMapView-CutaT360.cjs → gnssMapView-C5IzKoTF.cjs} +2 -2
  150. package/dist/{gnssMapView-C-eK2r5B.js → gnssMapView-CgLO6fng.js} +4 -4
  151. package/dist/{gnssSectionProfile--g5C-EWx.js → gnssSectionProfile-BFU5_iQa.js} +2 -2
  152. package/dist/{gnssSectionProfile-EuFzJtuh.cjs → gnssSectionProfile-BcS3AU5H.cjs} +1 -1
  153. package/dist/{gnssTimeSeriesChart-NC4tfx2H.cjs → gnssTimeSeriesChart-2AOe01nY.cjs} +1 -1
  154. package/dist/{gnssTimeSeriesChart-CqmMTpuf.js → gnssTimeSeriesChart-Cyc9JVmX.js} +2 -2
  155. package/dist/{gnssXYTrajectory-_O0KOUM2.cjs → gnssXYTrajectory-B3HDdORI.cjs} +1 -1
  156. package/dist/{gnssXYTrajectory-Zpj3HyXr.js → gnssXYTrajectory-DAjqaaOt.js} +2 -2
  157. package/dist/{grd-BaPKVJ4W.js → grd-BdraSTc0.js} +18 -18
  158. package/dist/{grd-TbRuDGQr.cjs → grd-jisN3fY_.cjs} +1 -1
  159. package/dist/{grdIndass-3DrX62Jn.js → grdIndass-BuEWpm2p.js} +5 -5
  160. package/dist/{grdIndass-CKi2RLyZ.cjs → grdIndass-BxJWHgbc.cjs} +1 -1
  161. package/dist/{grg-Cgxf4HNj.js → grg-BiUyteXn.js} +13 -13
  162. package/dist/{grg-CFBuQnL1.cjs → grg-DHDNZzvS.cjs} +1 -1
  163. package/dist/{gridview-BhxlYHGR.cjs → gridview-C2eGcIgv.cjs} +1 -1
  164. package/dist/{gridview-BTGTAbxK.js → gridview-DsDgxIu-.js} +2 -2
  165. package/dist/{groundwaterFilterBar-BVxaSfzM.js → groundwaterFilterBar-CwNVHLoq.js} +2 -2
  166. package/dist/{groundwaterFilterBar-4SAnrU9X.cjs → groundwaterFilterBar-Dwoyvzll.cjs} +1 -1
  167. package/dist/{groundwaterProfileChart-DRv-gvDc.js → groundwaterProfileChart-pYkKSQRV.js} +3 -3
  168. package/dist/{groundwaterProfileChart-DnJvez9z.cjs → groundwaterProfileChart-xVZS96Bs.cjs} +2 -2
  169. package/dist/{groundwaterTimeCurve-8phEW2ri.cjs → groundwaterTimeCurve-CCP0yOcn.cjs} +1 -1
  170. package/dist/{groundwaterTimeCurve-BzBDRU4_.js → groundwaterTimeCurve-CRic1FkR.js} +3 -3
  171. package/dist/{groupCard-DhMy1k9J.cjs → groupCard-9mvfU5Qi.cjs} +1 -1
  172. package/dist/{groupCard-BPkVSNiL.js → groupCard-DyiQzmSU.js} +2 -2
  173. package/dist/{headerBar-BgTO4jul.cjs → headerBar-BnZZrxdl.cjs} +1 -1
  174. package/dist/{headerBar-DB-bjoAe.js → headerBar-CT2WWLFX.js} +2 -2
  175. package/dist/{history-D5cJ-xVg.js → history-CY_TCu9h.js} +18 -18
  176. package/dist/{history-DBDrYQmw.cjs → history-Dm7563t_.cjs} +1 -1
  177. package/dist/{index-C_ms8XdY.js → index-CPTJIw32.js} +1746 -1711
  178. package/dist/{index-DFbNT6Tf.cjs → index-DoEyCVDU.cjs} +10 -10
  179. package/dist/{insarDeformChart-DFF2bMqu.js → insarDeformChart-Bf6Q1Kll.js} +2 -2
  180. package/dist/{insarDeformChart-D_iGk8_3.cjs → insarDeformChart-D7r5dP7T.cjs} +1 -1
  181. package/dist/{insarImageViewer-BKewD3Uo.cjs → insarImageViewer-Cj6ywbUG.cjs} +1 -1
  182. package/dist/{insarImageViewer-B7UgA76F.js → insarImageViewer-CupmlYkz.js} +2 -2
  183. package/dist/{kds-CukCJwVJ.cjs → kds-BXJfeT1L.cjs} +1 -1
  184. package/dist/{kds-CacS9fZ_.js → kds-vKrvUAFM.js} +58 -58
  185. package/dist/{kpiCard-DV13L2GU.js → kpiCard-DxJnC2K1.js} +2 -2
  186. package/dist/{kpiCard-Cnm06jxN.cjs → kpiCard-SXeIckZe.cjs} +1 -1
  187. package/dist/{landslideMap-OIYysiUs.cjs → landslideMap-Byzuh2uI.cjs} +1 -1
  188. package/dist/{landslideMap-BPWu1Ajk.js → landslideMap-g1sW7hGk.js} +3 -3
  189. package/dist/{landslideWarning-K5mjIcfY.cjs → landslideWarning-DBYw20My.cjs} +1 -1
  190. package/dist/{landslideWarning-BjlYD19b.js → landslideWarning-K2gltHjy.js} +19 -19
  191. package/dist/{layerTabs-DTSAS0n2.js → layerTabs-DhKwbCdm.js} +2 -2
  192. package/dist/{layerTabs-D7fMZ0rB.cjs → layerTabs-pQHCSR8d.cjs} +1 -1
  193. package/dist/{leaflet-src-CzptRGB3.cjs → leaflet-src-BNvMLv27.cjs} +1 -1
  194. package/dist/{leaflet-src-BfJff719.js → leaflet-src-CLsvhZ1a.js} +1 -1
  195. package/dist/{lerc-CF_nGsay.cjs → lerc-7GSCiwa9.cjs} +1 -1
  196. package/dist/{lerc-CFhWDnG0.js → lerc-CqUbnv8h.js} +2 -2
  197. package/dist/{lin-CkatVtoy.js → lin-Bq35ycag.js} +6 -6
  198. package/dist/{lin-D0heXXjR.cjs → lin-D0itRkyl.cjs} +1 -1
  199. package/dist/{linIndass-DCv39q33.cjs → linIndass-DWiz2vOV.cjs} +1 -1
  200. package/dist/{linIndass-By83Npy7.js → linIndass-DYq4eFAR.js} +23 -23
  201. package/dist/{lst-BnazAvWe.cjs → lst-DdajeugL.cjs} +1 -1
  202. package/dist/{lst-DwAjJP5h.js → lst-qvTez4v1.js} +2 -2
  203. package/dist/{manualEntry-D3rJV8Lp.js → manualEntry-D33u42uH.js} +2 -2
  204. package/dist/{manualEntry-DuTfyZYG.cjs → manualEntry-s4RAoEru.cjs} +1 -1
  205. package/dist/{mapBackground-CJ6ix48H.js → mapBackground-DM72oEn2.js} +3 -3
  206. package/dist/{mapBackground-Cmhuw3k0.cjs → mapBackground-YtkaIPHY.cjs} +1 -1
  207. package/dist/{mappingList-5Rz-rwrk.cjs → mappingList-Ch1HZwNc.cjs} +1 -1
  208. package/dist/{mappingList-CGrZiJZB.js → mappingList-Dy_UeCUf.js} +4 -4
  209. package/dist/{markdownViewer-Dno96jfr.cjs → markdownViewer-DUjEXMVH.cjs} +1 -1
  210. package/dist/{markdownViewer-7WA9BEdg.js → markdownViewer-ZlwNlmLZ.js} +6 -6
  211. package/dist/{mix-control-modal-DgoayPIU.cjs → mix-control-modal-B3FrB7Jt.cjs} +1 -1
  212. package/dist/{mix-control-modal-Byfb7C-0.js → mix-control-modal-tXOouBPe.js} +8 -8
  213. package/dist/{mixGrid-Bhl9sZNP.cjs → mixGrid-BU9U3aHI.cjs} +1 -1
  214. package/dist/{mixGrid-kCUUwHZr.js → mixGrid-CogLsRzO.js} +2 -2
  215. package/dist/mixdashboards.cjs +1 -1
  216. package/dist/mixdashboards.css +1 -1
  217. package/dist/mixdashboards.js +4 -4
  218. package/dist/{mjpegCamera-B1eioIqH.cjs → mjpegCamera-g6FXbrP3.cjs} +1 -1
  219. package/dist/{mjpegCamera-Dpfu2Xu6.js → mjpegCamera-xUmmLzM-.js} +2 -2
  220. package/dist/{monitorAlert-Dyxl86qu.cjs → monitorAlert-DZd5lJOJ.cjs} +1 -1
  221. package/dist/{monitorAlert-9zu3QFtA.js → monitorAlert-DhE_HvpR.js} +21 -21
  222. package/dist/{monitorData-CNI-qmu9.js → monitorData-BnEkcdiN.js} +8 -8
  223. package/dist/{monitorData-BcilR5l6.cjs → monitorData-CpWVhINV.cjs} +1 -1
  224. package/dist/{monitorSpeedChart-DRfPueFf.js → monitorSpeedChart-CeW-Kk03.js} +1 -1
  225. package/dist/{monitorSpeedChart-CF67tIu3.cjs → monitorSpeedChart-DwsoytUF.cjs} +1 -1
  226. package/dist/{mxa-Bh2bYtVW.cjs → mxa-0DZWI1xK.cjs} +1 -1
  227. package/dist/{mxa-CuLqVCIj.js → mxa-C58deh1I.js} +4 -4
  228. package/dist/{myValue-B50MoOtL.js → myValue-B4ADQTTG.js} +2 -2
  229. package/dist/{myValue-DMJxfT2O.cjs → myValue-DQLm9XLI.cjs} +1 -1
  230. package/dist/{myValueList-BZzwxNxa.cjs → myValueList-DZA9_HEh.cjs} +1 -1
  231. package/dist/{myValueList-B_3_3_pi.js → myValueList-baXd51uR.js} +2 -2
  232. package/dist/{objectList-TMPUnr7O.js → objectList-5m0NKALq.js} +4 -4
  233. package/dist/{objectList-BGh1VKcK.cjs → objectList-BHmAruDg.cjs} +1 -1
  234. package/dist/{objectListAPP-Bc-piPZb.js → objectListAPP-COZlfKyw.js} +3 -3
  235. package/dist/{objectListAPP-30bQNnu8.cjs → objectListAPP-Cs7Wu_86.cjs} +1 -1
  236. package/dist/{percentBar-BprMUT7A.js → percentBar-BV6nG2iK.js} +15 -15
  237. package/dist/{percentBar-D4xt6lAd.cjs → percentBar-CPfJrspp.cjs} +1 -1
  238. package/dist/{photo-zl-fLPWx.cjs → photo-C4739K_A.cjs} +1 -1
  239. package/dist/{photo-DsEC_PV_.js → photo-DK4Z23e3.js} +15 -15
  240. package/dist/{pie-CUxR3v01.js → pie-Lx2zjyZY.js} +2 -2
  241. package/dist/{pie-DWhlbF_v.cjs → pie-kb79hzax.cjs} +1 -1
  242. package/dist/{placeholder-BZFA8p97.cjs → placeholder-CAWJju9d.cjs} +1 -1
  243. package/dist/{placeholder-DqKmmoWY.js → placeholder-Cv_i5j6V.js} +1 -1
  244. package/dist/{pressBtn-DIUaklZ-.cjs → pressBtn-DPp2yGFb.cjs} +1 -1
  245. package/dist/{pressBtn-B2XC73jR.js → pressBtn-DwN7ExMn.js} +7 -7
  246. package/dist/{processTable-DkOH9QSb.js → processTable-DRzy2-fX.js} +2 -2
  247. package/dist/{processTable-BTx3mQeL.cjs → processTable-kGjdZ2SC.cjs} +1 -1
  248. package/dist/{progressBar-xgdal-aW.cjs → progressBar-89gQ5oSf.cjs} +1 -1
  249. package/dist/{progressBar-BLodNQVU.js → progressBar-D5GyaH8h.js} +2 -2
  250. package/dist/{progressCircle-CFUGOwCj.js → progressCircle-C0qoN2X2.js} +2 -2
  251. package/dist/{progressCircle-cTY4gz07.cjs → progressCircle-D6jGTviS.cjs} +1 -1
  252. package/dist/{qrcode-2Hjwjwae.js → qrcode-B7wIdO7u.js} +2 -2
  253. package/dist/{qrcode-DQhhuhb6.cjs → qrcode-DutO28qr.cjs} +1 -1
  254. package/dist/{raceBar-CyXnZF-3.js → raceBar-JrtM5isa.js} +5 -5
  255. package/dist/{raceBar-DcF016MT.cjs → raceBar-Kb4Ok0_0.cjs} +1 -1
  256. package/dist/{rad-B14cTKz2.cjs → rad-BKh0I2W8.cjs} +1 -1
  257. package/dist/{rad-DTJntmoq.js → rad-NhNcdAlO.js} +2 -2
  258. package/dist/{radarMapViewer-TsQZJeIK.js → radarMapViewer-BrGy_wsI.js} +2 -2
  259. package/dist/{radarMapViewer-BUB-m2dW.cjs → radarMapViewer-a-NY9MyR.cjs} +1 -1
  260. package/dist/{rainfallFilterBar-KdmV5zS5.js → rainfallFilterBar-CiVPGG1P.js} +2 -2
  261. package/dist/{rainfallFilterBar-B8up2RIh.cjs → rainfallFilterBar-DlJryHw0.cjs} +1 -1
  262. package/dist/{rainfallTimeCurve-Doj6yOAF.js → rainfallTimeCurve-BwrlePpg.js} +3 -3
  263. package/dist/{rainfallTimeCurve-CiXa2eZ3.cjs → rainfallTimeCurve-cYcKHYUj.cjs} +1 -1
  264. package/dist/{rangeLin-Dpq9Tvnx.cjs → rangeLin-B24wJK2h.cjs} +1 -1
  265. package/dist/{rangeLin-D1CqDmua.js → rangeLin-CPKLO87X.js} +18 -18
  266. package/dist/{realtimeEvolutionMap-DPXP3VM4.cjs → realtimeEvolutionMap-CHQ7-WE1.cjs} +1 -1
  267. package/dist/{realtimeEvolutionMap-Dl7vcNX_.js → realtimeEvolutionMap-ZFozACoZ.js} +2 -2
  268. package/dist/{regionBar-BwpGCKZj.js → regionBar-Cz4GtJuo.js} +2 -2
  269. package/dist/{regionBar-lxLnSNLC.cjs → regionBar-Dgv2JYSM.cjs} +1 -1
  270. package/dist/{request-DTE7aSW-.cjs → request-Dm2cf1Aw.cjs} +1 -1
  271. package/dist/{request-CbeEcJTO.js → request-aXSa-Jdv.js} +24 -24
  272. package/dist/{retainer1-D67S-YCN.js → retainer1-B4KyW6bw.js} +3 -3
  273. package/dist/{retainer1-C9AaH4tJ.cjs → retainer1-B6byWkE5.cjs} +1 -1
  274. package/dist/{retainer2-D8XYk-l4.cjs → retainer2-B06eGTYw.cjs} +1 -1
  275. package/dist/{retainer2-Cbdmf703.js → retainer2-X6vRW_D5.js} +3 -3
  276. package/dist/{retainerRecordList-CQjYV-M3.cjs → retainerRecordList-C8wYAf_v.cjs} +1 -1
  277. package/dist/{retainerRecordList-BpK_6Dnu.js → retainerRecordList-DDZSYpCF.js} +4 -4
  278. package/dist/{retainerRecordListAPP-BFGsCYj8.js → retainerRecordListAPP-B2Lp-jHM.js} +3 -3
  279. package/dist/{retainerRecordListAPP-CN59kp5A.cjs → retainerRecordListAPP-BHu691JS.cjs} +1 -1
  280. package/dist/{ringTopN-BeX_3N1q.cjs → ringTopN-BpJZOE13.cjs} +1 -1
  281. package/dist/{ringTopN-5r3Oe5jp.js → ringTopN-DX7OzPp7.js} +2 -2
  282. package/dist/{riskRegionTable-NiRJaNeQ.js → riskRegionTable-D7blgvMi.js} +2 -2
  283. package/dist/{riskRegionTable-DoSf3hpC.cjs → riskRegionTable-DziKMS_2.cjs} +1 -1
  284. package/dist/{sankey-ByGbWPFb.js → sankey-CmgfktZj.js} +14 -14
  285. package/dist/{sankey-Bnpk9cLQ.cjs → sankey-DjC4IYit.cjs} +1 -1
  286. package/dist/{scd-CnENqnZz.cjs → scd-QV9whYOR.cjs} +1 -1
  287. package/dist/{scd-Cfds38KL.js → scd-zUFKqN8p.js} +2 -2
  288. package/dist/{sideMenu-BPaBkvIX.js → sideMenu-CI23QNpx.js} +2 -2
  289. package/dist/{sideMenu-CXIHqey7.cjs → sideMenu-POQpSa8C.cjs} +1 -1
  290. package/dist/{slopeStability-Dl-cz8Fw.cjs → slopeStability-Da70drIy.cjs} +1 -1
  291. package/dist/{slopeStability-C9Hla3Dk.js → slopeStability-E55huDws.js} +24 -24
  292. package/dist/{speedCurve-kxsxCadk.js → speedCurve-BhhUH79z.js} +2 -2
  293. package/dist/{speedCurve-E6CSZYlW.cjs → speedCurve-DSX1UJeW.cjs} +1 -1
  294. package/dist/{stackedBar-Bh3u04a1.cjs → stackedBar-B0kr6QB7.cjs} +1 -1
  295. package/dist/{stackedBar-agXLBb7l.js → stackedBar-bgd2Ls04.js} +2 -2
  296. package/dist/stationList-BSPTM0iI.cjs +1 -0
  297. package/dist/{stationList-BUGSaLOZ.js → stationList-D7k3Lot6.js} +243 -239
  298. package/dist/{stressFilterBar-DP_KLGts.cjs → stressFilterBar-B3gk67B_.cjs} +1 -1
  299. package/dist/{stressFilterBar-HdY7po9C.js → stressFilterBar-Beupo7Zb.js} +2 -2
  300. package/dist/{stressTimeCurve-B6s5FgJE.cjs → stressTimeCurve-CbhFLXzA.cjs} +1 -1
  301. package/dist/{stressTimeCurve-ItQcQKdH.js → stressTimeCurve-DGBhkdbV.js} +3 -3
  302. package/dist/{swiper-D6TV4ZCd.js → swiper-BEau8Ehu.js} +2 -2
  303. package/dist/{swiper-Buxmd32g.cjs → swiper-UlVDFht8.cjs} +1 -1
  304. package/dist/{tablemanCreate-wybANxe3.cjs → tablemanCreate-CF_D5gYW.cjs} +1 -1
  305. package/dist/{tablemanCreate-CZgA3PsQ.js → tablemanCreate-WnNbHft8.js} +3 -3
  306. package/dist/{tablemanDetail-BRTZJyW5.cjs → tablemanDetail-_SNevfWv.cjs} +1 -1
  307. package/dist/{tablemanDetail-DfWhFk1K.js → tablemanDetail-yz3zQnFP.js} +36 -36
  308. package/dist/{tablemanList-BO_NeJgz.cjs → tablemanList-CDJWp9Pu.cjs} +1 -1
  309. package/dist/{tablemanList-BaOBHZ0V.js → tablemanList-CzcVRDtI.js} +4 -4
  310. package/dist/{tablemanTableList-Dbq82Z-h.js → tablemanTableList-Bm2fU0EX.js} +4 -4
  311. package/dist/{tablemanTableList-sMrfmiA9.cjs → tablemanTableList-DX76_Wzv.cjs} +1 -1
  312. package/dist/{tablemanUpdate-VmkxfpIh.cjs → tablemanUpdate-wdF6NUSW.cjs} +1 -1
  313. package/dist/{tablemanUpdate-KALCUbVd.js → tablemanUpdate-zmDu6tfj.js} +3 -3
  314. package/dist/{terminalConfigList-DjFLDQih.js → terminalConfigList-CCTkfKIn.js} +4 -4
  315. package/dist/{terminalConfigList-BVI2GPl0.cjs → terminalConfigList-Dpktm7uo.cjs} +1 -1
  316. package/dist/{terminalList-DQeF169Z.js → terminalList-DTG1Cd-P.js} +4 -4
  317. package/dist/{terminalList-DuW8drr5.cjs → terminalList-DlnAYr5c.cjs} +1 -1
  318. package/dist/{terminalListAPP-Brlll6Fx.js → terminalListAPP-BXX0YEmN.js} +3 -3
  319. package/dist/{terminalListAPP-D1ZHyTf5.cjs → terminalListAPP-DcG5Iu89.cjs} +1 -1
  320. package/dist/{textbox-DDpkVlaw.cjs → textbox-C5DmbaFz.cjs} +1 -1
  321. package/dist/{textbox-mnxb35mH.js → textbox-DyFcEXBF.js} +2 -2
  322. package/dist/{timeQueryBar-EKkIhz9m.js → timeQueryBar-BbWq3QkA.js} +1 -1
  323. package/dist/{timeQueryBar-BQD19vDp.cjs → timeQueryBar-OqKVqlTl.cjs} +1 -1
  324. package/dist/{timeSeries-CDjeGZKo.cjs → timeSeries-BDp-gfRT.cjs} +1 -1
  325. package/dist/{timeSeries-Bk2N1A6L.js → timeSeries-D_-6XcY8.js} +13 -13
  326. package/dist/{timeSeriesCurve-BRrpaqU8.js → timeSeriesCurve-DgSGvMqB.js} +3 -3
  327. package/dist/{timeSeriesCurve-CA5W-Oir.cjs → timeSeriesCurve-KPYndFEq.cjs} +1 -1
  328. package/dist/{toggleBtn-WYU3IUc8.js → toggleBtn-D0JJAMZR.js} +2 -2
  329. package/dist/{toggleBtn-CGYR01jI.cjs → toggleBtn-DtS2UoB4.cjs} +1 -1
  330. package/dist/{trajectoryConfigPanel-y4bXsrXJ.cjs → trajectoryConfigPanel-Bth1LMLN.cjs} +1 -1
  331. package/dist/{trajectoryConfigPanel-BdTmJQzP.js → trajectoryConfigPanel-DxBIMfEx.js} +1 -1
  332. package/dist/{trajectoryScatter-Clb_fUfI.js → trajectoryScatter-DqgFAVSz.js} +42 -42
  333. package/dist/{trajectoryScatter-CQik1fcT.cjs → trajectoryScatter-GkbJne40.cjs} +1 -1
  334. package/dist/{universalConfigPanel-B5k_qOEq.js → universalConfigPanel-BjyXE23U.js} +1 -1
  335. package/dist/{universalConfigPanel-Dfbc5SvD.cjs → universalConfigPanel-C4Teu_Op.cjs} +1 -1
  336. package/dist/{universalTable-DoiFrrZH.js → universalTable-BVwrJKq8.js} +2 -2
  337. package/dist/{universalTable-CcQq8qmA.cjs → universalTable-D_rkyBG2.cjs} +1 -1
  338. package/dist/{useMixiotPanelPopperClass-BAb3JPdj.js → useMixiotPanelPopperClass-C6Y6iPSp.js} +3 -3
  339. package/dist/{useMixiotPanelPopperClass-B0l54_PF.cjs → useMixiotPanelPopperClass-DmA-0R1V.cjs} +1 -1
  340. package/dist/{useTablemanApi-D4G6rvXH.cjs → useTablemanApi-Big2Hfsi.cjs} +1 -1
  341. package/dist/{useTablemanApi-BXR_OKzO.js → useTablemanApi-CJh5jpVJ.js} +1 -1
  342. package/dist/{useTablemanFormPanel-JcWza2YJ.js → useTablemanFormPanel-CvrN_jY3.js} +2 -2
  343. package/dist/{useTablemanFormPanel-DTcITWwz.cjs → useTablemanFormPanel-prjUDI9m.cjs} +1 -1
  344. package/dist/{useTablemanListActions-COZ3zBoW.cjs → useTablemanListActions-B9SrCZRt.cjs} +1 -1
  345. package/dist/{useTablemanListActions-BUFJCLAW.js → useTablemanListActions-DVQL1pwu.js} +5 -5
  346. package/dist/{video-DylR59_l.cjs → video-CdMEjVoF.cjs} +1 -1
  347. package/dist/{video-CtiQVOnv.js → video-DDHDy4Eq.js} +2 -2
  348. package/dist/{videoMonitor-tBmgk3mm.cjs → videoMonitor-BZcjaMPX.cjs} +1 -1
  349. package/dist/{videoMonitor-8rqFRzST.js → videoMonitor-JQ4tj-qi.js} +11 -11
  350. package/dist/{vlu-B93iwAL3.cjs → vlu-39EqfkCs.cjs} +1 -1
  351. package/dist/{vlu-Bvbgox5l.js → vlu-Bmqrgnj8.js} +2 -2
  352. package/dist/{warningOverview-Drd9VneD.js → warningOverview-Ctab9k92.js} +3 -3
  353. package/dist/{warningOverview-igfNPVvg.cjs → warningOverview-DOsI-iKt.cjs} +1 -1
  354. package/dist/{weather-BVB786-I.cjs → weather-BfV-w4FG.cjs} +1 -1
  355. package/dist/{weather-Db_sZvLk.js → weather-BwTT4bPM.js} +2 -2
  356. package/dist/{windLin-D09MKfNK.cjs → windLin-Dfz6aBio.cjs} +1 -1
  357. package/dist/{windLin-M0ehkFjJ.js → windLin-DgZctBal.js} +2 -2
  358. package/package.json +1 -1
  359. package/dist/stationList-CnwkdvHq.cjs +0 -1
@@ -36,10 +36,10 @@ import { R as Zn, k as Jn, S as Kn, l as Qn, W as eo, m as xt, A as to, n as no,
36
36
  import { O as fo } from "./OrbitControls-BHOrUcwg.js";
37
37
  import { C as mo, a as ho } from "./CSS2DRenderer-BpZog3-L.js";
38
38
  import { M as tn, a as go } from "./ExtensionUtilities-D6MxZMHR.js";
39
- import { _ as et, d as ut } from "./index-C_ms8XdY.js";
40
- import { B as yo } from "./BaseComponent-Bv3RJ3vA.js";
39
+ import { _ as et, d as ut } from "./index-CPTJIw32.js";
40
+ import { B as yo } from "./BaseComponent-Dn65PXTp.js";
41
41
  import { g as bo } from "./titleStyle-BT5GlpAb.js";
42
- import { L as Ge } from "./leaflet-src-BfJff719.js";
42
+ import { L as Ge } from "./leaflet-src-CLsvhZ1a.js";
43
43
  /* empty css */
44
44
  import { A as wo, D as ko } from "./ele-glbModel-icon-l_SMi3ik.js";
45
45
  function Zt(r) {
@@ -1,4 +1,4 @@
1
- "use strict";var ye=Object.defineProperty,ve=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var be=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var Q=(L,o,n)=>o in L?ye(L,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):L[o]=n,ee=(L,o)=>{for(var n in o||(o={}))be.call(o,n)&&Q(L,n,o[n]);if(K)for(var n of K(o))we.call(o,n)&&Q(L,n,o[n]);return L},te=(L,o)=>ve(L,ge(o));var oe=(L,o,n)=>new Promise((m,l)=>{var a=f=>{try{d(n.next(f))}catch(S){l(S)}},r=f=>{try{d(n.throw(f))}catch(S){l(S)}},d=f=>f.done?m(f.value):Promise.resolve(f.value).then(a,r);d((n=n.apply(L,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");require("html2canvas");const Ce=require("./BaseComponent-DdC8fmD6.cjs"),ke=require("./index-DFbNT6Tf.cjs"),g=require("./three.module-CjayKmiG.cjs"),_e=require("./GLTFLoader-DhebSl5W.cjs"),Se=require("./OrbitControls-uuLGjaqy.cjs"),re=require("./CSS2DRenderer-nQ2DN9Uc.cjs"),ne=require("./ele-glbModel-icon-ByACDCrv.cjs"),W=new WeakMap;class Ae extends g.Loader{constructor(o){super(o),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(o){return this.decoderPath=o,this}setDecoderConfig(o){return this.decoderConfig=o,this}setWorkerLimit(o){return this.workerLimit=o,this}load(o,n,m,l){const a=new g.FileLoader(this.manager);a.setPath(this.path),a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(o,r=>{this.parse(r,n,l)},m,l)}parse(o,n,m=()=>{}){this.decodeDracoFile(o,n,null,null,g.SRGBColorSpace,m).catch(m)}decodeDracoFile(o,n,m,l,a=g.LinearSRGBColorSpace,r=()=>{}){const d={attributeIDs:m||this.defaultAttributeIDs,attributeTypes:l||this.defaultAttributeTypes,useUniqueIDs:!!m,vertexColorSpace:a};return this.decodeGeometry(o,d).then(n).catch(r)}decodeGeometry(o,n){const m=JSON.stringify(n);if(W.has(o)){const f=W.get(o);if(f.key===m)return f.promise;if(o.byteLength===0)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let l;const a=this.workerNextTaskID++,r=o.byteLength,d=this._getWorker(a,r).then(f=>(l=f,new Promise((S,A)=>{l._callbacks[a]={resolve:S,reject:A},l.postMessage({type:"decode",id:a,taskConfig:n,buffer:o},[o])}))).then(f=>this._createGeometry(f.geometry));return d.catch(()=>!0).then(()=>{l&&a&&this._releaseTask(l,a)}),W.set(o,{key:m,promise:d}),d}_createGeometry(o){const n=new g.BufferGeometry;o.index&&n.setIndex(new g.BufferAttribute(o.index.array,1));for(let m=0;m<o.attributes.length;m++){const l=o.attributes[m],a=l.name,r=l.array,d=l.itemSize,f=new g.BufferAttribute(r,d);a==="color"&&(this._assignVertexColorSpace(f,l.vertexColorSpace),f.normalized=!(r instanceof Float32Array)),n.setAttribute(a,f)}return n}_assignVertexColorSpace(o,n){if(n!==g.SRGBColorSpace)return;const m=new g.Color;for(let l=0,a=o.count;l<a;l++)m.fromBufferAttribute(o,l),g.ColorManagement.toWorkingColorSpace(m,g.SRGBColorSpace),o.setXYZ(l,m.r,m.g,m.b)}_loadLibrary(o,n){const m=new g.FileLoader(this.manager);return m.setPath(this.decoderPath),m.setResponseType(n),m.setWithCredentials(this.withCredentials),new Promise((l,a)=>{m.load(o,l,void 0,a)})}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const o=typeof WebAssembly!="object"||this.decoderConfig.type==="js",n=[];return o?n.push(this._loadLibrary("draco_decoder.js","text")):(n.push(this._loadLibrary("draco_wasm_wrapper.js","text")),n.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(n).then(m=>{const l=m[0];o||(this.decoderConfig.wasmBinary=m[1]);const a=Le.toString(),r=["/* draco decoder */",l,"","/* worker */",a.substring(a.indexOf("{")+1,a.lastIndexOf("}"))].join(`
1
+ "use strict";var ye=Object.defineProperty,ve=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var be=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var Q=(L,o,n)=>o in L?ye(L,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):L[o]=n,ee=(L,o)=>{for(var n in o||(o={}))be.call(o,n)&&Q(L,n,o[n]);if(K)for(var n of K(o))we.call(o,n)&&Q(L,n,o[n]);return L},te=(L,o)=>ve(L,ge(o));var oe=(L,o,n)=>new Promise((m,l)=>{var a=f=>{try{d(n.next(f))}catch(S){l(S)}},r=f=>{try{d(n.throw(f))}catch(S){l(S)}},d=f=>f.done?m(f.value):Promise.resolve(f.value).then(a,r);d((n=n.apply(L,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");require("html2canvas");const Ce=require("./BaseComponent-DKuQG62G.cjs"),ke=require("./index-DoEyCVDU.cjs"),g=require("./three.module-CjayKmiG.cjs"),_e=require("./GLTFLoader-DhebSl5W.cjs"),Se=require("./OrbitControls-uuLGjaqy.cjs"),re=require("./CSS2DRenderer-nQ2DN9Uc.cjs"),ne=require("./ele-glbModel-icon-ByACDCrv.cjs"),W=new WeakMap;class Ae extends g.Loader{constructor(o){super(o),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(o){return this.decoderPath=o,this}setDecoderConfig(o){return this.decoderConfig=o,this}setWorkerLimit(o){return this.workerLimit=o,this}load(o,n,m,l){const a=new g.FileLoader(this.manager);a.setPath(this.path),a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(o,r=>{this.parse(r,n,l)},m,l)}parse(o,n,m=()=>{}){this.decodeDracoFile(o,n,null,null,g.SRGBColorSpace,m).catch(m)}decodeDracoFile(o,n,m,l,a=g.LinearSRGBColorSpace,r=()=>{}){const d={attributeIDs:m||this.defaultAttributeIDs,attributeTypes:l||this.defaultAttributeTypes,useUniqueIDs:!!m,vertexColorSpace:a};return this.decodeGeometry(o,d).then(n).catch(r)}decodeGeometry(o,n){const m=JSON.stringify(n);if(W.has(o)){const f=W.get(o);if(f.key===m)return f.promise;if(o.byteLength===0)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let l;const a=this.workerNextTaskID++,r=o.byteLength,d=this._getWorker(a,r).then(f=>(l=f,new Promise((S,A)=>{l._callbacks[a]={resolve:S,reject:A},l.postMessage({type:"decode",id:a,taskConfig:n,buffer:o},[o])}))).then(f=>this._createGeometry(f.geometry));return d.catch(()=>!0).then(()=>{l&&a&&this._releaseTask(l,a)}),W.set(o,{key:m,promise:d}),d}_createGeometry(o){const n=new g.BufferGeometry;o.index&&n.setIndex(new g.BufferAttribute(o.index.array,1));for(let m=0;m<o.attributes.length;m++){const l=o.attributes[m],a=l.name,r=l.array,d=l.itemSize,f=new g.BufferAttribute(r,d);a==="color"&&(this._assignVertexColorSpace(f,l.vertexColorSpace),f.normalized=!(r instanceof Float32Array)),n.setAttribute(a,f)}return n}_assignVertexColorSpace(o,n){if(n!==g.SRGBColorSpace)return;const m=new g.Color;for(let l=0,a=o.count;l<a;l++)m.fromBufferAttribute(o,l),g.ColorManagement.toWorkingColorSpace(m,g.SRGBColorSpace),o.setXYZ(l,m.r,m.g,m.b)}_loadLibrary(o,n){const m=new g.FileLoader(this.manager);return m.setPath(this.decoderPath),m.setResponseType(n),m.setWithCredentials(this.withCredentials),new Promise((l,a)=>{m.load(o,l,void 0,a)})}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const o=typeof WebAssembly!="object"||this.decoderConfig.type==="js",n=[];return o?n.push(this._loadLibrary("draco_decoder.js","text")):(n.push(this._loadLibrary("draco_wasm_wrapper.js","text")),n.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(n).then(m=>{const l=m[0];o||(this.decoderConfig.wasmBinary=m[1]);const a=Le.toString(),r=["/* draco decoder */",l,"","/* worker */",a.substring(a.indexOf("{")+1,a.lastIndexOf("}"))].join(`
2
2
  `);this.workerSourceURL=URL.createObjectURL(new Blob([r]))}),this.decoderPending}_getWorker(o,n){return this._initDecoder().then(()=>{if(this.workerPool.length<this.workerLimit){const l=new Worker(this.workerSourceURL);l._callbacks={},l._taskCosts={},l._taskLoad=0,l.postMessage({type:"init",decoderConfig:this.decoderConfig}),l.onmessage=function(a){const r=a.data;switch(r.type){case"decode":l._callbacks[r.id].resolve(r);break;case"error":l._callbacks[r.id].reject(r);break;default:console.error('THREE.DRACOLoader: Unexpected message, "'+r.type+'"')}},this.workerPool.push(l)}else this.workerPool.sort(function(l,a){return l._taskLoad>a._taskLoad?-1:1});const m=this.workerPool[this.workerPool.length-1];return m._taskCosts[o]=n,m._taskLoad+=n,m})}_releaseTask(o,n){o._taskLoad-=o._taskCosts[n],delete o._callbacks[n],delete o._taskCosts[n]}debug(){console.log("Task load: ",this.workerPool.map(o=>o._taskLoad))}dispose(){for(let o=0;o<this.workerPool.length;++o)this.workerPool[o].terminate();return this.workerPool.length=0,this.workerSourceURL!==""&&URL.revokeObjectURL(this.workerSourceURL),this}}function Le(){let L,o;onmessage=function(r){const d=r.data;switch(d.type){case"init":L=d.decoderConfig,o=new Promise(function(A){L.onModuleLoaded=function(u){A({draco:u})},DracoDecoderModule(L)});break;case"decode":const f=d.buffer,S=d.taskConfig;o.then(A=>{const u=A.draco,h=new u.Decoder;try{const w=n(u,h,new Int8Array(f),S),k=w.attributes.map(y=>y.array.buffer);w.index&&k.push(w.index.array.buffer),self.postMessage({type:"decode",id:d.id,geometry:w},k)}catch(w){console.error(w),self.postMessage({type:"error",id:d.id,error:w.message})}finally{u.destroy(h)}});break}};function n(r,d,f,S){const A=S.attributeIDs,u=S.attributeTypes;let h,w;const k=d.GetEncodedGeometryType(f);if(k===r.TRIANGULAR_MESH)h=new r.Mesh,w=d.DecodeArrayToMesh(f,f.byteLength,h);else if(k===r.POINT_CLOUD)h=new r.PointCloud,w=d.DecodeArrayToPointCloud(f,f.byteLength,h);else throw new Error("THREE.DRACOLoader: Unexpected geometry type.");if(!w.ok()||h.ptr===0)throw new Error("THREE.DRACOLoader: Decoding failed: "+w.error_msg());const y={index:null,attributes:[]};for(const v in A){const D=self[u[v]];let O,I;if(S.useUniqueIDs)I=A[v],O=d.GetAttributeByUniqueId(h,I);else{if(I=d.GetAttributeId(h,r[A[v]]),I===-1)continue;O=d.GetAttribute(h,I)}const M=l(r,d,h,v,D,O);v==="color"&&(M.vertexColorSpace=S.vertexColorSpace),y.attributes.push(M)}return k===r.TRIANGULAR_MESH&&(y.index=m(r,d,h)),r.destroy(h),y}function m(r,d,f){const A=f.num_faces()*3,u=A*4,h=r._malloc(u);d.GetTrianglesUInt32Array(f,u,h);const w=new Uint32Array(r.HEAPF32.buffer,h,A).slice();return r._free(h),{array:w,itemSize:1}}function l(r,d,f,S,A,u){const h=u.num_components(),k=f.num_points()*h,y=k*A.BYTES_PER_ELEMENT,v=a(r,A),D=r._malloc(y);d.GetAttributeDataArrayForAllPoints(f,u,v,y,D);const O=new A(r.HEAPF32.buffer,D,k).slice();return r._free(D),{name:S,array:O,itemSize:h}}function a(r,d){switch(d){case Float32Array:return r.DT_FLOAT32;case Int8Array:return r.DT_INT8;case Int16Array:return r.DT_INT16;case Int32Array:return r.DT_INT32;case Uint8Array:return r.DT_UINT8;case Uint16Array:return r.DT_UINT16;case Uint32Array:return r.DT_UINT32}}}const xe={key:0,class:"loading-overlay"},De={key:1,class:"error-overlay"},Re={class:"error-text"},Ee={class:"component-modal-wrapper"},Te={DEFAULT_ICON:ne.DEFAULT_ICON,ACTIVE_ICON:ne.ACTIVE_ICON,NAME_CN:"三维模型",NAME_EN:"3D Model",ORDER:6,PLATFORM:["pc","screen"]},Me={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor",hideAlpha:!0},modelUrl:{value:"",type:"string",label:"component.glbModel.modelUrl"},modelScale:{value:1,type:"number",label:"component.glbModel.modelScale",min:.1,max:10,step:.1},autoRotate:{value:!0,type:"checkbox",label:"component.glbModel.autoRotate"},rotateSpeed:{value:1,type:"number",label:"component.glbModel.rotateSpeed",min:.1,max:5,step:.1},lightIntensity:{value:1,type:"number",label:"component.glbModel.lightIntensity",min:0,max:5,step:.1},cameraDistance:{value:5,type:"number",label:"component.glbModel.cameraDistance",min:1,max:20,step:.5}},Ie=[],Pe=["name","fv","object_id","icon","chartType","targetComponentId","posX","posY","posZ"],Oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Ne={useAlias:!1,multiObject:!1,source:"mosaic"},Ue={DEFAULT:Te,OPTIONS:Me,DATA:Ie,PARAMS:Pe,SOURCE:Oe,COMMON:Ne},ze=s.defineComponent(te(ee({},Ue),{__name:"glbModel",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(L,{expose:o}){s.useCssVars(e=>({c296d046:s.unref(a).bgColor}));const n=L;class m extends Ce.BaseComponent{extractStyles(){var c,i,p,C,_,x,R,E,U,P,z,q;const{options:t}=this.props.conf;return{bgColor:((c=t==null?void 0:t.bgColor)==null?void 0:c.value)||"#ffffff",modelUrl:((i=t==null?void 0:t.modelUrl)==null?void 0:i.value)||"",modelScale:(C=(p=t==null?void 0:t.modelScale)==null?void 0:p.value)!=null?C:1,autoRotate:(x=(_=t==null?void 0:t.autoRotate)==null?void 0:_.value)!=null?x:!0,rotateSpeed:(E=(R=t==null?void 0:t.rotateSpeed)==null?void 0:R.value)!=null?E:1,lightIntensity:(P=(U=t==null?void 0:t.lightIntensity)==null?void 0:U.value)!=null?P:1,cameraDistance:(q=(z=t==null?void 0:t.cameraDistance)==null?void 0:z.value)!=null?q:5}}}const l=new m(n,"glbModel");l.setupLifecycle();const a=l.getStyle(),r=s.ref(),d=s.ref(),f=s.ref(!1),S=s.ref(""),A=s.ref(a.value.autoRotate);let u,h,w,k,y,v,D=0,O,I;const M=s.ref([]),N=new Map,V=s.ref(!1),B=s.ref();let b=null;const $=()=>{if(b){const e=b._originalParent;e&&(e.appendChild(b),delete b._originalParent),b.style.visibility="hidden",b.style.position="absolute",b.style.zIndex="-1",b=null}V.value=!1,B.value&&(B.value.innerHTML="")},ae=()=>{var C;if(!d.value||!r.value)return;D&&(cancelAnimationFrame(D),D=0);const e=r.value.clientWidth,t=r.value.clientHeight;u=new g.Scene,u.background=new g.Color(a.value.bgColor),h=new g.PerspectiveCamera(45,e/t,.1,1e3),h.position.set(0,0,a.value.cameraDistance),w=new g.WebGLRenderer({canvas:d.value,antialias:!0,alpha:!0,powerPreference:"high-performance"}),w.setSize(e,t),w.setPixelRatio(Math.min(window.devicePixelRatio,2)),w.shadowMap.enabled=!1;const c=new g.AmbientLight(16777215,a.value.lightIntensity*.5);u.add(c);const i=new g.DirectionalLight(16777215,a.value.lightIntensity);i.position.set(5,5,5),u.add(i);const p=new g.DirectionalLight(16777215,a.value.lightIntensity*.3);p.position.set(-5,-5,-5),u.add(p),y=new Se.OrbitControls(h,w.domElement),y.enableDamping=!0,y.dampingFactor=.05,y.autoRotate=A.value,y.autoRotateSpeed=a.value.rotateSpeed,y.enableZoom=!0,y.enablePan=!1,y.enableRotate=!0,y.minDistance=.5,y.maxDistance=50,y.zoomSpeed=1,y.target.set(0,0,0),k=new re.CSS2DRenderer,k.setSize(e,t),k.domElement.style.position="absolute",k.domElement.style.top="0",k.domElement.style.left="0",k.domElement.style.pointerEvents="none",r.value.appendChild(k.domElement),O=new g.Raycaster,I=new g.Vector2,n.mode==="edit"&&((C=d.value)==null||C.addEventListener("dblclick",Y)),X()},se=e=>oe(null,null,function*(){if(!e){S.value="请设置模型URL";return}f.value=!0,S.value="";const t=new _e.GLTFLoader,c=new Ae;c.setDecoderPath("https://www.gstatic.com/draco/versioned/decoders/1.5.6/"),c.setDecoderConfig({type:"js"}),t.setDRACOLoader(c);try{const i=yield t.loadAsync(e);v&&(u.remove(v),v.traverse(T=>{T.geometry&&T.geometry.dispose(),T.material&&(Array.isArray(T.material)?T.material.forEach(j=>j.dispose()):T.material.dispose())})),v=i.scene;let p=0,C=0;v.traverse(T=>{if(T.isMesh&&T.material){p++;const j=J=>{const pe=J.color||new g.Color(13421772),he=J.map,H=new g.MeshStandardMaterial({color:pe,map:he,metalness:.2,roughness:.8});return delete H.onBuild,delete H.onBeforeCompile,C++,H};Array.isArray(T.material)?T.material=T.material.map(j):T.material=j(T.material)}});const _=new g.Box3().setFromObject(v),x=_.getSize(new g.Vector3),R=_.getCenter(new g.Vector3),E=Math.max(x.x,x.y,x.z),P=E>0?1/E:1;v.scale.setScalar(P*a.value.modelScale),v.position.x=-R.x*P*a.value.modelScale,v.position.y=-R.y*P*a.value.modelScale,v.position.z=-R.z*P*a.value.modelScale,u.add(v);const z=_.getSize(new g.Vector3),fe=Math.max(z.x,z.y,z.z)*P*2.5;h.position.set(0,0,Math.max(fe,a.value.cameraDistance)),y.update(),f.value=!1,me()}catch(i){S.value=`加载模型失败: ${i.message||"未知错误"}`,f.value=!1}}),X=()=>{if(!(!u||!h||!w||!y)){D=requestAnimationFrame(X);try{y.update(),w.render(u,h),k&&k.render(u,h)}catch(e){S.value=`渲染错误: ${e.message||"未知错误"}`,D&&(cancelAnimationFrame(D),D=0)}}},Y=e=>{var i,p;if(!v||!r.value)return;const t=r.value.getBoundingClientRect();I.x=(e.clientX-t.left)/t.width*2-1,I.y=-((e.clientY-t.top)/t.height)*2+1,O.setFromCamera(I,h);const c=O.intersectObject(v,!0);if(c.length>0){const C=c[0].point,_=v.worldToLocal(C.clone()),x=((p=(i=n.conf)==null?void 0:i.data)==null?void 0:p.length)||0,R={name:`标记 ${x+1}`,fv:"",object_id:"",icon:"🛜",posX:_.x,posY:_.y,posZ:_.z};n.conf&&Array.isArray(n.conf.data)&&n.conf.data.push(R);const E={id:`marker_${x}`,position:{x:_.x,y:_.y,z:_.z},label:R.name,objectId:"",fv:"",value:""};M.value.push(E),Z(E)}},Z=(e,t="📍")=>{const c=document.createElement("div");c.className="model-marker",c.dataset.markerId=e.id,c.innerHTML=`
3
3
  <div class="marker-icon">${t}</div>
4
4
  ${e.value?`<div class="marker-value">${e.value}</div>`:""}
@@ -28,8 +28,8 @@ var de = (S, o, r) => new Promise((u, i) => {
28
28
  });
29
29
  import { defineComponent as Te, useCssVars as Pe, unref as Ee, ref as U, watch as F, onMounted as Ie, onBeforeUnmount as Oe, openBlock as G, createElementBlock as q, createElementVNode as O, createCommentVNode as Z, toDisplayString as ze, createBlock as Ue, Teleport as Fe, withModifiers as ue, renderSlot as Ne, nextTick as je } from "vue";
30
30
  import "html2canvas";
31
- import { B as Be } from "./BaseComponent-Bv3RJ3vA.js";
32
- import { _ as Ge } from "./index-C_ms8XdY.js";
31
+ import { B as Be } from "./BaseComponent-Dn65PXTp.js";
32
+ import { _ as Ge } from "./index-CPTJIw32.js";
33
33
  import { U as He, X as me, Y as J, a6 as We, B as qe, a as fe, C as H, az as $e, S as Ve, l as Xe, W as Ye, A as pe, n as K, am as Ze, h as Je, V as Q, R as Ke, r as Qe } from "./three.module-DDLQaQWC.js";
34
34
  import { G as et } from "./GLTFLoader-nke8z0Ol.js";
35
35
  import { O as tt } from "./OrbitControls-BHOrUcwg.js";
@@ -10,13 +10,13 @@ var x = (p, i, u) => i in p ? Y(p, i, { enumerable: !0, configurable: !0, writab
10
10
  te.call(i, u) && x(p, u, i[u]);
11
11
  return p;
12
12
  }, F = (p, i) => Z(p, ee(i));
13
- import { ElSelect as ne, ElOption as oe } from "element-plus/es";
13
+ import { ElSelect as oe, ElOption as ne } from "element-plus/es";
14
14
  import "element-plus/es/components/base/style/css";
15
15
  import "element-plus/es/components/select/style/css";
16
16
  import "element-plus/es/components/option/style/css";
17
17
  import { defineComponent as ae, useCssVars as ce, computed as d, reactive as re, watch as se, openBlock as m, createElementBlock as y, normalizeStyle as ue, normalizeClass as ie, createElementVNode as f, toDisplayString as j, createVNode as P, withCtx as _, unref as z, Fragment as O, renderList as L, createBlock as v, renderSlot as pe } from "vue";
18
18
  import { u as de } from "./safeI18n-C5fF3KBo.js";
19
- import { n as be, _ as me } from "./index-C_ms8XdY.js";
19
+ import { o as be, _ as me } from "./index-CPTJIw32.js";
20
20
  import { A as fe, D as ge } from "./ele-ctrSet-icon-BtKGrCid.js";
21
21
  const ve = { class: "section-header" }, he = { class: "section-title" }, ye = { class: "object-toolbar" }, Ce = { class: "toolbar-field" }, Se = { class: "field-label" }, ke = { class: "toolbar-field object-input-field" }, Ve = { class: "field-label" }, je = {
22
22
  DEFAULT_ICON: ge,
@@ -105,12 +105,12 @@ const ve = { class: "section-header" }, he = { class: "section-title" }, ye = {
105
105
  var e;
106
106
  return a.module ? a.module : Array.isArray((e = a.conf) == null ? void 0 : e.data) ? a.conf.data[0] || {} : a.conf || {};
107
107
  }), h = d(() => {
108
- var l, t, o, n, r;
108
+ var l, t, n, o, r;
109
109
  const e = ((l = a.conf) == null ? void 0 : l.options) || {};
110
110
  return {
111
111
  backgroundColor: ((t = e == null ? void 0 : e.bgColor) == null ? void 0 : t.value) || "#ffffff",
112
- color: ((o = e == null ? void 0 : e.textColor) == null ? void 0 : o.value) || a.textColor,
113
- borderColor: ((n = e == null ? void 0 : e.borderColor) == null ? void 0 : n.value) || a.borderColor,
112
+ color: ((n = e == null ? void 0 : e.textColor) == null ? void 0 : n.value) || a.textColor,
113
+ borderColor: ((o = e == null ? void 0 : e.borderColor) == null ? void 0 : o.value) || a.borderColor,
114
114
  "--accent-color": ((r = e == null ? void 0 : e.accentColor) == null ? void 0 : r.value) || a.accentColor
115
115
  };
116
116
  }), R = d(() => {
@@ -148,8 +148,8 @@ const ve = { class: "section-header" }, he = { class: "section-title" }, ye = {
148
148
  }), K = d(() => {
149
149
  const e = /* @__PURE__ */ new Set();
150
150
  return C.value.forEach((l) => {
151
- var o;
152
- const t = String((o = l == null ? void 0 : l.remark) != null ? o : "").trim();
151
+ var n;
152
+ const t = String((n = l == null ? void 0 : l.remark) != null ? n : "").trim();
153
153
  t && e.add(t);
154
154
  }), Array.from(e);
155
155
  }), c = re({
@@ -159,49 +159,49 @@ const ve = { class: "section-header" }, he = { class: "section-title" }, ye = {
159
159
  }), S = d(() => {
160
160
  const e = String(c.selectedGroup || "").trim();
161
161
  return C.value.filter((l) => {
162
- var o;
163
- const t = String((o = l == null ? void 0 : l.remark) != null ? o : "");
162
+ var n;
163
+ const t = String((n = l == null ? void 0 : l.remark) != null ? n : "");
164
164
  return !(e && t !== e);
165
165
  });
166
166
  }), H = () => {
167
- var l, t, o, n, r;
167
+ var l, t, n, o, r;
168
168
  const e = a.state && typeof a.state == "object" ? a.state : {};
169
- c.selectedGroup = String(e.selectedGroup || ""), (l = s.value) != null && l.multiple ? (Array.isArray(e.selectedValues) ? c.selectedValues = [...e.selectedValues] : Array.isArray((t = s.value) == null ? void 0 : t.value) ? c.selectedValues = [...s.value.value] : c.selectedValues = [], c.selectedValue = "") : (c.selectedValue = (r = (n = e.selectedValue) != null ? n : (o = s.value) == null ? void 0 : o.value) != null ? r : "", c.selectedValues = []);
169
+ c.selectedGroup = String(e.selectedGroup || ""), (l = s.value) != null && l.multiple ? (Array.isArray(e.selectedValues) ? c.selectedValues = [...e.selectedValues] : Array.isArray((t = s.value) == null ? void 0 : t.value) ? c.selectedValues = [...s.value.value] : c.selectedValues = [], c.selectedValue = "") : (c.selectedValue = (r = (o = e.selectedValue) != null ? o : (n = s.value) == null ? void 0 : n.value) != null ? r : "", c.selectedValues = []);
170
170
  }, W = () => {
171
- var o, n, r;
172
- const e = ((o = a.conf) == null ? void 0 : o.options) || {}, l = ((n = e == null ? void 0 : e.linkChannel) == null ? void 0 : n.value) || "deepDisplacement", t = ((r = e == null ? void 0 : e.customChannel) == null ? void 0 : r.value) || "";
171
+ var n, o, r;
172
+ const e = ((n = a.conf) == null ? void 0 : n.options) || {}, l = ((o = e == null ? void 0 : e.linkChannel) == null ? void 0 : o.value) || "deepDisplacement", t = ((r = e == null ? void 0 : e.customChannel) == null ? void 0 : r.value) || "";
173
173
  return l === "custom" && t ? t : l;
174
174
  }, q = (e) => {
175
175
  var b, E;
176
176
  const l = String(((b = s.value) == null ? void 0 : b.lengthKey) || "length"), t = C.value.find((k) => {
177
177
  var w;
178
178
  return String((w = k == null ? void 0 : k.value) != null ? w : "") === String(e);
179
- }), o = t == null ? void 0 : t[l], n = Number(o);
180
- if (Number.isFinite(n) && n >= 0) return n;
179
+ }), n = t == null ? void 0 : t[l], o = Number(n);
180
+ if (Number.isFinite(o) && o >= 0) return o;
181
181
  const r = Number((E = s.value) == null ? void 0 : E.defaultLength);
182
182
  return Number.isFinite(r) && r >= 0 ? r : 200;
183
183
  }, Q = () => {
184
184
  var r, b;
185
- const e = String(((r = s.value) == null ? void 0 : r.key) || "objectId"), l = ((b = s.value) == null ? void 0 : b.multiple) === !0, t = l ? [...c.selectedValues || []] : c.selectedValue, o = String(l ? (c.selectedValues || [])[0] || "" : c.selectedValue || ""), n = q(o);
185
+ const e = String(((r = s.value) == null ? void 0 : r.key) || "objectId"), l = ((b = s.value) == null ? void 0 : b.multiple) === !0, t = l ? [...c.selectedValues || []] : c.selectedValue, n = String(l ? (c.selectedValues || [])[0] || "" : c.selectedValue || ""), o = q(n);
186
186
  return {
187
187
  [e]: t,
188
- objectId: o,
189
- objectLength: n,
188
+ objectId: n,
189
+ objectLength: o,
190
190
  depthStep: 1,
191
191
  objectGroup: c.selectedGroup || ""
192
192
  };
193
193
  }, I = () => {
194
194
  var r;
195
- const e = W(), l = String(((r = s.value) == null ? void 0 : r.targetId) || "").trim(), t = Q(), o = l ? l.split(",").map((b) => b.trim()).filter((b) => b) : [], n = V({
195
+ const e = W(), l = String(((r = s.value) == null ? void 0 : r.targetId) || "").trim(), t = Q(), n = l ? l.split(",").map((b) => b.trim()).filter((b) => b) : [], o = V({
196
196
  source: "globalObjectSelector",
197
197
  type: "filter",
198
198
  objectId: t.objectId,
199
199
  objectLength: t.objectLength,
200
200
  depthStep: t.depthStep,
201
201
  filter: t,
202
- meta: { channel: e, routeTargets: o }
202
+ meta: { channel: e, routeTargets: n }
203
203
  }, t);
204
- M.publish(e, "globalObjectSelector", n);
204
+ M.publish(e, "globalObjectSelector", o);
205
205
  }, T = () => {
206
206
  var e;
207
207
  !a.state || typeof a.state != "object" || (a.state.selectedGroup = c.selectedGroup, (e = s.value) != null && e.multiple ? a.state.selectedValues = [...c.selectedValues || []] : a.state.selectedValue = c.selectedValue);
@@ -209,9 +209,9 @@ const ve = { class: "section-header" }, he = { class: "section-title" }, ye = {
209
209
  var l, t;
210
210
  const e = S.value;
211
211
  if ((l = s.value) != null && l.multiple) {
212
- const o = new Set(e.map((n) => n.value));
213
- c.selectedValues = (c.selectedValues || []).filter((n) => o.has(n));
214
- } else e.some((o) => o.value === c.selectedValue) || (c.selectedValue = ((t = e[0]) == null ? void 0 : t.value) || "");
212
+ const n = new Set(e.map((o) => o.value));
213
+ c.selectedValues = (c.selectedValues || []).filter((o) => n.has(o));
214
+ } else e.some((n) => n.value === c.selectedValue) || (c.selectedValue = ((t = e[0]) == null ? void 0 : t.value) || "");
215
215
  T(), I(), A("change");
216
216
  }, N = () => {
217
217
  T(), I(), A("change");
@@ -224,7 +224,7 @@ const ve = { class: "section-header" }, he = { class: "section-title" }, ye = {
224
224
  () => H(),
225
225
  { immediate: !0, deep: !0 }
226
226
  ), (e, l) => {
227
- const t = oe, o = ne;
227
+ const t = ne, n = oe;
228
228
  return m(), y("div", {
229
229
  class: ie(["object-select-section", { "hide-section-title": R.value }]),
230
230
  style: ue(h.value)
@@ -235,9 +235,9 @@ const ve = { class: "section-header" }, he = { class: "section-title" }, ye = {
235
235
  f("div", ye, [
236
236
  f("div", Ce, [
237
237
  f("span", Se, j($.value), 1),
238
- P(o, {
238
+ P(n, {
239
239
  modelValue: c.selectedGroup,
240
- "onUpdate:modelValue": l[0] || (l[0] = (n) => c.selectedGroup = n),
240
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => c.selectedGroup = o),
241
241
  clearable: "",
242
242
  placeholder: B.value,
243
243
  size: "small",
@@ -249,10 +249,10 @@ const ve = { class: "section-header" }, he = { class: "section-title" }, ye = {
249
249
  label: z(u)("component.openpitConfigPanel.allOptionLabel"),
250
250
  value: ""
251
251
  }, null, 8, ["label"]),
252
- (m(!0), y(O, null, L(K.value, (n) => (m(), v(t, {
253
- key: n,
254
- label: n,
255
- value: n
252
+ (m(!0), y(O, null, L(K.value, (o) => (m(), v(t, {
253
+ key: o,
254
+ label: o,
255
+ value: o
256
256
  }, null, 8, ["label", "value"]))), 128))
257
257
  ]),
258
258
  _: 1
@@ -260,10 +260,10 @@ const ve = { class: "section-header" }, he = { class: "section-title" }, ye = {
260
260
  ]),
261
261
  f("div", ke, [
262
262
  f("span", Ve, j(J.value), 1),
263
- s.value.multiple ? (m(), v(o, {
263
+ s.value.multiple ? (m(), v(n, {
264
264
  key: 1,
265
265
  modelValue: c.selectedValues,
266
- "onUpdate:modelValue": l[2] || (l[2] = (n) => c.selectedValues = n),
266
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => c.selectedValues = o),
267
267
  multiple: "",
268
268
  filterable: "",
269
269
  "collapse-tags": "",
@@ -274,17 +274,17 @@ const ve = { class: "section-header" }, he = { class: "section-title" }, ye = {
274
274
  onChange: N
275
275
  }, {
276
276
  default: _(() => [
277
- (m(!0), y(O, null, L(S.value, (n) => (m(), v(t, {
278
- key: n.value,
279
- label: n.remark ? `${n.label}(${n.remark})` : n.label,
280
- value: n.value
277
+ (m(!0), y(O, null, L(S.value, (o) => (m(), v(t, {
278
+ key: o.value,
279
+ label: o.remark ? `${o.label}(${o.remark})` : o.label,
280
+ value: o.value
281
281
  }, null, 8, ["label", "value"]))), 128))
282
282
  ]),
283
283
  _: 1
284
- }, 8, ["modelValue", "placeholder"])) : (m(), v(o, {
284
+ }, 8, ["modelValue", "placeholder"])) : (m(), v(n, {
285
285
  key: 0,
286
286
  modelValue: c.selectedValue,
287
- "onUpdate:modelValue": l[1] || (l[1] = (n) => c.selectedValue = n),
287
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => c.selectedValue = o),
288
288
  filterable: "",
289
289
  clearable: "",
290
290
  size: "small",
@@ -297,10 +297,10 @@ const ve = { class: "section-header" }, he = { class: "section-title" }, ye = {
297
297
  label: z(u)("component.openpitConfigPanel.allOptionLabel"),
298
298
  value: ""
299
299
  }, null, 8, ["label"]),
300
- (m(!0), y(O, null, L(S.value, (n) => (m(), v(t, {
301
- key: n.value,
302
- label: n.remark ? `${n.label}(${n.remark})` : n.label,
303
- value: n.value
300
+ (m(!0), y(O, null, L(S.value, (o) => (m(), v(t, {
301
+ key: o.value,
302
+ label: o.remark ? `${o.label}(${o.remark})` : o.label,
303
+ value: o.value
304
304
  }, null, 8, ["label", "value"]))), 128))
305
305
  ]),
306
306
  _: 1
@@ -1 +1 @@
1
- "use strict";var $=Object.defineProperty,J=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var L=(d,p,i)=>p in d?$(d,p,{enumerable:!0,configurable:!0,writable:!0,value:i}):d[p]=i,C=(d,p)=>{for(var i in p||(p={}))H.call(p,i)&&L(d,i,p[i]);if(O)for(var i of O(p))W.call(p,i)&&L(d,i,p[i]);return d},N=(d,p)=>J(d,K(p));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue"),Q=require("./safeI18n-D-TYNVsv.cjs"),I=require("./index-DFbNT6Tf.cjs"),E=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),X={class:"section-header"},Y={class:"section-title"},Z={class:"object-toolbar"},ee={class:"toolbar-field"},le={class:"field-label"},te={class:"toolbar-field object-input-field"},oe={class:"field-label"},ne={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"全局对象切换",NAME_EN:"Global Object Selector",ORDER:21,PLATFORM:["pc","screen"]},ae={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.options.accentColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"},hideSectionTitle:{value:!1,type:"switch",label:"component.openpitConfigPanel.hideSectionTitle"},sectionTitle:{value:"对象切换",type:"string",label:"component.openpitConfigPanel.label"},groupLabel:{value:"分组",type:"string",label:"component.openpitConfigPanel.objectSelectGroupLabel"},inputLabel:{value:"对象",type:"string",label:"component.openpitConfigPanel.objectSelectInputLabel"},groupPlaceholder:{value:"请选择分组",type:"string",label:"component.openpitConfigPanel.objectSelectGroupPlaceholder"},inputPlaceholder:{value:"请选择对象",type:"string",label:"component.openpitConfigPanel.objectSelectInputPlaceholder"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},ce=[{key:"objectId",multiple:!1,lengthKey:"length",defaultLength:200,options:[{label:"SJ45",value:"SJ45",remark:"北帮",length:80},{label:"SJ46",value:"SJ46",remark:"南帮",length:100}]}],re=[{key:"key",label:"component.openpitConfigPanel.key",type:"string"},{key:"multiple",label:"component.openpitConfigPanel.multiple",type:"switch"},{key:"lengthKey",label:"component.openpitConfigPanel.lengthKey",type:"string"},{key:"defaultLength",label:"component.openpitConfigPanel.defaultLength",type:"number"},{key:"options",label:"component.openpitConfigPanel.options",type:"table",columns:[{key:"label",label:"component.openpitConfigPanel.optionLabel",type:"string"},{key:"value",label:"component.openpitConfigPanel.optionValue",type:"string"},{key:"remark",label:"component.openpitConfigPanel.optionRemark",type:"string"},{key:"length",label:"component.openpitConfigPanel.optionLength",type:"number"}]}],se=[],ue={useAlias:!1,multiObject:!1,source:""},ie={DEFAULT:ne,OPTIONS:ae,DATA:ce,PARAMS:re,SOURCE:se,COMMON:ue},pe=t.defineComponent(N(C({},ie),{__name:"globalObjectSelector",props:{module:{type:Object,default:null},conf:{type:Object,default:null},state:{type:Object,default:null},uid:{type:String,default:""},hideSectionTitle:{type:Boolean,default:!1},textColor:{type:String,default:"#333333"},accentColor:{type:String,default:"#409eff"},borderColor:{type:String,default:"#e5e5e5"}},emits:["change"],setup(d,{emit:p}){t.useCssVars(e=>({v47807a88:f.value.backgroundColor,v72954404:f.value.borderColor,v238b3fec:f.value.color}));const{t:i}=Q.useSafeI18n(),B=I.useLinkStore(),c=d,y=p,u=t.computed(()=>{var e;return c.module?c.module:Array.isArray((e=c.conf)==null?void 0:e.data)?c.conf.data[0]||{}:c.conf||{}}),f=t.computed(()=>{var l,o,a,n,s;const e=((l=c.conf)==null?void 0:l.options)||{};return{backgroundColor:((o=e==null?void 0:e.bgColor)==null?void 0:o.value)||"#ffffff",color:((a=e==null?void 0:e.textColor)==null?void 0:a.value)||c.textColor,borderColor:((n=e==null?void 0:e.borderColor)==null?void 0:n.value)||c.borderColor,"--accent-color":((s=e==null?void 0:e.accentColor)==null?void 0:s.value)||c.accentColor}}),T=t.computed(()=>{var l,o;const e=((l=c.conf)==null?void 0:l.options)||{};return c.hideSectionTitle||((o=e==null?void 0:e.hideSectionTitle)==null?void 0:o.value)===!0}),b=(e,l)=>e?String(e).includes(".")?i(String(e)):String(e):i(l),G=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.sectionTitle)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectLabel")}),w=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.groupLabel)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectGroupLabel")}),D=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.groupPlaceholder)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectGroupPlaceholder")}),x=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.inputLabel)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectInputLabel")}),S=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.inputPlaceholder)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectInputPlaceholder")}),g=t.computed(()=>{var l;const e=(l=u.value)==null?void 0:l.options;if(Array.isArray(e))return e;if(!e)return[];if(typeof e=="string")try{const o=JSON.parse(e);return Array.isArray(o)?o:[]}catch(o){return[]}return[]}),F=t.computed(()=>{const e=new Set;return g.value.forEach(l=>{var a;const o=String((a=l==null?void 0:l.remark)!=null?a:"").trim();o&&e.add(o)}),Array.from(e)}),r=t.reactive({selectedGroup:"",selectedValue:"",selectedValues:[]}),v=t.computed(()=>{const e=String(r.selectedGroup||"").trim();return g.value.filter(l=>{var a;const o=String((a=l==null?void 0:l.remark)!=null?a:"");return!(e&&o!==e)})}),q=()=>{var l,o,a,n,s;const e=c.state&&typeof c.state=="object"?c.state:{};r.selectedGroup=String(e.selectedGroup||""),(l=u.value)!=null&&l.multiple?(Array.isArray(e.selectedValues)?r.selectedValues=[...e.selectedValues]:Array.isArray((o=u.value)==null?void 0:o.value)?r.selectedValues=[...u.value.value]:r.selectedValues=[],r.selectedValue=""):(r.selectedValue=(s=(n=e.selectedValue)!=null?n:(a=u.value)==null?void 0:a.value)!=null?s:"",r.selectedValues=[])},M=()=>{var a,n,s;const e=((a=c.conf)==null?void 0:a.options)||{},l=((n=e==null?void 0:e.linkChannel)==null?void 0:n.value)||"deepDisplacement",o=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return l==="custom"&&o?o:l},z=e=>{var m,P;const l=String(((m=u.value)==null?void 0:m.lengthKey)||"length"),o=g.value.find(h=>{var _;return String((_=h==null?void 0:h.value)!=null?_:"")===String(e)}),a=o==null?void 0:o[l],n=Number(a);if(Number.isFinite(n)&&n>=0)return n;const s=Number((P=u.value)==null?void 0:P.defaultLength);return Number.isFinite(s)&&s>=0?s:200},U=()=>{var s,m;const e=String(((s=u.value)==null?void 0:s.key)||"objectId"),l=((m=u.value)==null?void 0:m.multiple)===!0,o=l?[...r.selectedValues||[]]:r.selectedValue,a=String(l?(r.selectedValues||[])[0]||"":r.selectedValue||""),n=z(a);return{[e]:o,objectId:a,objectLength:n,depthStep:1,objectGroup:r.selectedGroup||""}},k=()=>{var s;const e=M(),l=String(((s=u.value)==null?void 0:s.targetId)||"").trim(),o=U(),a=l?l.split(",").map(m=>m.trim()).filter(m=>m):[],n=C({source:"globalObjectSelector",type:"filter",objectId:o.objectId,objectLength:o.objectLength,depthStep:o.depthStep,filter:o,meta:{channel:e,routeTargets:a}},o);B.publish(e,"globalObjectSelector",n)},V=()=>{var e;!c.state||typeof c.state!="object"||(c.state.selectedGroup=r.selectedGroup,(e=u.value)!=null&&e.multiple?c.state.selectedValues=[...r.selectedValues||[]]:c.state.selectedValue=r.selectedValue)},R=()=>{var l,o;const e=v.value;if((l=u.value)!=null&&l.multiple){const a=new Set(e.map(n=>n.value));r.selectedValues=(r.selectedValues||[]).filter(n=>a.has(n))}else e.some(a=>a.value===r.selectedValue)||(r.selectedValue=((o=e[0])==null?void 0:o.value)||"");V(),k(),y("change")},j=()=>{V(),k(),y("change")};return t.watch(()=>{var e,l,o;return[c.state,(e=u.value)==null?void 0:e.multiple,(l=u.value)==null?void 0:l.value,(o=u.value)==null?void 0:o.options]},()=>q(),{immediate:!0,deep:!0}),(e,l)=>{const o=A.ElOption,a=A.ElSelect;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["object-select-section",{"hide-section-title":T.value}]),style:t.normalizeStyle(f.value)},[t.createElementVNode("div",X,[t.createElementVNode("span",Y,t.toDisplayString(G.value),1)]),t.createElementVNode("div",Z,[t.createElementVNode("div",ee,[t.createElementVNode("span",le,t.toDisplayString(w.value),1),t.createVNode(a,{modelValue:r.selectedGroup,"onUpdate:modelValue":l[0]||(l[0]=n=>r.selectedGroup=n),clearable:"",placeholder:D.value,size:"small",class:"select-control",onChange:R},{default:t.withCtx(()=>[t.createVNode(o,{label:t.unref(i)("component.openpitConfigPanel.allOptionLabel"),value:""},null,8,["label"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(F.value,n=>(t.openBlock(),t.createBlock(o,{key:n,label:n,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),t.createElementVNode("div",te,[t.createElementVNode("span",oe,t.toDisplayString(x.value),1),u.value.multiple?(t.openBlock(),t.createBlock(a,{key:1,modelValue:r.selectedValues,"onUpdate:modelValue":l[2]||(l[2]=n=>r.selectedValues=n),multiple:"",filterable:"","collapse-tags":"","collapse-tags-tooltip":"",size:"small",placeholder:S.value,class:"select-control select-control-wide",onChange:j},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.value,n=>(t.openBlock(),t.createBlock(o,{key:n.value,label:n.remark?`${n.label}(${n.remark})`:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])):(t.openBlock(),t.createBlock(a,{key:0,modelValue:r.selectedValue,"onUpdate:modelValue":l[1]||(l[1]=n=>r.selectedValue=n),filterable:"",clearable:"",size:"small",placeholder:S.value,class:"select-control",onChange:j},{default:t.withCtx(()=>[t.createVNode(o,{label:t.unref(i)("component.openpitConfigPanel.allOptionLabel"),value:""},null,8,["label"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.value,n=>(t.openBlock(),t.createBlock(o,{key:n.value,label:n.remark?`${n.label}(${n.remark})`:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]))])]),t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}}})),de=I._export_sfc(pe,[["__scopeId","data-v-ca0a35cd"]]);exports.default=de;
1
+ "use strict";var $=Object.defineProperty,J=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var L=(d,p,i)=>p in d?$(d,p,{enumerable:!0,configurable:!0,writable:!0,value:i}):d[p]=i,C=(d,p)=>{for(var i in p||(p={}))H.call(p,i)&&L(d,i,p[i]);if(O)for(var i of O(p))W.call(p,i)&&L(d,i,p[i]);return d},N=(d,p)=>J(d,K(p));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue"),Q=require("./safeI18n-D-TYNVsv.cjs"),I=require("./index-DoEyCVDU.cjs"),E=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),X={class:"section-header"},Y={class:"section-title"},Z={class:"object-toolbar"},ee={class:"toolbar-field"},le={class:"field-label"},te={class:"toolbar-field object-input-field"},oe={class:"field-label"},ne={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"全局对象切换",NAME_EN:"Global Object Selector",ORDER:21,PLATFORM:["pc","screen"]},ae={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.options.accentColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"},hideSectionTitle:{value:!1,type:"switch",label:"component.openpitConfigPanel.hideSectionTitle"},sectionTitle:{value:"对象切换",type:"string",label:"component.openpitConfigPanel.label"},groupLabel:{value:"分组",type:"string",label:"component.openpitConfigPanel.objectSelectGroupLabel"},inputLabel:{value:"对象",type:"string",label:"component.openpitConfigPanel.objectSelectInputLabel"},groupPlaceholder:{value:"请选择分组",type:"string",label:"component.openpitConfigPanel.objectSelectGroupPlaceholder"},inputPlaceholder:{value:"请选择对象",type:"string",label:"component.openpitConfigPanel.objectSelectInputPlaceholder"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},ce=[{key:"objectId",multiple:!1,lengthKey:"length",defaultLength:200,options:[{label:"SJ45",value:"SJ45",remark:"北帮",length:80},{label:"SJ46",value:"SJ46",remark:"南帮",length:100}]}],re=[{key:"key",label:"component.openpitConfigPanel.key",type:"string"},{key:"multiple",label:"component.openpitConfigPanel.multiple",type:"switch"},{key:"lengthKey",label:"component.openpitConfigPanel.lengthKey",type:"string"},{key:"defaultLength",label:"component.openpitConfigPanel.defaultLength",type:"number"},{key:"options",label:"component.openpitConfigPanel.options",type:"table",columns:[{key:"label",label:"component.openpitConfigPanel.optionLabel",type:"string"},{key:"value",label:"component.openpitConfigPanel.optionValue",type:"string"},{key:"remark",label:"component.openpitConfigPanel.optionRemark",type:"string"},{key:"length",label:"component.openpitConfigPanel.optionLength",type:"number"}]}],se=[],ue={useAlias:!1,multiObject:!1,source:""},ie={DEFAULT:ne,OPTIONS:ae,DATA:ce,PARAMS:re,SOURCE:se,COMMON:ue},pe=t.defineComponent(N(C({},ie),{__name:"globalObjectSelector",props:{module:{type:Object,default:null},conf:{type:Object,default:null},state:{type:Object,default:null},uid:{type:String,default:""},hideSectionTitle:{type:Boolean,default:!1},textColor:{type:String,default:"#333333"},accentColor:{type:String,default:"#409eff"},borderColor:{type:String,default:"#e5e5e5"}},emits:["change"],setup(d,{emit:p}){t.useCssVars(e=>({v47807a88:f.value.backgroundColor,v72954404:f.value.borderColor,v238b3fec:f.value.color}));const{t:i}=Q.useSafeI18n(),B=I.useLinkStore(),c=d,y=p,u=t.computed(()=>{var e;return c.module?c.module:Array.isArray((e=c.conf)==null?void 0:e.data)?c.conf.data[0]||{}:c.conf||{}}),f=t.computed(()=>{var l,o,a,n,s;const e=((l=c.conf)==null?void 0:l.options)||{};return{backgroundColor:((o=e==null?void 0:e.bgColor)==null?void 0:o.value)||"#ffffff",color:((a=e==null?void 0:e.textColor)==null?void 0:a.value)||c.textColor,borderColor:((n=e==null?void 0:e.borderColor)==null?void 0:n.value)||c.borderColor,"--accent-color":((s=e==null?void 0:e.accentColor)==null?void 0:s.value)||c.accentColor}}),T=t.computed(()=>{var l,o;const e=((l=c.conf)==null?void 0:l.options)||{};return c.hideSectionTitle||((o=e==null?void 0:e.hideSectionTitle)==null?void 0:o.value)===!0}),b=(e,l)=>e?String(e).includes(".")?i(String(e)):String(e):i(l),G=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.sectionTitle)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectLabel")}),w=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.groupLabel)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectGroupLabel")}),D=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.groupPlaceholder)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectGroupPlaceholder")}),x=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.inputLabel)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectInputLabel")}),S=t.computed(()=>{var e,l,o;return b((o=(l=(e=c.conf)==null?void 0:e.options)==null?void 0:l.inputPlaceholder)==null?void 0:o.value,"component.openpitConfigPanel.objectSelectInputPlaceholder")}),g=t.computed(()=>{var l;const e=(l=u.value)==null?void 0:l.options;if(Array.isArray(e))return e;if(!e)return[];if(typeof e=="string")try{const o=JSON.parse(e);return Array.isArray(o)?o:[]}catch(o){return[]}return[]}),F=t.computed(()=>{const e=new Set;return g.value.forEach(l=>{var a;const o=String((a=l==null?void 0:l.remark)!=null?a:"").trim();o&&e.add(o)}),Array.from(e)}),r=t.reactive({selectedGroup:"",selectedValue:"",selectedValues:[]}),v=t.computed(()=>{const e=String(r.selectedGroup||"").trim();return g.value.filter(l=>{var a;const o=String((a=l==null?void 0:l.remark)!=null?a:"");return!(e&&o!==e)})}),q=()=>{var l,o,a,n,s;const e=c.state&&typeof c.state=="object"?c.state:{};r.selectedGroup=String(e.selectedGroup||""),(l=u.value)!=null&&l.multiple?(Array.isArray(e.selectedValues)?r.selectedValues=[...e.selectedValues]:Array.isArray((o=u.value)==null?void 0:o.value)?r.selectedValues=[...u.value.value]:r.selectedValues=[],r.selectedValue=""):(r.selectedValue=(s=(n=e.selectedValue)!=null?n:(a=u.value)==null?void 0:a.value)!=null?s:"",r.selectedValues=[])},M=()=>{var a,n,s;const e=((a=c.conf)==null?void 0:a.options)||{},l=((n=e==null?void 0:e.linkChannel)==null?void 0:n.value)||"deepDisplacement",o=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return l==="custom"&&o?o:l},z=e=>{var m,P;const l=String(((m=u.value)==null?void 0:m.lengthKey)||"length"),o=g.value.find(h=>{var _;return String((_=h==null?void 0:h.value)!=null?_:"")===String(e)}),a=o==null?void 0:o[l],n=Number(a);if(Number.isFinite(n)&&n>=0)return n;const s=Number((P=u.value)==null?void 0:P.defaultLength);return Number.isFinite(s)&&s>=0?s:200},U=()=>{var s,m;const e=String(((s=u.value)==null?void 0:s.key)||"objectId"),l=((m=u.value)==null?void 0:m.multiple)===!0,o=l?[...r.selectedValues||[]]:r.selectedValue,a=String(l?(r.selectedValues||[])[0]||"":r.selectedValue||""),n=z(a);return{[e]:o,objectId:a,objectLength:n,depthStep:1,objectGroup:r.selectedGroup||""}},k=()=>{var s;const e=M(),l=String(((s=u.value)==null?void 0:s.targetId)||"").trim(),o=U(),a=l?l.split(",").map(m=>m.trim()).filter(m=>m):[],n=C({source:"globalObjectSelector",type:"filter",objectId:o.objectId,objectLength:o.objectLength,depthStep:o.depthStep,filter:o,meta:{channel:e,routeTargets:a}},o);B.publish(e,"globalObjectSelector",n)},V=()=>{var e;!c.state||typeof c.state!="object"||(c.state.selectedGroup=r.selectedGroup,(e=u.value)!=null&&e.multiple?c.state.selectedValues=[...r.selectedValues||[]]:c.state.selectedValue=r.selectedValue)},R=()=>{var l,o;const e=v.value;if((l=u.value)!=null&&l.multiple){const a=new Set(e.map(n=>n.value));r.selectedValues=(r.selectedValues||[]).filter(n=>a.has(n))}else e.some(a=>a.value===r.selectedValue)||(r.selectedValue=((o=e[0])==null?void 0:o.value)||"");V(),k(),y("change")},j=()=>{V(),k(),y("change")};return t.watch(()=>{var e,l,o;return[c.state,(e=u.value)==null?void 0:e.multiple,(l=u.value)==null?void 0:l.value,(o=u.value)==null?void 0:o.options]},()=>q(),{immediate:!0,deep:!0}),(e,l)=>{const o=A.ElOption,a=A.ElSelect;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["object-select-section",{"hide-section-title":T.value}]),style:t.normalizeStyle(f.value)},[t.createElementVNode("div",X,[t.createElementVNode("span",Y,t.toDisplayString(G.value),1)]),t.createElementVNode("div",Z,[t.createElementVNode("div",ee,[t.createElementVNode("span",le,t.toDisplayString(w.value),1),t.createVNode(a,{modelValue:r.selectedGroup,"onUpdate:modelValue":l[0]||(l[0]=n=>r.selectedGroup=n),clearable:"",placeholder:D.value,size:"small",class:"select-control",onChange:R},{default:t.withCtx(()=>[t.createVNode(o,{label:t.unref(i)("component.openpitConfigPanel.allOptionLabel"),value:""},null,8,["label"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(F.value,n=>(t.openBlock(),t.createBlock(o,{key:n,label:n,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),t.createElementVNode("div",te,[t.createElementVNode("span",oe,t.toDisplayString(x.value),1),u.value.multiple?(t.openBlock(),t.createBlock(a,{key:1,modelValue:r.selectedValues,"onUpdate:modelValue":l[2]||(l[2]=n=>r.selectedValues=n),multiple:"",filterable:"","collapse-tags":"","collapse-tags-tooltip":"",size:"small",placeholder:S.value,class:"select-control select-control-wide",onChange:j},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.value,n=>(t.openBlock(),t.createBlock(o,{key:n.value,label:n.remark?`${n.label}(${n.remark})`:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])):(t.openBlock(),t.createBlock(a,{key:0,modelValue:r.selectedValue,"onUpdate:modelValue":l[1]||(l[1]=n=>r.selectedValue=n),filterable:"",clearable:"",size:"small",placeholder:S.value,class:"select-control",onChange:j},{default:t.withCtx(()=>[t.createVNode(o,{label:t.unref(i)("component.openpitConfigPanel.allOptionLabel"),value:""},null,8,["label"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.value,n=>(t.openBlock(),t.createBlock(o,{key:n.value,label:n.remark?`${n.label}(${n.remark})`:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"]))])]),t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}}})),de=I._export_sfc(pe,[["__scopeId","data-v-ca0a35cd"]]);exports.default=de;
@@ -1 +1 @@
1
- "use strict";var Z=Object.defineProperty,ee=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var j=(c,n,i)=>n in c?Z(c,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[n]=i,P=(c,n)=>{for(var i in n||(n={}))le.call(n,i)&&j(c,i,n[i]);if(L)for(var i of L(n))ae.call(n,i)&&j(c,i,n[i]);return c},H=(c,n)=>ee(c,te(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=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/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue");require("html2canvas");const oe=require("./BaseComponent-DdC8fmD6.cjs"),d=require("./index-DFbNT6Tf.cjs"),q=require("./ele-lin-icon-Dke_1AmT.cjs"),ne={class:"filter-bar"},re={key:0,class:"filter-item"},ie={key:1,class:"filter-item"},se={key:2,class:"filter-item"},ce={key:3,class:"filter-item"},ue={class:"time-range-btns"},de=["onClick"],me={key:4,class:"filter-item date-picker-item"},pe={DEFAULT_ICON:q.DEFAULT_ICON,ACTIVE_ICON:q.ACTIVE_ICON,NAME_CN:"GNSS筛选栏",NAME_EN:"GNSS Filter Bar",ORDER:1,PLATFORM:["pc","screen"]},ve={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},labelColor:{value:"#1c3d90",type:"color",label:"标签文字颜色"},borderColor:{value:"#e8ecef",type:"color",label:"边框颜色"},btnActiveColor:{value:"#409eff",type:"color",label:"按钮激活颜色"},padding:{value:8,type:"number",label:"component.options.padding",min:0,max:40},fontSize:{value:13,type:"number",label:"字体大小",min:10,max:20},showAreaFilter:{value:!0,type:"checkbox",label:"显示区域筛选"},showLineFilter:{value:!0,type:"checkbox",label:"显示监测线筛选"},showPointFilter:{value:!0,type:"checkbox",label:"显示监测点筛选"},showTimeRange:{value:!0,type:"checkbox",label:"显示时间范围"},showDatePicker:{value:!0,type:"checkbox",label:"显示日期选择器"},showQueryBtn:{value:!0,type:"checkbox",label:"显示查询按钮"},defaultTimeRange:{value:"1d",type:"select",label:"默认时间范围",options:[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}]},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},fe=[{object_id:"",area:"北帮",line:"1号线",point:"35"},{object_id:"",area:"北帮",line:"1号线",point:"55"},{object_id:"",area:"北帮",line:"2号线",point:"110"},{object_id:"",area:"东帮",line:"3号线",point:"33"}],be=["object_id","area","line","point"],ye=["mosaic"],ke={useAlias:!1,multiObject:!0,source:"mosaic"},ge={DEFAULT:pe,OPTIONS:ve,DATA:fe,PARAMS:be,SOURCE:ye,COMMON:ke},he=t.defineComponent(H(P({},ge),{__name:"gnssFilterBar",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){const n=c;class i extends oe.BaseComponent{extractStyles(){var v,f,a,C,B,S,E,V,N,x,R,F,A,D,Y,T,M,z,O;const e=(v=this.props.conf)==null?void 0:v.options,s=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"gnss",u=((a=e==null?void 0:e.customChannel)==null?void 0:a.value)||"";return{bgColor:((C=e==null?void 0:e.bgColor)==null?void 0:C.value)||"#ffffff",textColor:((B=e==null?void 0:e.textColor)==null?void 0:B.value)||"#333333",labelColor:((S=e==null?void 0:e.labelColor)==null?void 0:S.value)||"#1c3d90",borderColor:((E=e==null?void 0:e.borderColor)==null?void 0:E.value)||"#e8ecef",btnActiveColor:((V=e==null?void 0:e.btnActiveColor)==null?void 0:V.value)||"#409eff",padding:(x=(N=e==null?void 0:e.padding)==null?void 0:N.value)!=null?x:8,fontSize:(F=(R=e==null?void 0:e.fontSize)==null?void 0:R.value)!=null?F:13,showAreaFilter:((A=e==null?void 0:e.showAreaFilter)==null?void 0:A.value)!==!1,showLineFilter:((D=e==null?void 0:e.showLineFilter)==null?void 0:D.value)!==!1,showPointFilter:((Y=e==null?void 0:e.showPointFilter)==null?void 0:Y.value)!==!1,showTimeRange:((T=e==null?void 0:e.showTimeRange)==null?void 0:T.value)!==!1,showDatePicker:((M=e==null?void 0:e.showDatePicker)==null?void 0:M.value)!==!1,showQueryBtn:((z=e==null?void 0:e.showQueryBtn)==null?void 0:z.value)!==!1,defaultTimeRange:((O=e==null?void 0:e.defaultTimeRange)==null?void 0:O.value)||"1d",linkChannel:s==="custom"&&u?u:s}}}const m=new i(n,"gnssFilterBar");m.setupLifecycle();const r=m.getStyle(),w=t.computed(()=>{var l;return((l=n.conf)==null?void 0:l.data)||[]}),y=t.computed(()=>{const l=new Set;return w.value.filter(e=>e.point&&!l.has(e.point)?(l.add(e.point),!0):!1)}),I=t.computed(()=>{const l=new Set;return y.value.forEach(e=>e.area&&l.add(e.area)),Array.from(l).map(e=>({label:e,value:e}))}),_=t.computed(()=>{const l=new Set;return y.value.filter(e=>e.area===o.area).forEach(e=>e.line&&l.add(e.line)),Array.from(l).map(e=>({label:e,value:e}))}),k=t.computed(()=>{const l=new Set;return y.value.filter(e=>e.area===o.area&&e.line===o.line).forEach(e=>e.point&&l.add(e.point)),Array.from(l).map(e=>({label:e,value:e}))}),U=[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}],g=(()=>{var e;const l=(((e=n.conf)==null?void 0:e.data)||[]).find(s=>!!s.point);return{area:(l==null?void 0:l.area)||"",line:(l==null?void 0:l.line)||"",point:(l==null?void 0:l.point)||""}})(),h=r.value.defaultTimeRange||"1d",Q=h==="1w"?d.dayjs().subtract(1,"week"):h==="1m"?d.dayjs().subtract(1,"month"):d.dayjs().subtract(1,"day"),o=t.reactive({area:g.area,line:g.line,point:g.point,timeRange:h,dateRange:[Q.format("YYYY/MM/DD HH:mm"),d.dayjs().format("YYYY/MM/DD HH:mm")]}),$=()=>{var e;const l=_.value;o.line=((e=l[0])==null?void 0:e.value)||"",t.nextTick(()=>{var u;const s=k.value;o.point=((u=s[0])==null?void 0:u.value)||""})},G=()=>{var e;const l=k.value;o.point=((e=l[0])==null?void 0:e.value)||""},W=l=>{o.timeRange=l;const e=d.dayjs(),s=l==="1d"?e.subtract(1,"day"):l==="1w"?e.subtract(1,"week"):e.subtract(1,"month");o.dateRange=[s.format("YYYY/MM/DD HH:mm"),e.format("YYYY/MM/DD HH:mm")]},J=()=>{if(n.mode==="edit")return;const l=w.value.find(e=>e.area===o.area&&e.line===o.line&&e.point===o.point);m.publish({type:"filter",area:o.area,line:o.line,point:o.point,objectId:(l==null?void 0:l.object_id)||"",timeRange:o.timeRange,dateRange:[...o.dateRange]})},K=t.computed(()=>({backgroundColor:r.value.bgColor,color:r.value.textColor,fontSize:`${r.value.fontSize}px`,borderBottom:`1px solid ${r.value.borderColor}`})),p=t.computed(()=>({color:r.value.labelColor,fontSize:`${r.value.fontSize}px`})),X=t.computed(()=>({color:"#fff",background:r.value.btnActiveColor,borderColor:r.value.btnActiveColor}));return t.onMounted(()=>{m.init()}),t.onUnmounted(()=>{m.cleanup()}),(l,e)=>{const s=b.ElOption,u=b.ElSelect,v=b.ElDatePicker,f=b.ElButton;return t.openBlock(),t.createElementBlock("div",{class:"gnss-filter-bar-wrap",style:t.normalizeStyle(K.value)},[t.createElementVNode("div",ne,[t.unref(r).showAreaFilter?(t.openBlock(),t.createElementBlock("div",re,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"区域位置:",4),t.createVNode(u,{modelValue:o.area,"onUpdate:modelValue":e[0]||(e[0]=a=>o.area=a),size:"small",style:{width:"90px"},onChange:$},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.value,a=>(t.openBlock(),t.createBlock(s,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showLineFilter?(t.openBlock(),t.createElementBlock("div",ie,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"监测线:",4),t.createVNode(u,{modelValue:o.line,"onUpdate:modelValue":e[1]||(e[1]=a=>o.line=a),size:"small",style:{width:"90px"},onChange:G},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_.value,a=>(t.openBlock(),t.createBlock(s,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showPointFilter?(t.openBlock(),t.createElementBlock("div",se,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"监测点:",4),t.createVNode(u,{modelValue:o.point,"onUpdate:modelValue":e[2]||(e[2]=a=>o.point=a),size:"small",style:{width:"80px"}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k.value,a=>(t.openBlock(),t.createBlock(s,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showTimeRange?(t.openBlock(),t.createElementBlock("div",ce,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"时间范围:",4),t.createElementVNode("div",ue,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(U,a=>t.createElementVNode("button",{key:a.value,class:t.normalizeClass(["range-btn",{active:o.timeRange===a.value}]),style:t.normalizeStyle(o.timeRange===a.value?X.value:{}),onClick:C=>W(a.value)},t.toDisplayString(a.label),15,de)),64))])])):t.createCommentVNode("",!0),t.unref(r).showDatePicker?(t.openBlock(),t.createElementBlock("div",me,[t.createVNode(v,{modelValue:o.dateRange,"onUpdate:modelValue":e[3]||(e[3]=a=>o.dateRange=a),type:"datetimerange",size:"small",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{"max-width":"340px","min-width":"200px",width:"100%"}},null,8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showQueryBtn?(t.openBlock(),t.createBlock(f,{key:5,type:"primary",size:"small",onClick:J},{default:t.withCtx(()=>[...e[4]||(e[4]=[t.createTextVNode("查询",-1)])]),_:1})):t.createCommentVNode("",!0)]),t.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),Ce=d._export_sfc(he,[["__scopeId","data-v-2639ea88"]]);exports.default=Ce;
1
+ "use strict";var Z=Object.defineProperty,ee=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var j=(c,n,i)=>n in c?Z(c,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[n]=i,P=(c,n)=>{for(var i in n||(n={}))le.call(n,i)&&j(c,i,n[i]);if(L)for(var i of L(n))ae.call(n,i)&&j(c,i,n[i]);return c},H=(c,n)=>ee(c,te(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=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/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue");require("html2canvas");const oe=require("./BaseComponent-DKuQG62G.cjs"),d=require("./index-DoEyCVDU.cjs"),q=require("./ele-lin-icon-Dke_1AmT.cjs"),ne={class:"filter-bar"},re={key:0,class:"filter-item"},ie={key:1,class:"filter-item"},se={key:2,class:"filter-item"},ce={key:3,class:"filter-item"},ue={class:"time-range-btns"},de=["onClick"],me={key:4,class:"filter-item date-picker-item"},pe={DEFAULT_ICON:q.DEFAULT_ICON,ACTIVE_ICON:q.ACTIVE_ICON,NAME_CN:"GNSS筛选栏",NAME_EN:"GNSS Filter Bar",ORDER:1,PLATFORM:["pc","screen"]},ve={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},labelColor:{value:"#1c3d90",type:"color",label:"标签文字颜色"},borderColor:{value:"#e8ecef",type:"color",label:"边框颜色"},btnActiveColor:{value:"#409eff",type:"color",label:"按钮激活颜色"},padding:{value:8,type:"number",label:"component.options.padding",min:0,max:40},fontSize:{value:13,type:"number",label:"字体大小",min:10,max:20},showAreaFilter:{value:!0,type:"checkbox",label:"显示区域筛选"},showLineFilter:{value:!0,type:"checkbox",label:"显示监测线筛选"},showPointFilter:{value:!0,type:"checkbox",label:"显示监测点筛选"},showTimeRange:{value:!0,type:"checkbox",label:"显示时间范围"},showDatePicker:{value:!0,type:"checkbox",label:"显示日期选择器"},showQueryBtn:{value:!0,type:"checkbox",label:"显示查询按钮"},defaultTimeRange:{value:"1d",type:"select",label:"默认时间范围",options:[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}]},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},fe=[{object_id:"",area:"北帮",line:"1号线",point:"35"},{object_id:"",area:"北帮",line:"1号线",point:"55"},{object_id:"",area:"北帮",line:"2号线",point:"110"},{object_id:"",area:"东帮",line:"3号线",point:"33"}],be=["object_id","area","line","point"],ye=["mosaic"],ke={useAlias:!1,multiObject:!0,source:"mosaic"},ge={DEFAULT:pe,OPTIONS:ve,DATA:fe,PARAMS:be,SOURCE:ye,COMMON:ke},he=t.defineComponent(H(P({},ge),{__name:"gnssFilterBar",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){const n=c;class i extends oe.BaseComponent{extractStyles(){var v,f,a,C,B,S,E,V,N,x,R,F,A,D,Y,T,M,z,O;const e=(v=this.props.conf)==null?void 0:v.options,s=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"gnss",u=((a=e==null?void 0:e.customChannel)==null?void 0:a.value)||"";return{bgColor:((C=e==null?void 0:e.bgColor)==null?void 0:C.value)||"#ffffff",textColor:((B=e==null?void 0:e.textColor)==null?void 0:B.value)||"#333333",labelColor:((S=e==null?void 0:e.labelColor)==null?void 0:S.value)||"#1c3d90",borderColor:((E=e==null?void 0:e.borderColor)==null?void 0:E.value)||"#e8ecef",btnActiveColor:((V=e==null?void 0:e.btnActiveColor)==null?void 0:V.value)||"#409eff",padding:(x=(N=e==null?void 0:e.padding)==null?void 0:N.value)!=null?x:8,fontSize:(F=(R=e==null?void 0:e.fontSize)==null?void 0:R.value)!=null?F:13,showAreaFilter:((A=e==null?void 0:e.showAreaFilter)==null?void 0:A.value)!==!1,showLineFilter:((D=e==null?void 0:e.showLineFilter)==null?void 0:D.value)!==!1,showPointFilter:((Y=e==null?void 0:e.showPointFilter)==null?void 0:Y.value)!==!1,showTimeRange:((T=e==null?void 0:e.showTimeRange)==null?void 0:T.value)!==!1,showDatePicker:((M=e==null?void 0:e.showDatePicker)==null?void 0:M.value)!==!1,showQueryBtn:((z=e==null?void 0:e.showQueryBtn)==null?void 0:z.value)!==!1,defaultTimeRange:((O=e==null?void 0:e.defaultTimeRange)==null?void 0:O.value)||"1d",linkChannel:s==="custom"&&u?u:s}}}const m=new i(n,"gnssFilterBar");m.setupLifecycle();const r=m.getStyle(),w=t.computed(()=>{var l;return((l=n.conf)==null?void 0:l.data)||[]}),y=t.computed(()=>{const l=new Set;return w.value.filter(e=>e.point&&!l.has(e.point)?(l.add(e.point),!0):!1)}),I=t.computed(()=>{const l=new Set;return y.value.forEach(e=>e.area&&l.add(e.area)),Array.from(l).map(e=>({label:e,value:e}))}),_=t.computed(()=>{const l=new Set;return y.value.filter(e=>e.area===o.area).forEach(e=>e.line&&l.add(e.line)),Array.from(l).map(e=>({label:e,value:e}))}),k=t.computed(()=>{const l=new Set;return y.value.filter(e=>e.area===o.area&&e.line===o.line).forEach(e=>e.point&&l.add(e.point)),Array.from(l).map(e=>({label:e,value:e}))}),U=[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}],g=(()=>{var e;const l=(((e=n.conf)==null?void 0:e.data)||[]).find(s=>!!s.point);return{area:(l==null?void 0:l.area)||"",line:(l==null?void 0:l.line)||"",point:(l==null?void 0:l.point)||""}})(),h=r.value.defaultTimeRange||"1d",Q=h==="1w"?d.dayjs().subtract(1,"week"):h==="1m"?d.dayjs().subtract(1,"month"):d.dayjs().subtract(1,"day"),o=t.reactive({area:g.area,line:g.line,point:g.point,timeRange:h,dateRange:[Q.format("YYYY/MM/DD HH:mm"),d.dayjs().format("YYYY/MM/DD HH:mm")]}),$=()=>{var e;const l=_.value;o.line=((e=l[0])==null?void 0:e.value)||"",t.nextTick(()=>{var u;const s=k.value;o.point=((u=s[0])==null?void 0:u.value)||""})},G=()=>{var e;const l=k.value;o.point=((e=l[0])==null?void 0:e.value)||""},W=l=>{o.timeRange=l;const e=d.dayjs(),s=l==="1d"?e.subtract(1,"day"):l==="1w"?e.subtract(1,"week"):e.subtract(1,"month");o.dateRange=[s.format("YYYY/MM/DD HH:mm"),e.format("YYYY/MM/DD HH:mm")]},J=()=>{if(n.mode==="edit")return;const l=w.value.find(e=>e.area===o.area&&e.line===o.line&&e.point===o.point);m.publish({type:"filter",area:o.area,line:o.line,point:o.point,objectId:(l==null?void 0:l.object_id)||"",timeRange:o.timeRange,dateRange:[...o.dateRange]})},K=t.computed(()=>({backgroundColor:r.value.bgColor,color:r.value.textColor,fontSize:`${r.value.fontSize}px`,borderBottom:`1px solid ${r.value.borderColor}`})),p=t.computed(()=>({color:r.value.labelColor,fontSize:`${r.value.fontSize}px`})),X=t.computed(()=>({color:"#fff",background:r.value.btnActiveColor,borderColor:r.value.btnActiveColor}));return t.onMounted(()=>{m.init()}),t.onUnmounted(()=>{m.cleanup()}),(l,e)=>{const s=b.ElOption,u=b.ElSelect,v=b.ElDatePicker,f=b.ElButton;return t.openBlock(),t.createElementBlock("div",{class:"gnss-filter-bar-wrap",style:t.normalizeStyle(K.value)},[t.createElementVNode("div",ne,[t.unref(r).showAreaFilter?(t.openBlock(),t.createElementBlock("div",re,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"区域位置:",4),t.createVNode(u,{modelValue:o.area,"onUpdate:modelValue":e[0]||(e[0]=a=>o.area=a),size:"small",style:{width:"90px"},onChange:$},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(I.value,a=>(t.openBlock(),t.createBlock(s,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showLineFilter?(t.openBlock(),t.createElementBlock("div",ie,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"监测线:",4),t.createVNode(u,{modelValue:o.line,"onUpdate:modelValue":e[1]||(e[1]=a=>o.line=a),size:"small",style:{width:"90px"},onChange:G},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_.value,a=>(t.openBlock(),t.createBlock(s,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showPointFilter?(t.openBlock(),t.createElementBlock("div",se,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"监测点:",4),t.createVNode(u,{modelValue:o.point,"onUpdate:modelValue":e[2]||(e[2]=a=>o.point=a),size:"small",style:{width:"80px"}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(k.value,a=>(t.openBlock(),t.createBlock(s,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showTimeRange?(t.openBlock(),t.createElementBlock("div",ce,[t.createElementVNode("span",{class:"filter-label",style:t.normalizeStyle(p.value)},"时间范围:",4),t.createElementVNode("div",ue,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(U,a=>t.createElementVNode("button",{key:a.value,class:t.normalizeClass(["range-btn",{active:o.timeRange===a.value}]),style:t.normalizeStyle(o.timeRange===a.value?X.value:{}),onClick:C=>W(a.value)},t.toDisplayString(a.label),15,de)),64))])])):t.createCommentVNode("",!0),t.unref(r).showDatePicker?(t.openBlock(),t.createElementBlock("div",me,[t.createVNode(v,{modelValue:o.dateRange,"onUpdate:modelValue":e[3]||(e[3]=a=>o.dateRange=a),type:"datetimerange",size:"small",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{"max-width":"340px","min-width":"200px",width:"100%"}},null,8,["modelValue"])])):t.createCommentVNode("",!0),t.unref(r).showQueryBtn?(t.openBlock(),t.createBlock(f,{key:5,type:"primary",size:"small",onClick:J},{default:t.withCtx(()=>[...e[4]||(e[4]=[t.createTextVNode("查询",-1)])]),_:1})):t.createCommentVNode("",!0)]),t.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),Ce=d._export_sfc(he,[["__scopeId","data-v-2639ea88"]]);exports.default=Ce;
@@ -18,8 +18,8 @@ import "element-plus/es/components/select/style/css";
18
18
  import "element-plus/es/components/option/style/css";
19
19
  import { defineComponent as ye, computed as m, reactive as he, onMounted as ge, onUnmounted as Ce, openBlock as r, createElementBlock as c, normalizeStyle as v, createElementVNode as p, unref as f, createVNode as w, withCtx as k, Fragment as S, renderList as R, createBlock as x, createCommentVNode as b, normalizeClass as _e, toDisplayString as we, createTextVNode as ke, renderSlot as Se, nextTick as Re } from "vue";
20
20
  import "html2canvas";
21
- import { B as xe } from "./BaseComponent-Bv3RJ3vA.js";
22
- import { d as h, _ as Ae } from "./index-C_ms8XdY.js";
21
+ import { B as xe } from "./BaseComponent-Dn65PXTp.js";
22
+ import { d as h, _ as Ae } from "./index-CPTJIw32.js";
23
23
  import { A as De, D as Ye } from "./ele-lin-icon-Dax-ZiWV.js";
24
24
  const Fe = { class: "filter-bar" }, Me = {
25
25
  key: 0,
@@ -1,3 +1,3 @@
1
- "use strict";var pe=Object.defineProperty,fe=Object.defineProperties;var ye=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var ge=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable;var m=Math.pow,ee=(p,s,d)=>s in p?pe(p,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):p[s]=d,te=(p,s)=>{for(var d in s||(s={}))ge.call(s,d)&&ee(p,d,s[d]);if(Z)for(var d of Z(s))ve.call(s,d)&&ee(p,d,s[d]);return p},ne=(p,s)=>fe(p,ye(s));var U=(p,s,d)=>new Promise((F,R)=>{var _=M=>{try{y(d.next(M))}catch(x){R(x)}},V=M=>{try{y(d.throw(M))}catch(x){R(x)}},y=M=>M.done?F(M.value):Promise.resolve(M.value).then(_,V);y((d=d.apply(p,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=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/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const v=require("./index-DFbNT6Tf.cjs");require("element-plus");const _e=require("./EChartComponentBase-DzP0_KR9.cjs"),oe=require("./ele-lin-icon-Dke_1AmT.cjs"),be={class:"table-section"},he={class:"table-section-header"},Se={class:"table-title"},xe={class:"table-toolbar"},De={class:"table-scroll-wrapper"},Ye={class:"report-table"},Ee={key:0},Me=["colspan"],Ne={class:"table-pagination"},ke={class:"page-info"},Ce={class:"page-controls"},je=["disabled"],we={class:"page-num"},Fe=["disabled"],Ve={DEFAULT_ICON:oe.DEFAULT_ICON,ACTIVE_ICON:oe.ACTIVE_ICON,NAME_CN:"GNSS历史明细报表",NAME_EN:"GNSS History Table",ORDER:5,PLATFORM:["pc","screen"]},Ae={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},He=[{name:"序号",fv:"_index",object_id:""},{name:"时间",fv:"_time",object_id:""}],Oe=["name","fv","object_id"],Re=["mosaic","statistics","statisticsRealtime"],Ie={useAlias:!1,multiObject:!0,hideMultiObject:!1,source:"mosaic"},qe={DEFAULT:Ve,OPTIONS:Ae,DATA:He,PARAMS:Oe,SOURCE:Re,COMMON:Ie},Be=e.defineComponent(ne(te({},qe),{__name:"gnssHistoryTable",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(p){const s=p;class d extends _e.EChartComponentBase{constructor(){super(...arguments),this._lastDedupeKey=""}extractStyles(){const t=this.getOptionValue("linkChannel","gnss"),o=this.getOptionValue("customChannel","");return{bgColor:this.getOptionValue("bgColor","#f5f7fa"),textColor:this.getOptionValue("textColor","#333333"),linkChannel:t==="custom"&&o?o:t}}getChartOption(){return{}}onLinkEvent(t){ce(t)}needsHistoryData(){return!1}onPreview(){return U(this,null,function*(){var o,i,r,a,c;const t=((i=(o=this.props.conf)==null?void 0:o.common)==null?void 0:i.object_id)||((c=(a=(r=this.props.conf)==null?void 0:r.data)==null?void 0:a[0])==null?void 0:c.object_id)||"";t&&this.props.mode==="preview"&&(y.value=String(t),M.value=[String(t)],yield $())})}setSocketData(t){if(!t||!t.data)return;const{data:o}=this.props.conf;if(!o||!Array.isArray(o))return;const i=["_index","_time"],r=t.datetime||v.dayjs().format("YYYY/MM/DD HH:mm:ss"),a=`${r}_${JSON.stringify(t.data)}`;if(a===this._lastDedupeKey)return;this._lastDedupeKey=a;const c={};if(o.forEach(u=>{if(u.fv&&!i.includes(u.fv)){const h=this.extractDataValue(t,u.fv);h!=null&&(c[u.fv]=String(h))}}),Object.keys(c).length===0)return;const l={time:r,area:V.value||"-",device:_.value?`GNSS${_.value}`:"GNSS",metrics:c};D.rows.unshift(l),D.rows.length>1e3&&(D.rows=D.rows.slice(0,1e3))}}const F=new d(s,"gnssHistoryTable");F.setupLifecycle();const R=F.getStyle(),_=e.ref(""),V=e.ref(""),y=e.ref(""),M=e.ref([]),x=e.reactive({timeRange:"1d",dateRange:[v.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),v.dayjs().format("YYYY/MM/DD HH:mm")]}),$=()=>U(null,null,function*(){var a,c;if(N.value=1,s.mode==="edit"){J();return}if(!y.value)return;D.rows=[];const n=(a=F.session)==null?void 0:a.value,t=(c=s.conf)==null?void 0:c.id;n!=null&&n.componentRequests&&t&&n.componentRequests.delete(t);const{data:o,common:i}=s.conf;Array.isArray(o)&&o.forEach(l=>{l.object_id=y.value}),i.multiObject||(i.object_id=y.value);try{const l=v.dayjs(x.dateRange[0],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),u=v.dayjs(x.dateRange[1],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),h=v.dayjs(x.dateRange[1],"YYYY/MM/DD HH:mm").diff(v.dayjs(x.dateRange[0],"YYYY/MM/DD HH:mm"),"second"),k=Math.max(60,Math.floor(h/500)),Y=(s.conf.data||[]).filter(E=>E.fv&&!z.includes(E.fv)),H=Y.map(E=>E.fv),L={block_mapping:"influxdbproxy",action:"get_mosaic_list_with_time_span",start_time:l,end_time:u,time_span:k,time_swing:k,object_id:y.value};H.length>0&&(L.keys=H);const S=[L],C=yield new Promise(E=>{v.api.platform(I=>{E(I.result)},{block_mapping:"mixtools",action:"get_tools_mosaic_list",condition:S})}),b=Array.isArray(C)?C:[C],w=b[0]&&typeof b[0]=="object"&&Array.isArray(b[0].data)?b[0].data:Array.isArray(b[0])?b[0]:[];if(Array.isArray(w)&&w.length>0){const E=["time","datetime","object_id","_index","_time"];if(Y.length===0){const f=w[0];Object.keys(f).filter(g=>!E.includes(g)).forEach(g=>{s.conf.data.some(O=>O.fv===g)||s.conf.data.push({name:g,fv:g,object_id:y.value})})}const I=(s.conf.data||[]).filter(f=>f.fv&&!z.includes(f.fv));[...w].sort((f,j)=>{const g=f.time||f.datetime||"",A=j.time||j.datetime||"";return new Date(A).getTime()-new Date(g).getTime()}).forEach(f=>{const j=f.time||f.datetime;if(!j)return;const g={};I.forEach(A=>{const O=f[A.fv];O!=null&&(g[A.fv]=String(O))}),Object.keys(g).length>0&&D.rows.push({time:v.dayjs(j).format("YYYY/MM/DD HH:mm:ss"),area:V.value||"-",device:_.value?`GNSS${_.value}`:"GNSS",metrics:g})})}console.log(`[GNSS历史明细] 历史数据加载完成,共 ${D.rows.length} 条,时间范围: ${l} ~ ${u}`)}catch(l){console.warn("[GNSS历史明细] 历史数据获取失败:",l)}const r=F.getSource();F.subscribeBySource(r,y.value)}),ae=e.computed(()=>({backgroundColor:R.value.bgColor,color:R.value.textColor})),z=["_index","_time"],se=n=>n==="_index"?"index":n==="_time"?"time":"data",q=e.computed(()=>{const{data:n}=s.conf;return!n||!Array.isArray(n)?[]:n.map(t=>({key:t.fv||"",label:t.name||t.fv||"-",type:se(t.fv||"")})).filter(t=>t.key)}),P=e.ref("hour"),N=e.ref(1),B=15,D=e.reactive({rows:[]}),T=e.computed(()=>{const n=P.value;if(n==="hour")return D.rows;const t=new Set,o=[];for(const i of D.rows){const r=v.dayjs(i.time,"YYYY/MM/DD HH:mm:ss");let a;if(n==="day")a=r.format("YYYY/MM/DD");else if(n==="week"){const c=r.startOf("year");a=r.year()+"-W"+Math.floor(r.diff(c,"day")/7)}else a=r.format("YYYY/MM");t.has(a)||(t.add(a),o.push(i))}return o}),X=e.computed(()=>Math.max(1,Math.ceil(T.value.length/B))),W=e.computed(()=>{const n=(N.value-1)*B;return T.value.slice(n,n+B)}),le=()=>{N.value=1},J=()=>{const n=V.value||"-",t=_.value?`GNSS${_.value}`:"GNSS",o=parseInt(_.value)||50,i=v.dayjs(),r=100,a=+(2450+o*.1).toFixed(2),c=+(1300+o*.02).toFixed(2),l=+(1150+o*.01).toFixed(2);let u=0,h=0,k=0;const Y=[];for(let H=0;H<r;H++){const L=i.subtract((r-H)*60,"minute"),S=()=>Math.random()-.5,C=+(.8+S()*.2).toFixed(2),b=+(.65+S()*.15).toFixed(2),w=+(.01+S()*.02).toFixed(2),E=+Math.sqrt(m(C,2)+m(b,2)).toFixed(2),I=+Math.sqrt(m(C,2)+m(b,2)+m(w,2)).toFixed(2);u+=C,h+=b,k+=w;const G=+(8+S()*1.5).toFixed(2),f=+(8+S()*1.5).toFixed(2),j=+(8.5+S()*1).toFixed(2),g=+Math.sqrt(m(G,2)+m(f,2)).toFixed(2),A=+Math.sqrt(m(G,2)+m(f,2)+m(j,2)).toFixed(2),O=+(S()*.1).toFixed(3),de=+(S()*.08).toFixed(3),ue=+(S()*.06).toFixed(3),me=+(Math.atan2(b,C)*180/Math.PI).toFixed(1);Y.push({time:L.format("YYYY/MM/DD HH:mm:ss"),area:n,device:t,metrics:{base_x:String(a),base_y:String(c),base_h:String(l),x_disp:String(C),y_disp:String(b),h_disp:String(w),xy_disp:String(E),xyh_disp:String(I),x_cum_disp:u.toFixed(2),y_cum_disp:h.toFixed(2),h_cum_disp:k.toFixed(2),xy_cum_disp:Math.sqrt(m(u,2)+m(h,2)).toFixed(2),xyh_cum_disp:Math.sqrt(m(u,2)+m(h,2)+m(k,2)).toFixed(2),x_speed:String(G),y_speed:String(f),h_speed:String(j),xy_speed:String(g),xyh_speed:String(A),x_accel:String(O),y_accel:String(de),h_accel:String(ue),tangent_angle:me+"°"}})}D.rows=Y},re=n=>{if(!n)return"#333";const t=parseFloat(n);return isNaN(t)?"#333":t>=20?"#ee4444":t>=10?"#e6a23c":"#333"},Q=(n,t,o)=>{var i;switch(t.type){case"index":return String((N.value-1)*B+o+1);case"time":return n.time;default:return(i=n.metrics[t.key])!=null?i:"-"}},ie=()=>{const n=q.value,t=T.value;if(!t.length)return;const o=n.map(u=>u.label).join(","),i=t.map((u,h)=>n.map(k=>{const Y=Q(u,k,h);return k.type==="time"||Y.includes(",")||Y.includes('"')?`"${Y.replace(/"/g,'""')}"`:Y}).join(",")).join(`
1
+ "use strict";var pe=Object.defineProperty,fe=Object.defineProperties;var ye=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var ge=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable;var m=Math.pow,ee=(p,s,d)=>s in p?pe(p,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):p[s]=d,te=(p,s)=>{for(var d in s||(s={}))ge.call(s,d)&&ee(p,d,s[d]);if(Z)for(var d of Z(s))ve.call(s,d)&&ee(p,d,s[d]);return p},ne=(p,s)=>fe(p,ye(s));var U=(p,s,d)=>new Promise((F,R)=>{var _=M=>{try{y(d.next(M))}catch(x){R(x)}},V=M=>{try{y(d.throw(M))}catch(x){R(x)}},y=M=>M.done?F(M.value):Promise.resolve(M.value).then(_,V);y((d=d.apply(p,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=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/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue");require("html2canvas");const v=require("./index-DoEyCVDU.cjs");require("element-plus");const _e=require("./EChartComponentBase-8GSbyY5P.cjs"),oe=require("./ele-lin-icon-Dke_1AmT.cjs"),be={class:"table-section"},he={class:"table-section-header"},Se={class:"table-title"},xe={class:"table-toolbar"},De={class:"table-scroll-wrapper"},Ye={class:"report-table"},Ee={key:0},Me=["colspan"],Ne={class:"table-pagination"},ke={class:"page-info"},Ce={class:"page-controls"},je=["disabled"],we={class:"page-num"},Fe=["disabled"],Ve={DEFAULT_ICON:oe.DEFAULT_ICON,ACTIVE_ICON:oe.ACTIVE_ICON,NAME_CN:"GNSS历史明细报表",NAME_EN:"GNSS History Table",ORDER:5,PLATFORM:["pc","screen"]},Ae={bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},He=[{name:"序号",fv:"_index",object_id:""},{name:"时间",fv:"_time",object_id:""}],Oe=["name","fv","object_id"],Re=["mosaic","statistics","statisticsRealtime"],Ie={useAlias:!1,multiObject:!0,hideMultiObject:!1,source:"mosaic"},qe={DEFAULT:Ve,OPTIONS:Ae,DATA:He,PARAMS:Oe,SOURCE:Re,COMMON:Ie},Be=e.defineComponent(ne(te({},qe),{__name:"gnssHistoryTable",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(p){const s=p;class d extends _e.EChartComponentBase{constructor(){super(...arguments),this._lastDedupeKey=""}extractStyles(){const t=this.getOptionValue("linkChannel","gnss"),o=this.getOptionValue("customChannel","");return{bgColor:this.getOptionValue("bgColor","#f5f7fa"),textColor:this.getOptionValue("textColor","#333333"),linkChannel:t==="custom"&&o?o:t}}getChartOption(){return{}}onLinkEvent(t){ce(t)}needsHistoryData(){return!1}onPreview(){return U(this,null,function*(){var o,i,r,a,c;const t=((i=(o=this.props.conf)==null?void 0:o.common)==null?void 0:i.object_id)||((c=(a=(r=this.props.conf)==null?void 0:r.data)==null?void 0:a[0])==null?void 0:c.object_id)||"";t&&this.props.mode==="preview"&&(y.value=String(t),M.value=[String(t)],yield $())})}setSocketData(t){if(!t||!t.data)return;const{data:o}=this.props.conf;if(!o||!Array.isArray(o))return;const i=["_index","_time"],r=t.datetime||v.dayjs().format("YYYY/MM/DD HH:mm:ss"),a=`${r}_${JSON.stringify(t.data)}`;if(a===this._lastDedupeKey)return;this._lastDedupeKey=a;const c={};if(o.forEach(u=>{if(u.fv&&!i.includes(u.fv)){const h=this.extractDataValue(t,u.fv);h!=null&&(c[u.fv]=String(h))}}),Object.keys(c).length===0)return;const l={time:r,area:V.value||"-",device:_.value?`GNSS${_.value}`:"GNSS",metrics:c};D.rows.unshift(l),D.rows.length>1e3&&(D.rows=D.rows.slice(0,1e3))}}const F=new d(s,"gnssHistoryTable");F.setupLifecycle();const R=F.getStyle(),_=e.ref(""),V=e.ref(""),y=e.ref(""),M=e.ref([]),x=e.reactive({timeRange:"1d",dateRange:[v.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),v.dayjs().format("YYYY/MM/DD HH:mm")]}),$=()=>U(null,null,function*(){var a,c;if(N.value=1,s.mode==="edit"){J();return}if(!y.value)return;D.rows=[];const n=(a=F.session)==null?void 0:a.value,t=(c=s.conf)==null?void 0:c.id;n!=null&&n.componentRequests&&t&&n.componentRequests.delete(t);const{data:o,common:i}=s.conf;Array.isArray(o)&&o.forEach(l=>{l.object_id=y.value}),i.multiObject||(i.object_id=y.value);try{const l=v.dayjs(x.dateRange[0],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),u=v.dayjs(x.dateRange[1],"YYYY/MM/DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),h=v.dayjs(x.dateRange[1],"YYYY/MM/DD HH:mm").diff(v.dayjs(x.dateRange[0],"YYYY/MM/DD HH:mm"),"second"),k=Math.max(60,Math.floor(h/500)),Y=(s.conf.data||[]).filter(E=>E.fv&&!z.includes(E.fv)),H=Y.map(E=>E.fv),L={block_mapping:"influxdbproxy",action:"get_mosaic_list_with_time_span",start_time:l,end_time:u,time_span:k,time_swing:k,object_id:y.value};H.length>0&&(L.keys=H);const S=[L],C=yield new Promise(E=>{v.api.platform(I=>{E(I.result)},{block_mapping:"mixtools",action:"get_tools_mosaic_list",condition:S})}),b=Array.isArray(C)?C:[C],w=b[0]&&typeof b[0]=="object"&&Array.isArray(b[0].data)?b[0].data:Array.isArray(b[0])?b[0]:[];if(Array.isArray(w)&&w.length>0){const E=["time","datetime","object_id","_index","_time"];if(Y.length===0){const f=w[0];Object.keys(f).filter(g=>!E.includes(g)).forEach(g=>{s.conf.data.some(O=>O.fv===g)||s.conf.data.push({name:g,fv:g,object_id:y.value})})}const I=(s.conf.data||[]).filter(f=>f.fv&&!z.includes(f.fv));[...w].sort((f,j)=>{const g=f.time||f.datetime||"",A=j.time||j.datetime||"";return new Date(A).getTime()-new Date(g).getTime()}).forEach(f=>{const j=f.time||f.datetime;if(!j)return;const g={};I.forEach(A=>{const O=f[A.fv];O!=null&&(g[A.fv]=String(O))}),Object.keys(g).length>0&&D.rows.push({time:v.dayjs(j).format("YYYY/MM/DD HH:mm:ss"),area:V.value||"-",device:_.value?`GNSS${_.value}`:"GNSS",metrics:g})})}console.log(`[GNSS历史明细] 历史数据加载完成,共 ${D.rows.length} 条,时间范围: ${l} ~ ${u}`)}catch(l){console.warn("[GNSS历史明细] 历史数据获取失败:",l)}const r=F.getSource();F.subscribeBySource(r,y.value)}),ae=e.computed(()=>({backgroundColor:R.value.bgColor,color:R.value.textColor})),z=["_index","_time"],se=n=>n==="_index"?"index":n==="_time"?"time":"data",q=e.computed(()=>{const{data:n}=s.conf;return!n||!Array.isArray(n)?[]:n.map(t=>({key:t.fv||"",label:t.name||t.fv||"-",type:se(t.fv||"")})).filter(t=>t.key)}),P=e.ref("hour"),N=e.ref(1),B=15,D=e.reactive({rows:[]}),T=e.computed(()=>{const n=P.value;if(n==="hour")return D.rows;const t=new Set,o=[];for(const i of D.rows){const r=v.dayjs(i.time,"YYYY/MM/DD HH:mm:ss");let a;if(n==="day")a=r.format("YYYY/MM/DD");else if(n==="week"){const c=r.startOf("year");a=r.year()+"-W"+Math.floor(r.diff(c,"day")/7)}else a=r.format("YYYY/MM");t.has(a)||(t.add(a),o.push(i))}return o}),X=e.computed(()=>Math.max(1,Math.ceil(T.value.length/B))),W=e.computed(()=>{const n=(N.value-1)*B;return T.value.slice(n,n+B)}),le=()=>{N.value=1},J=()=>{const n=V.value||"-",t=_.value?`GNSS${_.value}`:"GNSS",o=parseInt(_.value)||50,i=v.dayjs(),r=100,a=+(2450+o*.1).toFixed(2),c=+(1300+o*.02).toFixed(2),l=+(1150+o*.01).toFixed(2);let u=0,h=0,k=0;const Y=[];for(let H=0;H<r;H++){const L=i.subtract((r-H)*60,"minute"),S=()=>Math.random()-.5,C=+(.8+S()*.2).toFixed(2),b=+(.65+S()*.15).toFixed(2),w=+(.01+S()*.02).toFixed(2),E=+Math.sqrt(m(C,2)+m(b,2)).toFixed(2),I=+Math.sqrt(m(C,2)+m(b,2)+m(w,2)).toFixed(2);u+=C,h+=b,k+=w;const G=+(8+S()*1.5).toFixed(2),f=+(8+S()*1.5).toFixed(2),j=+(8.5+S()*1).toFixed(2),g=+Math.sqrt(m(G,2)+m(f,2)).toFixed(2),A=+Math.sqrt(m(G,2)+m(f,2)+m(j,2)).toFixed(2),O=+(S()*.1).toFixed(3),de=+(S()*.08).toFixed(3),ue=+(S()*.06).toFixed(3),me=+(Math.atan2(b,C)*180/Math.PI).toFixed(1);Y.push({time:L.format("YYYY/MM/DD HH:mm:ss"),area:n,device:t,metrics:{base_x:String(a),base_y:String(c),base_h:String(l),x_disp:String(C),y_disp:String(b),h_disp:String(w),xy_disp:String(E),xyh_disp:String(I),x_cum_disp:u.toFixed(2),y_cum_disp:h.toFixed(2),h_cum_disp:k.toFixed(2),xy_cum_disp:Math.sqrt(m(u,2)+m(h,2)).toFixed(2),xyh_cum_disp:Math.sqrt(m(u,2)+m(h,2)+m(k,2)).toFixed(2),x_speed:String(G),y_speed:String(f),h_speed:String(j),xy_speed:String(g),xyh_speed:String(A),x_accel:String(O),y_accel:String(de),h_accel:String(ue),tangent_angle:me+"°"}})}D.rows=Y},re=n=>{if(!n)return"#333";const t=parseFloat(n);return isNaN(t)?"#333":t>=20?"#ee4444":t>=10?"#e6a23c":"#333"},Q=(n,t,o)=>{var i;switch(t.type){case"index":return String((N.value-1)*B+o+1);case"time":return n.time;default:return(i=n.metrics[t.key])!=null?i:"-"}},ie=()=>{const n=q.value,t=T.value;if(!t.length)return;const o=n.map(u=>u.label).join(","),i=t.map((u,h)=>n.map(k=>{const Y=Q(u,k,h);return k.type==="time"||Y.includes(",")||Y.includes('"')?`"${Y.replace(/"/g,'""')}"`:Y}).join(",")).join(`
2
2
  `),r="\uFEFF"+o+`
3
3
  `+i,a=new Blob([r],{type:"text/csv;charset=utf-8;"}),c=URL.createObjectURL(a),l=document.createElement("a");l.href=c,l.download=`GNSS监测历史明细_${_.value||"all"}_${v.dayjs().format("YYYYMMDDHHmmss")}.csv`,l.click(),URL.revokeObjectURL(c)},ce=n=>{const{payload:t}=n;if(!t)return;if(t.type==="filter"){t.point!=null&&(_.value=String(t.point)),t.area!=null&&(V.value=String(t.area)),t.objectId!=null&&(y.value=String(t.objectId)),t.timeRange&&(x.timeRange=t.timeRange),t.dateRange&&(x.dateRange=t.dateRange),$();return}const o=t.point||t.deviceId;o&&(_.value=String(o),t.objectId&&(y.value=String(t.objectId)),t.area&&(V.value=String(t.area)),y.value&&$())};return e.onMounted(()=>{s.mode==="edit"&&J()}),(n,t)=>{const o=K.ElOption,i=K.ElSelect,r=K.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"gnss-history-table",style:e.normalizeStyle(ae.value)},[e.createElementVNode("div",be,[e.createElementVNode("div",he,[e.createElementVNode("div",Se,[t[3]||(t[3]=e.createElementVNode("span",{class:"table-title-bar"},null,-1)),e.createElementVNode("span",null,e.toDisplayString(p.conf.caption||p.conf.name||"GNSS监测 历史明细报表"),1)]),e.createElementVNode("div",xe,[t[5]||(t[5]=e.createElementVNode("span",{class:"toolbar-label"},"显示频率:",-1)),e.createVNode(i,{modelValue:P.value,"onUpdate:modelValue":t[0]||(t[0]=a=>P.value=a),size:"small",style:{width:"95px"},onChange:le},{default:e.withCtx(()=>[e.createVNode(o,{label:"按小时",value:"hour"}),e.createVNode(o,{label:"按天显示",value:"day"}),e.createVNode(o,{label:"按周显示",value:"week"}),e.createVNode(o,{label:"按月显示",value:"month"})]),_:1},8,["modelValue"]),e.createVNode(r,{size:"small",type:"success",onClick:ie},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createElementVNode("span",null,"📥 导出分析报表 (Excel)",-1)])]),_:1})])]),e.createElementVNode("div",De,[e.createElementVNode("table",Ye,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,a=>(e.openBlock(),e.createElementBlock("th",{key:a.key,class:e.normalizeClass({"col-fixed":a.type!=="data","col-idx":a.type==="index","col-time":a.type==="time"})},e.toDisplayString(a.label),3))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(W.value,(a,c)=>(e.openBlock(),e.createElementBlock("tr",{key:c},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,l=>(e.openBlock(),e.createElementBlock("td",{key:l.key,class:e.normalizeClass({"col-fixed":l.type!=="data","col-idx":l.type==="index","col-time":l.type==="time","cell-angle":l.key==="tangent_angle"}),style:e.normalizeStyle(l.key==="tangent_angle"?{color:re(a.metrics[l.key])}:{})},e.toDisplayString(Q(a,l,c)),7))),128))]))),128)),W.value.length===0?(e.openBlock(),e.createElementBlock("tr",Ee,[e.createElementVNode("td",{colspan:q.value.length,style:{"text-align":"center",color:"#999",padding:"20px"}},"暂无数据",8,Me)])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",Ne,[e.createElementVNode("span",ke,"共 "+e.toDisplayString(T.value.length)+" 条记录",1),e.createElementVNode("div",Ce,[e.createElementVNode("button",{class:"page-arrow",disabled:N.value<=1,onClick:t[1]||(t[1]=a=>N.value--)},"◀",8,je),e.createElementVNode("span",we,e.toDisplayString(N.value)+" / "+e.toDisplayString(X.value),1),e.createElementVNode("button",{class:"page-arrow",disabled:N.value>=X.value,onClick:t[2]||(t[2]=a=>N.value++)},"▶",8,Fe)])])]),e.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),Te=v._export_sfc(Be,[["__scopeId","data-v-e1b697cc"]]);exports.default=Te;
@@ -33,9 +33,9 @@ import "element-plus/es/components/select/style/css";
33
33
  import "element-plus/es/components/option/style/css";
34
34
  import { defineComponent as Ht, ref as V, reactive as dt, computed as q, onMounted as jt, openBlock as j, createElementBlock as E, normalizeStyle as ut, createElementVNode as l, toDisplayString as G, createVNode as $, withCtx as mt, Fragment as Z, renderList as tt, normalizeClass as ft, createCommentVNode as Et, renderSlot as Ot } from "vue";
35
35
  import "html2canvas";
36
- import { d as S, a as Nt, _ as Rt } from "./index-C_ms8XdY.js";
36
+ import { d as S, a as Nt, _ as Rt } from "./index-CPTJIw32.js";
37
37
  import "element-plus";
38
- import { E as It } from "./EChartComponentBase-B5seB4Mc.js";
38
+ import { E as It } from "./EChartComponentBase-skupRYzl.js";
39
39
  import { A as Tt, D as Vt } from "./ele-lin-icon-Dax-ZiWV.js";
40
40
  const Gt = { class: "table-section" }, $t = { class: "table-section-header" }, Lt = { class: "table-title" }, Pt = { class: "table-toolbar" }, qt = { class: "table-scroll-wrapper" }, Kt = { class: "report-table" }, Ut = { key: 0 }, Bt = ["colspan"], zt = { class: "table-pagination" }, Xt = { class: "page-info" }, Wt = { class: "page-controls" }, Jt = ["disabled"], Qt = { class: "page-num" }, Zt = ["disabled"], te = {
41
41
  DEFAULT_ICON: Vt,