mixdashboards 1.0.95 → 1.0.96

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 (364) hide show
  1. package/dist/AgActionsRenderer.vue_vue_type_script_setup_true_lang-CJoNU7fs.js +139 -0
  2. package/dist/AgActionsRenderer.vue_vue_type_script_setup_true_lang-Cojc_jSG.cjs +1 -0
  3. package/dist/{BaseComponent-CDynr4Wh.js → BaseComponent-DjTaS3b5.js} +3 -3
  4. package/dist/{BaseComponent-CIst2h8G.cjs → BaseComponent-RkrbGXqw.cjs} +1 -1
  5. package/dist/{EChartComponentBase-vS3I7IAs.js → EChartComponentBase-CJ2oE_sT.js} +2 -2
  6. package/dist/{EChartComponentBase-COpfXxIp.cjs → EChartComponentBase-qlAnyb_l.cjs} +1 -1
  7. package/dist/{EmergencyPlanPanel-C8P0GI7X.cjs → EmergencyPlanPanel-BA9FM_Df.cjs} +1 -1
  8. package/dist/{EmergencyPlanPanel-pImR2o3P.js → EmergencyPlanPanel-CsijgbCc.js} +1 -1
  9. package/dist/{HistoryPlanDialog-CJt9WdEo.js → HistoryPlanDialog-BljCUf-c.js} +1 -1
  10. package/dist/{HistoryPlanDialog-CTBHiL33.cjs → HistoryPlanDialog-C5SMO59g.cjs} +1 -1
  11. package/dist/{MixiotAppDetailPage-Sh5uWfZQ.cjs → MixiotAppDetailPage-BNypqgEL.cjs} +1 -1
  12. package/dist/{MixiotAppDetailPage-BlcjJEvU.js → MixiotAppDetailPage-BmtDmX84.js} +1 -1
  13. package/dist/{MonitoringMap-Tm3_uHk4.js → MonitoringMap-CECmA0SN.js} +2 -2
  14. package/dist/{MonitoringMap-Db5Evmst.cjs → MonitoringMap-Cw6sf9w8.cjs} +1 -1
  15. package/dist/{UniverSheet-CnA6FQC4.cjs → UniverSheet-BNa65EnX.cjs} +1 -1
  16. package/dist/{UniverSheet-BQ80juz0.js → UniverSheet-CSK6b_Gq.js} +2 -2
  17. package/dist/{accelerationChart-Bv6urq3Z.js → accelerationChart-Bs3gquS_.js} +2 -2
  18. package/dist/{accelerationChart-CVWR4I6j.cjs → accelerationChart-DJKTUpIg.cjs} +1 -1
  19. package/dist/{actionItem-eYAPDWJd.js → actionItem-CGiIOupb.js} +2 -2
  20. package/dist/{actionItem-Db9YTPOf.cjs → actionItem-D-lybTkI.cjs} +1 -1
  21. package/dist/{alarmLevelChart-1UVCVoqR.js → alarmLevelChart-BedaJ0ln.js} +2 -2
  22. package/dist/{alarmLevelChart-spD1sxSo.cjs → alarmLevelChart-CnAubt6N.cjs} +1 -1
  23. package/dist/{alertTable-Cq-bm31Z.js → alertTable-BiKBlPdp.js} +2 -2
  24. package/dist/{alertTable-D3vceqRf.cjs → alertTable-CZIv5NPa.cjs} +1 -1
  25. package/dist/{aliasObjectSelectorDemo-CqL71xrB.cjs → aliasObjectSelectorDemo-BASCy7Od.cjs} +1 -1
  26. package/dist/{aliasObjectSelectorDemo-OMLXF6zO.js → aliasObjectSelectorDemo-BlsCrn2H.js} +1 -1
  27. package/dist/{annualRainfallChart-Bh51Y8J0.js → annualRainfallChart-BIRIsOC6.js} +2 -2
  28. package/dist/{annualRainfallChart-D5jvzBdF.cjs → annualRainfallChart-CkAou5Cl.cjs} +1 -1
  29. package/dist/{aqi-DDvUmbmk.js → aqi-CbWYzUle.js} +2 -2
  30. package/dist/{aqi-6DGC3Omw.cjs → aqi-FtDn-I2B.cjs} +1 -1
  31. package/dist/{aqiIndass-DwJPngho.js → aqiIndass-C54I5pbk.js} +2 -2
  32. package/dist/{aqiIndass-Dm7Ak1t1.cjs → aqiIndass-CJBdnhy7.cjs} +1 -1
  33. package/dist/{areaDeformCurve-EEudvN8P.cjs → areaDeformCurve-CsBGXGz_.cjs} +1 -1
  34. package/dist/{areaDeformCurve-DaVqM10Q.js → areaDeformCurve-zHt1nUXn.js} +2 -2
  35. package/dist/{arrayCard-BuhSczlA.js → arrayCard-B5qhwDS-.js} +2 -2
  36. package/dist/{arrayCard-CvNWzdkW.cjs → arrayCard-dd1wcHZA.cjs} +1 -1
  37. package/dist/{audio-BS2BkAD6.cjs → audio-Bhn3OdVR.cjs} +1 -1
  38. package/dist/{audio-D90BXHEx.js → audio-DJtqiqr4.js} +2 -2
  39. package/dist/{bar-Zfi2zEac.cjs → bar-Bizi49Xr.cjs} +1 -1
  40. package/dist/{bar-DMn6jdR5.js → bar-CSyK2lMO.js} +2 -2
  41. package/dist/basicShapeToolbox-CZQK6Rt6.cjs +1 -0
  42. package/dist/{basicShapeToolbox-IpvEWS3m.js → basicShapeToolbox-zIOr0N5V.js} +3 -3
  43. package/dist/{bmp-BynLW8Wd.js → bmp-4eESJHlH.js} +2 -2
  44. package/dist/{bmp-nZQprsKY.cjs → bmp-CQcVSDfe.cjs} +1 -1
  45. package/dist/{box-CSruteex.cjs → box-B9socOkv.cjs} +1 -1
  46. package/dist/{box-Dz4r4YYF.js → box-CuhJyRf_.js} +2 -2
  47. package/dist/{chartConfigPanel-DBF3Wx4F.cjs → chartConfigPanel-BQyas1F0.cjs} +1 -1
  48. package/dist/{chartConfigPanel-f44Qtke-.js → chartConfigPanel-C20BT47w.js} +1 -1
  49. package/dist/{circleBar-CtPFr6JX.js → circleBar-BeY3L15T.js} +2 -2
  50. package/dist/{circleBar-CO3o8ByN.cjs → circleBar-DVJyW9LH.cjs} +1 -1
  51. package/dist/{clock-CchPRNtc.js → clock-DA5iBBQ8.js} +2 -2
  52. package/dist/{clock-BRzseKic.cjs → clock-DBnLOxL_.cjs} +1 -1
  53. package/dist/{clt-BDhAtdJx.js → clt-CiKW8jcd.js} +2 -2
  54. package/dist/{clt-BLpQ1x4t.cjs → clt-OLYinmkJ.cjs} +1 -1
  55. package/dist/{cmc-CvRgThhq.cjs → cmc-BE-Ewrvq.cjs} +1 -1
  56. package/dist/{cmc-twJ1AgHU.js → cmc-Bh-_i9kH.js} +2 -2
  57. package/dist/{cmp-CO5hLZ1v.js → cmp-CVSAMKbU.js} +2 -2
  58. package/dist/{cmp-B0NosMZN.cjs → cmp-iaHfbdNK.cjs} +1 -1
  59. package/dist/{conclusionCard-B-ekbdhn.cjs → conclusionCard-D5xiKzR_.cjs} +1 -1
  60. package/dist/{conclusionCard-B6pdcA-3.js → conclusionCard-DwjxHYFj.js} +2 -2
  61. package/dist/controlList-DCPzxUM_.cjs +1 -0
  62. package/dist/controlList-DpDuLNSn.js +757 -0
  63. package/dist/controlRecordList-CJ_AxHDH.cjs +1 -0
  64. package/dist/controlRecordList-D6nXya59.js +295 -0
  65. package/dist/{controlRecordListAPP-C7MUibBb.js → controlRecordListAPP-DI2bQsxJ.js} +2 -2
  66. package/dist/{controlRecordListAPP-BdT7UR3c.cjs → controlRecordListAPP-D_zBAsiN.cjs} +1 -1
  67. package/dist/crd-CcDmG4vb.cjs +1 -0
  68. package/dist/{crd-fmbrjZD7.js → crd-lkPJO82B.js} +52 -50
  69. package/dist/{ctrBtn-W4abaB3U.cjs → ctrBtn-DRsYW2No.cjs} +1 -1
  70. package/dist/{ctrBtn-Dq6mpOsY.js → ctrBtn-DvwSfbkm.js} +3 -3
  71. package/dist/{ctrSet-xd_zIoJ2.cjs → ctrSet-B9R55HTw.cjs} +1 -1
  72. package/dist/{ctrSet-Br_MBjO-.js → ctrSet-c5IksNgS.js} +3 -3
  73. package/dist/{ctrSwitch-CwPnRe4L.cjs → ctrSwitch-UtaIh31f.cjs} +1 -1
  74. package/dist/{ctrSwitch-DTzUrEE_.js → ctrSwitch-mp2BJLO5.js} +3 -3
  75. package/dist/{dataManagement-C49vYp12.js → dataManagement-ByXcFrdD.js} +2 -2
  76. package/dist/{dataManagement-BhEwqXHV.cjs → dataManagement-C1qj7hXO.cjs} +1 -1
  77. package/dist/{dataReport-DSDd8eie.js → dataReport-76j5h8OP.js} +2 -2
  78. package/dist/{dataReport-DYBqw0YQ.cjs → dataReport-Boo3SKHW.cjs} +1 -1
  79. package/dist/{dataTable-Cy-086YO.cjs → dataTable-D70yu7Ow.cjs} +1 -1
  80. package/dist/{dataTable-D2qgTxpB.js → dataTable-DZB3q_YR.js} +1 -1
  81. package/dist/{datetime-COKFm9L5.js → datetime-Bv70EgWb.js} +2 -2
  82. package/dist/{datetime-DFUVJb4S.cjs → datetime-DwsO5ZQO.cjs} +1 -1
  83. package/dist/{deepClusterSlipSurface-BPISTQcX.cjs → deepClusterSlipSurface-B1Qo4zga.cjs} +1 -1
  84. package/dist/{deepClusterSlipSurface-DJzALgcB.js → deepClusterSlipSurface-D3RfdM3l.js} +2 -2
  85. package/dist/{deepDataMatrix-Bi3g_bKW.cjs → deepDataMatrix-5TSzS6Tk.cjs} +1 -1
  86. package/dist/{deepDataMatrix-w0cfO2B_.js → deepDataMatrix-BlyC4XHk.js} +2 -2
  87. package/dist/{deepDisplacement3D-CIyaSi0I.cjs → deepDisplacement3D-TJPfji5n.cjs} +1 -1
  88. package/dist/{deepDisplacement3D-C1ttX8aE.js → deepDisplacement3D-qO4JtGAB.js} +2 -2
  89. package/dist/{deepDisplacementChart-CYstKBTy.cjs → deepDisplacementChart-BEA4w_0K.cjs} +1 -1
  90. package/dist/{deepDisplacementChart-C2iv9NHz.cjs → deepDisplacementChart-DDliyOrk.cjs} +1 -1
  91. package/dist/{deepDisplacementChart-CI7DxjHz.js → deepDisplacementChart-DhZAAgX4.js} +3 -3
  92. package/dist/{deepDisplacementChart-Dk_rmKnV.js → deepDisplacementChart-qGHt_2a3.js} +2 -2
  93. package/dist/{deepDisplacementView-Dq4b2RbZ.cjs → deepDisplacementView-CEgm3PMt.cjs} +1 -1
  94. package/dist/{deepDisplacementView-CIffZ686.js → deepDisplacementView-D5bBpvzq.js} +1 -1
  95. package/dist/{deepNodeTemperatureChart-C2gt2VNw.js → deepNodeTemperatureChart-BWXBhVIg.js} +2 -2
  96. package/dist/{deepNodeTemperatureChart-OVbfuoz6.cjs → deepNodeTemperatureChart-BeKtgpUn.cjs} +1 -1
  97. package/dist/{deepTangentAngleChart-C-NNLv4_.cjs → deepTangentAngleChart-B1h0UgLk.cjs} +1 -1
  98. package/dist/{deepTangentAngleChart-DqtJDwQf.js → deepTangentAngleChart-B5FS9iuq.js} +2 -2
  99. package/dist/{deepTemperatureField-BeQX4h51.js → deepTemperatureField-Ipwodx0p.js} +3 -3
  100. package/dist/{deepTemperatureField-BsxBNJ-G.cjs → deepTemperatureField-jfuJDnKK.cjs} +1 -1
  101. package/dist/{deepTrendChart-Dk-eTMyG.cjs → deepTrendChart-BRWqXaPb.cjs} +1 -1
  102. package/dist/{deepTrendChart-sxOxHlRy.js → deepTrendChart-EXZN76ub.js} +2 -2
  103. package/dist/{deviceOnlineStatus-CKijwYuq.js → deviceOnlineStatus-D6fX08e7.js} +2 -2
  104. package/dist/{deviceOnlineStatus-J3R8H1RD.cjs → deviceOnlineStatus-pnZKEQm0.cjs} +1 -1
  105. package/dist/{deviceStatus-Bt1e3XlG.cjs → deviceStatus-CpnUHL8c.cjs} +1 -1
  106. package/dist/{deviceStatus-CnfzQ719.js → deviceStatus-_5Uc9XnB.js} +2 -2
  107. package/dist/{displacementDataTable-B5thhB6W.cjs → displacementDataTable-945GuVxd.cjs} +1 -1
  108. package/dist/{displacementDataTable-CbGeB6cZ.js → displacementDataTable-BG3ZOLWR.js} +2 -2
  109. package/dist/{displacementTrajectoryChart-D6BsvUrc.js → displacementTrajectoryChart-B04cluw3.js} +2 -2
  110. package/dist/{displacementTrajectoryChart-B1p6RdoR.cjs → displacementTrajectoryChart-B0jXqutN.cjs} +1 -1
  111. package/dist/{displacementTrendChart-B0GB0r8C.cjs → displacementTrendChart-C4gRaavn.cjs} +1 -1
  112. package/dist/{displacementTrendChart-D0mhffyM.js → displacementTrendChart-qbDbFQOw.js} +2 -2
  113. package/dist/{dxf-ChDppNsq.cjs → dxf-BnX3kUoj.cjs} +1 -1
  114. package/dist/{dxf-BSWNRcSp.js → dxf-DlDy74-7.js} +2 -2
  115. package/dist/{dzc-j07WTq_9.js → dzc-B5sZ6Avt.js} +2 -2
  116. package/dist/{dzc-CjI1wBLb.cjs → dzc-FAf0Kxf0.cjs} +1 -1
  117. package/dist/{emergencyPlan-CJljT67A.cjs → emergencyPlan-DlfeWUWF.cjs} +1 -1
  118. package/dist/{emergencyPlan-DWXloQOJ.js → emergencyPlan-jPnU8wJ9.js} +3 -3
  119. package/dist/{evn-C85HtXrl.cjs → evn-BqmsnvHW.cjs} +1 -1
  120. package/dist/{evn-DVXNLw3K.js → evn-DBOsZvHb.js} +2 -2
  121. package/dist/{evolutionChart-CzqdvPgf.cjs → evolutionChart-B3X0wVH2.cjs} +1 -1
  122. package/dist/{evolutionChart-CiSJ0zjN.js → evolutionChart-tYjmkLzE.js} +3 -3
  123. package/dist/{fileViewer-BfvwEeaA.js → fileViewer-CuHiMxDM.js} +2 -2
  124. package/dist/{fileViewer-AuP1BMOL.cjs → fileViewer-DJX2kROp.cjs} +1 -1
  125. package/dist/{filterBar-C6XiY3D6.js → filterBar--IW51BPy.js} +2 -2
  126. package/dist/{filterBar-DxLYIinB.cjs → filterBar-DabGW1hM.cjs} +1 -1
  127. package/dist/{fireCombustionCurve-8cJxPiAg.cjs → fireCombustionCurve-BqpFzrH2.cjs} +1 -1
  128. package/dist/{fireCombustionCurve-DZ0aQVHp.js → fireCombustionCurve-DPqwzzDN.js} +3 -3
  129. package/dist/{fireFilterBar-ZaI62_tT.cjs → fireFilterBar-DKGxDk-I.cjs} +1 -1
  130. package/dist/{fireFilterBar-BCnSNarb.js → fireFilterBar-vFteIjsI.js} +2 -2
  131. package/dist/{fireHistoryTable-BXC6ZYkJ.js → fireHistoryTable-C4sMZp0k.js} +2 -2
  132. package/dist/{fireHistoryTable-PZdwtN69.cjs → fireHistoryTable-Cdf8hcaR.cjs} +1 -1
  133. package/dist/{gag--ZAXdXFK.js → gag-BExUU1KM.js} +2 -2
  134. package/dist/{gag-CbkboK8w.cjs → gag-DEIj5RLg.cjs} +1 -1
  135. package/dist/{gasStationList-Cw7AH91B.cjs → gasStationList-COYeC4Ye.cjs} +1 -1
  136. package/dist/{gasStationList-DvzI0A1r.js → gasStationList-DE_JXkdK.js} +2 -2
  137. package/dist/{geo3dViewer-mFrWGimz.cjs → geo3dViewer-Dn0mFDIT.cjs} +1 -1
  138. package/dist/{geo3dViewer-fK7PZCvz.js → geo3dViewer-DwgibLCZ.js} +3 -3
  139. package/dist/{glbModel-iV3SV8Ig.cjs → glbModel-56kJ4FTO.cjs} +1 -1
  140. package/dist/{glbModel-BgqZX5Vh.js → glbModel-DHCHj66S.js} +2 -2
  141. package/dist/{globalObjectSelector-EwvayNUM.js → globalObjectSelector-DvdqOfcO.js} +1 -1
  142. package/dist/{globalObjectSelector-DKw1vigz.cjs → globalObjectSelector-iafApid4.cjs} +1 -1
  143. package/dist/{gnssFilterBar-X7HKdDTm.cjs → gnssFilterBar-1uI1tmiT.cjs} +1 -1
  144. package/dist/{gnssFilterBar-Bh0x2hth.js → gnssFilterBar-B86cQmYf.js} +2 -2
  145. package/dist/{gnssHistoryTable-CRnzvH_A.js → gnssHistoryTable-CIqR-fxO.js} +2 -2
  146. package/dist/{gnssHistoryTable-DgH6SjDn.cjs → gnssHistoryTable-DdVQ_dzJ.cjs} +1 -1
  147. package/dist/{gnssMapView-WYpkFEvR.cjs → gnssMapView-CXgClzHI.cjs} +2 -2
  148. package/dist/{gnssMapView-Dw4_9_Mv.js → gnssMapView-DzhJCiQk.js} +4 -4
  149. package/dist/{gnssSectionProfile-CkWQ6OJ5.cjs → gnssSectionProfile-DXzGnBUS.cjs} +1 -1
  150. package/dist/{gnssSectionProfile-DmQNxm5Z.js → gnssSectionProfile-SjU_9-9D.js} +2 -2
  151. package/dist/{gnssTimeSeriesChart-DQgAq0a7.cjs → gnssTimeSeriesChart-CAWC_v86.cjs} +1 -1
  152. package/dist/{gnssTimeSeriesChart-XHZlhMj6.js → gnssTimeSeriesChart-DJKV4DVv.js} +2 -2
  153. package/dist/{gnssXYTrajectory-DGHeShyk.cjs → gnssXYTrajectory-C8VLEInc.cjs} +1 -1
  154. package/dist/{gnssXYTrajectory-CSo1u1n3.js → gnssXYTrajectory-CjOfpEtt.js} +2 -2
  155. package/dist/{grd-v0lK1kF4.cjs → grd-VLoPMj7s.cjs} +1 -1
  156. package/dist/{grd-CZkreEUN.js → grd-vmOinXrA.js} +2 -2
  157. package/dist/{grdIndass-D6yoBQ17.js → grdIndass-CP5MMkAP.js} +2 -2
  158. package/dist/{grdIndass-BT0BFDGR.cjs → grdIndass-DJMhm21Y.cjs} +1 -1
  159. package/dist/{grg-DckR9cWt.js → grg-BKXfPTcP.js} +2 -2
  160. package/dist/{grg-DRWv1y-A.cjs → grg-c1ZF84_8.cjs} +1 -1
  161. package/dist/{gridview-BNsYOW5h.cjs → gridview-D8-9pxQl.cjs} +1 -1
  162. package/dist/{gridview-BeWxnPvt.js → gridview-GMC5oX4p.js} +2 -2
  163. package/dist/{groundwaterFilterBar-yRYOHhla.js → groundwaterFilterBar-DBgKHqw3.js} +2 -2
  164. package/dist/{groundwaterFilterBar-DlJ6qtXT.cjs → groundwaterFilterBar-DTOSpAiN.cjs} +1 -1
  165. package/dist/{groundwaterProfileChart-Bt_O3O-n.js → groundwaterProfileChart-BiOk3sGK.js} +3 -3
  166. package/dist/{groundwaterProfileChart-DH4qqAPc.cjs → groundwaterProfileChart-DSl5Xgnr.cjs} +2 -2
  167. package/dist/{groundwaterTimeCurve-Ck0jjuL8.js → groundwaterTimeCurve-BPq9L4Gu.js} +3 -3
  168. package/dist/{groundwaterTimeCurve-BXMGUMmt.cjs → groundwaterTimeCurve-DTvqiNJw.cjs} +1 -1
  169. package/dist/{groupCard-D0UsDuiC.js → groupCard-BegIO-qR.js} +2 -2
  170. package/dist/{groupCard-B-IRFBAh.cjs → groupCard-CmAWh5IR.cjs} +1 -1
  171. package/dist/{headerBar-D5Xt_cgG.js → headerBar-BWO09wSU.js} +2 -2
  172. package/dist/{headerBar-B1WEFdX3.cjs → headerBar-CjiIpmL9.cjs} +1 -1
  173. package/dist/{history-CDhWtnKJ.cjs → history-DRwHPsbL.cjs} +1 -1
  174. package/dist/{history-DQBAOa1f.js → history-Dl5GpruE.js} +1 -1
  175. package/dist/{index-dAR2gb1S.js → index-B2DTHz1b.js} +2547 -2516
  176. package/dist/index-BtYU0jdF.cjs +612 -0
  177. package/dist/{insarDeformChart-Cpj6erLV.cjs → insarDeformChart-B6DXYJms.cjs} +1 -1
  178. package/dist/{insarDeformChart-Ca-7OxkY.js → insarDeformChart-KLPSy9uU.js} +2 -2
  179. package/dist/{insarImageViewer-DPl6v87T.js → insarImageViewer-ByxSnxqf.js} +2 -2
  180. package/dist/{insarImageViewer-B13fJI8O.cjs → insarImageViewer-DGk4-mPp.cjs} +1 -1
  181. package/dist/{kds-BKeCFcf9.cjs → kds-BBB16Dii.cjs} +1 -1
  182. package/dist/{kds-DOWMe1al.js → kds-D357CVYK.js} +2 -2
  183. package/dist/{kpiCard-CCFRhtwi.js → kpiCard-Byd1oMkb.js} +2 -2
  184. package/dist/{kpiCard-qgFod_Ua.cjs → kpiCard-Ce10Yb_x.cjs} +1 -1
  185. package/dist/{landslideMap-BzeioyHt.cjs → landslideMap-BRm2krnn.cjs} +1 -1
  186. package/dist/{landslideMap-BQlFx7Cv.js → landslideMap-BtqpNIeA.js} +3 -3
  187. package/dist/{landslideWarning-M7D7Bl_l.js → landslideWarning-B7LVdly8.js} +5 -5
  188. package/dist/{landslideWarning-VULyaEXL.cjs → landslideWarning-CAYVIVrI.cjs} +1 -1
  189. package/dist/{layerTabs-DMUf84AC.cjs → layerTabs-ChkCcOoY.cjs} +1 -1
  190. package/dist/{layerTabs-BlaGgxva.js → layerTabs-LQwulp6N.js} +2 -2
  191. package/dist/{leaflet-src-ClJjz25G.js → leaflet-src-CUAuMEGj.js} +1 -1
  192. package/dist/{leaflet-src-DV6okrEg.cjs → leaflet-src-DwdnWe7D.cjs} +1 -1
  193. package/dist/{lerc-CI8uTaV0.js → lerc-BfIa2cj-.js} +2 -2
  194. package/dist/{lerc-DgZ-wqgS.cjs → lerc-D1gH5BIQ.cjs} +1 -1
  195. package/dist/{lin-DoCO7YNv.js → lin-BT3jRsT_.js} +2 -2
  196. package/dist/{lin-B1h1vCEM.cjs → lin-rXSlDP_V.cjs} +1 -1
  197. package/dist/{linIndass-0AjC0BWn.cjs → linIndass-DAQyPYcD.cjs} +1 -1
  198. package/dist/{linIndass-CBpi3PAZ.js → linIndass-Dp8jbdx3.js} +2 -2
  199. package/dist/{lst-DOQ0I-QM.js → lst-4PUA_fDL.js} +2 -2
  200. package/dist/{lst-Di4jQX13.cjs → lst-DhcGZjI8.cjs} +1 -1
  201. package/dist/{manualEntry-P8Nl97Qi.cjs → manualEntry-Bcu3OgSt.cjs} +1 -1
  202. package/dist/{manualEntry-Cbkj0184.js → manualEntry-DCvftO4K.js} +2 -2
  203. package/dist/{mapBackground-DQ9_4u47.js → mapBackground-BvsozCb2.js} +3 -3
  204. package/dist/{mapBackground-B8qmaFhT.cjs → mapBackground-sZxm0aUL.cjs} +1 -1
  205. package/dist/mappingList-CEiZ8oTe.js +790 -0
  206. package/dist/mappingList-D6aWYkq9.cjs +1 -0
  207. package/dist/{markdownViewer-CUD-sV4Y.cjs → markdownViewer-C892SNpL.cjs} +1 -1
  208. package/dist/{markdownViewer-DoNdzIKf.js → markdownViewer-D3L6Dz1l.js} +2 -2
  209. package/dist/{mix-control-modal-C_uKEO_a.cjs → mix-control-modal-BrC9Ymp1.cjs} +1 -1
  210. package/dist/{mix-control-modal-Ckptw_rw.js → mix-control-modal-CVHE6zli.js} +1 -1
  211. package/dist/{mixGrid-CTVvp9QF.js → mixGrid-B5vsmQRS.js} +2 -2
  212. package/dist/{mixGrid-6zeicQ3c.cjs → mixGrid-vXexGZjd.cjs} +1 -1
  213. package/dist/mixdashboards.cjs +1 -1
  214. package/dist/mixdashboards.css +1 -1
  215. package/dist/mixdashboards.js +1 -1
  216. package/dist/{mjpegCamera-Vcjc4TDv.js → mjpegCamera-BIV79lBB.js} +2 -2
  217. package/dist/{mjpegCamera-iTrVcLgw.cjs → mjpegCamera-CB9jo-Ux.cjs} +1 -1
  218. package/dist/{monitorAlert-C-4k1_jT.cjs → monitorAlert-CllUDsLM.cjs} +1 -1
  219. package/dist/{monitorAlert-Dr38wAgW.js → monitorAlert-CnuwYHy7.js} +2 -2
  220. package/dist/{monitorData-C1TidDg9.js → monitorData-_mQ06hCt.js} +2 -2
  221. package/dist/{monitorData-CZVyYd2r.cjs → monitorData-mcdStiwF.cjs} +1 -1
  222. package/dist/{monitorSpeedChart-BcpBU8eq.js → monitorSpeedChart-BAkGFAMI.js} +1 -1
  223. package/dist/{monitorSpeedChart-17C8sMrk.cjs → monitorSpeedChart-CJ44tvoa.cjs} +1 -1
  224. package/dist/{mxa-CM0cQhnm.js → mxa-BfAuvija.js} +2 -2
  225. package/dist/{mxa-Bgnj8E8y.cjs → mxa-VvU7dxWN.cjs} +1 -1
  226. package/dist/{myValue-8ohRFr2E.js → myValue-BFgaG31h.js} +2 -2
  227. package/dist/{myValue-BLbSXlWk.cjs → myValue-_n9L9caQ.cjs} +1 -1
  228. package/dist/{myValueList-CHcuWTTH.cjs → myValueList-8j3wOuPB.cjs} +1 -1
  229. package/dist/{myValueList-COjvkd2-.js → myValueList-BpzYwuDt.js} +2 -2
  230. package/dist/objectList-2Toe6lHd.cjs +1 -0
  231. package/dist/objectList-DeJfFPkz.js +1824 -0
  232. package/dist/{objectListAPP-Dq8fHxp8.cjs → objectListAPP-CkUNWawI.cjs} +1 -1
  233. package/dist/{objectListAPP-bzNJlVaA.js → objectListAPP-DNXllv3q.js} +3 -3
  234. package/dist/{percentBar-FUCfrT8V.js → percentBar-CCf5KtjC.js} +2 -2
  235. package/dist/{percentBar-SFYgecHA.cjs → percentBar-IK5NAYe9.cjs} +1 -1
  236. package/dist/{photo-TgHIe0Ch.js → photo-D2VfMhYk.js} +3 -3
  237. package/dist/photo-qfDW8OJd.cjs +1 -0
  238. package/dist/{pie-BZ77ZyhE.cjs → pie-D7IoUk_n.cjs} +1 -1
  239. package/dist/{pie-C48Objcw.js → pie-s-vNaWvq.js} +2 -2
  240. package/dist/{placeholder-CxNDI9H6.js → placeholder-C8n98GWG.js} +1 -1
  241. package/dist/{placeholder-_psD4WXJ.cjs → placeholder-mMI1j7xJ.cjs} +1 -1
  242. package/dist/{pressBtn-B5Z00Ths.js → pressBtn-BpZT3z0a.js} +3 -3
  243. package/dist/{pressBtn-DPKQTc72.cjs → pressBtn-DWAHYP8w.cjs} +1 -1
  244. package/dist/{processTable-Dy8AKXfL.js → processTable-B6HUw7tP.js} +2 -2
  245. package/dist/{processTable-DHGOo7NC.cjs → processTable-Dj2t2ie8.cjs} +1 -1
  246. package/dist/{progressBar-BsbB_lCn.js → progressBar-BHQYx6Mw.js} +2 -2
  247. package/dist/{progressBar-DAkhmQGk.cjs → progressBar-Etc7OX2P.cjs} +1 -1
  248. package/dist/{progressCircle-Bo6lG0y4.cjs → progressCircle-DPKA9jdh.cjs} +1 -1
  249. package/dist/{progressCircle-dtQ2Mr98.js → progressCircle-DQzkJOt9.js} +2 -2
  250. package/dist/{qrcode-e5STOK-h.cjs → qrcode-DInsznh9.cjs} +1 -1
  251. package/dist/{qrcode-PDPXI73T.js → qrcode-DVP2vUMc.js} +2 -2
  252. package/dist/{raceBar-CORYOqMg.cjs → raceBar-CWvk_xex.cjs} +1 -1
  253. package/dist/{raceBar-BuuLeY-X.js → raceBar-CX3Vdq0Z.js} +2 -2
  254. package/dist/{rad-CNwy6iai.js → rad-Bqtk2K_2.js} +2 -2
  255. package/dist/{rad-BmQsBbVy.cjs → rad-sEi8DdSk.cjs} +1 -1
  256. package/dist/{radarMapViewer-BADJdQo5.js → radarMapViewer-BxgJgmSG.js} +2 -2
  257. package/dist/{radarMapViewer-CrMIxOBL.cjs → radarMapViewer-D-jGGJqp.cjs} +1 -1
  258. package/dist/{rainfallFilterBar-CiOm_zYw.js → rainfallFilterBar-DS8mK4ZK.js} +2 -2
  259. package/dist/{rainfallFilterBar-MmjGAJRF.cjs → rainfallFilterBar-dfMRbxcM.cjs} +1 -1
  260. package/dist/{rainfallTimeCurve-BAKEsUwe.js → rainfallTimeCurve-89G9uPDa.js} +3 -3
  261. package/dist/{rainfallTimeCurve-C2ysFIbv.cjs → rainfallTimeCurve-B8r5OW7q.cjs} +1 -1
  262. package/dist/{rangeLin-DBV9Ss9P.js → rangeLin-0qDDEzES.js} +2 -2
  263. package/dist/{rangeLin-6kOG5U0P.cjs → rangeLin-BVPHr48Y.cjs} +1 -1
  264. package/dist/{realtimeEvolutionMap-C8Dsp61U.js → realtimeEvolutionMap-BPybzLsa.js} +2 -2
  265. package/dist/{realtimeEvolutionMap-RVlodvbx.cjs → realtimeEvolutionMap-BW-10twn.cjs} +1 -1
  266. package/dist/{regionBar-CuD510qV.cjs → regionBar-CX3VYSxr.cjs} +1 -1
  267. package/dist/{regionBar-sPagXetw.js → regionBar-TP_pMCoa.js} +2 -2
  268. package/dist/{request-Do8WJeMw.js → request-CXLchNeV.js} +1 -1
  269. package/dist/{request-DtzGiXvj.cjs → request-cgSE-Bxj.cjs} +1 -1
  270. package/dist/{retainer1-CrZIpnRg.js → retainer1-CFEtuHps.js} +3 -3
  271. package/dist/{retainer1-C8Do2c08.cjs → retainer1-CGm_xPGX.cjs} +1 -1
  272. package/dist/{retainer2-BG9yfpJ5.cjs → retainer2-CAStQRqi.cjs} +1 -1
  273. package/dist/{retainer2-0h4QPS_q.js → retainer2-DSmXUYVZ.js} +3 -3
  274. package/dist/retainerRecordList-CGQsw69Y.js +772 -0
  275. package/dist/retainerRecordList-hNeAHwHS.cjs +1 -0
  276. package/dist/{retainerRecordListAPP-DPcEWs2r.js → retainerRecordListAPP-2dbjsVqM.js} +3 -3
  277. package/dist/{retainerRecordListAPP-DYifrv8O.cjs → retainerRecordListAPP-C_No_L4Z.cjs} +1 -1
  278. package/dist/{ringTopN-CrJ_d3bE.cjs → ringTopN-6KefLaNo.cjs} +1 -1
  279. package/dist/{ringTopN-DqDVlrjM.js → ringTopN-DF6DqlSZ.js} +2 -2
  280. package/dist/{riskRegionTable-DP2yKg1m.js → riskRegionTable-6dVdUgLh.js} +2 -2
  281. package/dist/{riskRegionTable-DXn7fEY5.cjs → riskRegionTable-B3acXFe4.cjs} +1 -1
  282. package/dist/{sankey-CT3ba6e5.js → sankey-BpbKwnuU.js} +2 -2
  283. package/dist/{sankey-Bu-SU7-2.cjs → sankey-c3YcWHnV.cjs} +1 -1
  284. package/dist/{scd-DLEMda1z.js → scd-BTnqcPk_.js} +2 -2
  285. package/dist/{scd-B0uAZi1c.cjs → scd-DumQux0S.cjs} +1 -1
  286. package/dist/{sideMenu-D5CiGthZ.cjs → sideMenu-BuFyH0ge.cjs} +1 -1
  287. package/dist/{sideMenu-NDBmswKS.js → sideMenu-CTDP4zhw.js} +2 -2
  288. package/dist/{slopeStability-Bm83R1CK.js → slopeStability-DZ8Fdccb.js} +2 -2
  289. package/dist/{slopeStability-DHEMnZQs.cjs → slopeStability-ILbwnpFa.cjs} +1 -1
  290. package/dist/{speedCurve-COz1e5fR.cjs → speedCurve-28awhoDl.cjs} +1 -1
  291. package/dist/{speedCurve-DMzIHREh.js → speedCurve-DzyHKAQ4.js} +2 -2
  292. package/dist/{stackedBar-Cj1vVULH.cjs → stackedBar-CHfThI1f.cjs} +1 -1
  293. package/dist/{stackedBar-Co04v-nd.js → stackedBar-FjHiDckW.js} +2 -2
  294. package/dist/{stressFilterBar-wfAWtOIp.cjs → stressFilterBar-12_9Hq6C.cjs} +1 -1
  295. package/dist/{stressFilterBar-CFgshgvm.js → stressFilterBar-Dw2KaGIb.js} +2 -2
  296. package/dist/{stressTimeCurve-CwMkdryb.js → stressTimeCurve-CLDINndP.js} +3 -3
  297. package/dist/{stressTimeCurve-BRvsiFhp.cjs → stressTimeCurve-zQAaPEe8.cjs} +1 -1
  298. package/dist/{swiper-DA6nGJfp.js → swiper-Fb5GkDPy.js} +2 -2
  299. package/dist/{swiper-CPMWAfwl.cjs → swiper-r39l1ubu.cjs} +1 -1
  300. package/dist/syncMixiotListConfig-C-O0vuNa.js +34192 -0
  301. package/dist/syncMixiotListConfig-CDOHffVG.cjs +200 -0
  302. package/dist/tablemanList-B2jAK11y.cjs +1 -0
  303. package/dist/tablemanList-DlzoZHYA.js +888 -0
  304. package/dist/terminalConfigList-ChD8ZgGy.js +888 -0
  305. package/dist/terminalConfigList-YZf3-mY-.cjs +1 -0
  306. package/dist/terminalList-B78hrUal.cjs +1 -0
  307. package/dist/terminalList-cSxPru3p.js +1046 -0
  308. package/dist/{terminalListAPP-Bj7pUZTy.cjs → terminalListAPP-C9tXEAk3.cjs} +1 -1
  309. package/dist/{terminalListAPP-37PqyT3O.js → terminalListAPP-DM-pw5Y_.js} +3 -3
  310. package/dist/{textbox-DG4Wr4Zt.js → textbox-CsdOWVlX.js} +2 -2
  311. package/dist/{textbox-CawmOfBp.cjs → textbox-hgBX2Mlz.cjs} +1 -1
  312. package/dist/{timeQueryBar-CD-5fWy6.js → timeQueryBar-8M1lQYQc.js} +1 -1
  313. package/dist/{timeQueryBar-Bqc3rENc.cjs → timeQueryBar-he2w5VTR.cjs} +1 -1
  314. package/dist/{timeSeries-CopKSs1l.cjs → timeSeries-Dd_KE5Rq.cjs} +1 -1
  315. package/dist/{timeSeries-BzGYz4rY.js → timeSeries-E7CoZvmq.js} +3 -3
  316. package/dist/{timeSeriesCurve-ejwsuDRh.cjs → timeSeriesCurve-9pJIM8LM.cjs} +1 -1
  317. package/dist/{timeSeriesCurve-m0ics-PW.js → timeSeriesCurve-CiXJzBCM.js} +3 -3
  318. package/dist/{toggleBtn-C-nuKRcD.js → toggleBtn-4w9dXLlV.js} +2 -2
  319. package/dist/{toggleBtn-CSEv5acM.cjs → toggleBtn-B-YyfUEZ.cjs} +1 -1
  320. package/dist/{trajectoryConfigPanel-Cp-3rnXO.cjs → trajectoryConfigPanel-BxHufk4d.cjs} +1 -1
  321. package/dist/{trajectoryConfigPanel-Af97dCSS.js → trajectoryConfigPanel-COMVNyCV.js} +1 -1
  322. package/dist/{trajectoryScatter-De9UG6j1.js → trajectoryScatter-BZ6fQzrS.js} +2 -2
  323. package/dist/{trajectoryScatter-BoTLmylA.cjs → trajectoryScatter-wOmXNsz2.cjs} +1 -1
  324. package/dist/{universalConfigPanel-Dit0ntD6.js → universalConfigPanel-3ZVlYmDy.js} +1 -1
  325. package/dist/{universalConfigPanel-XvxA7QRD.cjs → universalConfigPanel-Cs3R7La0.cjs} +1 -1
  326. package/dist/{universalTable-BssOWAuT.js → universalTable-CpbLgXuF.js} +2 -2
  327. package/dist/{universalTable-Uu7dh0aG.cjs → universalTable-Wnk_jTye.cjs} +1 -1
  328. package/dist/{video-Mbk0ZeLf.js → video-BVyJEL3-.js} +218 -191
  329. package/dist/{video-CJtGAYJU.cjs → video-DVNgGh5s.cjs} +10 -10
  330. package/dist/{videoMonitor-DmL2qXe0.js → videoMonitor-C3ICMfl6.js} +2 -2
  331. package/dist/{videoMonitor-B3pFfxQs.cjs → videoMonitor-ColaBH39.cjs} +1 -1
  332. package/dist/{vlu-XFWtxEvv.cjs → vlu-CqVb525d.cjs} +1 -1
  333. package/dist/{vlu-D32xqnoV.js → vlu-L-mlyUpW.js} +2 -2
  334. package/dist/{warningOverview-DM5hXwpU.cjs → warningOverview-BmOZtQhI.cjs} +1 -1
  335. package/dist/{warningOverview-COPwxqAR.js → warningOverview-CkBQM-T8.js} +3 -3
  336. package/dist/{weather-CdxthMeR.js → weather-BukoDMa5.js} +2 -2
  337. package/dist/{weather-B-KIS-ju.cjs → weather-WWOBwhVK.cjs} +1 -1
  338. package/dist/{windLin-FzPQoyak.cjs → windLin-gh-j-v6h.cjs} +1 -1
  339. package/dist/{windLin-BgUBtwgj.js → windLin-wzrkcIhx.js} +2 -2
  340. package/package.json +4 -4
  341. package/dist/basicShapeToolbox-XDdKQhh3.cjs +0 -1
  342. package/dist/controlList-Dnoaci0A.js +0 -831
  343. package/dist/controlList-dtqVlRpr.cjs +0 -1
  344. package/dist/controlRecordList-B9LUt_5C.cjs +0 -1
  345. package/dist/controlRecordList-D1Q7xLf4.js +0 -356
  346. package/dist/crd-BThv1Z-E.cjs +0 -1
  347. package/dist/index-5jeBLy74.cjs +0 -612
  348. package/dist/mappingList-C5Z35UKc.js +0 -874
  349. package/dist/mappingList-DPzBIPSp.cjs +0 -1
  350. package/dist/objectList-C0VYvS35.js +0 -1949
  351. package/dist/objectList-YyLH8wsA.cjs +0 -1
  352. package/dist/photo-qUJBBWcl.cjs +0 -1
  353. package/dist/retainerRecordList-CRZXn8qs.js +0 -833
  354. package/dist/retainerRecordList-TfKyqBNI.cjs +0 -1
  355. package/dist/syncMixiotListConfig-CiyYjyPz.js +0 -259
  356. package/dist/syncMixiotListConfig-Dke6MCA9.cjs +0 -1
  357. package/dist/tablemanList-BOFkLUE6.cjs +0 -1
  358. package/dist/tablemanList-Cy40wppA.js +0 -954
  359. package/dist/terminalConfigList-BcHRePUS.js +0 -978
  360. package/dist/terminalConfigList-DCT3FbXq.cjs +0 -1
  361. package/dist/terminalList-BTyk3rSA.cjs +0 -1
  362. package/dist/terminalList-Czr6nBtS.js +0 -1163
  363. /package/dist/{vue-router-CRhRQNx-.cjs → useApi-DCywyCly-CRhRQNx-.cjs} +0 -0
  364. /package/dist/{vue-router-ha66t1D5.js → useApi-DCywyCly-ha66t1D5.js} +0 -0
@@ -1 +1 @@
1
- "use strict";var M=Object.defineProperty,L=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var V=(c,n,r)=>n in c?M(c,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[n]=r,S=(c,n)=>{for(var r in n||(n={}))R.call(n,r)&&V(c,r,n[r]);if(N)for(var r of N(n))F.call(n,r)&&V(c,r,n[r]);return c},E=(c,n)=>L(c,q(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/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/input/style/css");const e=require("vue"),v=require("./index-5jeBLy74.cjs"),j=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),z={class:"section-header"},B={class:"section-title"},U={class:"row"},Y={class:"label"},$={class:"row"},K={class:"row"},H={class:"row row-meta"},J={key:0},W={class:"payload-preview"},G={DEFAULT_ICON:j.DEFAULT_ICON,ACTIVE_ICON:j.ACTIVE_ICON,NAME_CN:"对象别名选择器",NAME_EN:"Alias Object Selector",ORDER:22,PLATFORM:["pc","screen"]},Q={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"},sectionTitle:{value:"对象别名切换",type:"string",label:"component.openpitConfigPanel.label"},aliasLabel:{value:"别名模式",type:"string",label:"component.openpitConfigPanel.objectSelectInputLabel"},aliasPlaceholder:{value:"例如 radar*",type:"string",label:"component.openpitConfigPanel.objectSelectInputPlaceholder"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},X=[{key:"objectAlias",multiple:!0,pattern:"radar*",fvs:["disp","speed"]}],Z=[{key:"key",label:"component.openpitConfigPanel.key",type:"string"},{key:"multiple",label:"component.openpitConfigPanel.multiple",type:"switch"},{key:"pattern",label:"component.openpitConfigPanel.optionValue",type:"string"},{key:"fvs",label:"component.openpitConfigPanel.options",type:"array"}],ee=[],te={useAlias:!0,multiObject:!0,source:""},le={DEFAULT:G,OPTIONS:Q,DATA:X,PARAMS:Z,SOURCE:ee,COMMON:te},oe=e.defineComponent(E(S({},le),{__name:"aliasObjectSelectorDemo",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""}},setup(c){e.useCssVars(t=>({v20d7bd78:_.value.borderColor,v6db2e060:_.value.color}));const n=c,r=v.useLinkStore(),d=e.ref("radar*"),m=e.ref("disp,speed"),p=e.ref([]),f=e.ref(""),C=e.ref(""),_=e.computed(()=>{var l,o,a,s;const t=((l=n.conf)==null?void 0:l.options)||{};return{backgroundColor:((o=t==null?void 0:t.bgColor)==null?void 0:o.value)||"#ffffff",color:((a=t==null?void 0:t.textColor)==null?void 0:a.value)||"#333333",borderColor:((s=t==null?void 0:t.borderColor)==null?void 0:s.value)||"#e5e5e5"}}),k=e.computed(()=>{var t,l,o;return String(((o=(l=(t=n.conf)==null?void 0:t.options)==null?void 0:l.sectionTitle)==null?void 0:o.value)||"对象别名切换")}),O=e.computed(()=>{var t,l,o;return String(((o=(l=(t=n.conf)==null?void 0:t.options)==null?void 0:l.aliasLabel)==null?void 0:o.value)||"别名模式")}),A=e.computed(()=>{var t,l,o;return String(((o=(l=(t=n.conf)==null?void 0:t.options)==null?void 0:l.aliasPlaceholder)==null?void 0:o.value)||"例如 radar*")}),P=()=>{var a,s,i;const t=((a=n.conf)==null?void 0:a.options)||{},l=((s=t==null?void 0:t.linkChannel)==null?void 0:s.value)||"deepDisplacement",o=((i=t==null?void 0:t.customChannel)==null?void 0:i.value)||"";return l==="custom"&&o?o:l},w=()=>{try{return JSON.parse(sessionStorage.getItem(v.ALIAS_MAPPING_KEY)||"{}")||{}}catch(t){return{}}},T=t=>String(t||"").split(",").map(l=>l.trim()).filter(Boolean),D=t=>t.replace(/[.+?^${}()|[\]\\]/g,"\\$&"),I=t=>{const l=D(t).replace(/\*/g,".*");return new RegExp(`^${l}$`,"i")},x=()=>{const t=w();return Object.keys(t).map(l=>({object_alias:l,object_id:String(t[l]||"")})).filter(l=>l.object_id)},g=()=>{const t=String(d.value||"").trim();if(!t){p.value=[];return}const l=I(t),o=x();p.value=o.filter(a=>l.test(a.object_alias))},y=()=>{g();const t=p.value.map(i=>i.object_id),l=p.value.map(i=>i.object_alias),o=T(m.value),a=P(),s={source:"aliasObjectSelector",type:"filter",mode:"aliasWildcard",objectAliasPattern:d.value,objectAliases:l,objectIds:t,objectId:t[0]||"",fvs:o,fv:o[0]||"",count:t.length,time:Date.now()};r.publish(a,"aliasObjectSelector",s),f.value=v.dayjs().format("YYYY-MM-DD HH:mm:ss"),C.value=JSON.stringify(s,null,2)};return e.onMounted(()=>{var o,a,s,i,u,h;const t=String(((s=(a=(o=n.conf)==null?void 0:o.data)==null?void 0:a[0])==null?void 0:s.pattern)||"").trim();t&&(d.value=t);const l=(h=(u=(i=n.conf)==null?void 0:i.data)==null?void 0:u[0])==null?void 0:h.fvs;Array.isArray(l)&&l.length&&(m.value=l.join(",")),g()}),(t,l)=>{const o=b.ElInput,a=b.ElButton,s=b.ElTableColumn,i=b.ElTable;return e.openBlock(),e.createElementBlock("div",{class:"alias-demo",style:e.normalizeStyle(_.value)},[e.createElementVNode("div",z,[e.createElementVNode("span",B,e.toDisplayString(k.value),1)]),e.createElementVNode("div",U,[e.createElementVNode("span",Y,e.toDisplayString(O.value),1),e.createVNode(o,{modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=u=>d.value=u),placeholder:A.value,size:"small",clearable:"",onKeyup:e.withKeys(y,["enter"])},null,8,["modelValue","placeholder"])]),e.createElementVNode("div",$,[l[2]||(l[2]=e.createElementVNode("span",{class:"label"},"FV",-1)),e.createVNode(o,{modelValue:m.value,"onUpdate:modelValue":l[1]||(l[1]=u=>m.value=u),placeholder:"例如 disp,speed,temp",size:"small",clearable:""},null,8,["modelValue"])]),e.createElementVNode("div",K,[e.createVNode(a,{type:"primary",size:"small",onClick:y},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode("匹配并联动",-1)])]),_:1}),e.createVNode(a,{size:"small",onClick:g},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createTextVNode("仅匹配",-1)])]),_:1})]),e.createElementVNode("div",H,[e.createElementVNode("span",null,"匹配数量:"+e.toDisplayString(p.value.length),1),f.value?(e.openBlock(),e.createElementBlock("span",J,"最近推送:"+e.toDisplayString(f.value),1)):e.createCommentVNode("",!0)]),l[6]||(l[6]=e.createElementVNode("div",{class:"tips"},[e.createTextVNode(" 数据源:sessionStorage["),e.createElementVNode("code",null,"object_alias_uid_mapping"),e.createTextVNode("](真实对象别名映射) ")],-1)),e.createVNode(i,{data:p.value,size:"small",border:"",style:{width:"100%"},"max-height":"220"},{default:e.withCtx(()=>[e.createVNode(s,{prop:"object_id",label:"object_id","min-width":"180"}),e.createVNode(s,{prop:"object_alias",label:"object_alias","min-width":"180"})]),_:1},8,["data"]),e.createElementVNode("div",W,[l[5]||(l[5]=e.createElementVNode("div",{class:"preview-title"},"本次联动 payload 预览",-1)),e.createElementVNode("pre",null,e.toDisplayString(C.value),1)])],4)}}})),ne=v._export_sfc(oe,[["__scopeId","data-v-a1c7e108"]]);exports.default=ne;
1
+ "use strict";var M=Object.defineProperty,L=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var V=(c,n,r)=>n in c?M(c,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[n]=r,S=(c,n)=>{for(var r in n||(n={}))R.call(n,r)&&V(c,r,n[r]);if(N)for(var r of N(n))F.call(n,r)&&V(c,r,n[r]);return c},E=(c,n)=>L(c,q(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/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/input/style/css");const e=require("vue"),v=require("./index-BtYU0jdF.cjs"),j=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),z={class:"section-header"},B={class:"section-title"},U={class:"row"},Y={class:"label"},$={class:"row"},K={class:"row"},H={class:"row row-meta"},J={key:0},W={class:"payload-preview"},G={DEFAULT_ICON:j.DEFAULT_ICON,ACTIVE_ICON:j.ACTIVE_ICON,NAME_CN:"对象别名选择器",NAME_EN:"Alias Object Selector",ORDER:22,PLATFORM:["pc","screen"]},Q={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"},sectionTitle:{value:"对象别名切换",type:"string",label:"component.openpitConfigPanel.label"},aliasLabel:{value:"别名模式",type:"string",label:"component.openpitConfigPanel.objectSelectInputLabel"},aliasPlaceholder:{value:"例如 radar*",type:"string",label:"component.openpitConfigPanel.objectSelectInputPlaceholder"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},X=[{key:"objectAlias",multiple:!0,pattern:"radar*",fvs:["disp","speed"]}],Z=[{key:"key",label:"component.openpitConfigPanel.key",type:"string"},{key:"multiple",label:"component.openpitConfigPanel.multiple",type:"switch"},{key:"pattern",label:"component.openpitConfigPanel.optionValue",type:"string"},{key:"fvs",label:"component.openpitConfigPanel.options",type:"array"}],ee=[],te={useAlias:!0,multiObject:!0,source:""},le={DEFAULT:G,OPTIONS:Q,DATA:X,PARAMS:Z,SOURCE:ee,COMMON:te},oe=e.defineComponent(E(S({},le),{__name:"aliasObjectSelectorDemo",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""}},setup(c){e.useCssVars(t=>({v20d7bd78:_.value.borderColor,v6db2e060:_.value.color}));const n=c,r=v.useLinkStore(),d=e.ref("radar*"),m=e.ref("disp,speed"),p=e.ref([]),f=e.ref(""),C=e.ref(""),_=e.computed(()=>{var l,o,a,s;const t=((l=n.conf)==null?void 0:l.options)||{};return{backgroundColor:((o=t==null?void 0:t.bgColor)==null?void 0:o.value)||"#ffffff",color:((a=t==null?void 0:t.textColor)==null?void 0:a.value)||"#333333",borderColor:((s=t==null?void 0:t.borderColor)==null?void 0:s.value)||"#e5e5e5"}}),k=e.computed(()=>{var t,l,o;return String(((o=(l=(t=n.conf)==null?void 0:t.options)==null?void 0:l.sectionTitle)==null?void 0:o.value)||"对象别名切换")}),O=e.computed(()=>{var t,l,o;return String(((o=(l=(t=n.conf)==null?void 0:t.options)==null?void 0:l.aliasLabel)==null?void 0:o.value)||"别名模式")}),A=e.computed(()=>{var t,l,o;return String(((o=(l=(t=n.conf)==null?void 0:t.options)==null?void 0:l.aliasPlaceholder)==null?void 0:o.value)||"例如 radar*")}),P=()=>{var a,s,i;const t=((a=n.conf)==null?void 0:a.options)||{},l=((s=t==null?void 0:t.linkChannel)==null?void 0:s.value)||"deepDisplacement",o=((i=t==null?void 0:t.customChannel)==null?void 0:i.value)||"";return l==="custom"&&o?o:l},w=()=>{try{return JSON.parse(sessionStorage.getItem(v.ALIAS_MAPPING_KEY)||"{}")||{}}catch(t){return{}}},T=t=>String(t||"").split(",").map(l=>l.trim()).filter(Boolean),D=t=>t.replace(/[.+?^${}()|[\]\\]/g,"\\$&"),I=t=>{const l=D(t).replace(/\*/g,".*");return new RegExp(`^${l}$`,"i")},x=()=>{const t=w();return Object.keys(t).map(l=>({object_alias:l,object_id:String(t[l]||"")})).filter(l=>l.object_id)},g=()=>{const t=String(d.value||"").trim();if(!t){p.value=[];return}const l=I(t),o=x();p.value=o.filter(a=>l.test(a.object_alias))},y=()=>{g();const t=p.value.map(i=>i.object_id),l=p.value.map(i=>i.object_alias),o=T(m.value),a=P(),s={source:"aliasObjectSelector",type:"filter",mode:"aliasWildcard",objectAliasPattern:d.value,objectAliases:l,objectIds:t,objectId:t[0]||"",fvs:o,fv:o[0]||"",count:t.length,time:Date.now()};r.publish(a,"aliasObjectSelector",s),f.value=v.dayjs().format("YYYY-MM-DD HH:mm:ss"),C.value=JSON.stringify(s,null,2)};return e.onMounted(()=>{var o,a,s,i,u,h;const t=String(((s=(a=(o=n.conf)==null?void 0:o.data)==null?void 0:a[0])==null?void 0:s.pattern)||"").trim();t&&(d.value=t);const l=(h=(u=(i=n.conf)==null?void 0:i.data)==null?void 0:u[0])==null?void 0:h.fvs;Array.isArray(l)&&l.length&&(m.value=l.join(",")),g()}),(t,l)=>{const o=b.ElInput,a=b.ElButton,s=b.ElTableColumn,i=b.ElTable;return e.openBlock(),e.createElementBlock("div",{class:"alias-demo",style:e.normalizeStyle(_.value)},[e.createElementVNode("div",z,[e.createElementVNode("span",B,e.toDisplayString(k.value),1)]),e.createElementVNode("div",U,[e.createElementVNode("span",Y,e.toDisplayString(O.value),1),e.createVNode(o,{modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=u=>d.value=u),placeholder:A.value,size:"small",clearable:"",onKeyup:e.withKeys(y,["enter"])},null,8,["modelValue","placeholder"])]),e.createElementVNode("div",$,[l[2]||(l[2]=e.createElementVNode("span",{class:"label"},"FV",-1)),e.createVNode(o,{modelValue:m.value,"onUpdate:modelValue":l[1]||(l[1]=u=>m.value=u),placeholder:"例如 disp,speed,temp",size:"small",clearable:""},null,8,["modelValue"])]),e.createElementVNode("div",K,[e.createVNode(a,{type:"primary",size:"small",onClick:y},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode("匹配并联动",-1)])]),_:1}),e.createVNode(a,{size:"small",onClick:g},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createTextVNode("仅匹配",-1)])]),_:1})]),e.createElementVNode("div",H,[e.createElementVNode("span",null,"匹配数量:"+e.toDisplayString(p.value.length),1),f.value?(e.openBlock(),e.createElementBlock("span",J,"最近推送:"+e.toDisplayString(f.value),1)):e.createCommentVNode("",!0)]),l[6]||(l[6]=e.createElementVNode("div",{class:"tips"},[e.createTextVNode(" 数据源:sessionStorage["),e.createElementVNode("code",null,"object_alias_uid_mapping"),e.createTextVNode("](真实对象别名映射) ")],-1)),e.createVNode(i,{data:p.value,size:"small",border:"",style:{width:"100%"},"max-height":"220"},{default:e.withCtx(()=>[e.createVNode(s,{prop:"object_id",label:"object_id","min-width":"180"}),e.createVNode(s,{prop:"object_alias",label:"object_alias","min-width":"180"})]),_:1},8,["data"]),e.createElementVNode("div",W,[l[5]||(l[5]=e.createElementVNode("div",{class:"preview-title"},"本次联动 payload 预览",-1)),e.createElementVNode("pre",null,e.toDisplayString(C.value),1)])],4)}}})),ne=v._export_sfc(oe,[["__scopeId","data-v-a1c7e108"]]);exports.default=ne;
@@ -17,7 +17,7 @@ import "element-plus/es/components/table-column/style/css";
17
17
  import "element-plus/es/components/button/style/css";
18
18
  import "element-plus/es/components/input/style/css";
19
19
  import { defineComponent as q, useCssVars as Q, ref as b, computed as _, onMounted as X, openBlock as V, createElementBlock as D, normalizeStyle as Z, createElementVNode as s, toDisplayString as v, createVNode as p, withKeys as ee, withCtx as j, createTextVNode as g, createCommentVNode as te } from "vue";
20
- import { l as le, d as oe, w as ne, _ as ae } from "./index-dAR2gb1S.js";
20
+ import { l as le, d as oe, w as ne, _ as ae } from "./index-B2DTHz1b.js";
21
21
  import { A as se, D as ie } from "./ele-ctrSet-icon-BtKGrCid.js";
22
22
  const ce = { class: "section-header" }, re = { class: "section-title" }, pe = { class: "row" }, ue = { class: "label" }, de = { class: "row" }, me = { class: "row" }, be = { class: "row row-meta" }, ve = { key: 0 }, fe = { class: "payload-preview" }, _e = {
23
23
  DEFAULT_ICON: ie,
@@ -27,9 +27,9 @@ var F = (l, o, n) => new Promise((v, u) => {
27
27
  m((n = n.apply(l, o)).next());
28
28
  });
29
29
  import { defineComponent as B, ref as j, computed as A, openBlock as U, createElementBlock as V, normalizeStyle as W, createElementVNode as G, unref as K, renderSlot as Y } from "vue";
30
- import { _ as $ } from "./index-dAR2gb1S.js";
30
+ import { _ as $ } from "./index-B2DTHz1b.js";
31
31
  import "element-plus";
32
- import { E as q } from "./EChartComponentBase-vS3I7IAs.js";
32
+ import { E as q } from "./EChartComponentBase-CJ2oE_sT.js";
33
33
  import { A as J, D as Q } from "./ele-vlu-icon-Bg6EHZdJ.js";
34
34
  import { cn as X } from "./echarts-Bp7QN4X6.js";
35
35
  const Z = ["id"], tt = {
@@ -1 +1 @@
1
- "use strict";var M=Object.defineProperty,k=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,R=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,P=Reflect.get;var N=(l,o,a)=>o in l?M(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,_=(l,o)=>{for(var a in o||(o={}))z.call(o,a)&&N(l,a,o[a]);if(x)for(var a of x(o))q.call(o,a)&&N(l,a,o[a]);return l},w=(l,o)=>k(l,L(o));var E=(l,o,a)=>P(R(l),a,o);var F=(l,o,a)=>new Promise((C,p)=>{var v=c=>{try{y(a.next(c))}catch(d){p(d)}},S=c=>{try{y(a.throw(c))}catch(d){p(d)}},y=c=>c.done?C(c.value):Promise.resolve(c.value).then(v,S);y((a=a.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),B=require("./index-5jeBLy74.cjs");require("element-plus");const H=require("./EChartComponentBase-COpfXxIp.cjs"),I=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),V=require("./echarts-BB8O2KSA.cjs"),U=["id"],W={DEFAULT_ICON:I.DEFAULT_ICON,ACTIVE_ICON:I.ACTIVE_ICON,NAME_CN:"年累积降雨量",NAME_EN:"Annual Rainfall Chart",ORDER:2,PLATFORM:["pc","screen"]},G={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},yAxisName:{value:"毫米(mm)",type:"string",label:"Y轴标题"},barColor:{value:"#85C6F1",type:"color",label:"柱状图颜色"},lineColor:{value:"#F57676",type:"color",label:"趋势线颜色"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},K=[{name:"日降雨量",fv:""}],Y=["name","fv"],$=["mosaic"],J={useAlias:!1,multiObject:!1,source:"mosaic"},Q=50,X={DEFAULT:W,OPTIONS:G,DATA:K,PARAMS:Y,SOURCE:$,ITEMS:Q,COMMON:J},Z=i.defineComponent(w(_({},X),{__name:"annualRainfallChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const o=l,a=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],C=[45.2,52.1,68.5,92,115.4,188.2,215.5,192.1,145.6,88.4,55,42.8],p=i.ref(new Array(12).fill(0)),v=i.ref(""),S=i.computed(()=>{var f,t,e;return!!((t=(f=o.conf)==null?void 0:f.common)!=null&&t.object_id||(e=o.conf)!=null&&e.object_id)}),y=i.computed(()=>S.value||!!v.value),c=()=>{var t;const f=(t=o.conf)==null?void 0:t.data;return Array.isArray(f)&&f.length>0&&f[0].fv||""};class d extends H.EChartComponentBase{extractStyles(){var r,u,s,h,m,b,g;const t=(r=this.props.conf)==null?void 0:r.options,e=((u=t==null?void 0:t.linkChannel)==null?void 0:u.value)||"rainfall",n=((s=t==null?void 0:t.customChannel)==null?void 0:s.value)||"";return{bgColor:((h=t==null?void 0:t.bgColor)==null?void 0:h.value)||"#ffffff",yAxisName:((m=t==null?void 0:t.yAxisName)==null?void 0:m.value)||"毫米(mm)",barColor:((b=t==null?void 0:t.barColor)==null?void 0:b.value)||"#85C6F1",lineColor:((g=t==null?void 0:t.lineColor)==null?void 0:g.value)||"#F57676",linkChannel:e==="custom"&&n?n:e}}getChartOption(){if(!y.value&&this.props.mode==="preview")return{graphic:{type:"text",left:"center",top:"middle",style:{text:"请在筛选栏选择监测点后点击查询",fontSize:14,fill:"#999"}},xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};const t=this.props.mode==="edit"?C:p.value,e=t.map((n,r)=>r===0?t[0]:r===t.length-1?t[t.length-1]:parseFloat(((t[r-1]+n+t[r+1])/3).toFixed(1)));return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},backgroundColor:"rgba(255, 255, 255, 0.9)",borderColor:"#1c3d90",textStyle:{color:"#333",fontSize:11}},grid:{top:35,bottom:25,left:60,right:15},xAxis:{type:"category",data:a,axisLabel:{fontSize:9,color:"#888",interval:0},axisLine:{lineStyle:{color:"rgba(0,0,0,0.1)"}}},yAxis:{type:"value",name:this.Style.value.yAxisName,nameTextStyle:{color:"#666",fontSize:10,align:"left",padding:[0,0,0,5]},axisLabel:{fontSize:9,color:"#888"},splitLine:{lineStyle:{color:"rgba(0,0,0,0.05)",type:"dashed"}}},series:[{name:"月度降雨",type:"bar",barWidth:"45%",itemStyle:{color:new V.LinearGradient(0,0,0,1,[{offset:0,color:this.Style.value.barColor},{offset:1,color:"#1c3d90"}]),borderRadius:[2,2,0,0]},data:t},{name:"趋势走向",type:"line",smooth:!0,showSymbol:!0,symbolSize:4,lineStyle:{width:2,color:this.Style.value.lineColor},itemStyle:{color:this.Style.value.lineColor},data:e}]}}initHistory(){return F(this,null,function*(){const t=this.props.conf;if(!t)return[];t.options||(t.options={});const e=t.options.points,n=Object.prototype.hasOwnProperty.call(t.options,"points");(!e||Number(e)<365)&&(t.options.points=365);try{return yield E(d.prototype,this,"initHistory").call(this)}finally{n?t.options.points=e:delete t.options.points}})}setHistoryData(t){var u;if(!t||!this.chartObj)return;const e=super.setHistoryData(t);if(!(e!=null&&e.length))return;const n=e[0];if(!((u=n==null?void 0:n.time)!=null&&u.length))return;const r=new Array(12).fill(0);n.time.forEach((s,h)=>{var O;const m=(O=n.data)==null?void 0:O[h];if(m==null||m===""||m==="-")return;const b=Number(m);if(!Number.isFinite(b))return;const g=new Date(String(s).replace(/\//g,"-"));isNaN(g.getTime())||(r[g.getMonth()]+=b)}),p.value=r.map(s=>parseFloat(s.toFixed(2))),this.chartObj.setOption(this.getChartOption(),!0)}setSocketData(t){if(!t)return;const e=c();if(!e)return;const n=this.extractDataValue(t,e);if(n==null||isNaN(Number(n)))return;const r=t.datetime||"";let u=new Date().getMonth();if(r){const h=new Date(r.replace(/\//g,"-"));isNaN(h.getTime())||(u=h.getMonth())}const s=[...p.value];s[u]=parseFloat((s[u]+Number(n)).toFixed(2)),p.value=s,this.chartObj&&this.chartObj.setOption(this.getChartOption(),!0)}onLinkEvent(t){const{payload:e}=t;if(!e)return;const n=e.objectId||e.object_id;n&&(v.value=String(n),p.value=new Array(12).fill(0),this.initChart(),this.props.mode==="preview"&&this.subscribeBySource(this.getSource(),String(n)))}}const A=new d(o,"annualRainfallChart");A.setupLifecycle();const j=A.getEchartId(),D=A.getStyle(),T=i.computed(()=>({backgroundColor:D.value.bgColor,width:"100%",height:"100%"}));return(f,t)=>(i.openBlock(),i.createElementBlock("div",{class:"annual-rainfall-chart-wrap",style:i.normalizeStyle(T.value)},[i.createElementVNode("div",{id:i.unref(j),class:"chart-container"},null,8,U),i.renderSlot(f.$slots,"default",{},void 0,!0)],4))}})),tt=B._export_sfc(Z,[["__scopeId","data-v-29c27eac"]]);exports.default=tt;
1
+ "use strict";var M=Object.defineProperty,k=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols,R=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,P=Reflect.get;var N=(l,o,a)=>o in l?M(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,_=(l,o)=>{for(var a in o||(o={}))z.call(o,a)&&N(l,a,o[a]);if(x)for(var a of x(o))q.call(o,a)&&N(l,a,o[a]);return l},w=(l,o)=>k(l,L(o));var E=(l,o,a)=>P(R(l),a,o);var F=(l,o,a)=>new Promise((C,p)=>{var v=c=>{try{y(a.next(c))}catch(d){p(d)}},S=c=>{try{y(a.throw(c))}catch(d){p(d)}},y=c=>c.done?C(c.value):Promise.resolve(c.value).then(v,S);y((a=a.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),B=require("./index-BtYU0jdF.cjs");require("element-plus");const H=require("./EChartComponentBase-qlAnyb_l.cjs"),I=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),V=require("./echarts-BB8O2KSA.cjs"),U=["id"],W={DEFAULT_ICON:I.DEFAULT_ICON,ACTIVE_ICON:I.ACTIVE_ICON,NAME_CN:"年累积降雨量",NAME_EN:"Annual Rainfall Chart",ORDER:2,PLATFORM:["pc","screen"]},G={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},yAxisName:{value:"毫米(mm)",type:"string",label:"Y轴标题"},barColor:{value:"#85C6F1",type:"color",label:"柱状图颜色"},lineColor:{value:"#F57676",type:"color",label:"趋势线颜色"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},K=[{name:"日降雨量",fv:""}],Y=["name","fv"],$=["mosaic"],J={useAlias:!1,multiObject:!1,source:"mosaic"},Q=50,X={DEFAULT:W,OPTIONS:G,DATA:K,PARAMS:Y,SOURCE:$,ITEMS:Q,COMMON:J},Z=i.defineComponent(w(_({},X),{__name:"annualRainfallChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const o=l,a=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],C=[45.2,52.1,68.5,92,115.4,188.2,215.5,192.1,145.6,88.4,55,42.8],p=i.ref(new Array(12).fill(0)),v=i.ref(""),S=i.computed(()=>{var f,t,e;return!!((t=(f=o.conf)==null?void 0:f.common)!=null&&t.object_id||(e=o.conf)!=null&&e.object_id)}),y=i.computed(()=>S.value||!!v.value),c=()=>{var t;const f=(t=o.conf)==null?void 0:t.data;return Array.isArray(f)&&f.length>0&&f[0].fv||""};class d extends H.EChartComponentBase{extractStyles(){var r,u,s,h,m,b,g;const t=(r=this.props.conf)==null?void 0:r.options,e=((u=t==null?void 0:t.linkChannel)==null?void 0:u.value)||"rainfall",n=((s=t==null?void 0:t.customChannel)==null?void 0:s.value)||"";return{bgColor:((h=t==null?void 0:t.bgColor)==null?void 0:h.value)||"#ffffff",yAxisName:((m=t==null?void 0:t.yAxisName)==null?void 0:m.value)||"毫米(mm)",barColor:((b=t==null?void 0:t.barColor)==null?void 0:b.value)||"#85C6F1",lineColor:((g=t==null?void 0:t.lineColor)==null?void 0:g.value)||"#F57676",linkChannel:e==="custom"&&n?n:e}}getChartOption(){if(!y.value&&this.props.mode==="preview")return{graphic:{type:"text",left:"center",top:"middle",style:{text:"请在筛选栏选择监测点后点击查询",fontSize:14,fill:"#999"}},xAxis:{type:"category",data:[]},yAxis:{type:"value"},series:[]};const t=this.props.mode==="edit"?C:p.value,e=t.map((n,r)=>r===0?t[0]:r===t.length-1?t[t.length-1]:parseFloat(((t[r-1]+n+t[r+1])/3).toFixed(1)));return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},backgroundColor:"rgba(255, 255, 255, 0.9)",borderColor:"#1c3d90",textStyle:{color:"#333",fontSize:11}},grid:{top:35,bottom:25,left:60,right:15},xAxis:{type:"category",data:a,axisLabel:{fontSize:9,color:"#888",interval:0},axisLine:{lineStyle:{color:"rgba(0,0,0,0.1)"}}},yAxis:{type:"value",name:this.Style.value.yAxisName,nameTextStyle:{color:"#666",fontSize:10,align:"left",padding:[0,0,0,5]},axisLabel:{fontSize:9,color:"#888"},splitLine:{lineStyle:{color:"rgba(0,0,0,0.05)",type:"dashed"}}},series:[{name:"月度降雨",type:"bar",barWidth:"45%",itemStyle:{color:new V.LinearGradient(0,0,0,1,[{offset:0,color:this.Style.value.barColor},{offset:1,color:"#1c3d90"}]),borderRadius:[2,2,0,0]},data:t},{name:"趋势走向",type:"line",smooth:!0,showSymbol:!0,symbolSize:4,lineStyle:{width:2,color:this.Style.value.lineColor},itemStyle:{color:this.Style.value.lineColor},data:e}]}}initHistory(){return F(this,null,function*(){const t=this.props.conf;if(!t)return[];t.options||(t.options={});const e=t.options.points,n=Object.prototype.hasOwnProperty.call(t.options,"points");(!e||Number(e)<365)&&(t.options.points=365);try{return yield E(d.prototype,this,"initHistory").call(this)}finally{n?t.options.points=e:delete t.options.points}})}setHistoryData(t){var u;if(!t||!this.chartObj)return;const e=super.setHistoryData(t);if(!(e!=null&&e.length))return;const n=e[0];if(!((u=n==null?void 0:n.time)!=null&&u.length))return;const r=new Array(12).fill(0);n.time.forEach((s,h)=>{var O;const m=(O=n.data)==null?void 0:O[h];if(m==null||m===""||m==="-")return;const b=Number(m);if(!Number.isFinite(b))return;const g=new Date(String(s).replace(/\//g,"-"));isNaN(g.getTime())||(r[g.getMonth()]+=b)}),p.value=r.map(s=>parseFloat(s.toFixed(2))),this.chartObj.setOption(this.getChartOption(),!0)}setSocketData(t){if(!t)return;const e=c();if(!e)return;const n=this.extractDataValue(t,e);if(n==null||isNaN(Number(n)))return;const r=t.datetime||"";let u=new Date().getMonth();if(r){const h=new Date(r.replace(/\//g,"-"));isNaN(h.getTime())||(u=h.getMonth())}const s=[...p.value];s[u]=parseFloat((s[u]+Number(n)).toFixed(2)),p.value=s,this.chartObj&&this.chartObj.setOption(this.getChartOption(),!0)}onLinkEvent(t){const{payload:e}=t;if(!e)return;const n=e.objectId||e.object_id;n&&(v.value=String(n),p.value=new Array(12).fill(0),this.initChart(),this.props.mode==="preview"&&this.subscribeBySource(this.getSource(),String(n)))}}const A=new d(o,"annualRainfallChart");A.setupLifecycle();const j=A.getEchartId(),D=A.getStyle(),T=i.computed(()=>({backgroundColor:D.value.bgColor,width:"100%",height:"100%"}));return(f,t)=>(i.openBlock(),i.createElementBlock("div",{class:"annual-rainfall-chart-wrap",style:i.normalizeStyle(T.value)},[i.createElementVNode("div",{id:i.unref(j),class:"chart-container"},null,8,U),i.renderSlot(f.$slots,"default",{},void 0,!0)],4))}})),tt=B._export_sfc(Z,[["__scopeId","data-v-29c27eac"]]);exports.default=tt;
@@ -11,9 +11,9 @@ var b = (r, i, n) => i in r ? _(r, i, { enumerable: !0, configurable: !0, writab
11
11
  return r;
12
12
  }, f = (r, i) => E(r, D(i));
13
13
  import { defineComponent as N, computed as R, openBlock as T, createElementBlock as $, normalizeStyle as A, unref as h, createElementVNode as S, toDisplayString as I, renderSlot as M } from "vue";
14
- import { n as j, o as B, _ as P } from "./index-dAR2gb1S.js";
14
+ import { n as j, o as B, _ as P } from "./index-B2DTHz1b.js";
15
15
  import "element-plus";
16
- import { E as V } from "./EChartComponentBase-vS3I7IAs.js";
16
+ import { E as V } from "./EChartComponentBase-CJ2oE_sT.js";
17
17
  import { g as k } from "./titleStyle-BT5GlpAb.js";
18
18
  import { A as q, D as w } from "./ele-aqi-icon-DsYfU5th.js";
19
19
  import { u as F, i as U, a as H } from "./installCanvasRenderer-oDYkyVFy.js";
@@ -1,3 +1,3 @@
1
- "use strict";var E=Object.defineProperty,q=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var A=(r,i,c)=>i in r?E(r,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[i]=c,m=(r,i)=>{for(var c in i||(i={}))z.call(i,c)&&A(r,c,i[c]);if(b)for(var c of b(i))D.call(i,c)&&A(r,c,i[c]);return r},h=(r,i)=>q(r,N(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),y=require("./index-5jeBLy74.cjs");require("element-plus");const L=require("./EChartComponentBase-COpfXxIp.cjs"),T=require("./titleStyle-NSnz6cUg.cjs"),v=require("./ele-aqi-icon-BMm9WgFH.cjs"),S=require("./installCanvasRenderer-CyhM1Qpl.cjs"),I=require("./installMarkLine-Bv53Iw9G.cjs"),R=require("./install-DV5cEgNV.cjs"),M=require("./install-z6wShIZI.cjs"),V=require("./install-CIT6k8Ga.cjs"),$=require("./install-CltTFs4e.cjs"),j=require("./install-C8buXQPI.cjs"),B=require("./install-CYwVETsi.cjs"),P={class:"mix-body"},k=["id"],F={DEFAULT_ICON:v.DEFAULT_ICON,ACTIVE_ICON:v.ACTIVE_ICON,NAME_CN:"指数",NAME_EN:"Index Chart",ORDER:2,PLATFORM:["pc","screen","mobile"]},w={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",lineColor:"#d64545",radiusSize:8,textSize:12,top:20,bottom:40,left:20,right:30,points:100,isSmooth:!1,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},U=[{name:"参数一",fv:"",object_id:""}],H=["name","fv","object_id","colorArea","source"],G=["mosaic","statistics","calculate"],W=[{color:"#00ff00",value:50}],Z=1,J={useAlias:!1,null:{type:"0",value:""},multiObject:!1,source:"mosaic",rate:{checked:!1,value:1}},K={DEFAULT:F,OPTIONS:w,DATA:U,PARAMS:H,SOURCE:G,COLOR_AREA:W,ITEMS:Z,COMMON:J},Q=n.defineComponent(h(m({},K),{__name:"aqi",props:{conf:{type:Object,default:()=>({data:[],area:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){S.use([I.install,R.install,M.install,V.install,$.install,S.install,j.install,S.install$1,B.install]);const i=r;class c extends L.EChartComponentBase{extractStyles(){return h(m({},super.extractStyles()),{lineColor:this.getOptionValue("lineColor","#d64545"),isSmooth:this.getOptionValue("isSmooth",!1)})}getChartOption(){var a;const t=this.Style.value,{conf:o}=this.props;return o.area=o.area||[{color:"#00ff00",value:50}],{tooltip:{trigger:"axis",textStyle:{fontSize:t.textSize}},legend:{show:!0,data:[((a=o==null?void 0:o.data[0])==null?void 0:a.name)||""],right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!0},dataZoom:[{type:"slider",start:80,end:100,height:20,bottom:15,left:60,right:60,textStyle:{color:t.textColor},labelFormatter:(l,e)=>e.includes(" ")?e.replace(" ",`
1
+ "use strict";var E=Object.defineProperty,q=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var A=(r,i,c)=>i in r?E(r,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[i]=c,m=(r,i)=>{for(var c in i||(i={}))z.call(i,c)&&A(r,c,i[c]);if(b)for(var c of b(i))D.call(i,c)&&A(r,c,i[c]);return r},h=(r,i)=>q(r,N(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),y=require("./index-BtYU0jdF.cjs");require("element-plus");const L=require("./EChartComponentBase-qlAnyb_l.cjs"),T=require("./titleStyle-NSnz6cUg.cjs"),v=require("./ele-aqi-icon-BMm9WgFH.cjs"),S=require("./installCanvasRenderer-CyhM1Qpl.cjs"),I=require("./installMarkLine-Bv53Iw9G.cjs"),R=require("./install-DV5cEgNV.cjs"),M=require("./install-z6wShIZI.cjs"),V=require("./install-CIT6k8Ga.cjs"),$=require("./install-CltTFs4e.cjs"),j=require("./install-C8buXQPI.cjs"),B=require("./install-CYwVETsi.cjs"),P={class:"mix-body"},k=["id"],F={DEFAULT_ICON:v.DEFAULT_ICON,ACTIVE_ICON:v.ACTIVE_ICON,NAME_CN:"指数",NAME_EN:"Index Chart",ORDER:2,PLATFORM:["pc","screen","mobile"]},w={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",lineColor:"#d64545",radiusSize:8,textSize:12,top:20,bottom:40,left:20,right:30,points:100,isSmooth:!1,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},U=[{name:"参数一",fv:"",object_id:""}],H=["name","fv","object_id","colorArea","source"],G=["mosaic","statistics","calculate"],W=[{color:"#00ff00",value:50}],Z=1,J={useAlias:!1,null:{type:"0",value:""},multiObject:!1,source:"mosaic",rate:{checked:!1,value:1}},K={DEFAULT:F,OPTIONS:w,DATA:U,PARAMS:H,SOURCE:G,COLOR_AREA:W,ITEMS:Z,COMMON:J},Q=n.defineComponent(h(m({},K),{__name:"aqi",props:{conf:{type:Object,default:()=>({data:[],area:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){S.use([I.install,R.install,M.install,V.install,$.install,S.install,j.install,S.install$1,B.install]);const i=r;class c extends L.EChartComponentBase{extractStyles(){return h(m({},super.extractStyles()),{lineColor:this.getOptionValue("lineColor","#d64545"),isSmooth:this.getOptionValue("isSmooth",!1)})}getChartOption(){var a;const t=this.Style.value,{conf:o}=this.props;return o.area=o.area||[{color:"#00ff00",value:50}],{tooltip:{trigger:"axis",textStyle:{fontSize:t.textSize}},legend:{show:!0,data:[((a=o==null?void 0:o.data[0])==null?void 0:a.name)||""],right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!0},dataZoom:[{type:"slider",start:80,end:100,height:20,bottom:15,left:60,right:60,textStyle:{color:t.textColor},labelFormatter:(l,e)=>e.includes(" ")?e.replace(" ",`
2
2
  `):e},{type:"inside",start:0,end:20}],visualMap:{show:!1,pieces:this.getPieces(),outOfRange:{color:"#999"}},xAxis:[{type:"category",boundaryGap:!1,data:this.getTimeAxis(),axisLabel:{formatter:l=>l.includes(" ")?l.replace(" ",`
3
3
  `):l,color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}}}],yAxis:{type:"value",boundaryGap:[0,"20%"],splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}}},series:this.formatSeries()}}getPieces(){const{area:t}=this.props.conf;if(!(t!=null&&t.length))return[];const o=[...t].filter(a=>a.value!=null).sort((a,l)=>a.value-l.value);return o.map((a,l)=>({gt:l===0?0:o[l-1].value,lte:a.value,color:a.color}))}formatSeries(){var e;const t=this.Style.value,{data:o,area:a}=this.props.conf,l=(a||[]).filter(s=>s.value!=null).sort((s,u)=>s.value-u.value);return[{name:((e=o[0])==null?void 0:e.name)||"",type:"line",smooth:t.isSmooth,sampling:"average",markLine:{silent:!1,lineStyle:{color:t.lineColor},label:{color:t.textColor},data:l.map(s=>({yAxis:s.value}))},data:y.getRandomArr({num:t.points,max:200,min:0,mode:this.props.mode,hasDataSource:this.hasData()})}]}setSocketData(t){if(!this.hasData()||!this.chartObj||!t)return;const{data:o,common:a}=this.props.conf,l=a.source||"mosaic",e=this.chartObj.getOption();o.forEach((u,d)=>{const p=this.extractDataValue(t,u.fv),C=["statistics","calculate"].includes(l)?t.start_time:t.datetime;C!=null&&(d===0&&e.xAxis[0].data.push(C),e.series[d].data.push(p))});const s=y.addRealtimeData(e.xAxis[0].data,e.series.map(u=>u.data));e.xAxis[0].data=s.times.slice(-this.Style.value.points),e.series.forEach((u,d)=>{var p;u.data=((p=s.data[d])==null?void 0:p.slice(-this.Style.value.points))||[]}),this.updateChart(e)}setHistoryData(t){if(!t||!(t!=null&&t.length))return;const o=this.chartObj.getOption(),a=Number(this.Style.value.points)||100,l=e=>{if(e==null||e===""||e==="-")return null;const s=Number(e);return Number.isFinite(s)?s:null};o.xAxis[0].data=t[0].time.slice(-a),t.forEach((e,s)=>{if(!o.series[s])return;const u=e.data||[];o.series[s].data=u.map(l).slice(-a)}),this.updateChart(o)}}const f=new c(i,"aqi");f.setupLifecycle();const g=f.getStyle(),O=f.getEchartId(),_=n.computed(()=>T.generateTitleStyle(i.conf.options));return(x,t)=>(n.openBlock(),n.createElementBlock("div",{class:"mix-component",style:n.normalizeStyle({background:n.unref(g).bgColor,borderRadius:`${n.unref(g).radiusSize}px`})},[n.createElementVNode("div",{class:"mix-title",style:n.normalizeStyle(_.value)},n.toDisplayString(r.conf.caption||r.conf.name),5),n.createElementVNode("div",P,[n.createElementVNode("div",{class:"w-full h-full",id:n.unref(O)},null,8,k)]),n.renderSlot(x.$slots,"default",{},void 0,!0)],4))}})),X=y._export_sfc(Q,[["__scopeId","data-v-0b26cc40"]]);exports.default=X;
@@ -11,8 +11,8 @@ var I = (c, i, s) => i in c ? B(c, i, { enumerable: !0, configurable: !0, writab
11
11
  return c;
12
12
  }, w = (c, i) => H(c, P(i));
13
13
  import { defineComponent as U, ref as J, inject as X, computed as Y, watchEffect as Z, openBlock as K, createElementBlock as Q, normalizeStyle as $, unref as x, createElementVNode as _, toDisplayString as W, renderSlot as j, nextTick as tt } from "vue";
14
- import { B as et, u as ot, p as at } from "./BaseComponent-CDynr4Wh.js";
15
- import { G as lt, I as C, J as it, n as st, B as rt, _ as nt } from "./index-dAR2gb1S.js";
14
+ import { B as et, u as ot, p as at } from "./BaseComponent-DjTaS3b5.js";
15
+ import { G as lt, I as C, J as it, n as st, B as rt, _ as nt } from "./index-B2DTHz1b.js";
16
16
  import { g as ut } from "./titleStyle-BT5GlpAb.js";
17
17
  import { A as ct, D as dt } from "./ele-aqi-icon-DsYfU5th.js";
18
18
  import { i as pt } from "./installMarkLine-CHCnywAM.js";
@@ -1,3 +1,3 @@
1
- "use strict";var F=Object.defineProperty,H=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var I=(d,r,s)=>r in d?F(d,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[r]=s,T=(d,r)=>{for(var s in r||(r={}))G.call(r,s)&&I(d,s,r[s]);if(z)for(var s of z(r))X.call(r,s)&&I(d,s,r[s]);return d},N=(d,r)=>H(d,U(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),A=require("./BaseComponent-CIst2h8G.cjs"),v=require("./index-5jeBLy74.cjs"),Y=require("./titleStyle-NSnz6cUg.cjs"),w=require("./ele-aqi-icon-BMm9WgFH.cjs"),Z=require("./installMarkLine-Bv53Iw9G.cjs"),j=require("./install-z6wShIZI.cjs"),J=require("./install-CIT6k8Ga.cjs"),K=require("./install-CYwVETsi.cjs"),_=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Q=require("./install-DV5cEgNV.cjs"),W=require("./install-CltTFs4e.cjs"),ee=require("./install-C8buXQPI.cjs"),L=require("./echarts-BB8O2KSA.cjs"),te={DEFAULT_ICON:w.DEFAULT_ICON,ACTIVE_ICON:w.ACTIVE_ICON,NAME_CN:"分级曲线",NAME_EN:"Grading Curve",ORDER:2,PLATFORM:["pc","screen","mobile"]},oe={titleColor:"#111",bgColor:"#fff",textColor:"#111",lineColor:"#d64545",radiusSize:8,textSize:12,top:20,bottom:40,left:20,right:30,points:100,isSmooth:!1,isHideTitle:!1},V=[{name:"参数一",项目编号:"",object_id:""}],le=["name","项目编号","object_id","colorArea"],ae=["index","deviation","stability","balance","increment","risk"],ie=[{color:"#00ff00",value:50}],re=1,se={useAlias:!1,null:{type:"0",value:""},source:"index"},ne={DEFAULT:te,OPTIONS:oe,DATA:V,PARAMS:le,SOURCE:ae,COLOR_AREA:ie,ITEMS:re,COMMON:se},ue=t.defineComponent(N(T({},ne),{__name:"aqiIndass",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(d){_.use([Z.install,Q.install,j.install,J.install,W.install,_.install,ee.install,_.install$1,K.install]);const r=t.ref(t.inject("session",null)),s="aqi_"+Math.random().toString(16).substring(4,12);let o=null,y=null;const l=d;class M extends A.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),lineColor:this.getOptionValue("lineColor","#d64545"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",100)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:V,t.nextTick(()=>{let n=document.querySelector("#"+s);n&&(o||(o=L.init(n),y=v.elementResizeDetectorMaker({strategy:"scroll"}),y.listenTo(n,()=>o==null?void 0:o.resize())),o.setOption(k(),!0))})}onPreview(){O.preview()}cleanup(){y&&y.uninstall(document.querySelector("#"+s)),o&&o.clear(),o&&L.dispose(o),o=null,O.unregister()}}const b=new M(l,"aqiIndass");b.setupLifecycle();const i=b.getStyle(),R=t.computed(()=>Y.generateTitleStyle(l.conf.options)),k=()=>{var a,u,f,c,m,S,h,E;const{conf:e}=l,n=v.hasDataSource(e);var p={tooltip:{trigger:"axis"},legend:{show:!0,data:[(e==null?void 0:e.data[0].name)||""],right:20,top:0,textStyle:{color:i.value.textColor,fontSize:i.value.textSize},itemStyle:{color:i.value.lineColor},lineStyle:{color:i.value.lineColor}},grid:{top:((u=(a=e==null?void 0:e.options)==null?void 0:a.top)==null?void 0:u.value)||30,bottom:((c=(f=e==null?void 0:e.options)==null?void 0:f.bottom)==null?void 0:c.value)||20,left:((S=(m=e==null?void 0:e.options)==null?void 0:m.left)==null?void 0:S.value)||40,right:((E=(h=e==null?void 0:e.options)==null?void 0:h.right)==null?void 0:E.value)||20,containLabel:!0},dataZoom:[{type:"slider",start:80,end:100,height:20,bottom:15,left:60,right:60,handleStyle:{color:"#fff",shadowBlur:2,shadowOffsetX:2,shadowOffsetY:2},textStyle:{color:i.value.textColor},borderStyle:{color:"#000"},throttle:200,labelFormatter:function(x,C){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(C))return C;let g=C.split(" ");return g[0]+`
1
+ "use strict";var F=Object.defineProperty,H=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var I=(d,r,s)=>r in d?F(d,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[r]=s,T=(d,r)=>{for(var s in r||(r={}))G.call(r,s)&&I(d,s,r[s]);if(z)for(var s of z(r))X.call(r,s)&&I(d,s,r[s]);return d},N=(d,r)=>H(d,U(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),A=require("./BaseComponent-RkrbGXqw.cjs"),v=require("./index-BtYU0jdF.cjs"),Y=require("./titleStyle-NSnz6cUg.cjs"),w=require("./ele-aqi-icon-BMm9WgFH.cjs"),Z=require("./installMarkLine-Bv53Iw9G.cjs"),j=require("./install-z6wShIZI.cjs"),J=require("./install-CIT6k8Ga.cjs"),K=require("./install-CYwVETsi.cjs"),_=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Q=require("./install-DV5cEgNV.cjs"),W=require("./install-CltTFs4e.cjs"),ee=require("./install-C8buXQPI.cjs"),L=require("./echarts-BB8O2KSA.cjs"),te={DEFAULT_ICON:w.DEFAULT_ICON,ACTIVE_ICON:w.ACTIVE_ICON,NAME_CN:"分级曲线",NAME_EN:"Grading Curve",ORDER:2,PLATFORM:["pc","screen","mobile"]},oe={titleColor:"#111",bgColor:"#fff",textColor:"#111",lineColor:"#d64545",radiusSize:8,textSize:12,top:20,bottom:40,left:20,right:30,points:100,isSmooth:!1,isHideTitle:!1},V=[{name:"参数一",项目编号:"",object_id:""}],le=["name","项目编号","object_id","colorArea"],ae=["index","deviation","stability","balance","increment","risk"],ie=[{color:"#00ff00",value:50}],re=1,se={useAlias:!1,null:{type:"0",value:""},source:"index"},ne={DEFAULT:te,OPTIONS:oe,DATA:V,PARAMS:le,SOURCE:ae,COLOR_AREA:ie,ITEMS:re,COMMON:se},ue=t.defineComponent(N(T({},ne),{__name:"aqiIndass",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(d){_.use([Z.install,Q.install,j.install,J.install,W.install,_.install,ee.install,_.install$1,K.install]);const r=t.ref(t.inject("session",null)),s="aqi_"+Math.random().toString(16).substring(4,12);let o=null,y=null;const l=d;class M extends A.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),lineColor:this.getOptionValue("lineColor","#d64545"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",100)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:V,t.nextTick(()=>{let n=document.querySelector("#"+s);n&&(o||(o=L.init(n),y=v.elementResizeDetectorMaker({strategy:"scroll"}),y.listenTo(n,()=>o==null?void 0:o.resize())),o.setOption(k(),!0))})}onPreview(){O.preview()}cleanup(){y&&y.uninstall(document.querySelector("#"+s)),o&&o.clear(),o&&L.dispose(o),o=null,O.unregister()}}const b=new M(l,"aqiIndass");b.setupLifecycle();const i=b.getStyle(),R=t.computed(()=>Y.generateTitleStyle(l.conf.options)),k=()=>{var a,u,f,c,m,S,h,E;const{conf:e}=l,n=v.hasDataSource(e);var p={tooltip:{trigger:"axis"},legend:{show:!0,data:[(e==null?void 0:e.data[0].name)||""],right:20,top:0,textStyle:{color:i.value.textColor,fontSize:i.value.textSize},itemStyle:{color:i.value.lineColor},lineStyle:{color:i.value.lineColor}},grid:{top:((u=(a=e==null?void 0:e.options)==null?void 0:a.top)==null?void 0:u.value)||30,bottom:((c=(f=e==null?void 0:e.options)==null?void 0:f.bottom)==null?void 0:c.value)||20,left:((S=(m=e==null?void 0:e.options)==null?void 0:m.left)==null?void 0:S.value)||40,right:((E=(h=e==null?void 0:e.options)==null?void 0:h.right)==null?void 0:E.value)||20,containLabel:!0},dataZoom:[{type:"slider",start:80,end:100,height:20,bottom:15,left:60,right:60,handleStyle:{color:"#fff",shadowBlur:2,shadowOffsetX:2,shadowOffsetY:2},textStyle:{color:i.value.textColor},borderStyle:{color:"#000"},throttle:200,labelFormatter:function(x,C){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(C))return C;let g=C.split(" ");return g[0]+`
2
2
  `+g[1]}},{type:"inside",start:0,end:20}],visualMap:{show:!1,pieces:$(),outOfRange:{color:"#999"}},xAxis:[{type:"category",boundaryGap:!1,data:v.getxAxisDataTime(i.value.points,l.mode,n),axisLabel:{formatter:function(x,C){if(!/^[1-9]\d{3}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(x))return x;let g=x.split(" ");return g[0]+`
3
3
  `+g[1]},color:i.value.textColor,fontSize:i.value.textSize}}],yAxis:{type:"value",boundaryGap:[0,"20%"],splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{formatter:"{value}",color:i.value.textColor,fontSize:i.value.textSize},axisLine:{lineStyle:{color:i.value.textColor}},splitNumber:4},series:P()};return p},$=()=>{const{area:e}=l.conf;let n=e.filter(a=>a.value!==null&&a.value!==void 0);n.sort((a,u)=>a.value-u.value);let p=[];return n.forEach((a,u)=>{u===0?p.push({gt:0,lte:a.value,color:a.color}):p.push({gt:n[u-1].value,lte:a.value,color:a.color})}),p},P=()=>{var f;const{options:e,data:n,area:p}=l.conf,a=v.hasDataSource(l.conf),u=p.filter(c=>c.value!==null&&c.value!==void 0);return u.sort((c,m)=>c.value-m.value),[{name:n[0].name||"",type:"line",smooth:(f=e==null?void 0:e.isSmooth)==null?void 0:f.value,sampling:"average",markLine:{silent:!1,lineStyle:{color:i.value.lineColor},label:{color:i.value.textColor},data:u.map(c=>({yAxis:c.value}))},data:v.getRandomArr({num:i.value.points,max:200,min:0,mode:l.mode,hasDataSource:a})}]},B=e=>{if(!v.hasDataSource(l.conf))return;const{data:n}=l.conf;let p=v.handleNullData(e,l,"history"),a=[],u=[];if(!p.history.length)return;p.history.forEach((c,m)=>{u.push([]),u[m]=c.map(S=>{var h;return(h=S[n[m].fv])!=null?h:"--"}),a[m]=c.map(S=>S.time)});let f=o==null?void 0:o.getOption();f&&(f.xAxis[0].data=a[0],f.series.forEach((c,m)=>{c.data=u[m]}),o==null||o.setOption(f))},q=e=>{v.hasDataSource(l.conf)},O={preview:()=>A.preview(l,r.value,B,q,"aqiIndass"),unregister:()=>A.unregister(l,r.value)};t.watchEffect(()=>{l.conf.socketData&&q(l.conf.socketData)});const D=l.conf;return(e,n)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(i).bgColor,borderRadius:`${t.unref(i).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(R.value)},t.toDisplayString(t.unref(D).caption||t.unref(D).name),5),t.createElementVNode("div",{class:"mix-body"},[t.createElementVNode("div",{class:"w-full h-full",id:s})]),t.renderSlot(e.$slots,"default",{},void 0,!0)],4))}})),ce=v._export_sfc(ue,[["__scopeId","data-v-51dcf558"]]);exports.default=ce;
@@ -1 +1 @@
1
- "use strict";var R=Object.defineProperty,G=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols,U=Object.getPrototypeOf,W=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,Y=Reflect.get;var w=(c,r,o)=>r in c?R(c,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):c[r]=o,_=(c,r)=>{for(var o in r||(r={}))W.call(r,o)&&w(c,o,r[o]);if(T)for(var o of T(r))K.call(r,o)&&w(c,o,r[o]);return c},j=(c,r)=>G(c,H(r));var M=(c,r,o)=>Y(U(c),o,r);var F=(c,r,o)=>new Promise((y,f)=>{var k=i=>{try{m(o.next(i))}catch(A){f(A)}},C=i=>{try{m(o.throw(i))}catch(A){f(A)}},m=i=>i.done?y(i.value):Promise.resolve(i.value).then(k,C);m((o=o.apply(c,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const J=require("./index-5jeBLy74.cjs");require("element-plus");const Q=require("./EChartComponentBase-COpfXxIp.cjs");require("./index-CJgyJTvc.cjs");const $=require("./ele-lin-icon-Dke_1AmT.cjs"),X=require("./echarts-BB8O2KSA.cjs"),Z={class:"panel-header"},ee={class:"header-left"},te={class:"header-title"},ae={class:"header-right"},le=["id"],re={DEFAULT_ICON:$.DEFAULT_ICON,ACTIVE_ICON:$.ACTIVE_ICON,NAME_CN:"圈定面累积形变",NAME_EN:"Area Deform Curve",ORDER:1,PLATFORM:["pc","screen"]},oe={title:{value:"圈定面累积形变",type:"string",label:"标题"},subtitle:{value:"全矿区总览",type:"string",label:"副标题"},subtitleColor:{value:"#1a3a6b",type:"color",label:"副标题颜色"},yAxisLabel:{value:"mm",type:"string",label:"Y轴标签"},bgColor:{value:"#f0f4fa",type:"color",label:"背景色"},lineColor:{value:"#2c5a9e",type:"color",label:"曲线颜色"},gradientStart:{value:"rgba(44, 90, 158, 0.6)",type:"color",label:"渐变起始色"},gradientEnd:{value:"rgba(44, 90, 158, 0.05)",type:"color",label:"渐变结束色"},textColor:{value:"#333333",type:"color",label:"文字颜色"},linkChannel:{value:"radarMonitor",type:"select",label:"联动频道",options:[{label:"雷达监测",value:"radarMonitor"},{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},se=[{name:"重点区域监测趋势",fv:"deformation",object_id:""}],ne=["name","fv","object_id"],ie=["mosaic","statistics","statisticsRealtime"],ce={useAlias:!1,multiObject:!1,source:"mosaic"},ue={DEFAULT:re,OPTIONS:oe,DATA:se,PARAMS:ne,SOURCE:ie,COMMON:ce},de=t.defineComponent(j(_({},ue),{__name:"areaDeformCurve",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){const r=c;class o extends Q.EChartComponentBase{extractStyles(){var p,b,v,x,g,d,l,h,S,D,L;const{options:e}=this.props.conf,a=((p=e==null?void 0:e.linkChannel)==null?void 0:p.value)||"radarMonitor",n=((b=e==null?void 0:e.customChannel)==null?void 0:b.value)||"",u=a==="custom"&&n?n:a;return{title:((v=e==null?void 0:e.title)==null?void 0:v.value)||"圈定面累积形变",subtitle:((x=e==null?void 0:e.subtitle)==null?void 0:x.value)||"全矿区总览",subtitleColor:((g=e==null?void 0:e.subtitleColor)==null?void 0:g.value)||"#1a3a6b",yAxisLabel:((d=e==null?void 0:e.yAxisLabel)==null?void 0:d.value)||"mm",bgColor:((l=e==null?void 0:e.bgColor)==null?void 0:l.value)||"#f0f4fa",lineColor:((h=e==null?void 0:e.lineColor)==null?void 0:h.value)||"#2c5a9e",gradientStart:((S=e==null?void 0:e.gradientStart)==null?void 0:S.value)||"rgba(44, 90, 158, 0.6)",gradientEnd:((D=e==null?void 0:e.gradientEnd)==null?void 0:D.value)||"rgba(44, 90, 158, 0.05)",textColor:((L=e==null?void 0:e.textColor)==null?void 0:L.value)||"#333333",linkChannel:u}}getChartOption(){return V(i.value)}initHistory(){return F(this,null,function*(){const e=this.props.conf;if(!e)return[];e.options||(e.options={});const a=e.options.points,n=Object.prototype.hasOwnProperty.call(e.options,"points");(!a||Number(a)<24)&&(e.options.points=24);try{return yield M(o.prototype,this,"initHistory").call(this)}finally{n?e.options.points=a:delete e.options.points}})}setHistoryData(e){var d;if(!this.hasData()||!this.chartObj||!e)return;const a=super.setHistoryData(e);if(!(a!=null&&a.length))return;const n=a[0];if(!((d=n==null?void 0:n.time)!=null&&d.length))return;const u=l=>{if(l==null||l===""||l==="-")return null;const h=Number(l);return Number.isFinite(h)?h:null},p=n.time.map((l,h)=>{var S;return{t:String(l!=null?l:""),v:u((S=n.data)==null?void 0:S[h])}});p.sort((l,h)=>new Date(l.t).getTime()-new Date(h.t).getTime());const b=p.slice(-24),v=b.map(l=>l.t.split(".")[0]||l.t);if(b.map(l=>l.v).filter(l=>l!=null).length===0)return;const g=this.chartObj.getOption();!g.xAxis||!g.series||(g.xAxis[0].data=v,g.series[0].data=b.map(l=>l.v),this.updateChart(g))}setSocketData(e){var b,v,x;if(!this.chartObj||!e)return;const a=((x=(v=(b=this.props.conf)==null?void 0:b.data)==null?void 0:v[0])==null?void 0:x.fv)||"deformation",u=this.getSource()==="mosaic"?e.datetime:e.start_time,p=this.extractDataValue(e,a);if(p!=null&&u){const g=u.split(".")[0]||u,d=this.chartObj.getOption();d.xAxis[0].data.push(g),d.series[0].data.push(p),d.xAxis[0].data.length>24&&(d.xAxis[0].data.shift(),d.series[0].data.shift()),this.chartObj.setOption(d)}}onLinkEvent(e){z(e)}}const y=new o(r,"areaDeformCurve");y.setupLifecycle();const f=y.getStyle(),k=y.getEchartId(),C=t.ref("surface"),m=t.ref(!1),i=t.ref({type:"default",label:"重点区域监测趋势",subtitle:"全矿区总览",color:"#1a3a6b",data:[4.2,4.5,4.3,4.8,4.65],meta:{deviceId:"全矿区-总览",region:""}}),A=t.computed(()=>C.value==="surface"?"圈定面累积形变":"圈定点累积形变"),q=t.computed(()=>({backgroundColor:f.value.bgColor,color:f.value.textColor})),O=(s,e)=>Array.from({length:5},()=>parseFloat((s+Math.random()*e-e/2).toFixed(2))),V=s=>{const e=f.value,a=s.color,n=r.mode==="preview",u=n&&s.type==="default"?[]:["0h","6h","12h","18h","24h"],p=n&&s.type==="default"?[]:s.data;return{title:{text:s.label,subtext:s.subtitle,itemGap:4,textStyle:{fontSize:13,color:a,fontWeight:"bold"},subtextStyle:{fontSize:11,color:"#666"},right:5,top:0,textAlign:"right"},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#eee",textStyle:{color:"#333"},formatter:b=>{const v=b[0];return`${v.name}<br/>形变量: <strong>${v.value} mm</strong>`}},grid:{top:50,bottom:20,left:40,right:15},xAxis:{type:"category",boundaryGap:!1,data:u,axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10}},yAxis:{type:"value",name:e.yAxisLabel||"mm",nameTextStyle:{color:"#666",padding:[0,0,0,-20]},splitLine:{lineStyle:{type:"dashed"}},axisLabel:{fontSize:10}},series:[{data:p,type:"line",smooth:!0,symbol:"circle",symbolSize:6,areaStyle:{color:new X.LinearGradient(0,0,0,1,[{offset:0,color:a},{offset:1,color:"rgba(255,255,255,0)"}])},lineStyle:{color:a,width:2},itemStyle:{color:a}}]}},I=s=>{C.value=C.value==="surface"?"point":"surface",i.value.type!=="customArea"&&N()},B=()=>{r.mode!=="edit"&&(m.value=!m.value,m.value?y.publish({type:"customArea",action:"start",mode:C.value}):(y.publish({type:"customArea",action:"stop"}),i.value.type!=="customArea"&&N()))},P=()=>{if(r.mode==="edit")return;const s=i.value;y.publish({type:"openAnalysis",deviceId:s.meta.deviceId,region:s.meta.region})},N=()=>{const s=y.getChartInstance();s&&s.setOption(V(i.value),!0)},E=(s,e)=>{switch(s){case"customArea":i.value={type:"customArea",label:"自定义圈定区域",subtitle:"多点聚合分析结果",color:"#71C446",data:O(6.5,3),meta:{deviceId:"Custom-Area",region:"自定义"}};break;case"region":i.value={type:"region",label:`${(e==null?void 0:e.name)||""}综合形变趋势`,subtitle:"区域平均值",color:"#409EFF",data:O(4,1.5),meta:{deviceId:`${e==null?void 0:e.name}-综合监测`,region:(e==null?void 0:e.region)||""}};break;case"radar":i.value={type:"radar",label:`${(e==null?void 0:e.name)||""}监测趋势`,subtitle:"设备实时监测",color:"#E6A23C",data:O(7,2.5),meta:{deviceId:`${e==null?void 0:e.name}-点01`,region:(e==null?void 0:e.region)||""}};break;default:i.value={type:"default",label:"重点区域监测趋势",subtitle:"全矿区总览",color:"#1a3a6b",data:[4.2,4.5,4.3,4.8,4.65],meta:{deviceId:"全矿区-总览",region:""}}}N()},z=s=>{var a;const{payload:e}=s;if(e.type==="customAreaComplete"){m.value=!1,E("customArea");return}if(e.type==="customAreaCancel"){m.value=!1,E("default");return}if(e.type==="regionFilter"){if(i.value.type==="customArea")return;const n=e.regions||[],u=e.radars||[];u.length===1?E("radar",{name:u[0],region:n[0]||""}):n.length===1&&!n.includes("全部")?E("region",{name:n[0],region:n[0]}):E("default");return}e.objectId&&(((a=r.conf)==null?void 0:a.data)||[]).forEach(u=>{u.object_id=e.objectId})};return t.watch(i,()=>{N()},{deep:!0}),(s,e)=>(t.openBlock(),t.createElementBlock("div",{class:"area-deform-wrapper",style:t.normalizeStyle(q.value)},[t.createElementVNode("div",Z,[t.createElementVNode("div",ee,[e[2]||(e[2]=t.createElementVNode("div",{class:"header-indicator"},null,-1)),t.createElementVNode("span",te,t.toDisplayString(A.value),1)]),t.createElementVNode("div",ae,[t.createElementVNode("button",{class:t.normalizeClass(["custom-btn",{"active-mode":m.value}]),onClick:B},[m.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[3]||(e[3]=t.createElementVNode("span",{class:"btn-icon"},"✕",-1)),e[4]||(e[4]=t.createTextVNode(" Esc 退出圈定 ",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[5]||(e[5]=t.createElementVNode("span",{class:"btn-icon"},"⊕",-1)),e[6]||(e[6]=t.createTextVNode(" 自定义圈定 ",-1))],64))],2),t.createElementVNode("button",{class:"page-btn",onClick:e[0]||(e[0]=a=>I())},[...e[7]||(e[7]=[t.createElementVNode("span",null,"<",-1)])]),t.createElementVNode("button",{class:"page-btn",onClick:e[1]||(e[1]=a=>I())},[...e[8]||(e[8]=[t.createElementVNode("span",null,">",-1)])])])]),t.createElementVNode("div",{class:"chart-area",onClick:P},[t.createElementVNode("div",{id:t.unref(k),class:"chart-container"},null,8,le)]),t.renderSlot(s.$slots,"default",{},void 0,!0)],4))}})),me=J._export_sfc(de,[["__scopeId","data-v-f97282bb"]]);exports.default=me;
1
+ "use strict";var R=Object.defineProperty,G=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols,U=Object.getPrototypeOf,W=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,Y=Reflect.get;var w=(c,r,o)=>r in c?R(c,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):c[r]=o,_=(c,r)=>{for(var o in r||(r={}))W.call(r,o)&&w(c,o,r[o]);if(T)for(var o of T(r))K.call(r,o)&&w(c,o,r[o]);return c},j=(c,r)=>G(c,H(r));var M=(c,r,o)=>Y(U(c),o,r);var F=(c,r,o)=>new Promise((y,f)=>{var k=i=>{try{m(o.next(i))}catch(A){f(A)}},C=i=>{try{m(o.throw(i))}catch(A){f(A)}},m=i=>i.done?y(i.value):Promise.resolve(i.value).then(k,C);m((o=o.apply(c,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const J=require("./index-BtYU0jdF.cjs");require("element-plus");const Q=require("./EChartComponentBase-qlAnyb_l.cjs");require("./index-CJgyJTvc.cjs");const $=require("./ele-lin-icon-Dke_1AmT.cjs"),X=require("./echarts-BB8O2KSA.cjs"),Z={class:"panel-header"},ee={class:"header-left"},te={class:"header-title"},ae={class:"header-right"},le=["id"],re={DEFAULT_ICON:$.DEFAULT_ICON,ACTIVE_ICON:$.ACTIVE_ICON,NAME_CN:"圈定面累积形变",NAME_EN:"Area Deform Curve",ORDER:1,PLATFORM:["pc","screen"]},oe={title:{value:"圈定面累积形变",type:"string",label:"标题"},subtitle:{value:"全矿区总览",type:"string",label:"副标题"},subtitleColor:{value:"#1a3a6b",type:"color",label:"副标题颜色"},yAxisLabel:{value:"mm",type:"string",label:"Y轴标签"},bgColor:{value:"#f0f4fa",type:"color",label:"背景色"},lineColor:{value:"#2c5a9e",type:"color",label:"曲线颜色"},gradientStart:{value:"rgba(44, 90, 158, 0.6)",type:"color",label:"渐变起始色"},gradientEnd:{value:"rgba(44, 90, 158, 0.05)",type:"color",label:"渐变结束色"},textColor:{value:"#333333",type:"color",label:"文字颜色"},linkChannel:{value:"radarMonitor",type:"select",label:"联动频道",options:[{label:"雷达监测",value:"radarMonitor"},{label:"GNSS监测",value:"gnss"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},se=[{name:"重点区域监测趋势",fv:"deformation",object_id:""}],ne=["name","fv","object_id"],ie=["mosaic","statistics","statisticsRealtime"],ce={useAlias:!1,multiObject:!1,source:"mosaic"},ue={DEFAULT:re,OPTIONS:oe,DATA:se,PARAMS:ne,SOURCE:ie,COMMON:ce},de=t.defineComponent(j(_({},ue),{__name:"areaDeformCurve",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){const r=c;class o extends Q.EChartComponentBase{extractStyles(){var p,b,v,x,g,d,l,h,S,D,L;const{options:e}=this.props.conf,a=((p=e==null?void 0:e.linkChannel)==null?void 0:p.value)||"radarMonitor",n=((b=e==null?void 0:e.customChannel)==null?void 0:b.value)||"",u=a==="custom"&&n?n:a;return{title:((v=e==null?void 0:e.title)==null?void 0:v.value)||"圈定面累积形变",subtitle:((x=e==null?void 0:e.subtitle)==null?void 0:x.value)||"全矿区总览",subtitleColor:((g=e==null?void 0:e.subtitleColor)==null?void 0:g.value)||"#1a3a6b",yAxisLabel:((d=e==null?void 0:e.yAxisLabel)==null?void 0:d.value)||"mm",bgColor:((l=e==null?void 0:e.bgColor)==null?void 0:l.value)||"#f0f4fa",lineColor:((h=e==null?void 0:e.lineColor)==null?void 0:h.value)||"#2c5a9e",gradientStart:((S=e==null?void 0:e.gradientStart)==null?void 0:S.value)||"rgba(44, 90, 158, 0.6)",gradientEnd:((D=e==null?void 0:e.gradientEnd)==null?void 0:D.value)||"rgba(44, 90, 158, 0.05)",textColor:((L=e==null?void 0:e.textColor)==null?void 0:L.value)||"#333333",linkChannel:u}}getChartOption(){return V(i.value)}initHistory(){return F(this,null,function*(){const e=this.props.conf;if(!e)return[];e.options||(e.options={});const a=e.options.points,n=Object.prototype.hasOwnProperty.call(e.options,"points");(!a||Number(a)<24)&&(e.options.points=24);try{return yield M(o.prototype,this,"initHistory").call(this)}finally{n?e.options.points=a:delete e.options.points}})}setHistoryData(e){var d;if(!this.hasData()||!this.chartObj||!e)return;const a=super.setHistoryData(e);if(!(a!=null&&a.length))return;const n=a[0];if(!((d=n==null?void 0:n.time)!=null&&d.length))return;const u=l=>{if(l==null||l===""||l==="-")return null;const h=Number(l);return Number.isFinite(h)?h:null},p=n.time.map((l,h)=>{var S;return{t:String(l!=null?l:""),v:u((S=n.data)==null?void 0:S[h])}});p.sort((l,h)=>new Date(l.t).getTime()-new Date(h.t).getTime());const b=p.slice(-24),v=b.map(l=>l.t.split(".")[0]||l.t);if(b.map(l=>l.v).filter(l=>l!=null).length===0)return;const g=this.chartObj.getOption();!g.xAxis||!g.series||(g.xAxis[0].data=v,g.series[0].data=b.map(l=>l.v),this.updateChart(g))}setSocketData(e){var b,v,x;if(!this.chartObj||!e)return;const a=((x=(v=(b=this.props.conf)==null?void 0:b.data)==null?void 0:v[0])==null?void 0:x.fv)||"deformation",u=this.getSource()==="mosaic"?e.datetime:e.start_time,p=this.extractDataValue(e,a);if(p!=null&&u){const g=u.split(".")[0]||u,d=this.chartObj.getOption();d.xAxis[0].data.push(g),d.series[0].data.push(p),d.xAxis[0].data.length>24&&(d.xAxis[0].data.shift(),d.series[0].data.shift()),this.chartObj.setOption(d)}}onLinkEvent(e){z(e)}}const y=new o(r,"areaDeformCurve");y.setupLifecycle();const f=y.getStyle(),k=y.getEchartId(),C=t.ref("surface"),m=t.ref(!1),i=t.ref({type:"default",label:"重点区域监测趋势",subtitle:"全矿区总览",color:"#1a3a6b",data:[4.2,4.5,4.3,4.8,4.65],meta:{deviceId:"全矿区-总览",region:""}}),A=t.computed(()=>C.value==="surface"?"圈定面累积形变":"圈定点累积形变"),q=t.computed(()=>({backgroundColor:f.value.bgColor,color:f.value.textColor})),O=(s,e)=>Array.from({length:5},()=>parseFloat((s+Math.random()*e-e/2).toFixed(2))),V=s=>{const e=f.value,a=s.color,n=r.mode==="preview",u=n&&s.type==="default"?[]:["0h","6h","12h","18h","24h"],p=n&&s.type==="default"?[]:s.data;return{title:{text:s.label,subtext:s.subtitle,itemGap:4,textStyle:{fontSize:13,color:a,fontWeight:"bold"},subtextStyle:{fontSize:11,color:"#666"},right:5,top:0,textAlign:"right"},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#eee",textStyle:{color:"#333"},formatter:b=>{const v=b[0];return`${v.name}<br/>形变量: <strong>${v.value} mm</strong>`}},grid:{top:50,bottom:20,left:40,right:15},xAxis:{type:"category",boundaryGap:!1,data:u,axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{fontSize:10}},yAxis:{type:"value",name:e.yAxisLabel||"mm",nameTextStyle:{color:"#666",padding:[0,0,0,-20]},splitLine:{lineStyle:{type:"dashed"}},axisLabel:{fontSize:10}},series:[{data:p,type:"line",smooth:!0,symbol:"circle",symbolSize:6,areaStyle:{color:new X.LinearGradient(0,0,0,1,[{offset:0,color:a},{offset:1,color:"rgba(255,255,255,0)"}])},lineStyle:{color:a,width:2},itemStyle:{color:a}}]}},I=s=>{C.value=C.value==="surface"?"point":"surface",i.value.type!=="customArea"&&N()},B=()=>{r.mode!=="edit"&&(m.value=!m.value,m.value?y.publish({type:"customArea",action:"start",mode:C.value}):(y.publish({type:"customArea",action:"stop"}),i.value.type!=="customArea"&&N()))},P=()=>{if(r.mode==="edit")return;const s=i.value;y.publish({type:"openAnalysis",deviceId:s.meta.deviceId,region:s.meta.region})},N=()=>{const s=y.getChartInstance();s&&s.setOption(V(i.value),!0)},E=(s,e)=>{switch(s){case"customArea":i.value={type:"customArea",label:"自定义圈定区域",subtitle:"多点聚合分析结果",color:"#71C446",data:O(6.5,3),meta:{deviceId:"Custom-Area",region:"自定义"}};break;case"region":i.value={type:"region",label:`${(e==null?void 0:e.name)||""}综合形变趋势`,subtitle:"区域平均值",color:"#409EFF",data:O(4,1.5),meta:{deviceId:`${e==null?void 0:e.name}-综合监测`,region:(e==null?void 0:e.region)||""}};break;case"radar":i.value={type:"radar",label:`${(e==null?void 0:e.name)||""}监测趋势`,subtitle:"设备实时监测",color:"#E6A23C",data:O(7,2.5),meta:{deviceId:`${e==null?void 0:e.name}-点01`,region:(e==null?void 0:e.region)||""}};break;default:i.value={type:"default",label:"重点区域监测趋势",subtitle:"全矿区总览",color:"#1a3a6b",data:[4.2,4.5,4.3,4.8,4.65],meta:{deviceId:"全矿区-总览",region:""}}}N()},z=s=>{var a;const{payload:e}=s;if(e.type==="customAreaComplete"){m.value=!1,E("customArea");return}if(e.type==="customAreaCancel"){m.value=!1,E("default");return}if(e.type==="regionFilter"){if(i.value.type==="customArea")return;const n=e.regions||[],u=e.radars||[];u.length===1?E("radar",{name:u[0],region:n[0]||""}):n.length===1&&!n.includes("全部")?E("region",{name:n[0],region:n[0]}):E("default");return}e.objectId&&(((a=r.conf)==null?void 0:a.data)||[]).forEach(u=>{u.object_id=e.objectId})};return t.watch(i,()=>{N()},{deep:!0}),(s,e)=>(t.openBlock(),t.createElementBlock("div",{class:"area-deform-wrapper",style:t.normalizeStyle(q.value)},[t.createElementVNode("div",Z,[t.createElementVNode("div",ee,[e[2]||(e[2]=t.createElementVNode("div",{class:"header-indicator"},null,-1)),t.createElementVNode("span",te,t.toDisplayString(A.value),1)]),t.createElementVNode("div",ae,[t.createElementVNode("button",{class:t.normalizeClass(["custom-btn",{"active-mode":m.value}]),onClick:B},[m.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[3]||(e[3]=t.createElementVNode("span",{class:"btn-icon"},"✕",-1)),e[4]||(e[4]=t.createTextVNode(" Esc 退出圈定 ",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[5]||(e[5]=t.createElementVNode("span",{class:"btn-icon"},"⊕",-1)),e[6]||(e[6]=t.createTextVNode(" 自定义圈定 ",-1))],64))],2),t.createElementVNode("button",{class:"page-btn",onClick:e[0]||(e[0]=a=>I())},[...e[7]||(e[7]=[t.createElementVNode("span",null,"<",-1)])]),t.createElementVNode("button",{class:"page-btn",onClick:e[1]||(e[1]=a=>I())},[...e[8]||(e[8]=[t.createElementVNode("span",null,">",-1)])])])]),t.createElementVNode("div",{class:"chart-area",onClick:P},[t.createElementVNode("div",{id:t.unref(k),class:"chart-container"},null,8,le)]),t.renderSlot(s.$slots,"default",{},void 0,!0)],4))}})),me=J._export_sfc(de,[["__scopeId","data-v-f97282bb"]]);exports.default=me;
@@ -28,9 +28,9 @@ var V = (i, l, r) => new Promise((y, f) => {
28
28
  });
29
29
  import { defineComponent as te, ref as I, computed as R, watch as ae, openBlock as L, createElementBlock as w, normalizeStyle as le, createElementVNode as u, toDisplayString as re, normalizeClass as se, Fragment as G, createTextVNode as H, unref as oe, renderSlot as ne } from "vue";
30
30
  import "html2canvas";
31
- import { _ as ie } from "./index-dAR2gb1S.js";
31
+ import { _ as ie } from "./index-B2DTHz1b.js";
32
32
  import "element-plus";
33
- import { E as ce } from "./EChartComponentBase-vS3I7IAs.js";
33
+ import { E as ce } from "./EChartComponentBase-CJ2oE_sT.js";
34
34
  import "./index-eIsZnzkc.js";
35
35
  import { A as ue, D as de } from "./ele-lin-icon-Dax-ZiWV.js";
36
36
  import { cn as me } from "./echarts-Bp7QN4X6.js";
@@ -27,8 +27,8 @@ var E = (o, e, t) => new Promise((y, p) => {
27
27
  m((t = t.apply(o, e)).next());
28
28
  });
29
29
  import { defineComponent as B, computed as R, openBlock as h, createElementBlock as g, normalizeStyle as S, unref as d, createElementVNode as v, toDisplayString as b, Fragment as U, renderList as F, normalizeClass as I, renderSlot as j } from "vue";
30
- import { B as k } from "./BaseComponent-CDynr4Wh.js";
31
- import { _ as H } from "./index-dAR2gb1S.js";
30
+ import { B as k } from "./BaseComponent-DjTaS3b5.js";
31
+ import { _ as H } from "./index-B2DTHz1b.js";
32
32
  import { g as P } from "./titleStyle-BT5GlpAb.js";
33
33
  import { A as $, D as w } from "./ele-arrayCard-icon-CAk9ojr4.js";
34
34
  const W = { class: "mix-body" }, q = {
@@ -1 +1 @@
1
- "use strict";var v=Object.defineProperty,T=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var g=(r,o,e)=>o in r?v(r,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[o]=e,h=(r,o)=>{for(var e in o||(o={}))z.call(o,e)&&g(r,e,o[e]);if(C)for(var e of C(o))V.call(o,e)&&g(r,e,o[e]);return r},_=(r,o)=>T(r,b(o));var A=(r,o,e)=>new Promise((S,f)=>{var d=a=>{try{y(e.next(a))}catch(n){f(n)}},p=a=>{try{y(e.throw(a))}catch(n){f(n)}},y=a=>a.done?S(a.value):Promise.resolve(a.value).then(d,p);y((e=e.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),N=require("./BaseComponent-CIst2h8G.cjs"),B=require("./index-5jeBLy74.cjs"),D=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-arrayCard-icon-QOabvV0y.cjs"),M={class:"mix-body"},I={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"统计",NAME_EN:"Array Card",ORDER:5,PLATFORM:["pc","screen","mobile"]},L={titleColor:"#111",titleSize:14,bgColor:"#fff",textColor:"#111",textSize:48,radiusSize:8,isHideTitle:!0,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},O=[{fv:"",object_id:""}],k=["fv","object_id"],R=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],U=1,F={useAlias:!1,source:"mosaic",multiObject:!1,hideMultiObject:!0},j={DEFAULT:I,OPTIONS:L,DATA:O,PARAMS:k,SOURCE:R,ITEMS:U,COMMON:F},P=t.defineComponent(_(h({},j),{__name:"arrayCard",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const e=r;class S extends N.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",48),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0)}}init(){return A(this,null,function*(){var i;this.Style.value=this.extractStyles(),this.applyTheme(),(i=this.props.conf.data)!=null&&i.length||(this.props.conf.data=O)})}setHistoryData(i){if(!i)return;const{data:l}=this.props.conf;!Array.isArray(l)||!l.length||l.forEach((s,c)=>{try{const u=i[c].data[0];u!=null&&(s.value=u)}catch(u){}})}setSocketData(i){if(!i)return;const{data:l}=this.props.conf;l.forEach(s=>{var c;s.value=(c=this.extractDataValue(i,s.fv))!=null?c:"--"})}}const f=new S(e,"arrayCard");f.setupLifecycle();const d=f.getStyle(),p=e.conf,y=t.computed(()=>D.generateTitleStyle(e.conf.options)),a=n=>{var u;const i=((u=n==null?void 0:n[0])==null?void 0:u.value)||0,l=String(Math.floor(Number(i)||0)),s=[];let c=0;for(;c<l.length;)s.push(l.slice(c,c+3)),c+=3;return s.flatMap((m,x)=>x>0?[",",m]:[m])};return(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(d).bgColor,borderRadius:`${t.unref(d).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(y.value)},t.toDisplayString(t.unref(p).caption||t.unref(p).name),5),t.createElementVNode("div",M,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a(t.unref(p).data),(l,s)=>(t.openBlock(),t.createElementBlock("div",{key:s,class:t.normalizeClass(["digit-item",{separator:l==","}]),style:t.normalizeStyle({fontSize:`${t.unref(d).textSize}px`,color:t.unref(d).textColor})},t.toDisplayString(l),7))),128))]),t.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),q=B._export_sfc(P,[["__scopeId","data-v-890c460f"]]);exports.default=q;
1
+ "use strict";var v=Object.defineProperty,T=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var g=(r,o,e)=>o in r?v(r,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[o]=e,h=(r,o)=>{for(var e in o||(o={}))z.call(o,e)&&g(r,e,o[e]);if(C)for(var e of C(o))V.call(o,e)&&g(r,e,o[e]);return r},_=(r,o)=>T(r,b(o));var A=(r,o,e)=>new Promise((S,f)=>{var d=a=>{try{y(e.next(a))}catch(n){f(n)}},p=a=>{try{y(e.throw(a))}catch(n){f(n)}},y=a=>a.done?S(a.value):Promise.resolve(a.value).then(d,p);y((e=e.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),N=require("./BaseComponent-RkrbGXqw.cjs"),B=require("./index-BtYU0jdF.cjs"),D=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-arrayCard-icon-QOabvV0y.cjs"),M={class:"mix-body"},I={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"统计",NAME_EN:"Array Card",ORDER:5,PLATFORM:["pc","screen","mobile"]},L={titleColor:"#111",titleSize:14,bgColor:"#fff",textColor:"#111",textSize:48,radiusSize:8,isHideTitle:!0,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},O=[{fv:"",object_id:""}],k=["fv","object_id"],R=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],U=1,F={useAlias:!1,source:"mosaic",multiObject:!1,hideMultiObject:!0},j={DEFAULT:I,OPTIONS:L,DATA:O,PARAMS:k,SOURCE:R,ITEMS:U,COMMON:F},P=t.defineComponent(_(h({},j),{__name:"arrayCard",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const e=r;class S extends N.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",48),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0)}}init(){return A(this,null,function*(){var i;this.Style.value=this.extractStyles(),this.applyTheme(),(i=this.props.conf.data)!=null&&i.length||(this.props.conf.data=O)})}setHistoryData(i){if(!i)return;const{data:l}=this.props.conf;!Array.isArray(l)||!l.length||l.forEach((s,c)=>{try{const u=i[c].data[0];u!=null&&(s.value=u)}catch(u){}})}setSocketData(i){if(!i)return;const{data:l}=this.props.conf;l.forEach(s=>{var c;s.value=(c=this.extractDataValue(i,s.fv))!=null?c:"--"})}}const f=new S(e,"arrayCard");f.setupLifecycle();const d=f.getStyle(),p=e.conf,y=t.computed(()=>D.generateTitleStyle(e.conf.options)),a=n=>{var u;const i=((u=n==null?void 0:n[0])==null?void 0:u.value)||0,l=String(Math.floor(Number(i)||0)),s=[];let c=0;for(;c<l.length;)s.push(l.slice(c,c+3)),c+=3;return s.flatMap((m,x)=>x>0?[",",m]:[m])};return(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(d).bgColor,borderRadius:`${t.unref(d).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(y.value)},t.toDisplayString(t.unref(p).caption||t.unref(p).name),5),t.createElementVNode("div",M,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a(t.unref(p).data),(l,s)=>(t.openBlock(),t.createElementBlock("div",{key:s,class:t.normalizeClass(["digit-item",{separator:l==","}]),style:t.normalizeStyle({fontSize:`${t.unref(d).textSize}px`,color:t.unref(d).textColor})},t.toDisplayString(l),7))),128))]),t.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),q=B._export_sfc(P,[["__scopeId","data-v-890c460f"]]);exports.default=q;
@@ -1 +1 @@
1
- "use strict";var q=Object.defineProperty,$=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var L=(n,r,a)=>r in n?q(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a,T=(n,r)=>{for(var a in r||(r={}))z.call(r,a)&&L(n,a,r[a]);if(b)for(var a of b(r))j.call(r,a)&&L(n,a,r[a]);return n},M=(n,r)=>$(n,H(r));var O=(n,r,a)=>new Promise((C,E)=>{var m=s=>{try{u(a.next(s))}catch(h){E(h)}},i=s=>{try{u(a.throw(s))}catch(h){E(h)}},u=s=>s.done?C(s.value):Promise.resolve(s.value).then(m,i);u((a=a.apply(n,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),W=require("./BaseComponent-CIst2h8G.cjs"),g=require("./index-5jeBLy74.cjs"),v=require("element-plus"),x=require("./ele-vdo-icon-Bgp9gaT6.cjs"),Z={class:"mix-body"},G={class:"upload-content"},K={class:"upload-title"},J={key:0,class:"upload-hint"},Q={key:1,class:"upload-formats"},X={key:1,class:"stream-input-area"},Y={class:"stream-content"},ee={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},te={key:0,class:"stream-input-container"},oe=["disabled"],ae={key:1,class:"stream-hint"},le={key:2,class:"stream-hint"},ne={key:2,class:"player-container"},re={key:0,class:"audio-controls"},se={class:"file-info"},ie={class:"file-name"},ce={class:"audio-container"},de=["src","controls","autoplay","loop","muted"],ue={DEFAULT_ICON:x.DEFAULT_ICON,ACTIVE_ICON:x.ACTIVE_ICON,NAME_CN:"音频播放器",NAME_EN:"Audio Player",ORDER:2,PLATFORM:["pc","screen","mobile"]},pe={sourceType:{value:"upload",type:"select",label:"component.audio.sourceType",options:[{label:"component.audio.uploadFile",value:"upload"},{label:"component.audio.audioStream",value:"stream"}]},autoplay:!1,loop:!1,muted:!1,controls:!0,fileUrl:{value:"",type:"string",label:"component.audio.fileUrl",placeholder:"component.audio.uploadPlaceholder"},fileName:{value:"",type:"string",label:"component.audio.fileName",placeholder:"component.audio.uploadPlaceholder"},streamUrl:{value:"",type:"string",label:"component.audio.streamUrl",placeholder:"component.audio.streamPlaceholder"}},me=[],fe=[],ve=[],ye=null,ge={DEFAULT:ue,OPTIONS:pe,DATA:me,PARAMS:fe,SOURCE:ve,COMMON:ye},Ee=e.defineComponent(M(T({},ge),{__name:"audio",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const r=g.useCounterStore(),a=n;class C extends W.BaseComponent{extractStyles(){return{radiusSize:this.getOptionValue("radiusSize",0),autoplay:this.getOptionValue("autoplay",!1),loop:this.getOptionValue("loop",!1),muted:this.getOptionValue("muted",!1),controls:this.getOptionValue("controls",!0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),D()}}const E=new C(a,"audio");E.setupLifecycle();const m=E.getStyle(),i=e.ref(""),u=e.ref(""),s=e.ref(null),h=e.ref(null),w=e.ref(!1),f=e.ref(""),y=e.getCurrentInstance(),V=e.computed(()=>{var o,t,l;return((l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.sourceType)==null?void 0:l.value)||"upload"}),D=()=>{var o,t,l,c,d,N,p;V.value==="upload"&&((l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.fileUrl)!=null&&l.value)&&(i.value=a.conf.options.fileUrl.value,u.value=((c=a.conf.options.fileName)==null?void 0:c.value)||""),V.value==="stream"&&((p=(N=(d=a.conf)==null?void 0:d.options)==null?void 0:N.streamUrl)!=null&&p.value)&&(f.value=a.conf.options.streamUrl.value,k())},R=()=>{var o;(o=s.value)==null||o.click()},S=o=>O(null,null,function*(){var c;const t=o.target.files[0];if(!t)return;if(!t.type.startsWith("audio/")){v.ElMessage.warning("请选择有效的音频文件");return}const l=URL.createObjectURL(t);i.value=l,u.value=t.name;try{w.value=!0;const d=yield g.fileToDataUrl(t),N=g.getFileExtension(t.name),p=yield g.api.post("upload",{dashboard_uid:r.pageData.id,file_data:d,file_type:N},!0);if(p.code===200&&((c=p.result)!=null&&c.relative_path)){const U=g.FILE_URL+p.result.relative_path;URL.revokeObjectURL(l),i.value=U,A("fileUrl",U),A("fileName",p.result.file_name||t.name),v.ElMessage.success("音频上传成功")}else throw new Error(p.msg||"上传失败")}catch(d){console.error("音频上传失败:",d),v.ElMessage.error("音频上传失败: "+(d.message||"未知错误"))}finally{w.value=!1,s.value&&(s.value.value="")}}),k=()=>{if(!f.value.trim()){v.ElMessage.warning("请输入音频流地址");return}const o=f.value.trim();A("streamUrl",o),i.value=o,u.value="音频流",v.ElMessage.success("音频流连接成功")},A=(o,t)=>{var l;(l=a.conf)!=null&&l.options&&(a.conf.options[o]||(a.conf.options[o]={value:"",type:"string",label:""}),a.conf.options[o].value=t)},_=o=>{o.preventDefault(),o.stopPropagation()},B=o=>{var l;o.preventDefault(),o.stopPropagation();const t=(l=o.dataTransfer)==null?void 0:l.files;if(t&&t.length>0){const c=t[0];if(c!=null&&c.type.startsWith("audio/")){const d=new DataTransfer;d.items.add(c),s.value&&(s.value.files=d.files,S({target:s.value}))}else v.ElMessage.warning("请选择有效的音频文件")}},I=()=>{i.value="",u.value="",f.value=""},P=()=>{console.log("Audio metadata loaded")},F=o=>{console.error("Audio error:",o),v.ElMessage.error("音频加载失败,请检查URL或文件")};return e.onMounted(()=>{var o,t;if(a.mode!=="preview"){const l=(t=(o=y==null?void 0:y.proxy)==null?void 0:o.$el)==null?void 0:t.querySelector(".upload-area");l&&(l.addEventListener("dragover",_),l.addEventListener("drop",B))}}),e.onBeforeUnmount(()=>{var t,l;const o=(l=(t=y==null?void 0:y.proxy)==null?void 0:t.$el)==null?void 0:l.querySelector(".upload-area");o&&(o.removeEventListener("dragover",_),o.removeEventListener("drop",B))}),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({borderRadius:`${e.unref(m).radiusSize}px`})},[e.createElementVNode("div",Z,[!i.value&&V.value==="upload"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["upload-area",{"preview-mode":n.mode==="preview"}]),onClick:t[0]||(t[0]=l=>n.mode!=="preview"&&R())},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:s,type:"file",accept:"audio/*",onChange:S,style:{display:"none"}},null,544),e.createElementVNode("div",G,[t[3]||(t[3]=e.createElementVNode("div",{class:"upload-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"32",height:"32",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,3V13.55C11.41,13.21 10.73,13 10,13A3,3 0 0,0 7,16A3,3 0 0,0 10,19A3,3 0 0,0 13,16V7H18V5H12V3Z"})])],-1)),e.createElementVNode("h3",K,e.toDisplayString(n.mode==="preview"?o.$t("component.audio.noFile"):o.$t("component.audio.uploadText")),1),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",J,e.toDisplayString(o.$t("component.audio.uploadHint")),1)):e.createCommentVNode("",!0),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",Q,[...t[2]||(t[2]=[e.createElementVNode("span",{class:"format-tag"},"MP3",-1),e.createElementVNode("span",{class:"format-tag"},"WAV",-1),e.createElementVNode("span",{class:"format-tag"},"OGG",-1),e.createElementVNode("span",{class:"format-tag"},"AAC",-1)])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),!i.value&&V.value==="stream"?(e.openBlock(),e.createElementBlock("div",X,[e.createElementVNode("div",Y,[(e.openBlock(),e.createElementBlock("svg",ee,[...t[4]||(t[4]=[e.createElementVNode("path",{d:"M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z"},null,-1)])])),t[5]||(t[5]=e.createElementVNode("p",{class:"stream-text"},"音频流播放",-1)),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",te,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=l=>f.value=l),type:"text",class:"stream-url-input",placeholder:"请输入音频流地址,如:http://xxx/radio/stream.mp3",onKeyup:e.withKeys(k,["enter"])},null,544),[[e.vModelText,f.value]]),e.createElementVNode("button",{class:"connect-btn",onClick:k,disabled:!f.value.trim()}," 连接 ",8,oe)])):e.createCommentVNode("",!0),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",ae,"支持格式: HTTP音频流")):e.createCommentVNode("",!0),n.mode==="preview"?(e.openBlock(),e.createElementBlock("p",le,"未配置音频流地址")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("div",ne,[n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",re,[e.createElementVNode("div",se,[e.createElementVNode("span",ie,e.toDisplayString(u.value||i.value),1),e.createElementVNode("button",{class:"change-file-btn",onClick:I,title:"更换文件"},[...t[6]||(t[6]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",ce,[e.createElementVNode("audio",{ref_key:"audioRef",ref:h,src:i.value,controls:e.unref(m).controls,autoplay:e.unref(m).autoplay,loop:e.unref(m).loop,muted:e.unref(m).muted,onLoadedmetadata:P,onError:F,class:"audio-element"}," 您的浏览器不支持音频播放 ",40,de)])])):e.createCommentVNode("",!0)]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),he=g._export_sfc(Ee,[["__scopeId","data-v-61cbee67"]]);exports.default=he;
1
+ "use strict";var q=Object.defineProperty,$=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var L=(n,r,a)=>r in n?q(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a,T=(n,r)=>{for(var a in r||(r={}))z.call(r,a)&&L(n,a,r[a]);if(b)for(var a of b(r))j.call(r,a)&&L(n,a,r[a]);return n},M=(n,r)=>$(n,H(r));var O=(n,r,a)=>new Promise((C,E)=>{var m=s=>{try{u(a.next(s))}catch(h){E(h)}},i=s=>{try{u(a.throw(s))}catch(h){E(h)}},u=s=>s.done?C(s.value):Promise.resolve(s.value).then(m,i);u((a=a.apply(n,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),W=require("./BaseComponent-RkrbGXqw.cjs"),g=require("./index-BtYU0jdF.cjs"),v=require("element-plus"),x=require("./ele-vdo-icon-Bgp9gaT6.cjs"),Z={class:"mix-body"},G={class:"upload-content"},K={class:"upload-title"},J={key:0,class:"upload-hint"},Q={key:1,class:"upload-formats"},X={key:1,class:"stream-input-area"},Y={class:"stream-content"},ee={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},te={key:0,class:"stream-input-container"},oe=["disabled"],ae={key:1,class:"stream-hint"},le={key:2,class:"stream-hint"},ne={key:2,class:"player-container"},re={key:0,class:"audio-controls"},se={class:"file-info"},ie={class:"file-name"},ce={class:"audio-container"},de=["src","controls","autoplay","loop","muted"],ue={DEFAULT_ICON:x.DEFAULT_ICON,ACTIVE_ICON:x.ACTIVE_ICON,NAME_CN:"音频播放器",NAME_EN:"Audio Player",ORDER:2,PLATFORM:["pc","screen","mobile"]},pe={sourceType:{value:"upload",type:"select",label:"component.audio.sourceType",options:[{label:"component.audio.uploadFile",value:"upload"},{label:"component.audio.audioStream",value:"stream"}]},autoplay:!1,loop:!1,muted:!1,controls:!0,fileUrl:{value:"",type:"string",label:"component.audio.fileUrl",placeholder:"component.audio.uploadPlaceholder"},fileName:{value:"",type:"string",label:"component.audio.fileName",placeholder:"component.audio.uploadPlaceholder"},streamUrl:{value:"",type:"string",label:"component.audio.streamUrl",placeholder:"component.audio.streamPlaceholder"}},me=[],fe=[],ve=[],ye=null,ge={DEFAULT:ue,OPTIONS:pe,DATA:me,PARAMS:fe,SOURCE:ve,COMMON:ye},Ee=e.defineComponent(M(T({},ge),{__name:"audio",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const r=g.useCounterStore(),a=n;class C extends W.BaseComponent{extractStyles(){return{radiusSize:this.getOptionValue("radiusSize",0),autoplay:this.getOptionValue("autoplay",!1),loop:this.getOptionValue("loop",!1),muted:this.getOptionValue("muted",!1),controls:this.getOptionValue("controls",!0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),D()}}const E=new C(a,"audio");E.setupLifecycle();const m=E.getStyle(),i=e.ref(""),u=e.ref(""),s=e.ref(null),h=e.ref(null),w=e.ref(!1),f=e.ref(""),y=e.getCurrentInstance(),V=e.computed(()=>{var o,t,l;return((l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.sourceType)==null?void 0:l.value)||"upload"}),D=()=>{var o,t,l,c,d,N,p;V.value==="upload"&&((l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.fileUrl)!=null&&l.value)&&(i.value=a.conf.options.fileUrl.value,u.value=((c=a.conf.options.fileName)==null?void 0:c.value)||""),V.value==="stream"&&((p=(N=(d=a.conf)==null?void 0:d.options)==null?void 0:N.streamUrl)!=null&&p.value)&&(f.value=a.conf.options.streamUrl.value,k())},R=()=>{var o;(o=s.value)==null||o.click()},S=o=>O(null,null,function*(){var c;const t=o.target.files[0];if(!t)return;if(!t.type.startsWith("audio/")){v.ElMessage.warning("请选择有效的音频文件");return}const l=URL.createObjectURL(t);i.value=l,u.value=t.name;try{w.value=!0;const d=yield g.fileToDataUrl(t),N=g.getFileExtension(t.name),p=yield g.api.post("upload",{dashboard_uid:r.pageData.id,file_data:d,file_type:N},!0);if(p.code===200&&((c=p.result)!=null&&c.relative_path)){const U=g.FILE_URL+p.result.relative_path;URL.revokeObjectURL(l),i.value=U,A("fileUrl",U),A("fileName",p.result.file_name||t.name),v.ElMessage.success("音频上传成功")}else throw new Error(p.msg||"上传失败")}catch(d){console.error("音频上传失败:",d),v.ElMessage.error("音频上传失败: "+(d.message||"未知错误"))}finally{w.value=!1,s.value&&(s.value.value="")}}),k=()=>{if(!f.value.trim()){v.ElMessage.warning("请输入音频流地址");return}const o=f.value.trim();A("streamUrl",o),i.value=o,u.value="音频流",v.ElMessage.success("音频流连接成功")},A=(o,t)=>{var l;(l=a.conf)!=null&&l.options&&(a.conf.options[o]||(a.conf.options[o]={value:"",type:"string",label:""}),a.conf.options[o].value=t)},_=o=>{o.preventDefault(),o.stopPropagation()},B=o=>{var l;o.preventDefault(),o.stopPropagation();const t=(l=o.dataTransfer)==null?void 0:l.files;if(t&&t.length>0){const c=t[0];if(c!=null&&c.type.startsWith("audio/")){const d=new DataTransfer;d.items.add(c),s.value&&(s.value.files=d.files,S({target:s.value}))}else v.ElMessage.warning("请选择有效的音频文件")}},I=()=>{i.value="",u.value="",f.value=""},P=()=>{console.log("Audio metadata loaded")},F=o=>{console.error("Audio error:",o),v.ElMessage.error("音频加载失败,请检查URL或文件")};return e.onMounted(()=>{var o,t;if(a.mode!=="preview"){const l=(t=(o=y==null?void 0:y.proxy)==null?void 0:o.$el)==null?void 0:t.querySelector(".upload-area");l&&(l.addEventListener("dragover",_),l.addEventListener("drop",B))}}),e.onBeforeUnmount(()=>{var t,l;const o=(l=(t=y==null?void 0:y.proxy)==null?void 0:t.$el)==null?void 0:l.querySelector(".upload-area");o&&(o.removeEventListener("dragover",_),o.removeEventListener("drop",B))}),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({borderRadius:`${e.unref(m).radiusSize}px`})},[e.createElementVNode("div",Z,[!i.value&&V.value==="upload"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["upload-area",{"preview-mode":n.mode==="preview"}]),onClick:t[0]||(t[0]=l=>n.mode!=="preview"&&R())},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:s,type:"file",accept:"audio/*",onChange:S,style:{display:"none"}},null,544),e.createElementVNode("div",G,[t[3]||(t[3]=e.createElementVNode("div",{class:"upload-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"32",height:"32",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,3V13.55C11.41,13.21 10.73,13 10,13A3,3 0 0,0 7,16A3,3 0 0,0 10,19A3,3 0 0,0 13,16V7H18V5H12V3Z"})])],-1)),e.createElementVNode("h3",K,e.toDisplayString(n.mode==="preview"?o.$t("component.audio.noFile"):o.$t("component.audio.uploadText")),1),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",J,e.toDisplayString(o.$t("component.audio.uploadHint")),1)):e.createCommentVNode("",!0),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",Q,[...t[2]||(t[2]=[e.createElementVNode("span",{class:"format-tag"},"MP3",-1),e.createElementVNode("span",{class:"format-tag"},"WAV",-1),e.createElementVNode("span",{class:"format-tag"},"OGG",-1),e.createElementVNode("span",{class:"format-tag"},"AAC",-1)])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),!i.value&&V.value==="stream"?(e.openBlock(),e.createElementBlock("div",X,[e.createElementVNode("div",Y,[(e.openBlock(),e.createElementBlock("svg",ee,[...t[4]||(t[4]=[e.createElementVNode("path",{d:"M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z"},null,-1)])])),t[5]||(t[5]=e.createElementVNode("p",{class:"stream-text"},"音频流播放",-1)),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",te,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=l=>f.value=l),type:"text",class:"stream-url-input",placeholder:"请输入音频流地址,如:http://xxx/radio/stream.mp3",onKeyup:e.withKeys(k,["enter"])},null,544),[[e.vModelText,f.value]]),e.createElementVNode("button",{class:"connect-btn",onClick:k,disabled:!f.value.trim()}," 连接 ",8,oe)])):e.createCommentVNode("",!0),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",ae,"支持格式: HTTP音频流")):e.createCommentVNode("",!0),n.mode==="preview"?(e.openBlock(),e.createElementBlock("p",le,"未配置音频流地址")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("div",ne,[n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",re,[e.createElementVNode("div",se,[e.createElementVNode("span",ie,e.toDisplayString(u.value||i.value),1),e.createElementVNode("button",{class:"change-file-btn",onClick:I,title:"更换文件"},[...t[6]||(t[6]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",ce,[e.createElementVNode("audio",{ref_key:"audioRef",ref:h,src:i.value,controls:e.unref(m).controls,autoplay:e.unref(m).autoplay,loop:e.unref(m).loop,muted:e.unref(m).muted,onLoadedmetadata:P,onError:F,class:"audio-element"}," 您的浏览器不支持音频播放 ",40,de)])])):e.createCommentVNode("",!0)]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),he=g._export_sfc(Ee,[["__scopeId","data-v-61cbee67"]]);exports.default=he;
@@ -27,8 +27,8 @@ var I = (s, n, o) => new Promise((b, w) => {
27
27
  m((o = o.apply(s, n)).next());
28
28
  });
29
29
  import { defineComponent as J, ref as C, getCurrentInstance as Q, computed as X, onMounted as Y, onBeforeUnmount as ee, openBlock as u, createElementBlock as d, normalizeStyle as te, unref as U, createElementVNode as l, normalizeClass as oe, toDisplayString as E, createCommentVNode as f, withDirectives as ae, withKeys as le, vModelText as se, renderSlot as ne } from "vue";
30
- import { B as ie } from "./BaseComponent-CDynr4Wh.js";
31
- import { u as re, h as ue, i as de, a as ce, F as pe, _ as me } from "./index-dAR2gb1S.js";
30
+ import { B as ie } from "./BaseComponent-DjTaS3b5.js";
31
+ import { u as re, h as ue, i as de, a as ce, F as pe, _ as me } from "./index-B2DTHz1b.js";
32
32
  import { ElMessage as g } from "element-plus";
33
33
  import { A as fe, D as ve } from "./ele-vdo-icon-DcWebTR5.js";
34
34
  const ye = { class: "mix-body" }, he = { class: "upload-content" }, ge = { class: "upload-title" }, Ae = {
@@ -1,2 +1,2 @@
1
- "use strict";var V=Object.defineProperty,W=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var U=(p,s,d)=>s in p?V(p,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):p[s]=d,O=(p,s)=>{for(var d in s||(s={}))B.call(s,d)&&U(p,d,s[d]);if(I)for(var d of I(s))R.call(s,d)&&U(p,d,s[d]);return p},_=(p,s)=>W(p,q(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),h=require("./index-5jeBLy74.cjs");require("element-plus");const j=require("./EChartComponentBase-COpfXxIp.cjs"),P=require("./titleStyle-NSnz6cUg.cjs"),D=require("./ele-bar-icon-V94clxg_.cjs"),$=require("./install-DV5cEgNV.cjs"),F=require("./install-CltTFs4e.cjs"),L=require("./installCanvasRenderer-CyhM1Qpl.cjs"),X=require("./install-C8buXQPI.cjs"),M=require("./install-Ch5d8i37.cjs"),H={class:"mix-body"},G=["id"],K={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"基础柱状图",NAME_EN:"Bar Chart",ORDER:1,PLATFORM:["pc","screen","mobile"]},J={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:40,right:20,radiusSize:8,textSize:12,barWidth:30,points:10,isHideTitle:!1,showLabel:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},Q=[{name:"参数一",fv:"",object_id:"",color:"#4162ff",periodUnit:"near-hour",periodValue:1}],Y=["name","fv","object_id","color",{key:"periodUnit",label:"setting.timeUnit",type:"select",options:h.DATE_OPTION},{key:"periodValue",label:"setting.timePeriod",type:"number"}],Z=["mosaic","statistics","calculate"],tt={source:"mosaic",useAlias:!1,multiObject:!1,null:{type:"0",value:""}},et={DEFAULT:K,OPTIONS:J,DATA:Q,PARAMS:Y,SOURCE:Z,COMMON:tt},it=n.defineComponent(_(O({},et),{__name:"bar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){L.use([$.install,F.install,L.install,X.install,L.install$1,M.install]);const s=p,d=h.useLinkStore();class k extends j.EChartComponentBase{extractStyles(){return _(O({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",30),showLabel:this.getOptionValue("showLabel",!1)})}getChartOption(){const t=this.Style.value,e=this.props.conf;return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},textStyle:{align:"left",fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!1},legend:{show:!0,data:e.data.map(o=>o.name),right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},xAxis:[{type:"category",data:this.getXAxisData(),axisTick:{alignWithLabel:!0},axisLine:{lineStyle:{color:t.textColor}},axisLabel:{formatter:o=>{if(!/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(o))return o;const[a,i]=o.split(" ");return`${a}
1
+ "use strict";var V=Object.defineProperty,W=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var U=(p,s,d)=>s in p?V(p,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):p[s]=d,O=(p,s)=>{for(var d in s||(s={}))B.call(s,d)&&U(p,d,s[d]);if(I)for(var d of I(s))R.call(s,d)&&U(p,d,s[d]);return p},_=(p,s)=>W(p,q(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),h=require("./index-BtYU0jdF.cjs");require("element-plus");const j=require("./EChartComponentBase-qlAnyb_l.cjs"),P=require("./titleStyle-NSnz6cUg.cjs"),D=require("./ele-bar-icon-V94clxg_.cjs"),$=require("./install-DV5cEgNV.cjs"),F=require("./install-CltTFs4e.cjs"),L=require("./installCanvasRenderer-CyhM1Qpl.cjs"),X=require("./install-C8buXQPI.cjs"),M=require("./install-Ch5d8i37.cjs"),H={class:"mix-body"},G=["id"],K={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"基础柱状图",NAME_EN:"Bar Chart",ORDER:1,PLATFORM:["pc","screen","mobile"]},J={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:40,right:20,radiusSize:8,textSize:12,barWidth:30,points:10,isHideTitle:!1,showLabel:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},Q=[{name:"参数一",fv:"",object_id:"",color:"#4162ff",periodUnit:"near-hour",periodValue:1}],Y=["name","fv","object_id","color",{key:"periodUnit",label:"setting.timeUnit",type:"select",options:h.DATE_OPTION},{key:"periodValue",label:"setting.timePeriod",type:"number"}],Z=["mosaic","statistics","calculate"],tt={source:"mosaic",useAlias:!1,multiObject:!1,null:{type:"0",value:""}},et={DEFAULT:K,OPTIONS:J,DATA:Q,PARAMS:Y,SOURCE:Z,COMMON:tt},it=n.defineComponent(_(O({},et),{__name:"bar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){L.use([$.install,F.install,L.install,X.install,L.install$1,M.install]);const s=p,d=h.useLinkStore();class k extends j.EChartComponentBase{extractStyles(){return _(O({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",30),showLabel:this.getOptionValue("showLabel",!1)})}getChartOption(){const t=this.Style.value,e=this.props.conf;return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},textStyle:{align:"left",fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!1},legend:{show:!0,data:e.data.map(o=>o.name),right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},xAxis:[{type:"category",data:this.getXAxisData(),axisTick:{alignWithLabel:!0},axisLine:{lineStyle:{color:t.textColor}},axisLabel:{formatter:o=>{if(!/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(o))return o;const[a,i]=o.split(" ");return`${a}
2
2
  ${i}`},color:t.textColor,fontSize:t.textSize}}],yAxis:[{type:"value",nameGap:10,nameTextStyle:{align:"right"},splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}},splitNumber:4}],series:this.formatSeries()}}getFixedStatisticsXLabels(){var i;const{data:t,common:e}=this.props.conf,o=(e==null?void 0:e.source)||"mosaic",a=(i=t[0])==null?void 0:i.periodUnit;return["statistics","calculate"].includes(o)&&a&&!String(a).startsWith("near")?h.getStatisticsTimeUnitLabel(a):null}getXAxisData(){var t;return(t=this.getFixedStatisticsXLabels())!=null?t:this.getTimeAxis()}formatSeries(){const t=this.props.conf,e=this.Style.value,o=this.getFixedStatisticsXLabels(),a=o?o.length:e.points;return t.data.map((i,c)=>{const r=i.color||h.COLORS[c];return{type:"bar",data:h.getRandomArr({num:a,max:200,min:0,mode:this.props.mode,hasDataSource:this.hasData()}),name:i.name,itemStyle:{color:r},label:{show:e.showLabel,position:"top",color:e.textColor},barWidth:e.barWidth+"%"}})}setSocketData(t){var x;if(!this.hasData()||!this.chartObj||!t)return;const{data:e,common:o}=this.props.conf,a=o.source||"mosaic",i=this.chartObj.getOption(),c=(x=e[0])==null?void 0:x.periodUnit,r=["statistics","calculate"].includes(a)&&c&&!String(c).startsWith("near");if(e.forEach((u,S)=>{const b=this.extractDataValue(t,u.fv);if(["statistics","calculate"].includes(a)&&u.periodUnit&&!String(u.periodUnit).startsWith("near")&&!String(u.periodUnit).startsWith("last")){const g=h.statisticsSocketTimeToXAxisLabel(t.start_time,u.periodUnit),A=g?i.xAxis[0].data.indexOf(g):-1;A>=0&&(i.series[S].data[A]=b);return}const C=["statistics","calculate"].includes(a)?t.start_time:t.datetime;C!=null&&(S===0&&i.xAxis[0].data.push(C),i.series[S].data.push(b))}),r){this.updateChart(i);return}const l=h.addRealtimeData(i.xAxis[0].data,i.series.map(u=>u.data)),f=Number(this.Style.value.points)||10;i.xAxis[0].data=l.times.slice(-f),i.series.forEach((u,S)=>{var b;u.data=((b=l.data[S])==null?void 0:b.slice(-f))||[]}),this.updateChart(i)}setHistoryData(t){if(!t||!(t!=null&&t.length))return;const e=this.chartObj.getOption(),o=Number(this.Style.value.points)||10,{data:a}=this.props.conf,i=r=>{if(r==null||r===""||r==="-")return null;const l=Number(r);return Number.isFinite(l)?l:null},c=this.getFixedStatisticsXLabels();if(c!=null&&c.length){e.xAxis[0].data=[...c],t.forEach((r,l)=>{var C;if(!e.series[l])return;const f=a[l],x=(f==null?void 0:f.periodUnit)||((C=a[0])==null?void 0:C.periodUnit),u=new Array(c.length).fill(null),S=r.time||[],b=r.data||[];for(let g=0;g<S.length;g++){const A=h.statisticsSocketTimeToXAxisLabel(S[g],String(x||"")),v=A?c.indexOf(A):-1;v>=0&&(u[v]=i(b[g]))}e.series[l].data=u}),this.updateChart(e);return}e.xAxis[0].data=t[0].time.slice(-o),t.forEach((r,l)=>{if(!e.series[l])return;const f=r.data||[];e.series[l].data=f.map(i).slice(-o)}),this.updateChart(e)}}const m=new k(s,"bar");m.setupLifecycle();const E=h.useCounterStore();n.onMounted(()=>{var y;if(E.registerInstance(s.uid,m),s.mode==="preview"){const t=((y=m.getChartInstance)==null?void 0:y.call(m))||m.chartObj;t==null||t.off("click"),t==null||t.on("click",e=>{var a,i,c,r,l,f;const o=e==null?void 0:e.seriesName;if(typeof o=="string"&&o){const x=((i=(a=s.conf)==null?void 0:a.options)==null?void 0:i.linkChannel)==="custom"?(r=(c=s.conf)==null?void 0:c.options)==null?void 0:r.customChannel:(f=(l=s.conf)==null?void 0:l.options)==null?void 0:f.linkChannel;d.publish(x||"bar","bar",{objectId:"",deviceId:"",type:"select",fieldKey:o,fv:O({key:o},e),source:"bar"})}})}}),n.onUnmounted(()=>{E.unregisterInstance(s.uid)});const T=m.getStyle(),z=m.getEchartId(),N=s.conf,w=n.computed(()=>P.generateTitleStyle(s.conf.options));return(y,t)=>(n.openBlock(),n.createElementBlock("div",{class:"mix-component",style:n.normalizeStyle({background:n.unref(T).bgColor,borderRadius:`${n.unref(T).radiusSize}px`})},[n.createElementVNode("div",{class:"mix-title",style:n.normalizeStyle(w.value)},n.toDisplayString(n.unref(N).caption||n.unref(N).name),5),n.createElementVNode("div",H,[n.createElementVNode("div",{class:"w-full h-full",id:n.unref(z)},null,8,G)]),n.renderSlot(y.$slots,"default",{},void 0,!0)],4))}})),st=h._export_sfc(it,[["__scopeId","data-v-3b5f11b6"]]);exports.default=st;
@@ -11,9 +11,9 @@ var N = (u, s, c) => s in u ? W(u, s, { enumerable: !0, configurable: !0, writab
11
11
  return u;
12
12
  }, O = (u, s) => R(u, $(s));
13
13
  import { defineComponent as P, onMounted as V, onUnmounted as F, computed as X, openBlock as M, createElementBlock as H, normalizeStyle as k, unref as C, createElementVNode as _, toDisplayString as G, renderSlot as K } from "vue";
14
- import { D as q, l as J, u as Q, m as Y, C as Z, n as tt, s as v, o as et, _ as it } from "./index-dAR2gb1S.js";
14
+ import { D as q, l as J, u as Q, m as Y, C as Z, n as tt, s as v, o as et, _ as it } from "./index-B2DTHz1b.js";
15
15
  import "element-plus";
16
- import { E as st } from "./EChartComponentBase-vS3I7IAs.js";
16
+ import { E as st } from "./EChartComponentBase-CJ2oE_sT.js";
17
17
  import { g as ot } from "./titleStyle-BT5GlpAb.js";
18
18
  import { A as at, D as nt } from "./ele-bar-icon-C-GiCs2a.js";
19
19
  import { i as rt } from "./install-DdM8j5Ll.js";
@@ -0,0 +1 @@
1
+ "use strict";var R=Object.defineProperty,A=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var _=(i,l,n)=>l in i?R(i,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[l]=n,E=(i,l)=>{for(var n in l||(l={}))P.call(l,n)&&_(i,n,l[n]);if(C)for(var n of C(l))W.call(l,n)&&_(i,n,l[n]);return i},T=(i,l)=>A(i,V(l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),U=require("./useApi-DCywyCly-CRhRQNx-.cjs");require("html2canvas");const F=require("./BaseComponent-RkrbGXqw.cjs"),a=require("./index-BtYU0jdF.cjs"),q="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1'%20y='1'%20width='6'%20height='14'%20rx='1'%20fill='%23333'/%3e%3crect%20x='9'%20y='3'%20width='6'%20height='4'%20rx='0.5'%20fill='none'%20stroke='%23333'%20stroke-width='1.2'/%3e%3ccircle%20cx='12'%20cy='11'%20r='2.5'%20fill='none'%20stroke='%23333'%20stroke-width='1.2'/%3e%3cpath%20d='M9%2011%20H15'%20stroke='%23333'%20stroke-width='1.2'%20stroke-linecap='round'/%3e%3c/svg%3e",H="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1'%20y='1'%20width='6'%20height='14'%20rx='1'%20fill='%23409eff'/%3e%3crect%20x='9'%20y='3'%20width='6'%20height='4'%20rx='0.5'%20fill='none'%20stroke='%23409eff'%20stroke-width='1.2'/%3e%3ccircle%20cx='12'%20cy='11'%20r='2.5'%20fill='none'%20stroke='%23409eff'%20stroke-width='1.2'/%3e%3cpath%20d='M9%2011%20H15'%20stroke='%23409eff'%20stroke-width='1.2'%20stroke-linecap='round'/%3e%3c/svg%3e",j={key:0,class:"basic-shape-toolbox mix-component"},$={class:"toolbox-header toolbox-drag-handle",title:"按住此处可拖动工具箱"},z={key:0,class:"toolbox-active"},G=["title","onClick"],Z={key:0,class:"toolbox-tip"},J={key:1,class:"toolbox-tip"},K={class:"toolbox-meta"},Q={key:1,class:"basic-shape-toolbox-preview","aria-hidden":"true"},X={DEFAULT_ICON:q,ACTIVE_ICON:H,NAME_CN:"基本图元工具箱",NAME_EN:"Basic Shape Toolbox",ORDER:3,PLATFORM:["pc","screen","mobile"]},Y={w:8,h:18},ee={strokeColor:{value:"#409eff",type:"color",label:"描边颜色"},fillColor:{value:"rgba(64,158,255,0.15)",type:"color",label:"填充颜色"},strokeWidth:{value:2,type:"number",label:"线宽",min:1,max:20},cornerRadius:{value:8,type:"number",label:"圆角",min:0,max:40}},te={},oe={DEFAULT:X,OPTIONS:ee,SOURCE:[],COMMON:{},CUSTOMIZED:te,INIT_GRID:Y},le=e.defineComponent(T(E({},oe),{__name:"basicShapeToolbox",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(i){const l=i;class n extends F.BaseComponent{extractStyles(){var s,d,p,y,g,S,w,x;const{options:t}=this.props.conf;return{strokeColor:(d=(s=t==null?void 0:t.strokeColor)==null?void 0:s.value)!=null?d:"#409eff",fillColor:(y=(p=t==null?void 0:t.fillColor)==null?void 0:p.value)!=null?y:"rgba(64,158,255,0.15)",strokeWidth:(S=(g=t==null?void 0:t.strokeWidth)==null?void 0:g.value)!=null?S:2,cornerRadius:(x=(w=t==null?void 0:t.cornerRadius)==null?void 0:w.value)!=null?x:8}}}const v=new n(l,"basicShapeToolbox");v.setupLifecycle();const r=v.getStyle(),B=a.useTabsStore(),D=U.useRoute(),b=a.useCounterStore(),h=e.computed(()=>{var t,s,d;const o=(s=(t=b.pageData)==null?void 0:t.sheets)==null?void 0:s[b.currentPage];return(d=o==null?void 0:o.layers)!=null&&d.length?o.layers.find(p=>p.id===o.activeLayerId)||o.layers[0]:null}),f=()=>{const o=D.params.id;o&&B.markTabDirty(String(o))},u=a.basicShapeDrawing.state,c=e.computed(()=>{var o;return a.shapeDrawingActive.value&&u.toolboxId===((o=l.conf)==null?void 0:o.id)?u.tool:null}),m=e.computed(()=>{var o;return c.value&&((o=a.BASIC_SHAPE_TOOL_LIST.find(t=>t.type===c.value))==null?void 0:o.label)||""}),N=e.computed(()=>a.getLayerBasicShapes(h.value).length),k=()=>{a.basicShapeDrawing.setStyle({stroke:r.value.strokeColor,fill:r.value.fillColor,strokeWidth:r.value.strokeWidth,cornerRadius:r.value.cornerRadius})},I=o=>{if(l.mode==="edit"){if(k(),c.value===o){a.basicShapeDrawing.deactivate();return}a.basicShapeDrawing.activate(l.conf.id,o,{stroke:r.value.strokeColor,fill:r.value.fillColor,strokeWidth:r.value.strokeWidth,cornerRadius:r.value.cornerRadius})}},O=()=>{a.basicShapeDrawing.deactivate()},L=()=>{if(c.value!=="polyline")return;const o=h.value;if(!o)return;const t=a.basicShapeDrawing.finishDraw();t&&(a.appendShapeToLayer(o,t),a.basicShapeDrawing.deactivate(),a.basicShapeDrawing.selectShape(o.id,t.id),f())},M=()=>{a.clearLayerBasicShapes(h.value),a.basicShapeDrawing.clearShapeSelection(),f()};return e.watch(()=>[r.value.strokeColor,r.value.fillColor,r.value.strokeWidth,r.value.cornerRadius],()=>{var o;u.toolboxId===((o=l.conf)==null?void 0:o.id)&&k()}),e.onBeforeUnmount(()=>{var o;u.toolboxId===((o=l.conf)==null?void 0:o.id)&&a.basicShapeDrawing.deactivate()}),(o,t)=>i.mode==="edit"?(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",$,[t[4]||(t[4]=e.createElementVNode("span",{class:"toolbox-title"},"基本图元",-1)),m.value?(e.openBlock(),e.createElementBlock("span",z,e.toDisplayString(m.value),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"toolbox-tools",onMousedown:t[0]||(t[0]=e.withModifiers(()=>{},["stop"])),onPointerdown:t[1]||(t[1]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a.BASIC_SHAPE_TOOL_LIST),s=>(e.openBlock(),e.createElementBlock("button",{key:s.type,type:"button",class:e.normalizeClass(["tool-btn",{"is-active":c.value===s.type}]),title:s.label,onClick:d=>I(s.type)},e.toDisplayString(s.label),11,G))),128))],32),c.value==="polyline"?(e.openBlock(),e.createElementBlock("div",Z,"单击添加节点,双击结束折线")):c.value?(e.openBlock(),e.createElementBlock("div",J,"在画布上拖拽绘制")):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"toolbox-actions",onMousedown:t[2]||(t[2]=e.withModifiers(()=>{},["stop"])),onPointerdown:t[3]||(t[3]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("button",{type:"button",class:"action-btn",onClick:L},"完成折线"),e.createElementVNode("button",{type:"button",class:"action-btn",onClick:M},"清空图层图元"),e.createElementVNode("button",{type:"button",class:"action-btn",onClick:O},"退出绘制")],32),e.createElementVNode("div",K,"当前图层已绘制 "+e.toDisplayString(N.value)+" 个",1),e.renderSlot(o.$slots,"default",{},void 0,!0)])):(e.openBlock(),e.createElementBlock("div",Q))}})),ae=a._export_sfc(le,[["__scopeId","data-v-7fa10f23"]]);exports.default=ae;
@@ -11,10 +11,10 @@ var D = (s, o, l) => o in s ? V(s, o, { enumerable: !0, configurable: !0, writab
11
11
  return s;
12
12
  }, B = (s, o) => $(s, j(o));
13
13
  import { defineComponent as Q, computed as h, watch as Z, onBeforeUnmount as q, openBlock as d, createElementBlock as u, createElementVNode as n, toDisplayString as m, createCommentVNode as E, withModifiers as b, Fragment as J, renderList as K, unref as X, normalizeClass as Y, renderSlot as ee } from "vue";
14
- import { u as te } from "./vue-router-ha66t1D5.js";
14
+ import { u as te } from "./useApi-DCywyCly-ha66t1D5.js";
15
15
  import "html2canvas";
16
- import { B as oe } from "./BaseComponent-CDynr4Wh.js";
17
- import { O as se, u as le, P as i, Q as ae, R as M, S as re, T as ie, U as ne, _ as ce } from "./index-dAR2gb1S.js";
16
+ import { B as oe } from "./BaseComponent-DjTaS3b5.js";
17
+ import { O as se, u as le, P as i, Q as ae, R as M, S as re, T as ie, U as ne, _ as ce } from "./index-B2DTHz1b.js";
18
18
  const de = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1'%20y='1'%20width='6'%20height='14'%20rx='1'%20fill='%23333'/%3e%3crect%20x='9'%20y='3'%20width='6'%20height='4'%20rx='0.5'%20fill='none'%20stroke='%23333'%20stroke-width='1.2'/%3e%3ccircle%20cx='12'%20cy='11'%20r='2.5'%20fill='none'%20stroke='%23333'%20stroke-width='1.2'/%3e%3cpath%20d='M9%2011%20H15'%20stroke='%23333'%20stroke-width='1.2'%20stroke-linecap='round'/%3e%3c/svg%3e", ue = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1'%20y='1'%20width='6'%20height='14'%20rx='1'%20fill='%23409eff'/%3e%3crect%20x='9'%20y='3'%20width='6'%20height='4'%20rx='0.5'%20fill='none'%20stroke='%23409eff'%20stroke-width='1.2'/%3e%3ccircle%20cx='12'%20cy='11'%20r='2.5'%20fill='none'%20stroke='%23409eff'%20stroke-width='1.2'/%3e%3cpath%20d='M9%2011%20H15'%20stroke='%23409eff'%20stroke-width='1.2'%20stroke-linecap='round'/%3e%3c/svg%3e", ve = {
19
19
  key: 0,
20
20
  class: "basic-shape-toolbox mix-component"
@@ -30,8 +30,8 @@ import { ElIcon as St } from "element-plus/es";
30
30
  import "element-plus/es/components/base/style/css";
31
31
  import "element-plus/es/components/icon/style/css";
32
32
  import { openBlock as D, createElementBlock as I, normalizeStyle as K, normalizeClass as Ot, createCommentVNode as $, renderSlot as q, defineComponent as Pt, getCurrentInstance as zt, computed as dt, reactive as Tt, ref as G, unref as L, createElementVNode as E, toDisplayString as N, createVNode as Q, withCtx as U, Fragment as Et, renderList as At, createBlock as Dt, withModifiers as It } from "vue";
33
- import { B as Nt } from "./BaseComponent-CDynr4Wh.js";
34
- import { a as pt, _ as Rt } from "./index-dAR2gb1S.js";
33
+ import { B as Nt } from "./BaseComponent-DjTaS3b5.js";
34
+ import { a as pt, _ as Rt } from "./index-B2DTHz1b.js";
35
35
  import { g as Zt } from "./titleStyle-BT5GlpAb.js";
36
36
  import { Close as jt } from "@element-plus/icons-vue";
37
37
  import { A as Lt, D as Ft } from "./ele-bmp-icon-Pdolk1J5.js";