mixdashboards 1.0.70 → 1.0.71

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 (342) hide show
  1. package/dist/{BaseComponent-Cco_5i96.cjs → BaseComponent-CNXUpPY1.cjs} +1 -1
  2. package/dist/{BaseComponent-DQe7HYdV.js → BaseComponent-D5tlYehc.js} +3 -3
  3. package/dist/{EChartComponentBase-dEfA3X9b.js → EChartComponentBase-CAabYXSj.js} +2 -2
  4. package/dist/{EChartComponentBase-BaBnJ8bP.cjs → EChartComponentBase-D4wMej9X.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-wz6hpU6V.cjs → EmergencyPlanPanel-D96XjhRq.cjs} +1 -1
  6. package/dist/{EmergencyPlanPanel-DSznPaVv.js → EmergencyPlanPanel-Th4ZNdCb.js} +1 -1
  7. package/dist/{HistoryPlanDialog-BTgBCdS8.js → HistoryPlanDialog-D2mQLhkO.js} +1 -1
  8. package/dist/{HistoryPlanDialog-B-LHlgcj.cjs → HistoryPlanDialog-rn2Bp0Gx.cjs} +1 -1
  9. package/dist/{MonitoringMap-C-2l_lqx.cjs → MonitoringMap-BZ98NYTJ.cjs} +1 -1
  10. package/dist/{MonitoringMap-DXBLJnDo.js → MonitoringMap-Coozb35G.js} +2 -2
  11. package/dist/{UniverSheet-C7dsXjKx.js → UniverSheet-CJCunVAM.js} +2 -2
  12. package/dist/{UniverSheet-LB-08tc-.cjs → UniverSheet-CntkzcVZ.cjs} +1 -1
  13. package/dist/{accelerationChart-D1SoP45I.cjs → accelerationChart-DLV-1mpA.cjs} +1 -1
  14. package/dist/{accelerationChart-SBxtVHbe.js → accelerationChart-DacjcSHD.js} +2 -2
  15. package/dist/{actionItem-DfIM5UH4.cjs → actionItem-CFxzHf4E.cjs} +1 -1
  16. package/dist/{actionItem-B8IcKGNl.js → actionItem-d-4p5HZK.js} +2 -2
  17. package/dist/{alarmLevelChart-H8iauEiv.cjs → alarmLevelChart-DCC6D1fH.cjs} +1 -1
  18. package/dist/{alarmLevelChart-CQz77Q40.js → alarmLevelChart-DddN1NVy.js} +2 -2
  19. package/dist/{alertTable-Cx-fC6uh.cjs → alertTable-BREZBeS5.cjs} +1 -1
  20. package/dist/{alertTable-Cv29mm-v.js → alertTable-Q-Waa5jf.js} +2 -2
  21. package/dist/{aliasObjectSelectorDemo-Bu8MwH5r.js → aliasObjectSelectorDemo-BZygQw9k.js} +1 -1
  22. package/dist/{aliasObjectSelectorDemo-etPGYsSr.cjs → aliasObjectSelectorDemo-DunKWEkT.cjs} +1 -1
  23. package/dist/{annualRainfallChart-BGQ985hs.cjs → annualRainfallChart-BJyoUBDn.cjs} +1 -1
  24. package/dist/{annualRainfallChart-DX58eJRx.js → annualRainfallChart-CthANCvn.js} +2 -2
  25. package/dist/appendCommonDesignerWhereAnd-DwefWNOa.js +11 -0
  26. package/dist/appendCommonDesignerWhereAnd-Q-EhDJXE.cjs +1 -0
  27. package/dist/{aqi-B2fpfbL7.cjs → aqi-BFW_8xYd.cjs} +1 -1
  28. package/dist/{aqi-DeaKS-k8.js → aqi-C_HnKsjh.js} +2 -2
  29. package/dist/{aqiIndass-B7qQDf8x.cjs → aqiIndass-B441j8CT.cjs} +1 -1
  30. package/dist/{aqiIndass-DhZefO08.js → aqiIndass-NVRa3lmj.js} +2 -2
  31. package/dist/{areaDeformCurve-Ocbn3_kI.cjs → areaDeformCurve-Dj405Jil.cjs} +1 -1
  32. package/dist/{areaDeformCurve-C4hXBtGd.js → areaDeformCurve-mQiOHdtN.js} +2 -2
  33. package/dist/{arrayCard-DlsKpcwB.cjs → arrayCard-B7zb1dFi.cjs} +1 -1
  34. package/dist/{arrayCard-BpUOS-ss.js → arrayCard-DZitcjMs.js} +2 -2
  35. package/dist/{audio-DxNmXkbs.cjs → audio-BfsYRWbm.cjs} +1 -1
  36. package/dist/{audio-C6CngKS8.js → audio-CDAMVEgC.js} +2 -2
  37. package/dist/{bar-DNPkWaNw.js → bar--JrlRud9.js} +2 -2
  38. package/dist/{bar-D1M8bJyN.cjs → bar-C7uQADV1.cjs} +1 -1
  39. package/dist/{bmp-Bzs9zJnc.cjs → bmp-DIkLqzRN.cjs} +1 -1
  40. package/dist/{bmp-YmFKfLFa.js → bmp-DrVcnYxy.js} +2 -2
  41. package/dist/{box-OJmqI3Q7.cjs → box-kXjrgG2u.cjs} +1 -1
  42. package/dist/{box-Dk54UC-q.js → box-szcLhted.js} +2 -2
  43. package/dist/{chartConfigPanel-GHB5Hl5O.js → chartConfigPanel-C32o1gyJ.js} +1 -1
  44. package/dist/{chartConfigPanel-CZoaPWy_.cjs → chartConfigPanel-DN4LMy8-.cjs} +1 -1
  45. package/dist/{circleBar-K137GzFV.js → circleBar-BmTjsLHo.js} +2 -2
  46. package/dist/{circleBar-B5IZlML0.cjs → circleBar-CeL2rqMJ.cjs} +1 -1
  47. package/dist/{clock-2JczyJVw.js → clock-CuQpD76K.js} +2 -2
  48. package/dist/{clock-CBL1_q-5.cjs → clock-EbmFBRb-.cjs} +1 -1
  49. package/dist/{clt-BORPsc1B.cjs → clt-C-9xGiKs.cjs} +1 -1
  50. package/dist/{clt-ChGE4ePR.js → clt-XCswxZ6i.js} +2 -2
  51. package/dist/{cmc-DcpgTPp1.cjs → cmc-CFa8Q3tu.cjs} +1 -1
  52. package/dist/{cmc-KJdEjBLk.js → cmc-CXmAv6fz.js} +2 -2
  53. package/dist/{cmp-CcyWf3Uh.cjs → cmp-DmpxjexT.cjs} +1 -1
  54. package/dist/{cmp-sOgqvBdl.js → cmp-Duz_v-LC.js} +2 -2
  55. package/dist/{composite-Ch7011-M.js → composite-CWgy-w61.js} +2 -2
  56. package/dist/{composite-CQKIpLlE.cjs → composite-DdHASMFQ.cjs} +1 -1
  57. package/dist/{conclusionCard-DzJV5dVQ.js → conclusionCard-BtB0rARK.js} +2 -2
  58. package/dist/{conclusionCard-DAvkvrFd.cjs → conclusionCard-Dlg5GWlE.cjs} +1 -1
  59. package/dist/{controlList-VNBp52-S.js → controlList-C0AQ8Yb8.js} +119 -113
  60. package/dist/controlList-C1vhlonT.cjs +1 -0
  61. package/dist/controlRecordList-BhK7KtLR.cjs +1 -0
  62. package/dist/{controlRecordList-BwgBUDph.js → controlRecordList-CSPKG1HU.js} +113 -107
  63. package/dist/{crd-CMq-eX9E.cjs → crd-CgxqxwKV.cjs} +1 -1
  64. package/dist/{crd-BgzuVyLH.js → crd-DQruf9o3.js} +2 -2
  65. package/dist/{ctrBtn-BBpiMhLv.cjs → ctrBtn-BSJ9c7Pt.cjs} +1 -1
  66. package/dist/{ctrBtn-BEFSVeUb.js → ctrBtn-jEWTt_f2.js} +3 -3
  67. package/dist/{ctrSet-CIqM9s8f.cjs → ctrSet-B9M4yI53.cjs} +1 -1
  68. package/dist/{ctrSet-CDe4sV-6.js → ctrSet-C4wCODMY.js} +3 -3
  69. package/dist/{ctrSwitch-TZ380RwZ.js → ctrSwitch-C6dUn_qm.js} +3 -3
  70. package/dist/{ctrSwitch-BT6EXPWY.cjs → ctrSwitch-ZvMCYKvG.cjs} +1 -1
  71. package/dist/{dataManagement-Dc_cJb_I.js → dataManagement-BQVZS7Hi.js} +2 -2
  72. package/dist/{dataManagement-CIt71PpI.cjs → dataManagement-CNrEa_zB.cjs} +1 -1
  73. package/dist/{dataReport-Brb3-u9M.cjs → dataReport-DRopth3A.cjs} +1 -1
  74. package/dist/{dataReport-CqEWzKs_.js → dataReport-vP1LBJjE.js} +2 -2
  75. package/dist/{dataTable-CxNmTfCe.js → dataTable-B1FQ3XIq.js} +1 -1
  76. package/dist/{dataTable-Dumu1ipq.cjs → dataTable-C2AgSR36.cjs} +1 -1
  77. package/dist/{datetime-CiUh6ijW.cjs → datetime-CAyDWKE8.cjs} +1 -1
  78. package/dist/{datetime-DznwpQpB.js → datetime-DU3rzi1v.js} +2 -2
  79. package/dist/{deepClusterSlipSurface-BM14AV0q.js → deepClusterSlipSurface-BHwB0eu9.js} +2 -2
  80. package/dist/{deepClusterSlipSurface-DV0J99z4.cjs → deepClusterSlipSurface-DzoyF6i1.cjs} +1 -1
  81. package/dist/{deepDataMatrix-CnZamNgJ.cjs → deepDataMatrix--AstWPiL.cjs} +1 -1
  82. package/dist/{deepDataMatrix-DlHVpRsU.js → deepDataMatrix-C3uKZmon.js} +2 -2
  83. package/dist/{deepDisplacement3D-DBPZVGVq.cjs → deepDisplacement3D-BBYgB-rK.cjs} +1 -1
  84. package/dist/{deepDisplacement3D-CFQGFzKB.js → deepDisplacement3D-CDNPul6D.js} +2 -2
  85. package/dist/{deepDisplacementChart-WRoRNeUp.cjs → deepDisplacementChart-BnT1ZdfR.cjs} +1 -1
  86. package/dist/{deepDisplacementChart-BIC1BdeL.js → deepDisplacementChart-C6GQHO-J.js} +3 -3
  87. package/dist/{deepDisplacementChart-CUHtskLG.js → deepDisplacementChart-C_pwwgIC.js} +2 -2
  88. package/dist/{deepDisplacementChart-DV1CAZdr.cjs → deepDisplacementChart-DOPij7KP.cjs} +1 -1
  89. package/dist/{deepDisplacementView-CqYa0axl.js → deepDisplacementView-C837RNer.js} +1 -1
  90. package/dist/{deepDisplacementView-Cvw33ulf.cjs → deepDisplacementView-u1IPcbxN.cjs} +1 -1
  91. package/dist/{deepNodeTemperatureChart-CXdObUS6.js → deepNodeTemperatureChart-BcH3ZNi4.js} +2 -2
  92. package/dist/{deepNodeTemperatureChart-Dv_OX5B4.cjs → deepNodeTemperatureChart-CD3JbqkA.cjs} +1 -1
  93. package/dist/{deepTangentAngleChart-DswXRUYT.cjs → deepTangentAngleChart-BCAauuDY.cjs} +1 -1
  94. package/dist/{deepTangentAngleChart-Bud2CMVY.js → deepTangentAngleChart-DSpCyIdq.js} +2 -2
  95. package/dist/{deepTemperatureField-GoQvQtaO.js → deepTemperatureField-B2qIHL1-.js} +3 -3
  96. package/dist/{deepTemperatureField-ChALQ2aa.cjs → deepTemperatureField-BxuKsrtc.cjs} +1 -1
  97. package/dist/{deepTrendChart-CDrMdwWQ.cjs → deepTrendChart-6L4cCHgh.cjs} +1 -1
  98. package/dist/{deepTrendChart-ChnQuB43.js → deepTrendChart-DFGSV17a.js} +2 -2
  99. package/dist/{deviceOnlineStatus-BfNCdYOx.js → deviceOnlineStatus-CiIFdo9I.js} +2 -2
  100. package/dist/{deviceOnlineStatus-Bn3LQ4Sr.cjs → deviceOnlineStatus-WkwzGom4.cjs} +1 -1
  101. package/dist/{deviceStatus-Brj4MjDf.cjs → deviceStatus-BoIv8fbr.cjs} +1 -1
  102. package/dist/{deviceStatus-B38Ae5a2.js → deviceStatus-Dd1pqVnO.js} +2 -2
  103. package/dist/{displacementDataTable-BUNOEGGA.cjs → displacementDataTable-BwcxrsuU.cjs} +1 -1
  104. package/dist/{displacementDataTable-CcPsYHhN.js → displacementDataTable-CGIHGxye.js} +2 -2
  105. package/dist/{displacementTrajectoryChart-CigBPamm.cjs → displacementTrajectoryChart-BOPIBgi5.cjs} +1 -1
  106. package/dist/{displacementTrajectoryChart--FVjlHL3.js → displacementTrajectoryChart-RL97CTML.js} +2 -2
  107. package/dist/{displacementTrendChart-IVjBPyEn.js → displacementTrendChart-Bqnv7hiP.js} +2 -2
  108. package/dist/{displacementTrendChart-BglcCr0q.cjs → displacementTrendChart-CI8i0oQY.cjs} +1 -1
  109. package/dist/{dxf-GBy0lc-E.cjs → dxf-BQoArgPS.cjs} +1 -1
  110. package/dist/{dxf-sH3BLfYm.js → dxf-DBu1iA-r.js} +2 -2
  111. package/dist/{dzc-Bl1t-Dk2.js → dzc-7tLxe18d.js} +2 -2
  112. package/dist/{dzc-HaFIs3kj.cjs → dzc-DMVPjosV.cjs} +1 -1
  113. package/dist/{emergencyPlan-Dm3xgpLZ.cjs → emergencyPlan-BRFhMubg.cjs} +1 -1
  114. package/dist/{emergencyPlan-BBCNfl7v.js → emergencyPlan-C9Edkw51.js} +3 -3
  115. package/dist/{evn-xtk2AfOE.cjs → evn-B05d7LtF.cjs} +1 -1
  116. package/dist/{evn-oE5QPAvh.js → evn-CeLoYCUr.js} +2 -2
  117. package/dist/{evolutionChart-IQgcbpZI.js → evolutionChart-DAlncdLU.js} +3 -3
  118. package/dist/{evolutionChart-BCALB3_C.cjs → evolutionChart-y2mkLVwU.cjs} +1 -1
  119. package/dist/{fileViewer-CNUWWWrf.js → fileViewer-BFMFEN2f.js} +2 -2
  120. package/dist/{fileViewer-Bm3pBZ7F.cjs → fileViewer-Dy2fdABW.cjs} +1 -1
  121. package/dist/{filterBar-8-3I-fv2.cjs → filterBar-CcrUdD-O.cjs} +1 -1
  122. package/dist/{filterBar-D0IMAQEi.js → filterBar-qJJKdxYE.js} +2 -2
  123. package/dist/{fireCombustionCurve-q_KJLBvC.cjs → fireCombustionCurve-B-6MZLul.cjs} +1 -1
  124. package/dist/{fireCombustionCurve-DIMaL6k_.js → fireCombustionCurve-DyRikhHw.js} +3 -3
  125. package/dist/{fireFilterBar-BduYgLR_.cjs → fireFilterBar-C9b_Ohvr.cjs} +1 -1
  126. package/dist/{fireFilterBar-mh__CAEd.js → fireFilterBar-DkjBGPXa.js} +2 -2
  127. package/dist/{fireHistoryTable-V7JBdrE2.cjs → fireHistoryTable-5sG5FDCD.cjs} +1 -1
  128. package/dist/{fireHistoryTable-BGIGhRzQ.js → fireHistoryTable-ldXil5up.js} +2 -2
  129. package/dist/{gag-ClHWS-GR.cjs → gag-CDX99Ta4.cjs} +1 -1
  130. package/dist/{gag-h6YZVeKt.js → gag-KZfFHn72.js} +2 -2
  131. package/dist/{gasStationList-D8fl4Or-.js → gasStationList-Btoo_olJ.js} +61 -54
  132. package/dist/gasStationList-Dl9qawf_.cjs +1 -0
  133. package/dist/{geo3dViewer-V0VzcLih.cjs → geo3dViewer-Cif9uFqd.cjs} +1 -1
  134. package/dist/{geo3dViewer-BMXatRLz.js → geo3dViewer-iZhkCiTP.js} +3 -3
  135. package/dist/{glbModel-CXvjMqNn.cjs → glbModel-2xydaxDT.cjs} +1 -1
  136. package/dist/{glbModel-B2byj6re.js → glbModel-MJZgDSJf.js} +2 -2
  137. package/dist/{globalObjectSelector-BgZLIHmK.cjs → globalObjectSelector-Bz2XhgxT.cjs} +1 -1
  138. package/dist/{globalObjectSelector-BZ3_5CPd.js → globalObjectSelector-CHtYGpi9.js} +1 -1
  139. package/dist/{gnssFilterBar-Cf7cWGlI.cjs → gnssFilterBar-BT19n0j_.cjs} +1 -1
  140. package/dist/{gnssFilterBar-CpF9e6YM.js → gnssFilterBar-CPis6bUI.js} +2 -2
  141. package/dist/{gnssHistoryTable-rdM2a20c.cjs → gnssHistoryTable-CrS2qO6S.cjs} +1 -1
  142. package/dist/{gnssHistoryTable-MRP8Beo0.js → gnssHistoryTable-kHZY48EZ.js} +2 -2
  143. package/dist/{gnssMapView-CaUtuUpJ.cjs → gnssMapView-BNIkieqL.cjs} +2 -2
  144. package/dist/{gnssMapView-BkoTIlXN.js → gnssMapView-DXP8yz0v.js} +4 -4
  145. package/dist/{gnssSectionProfile-Dg8ItwhD.js → gnssSectionProfile-DEUDEvJ1.js} +2 -2
  146. package/dist/{gnssSectionProfile-BBr8cQ5Q.cjs → gnssSectionProfile-_KbP1NXU.cjs} +1 -1
  147. package/dist/{gnssTimeSeriesChart-nqn-schc.cjs → gnssTimeSeriesChart-BgFoXAZv.cjs} +1 -1
  148. package/dist/{gnssTimeSeriesChart-BD_By4pr.js → gnssTimeSeriesChart-C_xqd0su.js} +2 -2
  149. package/dist/{gnssXYTrajectory-BEuA8xeM.cjs → gnssXYTrajectory-C1N3RWzp.cjs} +1 -1
  150. package/dist/{gnssXYTrajectory-BJc805eq.js → gnssXYTrajectory-GqgFw_qK.js} +2 -2
  151. package/dist/grd-DtDoJOOa.cjs +1 -0
  152. package/dist/{grd-CdgF9LSJ.js → grd-QCuVN1jE.js} +31 -30
  153. package/dist/{grdIndass-BE3WXRar.js → grdIndass-BEcfZTYw.js} +2 -2
  154. package/dist/{grdIndass-BCgyoujO.cjs → grdIndass-ci3JkvGZ.cjs} +1 -1
  155. package/dist/{grg-DC1jm6BJ.cjs → grg-C2qVuXYE.cjs} +1 -1
  156. package/dist/{grg-DOWXpsOd.js → grg-CMVrF5tB.js} +2 -2
  157. package/dist/{gridview-EqB4I5wC.cjs → gridview-BLAlr5uj.cjs} +1 -1
  158. package/dist/{gridview-CVmSPr7U.js → gridview-Cd3Tqzph.js} +2 -2
  159. package/dist/{groundwaterFilterBar-CWv6BCI6.cjs → groundwaterFilterBar-1E1j67JT.cjs} +1 -1
  160. package/dist/{groundwaterFilterBar-CviSH5Qr.js → groundwaterFilterBar-D7lrbzDC.js} +2 -2
  161. package/dist/{groundwaterProfileChart-D-Egf7gH.js → groundwaterProfileChart-Bjtqz-Zv.js} +3 -3
  162. package/dist/{groundwaterProfileChart-hbl7Skoa.cjs → groundwaterProfileChart-CS9xelz8.cjs} +2 -2
  163. package/dist/{groundwaterTimeCurve-B2S9jv9c.js → groundwaterTimeCurve-Bu6vgAaC.js} +3 -3
  164. package/dist/{groundwaterTimeCurve-BSKxN3Mw.cjs → groundwaterTimeCurve-DYiDLgVY.cjs} +1 -1
  165. package/dist/{groupCard-BSYmzKXi.cjs → groupCard-CPvAsuPb.cjs} +1 -1
  166. package/dist/{groupCard-fDda5bn9.js → groupCard-DQvEe6cc.js} +2 -2
  167. package/dist/{headerBar-BNC53vaM.js → headerBar-CGOtSvFn.js} +2 -2
  168. package/dist/{headerBar-Dv7imnYo.cjs → headerBar-OwCxpc4o.cjs} +1 -1
  169. package/dist/{history-BC29QEMC.cjs → history-9ToM-rJ6.cjs} +1 -1
  170. package/dist/{history-71NIpUTt.js → history-D6C3tSut.js} +1 -1
  171. package/dist/{index-BSsB7QzO.js → index-Bdq33405.js} +2026 -2039
  172. package/dist/{index-Do1YWdUS.cjs → index-D8dh_6Qd.cjs} +12 -12
  173. package/dist/{insarDeformChart-DBj0COZA.cjs → insarDeformChart-CSQ7fc2p.cjs} +1 -1
  174. package/dist/{insarDeformChart-DagNC51a.js → insarDeformChart-Ls-cdqaP.js} +2 -2
  175. package/dist/{insarImageViewer-D8lq9Hv9.js → insarImageViewer-Dnke9JDG.js} +2 -2
  176. package/dist/{insarImageViewer-D3Z46bMc.cjs → insarImageViewer-DvaRS1zr.cjs} +1 -1
  177. package/dist/{kds-dfE3zwZ-.js → kds-B4BKGG0r.js} +2 -2
  178. package/dist/{kds-3BWXq_Zj.cjs → kds-BjX5tXhF.cjs} +1 -1
  179. package/dist/{kpiCard-C7BwYNoj.js → kpiCard-C77vHJ_E.js} +2 -2
  180. package/dist/{kpiCard-DsIkae_A.cjs → kpiCard-oLpk5d4m.cjs} +1 -1
  181. package/dist/{landslideMap-BrLLkxBj.js → landslideMap-BEkbnCqP.js} +3 -3
  182. package/dist/{landslideMap-B6KMbgUh.cjs → landslideMap-CO8o7T8J.cjs} +1 -1
  183. package/dist/{landslideWarning-HDs4IJhS.cjs → landslideWarning-BZXa5qTB.cjs} +1 -1
  184. package/dist/{landslideWarning-CCB3FuKv.js → landslideWarning-C5upI2cf.js} +5 -5
  185. package/dist/{layerTabs-CIJNyC8N.cjs → layerTabs-BxRAsklw.cjs} +1 -1
  186. package/dist/{layerTabs-DmXSaX2o.js → layerTabs-DoGw1Jfv.js} +2 -2
  187. package/dist/{leaflet-src-CFMznK-4.cjs → leaflet-src-BUWIqhPn.cjs} +1 -1
  188. package/dist/{leaflet-src-Cz3-WkcA.js → leaflet-src-DFE_g2gF.js} +1 -1
  189. package/dist/{lerc-DOm8fUIl.cjs → lerc-BBgQP785.cjs} +1 -1
  190. package/dist/{lerc-CVXsRBRF.js → lerc-CXc9KSRL.js} +2 -2
  191. package/dist/{lin-CDBqcgpY.cjs → lin-ClO2MqZl.cjs} +1 -1
  192. package/dist/{lin-Br_VXsJO.js → lin-Difz8N88.js} +2 -2
  193. package/dist/{linIndass-B9ZXCjvV.cjs → linIndass-Bb7UA-zk.cjs} +1 -1
  194. package/dist/{linIndass-Bzid42kL.js → linIndass-DqXVOBh3.js} +2 -2
  195. package/dist/{lst-DHw7jJvt.js → lst-4RMMZZkY.js} +2 -2
  196. package/dist/{lst-D1Vdrqbd.cjs → lst-Dri1MTDI.cjs} +1 -1
  197. package/dist/{manualEntry-C3d0PuIP.js → manualEntry-B3_4Z-Lj.js} +2 -2
  198. package/dist/{manualEntry-DPiWw70L.cjs → manualEntry-D74dgZv8.cjs} +1 -1
  199. package/dist/{mapBackground-BmEmh-IX.js → mapBackground-B3OHQsXZ.js} +3 -3
  200. package/dist/{mapBackground-CW9t63hH.cjs → mapBackground-Bmt-oZt6.cjs} +1 -1
  201. package/dist/mappingList-CBN7ArkQ.cjs +1 -0
  202. package/dist/{mappingList-rtj1fZta.js → mappingList-DVj7H206.js} +142 -136
  203. package/dist/{markdownViewer-mV81tsCM.cjs → markdownViewer-BAuNEWRt.cjs} +1 -1
  204. package/dist/{markdownViewer-BW9CC15r.js → markdownViewer-fheM5uV4.js} +2 -2
  205. package/dist/{mix-control-modal-R-d17GgO.js → mix-control-modal-BBiKe4MM.js} +1 -1
  206. package/dist/{mix-control-modal-C-XaUBM9.cjs → mix-control-modal-BoYynGT2.cjs} +1 -1
  207. package/dist/{mixGrid-Dh1GWlPe.js → mixGrid-BUjP1qv2.js} +233 -225
  208. package/dist/mixGrid-DTj2pmFW.cjs +1 -0
  209. package/dist/{mixMap-JeV_KU8B.cjs → mixMap-B4T4R6kA.cjs} +1 -1
  210. package/dist/{mixMap-InWuappO.js → mixMap-DPIwyKuP.js} +2 -2
  211. package/dist/{mixModel-CPu_Nnzl.cjs → mixModel-BzilRtjf.cjs} +1 -1
  212. package/dist/{mixModel-DKGYpc0t.js → mixModel-CIdQp4V9.js} +2 -2
  213. package/dist/{mixPie-DuL4kFfE.js → mixPie-C6OhdOCV.js} +2 -2
  214. package/dist/{mixPie-B8iIy6vW.cjs → mixPie-DtQm-LGp.cjs} +1 -1
  215. package/dist/mixdashboards.cjs +1 -1
  216. package/dist/mixdashboards.css +1 -1
  217. package/dist/mixdashboards.js +1 -1
  218. package/dist/{mjpegCamera-CLn1xHqz.js → mjpegCamera-Cd1vhZ5v.js} +2 -2
  219. package/dist/{mjpegCamera-CBDFxk1W.cjs → mjpegCamera-Lu3UHJ83.cjs} +1 -1
  220. package/dist/{monitorAlert-GYcH2lWI.cjs → monitorAlert-Ctt2kCxQ.cjs} +1 -1
  221. package/dist/{monitorAlert-v3YHyJ9n.js → monitorAlert-DIJtH557.js} +2 -2
  222. package/dist/{monitorData-CfcxdZcd.js → monitorData-B6jhpzVK.js} +2 -2
  223. package/dist/{monitorData-B7ZFUGOk.cjs → monitorData-D_tMbx_Y.cjs} +1 -1
  224. package/dist/{monitorSpeedChart-7xx0tfQ_.js → monitorSpeedChart-DF5zvxs9.js} +1 -1
  225. package/dist/{monitorSpeedChart-C7HwlTr8.cjs → monitorSpeedChart-EIcGs3NX.cjs} +1 -1
  226. package/dist/{mxa-CjPqkUmG.cjs → mxa-BfwIV49n.cjs} +1 -1
  227. package/dist/{mxa-CDGZ91O2.js → mxa-COxjxwpC.js} +2 -2
  228. package/dist/{myValue-DjPA08OX.js → myValue-Crba15Wc.js} +2 -2
  229. package/dist/{myValue-BS3GCO4s.cjs → myValue-FZPOucSS.cjs} +1 -1
  230. package/dist/{myValueList-CHkCKevc.cjs → myValueList-XIDK3ove.cjs} +1 -1
  231. package/dist/{myValueList-C7A5aAh9.js → myValueList-m2yaIcuf.js} +2 -2
  232. package/dist/objectList-BtbxHtJj.cjs +1 -0
  233. package/dist/{objectList-D0tDSws-.js → objectList-BwZJzrXs.js} +252 -229
  234. package/dist/{photo-Cu5K8SR1.cjs → photo-BITvEhKG.cjs} +1 -1
  235. package/dist/{photo-DBEKwlxs.js → photo-CjulDHTM.js} +2 -2
  236. package/dist/{pie-CNzWqzxt.js → pie-C9MU90ON.js} +2 -2
  237. package/dist/{pie-DNaiYJw-.cjs → pie-CSLVJv0Y.cjs} +1 -1
  238. package/dist/{placeholder-CmVISGcF.cjs → placeholder-3kajeeeb.cjs} +1 -1
  239. package/dist/{placeholder-sfIWt-Xp.js → placeholder-CRARTMF4.js} +1 -1
  240. package/dist/{pressBtn-DLQBhBFE.js → pressBtn-CkYcW1a8.js} +3 -3
  241. package/dist/{pressBtn-QGaltOl4.cjs → pressBtn-pUcQtd5n.cjs} +1 -1
  242. package/dist/{processTable-CgNob2sD.js → processTable-BgAhGGAq.js} +2 -2
  243. package/dist/{processTable-g9yoTp4_.cjs → processTable-CDulvQlu.cjs} +1 -1
  244. package/dist/{progressBar-Bdp-TJpQ.cjs → progressBar-BbDFps1r.cjs} +1 -1
  245. package/dist/{progressBar-BB2IqJY4.js → progressBar-CIPUVeaf.js} +2 -2
  246. package/dist/{progressCircle-F4z0eEN5.cjs → progressCircle-CgkZ1EC1.cjs} +1 -1
  247. package/dist/{progressCircle-BQ-JSIxI.js → progressCircle-DDc5zsd6.js} +2 -2
  248. package/dist/{qrcode-D0PnYT1n.js → qrcode-CCu677Ad.js} +2 -2
  249. package/dist/{qrcode-C4JX_M2R.cjs → qrcode-CQbWGVgq.cjs} +1 -1
  250. package/dist/raceBar-Cn8oPhCE.js +354 -0
  251. package/dist/raceBar-CzNGSYCt.cjs +4 -0
  252. package/dist/{rad-Bx3jcHPe.js → rad-D_cLWeMk.js} +2 -2
  253. package/dist/{rad-CpIyATZD.cjs → rad-Dk4PrnyI.cjs} +1 -1
  254. package/dist/{radarMapViewer-znDIY1Dj.js → radarMapViewer-BaAXjsWx.js} +2 -2
  255. package/dist/{radarMapViewer-CbGubI4Y.cjs → radarMapViewer-TJIPACdT.cjs} +1 -1
  256. package/dist/{rainfallFilterBar-3a9Q3HL_.js → rainfallFilterBar-Bhpadat8.js} +2 -2
  257. package/dist/{rainfallFilterBar-Du3Sgp7X.cjs → rainfallFilterBar-Myq0MBCf.cjs} +1 -1
  258. package/dist/{rainfallTimeCurve-D2w9bpwZ.cjs → rainfallTimeCurve-BUI-RlnG.cjs} +1 -1
  259. package/dist/{rainfallTimeCurve-BF2Ic5kC.js → rainfallTimeCurve-sDYapogL.js} +3 -3
  260. package/dist/{rangeLin-C32kwDdl.js → rangeLin-CdMOPwMP.js} +2 -2
  261. package/dist/{rangeLin-B_GwGg5T.cjs → rangeLin-DYCZ8wVc.cjs} +1 -1
  262. package/dist/{realtimeEvolutionMap-BYga2Sy1.cjs → realtimeEvolutionMap-BwyQdAhL.cjs} +1 -1
  263. package/dist/{realtimeEvolutionMap-CJGxgUkx.js → realtimeEvolutionMap-CIH_sZ29.js} +2 -2
  264. package/dist/{regionBar-CdddgYWu.cjs → regionBar-DsxqfirI.cjs} +1 -1
  265. package/dist/{regionBar-CZY8lddM.js → regionBar-VB-2GpR0.js} +2 -2
  266. package/dist/{request-DpwHQGd5.js → request-BHfDxLXZ.js} +1 -1
  267. package/dist/{request-C78CBVAN.cjs → request-DU8pRyvu.cjs} +1 -1
  268. package/dist/{retainer1-BuvX8Di7.cjs → retainer1-CSqjvY4k.cjs} +1 -1
  269. package/dist/{retainer1-D019fwD_.js → retainer1-C_109Weq.js} +3 -3
  270. package/dist/{retainer2-B-TexO-Y.js → retainer2-BiHUTumr.js} +3 -3
  271. package/dist/{retainer2-DCHahmfG.cjs → retainer2-Bqlwvr53.cjs} +1 -1
  272. package/dist/{retainerRecordList-BrYisw1I.js → retainerRecordList-Cgil_g8a.js} +217 -199
  273. package/dist/retainerRecordList-DWZ3WDiz.cjs +1 -0
  274. package/dist/{ringTopN-DiMEspqe.cjs → ringTopN-Bp0er_zV.cjs} +1 -1
  275. package/dist/{ringTopN-U-y_5F23.js → ringTopN-C9AH-t3T.js} +2 -2
  276. package/dist/{riskRegionTable-CBkZwBO7.cjs → riskRegionTable-B3bzMaR_.cjs} +1 -1
  277. package/dist/{riskRegionTable-aMJshw4k.js → riskRegionTable-Co1uxMzf.js} +2 -2
  278. package/dist/{sankey-B5cYZsvX.cjs → sankey-B4BJ4xIo.cjs} +1 -1
  279. package/dist/{sankey-DDfakV6y.js → sankey-Bag0ladh.js} +2 -2
  280. package/dist/{scd-Dw_bUW6m.js → scd-D9AiOiPg.js} +2 -2
  281. package/dist/{scd-DFHgvimo.cjs → scd-Dgd3KDpk.cjs} +1 -1
  282. package/dist/{sideMenu-CmpGVPM3.js → sideMenu-869HFB0p.js} +2 -2
  283. package/dist/{sideMenu-DJsAP45g.cjs → sideMenu-BQ5rrGBr.cjs} +1 -1
  284. package/dist/{slopeStability-CfzgDTeZ.cjs → slopeStability-D96aiykf.cjs} +1 -1
  285. package/dist/{slopeStability-D4eSUWT9.js → slopeStability-bZ0lHLjZ.js} +2 -2
  286. package/dist/{speedCurve-vIlHrolF.cjs → speedCurve-5nWqVAzz.cjs} +1 -1
  287. package/dist/{speedCurve-BbThyw5u.js → speedCurve-DZ52XKCk.js} +2 -2
  288. package/dist/{staticLine-uqwL7J2F.js → staticLine-CyPnmKCh.js} +2 -2
  289. package/dist/{staticLine-CFONgNJ0.cjs → staticLine-DUCg-0tI.cjs} +1 -1
  290. package/dist/{stressFilterBar-BC_6NNeh.js → stressFilterBar-BAUt2bGy.js} +2 -2
  291. package/dist/{stressFilterBar-CbK5TMGs.cjs → stressFilterBar-CorWdmpQ.cjs} +1 -1
  292. package/dist/{stressTimeCurve-DGa6Amlf.cjs → stressTimeCurve-Bci50Cwv.cjs} +1 -1
  293. package/dist/{stressTimeCurve-DL2UIABb.js → stressTimeCurve-IW4ArsyA.js} +3 -3
  294. package/dist/{swiper-D99S451G.cjs → swiper-BPS9C2GV.cjs} +1 -1
  295. package/dist/{swiper-DcI2laNu.js → swiper-RM0GoZkW.js} +2 -2
  296. package/dist/terminalConfigList-O881ke5o.cjs +1 -0
  297. package/dist/{terminalConfigList-CHP04a15.js → terminalConfigList-n7NE5NdJ.js} +217 -207
  298. package/dist/{terminalList-B4GdtArc.js → terminalList-Byb4eLcD.js} +245 -233
  299. package/dist/terminalList-C9TB2cJH.cjs +1 -0
  300. package/dist/{textbox-DWkIbuKy.cjs → textbox-BMWnbPvz.cjs} +1 -1
  301. package/dist/{textbox-DM7EtQFC.js → textbox-DM1AUWw8.js} +2 -2
  302. package/dist/{timeQueryBar-B6dhhKsw.cjs → timeQueryBar-C6ZheMvD.cjs} +1 -1
  303. package/dist/{timeQueryBar-4eYHDx7k.js → timeQueryBar-Tbd9M8UT.js} +1 -1
  304. package/dist/{timeSeries-D8S_d2lD.js → timeSeries-CdpEx6bf.js} +3 -3
  305. package/dist/{timeSeries-SKsJlO9O.cjs → timeSeries-DCV2YjC2.cjs} +1 -1
  306. package/dist/{timeSeriesCurve-HqTd55Tr.js → timeSeriesCurve-C1AmF6TP.js} +3 -3
  307. package/dist/{timeSeriesCurve-D_oEL3m7.cjs → timeSeriesCurve-DRlr5n3U.cjs} +1 -1
  308. package/dist/{toggleBtn-BOQw1iDG.cjs → toggleBtn-BGjXjIuK.cjs} +1 -1
  309. package/dist/{toggleBtn-D7cHFqWb.js → toggleBtn-XS9MjfKM.js} +2 -2
  310. package/dist/{trajectoryConfigPanel-CfDPGItH.js → trajectoryConfigPanel-BC90nD1T.js} +1 -1
  311. package/dist/{trajectoryConfigPanel-yZcJkv1P.cjs → trajectoryConfigPanel-DJ6fOeb1.cjs} +1 -1
  312. package/dist/{trajectoryScatter-aRV9sebu.cjs → trajectoryScatter-C7kfSkyS.cjs} +1 -1
  313. package/dist/{trajectoryScatter-CPFvxmxe.js → trajectoryScatter-DF_ESBn8.js} +2 -2
  314. package/dist/{universalConfigPanel-Drfltp0O.js → universalConfigPanel-DjNTwJkz.js} +1 -1
  315. package/dist/{universalConfigPanel-COMoO1kb.cjs → universalConfigPanel-PO1hdgjw.cjs} +1 -1
  316. package/dist/{universalTable-GfZa1yH9.js → universalTable-BY9vRraC.js} +2 -2
  317. package/dist/{universalTable-BwSUhV4N.cjs → universalTable-QAb6UKCq.cjs} +1 -1
  318. package/dist/{video-kK74GALx.cjs → video-8_Sf1uz0.cjs} +1 -1
  319. package/dist/{video-Dyp2zhVq.js → video-DDvDGDql.js} +2 -2
  320. package/dist/{videoMonitor-PXczYaaJ.cjs → videoMonitor-BKLD_aQs.cjs} +1 -1
  321. package/dist/{videoMonitor-BkelK0u9.js → videoMonitor-sce5N4Q5.js} +2 -2
  322. package/dist/{vlu-BBvampip.js → vlu-BKeYJtOO.js} +2 -2
  323. package/dist/{vlu-fvmCrEzu.cjs → vlu-C0XLDKKk.cjs} +1 -1
  324. package/dist/{warningOverview-CKMdru1u.cjs → warningOverview--n7crFnZ.cjs} +1 -1
  325. package/dist/{warningOverview-CH-TMirz.js → warningOverview-CG5mwtaO.js} +3 -3
  326. package/dist/{weather-dQzojon4.js → weather-BrX2a1an.js} +2 -2
  327. package/dist/{weather-BCLGeV-Q.cjs → weather-CWvAqxgX.cjs} +1 -1
  328. package/dist/{windLin-Bby_6ueU.cjs → windLin-BbbsSwuF.cjs} +1 -1
  329. package/dist/{windLin-9DCax9Ze.js → windLin-P4Gs2aBB.js} +2 -2
  330. package/package.json +120 -120
  331. package/dist/controlList-C9P4g5xx.cjs +0 -1
  332. package/dist/controlRecordList-a-h5hoBa.cjs +0 -1
  333. package/dist/gasStationList-BPa4_DUz.cjs +0 -1
  334. package/dist/grd-aUyI_B6g.cjs +0 -1
  335. package/dist/mappingList-B9PdmcFg.cjs +0 -1
  336. package/dist/mixGrid-DrmqVYse.cjs +0 -1
  337. package/dist/objectList-DxnLRd33.cjs +0 -1
  338. package/dist/raceBar-DYG9jwPy.js +0 -244
  339. package/dist/raceBar-GXOy9QCR.cjs +0 -3
  340. package/dist/retainerRecordList-DRZ-jXXI.cjs +0 -1
  341. package/dist/terminalConfigList-7DiStuBl.cjs +0 -1
  342. package/dist/terminalList-CjEIRV3W.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";var he=Object.defineProperty,ye=Object.defineProperties;var be=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var we=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable;var X=(m,s,c)=>s in m?he(m,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[s]=c,J=(m,s)=>{for(var c in s||(s={}))we.call(s,c)&&X(m,c,s[c]);if(G)for(var c of G(s))Ce.call(s,c)&&X(m,c,s[c]);return m},Y=(m,s)=>ye(m,be(s));var _=(m,s,c)=>new Promise((M,w)=>{var R=C=>{try{T(c.next(C))}catch(O){w(O)}},$=C=>{try{T(c.throw(C))}catch(O){w(O)}},T=C=>C.done?M(C.value):Promise.resolve(C.value).then(R,$);T((c=c.apply(m,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=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/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),Z=require("./useMixiotPanelSurface-BMNrWBMF.cjs"),Ne=require("./BaseComponent-CNXUpPY1.cjs"),B=require("./index-D8dh_6Qd.cjs"),xe=require("./titleStyle-NSnz6cUg.cjs"),p=require("element-plus"),ke=require("@element-plus/icons-vue"),Se=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),ee=require("./ele-lst-icon-CrxnHZ-A.cjs"),_e={class:"mix-body"},Be={class:"toolbar"},Ee={class:"pagination"},Te={class:"view-body"},Oe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"控制码列表",NAME_EN:"ControlList",ORDER:3},De={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:[{key:"uid",label:"控制码编号",width:160,visible:!0},{key:"alias",label:"控制码别名",width:140,visible:!0},{key:"name",label:"控制码名称",width:160,visible:!0},{key:"description",label:"描述",minWidth:160,visible:!0},{key:"created",label:"创建时间",width:170,visible:!0},{key:"last_modified",label:"更新时间",width:170,visible:!0}]},te=[{name:"控制码名称",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0,uid:"控制码编号",uid_visible:!0,alias:"控制码别名",alias_visible:!0,description:"描述",description_visible:!0,created:"创建时间",created_visible:!0,last_modified:"更新时间",last_modified_visible:!0}],ze=[{key:"showAddBtn",label:"添加控制码",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组"},{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"uid",label:"控制码编号",checkable:!0,checkboxKey:"uid_visible"},{key:"alias",label:"控制码别名",checkable:!0,checkboxKey:"alias_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"},{key:"last_modified",label:"更新时间",checkable:!0,checkboxKey:"last_modified_visible"}],Ae=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],qe={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.gridFields.name"},{value:"uid",label:"setting.gridFields.uid"},{value:"alias",label:"setting.gridFields.objectAlias"},{value:"description",label:"setting.gridFields.description"}]},Me={DEFAULT:Oe,OPTIONS:De,DATA:te,PARAMS:ze,SOURCE:Ae,COMMON:qe},Ue=e.defineComponent(Y(J({},Me),{__name:"controlList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},controlUidList:{default:()=>[]}},setup(m){const s=m;class c extends Ne.BaseComponent{getDataBool(t,a){var d,u;const n=(u=(d=this.props.conf)==null?void 0:d.data)==null?void 0:u[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[t]:this.getOptionValue(t,a)}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),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(te));else{const a=this.props.conf.data[0],n={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[u,r]of Object.entries(n))a[u]===void 0&&(a[u]=r);const d={uid_visible:!0,alias_visible:!0,description_visible:!0,created_visible:!0,last_modified_visible:!0};for(const[u,r]of Object.entries(d))a[u]===void 0&&(a[u]=r)}}}const M=new c(s,"controlList");M.setupLifecycle();const w=M.getStyle(),{mixiotPanelClass:R,mixiotPanelRootStyle:$}=Z.useMixiotPanelSurface(w),{tableWrapRef:T,tableBodyHeight:C}=Z.useTableBodyHeight(),O=e.computed(()=>xe.generateTitleStyle(s.conf.options)),le=e.computed(()=>{var a,n,d,u;const o=((n=(a=s.conf)==null?void 0:a.options)==null?void 0:n.columns)||[],t=((u=(d=s.conf)==null?void 0:d.data)==null?void 0:u[0])||{};return(Array.isArray(o)?o:[]).map(r=>{const y=t[r.key],k=t[`${r.key}_visible`];return{prop:r.key,label:y!==void 0&&y!==""?String(y):r.label,width:r.width,minWidth:r.minWidth,visible:k!==void 0?!!k:r.visible!==!1}})}),g=e.reactive({current:1,pageSize:10,total:0}),U=e.ref(""),j=e.ref("name"),W=e.ref([]),K=e.ref(!1);function ie(){const o={page_index:g.current,page_size:g.pageSize},t=[],a=U.value.trim();return a&&t.push([j.value,"like",`%${a}%`]),Se.appendCommonDesignerWhereAnd(s.conf.common,t),t.length&&(o.where_and=JSON.stringify(t)),o}function N(){return _(this,null,function*(){var o,t;K.value=!0;try{const a=yield B.api.post("control_list",ie(),!0),n=(o=a==null?void 0:a.result)!=null?o:a;let d=Array.isArray(n==null?void 0:n.data)?[...n.data]:[];if((t=s.controlUidList)!=null&&t.length){const r=new Set(s.controlUidList.map(String));d=d.filter(y=>r.has(String(y.uid)))}W.value=d;const u=n==null?void 0:n.total_records;g.total=typeof u=="number"?u:d.length,a&&a.code!==void 0&&a.code!==200&&console.warn("[controlList] 列表接口非成功",a.msg||a.info,a)}catch(a){console.error(a),W.value=[],g.total=0}finally{K.value=!1}})}const oe=e.computed(()=>W.value);function ae(o,t){const a=o[t];return a==null?"":String(a)}function Q(){g.current=1,N()}function ne(){U.value="",g.current=1,N()}function re(){g.current=1,N()}function se(){N()}e.watch(()=>{var o;return(o=s.controlUidList)==null?void 0:o.join(",")},()=>{g.current=1,N()});const D=e.ref(!1),z=e.ref(!1),x=e.ref(!1),i=e.reactive({id:0,uid:"",name:"",alias:"",description:"",script:"[]",template:"[]"});function L(){i.id=0,i.uid="",i.name="",i.alias="",i.description="",i.script="[]",i.template="[]"}function F(o,t){const a=(o==null?void 0:o.trim())||"";if(!a)return t;try{return JSON.stringify(JSON.parse(a))}catch(n){return null}}function de(){L(),D.value=!0}function ue(o){return _(this,null,function*(){var t,a,n,d,u,r,y,k,I,V,A,E;L(),z.value=!0,x.value=!0;try{const h=yield B.api.post("control_item",{uid:o.uid},!0),b=(t=h==null?void 0:h.result)!=null?t:h;if(b&&typeof b=="object"){i.id=Number(b.id)||0,i.uid=String((n=(a=b.uid)!=null?a:o.uid)!=null?n:""),i.name=String((d=b.name)!=null?d:""),i.alias=String((u=b.alias)!=null?u:""),i.description=String((r=b.description)!=null?r:"");const S=b.script;i.script=typeof S=="string"?S:S!=null?JSON.stringify(S):"[]";const l=b.template;i.template=typeof l=="string"?l:l!=null?JSON.stringify(l):"[]"}else i.uid=String(o.uid),i.name=String((y=o.name)!=null?y:""),i.alias=String((k=o.alias)!=null?k:""),i.description=String((I=o.description)!=null?I:"")}catch(h){i.uid=String(o.uid),i.name=String((V=o.name)!=null?V:""),i.alias=String((A=o.alias)!=null?A:""),i.description=String((E=o.description)!=null?E:""),p.ElMessage.warning("拉取控制码详情失败,已使用列表行数据编辑")}finally{x.value=!1}})}function ce(){return _(this,null,function*(){var a;if(!((a=i.name)!=null&&a.trim())){p.ElMessage.warning("请填写控制码名称");return}const o=F(i.script,"[]"),t=F(i.template,"[]");if(o===null||t===null){p.ElMessage.error("脚本或模板不是合法 JSON");return}x.value=!0;try{yield B.api.post("control_create",{name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:o,template:t},!0),p.ElMessage.success("添加成功"),D.value=!1,yield N()}catch(n){p.ElMessage.error("添加失败")}finally{x.value=!1}})}function pe(){return _(this,null,function*(){var a;if(!((a=i.name)!=null&&a.trim())){p.ElMessage.warning("请填写控制码名称");return}const o=F(i.script,"[]"),t=F(i.template,"[]");if(o===null||t===null){p.ElMessage.error("脚本或模板不是合法 JSON");return}x.value=!0;try{yield B.api.post("control_update",{id:i.id,uid:i.uid,name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:o,template:t},!0),p.ElMessage.success("保存成功"),z.value=!1,yield N()}catch(n){p.ElMessage.error("保存失败")}finally{x.value=!1}})}const P=e.ref(!1),H=e.ref(!1),v=e.ref(null);function me(o){if(o==null)return"";if(typeof o=="string")try{return JSON.stringify(JSON.parse(o),null,2)}catch(t){return o}try{return JSON.stringify(o,null,2)}catch(t){return String(o)}}const fe=e.computed(()=>v.value?me(v.value.script):"");function ge(o){return _(this,null,function*(){v.value=null,P.value=!0,H.value=!0;try{const t=yield B.api.post("control_item",{uid:o.uid},!0),a=t==null?void 0:t.result;a&&typeof a=="object"?v.value=a:(v.value=J({},o),p.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){v.value=J({},o),p.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{H.value=!1}})}function ve(o){p.ElMessageBox.confirm(`确认对控制码「${o.name||o.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{p.ElMessage.success("已提交备档(完整流程请在 mixui 控制码管理中操作)")}).catch(()=>{})}function Ve(o){p.ElMessageBox.confirm(`确认删除控制码「${o.name||o.uid}」吗?`,"警告",{type:"warning"}).then(()=>_(null,null,function*(){try{yield B.api.post("control_delete",{uid:o.uid,id:o.id},!0),p.ElMessage.success("删除成功"),yield N()}catch(t){p.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{N()}),(o,t)=>{const a=f.ElIcon,n=f.ElInput,d=f.ElOption,u=f.ElSelect,r=f.ElButton,y=f.ElTableColumn,k=f.ElTable,I=f.ElPagination,V=f.ElFormItem,A=f.ElForm,E=f.ElDialog,h=f.ElDescriptionsItem,b=f.ElDescriptions,S=f.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-list mix-component",e.unref(R)]),style:e.normalizeStyle(e.unref($))},[e.unref(w).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(O.value)},e.toDisplayString(m.conf.caption||m.conf.name),5)),e.createElementVNode("div",_e,[e.createElementVNode("div",Be,[e.createVNode(n,{modelValue:U.value,"onUpdate:modelValue":t[0]||(t[0]=l=>U.value=l),placeholder:"搜索控制码",size:"small",class:"toolbar-search",onKeyup:e.withKeys(Q,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(a,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(ke.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(u,{modelValue:j.value,"onUpdate:modelValue":t[1]||(t[1]=l=>j.value=l),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(d,{label:"控制码名称",value:"name"}),e.createVNode(d,{label:"控制码编号",value:"uid"}),e.createVNode(d,{label:"控制码别名",value:"alias"}),e.createVNode(d,{label:"描述",value:"description"})]),_:1},8,["modelValue"]),e.createVNode(r,{type:"primary",onClick:Q},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(r,{onClick:ne},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(w).showAddBtn?(e.openBlock(),e.createBlock(r,{key:0,type:"success",onClick:de},{default:e.withCtx(()=>[...t[21]||(t[21]=[e.createTextVNode("添加控制码",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:T,class:"table-wrapper"},[e.createVNode(k,{data:oe.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(le.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(y,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(q=>[e.createElementVNode("span",null,e.toDisplayString(ae(q.row,l.prop)),1)]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(y,{label:"操作","min-width":"220",fixed:"right"},{default:e.withCtx(l=>[e.unref(w).showViewBtn?(e.openBlock(),e.createBlock(r,{key:0,size:"small",onClick:q=>ge(l.row)},{default:e.withCtx(()=>[...t[22]||(t[22]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showEditBtn?(e.openBlock(),e.createBlock(r,{key:1,size:"small",type:"primary",onClick:q=>ue(l.row)},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showArchiveBtn?(e.openBlock(),e.createBlock(r,{key:2,size:"small",type:"info",onClick:q=>ve(l.row)},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showDeleteBtn?(e.openBlock(),e.createBlock(r,{key:3,size:"small",type:"danger",onClick:q=>Ve(l.row)},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",Ee,[e.createVNode(I,{"current-page":g.current,"onUpdate:currentPage":t[2]||(t[2]=l=>g.current=l),"page-size":g.pageSize,"onUpdate:pageSize":t[3]||(t[3]=l=>g.pageSize=l),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:g.total,onSizeChange:re,onCurrentChange:se},null,8,["current-page","page-size","total"])])]),e.renderSlot(o.$slots,"default",{},void 0,!0)],6)),[[S,K.value]]),e.createVNode(E,{modelValue:D.value,"onUpdate:modelValue":t[9]||(t[9]=l=>D.value=l),title:"添加控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[8]||(t[8]=l=>D.value=!1)},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",loading:x.value,onClick:ce},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(A,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(V,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.name,"onUpdate:modelValue":t[4]||(t[4]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.alias,"onUpdate:modelValue":t[5]||(t[5]=l=>i.alias=l),placeholder:"可选"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.description,"onUpdate:modelValue":t[6]||(t[6]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.script,"onUpdate:modelValue":t[7]||(t[7]=l=>i.script=l),type:"textarea",rows:8,placeholder:"JSON 数组,默认 []"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:z.value,"onUpdate:modelValue":t[16]||(t[16]=l=>z.value=l),title:"编辑控制码",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[15]||(t[15]=l=>z.value=!1)},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",loading:x.value,onClick:pe},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(A,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(V,{label:"控制码编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.uid,"onUpdate:modelValue":t[10]||(t[10]=l=>i.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"控制码名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.name,"onUpdate:modelValue":t[11]||(t[11]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"控制码别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.alias,"onUpdate:modelValue":t[12]||(t[12]=l=>i.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.description,"onUpdate:modelValue":t[13]||(t[13]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"控制码脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.script,"onUpdate:modelValue":t[14]||(t[14]=l=>i.script=l),type:"textarea",rows:8},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(E,{modelValue:P.value,"onUpdate:modelValue":t[18]||(t[18]=l=>P.value=l),title:"控制码详情",width:"720px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(r,{type:"primary",onClick:t[17]||(t[17]=l=>P.value=!1)},{default:e.withCtx(()=>[...t[31]||(t[31]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Te,[v.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(b,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(h,{label:"控制码编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"控制码名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"控制码别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"更新时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(h,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=v.value.description)!=null?l:""),1)]}),_:1})]),_:1}),t[30]||(t[30]=e.createElementVNode("div",{class:"view-block-title"},"控制码脚本",-1)),e.createVNode(n,{"model-value":fe.value,type:"textarea",rows:10,readonly:""},null,8,["model-value"])],64)):e.createCommentVNode("",!0)])),[[S,H.value]])]),_:1},8,["modelValue"])],64)}}})),Le=B._export_sfc(Ue,[["__scopeId","data-v-27ad520d"]]);exports.default=Le;
@@ -0,0 +1 @@
1
+ "use strict";var Z=Object.defineProperty,ee=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var P=(c,i,r)=>i in c?Z(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,j=(c,i)=>{for(var r in i||(i={}))oe.call(i,r)&&P(c,r,i[r]);if(M)for(var r of M(i))ae.call(i,r)&&P(c,r,i[r]);return c},F=(c,i)=>ee(c,te(i));var D=(c,i,r)=>new Promise((k,_)=>{var E=b=>{try{g(r.next(b))}catch(v){_(v)}},B=b=>{try{g(r.throw(b))}catch(v){_(v)}},g=b=>b.done?k(b.value):Promise.resolve(b.value).then(E,B);g((r=r.apply(c,i)).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/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),I=require("./useMixiotPanelSurface-BMNrWBMF.cjs"),le=require("./BaseComponent-CNXUpPY1.cjs"),R=require("./index-D8dh_6Qd.cjs"),ie=require("./titleStyle-NSnz6cUg.cjs"),y=require("element-plus"),ne=require("@element-plus/icons-vue"),re=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),$=require("./ele-lst-icon-CrxnHZ-A.cjs"),se={class:"mix-body"},ce={class:"toolbar"},de={key:1},ue={class:"pagination"},pe={DEFAULT_ICON:$.DEFAULT_ICON,ACTIVE_ICON:$.ACTIVE_ICON,NAME_CN:"控制记录",NAME_EN:"ControlRecordList",ORDER:4},me={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:[{key:"object_id",label:"对象编号",width:140,visible:!0},{key:"created_by",label:"用户名",width:120,visible:!0},{key:"command",label:"控制码指令",width:140,visible:!0},{key:"command_name",label:"指令名称",width:140,visible:!0},{key:"value",label:"控制值",width:120,visible:!0},{key:"status",label:"下发状态",width:100,visible:!0},{key:"created",label:"控制时间",width:180,visible:!0}]},K=[{name:"控制记录",fv:"",object_id:"",unit:"",default:"",isText:!1,showExportBtn:!0,object_id_label:"对象编号",object_id_visible:!0,created_by:"用户名",created_by_visible:!0,command:"控制码指令",command_visible:!0,command_name:"指令名称",command_name_visible:!0,value:"控制值",value_visible:!0,status:"下发状态",status_visible:!0,created:"控制时间",created_visible:!0}],be=[{key:"showExportBtn",label:"导出按钮",type:"checkbox",group:"命令组"},{key:"name",label:"参数名称"},{key:"object_id_label",label:"对象编号",checkable:!0,checkboxKey:"object_id_visible"},{key:"created_by",label:"用户名",checkable:!0,checkboxKey:"created_by_visible"},{key:"command",label:"控制码指令",checkable:!0,checkboxKey:"command_visible"},{key:"command_name",label:"指令名称",checkable:!0,checkboxKey:"command_name_visible"},{key:"value",label:"控制值",checkable:!0,checkboxKey:"value_visible"},{key:"status",label:"下发状态",checkable:!0,checkboxKey:"status_visible"},{key:"created",label:"控制时间",checkable:!0,checkboxKey:"created_visible"}],_e=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ge={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"object_id",label:"setting.gridFields.objectId"},{value:"created_by",label:"setting.gridFields.createdBy"},{value:"command",label:"setting.gridFields.commandCode"},{value:"command_name",label:"setting.gridFields.commandName"}]},ve={DEFAULT:pe,OPTIONS:me,DATA:K,PARAMS:be,SOURCE:_e,COMMON:ge},he=e.defineComponent(F(j({},ve),{__name:"controlRecordList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(c){const i=c;class r extends le.BaseComponent{getDataBool(t,o){var n,p;const l=(p=(n=this.props.conf)==null?void 0:n.data)==null?void 0:p[0];return l&&Object.prototype.hasOwnProperty.call(l,t)&&l[t]!==void 0?!!l[t]:this.getOptionValue(t,o)}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),showExportBtn:this.getDataBool("showExportBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(K));else{const o=this.props.conf.data[0];o.showExportBtn===void 0&&(o.showExportBtn=!0);const l={object_id_visible:!0,created_by_visible:!0,command_visible:!0,command_name_visible:!0,value_visible:!0,status_visible:!0,created_visible:!0};for(const[n,p]of Object.entries(l))o[n]===void 0&&(o[n]=p)}}}const k=new r(i,"controlRecordList");k.setupLifecycle();const _=k.getStyle(),{mixiotPanelClass:E,mixiotPanelRootStyle:B}=I.useMixiotPanelSurface(_),{tableWrapRef:g,tableBodyHeight:b}=I.useTableBodyHeight(),v=e.computed(()=>ie.generateTitleStyle(i.conf.options)),U=e.computed(()=>{var o,l,n,p;const a=((l=(o=i.conf)==null?void 0:o.options)==null?void 0:l.columns)||[],t=((p=(n=i.conf)==null?void 0:n.data)==null?void 0:p[0])||{};return(Array.isArray(a)?a:[]).map(d=>{var V;let S=d.key;d.key==="object_id"&&(S="object_id_label");const f=(V=t[S])!=null?V:t[d.key],O=d.key==="object_id"?"object_id_visible":`${d.key}_visible`,x=t[O];return{prop:d.key,label:f!==void 0&&f!==""?String(f):d.label,width:d.width,minWidth:d.minWidth,visible:x!==void 0?!!x:d.visible!==!1}})}),u=e.reactive({current:1,pageSize:10,total:0}),w=e.ref(""),N=e.ref("object_id"),C=e.ref([]),T=e.ref(!1);function H(){const a={page_index:u.current,page_size:u.pageSize},t=[],o=w.value.trim();return o&&t.push([N.value,"like",`%${o}%`]),re.appendCommonDesignerWhereAnd(i.conf.common,t),t.length&&(a.where_and=JSON.stringify(t)),a}function A(a){const t=a.error;return t===""||t===null||t===void 0}function h(){return D(this,null,function*(){var a;T.value=!0;try{const t=yield R.api.post("get_control_record_list",H(),!0),o=(a=t==null?void 0:t.result)!=null?a:t,l=Array.isArray(o==null?void 0:o.data)?o.data:[];C.value=l.map(p=>j({},p));const n=o==null?void 0:o.total_records;u.total=typeof n=="number"?n:l.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[controlRecordList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),C.value=[],u.total=0}finally{T.value=!1}})}const W=e.computed(()=>C.value);function J(a,t){const o=a[t];return o==null?"":String(o)}function L(){u.current=1,h()}function Q(){w.value="",u.current=1,h()}function Y(){u.current=1,h()}function G(){h()}function z(a){const t=o=>String(o).padStart(2,"0");return`${a.getFullYear()}-${t(a.getMonth()+1)}-${t(a.getDate())} ${t(a.getHours())}:${t(a.getMinutes())}:${t(a.getSeconds())}`}function X(){return D(this,null,function*(){const a=[...new Set(C.value.map(l=>{var n;return String((n=l.object_id)!=null?n:"").trim()}).filter(Boolean))];if(!a.length){y.ElMessage.warning("当前列表无对象编号,请加载记录后再导出");return}const t=new Date,o=new Date(t.getTime()-168*3600*1e3);try{yield y.ElMessageBox.confirm(`将按最近 7 天、当前已加载列表中的 ${a.length} 个对象编号发起导出任务,是否继续?`,"导出控制记录",{type:"info"})}catch(l){return}try{const l=yield R.api.post("export_control_record",{file_name:`control_record_${z(t).replace(/[: ]/g,"_")}`,start_time:z(o),end_time:z(t),object_ids:a},!0);if(l.code!==void 0&&l.code!==200){y.ElMessage.warning(l.msg||l.info||"导出请求未成功");return}y.ElMessage.success("导出任务已提交")}catch(l){y.ElMessage.error("导出请求失败")}})}return e.onMounted(()=>{h()}),(a,t)=>{const o=m.ElIcon,l=m.ElInput,n=m.ElOption,p=m.ElSelect,d=m.ElButton,S=m.ElTag,f=m.ElTableColumn,O=m.ElTable,x=m.ElPagination,V=m.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["control-record-list mix-component",e.unref(E)]),style:e.normalizeStyle(e.unref(B))},[e.unref(_).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(v.value)},e.toDisplayString(c.conf.caption||c.conf.name),5)),e.createElementVNode("div",se,[e.createElementVNode("div",ce,[e.createVNode(l,{modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=s=>w.value=s),placeholder:"搜索控制记录",size:"small",class:"toolbar-search",onKeyup:e.withKeys(L,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(ne.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(p,{modelValue:N.value,"onUpdate:modelValue":t[1]||(t[1]=s=>N.value=s),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(n,{label:"对象编号",value:"object_id"}),e.createVNode(n,{label:"用户名",value:"created_by"}),e.createVNode(n,{label:"控制码指令",value:"command"}),e.createVNode(n,{label:"指令名称",value:"command_name"})]),_:1},8,["modelValue"]),e.createVNode(d,{type:"primary",onClick:L},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(d,{onClick:Q},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(_).showExportBtn?(e.openBlock(),e.createBlock(d,{key:0,type:"success",onClick:X},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("导出",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:g,class:"table-wrapper"},[e.createVNode(O,{data:W.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(b)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,s=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s.prop},[s.visible?(e.openBlock(),e.createBlock(f,{key:0,prop:s.prop,label:s.label,width:s.width,"min-width":s.minWidth},{default:e.withCtx(q=>[s.prop==="status"?(e.openBlock(),e.createBlock(S,{key:0,type:A(q.row)?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A(q.row)?"成功":"失败"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",de,e.toDisplayString(J(q.row,s.prop)),1))]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128))]),_:1},8,["data","height"])],512),e.createElementVNode("div",ue,[e.createVNode(x,{"current-page":u.current,"onUpdate:currentPage":t[2]||(t[2]=s=>u.current=s),"page-size":u.pageSize,"onUpdate:pageSize":t[3]||(t[3]=s=>u.pageSize=s),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:u.total,onSizeChange:Y,onCurrentChange:G},null,8,["current-page","page-size","total"])])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],6)),[[V,T.value]])}}})),fe=R._export_sfc(he,[["__scopeId","data-v-d8b42ab6"]]);exports.default=fe;
@@ -1,32 +1,32 @@
1
- var ce = Object.defineProperty, ue = Object.defineProperties;
2
- var de = Object.getOwnPropertyDescriptors;
1
+ var ce = Object.defineProperty, de = Object.defineProperties;
2
+ var ue = Object.getOwnPropertyDescriptors;
3
3
  var q = Object.getOwnPropertySymbols;
4
4
  var pe = Object.prototype.hasOwnProperty, me = Object.prototype.propertyIsEnumerable;
5
- var Q = (s, i, n) => i in s ? ce(s, i, { enumerable: !0, configurable: !0, writable: !0, value: n }) : s[i] = n, M = (s, i) => {
5
+ var Q = (s, i, n) => i in s ? ce(s, i, { enumerable: !0, configurable: !0, writable: !0, value: n }) : s[i] = n, K = (s, i) => {
6
6
  for (var n in i || (i = {}))
7
7
  pe.call(i, n) && Q(s, n, i[n]);
8
8
  if (q)
9
9
  for (var n of q(i))
10
10
  me.call(i, n) && Q(s, n, i[n]);
11
11
  return s;
12
- }, Y = (s, i) => ue(s, de(i));
13
- var $ = (s, i, n) => new Promise((x, v) => {
12
+ }, Y = (s, i) => de(s, ue(i));
13
+ var M = (s, i, n) => new Promise((S, v) => {
14
14
  var R = (m) => {
15
15
  try {
16
- h(n.next(m));
17
- } catch (y) {
18
- v(y);
16
+ f(n.next(m));
17
+ } catch (h) {
18
+ v(h);
19
19
  }
20
20
  }, D = (m) => {
21
21
  try {
22
- h(n.throw(m));
23
- } catch (y) {
24
- v(y);
22
+ f(n.throw(m));
23
+ } catch (h) {
24
+ v(h);
25
25
  }
26
- }, h = (m) => m.done ? x(m.value) : Promise.resolve(m.value).then(R, D);
27
- h((n = n.apply(s, i)).next());
26
+ }, f = (m) => m.done ? S(m.value) : Promise.resolve(m.value).then(R, D);
27
+ f((n = n.apply(s, i)).next());
28
28
  });
29
- import { ElInput as be, ElIcon as _e, ElSelect as ve, ElOption as fe, ElButton as ge, ElTable as he, ElTableColumn as ye, ElTag as ke, ElPagination as we, ElLoadingDirective as Se } from "element-plus/es";
29
+ import { ElInput as be, ElIcon as _e, ElSelect as ve, ElOption as ge, ElButton as fe, ElTable as he, ElTableColumn as ye, ElTag as ke, ElPagination as we, ElLoadingDirective as Se } from "element-plus/es";
30
30
  import "element-plus/es/components/base/style/css";
31
31
  import "element-plus/es/components/loading/style/css";
32
32
  import "element-plus/es/components/pagination/style/css";
@@ -38,21 +38,22 @@ import "element-plus/es/components/select/style/css";
38
38
  import "element-plus/es/components/option/style/css";
39
39
  import "element-plus/es/components/input/style/css";
40
40
  import "element-plus/es/components/icon/style/css";
41
- import { defineComponent as xe, computed as H, reactive as Ce, ref as T, onMounted as Ee, withDirectives as ze, openBlock as _, createElementBlock as S, normalizeStyle as G, unref as f, normalizeClass as Be, toDisplayString as I, createCommentVNode as U, createElementVNode as V, createVNode as d, withKeys as Oe, withCtx as b, createTextVNode as j, createBlock as F, Fragment as X, renderList as Te, renderSlot as Ve } from "vue";
41
+ import { defineComponent as Ce, computed as $, reactive as xe, ref as O, onMounted as Ee, withDirectives as ze, openBlock as _, createElementBlock as w, normalizeStyle as G, unref as g, normalizeClass as Be, toDisplayString as I, createCommentVNode as H, createElementVNode as T, createVNode as u, withKeys as Oe, withCtx as b, createTextVNode as V, createBlock as U, Fragment as X, renderList as Te, renderSlot as Ve } from "vue";
42
42
  import { u as je, a as Re } from "./useMixiotPanelSurface-DlVkLttU.js";
43
- import { B as De } from "./BaseComponent-DQe7HYdV.js";
44
- import { a as Z, _ as Ne } from "./index-BSsB7QzO.js";
45
- import { g as Ae } from "./titleStyle-BT5GlpAb.js";
46
- import { ElMessage as g, ElMessageBox as Le } from "element-plus";
43
+ import { B as De } from "./BaseComponent-D5tlYehc.js";
44
+ import { a as Z, _ as Ae } from "./index-Bdq33405.js";
45
+ import { g as Ne } from "./titleStyle-BT5GlpAb.js";
46
+ import { ElMessage as j, ElMessageBox as Le } from "element-plus";
47
47
  import { Search as Pe } from "@element-plus/icons-vue";
48
+ import { a as Fe } from "./appendCommonDesignerWhereAnd-DwefWNOa.js";
48
49
  import { A as Ke, D as Me } from "./ele-lst-icon-CKpeRKmk.js";
49
- const $e = { class: "mix-body" }, He = { class: "toolbar" }, Ie = { key: 1 }, Ue = { class: "pagination" }, Fe = {
50
+ const $e = { class: "mix-body" }, Ie = { class: "toolbar" }, He = { key: 1 }, Ue = { class: "pagination" }, We = {
50
51
  DEFAULT_ICON: Me,
51
52
  ACTIVE_ICON: Ke,
52
53
  NAME_CN: "控制记录",
53
54
  NAME_EN: "ControlRecordList",
54
55
  ORDER: 4
55
- }, We = {
56
+ }, Je = {
56
57
  panelBgTone: {
57
58
  value: "light",
58
59
  type: "select",
@@ -104,7 +105,7 @@ const $e = { class: "mix-body" }, He = { class: "toolbar" }, Ie = { key: 1 }, Ue
104
105
  created: "控制时间",
105
106
  created_visible: !0
106
107
  }
107
- ], Je = [
108
+ ], qe = [
108
109
  { key: "showExportBtn", label: "导出按钮", type: "checkbox", group: "命令组" },
109
110
  { key: "name", label: "参数名称" },
110
111
  { key: "object_id_label", label: "对象编号", checkable: !0, checkboxKey: "object_id_visible" },
@@ -114,7 +115,16 @@ const $e = { class: "mix-body" }, He = { class: "toolbar" }, Ie = { key: 1 }, Ue
114
115
  { key: "value", label: "控制值", checkable: !0, checkboxKey: "value_visible" },
115
116
  { key: "status", label: "下发状态", checkable: !0, checkboxKey: "status_visible" },
116
117
  { key: "created", label: "控制时间", checkable: !0, checkboxKey: "created_visible" }
117
- ], qe = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], Qe = {}, Ye = { DEFAULT: Fe, OPTIONS: We, DATA: ee, PARAMS: Je, SOURCE: qe, COMMON: Qe }, Ge = /* @__PURE__ */ xe(Y(M({}, Ye), {
118
+ ], Qe = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], Ye = {
119
+ isAddCondition: !1,
120
+ conditions: [],
121
+ conditionFilterFields: [
122
+ { value: "object_id", label: "setting.gridFields.objectId" },
123
+ { value: "created_by", label: "setting.gridFields.createdBy" },
124
+ { value: "command", label: "setting.gridFields.commandCode" },
125
+ { value: "command_name", label: "setting.gridFields.commandName" }
126
+ ]
127
+ }, Ge = { DEFAULT: We, OPTIONS: Je, DATA: ee, PARAMS: qe, SOURCE: Qe, COMMON: Ye }, Xe = /* @__PURE__ */ Ce(Y(K({}, Ge), {
118
128
  __name: "controlRecordList",
119
129
  props: {
120
130
  conf: { default: () => ({ data: [] }) },
@@ -167,89 +177,85 @@ const $e = { class: "mix-body" }, He = { class: "toolbar" }, Ie = { key: 1 }, Ue
167
177
  }
168
178
  }
169
179
  }
170
- const x = new n(i, "controlRecordList");
171
- x.setupLifecycle();
172
- const v = x.getStyle(), { mixiotPanelClass: R, mixiotPanelRootStyle: D } = je(v), { tableWrapRef: h, tableBodyHeight: m } = Re(), y = H(() => Ae(i.conf.options)), te = H(() => {
180
+ const S = new n(i, "controlRecordList");
181
+ S.setupLifecycle();
182
+ const v = S.getStyle(), { mixiotPanelClass: R, mixiotPanelRootStyle: D } = je(v), { tableWrapRef: f, tableBodyHeight: m } = Re(), h = $(() => Ne(i.conf.options)), te = $(() => {
173
183
  var t, a, l, p;
174
184
  const o = ((a = (t = i.conf) == null ? void 0 : t.options) == null ? void 0 : a.columns) || [], e = ((p = (l = i.conf) == null ? void 0 : l.data) == null ? void 0 : p[0]) || {};
175
185
  return (Array.isArray(o) ? o : []).map((c) => {
176
- var O;
177
- let z = c.key;
178
- c.key === "object_id" && (z = "object_id_label");
179
- const w = (O = e[z]) != null ? O : e[c.key], P = c.key === "object_id" ? "object_id_visible" : `${c.key}_visible`, B = e[P];
186
+ var B;
187
+ let E = c.key;
188
+ c.key === "object_id" && (E = "object_id_label");
189
+ const k = (B = e[E]) != null ? B : e[c.key], P = c.key === "object_id" ? "object_id_visible" : `${c.key}_visible`, z = e[P];
180
190
  return {
181
191
  prop: c.key,
182
- label: w !== void 0 && w !== "" ? String(w) : c.label,
192
+ label: k !== void 0 && k !== "" ? String(k) : c.label,
183
193
  width: c.width,
184
194
  minWidth: c.minWidth,
185
- visible: B !== void 0 ? !!B : c.visible !== !1
195
+ visible: z !== void 0 ? !!z : c.visible !== !1
186
196
  };
187
197
  });
188
- }), u = Ce({ current: 1, pageSize: 10, total: 0 }), C = T(""), N = T("object_id"), E = T([]), A = T(!1);
198
+ }), d = xe({ current: 1, pageSize: 10, total: 0 }), C = O(""), A = O("object_id"), x = O([]), N = O(!1);
189
199
  function oe() {
190
200
  const o = {
191
- page_index: u.current,
192
- page_size: u.pageSize
193
- }, e = C.value.trim();
194
- if (e) {
195
- const t = [[N.value, "like", `%${e}%`]];
196
- o.where_and = JSON.stringify(t);
197
- }
198
- return o;
201
+ page_index: d.current,
202
+ page_size: d.pageSize
203
+ }, e = [], t = C.value.trim();
204
+ return t && e.push([A.value, "like", `%${t}%`]), Fe(i.conf.common, e), e.length && (o.where_and = JSON.stringify(e)), o;
199
205
  }
200
206
  function W(o) {
201
207
  const e = o.error;
202
208
  return e === "" || e === null || e === void 0;
203
209
  }
204
- function k() {
205
- return $(this, null, function* () {
210
+ function y() {
211
+ return M(this, null, function* () {
206
212
  var o;
207
- A.value = !0;
213
+ N.value = !0;
208
214
  try {
209
215
  const e = yield Z.post(
210
216
  "get_control_record_list",
211
217
  oe(),
212
218
  !0
213
219
  ), t = (o = e == null ? void 0 : e.result) != null ? o : e, a = Array.isArray(t == null ? void 0 : t.data) ? t.data : [];
214
- E.value = a.map((p) => M({}, p));
220
+ x.value = a.map((p) => K({}, p));
215
221
  const l = t == null ? void 0 : t.total_records;
216
- u.total = typeof l == "number" ? l : a.length, e && e.code !== void 0 && e.code !== 200 && g.warning(e.msg || e.info || "列表接口返回非成功状态");
222
+ d.total = typeof l == "number" ? l : a.length, e && e.code !== void 0 && e.code !== 200 && console.warn("[controlRecordList] 列表接口非成功", e.msg || e.info, e);
217
223
  } catch (e) {
218
- console.error(e), E.value = [], u.total = 0, g.error("加载控制记录失败");
224
+ console.error(e), x.value = [], d.total = 0;
219
225
  } finally {
220
- A.value = !1;
226
+ N.value = !1;
221
227
  }
222
228
  });
223
229
  }
224
- const ae = H(() => E.value);
230
+ const ae = $(() => x.value);
225
231
  function ie(o, e) {
226
232
  const t = o[e];
227
233
  return t == null ? "" : String(t);
228
234
  }
229
235
  function J() {
230
- u.current = 1, k();
236
+ d.current = 1, y();
231
237
  }
232
238
  function le() {
233
- C.value = "", u.current = 1, k();
239
+ C.value = "", d.current = 1, y();
234
240
  }
235
241
  function ne() {
236
- u.current = 1, k();
242
+ d.current = 1, y();
237
243
  }
238
244
  function re() {
239
- k();
245
+ y();
240
246
  }
241
247
  function L(o) {
242
248
  const e = (t) => String(t).padStart(2, "0");
243
249
  return `${o.getFullYear()}-${e(o.getMonth() + 1)}-${e(o.getDate())} ${e(o.getHours())}:${e(o.getMinutes())}:${e(o.getSeconds())}`;
244
250
  }
245
251
  function se() {
246
- return $(this, null, function* () {
247
- const o = [...new Set(E.value.map((a) => {
252
+ return M(this, null, function* () {
253
+ const o = [...new Set(x.value.map((a) => {
248
254
  var l;
249
255
  return String((l = a.object_id) != null ? l : "").trim();
250
256
  }).filter(Boolean))];
251
257
  if (!o.length) {
252
- g.warning("当前列表无对象编号,请加载记录后再导出");
258
+ j.warning("当前列表无对象编号,请加载记录后再导出");
253
259
  return;
254
260
  }
255
261
  const e = /* @__PURE__ */ new Date(), t = new Date(e.getTime() - 168 * 3600 * 1e3);
@@ -274,31 +280,31 @@ const $e = { class: "mix-body" }, He = { class: "toolbar" }, Ie = { key: 1 }, Ue
274
280
  !0
275
281
  );
276
282
  if (a.code !== void 0 && a.code !== 200) {
277
- g.warning(a.msg || a.info || "导出请求未成功");
283
+ j.warning(a.msg || a.info || "导出请求未成功");
278
284
  return;
279
285
  }
280
- g.success("导出任务已提交");
286
+ j.success("导出任务已提交");
281
287
  } catch (a) {
282
- g.error("导出请求失败");
288
+ j.error("导出请求失败");
283
289
  }
284
290
  });
285
291
  }
286
292
  return Ee(() => {
287
- k();
293
+ y();
288
294
  }), (o, e) => {
289
- const t = _e, a = be, l = fe, p = ve, c = ge, z = ke, w = ye, P = he, B = we, O = Se;
290
- return ze((_(), S("div", {
291
- class: Be(["control-record-list mix-component", f(R)]),
292
- style: G(f(D))
295
+ const t = _e, a = be, l = ge, p = ve, c = fe, E = ke, k = ye, P = he, z = we, B = Se;
296
+ return ze((_(), w("div", {
297
+ class: Be(["control-record-list mix-component", g(R)]),
298
+ style: G(g(D))
293
299
  }, [
294
- f(v).isHideTitle ? U("", !0) : (_(), S("div", {
300
+ g(v).isHideTitle ? H("", !0) : (_(), w("div", {
295
301
  key: 0,
296
302
  class: "mix-title",
297
- style: G(y.value)
303
+ style: G(h.value)
298
304
  }, I(s.conf.caption || s.conf.name), 5)),
299
- V("div", $e, [
300
- V("div", He, [
301
- d(a, {
305
+ T("div", $e, [
306
+ T("div", Ie, [
307
+ u(a, {
302
308
  modelValue: C.value,
303
309
  "onUpdate:modelValue": e[0] || (e[0] = (r) => C.value = r),
304
310
  placeholder: "搜索控制记录",
@@ -307,118 +313,118 @@ const $e = { class: "mix-body" }, He = { class: "toolbar" }, Ie = { key: 1 }, Ue
307
313
  onKeyup: Oe(J, ["enter"])
308
314
  }, {
309
315
  prefix: b(() => [
310
- d(t, { class: "toolbar-search-icon" }, {
316
+ u(t, { class: "toolbar-search-icon" }, {
311
317
  default: b(() => [
312
- d(f(Pe))
318
+ u(g(Pe))
313
319
  ]),
314
320
  _: 1
315
321
  })
316
322
  ]),
317
323
  _: 1
318
324
  }, 8, ["modelValue"]),
319
- d(p, {
320
- modelValue: N.value,
321
- "onUpdate:modelValue": e[1] || (e[1] = (r) => N.value = r),
325
+ u(p, {
326
+ modelValue: A.value,
327
+ "onUpdate:modelValue": e[1] || (e[1] = (r) => A.value = r),
322
328
  size: "small",
323
329
  class: "toolbar-field-select"
324
330
  }, {
325
331
  default: b(() => [
326
- d(l, {
332
+ u(l, {
327
333
  label: "对象编号",
328
334
  value: "object_id"
329
335
  }),
330
- d(l, {
336
+ u(l, {
331
337
  label: "用户名",
332
338
  value: "created_by"
333
339
  }),
334
- d(l, {
340
+ u(l, {
335
341
  label: "控制码指令",
336
342
  value: "command"
337
343
  }),
338
- d(l, {
344
+ u(l, {
339
345
  label: "指令名称",
340
346
  value: "command_name"
341
347
  })
342
348
  ]),
343
349
  _: 1
344
350
  }, 8, ["modelValue"]),
345
- d(c, {
351
+ u(c, {
346
352
  type: "primary",
347
353
  onClick: J
348
354
  }, {
349
355
  default: b(() => [...e[4] || (e[4] = [
350
- j("搜索", -1)
356
+ V("搜索", -1)
351
357
  ])]),
352
358
  _: 1
353
359
  }),
354
- d(c, { onClick: le }, {
360
+ u(c, { onClick: le }, {
355
361
  default: b(() => [...e[5] || (e[5] = [
356
- j("重置", -1)
362
+ V("重置", -1)
357
363
  ])]),
358
364
  _: 1
359
365
  }),
360
- f(v).showExportBtn ? (_(), F(c, {
366
+ g(v).showExportBtn ? (_(), U(c, {
361
367
  key: 0,
362
368
  type: "success",
363
369
  onClick: se
364
370
  }, {
365
371
  default: b(() => [...e[6] || (e[6] = [
366
- j("导出", -1)
372
+ V("导出", -1)
367
373
  ])]),
368
374
  _: 1
369
- })) : U("", !0)
375
+ })) : H("", !0)
370
376
  ]),
371
- V("div", {
377
+ T("div", {
372
378
  ref_key: "tableWrapRef",
373
- ref: h,
379
+ ref: f,
374
380
  class: "table-wrapper"
375
381
  }, [
376
- d(P, {
382
+ u(P, {
377
383
  data: ae.value,
378
384
  border: "",
379
385
  class: "yunuis-aprus-table",
380
386
  style: { width: "100%" },
381
- height: f(m)
387
+ height: g(m)
382
388
  }, {
383
389
  default: b(() => [
384
- (_(!0), S(X, null, Te(te.value, (r) => (_(), S(X, {
390
+ (_(!0), w(X, null, Te(te.value, (r) => (_(), w(X, {
385
391
  key: r.prop
386
392
  }, [
387
- r.visible ? (_(), F(w, {
393
+ r.visible ? (_(), U(k, {
388
394
  key: 0,
389
395
  prop: r.prop,
390
396
  label: r.label,
391
397
  width: r.width,
392
398
  "min-width": r.minWidth
393
399
  }, {
394
- default: b((K) => [
395
- r.prop === "status" ? (_(), F(z, {
400
+ default: b((F) => [
401
+ r.prop === "status" ? (_(), U(E, {
396
402
  key: 0,
397
- type: W(K.row) ? "success" : "danger",
403
+ type: W(F.row) ? "success" : "danger",
398
404
  size: "small"
399
405
  }, {
400
406
  default: b(() => [
401
- j(I(W(K.row) ? "成功" : "失败"), 1)
407
+ V(I(W(F.row) ? "成功" : "失败"), 1)
402
408
  ]),
403
409
  _: 2
404
- }, 1032, ["type"])) : (_(), S("span", Ie, I(ie(K.row, r.prop)), 1))
410
+ }, 1032, ["type"])) : (_(), w("span", He, I(ie(F.row, r.prop)), 1))
405
411
  ]),
406
412
  _: 2
407
- }, 1032, ["prop", "label", "width", "min-width"])) : U("", !0)
413
+ }, 1032, ["prop", "label", "width", "min-width"])) : H("", !0)
408
414
  ], 64))), 128))
409
415
  ]),
410
416
  _: 1
411
417
  }, 8, ["data", "height"])
412
418
  ], 512),
413
- V("div", Ue, [
414
- d(B, {
415
- "current-page": u.current,
416
- "onUpdate:currentPage": e[2] || (e[2] = (r) => u.current = r),
417
- "page-size": u.pageSize,
418
- "onUpdate:pageSize": e[3] || (e[3] = (r) => u.pageSize = r),
419
+ T("div", Ue, [
420
+ u(z, {
421
+ "current-page": d.current,
422
+ "onUpdate:currentPage": e[2] || (e[2] = (r) => d.current = r),
423
+ "page-size": d.pageSize,
424
+ "onUpdate:pageSize": e[3] || (e[3] = (r) => d.pageSize = r),
419
425
  "page-sizes": [10, 20, 50, 100],
420
426
  layout: "total, sizes, prev, pager, next, jumper",
421
- total: u.total,
427
+ total: d.total,
422
428
  onSizeChange: ne,
423
429
  onCurrentChange: re
424
430
  }, null, 8, ["current-page", "page-size", "total"])
@@ -426,11 +432,11 @@ const $e = { class: "mix-body" }, He = { class: "toolbar" }, Ie = { key: 1 }, Ue
426
432
  ]),
427
433
  Ve(o.$slots, "default", {}, void 0, !0)
428
434
  ], 6)), [
429
- [O, A.value]
435
+ [B, N.value]
430
436
  ]);
431
437
  };
432
438
  }
433
- })), ht = /* @__PURE__ */ Ne(Ge, [["__scopeId", "data-v-1520641e"]]);
439
+ })), kt = /* @__PURE__ */ Ae(Xe, [["__scopeId", "data-v-d8b42ab6"]]);
434
440
  export {
435
- ht as default
441
+ kt as default
436
442
  };
@@ -1 +1 @@
1
- "use strict";var L=Object.defineProperty,D=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var _=(p,i,a)=>i in p?L(p,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):p[i]=a,b=(p,i)=>{for(var a in i||(i={}))j.call(i,a)&&_(p,a,i[a]);if(V)for(var a of V(i))R.call(i,a)&&_(p,a,i[a]);return p},I=(p,i)=>D(p,H(i));var O=(p,i,a)=>new Promise((S,m)=>{var c=u=>{try{f(a.next(u))}catch(y){m(y)}},C=u=>{try{f(a.throw(u))}catch(y){m(y)}},f=u=>u.done?S(u.value):Promise.resolve(u.value).then(c,C);f((a=a.apply(p,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),$=require("./BaseComponent-Cco_5i96.cjs"),N=require("./index-Do1YWdUS.cjs"),W=require("./titleStyle-NSnz6cUg.cjs"),B=require("./ele-crd-icon-BvNgAPKW.cjs"),M={class:"card-item-inner"},U={class:"value-main"},q={key:0,class:"value-unit"},G="--",J={DEFAULT_ICON:B.DEFAULT_ICON,ACTIVE_ICON:B.ACTIVE_ICON,NAME_CN:"基础卡片",NAME_EN:"Card",ORDER:1},K={titleColor:"#111",titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,labelColor:"#111",textColor:"#111",bgColor:"#fff",valueSize:28,nameSize:14,radiusSize:8,isHideTitle:!0,showTopGradient:!1,topGradientStart:{value:"#f5a623",type:"color",label:"component.options.topGradientStart",dependent:"showTopGradient"},topGradientHeight:{value:2,type:"number",min:1,max:16,label:"component.options.topGradientHeight",dependent:"showTopGradient"},topGradientPosition:{value:"cardItem",type:"select",label:"component.options.topGradientPosition",dependent:"showTopGradient",options:[{label:"component.options.topGradientPosition_cardItem",value:"cardItem"},{label:"component.options.topGradientPosition_aboveTitle",value:"aboveTitle"}]},showBgIcon:!1,defaultBgIcon:{value:"",type:"text",label:"component.options.defaultBgIcon",dependent:"showBgIcon"},bgIconOpacity:{value:.06,type:"number",min:0,max:1,step:.01,label:"component.options.bgIconOpacity",dependent:"showBgIcon"},bgIconSize:{value:40,type:"number",min:8,max:120,label:"component.options.bgIconSize",dependent:"showBgIcon"},bgIconPosition:{value:"right",type:"select",label:"component.options.bgIconPosition",dependent:"showBgIcon",options:[{label:"component.options.bgIconPosition_right",value:"right"},{label:"component.options.bgIconPosition_left",value:"left"}]},paramsLayout:{value:"horizontal",type:"select",label:"component.options.paramsLayout",options:[{label:"component.options.paramsLayout_horizontal",value:"horizontal"},{label:"component.options.paramsLayout_vertical",value:"vertical"}]}},Q=[{name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1,valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"}],X=["name","fv","object_id","unit","default","isText",{key:"valueFontSize",type:"number",label:"component.options.crdValueFontSize",group:"component.options.crdGroupCellStyle",groupCollapsedByDefault:!0,min:0,max:120},{key:"nameFontSize",type:"number",label:"component.options.crdNameFontSize",group:"component.options.crdGroupCellStyle",min:0,max:120},{key:"valueTextColor",type:"color",label:"component.options.crdValueTextColor",group:"component.options.crdGroupCellStyle"},{key:"valueAlign",type:"select",label:"component.options.crdValueAlign",group:"component.options.crdGroupCellStyle",options:[{label:"component.options.crdValueAlign_left",value:"left"},{label:"component.options.crdValueAlign_center",value:"center"},{label:"component.options.crdValueAlign_right",value:"right"}]},{key:"nameTextColor",type:"color",label:"component.options.crdNameTextColor",group:"component.options.crdGroupCellStyle"},{key:"areaWeight",type:"number",label:"component.options.crdAreaWeight",group:"component.options.crdGroupCellStyle",min:1,max:32},{key:"cellPadding",type:"number",label:"component.options.crdCellPadding",group:"component.options.crdGroupCellStyle",min:0,max:64}],Y=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],Z={useAlias:!1,multiObject:!1,source:"mosaic",object_id:"",object_alias:""},ee={DEFAULT:J,OPTIONS:K,DATA:Q,PARAMS:X,SOURCE:Y,COMMON:Z},te=t.defineComponent(I(b({},ee),{__name:"crd",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const i={valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"},a=p;class S extends $.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),labelColor:this.getOptionValue("labelColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",14),valueSize:this.getOptionValue("valueSize",28),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0),showTopGradient:this.getOptionValue("showTopGradient",!1),topGradientStart:this.getOptionValue("topGradientStart","#f5a623"),topGradientHeight:this.getOptionValue("topGradientHeight",2),topGradientPosition:this.getOptionValue("topGradientPosition","cardItem"),showBgIcon:this.getOptionValue("showBgIcon",!1),defaultBgIcon:this.getOptionValue("defaultBgIcon",""),bgIconOpacity:this.getOptionValue("bgIconOpacity",.06),bgIconSize:this.getOptionValue("bgIconSize",40),bgIconPosition:this.getOptionValue("bgIconPosition","right"),paramsLayout:this.getOptionValue("paramsLayout","horizontal")}}init(){return O(this,null,function*(){var o;this.Style.value=this.extractStyles(),this.applyTheme();const n={name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1};if(!((o=this.props.conf.data)!=null&&o.length))this.props.conf.data=[b(b({},n),i)];else for(const l of this.props.conf.data)if(!(!l||typeof l!="object"))for(const[r,s]of Object.entries(i))l[r]===void 0&&(l[r]=s)})}setHistoryData(n){if(!n)return;const{data:o}=this.props.conf;!Array.isArray(o)||!o.length||o.forEach((l,r)=>{var s,g;try{const d=(g=(s=n==null?void 0:n.history)==null?void 0:s[r])==null?void 0:g[0];if(!d)return;const z=l==null?void 0:l.fv;if(!z)return;const v=d==null?void 0:d[z];v!=null&&(l.value=v)}catch(d){}})}}const m=new S(a,"crd");m.setupLifecycle();const c=m.getStyle(),C=t.computed(()=>W.generateTitleStyle(a.conf.options)),f=t.computed(()=>{const e=C.value||{},n=parseFloat(String(e.fontSize||"14"))||14,o=String(e.padding||"").split(" ").filter(Boolean),l=o.length>0&&parseFloat(o[0])||0,r=Math.ceil(n*1.5),s=Math.max(0,r+l*2);return I(b({},e),{minHeight:`${s}px`})}),u=t.computed(()=>{const e=c.value,n=Number(e.topGradientHeight)||2,o=e.topGradientStart||"#f5a623";return{height:`${n}px`,background:`linear-gradient(90deg, ${o}, transparent)`}}),y=t.computed(()=>{const e=c.value;return!!e.showTopGradient&&e.topGradientPosition==="aboveTitle"}),k=t.computed(()=>{const e=c.value;return!!e.showTopGradient&&e.topGradientPosition!=="aboveTitle"}),A=t.computed(()=>c.value.paramsLayout==="vertical"),E=t.computed(()=>{var o;const e=c.value,n=e.bgIconPosition==="right";return{opacity:(o=e.bgIconOpacity)!=null?o:.06,fontSize:`${Number(e.bgIconSize)||40}px`,display:"flex",alignItems:"center",justifyContent:n?"flex-end":"flex-start",paddingRight:n?"12px":void 0,paddingLeft:n?void 0:"12px"}});function P(e){const n=Number(e==null?void 0:e.areaWeight),o=Number.isFinite(n)&&n>0?n:1,l=Number(e==null?void 0:e.cellPadding),r={flex:`${o} 1 0`,minWidth:"0",minHeight:"0"};return Number.isFinite(l)&&l>0&&(r.padding=`${l}px`),r}function w(e){const n=c.value,o=Number(e==null?void 0:e.valueFontSize),l=Number.isFinite(o)&&o>0?o:n.valueSize,r=typeof(e==null?void 0:e.valueTextColor)=="string"?e.valueTextColor.trim():"",s=e==null?void 0:e.valueAlign,g=s==="left"||s==="right"||s==="center"?s:"center",d=g==="left"?"flex-start":g==="right"?"flex-end":"center";return{color:r||n.textColor,fontSize:`${l}px`,width:"100%",justifyContent:d,textAlign:g}}function F(e){const n=c.value,o=Number(e==null?void 0:e.nameFontSize),l=Number.isFinite(o)&&o>0?o:n.nameSize;return{color:(typeof(e==null?void 0:e.nameTextColor)=="string"?e.nameTextColor.trim():"")||n.labelColor,fontSize:`${l}px`}}function T(){const e=c.value.defaultBgIcon,n=typeof e=="string"?e.trim():"";return n?N.decodeIconFromStorage(n):""}const h=e=>{var r,s,g,d;if(!e)return{value:G,name:"--",unit:""};const n=(r=e.name)!=null?r:"",o=typeof e.unit=="string"?e.unit.trim():"";return e.isText?{value:(((s=e.flag)==null?void 0:s.find(v=>String(v.code)==String(e.value)))||{}).text||G,name:n,unit:o}:{value:(d=(g=e.value)!=null?g:e.default)!=null?d:0,name:n,unit:o}},x=a.conf;return(e,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(c).bgColor,borderRadius:t.unref(c).radiusSize+"px"})},[y.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mix-component-top-gradient",style:t.normalizeStyle(u.value)},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(f.value)},t.toDisplayString(t.unref(x).caption||t.unref(x).name),5),t.createElementVNode("div",{class:t.normalizeClass(["mix-body",{"mix-body--params-vertical":A.value}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(x).data,(o,l)=>(t.openBlock(),t.createElementBlock("div",{key:l,class:"card-item",style:t.normalizeStyle(P(o))},[t.createElementVNode("div",{class:"card-item-surface",style:t.normalizeStyle({background:t.unref(c).bgColor})},null,4),k.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card-item-top-gradient",style:t.normalizeStyle(u.value)},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",M,[t.createElementVNode("div",{class:"value",style:t.normalizeStyle(w(o))},[t.createElementVNode("span",U,t.toDisplayString(h(o).value),1),h(o).unit?(t.openBlock(),t.createElementBlock("span",q,t.toDisplayString(h(o).unit),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:"name",style:t.normalizeStyle(F(o))},t.toDisplayString(h(o).name),5)])],4))),128)),t.unref(c).showBgIcon&&T()?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mix-body-bg-icon",style:t.normalizeStyle(E.value)},t.toDisplayString(T()),5)):t.createCommentVNode("",!0)],2),t.renderSlot(e.$slots,"default",{},void 0,!0)],4))}})),oe=N._export_sfc(te,[["__scopeId","data-v-da371c91"]]);exports.default=oe;
1
+ "use strict";var L=Object.defineProperty,D=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var _=(p,i,a)=>i in p?L(p,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):p[i]=a,b=(p,i)=>{for(var a in i||(i={}))j.call(i,a)&&_(p,a,i[a]);if(V)for(var a of V(i))R.call(i,a)&&_(p,a,i[a]);return p},I=(p,i)=>D(p,H(i));var O=(p,i,a)=>new Promise((S,m)=>{var c=u=>{try{f(a.next(u))}catch(y){m(y)}},C=u=>{try{f(a.throw(u))}catch(y){m(y)}},f=u=>u.done?S(u.value):Promise.resolve(u.value).then(c,C);f((a=a.apply(p,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),$=require("./BaseComponent-CNXUpPY1.cjs"),N=require("./index-D8dh_6Qd.cjs"),W=require("./titleStyle-NSnz6cUg.cjs"),B=require("./ele-crd-icon-BvNgAPKW.cjs"),M={class:"card-item-inner"},U={class:"value-main"},q={key:0,class:"value-unit"},G="--",J={DEFAULT_ICON:B.DEFAULT_ICON,ACTIVE_ICON:B.ACTIVE_ICON,NAME_CN:"基础卡片",NAME_EN:"Card",ORDER:1},K={titleColor:"#111",titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,labelColor:"#111",textColor:"#111",bgColor:"#fff",valueSize:28,nameSize:14,radiusSize:8,isHideTitle:!0,showTopGradient:!1,topGradientStart:{value:"#f5a623",type:"color",label:"component.options.topGradientStart",dependent:"showTopGradient"},topGradientHeight:{value:2,type:"number",min:1,max:16,label:"component.options.topGradientHeight",dependent:"showTopGradient"},topGradientPosition:{value:"cardItem",type:"select",label:"component.options.topGradientPosition",dependent:"showTopGradient",options:[{label:"component.options.topGradientPosition_cardItem",value:"cardItem"},{label:"component.options.topGradientPosition_aboveTitle",value:"aboveTitle"}]},showBgIcon:!1,defaultBgIcon:{value:"",type:"text",label:"component.options.defaultBgIcon",dependent:"showBgIcon"},bgIconOpacity:{value:.06,type:"number",min:0,max:1,step:.01,label:"component.options.bgIconOpacity",dependent:"showBgIcon"},bgIconSize:{value:40,type:"number",min:8,max:120,label:"component.options.bgIconSize",dependent:"showBgIcon"},bgIconPosition:{value:"right",type:"select",label:"component.options.bgIconPosition",dependent:"showBgIcon",options:[{label:"component.options.bgIconPosition_right",value:"right"},{label:"component.options.bgIconPosition_left",value:"left"}]},paramsLayout:{value:"horizontal",type:"select",label:"component.options.paramsLayout",options:[{label:"component.options.paramsLayout_horizontal",value:"horizontal"},{label:"component.options.paramsLayout_vertical",value:"vertical"}]}},Q=[{name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1,valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"}],X=["name","fv","object_id","unit","default","isText",{key:"valueFontSize",type:"number",label:"component.options.crdValueFontSize",group:"component.options.crdGroupCellStyle",groupCollapsedByDefault:!0,min:0,max:120},{key:"nameFontSize",type:"number",label:"component.options.crdNameFontSize",group:"component.options.crdGroupCellStyle",min:0,max:120},{key:"valueTextColor",type:"color",label:"component.options.crdValueTextColor",group:"component.options.crdGroupCellStyle"},{key:"valueAlign",type:"select",label:"component.options.crdValueAlign",group:"component.options.crdGroupCellStyle",options:[{label:"component.options.crdValueAlign_left",value:"left"},{label:"component.options.crdValueAlign_center",value:"center"},{label:"component.options.crdValueAlign_right",value:"right"}]},{key:"nameTextColor",type:"color",label:"component.options.crdNameTextColor",group:"component.options.crdGroupCellStyle"},{key:"areaWeight",type:"number",label:"component.options.crdAreaWeight",group:"component.options.crdGroupCellStyle",min:1,max:32},{key:"cellPadding",type:"number",label:"component.options.crdCellPadding",group:"component.options.crdGroupCellStyle",min:0,max:64}],Y=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime","summary"],Z={useAlias:!1,multiObject:!1,source:"mosaic",object_id:"",object_alias:""},ee={DEFAULT:J,OPTIONS:K,DATA:Q,PARAMS:X,SOURCE:Y,COMMON:Z},te=t.defineComponent(I(b({},ee),{__name:"crd",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){const i={valueFontSize:0,nameFontSize:0,valueTextColor:"",nameTextColor:"",areaWeight:1,cellPadding:0,valueAlign:"center"},a=p;class S extends $.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),labelColor:this.getOptionValue("labelColor","#111"),textColor:this.getOptionValue("textColor","#111"),nameSize:this.getOptionValue("nameSize",14),valueSize:this.getOptionValue("valueSize",28),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0),showTopGradient:this.getOptionValue("showTopGradient",!1),topGradientStart:this.getOptionValue("topGradientStart","#f5a623"),topGradientHeight:this.getOptionValue("topGradientHeight",2),topGradientPosition:this.getOptionValue("topGradientPosition","cardItem"),showBgIcon:this.getOptionValue("showBgIcon",!1),defaultBgIcon:this.getOptionValue("defaultBgIcon",""),bgIconOpacity:this.getOptionValue("bgIconOpacity",.06),bgIconSize:this.getOptionValue("bgIconSize",40),bgIconPosition:this.getOptionValue("bgIconPosition","right"),paramsLayout:this.getOptionValue("paramsLayout","horizontal")}}init(){return O(this,null,function*(){var o;this.Style.value=this.extractStyles(),this.applyTheme();const n={name:"参数一",fv:"",object_id:"",unit:"",default:"",isText:!1};if(!((o=this.props.conf.data)!=null&&o.length))this.props.conf.data=[b(b({},n),i)];else for(const l of this.props.conf.data)if(!(!l||typeof l!="object"))for(const[r,s]of Object.entries(i))l[r]===void 0&&(l[r]=s)})}setHistoryData(n){if(!n)return;const{data:o}=this.props.conf;!Array.isArray(o)||!o.length||o.forEach((l,r)=>{var s,g;try{const d=(g=(s=n==null?void 0:n.history)==null?void 0:s[r])==null?void 0:g[0];if(!d)return;const z=l==null?void 0:l.fv;if(!z)return;const v=d==null?void 0:d[z];v!=null&&(l.value=v)}catch(d){}})}}const m=new S(a,"crd");m.setupLifecycle();const c=m.getStyle(),C=t.computed(()=>W.generateTitleStyle(a.conf.options)),f=t.computed(()=>{const e=C.value||{},n=parseFloat(String(e.fontSize||"14"))||14,o=String(e.padding||"").split(" ").filter(Boolean),l=o.length>0&&parseFloat(o[0])||0,r=Math.ceil(n*1.5),s=Math.max(0,r+l*2);return I(b({},e),{minHeight:`${s}px`})}),u=t.computed(()=>{const e=c.value,n=Number(e.topGradientHeight)||2,o=e.topGradientStart||"#f5a623";return{height:`${n}px`,background:`linear-gradient(90deg, ${o}, transparent)`}}),y=t.computed(()=>{const e=c.value;return!!e.showTopGradient&&e.topGradientPosition==="aboveTitle"}),k=t.computed(()=>{const e=c.value;return!!e.showTopGradient&&e.topGradientPosition!=="aboveTitle"}),A=t.computed(()=>c.value.paramsLayout==="vertical"),E=t.computed(()=>{var o;const e=c.value,n=e.bgIconPosition==="right";return{opacity:(o=e.bgIconOpacity)!=null?o:.06,fontSize:`${Number(e.bgIconSize)||40}px`,display:"flex",alignItems:"center",justifyContent:n?"flex-end":"flex-start",paddingRight:n?"12px":void 0,paddingLeft:n?void 0:"12px"}});function P(e){const n=Number(e==null?void 0:e.areaWeight),o=Number.isFinite(n)&&n>0?n:1,l=Number(e==null?void 0:e.cellPadding),r={flex:`${o} 1 0`,minWidth:"0",minHeight:"0"};return Number.isFinite(l)&&l>0&&(r.padding=`${l}px`),r}function w(e){const n=c.value,o=Number(e==null?void 0:e.valueFontSize),l=Number.isFinite(o)&&o>0?o:n.valueSize,r=typeof(e==null?void 0:e.valueTextColor)=="string"?e.valueTextColor.trim():"",s=e==null?void 0:e.valueAlign,g=s==="left"||s==="right"||s==="center"?s:"center",d=g==="left"?"flex-start":g==="right"?"flex-end":"center";return{color:r||n.textColor,fontSize:`${l}px`,width:"100%",justifyContent:d,textAlign:g}}function F(e){const n=c.value,o=Number(e==null?void 0:e.nameFontSize),l=Number.isFinite(o)&&o>0?o:n.nameSize;return{color:(typeof(e==null?void 0:e.nameTextColor)=="string"?e.nameTextColor.trim():"")||n.labelColor,fontSize:`${l}px`}}function T(){const e=c.value.defaultBgIcon,n=typeof e=="string"?e.trim():"";return n?N.decodeIconFromStorage(n):""}const h=e=>{var r,s,g,d;if(!e)return{value:G,name:"--",unit:""};const n=(r=e.name)!=null?r:"",o=typeof e.unit=="string"?e.unit.trim():"";return e.isText?{value:(((s=e.flag)==null?void 0:s.find(v=>String(v.code)==String(e.value)))||{}).text||G,name:n,unit:o}:{value:(d=(g=e.value)!=null?g:e.default)!=null?d:0,name:n,unit:o}},x=a.conf;return(e,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(c).bgColor,borderRadius:t.unref(c).radiusSize+"px"})},[y.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mix-component-top-gradient",style:t.normalizeStyle(u.value)},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(f.value)},t.toDisplayString(t.unref(x).caption||t.unref(x).name),5),t.createElementVNode("div",{class:t.normalizeClass(["mix-body",{"mix-body--params-vertical":A.value}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(x).data,(o,l)=>(t.openBlock(),t.createElementBlock("div",{key:l,class:"card-item",style:t.normalizeStyle(P(o))},[t.createElementVNode("div",{class:"card-item-surface",style:t.normalizeStyle({background:t.unref(c).bgColor})},null,4),k.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card-item-top-gradient",style:t.normalizeStyle(u.value)},null,4)):t.createCommentVNode("",!0),t.createElementVNode("div",M,[t.createElementVNode("div",{class:"value",style:t.normalizeStyle(w(o))},[t.createElementVNode("span",U,t.toDisplayString(h(o).value),1),h(o).unit?(t.openBlock(),t.createElementBlock("span",q,t.toDisplayString(h(o).unit),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:"name",style:t.normalizeStyle(F(o))},t.toDisplayString(h(o).name),5)])],4))),128)),t.unref(c).showBgIcon&&T()?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mix-body-bg-icon",style:t.normalizeStyle(E.value)},t.toDisplayString(T()),5)):t.createCommentVNode("",!0)],2),t.renderSlot(e.$slots,"default",{},void 0,!0)],4))}})),oe=N._export_sfc(te,[["__scopeId","data-v-da371c91"]]);exports.default=oe;
@@ -27,8 +27,8 @@ var N = (c, l, a) => new Promise((O, h) => {
27
27
  S((a = a.apply(c, l)).next());
28
28
  });
29
29
  import { defineComponent as J, computed as f, openBlock as m, createElementBlock as y, normalizeStyle as g, unref as v, createCommentVNode as _, createElementVNode as b, toDisplayString as T, normalizeClass as K, Fragment as Q, renderList as X, renderSlot as Y } from "vue";
30
- import { B as Z } from "./BaseComponent-DQe7HYdV.js";
31
- import { q as tt, _ as et } from "./index-BSsB7QzO.js";
30
+ import { B as Z } from "./BaseComponent-D5tlYehc.js";
31
+ import { q as tt, _ as et } from "./index-Bdq33405.js";
32
32
  import { g as ot } from "./titleStyle-BT5GlpAb.js";
33
33
  import { A as nt, D as at } from "./ele-crd-icon-BXxB7P3T.js";
34
34
  const lt = { class: "card-item-inner" }, it = { class: "value-main" }, rt = {