mixdashboards 1.0.87 → 1.0.89

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 (335) hide show
  1. package/dist/{BaseComponent-qzL33ZSL.js → BaseComponent-D82kw5vB.js} +14 -14
  2. package/dist/{BaseComponent-BHUHnLj-.cjs → BaseComponent-DoQ1oLoA.cjs} +1 -1
  3. package/dist/{EChartComponentBase-BtAW2Yko.js → EChartComponentBase-DUyyaXgA.js} +5 -5
  4. package/dist/{EChartComponentBase-C4s5HSfS.cjs → EChartComponentBase-ejDV5NEw.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-CqvHGqqx.js → EmergencyPlanPanel-Bm-fqxYR.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-C8ieiZvC.cjs → EmergencyPlanPanel-BnVlQ-f6.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-CUSKabw0.js → HistoryPlanDialog-BMzhidd2.js} +1 -1
  8. package/dist/{HistoryPlanDialog-D6VMuzat.cjs → HistoryPlanDialog-QBBxCX7D.cjs} +1 -1
  9. package/dist/{MixiotAppDetailPage-CFISQwpc.js → MixiotAppDetailPage-Dr5R35qW.js} +1 -1
  10. package/dist/{MixiotAppDetailPage-Bd9WrADz.cjs → MixiotAppDetailPage-FfC4ZxrA.cjs} +1 -1
  11. package/dist/{MonitoringMap-CV7YYixH.js → MonitoringMap-CpdWX4fF.js} +2 -2
  12. package/dist/{MonitoringMap-DjvavXD5.cjs → MonitoringMap-eVOQwtGG.cjs} +1 -1
  13. package/dist/{UniverSheet-C7QQQUHI.js → UniverSheet-02jn_UjA.js} +2 -2
  14. package/dist/{UniverSheet-BY4vwAeQ.cjs → UniverSheet-Ded-R47O.cjs} +1 -1
  15. package/dist/{accelerationChart-Dd7s6CA0.js → accelerationChart-B5n1Fc12.js} +21 -21
  16. package/dist/{accelerationChart-CnbCpT4d.cjs → accelerationChart-BKIZV5eU.cjs} +1 -1
  17. package/dist/{actionItem-DNgoQB08.cjs → actionItem-CLwRbg4y.cjs} +1 -1
  18. package/dist/{actionItem-CjNacj0F.js → actionItem-DsZ4M1qS.js} +2 -2
  19. package/dist/{alarmLevelChart-DDFP_ADG.js → alarmLevelChart-9ZdAuQvY.js} +2 -2
  20. package/dist/{alarmLevelChart-CRL45xkr.cjs → alarmLevelChart-CyCmhAZl.cjs} +1 -1
  21. package/dist/{alertTable-DrUs1wUN.js → alertTable-BbsFIJQc.js} +2 -2
  22. package/dist/{alertTable-UvxQNZ2Y.cjs → alertTable-Bj90t5vD.cjs} +1 -1
  23. package/dist/{aliasObjectSelectorDemo-BGgcbyT-.cjs → aliasObjectSelectorDemo-DOtzALw2.cjs} +1 -1
  24. package/dist/{aliasObjectSelectorDemo-Bep18FrL.js → aliasObjectSelectorDemo-fW-a4DCV.js} +7 -7
  25. package/dist/{annualRainfallChart-BMuH6tsO.js → annualRainfallChart-BzzrCCJe.js} +2 -2
  26. package/dist/{annualRainfallChart-DDnaZZp0.cjs → annualRainfallChart-Dzx4SJpe.cjs} +1 -1
  27. package/dist/{aqi-CbyrPtO4.js → aqi-006rTnsK.js} +2 -2
  28. package/dist/{aqi-DjkOgiun.cjs → aqi-DJrhDnm8.cjs} +1 -1
  29. package/dist/{aqiIndass-C-DEsmZ4.js → aqiIndass-DLN5CDbq.js} +21 -21
  30. package/dist/{aqiIndass-C3mPUZP6.cjs → aqiIndass-DokEaddv.cjs} +1 -1
  31. package/dist/{areaDeformCurve-B-bUeLI-.cjs → areaDeformCurve-CAV4T1p6.cjs} +1 -1
  32. package/dist/{areaDeformCurve-D6in1BnQ.js → areaDeformCurve-Eb4dsvjI.js} +2 -2
  33. package/dist/{arrayCard-CAoU7DHK.cjs → arrayCard-BeHFZmCq.cjs} +1 -1
  34. package/dist/{arrayCard-CpzPkgA9.js → arrayCard-DujWUhYK.js} +2 -2
  35. package/dist/{audio-TkisK5FD.js → audio-CrY3aLMX.js} +2 -2
  36. package/dist/{audio-BrTfWQmo.cjs → audio-lDtmX9bz.cjs} +1 -1
  37. package/dist/{bar-CT6sCNW4.js → bar-CVPXbvtH.js} +10 -10
  38. package/dist/{bar-BZBOTnN4.cjs → bar-WVNHLoJ3.cjs} +1 -1
  39. package/dist/{bmp-DgcyTiV5.cjs → bmp-BUgmrbhZ.cjs} +1 -1
  40. package/dist/{bmp-Xsdyi9gr.js → bmp-Bw1KLZox.js} +2 -2
  41. package/dist/{box-DNKXXXYx.js → box-D3M4txCW.js} +23 -23
  42. package/dist/{box-DED4JT5G.cjs → box-cqCoRDny.cjs} +1 -1
  43. package/dist/{chartConfigPanel-CF-q-XUN.js → chartConfigPanel-BS-4fGEs.js} +1 -1
  44. package/dist/{chartConfigPanel-D1M21nDO.cjs → chartConfigPanel-CVjBfsPG.cjs} +1 -1
  45. package/dist/{circleBar-CaC8ntp-.js → circleBar-C2-5NbKx.js} +2 -2
  46. package/dist/{circleBar-m6J_QvzN.cjs → circleBar-DHFREWDZ.cjs} +1 -1
  47. package/dist/{clock-tPcek90B.js → clock-CbPolNJf.js} +2 -2
  48. package/dist/{clock-CnV36tpq.cjs → clock-DCLrJzaN.cjs} +1 -1
  49. package/dist/{clt-DoDENEcJ.cjs → clt-CpnBLyYn.cjs} +1 -1
  50. package/dist/{clt-DwoBhD_P.js → clt-EjSvDr2u.js} +15 -15
  51. package/dist/{cmc-Dld5UOW9.cjs → cmc-3E3UvBFP.cjs} +1 -1
  52. package/dist/{cmc-ObS3fWlL.js → cmc-BDDdRH_H.js} +25 -25
  53. package/dist/{cmp-Bp9FqBZV.cjs → cmp-DAzG9LwZ.cjs} +1 -1
  54. package/dist/{cmp-DEH1jzrG.js → cmp-_zlwmg1E.js} +2 -2
  55. package/dist/{conclusionCard-DXiFAJmo.cjs → conclusionCard-9zD6W6AF.cjs} +1 -1
  56. package/dist/{conclusionCard-CHFJIt7G.js → conclusionCard-b_f9juIB.js} +2 -2
  57. package/dist/{controlList-hWCbafkY.js → controlList-DFX97otG.js} +2 -2
  58. package/dist/{controlList-B2tV397i.cjs → controlList-DHG2jD51.cjs} +1 -1
  59. package/dist/{controlRecordList-DnhHr7kU.js → controlRecordList-B0oTZp28.js} +2 -2
  60. package/dist/{controlRecordList-uAmuCKjf.cjs → controlRecordList-kGbanAXa.cjs} +1 -1
  61. package/dist/{controlRecordListAPP-BpZmCMM-.js → controlRecordListAPP-BOukSyHq.js} +2 -2
  62. package/dist/{controlRecordListAPP-BpfPZW3b.cjs → controlRecordListAPP-gXYEcRA_.cjs} +1 -1
  63. package/dist/{crd-BQ7AFV1c.cjs → crd-BATQ1KFa.cjs} +1 -1
  64. package/dist/{crd-ChpWMXAm.js → crd-C_z8MNM0.js} +2 -2
  65. package/dist/{ctrBtn-PTITC7R8.cjs → ctrBtn-BnwZlZ5c.cjs} +1 -1
  66. package/dist/{ctrBtn-CmdQ3s7z.js → ctrBtn-DTyOVAVy.js} +11 -11
  67. package/dist/{ctrSet-Dv5i5ne5.js → ctrSet-BTnbgdd3.js} +7 -7
  68. package/dist/{ctrSet-CYqeDilm.cjs → ctrSet-BWr9dDIX.cjs} +1 -1
  69. package/dist/{ctrSwitch-C3NZcUxa.js → ctrSwitch-BH76ZhOi.js} +8 -8
  70. package/dist/{ctrSwitch-Byt4qKjt.cjs → ctrSwitch-CCdNwgtf.cjs} +1 -1
  71. package/dist/{dataManagement-BFIS0e4d.cjs → dataManagement-DEe2X-oe.cjs} +1 -1
  72. package/dist/{dataManagement-enhqxRgF.js → dataManagement-ju5aByQS.js} +2 -2
  73. package/dist/{dataReport-DLdB1ARI.js → dataReport-B5tUeLYL.js} +2 -2
  74. package/dist/{dataReport-vfCe0q9d.cjs → dataReport-DGdNGqNg.cjs} +1 -1
  75. package/dist/{dataTable-DFZrMHnF.js → dataTable-ByiR5jdH.js} +1 -1
  76. package/dist/{dataTable-DE3yOae0.cjs → dataTable-ChBv_YlP.cjs} +1 -1
  77. package/dist/{datetime-BK4xGaTM.js → datetime-CThnusEe.js} +2 -2
  78. package/dist/{datetime-DXTcE56I.cjs → datetime-DG6uMSUr.cjs} +1 -1
  79. package/dist/{deepClusterSlipSurface-BKFavDI5.cjs → deepClusterSlipSurface-8hEjAzBW.cjs} +1 -1
  80. package/dist/{deepClusterSlipSurface-D_PbxUdd.js → deepClusterSlipSurface-CLxfYGxD.js} +29 -29
  81. package/dist/{deepDataMatrix-avI-0mLw.js → deepDataMatrix-6Ny4cIe7.js} +21 -21
  82. package/dist/{deepDataMatrix-DzzK55Mc.cjs → deepDataMatrix-D5B1nu2J.cjs} +1 -1
  83. package/dist/{deepDisplacement3D-CbyatHpJ.js → deepDisplacement3D-BVjkYHfy.js} +2 -2
  84. package/dist/{deepDisplacement3D-DW0CW2ut.cjs → deepDisplacement3D-DCJ00L5m.cjs} +1 -1
  85. package/dist/{deepDisplacementChart-DY0lNJOz.js → deepDisplacementChart-Blzrj3dF.js} +40 -40
  86. package/dist/{deepDisplacementChart-Dm71dHpY.cjs → deepDisplacementChart-DdiaOR7t.cjs} +1 -1
  87. package/dist/{deepDisplacementChart-B7GDsSm7.js → deepDisplacementChart-Dvn76ypl.js} +22 -22
  88. package/dist/{deepDisplacementChart-DauJXxkW.cjs → deepDisplacementChart-pktiGXQI.cjs} +1 -1
  89. package/dist/{deepDisplacementView-RywcwybM.js → deepDisplacementView-DIwTwh_K.js} +1 -1
  90. package/dist/{deepDisplacementView-BJAAMyTP.cjs → deepDisplacementView-ZLKNGoIQ.cjs} +1 -1
  91. package/dist/{deepNodeTemperatureChart-Et7GEspn.js → deepNodeTemperatureChart-115sZmrU.js} +36 -36
  92. package/dist/{deepNodeTemperatureChart-FN14qWXP.cjs → deepNodeTemperatureChart-gDvvGuyq.cjs} +1 -1
  93. package/dist/{deepTangentAngleChart-m3r_mJg0.cjs → deepTangentAngleChart-DVSVhg5b.cjs} +1 -1
  94. package/dist/{deepTangentAngleChart-CEsc85Mi.js → deepTangentAngleChart-DmC2LGTU.js} +22 -22
  95. package/dist/{deepTemperatureField-jfV1EahT.cjs → deepTemperatureField-ClJsxAvt.cjs} +1 -1
  96. package/dist/{deepTemperatureField-Cr3c_t1T.js → deepTemperatureField-D6G_kQeJ.js} +32 -32
  97. package/dist/{deepTrendChart-D7IDGKBC.js → deepTrendChart-C53TU6F2.js} +34 -34
  98. package/dist/{deepTrendChart-DIyUa5qe.cjs → deepTrendChart-Drys7qZg.cjs} +1 -1
  99. package/dist/{deviceOnlineStatus--G66OLv8.cjs → deviceOnlineStatus-BnoXmtDj.cjs} +1 -1
  100. package/dist/{deviceOnlineStatus-DDo0caCc.js → deviceOnlineStatus-cZu_IljM.js} +2 -2
  101. package/dist/{deviceStatus-B0sBzHx9.cjs → deviceStatus-Bxqii2_U.cjs} +1 -1
  102. package/dist/{deviceStatus-cmxKruD-.js → deviceStatus-DcjQXNtS.js} +19 -19
  103. package/dist/{displacementDataTable-Bxs-LIOW.cjs → displacementDataTable-C3W_0L7c.cjs} +1 -1
  104. package/dist/{displacementDataTable-BwhylBbX.js → displacementDataTable-DlwZHsnk.js} +17 -17
  105. package/dist/{displacementTrajectoryChart-JJEGEVMc.cjs → displacementTrajectoryChart-C54ljhYo.cjs} +1 -1
  106. package/dist/{displacementTrajectoryChart-D3VcZ1qM.js → displacementTrajectoryChart-DCFPd8I8.js} +34 -34
  107. package/dist/{displacementTrendChart-BlIqd2IK.js → displacementTrendChart-Bwi9pIKg.js} +32 -32
  108. package/dist/{displacementTrendChart-GmxA4M6n.cjs → displacementTrendChart-C2UFFHy3.cjs} +1 -1
  109. package/dist/{dxf-JH5I0L5F.cjs → dxf-BXat6zT0.cjs} +1 -1
  110. package/dist/{dxf-r-iy1MWn.js → dxf-CvvsXRab.js} +2 -2
  111. package/dist/{dzc-KbkTkgzk.cjs → dzc-611sFAMA.cjs} +1 -1
  112. package/dist/{dzc-CMhN9l76.js → dzc-xIM9tlfM.js} +8 -8
  113. package/dist/{emergencyPlan-CR8HkDi4.js → emergencyPlan-BLfRn6UD.js} +3 -3
  114. package/dist/{emergencyPlan-FSdy0Ik5.cjs → emergencyPlan-DYckkWIF.cjs} +1 -1
  115. package/dist/{evn-D8kcAx_T.cjs → evn-BVP-ihLU.cjs} +1 -1
  116. package/dist/{evn-DGxcYjRA.js → evn-C5g9HTlT.js} +2 -2
  117. package/dist/{evolutionChart-K7H8KKIG.js → evolutionChart-CqCoGysK.js} +3 -3
  118. package/dist/{evolutionChart-CI2hDs5C.cjs → evolutionChart-DFOIeAnj.cjs} +1 -1
  119. package/dist/{fileViewer-Df0AU_z9.js → fileViewer-BGBuea6P.js} +2 -2
  120. package/dist/{fileViewer-DtIGy-zH.cjs → fileViewer-CdCgk5vi.cjs} +1 -1
  121. package/dist/{filterBar-DEfkfl04.cjs → filterBar-1LBu8CWi.cjs} +1 -1
  122. package/dist/{filterBar-BRDe-GgC.js → filterBar-CG1pnrgf.js} +2 -2
  123. package/dist/{fireCombustionCurve-DJXeynXa.js → fireCombustionCurve-DBLZItFG.js} +3 -3
  124. package/dist/{fireCombustionCurve-C8UGnEPC.cjs → fireCombustionCurve-DFGlWVK-.cjs} +1 -1
  125. package/dist/{fireFilterBar-CXiN-Jkv.js → fireFilterBar-55way8Kq.js} +2 -2
  126. package/dist/{fireFilterBar-iqgVdbgH.cjs → fireFilterBar-DmXRJrBH.cjs} +1 -1
  127. package/dist/{fireHistoryTable-CTIdqGk3.js → fireHistoryTable-6lMO644G.js} +2 -2
  128. package/dist/{fireHistoryTable-Dl4A1pRv.cjs → fireHistoryTable-CrOZPx1P.cjs} +1 -1
  129. package/dist/{gag-BVPZK4hG.js → gag-BRtB5Zyd.js} +2 -2
  130. package/dist/{gag-DQa6TEDv.cjs → gag-C8Q8kIfD.cjs} +1 -1
  131. package/dist/{gasStationList-BkzLZp4-.cjs → gasStationList-CuMupuAF.cjs} +1 -1
  132. package/dist/{gasStationList-NFyxin-H.js → gasStationList-Dh0HOgcE.js} +2 -2
  133. package/dist/{geo3dViewer-VRenmVKs.cjs → geo3dViewer-CxUsz_Fa.cjs} +1 -1
  134. package/dist/{geo3dViewer-BJpae_MX.js → geo3dViewer-ph_PeQy-.js} +3 -3
  135. package/dist/{glbModel-C96hRxP0.js → glbModel-HkdGjDju.js} +2 -2
  136. package/dist/{glbModel-i2X1L8LC.cjs → glbModel-keR5BhQS.cjs} +1 -1
  137. package/dist/{globalObjectSelector-DhbeX3bm.cjs → globalObjectSelector-BbyN1tdM.cjs} +1 -1
  138. package/dist/{globalObjectSelector-D09a0A2t.js → globalObjectSelector-C181O9oo.js} +43 -43
  139. package/dist/{gnssFilterBar-BX3mEKiT.cjs → gnssFilterBar-CLrEX2db.cjs} +1 -1
  140. package/dist/{gnssFilterBar-BHqE79Ri.js → gnssFilterBar-vcfVn7a6.js} +2 -2
  141. package/dist/{gnssHistoryTable-ZBfzhnlx.cjs → gnssHistoryTable-BpFJjWcy.cjs} +1 -1
  142. package/dist/{gnssHistoryTable-D9tglOkP.js → gnssHistoryTable-D0VkG9vT.js} +2 -2
  143. package/dist/{gnssMapView-B2rSxPml.cjs → gnssMapView-ChrUruFB.cjs} +2 -2
  144. package/dist/{gnssMapView-Bicnnr6P.js → gnssMapView-a4luVEYa.js} +4 -4
  145. package/dist/{gnssSectionProfile-BKnvQBHa.cjs → gnssSectionProfile-CoP2v7aY.cjs} +1 -1
  146. package/dist/{gnssSectionProfile-BfkjiI0i.js → gnssSectionProfile-DnHfVuhk.js} +2 -2
  147. package/dist/{gnssTimeSeriesChart-BTK4Qize.js → gnssTimeSeriesChart-B1NJ4cn0.js} +2 -2
  148. package/dist/{gnssTimeSeriesChart-Cj-151Zs.cjs → gnssTimeSeriesChart-DVAjY9eo.cjs} +1 -1
  149. package/dist/{gnssXYTrajectory-BgwA-1Fx.cjs → gnssXYTrajectory-CiFR9qoL.cjs} +1 -1
  150. package/dist/{gnssXYTrajectory-DZiGIgf5.js → gnssXYTrajectory-D_pCZ7Hd.js} +2 -2
  151. package/dist/{grd-DW4ve5k2.js → grd-2THwmH-B.js} +17 -17
  152. package/dist/{grd-DrRka55C.cjs → grd-CZT36wMZ.cjs} +1 -1
  153. package/dist/{grdIndass-CofZtTJe.cjs → grdIndass-CO9sMJwo.cjs} +1 -1
  154. package/dist/{grdIndass-CRZ9agT-.js → grdIndass-CjQCGgum.js} +10 -10
  155. package/dist/{grg-zv4YAkAu.js → grg-CDte_thi.js} +10 -10
  156. package/dist/{grg-Cugg5crY.cjs → grg-Cs7-r62k.cjs} +1 -1
  157. package/dist/{gridview-BjOw8zBf.cjs → gridview-BYOPPFAQ.cjs} +1 -1
  158. package/dist/{gridview-DRB1rG1L.js → gridview-DoFkoRJG.js} +2 -2
  159. package/dist/{groundwaterFilterBar-DyCL0fs9.js → groundwaterFilterBar-BPSFA1Lw.js} +2 -2
  160. package/dist/{groundwaterFilterBar-D4appJuv.cjs → groundwaterFilterBar-FCQgVbxJ.cjs} +1 -1
  161. package/dist/{groundwaterProfileChart-CDByowkP.cjs → groundwaterProfileChart-CZM2Ijqj.cjs} +2 -2
  162. package/dist/{groundwaterProfileChart-Bo_XCqyF.js → groundwaterProfileChart-CrKLzRsw.js} +3 -3
  163. package/dist/{groundwaterTimeCurve-Cj5qSKTI.cjs → groundwaterTimeCurve-BU92AmmI.cjs} +1 -1
  164. package/dist/{groundwaterTimeCurve-C0WRGZNY.js → groundwaterTimeCurve-Dy5QHMnD.js} +3 -3
  165. package/dist/{groupCard-JeKQg4FL.js → groupCard-ByiU2e9a.js} +2 -2
  166. package/dist/{groupCard-B7XW81Xq.cjs → groupCard-Bz4dzhtP.cjs} +1 -1
  167. package/dist/{headerBar-D5FXDHNR.js → headerBar-Bmugs0fE.js} +2 -2
  168. package/dist/{headerBar-BXNzoDYA.cjs → headerBar-DGQqoZZH.cjs} +1 -1
  169. package/dist/{history-D_NO9ojb.cjs → history-BNN6YYlw.cjs} +1 -1
  170. package/dist/{history-BDIdK3AY.js → history-CIAU9_hA.js} +12 -12
  171. package/dist/{index-D7PZNHF4.cjs → index-BdWR_FTA.cjs} +10 -10
  172. package/dist/{index-BHBE19E2.js → index-CCWU_se2.js} +2248 -2208
  173. package/dist/{insarDeformChart-wTnTF5NC.cjs → insarDeformChart-B6ad_kTg.cjs} +1 -1
  174. package/dist/{insarDeformChart-DuBYscAT.js → insarDeformChart-CpMWLFgM.js} +2 -2
  175. package/dist/{insarImageViewer-DGkic1Rj.cjs → insarImageViewer-CXkitdwR.cjs} +1 -1
  176. package/dist/{insarImageViewer-tPyDE815.js → insarImageViewer-Dwvau4-d.js} +2 -2
  177. package/dist/{kds-Bto_xGCo.cjs → kds-Bjks3GFb.cjs} +1 -1
  178. package/dist/{kds-Joeeniwr.js → kds-DrlduN0N.js} +21 -21
  179. package/dist/{kpiCard-D_8YToN_.cjs → kpiCard-CEPgU6Td.cjs} +1 -1
  180. package/dist/{kpiCard-B2MTndw-.js → kpiCard-CvTeFbgJ.js} +2 -2
  181. package/dist/{landslideMap-BSImmP3T.js → landslideMap-B5ecUy9T.js} +30 -30
  182. package/dist/{landslideMap-DbvJ2h3R.cjs → landslideMap-BBMdZRMN.cjs} +1 -1
  183. package/dist/{landslideWarning-DjgODoEd.js → landslideWarning-CMEvyHhr.js} +11 -11
  184. package/dist/{landslideWarning-CVvZS5-l.cjs → landslideWarning-CYLG3Oxj.cjs} +1 -1
  185. package/dist/{layerTabs-CT14C_oL.cjs → layerTabs-DstdlkUM.cjs} +1 -1
  186. package/dist/{layerTabs-C2qdit8f.js → layerTabs-K7SxTlw4.js} +2 -2
  187. package/dist/{leaflet-src-CsuGTXZi.js → leaflet-src-ClP2DPnn.js} +1 -1
  188. package/dist/{leaflet-src-BuDfd_hT.cjs → leaflet-src-DhrxkAwA.cjs} +1 -1
  189. package/dist/{lerc-5_flDPwM.js → lerc-CmVR8_Da.js} +2 -2
  190. package/dist/{lerc-BVRAhrgg.cjs → lerc-DA9nzmCS.cjs} +1 -1
  191. package/dist/{lin-Djc6HZCi.js → lin-Dm_oqUd8.js} +11 -11
  192. package/dist/{lin--Wc9Mzoq.cjs → lin-Dn6V4e5I.cjs} +1 -1
  193. package/dist/{linIndass-Bxs7wFnh.cjs → linIndass-BldY-1UZ.cjs} +1 -1
  194. package/dist/{linIndass-CQ2BZiY0.js → linIndass-CowqLuzl.js} +10 -10
  195. package/dist/{lst-CxLOKAzL.js → lst-Bu9POh4U.js} +2 -2
  196. package/dist/{lst-C-yxmy1r.cjs → lst-CPzaL4pE.cjs} +1 -1
  197. package/dist/{manualEntry-Dd9swkaL.cjs → manualEntry-D6HxT0e1.cjs} +1 -1
  198. package/dist/{manualEntry-DLL43b_K.js → manualEntry-DFPCiPZm.js} +2 -2
  199. package/dist/{mapBackground-CDGjjy8-.js → mapBackground-DNs_5l_N.js} +3 -3
  200. package/dist/{mapBackground-DNQRoaFb.cjs → mapBackground-DdNuu0qi.cjs} +1 -1
  201. package/dist/{mappingList-C9HUo2y9.cjs → mappingList-B2euTZM6.cjs} +1 -1
  202. package/dist/{mappingList-DrhZfKtH.js → mappingList-D9Ax3W4e.js} +2 -2
  203. package/dist/{markdownViewer-DIb7t2bx.js → markdownViewer-BCz-nS97.js} +2 -2
  204. package/dist/{markdownViewer-Bea8zl8q.cjs → markdownViewer-BlmkSj2F.cjs} +1 -1
  205. package/dist/{mix-control-modal-CaAkqkzX.js → mix-control-modal-DTiG49Lj.js} +7 -7
  206. package/dist/{mix-control-modal-Dh-NZ50w.cjs → mix-control-modal-DaSRoqVn.cjs} +1 -1
  207. package/dist/{mixGrid-DPdzqHke.js → mixGrid-BuBmT7GK.js} +2 -2
  208. package/dist/{mixGrid-DFuBeOy6.cjs → mixGrid-CM-obY4q.cjs} +1 -1
  209. package/dist/mixdashboards.cjs +1 -1
  210. package/dist/mixdashboards.css +1 -1
  211. package/dist/mixdashboards.js +1 -1
  212. package/dist/mixiotObjectListApi-434Mto0m.cjs +1 -0
  213. package/dist/{mixiotObjectListApi-CJsYvcG_.js → mixiotObjectListApi-ZWtORc3c.js} +37 -35
  214. package/dist/{mjpegCamera-BvlKwwDL.cjs → mjpegCamera-D3JM1GzZ.cjs} +1 -1
  215. package/dist/{mjpegCamera-C9PNl-r4.js → mjpegCamera-ye25efWW.js} +2 -2
  216. package/dist/{monitorAlert-LeeMIRjf.cjs → monitorAlert-CJ_pAHXP.cjs} +1 -1
  217. package/dist/{monitorAlert-vVcYtohz.js → monitorAlert-Clr3_BqZ.js} +14 -14
  218. package/dist/{monitorData-BtF_j2kd.cjs → monitorData-Biwb0h-A.cjs} +1 -1
  219. package/dist/{monitorData-CHhLhD4y.js → monitorData-nXGeoFVW.js} +9 -9
  220. package/dist/{monitorSpeedChart-BH_rITMD.cjs → monitorSpeedChart-B7FhH0Kk.cjs} +1 -1
  221. package/dist/{monitorSpeedChart-Dhchpe2h.js → monitorSpeedChart-CiS6TSfI.js} +1 -1
  222. package/dist/{mxa-CU0OUOdG.cjs → mxa-D5zEytKD.cjs} +1 -1
  223. package/dist/{mxa-B3DlA-Xs.js → mxa-Nv228pmQ.js} +20 -20
  224. package/dist/{myValue-AeGxHeE2.cjs → myValue-BmHQ_lRL.cjs} +1 -1
  225. package/dist/{myValue-DEbeO9Cb.js → myValue-CBsVyhrq.js} +2 -2
  226. package/dist/{myValueList-qDBbrqDv.js → myValueList-CNGkPgE3.js} +2 -2
  227. package/dist/{myValueList-EkbSpjf0.cjs → myValueList-F2JXq_cs.cjs} +1 -1
  228. package/dist/{objectList-B1Q5MJPW.cjs → objectList-B2AqFaoX.cjs} +1 -1
  229. package/dist/{objectList-DTHwnvxc.js → objectList-CacWdl7-.js} +3 -3
  230. package/dist/{objectListAPP-njF3tJUP.js → objectListAPP-B8ryIqee.js} +4 -4
  231. package/dist/{objectListAPP-CgPjYGiu.cjs → objectListAPP-oI7xgnNz.cjs} +1 -1
  232. package/dist/{percentBar-Dil8Vm3q.cjs → percentBar-BamhAckr.cjs} +1 -1
  233. package/dist/{percentBar-BAwdbKH8.js → percentBar-By4ErDLm.js} +15 -15
  234. package/dist/{photo-Bn0lWnis.js → photo-5bKR5PWJ.js} +2 -2
  235. package/dist/{photo-BlZ5X_9p.cjs → photo-Db9B9k7E.cjs} +1 -1
  236. package/dist/{pie-CG2cvCTM.js → pie-B8IcWNmh.js} +2 -2
  237. package/dist/{pie-CbOvGe0n.cjs → pie-Bo5fBYnv.cjs} +1 -1
  238. package/dist/{placeholder-jPC58i_u.cjs → placeholder-Ba-1pW5q.cjs} +1 -1
  239. package/dist/{placeholder-Bdop1bDv.js → placeholder-cEZ1VojS.js} +1 -1
  240. package/dist/{pressBtn-Cwp0-Mju.js → pressBtn-B90A4FTO.js} +7 -7
  241. package/dist/{pressBtn-C6mEzpGm.cjs → pressBtn-Bg9z2xjW.cjs} +1 -1
  242. package/dist/{processTable--PnPJzep.js → processTable-Dmf9PtKT.js} +2 -2
  243. package/dist/{processTable-CUrw-_tx.cjs → processTable-KmBhdxq9.cjs} +1 -1
  244. package/dist/{progressBar-CLBQrVhg.js → progressBar-CBvxzYpz.js} +2 -2
  245. package/dist/{progressBar-Dg1WRKUU.cjs → progressBar-CuR-TjJy.cjs} +1 -1
  246. package/dist/{progressCircle-DBXHBoZS.cjs → progressCircle-B7uJFhbg.cjs} +1 -1
  247. package/dist/{progressCircle-Dft4lI8s.js → progressCircle-CxF0elMR.js} +2 -2
  248. package/dist/{qrcode-BH8f2Hfp.cjs → qrcode-B5ohsZSk.cjs} +1 -1
  249. package/dist/{qrcode-B7VNzAkt.js → qrcode-Bj1iBOqf.js} +40 -31
  250. package/dist/{raceBar-Ck_RLw_X.js → raceBar-BM7aKngn.js} +2 -2
  251. package/dist/{raceBar-DZCr0eC-.cjs → raceBar-cbIKXdrY.cjs} +1 -1
  252. package/dist/{rad-C7ostpqi.js → rad-BxLSGBt5.js} +2 -2
  253. package/dist/{rad-C3kidKBD.cjs → rad-XuUgEqvp.cjs} +1 -1
  254. package/dist/{radarMapViewer-B8g9WmmH.cjs → radarMapViewer-CE3iOzHQ.cjs} +1 -1
  255. package/dist/{radarMapViewer-BxHWMhxf.js → radarMapViewer-Y2d-z-Xi.js} +2 -2
  256. package/dist/{rainfallFilterBar-G_3cep1I.cjs → rainfallFilterBar-5B9nOZMQ.cjs} +1 -1
  257. package/dist/{rainfallFilterBar-C6amyMsu.js → rainfallFilterBar-BQQ6cWWT.js} +2 -2
  258. package/dist/{rainfallTimeCurve-dOfq4IKr.js → rainfallTimeCurve-D7UHAW7B.js} +3 -3
  259. package/dist/{rainfallTimeCurve-Ce8eRvv6.cjs → rainfallTimeCurve-VUFDrlaJ.cjs} +1 -1
  260. package/dist/{rangeLin-GOVFLiyl.cjs → rangeLin-BCy_aU2O.cjs} +1 -1
  261. package/dist/{rangeLin-CXrCb7e3.js → rangeLin-CWkY4AVF.js} +21 -21
  262. package/dist/{realtimeEvolutionMap-VApbSWKk.cjs → realtimeEvolutionMap-CpOZ-K90.cjs} +1 -1
  263. package/dist/{realtimeEvolutionMap-CLhVGzzZ.js → realtimeEvolutionMap-midbOpQ_.js} +2 -2
  264. package/dist/{regionBar-DOkzOqR4.cjs → regionBar-BO8d6Gfr.cjs} +1 -1
  265. package/dist/{regionBar-CgCQBHYm.js → regionBar-ClY6Vcp0.js} +2 -2
  266. package/dist/{request-CsLYkQ1F.js → request-DHoyVWU-.js} +13 -13
  267. package/dist/{request-DBDym05o.cjs → request-Wvyc5KfO.cjs} +1 -1
  268. package/dist/{retainer1-D2ORoyPc.js → retainer1-C074kiSG.js} +3 -3
  269. package/dist/{retainer1-BihlkLkk.cjs → retainer1-fPoh6UWL.cjs} +1 -1
  270. package/dist/{retainer2-89gF8O00.js → retainer2-D26SOrnE.js} +3 -3
  271. package/dist/{retainer2-5-qgDYHt.cjs → retainer2-DQffbiOL.cjs} +1 -1
  272. package/dist/{retainerRecordList-ZukSm42U.cjs → retainerRecordList-17lNzhYY.cjs} +1 -1
  273. package/dist/{retainerRecordList-B7oZOPiz.js → retainerRecordList-CMrtXtg0.js} +2 -2
  274. package/dist/{retainerRecordListAPP-CJifqoYV.js → retainerRecordListAPP-BVdG5XNP.js} +3 -3
  275. package/dist/{retainerRecordListAPP-C3ghAm55.cjs → retainerRecordListAPP-Dv07T1sM.cjs} +1 -1
  276. package/dist/{ringTopN-DEWE8OKA.js → ringTopN-D8fLY5hp.js} +2 -2
  277. package/dist/{ringTopN-BKFTI8w3.cjs → ringTopN-DfEl45ch.cjs} +1 -1
  278. package/dist/{riskRegionTable-Dg-ZfEl1.cjs → riskRegionTable-DFj8c8Hv.cjs} +1 -1
  279. package/dist/{riskRegionTable-DDWPmzK4.js → riskRegionTable-YottkGcg.js} +13 -13
  280. package/dist/{sankey-CjCzdx5A.js → sankey-D-C9WSeH.js} +8 -8
  281. package/dist/{sankey-CVIFo2TP.cjs → sankey-D-fUhpIU.cjs} +1 -1
  282. package/dist/{scd-ExZtelyF.js → scd-CasvRFjo.js} +2 -2
  283. package/dist/{scd-D7vwm2So.cjs → scd-DNoPBk6l.cjs} +1 -1
  284. package/dist/{sideMenu-9YGvznYC.js → sideMenu-C0wdN7VA.js} +2 -2
  285. package/dist/{sideMenu-LL4XLBcW.cjs → sideMenu-CVxLfq_Q.cjs} +1 -1
  286. package/dist/{slopeStability-BeoNqhaA.cjs → slopeStability-B-YjvDTE.cjs} +1 -1
  287. package/dist/{slopeStability-BRVBekjo.js → slopeStability-B5mssi6B.js} +20 -20
  288. package/dist/{speedCurve-DJUY_EGs.js → speedCurve-BDW6iwb5.js} +2 -2
  289. package/dist/{speedCurve-DLuFWpeb.cjs → speedCurve-D_ZbiTc0.cjs} +1 -1
  290. package/dist/{stackedBar-W-rgbty6.cjs → stackedBar-CW8BzUQc.cjs} +1 -1
  291. package/dist/{stackedBar-DkjXvEyH.js → stackedBar-UfQPMmu_.js} +9 -9
  292. package/dist/{stressFilterBar-FmqkdIl5.js → stressFilterBar-B4qAx5bg.js} +2 -2
  293. package/dist/{stressFilterBar-D02NjLM9.cjs → stressFilterBar-Du1vnYaq.cjs} +1 -1
  294. package/dist/{stressTimeCurve-Ck194Rx4.js → stressTimeCurve-AlnfIJP8.js} +3 -3
  295. package/dist/{stressTimeCurve-CEU3JrfW.cjs → stressTimeCurve-D_Js7Slh.cjs} +1 -1
  296. package/dist/{swiper-CM54onRz.cjs → swiper-CkkB3IUt.cjs} +1 -1
  297. package/dist/{swiper-DGAjlGUa.js → swiper-Q7RLo5sT.js} +49 -51
  298. package/dist/{terminalConfigList-DmIncQe8.js → terminalConfigList-D_Ey_hOB.js} +2 -2
  299. package/dist/{terminalConfigList-hy2uUsJe.cjs → terminalConfigList-lG7Guswq.cjs} +1 -1
  300. package/dist/{terminalList-9qcAM4LG.js → terminalList-BiS8IqVU.js} +2 -2
  301. package/dist/{terminalList-C6DxUrb2.cjs → terminalList-DsQfZkLH.cjs} +1 -1
  302. package/dist/{terminalListAPP-Dl5MpCjB.js → terminalListAPP-C_oAW2DY.js} +3 -3
  303. package/dist/{terminalListAPP-RYLAuqiK.cjs → terminalListAPP-Die7Iis9.cjs} +1 -1
  304. package/dist/{textbox-GG4d1QIy.cjs → textbox-DtwW5kQK.cjs} +1 -1
  305. package/dist/{textbox-CHkPlSAX.js → textbox-M7oHdxop.js} +2 -2
  306. package/dist/{timeQueryBar-B_sNNLNx.cjs → timeQueryBar-BST1N_pA.cjs} +1 -1
  307. package/dist/{timeQueryBar-4KSmgROW.js → timeQueryBar-D72U8KfL.js} +1 -1
  308. package/dist/{timeSeries-C6jp_8BG.cjs → timeSeries-DdrD6BXI.cjs} +1 -1
  309. package/dist/{timeSeries-CgJ0SIKo.js → timeSeries-kOLJD8jS.js} +3 -3
  310. package/dist/{timeSeriesCurve-TMqcdmQk.js → timeSeriesCurve-B7jHBbab.js} +3 -3
  311. package/dist/{timeSeriesCurve-CH12QzSV.cjs → timeSeriesCurve-CemFc-kT.cjs} +1 -1
  312. package/dist/{toggleBtn-DQd4gNtX.cjs → toggleBtn-BVJD8hdP.cjs} +1 -1
  313. package/dist/{toggleBtn-4pgNSMG6.js → toggleBtn-l0gcVWhL.js} +2 -2
  314. package/dist/{trajectoryConfigPanel-BG3SSwn9.js → trajectoryConfigPanel-BvjQNU8d.js} +1 -1
  315. package/dist/{trajectoryConfigPanel-Bw1VrV-D.cjs → trajectoryConfigPanel-p9RwKXye.cjs} +1 -1
  316. package/dist/{trajectoryScatter-CEN_a_hP.js → trajectoryScatter-D0X0MuO_.js} +24 -24
  317. package/dist/{trajectoryScatter-YyQc-_lS.cjs → trajectoryScatter-DUF9rbQZ.cjs} +1 -1
  318. package/dist/{universalConfigPanel-DXs2cr1a.cjs → universalConfigPanel-Cuy_d2Fi.cjs} +1 -1
  319. package/dist/{universalConfigPanel-DM-AnPb9.js → universalConfigPanel-G_SwTzLS.js} +1 -1
  320. package/dist/{universalTable-zF3jltzT.cjs → universalTable-C6TQyu10.cjs} +1 -1
  321. package/dist/{universalTable-BqhsfcZp.js → universalTable-CLytqIJ-.js} +2 -2
  322. package/dist/{video-Dq1cVS0l.cjs → video-BuCsJa2J.cjs} +1 -1
  323. package/dist/{video-D1iN2V0C.js → video-CLp-qmhh.js} +2 -2
  324. package/dist/{videoMonitor-hkuvSmn4.js → videoMonitor-BHFy7nV7.js} +10 -10
  325. package/dist/{videoMonitor-B_1M-KcU.cjs → videoMonitor-DtASZV-Y.cjs} +1 -1
  326. package/dist/{vlu-0SrsCMT-.cjs → vlu-aDDyx47b.cjs} +1 -1
  327. package/dist/{vlu-K66RvuKO.js → vlu-dvnZmwrq.js} +2 -2
  328. package/dist/{warningOverview-BRKnU2qJ.js → warningOverview-BWNvhGEr.js} +3 -3
  329. package/dist/{warningOverview-DE4mZJtA.cjs → warningOverview-G5uze01-.cjs} +1 -1
  330. package/dist/{weather-DXSwe2wL.js → weather-B7dkVE6k.js} +2 -2
  331. package/dist/{weather-Cc-DzSlJ.cjs → weather-DOAZCxta.cjs} +1 -1
  332. package/dist/{windLin-BpJaU1Or.js → windLin-DbHtg5K4.js} +2 -2
  333. package/dist/{windLin-BWa_lMdL.cjs → windLin-k8OA6Yul.cjs} +1 -1
  334. package/package.json +1 -1
  335. package/dist/mixiotObjectListApi-DVYddjqi.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";var pe=Object.defineProperty,he=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols,be=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,_e=Reflect.get;var J=(v,a,s)=>a in v?pe(v,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):v[a]=s,Q=(v,a)=>{for(var s in a||(a={}))ye.call(a,s)&&J(v,s,a[s]);if(Z)for(var s of Z(a))Ce.call(a,s)&&J(v,s,a[s]);return v},X=(v,a)=>he(v,ge(a));var ee=(v,a,s)=>_e(be(v),s,a);var H=(v,a,s)=>new Promise((V,g)=>{var p=x=>{try{j(s.next(x))}catch(D){g(D)}},w=x=>{try{j(s.throw(x))}catch(D){g(D)}},j=x=>x.done?V(x.value):Promise.resolve(x.value).then(p,w);j((s=s.apply(v,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),q=require("./index-D7PZNHF4.cjs");require("element-plus");const xe=require("./EChartComponentBase-C4s5HSfS.cjs"),te=require("@element-plus/icons-vue"),oe=require("./ele-lin-icon-Dke_1AmT.cjs"),Se={class:"chart-panel"},Ee={class:"panel-header"},we={class:"header-left"},Ne={class:"panel-title"},ke={class:"header-right"},Ve={class:"indicator-selector-panel"},je={class:"indicator-select-all"},Ae={class:"legend-bar"},Ie={class:"legend-items"},Me=["onClick"],De={class:"legend-text"},Le=["id"],Oe={DEFAULT_ICON:oe.DEFAULT_ICON,ACTIVE_ICON:oe.ACTIVE_ICON,NAME_CN:"应力/压力时序曲线",NAME_EN:"Stress Time Curve",ORDER:2,PLATFORM:["pc","screen"]},Te={title:{value:"应力/压力 时序演变曲线",type:"string",label:"标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleColor:{value:"#1c3d90",type:"color",label:"标题颜色"},gridColor:{value:"#f0f0f0",type:"color",label:"网格线颜色"},lineWidth:{value:"2.5",type:"select",label:"曲线粗细",options:[{label:"细 (1px)",value:"1"},{label:"标准 (2.5px)",value:"2.5"},{label:"粗 (4px)",value:"4"}]},smoothLine:{value:"true",type:"select",label:"曲线平滑",options:[{label:"平滑",value:"true"},{label:"折线",value:"false"}]},yAxisLabel:{value:"kPa",type:"string",label:"Y轴标签"},linkChannel:{value:"stress",type:"select",label:"component.linkChannel",options:[{label:"地下应力监测",value:"stress"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},$e=[{name:"应力(kPa)",fv:"",object_id:"",color:"#5470c6",device:""}],qe=["name","fv","object_id","color","device"],Be=["mosaic","statistics","calculate"],Ye={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Pe=50,Re={DEFAULT:Oe,OPTIONS:Te,DATA:$e,PARAMS:qe,SOURCE:Be,ITEMS:Pe,COMMON:Ye},Fe=t.defineComponent(X(Q({},Re),{__name:"stressTimeCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){const a=v,s=new Map,V=new Map,g=t.ref(new Map),p=t.ref([]);let w=0,j=null;const x=t.computed(()=>{var n,e;return(e=(n=a.conf)==null?void 0:n.common)!=null&&e.object_id?!0:Y.value.some(l=>!!l.object_id)}),D=t.computed(()=>x.value||p.value.length>0);class B extends xe.EChartComponentBase{extractStyles(){var r,f,m,o,d,c,u,E,y,A,N,O;const e=(r=this.props.conf)==null?void 0:r.options,l=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"stress",i=((m=e==null?void 0:e.customChannel)==null?void 0:m.value)||"";return{bgColor:((o=e==null?void 0:e.bgColor)==null?void 0:o.value)||"#f5f7fa",panelBgColor:((d=e==null?void 0:e.panelBgColor)==null?void 0:d.value)||"#ffffff",textColor:((c=e==null?void 0:e.textColor)==null?void 0:c.value)||"#333333",titleColor:((u=e==null?void 0:e.titleColor)==null?void 0:u.value)||"#1c3d90",gridColor:((E=e==null?void 0:e.gridColor)==null?void 0:E.value)||"#f0f0f0",lineWidth:parseFloat(((y=e==null?void 0:e.lineWidth)==null?void 0:y.value)||"2.5"),smoothLine:(((A=e==null?void 0:e.smoothLine)==null?void 0:A.value)||"true")==="true",yAxisLabel:((N=e==null?void 0:e.yAxisLabel)==null?void 0:N.value)||"kPa",title:((O=e==null?void 0:e.title)==null?void 0:O.value)||"应力/压力 时序演变曲线",linkChannel:l==="custom"&&i?i:l}}getChartOption(){return R(this.Style.value)}needsHistoryData(){return!1}onPreview(){return H(this,null,function*(){var l,i,r,f,m;const e=((i=(l=this.props.conf)==null?void 0:l.common)==null?void 0:i.object_id)||((m=(f=(r=this.props.conf)==null?void 0:r.data)==null?void 0:f[0])==null?void 0:m.object_id)||"";if(e&&p.value.length===0){p.value=[e],yield F([e]);return}yield ee(B.prototype,this,"onPreview").call(this)})}setSocketData(e){var m;if(!e)return;const l=e.object_id||e.objectId||"";if(l&&p.value.length>0&&!p.value.includes(l))return;const i=e.datetime?e.datetime.split(".")[0]:q.dayjs().format("YYYY/MM/DD HH:mm"),r=((m=this.props.conf)==null?void 0:m.data)||[],f=p.value.length>1;r.forEach(o=>{if(o.device){const d=this.extractDataValue(e,o.device);if(d!=null&&String(d).trim()){const c=String(d).trim();f&&l?g.value.set(l,c):(V.set(o.name||o.fv,c),l&&g.value.set(l,c))}}}),r.forEach(o=>{if(!o.fv)return;const d=this.extractDataValue(e,o.fv);if(d==null)return;const c=f&&l?`${l}:${o.name||o.fv}`:o.name||o.fv,u=s.get(c);u?(u.times.push(i),u.values.push(parseFloat(d)),u.times.length>200&&(u.times.shift(),u.values.shift())):s.set(c,{times:[i],values:[parseFloat(d)]})}),this.chartObj&&this.chartObj.setOption(R(this.Style.value),!1)}onLinkEvent(e){de(e)}}const _=new B(a,"stressTimeCurve");_.setupLifecycle();const L=_.getStyle(),ne=_.getEchartId(),Y=t.computed(()=>{var n;return((n=a.conf)==null?void 0:n.data)||[]}),b=t.computed(()=>{const n=new Set;return Y.value.filter(e=>e.name&&!n.has(e.name)?(n.add(e.name),!0):!1)}),h=t.ref([]);t.watch(b,n=>{n.length>0&&h.value.length===0&&(h.value=n.map(e=>e.fv||e.name))},{immediate:!0});const U=t.computed({get:()=>b.value.length>0&&h.value.length===b.value.length,set:()=>{}}),le=t.computed(()=>{const n=h.value.length;return n>0&&n<b.value.length}),ae=t.computed(()=>{if(h.value.length===0)return"选择监测指标";if(h.value.length===b.value.length)return"全部指标已选";const e=b.value.filter(l=>h.value.includes(l.fv||l.name)).map(l=>l.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),se=n=>{h.value=n?b.value.map(e=>e.fv||e.name):[],I()},S=t.ref(new Set),re=t.computed(()=>{if(p.value.length>1){const e=[];for(const l of p.value){const i=g.value.get(l)||l.slice(-6);b.value.filter(r=>h.value.includes(r.fv||r.name)).forEach(r=>{e.push({name:`${i}-${r.name}`,color:r.color||"#5470c6",visible:!S.value.has(`${l}:${r.name}`)})})}return e}return b.value.filter(e=>h.value.includes(e.fv||e.name)).map(e=>{const l=V.get(e.name)||g.value.values().next().value||"";return{name:l?`${l}-${e.name}`:e.name,color:e.color||"#5470c6",visible:!S.value.has(e.name)}})}),ie=n=>{const e=n.name.includes("-")?n.name.split("-").slice(1).join("-"):n.name;S.value.has(e)?S.value.delete(e):S.value.add(e),S.value=new Set(S.value),I()},ce=t.computed(()=>({backgroundColor:L.value.bgColor,color:L.value.textColor,"--title-color":L.value.titleColor})),P=()=>{s.clear();const n=q.dayjs();Y.value.forEach((e,l)=>{const i=[],r=[],f=8.5+l*2,m=1.5;for(let o=0;o<100;o++)i.push(n.subtract((100-o)*15,"minute").format("YYYY/MM/DD HH:mm")),r.push(+(f+Math.sin(o/8)*m+(Math.random()-.5)*.3).toFixed(2));s.set(e.name,{times:i,values:r})})},R=n=>{if(a.mode!=="edit"&&(!D.value||s.size===0))return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};let e=[];for(const[,o]of s)o.times.length>e.length&&(e=o.times);!e.length&&a.mode==="edit"&&(e=Array.from({length:50},(o,d)=>q.dayjs().subtract((50-d)*15,"minute").format("YYYY/MM/DD HH:mm")));const l={},i=p.value.length>1,r=["#5470c6","#ee6666","#fac858","#91cc75","#73c0de","#3ba272","#fc8452","#9a60b4"];let f=0,m=[];if(i&&a.mode!=="edit")for(const o of p.value){const d=g.value.get(o)||o.slice(-6);b.value.filter(c=>h.value.includes(c.fv||c.name)).forEach(c=>{const u=`${o}:${c.name}`,E=`${d}-${c.name}`,y=c.color||r[f%r.length];l[E]=!S.value.has(u);const A=s.get(u);m.push({name:E,type:"line",smooth:n.smoothLine,showSymbol:!1,data:(A==null?void 0:A.values)||[],lineStyle:{color:y,width:n.lineWidth,type:"solid"},itemStyle:{color:y}}),f++})}else m=b.value.filter(o=>h.value.includes(o.fv||o.name)).map(o=>{const d=V.get(o.name)||g.value.values().next().value||"",c=d?`${d}-${o.name}`:o.name;l[c]=!S.value.has(o.name);const u=s.get(o.name);return{name:c,type:"line",smooth:n.smoothLine,showSymbol:!1,data:(u==null?void 0:u.values)||[],lineStyle:{color:o.color||"#5470c6",width:n.lineWidth,type:"solid"},itemStyle:{color:o.color||"#5470c6"}}});return{tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#1c3d90",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},legend:{show:!1,selected:l},grid:{top:15,right:40,bottom:60,left:60},xAxis:{type:"category",data:e,axisLine:{lineStyle:{color:n.gridColor}},axisLabel:{color:n.textColor,fontSize:11,rotate:15,interval:"auto",formatter:o=>{var d;if(o&&o.length>6){const c=o.split(" ");return(((d=c[0])==null?void 0:d.split("/").slice(1).join("/"))||"")+(c[1]?" "+c[1]:"")}return o}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",name:n.yAxisLabel,scale:!0,axisLine:{show:!1},axisLabel:{color:n.textColor,fontSize:11},splitLine:{lineStyle:{color:n.gridColor,type:"dashed"}}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",height:18,bottom:8,borderColor:"transparent",backgroundColor:"#f0f0f0",fillerColor:"rgba(28, 61, 144, 0.2)",handleStyle:{color:"#1c3d90"},textStyle:{fontSize:10}}],series:m}},I=()=>{const n=_.getChartInstance();n&&n.setOption(R(L.value),!0)},ue=()=>{const n=_.getChartInstance();if(!n)return;const e=document.createElement("a");e.href=n.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`应力压力时序曲线_${q.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},de=n=>{const{payload:e}=n;if(!e)return;if(e.type==="filter"){e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&(j={start_time:e.dateRange[0],end_time:e.dateRange[1]});const i=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId?[e.objectId]:[];i.length>0&&(p.value=i,F(i)),(a.mode==="edit"||i.length===0)&&(P(),I());return}const l=e.objectId||e.object_id;l&&(p.value=[l],F([l]))},F=n=>H(null,null,function*(){var c;if(!n.length||a.mode!=="preview")return;const e=++w;s.clear(),g.value.clear(),V.clear();const l=(c=_.session)==null?void 0:c.value;if(!l)return;const i=a.conf.id;l.componentRequests&&l.componentRequests.delete(i),typeof l.unsubscribeComponent=="function"&&l.unsubscribeComponent(i);const{data:r,common:f}=a.conf,m=n.length>1;j&&(f.historyTimeRange=j),a.conf.options||(a.conf.options={});const o=a.conf.options.points,d=Object.prototype.hasOwnProperty.call(a.conf.options,"points");(!o||Number(o)<24)&&(a.conf.options.points=24);for(const u of n){if(w!==e)return;Array.isArray(r)&&r.forEach(y=>{y.object_id=u}),f.multiObject||(f.object_id=u);try{const y=yield Promise.resolve().then(()=>require("./history-D_NO9ojb.cjs")),N=yield new y.default().getHistoryData(a,"stressTimeCurve");if(w!==e)return;const O=(N==null?void 0:N.history)||(Array.isArray(N)?N:[]);O.length>0&&r.forEach((C,fe)=>{if(!C.fv)return;const W=O[fe];if(!Array.isArray(W))return;const me=[...W].sort((k,T)=>new Date(k.time||k.datetime||"").getTime()-new Date(T.time||T.datetime||"").getTime()),ve=m?`${u}:${C.name||C.fv}`:C.name||C.fv,z=[],G=[];me.forEach(k=>{const T=k.time||k.datetime,K=k[C.fv];if(T&&K!=null){const M=parseFloat(K);isNaN(M)||(z.push(T.split(".")[0]),G.push(M))}if(C.device&&k[C.device]){const M=String(k[C.device]);m||V.set(C.name||C.fv,M),g.value.set(u,M)}}),z.length>0&&s.set(ve,{times:z,values:G})})}catch(y){console.warn("[应力时序曲线] 历史数据获取失败:",y)}if(w!==e)return;const E=_.getSource();_.subscribeBySource(E,u)}d?a.conf.options.points=o:delete a.conf.options.points,w===e&&(I(),l.registerComponent({id:i,request:null,onUpdate:(u,E)=>{w===e&&u==="realtime"&&_.setSocketData(E)}}))});return t.onMounted(()=>{a.mode==="edit"&&P(),setTimeout(()=>{var n;return(n=_.getChartInstance())==null?void 0:n.resize()},200)}),t.watch(()=>a.conf,()=>{a.mode==="edit"&&(P(),I())},{deep:!0}),(n,e)=>{const l=$.ElIcon,i=$.ElButton,r=$.ElCheckbox,f=$.ElCheckboxGroup,m=$.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"stress-time-curve",style:t.normalizeStyle(ce.value)},[t.createElementVNode("div",Se,[t.createElementVNode("div",Ee,[t.createElementVNode("div",we,[e[2]||(e[2]=t.createElementVNode("span",{class:"indicator-dot"},null,-1)),t.createElementVNode("span",Ne,"📈 "+t.toDisplayString(t.unref(L).title),1)]),t.createElementVNode("div",ke,[t.createVNode(m,{placement:"bottom-start",width:220,trigger:"click"},{reference:t.withCtx(()=>[t.createVNode(i,{size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(ae.value)+" ",1),t.createVNode(l,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(t.unref(te.ArrowDown))]),_:1})]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",Ve,[t.createElementVNode("div",je,[t.createVNode(r,{modelValue:U.value,"onUpdate:modelValue":e[0]||(e[0]=o=>U.value=o),indeterminate:le.value,onChange:se},{default:t.withCtx(()=>[...e[3]||(e[3]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(f,{modelValue:h.value,"onUpdate:modelValue":e[1]||(e[1]=o=>h.value=o),onChange:I},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,o=>(t.openBlock(),t.createBlock(r,{key:o.fv,label:o.fv,class:"indicator-checkbox-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t.createVNode(i,{size:"small",onClick:ue},{default:t.withCtx(()=>[t.createVNode(l,null,{default:t.withCtx(()=>[t.createVNode(t.unref(te.Download))]),_:1}),e[4]||(e[4]=t.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),t.createElementVNode("div",Ae,[t.createElementVNode("div",Ie,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(re.value,o=>(t.openBlock(),t.createElementBlock("span",{key:o.name,class:t.normalizeClass(["legend-item",{disabled:!o.visible}]),onClick:d=>ie(o)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:o.visible?o.color:"#ccc",borderTopStyle:"solid"})},null,4),t.createElementVNode("span",De,t.toDisplayString(o.name),1)],10,Me))),128))])]),t.createElementVNode("div",{id:t.unref(ne),class:"chart-container"},null,8,Le)]),t.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),ze=q._export_sfc(Fe,[["__scopeId","data-v-4fb41cf2"]]);exports.default=ze;
1
+ "use strict";var pe=Object.defineProperty,he=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols,be=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,_e=Reflect.get;var J=(v,a,s)=>a in v?pe(v,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):v[a]=s,Q=(v,a)=>{for(var s in a||(a={}))ye.call(a,s)&&J(v,s,a[s]);if(Z)for(var s of Z(a))Ce.call(a,s)&&J(v,s,a[s]);return v},X=(v,a)=>he(v,ge(a));var ee=(v,a,s)=>_e(be(v),s,a);var H=(v,a,s)=>new Promise((V,g)=>{var p=x=>{try{j(s.next(x))}catch(D){g(D)}},w=x=>{try{j(s.throw(x))}catch(D){g(D)}},j=x=>x.done?V(x.value):Promise.resolve(x.value).then(p,w);j((s=s.apply(v,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/popover/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const t=require("vue"),q=require("./index-BdWR_FTA.cjs");require("element-plus");const xe=require("./EChartComponentBase-ejDV5NEw.cjs"),te=require("@element-plus/icons-vue"),oe=require("./ele-lin-icon-Dke_1AmT.cjs"),Se={class:"chart-panel"},Ee={class:"panel-header"},we={class:"header-left"},Ne={class:"panel-title"},ke={class:"header-right"},Ve={class:"indicator-selector-panel"},je={class:"indicator-select-all"},Ae={class:"legend-bar"},Ie={class:"legend-items"},Me=["onClick"],De={class:"legend-text"},Le=["id"],Oe={DEFAULT_ICON:oe.DEFAULT_ICON,ACTIVE_ICON:oe.ACTIVE_ICON,NAME_CN:"应力/压力时序曲线",NAME_EN:"Stress Time Curve",ORDER:2,PLATFORM:["pc","screen"]},Te={title:{value:"应力/压力 时序演变曲线",type:"string",label:"标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleColor:{value:"#1c3d90",type:"color",label:"标题颜色"},gridColor:{value:"#f0f0f0",type:"color",label:"网格线颜色"},lineWidth:{value:"2.5",type:"select",label:"曲线粗细",options:[{label:"细 (1px)",value:"1"},{label:"标准 (2.5px)",value:"2.5"},{label:"粗 (4px)",value:"4"}]},smoothLine:{value:"true",type:"select",label:"曲线平滑",options:[{label:"平滑",value:"true"},{label:"折线",value:"false"}]},yAxisLabel:{value:"kPa",type:"string",label:"Y轴标签"},linkChannel:{value:"stress",type:"select",label:"component.linkChannel",options:[{label:"地下应力监测",value:"stress"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},$e=[{name:"应力(kPa)",fv:"",object_id:"",color:"#5470c6",device:""}],qe=["name","fv","object_id","color","device"],Be=["mosaic","statistics","calculate"],Ye={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},Pe=50,Re={DEFAULT:Oe,OPTIONS:Te,DATA:$e,PARAMS:qe,SOURCE:Be,ITEMS:Pe,COMMON:Ye},Fe=t.defineComponent(X(Q({},Re),{__name:"stressTimeCurve",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){const a=v,s=new Map,V=new Map,g=t.ref(new Map),p=t.ref([]);let w=0,j=null;const x=t.computed(()=>{var n,e;return(e=(n=a.conf)==null?void 0:n.common)!=null&&e.object_id?!0:Y.value.some(l=>!!l.object_id)}),D=t.computed(()=>x.value||p.value.length>0);class B extends xe.EChartComponentBase{extractStyles(){var r,f,m,o,d,c,u,E,y,A,N,O;const e=(r=this.props.conf)==null?void 0:r.options,l=((f=e==null?void 0:e.linkChannel)==null?void 0:f.value)||"stress",i=((m=e==null?void 0:e.customChannel)==null?void 0:m.value)||"";return{bgColor:((o=e==null?void 0:e.bgColor)==null?void 0:o.value)||"#f5f7fa",panelBgColor:((d=e==null?void 0:e.panelBgColor)==null?void 0:d.value)||"#ffffff",textColor:((c=e==null?void 0:e.textColor)==null?void 0:c.value)||"#333333",titleColor:((u=e==null?void 0:e.titleColor)==null?void 0:u.value)||"#1c3d90",gridColor:((E=e==null?void 0:e.gridColor)==null?void 0:E.value)||"#f0f0f0",lineWidth:parseFloat(((y=e==null?void 0:e.lineWidth)==null?void 0:y.value)||"2.5"),smoothLine:(((A=e==null?void 0:e.smoothLine)==null?void 0:A.value)||"true")==="true",yAxisLabel:((N=e==null?void 0:e.yAxisLabel)==null?void 0:N.value)||"kPa",title:((O=e==null?void 0:e.title)==null?void 0:O.value)||"应力/压力 时序演变曲线",linkChannel:l==="custom"&&i?i:l}}getChartOption(){return R(this.Style.value)}needsHistoryData(){return!1}onPreview(){return H(this,null,function*(){var l,i,r,f,m;const e=((i=(l=this.props.conf)==null?void 0:l.common)==null?void 0:i.object_id)||((m=(f=(r=this.props.conf)==null?void 0:r.data)==null?void 0:f[0])==null?void 0:m.object_id)||"";if(e&&p.value.length===0){p.value=[e],yield F([e]);return}yield ee(B.prototype,this,"onPreview").call(this)})}setSocketData(e){var m;if(!e)return;const l=e.object_id||e.objectId||"";if(l&&p.value.length>0&&!p.value.includes(l))return;const i=e.datetime?e.datetime.split(".")[0]:q.dayjs().format("YYYY/MM/DD HH:mm"),r=((m=this.props.conf)==null?void 0:m.data)||[],f=p.value.length>1;r.forEach(o=>{if(o.device){const d=this.extractDataValue(e,o.device);if(d!=null&&String(d).trim()){const c=String(d).trim();f&&l?g.value.set(l,c):(V.set(o.name||o.fv,c),l&&g.value.set(l,c))}}}),r.forEach(o=>{if(!o.fv)return;const d=this.extractDataValue(e,o.fv);if(d==null)return;const c=f&&l?`${l}:${o.name||o.fv}`:o.name||o.fv,u=s.get(c);u?(u.times.push(i),u.values.push(parseFloat(d)),u.times.length>200&&(u.times.shift(),u.values.shift())):s.set(c,{times:[i],values:[parseFloat(d)]})}),this.chartObj&&this.chartObj.setOption(R(this.Style.value),!1)}onLinkEvent(e){de(e)}}const _=new B(a,"stressTimeCurve");_.setupLifecycle();const L=_.getStyle(),ne=_.getEchartId(),Y=t.computed(()=>{var n;return((n=a.conf)==null?void 0:n.data)||[]}),b=t.computed(()=>{const n=new Set;return Y.value.filter(e=>e.name&&!n.has(e.name)?(n.add(e.name),!0):!1)}),h=t.ref([]);t.watch(b,n=>{n.length>0&&h.value.length===0&&(h.value=n.map(e=>e.fv||e.name))},{immediate:!0});const U=t.computed({get:()=>b.value.length>0&&h.value.length===b.value.length,set:()=>{}}),le=t.computed(()=>{const n=h.value.length;return n>0&&n<b.value.length}),ae=t.computed(()=>{if(h.value.length===0)return"选择监测指标";if(h.value.length===b.value.length)return"全部指标已选";const e=b.value.filter(l=>h.value.includes(l.fv||l.name)).map(l=>l.name).join(", ");return e.length>14?e.substring(0,14)+"...":e}),se=n=>{h.value=n?b.value.map(e=>e.fv||e.name):[],I()},S=t.ref(new Set),re=t.computed(()=>{if(p.value.length>1){const e=[];for(const l of p.value){const i=g.value.get(l)||l.slice(-6);b.value.filter(r=>h.value.includes(r.fv||r.name)).forEach(r=>{e.push({name:`${i}-${r.name}`,color:r.color||"#5470c6",visible:!S.value.has(`${l}:${r.name}`)})})}return e}return b.value.filter(e=>h.value.includes(e.fv||e.name)).map(e=>{const l=V.get(e.name)||g.value.values().next().value||"";return{name:l?`${l}-${e.name}`:e.name,color:e.color||"#5470c6",visible:!S.value.has(e.name)}})}),ie=n=>{const e=n.name.includes("-")?n.name.split("-").slice(1).join("-"):n.name;S.value.has(e)?S.value.delete(e):S.value.add(e),S.value=new Set(S.value),I()},ce=t.computed(()=>({backgroundColor:L.value.bgColor,color:L.value.textColor,"--title-color":L.value.titleColor})),P=()=>{s.clear();const n=q.dayjs();Y.value.forEach((e,l)=>{const i=[],r=[],f=8.5+l*2,m=1.5;for(let o=0;o<100;o++)i.push(n.subtract((100-o)*15,"minute").format("YYYY/MM/DD HH:mm")),r.push(+(f+Math.sin(o/8)*m+(Math.random()-.5)*.3).toFixed(2));s.set(e.name,{times:i,values:r})})},R=n=>{if(a.mode!=="edit"&&(!D.value||s.size===0))return{xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};let e=[];for(const[,o]of s)o.times.length>e.length&&(e=o.times);!e.length&&a.mode==="edit"&&(e=Array.from({length:50},(o,d)=>q.dayjs().subtract((50-d)*15,"minute").format("YYYY/MM/DD HH:mm")));const l={},i=p.value.length>1,r=["#5470c6","#ee6666","#fac858","#91cc75","#73c0de","#3ba272","#fc8452","#9a60b4"];let f=0,m=[];if(i&&a.mode!=="edit")for(const o of p.value){const d=g.value.get(o)||o.slice(-6);b.value.filter(c=>h.value.includes(c.fv||c.name)).forEach(c=>{const u=`${o}:${c.name}`,E=`${d}-${c.name}`,y=c.color||r[f%r.length];l[E]=!S.value.has(u);const A=s.get(u);m.push({name:E,type:"line",smooth:n.smoothLine,showSymbol:!1,data:(A==null?void 0:A.values)||[],lineStyle:{color:y,width:n.lineWidth,type:"solid"},itemStyle:{color:y}}),f++})}else m=b.value.filter(o=>h.value.includes(o.fv||o.name)).map(o=>{const d=V.get(o.name)||g.value.values().next().value||"",c=d?`${d}-${o.name}`:o.name;l[c]=!S.value.has(o.name);const u=s.get(o.name);return{name:c,type:"line",smooth:n.smoothLine,showSymbol:!1,data:(u==null?void 0:u.values)||[],lineStyle:{color:o.color||"#5470c6",width:n.lineWidth,type:"solid"},itemStyle:{color:o.color||"#5470c6"}}});return{tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.96)",borderColor:"#1c3d90",borderWidth:1,textStyle:{color:"#333",fontSize:12},axisPointer:{type:"cross"}},legend:{show:!1,selected:l},grid:{top:15,right:40,bottom:60,left:60},xAxis:{type:"category",data:e,axisLine:{lineStyle:{color:n.gridColor}},axisLabel:{color:n.textColor,fontSize:11,rotate:15,interval:"auto",formatter:o=>{var d;if(o&&o.length>6){const c=o.split(" ");return(((d=c[0])==null?void 0:d.split("/").slice(1).join("/"))||"")+(c[1]?" "+c[1]:"")}return o}},axisTick:{show:!1},boundaryGap:!1},yAxis:{type:"value",name:n.yAxisLabel,scale:!0,axisLine:{show:!1},axisLabel:{color:n.textColor,fontSize:11},splitLine:{lineStyle:{color:n.gridColor,type:"dashed"}}},dataZoom:[{type:"inside",xAxisIndex:0,filterMode:"none"},{type:"slider",height:18,bottom:8,borderColor:"transparent",backgroundColor:"#f0f0f0",fillerColor:"rgba(28, 61, 144, 0.2)",handleStyle:{color:"#1c3d90"},textStyle:{fontSize:10}}],series:m}},I=()=>{const n=_.getChartInstance();n&&n.setOption(R(L.value),!0)},ue=()=>{const n=_.getChartInstance();if(!n)return;const e=document.createElement("a");e.href=n.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),e.download=`应力压力时序曲线_${q.dayjs().format("YYYYMMDDHHmmss")}.png`,e.click()},de=n=>{const{payload:e}=n;if(!e)return;if(e.type==="filter"){e.dateRange&&Array.isArray(e.dateRange)&&e.dateRange.length===2&&(j={start_time:e.dateRange[0],end_time:e.dateRange[1]});const i=e.objectIds&&e.objectIds.length>0?e.objectIds:e.objectId?[e.objectId]:[];i.length>0&&(p.value=i,F(i)),(a.mode==="edit"||i.length===0)&&(P(),I());return}const l=e.objectId||e.object_id;l&&(p.value=[l],F([l]))},F=n=>H(null,null,function*(){var c;if(!n.length||a.mode!=="preview")return;const e=++w;s.clear(),g.value.clear(),V.clear();const l=(c=_.session)==null?void 0:c.value;if(!l)return;const i=a.conf.id;l.componentRequests&&l.componentRequests.delete(i),typeof l.unsubscribeComponent=="function"&&l.unsubscribeComponent(i);const{data:r,common:f}=a.conf,m=n.length>1;j&&(f.historyTimeRange=j),a.conf.options||(a.conf.options={});const o=a.conf.options.points,d=Object.prototype.hasOwnProperty.call(a.conf.options,"points");(!o||Number(o)<24)&&(a.conf.options.points=24);for(const u of n){if(w!==e)return;Array.isArray(r)&&r.forEach(y=>{y.object_id=u}),f.multiObject||(f.object_id=u);try{const y=yield Promise.resolve().then(()=>require("./history-BNN6YYlw.cjs")),N=yield new y.default().getHistoryData(a,"stressTimeCurve");if(w!==e)return;const O=(N==null?void 0:N.history)||(Array.isArray(N)?N:[]);O.length>0&&r.forEach((C,fe)=>{if(!C.fv)return;const W=O[fe];if(!Array.isArray(W))return;const me=[...W].sort((k,T)=>new Date(k.time||k.datetime||"").getTime()-new Date(T.time||T.datetime||"").getTime()),ve=m?`${u}:${C.name||C.fv}`:C.name||C.fv,z=[],G=[];me.forEach(k=>{const T=k.time||k.datetime,K=k[C.fv];if(T&&K!=null){const M=parseFloat(K);isNaN(M)||(z.push(T.split(".")[0]),G.push(M))}if(C.device&&k[C.device]){const M=String(k[C.device]);m||V.set(C.name||C.fv,M),g.value.set(u,M)}}),z.length>0&&s.set(ve,{times:z,values:G})})}catch(y){console.warn("[应力时序曲线] 历史数据获取失败:",y)}if(w!==e)return;const E=_.getSource();_.subscribeBySource(E,u)}d?a.conf.options.points=o:delete a.conf.options.points,w===e&&(I(),l.registerComponent({id:i,request:null,onUpdate:(u,E)=>{w===e&&u==="realtime"&&_.setSocketData(E)}}))});return t.onMounted(()=>{a.mode==="edit"&&P(),setTimeout(()=>{var n;return(n=_.getChartInstance())==null?void 0:n.resize()},200)}),t.watch(()=>a.conf,()=>{a.mode==="edit"&&(P(),I())},{deep:!0}),(n,e)=>{const l=$.ElIcon,i=$.ElButton,r=$.ElCheckbox,f=$.ElCheckboxGroup,m=$.ElPopover;return t.openBlock(),t.createElementBlock("div",{class:"stress-time-curve",style:t.normalizeStyle(ce.value)},[t.createElementVNode("div",Se,[t.createElementVNode("div",Ee,[t.createElementVNode("div",we,[e[2]||(e[2]=t.createElementVNode("span",{class:"indicator-dot"},null,-1)),t.createElementVNode("span",Ne,"📈 "+t.toDisplayString(t.unref(L).title),1)]),t.createElementVNode("div",ke,[t.createVNode(m,{placement:"bottom-start",width:220,trigger:"click"},{reference:t.withCtx(()=>[t.createVNode(i,{size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(ae.value)+" ",1),t.createVNode(l,{class:"el-icon--right"},{default:t.withCtx(()=>[t.createVNode(t.unref(te.ArrowDown))]),_:1})]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",Ve,[t.createElementVNode("div",je,[t.createVNode(r,{modelValue:U.value,"onUpdate:modelValue":e[0]||(e[0]=o=>U.value=o),indeterminate:le.value,onChange:se},{default:t.withCtx(()=>[...e[3]||(e[3]=[t.createTextVNode(" 全部指标 ",-1)])]),_:1},8,["modelValue","indeterminate"])]),t.createVNode(f,{modelValue:h.value,"onUpdate:modelValue":e[1]||(e[1]=o=>h.value=o),onChange:I},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,o=>(t.openBlock(),t.createBlock(r,{key:o.fv,label:o.fv,class:"indicator-checkbox-item"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t.createVNode(i,{size:"small",onClick:ue},{default:t.withCtx(()=>[t.createVNode(l,null,{default:t.withCtx(()=>[t.createVNode(t.unref(te.Download))]),_:1}),e[4]||(e[4]=t.createElementVNode("span",null,"导出图像",-1))]),_:1})])]),t.createElementVNode("div",Ae,[t.createElementVNode("div",Ie,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(re.value,o=>(t.openBlock(),t.createElementBlock("span",{key:o.name,class:t.normalizeClass(["legend-item",{disabled:!o.visible}]),onClick:d=>ie(o)},[t.createElementVNode("span",{class:"legend-line",style:t.normalizeStyle({borderTopColor:o.visible?o.color:"#ccc",borderTopStyle:"solid"})},null,4),t.createElementVNode("span",De,t.toDisplayString(o.name),1)],10,Me))),128))])]),t.createElementVNode("div",{id:t.unref(ne),class:"chart-container"},null,8,Le)]),t.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),ze=q._export_sfc(Fe,[["__scopeId","data-v-4fb41cf2"]]);exports.default=ze;
@@ -1 +1 @@
1
- "use strict";var y=Object.defineProperty,k=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var g=(l,t,r)=>t in l?y(l,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[t]=r,h=(l,t)=>{for(var r in t||(t={}))S.call(t,r)&&g(l,r,t[r]);if(f)for(var r of f(t))E.call(t,r)&&g(l,r,t[r]);return l},w=(l,t)=>k(l,M(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/carousel/style/css");require("element-plus/es/components/carousel-item/style/css");const e=require("vue");require("html2canvas");const b=require("./BaseComponent-BHUHnLj-.cjs"),L=require("./index-D7PZNHF4.cjs"),B="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e轮播%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-1062.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M1072.93793,113.477011%20C1073.29342,113.477011%201073.58161,113.765196%201073.58161,114.12069%20C1073.58161,114.446559%201073.33945,114.71587%201073.02527,114.758492%20L1072.93793,114.764368%20L1069.9954,114.764368%20C1069.63991,114.764368%201069.35172,114.476183%201069.35172,114.12069%20C1069.35172,113.79482%201069.59388,113.52551%201069.90806,113.482888%20L1069.9954,113.477011%20L1072.93793,113.477011%20Z%20M1075.88046,113.477011%20C1076.23595,113.477011%201076.52414,113.765196%201076.52414,114.12069%20C1076.52414,114.446559%201076.28198,114.71587%201075.9678,114.758492%20L1075.88046,114.764368%20L1075.14483,114.764368%20C1074.78933,114.764368%201074.50115,114.476183%201074.50115,114.12069%20C1074.50115,113.79482%201074.7433,113.52551%201075.05748,113.482888%20L1075.14483,113.477011%20L1075.88046,113.477011%20Z%20M1064.84598,113.477011%20C1065.20147,113.477011%201065.48966,113.765196%201065.48966,114.12069%20C1065.48966,114.446559%201065.2475,114.71587%201064.93332,114.758492%20L1064.84598,114.764368%20L1064.11034,114.764368%20C1063.75485,114.764368%201063.46667,114.476183%201063.46667,114.12069%20C1063.46667,113.79482%201063.70882,113.52551%201064.023,113.482888%20L1064.11034,113.477011%20L1064.84598,113.477011%20Z%20M1078.82299,113.477011%20C1079.17848,113.477011%201079.46667,113.765196%201079.46667,114.12069%20C1079.46667,114.446559%201079.22451,114.71587%201078.91033,114.758492%20L1078.82299,114.764368%20L1078.08736,114.764368%20C1077.73186,114.764368%201077.44368,114.476183%201077.44368,114.12069%20C1077.44368,113.79482%201077.68583,113.52551%201078.00001,113.482888%20L1078.08736,113.477011%20L1078.82299,113.477011%20Z%20M1067.78851,113.477011%20C1068.144,113.477011%201068.43218,113.765196%201068.43218,114.12069%20C1068.43218,114.446559%201068.19003,114.71587%201067.87585,114.758492%20L1067.78851,114.764368%20L1067.05287,114.764368%20C1066.69738,114.764368%201066.4092,114.476183%201066.4092,114.12069%20C1066.4092,113.79482%201066.65135,113.52551%201066.96553,113.482888%20L1067.05287,113.477011%20L1067.78851,113.477011%20Z%20M1078.20996,100.235632%20C1078.90402,100.235632%201079.46667,100.798278%201079.46667,101.492337%20L1079.46667,101.492337%20L1079.46667,111.300766%20C1079.46667,111.994825%201078.90402,112.557471%201078.20996,112.557471%20L1078.20996,112.557471%20L1064.72337,112.557471%20C1064.02931,112.557471%201063.46667,111.994825%201063.46667,111.300766%20L1063.46667,111.300766%20L1063.46667,101.492337%20C1063.46667,100.798278%201064.02931,100.235632%201064.72337,100.235632%20L1064.72337,100.235632%20Z%20M1078.1787,101.522114%20L1064.75341,101.522114%20L1064.75341,111.26924%20L1078.1787,111.26924%20L1078.1787,101.522114%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",F="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e轮播%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-1062.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M1072.93793,113.477011%20C1073.29342,113.477011%201073.58161,113.765196%201073.58161,114.12069%20C1073.58161,114.446559%201073.33945,114.71587%201073.02527,114.758492%20L1072.93793,114.764368%20L1069.9954,114.764368%20C1069.63991,114.764368%201069.35172,114.476183%201069.35172,114.12069%20C1069.35172,113.79482%201069.59388,113.52551%201069.90806,113.482888%20L1069.9954,113.477011%20L1072.93793,113.477011%20Z%20M1075.88046,113.477011%20C1076.23595,113.477011%201076.52414,113.765196%201076.52414,114.12069%20C1076.52414,114.446559%201076.28198,114.71587%201075.9678,114.758492%20L1075.88046,114.764368%20L1075.14483,114.764368%20C1074.78933,114.764368%201074.50115,114.476183%201074.50115,114.12069%20C1074.50115,113.79482%201074.7433,113.52551%201075.05748,113.482888%20L1075.14483,113.477011%20L1075.88046,113.477011%20Z%20M1064.84598,113.477011%20C1065.20147,113.477011%201065.48966,113.765196%201065.48966,114.12069%20C1065.48966,114.446559%201065.2475,114.71587%201064.93332,114.758492%20L1064.84598,114.764368%20L1064.11034,114.764368%20C1063.75485,114.764368%201063.46667,114.476183%201063.46667,114.12069%20C1063.46667,113.79482%201063.70882,113.52551%201064.023,113.482888%20L1064.11034,113.477011%20L1064.84598,113.477011%20Z%20M1078.82299,113.477011%20C1079.17848,113.477011%201079.46667,113.765196%201079.46667,114.12069%20C1079.46667,114.446559%201079.22451,114.71587%201078.91033,114.758492%20L1078.82299,114.764368%20L1078.08736,114.764368%20C1077.73186,114.764368%201077.44368,114.476183%201077.44368,114.12069%20C1077.44368,113.79482%201077.68583,113.52551%201078.00001,113.482888%20L1078.08736,113.477011%20L1078.82299,113.477011%20Z%20M1067.78851,113.477011%20C1068.144,113.477011%201068.43218,113.765196%201068.43218,114.12069%20C1068.43218,114.446559%201068.19003,114.71587%201067.87585,114.758492%20L1067.78851,114.764368%20L1067.05287,114.764368%20C1066.69738,114.764368%201066.4092,114.476183%201066.4092,114.12069%20C1066.4092,113.79482%201066.65135,113.52551%201066.96553,113.482888%20L1067.05287,113.477011%20L1067.78851,113.477011%20Z%20M1078.20996,100.235632%20C1078.90402,100.235632%201079.46667,100.798278%201079.46667,101.492337%20L1079.46667,101.492337%20L1079.46667,111.300766%20C1079.46667,111.994825%201078.90402,112.557471%201078.20996,112.557471%20L1078.20996,112.557471%20L1064.72337,112.557471%20C1064.02931,112.557471%201063.46667,111.994825%201063.46667,111.300766%20L1063.46667,111.300766%20L1063.46667,101.492337%20C1063.46667,100.798278%201064.02931,100.235632%201064.72337,100.235632%20L1064.72337,100.235632%20Z%20M1078.1787,101.522114%20L1064.75341,101.522114%20L1064.75341,111.26924%20L1078.1787,111.26924%20L1078.1787,101.522114%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Z={class:"mix-component"},z=["src","height","width"],A=["src"],N={DEFAULT_ICON:B,ACTIVE_ICON:F,NAME_CN:"轮播",NAME_EN:"Swiper",ORDER:5,PLATFORM:["pc","screen","mobile"]},O={bgColor:"#fff",radiusSize:8,interval:10,type:{value:"img",type:"radio",option:[{value:"img",label:"component.customized.img"},{value:"url",label:"component.customized.url"}],label:"component.customized.type"}},I=[{url:""}],T=["url"],q={DEFAULT:N,OPTIONS:O,DATA:I,PARAMS:T,COMMON:{}},R=e.defineComponent(w(h({},q),{__name:"swiper",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(l){const t=l,r={height:1080,width:1920};class _ extends b.BaseComponent{extractStyles(){var s,a,i,u,C,p,m;const{options:o}=this.props.conf;return{bgColor:((s=o==null?void 0:o.bgColor)==null?void 0:s.value)||"#fff",radiusSize:(i=(a=o==null?void 0:o.radiusSize)==null?void 0:a.value)!=null?i:8,interval:(C=(u=o==null?void 0:o.interval)==null?void 0:u.value)!=null?C:10,type:(m=(p=o==null?void 0:o.type)==null?void 0:p.value)!=null?m:"img"}}}const d=new _(t,"swiper");d.setupLifecycle();const c=d.getStyle(),x=n=>n?n.startsWith(L.FILE_URL)||n.startsWith("http")?n:L.FILE_URL+n:"";return(n,o)=>{const s=v.ElCarouselItem,a=v.ElCarousel;return e.openBlock(),e.createElementBlock("div",Z,[e.createElementVNode("div",{class:"swiper-wrap",style:e.normalizeStyle({backgroundColor:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createVNode(a,{autoplay:"","pause-on-hover":!1,interval:1e3*e.unref(c).interval,"indicator-position":"none",style:{width:"100%",height:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.conf.data,(i,u)=>(e.openBlock(),e.createBlock(s,{key:u},{default:e.withCtx(()=>[e.unref(c).type==="url"&&l.mode==="preview"?(e.openBlock(),e.createElementBlock("iframe",{key:0,src:i.url,frameborder:"0",height:r.height,width:r.width,class:"w-full h-full"},null,8,z)):(e.openBlock(),e.createElementBlock("img",{key:1,class:"w-full h-full object-cover",src:x(i.url),alt:"轮播图片"},null,8,A))]),_:2},1024))),128))]),_:1},8,["interval"])],4),e.renderSlot(n.$slots,"default",{},void 0,!0)])}}})),U=L._export_sfc(R,[["__scopeId","data-v-f76ee1f9"]]);exports.default=U;
1
+ "use strict";var w=Object.defineProperty,v=Object.defineProperties;var _=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var u=(o,t,l)=>t in o?w(o,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[t]=l,L=(o,t)=>{for(var l in t||(t={}))x.call(t,l)&&u(o,l,t[l]);if(a)for(var l of a(t))y.call(t,l)&&u(o,l,t[l]);return o},d=(o,t)=>v(o,_(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/carousel/style/css");require("element-plus/es/components/carousel-item/style/css");const e=require("vue");require("html2canvas");const k=require("./BaseComponent-DoQ1oLoA.cjs"),i=require("./index-BdWR_FTA.cjs"),M="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e轮播%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-1062.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M1072.93793,113.477011%20C1073.29342,113.477011%201073.58161,113.765196%201073.58161,114.12069%20C1073.58161,114.446559%201073.33945,114.71587%201073.02527,114.758492%20L1072.93793,114.764368%20L1069.9954,114.764368%20C1069.63991,114.764368%201069.35172,114.476183%201069.35172,114.12069%20C1069.35172,113.79482%201069.59388,113.52551%201069.90806,113.482888%20L1069.9954,113.477011%20L1072.93793,113.477011%20Z%20M1075.88046,113.477011%20C1076.23595,113.477011%201076.52414,113.765196%201076.52414,114.12069%20C1076.52414,114.446559%201076.28198,114.71587%201075.9678,114.758492%20L1075.88046,114.764368%20L1075.14483,114.764368%20C1074.78933,114.764368%201074.50115,114.476183%201074.50115,114.12069%20C1074.50115,113.79482%201074.7433,113.52551%201075.05748,113.482888%20L1075.14483,113.477011%20L1075.88046,113.477011%20Z%20M1064.84598,113.477011%20C1065.20147,113.477011%201065.48966,113.765196%201065.48966,114.12069%20C1065.48966,114.446559%201065.2475,114.71587%201064.93332,114.758492%20L1064.84598,114.764368%20L1064.11034,114.764368%20C1063.75485,114.764368%201063.46667,114.476183%201063.46667,114.12069%20C1063.46667,113.79482%201063.70882,113.52551%201064.023,113.482888%20L1064.11034,113.477011%20L1064.84598,113.477011%20Z%20M1078.82299,113.477011%20C1079.17848,113.477011%201079.46667,113.765196%201079.46667,114.12069%20C1079.46667,114.446559%201079.22451,114.71587%201078.91033,114.758492%20L1078.82299,114.764368%20L1078.08736,114.764368%20C1077.73186,114.764368%201077.44368,114.476183%201077.44368,114.12069%20C1077.44368,113.79482%201077.68583,113.52551%201078.00001,113.482888%20L1078.08736,113.477011%20L1078.82299,113.477011%20Z%20M1067.78851,113.477011%20C1068.144,113.477011%201068.43218,113.765196%201068.43218,114.12069%20C1068.43218,114.446559%201068.19003,114.71587%201067.87585,114.758492%20L1067.78851,114.764368%20L1067.05287,114.764368%20C1066.69738,114.764368%201066.4092,114.476183%201066.4092,114.12069%20C1066.4092,113.79482%201066.65135,113.52551%201066.96553,113.482888%20L1067.05287,113.477011%20L1067.78851,113.477011%20Z%20M1078.20996,100.235632%20C1078.90402,100.235632%201079.46667,100.798278%201079.46667,101.492337%20L1079.46667,101.492337%20L1079.46667,111.300766%20C1079.46667,111.994825%201078.90402,112.557471%201078.20996,112.557471%20L1078.20996,112.557471%20L1064.72337,112.557471%20C1064.02931,112.557471%201063.46667,111.994825%201063.46667,111.300766%20L1063.46667,111.300766%20L1063.46667,101.492337%20C1063.46667,100.798278%201064.02931,100.235632%201064.72337,100.235632%20L1064.72337,100.235632%20Z%20M1078.1787,101.522114%20L1064.75341,101.522114%20L1064.75341,111.26924%20L1078.1787,111.26924%20L1078.1787,101.522114%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",S="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e轮播%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-1062.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M1072.93793,113.477011%20C1073.29342,113.477011%201073.58161,113.765196%201073.58161,114.12069%20C1073.58161,114.446559%201073.33945,114.71587%201073.02527,114.758492%20L1072.93793,114.764368%20L1069.9954,114.764368%20C1069.63991,114.764368%201069.35172,114.476183%201069.35172,114.12069%20C1069.35172,113.79482%201069.59388,113.52551%201069.90806,113.482888%20L1069.9954,113.477011%20L1072.93793,113.477011%20Z%20M1075.88046,113.477011%20C1076.23595,113.477011%201076.52414,113.765196%201076.52414,114.12069%20C1076.52414,114.446559%201076.28198,114.71587%201075.9678,114.758492%20L1075.88046,114.764368%20L1075.14483,114.764368%20C1074.78933,114.764368%201074.50115,114.476183%201074.50115,114.12069%20C1074.50115,113.79482%201074.7433,113.52551%201075.05748,113.482888%20L1075.14483,113.477011%20L1075.88046,113.477011%20Z%20M1064.84598,113.477011%20C1065.20147,113.477011%201065.48966,113.765196%201065.48966,114.12069%20C1065.48966,114.446559%201065.2475,114.71587%201064.93332,114.758492%20L1064.84598,114.764368%20L1064.11034,114.764368%20C1063.75485,114.764368%201063.46667,114.476183%201063.46667,114.12069%20C1063.46667,113.79482%201063.70882,113.52551%201064.023,113.482888%20L1064.11034,113.477011%20L1064.84598,113.477011%20Z%20M1078.82299,113.477011%20C1079.17848,113.477011%201079.46667,113.765196%201079.46667,114.12069%20C1079.46667,114.446559%201079.22451,114.71587%201078.91033,114.758492%20L1078.82299,114.764368%20L1078.08736,114.764368%20C1077.73186,114.764368%201077.44368,114.476183%201077.44368,114.12069%20C1077.44368,113.79482%201077.68583,113.52551%201078.00001,113.482888%20L1078.08736,113.477011%20L1078.82299,113.477011%20Z%20M1067.78851,113.477011%20C1068.144,113.477011%201068.43218,113.765196%201068.43218,114.12069%20C1068.43218,114.446559%201068.19003,114.71587%201067.87585,114.758492%20L1067.78851,114.764368%20L1067.05287,114.764368%20C1066.69738,114.764368%201066.4092,114.476183%201066.4092,114.12069%20C1066.4092,113.79482%201066.65135,113.52551%201066.96553,113.482888%20L1067.05287,113.477011%20L1067.78851,113.477011%20Z%20M1078.20996,100.235632%20C1078.90402,100.235632%201079.46667,100.798278%201079.46667,101.492337%20L1079.46667,101.492337%20L1079.46667,111.300766%20C1079.46667,111.994825%201078.90402,112.557471%201078.20996,112.557471%20L1078.20996,112.557471%20L1064.72337,112.557471%20C1064.02931,112.557471%201063.46667,111.994825%201063.46667,111.300766%20L1063.46667,111.300766%20L1063.46667,101.492337%20C1063.46667,100.798278%201064.02931,100.235632%201064.72337,100.235632%20L1064.72337,100.235632%20Z%20M1078.1787,101.522114%20L1064.75341,101.522114%20L1064.75341,111.26924%20L1078.1787,111.26924%20L1078.1787,101.522114%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",E={class:"mix-component"},b=["src","height","width"],B=["src"],F={DEFAULT_ICON:M,ACTIVE_ICON:S,NAME_CN:"轮播",NAME_EN:"Swiper",ORDER:5,PLATFORM:["pc","screen","mobile"]},O={bgColor:"#fff",radiusSize:8,interval:10,type:{value:"img",type:"radio",option:[{value:"img",label:"component.customized.img"},{value:"url",label:"component.customized.url"}],label:"component.customized.type"}},Z=[{url:""}],z=["url"],A={DEFAULT:F,OPTIONS:O,DATA:Z,PARAMS:z,COMMON:{}},N=e.defineComponent(d(L({},A),{__name:"swiper",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(o){const t=o,l={height:1080,width:1920};class p extends k.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),radiusSize:this.getOptionValue("radiusSize",8),interval:this.getOptionValue("interval",10),type:this.getOptionValue("type","img")}}}const s=new p(t,"swiper");s.setupLifecycle();const r=s.getStyle(),g=n=>n?n.startsWith(i.FILE_URL)||n.startsWith("http")?n:i.FILE_URL+n:"";return(n,T)=>{const m=C.ElCarouselItem,h=C.ElCarousel;return e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",{class:"swiper-wrap",style:e.normalizeStyle({backgroundColor:e.unref(r).bgColor,borderRadius:`${e.unref(r).radiusSize}px`})},[e.createVNode(h,{autoplay:"","pause-on-hover":!1,interval:1e3*e.unref(r).interval,"indicator-position":"none",style:{width:"100%",height:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.conf.data,(c,f)=>(e.openBlock(),e.createBlock(m,{key:f},{default:e.withCtx(()=>[e.unref(r).type==="url"&&o.mode==="preview"?(e.openBlock(),e.createElementBlock("iframe",{key:0,src:c.url,frameborder:"0",height:l.height,width:l.width,class:"w-full h-full"},null,8,b)):(e.openBlock(),e.createElementBlock("img",{key:1,class:"w-full h-full object-cover",src:g(c.url),alt:"轮播图片"},null,8,B))]),_:2},1024))),128))]),_:1},8,["interval"])],4),e.renderSlot(n.$slots,"default",{},void 0,!0)])}}})),I=i._export_sfc(N,[["__scopeId","data-v-2462f3a2"]]);exports.default=I;
@@ -1,31 +1,31 @@
1
- var S = Object.defineProperty, k = Object.defineProperties;
2
- var F = Object.getOwnPropertyDescriptors;
3
- var g = Object.getOwnPropertySymbols;
4
- var Z = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
- var h = (t, e, l) => e in t ? S(t, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[e] = l, w = (t, e) => {
6
- for (var l in e || (e = {}))
7
- Z.call(e, l) && h(t, l, e[l]);
8
- if (g)
9
- for (var l of g(e))
10
- b.call(e, l) && h(t, l, e[l]);
1
+ var _ = Object.defineProperty, x = Object.defineProperties;
2
+ var y = Object.getOwnPropertyDescriptors;
3
+ var L = Object.getOwnPropertySymbols;
4
+ var M = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
5
+ var d = (t, e, o) => e in t ? _(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, p = (t, e) => {
6
+ for (var o in e || (e = {}))
7
+ M.call(e, o) && d(t, o, e[o]);
8
+ if (L)
9
+ for (var o of L(e))
10
+ S.call(e, o) && d(t, o, e[o]);
11
11
  return t;
12
- }, v = (t, e) => k(t, F(e));
13
- import { ElCarousel as E, ElCarouselItem as z } from "element-plus/es";
12
+ }, C = (t, e) => x(t, y(e));
13
+ import { ElCarousel as k, ElCarouselItem as F } from "element-plus/es";
14
14
  import "element-plus/es/components/base/style/css";
15
15
  import "element-plus/es/components/carousel/style/css";
16
16
  import "element-plus/es/components/carousel-item/style/css";
17
- import { defineComponent as A, openBlock as n, createElementBlock as d, createElementVNode as N, normalizeStyle as O, unref as C, createVNode as I, withCtx as _, Fragment as T, renderList as B, createBlock as R, renderSlot as U } from "vue";
17
+ import { defineComponent as Z, openBlock as l, createElementBlock as n, createElementVNode as b, normalizeStyle as O, unref as s, createVNode as E, withCtx as m, Fragment as z, renderList as A, createBlock as N, renderSlot as I } from "vue";
18
18
  import "html2canvas";
19
- import { B as D } from "./BaseComponent-qzL33ZSL.js";
20
- import { F as x, _ as P } from "./index-BHBE19E2.js";
21
- const V = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e轮播%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-1062.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M1072.93793,113.477011%20C1073.29342,113.477011%201073.58161,113.765196%201073.58161,114.12069%20C1073.58161,114.446559%201073.33945,114.71587%201073.02527,114.758492%20L1072.93793,114.764368%20L1069.9954,114.764368%20C1069.63991,114.764368%201069.35172,114.476183%201069.35172,114.12069%20C1069.35172,113.79482%201069.59388,113.52551%201069.90806,113.482888%20L1069.9954,113.477011%20L1072.93793,113.477011%20Z%20M1075.88046,113.477011%20C1076.23595,113.477011%201076.52414,113.765196%201076.52414,114.12069%20C1076.52414,114.446559%201076.28198,114.71587%201075.9678,114.758492%20L1075.88046,114.764368%20L1075.14483,114.764368%20C1074.78933,114.764368%201074.50115,114.476183%201074.50115,114.12069%20C1074.50115,113.79482%201074.7433,113.52551%201075.05748,113.482888%20L1075.14483,113.477011%20L1075.88046,113.477011%20Z%20M1064.84598,113.477011%20C1065.20147,113.477011%201065.48966,113.765196%201065.48966,114.12069%20C1065.48966,114.446559%201065.2475,114.71587%201064.93332,114.758492%20L1064.84598,114.764368%20L1064.11034,114.764368%20C1063.75485,114.764368%201063.46667,114.476183%201063.46667,114.12069%20C1063.46667,113.79482%201063.70882,113.52551%201064.023,113.482888%20L1064.11034,113.477011%20L1064.84598,113.477011%20Z%20M1078.82299,113.477011%20C1079.17848,113.477011%201079.46667,113.765196%201079.46667,114.12069%20C1079.46667,114.446559%201079.22451,114.71587%201078.91033,114.758492%20L1078.82299,114.764368%20L1078.08736,114.764368%20C1077.73186,114.764368%201077.44368,114.476183%201077.44368,114.12069%20C1077.44368,113.79482%201077.68583,113.52551%201078.00001,113.482888%20L1078.08736,113.477011%20L1078.82299,113.477011%20Z%20M1067.78851,113.477011%20C1068.144,113.477011%201068.43218,113.765196%201068.43218,114.12069%20C1068.43218,114.446559%201068.19003,114.71587%201067.87585,114.758492%20L1067.78851,114.764368%20L1067.05287,114.764368%20C1066.69738,114.764368%201066.4092,114.476183%201066.4092,114.12069%20C1066.4092,113.79482%201066.65135,113.52551%201066.96553,113.482888%20L1067.05287,113.477011%20L1067.78851,113.477011%20Z%20M1078.20996,100.235632%20C1078.90402,100.235632%201079.46667,100.798278%201079.46667,101.492337%20L1079.46667,101.492337%20L1079.46667,111.300766%20C1079.46667,111.994825%201078.90402,112.557471%201078.20996,112.557471%20L1078.20996,112.557471%20L1064.72337,112.557471%20C1064.02931,112.557471%201063.46667,111.994825%201063.46667,111.300766%20L1063.46667,111.300766%20L1063.46667,101.492337%20C1063.46667,100.798278%201064.02931,100.235632%201064.72337,100.235632%20L1064.72337,100.235632%20Z%20M1078.1787,101.522114%20L1064.75341,101.522114%20L1064.75341,111.26924%20L1078.1787,111.26924%20L1078.1787,101.522114%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", j = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e轮播%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-1062.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M1072.93793,113.477011%20C1073.29342,113.477011%201073.58161,113.765196%201073.58161,114.12069%20C1073.58161,114.446559%201073.33945,114.71587%201073.02527,114.758492%20L1072.93793,114.764368%20L1069.9954,114.764368%20C1069.63991,114.764368%201069.35172,114.476183%201069.35172,114.12069%20C1069.35172,113.79482%201069.59388,113.52551%201069.90806,113.482888%20L1069.9954,113.477011%20L1072.93793,113.477011%20Z%20M1075.88046,113.477011%20C1076.23595,113.477011%201076.52414,113.765196%201076.52414,114.12069%20C1076.52414,114.446559%201076.28198,114.71587%201075.9678,114.758492%20L1075.88046,114.764368%20L1075.14483,114.764368%20C1074.78933,114.764368%201074.50115,114.476183%201074.50115,114.12069%20C1074.50115,113.79482%201074.7433,113.52551%201075.05748,113.482888%20L1075.14483,113.477011%20L1075.88046,113.477011%20Z%20M1064.84598,113.477011%20C1065.20147,113.477011%201065.48966,113.765196%201065.48966,114.12069%20C1065.48966,114.446559%201065.2475,114.71587%201064.93332,114.758492%20L1064.84598,114.764368%20L1064.11034,114.764368%20C1063.75485,114.764368%201063.46667,114.476183%201063.46667,114.12069%20C1063.46667,113.79482%201063.70882,113.52551%201064.023,113.482888%20L1064.11034,113.477011%20L1064.84598,113.477011%20Z%20M1078.82299,113.477011%20C1079.17848,113.477011%201079.46667,113.765196%201079.46667,114.12069%20C1079.46667,114.446559%201079.22451,114.71587%201078.91033,114.758492%20L1078.82299,114.764368%20L1078.08736,114.764368%20C1077.73186,114.764368%201077.44368,114.476183%201077.44368,114.12069%20C1077.44368,113.79482%201077.68583,113.52551%201078.00001,113.482888%20L1078.08736,113.477011%20L1078.82299,113.477011%20Z%20M1067.78851,113.477011%20C1068.144,113.477011%201068.43218,113.765196%201068.43218,114.12069%20C1068.43218,114.446559%201068.19003,114.71587%201067.87585,114.758492%20L1067.78851,114.764368%20L1067.05287,114.764368%20C1066.69738,114.764368%201066.4092,114.476183%201066.4092,114.12069%20C1066.4092,113.79482%201066.65135,113.52551%201066.96553,113.482888%20L1067.05287,113.477011%20L1067.78851,113.477011%20Z%20M1078.20996,100.235632%20C1078.90402,100.235632%201079.46667,100.798278%201079.46667,101.492337%20L1079.46667,101.492337%20L1079.46667,111.300766%20C1079.46667,111.994825%201078.90402,112.557471%201078.20996,112.557471%20L1078.20996,112.557471%20L1064.72337,112.557471%20C1064.02931,112.557471%201063.46667,111.994825%201063.46667,111.300766%20L1063.46667,111.300766%20L1063.46667,101.492337%20C1063.46667,100.798278%201064.02931,100.235632%201064.72337,100.235632%20L1064.72337,100.235632%20Z%20M1078.1787,101.522114%20L1064.75341,101.522114%20L1064.75341,111.26924%20L1078.1787,111.26924%20L1078.1787,101.522114%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", W = { class: "mix-component" }, $ = ["src", "height", "width"], q = ["src"], G = {
19
+ import { B as T } from "./BaseComponent-D82kw5vB.js";
20
+ import { F as u, _ as B } from "./index-CCWU_se2.js";
21
+ const V = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e轮播%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-1062.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M1072.93793,113.477011%20C1073.29342,113.477011%201073.58161,113.765196%201073.58161,114.12069%20C1073.58161,114.446559%201073.33945,114.71587%201073.02527,114.758492%20L1072.93793,114.764368%20L1069.9954,114.764368%20C1069.63991,114.764368%201069.35172,114.476183%201069.35172,114.12069%20C1069.35172,113.79482%201069.59388,113.52551%201069.90806,113.482888%20L1069.9954,113.477011%20L1072.93793,113.477011%20Z%20M1075.88046,113.477011%20C1076.23595,113.477011%201076.52414,113.765196%201076.52414,114.12069%20C1076.52414,114.446559%201076.28198,114.71587%201075.9678,114.758492%20L1075.88046,114.764368%20L1075.14483,114.764368%20C1074.78933,114.764368%201074.50115,114.476183%201074.50115,114.12069%20C1074.50115,113.79482%201074.7433,113.52551%201075.05748,113.482888%20L1075.14483,113.477011%20L1075.88046,113.477011%20Z%20M1064.84598,113.477011%20C1065.20147,113.477011%201065.48966,113.765196%201065.48966,114.12069%20C1065.48966,114.446559%201065.2475,114.71587%201064.93332,114.758492%20L1064.84598,114.764368%20L1064.11034,114.764368%20C1063.75485,114.764368%201063.46667,114.476183%201063.46667,114.12069%20C1063.46667,113.79482%201063.70882,113.52551%201064.023,113.482888%20L1064.11034,113.477011%20L1064.84598,113.477011%20Z%20M1078.82299,113.477011%20C1079.17848,113.477011%201079.46667,113.765196%201079.46667,114.12069%20C1079.46667,114.446559%201079.22451,114.71587%201078.91033,114.758492%20L1078.82299,114.764368%20L1078.08736,114.764368%20C1077.73186,114.764368%201077.44368,114.476183%201077.44368,114.12069%20C1077.44368,113.79482%201077.68583,113.52551%201078.00001,113.482888%20L1078.08736,113.477011%20L1078.82299,113.477011%20Z%20M1067.78851,113.477011%20C1068.144,113.477011%201068.43218,113.765196%201068.43218,114.12069%20C1068.43218,114.446559%201068.19003,114.71587%201067.87585,114.758492%20L1067.78851,114.764368%20L1067.05287,114.764368%20C1066.69738,114.764368%201066.4092,114.476183%201066.4092,114.12069%20C1066.4092,113.79482%201066.65135,113.52551%201066.96553,113.482888%20L1067.05287,113.477011%20L1067.78851,113.477011%20Z%20M1078.20996,100.235632%20C1078.90402,100.235632%201079.46667,100.798278%201079.46667,101.492337%20L1079.46667,101.492337%20L1079.46667,111.300766%20C1079.46667,111.994825%201078.90402,112.557471%201078.20996,112.557471%20L1078.20996,112.557471%20L1064.72337,112.557471%20C1064.02931,112.557471%201063.46667,111.994825%201063.46667,111.300766%20L1063.46667,111.300766%20L1063.46667,101.492337%20C1063.46667,100.798278%201064.02931,100.235632%201064.72337,100.235632%20L1064.72337,100.235632%20Z%20M1078.1787,101.522114%20L1064.75341,101.522114%20L1064.75341,111.26924%20L1078.1787,111.26924%20L1078.1787,101.522114%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", R = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='17px'%20viewBox='0%200%2018%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e轮播%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-1062.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M1072.93793,113.477011%20C1073.29342,113.477011%201073.58161,113.765196%201073.58161,114.12069%20C1073.58161,114.446559%201073.33945,114.71587%201073.02527,114.758492%20L1072.93793,114.764368%20L1069.9954,114.764368%20C1069.63991,114.764368%201069.35172,114.476183%201069.35172,114.12069%20C1069.35172,113.79482%201069.59388,113.52551%201069.90806,113.482888%20L1069.9954,113.477011%20L1072.93793,113.477011%20Z%20M1075.88046,113.477011%20C1076.23595,113.477011%201076.52414,113.765196%201076.52414,114.12069%20C1076.52414,114.446559%201076.28198,114.71587%201075.9678,114.758492%20L1075.88046,114.764368%20L1075.14483,114.764368%20C1074.78933,114.764368%201074.50115,114.476183%201074.50115,114.12069%20C1074.50115,113.79482%201074.7433,113.52551%201075.05748,113.482888%20L1075.14483,113.477011%20L1075.88046,113.477011%20Z%20M1064.84598,113.477011%20C1065.20147,113.477011%201065.48966,113.765196%201065.48966,114.12069%20C1065.48966,114.446559%201065.2475,114.71587%201064.93332,114.758492%20L1064.84598,114.764368%20L1064.11034,114.764368%20C1063.75485,114.764368%201063.46667,114.476183%201063.46667,114.12069%20C1063.46667,113.79482%201063.70882,113.52551%201064.023,113.482888%20L1064.11034,113.477011%20L1064.84598,113.477011%20Z%20M1078.82299,113.477011%20C1079.17848,113.477011%201079.46667,113.765196%201079.46667,114.12069%20C1079.46667,114.446559%201079.22451,114.71587%201078.91033,114.758492%20L1078.82299,114.764368%20L1078.08736,114.764368%20C1077.73186,114.764368%201077.44368,114.476183%201077.44368,114.12069%20C1077.44368,113.79482%201077.68583,113.52551%201078.00001,113.482888%20L1078.08736,113.477011%20L1078.82299,113.477011%20Z%20M1067.78851,113.477011%20C1068.144,113.477011%201068.43218,113.765196%201068.43218,114.12069%20C1068.43218,114.446559%201068.19003,114.71587%201067.87585,114.758492%20L1067.78851,114.764368%20L1067.05287,114.764368%20C1066.69738,114.764368%201066.4092,114.476183%201066.4092,114.12069%20C1066.4092,113.79482%201066.65135,113.52551%201066.96553,113.482888%20L1067.05287,113.477011%20L1067.78851,113.477011%20Z%20M1078.20996,100.235632%20C1078.90402,100.235632%201079.46667,100.798278%201079.46667,101.492337%20L1079.46667,101.492337%20L1079.46667,111.300766%20C1079.46667,111.994825%201078.90402,112.557471%201078.20996,112.557471%20L1078.20996,112.557471%20L1064.72337,112.557471%20C1064.02931,112.557471%201063.46667,111.994825%201063.46667,111.300766%20L1063.46667,111.300766%20L1063.46667,101.492337%20C1063.46667,100.798278%201064.02931,100.235632%201064.72337,100.235632%20L1064.72337,100.235632%20Z%20M1078.1787,101.522114%20L1064.75341,101.522114%20L1064.75341,111.26924%20L1078.1787,111.26924%20L1078.1787,101.522114%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", U = { class: "mix-component" }, D = ["src", "height", "width"], P = ["src"], j = {
22
22
  DEFAULT_ICON: V,
23
- ACTIVE_ICON: j,
23
+ ACTIVE_ICON: R,
24
24
  NAME_CN: "轮播",
25
25
  NAME_EN: "Swiper",
26
26
  ORDER: 5,
27
27
  PLATFORM: ["pc", "screen", "mobile"]
28
- }, H = {
28
+ }, W = {
29
29
  bgColor: "#fff",
30
30
  radiusSize: 8,
31
31
  interval: 10,
@@ -38,7 +38,7 @@ const V = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3cs
38
38
  ],
39
39
  label: "component.customized.type"
40
40
  }
41
- }, J = [{ url: "" }], K = ["url"], Q = { DEFAULT: G, OPTIONS: H, DATA: J, PARAMS: K, COMMON: {} }, X = /* @__PURE__ */ A(v(w({}, Q), {
41
+ }, $ = [{ url: "" }], q = ["url"], G = { DEFAULT: j, OPTIONS: W, DATA: $, PARAMS: q, COMMON: {} }, H = /* @__PURE__ */ Z(C(p({}, G), {
42
42
  __name: "swiper",
43
43
  props: {
44
44
  conf: {
@@ -59,58 +59,56 @@ const V = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3cs
59
59
  }
60
60
  },
61
61
  setup(t) {
62
- const e = t, l = {
62
+ const e = t, o = {
63
63
  height: 1080,
64
64
  width: 1920
65
65
  };
66
- class y extends D {
66
+ class g extends T {
67
67
  extractStyles() {
68
- var a, c, i, L, u, p, f;
69
- const { options: r } = this.props.conf;
70
68
  return {
71
- bgColor: ((a = r == null ? void 0 : r.bgColor) == null ? void 0 : a.value) || "#fff",
72
- radiusSize: (i = (c = r == null ? void 0 : r.radiusSize) == null ? void 0 : c.value) != null ? i : 8,
73
- interval: (u = (L = r == null ? void 0 : r.interval) == null ? void 0 : L.value) != null ? u : 10,
74
- type: (f = (p = r == null ? void 0 : r.type) == null ? void 0 : p.value) != null ? f : "img"
69
+ bgColor: this.getOptionValue("bgColor", "#fff"),
70
+ radiusSize: this.getOptionValue("radiusSize", 8),
71
+ interval: this.getOptionValue("interval", 10),
72
+ type: this.getOptionValue("type", "img")
75
73
  };
76
74
  }
77
75
  }
78
- const m = new y(e, "swiper");
79
- m.setupLifecycle();
80
- const s = m.getStyle(), M = (o) => o ? o.startsWith(x) || o.startsWith("http") ? o : x + o : "";
81
- return (o, r) => {
82
- const a = z, c = E;
83
- return n(), d("div", W, [
84
- N("div", {
76
+ const a = new g(e, "swiper");
77
+ a.setupLifecycle();
78
+ const r = a.getStyle(), f = (i) => i ? i.startsWith(u) || i.startsWith("http") ? i : u + i : "";
79
+ return (i, J) => {
80
+ const h = F, w = k;
81
+ return l(), n("div", U, [
82
+ b("div", {
85
83
  class: "swiper-wrap",
86
84
  style: O({
87
- backgroundColor: C(s).bgColor,
88
- borderRadius: `${C(s).radiusSize}px`
85
+ backgroundColor: s(r).bgColor,
86
+ borderRadius: `${s(r).radiusSize}px`
89
87
  })
90
88
  }, [
91
- I(c, {
89
+ E(w, {
92
90
  autoplay: "",
93
91
  "pause-on-hover": !1,
94
- interval: 1e3 * C(s).interval,
92
+ interval: 1e3 * s(r).interval,
95
93
  "indicator-position": "none",
96
94
  style: { width: "100%", height: "100%" }
97
95
  }, {
98
- default: _(() => [
99
- (n(!0), d(T, null, B(t.conf.data, (i, L) => (n(), R(a, { key: L }, {
100
- default: _(() => [
101
- C(s).type === "url" && t.mode === "preview" ? (n(), d("iframe", {
96
+ default: m(() => [
97
+ (l(!0), n(z, null, A(t.conf.data, (c, v) => (l(), N(h, { key: v }, {
98
+ default: m(() => [
99
+ s(r).type === "url" && t.mode === "preview" ? (l(), n("iframe", {
102
100
  key: 0,
103
- src: i.url,
101
+ src: c.url,
104
102
  frameborder: "0",
105
- height: l.height,
106
- width: l.width,
103
+ height: o.height,
104
+ width: o.width,
107
105
  class: "w-full h-full"
108
- }, null, 8, $)) : (n(), d("img", {
106
+ }, null, 8, D)) : (l(), n("img", {
109
107
  key: 1,
110
108
  class: "w-full h-full object-cover",
111
- src: M(i.url),
109
+ src: f(c.url),
112
110
  alt: "轮播图片"
113
- }, null, 8, q))
111
+ }, null, 8, P))
114
112
  ]),
115
113
  _: 2
116
114
  }, 1024))), 128))
@@ -118,11 +116,11 @@ const V = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3cs
118
116
  _: 1
119
117
  }, 8, ["interval"])
120
118
  ], 4),
121
- U(o.$slots, "default", {}, void 0, !0)
119
+ I(i.$slots, "default", {}, void 0, !0)
122
120
  ]);
123
121
  };
124
122
  }
125
- })), a1 = /* @__PURE__ */ P(X, [["__scopeId", "data-v-f76ee1f9"]]);
123
+ })), r1 = /* @__PURE__ */ B(H, [["__scopeId", "data-v-2462f3a2"]]);
126
124
  export {
127
- a1 as default
125
+ r1 as default
128
126
  };
@@ -45,8 +45,8 @@ import "element-plus/es/components/icon/style/css";
45
45
  import { defineComponent as et, computed as le, reactive as pe, ref as V, onMounted as tt, openBlock as v, createElementBlock as L, Fragment as ie, withDirectives as me, normalizeStyle as ce, unref as k, normalizeClass as lt, toDisplayString as B, createCommentVNode as C, createElementVNode as K, createVNode as a, withKeys as it, withCtx as o, createTextVNode as d, createBlock as D, renderList as at, renderSlot as ot } from "vue";
46
46
  import { u as nt } from "./useTableBodyHeight-CwrQvi7M.js";
47
47
  import { u as rt } from "./useMixiotPanelSurface-DRl3cZvc.js";
48
- import { B as st } from "./BaseComponent-qzL33ZSL.js";
49
- import { a as N, _ as ut } from "./index-BHBE19E2.js";
48
+ import { B as st } from "./BaseComponent-D82kw5vB.js";
49
+ import { a as N, _ as ut } from "./index-CCWU_se2.js";
50
50
  import { g as dt } from "./titleStyle-BT5GlpAb.js";
51
51
  import { ElMessage as f, ElMessageBox as fe } from "element-plus";
52
52
  import { Search as pt } from "@element-plus/icons-vue";
@@ -1 +1 @@
1
- "use strict";var ve=Object.defineProperty,Ce=Object.defineProperties;var xe=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var Z=(f,d,p)=>d in f?ve(f,d,{enumerable:!0,configurable:!0,writable:!0,value:p}):f[d]=p,z=(f,d)=>{for(var p in d||(d={}))Ne.call(d,p)&&Z(f,p,d[p]);if(Y)for(var p of Y(d))_e.call(d,p)&&Z(f,p,d[p]);return f},K=(f,d)=>Ce(f,xe(d));var _=(f,d,p)=>new Promise((q,V)=>{var P=y=>{try{T(p.next(y))}catch(A){V(A)}},$=y=>{try{T(p.throw(y))}catch(A){V(A)}},T=y=>y.done?q(y.value):Promise.resolve(y.value).then(P,$);T((p=p.apply(f,d)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=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"),ke=require("./useTableBodyHeight-pf87uGjw.cjs"),Be=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Se=require("./BaseComponent-BHUHnLj-.cjs"),k=require("./index-D7PZNHF4.cjs"),Ee=require("./titleStyle-NSnz6cUg.cjs"),u=require("element-plus"),Te=require("@element-plus/icons-vue"),Ae=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),ee=require("./ele-lst-icon-CrxnHZ-A.cjs"),De={class:"mix-body"},Ue={class:"toolbar"},Oe={class:"pagination"},ze={class:"view-body"},qe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"终端配置列表",NAME_EN:"TerminalConfigList",ORDER:6,PLATFORM:["pc","screen"]},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:"uid",label:"终端配置编号",width:140,visible:!0},{key:"alias",label:"终端配置别名",width:120,visible:!0},{key:"name",label:"终端配置名称",width:140,visible:!0},{key:"lua_version",label:"LUA版本号",width:110,visible:!0},{key:"tag",label:"标签",width:120,visible:!0},{key:"description",label:"描述",minWidth:140,visible:!0},{key:"last_modified",label:"最后修改时间",width:170,visible:!0},{key:"created",label:"创建时间",width:170,visible:!0}]},te=[{name:"终端配置名称",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showBatchUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0,uid:"终端配置编号",uid_visible:!0,alias:"终端配置别名",alias_visible:!0,name_visible:!0,lua_version:"LUA版本号",lua_version_visible:!0,tag:"标签",tag_visible:!0,description:"描述",description_visible:!0,last_modified:"最后修改时间",last_modified_visible:!0,created:"创建时间",created_visible:!0}],Ie=[{key:"showAddBtn",label:"添加",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组"},{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showBatchUpgradeBtn",label:"批量升级",type:"checkbox",group:"操作组"},{key:"showDownloadBtn",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:"name",label:"终端配置名称",checkable:!0,checkboxKey:"name_visible"},{key:"lua_version",label:"LUA版本号",checkable:!0,checkboxKey:"lua_version_visible"},{key:"tag",label:"标签",checkable:!0,checkboxKey:"tag_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"last_modified",label:"最后修改时间",checkable:!0,checkboxKey:"last_modified_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"}],Le=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Fe={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.gridFields.name"},{value:"uid",label:"setting.gridFields.uid"},{value:"alias",label:"setting.gridFields.objectAlias"},{value:"tag",label:"setting.gridFields.tag"}]},Pe={DEFAULT:qe,OPTIONS:Me,DATA:te,PARAMS:Ie,SOURCE:Le,COMMON:Fe},$e=e.defineComponent(K(z({},Pe),{__name:"terminalConfigList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(f){const d=f;class p extends Se.BaseComponent{getDataBool(t,o){var m,b;const n=(b=(m=this.props.conf)==null?void 0:m.data)==null?void 0:b[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[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),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showBatchUpgradeBtn:this.getDataBool("showBatchUpgradeBtn",!0),showDownloadBtn:this.getDataBool("showDownloadBtn",!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 o=this.props.conf.data[0],n={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showBatchUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[m,b]of Object.entries(n))o[m]===void 0&&(o[m]=b)}}}const q=new p(d,"terminalConfigList");q.setupLifecycle();const V=q.getStyle(),{mixiotPanelClass:P,mixiotPanelRootStyle:$}=Be.useMixiotPanelSurface(V),{tableWrapRef:T,tableBodyHeight:y}=ke.useTableBodyHeight(),A=e.computed(()=>Ee.generateTitleStyle(d.conf.options)),le=e.computed(()=>{var o,n,m,b;const i=((n=(o=d.conf)==null?void 0:o.options)==null?void 0:n.columns)||[],t=((b=(m=d.conf)==null?void 0:m.data)==null?void 0:b[0])||{};return(Array.isArray(i)?i:[]).map(s=>{const C=t[s.key],E=`${s.key}_visible`,B=t[E];return{prop:s.key,label:C!==void 0&&C!==""?String(C):s.label,width:s.width,minWidth:s.minWidth,visible:B!==void 0?!!B:s.visible!==!1}})}),h=e.reactive({current:1,pageSize:10,total:0}),M=e.ref(""),R=e.ref("name"),I=e.ref([]),j=e.ref(!1);function ae(){const i=[],t=M.value.trim();return t&&i.push([R.value,"like",`%${t}%`]),Ae.appendCommonDesignerWhereAnd(d.conf.common,i),{page_index:h.current,page_size:h.pageSize,where_and:JSON.stringify(i)}}function v(){return _(this,null,function*(){var i;j.value=!0;try{const t=yield k.api.post("terminal_config_list",ae(),!0),o=(i=t==null?void 0:t.result)!=null?i:t;I.value=Array.isArray(o==null?void 0:o.data)?[...o.data]:[];const n=o==null?void 0:o.total_records;h.total=typeof n=="number"?n:I.value.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[terminalConfigList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),I.value=[],h.total=0}finally{j.value=!1}})}const ie=e.computed(()=>I.value);function W(i){if(i==null||i==="")return"";if(Array.isArray(i))return i.join(", ");if(typeof i=="string")try{const t=JSON.parse(i);return Array.isArray(t)?t.join(", "):i}catch(t){return i}return String(i)}function oe(i,t){if(t==="tag")return W(i.tag);const o=i[t];return o==null?"":String(o)}function H(){h.current=1,v()}function ne(){M.value="",h.current=1,v()}function re(){h.current=1,v()}function se(){v()}const D=e.ref(!1),U=e.ref(!1),N=e.ref(!1),a=e.reactive({id:0,uid:"",name:"",alias:"",tagInput:"",description:"",terminal_script:"",config_script:"",addition:"[]",reference:"",hardware:"",is_available:1});function de(){const i=a.tagInput.trim();return i?i.split(",").map(t=>t.trim()).filter(Boolean):[]}function ue(i){if(i==null){a.tagInput="";return}if(Array.isArray(i)){a.tagInput=i.join(", ");return}if(typeof i=="string")try{const t=JSON.parse(i);a.tagInput=Array.isArray(t)?t.join(", "):i}catch(t){a.tagInput=i}}function L(){a.id=0,a.uid="",a.name="",a.alias="",a.tagInput="",a.description="",a.terminal_script="",a.config_script="",a.addition="[]",a.reference="",a.hardware="",a.is_available=1}function ce(){var t;const i=((t=a.addition)==null?void 0:t.trim())||"[]";try{return JSON.parse(i)}catch(o){throw new Error("扩展信息需为合法 JSON")}}function Q(){const i=ce();return{id:a.id,uid:a.uid.trim(),name:a.name.trim(),alias:a.alias.trim(),description:a.description,tag:de(),terminal_script:a.terminal_script,config_script:a.config_script,addition:i,reference:a.reference,hardware:a.hardware,is_available:a.is_available}}function pe(){L(),a.addition="[]",D.value=!0}function me(i){return _(this,null,function*(){var t,o,n,m,b,s,C,E,B,c,O;L(),U.value=!0,N.value=!0;try{const x=yield k.api.post("terminal_config_item",{uid:i.uid},!0),r=(t=x==null?void 0:x.result)!=null?t:x;if(r&&typeof r=="object"){if(a.id=Number(r.id)||0,a.uid=String((n=(o=r.uid)!=null?o:i.uid)!=null?n:""),a.name=String((m=r.name)!=null?m:""),a.alias=String((b=r.alias)!=null?b:""),ue(r.tag),a.description=String((s=r.description)!=null?s:""),a.terminal_script=String((C=r.terminal_script)!=null?C:""),a.config_script=String((E=r.config_script)!=null?E:""),r.addition!==void 0&&r.addition!==null)if(typeof r.addition=="string")try{a.addition=JSON.stringify(JSON.parse(r.addition),null,2)}catch(G){a.addition=String(r.addition)}else a.addition=JSON.stringify(r.addition,null,2);else a.addition="[]";a.reference=String((B=r.reference)!=null?B:""),a.hardware=String((c=r.hardware)!=null?c:""),a.is_available=r.is_available!==void 0?Number(r.is_available):1}}catch(x){a.uid=String(i.uid),a.name=String((O=i.name)!=null?O:""),u.ElMessage.warning("拉取配置详情失败,已使用列表行数据")}finally{N.value=!1}})}function fe(){return _(this,null,function*(){var t;if(!((t=a.name)!=null&&t.trim())){u.ElMessage.warning("请填写配置名称");return}let i;try{i=K(z({},Q()),{id:0})}catch(o){u.ElMessage.warning((o==null?void 0:o.message)||"扩展信息格式错误");return}N.value=!0;try{yield k.api.post("terminal_config_create",i,!0),u.ElMessage.success("添加成功"),D.value=!1,yield v()}catch(o){u.ElMessage.error("添加失败")}finally{N.value=!1}})}function ge(){return _(this,null,function*(){var t;if(!((t=a.name)!=null&&t.trim())){u.ElMessage.warning("请填写配置名称");return}let i;try{i=Q()}catch(o){u.ElMessage.warning((o==null?void 0:o.message)||"扩展信息格式错误");return}N.value=!0;try{yield k.api.post("terminal_config_update",i,!0),u.ElMessage.success("保存成功"),U.value=!1,yield v()}catch(o){u.ElMessage.error("保存失败")}finally{N.value=!1}})}const F=e.ref(!1),J=e.ref(!1),w=e.ref(null);function we(i){return _(this,null,function*(){w.value=null,F.value=!0,J.value=!0;try{const t=yield k.api.post("terminal_config_item",{uid:i.uid},!0),o=t==null?void 0:t.result;o&&typeof o=="object"?w.value=o:(w.value=z({},i),u.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){w.value=z({},i),u.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{J.value=!1}})}function Ve(i){return _(this,null,function*(){try{(yield k.api.post("upgrade_config_lua",{uid:i.uid},!0)).code===200&&(u.ElMessage.success("已触发批量升级"),yield v())}catch(t){u.ElMessage.error("批量升级请求失败(参数可能与后端约定不一致,可在 mixui 终端管理中操作)")}})}function he(i){const t=i.lua_file;if(!t){u.ElMessage.warning("无 LUA 文件地址");return}if(/^https?:\/\//i.test(t)){window.open(t,"_blank");return}const o=(localStorage.getItem("globalApiUrl")||"").replace(/\/$/,""),n=o?`${o}/${t.replace(/^\//,"")}`:t;window.open(n,"_blank")}function be(i){u.ElMessageBox.confirm(`确认对配置「${i.name||i.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{u.ElMessage.success("完整备档流程请在 mixui「终端管理」中操作")}).catch(()=>{})}function ye(i){u.ElMessageBox.confirm(`确认删除终端配置「${i.name||i.uid}」吗?`,"警告",{type:"warning"}).then(()=>_(null,null,function*(){try{yield k.api.post("terminal_config_delete",{uid:i.uid,id:i.id},!0),u.ElMessage.success("删除成功"),yield v()}catch(t){u.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{v()}),(i,t)=>{const o=g.ElIcon,n=g.ElInput,m=g.ElOption,b=g.ElSelect,s=g.ElButton,C=g.ElTableColumn,E=g.ElTable,B=g.ElPagination,c=g.ElFormItem,O=g.ElForm,x=g.ElDialog,r=g.ElDescriptionsItem,G=g.ElDescriptions,X=g.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["terminal-config-list mix-component",e.unref(P)]),style:e.normalizeStyle(e.unref($))},[e.unref(V).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(A.value)},e.toDisplayString(f.conf.caption||f.conf.name),5)),e.createElementVNode("div",De,[e.createElementVNode("div",Ue,[e.createVNode(n,{modelValue:M.value,"onUpdate:modelValue":t[0]||(t[0]=l=>M.value=l),placeholder:"搜索终端配置",size:"small",class:"toolbar-search",onKeyup:e.withKeys(H,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Te.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(b,{modelValue:R.value,"onUpdate:modelValue":t[1]||(t[1]=l=>R.value=l),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(m,{label:"配置名称",value:"name"}),e.createVNode(m,{label:"配置编号",value:"uid"}),e.createVNode(m,{label:"配置别名",value:"alias"}),e.createVNode(m,{label:"标签",value:"tag"})]),_:1},8,["modelValue"]),e.createVNode(s,{type:"primary",onClick:H},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(s,{onClick:ne},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(V).showAddBtn?(e.openBlock(),e.createBlock(s,{key:0,type:"success",onClick:pe},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("添加",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:T,class:"table-wrapper"},[e.createVNode(E,{data:ie.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(y)},{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(C,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(S=>[e.createElementVNode("span",null,e.toDisplayString(oe(S.row,l.prop)),1)]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(C,{label:"操作","min-width":"340",fixed:"right"},{default:e.withCtx(l=>[e.unref(V).showViewBtn?(e.openBlock(),e.createBlock(s,{key:0,size:"small",onClick:S=>we(l.row)},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showEditBtn?(e.openBlock(),e.createBlock(s,{key:1,size:"small",type:"primary",onClick:S=>me(l.row)},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showBatchUpgradeBtn?(e.openBlock(),e.createBlock(s,{key:2,size:"small",onClick:S=>Ve(l.row)},{default:e.withCtx(()=>[...t[30]||(t[30]=[e.createTextVNode("批量升级",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showDownloadBtn?(e.openBlock(),e.createBlock(s,{key:3,size:"small",onClick:S=>he(l.row)},{default:e.withCtx(()=>[...t[31]||(t[31]=[e.createTextVNode("下载",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showArchiveBtn?(e.openBlock(),e.createBlock(s,{key:4,size:"small",type:"info",onClick:S=>be(l.row)},{default:e.withCtx(()=>[...t[32]||(t[32]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showDeleteBtn?(e.openBlock(),e.createBlock(s,{key:5,size:"small",type:"danger",onClick:S=>ye(l.row)},{default:e.withCtx(()=>[...t[33]||(t[33]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",Oe,[e.createVNode(B,{"current-page":h.current,"onUpdate:currentPage":t[2]||(t[2]=l=>h.current=l),"page-size":h.pageSize,"onUpdate:pageSize":t[3]||(t[3]=l=>h.pageSize=l),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:h.total,onSizeChange:re,onCurrentChange:se},null,8,["current-page","page-size","total"])])]),e.renderSlot(i.$slots,"default",{},void 0,!0)],6)),[[X,j.value]]),e.createVNode(x,{modelValue:D.value,"onUpdate:modelValue":t[12]||(t[12]=l=>D.value=l),title:"添加终端配置",width:"900px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[11]||(t[11]=l=>D.value=!1)},{default:e.withCtx(()=>[...t[34]||(t[34]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:fe},{default:e.withCtx(()=>[...t[35]||(t[35]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(O,{model:a,"label-width":"130px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"配置名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[4]||(t[4]=l=>a.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"配置别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[5]||(t[5]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.tagInput,"onUpdate:modelValue":t[6]||(t[6]=l=>a.tagInput=l),placeholder:"多个标签用英文逗号分隔"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Aprus脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.terminal_script,"onUpdate:modelValue":t[7]||(t[7]=l=>a.terminal_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Config脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.config_script,"onUpdate:modelValue":t[8]||(t[8]=l=>a.config_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.addition,"onUpdate:modelValue":t[9]||(t[9]=l=>a.addition=l),type:"textarea",rows:4,placeholder:"JSON,默认 []"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[10]||(t[10]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(x,{modelValue:U.value,"onUpdate:modelValue":t[22]||(t[22]=l=>U.value=l),title:"编辑终端配置",width:"900px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[21]||(t[21]=l=>U.value=!1)},{default:e.withCtx(()=>[...t[36]||(t[36]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:ge},{default:e.withCtx(()=>[...t[37]||(t[37]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(O,{model:a,"label-width":"130px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"配置编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.uid,"onUpdate:modelValue":t[13]||(t[13]=l=>a.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"配置名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[14]||(t[14]=l=>a.name=l)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"配置别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[15]||(t[15]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.tagInput,"onUpdate:modelValue":t[16]||(t[16]=l=>a.tagInput=l),placeholder:"多个标签用英文逗号分隔"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Aprus脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.terminal_script,"onUpdate:modelValue":t[17]||(t[17]=l=>a.terminal_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Config脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.config_script,"onUpdate:modelValue":t[18]||(t[18]=l=>a.config_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.addition,"onUpdate:modelValue":t[19]||(t[19]=l=>a.addition=l),type:"textarea",rows:4},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[20]||(t[20]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(x,{modelValue:F.value,"onUpdate:modelValue":t[24]||(t[24]=l=>F.value=l),title:"终端配置详情",width:"800px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:t[23]||(t[23]=l=>F.value=!1)},{default:e.withCtx(()=>[...t[38]||(t[38]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",ze,[w.value?(e.openBlock(),e.createBlock(G,{key:0,column:2,border:""},{default:e.withCtx(()=>[e.createVNode(r,{label:"配置编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"配置名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"配置别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"LUA版本"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.lua_version)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"标签",span:2},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(W(w.value.tag)),1)]),_:1}),e.createVNode(r,{label:"最后修改"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.description)!=null?l:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)])),[[X,J.value]])]),_:1},8,["modelValue"])],64)}}})),Re=k._export_sfc($e,[["__scopeId","data-v-d6b454e0"]]);exports.default=Re;
1
+ "use strict";var ve=Object.defineProperty,Ce=Object.defineProperties;var xe=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var Z=(f,d,p)=>d in f?ve(f,d,{enumerable:!0,configurable:!0,writable:!0,value:p}):f[d]=p,z=(f,d)=>{for(var p in d||(d={}))Ne.call(d,p)&&Z(f,p,d[p]);if(Y)for(var p of Y(d))_e.call(d,p)&&Z(f,p,d[p]);return f},K=(f,d)=>Ce(f,xe(d));var _=(f,d,p)=>new Promise((q,V)=>{var P=y=>{try{T(p.next(y))}catch(A){V(A)}},$=y=>{try{T(p.throw(y))}catch(A){V(A)}},T=y=>y.done?q(y.value):Promise.resolve(y.value).then(P,$);T((p=p.apply(f,d)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=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"),ke=require("./useTableBodyHeight-pf87uGjw.cjs"),Be=require("./useMixiotPanelSurface-CAZgexY5.cjs"),Se=require("./BaseComponent-DoQ1oLoA.cjs"),k=require("./index-BdWR_FTA.cjs"),Ee=require("./titleStyle-NSnz6cUg.cjs"),u=require("element-plus"),Te=require("@element-plus/icons-vue"),Ae=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),ee=require("./ele-lst-icon-CrxnHZ-A.cjs"),De={class:"mix-body"},Ue={class:"toolbar"},Oe={class:"pagination"},ze={class:"view-body"},qe={DEFAULT_ICON:ee.DEFAULT_ICON,ACTIVE_ICON:ee.ACTIVE_ICON,NAME_CN:"终端配置列表",NAME_EN:"TerminalConfigList",ORDER:6,PLATFORM:["pc","screen"]},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:"uid",label:"终端配置编号",width:140,visible:!0},{key:"alias",label:"终端配置别名",width:120,visible:!0},{key:"name",label:"终端配置名称",width:140,visible:!0},{key:"lua_version",label:"LUA版本号",width:110,visible:!0},{key:"tag",label:"标签",width:120,visible:!0},{key:"description",label:"描述",minWidth:140,visible:!0},{key:"last_modified",label:"最后修改时间",width:170,visible:!0},{key:"created",label:"创建时间",width:170,visible:!0}]},te=[{name:"终端配置名称",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showBatchUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0,uid:"终端配置编号",uid_visible:!0,alias:"终端配置别名",alias_visible:!0,name_visible:!0,lua_version:"LUA版本号",lua_version_visible:!0,tag:"标签",tag_visible:!0,description:"描述",description_visible:!0,last_modified:"最后修改时间",last_modified_visible:!0,created:"创建时间",created_visible:!0}],Ie=[{key:"showAddBtn",label:"添加",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组"},{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showBatchUpgradeBtn",label:"批量升级",type:"checkbox",group:"操作组"},{key:"showDownloadBtn",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:"name",label:"终端配置名称",checkable:!0,checkboxKey:"name_visible"},{key:"lua_version",label:"LUA版本号",checkable:!0,checkboxKey:"lua_version_visible"},{key:"tag",label:"标签",checkable:!0,checkboxKey:"tag_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"last_modified",label:"最后修改时间",checkable:!0,checkboxKey:"last_modified_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"}],Le=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Fe={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.gridFields.name"},{value:"uid",label:"setting.gridFields.uid"},{value:"alias",label:"setting.gridFields.objectAlias"},{value:"tag",label:"setting.gridFields.tag"}]},Pe={DEFAULT:qe,OPTIONS:Me,DATA:te,PARAMS:Ie,SOURCE:Le,COMMON:Fe},$e=e.defineComponent(K(z({},Pe),{__name:"terminalConfigList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(f){const d=f;class p extends Se.BaseComponent{getDataBool(t,o){var m,b;const n=(b=(m=this.props.conf)==null?void 0:m.data)==null?void 0:b[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[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),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showBatchUpgradeBtn:this.getDataBool("showBatchUpgradeBtn",!0),showDownloadBtn:this.getDataBool("showDownloadBtn",!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 o=this.props.conf.data[0],n={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showBatchUpgradeBtn:!0,showDownloadBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[m,b]of Object.entries(n))o[m]===void 0&&(o[m]=b)}}}const q=new p(d,"terminalConfigList");q.setupLifecycle();const V=q.getStyle(),{mixiotPanelClass:P,mixiotPanelRootStyle:$}=Be.useMixiotPanelSurface(V),{tableWrapRef:T,tableBodyHeight:y}=ke.useTableBodyHeight(),A=e.computed(()=>Ee.generateTitleStyle(d.conf.options)),le=e.computed(()=>{var o,n,m,b;const i=((n=(o=d.conf)==null?void 0:o.options)==null?void 0:n.columns)||[],t=((b=(m=d.conf)==null?void 0:m.data)==null?void 0:b[0])||{};return(Array.isArray(i)?i:[]).map(s=>{const C=t[s.key],E=`${s.key}_visible`,B=t[E];return{prop:s.key,label:C!==void 0&&C!==""?String(C):s.label,width:s.width,minWidth:s.minWidth,visible:B!==void 0?!!B:s.visible!==!1}})}),h=e.reactive({current:1,pageSize:10,total:0}),M=e.ref(""),R=e.ref("name"),I=e.ref([]),j=e.ref(!1);function ae(){const i=[],t=M.value.trim();return t&&i.push([R.value,"like",`%${t}%`]),Ae.appendCommonDesignerWhereAnd(d.conf.common,i),{page_index:h.current,page_size:h.pageSize,where_and:JSON.stringify(i)}}function v(){return _(this,null,function*(){var i;j.value=!0;try{const t=yield k.api.post("terminal_config_list",ae(),!0),o=(i=t==null?void 0:t.result)!=null?i:t;I.value=Array.isArray(o==null?void 0:o.data)?[...o.data]:[];const n=o==null?void 0:o.total_records;h.total=typeof n=="number"?n:I.value.length,t&&t.code!==void 0&&t.code!==200&&console.warn("[terminalConfigList] 列表接口非成功",t.msg||t.info,t)}catch(t){console.error(t),I.value=[],h.total=0}finally{j.value=!1}})}const ie=e.computed(()=>I.value);function W(i){if(i==null||i==="")return"";if(Array.isArray(i))return i.join(", ");if(typeof i=="string")try{const t=JSON.parse(i);return Array.isArray(t)?t.join(", "):i}catch(t){return i}return String(i)}function oe(i,t){if(t==="tag")return W(i.tag);const o=i[t];return o==null?"":String(o)}function H(){h.current=1,v()}function ne(){M.value="",h.current=1,v()}function re(){h.current=1,v()}function se(){v()}const D=e.ref(!1),U=e.ref(!1),N=e.ref(!1),a=e.reactive({id:0,uid:"",name:"",alias:"",tagInput:"",description:"",terminal_script:"",config_script:"",addition:"[]",reference:"",hardware:"",is_available:1});function de(){const i=a.tagInput.trim();return i?i.split(",").map(t=>t.trim()).filter(Boolean):[]}function ue(i){if(i==null){a.tagInput="";return}if(Array.isArray(i)){a.tagInput=i.join(", ");return}if(typeof i=="string")try{const t=JSON.parse(i);a.tagInput=Array.isArray(t)?t.join(", "):i}catch(t){a.tagInput=i}}function L(){a.id=0,a.uid="",a.name="",a.alias="",a.tagInput="",a.description="",a.terminal_script="",a.config_script="",a.addition="[]",a.reference="",a.hardware="",a.is_available=1}function ce(){var t;const i=((t=a.addition)==null?void 0:t.trim())||"[]";try{return JSON.parse(i)}catch(o){throw new Error("扩展信息需为合法 JSON")}}function Q(){const i=ce();return{id:a.id,uid:a.uid.trim(),name:a.name.trim(),alias:a.alias.trim(),description:a.description,tag:de(),terminal_script:a.terminal_script,config_script:a.config_script,addition:i,reference:a.reference,hardware:a.hardware,is_available:a.is_available}}function pe(){L(),a.addition="[]",D.value=!0}function me(i){return _(this,null,function*(){var t,o,n,m,b,s,C,E,B,c,O;L(),U.value=!0,N.value=!0;try{const x=yield k.api.post("terminal_config_item",{uid:i.uid},!0),r=(t=x==null?void 0:x.result)!=null?t:x;if(r&&typeof r=="object"){if(a.id=Number(r.id)||0,a.uid=String((n=(o=r.uid)!=null?o:i.uid)!=null?n:""),a.name=String((m=r.name)!=null?m:""),a.alias=String((b=r.alias)!=null?b:""),ue(r.tag),a.description=String((s=r.description)!=null?s:""),a.terminal_script=String((C=r.terminal_script)!=null?C:""),a.config_script=String((E=r.config_script)!=null?E:""),r.addition!==void 0&&r.addition!==null)if(typeof r.addition=="string")try{a.addition=JSON.stringify(JSON.parse(r.addition),null,2)}catch(G){a.addition=String(r.addition)}else a.addition=JSON.stringify(r.addition,null,2);else a.addition="[]";a.reference=String((B=r.reference)!=null?B:""),a.hardware=String((c=r.hardware)!=null?c:""),a.is_available=r.is_available!==void 0?Number(r.is_available):1}}catch(x){a.uid=String(i.uid),a.name=String((O=i.name)!=null?O:""),u.ElMessage.warning("拉取配置详情失败,已使用列表行数据")}finally{N.value=!1}})}function fe(){return _(this,null,function*(){var t;if(!((t=a.name)!=null&&t.trim())){u.ElMessage.warning("请填写配置名称");return}let i;try{i=K(z({},Q()),{id:0})}catch(o){u.ElMessage.warning((o==null?void 0:o.message)||"扩展信息格式错误");return}N.value=!0;try{yield k.api.post("terminal_config_create",i,!0),u.ElMessage.success("添加成功"),D.value=!1,yield v()}catch(o){u.ElMessage.error("添加失败")}finally{N.value=!1}})}function ge(){return _(this,null,function*(){var t;if(!((t=a.name)!=null&&t.trim())){u.ElMessage.warning("请填写配置名称");return}let i;try{i=Q()}catch(o){u.ElMessage.warning((o==null?void 0:o.message)||"扩展信息格式错误");return}N.value=!0;try{yield k.api.post("terminal_config_update",i,!0),u.ElMessage.success("保存成功"),U.value=!1,yield v()}catch(o){u.ElMessage.error("保存失败")}finally{N.value=!1}})}const F=e.ref(!1),J=e.ref(!1),w=e.ref(null);function we(i){return _(this,null,function*(){w.value=null,F.value=!0,J.value=!0;try{const t=yield k.api.post("terminal_config_item",{uid:i.uid},!0),o=t==null?void 0:t.result;o&&typeof o=="object"?w.value=o:(w.value=z({},i),u.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){w.value=z({},i),u.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{J.value=!1}})}function Ve(i){return _(this,null,function*(){try{(yield k.api.post("upgrade_config_lua",{uid:i.uid},!0)).code===200&&(u.ElMessage.success("已触发批量升级"),yield v())}catch(t){u.ElMessage.error("批量升级请求失败(参数可能与后端约定不一致,可在 mixui 终端管理中操作)")}})}function he(i){const t=i.lua_file;if(!t){u.ElMessage.warning("无 LUA 文件地址");return}if(/^https?:\/\//i.test(t)){window.open(t,"_blank");return}const o=(localStorage.getItem("globalApiUrl")||"").replace(/\/$/,""),n=o?`${o}/${t.replace(/^\//,"")}`:t;window.open(n,"_blank")}function be(i){u.ElMessageBox.confirm(`确认对配置「${i.name||i.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{u.ElMessage.success("完整备档流程请在 mixui「终端管理」中操作")}).catch(()=>{})}function ye(i){u.ElMessageBox.confirm(`确认删除终端配置「${i.name||i.uid}」吗?`,"警告",{type:"warning"}).then(()=>_(null,null,function*(){try{yield k.api.post("terminal_config_delete",{uid:i.uid,id:i.id},!0),u.ElMessage.success("删除成功"),yield v()}catch(t){u.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{v()}),(i,t)=>{const o=g.ElIcon,n=g.ElInput,m=g.ElOption,b=g.ElSelect,s=g.ElButton,C=g.ElTableColumn,E=g.ElTable,B=g.ElPagination,c=g.ElFormItem,O=g.ElForm,x=g.ElDialog,r=g.ElDescriptionsItem,G=g.ElDescriptions,X=g.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["terminal-config-list mix-component",e.unref(P)]),style:e.normalizeStyle(e.unref($))},[e.unref(V).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(A.value)},e.toDisplayString(f.conf.caption||f.conf.name),5)),e.createElementVNode("div",De,[e.createElementVNode("div",Ue,[e.createVNode(n,{modelValue:M.value,"onUpdate:modelValue":t[0]||(t[0]=l=>M.value=l),placeholder:"搜索终端配置",size:"small",class:"toolbar-search",onKeyup:e.withKeys(H,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Te.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(b,{modelValue:R.value,"onUpdate:modelValue":t[1]||(t[1]=l=>R.value=l),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(m,{label:"配置名称",value:"name"}),e.createVNode(m,{label:"配置编号",value:"uid"}),e.createVNode(m,{label:"配置别名",value:"alias"}),e.createVNode(m,{label:"标签",value:"tag"})]),_:1},8,["modelValue"]),e.createVNode(s,{type:"primary",onClick:H},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(s,{onClick:ne},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(V).showAddBtn?(e.openBlock(),e.createBlock(s,{key:0,type:"success",onClick:pe},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("添加",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:T,class:"table-wrapper"},[e.createVNode(E,{data:ie.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(y)},{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(C,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(S=>[e.createElementVNode("span",null,e.toDisplayString(oe(S.row,l.prop)),1)]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(C,{label:"操作","min-width":"340",fixed:"right"},{default:e.withCtx(l=>[e.unref(V).showViewBtn?(e.openBlock(),e.createBlock(s,{key:0,size:"small",onClick:S=>we(l.row)},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showEditBtn?(e.openBlock(),e.createBlock(s,{key:1,size:"small",type:"primary",onClick:S=>me(l.row)},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showBatchUpgradeBtn?(e.openBlock(),e.createBlock(s,{key:2,size:"small",onClick:S=>Ve(l.row)},{default:e.withCtx(()=>[...t[30]||(t[30]=[e.createTextVNode("批量升级",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showDownloadBtn?(e.openBlock(),e.createBlock(s,{key:3,size:"small",onClick:S=>he(l.row)},{default:e.withCtx(()=>[...t[31]||(t[31]=[e.createTextVNode("下载",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showArchiveBtn?(e.openBlock(),e.createBlock(s,{key:4,size:"small",type:"info",onClick:S=>be(l.row)},{default:e.withCtx(()=>[...t[32]||(t[32]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(V).showDeleteBtn?(e.openBlock(),e.createBlock(s,{key:5,size:"small",type:"danger",onClick:S=>ye(l.row)},{default:e.withCtx(()=>[...t[33]||(t[33]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",Oe,[e.createVNode(B,{"current-page":h.current,"onUpdate:currentPage":t[2]||(t[2]=l=>h.current=l),"page-size":h.pageSize,"onUpdate:pageSize":t[3]||(t[3]=l=>h.pageSize=l),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:h.total,onSizeChange:re,onCurrentChange:se},null,8,["current-page","page-size","total"])])]),e.renderSlot(i.$slots,"default",{},void 0,!0)],6)),[[X,j.value]]),e.createVNode(x,{modelValue:D.value,"onUpdate:modelValue":t[12]||(t[12]=l=>D.value=l),title:"添加终端配置",width:"900px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[11]||(t[11]=l=>D.value=!1)},{default:e.withCtx(()=>[...t[34]||(t[34]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:fe},{default:e.withCtx(()=>[...t[35]||(t[35]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(O,{model:a,"label-width":"130px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"配置名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[4]||(t[4]=l=>a.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"配置别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[5]||(t[5]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.tagInput,"onUpdate:modelValue":t[6]||(t[6]=l=>a.tagInput=l),placeholder:"多个标签用英文逗号分隔"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Aprus脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.terminal_script,"onUpdate:modelValue":t[7]||(t[7]=l=>a.terminal_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Config脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.config_script,"onUpdate:modelValue":t[8]||(t[8]=l=>a.config_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.addition,"onUpdate:modelValue":t[9]||(t[9]=l=>a.addition=l),type:"textarea",rows:4,placeholder:"JSON,默认 []"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[10]||(t[10]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(x,{modelValue:U.value,"onUpdate:modelValue":t[22]||(t[22]=l=>U.value=l),title:"编辑终端配置",width:"900px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(s,{onClick:t[21]||(t[21]=l=>U.value=!1)},{default:e.withCtx(()=>[...t[36]||(t[36]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:N.value,onClick:ge},{default:e.withCtx(()=>[...t[37]||(t[37]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(O,{model:a,"label-width":"130px"},{default:e.withCtx(()=>[e.createVNode(c,{label:"配置编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.uid,"onUpdate:modelValue":t[13]||(t[13]=l=>a.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"配置名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.name,"onUpdate:modelValue":t[14]||(t[14]=l=>a.name=l)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"配置别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.alias,"onUpdate:modelValue":t[15]||(t[15]=l=>a.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.tagInput,"onUpdate:modelValue":t[16]||(t[16]=l=>a.tagInput=l),placeholder:"多个标签用英文逗号分隔"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Aprus脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.terminal_script,"onUpdate:modelValue":t[17]||(t[17]=l=>a.terminal_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"Config脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.config_script,"onUpdate:modelValue":t[18]||(t[18]=l=>a.config_script=l),type:"textarea",rows:5,class:"mono-input"},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.addition,"onUpdate:modelValue":t[19]||(t[19]=l=>a.addition=l),type:"textarea",rows:4},null,8,["modelValue"])]),_:1}),e.createVNode(c,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:a.description,"onUpdate:modelValue":t[20]||(t[20]=l=>a.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(x,{modelValue:F.value,"onUpdate:modelValue":t[24]||(t[24]=l=>F.value=l),title:"终端配置详情",width:"800px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:t[23]||(t[23]=l=>F.value=!1)},{default:e.withCtx(()=>[...t[38]||(t[38]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",ze,[w.value?(e.openBlock(),e.createBlock(G,{key:0,column:2,border:""},{default:e.withCtx(()=>[e.createVNode(r,{label:"配置编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"配置名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"配置别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.alias)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"LUA版本"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.lua_version)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"标签",span:2},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(W(w.value.tag)),1)]),_:1}),e.createVNode(r,{label:"最后修改"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(r,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=w.value.description)!=null?l:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)])),[[X,J.value]])]),_:1},8,["modelValue"])],64)}}})),Re=k._export_sfc($e,[["__scopeId","data-v-d6b454e0"]]);exports.default=Re;
@@ -46,8 +46,8 @@ import "element-plus/es/components/icon/style/css";
46
46
  import { defineComponent as dt, computed as pe, reactive as he, ref as D, watch as mt, onMounted as pt, openBlock as p, createElementBlock as L, Fragment as T, withDirectives as ke, normalizeStyle as _e, unref as w, normalizeClass as ct, toDisplayString as y, createCommentVNode as S, createElementVNode as le, createVNode as a, withKeys as bt, withCtx as n, createTextVNode as s, createBlock as B, renderList as H, renderSlot as ft } from "vue";
47
47
  import { u as vt } from "./useTableBodyHeight-CwrQvi7M.js";
48
48
  import { u as yt } from "./useMixiotPanelSurface-DRl3cZvc.js";
49
- import { B as gt } from "./BaseComponent-qzL33ZSL.js";
50
- import { a as z, _ as ht } from "./index-BHBE19E2.js";
49
+ import { B as gt } from "./BaseComponent-D82kw5vB.js";
50
+ import { a as z, _ as ht } from "./index-CCWU_se2.js";
51
51
  import { g as kt } from "./titleStyle-BT5GlpAb.js";
52
52
  import { ElMessage as b, ElMessageBox as we } from "element-plus";
53
53
  import { Search as _t } from "@element-plus/icons-vue";