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
@@ -1 +1 @@
1
- "use strict";var B=Object.defineProperty,E=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var $=(o,s,i)=>s in o?B(o,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[s]=i,m=(o,s)=>{for(var i in s||(s={}))K.call(s,i)&&$(o,i,s[i]);if(S)for(var i of S(s))R.call(s,i)&&$(o,i,s[i]);return o},I=(o,s)=>E(o,C(s));var k=(o,s,i)=>new Promise((e,b)=>{var c=j=>{try{n(i.next(j))}catch(v){b(v)}},_=j=>{try{n(i.throw(j))}catch(v){b(v)}},n=j=>j.done?e(j.value):Promise.resolve(j.value).then(c,_);n((i=i.apply(o,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-DFbNT6Tf.cjs");function P(o,s,i){return k(this,null,function*(){var n,j,v,x,w,A,F,M;const{common:e,data:b,options:c}=o,_=e.source||"mosaic";try{yield u.ensureAliasMappingLoaded();const g={action:"subscribe",component_name:o.type,items:Number(((n=c==null?void 0:c.points)==null?void 0:n.value)||o.points)||1,body:{},actionid:o.id},r=new Map;let y="";const T=t=>{const d=e.useAlias||!e.object_id||!e.objectid,a=d?u.getObjectIdsByAliasPattern(t,s):[],f=u.getObjectId(t,d,s);return a.length>0?a:f?[f]:[]};if(!e.multiObject||e.hideMultiObject){const t=e.object_id!==void 0&&e.object_id!==""?e:b[0]||{};y=u.getObjectId(t,e.useAlias||!e.object_id||!e.objectid,s)}if(!y){const t={object_alias:e.object_alias||e.alias||b[0]&&(b[0].object_alias||b[0].alias)||"",alias:e.alias||e.object_alias||b[0]&&(b[0].alias||b[0].object_alias)||"",object_id:e.object_id||e.objectid||b[0]&&(b[0].object_id||b[0].objectid)||"",objectid:e.objectid||e.object_id||b[0]&&(b[0].objectid||b[0].object_id)||""};y=u.getObjectId(t,!0,s)}let O=[];i==="alertTable"&&((j=c==null?void 0:c.columns)!=null&&j.value)&&(O=c.columns.value.filter(t=>t.useFv).map(t=>t.key));const q=(t,d)=>{const a=I(m({},t),{object_id:d,objectid:d}),f=`${d}_${_}`;if(r.has(f)){const l=r.get(f);if(["progressBar","progressCircle"].includes(i)&&a.maxType==="fv")l.id.push(a.fv,a.max);else{let h=a.fv;i==="cmc"&&(h=a.item_fv),["ctrSwitch"].includes(i)&&(h=a.status_fv),h&&l.id.push(h)}}else{let l=[];i==="alertTable"&&O.length>0?l=O:a.fv&&(l=[a.fv]),i==="evn"&&(l=[a.fv,a.status_fv]),["progressBar","progressCircle"].includes(i)&&a.maxType==="fv"&&(l=[a.fv,a.max]),i==="cmc"&&(l=[a.item_fv]),["ctrSwitch"].includes(i)&&(l=[a.status_fv]),l.length>0&&r.set(f,I(m({},a),{id:l}))}};if(b.forEach((t,d)=>{const a={object_alias:t.object_alias||t.alias||t.object_id||t.objectid||"",alias:t.alias||t.object_alias||t.object_id||t.objectid||"",object_id:t.object_id,objectid:t.objectid},f=T(a);(f.length>0?f:[y].filter(Boolean)).forEach(h=>q(t,h))}),i==="sankey"){const t=u.getObjectId({object_alias:e.object_alias||e.alias||e.object_id,alias:e.alias||e.object_alias||e.object_id,object_id:e.object_id,objectid:e.objectid},e.useAlias,s),d=`${t}_${_}`;r.has(d)?r.get(d).id.push(e.originFv):r.set(d,{object_id:t,id:[e.originFv]})}if(i==="scd"){const t=u.getObjectId({object_alias:(v=c==null?void 0:c.object)==null?void 0:v.value,alias:(x=c==null?void 0:c.object)==null?void 0:x.value,object_id:(w=c==null?void 0:c.object)==null?void 0:w.value,objectid:(A=c==null?void 0:c.object)==null?void 0:A.value},e.useAlias,s),d=`${t}_${_}`;r.has(d)?r.get(d).id.push((M=c==null?void 0:c.statusFv)==null?void 0:M.value):r.set(d,{object_id:t,id:[(F=c==null?void 0:c.statusFv)==null?void 0:F.value]})}for(const[t,d]of r)g.body[_]||(g.body[_]=[]),g.body[_].push({object_id:d.object_id,objectid:d.object_id,key:d.id});return g}catch(g){throw console.error("格式化请求时出错:",g),new Error("请求格式化失败")}})}exports.formatRequest=P;
1
+ "use strict";var B=Object.defineProperty,E=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var $=(o,s,i)=>s in o?B(o,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[s]=i,m=(o,s)=>{for(var i in s||(s={}))K.call(s,i)&&$(o,i,s[i]);if(S)for(var i of S(s))R.call(s,i)&&$(o,i,s[i]);return o},I=(o,s)=>E(o,C(s));var k=(o,s,i)=>new Promise((e,b)=>{var c=j=>{try{n(i.next(j))}catch(v){b(v)}},_=j=>{try{n(i.throw(j))}catch(v){b(v)}},n=j=>j.done?e(j.value):Promise.resolve(j.value).then(c,_);n((i=i.apply(o,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-DoEyCVDU.cjs");function P(o,s,i){return k(this,null,function*(){var n,j,v,x,w,A,F,M;const{common:e,data:b,options:c}=o,_=e.source||"mosaic";try{yield u.ensureAliasMappingLoaded();const g={action:"subscribe",component_name:o.type,items:Number(((n=c==null?void 0:c.points)==null?void 0:n.value)||o.points)||1,body:{},actionid:o.id},r=new Map;let y="";const T=t=>{const d=e.useAlias||!e.object_id||!e.objectid,a=d?u.getObjectIdsByAliasPattern(t,s):[],f=u.getObjectId(t,d,s);return a.length>0?a:f?[f]:[]};if(!e.multiObject||e.hideMultiObject){const t=e.object_id!==void 0&&e.object_id!==""?e:b[0]||{};y=u.getObjectId(t,e.useAlias||!e.object_id||!e.objectid,s)}if(!y){const t={object_alias:e.object_alias||e.alias||b[0]&&(b[0].object_alias||b[0].alias)||"",alias:e.alias||e.object_alias||b[0]&&(b[0].alias||b[0].object_alias)||"",object_id:e.object_id||e.objectid||b[0]&&(b[0].object_id||b[0].objectid)||"",objectid:e.objectid||e.object_id||b[0]&&(b[0].objectid||b[0].object_id)||""};y=u.getObjectId(t,!0,s)}let O=[];i==="alertTable"&&((j=c==null?void 0:c.columns)!=null&&j.value)&&(O=c.columns.value.filter(t=>t.useFv).map(t=>t.key));const q=(t,d)=>{const a=I(m({},t),{object_id:d,objectid:d}),f=`${d}_${_}`;if(r.has(f)){const l=r.get(f);if(["progressBar","progressCircle"].includes(i)&&a.maxType==="fv")l.id.push(a.fv,a.max);else{let h=a.fv;i==="cmc"&&(h=a.item_fv),["ctrSwitch"].includes(i)&&(h=a.status_fv),h&&l.id.push(h)}}else{let l=[];i==="alertTable"&&O.length>0?l=O:a.fv&&(l=[a.fv]),i==="evn"&&(l=[a.fv,a.status_fv]),["progressBar","progressCircle"].includes(i)&&a.maxType==="fv"&&(l=[a.fv,a.max]),i==="cmc"&&(l=[a.item_fv]),["ctrSwitch"].includes(i)&&(l=[a.status_fv]),l.length>0&&r.set(f,I(m({},a),{id:l}))}};if(b.forEach((t,d)=>{const a={object_alias:t.object_alias||t.alias||t.object_id||t.objectid||"",alias:t.alias||t.object_alias||t.object_id||t.objectid||"",object_id:t.object_id,objectid:t.objectid},f=T(a);(f.length>0?f:[y].filter(Boolean)).forEach(h=>q(t,h))}),i==="sankey"){const t=u.getObjectId({object_alias:e.object_alias||e.alias||e.object_id,alias:e.alias||e.object_alias||e.object_id,object_id:e.object_id,objectid:e.objectid},e.useAlias,s),d=`${t}_${_}`;r.has(d)?r.get(d).id.push(e.originFv):r.set(d,{object_id:t,id:[e.originFv]})}if(i==="scd"){const t=u.getObjectId({object_alias:(v=c==null?void 0:c.object)==null?void 0:v.value,alias:(x=c==null?void 0:c.object)==null?void 0:x.value,object_id:(w=c==null?void 0:c.object)==null?void 0:w.value,objectid:(A=c==null?void 0:c.object)==null?void 0:A.value},e.useAlias,s),d=`${t}_${_}`;r.has(d)?r.get(d).id.push((M=c==null?void 0:c.statusFv)==null?void 0:M.value):r.set(d,{object_id:t,id:[(F=c==null?void 0:c.statusFv)==null?void 0:F.value]})}for(const[t,d]of r)g.body[_]||(g.body[_]=[]),g.body[_].push({object_id:d.object_id,objectid:d.object_id,key:d.id});return g}catch(g){throw console.error("格式化请求时出错:",g),new Error("请求格式化失败")}})}exports.formatRequest=P;
@@ -2,15 +2,15 @@ var T = Object.defineProperty, C = Object.defineProperties;
2
2
  var K = Object.getOwnPropertyDescriptors;
3
3
  var k = Object.getOwnPropertySymbols;
4
4
  var q = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
5
- var M = (o, s, i) => s in o ? T(o, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[s] = i, x = (o, s) => {
6
- for (var i in s || (s = {}))
7
- q.call(s, i) && M(o, i, s[i]);
5
+ var M = (o, a, i) => a in o ? T(o, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[a] = i, x = (o, a) => {
6
+ for (var i in a || (a = {}))
7
+ q.call(a, i) && M(o, i, a[i]);
8
8
  if (k)
9
- for (var i of k(s))
10
- R.call(s, i) && M(o, i, s[i]);
9
+ for (var i of k(a))
10
+ R.call(a, i) && M(o, i, a[i]);
11
11
  return o;
12
- }, O = (o, s) => C(o, K(s));
13
- var B = (o, s, i) => new Promise((e, b) => {
12
+ }, O = (o, a) => C(o, K(a));
13
+ var B = (o, a, i) => new Promise((e, b) => {
14
14
  var c = (j) => {
15
15
  try {
16
16
  n(i.next(j));
@@ -24,10 +24,10 @@ var B = (o, s, i) => new Promise((e, b) => {
24
24
  b(u);
25
25
  }
26
26
  }, n = (j) => j.done ? e(j.value) : Promise.resolve(j.value).then(c, _);
27
- n((i = i.apply(o, s)).next());
27
+ n((i = i.apply(o, a)).next());
28
28
  });
29
- import { Z as V, $ as L, Y as y } from "./index-C_ms8XdY.js";
30
- function U(o, s, i) {
29
+ import { $ as V, a0 as L, Z as y } from "./index-CPTJIw32.js";
30
+ function U(o, a, i) {
31
31
  return B(this, null, function* () {
32
32
  var n, j, u, I, $, w, A, F;
33
33
  const { common: e, data: b, options: c } = o, _ = e.source || "mosaic";
@@ -42,12 +42,12 @@ function U(o, s, i) {
42
42
  }, r = /* @__PURE__ */ new Map();
43
43
  let g = "";
44
44
  const E = (t) => {
45
- const d = e.useAlias || !e.object_id || !e.objectid, a = d ? L(t, s) : [], f = y(t, d, s);
46
- return a.length > 0 ? a : f ? [f] : [];
45
+ const d = e.useAlias || !e.object_id || !e.objectid, s = d ? L(t, a) : [], f = y(t, d, a);
46
+ return s.length > 0 ? s : f ? [f] : [];
47
47
  };
48
48
  if (!e.multiObject || e.hideMultiObject) {
49
49
  const t = e.object_id !== void 0 && e.object_id !== "" ? e : b[0] || {};
50
- g = y(t, e.useAlias || !e.object_id || !e.objectid, s);
50
+ g = y(t, e.useAlias || !e.object_id || !e.objectid, a);
51
51
  }
52
52
  if (!g) {
53
53
  const t = {
@@ -56,32 +56,32 @@ function U(o, s, i) {
56
56
  object_id: e.object_id || e.objectid || b[0] && (b[0].object_id || b[0].objectid) || "",
57
57
  objectid: e.objectid || e.object_id || b[0] && (b[0].objectid || b[0].object_id) || ""
58
58
  };
59
- g = y(t, !0, s);
59
+ g = y(t, !0, a);
60
60
  }
61
61
  let m = [];
62
62
  i === "alertTable" && ((j = c == null ? void 0 : c.columns) != null && j.value) && (m = c.columns.value.filter((t) => t.useFv).map((t) => t.key));
63
63
  const S = (t, d) => {
64
- const a = O(x({}, t), { object_id: d, objectid: d }), f = `${d}_${_}`;
64
+ const s = O(x({}, t), { object_id: d, objectid: d }), f = `${d}_${_}`;
65
65
  if (r.has(f)) {
66
66
  const l = r.get(f);
67
- if (["progressBar", "progressCircle"].includes(i) && a.maxType === "fv")
68
- l.id.push(a.fv, a.max);
67
+ if (["progressBar", "progressCircle"].includes(i) && s.maxType === "fv")
68
+ l.id.push(s.fv, s.max);
69
69
  else {
70
- let h = a.fv;
71
- i === "cmc" && (h = a.item_fv), ["ctrSwitch"].includes(i) && (h = a.status_fv), h && l.id.push(h);
70
+ let h = s.fv;
71
+ i === "cmc" && (h = s.item_fv), ["ctrSwitch"].includes(i) && (h = s.status_fv), h && l.id.push(h);
72
72
  }
73
73
  } else {
74
74
  let l = [];
75
- i === "alertTable" && m.length > 0 ? l = m : a.fv && (l = [a.fv]), i === "evn" && (l = [a.fv, a.status_fv]), ["progressBar", "progressCircle"].includes(i) && a.maxType === "fv" && (l = [a.fv, a.max]), i === "cmc" && (l = [a.item_fv]), ["ctrSwitch"].includes(i) && (l = [a.status_fv]), l.length > 0 && r.set(f, O(x({}, a), { id: l }));
75
+ i === "alertTable" && m.length > 0 ? l = m : s.fv && (l = [s.fv]), i === "evn" && (l = [s.fv, s.status_fv]), ["progressBar", "progressCircle"].includes(i) && s.maxType === "fv" && (l = [s.fv, s.max]), i === "cmc" && (l = [s.item_fv]), ["ctrSwitch"].includes(i) && (l = [s.status_fv]), l.length > 0 && r.set(f, O(x({}, s), { id: l }));
76
76
  }
77
77
  };
78
78
  if (b.forEach((t, d) => {
79
- const a = {
79
+ const s = {
80
80
  object_alias: t.object_alias || t.alias || t.object_id || t.objectid || "",
81
81
  alias: t.alias || t.object_alias || t.object_id || t.objectid || "",
82
82
  object_id: t.object_id,
83
83
  objectid: t.objectid
84
- }, f = E(a);
84
+ }, f = E(s);
85
85
  (f.length > 0 ? f : [g].filter(Boolean)).forEach((h) => S(t, h));
86
86
  }), i === "sankey") {
87
87
  const t = y({
@@ -89,7 +89,7 @@ function U(o, s, i) {
89
89
  alias: e.alias || e.object_alias || e.object_id,
90
90
  object_id: e.object_id,
91
91
  objectid: e.objectid
92
- }, e.useAlias, s), d = `${t}_${_}`;
92
+ }, e.useAlias, a), d = `${t}_${_}`;
93
93
  r.has(d) ? r.get(d).id.push(e.originFv) : r.set(d, { object_id: t, id: [e.originFv] });
94
94
  }
95
95
  if (i === "scd") {
@@ -98,7 +98,7 @@ function U(o, s, i) {
98
98
  alias: (I = c == null ? void 0 : c.object) == null ? void 0 : I.value,
99
99
  object_id: ($ = c == null ? void 0 : c.object) == null ? void 0 : $.value,
100
100
  objectid: (w = c == null ? void 0 : c.object) == null ? void 0 : w.value
101
- }, e.useAlias, s), d = `${t}_${_}`;
101
+ }, e.useAlias, a), d = `${t}_${_}`;
102
102
  r.has(d) ? r.get(d).id.push((F = c == null ? void 0 : c.statusFv) == null ? void 0 : F.value) : r.set(d, { object_id: t, id: [(A = c == null ? void 0 : c.statusFv) == null ? void 0 : A.value] });
103
103
  }
104
104
  for (const [t, d] of r)
@@ -27,8 +27,8 @@ var I = (f, a, o) => new Promise((t, v) => {
27
27
  _((o = o.apply(f, a)).next());
28
28
  });
29
29
  import { defineComponent as k, reactive as P, computed as F, watchEffect as j, openBlock as B, createElementBlock as L, normalizeStyle as y, unref as d, createElementVNode as p, toDisplayString as D, renderSlot as $ } from "vue";
30
- import { B as U } from "./BaseComponent-Bv3RJ3vA.js";
31
- import { d as h, _ as W } from "./index-C_ms8XdY.js";
30
+ import { B as U } from "./BaseComponent-Dn65PXTp.js";
31
+ import { d as h, _ as W } from "./index-CPTJIw32.js";
32
32
  import { g as q } from "./titleStyle-BT5GlpAb.js";
33
33
  import { A as G, D as J } from "./ele-rtn-icon-CqCKSHIw.js";
34
34
  const K = { class: "mix-body" }, Q = { class: "mix-footer" }, X = { class: "time-info" }, Z = {
@@ -129,7 +129,7 @@ const K = { class: "mix-body" }, Q = { class: "mix-footer" }, X = { class: "time
129
129
  return {
130
130
  preview: () => I(this, null, function* () {
131
131
  try {
132
- const i = yield new (yield import("./history-D5cJ-xVg.js")).default().getHistoryData(this.props, this.componentType);
132
+ const i = yield new (yield import("./history-CY_TCu9h.js")).default().getHistoryData(this.props, this.componentType);
133
133
  this.setHistoryData(i);
134
134
  } catch (e) {
135
135
  console.error("[Retainer1] 获取历史数据失败:", e);
@@ -1 +1 @@
1
- "use strict";var V=Object.defineProperty,I=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var g=(d,r,s)=>r in d?V(d,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[r]=s,C=(d,r)=>{for(var s in r||(r={}))Y.call(r,s)&&g(d,s,r[s]);if(M)for(var s of M(r))j.call(r,s)&&g(d,s,r[s]);return d},z=(d,r)=>I(d,R(r));var O=(d,r,s)=>new Promise((t,p)=>{var y=l=>{try{v(s.next(l))}catch(S){p(S)}},b=l=>{try{v(s.throw(l))}catch(S){p(S)}},v=l=>l.done?t(l.value):Promise.resolve(l.value).then(y,b);v((s=s.apply(d,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),A=require("./BaseComponent-DdC8fmD6.cjs"),h=require("./index-DFbNT6Tf.cjs"),H=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-rtn-icon-BrsJIU8J.cjs"),w={class:"mix-body"},P={class:"mix-footer"},k={class:"time-info"},F={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"历程",NAME_EN:"Retainer1",ORDER:1,PLATFORM:["pc","screen","mobile"]},B={nameSize:16,valueSize:48,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",textColor:"#111",titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},N=[{object_id:"",retainer:"",fv:"",fv_name:"",retainer_code:"",status:[{code:0,text:"结束",color:"#409eff"},{code:1,text:"进行",color:"#f56c6c"}]}],L=["object_id","retainer","fv","fv_name","retainer_code"],$=["mosaic"],q=1,U={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},W={DEFAULT:F,OPTIONS:B,DATA:N,PARAMS:L,SOURCE:$,ITEMS:q,COMMON:U},G=o.defineComponent(z(C({},W),{__name:"retainer1",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(d){const r=d,s="--",t=o.reactive({title:s,statusText:s,statusColor:"#409eff",value:s,fvName:"",startTime:s,endTime:"- - - -",duration:s,status:0,startTimestamp:0}),p=f=>f<10?"0"+f:f,y=f=>f>=3600?`${p(Math.floor(f/3600))}:${p(Math.floor(f/60)%60)}:${p(Math.floor(f%60))}`:`${p(Math.floor(f/60))}:${p(Math.floor(f%60))}`;class b extends A.BaseComponent{constructor(){super(...arguments),this.subscribed=!1,this.durationTimer=null}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",16),valueSize:this.getOptionValue("valueSize",48),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){var e,i,c;if(this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=N),this.props.mode==="edit"){const a=((i=this.props.conf.data)==null?void 0:i[0])||{},n=((c=a.status)==null?void 0:c[1])||{text:"进行",color:"#f56c6c"};t.title="设备名称",t.fvName=a.fv_name||a.fv||"FV",t.statusText=n.text,t.statusColor=n.color,t.value="123.45",t.startTime=h.dayjs().subtract(1,"hour").format("YYYY-MM-DD HH:mm:ss"),t.endTime="- - - -",t.duration="01:23"}}startDurationTimer(){this.durationTimer&&clearInterval(this.durationTimer),this.durationTimer=window.setInterval(()=>{if(t.status===1&&t.startTimestamp>0){const e=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(e)}},1e3)}getPreviewHelper(){return{preview:()=>O(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-DBDrYQmw.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer1] 获取历史数据失败:",e)}}),unregister:()=>{this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}}}onPreview(){var a;if(this.subscribed)return;const e=this.resolveObjectId();this.subscribeRetainer(e),(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv&&this.subscribeFv(e),this.subscribed=!0}setSocketData(e){if(e){if(e.event==="retainer_result"&&e.source_event){const i=e.source_event;i.retained===1||i.retained==="1"?this.handleRetainerOpen(i):(i.retained===0||i.retained==="0")&&this.handleRetainerClose(i);return}switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}}handleRetainerOpen(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.fvName=c.fv_name||c.fv||"",t.status=1;const a=(u=c.status)==null?void 0:u.find(m=>m.code===1);if(t.statusText=(a==null?void 0:a.text)||"进行",t.statusColor=(a==null?void 0:a.color)||"#f56c6c",t.title=e.label_local||e.label_en||i.name||"--",e.opened_at){t.startTime=h.dayjs(e.opened_at).format("YYYY-MM-DD HH:mm:ss"),t.startTimestamp=h.dayjs(e.opened_at).valueOf();const m=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(m),this.startDurationTimer()}t.endTime="- - - -"}handleRetainerClose(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.status=0;const a=(u=c.status)==null?void 0:u.find(m=>m.code===0);if(t.statusText=(a==null?void 0:a.text)||"结束",t.statusColor=(a==null?void 0:a.color)||"#409eff",e.close_at&&(t.endTime=h.dayjs(e.close_at).format("YYYY-MM-DD HH:mm:ss")),e.opened_at&&e.close_at){const m=h.dayjs(e.opened_at).valueOf(),T=h.dayjs(e.close_at).valueOf(),D=Math.floor((T-m)/1e3);t.duration=y(D)}this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}handleRetainerEvent(e){}handleFvData(e){var a,n;const c=(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv;if(c)try{const u=(n=e.data)==null?void 0:n[c];u!==void 0&&(t.value=u)}catch(u){console.error("[Retainer1] 处理 FV 数据失败:",u)}}setHistoryData(e){var a,n,u;const{conf:i}=this.props,c=((a=i.data)==null?void 0:a[0])||{};try{const m=(u=(n=e==null?void 0:e.history)==null?void 0:n[0])==null?void 0:u[0];m&&this.updateParams(m,c,i)}catch(m){console.error("[Retainer1] setHistoryData error:",m),this.resetParams()}}updateParams(e,i,c){var m,T,D;const a=i.fv;t.fvName=i.fv_name||a||"",t.status=typeof e.status=="string"?parseInt(e.status):(m=e.status)!=null?m:0;const n=(T=i.status)==null?void 0:T.find(_=>_.code===t.status);if(t.statusText=(n==null?void 0:n.text)||(t.status===1?"进行":"结束"),t.statusColor=(n==null?void 0:n.color)||(t.status===1?"#f56c6c":"#409eff"),t.title=e.label_cn||c.name||s,t.startTime=e.start_time?h.dayjs(e.start_time).format("YYYY-MM-DD HH:mm:ss"):s,t.endTime=e.end_time?h.dayjs(e.end_time).format("YYYY-MM-DD HH:mm:ss"):"- - - -",e.start_time){const _=h.dayjs(e.start_time).valueOf();if(t.startTimestamp=_,e.end_time){const x=h.dayjs(e.end_time).valueOf();t.duration=y(Math.floor((x-_)/1e3))}else{const x=Math.floor((Date.now()-_)/1e3);t.duration=y(x),this.startDurationTimer()}}else t.duration="00:00";let u=s;e.mosaic&&Array.isArray(e.mosaic)&&e.mosaic.length>0&&(u=(D=e.mosaic[0][a])!=null?D:s),t.value=u}resetParams(){t.title=s,t.statusText=s,t.statusColor="#409eff",t.value=s,t.startTime=s,t.endTime="- - - -",t.duration=s}}const v=new b(r,"retainer1");v.setupLifecycle();const l=v.getStyle(),S=o.computed(()=>H.generateTitleStyle(r.conf.options));return o.watchEffect(()=>{r.conf.historyData&&v.setHistoryData(r.conf.historyData),r.conf.socketData&&v.setSocketData(r.conf.socketData)}),(f,e)=>(o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(l).bgColor,borderRadius:o.unref(l).radiusSize+"px"})},[o.createElementVNode("div",{class:"mix-title",style:o.normalizeStyle(S.value)},o.toDisplayString(r.conf.caption||t.title),5),o.createElementVNode("div",w,[o.createElementVNode("div",{class:"status-tag",style:o.normalizeStyle({fontSize:o.unref(l).nameSize-2+"px",backgroundColor:t.statusColor,color:"#fff"})},o.toDisplayString(t.fvName?t.fvName+"("+t.statusText+")":t.statusText),5),o.createElementVNode("div",{class:"card-value",style:o.normalizeStyle({fontSize:o.unref(l).valueSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.value),5)]),o.createElementVNode("div",P,[o.createElementVNode("div",k,[o.createElementVNode("div",{class:"time-item",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.startTime),5),o.createElementVNode("div",{class:"time-item",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.endTime),5)]),o.createElementVNode("div",{class:"duration",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+4+"px",color:o.unref(l).textColor})},o.toDisplayString(t.duration),5)]),o.renderSlot(f.$slots,"default",{},void 0,!0)],4))}})),J=h._export_sfc(G,[["__scopeId","data-v-ac5c0908"]]);exports.default=J;
1
+ "use strict";var V=Object.defineProperty,I=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var g=(d,r,s)=>r in d?V(d,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[r]=s,C=(d,r)=>{for(var s in r||(r={}))Y.call(r,s)&&g(d,s,r[s]);if(M)for(var s of M(r))j.call(r,s)&&g(d,s,r[s]);return d},z=(d,r)=>I(d,R(r));var O=(d,r,s)=>new Promise((t,p)=>{var y=l=>{try{v(s.next(l))}catch(S){p(S)}},b=l=>{try{v(s.throw(l))}catch(S){p(S)}},v=l=>l.done?t(l.value):Promise.resolve(l.value).then(y,b);v((s=s.apply(d,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),A=require("./BaseComponent-DKuQG62G.cjs"),h=require("./index-DoEyCVDU.cjs"),H=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-rtn-icon-BrsJIU8J.cjs"),w={class:"mix-body"},P={class:"mix-footer"},k={class:"time-info"},F={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"历程",NAME_EN:"Retainer1",ORDER:1,PLATFORM:["pc","screen","mobile"]},B={nameSize:16,valueSize:48,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",textColor:"#111",titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},N=[{object_id:"",retainer:"",fv:"",fv_name:"",retainer_code:"",status:[{code:0,text:"结束",color:"#409eff"},{code:1,text:"进行",color:"#f56c6c"}]}],L=["object_id","retainer","fv","fv_name","retainer_code"],$=["mosaic"],q=1,U={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},W={DEFAULT:F,OPTIONS:B,DATA:N,PARAMS:L,SOURCE:$,ITEMS:q,COMMON:U},G=o.defineComponent(z(C({},W),{__name:"retainer1",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(d){const r=d,s="--",t=o.reactive({title:s,statusText:s,statusColor:"#409eff",value:s,fvName:"",startTime:s,endTime:"- - - -",duration:s,status:0,startTimestamp:0}),p=f=>f<10?"0"+f:f,y=f=>f>=3600?`${p(Math.floor(f/3600))}:${p(Math.floor(f/60)%60)}:${p(Math.floor(f%60))}`:`${p(Math.floor(f/60))}:${p(Math.floor(f%60))}`;class b extends A.BaseComponent{constructor(){super(...arguments),this.subscribed=!1,this.durationTimer=null}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",16),valueSize:this.getOptionValue("valueSize",48),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){var e,i,c;if(this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=N),this.props.mode==="edit"){const a=((i=this.props.conf.data)==null?void 0:i[0])||{},n=((c=a.status)==null?void 0:c[1])||{text:"进行",color:"#f56c6c"};t.title="设备名称",t.fvName=a.fv_name||a.fv||"FV",t.statusText=n.text,t.statusColor=n.color,t.value="123.45",t.startTime=h.dayjs().subtract(1,"hour").format("YYYY-MM-DD HH:mm:ss"),t.endTime="- - - -",t.duration="01:23"}}startDurationTimer(){this.durationTimer&&clearInterval(this.durationTimer),this.durationTimer=window.setInterval(()=>{if(t.status===1&&t.startTimestamp>0){const e=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(e)}},1e3)}getPreviewHelper(){return{preview:()=>O(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-Dm7563t_.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer1] 获取历史数据失败:",e)}}),unregister:()=>{this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}}}onPreview(){var a;if(this.subscribed)return;const e=this.resolveObjectId();this.subscribeRetainer(e),(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv&&this.subscribeFv(e),this.subscribed=!0}setSocketData(e){if(e){if(e.event==="retainer_result"&&e.source_event){const i=e.source_event;i.retained===1||i.retained==="1"?this.handleRetainerOpen(i):(i.retained===0||i.retained==="0")&&this.handleRetainerClose(i);return}switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}}handleRetainerOpen(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.fvName=c.fv_name||c.fv||"",t.status=1;const a=(u=c.status)==null?void 0:u.find(m=>m.code===1);if(t.statusText=(a==null?void 0:a.text)||"进行",t.statusColor=(a==null?void 0:a.color)||"#f56c6c",t.title=e.label_local||e.label_en||i.name||"--",e.opened_at){t.startTime=h.dayjs(e.opened_at).format("YYYY-MM-DD HH:mm:ss"),t.startTimestamp=h.dayjs(e.opened_at).valueOf();const m=Math.floor((Date.now()-t.startTimestamp)/1e3);t.duration=y(m),this.startDurationTimer()}t.endTime="- - - -"}handleRetainerClose(e){var n,u;const{conf:i}=this.props,c=((n=i.data)==null?void 0:n[0])||{};t.status=0;const a=(u=c.status)==null?void 0:u.find(m=>m.code===0);if(t.statusText=(a==null?void 0:a.text)||"结束",t.statusColor=(a==null?void 0:a.color)||"#409eff",e.close_at&&(t.endTime=h.dayjs(e.close_at).format("YYYY-MM-DD HH:mm:ss")),e.opened_at&&e.close_at){const m=h.dayjs(e.opened_at).valueOf(),T=h.dayjs(e.close_at).valueOf(),D=Math.floor((T-m)/1e3);t.duration=y(D)}this.durationTimer&&(clearInterval(this.durationTimer),this.durationTimer=null)}handleRetainerEvent(e){}handleFvData(e){var a,n;const c=(((a=this.props.conf.data)==null?void 0:a[0])||{}).fv;if(c)try{const u=(n=e.data)==null?void 0:n[c];u!==void 0&&(t.value=u)}catch(u){console.error("[Retainer1] 处理 FV 数据失败:",u)}}setHistoryData(e){var a,n,u;const{conf:i}=this.props,c=((a=i.data)==null?void 0:a[0])||{};try{const m=(u=(n=e==null?void 0:e.history)==null?void 0:n[0])==null?void 0:u[0];m&&this.updateParams(m,c,i)}catch(m){console.error("[Retainer1] setHistoryData error:",m),this.resetParams()}}updateParams(e,i,c){var m,T,D;const a=i.fv;t.fvName=i.fv_name||a||"",t.status=typeof e.status=="string"?parseInt(e.status):(m=e.status)!=null?m:0;const n=(T=i.status)==null?void 0:T.find(_=>_.code===t.status);if(t.statusText=(n==null?void 0:n.text)||(t.status===1?"进行":"结束"),t.statusColor=(n==null?void 0:n.color)||(t.status===1?"#f56c6c":"#409eff"),t.title=e.label_cn||c.name||s,t.startTime=e.start_time?h.dayjs(e.start_time).format("YYYY-MM-DD HH:mm:ss"):s,t.endTime=e.end_time?h.dayjs(e.end_time).format("YYYY-MM-DD HH:mm:ss"):"- - - -",e.start_time){const _=h.dayjs(e.start_time).valueOf();if(t.startTimestamp=_,e.end_time){const x=h.dayjs(e.end_time).valueOf();t.duration=y(Math.floor((x-_)/1e3))}else{const x=Math.floor((Date.now()-_)/1e3);t.duration=y(x),this.startDurationTimer()}}else t.duration="00:00";let u=s;e.mosaic&&Array.isArray(e.mosaic)&&e.mosaic.length>0&&(u=(D=e.mosaic[0][a])!=null?D:s),t.value=u}resetParams(){t.title=s,t.statusText=s,t.statusColor="#409eff",t.value=s,t.startTime=s,t.endTime="- - - -",t.duration=s}}const v=new b(r,"retainer1");v.setupLifecycle();const l=v.getStyle(),S=o.computed(()=>H.generateTitleStyle(r.conf.options));return o.watchEffect(()=>{r.conf.historyData&&v.setHistoryData(r.conf.historyData),r.conf.socketData&&v.setSocketData(r.conf.socketData)}),(f,e)=>(o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(l).bgColor,borderRadius:o.unref(l).radiusSize+"px"})},[o.createElementVNode("div",{class:"mix-title",style:o.normalizeStyle(S.value)},o.toDisplayString(r.conf.caption||t.title),5),o.createElementVNode("div",w,[o.createElementVNode("div",{class:"status-tag",style:o.normalizeStyle({fontSize:o.unref(l).nameSize-2+"px",backgroundColor:t.statusColor,color:"#fff"})},o.toDisplayString(t.fvName?t.fvName+"("+t.statusText+")":t.statusText),5),o.createElementVNode("div",{class:"card-value",style:o.normalizeStyle({fontSize:o.unref(l).valueSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.value),5)]),o.createElementVNode("div",P,[o.createElementVNode("div",k,[o.createElementVNode("div",{class:"time-item",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.startTime),5),o.createElementVNode("div",{class:"time-item",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+"px",color:o.unref(l).textColor})},o.toDisplayString(t.endTime),5)]),o.createElementVNode("div",{class:"duration",style:o.normalizeStyle({fontSize:o.unref(l).timeSize+4+"px",color:o.unref(l).textColor})},o.toDisplayString(t.duration),5)]),o.renderSlot(f.$slots,"default",{},void 0,!0)],4))}})),J=h._export_sfc(G,[["__scopeId","data-v-ac5c0908"]]);exports.default=J;
@@ -1 +1 @@
1
- "use strict";var se=Object.defineProperty,ae=Object.defineProperties;var re=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var G=(b,l,c)=>l in b?se(b,l,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[l]=c,I=(b,l)=>{for(var c in l||(l={}))le.call(l,c)&&G(b,c,l[c]);if($)for(var c of $(l))ce.call(l,c)&&G(b,c,l[c]);return b},R=(b,l)=>ae(b,re(l));var U=(b,l,c)=>new Promise((w,D)=>{var C=S=>{try{L(c.next(S))}catch(g){D(g)}},E=S=>{try{L(c.throw(S))}catch(g){D(g)}},L=S=>S.done?w(S.value):Promise.resolve(S.value).then(C,E);L((c=c.apply(b,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vue"),de=require("./BaseComponent-DdC8fmD6.cjs"),T=require("./index-DFbNT6Tf.cjs"),he=require("./titleStyle-NSnz6cUg.cjs");require("./index-CJgyJTvc.cjs");const X=require("./ele-rtn-icon-BrsJIU8J.cjs"),fe=require("./echarts-BB8O2KSA.cjs"),ue={class:"mix-body"},me={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"历程管理",NAME_EN:"Retainer2",ORDER:2,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",radiusSize:8,bgColor:"#fff",textColor:"#111",barWidth:30,barGap:0,timeWindow:5,isHideTitle:!0,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},J=[{name:"历程1",object_id:"",retainer:"",retainer_code:"",color:"#ee6666",showLine:!1,fv:"",lineStyle:"solid",lineWidth:2}],ye=["name","object_id","retainer","retainer_code","color","showLine",{key:"fv",dependent:"showLine"},{key:"lineStyle",dependent:"showLine"},{key:"lineWidth",dependent:"showLine"}],ge=["mosaic"],ve={useAlias:!1,multiObject:!0,showBothModes:!0,source:"mosaic"},be={DEFAULT:me,OPTIONS:pe,DATA:J,PARAMS:ye,SOURCE:ge,COMMON:ve},we=h.defineComponent(R(I({},be),{__name:"retainer2",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){const l=b,c=h.ref(null);let w=null;const D=h.reactive([]),C=p=>D[p];class E extends de.BaseComponent{constructor(){super(...arguments),this.subscribed=!1}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",30),barGap:this.getOptionValue("barGap",0),timeWindow:this.getOptionValue("timeWindow",5),isHideTitle:this.getOptionValue("isHideTitle",!0)}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=J),this.props.mode==="edit"&&L()}getPreviewHelper(){return{preview:()=>U(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-DBDrYQmw.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer2] 获取历史数据失败:",e)}}),unregister:()=>{}}}onPreview(){var n;if(this.subscribed)return;const{conf:e}=this.props,{data:i,common:t}=e;if(t.multiObject&&Array.isArray(i)){const o=new Set;i.forEach(s=>{const r=this.resolveObjectId(s);!r||o.has(r)||(o.add(r),this.subscribeRetainer(r),s.showLine&&s.fv&&this.subscribeFv(r))})}else{const o=this.resolveObjectId();this.subscribeRetainer(o),(n=i==null?void 0:i[0])!=null&&n.fv&&this.subscribeFv(o)}this.subscribed=!0}setSocketData(e){if(e)switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}handleRetainerOpen(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(a=>this.resolveObjectId(n!=null&&n.multiObject?a:void 0)===o);if(s===-1)return;let r=C(s);if(!r){const a=t[s];r={name:a.name||`历程${s+1}`,color:a.color||"#409eff",objectId:o,fv:a.fv||"",periods:[],lineData:[],showLine:a.showLine||!1,lineStyle:a.lineStyle||"solid",lineWidth:a.lineWidth||2},D.push(r)}e.opened_at&&r.periods.push({start:e.opened_at,end:null}),O()}handleRetainerClose(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(d=>this.resolveObjectId(n!=null&&n.multiObject?d:void 0)===o);if(s===-1)return;const r=C(s);if(!r)return;const a=r.periods[r.periods.length-1];a&&!a.end&&(a.end=e.close_at||new Date().toISOString()),O()}handleRetainerEvent(e){}handleFvData(e){var d;const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(f=>this.resolveObjectId(n!=null&&n.multiObject?f:void 0)===o);if(s===-1)return;const a=t[s].fv;if(a)try{const f=(d=e.data)==null?void 0:d[a];if(f!==void 0){const v=C(s);if(v&&v.showLine){const u=e.datetime||new Date().toISOString();v.lineData.push({time:u,value:f}),v.lineData.sort((_,M)=>new Date(_.time).getTime()-new Date(M.time).getTime()),O()}}}catch(f){console.error("[Retainer2] 处理 FV 数据失败:",f)}}setHistoryData(e){const{conf:i}=this.props,{data:t,common:n}=i;D.length=0,t.forEach((o,s)=>{var f;const r=this.resolveObjectId(n!=null&&n.multiObject?o:void 0),a=o.fv||"",d={name:o.name||`历程${s+1}`,color:o.color||"#409eff",objectId:r,fv:a,periods:[],lineData:[],showLine:o.showLine||!1,lineStyle:o.lineStyle||"solid",lineWidth:o.lineWidth||2};try{(((f=e==null?void 0:e.history)==null?void 0:f[s])||[]).forEach(u=>{u&&u.start_time&&(d.periods.push({start:u.start_time,end:u.end_time||null}),o.showLine&&a&&u.mosaic&&Array.isArray(u.mosaic)&&u.mosaic.forEach(_=>{const M=_[a];M!==void 0&&_.time&&d.lineData.push({time:_.time,value:M})}))}),d.lineData.sort((u,_)=>new Date(u.time).getTime()-new Date(_.time).getTime())}catch(v){}D.push(d)}),O()}}const L=()=>{const{data:p}=l.conf;D.length=0;const e=T.dayjs();p.forEach((i,t)=>{const n=`edit_object_${t}`,o=[{start:e.subtract(6+t,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(4+t,"hour").format("YYYY-MM-DD HH:mm:ss")},{start:e.subtract(2+t*.5,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(t*.3,"hour").format("YYYY-MM-DD HH:mm:ss")}],s=[];i.showLine&&o.forEach(r=>{const a=T.dayjs(r.start),f=T.dayjs(r.end).diff(a,"minute"),v=Math.max(5,Math.floor(f/10));for(let u=0;u<=v;u++){const _=a.add(f/v*u,"minute");s.push({time:_.format("YYYY-MM-DD HH:mm:ss"),value:150+Math.sin(u*.8+t*2)*50+t*30})}}),D.push({name:i.name||`历程${t+1}`,color:i.color||["#ee6666","#91cc75","#fac858"][t%3],objectId:n,fv:i.fv||"",periods:o,lineData:s,showLine:i.showLine||!1,lineStyle:i.lineStyle||"solid",lineWidth:i.lineWidth||2})})},S=new E(l,"retainer2");S.setupLifecycle();const g=S.getStyle(),W=l.conf,K=h.computed(()=>he.generateTitleStyle(l.conf.options)),V=()=>D.filter(p=>p.showLine&&p.lineData.length>0),Q=()=>{const p=[],e=V();let i=1;return e.forEach(t=>{t.periods.forEach((n,o)=>{const s=new Date(n.start).getTime(),r=n.end?new Date(n.end).getTime():Date.now(),a=t.lineData.filter(d=>{const f=new Date(d.time).getTime();return f>=s&&f<=r}).map(d=>[new Date(d.time).getTime(),d.value]);a.length>0&&p.push({name:o===0?`${t.name}-曲线`:`${t.name}-曲线-${o+1}`,type:"line",yAxisIndex:i,smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:t.color,width:t.lineWidth,type:t.lineStyle},itemStyle:{color:t.color},data:a})}),i++}),p},Z=p=>{const e=V(),i=e.length,t=[{type:"value",min:0,max:p,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}}];return e.forEach((n,o)=>{const s=n.lineData.map(u=>u.value),r=Math.max(...s),a=Math.min(...s),d=Math.ceil(r*1.1),f=Math.floor(a*.9),v=o*50;t.push({type:"value",position:"right",offset:v,min:f,max:d,axisLine:{show:!0,lineStyle:{color:n.color}},axisTick:{show:!0,lineStyle:{color:n.color}},axisLabel:{color:n.color,fontSize:10},splitLine:{show:!1}})}),{yAxes:t,lineCount:i}},k=()=>{c.value&&(w=fe.init(c.value),O())},O=()=>{var B;if(!w)return;const p=D.length||1,e=((B=c.value)==null?void 0:B.clientHeight)||300,i=30,t=10,n=e-i-t,o=g.value.barWidth||30,s=g.value.barGap||0,r=o+s,a=p*r;let d=o,f=s,v=r;if(a>n){const m=n/a;d=Math.max(o*m,10),f=s*m,v=d+f}const u=[];let _=!1;D.forEach((m,y)=>{m.periods.forEach(x=>{const j=new Date(x.start).getTime(),Y=x.end?new Date(x.end).getTime():Date.now();x.end||(_=!0),u.push({name:m.name,value:[j,Y,y],itemStyle:{color:x.end?m.color+"80":m.color}})})});const{yAxes:M,lineCount:N}=Z(p),ee=N>0?20+N*50:20,te={tooltip:{trigger:"axis",formatter:m=>{if(Array.isArray(m)){const y=m.find(x=>x.seriesType==="line");if(y){const x=T.dayjs(y.value[0]).format("YYYY-MM-DD HH:mm:ss");return`${y.seriesName}<br/>时间: ${x}<br/>数值: ${y.value[1]}`}}return""}},grid:{left:40,right:ee,top:t,bottom:i,containLabel:!1},xAxis:R(I({type:"time",position:"bottom"},_?{min:Date.now()-g.value.timeWindow*60*1e3,max:Date.now()}:{}),{axisLine:{show:!0,lineStyle:{color:g.value.titleColor}},axisTick:{show:!0,lineStyle:{color:g.value.titleColor}},axisLabel:{formatter:"{HH}:{mm}",color:g.value.textColor,fontSize:11,margin:8},splitLine:{show:!1}}),yAxis:M,series:[{name:"甘特图",type:"custom",yAxisIndex:0,renderItem:(m,y)=>{var q;const x=y.value(0),j=y.value(1),Y=y.value(2),A=y.coord([x,0])[0],oe=y.coord([j,0])[0],P=m.coordSys.y+m.coordSys.height-(Y+1)*v+f,ne=P+d/2,F=Math.max(oe-A,2),ie=((q=D[Y])==null?void 0:q.name)||"";return{type:"group",children:[{type:"rect",shape:{x:A,y:P,width:F,height:d,r:2},style:y.style()},{type:"text",style:{x:A+F/2,y:ne,text:ie,fill:g.value.textColor,fontSize:11,textAlign:"center",textVerticalAlign:"middle"}}]}},encode:{x:[0,1],y:2,tooltip:[0,1]},tooltip:{formatter:m=>{const y=T.dayjs(m.value[0]).format("YYYY-MM-DD HH:mm:ss"),x=T.dayjs(m.value[1]).format("YYYY-MM-DD HH:mm:ss"),j=m.value[1]>=Date.now()-1e3;return`${m.name}<br/>开始: ${y}<br/>结束: ${j?"进行中":x}`}},data:u},...Q()]};w.setOption(te,!0)},z=()=>{w==null||w.resize()};let H=null;return h.onMounted(()=>{H=new ResizeObserver(()=>{w?w.resize():c.value&&k()}),c.value&&H.observe(c.value),setTimeout(()=>{k()},100),window.addEventListener("resize",z)}),h.onUnmounted(()=>{window.removeEventListener("resize",z),H==null||H.disconnect(),w==null||w.dispose()}),h.watch(()=>l.conf.data,()=>{l.mode==="edit"&&L(),O()},{deep:!0}),h.watch(()=>l.conf.options,()=>{g.value=S.extractStyles(),O()},{deep:!0}),h.watchEffect(()=>{l.conf.historyData&&S.setHistoryData(l.conf.historyData),l.conf.socketData&&S.setSocketData(l.conf.socketData)}),(p,e)=>(h.openBlock(),h.createElementBlock("div",{class:"mix-component",style:h.normalizeStyle({background:h.unref(g).bgColor,borderRadius:h.unref(g).radiusSize+"px"})},[h.createElementVNode("div",{class:"mix-title",style:h.normalizeStyle(K.value)},h.toDisplayString(h.unref(W).caption||h.unref(W).name),5),h.createElementVNode("div",ue,[h.createElementVNode("div",{class:"timeline-chart",ref_key:"chartRef",ref:c},null,512)]),h.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),De=T._export_sfc(we,[["__scopeId","data-v-7162b702"]]);exports.default=De;
1
+ "use strict";var se=Object.defineProperty,ae=Object.defineProperties;var re=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var G=(b,l,c)=>l in b?se(b,l,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[l]=c,I=(b,l)=>{for(var c in l||(l={}))le.call(l,c)&&G(b,c,l[c]);if($)for(var c of $(l))ce.call(l,c)&&G(b,c,l[c]);return b},R=(b,l)=>ae(b,re(l));var U=(b,l,c)=>new Promise((w,D)=>{var C=S=>{try{L(c.next(S))}catch(g){D(g)}},E=S=>{try{L(c.throw(S))}catch(g){D(g)}},L=S=>S.done?w(S.value):Promise.resolve(S.value).then(C,E);L((c=c.apply(b,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("vue"),de=require("./BaseComponent-DKuQG62G.cjs"),T=require("./index-DoEyCVDU.cjs"),he=require("./titleStyle-NSnz6cUg.cjs");require("./index-CJgyJTvc.cjs");const X=require("./ele-rtn-icon-BrsJIU8J.cjs"),fe=require("./echarts-BB8O2KSA.cjs"),ue={class:"mix-body"},me={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"历程管理",NAME_EN:"Retainer2",ORDER:2,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",radiusSize:8,bgColor:"#fff",textColor:"#111",barWidth:30,barGap:0,timeWindow:5,isHideTitle:!0,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},J=[{name:"历程1",object_id:"",retainer:"",retainer_code:"",color:"#ee6666",showLine:!1,fv:"",lineStyle:"solid",lineWidth:2}],ye=["name","object_id","retainer","retainer_code","color","showLine",{key:"fv",dependent:"showLine"},{key:"lineStyle",dependent:"showLine"},{key:"lineWidth",dependent:"showLine"}],ge=["mosaic"],ve={useAlias:!1,multiObject:!0,showBothModes:!0,source:"mosaic"},be={DEFAULT:me,OPTIONS:pe,DATA:J,PARAMS:ye,SOURCE:ge,COMMON:ve},we=h.defineComponent(R(I({},be),{__name:"retainer2",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(b){const l=b,c=h.ref(null);let w=null;const D=h.reactive([]),C=p=>D[p];class E extends de.BaseComponent{constructor(){super(...arguments),this.subscribed=!1}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",30),barGap:this.getOptionValue("barGap",0),timeWindow:this.getOptionValue("timeWindow",5),isHideTitle:this.getOptionValue("isHideTitle",!0)}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=J),this.props.mode==="edit"&&L()}getPreviewHelper(){return{preview:()=>U(this,null,function*(){try{const i=yield new(yield Promise.resolve().then(()=>require("./history-Dm7563t_.cjs"))).default().getHistoryData(this.props,this.componentType);this.setHistoryData(i)}catch(e){console.error("[Retainer2] 获取历史数据失败:",e)}}),unregister:()=>{}}}onPreview(){var n;if(this.subscribed)return;const{conf:e}=this.props,{data:i,common:t}=e;if(t.multiObject&&Array.isArray(i)){const o=new Set;i.forEach(s=>{const r=this.resolveObjectId(s);!r||o.has(r)||(o.add(r),this.subscribeRetainer(r),s.showLine&&s.fv&&this.subscribeFv(r))})}else{const o=this.resolveObjectId();this.subscribeRetainer(o),(n=i==null?void 0:i[0])!=null&&n.fv&&this.subscribeFv(o)}this.subscribed=!0}setSocketData(e){if(e)switch(e.event){case"retainer_open":this.handleRetainerOpen(e);break;case"retainer_close":this.handleRetainerClose(e);break;case"retainer_event":this.handleRetainerEvent(e);break;case"recv_fv":this.handleFvData(e);break}}handleRetainerOpen(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(a=>this.resolveObjectId(n!=null&&n.multiObject?a:void 0)===o);if(s===-1)return;let r=C(s);if(!r){const a=t[s];r={name:a.name||`历程${s+1}`,color:a.color||"#409eff",objectId:o,fv:a.fv||"",periods:[],lineData:[],showLine:a.showLine||!1,lineStyle:a.lineStyle||"solid",lineWidth:a.lineWidth||2},D.push(r)}e.opened_at&&r.periods.push({start:e.opened_at,end:null}),O()}handleRetainerClose(e){const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(d=>this.resolveObjectId(n!=null&&n.multiObject?d:void 0)===o);if(s===-1)return;const r=C(s);if(!r)return;const a=r.periods[r.periods.length-1];a&&!a.end&&(a.end=e.close_at||new Date().toISOString()),O()}handleRetainerEvent(e){}handleFvData(e){var d;const{conf:i}=this.props,{data:t,common:n}=i,o=e.object_id,s=t.findIndex(f=>this.resolveObjectId(n!=null&&n.multiObject?f:void 0)===o);if(s===-1)return;const a=t[s].fv;if(a)try{const f=(d=e.data)==null?void 0:d[a];if(f!==void 0){const v=C(s);if(v&&v.showLine){const u=e.datetime||new Date().toISOString();v.lineData.push({time:u,value:f}),v.lineData.sort((_,M)=>new Date(_.time).getTime()-new Date(M.time).getTime()),O()}}}catch(f){console.error("[Retainer2] 处理 FV 数据失败:",f)}}setHistoryData(e){const{conf:i}=this.props,{data:t,common:n}=i;D.length=0,t.forEach((o,s)=>{var f;const r=this.resolveObjectId(n!=null&&n.multiObject?o:void 0),a=o.fv||"",d={name:o.name||`历程${s+1}`,color:o.color||"#409eff",objectId:r,fv:a,periods:[],lineData:[],showLine:o.showLine||!1,lineStyle:o.lineStyle||"solid",lineWidth:o.lineWidth||2};try{(((f=e==null?void 0:e.history)==null?void 0:f[s])||[]).forEach(u=>{u&&u.start_time&&(d.periods.push({start:u.start_time,end:u.end_time||null}),o.showLine&&a&&u.mosaic&&Array.isArray(u.mosaic)&&u.mosaic.forEach(_=>{const M=_[a];M!==void 0&&_.time&&d.lineData.push({time:_.time,value:M})}))}),d.lineData.sort((u,_)=>new Date(u.time).getTime()-new Date(_.time).getTime())}catch(v){}D.push(d)}),O()}}const L=()=>{const{data:p}=l.conf;D.length=0;const e=T.dayjs();p.forEach((i,t)=>{const n=`edit_object_${t}`,o=[{start:e.subtract(6+t,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(4+t,"hour").format("YYYY-MM-DD HH:mm:ss")},{start:e.subtract(2+t*.5,"hour").format("YYYY-MM-DD HH:mm:ss"),end:e.subtract(t*.3,"hour").format("YYYY-MM-DD HH:mm:ss")}],s=[];i.showLine&&o.forEach(r=>{const a=T.dayjs(r.start),f=T.dayjs(r.end).diff(a,"minute"),v=Math.max(5,Math.floor(f/10));for(let u=0;u<=v;u++){const _=a.add(f/v*u,"minute");s.push({time:_.format("YYYY-MM-DD HH:mm:ss"),value:150+Math.sin(u*.8+t*2)*50+t*30})}}),D.push({name:i.name||`历程${t+1}`,color:i.color||["#ee6666","#91cc75","#fac858"][t%3],objectId:n,fv:i.fv||"",periods:o,lineData:s,showLine:i.showLine||!1,lineStyle:i.lineStyle||"solid",lineWidth:i.lineWidth||2})})},S=new E(l,"retainer2");S.setupLifecycle();const g=S.getStyle(),W=l.conf,K=h.computed(()=>he.generateTitleStyle(l.conf.options)),V=()=>D.filter(p=>p.showLine&&p.lineData.length>0),Q=()=>{const p=[],e=V();let i=1;return e.forEach(t=>{t.periods.forEach((n,o)=>{const s=new Date(n.start).getTime(),r=n.end?new Date(n.end).getTime():Date.now(),a=t.lineData.filter(d=>{const f=new Date(d.time).getTime();return f>=s&&f<=r}).map(d=>[new Date(d.time).getTime(),d.value]);a.length>0&&p.push({name:o===0?`${t.name}-曲线`:`${t.name}-曲线-${o+1}`,type:"line",yAxisIndex:i,smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:t.color,width:t.lineWidth,type:t.lineStyle},itemStyle:{color:t.color},data:a})}),i++}),p},Z=p=>{const e=V(),i=e.length,t=[{type:"value",min:0,max:p,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}}];return e.forEach((n,o)=>{const s=n.lineData.map(u=>u.value),r=Math.max(...s),a=Math.min(...s),d=Math.ceil(r*1.1),f=Math.floor(a*.9),v=o*50;t.push({type:"value",position:"right",offset:v,min:f,max:d,axisLine:{show:!0,lineStyle:{color:n.color}},axisTick:{show:!0,lineStyle:{color:n.color}},axisLabel:{color:n.color,fontSize:10},splitLine:{show:!1}})}),{yAxes:t,lineCount:i}},k=()=>{c.value&&(w=fe.init(c.value),O())},O=()=>{var B;if(!w)return;const p=D.length||1,e=((B=c.value)==null?void 0:B.clientHeight)||300,i=30,t=10,n=e-i-t,o=g.value.barWidth||30,s=g.value.barGap||0,r=o+s,a=p*r;let d=o,f=s,v=r;if(a>n){const m=n/a;d=Math.max(o*m,10),f=s*m,v=d+f}const u=[];let _=!1;D.forEach((m,y)=>{m.periods.forEach(x=>{const j=new Date(x.start).getTime(),Y=x.end?new Date(x.end).getTime():Date.now();x.end||(_=!0),u.push({name:m.name,value:[j,Y,y],itemStyle:{color:x.end?m.color+"80":m.color}})})});const{yAxes:M,lineCount:N}=Z(p),ee=N>0?20+N*50:20,te={tooltip:{trigger:"axis",formatter:m=>{if(Array.isArray(m)){const y=m.find(x=>x.seriesType==="line");if(y){const x=T.dayjs(y.value[0]).format("YYYY-MM-DD HH:mm:ss");return`${y.seriesName}<br/>时间: ${x}<br/>数值: ${y.value[1]}`}}return""}},grid:{left:40,right:ee,top:t,bottom:i,containLabel:!1},xAxis:R(I({type:"time",position:"bottom"},_?{min:Date.now()-g.value.timeWindow*60*1e3,max:Date.now()}:{}),{axisLine:{show:!0,lineStyle:{color:g.value.titleColor}},axisTick:{show:!0,lineStyle:{color:g.value.titleColor}},axisLabel:{formatter:"{HH}:{mm}",color:g.value.textColor,fontSize:11,margin:8},splitLine:{show:!1}}),yAxis:M,series:[{name:"甘特图",type:"custom",yAxisIndex:0,renderItem:(m,y)=>{var q;const x=y.value(0),j=y.value(1),Y=y.value(2),A=y.coord([x,0])[0],oe=y.coord([j,0])[0],P=m.coordSys.y+m.coordSys.height-(Y+1)*v+f,ne=P+d/2,F=Math.max(oe-A,2),ie=((q=D[Y])==null?void 0:q.name)||"";return{type:"group",children:[{type:"rect",shape:{x:A,y:P,width:F,height:d,r:2},style:y.style()},{type:"text",style:{x:A+F/2,y:ne,text:ie,fill:g.value.textColor,fontSize:11,textAlign:"center",textVerticalAlign:"middle"}}]}},encode:{x:[0,1],y:2,tooltip:[0,1]},tooltip:{formatter:m=>{const y=T.dayjs(m.value[0]).format("YYYY-MM-DD HH:mm:ss"),x=T.dayjs(m.value[1]).format("YYYY-MM-DD HH:mm:ss"),j=m.value[1]>=Date.now()-1e3;return`${m.name}<br/>开始: ${y}<br/>结束: ${j?"进行中":x}`}},data:u},...Q()]};w.setOption(te,!0)},z=()=>{w==null||w.resize()};let H=null;return h.onMounted(()=>{H=new ResizeObserver(()=>{w?w.resize():c.value&&k()}),c.value&&H.observe(c.value),setTimeout(()=>{k()},100),window.addEventListener("resize",z)}),h.onUnmounted(()=>{window.removeEventListener("resize",z),H==null||H.disconnect(),w==null||w.dispose()}),h.watch(()=>l.conf.data,()=>{l.mode==="edit"&&L(),O()},{deep:!0}),h.watch(()=>l.conf.options,()=>{g.value=S.extractStyles(),O()},{deep:!0}),h.watchEffect(()=>{l.conf.historyData&&S.setHistoryData(l.conf.historyData),l.conf.socketData&&S.setSocketData(l.conf.socketData)}),(p,e)=>(h.openBlock(),h.createElementBlock("div",{class:"mix-component",style:h.normalizeStyle({background:h.unref(g).bgColor,borderRadius:h.unref(g).radiusSize+"px"})},[h.createElementVNode("div",{class:"mix-title",style:h.normalizeStyle(K.value)},h.toDisplayString(h.unref(W).caption||h.unref(W).name),5),h.createElementVNode("div",ue,[h.createElementVNode("div",{class:"timeline-chart",ref_key:"chartRef",ref:c},null,512)]),h.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),De=T._export_sfc(we,[["__scopeId","data-v-7162b702"]]);exports.default=De;
@@ -27,8 +27,8 @@ var q = (v, l, c) => new Promise((b, w) => {
27
27
  L((c = c.apply(v, l)).next());
28
28
  });
29
29
  import { defineComponent as he, ref as ue, reactive as me, computed as pe, onMounted as ge, onUnmounted as ye, watch as J, watchEffect as ve, openBlock as be, createElementBlock as we, normalizeStyle as K, unref as A, createElementVNode as I, toDisplayString as De, renderSlot as Se } from "vue";
30
- import { B as xe } from "./BaseComponent-Bv3RJ3vA.js";
31
- import { d as O, _ as _e } from "./index-C_ms8XdY.js";
30
+ import { B as xe } from "./BaseComponent-Dn65PXTp.js";
31
+ import { d as O, _ as _e } from "./index-CPTJIw32.js";
32
32
  import { g as Le } from "./titleStyle-BT5GlpAb.js";
33
33
  import "./index-eIsZnzkc.js";
34
34
  import { A as Me, D as Oe } from "./ele-rtn-icon-CqCKSHIw.js";
@@ -113,7 +113,7 @@ const He = { class: "mix-body" }, Ce = {
113
113
  return {
114
114
  preview: () => q(this, null, function* () {
115
115
  try {
116
- const i = yield new (yield import("./history-D5cJ-xVg.js")).default().getHistoryData(this.props, this.componentType);
116
+ const i = yield new (yield import("./history-CY_TCu9h.js")).default().getHistoryData(this.props, this.componentType);
117
117
  this.setHistoryData(i);
118
118
  } catch (e) {
119
119
  console.error("[Retainer2] 获取历史数据失败:", e);
@@ -1 +1 @@
1
- "use strict";var ye=Object.defineProperty,xe=Object.defineProperties;var Ne=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var Z=(g,u,c)=>u in g?ye(g,u,{enumerable:!0,configurable:!0,writable:!0,value:c}):g[u]=c,U=(g,u)=>{for(var c in u||(u={}))Ce.call(u,c)&&Z(g,c,u[c]);if(X)for(var c of X(u))we.call(u,c)&&Z(g,c,u[c]);return g},$=(g,u)=>xe(g,Ne(u));var T=(g,u,c)=>new Promise((w,F)=>{var L=f=>{try{E(c.next(f))}catch(k){F(k)}},V=f=>{try{E(c.throw(f))}catch(k){F(k)}},E=f=>f.done?w(f.value):Promise.resolve(f.value).then(L,V);E((c=c.apply(g,u)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/timeline/style/css");require("element-plus/es/components/timeline-item/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/alert/style/css");const Se=require("./AgGridTable-CE6GaYj4.cjs");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio-button/style/css");const e=require("vue"),_=require("./index-DFbNT6Tf.cjs"),Te=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Ee=require("./BaseComponent-DdC8fmD6.cjs"),ke=require("./titleStyle-NSnz6cUg.cjs"),C=require("element-plus"),De=require("@element-plus/icons-vue"),Be=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),W=require("./syncMixiotListConfig-Elkp8zAs.cjs"),Ae=require("./AgActionsRenderer-Dlr21zZJ.cjs"),ee=require("./ele-lst-icon-CrxnHZ-A.cjs"),Oe={class:"mix-body"},Me={class:"toolbar-status"},je={class:"top-bar"},Re={class:"detail-body"},qe={key:0,class:"detail-events-title"},Fe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"历程记录",NAME_EN:"RetainerRecordList",ORDER:7,PLATFORM:["pc","screen"]},Le={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[]},te=[{export:!0,view:!0}],ze=[{key:"export",label:"导出",type:"checkbox"}],Ie=[{key:"view",label:"详情",type:"checkbox"}],Pe=[],Ye={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"template_id",label:"setting.gridFields.templateId"},{value:"code",label:"setting.gridFields.code"},{value:"label_cn",label:"setting.gridFields.labelCn"},{value:"label_en",label:"setting.gridFields.labelEn"},{value:"category",label:"setting.gridFields.category"},{value:"object_id",label:"setting.gridFields.objectId"},{value:"object_name",label:"setting.gridFields.objectName"},{value:"object_alias",label:"setting.gridFields.objectAlias"},{value:"model",label:"setting.gridFields.model"},{value:"customer_name",label:"setting.gridFields.customerName"},{value:"opened_at",label:"setting.gridFields.openedAt"}]},He={DEFAULT:Fe,OPTIONS:Le,DATA:te,COMMANDS:ze,OPERATIONS:Ie,SOURCE:Pe,COMMON:Ye},Ue=e.defineComponent($(U({},He),{__name:"retainerRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(g){const u={ALERT:"报警",FAULT:"故障",OTHER:"其他"},c="YYYY-MM-DD HH:mm:ss",w=g;class F extends Ee.BaseComponent{getDataBool(t,r){var n,i;const l=(i=(n=this.props.conf)==null?void 0:n.data)==null?void 0:i[0];return l&&Object.prototype.hasOwnProperty.call(l,t)&&l[t]!==void 0?!!l[t]:this.getOptionValue(t,r)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),export:this.getDataBool("export",!0),view:this.getDataBool("view",!0)}}init(){return T(this,null,function*(){this.applyTheme(),W.setupMixiotListConf(this.props.conf,{export:!0,view:!0},te),this.Style.value=this.extractStyles()})}}const L=new F(w,"retainerRecordList");L.setupLifecycle();const V=L.getStyle();e.computed(()=>W.computeMixiotActionColumnMinWidth(V.value,{view:60}));const{mixiotPanelClass:E,mixiotPanelRootStyle:f}=Te.useMixiotPanelSurface(V),k=e.computed(()=>ke.generateTitleStyle(w.conf.options)),ae=e.computed(()=>W.buildMixiotColumnsConfig(w.conf)),b=e.reactive({current:1,pageSize:20,total:0}),D=e.ref("1"),B=e.ref([_.dayjs().subtract(1,"month").format(c),_.dayjs().format(c)]),A=e.ref(""),v=e.ref("object_name"),O=e.ref(null),M=e.ref(""),S=e.ref([]),P=e.ref(!1),Y=e.ref({});function le(){b.current=1,j()}function oe(){A.value="",O.value=null,M.value=""}function ne(o){var r;if(o==null||o==="")return"";const t=String(o);return(r=u[t])!=null?r:t}function G(o){const t=o.retained;return t===1||t==="1"}function ie(){return T(this,null,function*(){var o;if(!(Object.keys(Y.value).length>0))try{let t=1;const r=2e3;for(;;){const l=yield _.api.http("get_object_list",{page_index:t,page_size:r},!1),n=(o=l==null?void 0:l.result)!=null?o:l,i=Array.isArray(n==null?void 0:n.data)?n.data:[];for(const d of i){const y=d.uid;y&&(Y.value[y]={name:d.name,alias:d.alias,model:d.model})}const h=typeof(n==null?void 0:n.total_records)=="number"?n.total_records:i.length;if(!i.length||t*r>=h)break;t++}}catch(t){}})}function re(){const o=[];D.value!=="2"&&o.push(["retained","=",D.value]);const t=B.value;if(t&&t.length===2&&t[0]&&t[1]){const[l,n]=t[0]<=t[1]?t:[t[1],t[0]];o.push(["created",">=",l]),o.push(["created","<=",n])}if(v.value==="opened_at"){const l=O.value;if(l&&l.length===2&&l[0]&&l[1]){const[n,i]=l[0]<=l[1]?l:[l[1],l[0]];o.push(["opened_at",">=",n]),o.push(["opened_at","<=",i])}}else if(v.value==="category"){const l=M.value.trim();l&&o.push(["category","=",l])}else{const l=A.value.trim();l&&o.push([v.value,"like",`%${l}%`])}Be.appendCommonDesignerWhereAnd(w.conf.common,o);const r={page_index:b.current,page_size:b.pageSize};return o.length&&(r.where_and=JSON.stringify(o)),r}function j(){return T(this,null,function*(){var o;P.value=!0;try{yield ie();const t=yield _.api.http("get_retainer_result_list",re(),!0),r=(o=t==null?void 0:t.result)!=null?o:t,l=Array.isArray(r==null?void 0:r.data)?r.data:[];S.value=l.map(i=>{var y,x,I;const h=i.object_id?String(i.object_id):"",d=h?Y.value[h]:void 0;return $(U({},i),{object_name:(y=i.object_name)!=null?y:d==null?void 0:d.name,object_alias:(x=i.object_alias)!=null?x:d==null?void 0:d.alias,model:(I=i.model)!=null?I:d==null?void 0:d.model})});const n=r==null?void 0:r.total_records;b.total=typeof n=="number"?n:l.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[retainerRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),S.value=[],b.total=0}finally{P.value=!1}})}const se={AgActionsRenderer:Ae.AgActionsRenderer},ce=e.computed(()=>{const o=ae.value.filter(t=>t.visible).map(t=>({field:t.prop,headerName:t.label,width:t.width||t.minWidth||120,minWidth:t.minWidth||80}));return o.push({headerName:"操作",minWidth:80,pinned:"right",cellRenderer:"AgActionsRenderer",cellRendererParams:{showView:V.value.view,onView:pe}}),o});function ue(){j()}e.computed(()=>S.value);function K(){b.current=1,j()}function de(){A.value="",O.value=null,M.value="",v.value="object_name",D.value="1",B.value=[_.dayjs().subtract(1,"month").format(c),_.dayjs().format(c)],b.current=1,j()}const z=e.ref(!1),H=e.ref(!1),R=e.ref(""),s=e.ref(null),q=e.ref([]);function pe(o){return T(this,null,function*(){var r;const t=o.uid;if(!t){C.ElMessage.warning("当前行缺少历程编号,无法拉取详情");return}z.value=!0,H.value=!0,R.value="",s.value=null,q.value=[];try{const l=yield _.api.http("get_retainer_with_events",{retainer_id:t},!0),n=(r=l==null?void 0:l.result)!=null?r:l;if(l&&l.code!==void 0&&l.code!==200){R.value=String(l.msg||l.info||"详情接口失败");return}s.value=n;const i=n==null?void 0:n.events;q.value=Array.isArray(i)?i:[]}catch(l){R.value="加载历程详情失败"}finally{H.value=!1}})}function me(o){const t=r=>String(r).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function ge(){return T(this,null,function*(){const o=B.value;if(!o||o.length<2||!o[0]||!o[1]){C.ElMessage.warning("请先选择创建时间范围后再导出");return}const t=[...new Set(S.value.map(l=>{var n;return String((n=l.object_id)!=null?n:"").trim()}).filter(Boolean))],r=[...new Set(S.value.map(l=>{var n;return String((n=l.template_id)!=null?n:"").trim()}).filter(Boolean))];if(!t.length&&!r.length){C.ElMessage.warning("当前页列表无项目编号或对象编号,请加载数据后再导出");return}try{yield C.ElMessageBox.confirm("将按当前列表中的项目/对象编号及所选创建时间范围提交导出任务(与 mixui 历程导出一致),是否继续?","导出历程数据",{type:"info"})}catch(l){return}try{const l=yield _.api.http("export_retainer_data",{file_name:`retainer_export_${me(new Date).replace(/[: ]/g,"_")}`,open_at:o[0]<=o[1]?o[0]:o[1],close_at:o[0]<=o[1]?o[1]:o[0],template_ids:r,object_ids:t,character:"utf-8"},!0);if(l.code!==void 0&&l.code!==200){C.ElMessage.warning(l.msg||l.info||"导出请求未成功");return}C.ElMessage.success("导出任务已提交")}catch(l){C.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{j()}),(o,t)=>{const r=m.ElRadioButton,l=m.ElRadioGroup,n=m.ElDatePicker,i=m.ElOption,h=m.ElSelect,d=m.ElIcon,y=m.ElInput,x=m.ElButton,I=Se.AgGridTable,fe=m.ElAlert,p=m.ElDescriptionsItem,ve=m.ElTag,_e=m.ElDescriptions,be=m.ElTimelineItem,Ve=m.ElTimeline,he=m.ElDialog,Q=m.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["retainer-record-list mix-component",e.unref(E)]),style:e.normalizeStyle(e.unref(f))},[e.unref(V).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(k.value)},e.toDisplayString(g.conf.caption||g.conf.name),5)),e.createElementVNode("div",Oe,[e.createElementVNode("div",Me,[e.createVNode(l,{modelValue:D.value,"onUpdate:modelValue":t[0]||(t[0]=a=>D.value=a),onChange:le},{default:e.withCtx(()=>[e.createVNode(r,{label:"1"},{default:e.withCtx(()=>[...t[9]||(t[9]=[e.createTextVNode("持续历程",-1)])]),_:1}),e.createVNode(r,{label:"0"},{default:e.withCtx(()=>[...t[10]||(t[10]=[e.createTextVNode("已完结历程",-1)])]),_:1}),e.createVNode(r,{label:"2"},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode("全部记录",-1)])]),_:1})]),_:1},8,["modelValue"]),e.createVNode(n,{modelValue:B.value,"onUpdate:modelValue":t[1]||(t[1]=a=>B.value=a),type:"datetimerange","range-separator":"至","start-placeholder":"创建开始","end-placeholder":"创建结束","value-format":"YYYY-MM-DD HH:mm:ss",class:"toolbar-created-range"},null,8,["modelValue"])]),e.createElementVNode("div",je,[e.createVNode(h,{modelValue:v.value,"onUpdate:modelValue":t[2]||(t[2]=a=>v.value=a),class:"toolbar-field-select",onChange:oe},{default:e.withCtx(()=>[e.createVNode(i,{label:"项目编号",value:"template_id"}),e.createVNode(i,{label:"历程项编码",value:"code"}),e.createVNode(i,{label:"历程项名称(中文)",value:"label_cn"}),e.createVNode(i,{label:"历程项名称(英文)",value:"label_en"}),e.createVNode(i,{label:"历程类型",value:"category"}),e.createVNode(i,{label:"对象编号",value:"object_id"}),e.createVNode(i,{label:"对象别名",value:"object_alias"}),e.createVNode(i,{label:"对象名称",value:"object_name"}),e.createVNode(i,{label:"对象型号",value:"model"}),e.createVNode(i,{label:"项目名称",value:"customer_name"}),e.createVNode(i,{label:"开始时间",value:"opened_at"})]),_:1},8,["modelValue"]),v.value!=="opened_at"&&v.value!=="category"?(e.openBlock(),e.createBlock(y,{key:0,modelValue:A.value,"onUpdate:modelValue":t[3]||(t[3]=a=>A.value=a),placeholder:"输入关键字后搜索(与 mixui 历程记录检索字段一致)",class:"toolbar-search",onKeyup:e.withKeys(K,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(d,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(De.Search))]),_:1})]),_:1},8,["modelValue"])):v.value==="opened_at"?(e.openBlock(),e.createBlock(n,{key:1,modelValue:O.value,"onUpdate:modelValue":t[4]||(t[4]=a=>O.value=a),type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD HH:mm:ss",class:"toolbar-opened-range"},null,8,["modelValue"])):(e.openBlock(),e.createBlock(h,{key:2,modelValue:M.value,"onUpdate:modelValue":t[5]||(t[5]=a=>M.value=a),placeholder:"历程类型",class:"toolbar-category",clearable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,(a,N)=>e.createVNode(i,{key:N,label:a,value:N},null,8,["label","value"])),64))]),_:1},8,["modelValue"])),e.createVNode(x,{type:"primary",onClick:K},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(x,{onClick:de},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(V).export?(e.openBlock(),e.createBlock(x,{key:3,type:"success",onClick:ge},{default:e.withCtx(()=>[...t[14]||(t[14]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(I,{"column-defs":ce.value,"row-data":S.value,"show-pagination":!0,pager:b,"auto-fill-columns":!0,components:se,onPageChange:ue},null,8,["column-defs","row-data","pager"])]),e.createVNode(he,{modelValue:z.value,"onUpdate:modelValue":t[7]||(t[7]=a=>z.value=a),title:"历程记录详情",width:"720px","destroy-on-close":"",onClosed:t[8]||(t[8]=a=>s.value=null)},{footer:e.withCtx(()=>[e.createVNode(x,{type:"primary",onClick:t[6]||(t[6]=a=>z.value=!1)},{default:e.withCtx(()=>[...t[15]||(t[15]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Re,[R.value?(e.openBlock(),e.createBlock(fe,{key:0,type:"error",title:R.value,"show-icon":"",closable:!1,class:"mb-3"},null,8,["title"])):s.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(_e,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(p,{label:"历程编号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.uid)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"项目编号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.template_id)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"历程项(中文)"},{default:e.withCtx(()=>{var a,N;return[e.createTextVNode(e.toDisplayString((N=(a=s.value.label_local)!=null?a:s.value.label_cn)!=null?N:""),1)]}),_:1}),e.createVNode(p,{label:"历程项(英文)"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.label_en)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"历程项编码"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.code)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"历程类型"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ne(s.value.category)),1)]),_:1}),e.createVNode(p,{label:"对象编号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.object_id)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"对象名称"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.object_name)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"对象别名"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.object_alias)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"型号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.model)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"状态"},{default:e.withCtx(()=>[e.createVNode(ve,{type:G(s.value)?"success":"info",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(G(s.value)?"持续":"已完结"),1)]),_:1},8,["type"])]),_:1}),e.createVNode(p,{label:"开始时间"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.opened_at)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"结束时间"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.close_at)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"持续时间"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.elapsed)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"统计结果"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.statis_result)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"描述",span:2},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.description)!=null?a:""),1)]}),_:1})]),_:1}),q.value.length?(e.openBlock(),e.createElementBlock("div",qe,"事件")):e.createCommentVNode("",!0),q.value.length?(e.openBlock(),e.createBlock(Ve,{key:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(a,N)=>{var J;return e.openBlock(),e.createBlock(be,{key:N,timestamp:String((J=a.datetime)!=null?J:"")},{default:e.withCtx(()=>[e.createElementVNode("div",null,"状态:"+e.toDisplayString(a.status===1||a.status==="1"?"开启":"关闭"),1)]),_:2},1032,["timestamp"])}),128))]),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),[[Q,H.value]])]),_:1},8,["modelValue"]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[Q,P.value]])}}})),$e=_._export_sfc(Ue,[["__scopeId","data-v-7c707e4d"]]);exports.default=$e;
1
+ "use strict";var ye=Object.defineProperty,xe=Object.defineProperties;var Ne=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var Z=(g,u,c)=>u in g?ye(g,u,{enumerable:!0,configurable:!0,writable:!0,value:c}):g[u]=c,U=(g,u)=>{for(var c in u||(u={}))Ce.call(u,c)&&Z(g,c,u[c]);if(X)for(var c of X(u))we.call(u,c)&&Z(g,c,u[c]);return g},$=(g,u)=>xe(g,Ne(u));var T=(g,u,c)=>new Promise((w,F)=>{var L=f=>{try{E(c.next(f))}catch(k){F(k)}},V=f=>{try{E(c.throw(f))}catch(k){F(k)}},E=f=>f.done?w(f.value):Promise.resolve(f.value).then(L,V);E((c=c.apply(g,u)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/timeline/style/css");require("element-plus/es/components/timeline-item/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/alert/style/css");const Se=require("./AgGridTable-BQvI6jpO.cjs");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio-button/style/css");const e=require("vue"),_=require("./index-DoEyCVDU.cjs"),Te=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Ee=require("./BaseComponent-DKuQG62G.cjs"),ke=require("./titleStyle-NSnz6cUg.cjs"),C=require("element-plus"),De=require("@element-plus/icons-vue"),Be=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),W=require("./syncMixiotListConfig-Elkp8zAs.cjs"),Ae=require("./AgActionsRenderer-DnPvuT_-.cjs"),ee=require("./ele-lst-icon-CrxnHZ-A.cjs"),Oe={class:"mix-body"},Me={class:"toolbar-status"},je={class:"top-bar"},Re={class:"detail-body"},qe={key:0,class:"detail-events-title"},Fe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"历程记录",NAME_EN:"RetainerRecordList",ORDER:7,PLATFORM:["pc","screen"]},Le={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[]},te=[{export:!0,view:!0}],ze=[{key:"export",label:"导出",type:"checkbox"}],Ie=[{key:"view",label:"详情",type:"checkbox"}],Pe=[],Ye={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"template_id",label:"setting.gridFields.templateId"},{value:"code",label:"setting.gridFields.code"},{value:"label_cn",label:"setting.gridFields.labelCn"},{value:"label_en",label:"setting.gridFields.labelEn"},{value:"category",label:"setting.gridFields.category"},{value:"object_id",label:"setting.gridFields.objectId"},{value:"object_name",label:"setting.gridFields.objectName"},{value:"object_alias",label:"setting.gridFields.objectAlias"},{value:"model",label:"setting.gridFields.model"},{value:"customer_name",label:"setting.gridFields.customerName"},{value:"opened_at",label:"setting.gridFields.openedAt"}]},He={DEFAULT:Fe,OPTIONS:Le,DATA:te,COMMANDS:ze,OPERATIONS:Ie,SOURCE:Pe,COMMON:Ye},Ue=e.defineComponent($(U({},He),{__name:"retainerRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(g){const u={ALERT:"报警",FAULT:"故障",OTHER:"其他"},c="YYYY-MM-DD HH:mm:ss",w=g;class F extends Ee.BaseComponent{getDataBool(t,r){var n,i;const l=(i=(n=this.props.conf)==null?void 0:n.data)==null?void 0:i[0];return l&&Object.prototype.hasOwnProperty.call(l,t)&&l[t]!==void 0?!!l[t]:this.getOptionValue(t,r)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),export:this.getDataBool("export",!0),view:this.getDataBool("view",!0)}}init(){return T(this,null,function*(){this.applyTheme(),W.setupMixiotListConf(this.props.conf,{export:!0,view:!0},te),this.Style.value=this.extractStyles()})}}const L=new F(w,"retainerRecordList");L.setupLifecycle();const V=L.getStyle();e.computed(()=>W.computeMixiotActionColumnMinWidth(V.value,{view:60}));const{mixiotPanelClass:E,mixiotPanelRootStyle:f}=Te.useMixiotPanelSurface(V),k=e.computed(()=>ke.generateTitleStyle(w.conf.options)),ae=e.computed(()=>W.buildMixiotColumnsConfig(w.conf)),b=e.reactive({current:1,pageSize:20,total:0}),D=e.ref("1"),B=e.ref([_.dayjs().subtract(1,"month").format(c),_.dayjs().format(c)]),A=e.ref(""),v=e.ref("object_name"),O=e.ref(null),M=e.ref(""),S=e.ref([]),P=e.ref(!1),Y=e.ref({});function le(){b.current=1,j()}function oe(){A.value="",O.value=null,M.value=""}function ne(o){var r;if(o==null||o==="")return"";const t=String(o);return(r=u[t])!=null?r:t}function G(o){const t=o.retained;return t===1||t==="1"}function ie(){return T(this,null,function*(){var o;if(!(Object.keys(Y.value).length>0))try{let t=1;const r=2e3;for(;;){const l=yield _.api.http("get_object_list",{page_index:t,page_size:r},!1),n=(o=l==null?void 0:l.result)!=null?o:l,i=Array.isArray(n==null?void 0:n.data)?n.data:[];for(const d of i){const y=d.uid;y&&(Y.value[y]={name:d.name,alias:d.alias,model:d.model})}const h=typeof(n==null?void 0:n.total_records)=="number"?n.total_records:i.length;if(!i.length||t*r>=h)break;t++}}catch(t){}})}function re(){const o=[];D.value!=="2"&&o.push(["retained","=",D.value]);const t=B.value;if(t&&t.length===2&&t[0]&&t[1]){const[l,n]=t[0]<=t[1]?t:[t[1],t[0]];o.push(["created",">=",l]),o.push(["created","<=",n])}if(v.value==="opened_at"){const l=O.value;if(l&&l.length===2&&l[0]&&l[1]){const[n,i]=l[0]<=l[1]?l:[l[1],l[0]];o.push(["opened_at",">=",n]),o.push(["opened_at","<=",i])}}else if(v.value==="category"){const l=M.value.trim();l&&o.push(["category","=",l])}else{const l=A.value.trim();l&&o.push([v.value,"like",`%${l}%`])}Be.appendCommonDesignerWhereAnd(w.conf.common,o);const r={page_index:b.current,page_size:b.pageSize};return o.length&&(r.where_and=JSON.stringify(o)),r}function j(){return T(this,null,function*(){var o;P.value=!0;try{yield ie();const t=yield _.api.http("get_retainer_result_list",re(),!0),r=(o=t==null?void 0:t.result)!=null?o:t,l=Array.isArray(r==null?void 0:r.data)?r.data:[];S.value=l.map(i=>{var y,x,I;const h=i.object_id?String(i.object_id):"",d=h?Y.value[h]:void 0;return $(U({},i),{object_name:(y=i.object_name)!=null?y:d==null?void 0:d.name,object_alias:(x=i.object_alias)!=null?x:d==null?void 0:d.alias,model:(I=i.model)!=null?I:d==null?void 0:d.model})});const n=r==null?void 0:r.total_records;b.total=typeof n=="number"?n:l.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[retainerRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),S.value=[],b.total=0}finally{P.value=!1}})}const se={AgActionsRenderer:Ae.AgActionsRenderer},ce=e.computed(()=>{const o=ae.value.filter(t=>t.visible).map(t=>({field:t.prop,headerName:t.label,width:t.width||t.minWidth||120,minWidth:t.minWidth||80}));return o.push({headerName:"操作",minWidth:80,pinned:"right",cellRenderer:"AgActionsRenderer",cellRendererParams:{showView:V.value.view,onView:pe}}),o});function ue(){j()}e.computed(()=>S.value);function K(){b.current=1,j()}function de(){A.value="",O.value=null,M.value="",v.value="object_name",D.value="1",B.value=[_.dayjs().subtract(1,"month").format(c),_.dayjs().format(c)],b.current=1,j()}const z=e.ref(!1),H=e.ref(!1),R=e.ref(""),s=e.ref(null),q=e.ref([]);function pe(o){return T(this,null,function*(){var r;const t=o.uid;if(!t){C.ElMessage.warning("当前行缺少历程编号,无法拉取详情");return}z.value=!0,H.value=!0,R.value="",s.value=null,q.value=[];try{const l=yield _.api.http("get_retainer_with_events",{retainer_id:t},!0),n=(r=l==null?void 0:l.result)!=null?r:l;if(l&&l.code!==void 0&&l.code!==200){R.value=String(l.msg||l.info||"详情接口失败");return}s.value=n;const i=n==null?void 0:n.events;q.value=Array.isArray(i)?i:[]}catch(l){R.value="加载历程详情失败"}finally{H.value=!1}})}function me(o){const t=r=>String(r).padStart(2,"0");return`${o.getFullYear()}-${t(o.getMonth()+1)}-${t(o.getDate())} ${t(o.getHours())}:${t(o.getMinutes())}:${t(o.getSeconds())}`}function ge(){return T(this,null,function*(){const o=B.value;if(!o||o.length<2||!o[0]||!o[1]){C.ElMessage.warning("请先选择创建时间范围后再导出");return}const t=[...new Set(S.value.map(l=>{var n;return String((n=l.object_id)!=null?n:"").trim()}).filter(Boolean))],r=[...new Set(S.value.map(l=>{var n;return String((n=l.template_id)!=null?n:"").trim()}).filter(Boolean))];if(!t.length&&!r.length){C.ElMessage.warning("当前页列表无项目编号或对象编号,请加载数据后再导出");return}try{yield C.ElMessageBox.confirm("将按当前列表中的项目/对象编号及所选创建时间范围提交导出任务(与 mixui 历程导出一致),是否继续?","导出历程数据",{type:"info"})}catch(l){return}try{const l=yield _.api.http("export_retainer_data",{file_name:`retainer_export_${me(new Date).replace(/[: ]/g,"_")}`,open_at:o[0]<=o[1]?o[0]:o[1],close_at:o[0]<=o[1]?o[1]:o[0],template_ids:r,object_ids:t,character:"utf-8"},!0);if(l.code!==void 0&&l.code!==200){C.ElMessage.warning(l.msg||l.info||"导出请求未成功");return}C.ElMessage.success("导出任务已提交")}catch(l){C.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{j()}),(o,t)=>{const r=m.ElRadioButton,l=m.ElRadioGroup,n=m.ElDatePicker,i=m.ElOption,h=m.ElSelect,d=m.ElIcon,y=m.ElInput,x=m.ElButton,I=Se.AgGridTable,fe=m.ElAlert,p=m.ElDescriptionsItem,ve=m.ElTag,_e=m.ElDescriptions,be=m.ElTimelineItem,Ve=m.ElTimeline,he=m.ElDialog,Q=m.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["retainer-record-list mix-component",e.unref(E)]),style:e.normalizeStyle(e.unref(f))},[e.unref(V).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(k.value)},e.toDisplayString(g.conf.caption||g.conf.name),5)),e.createElementVNode("div",Oe,[e.createElementVNode("div",Me,[e.createVNode(l,{modelValue:D.value,"onUpdate:modelValue":t[0]||(t[0]=a=>D.value=a),onChange:le},{default:e.withCtx(()=>[e.createVNode(r,{label:"1"},{default:e.withCtx(()=>[...t[9]||(t[9]=[e.createTextVNode("持续历程",-1)])]),_:1}),e.createVNode(r,{label:"0"},{default:e.withCtx(()=>[...t[10]||(t[10]=[e.createTextVNode("已完结历程",-1)])]),_:1}),e.createVNode(r,{label:"2"},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode("全部记录",-1)])]),_:1})]),_:1},8,["modelValue"]),e.createVNode(n,{modelValue:B.value,"onUpdate:modelValue":t[1]||(t[1]=a=>B.value=a),type:"datetimerange","range-separator":"至","start-placeholder":"创建开始","end-placeholder":"创建结束","value-format":"YYYY-MM-DD HH:mm:ss",class:"toolbar-created-range"},null,8,["modelValue"])]),e.createElementVNode("div",je,[e.createVNode(h,{modelValue:v.value,"onUpdate:modelValue":t[2]||(t[2]=a=>v.value=a),class:"toolbar-field-select",onChange:oe},{default:e.withCtx(()=>[e.createVNode(i,{label:"项目编号",value:"template_id"}),e.createVNode(i,{label:"历程项编码",value:"code"}),e.createVNode(i,{label:"历程项名称(中文)",value:"label_cn"}),e.createVNode(i,{label:"历程项名称(英文)",value:"label_en"}),e.createVNode(i,{label:"历程类型",value:"category"}),e.createVNode(i,{label:"对象编号",value:"object_id"}),e.createVNode(i,{label:"对象别名",value:"object_alias"}),e.createVNode(i,{label:"对象名称",value:"object_name"}),e.createVNode(i,{label:"对象型号",value:"model"}),e.createVNode(i,{label:"项目名称",value:"customer_name"}),e.createVNode(i,{label:"开始时间",value:"opened_at"})]),_:1},8,["modelValue"]),v.value!=="opened_at"&&v.value!=="category"?(e.openBlock(),e.createBlock(y,{key:0,modelValue:A.value,"onUpdate:modelValue":t[3]||(t[3]=a=>A.value=a),placeholder:"输入关键字后搜索(与 mixui 历程记录检索字段一致)",class:"toolbar-search",onKeyup:e.withKeys(K,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(d,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(De.Search))]),_:1})]),_:1},8,["modelValue"])):v.value==="opened_at"?(e.openBlock(),e.createBlock(n,{key:1,modelValue:O.value,"onUpdate:modelValue":t[4]||(t[4]=a=>O.value=a),type:"datetimerange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD HH:mm:ss",class:"toolbar-opened-range"},null,8,["modelValue"])):(e.openBlock(),e.createBlock(h,{key:2,modelValue:M.value,"onUpdate:modelValue":t[5]||(t[5]=a=>M.value=a),placeholder:"历程类型",class:"toolbar-category",clearable:""},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,(a,N)=>e.createVNode(i,{key:N,label:a,value:N},null,8,["label","value"])),64))]),_:1},8,["modelValue"])),e.createVNode(x,{type:"primary",onClick:K},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(x,{onClick:de},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(V).export?(e.openBlock(),e.createBlock(x,{key:3,type:"success",onClick:ge},{default:e.withCtx(()=>[...t[14]||(t[14]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(I,{"column-defs":ce.value,"row-data":S.value,"show-pagination":!0,pager:b,"auto-fill-columns":!0,components:se,onPageChange:ue},null,8,["column-defs","row-data","pager"])]),e.createVNode(he,{modelValue:z.value,"onUpdate:modelValue":t[7]||(t[7]=a=>z.value=a),title:"历程记录详情",width:"720px","destroy-on-close":"",onClosed:t[8]||(t[8]=a=>s.value=null)},{footer:e.withCtx(()=>[e.createVNode(x,{type:"primary",onClick:t[6]||(t[6]=a=>z.value=!1)},{default:e.withCtx(()=>[...t[15]||(t[15]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Re,[R.value?(e.openBlock(),e.createBlock(fe,{key:0,type:"error",title:R.value,"show-icon":"",closable:!1,class:"mb-3"},null,8,["title"])):s.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(_e,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(p,{label:"历程编号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.uid)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"项目编号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.template_id)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"历程项(中文)"},{default:e.withCtx(()=>{var a,N;return[e.createTextVNode(e.toDisplayString((N=(a=s.value.label_local)!=null?a:s.value.label_cn)!=null?N:""),1)]}),_:1}),e.createVNode(p,{label:"历程项(英文)"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.label_en)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"历程项编码"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.code)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"历程类型"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ne(s.value.category)),1)]),_:1}),e.createVNode(p,{label:"对象编号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.object_id)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"对象名称"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.object_name)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"对象别名"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.object_alias)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"型号"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.model)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"状态"},{default:e.withCtx(()=>[e.createVNode(ve,{type:G(s.value)?"success":"info",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(G(s.value)?"持续":"已完结"),1)]),_:1},8,["type"])]),_:1}),e.createVNode(p,{label:"开始时间"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.opened_at)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"结束时间"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.close_at)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"持续时间"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.elapsed)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"统计结果"},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.statis_result)!=null?a:""),1)]}),_:1}),e.createVNode(p,{label:"描述",span:2},{default:e.withCtx(()=>{var a;return[e.createTextVNode(e.toDisplayString((a=s.value.description)!=null?a:""),1)]}),_:1})]),_:1}),q.value.length?(e.openBlock(),e.createElementBlock("div",qe,"事件")):e.createCommentVNode("",!0),q.value.length?(e.openBlock(),e.createBlock(Ve,{key:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(a,N)=>{var J;return e.openBlock(),e.createBlock(be,{key:N,timestamp:String((J=a.datetime)!=null?J:"")},{default:e.withCtx(()=>[e.createElementVNode("div",null,"状态:"+e.toDisplayString(a.status===1||a.status==="1"?"开启":"关闭"),1)]),_:2},1032,["timestamp"])}),128))]),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),[[Q,H.value]])]),_:1},8,["modelValue"]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[Q,P.value]])}}})),$e=_._export_sfc(Ue,[["__scopeId","data-v-7c707e4d"]]);exports.default=$e;
@@ -36,7 +36,7 @@ import "element-plus/es/components/descriptions/style/css";
36
36
  import "element-plus/es/components/tag/style/css";
37
37
  import "element-plus/es/components/descriptions-item/style/css";
38
38
  import "element-plus/es/components/alert/style/css";
39
- import { A as tt } from "./AgGridTable-oXfzJc2L.js";
39
+ import { A as tt } from "./AgGridTable-BQ8M3fDj.js";
40
40
  import "element-plus/es/components/button/style/css";
41
41
  import "element-plus/es/components/input/style/css";
42
42
  import "element-plus/es/components/icon/style/css";
@@ -46,15 +46,15 @@ import "element-plus/es/components/date-picker/style/css";
46
46
  import "element-plus/es/components/radio-group/style/css";
47
47
  import "element-plus/es/components/radio-button/style/css";
48
48
  import { defineComponent as lt, computed as H, reactive as at, ref as g, onMounted as ot, withDirectives as ce, openBlock as b, createElementBlock as A, normalizeStyle as me, unref as U, normalizeClass as nt, toDisplayString as m, createCommentVNode as $, createElementVNode as q, createVNode as o, withCtx as n, createTextVNode as u, createBlock as O, withKeys as it, Fragment as oe, renderList as pe, renderSlot as rt } from "vue";
49
- import { d as J, a as X, _ as st } from "./index-C_ms8XdY.js";
49
+ import { d as J, a as X, _ as st } from "./index-CPTJIw32.js";
50
50
  import { u as ut } from "./useMixiotPanelSurface-DRl3cZvc.js";
51
- import { B as dt } from "./BaseComponent-Bv3RJ3vA.js";
51
+ import { B as dt } from "./BaseComponent-Dn65PXTp.js";
52
52
  import { g as ct } from "./titleStyle-BT5GlpAb.js";
53
53
  import { ElMessage as j, ElMessageBox as mt } from "element-plus";
54
54
  import { Search as pt } from "@element-plus/icons-vue";
55
55
  import { a as vt } from "./appendCommonDesignerWhereAnd-DwefWNOa.js";
56
56
  import { c as _t, b as ft, s as gt } from "./syncMixiotListConfig-BJm-8v-B.js";
57
- import { A as bt } from "./AgActionsRenderer-PlZa78ff.js";
57
+ import { A as bt } from "./AgActionsRenderer-3HKXKUJY.js";
58
58
  import { A as yt, D as ht } from "./ele-lst-icon-CKpeRKmk.js";
59
59
  const St = { class: "mix-body" }, Ct = { class: "toolbar-status" }, Vt = { class: "top-bar" }, Et = { class: "detail-body" }, wt = {
60
60
  key: 0,
@@ -53,15 +53,15 @@ import "element-plus/es/components/dropdown-item/style/css";
53
53
  import "element-plus/es/components/button/style/css";
54
54
  import "element-plus/es/components/icon/style/css";
55
55
  import { defineComponent as dl, computed as P, ref as h, reactive as Ne, onMounted as ul, openBlock as u, createElementBlock as p, normalizeStyle as Se, unref as k, normalizeClass as Ie, createElementVNode as g, toDisplayString as f, createVNode as n, withCtx as s, createTextVNode as b, createBlock as B, createCommentVNode as R, withDirectives as pl, withKeys as xe, Fragment as F, renderList as Z, withModifiers as ne, renderSlot as _l } from "vue";
56
- import { d as Y, a as T, F as ml, f as fl, _ as bl } from "./index-C_ms8XdY.js";
56
+ import { d as Y, a as T, F as ml, h as fl, _ as bl } from "./index-CPTJIw32.js";
57
57
  import { u as vl } from "./useMixiotPanelSurface-DRl3cZvc.js";
58
- import { B as gl } from "./BaseComponent-Bv3RJ3vA.js";
58
+ import { B as gl } from "./BaseComponent-Dn65PXTp.js";
59
59
  import { g as yl } from "./titleStyle-BT5GlpAb.js";
60
60
  import { ElMessage as x, ElMessageBox as hl } from "element-plus";
61
61
  import { Plus as Ee, Search as kl, MoreFilled as wl, ArrowDown as Sl } from "@element-plus/icons-vue";
62
62
  import { a as xl } from "./appendCommonDesignerWhereAnd-DwefWNOa.js";
63
63
  import { u as El } from "./useMixiotAppScrollLoad-P-UZvRtN.js";
64
- import Cl from "./MixiotAppDetailPage-BY0b1cSQ.js";
64
+ import Cl from "./MixiotAppDetailPage-C_NrtqJU.js";
65
65
  import { A as jl, D as Rl } from "./ele-lst-icon-CKpeRKmk.js";
66
66
  const Dl = {
67
67
  key: 0,