mixdashboards 1.0.74 → 1.0.76

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 (354) hide show
  1. package/dist/BaseComponent-BmhMoM4H.cjs +1 -0
  2. package/dist/{BaseComponent-NnwLq7Cf.js → BaseComponent-CQaDWNO0.js} +10 -10
  3. package/dist/{EChartComponentBase-D7_ZiE7P.cjs → EChartComponentBase-D9EUh4BZ.cjs} +1 -1
  4. package/dist/{EChartComponentBase-C3gcATBZ.js → EChartComponentBase-i76OGL3z.js} +2 -2
  5. package/dist/{EmergencyPlanPanel-0EfbQlQm.js → EmergencyPlanPanel-B9S3Ru5-.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-XDtQc5aN.cjs → EmergencyPlanPanel-BiAHvTfh.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-fbBtPeVt.cjs → HistoryPlanDialog-BU4GayEm.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-ihGqWXNI.js → HistoryPlanDialog-CbbeFm-i.js} +1 -1
  9. package/dist/{MonitoringMap-DysFrw3B.js → MonitoringMap-B6tXBdvK.js} +2 -2
  10. package/dist/{MonitoringMap-UT2OL3ca.cjs → MonitoringMap-FGDoA0fw.cjs} +1 -1
  11. package/dist/{UniverSheet-DeZ-y5mH.cjs → UniverSheet-D7y2pceH.cjs} +1 -1
  12. package/dist/{UniverSheet-CMWL98B8.js → UniverSheet-D8sflrTb.js} +2 -2
  13. package/dist/{accelerationChart-BGjzOc4I.cjs → accelerationChart-DTlwSA0N.cjs} +1 -1
  14. package/dist/{accelerationChart-JNRxAqU5.js → accelerationChart-bch4O3t-.js} +9 -9
  15. package/dist/{actionItem-DnrNafUu.js → actionItem-Cw67YwsR.js} +2 -2
  16. package/dist/{actionItem-DDlL4pxR.cjs → actionItem-cdsgUvaC.cjs} +1 -1
  17. package/dist/{alarmLevelChart-B4TglthF.cjs → alarmLevelChart-BMjTLxB5.cjs} +1 -1
  18. package/dist/{alarmLevelChart-D4ZPyGyd.js → alarmLevelChart-BynSRHG2.js} +2 -2
  19. package/dist/{alertTable-WmivR3n_.cjs → alertTable-3VhkUZSf.cjs} +1 -1
  20. package/dist/{alertTable-IwL3PIbe.js → alertTable-CiwuaydQ.js} +2 -2
  21. package/dist/{aliasObjectSelectorDemo-zcElLG44.cjs → aliasObjectSelectorDemo-BLoecZkV.cjs} +1 -1
  22. package/dist/{aliasObjectSelectorDemo-DCcqetww.js → aliasObjectSelectorDemo-DfdRxb4I.js} +1 -1
  23. package/dist/{annualRainfallChart-CNqrXKJZ.js → annualRainfallChart-CHcr4-0D.js} +2 -2
  24. package/dist/{annualRainfallChart-DspMrDxt.cjs → annualRainfallChart-DKR-A_PT.cjs} +1 -1
  25. package/dist/{aqi-B1bcKY5p.cjs → aqi-D7VqP1QE.cjs} +1 -1
  26. package/dist/{aqi-CdGE9-CD.js → aqi-Gu-pAovO.js} +4 -4
  27. package/dist/{aqiIndass-CuKfMaYn.js → aqiIndass-Bjj6n1aj.js} +18 -18
  28. package/dist/{aqiIndass-BZpPo1tj.cjs → aqiIndass-nfYUZ3UM.cjs} +1 -1
  29. package/dist/{areaDeformCurve-bNNNS8Cb.cjs → areaDeformCurve-fpGWmq05.cjs} +1 -1
  30. package/dist/{areaDeformCurve-Chn4CE8w.js → areaDeformCurve-nwlcUBDv.js} +2 -2
  31. package/dist/arrayCard-TfcgLrHv.js +139 -0
  32. package/dist/arrayCard-UoDqAGbN.cjs +1 -0
  33. package/dist/{audio-YTfr7Lqf.js → audio-BYgGYoEr.js} +2 -2
  34. package/dist/{audio-BeYg08W5.cjs → audio-DdUv9Ot-.cjs} +1 -1
  35. package/dist/bar-CkBXc7t1.cjs +2 -0
  36. package/dist/{bar-YhAAV2al.js → bar-SfGiFl1r.js} +75 -67
  37. package/dist/{bmp-Uj7Bu61U.js → bmp-BbtdzIrI.js} +2 -2
  38. package/dist/{bmp-vWIH5Cu7.cjs → bmp-CY-Hb2x1.cjs} +1 -1
  39. package/dist/{box-Cdzw27uU.cjs → box-B4C_mirv.cjs} +1 -1
  40. package/dist/{box-C8RIfuID.js → box-CV41cJuX.js} +2 -2
  41. package/dist/{chartConfigPanel-DLa3heKy.js → chartConfigPanel-D650rSn7.js} +1 -1
  42. package/dist/{chartConfigPanel-D3voTkdQ.cjs → chartConfigPanel-DBlqAbbH.cjs} +1 -1
  43. package/dist/{circleBar-Dc_qd4gk.cjs → circleBar-DkV7xPBl.cjs} +1 -1
  44. package/dist/{circleBar-DUSP-iMF.js → circleBar-U3iXMQr5.js} +2 -2
  45. package/dist/{clock-0USfNfTc.cjs → clock-CjgMeOhp.cjs} +1 -1
  46. package/dist/{clock-Dk1zjBcJ.js → clock-zKVUU8pu.js} +2 -2
  47. package/dist/clt-BsIA-YPQ.js +301 -0
  48. package/dist/clt-DwI8i7zI.cjs +1 -0
  49. package/dist/cmc-BX9ichBB.cjs +1 -0
  50. package/dist/cmc-CgpHejR2.js +275 -0
  51. package/dist/{cmp-D4ZO7mz7.js → cmp-CS34lG7V.js} +2 -2
  52. package/dist/{cmp-BPM8lMqg.cjs → cmp-CTqtxzo4.cjs} +1 -1
  53. package/dist/{conclusionCard-BYR-fH4f.js → conclusionCard-N6pA6Q9P.js} +2 -2
  54. package/dist/{conclusionCard-BVHHtpxH.cjs → conclusionCard-wvtJmV_8.cjs} +1 -1
  55. package/dist/{controlList-DsEyes9v.cjs → controlList-BUAMdHA3.cjs} +1 -1
  56. package/dist/{controlList-DYV1wgUY.js → controlList-Zz5ABe5b.js} +2 -2
  57. package/dist/{controlRecordList-j0pBrQiU.cjs → controlRecordList-CMR4y_Ml.cjs} +1 -1
  58. package/dist/{controlRecordList-CBGpB41d.js → controlRecordList-Dx0zj7js.js} +2 -2
  59. package/dist/controlRecordListAPP-ZDCKmz_8.cjs +1 -0
  60. package/dist/controlRecordListAPP-bL9oqWzQ.js +569 -0
  61. package/dist/{crd-C8IqmHc6.cjs → crd-8tMwNlgx.cjs} +1 -1
  62. package/dist/{crd-Di7EfiY1.js → crd-DZPpD6XY.js} +2 -2
  63. package/dist/{ctrBtn-BzMHJHA9.js → ctrBtn-6Ql9ulTr.js} +3 -3
  64. package/dist/{ctrBtn-Cj-AqUKM.cjs → ctrBtn-eCu0UDtW.cjs} +1 -1
  65. package/dist/{ctrSet-DMkuRDFI.js → ctrSet-BwFVH1Mk.js} +51 -50
  66. package/dist/{ctrSet-CnDBng-I.cjs → ctrSet-pX-zVivo.cjs} +1 -1
  67. package/dist/{ctrSwitch-BRfl35Aw.cjs → ctrSwitch-D95SI-aJ.cjs} +1 -1
  68. package/dist/{ctrSwitch-FJgD05b0.js → ctrSwitch-b6hHf4QF.js} +3 -3
  69. package/dist/{dataManagement-CXbeNggN.cjs → dataManagement-DubA1TV1.cjs} +1 -1
  70. package/dist/{dataManagement-CQoqc9Rh.js → dataManagement-VucRLCK4.js} +2 -2
  71. package/dist/{dataReport-l2SE8HZx.js → dataReport-CALIw14D.js} +2 -2
  72. package/dist/{dataReport-BkIDOCdC.cjs → dataReport-CkF5J7X1.cjs} +1 -1
  73. package/dist/{dataTable-jf6qXfJJ.js → dataTable-C1rBH_p9.js} +1 -1
  74. package/dist/{dataTable-BdttKfHG.cjs → dataTable-C2q_CX5D.cjs} +1 -1
  75. package/dist/{datetime-eht4XkmD.js → datetime-Cq8scz5Q.js} +2 -2
  76. package/dist/{datetime-BH9orUUf.cjs → datetime-TBTeWqlf.cjs} +1 -1
  77. package/dist/{deepClusterSlipSurface-CF_MN7sO.cjs → deepClusterSlipSurface-CFaxRVmM.cjs} +1 -1
  78. package/dist/{deepClusterSlipSurface-D2d52L50.js → deepClusterSlipSurface-Cm50wbjv.js} +13 -13
  79. package/dist/{deepDataMatrix-DqbCqz8d.cjs → deepDataMatrix-CAYSav3X.cjs} +1 -1
  80. package/dist/{deepDataMatrix-DY1WmgGR.js → deepDataMatrix-DyStA98d.js} +13 -13
  81. package/dist/{deepDisplacement3D-D3-KOmef.cjs → deepDisplacement3D-B3Iju2KK.cjs} +1 -1
  82. package/dist/{deepDisplacement3D-CuVVhd0X.js → deepDisplacement3D-Bat-Wc3i.js} +2 -2
  83. package/dist/{deepDisplacementChart-BwBojI9h.cjs → deepDisplacementChart-C-Tr4DdI.cjs} +1 -1
  84. package/dist/{deepDisplacementChart-DzikjpBz.cjs → deepDisplacementChart-CX9ALM89.cjs} +1 -1
  85. package/dist/{deepDisplacementChart-C_3eHTmR.js → deepDisplacementChart-CYMpNu_W.js} +3 -3
  86. package/dist/{deepDisplacementChart-DFosjAQL.js → deepDisplacementChart-D5rHoC9r.js} +26 -26
  87. package/dist/{deepDisplacementView-gJdi6U9B.cjs → deepDisplacementView-DTSsODJQ.cjs} +1 -1
  88. package/dist/{deepDisplacementView-BNQaheci.js → deepDisplacementView-DnjwQmEW.js} +1 -1
  89. package/dist/{deepNodeTemperatureChart-oMknBT7e.cjs → deepNodeTemperatureChart-C9NRJ49Y.cjs} +1 -1
  90. package/dist/{deepNodeTemperatureChart-C5d-tyOA.js → deepNodeTemperatureChart-CLKg72UA.js} +2 -2
  91. package/dist/{deepTangentAngleChart-C7b7sEab.cjs → deepTangentAngleChart-C9aFSFrD.cjs} +1 -1
  92. package/dist/{deepTangentAngleChart-C35d0nBR.js → deepTangentAngleChart-DklHYHhm.js} +2 -2
  93. package/dist/{deepTemperatureField-BnWHpVPm.cjs → deepTemperatureField-CXBL4_LS.cjs} +1 -1
  94. package/dist/{deepTemperatureField-DbGy0vHS.js → deepTemperatureField-CcnVGgbf.js} +3 -3
  95. package/dist/{deepTrendChart-DdCYjiWZ.js → deepTrendChart-De7ebpk4.js} +2 -2
  96. package/dist/{deepTrendChart-D676owsq.cjs → deepTrendChart-OGW08BX-.cjs} +1 -1
  97. package/dist/{deviceOnlineStatus-DSuaeFZj.cjs → deviceOnlineStatus-DarcMtY4.cjs} +1 -1
  98. package/dist/{deviceOnlineStatus-BH-2-UBD.js → deviceOnlineStatus-_3Txb8Tg.js} +2 -2
  99. package/dist/{deviceStatus-ySE9suGE.cjs → deviceStatus-BiJw8rnz.cjs} +1 -1
  100. package/dist/{deviceStatus-CxjbfqGK.js → deviceStatus-CL6E-pQ0.js} +12 -12
  101. package/dist/{displacementDataTable-DwutxypE.cjs → displacementDataTable-DmAqr-JK.cjs} +1 -1
  102. package/dist/{displacementDataTable-CAYYafN7.js → displacementDataTable-tKtGe2xd.js} +17 -17
  103. package/dist/{displacementTrajectoryChart-zya-qu9n.cjs → displacementTrajectoryChart-DG2YdSqq.cjs} +1 -1
  104. package/dist/{displacementTrajectoryChart-ClUAsle_.js → displacementTrajectoryChart-Dh6oPB0p.js} +31 -31
  105. package/dist/{displacementTrendChart-xqe9LMp8.js → displacementTrendChart-BHORe0qO.js} +40 -40
  106. package/dist/{displacementTrendChart-DZj52qRD.cjs → displacementTrendChart-CT140vXG.cjs} +1 -1
  107. package/dist/{dxf-Cmr9xmL0.cjs → dxf-CVa4Vfm3.cjs} +1 -1
  108. package/dist/{dxf-tZgpovsn.js → dxf-CjcHSJq-.js} +2 -2
  109. package/dist/{dzc-C0VMyvsH.js → dzc-DDXNSuie.js} +6 -6
  110. package/dist/{dzc-BwCEpLKp.cjs → dzc-DK16oTVj.cjs} +1 -1
  111. package/dist/{emergencyPlan-CQtYRB5n.cjs → emergencyPlan-D0AMuD-3.cjs} +1 -1
  112. package/dist/{emergencyPlan-j1icRflR.js → emergencyPlan-Vim4E6h7.js} +3 -3
  113. package/dist/evn-CdMN8gIC.js +165 -0
  114. package/dist/evn-D2mdSoFB.cjs +1 -0
  115. package/dist/{evolutionChart-q9UtSs9r.cjs → evolutionChart-I8XVW05I.cjs} +1 -1
  116. package/dist/{evolutionChart-C1rPjVsB.js → evolutionChart-P0l6P0Bc.js} +3 -3
  117. package/dist/{fileViewer-ZO55zvWU.cjs → fileViewer-D7sAA8-W.cjs} +1 -1
  118. package/dist/{fileViewer-Bj4FYg5G.js → fileViewer-DvntGv0b.js} +2 -2
  119. package/dist/{filterBar-CIYpcc9y.js → filterBar-8gex5oR-.js} +2 -2
  120. package/dist/{filterBar-D7js_Q7g.cjs → filterBar-GSTji96g.cjs} +1 -1
  121. package/dist/{fireCombustionCurve-DEHjb7Lp.js → fireCombustionCurve-B3jAhOft.js} +3 -3
  122. package/dist/{fireCombustionCurve-CiVXjt9E.cjs → fireCombustionCurve-DrMmHf3N.cjs} +1 -1
  123. package/dist/{fireFilterBar-BzgnlY5d.js → fireFilterBar-CH6iK0Xg.js} +2 -2
  124. package/dist/{fireFilterBar-CkQU9Yaf.cjs → fireFilterBar-Dy9DcHij.cjs} +1 -1
  125. package/dist/{fireHistoryTable-BoAArvjx.js → fireHistoryTable-CHxHqPs0.js} +2 -2
  126. package/dist/{fireHistoryTable-JCY4nLos.cjs → fireHistoryTable-n6L3juWp.cjs} +1 -1
  127. package/dist/{gag-DCGVulGC.js → gag-BsO4kmp1.js} +2 -2
  128. package/dist/{gag-CrUeBa30.cjs → gag-BzjuwBvY.cjs} +1 -1
  129. package/dist/gasStationList-7JzUcISs.js +1325 -0
  130. package/dist/gasStationList-QwqTDEAG.cjs +1 -0
  131. package/dist/{geo3dViewer-BSAjBg2m.cjs → geo3dViewer-Cf-jHpvF.cjs} +1 -1
  132. package/dist/{geo3dViewer-Du775tJ7.js → geo3dViewer-doEpUC_J.js} +3 -3
  133. package/dist/{glbModel-2uTNL367.js → glbModel-BgFIj_es.js} +2 -2
  134. package/dist/{glbModel-Cm1M6hko.cjs → glbModel-C6L--3dO.cjs} +1 -1
  135. package/dist/{globalObjectSelector-CEpO2o2w.js → globalObjectSelector-CdfiXRjg.js} +1 -1
  136. package/dist/{globalObjectSelector-W_YToM6x.cjs → globalObjectSelector-P_irB0rv.cjs} +1 -1
  137. package/dist/{gnssFilterBar-BSHEfiyz.cjs → gnssFilterBar-CIwyv2yc.cjs} +1 -1
  138. package/dist/{gnssFilterBar-DZYOL5nC.js → gnssFilterBar-DPNshMIx.js} +2 -2
  139. package/dist/{gnssHistoryTable-naChmXHT.js → gnssHistoryTable-C7x4-Tpp.js} +2 -2
  140. package/dist/{gnssHistoryTable-Ct98Vz6i.cjs → gnssHistoryTable-j5FL6oYs.cjs} +1 -1
  141. package/dist/{gnssMapView-DouWOPLF.js → gnssMapView-BWcS4hqj.js} +4 -4
  142. package/dist/{gnssMapView-CCW4_-Sn.cjs → gnssMapView-_VaJWBcE.cjs} +2 -2
  143. package/dist/{gnssSectionProfile-hzXQ4KzJ.cjs → gnssSectionProfile-DGbTO7lV.cjs} +1 -1
  144. package/dist/{gnssSectionProfile-Be-THvQP.js → gnssSectionProfile-hpyiGI-6.js} +2 -2
  145. package/dist/{gnssTimeSeriesChart-CbMxKxjG.cjs → gnssTimeSeriesChart-CNT6xaNs.cjs} +1 -1
  146. package/dist/{gnssTimeSeriesChart-DoMBz4zf.js → gnssTimeSeriesChart-rL9oG1ly.js} +2 -2
  147. package/dist/{gnssXYTrajectory-Bg2B89Vw.js → gnssXYTrajectory-B1LZAepw.js} +2 -2
  148. package/dist/{gnssXYTrajectory-BNwqQna4.cjs → gnssXYTrajectory-CwAjhPRc.cjs} +1 -1
  149. package/dist/{grd-XTVPofQw.js → grd-BLab9IY0.js} +26 -26
  150. package/dist/{grd-C-x23C0E.cjs → grd-rJXqEimt.cjs} +1 -1
  151. package/dist/{grdIndass-CYawTr5K.js → grdIndass-gGrZ7gRV.js} +2 -2
  152. package/dist/{grdIndass-h7STZwba.cjs → grdIndass-niY4UOwz.cjs} +1 -1
  153. package/dist/{grg-DMRsgNoC.cjs → grg-C1L5yeyY.cjs} +1 -1
  154. package/dist/{grg-BZPHOdr_.js → grg-Dnro7bLg.js} +6 -6
  155. package/dist/{gridview-C_Lqcw3n.js → gridview-BhjWlD0J.js} +2 -2
  156. package/dist/{gridview-BAqXV-TI.cjs → gridview-DxUsv2ny.cjs} +1 -1
  157. package/dist/{groundwaterFilterBar-RcVBt_vt.cjs → groundwaterFilterBar-C-2e7S04.cjs} +1 -1
  158. package/dist/{groundwaterFilterBar-Dq216QFO.js → groundwaterFilterBar-bNhTkX1C.js} +2 -2
  159. package/dist/{groundwaterProfileChart-D31MpfdN.cjs → groundwaterProfileChart-BxKGPuOe.cjs} +2 -2
  160. package/dist/{groundwaterProfileChart-7LN3wfLM.js → groundwaterProfileChart-dhzmwfwz.js} +3 -3
  161. package/dist/{groundwaterTimeCurve-CJgvt43Z.js → groundwaterTimeCurve-BtzP6icm.js} +3 -3
  162. package/dist/{groundwaterTimeCurve-C65gdinn.cjs → groundwaterTimeCurve-CTQPlTUr.cjs} +1 -1
  163. package/dist/{groupCard-BpjcijZW.js → groupCard-D00ElZoy.js} +63 -53
  164. package/dist/{groupCard-DNOawK4_.cjs → groupCard-D4gdaVqR.cjs} +1 -1
  165. package/dist/{headerBar-Bnv8ylmr.js → headerBar-DEHj8fJr.js} +2 -2
  166. package/dist/{headerBar-CNWKR951.cjs → headerBar-MFw1W0qa.cjs} +1 -1
  167. package/dist/{history-DdkBOj8L.js → history-BRkb914v.js} +22 -22
  168. package/dist/{history-xZTq1lUB.cjs → history-D1R2RAZQ.cjs} +1 -1
  169. package/dist/index-77aUdspY.cjs +612 -0
  170. package/dist/{index-D5BukPPY.js → index-BZpYmpDy.js} +3511 -3043
  171. package/dist/{insarDeformChart-DIvxdDkN.cjs → insarDeformChart-5EVWIkpL.cjs} +1 -1
  172. package/dist/{insarDeformChart-BKgJHbFe.js → insarDeformChart-pbOnnoN-.js} +2 -2
  173. package/dist/{insarImageViewer-qI5GBqkU.js → insarImageViewer-D3bbQA6g.js} +2 -2
  174. package/dist/{insarImageViewer-Bray3mKg.cjs → insarImageViewer-DQJBN4YM.cjs} +1 -1
  175. package/dist/{kds-BibvGW1n.cjs → kds-D5seJB3L.cjs} +1 -1
  176. package/dist/{kds-C1Chb0fa.js → kds-gTJOwHbM.js} +2 -2
  177. package/dist/{kpiCard-tnfcEXOn.cjs → kpiCard-Bz-fg6sL.cjs} +1 -1
  178. package/dist/{kpiCard-KuMZjN55.js → kpiCard-Cx6VNK6L.js} +2 -2
  179. package/dist/{landslideMap-B4vzymkZ.js → landslideMap-5erIcZo7.js} +3 -3
  180. package/dist/{landslideMap-DlMSDibx.cjs → landslideMap-D7_QpwmM.cjs} +1 -1
  181. package/dist/{landslideWarning-DtOMb7U_.cjs → landslideWarning-C3FZqrxT.cjs} +1 -1
  182. package/dist/{landslideWarning-BYlaEzUr.js → landslideWarning-CzaddgWf.js} +14 -14
  183. package/dist/{layerTabs-DQm_b2aH.cjs → layerTabs-Dc1Xb11W.cjs} +1 -1
  184. package/dist/{layerTabs-BG0gTvo8.js → layerTabs-DqbOykS2.js} +2 -2
  185. package/dist/{leaflet-src-DVXepwmU.js → leaflet-src-BY2SMh9y.js} +1 -1
  186. package/dist/{leaflet-src-qPfpknMO.cjs → leaflet-src-Brb8KUL5.cjs} +1 -1
  187. package/dist/{lerc-Z6kWrF7V.js → lerc-Chm_GVte.js} +2 -2
  188. package/dist/{lerc-CITZZDb7.cjs → lerc-DGuyYCKG.cjs} +1 -1
  189. package/dist/{lin-CW8Q8u-z.cjs → lin-8x2j8aGa.cjs} +1 -1
  190. package/dist/{lin-zJYjIE2f.js → lin-tqtSA5ci.js} +5 -5
  191. package/dist/{linIndass-27mWriLs.js → linIndass-DHFymSVI.js} +10 -10
  192. package/dist/{linIndass-CQaikC7I.cjs → linIndass-Dxo_bzrZ.cjs} +1 -1
  193. package/dist/{lst-Cu-ohx2m.cjs → lst-BV6EbDPs.cjs} +1 -1
  194. package/dist/{lst-BqXNkXrQ.js → lst-BejIuO0f.js} +2 -2
  195. package/dist/{manualEntry-zj6TEXL7.cjs → manualEntry-Bt4cs6kn.cjs} +1 -1
  196. package/dist/{manualEntry-BPEmSok7.js → manualEntry-DObI0OAq.js} +2 -2
  197. package/dist/{mapBackground-BhcSOZ_h.js → mapBackground-Cuym5Dqr.js} +3 -3
  198. package/dist/{mapBackground-CRI873EC.cjs → mapBackground-oVOBK3zr.cjs} +1 -1
  199. package/dist/{mappingList-DGgPl4t4.cjs → mappingList-BEWAqLd4.cjs} +1 -1
  200. package/dist/{mappingList-CvG8EIIC.js → mappingList-Dzq0zMfs.js} +2 -2
  201. package/dist/{markdownViewer-D9JqGyeI.js → markdownViewer-Bz50jkb6.js} +2 -2
  202. package/dist/{markdownViewer-DvbUv7kn.cjs → markdownViewer-V5b1xhPh.cjs} +1 -1
  203. package/dist/{mix-control-modal-DaRWnX3S.js → mix-control-modal-DzVLdO3S.js} +1 -1
  204. package/dist/{mix-control-modal-DpAs-GHi.cjs → mix-control-modal-I6DqPm04.cjs} +1 -1
  205. package/dist/{mixGrid-CHne1dXO.cjs → mixGrid-_ur8VKLD.cjs} +1 -1
  206. package/dist/{mixGrid-FBiMFT4V.js → mixGrid-tVSdKPms.js} +2 -2
  207. package/dist/mixdashboards.cjs +1 -1
  208. package/dist/mixdashboards.css +1 -1
  209. package/dist/mixdashboards.js +1 -1
  210. package/dist/mixiotObjectListApi-BUQ-RZ3L.cjs +1 -0
  211. package/dist/mixiotObjectListApi-D5vNNWgT.js +212 -0
  212. package/dist/{mjpegCamera-D32gJ5oN.cjs → mjpegCamera-CjWe8BEK.cjs} +1 -1
  213. package/dist/{mjpegCamera-D2quqZNc.js → mjpegCamera-DnAPpFJU.js} +2 -2
  214. package/dist/{monitorAlert-D4qszzHh.js → monitorAlert-B-fTYPn6.js} +15 -15
  215. package/dist/{monitorAlert-CxC81qAu.cjs → monitorAlert-qmVSQ1lc.cjs} +1 -1
  216. package/dist/{monitorData-DnWDsgTT.js → monitorData-Dopc660L.js} +7 -7
  217. package/dist/{monitorData-CVkL2ukF.cjs → monitorData-YhGSUq3H.cjs} +1 -1
  218. package/dist/{monitorSpeedChart-CKxwWE0i.cjs → monitorSpeedChart-Brj_YHsO.cjs} +1 -1
  219. package/dist/{monitorSpeedChart-CHpQsrDt.js → monitorSpeedChart-Dsvr_QPB.js} +1 -1
  220. package/dist/{mxa-UU7rQDd8.cjs → mxa-BzdI7BLB.cjs} +1 -1
  221. package/dist/{mxa-Cbnwonqc.js → mxa-D4WkyBYZ.js} +7 -7
  222. package/dist/{myValue-DzARZpdg.cjs → myValue-C0tq-asC.cjs} +1 -1
  223. package/dist/{myValue-DBxx1jtk.js → myValue-DYtBtOJ2.js} +2 -2
  224. package/dist/{myValueList-BVbeDsWn.cjs → myValueList-BJctRTNd.cjs} +1 -1
  225. package/dist/{myValueList-BbtPVr5y.js → myValueList-Ddpn1S68.js} +2 -2
  226. package/dist/objectList-Csf0hVwo.cjs +1 -0
  227. package/dist/objectList-G4wXFDwe.js +2040 -0
  228. package/dist/{objectListAPP-CYxy9UjL.js → objectListAPP-BrmUj4At.js} +49 -51
  229. package/dist/objectListAPP-UZN4iuTn.cjs +1 -0
  230. package/dist/{photo-DPOhq559.js → photo-BEPeK7U8.js} +2 -2
  231. package/dist/{photo-BRMACjXO.cjs → photo-BYH_qg5O.cjs} +1 -1
  232. package/dist/{pie-B7HO9F24.cjs → pie-B57zDxJV.cjs} +1 -1
  233. package/dist/{pie-CUqy6VGE.js → pie-CEVKe1lL.js} +2 -2
  234. package/dist/{placeholder-D-BpaT59.cjs → placeholder-BezBEQGo.cjs} +1 -1
  235. package/dist/{placeholder-DsyLsZM5.js → placeholder-Bwv3VyEg.js} +1 -1
  236. package/dist/{pressBtn-IefW25bT.js → pressBtn-1LCNz2gE.js} +33 -33
  237. package/dist/{pressBtn-DZz7PZ7o.cjs → pressBtn-CJZTyY8I.cjs} +1 -1
  238. package/dist/{processTable-Bm2HnUrZ.js → processTable-CHDazqah.js} +2 -2
  239. package/dist/{processTable-kVFr2ntb.cjs → processTable-HtDeg1by.cjs} +1 -1
  240. package/dist/{progressBar-00yP_jc2.cjs → progressBar-BP4SmPZK.cjs} +1 -1
  241. package/dist/{progressBar-C7RKpdcE.js → progressBar-C3NcWUrS.js} +2 -2
  242. package/dist/{progressCircle-BBkwMkI0.js → progressCircle-Bo9-Qva_.js} +48 -48
  243. package/dist/{progressCircle-CzqibMlZ.cjs → progressCircle-CDqK1iFt.cjs} +1 -1
  244. package/dist/{qrcode-DaHlY7Vv.js → qrcode-VmYwvClG.js} +2 -2
  245. package/dist/{qrcode-4NUAsx0h.cjs → qrcode-qD6tOm4F.cjs} +1 -1
  246. package/dist/{raceBar-WhOgwnlP.js → raceBar-DR2-luKW.js} +2 -2
  247. package/dist/{raceBar-BVsHg94d.cjs → raceBar-uAs91hyk.cjs} +1 -1
  248. package/dist/{rad-BlEn2Yx1.js → rad-1Jy1KDzt.js} +2 -2
  249. package/dist/{rad-sMtJPs8L.cjs → rad-D7-YZJNO.cjs} +1 -1
  250. package/dist/{radarMapViewer-C1_FFYFi.js → radarMapViewer-ByQXe0Mu.js} +2 -2
  251. package/dist/{radarMapViewer-CzhHFpRX.cjs → radarMapViewer-KPhNE5XX.cjs} +1 -1
  252. package/dist/{rainfallFilterBar-Bt2TbXV6.js → rainfallFilterBar-C1obotPf.js} +2 -2
  253. package/dist/{rainfallFilterBar-F7DU_nqK.cjs → rainfallFilterBar-CVQpQp82.cjs} +1 -1
  254. package/dist/{rainfallTimeCurve-C5tBf1lx.js → rainfallTimeCurve-B2rEx3T_.js} +3 -3
  255. package/dist/{rainfallTimeCurve-DaXSW7dI.cjs → rainfallTimeCurve-DU2tt-Ls.cjs} +1 -1
  256. package/dist/{rangeLin-Cr4NRYc9.cjs → rangeLin-COsJkCky.cjs} +1 -1
  257. package/dist/{rangeLin-Bral8Ev4.js → rangeLin-CdfUCFQr.js} +8 -8
  258. package/dist/{realtimeEvolutionMap-CCisvZz8.cjs → realtimeEvolutionMap-B7GT8MOq.cjs} +1 -1
  259. package/dist/{realtimeEvolutionMap-xJwuPatp.js → realtimeEvolutionMap-aR63xPW_.js} +2 -2
  260. package/dist/{regionBar-C8myvRfQ.cjs → regionBar-BYF7IaGA.cjs} +1 -1
  261. package/dist/{regionBar-D1iKcs2-.js → regionBar-DB-secNe.js} +2 -2
  262. package/dist/{request-C-rUicMg.js → request-CBsG4ipL.js} +1 -1
  263. package/dist/{request-Cxljxwu9.cjs → request-CvdHjG34.cjs} +1 -1
  264. package/dist/{retainer1-CC6TO-vq.cjs → retainer1-1CFk4InO.cjs} +1 -1
  265. package/dist/{retainer1-BvzeaTtU.js → retainer1-CMzTlM5Z.js} +3 -3
  266. package/dist/{retainer2-BeakFCgo.js → retainer2-DW4ewYX7.js} +3 -3
  267. package/dist/{retainer2-CmdgkB1y.cjs → retainer2-DliOH7it.cjs} +1 -1
  268. package/dist/{retainerRecordList-C7lDliOb.js → retainerRecordList-Bcm6leuD.js} +254 -275
  269. package/dist/retainerRecordList-DV7Tx39d.cjs +1 -0
  270. package/dist/retainerRecordListAPP-BDRwp8T3.js +1219 -0
  271. package/dist/retainerRecordListAPP-CJ-u0Tj2.cjs +1 -0
  272. package/dist/{ringTopN-BaKY-79s.js → ringTopN-Duq0pzm_.js} +2 -2
  273. package/dist/{ringTopN-Wfvu1-jE.cjs → ringTopN-rd2UwH9f.cjs} +1 -1
  274. package/dist/{riskRegionTable-ovBbwMl2.js → riskRegionTable-BE_ggcEV.js} +2 -2
  275. package/dist/{riskRegionTable-C7ee9wQX.cjs → riskRegionTable-CbPB8mlY.cjs} +1 -1
  276. package/dist/{sankey-BmWOGLSZ.cjs → sankey-BqBn6_rx.cjs} +1 -1
  277. package/dist/{sankey-K5BLueeX.js → sankey-CnKm9PZe.js} +2 -2
  278. package/dist/{scd-CMVoKjwE.js → scd-BaBLoem8.js} +456 -449
  279. package/dist/scd-BgJ5P7co.cjs +1 -0
  280. package/dist/{sideMenu-BbiMVHw1.cjs → sideMenu-BgiQL2P1.cjs} +1 -1
  281. package/dist/{sideMenu-L_dYXVgD.js → sideMenu-CUal1UQY.js} +2 -2
  282. package/dist/{slopeStability-WUcwG1vB.js → slopeStability-B9YbQLCE.js} +25 -25
  283. package/dist/{slopeStability-BWVxuRRV.cjs → slopeStability-Y2tDzJeh.cjs} +1 -1
  284. package/dist/{speedCurve-uwPuIJp0.js → speedCurve-DERBMtE1.js} +2 -2
  285. package/dist/{speedCurve-QTXe81e1.cjs → speedCurve-Kll2RRJ8.cjs} +1 -1
  286. package/dist/{stressFilterBar-DcqWlqsx.cjs → stressFilterBar-BGI4gVfE.cjs} +1 -1
  287. package/dist/{stressFilterBar-CnFNp7BR.js → stressFilterBar-CHRWFnpP.js} +2 -2
  288. package/dist/{stressTimeCurve-C-qycuZ2.cjs → stressTimeCurve-DE5KiXEt.cjs} +1 -1
  289. package/dist/{stressTimeCurve-C3r3LUBt.js → stressTimeCurve-hrlqSYS3.js} +3 -3
  290. package/dist/{swiper-wWrsPbDA.cjs → swiper-CnGllhBQ.cjs} +1 -1
  291. package/dist/{swiper-JShIvM0E.js → swiper-DNHC412s.js} +2 -2
  292. package/dist/{terminalConfigList-DVhEvcTB.js → terminalConfigList-BlHAsyCm.js} +2 -2
  293. package/dist/{terminalConfigList-nQqB1W5s.cjs → terminalConfigList-C45EANO4.cjs} +1 -1
  294. package/dist/{terminalList-BkMuHXZw.cjs → terminalList-CNI3_FGb.cjs} +1 -1
  295. package/dist/{terminalList-wAz6t4Ib.js → terminalList-UGjkhyf4.js} +2 -2
  296. package/dist/{terminalListAPP-CePxWgcL.cjs → terminalListAPP-6fPXF-yJ.cjs} +1 -1
  297. package/dist/{terminalListAPP-DuLN2OVq.js → terminalListAPP-CIJZMdxI.js} +2 -2
  298. package/dist/{textbox-DxXuhIyj.js → textbox-BD_LQ0EN.js} +2 -2
  299. package/dist/{textbox-BBi-Lg1Z.cjs → textbox-yNPnOaan.cjs} +1 -1
  300. package/dist/{timeQueryBar-BCTeL04F.cjs → timeQueryBar-3qiV0IV9.cjs} +1 -1
  301. package/dist/{timeQueryBar-DtngkLJX.js → timeQueryBar-B-uPtN25.js} +1 -1
  302. package/dist/{timeSeries-DJZnExBA.cjs → timeSeries-BTUuojvj.cjs} +1 -1
  303. package/dist/{timeSeries-CrdyAYs2.js → timeSeries-DdQI4oZU.js} +3 -3
  304. package/dist/{timeSeriesCurve-8_n0JJyf.cjs → timeSeriesCurve-Cj_FbK4x.cjs} +1 -1
  305. package/dist/{timeSeriesCurve-8_exdGlQ.js → timeSeriesCurve-TGXshTzl.js} +3 -3
  306. package/dist/{toggleBtn-DExYfMvi.js → toggleBtn-BMxqm5WG.js} +2 -2
  307. package/dist/{toggleBtn-B6dJ5cAt.cjs → toggleBtn-BXcQfnTB.cjs} +1 -1
  308. package/dist/{trajectoryConfigPanel-B2fwoe-I.cjs → trajectoryConfigPanel-CqoKO0hL.cjs} +1 -1
  309. package/dist/{trajectoryConfigPanel-Ce1SoMtw.js → trajectoryConfigPanel-uRLWdXUb.js} +1 -1
  310. package/dist/{trajectoryScatter-h32teAQ0.js → trajectoryScatter-DPE4cC8N.js} +2 -2
  311. package/dist/{trajectoryScatter-CVLEXMPO.cjs → trajectoryScatter-Dph8PSdN.cjs} +1 -1
  312. package/dist/{universalConfigPanel-CxbrIc2Z.js → universalConfigPanel-CI1CuBmr.js} +1 -1
  313. package/dist/{universalConfigPanel-cRzJmx3l.cjs → universalConfigPanel-Db-pC67o.cjs} +1 -1
  314. package/dist/{universalTable-BssAi-QH.js → universalTable-DMrgtBrw.js} +2 -2
  315. package/dist/{universalTable-V604pFVr.cjs → universalTable-dQObEQog.cjs} +1 -1
  316. package/dist/{video-BjmIbrRS.js → video-DEhLie80.js} +2 -2
  317. package/dist/{video-B8JeGpBc.cjs → video-DbsKQhVD.cjs} +1 -1
  318. package/dist/{videoMonitor-CVkFwlZq.js → videoMonitor-BS6_LYUb.js} +12 -12
  319. package/dist/{videoMonitor-B6FzkJlS.cjs → videoMonitor-DLBtivXO.cjs} +1 -1
  320. package/dist/vlu-DXk_wQf-.cjs +1 -0
  321. package/dist/vlu-DaSjPY3I.js +149 -0
  322. package/dist/{warningOverview-DDOm2wwB.js → warningOverview-CKCEs_Jj.js} +3 -3
  323. package/dist/{warningOverview-4M-WX3Ob.cjs → warningOverview-DAUlXzr0.cjs} +1 -1
  324. package/dist/{weather-BGrOQFPM.cjs → weather-BAI0IWNH.cjs} +1 -1
  325. package/dist/{weather-CETxcsJS.js → weather-XUj6pFwM.js} +2 -2
  326. package/dist/{windLin-B3YXltBn.js → windLin-Bt4q2eUT.js} +2 -2
  327. package/dist/{windLin-B6uEtUnB.cjs → windLin-C9dsCT1w.cjs} +1 -1
  328. package/package.json +1 -1
  329. package/dist/BaseComponent-CaCkjmmb.cjs +0 -1
  330. package/dist/arrayCard-BYZWRop3.cjs +0 -1
  331. package/dist/arrayCard-CVVWnZDk.js +0 -131
  332. package/dist/bar-1K14ZPKy.cjs +0 -2
  333. package/dist/clt-BCHpLoab.cjs +0 -1
  334. package/dist/clt-Ba9Ov5WY.js +0 -296
  335. package/dist/cmc-CdDCboSm.cjs +0 -1
  336. package/dist/cmc-CsVB4uz3.js +0 -277
  337. package/dist/controlRecordListAPP-BktJCkFK.cjs +0 -1
  338. package/dist/controlRecordListAPP-CSt8rFZX.js +0 -502
  339. package/dist/evn-B2F6pbqY.js +0 -158
  340. package/dist/evn-B6WNZ0pv.cjs +0 -1
  341. package/dist/gasStationList-CN2y3zri.cjs +0 -1
  342. package/dist/gasStationList-CifrfkH0.js +0 -1239
  343. package/dist/index-BzWbqJIl.cjs +0 -612
  344. package/dist/mixiotObjectListApi-BwIQvSS-.js +0 -67
  345. package/dist/mixiotObjectListApi-ClirV2tM.cjs +0 -1
  346. package/dist/objectList-Cpu0yqsK.js +0 -1740
  347. package/dist/objectList-D5E8PU66.cjs +0 -1
  348. package/dist/objectListAPP-Cr4uoJuN.cjs +0 -1
  349. package/dist/retainerRecordList-C9xVt3Yk.cjs +0 -1
  350. package/dist/retainerRecordListAPP-BRmG7UnF.cjs +0 -1
  351. package/dist/retainerRecordListAPP-Cjip5JHS.js +0 -1070
  352. package/dist/scd-CCNgUI2Q.cjs +0 -1
  353. package/dist/vlu-CHHDngO6.js +0 -142
  354. package/dist/vlu-Dv1vt9r0.cjs +0 -1
@@ -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-CaCkjmmb.cjs"),h=require("./index-BzWbqJIl.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-xZTq1lUB.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-BmhMoM4H.cjs"),h=require("./index-77aUdspY.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-D1R2RAZQ.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;
@@ -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-NnwLq7Cf.js";
31
- import { d as h, _ as W } from "./index-D5BukPPY.js";
30
+ import { B as U } from "./BaseComponent-CQaDWNO0.js";
31
+ import { d as h, _ as W } from "./index-BZpYmpDy.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-DdkBOj8L.js")).default().getHistoryData(this.props, this.componentType);
132
+ const i = yield new (yield import("./history-BRkb914v.js")).default().getHistoryData(this.props, this.componentType);
133
133
  this.setHistoryData(i);
134
134
  } catch (e) {
135
135
  console.error("[Retainer1] 获取历史数据失败:", e);
@@ -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-NnwLq7Cf.js";
31
- import { d as O, _ as _e } from "./index-D5BukPPY.js";
30
+ import { B as xe } from "./BaseComponent-CQaDWNO0.js";
31
+ import { d as O, _ as _e } from "./index-BZpYmpDy.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-DdkBOj8L.js")).default().getHistoryData(this.props, this.componentType);
116
+ const i = yield new (yield import("./history-BRkb914v.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 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-CaCkjmmb.cjs"),T=require("./index-BzWbqJIl.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-xZTq1lUB.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-BmhMoM4H.cjs"),T=require("./index-77aUdspY.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-D1R2RAZQ.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;