mixdashboards 1.0.97 → 1.1.1

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 (383) hide show
  1. package/dist/{AgActionsRenderer.vue_vue_type_script_setup_true_lang-Cojc_jSG.cjs → AgActionsRenderer.vue_vue_type_script_setup_true_lang-BJJSNXwf.cjs} +1 -1
  2. package/dist/{syncMixiotListConfig-Cpgnkkws.cjs → AgGridTable-BVwklUqP.cjs} +62 -62
  3. package/dist/{syncMixiotListConfig-CD0wWvPU.js → AgGridTable-D877OEHc.js} +3830 -4056
  4. package/dist/{BaseComponent-D7kfvQid.js → BaseComponent-CcjKs8HB.js} +3 -3
  5. package/dist/{BaseComponent-C42zZPAg.cjs → BaseComponent-pJuOPMpe.cjs} +1 -1
  6. package/dist/{EChartComponentBase-CrdwK43r.js → EChartComponentBase-CtsX7pXX.js} +2 -2
  7. package/dist/{EChartComponentBase-pfIekVB2.cjs → EChartComponentBase-DaRmtdOH.cjs} +1 -1
  8. package/dist/{EmergencyPlanPanel-CjLGAAbP.cjs → EmergencyPlanPanel-95xr02ZT.cjs} +1 -1
  9. package/dist/{EmergencyPlanPanel-CS1QmwbK.js → EmergencyPlanPanel-CUIfbnAe.js} +1 -1
  10. package/dist/{HistoryPlanDialog-B1wtkugg.js → HistoryPlanDialog-DazlekGr.js} +1 -1
  11. package/dist/{HistoryPlanDialog-jhNV_Oqc.cjs → HistoryPlanDialog-DpisKLEC.cjs} +4 -4
  12. package/dist/{MixiotAppDetailPage-BiZoXtfI.js → MixiotAppDetailPage-BIlpmNTs.js} +1 -1
  13. package/dist/{MixiotAppDetailPage-CrJRBNfc.cjs → MixiotAppDetailPage-D0koK4Me.cjs} +1 -1
  14. package/dist/{MonitoringMap-Dzb6SdgR.js → MonitoringMap-D6R0DCiF.js} +2 -2
  15. package/dist/{MonitoringMap-Btz8PiVj.cjs → MonitoringMap-FeiIkrqy.cjs} +4 -4
  16. package/dist/{UniverSheet-DuL-rk5s.js → UniverSheet-D5U__6X4.js} +2 -2
  17. package/dist/{UniverSheet-DHfcCwtp.cjs → UniverSheet-DkanoirD.cjs} +1 -1
  18. package/dist/{accelerationChart-DrJ_eq7I.cjs → accelerationChart-BJE6NpEl.cjs} +2 -2
  19. package/dist/{accelerationChart-B04m3kGz.js → accelerationChart-CYo1ZBy0.js} +2 -2
  20. package/dist/{actionItem-Zm6EHUHY.cjs → actionItem-DRhEbuHQ.cjs} +1 -1
  21. package/dist/{actionItem-e-PLFmgU.js → actionItem-Y19Vb6-x.js} +2 -2
  22. package/dist/{alarmLevelChart-DdgByLdg.js → alarmLevelChart-YZgkOhsr.js} +2 -2
  23. package/dist/{alarmLevelChart-Vu7rFfmM.cjs → alarmLevelChart-dKQjcaue.cjs} +2 -2
  24. package/dist/{alertTable-C5z7ILNj.js → alertTable-DQx-x4if.js} +2 -2
  25. package/dist/{alertTable-C4NnDMYg.cjs → alertTable-Dee2L3kq.cjs} +1 -1
  26. package/dist/{aliasObjectSelectorDemo-C1vc4Qe6.js → aliasObjectSelectorDemo-Dbn3Gx3H.js} +1 -1
  27. package/dist/{aliasObjectSelectorDemo-BoN6KxiC.cjs → aliasObjectSelectorDemo-eAGwu_FB.cjs} +1 -1
  28. package/dist/{annualRainfallChart-BdFRM0vA.cjs → annualRainfallChart-Ds98MjCF.cjs} +1 -1
  29. package/dist/{annualRainfallChart-Cte3Faau.js → annualRainfallChart-gU2cnQ0f.js} +2 -2
  30. package/dist/{aqi-BixnVgn2.js → aqi-BVMH-vDD.js} +9 -9
  31. package/dist/{aqi-Cgb3Vwad.cjs → aqi-WemZK1fS.cjs} +1 -1
  32. package/dist/{aqiIndass-Cs9Ihmtw.cjs → aqiIndass-DT7oko1z.cjs} +3 -3
  33. package/dist/{aqiIndass-DgtV1bOL.js → aqiIndass-DpJv1ujV.js} +15 -15
  34. package/dist/{areaDeformCurve-DUTOFO7B.cjs → areaDeformCurve-C_JDnk5U.cjs} +1 -1
  35. package/dist/{areaDeformCurve-tiJ0tblV.js → areaDeformCurve-DA5m33Qe.js} +2 -2
  36. package/dist/{arrayCard-BhMc72ZG.js → arrayCard-BAj1HMb1.js} +2 -2
  37. package/dist/{arrayCard-DkZVKQGQ.cjs → arrayCard-U9uflAaM.cjs} +1 -1
  38. package/dist/{audio-DGJ648Nc.js → audio-BIAfv80w.js} +2 -2
  39. package/dist/{audio-O6bMgHJQ.cjs → audio-Ci1MENZ9.cjs} +1 -1
  40. package/dist/{bar-D1DpfKwR.cjs → bar-63eZwmdm.cjs} +2 -2
  41. package/dist/{bar-CEUnNrnA.js → bar-BMOonZtq.js} +2 -2
  42. package/dist/{basicShapeToolbox-COWozQbc.cjs → basicShapeToolbox-BpbW2aBT.cjs} +1 -1
  43. package/dist/{basicShapeToolbox-DuNotFN_.js → basicShapeToolbox-Ng_h8zzH.js} +3 -3
  44. package/dist/{bmp-BdA3u_nP.cjs → bmp-DIP5f39Z.cjs} +1 -1
  45. package/dist/{bmp-D_qPtSuK.js → bmp-v736xGeK.js} +2 -2
  46. package/dist/{box-Bny02hiJ.js → box-BkGfEC0X.js} +2 -2
  47. package/dist/{box-DDZH_UNM.cjs → box-C5_VWn7X.cjs} +1 -1
  48. package/dist/{chartConfigPanel-DvzAeXQE.js → chartConfigPanel-BAkMSj-0.js} +1 -1
  49. package/dist/{chartConfigPanel-B9S6EiKT.cjs → chartConfigPanel-vehnY_WD.cjs} +1 -1
  50. package/dist/{circleBar-C-p-P2K3.cjs → circleBar-Bxao7tDI.cjs} +1 -1
  51. package/dist/{circleBar-ISuDghgH.js → circleBar-DqawPufo.js} +8 -8
  52. package/dist/{clock-o-g0Qpa7.js → clock-CWLDbQAA.js} +2 -2
  53. package/dist/{clock-BAZ7gHGS.cjs → clock-CqRm1Yzn.cjs} +1 -1
  54. package/dist/{clt-DPq4dqmh.cjs → clt-4YC18ze4.cjs} +1 -1
  55. package/dist/{clt-CVEtdnpX.js → clt-Dn_j2lvz.js} +2 -2
  56. package/dist/{cmc-4m3QyBlX.js → cmc-CrFJgHLK.js} +2 -2
  57. package/dist/{cmc-B-wg04Ri.cjs → cmc-Dy15A8-6.cjs} +1 -1
  58. package/dist/{cmp-W-8LSAIe.cjs → cmp-D5NhzRqh.cjs} +2 -2
  59. package/dist/{cmp-DD8sRmv_.js → cmp-DZxuKdq2.js} +11 -11
  60. package/dist/{conclusionCard-BrrCOKf2.cjs → conclusionCard-D-C7RC-p.cjs} +1 -1
  61. package/dist/{conclusionCard-mbP-mRcJ.js → conclusionCard-DmT3Pwz_.js} +2 -2
  62. package/dist/controlList-B5FeDkJW.cjs +1 -0
  63. package/dist/{controlList-BrZys8D6.js → controlList-LTC5iXGG.js} +88 -87
  64. package/dist/{controlRecordList-BfQU3BYg.js → controlRecordList-CSuUh3s0.js} +36 -35
  65. package/dist/controlRecordList-zcHQYb_P.cjs +1 -0
  66. package/dist/{controlRecordListAPP-DbSRJUMy.cjs → controlRecordListAPP-BXpLbhUo.cjs} +1 -1
  67. package/dist/{controlRecordListAPP-CV33yLCF.js → controlRecordListAPP-vYhN4bB5.js} +2 -2
  68. package/dist/{crd-D8-JrYYm.cjs → crd-DgEDfJ95.cjs} +1 -1
  69. package/dist/{crd-DpjRg2wi.js → crd-uo-NhVpW.js} +2 -2
  70. package/dist/{ctrBtn-DVnTSpMy.js → ctrBtn-BSn2FSAF.js} +3 -3
  71. package/dist/{ctrBtn-CKhVuncE.cjs → ctrBtn-D-twtrqf.cjs} +1 -1
  72. package/dist/{ctrSet-DgMrl4yM.js → ctrSet-BFeYAtIw.js} +3 -3
  73. package/dist/{ctrSet-D3HJgviN.cjs → ctrSet-CTyy7KGw.cjs} +1 -1
  74. package/dist/{ctrSwitch-CLQPCuk8.cjs → ctrSwitch-Bn-XG-BL.cjs} +1 -1
  75. package/dist/{ctrSwitch-CabBqoqJ.js → ctrSwitch-BujeiXLV.js} +3 -3
  76. package/dist/{dataManagement-DiJg7jlN.js → dataManagement-B4SdQ9nR.js} +2 -2
  77. package/dist/{dataManagement-CmBsCjjz.cjs → dataManagement-BoYxdGY8.cjs} +1 -1
  78. package/dist/{dataReport-BRKlDrnT.js → dataReport-CBzD4yzX.js} +2 -2
  79. package/dist/{dataReport-C58Z1WyN.cjs → dataReport-DeafEOqQ.cjs} +2 -2
  80. package/dist/{dataTable-n4TQYX4v.cjs → dataTable-5_OavfVE.cjs} +1 -1
  81. package/dist/{dataTable-D9pJzwtQ.js → dataTable-BAC5DHBs.js} +1 -1
  82. package/dist/{datetime-B-KYzzjs.js → datetime-BkM3rL3S.js} +2 -2
  83. package/dist/{datetime-Cp-aTjx9.cjs → datetime-DYWvdieJ.cjs} +1 -1
  84. package/dist/{deepClusterSlipSurface-Cb6AKo_u.js → deepClusterSlipSurface-CNGoBLOX.js} +5 -5
  85. package/dist/{deepClusterSlipSurface-Cs4au-D7.cjs → deepClusterSlipSurface-DLS5hKTy.cjs} +1 -1
  86. package/dist/{deepDataMatrix-edH7pl5I.cjs → deepDataMatrix-DEL0R84O.cjs} +1 -1
  87. package/dist/{deepDataMatrix-D18UbgVg.js → deepDataMatrix-xd5kD-2g.js} +2 -2
  88. package/dist/{deepDisplacement3D-CjUFL7gl.cjs → deepDisplacement3D-Civ_9-xA.cjs} +1 -1
  89. package/dist/{deepDisplacement3D-C_ezOVqs.js → deepDisplacement3D-DC_FvCjr.js} +2 -2
  90. package/dist/{deepDisplacementChart-BNVKT9M5.js → deepDisplacementChart-BnN8998o.js} +3 -3
  91. package/dist/{deepDisplacementChart-DlFZBsHh.js → deepDisplacementChart-CGSoihzo.js} +2 -2
  92. package/dist/{deepDisplacementChart-COdOOjQT.cjs → deepDisplacementChart-C_f1KyhJ.cjs} +2 -2
  93. package/dist/{deepDisplacementChart-Tfqj9khW.cjs → deepDisplacementChart-DvN1rcsW.cjs} +1 -1
  94. package/dist/{deepDisplacementView-C5dr_KFf.cjs → deepDisplacementView-BWHp12YG.cjs} +2 -2
  95. package/dist/{deepDisplacementView-BcYMcimK.js → deepDisplacementView-CuPtt2fz.js} +1 -1
  96. package/dist/{deepNodeTemperatureChart-CyjWwmRb.cjs → deepNodeTemperatureChart-Bhmiv4-B.cjs} +1 -1
  97. package/dist/{deepNodeTemperatureChart-DZLc9z6n.js → deepNodeTemperatureChart-DFTIDucL.js} +5 -5
  98. package/dist/{deepTangentAngleChart-DsyFhBgJ.js → deepTangentAngleChart-D9gSED5y.js} +6 -6
  99. package/dist/{deepTangentAngleChart-a41v2DRO.cjs → deepTangentAngleChart-rkTpBAAK.cjs} +1 -1
  100. package/dist/{deepTemperatureField-CTtxBHkt.js → deepTemperatureField-BCFZ_cni.js} +7 -7
  101. package/dist/{deepTemperatureField-BKwbER4Z.cjs → deepTemperatureField-BcgH7b5V.cjs} +1 -1
  102. package/dist/{deepTrendChart-B7T-ykiy.cjs → deepTrendChart-B3ri4lDi.cjs} +1 -1
  103. package/dist/{deepTrendChart-DCJmZ38j.js → deepTrendChart-CG1R9QY2.js} +5 -5
  104. package/dist/{deviceOnlineStatus-vvs3IjoT.js → deviceOnlineStatus-BC5hzamT.js} +2 -2
  105. package/dist/{deviceOnlineStatus-DJLS5d8V.cjs → deviceOnlineStatus-BN35-sd0.cjs} +2 -2
  106. package/dist/{deviceStatus-8Y7fqV7j.js → deviceStatus-B8FDiFyP.js} +2 -2
  107. package/dist/{deviceStatus-fsvw50YY.cjs → deviceStatus-ngb4zOxm.cjs} +1 -1
  108. package/dist/{displacementDataTable-CAj6C6ug.cjs → displacementDataTable-A1oX4BAv.cjs} +1 -1
  109. package/dist/{displacementDataTable-zCrCdDAk.js → displacementDataTable-NUYXC9FY.js} +2 -2
  110. package/dist/{displacementTrajectoryChart-iL4iRKZ2.js → displacementTrajectoryChart-BylRsIdY.js} +2 -2
  111. package/dist/{displacementTrajectoryChart-BArbCJTS.cjs → displacementTrajectoryChart-I9BFKuBz.cjs} +4 -4
  112. package/dist/{displacementTrendChart-B_5KOzmg.cjs → displacementTrendChart-BmDclWgR.cjs} +2 -2
  113. package/dist/{displacementTrendChart-jI9s1jqc.js → displacementTrendChart-DPP5BEgu.js} +2 -2
  114. package/dist/{dxf-EOLYvUtK.cjs → dxf-JfxTKuCC.cjs} +1 -1
  115. package/dist/{dxf-Wr__XlMC.js → dxf-W7WlqYfs.js} +2 -2
  116. package/dist/{dzc-D8XN73z2.cjs → dzc-BjqczvL_.cjs} +1 -1
  117. package/dist/{dzc-BWDvHjPU.js → dzc-WD2VUwy3.js} +12 -12
  118. package/dist/{emergencyPlan-DVQEu9zg.js → emergencyPlan-C-X15SP3.js} +3 -3
  119. package/dist/{emergencyPlan-CI9EkZfn.cjs → emergencyPlan-ChZeqpwb.cjs} +1 -1
  120. package/dist/{evn-CkEHDEjn.js → evn-ChitBoCQ.js} +2 -2
  121. package/dist/{evn-2U-jKoDM.cjs → evn-DjBSvXJ8.cjs} +1 -1
  122. package/dist/{evolutionChart-DxkVM36e.cjs → evolutionChart-B6kVUFjO.cjs} +1 -1
  123. package/dist/{evolutionChart-DAh8Gy4-.js → evolutionChart-CcW72m5e.js} +3 -3
  124. package/dist/{fileViewer-CR0Ldpe9.js → fileViewer-B31rnhby.js} +2 -2
  125. package/dist/{fileViewer-C8XZYud4.cjs → fileViewer-PT8NhrpV.cjs} +1 -1
  126. package/dist/{filterBar-DWLGgMzl.js → filterBar-DBKmjvIZ.js} +2 -2
  127. package/dist/{filterBar-CVm0E6_U.cjs → filterBar-W7DA0PVb.cjs} +1 -1
  128. package/dist/{fireCombustionCurve-yQMkVsEM.cjs → fireCombustionCurve-CyrUSG61.cjs} +1 -1
  129. package/dist/{fireCombustionCurve-w50Ad5Qz.js → fireCombustionCurve-DM3VV4HF.js} +3 -3
  130. package/dist/{fireFilterBar-DbmtTFOx.cjs → fireFilterBar-BJrDOtCX.cjs} +1 -1
  131. package/dist/{fireFilterBar-Duk7OJ9Y.js → fireFilterBar-D_iui044.js} +2 -2
  132. package/dist/{fireHistoryTable-BO6ej88t.cjs → fireHistoryTable-CN2Hzohc.cjs} +1 -1
  133. package/dist/{fireHistoryTable-DPBVjZiJ.js → fireHistoryTable-DspSb34d.js} +2 -2
  134. package/dist/{gag-BMTle0iW.cjs → gag-BUrDQoCO.cjs} +1 -1
  135. package/dist/{gag-CSAmkyDD.js → gag-pfKfrlYO.js} +5 -5
  136. package/dist/gasStationList-Cy_5QLR9.js +1291 -0
  137. package/dist/gasStationList-YZWLjvN8.cjs +1 -0
  138. package/dist/gasStationList.mock---h5F6r5.cjs +1 -0
  139. package/dist/gasStationList.mock-COxtW0Ex.js +120 -0
  140. package/dist/{geo3dViewer-mJDVY5cp.js → geo3dViewer-ChbokLUB.js} +3 -3
  141. package/dist/{geo3dViewer-BIlig7g_.cjs → geo3dViewer-DJ_gqO5r.cjs} +1 -1
  142. package/dist/{glbModel-BzxP8shl.js → glbModel-BrjC3i0h.js} +2 -2
  143. package/dist/{glbModel-DnWXDJic.cjs → glbModel-D3UJSvjN.cjs} +3 -3
  144. package/dist/{globalObjectSelector-lYWLbEt8.js → globalObjectSelector-CdYmLLv2.js} +1 -1
  145. package/dist/{globalObjectSelector-Cp55ZFxL.cjs → globalObjectSelector-Ce3SvC4E.cjs} +1 -1
  146. package/dist/{gnssFilterBar-BcXsjKvN.cjs → gnssFilterBar-B43tZTQX.cjs} +1 -1
  147. package/dist/{gnssFilterBar-4yJR6Hid.js → gnssFilterBar-Bp84YDXJ.js} +2 -2
  148. package/dist/{gnssHistoryTable-CQhYzIkF.cjs → gnssHistoryTable-D8bXGNML.cjs} +2 -2
  149. package/dist/{gnssHistoryTable-V6L8Mapo.js → gnssHistoryTable-RsM1jz2f.js} +2 -2
  150. package/dist/{gnssMapView-CCJ_Y4o6.cjs → gnssMapView-BHb44XkU.cjs} +2 -2
  151. package/dist/{gnssMapView-B-uzWumH.js → gnssMapView-xVqGdW1A.js} +4 -4
  152. package/dist/{gnssSectionProfile-B8Rt-CF9.js → gnssSectionProfile-B3xINEfL.js} +2 -2
  153. package/dist/{gnssSectionProfile-B_8IErhJ.cjs → gnssSectionProfile-uuSceQXY.cjs} +1 -1
  154. package/dist/{gnssTimeSeriesChart-IF2Zzgya.cjs → gnssTimeSeriesChart-BexLKadu.cjs} +1 -1
  155. package/dist/{gnssTimeSeriesChart-BaP9brVp.js → gnssTimeSeriesChart-Da_AJWxA.js} +2 -2
  156. package/dist/{gnssXYTrajectory-BNXHdP5L.js → gnssXYTrajectory-7wgytvX6.js} +2 -2
  157. package/dist/{gnssXYTrajectory-DZXUOtdZ.cjs → gnssXYTrajectory-BR6KieD1.cjs} +2 -2
  158. package/dist/{grd-CRF5hQq3.js → grd-BiSIVP8f.js} +2 -2
  159. package/dist/{grd-q2JwG1LL.cjs → grd-D6m7shg1.cjs} +1 -1
  160. package/dist/{grdIndass-C8DPNROD.js → grdIndass-DMo7AvX-.js} +2 -2
  161. package/dist/{grdIndass-B_nXfqqR.cjs → grdIndass-DWD4c2kI.cjs} +1 -1
  162. package/dist/{grg-M9MwBK9q.js → grg-C2cx2qwL.js} +6 -6
  163. package/dist/{grg-DHuXQP_O.cjs → grg-Dd3zG3uv.cjs} +1 -1
  164. package/dist/{gridview-DTqcftjZ.js → gridview-BE95SgmR.js} +2 -2
  165. package/dist/{gridview-DLILP3no.cjs → gridview-CYQmWtcu.cjs} +1 -1
  166. package/dist/{groundwaterFilterBar-DwrhRk_v.js → groundwaterFilterBar-Cdjy0yl1.js} +2 -2
  167. package/dist/{groundwaterFilterBar-zXbia-fX.cjs → groundwaterFilterBar-DGX3khxf.cjs} +1 -1
  168. package/dist/{groundwaterProfileChart-PjBzMvbw.js → groundwaterProfileChart-0f6UL1uh.js} +3 -3
  169. package/dist/{groundwaterProfileChart-DrdP76cd.cjs → groundwaterProfileChart-Va1KIxBg.cjs} +2 -2
  170. package/dist/{groundwaterTimeCurve-DInTJEEl.js → groundwaterTimeCurve-CLeVdjfy.js} +3 -3
  171. package/dist/{groundwaterTimeCurve-DYk42p1p.cjs → groundwaterTimeCurve-DM4ApM86.cjs} +1 -1
  172. package/dist/{groupCard-BrNzGFVs.js → groupCard-BtORguZA.js} +2 -2
  173. package/dist/{groupCard-CNuEYy3p.cjs → groupCard-C7jBvHEi.cjs} +1 -1
  174. package/dist/{headerBar-BEoo20so.cjs → headerBar-DWgVttHc.cjs} +1 -1
  175. package/dist/{headerBar-C5tkesYI.js → headerBar-FgBaxcWC.js} +2 -2
  176. package/dist/{history-D_JkziAv.js → history-BtzJVDjs.js} +1 -1
  177. package/dist/{history-b7zBiHDz.cjs → history-G4FWNbMx.cjs} +1 -1
  178. package/dist/{index-PR_k3tQg.cjs → index-BxtKIaXl.cjs} +13 -16
  179. package/dist/{index-CaDDNmGU.js → index-DVnOzlFW.js} +3649 -3558
  180. package/dist/{insarDeformChart-C5PiLbYU.js → insarDeformChart-C6YAStZY.js} +2 -2
  181. package/dist/{insarDeformChart-DBXyVjKk.cjs → insarDeformChart-CUi7xmKQ.cjs} +1 -1
  182. package/dist/{insarImageViewer-B9-QQ_De.cjs → insarImageViewer-BWi9Fanb.cjs} +1 -1
  183. package/dist/{insarImageViewer-BEeQiS6N.js → insarImageViewer-BmPHo9Iv.js} +2 -2
  184. package/dist/{kds-BoR05GUP.js → kds-C5mE22Yh.js} +10 -10
  185. package/dist/{kds-JbCbEtJs.cjs → kds-CiOBJc1H.cjs} +1 -1
  186. package/dist/{kpiCard-7v6bZGP2.cjs → kpiCard-D9reZvRs.cjs} +2 -2
  187. package/dist/{kpiCard-BP-GnthE.js → kpiCard-MkcFvWjW.js} +2 -2
  188. package/dist/{landslideMap-BMu2X2bN.js → landslideMap-BflhBLFm.js} +3 -3
  189. package/dist/{landslideMap-D59SrOZE.cjs → landslideMap-C8-CZ6Cz.cjs} +1 -1
  190. package/dist/{landslideWarning-DeB2bNpu.js → landslideWarning-BASv2Fr8.js} +5 -5
  191. package/dist/{landslideWarning-C_hcQ1wr.cjs → landslideWarning-DrUA9D0C.cjs} +1 -1
  192. package/dist/{layerTabs-ByZZMwks.js → layerTabs-CGyjCWQO.js} +2 -2
  193. package/dist/{layerTabs-C1XclQOC.cjs → layerTabs-xEq9dduN.cjs} +1 -1
  194. package/dist/{leaflet-src-w8JmXMPG.cjs → leaflet-src-CyxFiLW0.cjs} +1 -1
  195. package/dist/{leaflet-src-O0MJ0wU5.js → leaflet-src-DjQfvPR-.js} +1 -1
  196. package/dist/{lerc-C0ekD7Me.cjs → lerc-Cu4ZGR3U.cjs} +1 -1
  197. package/dist/{lerc-BSgE4FKp.js → lerc-DDih8NnQ.js} +2 -2
  198. package/dist/{lin-DGOJIF6s.cjs → lin-4W_NoZ6M.cjs} +2 -2
  199. package/dist/{lin-DGafw8zf.js → lin-Bd61Xnu8.js} +11 -11
  200. package/dist/{linIndass-BERNb4X3.cjs → linIndass-DEbmVqHv.cjs} +2 -2
  201. package/dist/{linIndass-BLAQz5op.js → linIndass-apXDypXa.js} +6 -6
  202. package/dist/{lst-Cb1RdJ3D.js → lst-B1xWnPYM.js} +2 -2
  203. package/dist/{lst-BbLp5U-f.cjs → lst-CP3ZrASC.cjs} +1 -1
  204. package/dist/{manualEntry-C3aJpT9g.js → manualEntry-CrDkDTII.js} +2 -2
  205. package/dist/{manualEntry-Ztj3fH3A.cjs → manualEntry-DbZpUS57.cjs} +1 -1
  206. package/dist/{mapBackground-BPNim3nv.js → mapBackground-COtDGSdO.js} +3 -3
  207. package/dist/{mapBackground-CzRZzD1O.cjs → mapBackground-DZn9WsQw.cjs} +1 -1
  208. package/dist/mappingList-A3Q_Tq4f.cjs +1 -0
  209. package/dist/{mappingList-B6NYcjIa.js → mappingList-B4ge3SAq.js} +72 -71
  210. package/dist/{markdownViewer-CSMB8l93.js → markdownViewer-D0r-hbyK.js} +2 -2
  211. package/dist/{markdownViewer-BPdAvoWW.cjs → markdownViewer-DW_gJx8K.cjs} +1 -1
  212. package/dist/materialFileUrl-8YHw7z1T.cjs +1 -0
  213. package/dist/{materialFileUrl-BUkIkwgp.js → materialFileUrl-hKqW_JAq.js} +22 -22
  214. package/dist/{mix-control-modal-46dJ4X4L.js → mix-control-modal-AaG5Zj5V.js} +40 -40
  215. package/dist/mix-control-modal-CVHBMke4.cjs +1 -0
  216. package/dist/{mixGrid-1tOrywk7.cjs → mixGrid-6liStzKv.cjs} +1 -1
  217. package/dist/{mixGrid-F-d2hIht.js → mixGrid-CrW-atps.js} +2 -2
  218. package/dist/mixdashboards.cjs +1 -1
  219. package/dist/mixdashboards.css +1 -1
  220. package/dist/mixdashboards.js +1 -1
  221. package/dist/{mjpegCamera-Bzf9Zlb9.cjs → mjpegCamera-CAplwtGz.cjs} +1 -1
  222. package/dist/{mjpegCamera-CAR217Pv.js → mjpegCamera-DxdRa9v9.js} +2 -2
  223. package/dist/{monitorAlert-CD2NRVzR.js → monitorAlert-Bfd8oKZ3.js} +2 -2
  224. package/dist/{monitorAlert-BJtWNV53.cjs → monitorAlert-Di9ckhWx.cjs} +1 -1
  225. package/dist/{monitorData-D2rrSoJh.cjs → monitorData-BrUV6Nwg.cjs} +1 -1
  226. package/dist/{monitorData-CviwIANH.js → monitorData-HMsGrDkH.js} +2 -2
  227. package/dist/{monitorSpeedChart-BUfGJsBO.cjs → monitorSpeedChart-B-_c8bio.cjs} +1 -1
  228. package/dist/{monitorSpeedChart-DCMb9kVx.js → monitorSpeedChart-t1EgdmW4.js} +1 -1
  229. package/dist/{mxa-CTkUFkJB.cjs → mxa-BpqOJaiB.cjs} +1 -1
  230. package/dist/{mxa-CAgh10Ux.js → mxa-q5TxwpXx.js} +6 -6
  231. package/dist/{myValue-BwWuUkn0.js → myValue-BU9Kfrrr.js} +2 -2
  232. package/dist/{myValue-CTtwYm45.cjs → myValue-OTE8sMVZ.cjs} +1 -1
  233. package/dist/{myValueList-8goYepha.cjs → myValueList-DEfYmX7F.cjs} +1 -1
  234. package/dist/{myValueList-D-EbIIcT.js → myValueList-Dw-ayL7y.js} +2 -2
  235. package/dist/{objectList-B6S5Vbt7.js → objectList-C4cA-YqG.js} +488 -484
  236. package/dist/objectList-DCNrR5lG.cjs +1 -0
  237. package/dist/objectList.history-BkLFQ-o7.cjs +1 -0
  238. package/dist/objectList.history-DXZuLtHy.js +71 -0
  239. package/dist/objectListAPP-BBYGsNqX.cjs +1 -0
  240. package/dist/{objectListAPP-6EVjt25O.js → objectListAPP-TBEYjdIA.js} +591 -627
  241. package/dist/{percentBar-CXFGCu39.js → percentBar-BSjYCHDk.js} +9 -9
  242. package/dist/{percentBar-CllO6t03.cjs → percentBar-C48hKsVI.cjs} +2 -2
  243. package/dist/{photo-Bm9bjJ5L.cjs → photo-DDbR-KiN.cjs} +1 -1
  244. package/dist/{photo-CISKz3py.js → photo-q5P5djEM.js} +4 -4
  245. package/dist/{pie-CsZff0UE.cjs → pie-D0PL5kWu.cjs} +1 -1
  246. package/dist/{pie-B3nio1dC.js → pie-ykfLJ_hJ.js} +8 -8
  247. package/dist/{placeholder-q3O8Bva5.js → placeholder-BpOlpDTG.js} +1 -1
  248. package/dist/{placeholder-CPgwWlNB.cjs → placeholder-D8UJOXeJ.cjs} +1 -1
  249. package/dist/{pressBtn-BSWda69G.js → pressBtn-CMsC6Tna.js} +3 -3
  250. package/dist/{pressBtn-Bq1_wegh.cjs → pressBtn-CxU8XluS.cjs} +1 -1
  251. package/dist/{processTable-BP4EKe75.cjs → processTable-BOwVSynw.cjs} +1 -1
  252. package/dist/{processTable-C9Q2jiVC.js → processTable-DYHDRW2w.js} +2 -2
  253. package/dist/{progressBar-Bb9apofa.cjs → progressBar-B-f_Usik.cjs} +1 -1
  254. package/dist/{progressBar-DGI1hKbd.js → progressBar-DnT4q1r_.js} +2 -2
  255. package/dist/{progressCircle-BRbfwnB-.cjs → progressCircle-BmHEB7KC.cjs} +1 -1
  256. package/dist/{progressCircle-B_yHB1bZ.js → progressCircle-Ia4m1v9_.js} +2 -2
  257. package/dist/{qrcode-B4O103tY.js → qrcode-C8lyRBxh.js} +307 -308
  258. package/dist/qrcode-DVYTa6sB.cjs +1 -0
  259. package/dist/{raceBar-BBTSuU97.cjs → raceBar-BRr_XdlV.cjs} +2 -2
  260. package/dist/{raceBar-CJ4qBGhx.js → raceBar-D4GxDoVJ.js} +26 -23
  261. package/dist/{rad-np3W7CAD.cjs → rad-CbHWivUN.cjs} +1 -1
  262. package/dist/{rad-DR-duEfw.js → rad-vUFG65ay.js} +7 -7
  263. package/dist/{radarMapViewer-BVtJ2q6c.js → radarMapViewer-Cyc_cxsj.js} +2 -2
  264. package/dist/{radarMapViewer-kbdzbDKP.cjs → radarMapViewer-b8LBfM0L.cjs} +1 -1
  265. package/dist/{rainfallFilterBar-CYpib1XL.js → rainfallFilterBar-SzYyeYDz.js} +2 -2
  266. package/dist/{rainfallFilterBar-DuZwhtKa.cjs → rainfallFilterBar-qLf4SQBI.cjs} +1 -1
  267. package/dist/{rainfallTimeCurve-BT4rE2Vc.js → rainfallTimeCurve-3gXRXcta.js} +3 -3
  268. package/dist/{rainfallTimeCurve-DYWpLoT1.cjs → rainfallTimeCurve-CiA92jvM.cjs} +1 -1
  269. package/dist/{rangeLin-BBcJ9PnJ.js → rangeLin-CP_PElKD.js} +7 -7
  270. package/dist/{rangeLin-ChaYkb8_.cjs → rangeLin-t-otAmtq.cjs} +2 -2
  271. package/dist/{realtimeEvolutionMap-CJxCeMCD.js → realtimeEvolutionMap-DDmPQA-n.js} +2 -2
  272. package/dist/{realtimeEvolutionMap-UFga_5-Z.cjs → realtimeEvolutionMap-KTZmuwn3.cjs} +1 -1
  273. package/dist/{regionBar-CdvwMj9w.cjs → regionBar-CE-SzGLB.cjs} +1 -1
  274. package/dist/{regionBar-D2tQM5cu.js → regionBar-eqlDfulL.js} +2 -2
  275. package/dist/{request-D0RrTUSz.js → request-CNIQ5_TJ.js} +1 -1
  276. package/dist/{request-CBFwthty.cjs → request-CVksHch6.cjs} +1 -1
  277. package/dist/{retainer1-YHosRvc1.js → retainer1-CBSRVFGZ.js} +3 -3
  278. package/dist/{retainer1-BGV2MuUp.cjs → retainer1-D0G7_uC8.cjs} +1 -1
  279. package/dist/{retainer2-Un2rhmxB.cjs → retainer2-DluOXy8_.cjs} +1 -1
  280. package/dist/{retainer2-Wvm3l39y.js → retainer2-ptZ1elUB.js} +3 -3
  281. package/dist/retainerRecordList-BR5MAUAr.cjs +1 -0
  282. package/dist/{retainerRecordList-CqOPgM_e.js → retainerRecordList-CL2yALsS.js} +65 -64
  283. package/dist/{retainerRecordListAPP-UOXVHQzs.cjs → retainerRecordListAPP-CgsYe8he.cjs} +1 -1
  284. package/dist/{retainerRecordListAPP-CutsTHxC.js → retainerRecordListAPP-DdlbikGp.js} +3 -3
  285. package/dist/{ringTopN-BhDlEOCJ.js → ringTopN-Cv0R1TTh.js} +5 -5
  286. package/dist/{ringTopN-mA9LAgFN.cjs → ringTopN-X-6FqlBe.cjs} +1 -1
  287. package/dist/{riskRegionTable-Cm9BsaWA.cjs → riskRegionTable-CAaUKuWG.cjs} +1 -1
  288. package/dist/{riskRegionTable-CYTLnsH-.js → riskRegionTable-cFU60MAX.js} +2 -2
  289. package/dist/{sankey-jU9Dscb_.js → sankey-Dq3i5Jou.js} +8 -8
  290. package/dist/{sankey-BmvrkXRY.cjs → sankey-Kawu2sLR.cjs} +1 -1
  291. package/dist/{scd-CGTKGaWO.js → scd-C3n31CBH.js} +3 -3
  292. package/dist/{scd-TQcCDjoj.cjs → scd-DtohWX7o.cjs} +1 -1
  293. package/dist/{sideMenu-D4uEDc38.cjs → sideMenu-CU0LnGjs.cjs} +1 -1
  294. package/dist/{sideMenu-CtdLmpLX.js → sideMenu-Dw50xUft.js} +2 -2
  295. package/dist/{slopeStability-H7iiOf5G.js → slopeStability-B5YeRhwv.js} +2 -2
  296. package/dist/{slopeStability-B-LzCvR7.cjs → slopeStability-BvEaYjeB.cjs} +1 -1
  297. package/dist/{speedCurve-BKMR6Z0r.cjs → speedCurve-COtu8mYG.cjs} +1 -1
  298. package/dist/{speedCurve-lgD_hG_W.js → speedCurve-Hx0cF-DG.js} +2 -2
  299. package/dist/{stackedBar-BJu9_GI7.js → stackedBar-CqiWL95o.js} +9 -9
  300. package/dist/{stackedBar-D-goARDv.cjs → stackedBar-ohKCJ_s6.cjs} +2 -2
  301. package/dist/stationList-BJfXYgrR.cjs +1 -0
  302. package/dist/stationList-sHedP5PJ.js +1773 -0
  303. package/dist/{stressFilterBar-BOsQJoK_.js → stressFilterBar-CCXuMTAH.js} +2 -2
  304. package/dist/{stressFilterBar-D6qiNCAj.cjs → stressFilterBar-CVMDpp8V.cjs} +1 -1
  305. package/dist/{stressTimeCurve-BwZLKFHb.cjs → stressTimeCurve-C2SnXa0R.cjs} +1 -1
  306. package/dist/{stressTimeCurve-Bgxr5Wrf.js → stressTimeCurve-CPTkhIgN.js} +3 -3
  307. package/dist/{swiper-CRtoulGh.js → swiper-DH2Fzx4j.js} +2 -2
  308. package/dist/{swiper-D82oGlpT.cjs → swiper-YXiOqPl7.cjs} +1 -1
  309. package/dist/syncMixiotListConfig-BJm-8v-B.js +240 -0
  310. package/dist/syncMixiotListConfig-Elkp8zAs.cjs +1 -0
  311. package/dist/syncTablemanFormConfig-5nVr0itR.js +4509 -0
  312. package/dist/syncTablemanFormConfig-Cg0Ykosc.cjs +5 -0
  313. package/dist/tablemanCreate-B6wutwoq.cjs +1 -0
  314. package/dist/tablemanCreate-DJGMdzPs.js +180 -0
  315. package/dist/tablemanDetail-D_LazuGx.cjs +1 -0
  316. package/dist/tablemanDetail-DgD7MPHM.js +989 -0
  317. package/dist/tablemanList-BzzEEgBH.js +586 -0
  318. package/dist/tablemanList-DUm2Rwju.cjs +1 -0
  319. package/dist/tablemanTableList-CW_LDJ88.cjs +1 -0
  320. package/dist/{tablemanList-DmHYElUp.js → tablemanTableList-DMZXrRF-.js} +314 -304
  321. package/dist/tablemanUpdate-BS39NFRR.js +180 -0
  322. package/dist/tablemanUpdate-CYZW_BKZ.cjs +1 -0
  323. package/dist/{terminalConfigList-D6NiHYBX.js → terminalConfigList-Bzr42Wvd.js} +42 -41
  324. package/dist/terminalConfigList-C9Fu7oYn.cjs +1 -0
  325. package/dist/terminalList-CQpe62Ka.cjs +1 -0
  326. package/dist/{terminalList-CTBcP9xm.js → terminalList-DsTP6pLM.js} +23 -22
  327. package/dist/{terminalListAPP-Cwe2xdL6.cjs → terminalListAPP-B3ZIaZTE.cjs} +1 -1
  328. package/dist/{terminalListAPP-afa_Ibtw.js → terminalListAPP-LeXxUqQV.js} +3 -3
  329. package/dist/{textbox-D1Qwf3d2.cjs → textbox-B78vorhi.cjs} +1 -1
  330. package/dist/{textbox-BLANVfpn.js → textbox-DVZ_qHv8.js} +2 -2
  331. package/dist/{timeQueryBar-BHTy_h6G.js → timeQueryBar-D4N-0UXg.js} +1 -1
  332. package/dist/{timeQueryBar-CNbq5Bet.cjs → timeQueryBar-DJugILi4.cjs} +1 -1
  333. package/dist/{timeSeries-DSzv8Sp2.js → timeSeries-9BvqZ_6j.js} +3 -3
  334. package/dist/{timeSeries-CVz4_Q5W.cjs → timeSeries-C5soFF43.cjs} +1 -1
  335. package/dist/{timeSeriesCurve-DSAYjkRU.js → timeSeriesCurve-BIaHrqgV.js} +3 -3
  336. package/dist/{timeSeriesCurve-yQo3qHHo.cjs → timeSeriesCurve-CWCjYUsv.cjs} +1 -1
  337. package/dist/{toggleBtn-CsetEz6X.cjs → toggleBtn-CRzJ5Mw6.cjs} +1 -1
  338. package/dist/{toggleBtn-COE-GX9z.js → toggleBtn-CkY3ka1E.js} +9 -9
  339. package/dist/{trajectoryConfigPanel-BzJcwd-3.js → trajectoryConfigPanel-WYjBgHEp.js} +1 -1
  340. package/dist/{trajectoryConfigPanel-BS6SAfIu.cjs → trajectoryConfigPanel-que4yUWf.cjs} +1 -1
  341. package/dist/{trajectoryScatter-DSj9tCgT.js → trajectoryScatter-CsH0QRS5.js} +5 -5
  342. package/dist/{trajectoryScatter-ftlV7dd0.cjs → trajectoryScatter-DXRIuO_R.cjs} +1 -1
  343. package/dist/{universalConfigPanel-BzY0yL6m.js → universalConfigPanel-CfKty-RD.js} +1 -1
  344. package/dist/{universalConfigPanel-DjClEju7.cjs → universalConfigPanel-DkyWJfQY.cjs} +1 -1
  345. package/dist/{universalTable-JvMM251F.js → universalTable-C7MPwsU7.js} +2 -2
  346. package/dist/{universalTable-DPu429rn.cjs → universalTable-CYn9Ta0x.cjs} +2 -2
  347. package/dist/useMixiotPanelPopperClass-2tTzKUsO.cjs +1 -0
  348. package/dist/useMixiotPanelPopperClass-UGlVKJTK.js +53 -0
  349. package/dist/useTablemanApi-D0e3qWmt.js +282 -0
  350. package/dist/useTablemanApi-DhWsaLvq.cjs +3 -0
  351. package/dist/useTablemanFormPanel-BZ3oXKlq.js +21827 -0
  352. package/dist/useTablemanFormPanel-CliUgDl9.cjs +81 -0
  353. package/dist/useTablemanListActions-D2L5OAxQ.js +567 -0
  354. package/dist/useTablemanListActions-DoHRrI1D.cjs +1 -0
  355. package/dist/{video-OJsr6jxT.js → video-BSgDJKSO.js} +2 -2
  356. package/dist/{video-BZbt1v0N.cjs → video-fx8v0Y1x.cjs} +1 -1
  357. package/dist/{videoMonitor-BcfssQX4.js → videoMonitor-Bc8jVS95.js} +2 -2
  358. package/dist/{videoMonitor-DWNh0F6P.cjs → videoMonitor-wrowv7tL.cjs} +1 -1
  359. package/dist/{vlu-BXyZcEQh.js → vlu-C7dW2enk.js} +2 -2
  360. package/dist/{vlu-BrVly_o-.cjs → vlu-D7hqyPF5.cjs} +1 -1
  361. package/dist/{warningOverview-C8qJNEFc.js → warningOverview-BWrTJKjX.js} +3 -3
  362. package/dist/{warningOverview-YqxTqkG6.cjs → warningOverview-FsGBF14a.cjs} +1 -1
  363. package/dist/{weather-Drd-bMhZ.js → weather-BInNSKms.js} +2 -2
  364. package/dist/{weather-Ba0ATW6-.cjs → weather-DgAUfYt_.cjs} +1 -1
  365. package/dist/{windLin-DFzNiUCz.js → windLin-Buv5GCTK.js} +9 -9
  366. package/dist/{windLin-5NXNHy9D.cjs → windLin-CKjU-v9-.cjs} +1 -1
  367. package/package.json +4 -1
  368. package/dist/controlList-DlqgQ510.cjs +0 -1
  369. package/dist/controlRecordList-B-lHEslj.cjs +0 -1
  370. package/dist/gasStationList-CQgakcsg.js +0 -1401
  371. package/dist/gasStationList-DnQK3yKb.cjs +0 -1
  372. package/dist/mappingList-B_FVwWfC.cjs +0 -1
  373. package/dist/materialFileUrl-BR6anfF2.cjs +0 -1
  374. package/dist/mix-control-modal-oDAz2GZ_.cjs +0 -1
  375. package/dist/objectList-Dbkam4GS.cjs +0 -1
  376. package/dist/objectListAPP-BRDAVQcL.cjs +0 -1
  377. package/dist/qrcode-CMYqHUmi.cjs +0 -1
  378. package/dist/retainerRecordList-C_aduEsj.cjs +0 -1
  379. package/dist/tablemanList-10EHbXgv.cjs +0 -1
  380. package/dist/terminalConfigList-cHJ-LVj5.cjs +0 -1
  381. package/dist/terminalList-BVovhzGU.cjs +0 -1
  382. /package/dist/{useApi-DtucMc-S-CRhRQNx-.cjs → useApi-DCywyCly-CRhRQNx-.cjs} +0 -0
  383. /package/dist/{useApi-DtucMc-S-ha66t1D5.js → useApi-DCywyCly-ha66t1D5.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { e, b as g, a2 as o, a3 as t, a4 as n, a5 as r, a6 as i } from "./index-CaDDNmGU.js";
1
+ import { e, b as g, a7 as o, a8 as t, a9 as n, aa as r, ab as i } from "./index-DVnOzlFW.js";
2
2
  export {
3
3
  e as DesignApp,
4
4
  g as DesignPro,
@@ -1 +1 @@
1
- "use strict";var N=Object.defineProperty,h=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var g=(r,o,a)=>o in r?N(r,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[o]=a,f=(r,o)=>{for(var a in o||(o={}))A.call(o,a)&&g(r,a,o[a]);if(y)for(var a of y(o))B.call(o,a)&&g(r,a,o[a]);return r},E=(r,o)=>h(r,S(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./BaseComponent-C42zZPAg.cjs"),x=require("./index-PR_k3tQg.cjs"),C=require("./ele-vdo-icon-Bgp9gaT6.cjs"),M={key:0,class:"empty-state"},j={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.4"}},I={key:1,class:"stream-wrapper"},U=["src"],w={key:0,class:"overlay"},L={key:1,class:"overlay error"},P={key:2,class:"edit-badge"},F={DEFAULT_ICON:C.DEFAULT_ICON,ACTIVE_ICON:C.ACTIVE_ICON,NAME_CN:"监控摄像头",NAME_EN:"MJPEG Camera",ORDER:2,PLATFORM:["pc","screen","mobile"]},R={streamUrl:{value:"",type:"string",label:"推流地址"},objectFit:{value:"contain",type:"select",label:"画面填充方式",options:[{label:"等比缩放",value:"contain"},{label:"填充",value:"cover"},{label:"拉伸",value:"fill"}]},bgColor:{value:"#000000",type:"color",label:"component.options.bgColor"},radiusSize:{value:0,type:"number",label:"component.options.radiusSize",min:0,max:50},useProxy:{value:!0,type:"checkbox",label:"启用代理(解决跨域)"}},T=[],z=[],D=[],H=null,q={DEFAULT:F,OPTIONS:R,DATA:T,PARAMS:z,SOURCE:D,COMMON:H},$=e.defineComponent(E(f({},q),{__name:"mjpegCamera",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const o=r;class a extends O.BaseComponent{extractStyles(){return{streamUrl:this.getOptionValue("streamUrl",""),objectFit:this.getOptionValue("objectFit","contain"),bgColor:this.getOptionValue("bgColor","#000000"),radiusSize:this.getOptionValue("radiusSize",0),useProxy:this.getOptionValue("useProxy",!0)}}}const p=new a(o,"mjpegCamera");p.setupLifecycle();const n=p.getStyle(),i=e.ref(null),s=e.ref(!1),c=e.ref(!1),v=e.ref(""),m=e.computed(()=>{var t;return((t=n.value)==null?void 0:t.streamUrl)||""}),u=e.computed(()=>{var l;const t=m.value;if(!t)return"";if(!((l=n.value)!=null&&l.useProxy))return t;try{const d=new URL(t);return`/mjpeg-proxy${d.pathname}${d.search}`}catch(d){return t}}),b=e.computed(()=>{var t,l;return{borderRadius:`${((t=n.value)==null?void 0:t.radiusSize)||0}px`,backgroundColor:((l=n.value)==null?void 0:l.bgColor)||"#000"}}),V=()=>{s.value=!1,c.value=!1},_=()=>{s.value=!1,c.value=!0,v.value="无法连接到推流地址,请检查地址是否正确"},k=()=>{!i.value||!u.value||(c.value=!1,s.value=!0,i.value.src=u.value+(u.value.includes("?")?"&":"?")+"_t="+Date.now())};return e.watch(m,t=>{t&&(s.value=!0,c.value=!1)}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:"mjpeg-camera",style:e.normalizeStyle(b.value)},[m.value?(e.openBlock(),e.createElementBlock("div",I,[e.createElementVNode("img",{ref_key:"imgRef",ref:i,src:u.value,class:"stream-img",style:e.normalizeStyle({objectFit:e.unref(n).objectFit}),onError:_,onLoad:V,alt:"监控画面"},null,44,U),s.value?(e.openBlock(),e.createElementBlock("div",w,[...l[2]||(l[2]=[e.createElementVNode("div",{class:"spinner"},null,-1),e.createElementVNode("span",null,"连接中...",-1)])])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("div",L,[l[3]||(l[3]=e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"36",height:"36",fill:"currentColor"},[e.createElementVNode("path",{d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"})],-1)),e.createElementVNode("span",null,e.toDisplayString(v.value),1),e.createElementVNode("button",{class:"retry-btn",onClick:k},"重试")])):e.createCommentVNode("",!0),r.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",P,"MJPEG 监控")):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",M,[(e.openBlock(),e.createElementBlock("svg",j,[...l[0]||(l[0]=[e.createElementVNode("path",{d:"M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5Z"},null,-1)])])),l[1]||(l[1]=e.createElementVNode("p",{class:"empty-text"},"请在属性面板中设置推流地址",-1))])),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),G=x._export_sfc($,[["__scopeId","data-v-318986e2"]]);exports.default=G;
1
+ "use strict";var N=Object.defineProperty,h=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var g=(r,o,a)=>o in r?N(r,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[o]=a,f=(r,o)=>{for(var a in o||(o={}))A.call(o,a)&&g(r,a,o[a]);if(y)for(var a of y(o))B.call(o,a)&&g(r,a,o[a]);return r},E=(r,o)=>h(r,S(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./BaseComponent-pJuOPMpe.cjs"),x=require("./index-BxtKIaXl.cjs"),C=require("./ele-vdo-icon-Bgp9gaT6.cjs"),M={key:0,class:"empty-state"},j={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.4"}},I={key:1,class:"stream-wrapper"},U=["src"],w={key:0,class:"overlay"},L={key:1,class:"overlay error"},P={key:2,class:"edit-badge"},F={DEFAULT_ICON:C.DEFAULT_ICON,ACTIVE_ICON:C.ACTIVE_ICON,NAME_CN:"监控摄像头",NAME_EN:"MJPEG Camera",ORDER:2,PLATFORM:["pc","screen","mobile"]},R={streamUrl:{value:"",type:"string",label:"推流地址"},objectFit:{value:"contain",type:"select",label:"画面填充方式",options:[{label:"等比缩放",value:"contain"},{label:"填充",value:"cover"},{label:"拉伸",value:"fill"}]},bgColor:{value:"#000000",type:"color",label:"component.options.bgColor"},radiusSize:{value:0,type:"number",label:"component.options.radiusSize",min:0,max:50},useProxy:{value:!0,type:"checkbox",label:"启用代理(解决跨域)"}},T=[],z=[],D=[],q=null,H={DEFAULT:F,OPTIONS:R,DATA:T,PARAMS:z,SOURCE:D,COMMON:q},$=e.defineComponent(E(f({},H),{__name:"mjpegCamera",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const o=r;class a extends O.BaseComponent{extractStyles(){return{streamUrl:this.getOptionValue("streamUrl",""),objectFit:this.getOptionValue("objectFit","contain"),bgColor:this.getOptionValue("bgColor","#000000"),radiusSize:this.getOptionValue("radiusSize",0),useProxy:this.getOptionValue("useProxy",!0)}}}const p=new a(o,"mjpegCamera");p.setupLifecycle();const n=p.getStyle(),i=e.ref(null),s=e.ref(!1),c=e.ref(!1),v=e.ref(""),m=e.computed(()=>{var t;return((t=n.value)==null?void 0:t.streamUrl)||""}),u=e.computed(()=>{var l;const t=m.value;if(!t)return"";if(!((l=n.value)!=null&&l.useProxy))return t;try{const d=new URL(t);return`/mjpeg-proxy${d.pathname}${d.search}`}catch(d){return t}}),b=e.computed(()=>{var t,l;return{borderRadius:`${((t=n.value)==null?void 0:t.radiusSize)||0}px`,backgroundColor:((l=n.value)==null?void 0:l.bgColor)||"#000"}}),V=()=>{s.value=!1,c.value=!1},_=()=>{s.value=!1,c.value=!0,v.value="无法连接到推流地址,请检查地址是否正确"},k=()=>{!i.value||!u.value||(c.value=!1,s.value=!0,i.value.src=u.value+(u.value.includes("?")?"&":"?")+"_t="+Date.now())};return e.watch(m,t=>{t&&(s.value=!0,c.value=!1)}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:"mjpeg-camera",style:e.normalizeStyle(b.value)},[m.value?(e.openBlock(),e.createElementBlock("div",I,[e.createElementVNode("img",{ref_key:"imgRef",ref:i,src:u.value,class:"stream-img",style:e.normalizeStyle({objectFit:e.unref(n).objectFit}),onError:_,onLoad:V,alt:"监控画面"},null,44,U),s.value?(e.openBlock(),e.createElementBlock("div",w,[...l[2]||(l[2]=[e.createElementVNode("div",{class:"spinner"},null,-1),e.createElementVNode("span",null,"连接中...",-1)])])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("div",L,[l[3]||(l[3]=e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"36",height:"36",fill:"currentColor"},[e.createElementVNode("path",{d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"})],-1)),e.createElementVNode("span",null,e.toDisplayString(v.value),1),e.createElementVNode("button",{class:"retry-btn",onClick:k},"重试")])):e.createCommentVNode("",!0),r.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",P,"MJPEG 监控")):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",M,[(e.openBlock(),e.createElementBlock("svg",j,[...l[0]||(l[0]=[e.createElementVNode("path",{d:"M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5Z"},null,-1)])])),l[1]||(l[1]=e.createElementVNode("p",{class:"empty-text"},"请在属性面板中设置推流地址",-1))])),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),G=x._export_sfc($,[["__scopeId","data-v-318986e2"]]);exports.default=G;
@@ -11,8 +11,8 @@ var h = (l, t, r) => t in l ? j(l, t, { enumerable: !0, configurable: !0, writab
11
11
  return l;
12
12
  }, S = (l, t) => k(l, w(t));
13
13
  import { defineComponent as L, ref as m, computed as g, watch as P, openBlock as s, createElementBlock as n, normalizeStyle as x, createElementVNode as a, unref as R, createCommentVNode as f, toDisplayString as F, renderSlot as D } from "vue";
14
- import { B as I } from "./BaseComponent-D7kfvQid.js";
15
- import { _ as z } from "./index-CaDDNmGU.js";
14
+ import { B as I } from "./BaseComponent-CcjKs8HB.js";
15
+ import { _ as z } from "./index-DVnOzlFW.js";
16
16
  import { A as B, D as H } from "./ele-vdo-icon-DcWebTR5.js";
17
17
  const T = {
18
18
  key: 0,
@@ -12,8 +12,8 @@ var N = (d, l, i) => l in d ? $(d, l, { enumerable: !0, configurable: !0, writab
12
12
  }, B = (d, l) => F(d, z(l));
13
13
  import { defineComponent as Q, useCssVars as q, unref as c, ref as A, computed as L, openBlock as _, createElementBlock as g, createElementVNode as o, toDisplayString as C, normalizeStyle as R, withDirectives as w, vModelText as D, Fragment as G, renderList as J, createCommentVNode as W, renderSlot as X } from "vue";
14
14
  import "html2canvas";
15
- import { B as Y } from "./BaseComponent-D7kfvQid.js";
16
- import { N as Z, B as ee, _ as te } from "./index-CaDDNmGU.js";
15
+ import { B as Y } from "./BaseComponent-CcjKs8HB.js";
16
+ import { N as Z, B as ee, _ as te } from "./index-DVnOzlFW.js";
17
17
  import { A as oe, D as le } from "./ele-evn-icon-MWzAujnD.js";
18
18
  const ae = { class: "monitor-alert-wrapper" }, re = { class: "panel-header" }, ne = { class: "header-left" }, ce = { class: "header-title" }, se = { class: "search-bar" }, ie = ["placeholder"], de = { class: "date-picker-row" }, ue = { class: "date-picker-item" }, fe = { class: "date-picker-item" }, ve = { class: "alert-list" }, pe = ["onClick"], me = { class: "alert-content" }, Ce = { class: "alert-title" }, be = { class: "alert-desc" }, he = { class: "alert-time" }, _e = {
19
19
  key: 0,
@@ -1 +1 @@
1
- "use strict";var M=Object.defineProperty,T=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var A=(i,l,s)=>l in i?M(i,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[l]=s,w=(i,l)=>{for(var s in l||(l={}))I.call(l,s)&&A(i,s,l[s]);if(V)for(var s of V(l))P.call(l,s)&&A(i,s,l[s]);return i},D=(i,l)=>T(i,L(l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const R=require("./BaseComponent-C42zZPAg.cjs"),h=require("./index-PR_k3tQg.cjs"),S=require("./ele-evn-icon-DUQMS-9T.cjs"),U={class:"monitor-alert-wrapper"},$={class:"panel-header"},q={class:"header-left"},F={class:"header-title"},z={class:"search-bar"},H=["placeholder"],K={class:"date-picker-row"},Q={class:"date-picker-item"},G={class:"date-picker-item"},J={class:"alert-list"},W=["onClick"],X={class:"alert-content"},Y={class:"alert-title"},Z={class:"alert-desc"},ee={class:"alert-time"},te={key:0,class:"no-data"},oe={DEFAULT_ICON:S.DEFAULT_ICON,ACTIVE_ICON:S.ACTIVE_ICON,NAME_CN:"监测预警",NAME_EN:"Monitor Alert",ORDER:10,PLATFORM:["pc","screen"]},le={title:{value:"监测预警",type:"string",label:"component.monitorAlert.title"},searchPlaceholder:{value:"搜索预警类型、位置...",type:"string",label:"component.monitorAlert.searchPlaceholder"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.monitorAlert.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.monitorAlert.accentColor"},alertColor:{value:"#e74c3c",type:"color",label:"component.monitorAlert.alertColor"},glowEffect:{value:!0,type:"checkbox",label:"component.monitorAlert.glowEffect"},warnColor:{value:"#f39c12",type:"color",label:"component.monitorAlert.warnColor"},infoColor:{value:"#9b59b6",type:"color",label:"component.monitorAlert.infoColor"}},re=[{name:"边坡变形监测",fv:"alert_type",object_id:"",location:"南区边坡",desc:"变形加速",time:"15:42",level:"warn"},{name:"裂缝监测预警",fv:"alert_type",object_id:"",location:"北区挡墙",desc:"裂缝扩展",time:"14:30",level:"error"},{name:"位移监测提醒",fv:"alert_type",object_id:"",location:"东区边坡",desc:"位移异常",time:"13:15",level:"info"}],ae=["name","fv","object_id","location","desc","time","level"],ne=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ce={useAlias:!1,multiObject:!0,source:"mosaic"},se={DEFAULT:oe,OPTIONS:le,DATA:re,PARAMS:ae,SOURCE:ne,COMMON:ce},ie=e.defineComponent(D(w({},se),{__name:"monitorAlert",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(i){e.useCssVars(c=>({v72df6802:e.unref(r).bgColor,v221be3f8:e.unref(r).borderColor,v0aa92052:e.unref(r).textColor,v9db353cc:e.unref(r).accentColor,dc3d4052:e.unref(r).glowEffect?`drop-shadow(0 0 6px ${e.unref(r).accentColor})`:"none",v05260c03:e.unref(r).glowEffect?`0 0 10px ${e.unref(r).accentColor}`:"none",v12c6b5da:e.unref(r).glowEffect?`0 0 10px ${e.unref(r).alertColor}`:"none"}));const l=i;class s extends R.BaseComponent{extractStyles(){var o,d,a,n,f,u,C,p,m,g,N;const{options:t}=this.props.conf;return{title:((o=t==null?void 0:t.title)==null?void 0:o.value)||"监测预警",searchPlaceholder:((d=t==null?void 0:t.searchPlaceholder)==null?void 0:d.value)||"搜索预警类型、位置...",bgColor:((a=t==null?void 0:t.bgColor)==null?void 0:a.value)||"#1a2a3a",borderColor:((n=t==null?void 0:t.borderColor)==null?void 0:n.value)||"#2a4a6a",textColor:((f=t==null?void 0:t.textColor)==null?void 0:f.value)||"#ffffff",accentColor:((u=t==null?void 0:t.accentColor)==null?void 0:u.value)||"#00d4ff",alertColor:((C=t==null?void 0:t.alertColor)==null?void 0:C.value)||"#e74c3c",glowEffect:(m=(p=t==null?void 0:t.glowEffect)==null?void 0:p.value)!=null?m:!0,warnColor:((g=t==null?void 0:t.warnColor)==null?void 0:g.value)||"#f39c12",infoColor:((N=t==null?void 0:t.infoColor)==null?void 0:N.value)||"#9b59b6"}}getDefaultData(){return[{name:"边坡变形监测",fv:"alert_type",object_id:"",location:"南区边坡",desc:"变形加速",time:"15:42",level:"warn"},{name:"裂缝监测预警",fv:"alert_type",object_id:"",location:"北区挡墙",desc:"裂缝扩展",time:"14:30",level:"error"},{name:"位移监测提醒",fv:"alert_type",object_id:"",location:"东区边坡",desc:"位移异常",time:"13:15",level:"info"}]}setHistoryData(t){const{data:o,common:d}=this.props.conf;if(!o.some(u=>u.object_id&&u.fv))return;const n=d.source||"mosaic";["statistics","calculate"].includes(n)&&(t=h.formatStatisticsResult(t,o));let f=h.handleNullData(t,this.props,"history");o.forEach((u,C)=>{var p;if(!(!u.object_id||!u.fv))try{const m=(p=f.history[C])==null?void 0:p[0];m&&Object.assign(u,m)}catch(m){}})}setSocketData(t){if(!t)return;const{data:o}=this.props.conf;o.some(a=>a.object_id&&a.fv)&&o.forEach(a=>{if(!a.object_id||!a.fv)return;const n=this.extractDataValue(t,a.fv);n!=null&&(typeof n=="object"&&n!==null?Object.assign(a,n):a.value=n)})}}const b=new s(l,"monitorAlert");(!l.conf.data||l.conf.data.length===0)&&(l.conf.data=b.getDefaultData()),b.setupLifecycle();const r=b.getStyle(),v=e.ref(""),_=e.ref(""),y=e.ref(""),k=e.computed(()=>{var c,t;return((t=(c=l.conf)==null?void 0:c.data)==null?void 0:t.length)||0}),E=e.computed(()=>{var o;const c=((o=l.conf)==null?void 0:o.data)||[];if(!v.value)return c;const t=v.value.toLowerCase();return c.filter(d=>{var a,n,f;return((a=d.name)==null?void 0:a.toLowerCase().includes(t))||((n=d.location)==null?void 0:n.toLowerCase().includes(t))||((f=d.desc)==null?void 0:f.toLowerCase().includes(t))})}),x=c=>{const o={error:r.alertColor,warn:r.warnColor,info:r.infoColor}[c]||r.infoColor;return{borderLeftColor:o,background:`linear-gradient(90deg, ${o}20 0%, transparent 100%)`}},j=()=>console.log("搜索:",v.value),O=()=>{v.value=""},B=c=>console.log("点击预警:",c);return(c,t)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",$,[e.createElementVNode("div",q,[t[3]||(t[3]=e.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),e.createElementVNode("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})],-1)),e.createElementVNode("span",F,e.toDisplayString(e.unref(r).title),1)]),e.createElementVNode("div",{class:"alert-badge",style:e.normalizeStyle({borderColor:e.unref(r).alertColor,color:e.unref(r).alertColor})},e.toDisplayString(k.value)+"条新预警 ",5)]),e.createElementVNode("div",z,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>v.value=o),type:"text",class:"search-input",placeholder:e.unref(r).searchPlaceholder},null,8,H),[[e.vModelText,v.value]]),e.createElementVNode("button",{class:"search-btn",onClick:j},[...t[4]||(t[4]=[e.createElementVNode("span",null,"Q",-1)])]),e.createElementVNode("button",{class:"clear-btn",onClick:O},[...t[5]||(t[5]=[e.createElementVNode("span",null,"×",-1)])])]),e.createElementVNode("div",K,[e.createElementVNode("div",Q,[t[6]||(t[6]=e.createElementVNode("label",null,"开始日期",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=o=>_.value=o),type:"date",class:"date-input"},null,512),[[e.vModelText,_.value]])]),e.createElementVNode("div",G,[t[7]||(t[7]=e.createElementVNode("label",null,"结束日期",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[2]||(t[2]=o=>y.value=o),type:"date",class:"date-input"},null,512),[[e.vModelText,y.value]])])]),e.createElementVNode("div",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(o,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"alert-item",style:e.normalizeStyle(x(o.level)),onClick:a=>B(o)},[e.createElementVNode("div",X,[e.createElementVNode("div",Y,e.toDisplayString(o.name),1),e.createElementVNode("div",Z,"位置:"+e.toDisplayString(o.location)+" "+e.toDisplayString(o.desc),1)]),e.createElementVNode("div",ee,e.toDisplayString(o.time),1)],12,W))),128)),E.value.length===0?(e.openBlock(),e.createElementBlock("div",te," 暂无预警数据 ")):e.createCommentVNode("",!0)]),e.renderSlot(c.$slots,"default",{},void 0,!0)]))}})),de=h._export_sfc(ie,[["__scopeId","data-v-a1dccb42"]]);exports.default=de;
1
+ "use strict";var M=Object.defineProperty,T=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var A=(i,l,s)=>l in i?M(i,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[l]=s,w=(i,l)=>{for(var s in l||(l={}))I.call(l,s)&&A(i,s,l[s]);if(V)for(var s of V(l))P.call(l,s)&&A(i,s,l[s]);return i},D=(i,l)=>T(i,L(l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const R=require("./BaseComponent-pJuOPMpe.cjs"),h=require("./index-BxtKIaXl.cjs"),S=require("./ele-evn-icon-DUQMS-9T.cjs"),U={class:"monitor-alert-wrapper"},$={class:"panel-header"},q={class:"header-left"},F={class:"header-title"},z={class:"search-bar"},H=["placeholder"],K={class:"date-picker-row"},Q={class:"date-picker-item"},G={class:"date-picker-item"},J={class:"alert-list"},W=["onClick"],X={class:"alert-content"},Y={class:"alert-title"},Z={class:"alert-desc"},ee={class:"alert-time"},te={key:0,class:"no-data"},oe={DEFAULT_ICON:S.DEFAULT_ICON,ACTIVE_ICON:S.ACTIVE_ICON,NAME_CN:"监测预警",NAME_EN:"Monitor Alert",ORDER:10,PLATFORM:["pc","screen"]},le={title:{value:"监测预警",type:"string",label:"component.monitorAlert.title"},searchPlaceholder:{value:"搜索预警类型、位置...",type:"string",label:"component.monitorAlert.searchPlaceholder"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.monitorAlert.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.monitorAlert.accentColor"},alertColor:{value:"#e74c3c",type:"color",label:"component.monitorAlert.alertColor"},glowEffect:{value:!0,type:"checkbox",label:"component.monitorAlert.glowEffect"},warnColor:{value:"#f39c12",type:"color",label:"component.monitorAlert.warnColor"},infoColor:{value:"#9b59b6",type:"color",label:"component.monitorAlert.infoColor"}},re=[{name:"边坡变形监测",fv:"alert_type",object_id:"",location:"南区边坡",desc:"变形加速",time:"15:42",level:"warn"},{name:"裂缝监测预警",fv:"alert_type",object_id:"",location:"北区挡墙",desc:"裂缝扩展",time:"14:30",level:"error"},{name:"位移监测提醒",fv:"alert_type",object_id:"",location:"东区边坡",desc:"位移异常",time:"13:15",level:"info"}],ae=["name","fv","object_id","location","desc","time","level"],ne=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ce={useAlias:!1,multiObject:!0,source:"mosaic"},se={DEFAULT:oe,OPTIONS:le,DATA:re,PARAMS:ae,SOURCE:ne,COMMON:ce},ie=e.defineComponent(D(w({},se),{__name:"monitorAlert",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(i){e.useCssVars(c=>({v72df6802:e.unref(r).bgColor,v221be3f8:e.unref(r).borderColor,v0aa92052:e.unref(r).textColor,v9db353cc:e.unref(r).accentColor,dc3d4052:e.unref(r).glowEffect?`drop-shadow(0 0 6px ${e.unref(r).accentColor})`:"none",v05260c03:e.unref(r).glowEffect?`0 0 10px ${e.unref(r).accentColor}`:"none",v12c6b5da:e.unref(r).glowEffect?`0 0 10px ${e.unref(r).alertColor}`:"none"}));const l=i;class s extends R.BaseComponent{extractStyles(){var o,d,a,n,f,u,C,p,m,g,N;const{options:t}=this.props.conf;return{title:((o=t==null?void 0:t.title)==null?void 0:o.value)||"监测预警",searchPlaceholder:((d=t==null?void 0:t.searchPlaceholder)==null?void 0:d.value)||"搜索预警类型、位置...",bgColor:((a=t==null?void 0:t.bgColor)==null?void 0:a.value)||"#1a2a3a",borderColor:((n=t==null?void 0:t.borderColor)==null?void 0:n.value)||"#2a4a6a",textColor:((f=t==null?void 0:t.textColor)==null?void 0:f.value)||"#ffffff",accentColor:((u=t==null?void 0:t.accentColor)==null?void 0:u.value)||"#00d4ff",alertColor:((C=t==null?void 0:t.alertColor)==null?void 0:C.value)||"#e74c3c",glowEffect:(m=(p=t==null?void 0:t.glowEffect)==null?void 0:p.value)!=null?m:!0,warnColor:((g=t==null?void 0:t.warnColor)==null?void 0:g.value)||"#f39c12",infoColor:((N=t==null?void 0:t.infoColor)==null?void 0:N.value)||"#9b59b6"}}getDefaultData(){return[{name:"边坡变形监测",fv:"alert_type",object_id:"",location:"南区边坡",desc:"变形加速",time:"15:42",level:"warn"},{name:"裂缝监测预警",fv:"alert_type",object_id:"",location:"北区挡墙",desc:"裂缝扩展",time:"14:30",level:"error"},{name:"位移监测提醒",fv:"alert_type",object_id:"",location:"东区边坡",desc:"位移异常",time:"13:15",level:"info"}]}setHistoryData(t){const{data:o,common:d}=this.props.conf;if(!o.some(u=>u.object_id&&u.fv))return;const n=d.source||"mosaic";["statistics","calculate"].includes(n)&&(t=h.formatStatisticsResult(t,o));let f=h.handleNullData(t,this.props,"history");o.forEach((u,C)=>{var p;if(!(!u.object_id||!u.fv))try{const m=(p=f.history[C])==null?void 0:p[0];m&&Object.assign(u,m)}catch(m){}})}setSocketData(t){if(!t)return;const{data:o}=this.props.conf;o.some(a=>a.object_id&&a.fv)&&o.forEach(a=>{if(!a.object_id||!a.fv)return;const n=this.extractDataValue(t,a.fv);n!=null&&(typeof n=="object"&&n!==null?Object.assign(a,n):a.value=n)})}}const b=new s(l,"monitorAlert");(!l.conf.data||l.conf.data.length===0)&&(l.conf.data=b.getDefaultData()),b.setupLifecycle();const r=b.getStyle(),v=e.ref(""),_=e.ref(""),y=e.ref(""),k=e.computed(()=>{var c,t;return((t=(c=l.conf)==null?void 0:c.data)==null?void 0:t.length)||0}),E=e.computed(()=>{var o;const c=((o=l.conf)==null?void 0:o.data)||[];if(!v.value)return c;const t=v.value.toLowerCase();return c.filter(d=>{var a,n,f;return((a=d.name)==null?void 0:a.toLowerCase().includes(t))||((n=d.location)==null?void 0:n.toLowerCase().includes(t))||((f=d.desc)==null?void 0:f.toLowerCase().includes(t))})}),x=c=>{const o={error:r.alertColor,warn:r.warnColor,info:r.infoColor}[c]||r.infoColor;return{borderLeftColor:o,background:`linear-gradient(90deg, ${o}20 0%, transparent 100%)`}},j=()=>console.log("搜索:",v.value),O=()=>{v.value=""},B=c=>console.log("点击预警:",c);return(c,t)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",$,[e.createElementVNode("div",q,[t[3]||(t[3]=e.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),e.createElementVNode("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})],-1)),e.createElementVNode("span",F,e.toDisplayString(e.unref(r).title),1)]),e.createElementVNode("div",{class:"alert-badge",style:e.normalizeStyle({borderColor:e.unref(r).alertColor,color:e.unref(r).alertColor})},e.toDisplayString(k.value)+"条新预警 ",5)]),e.createElementVNode("div",z,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>v.value=o),type:"text",class:"search-input",placeholder:e.unref(r).searchPlaceholder},null,8,H),[[e.vModelText,v.value]]),e.createElementVNode("button",{class:"search-btn",onClick:j},[...t[4]||(t[4]=[e.createElementVNode("span",null,"Q",-1)])]),e.createElementVNode("button",{class:"clear-btn",onClick:O},[...t[5]||(t[5]=[e.createElementVNode("span",null,"×",-1)])])]),e.createElementVNode("div",K,[e.createElementVNode("div",Q,[t[6]||(t[6]=e.createElementVNode("label",null,"开始日期",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=o=>_.value=o),type:"date",class:"date-input"},null,512),[[e.vModelText,_.value]])]),e.createElementVNode("div",G,[t[7]||(t[7]=e.createElementVNode("label",null,"结束日期",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[2]||(t[2]=o=>y.value=o),type:"date",class:"date-input"},null,512),[[e.vModelText,y.value]])])]),e.createElementVNode("div",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(o,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"alert-item",style:e.normalizeStyle(x(o.level)),onClick:a=>B(o)},[e.createElementVNode("div",X,[e.createElementVNode("div",Y,e.toDisplayString(o.name),1),e.createElementVNode("div",Z,"位置:"+e.toDisplayString(o.location)+" "+e.toDisplayString(o.desc),1)]),e.createElementVNode("div",ee,e.toDisplayString(o.time),1)],12,W))),128)),E.value.length===0?(e.openBlock(),e.createElementBlock("div",te," 暂无预警数据 ")):e.createCommentVNode("",!0)]),e.renderSlot(c.$slots,"default",{},void 0,!0)]))}})),de=h._export_sfc(ie,[["__scopeId","data-v-a1dccb42"]]);exports.default=de;
@@ -1 +1 @@
1
- "use strict";var L=Object.defineProperty,j=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var S=(f,o,c)=>o in f?L(f,o,{enumerable:!0,configurable:!0,writable:!0,value:c}):f[o]=c,w=(f,o)=>{for(var c in o||(o={}))B.call(o,c)&&S(f,c,o[c]);if(_)for(var c of _(o))R.call(o,c)&&S(f,c,o[c]);return f},A=(f,o)=>j(f,I(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const b=require("./index-PR_k3tQg.cjs");require("element-plus");const P=require("./EChartComponentBase-pfIekVB2.cjs");require("./index-CJgyJTvc.cjs");const O=require("./ele-lin-icon-Dke_1AmT.cjs"),E=require("./echarts-BB8O2KSA.cjs"),q={class:"monitor-data-wrapper"},U={class:"panel-header"},$={class:"header-left"},F={class:"header-title"},z={class:"search-bar"},G=["placeholder"],H={class:"date-picker-row"},Q={class:"date-picker-item"},W={class:"date-picker-item"},J={class:"chart-area"},K={class:"chart-header"},X={class:"chart-title"},Y=["id"],Z={DEFAULT_ICON:O.DEFAULT_ICON,ACTIVE_ICON:O.ACTIVE_ICON,NAME_CN:"监测数据",NAME_EN:"Monitor Data",ORDER:9,PLATFORM:["pc","screen"]},ee={title:{value:"监测数据",type:"string",label:"component.monitorData.title"},searchPlaceholder:{value:"搜索监测点、设备...",type:"string",label:"component.monitorData.searchPlaceholder"},trendTitle:{value:"位移监测趋势",type:"string",label:"component.monitorData.trendTitle"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.monitorData.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.monitorData.accentColor"},glowEffect:{value:!0,type:"checkbox",label:"component.monitorData.glowEffect"},unit:{value:"mm",type:"string",label:"component.monitorData.unit"},points:{value:10,type:"number",label:"component.options.points",min:5,max:50}},te=[{name:"监测点-01",fv:"displacement",object_id:"",color:"#00d4ff"}],ae=["name","fv","object_id","color"],oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],re={useAlias:!1,multiObject:!0,source:"mosaic"},le={DEFAULT:Z,OPTIONS:ee,DATA:te,PARAMS:ae,SOURCE:oe,COMMON:re},ne=t.defineComponent(A(w({},le),{__name:"monitorData",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(f){t.useCssVars(r=>({v1e07c062:t.unref(m).bgColor,v704d6070:t.unref(m).borderColor,v39718fa7:t.unref(m).textColor,v56e3c1ea:t.unref(m).accentColor,v3c05cfa7:t.unref(m).glowEffect?`drop-shadow(0 0 6px ${t.unref(m).accentColor})`:"none",v65d0985a:t.unref(m).glowEffect?`0 0 10px ${t.unref(m).accentColor}`:"none"}));const o=f;class c extends P.EChartComponentBase{constructor(){super(...arguments),this.historyData=new Map,this.xAxisData=[]}extractStyles(){var a,d,p,n,u,l,y,s,v,i,D;const{options:e}=this.props.conf;return{title:((a=e==null?void 0:e.title)==null?void 0:a.value)||"监测数据",searchPlaceholder:((d=e==null?void 0:e.searchPlaceholder)==null?void 0:d.value)||"搜索监测点、设备...",trendTitle:((p=e==null?void 0:e.trendTitle)==null?void 0:p.value)||"位移监测趋势",bgColor:((n=e==null?void 0:e.bgColor)==null?void 0:n.value)||"#1a2a3a",borderColor:((u=e==null?void 0:e.borderColor)==null?void 0:u.value)||"#2a4a6a",textColor:((l=e==null?void 0:e.textColor)==null?void 0:l.value)||"#ffffff",accentColor:((y=e==null?void 0:e.accentColor)==null?void 0:y.value)||"#00d4ff",glowEffect:(v=(s=e==null?void 0:e.glowEffect)==null?void 0:s.value)!=null?v:!0,unit:((i=e==null?void 0:e.unit)==null?void 0:i.value)||"mm",points:((D=e==null?void 0:e.points)==null?void 0:D.value)||10}}getDefaultData(){return[{name:"监测点-01",fv:"displacement",object_id:"",color:"#00d4ff"}]}generateMockData(e){const a=[];let d=1;for(let p=0;p<e;p++)d+=Math.random()*1.5,a.push(parseFloat(d.toFixed(1)));return a}getChartOption(e=""){var y;const a=((y=this.props.conf)==null?void 0:y.data)||this.getDefaultData(),d=this.extractStyles(),p=d.points,n=b.getxAxisDataTime(p,this.props.mode,!1);this.xAxisData=n;let u;e?u=a.filter(s=>{var v;return(v=s.name)==null?void 0:v.toLowerCase().includes(e.toLowerCase())}):u=a.length>0?[a[0]]:a;const l=u.map((s,v)=>{let i=this.historyData.get(s.name);return(!i||i.length===0)&&(i=this.generateMockData(p),this.historyData.set(s.name,i)),s.color,{name:s.name,type:"line",smooth:!0,symbol:"circle",symbolSize:8,data:i,lineStyle:{width:3,color:new E.LinearGradient(0,0,1,0,[{offset:0,color:"#2ecc71"},{offset:.5,color:"#f39c12"},{offset:1,color:"#e74c3c"}])},itemStyle:{color:D=>{const V=D.value;return V<3?"#2ecc71":V<6?"#f39c12":"#e74c3c"},borderColor:"#fff",borderWidth:2},areaStyle:{color:new E.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(0, 212, 255, 0.3)"},{offset:1,color:"rgba(0, 212, 255, 0.05)"}])}}});return{grid:{left:50,right:20,top:40,bottom:30},tooltip:{trigger:"axis",backgroundColor:"rgba(0, 0, 0, 0.8)",borderColor:"#2a4a6a",textStyle:{color:"#fff"},formatter:s=>{let v=`<div style="font-weight:bold">${s[0].axisValue}</div>`;return s.forEach(i=>{v+=`<div>${i.marker} ${i.seriesName}: ${i.value} ${d.unit}</div>`}),v}},xAxis:{type:"category",data:n,axisLine:{lineStyle:{color:"#2a4a6a"}},axisLabel:{color:"#ffffff",fontSize:11}},yAxis:{type:"value",name:d.unit,nameTextStyle:{color:"#ffffff",fontSize:12},axisLine:{show:!1},splitLine:{lineStyle:{color:"#2a4a6a",type:"dashed"}},axisLabel:{color:"#ffffff",fontSize:11}},series:l}}setHistoryData(e){const{data:a,common:d}=this.props.conf;if(!a.some(l=>l.object_id&&l.fv))return;const n=d.source||"mosaic";["statistics","calculate"].includes(n)&&(e=b.formatStatisticsResult(e,a));let u=b.handleNullData(e,this.props,"history");a.forEach((l,y)=>{if(!(!l.object_id||!l.fv))try{const v=(u.history[y]||[]).map(i=>{var D;return(D=i[l.fv])!=null?D:0});this.historyData.set(l.name,v)}catch(s){}}),this.updateChartData()}setSocketData(e){if(!e)return;const{data:a}=this.props.conf;if(!a.some(n=>n.object_id&&n.fv))return;const p=this.extractStyles().points;a.forEach(n=>{if(!n.object_id||!n.fv)return;const u=this.extractDataValue(e,n.fv);if(u!=null){let l=this.historyData.get(n.name)||[];l.push(u),l.length>p&&l.shift(),this.historyData.set(n.name,l)}}),this.updateChartData()}updateChartData(e=""){this.chartObj&&this.chartObj.setOption(this.getChartOption(e),!0)}}const h=new c(o,"monitorData");(!o.conf.data||o.conf.data.length===0)&&(o.conf.data=h.getDefaultData()),h.setupLifecycle();const m=h.getStyle(),N=h.getEchartId(),g=t.ref(""),C=t.ref(""),x=t.ref(""),T=()=>{const r=h.xAxisData;if(r&&r.length>0){const e=r[0],a=r[r.length-1];C.value=e.split(" ")[0],x.value=a.split(" ")[0]}},k=()=>{h.updateChartData(g.value)},M=()=>{g.value="",h.updateChartData("")};return t.onMounted(()=>{t.nextTick(()=>{const r=document.getElementById(N);if(r){const e=E.init(r);e.setOption(h.getChartOption()),h.chartObj=e,T()}})}),t.watch(g,r=>{h.updateChartData(r)}),t.watch(()=>{var r;return(r=o.conf)==null?void 0:r.data},()=>{t.nextTick(()=>h.updateChartData(g.value))},{deep:!0}),(r,e)=>(t.openBlock(),t.createElementBlock("div",q,[t.createElementVNode("div",U,[t.createElementVNode("div",$,[e[3]||(e[3]=t.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("line",{x1:"18",y1:"20",x2:"18",y2:"10"}),t.createElementVNode("line",{x1:"12",y1:"20",x2:"12",y2:"4"}),t.createElementVNode("line",{x1:"6",y1:"20",x2:"6",y2:"14"})],-1)),t.createElementVNode("span",F,t.toDisplayString(t.unref(m).title),1)]),e[4]||(e[4]=t.createElementVNode("button",{class:"realtime-btn"}," 实时监测(自动更新) ",-1))]),t.createElementVNode("div",z,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>g.value=a),type:"text",class:"search-input",placeholder:t.unref(m).searchPlaceholder},null,8,G),[[t.vModelText,g.value]]),t.createElementVNode("button",{class:"search-btn",onClick:k},[...e[5]||(e[5]=[t.createElementVNode("span",null,"Q",-1)])]),t.createElementVNode("button",{class:"clear-btn",onClick:M},[...e[6]||(e[6]=[t.createElementVNode("span",null,"×",-1)])])]),t.createElementVNode("div",H,[t.createElementVNode("div",Q,[e[7]||(e[7]=t.createElementVNode("label",null,"开始日期",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>C.value=a),type:"date",class:"date-input"},null,512),[[t.vModelText,C.value]])]),t.createElementVNode("div",W,[e[8]||(e[8]=t.createElementVNode("label",null,"结束日期",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[2]||(e[2]=a=>x.value=a),type:"date",class:"date-input"},null,512),[[t.vModelText,x.value]])])]),t.createElementVNode("div",J,[t.createElementVNode("div",K,[t.createElementVNode("div",X,t.toDisplayString(t.unref(m).trendTitle),1),e[9]||(e[9]=t.createElementVNode("div",{class:"chart-subtitle"},"实时监测数据",-1))]),t.createElementVNode("div",{id:t.unref(N),class:"chart-container"},null,8,Y)]),t.renderSlot(r.$slots,"default",{},void 0,!0)]))}})),se=b._export_sfc(ne,[["__scopeId","data-v-f9e839b2"]]);exports.default=se;
1
+ "use strict";var L=Object.defineProperty,j=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var S=(f,o,c)=>o in f?L(f,o,{enumerable:!0,configurable:!0,writable:!0,value:c}):f[o]=c,w=(f,o)=>{for(var c in o||(o={}))B.call(o,c)&&S(f,c,o[c]);if(_)for(var c of _(o))R.call(o,c)&&S(f,c,o[c]);return f},A=(f,o)=>j(f,I(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const b=require("./index-BxtKIaXl.cjs");require("element-plus");const $=require("./EChartComponentBase-DaRmtdOH.cjs");require("./index-CJgyJTvc.cjs");const O=require("./ele-lin-icon-Dke_1AmT.cjs"),E=require("./echarts-BB8O2KSA.cjs"),q={class:"monitor-data-wrapper"},P={class:"panel-header"},U={class:"header-left"},F={class:"header-title"},z={class:"search-bar"},G=["placeholder"],H={class:"date-picker-row"},Q={class:"date-picker-item"},W={class:"date-picker-item"},J={class:"chart-area"},K={class:"chart-header"},X={class:"chart-title"},Y=["id"],Z={DEFAULT_ICON:O.DEFAULT_ICON,ACTIVE_ICON:O.ACTIVE_ICON,NAME_CN:"监测数据",NAME_EN:"Monitor Data",ORDER:9,PLATFORM:["pc","screen"]},ee={title:{value:"监测数据",type:"string",label:"component.monitorData.title"},searchPlaceholder:{value:"搜索监测点、设备...",type:"string",label:"component.monitorData.searchPlaceholder"},trendTitle:{value:"位移监测趋势",type:"string",label:"component.monitorData.trendTitle"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.monitorData.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.monitorData.accentColor"},glowEffect:{value:!0,type:"checkbox",label:"component.monitorData.glowEffect"},unit:{value:"mm",type:"string",label:"component.monitorData.unit"},points:{value:10,type:"number",label:"component.options.points",min:5,max:50}},te=[{name:"监测点-01",fv:"displacement",object_id:"",color:"#00d4ff"}],ae=["name","fv","object_id","color"],oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],re={useAlias:!1,multiObject:!0,source:"mosaic"},le={DEFAULT:Z,OPTIONS:ee,DATA:te,PARAMS:ae,SOURCE:oe,COMMON:re},ne=t.defineComponent(A(w({},le),{__name:"monitorData",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(f){t.useCssVars(r=>({v1e07c062:t.unref(m).bgColor,v704d6070:t.unref(m).borderColor,v39718fa7:t.unref(m).textColor,v56e3c1ea:t.unref(m).accentColor,v3c05cfa7:t.unref(m).glowEffect?`drop-shadow(0 0 6px ${t.unref(m).accentColor})`:"none",v65d0985a:t.unref(m).glowEffect?`0 0 10px ${t.unref(m).accentColor}`:"none"}));const o=f;class c extends $.EChartComponentBase{constructor(){super(...arguments),this.historyData=new Map,this.xAxisData=[]}extractStyles(){var a,d,p,n,u,l,y,s,v,i,D;const{options:e}=this.props.conf;return{title:((a=e==null?void 0:e.title)==null?void 0:a.value)||"监测数据",searchPlaceholder:((d=e==null?void 0:e.searchPlaceholder)==null?void 0:d.value)||"搜索监测点、设备...",trendTitle:((p=e==null?void 0:e.trendTitle)==null?void 0:p.value)||"位移监测趋势",bgColor:((n=e==null?void 0:e.bgColor)==null?void 0:n.value)||"#1a2a3a",borderColor:((u=e==null?void 0:e.borderColor)==null?void 0:u.value)||"#2a4a6a",textColor:((l=e==null?void 0:e.textColor)==null?void 0:l.value)||"#ffffff",accentColor:((y=e==null?void 0:e.accentColor)==null?void 0:y.value)||"#00d4ff",glowEffect:(v=(s=e==null?void 0:e.glowEffect)==null?void 0:s.value)!=null?v:!0,unit:((i=e==null?void 0:e.unit)==null?void 0:i.value)||"mm",points:((D=e==null?void 0:e.points)==null?void 0:D.value)||10}}getDefaultData(){return[{name:"监测点-01",fv:"displacement",object_id:"",color:"#00d4ff"}]}generateMockData(e){const a=[];let d=1;for(let p=0;p<e;p++)d+=Math.random()*1.5,a.push(parseFloat(d.toFixed(1)));return a}getChartOption(e=""){var y;const a=((y=this.props.conf)==null?void 0:y.data)||this.getDefaultData(),d=this.extractStyles(),p=d.points,n=b.getxAxisDataTime(p,this.props.mode,!1);this.xAxisData=n;let u;e?u=a.filter(s=>{var v;return(v=s.name)==null?void 0:v.toLowerCase().includes(e.toLowerCase())}):u=a.length>0?[a[0]]:a;const l=u.map((s,v)=>{let i=this.historyData.get(s.name);return(!i||i.length===0)&&(i=this.generateMockData(p),this.historyData.set(s.name,i)),s.color,{name:s.name,type:"line",smooth:!0,symbol:"circle",symbolSize:8,data:i,lineStyle:{width:3,color:new E.LinearGradient(0,0,1,0,[{offset:0,color:"#2ecc71"},{offset:.5,color:"#f39c12"},{offset:1,color:"#e74c3c"}])},itemStyle:{color:D=>{const V=D.value;return V<3?"#2ecc71":V<6?"#f39c12":"#e74c3c"},borderColor:"#fff",borderWidth:2},areaStyle:{color:new E.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(0, 212, 255, 0.3)"},{offset:1,color:"rgba(0, 212, 255, 0.05)"}])}}});return{grid:{left:50,right:20,top:40,bottom:30},tooltip:{trigger:"axis",backgroundColor:"rgba(0, 0, 0, 0.8)",borderColor:"#2a4a6a",textStyle:{color:"#fff"},formatter:s=>{let v=`<div style="font-weight:bold">${s[0].axisValue}</div>`;return s.forEach(i=>{v+=`<div>${i.marker} ${i.seriesName}: ${i.value} ${d.unit}</div>`}),v}},xAxis:{type:"category",data:n,axisLine:{lineStyle:{color:"#2a4a6a"}},axisLabel:{color:"#ffffff",fontSize:11}},yAxis:{type:"value",name:d.unit,nameTextStyle:{color:"#ffffff",fontSize:12},axisLine:{show:!1},splitLine:{lineStyle:{color:"#2a4a6a",type:"dashed"}},axisLabel:{color:"#ffffff",fontSize:11}},series:l}}setHistoryData(e){const{data:a,common:d}=this.props.conf;if(!a.some(l=>l.object_id&&l.fv))return;const n=d.source||"mosaic";["statistics","calculate"].includes(n)&&(e=b.formatStatisticsResult(e,a));let u=b.handleNullData(e,this.props,"history");a.forEach((l,y)=>{if(!(!l.object_id||!l.fv))try{const v=(u.history[y]||[]).map(i=>{var D;return(D=i[l.fv])!=null?D:0});this.historyData.set(l.name,v)}catch(s){}}),this.updateChartData()}setSocketData(e){if(!e)return;const{data:a}=this.props.conf;if(!a.some(n=>n.object_id&&n.fv))return;const p=this.extractStyles().points;a.forEach(n=>{if(!n.object_id||!n.fv)return;const u=this.extractDataValue(e,n.fv);if(u!=null){let l=this.historyData.get(n.name)||[];l.push(u),l.length>p&&l.shift(),this.historyData.set(n.name,l)}}),this.updateChartData()}updateChartData(e=""){this.chartObj&&this.chartObj.setOption(this.getChartOption(e),!0)}}const h=new c(o,"monitorData");(!o.conf.data||o.conf.data.length===0)&&(o.conf.data=h.getDefaultData()),h.setupLifecycle();const m=h.getStyle(),N=h.getEchartId(),g=t.ref(""),C=t.ref(""),x=t.ref(""),T=()=>{const r=h.xAxisData;if(r&&r.length>0){const e=r[0],a=r[r.length-1];C.value=e.split(" ")[0],x.value=a.split(" ")[0]}},k=()=>{h.updateChartData(g.value)},M=()=>{g.value="",h.updateChartData("")};return t.onMounted(()=>{t.nextTick(()=>{const r=document.getElementById(N);if(r){const e=E.init(r);e.setOption(h.getChartOption()),h.chartObj=e,T()}})}),t.watch(g,r=>{h.updateChartData(r)}),t.watch(()=>{var r;return(r=o.conf)==null?void 0:r.data},()=>{t.nextTick(()=>h.updateChartData(g.value))},{deep:!0}),(r,e)=>(t.openBlock(),t.createElementBlock("div",q,[t.createElementVNode("div",P,[t.createElementVNode("div",U,[e[3]||(e[3]=t.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("line",{x1:"18",y1:"20",x2:"18",y2:"10"}),t.createElementVNode("line",{x1:"12",y1:"20",x2:"12",y2:"4"}),t.createElementVNode("line",{x1:"6",y1:"20",x2:"6",y2:"14"})],-1)),t.createElementVNode("span",F,t.toDisplayString(t.unref(m).title),1)]),e[4]||(e[4]=t.createElementVNode("button",{class:"realtime-btn"}," 实时监测(自动更新) ",-1))]),t.createElementVNode("div",z,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>g.value=a),type:"text",class:"search-input",placeholder:t.unref(m).searchPlaceholder},null,8,G),[[t.vModelText,g.value]]),t.createElementVNode("button",{class:"search-btn",onClick:k},[...e[5]||(e[5]=[t.createElementVNode("span",null,"Q",-1)])]),t.createElementVNode("button",{class:"clear-btn",onClick:M},[...e[6]||(e[6]=[t.createElementVNode("span",null,"×",-1)])])]),t.createElementVNode("div",H,[t.createElementVNode("div",Q,[e[7]||(e[7]=t.createElementVNode("label",null,"开始日期",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>C.value=a),type:"date",class:"date-input"},null,512),[[t.vModelText,C.value]])]),t.createElementVNode("div",W,[e[8]||(e[8]=t.createElementVNode("label",null,"结束日期",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[2]||(e[2]=a=>x.value=a),type:"date",class:"date-input"},null,512),[[t.vModelText,x.value]])])]),t.createElementVNode("div",J,[t.createElementVNode("div",K,[t.createElementVNode("div",X,t.toDisplayString(t.unref(m).trendTitle),1),e[9]||(e[9]=t.createElementVNode("div",{class:"chart-subtitle"},"实时监测数据",-1))]),t.createElementVNode("div",{id:t.unref(N),class:"chart-container"},null,8,Y)]),t.renderSlot(r.$slots,"default",{},void 0,!0)]))}})),se=b._export_sfc(ne,[["__scopeId","data-v-f9e839b2"]]);exports.default=se;
@@ -12,9 +12,9 @@ var T = (h, o, c) => o in h ? V(h, o, { enumerable: !0, configurable: !0, writab
12
12
  }, M = (h, o) => $(h, U(o));
13
13
  import { defineComponent as G, useCssVars as H, unref as u, ref as _, onMounted as J, nextTick as j, watch as L, openBlock as Q, createElementBlock as W, createElementVNode as e, toDisplayString as N, withDirectives as S, vModelText as E, renderSlot as q } from "vue";
14
14
  import "html2canvas";
15
- import { J as K, N as X, B as Y, _ as Z } from "./index-CaDDNmGU.js";
15
+ import { J as K, N as X, B as Y, _ as Z } from "./index-DVnOzlFW.js";
16
16
  import "element-plus";
17
- import { E as tt } from "./EChartComponentBase-CrdwK43r.js";
17
+ import { E as tt } from "./EChartComponentBase-CtsX7pXX.js";
18
18
  import "./index-eIsZnzkc.js";
19
19
  import { A as et, D as at } from "./ele-lin-icon-Dax-ZiWV.js";
20
20
  import { i as ot, cn as B } from "./echarts-Bp7QN4X6.js";
@@ -1,4 +1,4 @@
1
- "use strict";var W=Object.defineProperty,Z=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var I=(c,r,i)=>r in c?W(c,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[r]=i,U=(c,r)=>{for(var i in r||(r={}))K.call(r,i)&&I(c,i,r[i]);if(X)for(var i of X(r))Q.call(r,i)&&I(c,i,r[i]);return c},q=(c,r)=>Z(c,J(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/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/date-picker/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),g=require("./index-PR_k3tQg.cjs");require("./index-CJgyJTvc.cjs");const $=require("./ele-lin-icon-Dke_1AmT.cjs"),V=require("./echarts-BB8O2KSA.cjs"),ee={class:"chart-header"},te={class:"chart-title"},le={key:0,class:"click-hint"},oe={class:"modal-header"},ae={class:"modal-title"},ne={class:"modal-body"},ie={class:"modal-toolbar"},re={class:"toolbar-left"},se={class:"toolbar-right"},de={class:"modal-charts"},ce={class:"chart-section"},me={class:"section-header"},pe={class:"chart-section"},ue={class:"section-header"},be={class:"modal-table"},ve={class:"table-header"},fe={class:"table-actions"},ye={class:"code-link"},ge={DEFAULT_ICON:$.DEFAULT_ICON,ACTIVE_ICON:$.ACTIVE_ICON,NAME_CN:"监测点速度曲线",NAME_EN:"Monitor Speed Chart",ORDER:20,PLATFORM:["pc","screen"]},he={title:{value:"监测点速度曲线 (24h)",type:"string",label:"component.monitorSpeed.title"},clickable:{value:!0,type:"boolean",label:"component.monitorSpeed.clickable"},clickAction:{value:"modal",type:"select",label:"component.monitorSpeed.clickAction",options:[{label:"打开弹窗",value:"modal"},{label:"发送事件",value:"event"},{label:"跳转页面",value:"navigate"}]},eventName:{value:"onChartClick",type:"string",label:"component.monitorSpeed.eventName"},targetUrl:{value:"",type:"string",label:"component.monitorSpeed.targetUrl"},modalTitle:{value:"GNSS 监测数据分析",type:"string",label:"component.monitorSpeed.modalTitle"},modalWidth:{value:1200,type:"number",label:"component.monitorSpeed.modalWidth",min:600,max:1920},modalHeight:{value:700,type:"number",label:"component.monitorSpeed.modalHeight",min:400,max:1080},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},lineColor:{value:"#ff6b6b",type:"color",label:"component.deepDisplacement.lineColor"},areaColor:{value:"rgba(255, 107, 107, 0.3)",type:"color",label:"component.monitorSpeed.areaColor"}},Ne=[{object_id:"",speed_fv:"speed",time_fv:"time"}],Ve=["object_id","speed_fv","time_fv"],Se=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],xe={useAlias:!1,multiObject:!1,source:"mosaic"},Ce={DEFAULT:ge,OPTIONS:he,DATA:Ne,PARAMS:Ve,SOURCE:Se,COMMON:xe},_e=e.defineComponent(q(U({},Ce),{__name:"monitorSpeedChart",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){e.useCssVars(l=>({v5aefa6ff:a.value.bgColor,v712b7720:a.value.lineColor,v16bfea52:a.value.textColor}));const r=g.useLinkStore(),i=c,x=`monitorSpeed_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,C=`modalChart_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,_=`modalTrajectory_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,S=e.ref(!1),E=e.ref("all"),k=e.ref("GNSS55"),w=e.ref([g.dayjs().subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),g.dayjs().format("YYYY-MM-DD HH:mm:ss")]),Y=e.ref("xy_speed"),M=e.ref("day"),D=e.ref("day");let m=null,p=null,u=null,h=null;const a=e.computed(()=>{var t,o,d,f,y,b,s,N,n,H,L,O;const{options:l}=i.conf||{};return{title:((t=l==null?void 0:l.title)==null?void 0:t.value)||"监测点速度曲线 (24h)",clickable:((o=l==null?void 0:l.clickable)==null?void 0:o.value)!==!1,clickAction:((d=l==null?void 0:l.clickAction)==null?void 0:d.value)||"modal",eventName:((f=l==null?void 0:l.eventName)==null?void 0:f.value)||"onChartClick",targetUrl:((y=l==null?void 0:l.targetUrl)==null?void 0:y.value)||"",modalTitle:((b=l==null?void 0:l.modalTitle)==null?void 0:b.value)||"GNSS 监测数据分析",modalWidth:((s=l==null?void 0:l.modalWidth)==null?void 0:s.value)||1200,modalHeight:((N=l==null?void 0:l.modalHeight)==null?void 0:N.value)||700,bgColor:((n=l==null?void 0:l.bgColor)==null?void 0:n.value)||"#ffffff",textColor:((H=l==null?void 0:l.textColor)==null?void 0:H.value)||"#333333",lineColor:((L=l==null?void 0:l.lineColor)==null?void 0:L.value)||"#ff6b6b",areaColor:((O=l==null?void 0:l.areaColor)==null?void 0:O.value)||"rgba(255, 107, 107, 0.3)"}}),j=e.ref([{index:1,region:"北帮",code:"GNSS55",time:"2026/1/19 10:39:00",baseX:2450.55,baseY:1300.12,baseH:1150,dispX:1.35,dispY:1.01,dispH:.01,dispXY:10.88},{index:2,region:"北帮",code:"GNSS55",time:"2026/1/20 10:39:00",baseX:2450.55,baseY:1300.12,baseH:1150,dispX:1.21,dispY:.91,dispH:.01,dispXY:10.89}]),T=()=>{const l=[],t=g.dayjs();for(let o=24;o>=0;o--){const d=t.subtract(o,"hour"),f=6+Math.sin(o*.5)*2,y=(Math.random()-.5)*2;l.push({time:d.format("MM-DD HH:mm"),value:Math.max(0,f+y)})}return l},z=()=>{const l=T(),t=a.value;return{tooltip:{trigger:"axis",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:o=>{const d=o[0];return`<div style="padding: 4px 8px;">
1
+ "use strict";var W=Object.defineProperty,Z=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var I=(c,r,i)=>r in c?W(c,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[r]=i,q=(c,r)=>{for(var i in r||(r={}))K.call(r,i)&&I(c,i,r[i]);if(X)for(var i of X(r))Q.call(r,i)&&I(c,i,r[i]);return c},U=(c,r)=>Z(c,J(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/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/date-picker/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),g=require("./index-BxtKIaXl.cjs");require("./index-CJgyJTvc.cjs");const $=require("./ele-lin-icon-Dke_1AmT.cjs"),V=require("./echarts-BB8O2KSA.cjs"),ee={class:"chart-header"},te={class:"chart-title"},le={key:0,class:"click-hint"},oe={class:"modal-header"},ae={class:"modal-title"},ne={class:"modal-body"},ie={class:"modal-toolbar"},re={class:"toolbar-left"},se={class:"toolbar-right"},de={class:"modal-charts"},ce={class:"chart-section"},me={class:"section-header"},pe={class:"chart-section"},ue={class:"section-header"},be={class:"modal-table"},ve={class:"table-header"},fe={class:"table-actions"},ye={class:"code-link"},ge={DEFAULT_ICON:$.DEFAULT_ICON,ACTIVE_ICON:$.ACTIVE_ICON,NAME_CN:"监测点速度曲线",NAME_EN:"Monitor Speed Chart",ORDER:20,PLATFORM:["pc","screen"]},he={title:{value:"监测点速度曲线 (24h)",type:"string",label:"component.monitorSpeed.title"},clickable:{value:!0,type:"boolean",label:"component.monitorSpeed.clickable"},clickAction:{value:"modal",type:"select",label:"component.monitorSpeed.clickAction",options:[{label:"打开弹窗",value:"modal"},{label:"发送事件",value:"event"},{label:"跳转页面",value:"navigate"}]},eventName:{value:"onChartClick",type:"string",label:"component.monitorSpeed.eventName"},targetUrl:{value:"",type:"string",label:"component.monitorSpeed.targetUrl"},modalTitle:{value:"GNSS 监测数据分析",type:"string",label:"component.monitorSpeed.modalTitle"},modalWidth:{value:1200,type:"number",label:"component.monitorSpeed.modalWidth",min:600,max:1920},modalHeight:{value:700,type:"number",label:"component.monitorSpeed.modalHeight",min:400,max:1080},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},lineColor:{value:"#ff6b6b",type:"color",label:"component.deepDisplacement.lineColor"},areaColor:{value:"rgba(255, 107, 107, 0.3)",type:"color",label:"component.monitorSpeed.areaColor"}},Ne=[{object_id:"",speed_fv:"speed",time_fv:"time"}],Ve=["object_id","speed_fv","time_fv"],Se=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],xe={useAlias:!1,multiObject:!1,source:"mosaic"},Ce={DEFAULT:ge,OPTIONS:he,DATA:Ne,PARAMS:Ve,SOURCE:Se,COMMON:xe},_e=e.defineComponent(U(q({},Ce),{__name:"monitorSpeedChart",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){e.useCssVars(l=>({v5aefa6ff:a.value.bgColor,v712b7720:a.value.lineColor,v16bfea52:a.value.textColor}));const r=g.useLinkStore(),i=c,x=`monitorSpeed_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,C=`modalChart_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,_=`modalTrajectory_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,S=e.ref(!1),E=e.ref("all"),k=e.ref("GNSS55"),w=e.ref([g.dayjs().subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),g.dayjs().format("YYYY-MM-DD HH:mm:ss")]),Y=e.ref("xy_speed"),M=e.ref("day"),D=e.ref("day");let m=null,p=null,u=null,h=null;const a=e.computed(()=>{var t,o,d,f,y,b,s,N,n,H,L,O;const{options:l}=i.conf||{};return{title:((t=l==null?void 0:l.title)==null?void 0:t.value)||"监测点速度曲线 (24h)",clickable:((o=l==null?void 0:l.clickable)==null?void 0:o.value)!==!1,clickAction:((d=l==null?void 0:l.clickAction)==null?void 0:d.value)||"modal",eventName:((f=l==null?void 0:l.eventName)==null?void 0:f.value)||"onChartClick",targetUrl:((y=l==null?void 0:l.targetUrl)==null?void 0:y.value)||"",modalTitle:((b=l==null?void 0:l.modalTitle)==null?void 0:b.value)||"GNSS 监测数据分析",modalWidth:((s=l==null?void 0:l.modalWidth)==null?void 0:s.value)||1200,modalHeight:((N=l==null?void 0:l.modalHeight)==null?void 0:N.value)||700,bgColor:((n=l==null?void 0:l.bgColor)==null?void 0:n.value)||"#ffffff",textColor:((H=l==null?void 0:l.textColor)==null?void 0:H.value)||"#333333",lineColor:((L=l==null?void 0:l.lineColor)==null?void 0:L.value)||"#ff6b6b",areaColor:((O=l==null?void 0:l.areaColor)==null?void 0:O.value)||"rgba(255, 107, 107, 0.3)"}}),j=e.ref([{index:1,region:"北帮",code:"GNSS55",time:"2026/1/19 10:39:00",baseX:2450.55,baseY:1300.12,baseH:1150,dispX:1.35,dispY:1.01,dispH:.01,dispXY:10.88},{index:2,region:"北帮",code:"GNSS55",time:"2026/1/20 10:39:00",baseX:2450.55,baseY:1300.12,baseH:1150,dispX:1.21,dispY:.91,dispH:.01,dispXY:10.89}]),T=()=>{const l=[],t=g.dayjs();for(let o=24;o>=0;o--){const d=t.subtract(o,"hour"),f=6+Math.sin(o*.5)*2,y=(Math.random()-.5)*2;l.push({time:d.format("MM-DD HH:mm"),value:Math.max(0,f+y)})}return l},z=()=>{const l=T(),t=a.value;return{tooltip:{trigger:"axis",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:o=>{const d=o[0];return`<div style="padding: 4px 8px;">
2
2
  <div style="font-weight: 600; margin-bottom: 4px;">${d.name}</div>
3
3
  <div style="display: flex; align-items: center; gap: 4px;">
4
4
  <span style="display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: ${t.lineColor};"></span>
@@ -20,7 +20,7 @@ import "element-plus/es/components/input/style/css";
20
20
  import "element-plus/es/components/select/style/css";
21
21
  import "element-plus/es/components/option/style/css";
22
22
  import { defineComponent as be, useCssVars as ve, ref as f, computed as fe, onMounted as ge, nextTick as P, onBeforeUnmount as ye, watch as he, openBlock as Y, createElementBlock as W, normalizeClass as Se, createElementVNode as l, toDisplayString as w, createCommentVNode as q, createBlock as xe, Teleport as _e, withModifiers as Ce, normalizeStyle as ke, createVNode as o, withCtx as u, createTextVNode as _, renderSlot as Ye } from "vue";
23
- import { l as we, d as C, _ as Me } from "./index-CaDDNmGU.js";
23
+ import { l as we, d as C, _ as Me } from "./index-DVnOzlFW.js";
24
24
  import "./index-eIsZnzkc.js";
25
25
  import { A as De, D as ze } from "./ele-lin-icon-Dax-ZiWV.js";
26
26
  import { i as M, cn as Ne } from "./echarts-Bp7QN4X6.js";
@@ -1,2 +1,2 @@
1
- "use strict";var v=Object.defineProperty,N=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var O=(s,o,l)=>o in s?v(s,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[o]=l,f=(s,o)=>{for(var l in o||(o={}))L.call(o,l)&&O(s,l,o[l]);if(b)for(var l of b(o))T.call(o,l)&&O(s,l,o[l]);return s},S=(s,o)=>N(s,D(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),m=require("./index-PR_k3tQg.cjs");require("element-plus");const z=require("./EChartComponentBase-pfIekVB2.cjs"),I=require("./titleStyle-NSnz6cUg.cjs"),A=require("./ele-mxa-icon-fgN0MLnh.cjs"),R=require("./install-DV5cEgNV.cjs"),q=require("./install-CltTFs4e.cjs"),x=require("./installCanvasRenderer-CyhM1Qpl.cjs"),M=require("./install-C8buXQPI.cjs"),j=require("./install-CYwVETsi.cjs"),B={class:"mix-body"},V=["id"],k={DEFAULT_ICON:A.DEFAULT_ICON,ACTIVE_ICON:A.ACTIVE_ICON,NAME_CN:"双X轴",NAME_EN:"Double X-Axis",ORDER:3,PLATFORM:["pc","screen","mobile"]},P={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,top:20,bottom:10,left:20,right:30,points:50,isSmooth:!1,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},$=[{name:"参数一",fv:"",color:"#5793f3",object_id:""},{name:"参数二",fv:"",color:"#d14a61",object_id:""}],w=["name","fv","object_id","color","source"],F=["mosaic","statistics","calculate"],U=2,X={useAlias:!1,null:{type:"0",value:""},multiObject:!1,showBothModes:!0,source:"mosaic",rate:{checked:!1,value:1}},H={DEFAULT:k,OPTIONS:P,DATA:$,PARAMS:w,SOURCE:F,ITEMS:U,COMMON:X},W=i.defineComponent(S(f({},H),{__name:"mxa",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(s){x.use([R.install,q.install,x.install,M.install,x.install$1,j.install]);const o=s;class l extends z.EChartComponentBase{extractStyles(){return S(f({},super.extractStyles()),{isSmooth:this.getOptionValue("isSmooth",!1)})}getChartOption(){const t=this.Style.value,{data:a}=this.props.conf;return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}},textStyle:{fontSize:t.textSize}},legend:{show:!0,data:a.map(n=>n.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},xAxis:this.formatXAxis(),yAxis:{type:"value",splitNumber:4,splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}}},series:this.formatSeries()}}formatXAxis(){const t=this.Style.value;return this.props.conf.data.map((a,n)=>({type:"category",boundaryGap:!1,data:this.getTimeAxis(),axisLabel:{formatter:u=>u.includes(" ")?u.replace(" ",`
1
+ "use strict";var v=Object.defineProperty,N=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var O=(s,o,l)=>o in s?v(s,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):s[o]=l,f=(s,o)=>{for(var l in o||(o={}))L.call(o,l)&&O(s,l,o[l]);if(b)for(var l of b(o))T.call(o,l)&&O(s,l,o[l]);return s},S=(s,o)=>N(s,D(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),m=require("./index-BxtKIaXl.cjs");require("element-plus");const z=require("./EChartComponentBase-DaRmtdOH.cjs"),I=require("./titleStyle-NSnz6cUg.cjs"),A=require("./ele-mxa-icon-fgN0MLnh.cjs"),x=require("./installCanvasRenderer-CyhM1Qpl.cjs"),R=require("./install-DV5cEgNV.cjs"),q=require("./install-CltTFs4e.cjs"),M=require("./install-C8buXQPI.cjs"),j=require("./install-CYwVETsi.cjs"),B={class:"mix-body"},V=["id"],$={DEFAULT_ICON:A.DEFAULT_ICON,ACTIVE_ICON:A.ACTIVE_ICON,NAME_CN:"双X轴",NAME_EN:"Double X-Axis",ORDER:3,PLATFORM:["pc","screen","mobile"]},k={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,top:20,bottom:10,left:20,right:30,points:50,isSmooth:!1,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},P=[{name:"参数一",fv:"",color:"#5793f3",object_id:""},{name:"参数二",fv:"",color:"#d14a61",object_id:""}],w=["name","fv","object_id","color","source"],F=["mosaic","statistics","calculate"],U=2,X={useAlias:!1,null:{type:"0",value:""},multiObject:!1,showBothModes:!0,source:"mosaic",rate:{checked:!1,value:1}},H={DEFAULT:$,OPTIONS:k,DATA:P,PARAMS:w,SOURCE:F,ITEMS:U,COMMON:X},W=i.defineComponent(S(f({},H),{__name:"mxa",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(s){x.use([R.install,q.install,x.install,M.install,x.install$1,j.install]);const o=s;class l extends z.EChartComponentBase{extractStyles(){return S(f({},super.extractStyles()),{isSmooth:this.getOptionValue("isSmooth",!1)})}getChartOption(){const t=this.Style.value,{data:a}=this.props.conf;return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}},textStyle:{fontSize:t.textSize}},legend:{show:!0,data:a.map(n=>n.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},xAxis:this.formatXAxis(),yAxis:{type:"value",splitNumber:4,splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}}},series:this.formatSeries()}}formatXAxis(){const t=this.Style.value;return this.props.conf.data.map((a,n)=>({type:"category",boundaryGap:!1,data:this.getTimeAxis(),axisLabel:{formatter:u=>u.includes(" ")?u.replace(" ",`
2
2
  `):u,color:t.textColor,fontSize:t.textSize},axisLine:{onZero:!1,lineStyle:{color:a.color||m.COLORS[n]}},axisTick:{alignWithLabel:!0}}))}formatSeries(){const t=this.Style.value;return this.props.conf.data.map((a,n)=>({type:"line",name:a.name,xAxisIndex:n,smooth:t.isSmooth,itemStyle:{color:a.color||m.COLORS[n]},lineStyle:{color:a.color||m.COLORS[n]},data:m.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:a,common:n}=this.props.conf,u=n.source||"mosaic",e=this.chartObj.getOption();a.forEach((c,d)=>{const p=this.extractDataValue(t,c.fv),C=["statistics","calculate"].includes(u)?t.start_time:t.datetime;C!=null&&(e.xAxis[d].data.push(C),e.series[d].data.push(p))});const r=m.addRealtimeData(e.xAxis[0].data,e.series.map(c=>c.data));e.xAxis.forEach(c=>{c.data=r.times.slice(-this.Style.value.points)}),e.series.forEach((c,d)=>{var p;c.data=((p=r.data[d])==null?void 0:p.slice(-this.Style.value.points))||[]}),this.updateChart(e)}setHistoryData(t){if(!t)return;const a=this.chartObj.getOption(),n=Number(this.Style.value.points)||50,u=e=>{if(e==null||e===""||e==="-")return null;const r=Number(e);return Number.isFinite(r)?r:null};t.forEach((e,r)=>{var d;if(!a.xAxis[r]||!a.series[r]||!((d=e.time)!=null&&d.length))return;a.xAxis[r].data=e.time.slice(-n);const c=e.data||[];a.series[r].data=c.map(u).slice(-n)}),this.updateChart(a)}}const h=new l(o,"mxa");h.setupLifecycle();const y=h.getStyle(),E=h.getEchartId(),_=i.computed(()=>I.generateTitleStyle(o.conf.options));return(g,t)=>(i.openBlock(),i.createElementBlock("div",{class:"mix-component",style:i.normalizeStyle({background:i.unref(y).bgColor,borderRadius:`${i.unref(y).radiusSize}px`})},[i.createElementVNode("div",{class:"mix-title",style:i.normalizeStyle(_.value)},i.toDisplayString(s.conf.caption||s.conf.name),5),i.createElementVNode("div",B,[i.createElementVNode("div",{class:"w-full h-full",id:i.unref(E)},null,8,V)]),i.renderSlot(g.$slots,"default",{},void 0,!0)],4))}})),G=m._export_sfc(W,[["__scopeId","data-v-972a4b4a"]]);exports.default=G;
@@ -11,14 +11,14 @@ var A = (i, o, s) => o in i ? v(i, o, { enumerable: !0, configurable: !0, writab
11
11
  return i;
12
12
  }, f = (i, o) => D(i, z(o));
13
13
  import { defineComponent as T, computed as R, openBlock as I, createElementBlock as M, normalizeStyle as _, unref as h, createElementVNode as S, toDisplayString as j, renderSlot as B } from "vue";
14
- import { C as x, n as k, o as $, _ as P } from "./index-CaDDNmGU.js";
14
+ import { C as x, n as k, o as $, _ as P } from "./index-DVnOzlFW.js";
15
15
  import "element-plus";
16
- import { E as V } from "./EChartComponentBase-CrdwK43r.js";
16
+ import { E as V } from "./EChartComponentBase-CtsX7pXX.js";
17
17
  import { g as w } from "./titleStyle-BT5GlpAb.js";
18
18
  import { A as F, D as U } from "./ele-mxa-icon-CJWttkCK.js";
19
- import { i as X } from "./install-DdM8j5Ll.js";
20
- import { i as H } from "./install-CEl1AYgZ.js";
21
- import { u as W, i as G, a as Z } from "./installCanvasRenderer-oDYkyVFy.js";
19
+ import { u as X, i as H, a as W } from "./installCanvasRenderer-oDYkyVFy.js";
20
+ import { i as G } from "./install-DdM8j5Ll.js";
21
+ import { i as Z } from "./install-CEl1AYgZ.js";
22
22
  import { i as q } from "./install-DbAuuRVv.js";
23
23
  import { i as J } from "./install-uPZUxWT9.js";
24
24
  const K = { class: "mix-body" }, Q = ["id"], Y = {
@@ -70,7 +70,7 @@ const K = { class: "mix-body" }, Q = ["id"], Y = {
70
70
  theme: { type: String, default: "light" }
71
71
  },
72
72
  setup(i) {
73
- W([X, H, G, q, Z, J]);
73
+ X([G, Z, H, q, W, J]);
74
74
  const o = i;
75
75
  class s extends V {
76
76
  extractStyles() {
@@ -15,8 +15,8 @@ import "element-plus/es/components/base/style/css";
15
15
  import "element-plus/es/components/button/style/css";
16
16
  import "element-plus/es/components/icon/style/css";
17
17
  import { defineComponent as $, ref as B, computed as U, onMounted as X, onBeforeUnmount as F, openBlock as V, createElementBlock as P, normalizeStyle as s, unref as e, createBlock as j, withModifiers as G, withCtx as x, createVNode as k, createCommentVNode as q, createElementVNode as S, toDisplayString as H, renderSlot as J } from "vue";
18
- import { B as K } from "./BaseComponent-D7kfvQid.js";
19
- import { _ as Q } from "./index-CaDDNmGU.js";
18
+ import { B as K } from "./BaseComponent-CcjKs8HB.js";
19
+ import { _ as Q } from "./index-DVnOzlFW.js";
20
20
  import { ArrowLeft as W } from "@element-plus/icons-vue";
21
21
  import { A as Y, D as Z } from "./ele-vlu-icon-Bg6EHZdJ.js";
22
22
  const tt = {
@@ -1 +1 @@
1
- "use strict";var k=Object.defineProperty,E=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var v=(a,t,n)=>t in a?k(a,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[t]=n,y=(a,t)=>{for(var n in t||(t={}))A.call(t,n)&&v(a,n,t[n]);if(C)for(var n of C(t))I.call(t,n)&&v(a,n,t[n]);return a},b=(a,t)=>E(a,N(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),T=require("./BaseComponent-C42zZPAg.cjs"),z=require("./index-PR_k3tQg.cjs"),q=require("@element-plus/icons-vue"),_=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),L={DEFAULT_ICON:_.DEFAULT_ICON,ACTIVE_ICON:_.ACTIVE_ICON,NAME_CN:"导航栏",NAME_EN:"Nav Bar",ORDER:1,PLATFORM:["pc","screen","mobile"]},M={bgColor:"#ffffff",height:44,paddingX:12,titleColor:"#303133",titleSize:16,iconColor:"#303133",showBack:!0,showBorder:!0,borderColor:"#ebeef5",navChannel:"myValueApp"},D=[{title:"mix-webView"}],R=["title","navChannel"],U=[],$={source:"mosaic"},P={DEFAULT:L,OPTIONS:M,DATA:D,PARAMS:R,SOURCE:U,COMMON:$},X=e.defineComponent(b(y({},P),{__name:"myValue",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){var h,f;const t=a;class n extends T.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#ffffff"),height:this.getOptionValue("height",44),paddingX:this.getOptionValue("paddingX",12),titleColor:this.getOptionValue("titleColor","#303133"),titleSize:this.getOptionValue("titleSize",16),iconColor:this.getOptionValue("iconColor","#303133"),showBack:this.getOptionValue("showBack",!0),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#ebeef5")}}init(){var o;this.Style.value=this.extractStyles(),this.applyTheme(),(o=this.props.conf.data)!=null&&o.length||(this.props.conf.data=[{title:"mix-webView"}])}}const c=new n(t,"myValue");c.setupLifecycle();const i=c.getStyle(),l=t.conf,u=e.ref((l==null?void 0:l.caption)||((f=(h=l==null?void 0:l.data)==null?void 0:h[0])==null?void 0:f.title)||"mix-webView"),s=e.ref(!1),B=e.computed(()=>window.history.length>1),d=()=>{var r,o;return((r=i.value)==null?void 0:r.navChannel)||((o=l==null?void 0:l.options)==null?void 0:o.navChannel)||"myValueApp"},p=r=>{const o=(r==null?void 0:r.detail)||{};o&&o.channel===d()&&(typeof o.title=="string"&&(u.value=o.title),typeof o.showBack=="boolean"&&(s.value=o.showBack))};e.onMounted(()=>{window.addEventListener("mix-myvalue-nav:update",p)}),e.onBeforeUnmount(()=>{window.removeEventListener("mix-myvalue-nav:update",p)});const S=()=>{if(window.dispatchEvent(new CustomEvent("mix-myvalue-nav:back",{detail:{channel:d()}})),t.mode!=="edit"){if(B.value){window.history.back();return}window.location.href="/home"}};return(r,o)=>{var m,g,w;const x=V.ElIcon,O=V.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"nav-container",style:e.normalizeStyle({background:e.unref(i).bgColor,height:`${e.unref(i).height}px`,paddingLeft:`${e.unref(i).paddingX}px`,paddingRight:`${e.unref(i).paddingX}px`,borderBottom:e.unref(i).showBorder?`1px solid ${e.unref(i).borderColor}`:"none"})},[s.value||e.unref(i).showBack?(e.openBlock(),e.createBlock(O,{key:0,class:"nav-back",style:e.normalizeStyle({color:e.unref(i).iconColor}),onClick:e.withModifiers(S,["stop"]),"aria-label":"back",type:"text"},{default:e.withCtx(()=>[e.createVNode(x,{size:22},{default:e.withCtx(()=>[e.createVNode(e.unref(q.ArrowLeft))]),_:1})]),_:1},8,["style"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"nav-title",style:e.normalizeStyle({color:e.unref(i).titleColor,fontSize:`${e.unref(i).titleSize}px`})},e.toDisplayString(u.value||e.unref(l).caption||((w=(g=(m=e.unref(l))==null?void 0:m.data)==null?void 0:g[0])==null?void 0:w.title)||"mix-webView"),5),e.createElementVNode("div",{class:"nav-right",style:e.normalizeStyle({width:s.value||e.unref(i).showBack?"32px":"0px"})},null,4),e.renderSlot(r.$slots,"default",{},void 0,!0)],4)}}})),F=z._export_sfc(X,[["__scopeId","data-v-1d778a85"]]);exports.default=F;
1
+ "use strict";var k=Object.defineProperty,E=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var y=(r,t,n)=>t in r?k(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n,v=(r,t)=>{for(var n in t||(t={}))A.call(t,n)&&y(r,n,t[n]);if(C)for(var n of C(t))I.call(t,n)&&y(r,n,t[n]);return r},b=(r,t)=>E(r,N(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),T=require("./BaseComponent-pJuOPMpe.cjs"),q=require("./index-BxtKIaXl.cjs"),z=require("@element-plus/icons-vue"),_=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),L={DEFAULT_ICON:_.DEFAULT_ICON,ACTIVE_ICON:_.ACTIVE_ICON,NAME_CN:"导航栏",NAME_EN:"Nav Bar",ORDER:1,PLATFORM:["pc","screen","mobile"]},M={bgColor:"#ffffff",height:44,paddingX:12,titleColor:"#303133",titleSize:16,iconColor:"#303133",showBack:!0,showBorder:!0,borderColor:"#ebeef5",navChannel:"myValueApp"},$=[{title:"mix-webView"}],D=["title","navChannel"],R=[],U={source:"mosaic"},P={DEFAULT:L,OPTIONS:M,DATA:$,PARAMS:D,SOURCE:R,COMMON:U},X=e.defineComponent(b(v({},P),{__name:"myValue",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){var h,f;const t=r;class n extends T.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#ffffff"),height:this.getOptionValue("height",44),paddingX:this.getOptionValue("paddingX",12),titleColor:this.getOptionValue("titleColor","#303133"),titleSize:this.getOptionValue("titleSize",16),iconColor:this.getOptionValue("iconColor","#303133"),showBack:this.getOptionValue("showBack",!0),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#ebeef5")}}init(){var o;this.Style.value=this.extractStyles(),this.applyTheme(),(o=this.props.conf.data)!=null&&o.length||(this.props.conf.data=[{title:"mix-webView"}])}}const c=new n(t,"myValue");c.setupLifecycle();const i=c.getStyle(),a=t.conf,u=e.ref((a==null?void 0:a.caption)||((f=(h=a==null?void 0:a.data)==null?void 0:h[0])==null?void 0:f.title)||"mix-webView"),s=e.ref(!1),B=e.computed(()=>window.history.length>1),d=()=>{var l,o;return((l=i.value)==null?void 0:l.navChannel)||((o=a==null?void 0:a.options)==null?void 0:o.navChannel)||"myValueApp"},p=l=>{const o=(l==null?void 0:l.detail)||{};o&&o.channel===d()&&(typeof o.title=="string"&&(u.value=o.title),typeof o.showBack=="boolean"&&(s.value=o.showBack))};e.onMounted(()=>{window.addEventListener("mix-myvalue-nav:update",p)}),e.onBeforeUnmount(()=>{window.removeEventListener("mix-myvalue-nav:update",p)});const S=()=>{if(window.dispatchEvent(new CustomEvent("mix-myvalue-nav:back",{detail:{channel:d()}})),t.mode!=="edit"){if(B.value){window.history.back();return}window.location.href="/home"}};return(l,o)=>{var m,g,w;const x=V.ElIcon,O=V.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"nav-container",style:e.normalizeStyle({background:e.unref(i).bgColor,height:`${e.unref(i).height}px`,paddingLeft:`${e.unref(i).paddingX}px`,paddingRight:`${e.unref(i).paddingX}px`,borderBottom:e.unref(i).showBorder?`1px solid ${e.unref(i).borderColor}`:"none"})},[s.value||e.unref(i).showBack?(e.openBlock(),e.createBlock(O,{key:0,class:"nav-back",style:e.normalizeStyle({color:e.unref(i).iconColor}),onClick:e.withModifiers(S,["stop"]),"aria-label":"back",type:"text"},{default:e.withCtx(()=>[e.createVNode(x,{size:22},{default:e.withCtx(()=>[e.createVNode(e.unref(z.ArrowLeft))]),_:1})]),_:1},8,["style"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"nav-title",style:e.normalizeStyle({color:e.unref(i).titleColor,fontSize:`${e.unref(i).titleSize}px`})},e.toDisplayString(u.value||e.unref(a).caption||((w=(g=(m=e.unref(a))==null?void 0:m.data)==null?void 0:g[0])==null?void 0:w.title)||"mix-webView"),5),e.createElementVNode("div",{class:"nav-right",style:e.normalizeStyle({width:s.value||e.unref(i).showBack?"32px":"0px"})},null,4),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),F=q._export_sfc(X,[["__scopeId","data-v-1d778a85"]]);exports.default=F;
@@ -1 +1 @@
1
- "use strict";var X=Object.defineProperty,Y=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var S=(r,d,t)=>d in r?X(r,d,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[d]=t,g=(r,d)=>{for(var t in d||(d={}))J.call(d,t)&&S(r,t,d[t]);if(E)for(var t of E(d))K.call(d,t)&&S(r,t,d[t]);return r},O=(r,d)=>Y(r,H(d));var C=(r,d,t)=>new Promise((u,n)=>{var m=s=>{try{l(t.next(s))}catch(i){n(i)}},o=s=>{try{l(t.throw(s))}catch(i){n(i)}},l=s=>s.done?u(s.value):Promise.resolve(s.value).then(m,o);l((t=t.apply(r,d)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/card/style/css");require("element-plus/es/components/skeleton/style/css");require("element-plus/es/components/button/style/css");const e=require("vue"),Q=require("./BaseComponent-C42zZPAg.cjs"),x=require("./index-PR_k3tQg.cjs");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");const h=require("element-plus"),T=require("./ele-arrayCard-icon-QOabvV0y.cjs"),W={class:"page"},Z={class:"actions"},ee=e.defineComponent({__name:"MyValueFormPage",props:{mode:{type:String,default:"add"},model:{type:Object,default:null}},emits:["save","cancel"],setup(r,{emit:d}){const t=r,u=d,n=e.reactive({title:"",desc:""});e.watch(()=>t.model,o=>{var l,s;n.title=(l=o==null?void 0:o.title)!=null?l:"",n.desc=(s=o==null?void 0:o.desc)!=null?s:""},{immediate:!0});const m=()=>{var o,l,s;u("save",{title:((o=n.title)==null?void 0:o.toString().trim())||"未命名",desc:(s=(l=n.desc)==null?void 0:l.toString())!=null?s:""})};return(o,l)=>{const s=p.ElInput,i=p.ElFormItem,y=p.ElForm,_=p.ElButton;return e.openBlock(),e.createElementBlock("div",W,[e.createVNode(y,{"label-position":"top",model:n,class:"form"},{default:e.withCtx(()=>[e.createVNode(i,{label:"标题"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.title,"onUpdate:modelValue":l[0]||(l[0]=v=>n.title=v),placeholder:"请输入标题"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.desc,"onUpdate:modelValue":l[1]||(l[1]=v=>n.desc=v),type:"textarea",rows:3,placeholder:"请输入描述"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),e.createElementVNode("div",Z,[e.createVNode(_,{onClick:l[2]||(l[2]=v=>o.$emit("cancel"))},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(_,{type:"primary",onClick:m},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createTextVNode("保存",-1)])]),_:1})])])}}}),A=x._export_sfc(ee,[["__scopeId","data-v-583abcf7"]]),te={class:"page"},oe={class:"actions"},ae=e.defineComponent({__name:"MyValueDetailPage",props:{item:{type:Object,default:null}},emits:["edit"],setup(r){return(d,t)=>{const u=p.ElDescriptionsItem,n=p.ElDescriptions,m=p.ElButton;return e.openBlock(),e.createElementBlock("div",te,[e.createVNode(n,{column:1,border:""},{default:e.withCtx(()=>[e.createVNode(u,{label:"标题"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString(((o=r.item)==null?void 0:o.title)||"-"),1)]}),_:1}),e.createVNode(u,{label:"描述"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString(((o=r.item)==null?void 0:o.desc)||"-"),1)]}),_:1}),e.createVNode(u,{label:"更新时间"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString(((o=r.item)==null?void 0:o.updatedAt)||"-"),1)]}),_:1})]),_:1}),e.createElementVNode("div",oe,[e.createVNode(m,{type:"primary",onClick:t[0]||(t[0]=o=>d.$emit("edit",r.item))},{default:e.withCtx(()=>[...t[1]||(t[1]=[e.createTextVNode("编辑",-1)])]),_:1})])])}}}),le=x._export_sfc(ae,[["__scopeId","data-v-d6e7f1ea"]]),ne={key:0,class:"list-toolbar"},ie=["onClick"],re={class:"item-sub"},de={key:2,class:"page-wrap"},se={key:3,class:"page-wrap"},ce={key:4,class:"page-wrap"},$={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"列表",NAME_EN:"My Value List",ORDER:2,PLATFORM:["pc","screen","mobile"]},I={bgColor:"#ffffff",radiusSize:8,borderColor:"#ebeef5",showBorder:!0,textColor:"#606266",valueColor:"#303133",itemTitleSize:13,itemValueSize:13,itemHeight:36,cardBgColor:"#ffffff",cardRadius:8,cardPaddingX:12,cardPaddingY:8,cardGap:10,showCardBorder:!0,cardBorderColor:"#f0f0f0"},M=[{title:"Item 1",fv:"",object_id:"",value:"--"},{title:"Item 2",fv:"",object_id:"",value:"--"},{title:"Item 3",fv:"",object_id:"",value:"--"},{title:"Item 4",fv:"",object_id:"",value:"--"}],z=["title","fv","object_id"],P=["mosaic"],D={source:"mosaic",multiObject:!1,hideMultiObject:!0},ue={DEFAULT:$,OPTIONS:I,DATA:M,PARAMS:z,SOURCE:P,COMMON:D},pe=e.defineComponent(O(g({},ue),{__name:"myValueList",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const d=r,t=e.ref("list"),u=e.ref([]),n=e.ref(null),m=e.ref(!1),o=()=>{t.value="list",n.value=null};class l extends Q.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#ffffff"),radiusSize:this.getOptionValue("radiusSize",8),borderColor:this.getOptionValue("borderColor","#ebeef5"),showBorder:this.getOptionValue("showBorder",!0),textColor:this.getOptionValue("textColor","#606266"),valueColor:this.getOptionValue("valueColor","#303133"),itemTitleSize:this.getOptionValue("itemTitleSize",13),itemValueSize:this.getOptionValue("itemValueSize",13),itemHeight:this.getOptionValue("itemHeight",36),cardBgColor:this.getOptionValue("cardBgColor","#ffffff"),cardRadius:this.getOptionValue("cardRadius",8),cardPaddingX:this.getOptionValue("cardPaddingX",12),cardPaddingY:this.getOptionValue("cardPaddingY",8),cardGap:this.getOptionValue("cardGap",10),showCardBorder:this.getOptionValue("showCardBorder",!0),cardBorderColor:this.getOptionValue("cardBorderColor","#f0f0f0"),navChannel:this.getOptionValue("navChannel","myValueApp")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),(!Array.isArray(this.props.conf.data)||this.props.conf.data.length===0)&&(this.props.conf.data=[{title:"Item 1",fv:"",object_id:"",value:"--"},{title:"Item 2",fv:"",object_id:"",value:"--"},{title:"Item 3",fv:"",object_id:"",value:"--"},{title:"Item 4",fv:"",object_id:"",value:"--"}])}}const s=new l(d,"myValueList");s.setupLifecycle();const i=s.getStyle(),y=()=>{var a;return((a=i.value)==null?void 0:a.navChannel)||"myValueApp"},_=()=>{const a=t.value,c=a==="list"?"列表":a==="add"?"新增":a==="edit"?"编辑":"详情";window.dispatchEvent(new CustomEvent("mix-myvalue-nav:update",{detail:{channel:y(),title:c,showBack:a!=="list"}}))},v=a=>{((a==null?void 0:a.detail)||{}).channel===y()&&t.value!=="list"&&o()};e.watch(t,()=>_()),e.onMounted(()=>{window.addEventListener("mix-myvalue-nav:back",v),_()}),e.onBeforeUnmount(()=>{window.removeEventListener("mix-myvalue-nav:back",v)});const L=()=>[{id:"1",title:"示例项 1",desc:"这是详情描述 1",updatedAt:"2026-04-08 10:00"},{id:"2",title:"示例项 2",desc:"这是详情描述 2",updatedAt:"2026-04-08 10:05"},{id:"3",title:"示例项 3",desc:"这是详情描述 3",updatedAt:"2026-04-08 10:10"}],N=()=>C(null,null,function*(){m.value=!0,yield new Promise(a=>setTimeout(a,300)),u.value=L(),m.value=!1});e.onMounted(()=>{N()});const b=()=>C(null,null,function*(){yield N()}),j=()=>{t.value="add"},w=a=>{n.value=g({},a),t.value="detail"},B=a=>{n.value=g({},a),t.value="edit"},q=a=>C(null,null,function*(){h.ElMessage.success("新增成功"),o(),yield b()}),R=a=>C(null,null,function*(){h.ElMessage.success("保存成功"),o(),yield b()}),F=a=>C(null,null,function*(){try{yield h.ElMessageBox.confirm(`确认删除「${a.title}」吗?`,"二次确认",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"})}catch(c){return}h.ElMessage.success("删除成功"),yield b()});return(a,c)=>{const V=p.ElButton,U=p.ElSkeleton,G=p.ElCard;return e.openBlock(),e.createElementBlock("div",{class:"list-container",style:e.normalizeStyle({background:e.unref(i).bgColor,borderRadius:`${e.unref(i).radiusSize}px`,border:e.unref(i).showBorder?`1px solid ${e.unref(i).borderColor}`:"none"})},[t.value==="list"?(e.openBlock(),e.createElementBlock("div",ne,[e.createVNode(V,{type:"primary",size:"small",onClick:j},{default:e.withCtx(()=>[...c[2]||(c[2]=[e.createTextVNode(" 新增 ",-1)])]),_:1})])):e.createCommentVNode("",!0),t.value==="list"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"list-body",style:e.normalizeStyle({gap:`${e.unref(i).cardGap}px`})},[m.value?(e.openBlock(),e.createBlock(U,{key:0,rows:4,animated:""})):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(u.value,f=>(e.openBlock(),e.createBlock(G,{key:f.id,class:"list-card",shadow:"never",style:e.normalizeStyle({background:e.unref(i).cardBgColor,borderRadius:`${e.unref(i).cardRadius}px`,border:e.unref(i).showCardBorder?`1px solid ${e.unref(i).cardBorderColor}`:"none"}),"body-style":{padding:`${e.unref(i).cardPaddingY}px ${e.unref(i).cardPaddingX}px`}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"card-content",onClick:k=>w(f)},[e.createElementVNode("div",{class:"item-title",style:e.normalizeStyle({color:e.unref(i).textColor,fontSize:`${e.unref(i).itemTitleSize}px`})},e.toDisplayString(f.title),5),e.createElementVNode("div",re,e.toDisplayString(f.updatedAt),1)],8,ie),e.createElementVNode("div",{class:"card-actions",onClick:c[0]||(c[0]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(V,{size:"small",onClick:k=>B(f)},{default:e.withCtx(()=>[...c[3]||(c[3]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"]),e.createVNode(V,{size:"small",onClick:k=>w(f)},{default:e.withCtx(()=>[...c[4]||(c[4]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"]),e.createVNode(V,{size:"small",type:"danger",onClick:k=>F(f)},{default:e.withCtx(()=>[...c[5]||(c[5]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])])]),_:2},1032,["style","body-style"]))),128))],4)):t.value==="add"?(e.openBlock(),e.createElementBlock("div",de,[e.createVNode(A,{mode:"add",onSave:q,onCancel:o})])):t.value==="edit"?(e.openBlock(),e.createElementBlock("div",se,[e.createVNode(A,{mode:"edit",model:n.value,onSave:R,onCancel:o},null,8,["model"])])):t.value==="detail"?(e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(le,{item:n.value,onEdit:c[1]||(c[1]=f=>B(n.value))},null,8,["item"])])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),me=x._export_sfc(pe,[["__scopeId","data-v-bac869af"]]);exports.COMMON=D;exports.DATA=M;exports.DEFAULT=$;exports.OPTIONS=I;exports.PARAMS=z;exports.SOURCE=P;exports.default=me;
1
+ "use strict";var X=Object.defineProperty,Y=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var S=(r,d,t)=>d in r?X(r,d,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[d]=t,g=(r,d)=>{for(var t in d||(d={}))J.call(d,t)&&S(r,t,d[t]);if(E)for(var t of E(d))K.call(d,t)&&S(r,t,d[t]);return r},O=(r,d)=>Y(r,H(d));var C=(r,d,t)=>new Promise((u,n)=>{var m=s=>{try{l(t.next(s))}catch(i){n(i)}},o=s=>{try{l(t.throw(s))}catch(i){n(i)}},l=s=>s.done?u(s.value):Promise.resolve(s.value).then(m,o);l((t=t.apply(r,d)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/card/style/css");require("element-plus/es/components/skeleton/style/css");require("element-plus/es/components/button/style/css");const e=require("vue"),Q=require("./BaseComponent-pJuOPMpe.cjs"),x=require("./index-BxtKIaXl.cjs");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");const h=require("element-plus"),T=require("./ele-arrayCard-icon-QOabvV0y.cjs"),W={class:"page"},Z={class:"actions"},ee=e.defineComponent({__name:"MyValueFormPage",props:{mode:{type:String,default:"add"},model:{type:Object,default:null}},emits:["save","cancel"],setup(r,{emit:d}){const t=r,u=d,n=e.reactive({title:"",desc:""});e.watch(()=>t.model,o=>{var l,s;n.title=(l=o==null?void 0:o.title)!=null?l:"",n.desc=(s=o==null?void 0:o.desc)!=null?s:""},{immediate:!0});const m=()=>{var o,l,s;u("save",{title:((o=n.title)==null?void 0:o.toString().trim())||"未命名",desc:(s=(l=n.desc)==null?void 0:l.toString())!=null?s:""})};return(o,l)=>{const s=p.ElInput,i=p.ElFormItem,y=p.ElForm,_=p.ElButton;return e.openBlock(),e.createElementBlock("div",W,[e.createVNode(y,{"label-position":"top",model:n,class:"form"},{default:e.withCtx(()=>[e.createVNode(i,{label:"标题"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.title,"onUpdate:modelValue":l[0]||(l[0]=v=>n.title=v),placeholder:"请输入标题"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.desc,"onUpdate:modelValue":l[1]||(l[1]=v=>n.desc=v),type:"textarea",rows:3,placeholder:"请输入描述"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),e.createElementVNode("div",Z,[e.createVNode(_,{onClick:l[2]||(l[2]=v=>o.$emit("cancel"))},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(_,{type:"primary",onClick:m},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createTextVNode("保存",-1)])]),_:1})])])}}}),A=x._export_sfc(ee,[["__scopeId","data-v-583abcf7"]]),te={class:"page"},oe={class:"actions"},ae=e.defineComponent({__name:"MyValueDetailPage",props:{item:{type:Object,default:null}},emits:["edit"],setup(r){return(d,t)=>{const u=p.ElDescriptionsItem,n=p.ElDescriptions,m=p.ElButton;return e.openBlock(),e.createElementBlock("div",te,[e.createVNode(n,{column:1,border:""},{default:e.withCtx(()=>[e.createVNode(u,{label:"标题"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString(((o=r.item)==null?void 0:o.title)||"-"),1)]}),_:1}),e.createVNode(u,{label:"描述"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString(((o=r.item)==null?void 0:o.desc)||"-"),1)]}),_:1}),e.createVNode(u,{label:"更新时间"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString(((o=r.item)==null?void 0:o.updatedAt)||"-"),1)]}),_:1})]),_:1}),e.createElementVNode("div",oe,[e.createVNode(m,{type:"primary",onClick:t[0]||(t[0]=o=>d.$emit("edit",r.item))},{default:e.withCtx(()=>[...t[1]||(t[1]=[e.createTextVNode("编辑",-1)])]),_:1})])])}}}),le=x._export_sfc(ae,[["__scopeId","data-v-d6e7f1ea"]]),ne={key:0,class:"list-toolbar"},ie=["onClick"],re={class:"item-sub"},de={key:2,class:"page-wrap"},se={key:3,class:"page-wrap"},ce={key:4,class:"page-wrap"},$={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"列表",NAME_EN:"My Value List",ORDER:2,PLATFORM:["pc","screen","mobile"]},I={bgColor:"#ffffff",radiusSize:8,borderColor:"#ebeef5",showBorder:!0,textColor:"#606266",valueColor:"#303133",itemTitleSize:13,itemValueSize:13,itemHeight:36,cardBgColor:"#ffffff",cardRadius:8,cardPaddingX:12,cardPaddingY:8,cardGap:10,showCardBorder:!0,cardBorderColor:"#f0f0f0"},M=[{title:"Item 1",fv:"",object_id:"",value:"--"},{title:"Item 2",fv:"",object_id:"",value:"--"},{title:"Item 3",fv:"",object_id:"",value:"--"},{title:"Item 4",fv:"",object_id:"",value:"--"}],z=["title","fv","object_id"],P=["mosaic"],D={source:"mosaic",multiObject:!1,hideMultiObject:!0},ue={DEFAULT:$,OPTIONS:I,DATA:M,PARAMS:z,SOURCE:P,COMMON:D},pe=e.defineComponent(O(g({},ue),{__name:"myValueList",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const d=r,t=e.ref("list"),u=e.ref([]),n=e.ref(null),m=e.ref(!1),o=()=>{t.value="list",n.value=null};class l extends Q.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#ffffff"),radiusSize:this.getOptionValue("radiusSize",8),borderColor:this.getOptionValue("borderColor","#ebeef5"),showBorder:this.getOptionValue("showBorder",!0),textColor:this.getOptionValue("textColor","#606266"),valueColor:this.getOptionValue("valueColor","#303133"),itemTitleSize:this.getOptionValue("itemTitleSize",13),itemValueSize:this.getOptionValue("itemValueSize",13),itemHeight:this.getOptionValue("itemHeight",36),cardBgColor:this.getOptionValue("cardBgColor","#ffffff"),cardRadius:this.getOptionValue("cardRadius",8),cardPaddingX:this.getOptionValue("cardPaddingX",12),cardPaddingY:this.getOptionValue("cardPaddingY",8),cardGap:this.getOptionValue("cardGap",10),showCardBorder:this.getOptionValue("showCardBorder",!0),cardBorderColor:this.getOptionValue("cardBorderColor","#f0f0f0"),navChannel:this.getOptionValue("navChannel","myValueApp")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),(!Array.isArray(this.props.conf.data)||this.props.conf.data.length===0)&&(this.props.conf.data=[{title:"Item 1",fv:"",object_id:"",value:"--"},{title:"Item 2",fv:"",object_id:"",value:"--"},{title:"Item 3",fv:"",object_id:"",value:"--"},{title:"Item 4",fv:"",object_id:"",value:"--"}])}}const s=new l(d,"myValueList");s.setupLifecycle();const i=s.getStyle(),y=()=>{var a;return((a=i.value)==null?void 0:a.navChannel)||"myValueApp"},_=()=>{const a=t.value,c=a==="list"?"列表":a==="add"?"新增":a==="edit"?"编辑":"详情";window.dispatchEvent(new CustomEvent("mix-myvalue-nav:update",{detail:{channel:y(),title:c,showBack:a!=="list"}}))},v=a=>{((a==null?void 0:a.detail)||{}).channel===y()&&t.value!=="list"&&o()};e.watch(t,()=>_()),e.onMounted(()=>{window.addEventListener("mix-myvalue-nav:back",v),_()}),e.onBeforeUnmount(()=>{window.removeEventListener("mix-myvalue-nav:back",v)});const L=()=>[{id:"1",title:"示例项 1",desc:"这是详情描述 1",updatedAt:"2026-04-08 10:00"},{id:"2",title:"示例项 2",desc:"这是详情描述 2",updatedAt:"2026-04-08 10:05"},{id:"3",title:"示例项 3",desc:"这是详情描述 3",updatedAt:"2026-04-08 10:10"}],N=()=>C(null,null,function*(){m.value=!0,yield new Promise(a=>setTimeout(a,300)),u.value=L(),m.value=!1});e.onMounted(()=>{N()});const b=()=>C(null,null,function*(){yield N()}),q=()=>{t.value="add"},w=a=>{n.value=g({},a),t.value="detail"},B=a=>{n.value=g({},a),t.value="edit"},j=a=>C(null,null,function*(){h.ElMessage.success("新增成功"),o(),yield b()}),R=a=>C(null,null,function*(){h.ElMessage.success("保存成功"),o(),yield b()}),F=a=>C(null,null,function*(){try{yield h.ElMessageBox.confirm(`确认删除「${a.title}」吗?`,"二次确认",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"})}catch(c){return}h.ElMessage.success("删除成功"),yield b()});return(a,c)=>{const V=p.ElButton,U=p.ElSkeleton,G=p.ElCard;return e.openBlock(),e.createElementBlock("div",{class:"list-container",style:e.normalizeStyle({background:e.unref(i).bgColor,borderRadius:`${e.unref(i).radiusSize}px`,border:e.unref(i).showBorder?`1px solid ${e.unref(i).borderColor}`:"none"})},[t.value==="list"?(e.openBlock(),e.createElementBlock("div",ne,[e.createVNode(V,{type:"primary",size:"small",onClick:q},{default:e.withCtx(()=>[...c[2]||(c[2]=[e.createTextVNode(" 新增 ",-1)])]),_:1})])):e.createCommentVNode("",!0),t.value==="list"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"list-body",style:e.normalizeStyle({gap:`${e.unref(i).cardGap}px`})},[m.value?(e.openBlock(),e.createBlock(U,{key:0,rows:4,animated:""})):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(u.value,f=>(e.openBlock(),e.createBlock(G,{key:f.id,class:"list-card",shadow:"never",style:e.normalizeStyle({background:e.unref(i).cardBgColor,borderRadius:`${e.unref(i).cardRadius}px`,border:e.unref(i).showCardBorder?`1px solid ${e.unref(i).cardBorderColor}`:"none"}),"body-style":{padding:`${e.unref(i).cardPaddingY}px ${e.unref(i).cardPaddingX}px`}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"card-content",onClick:k=>w(f)},[e.createElementVNode("div",{class:"item-title",style:e.normalizeStyle({color:e.unref(i).textColor,fontSize:`${e.unref(i).itemTitleSize}px`})},e.toDisplayString(f.title),5),e.createElementVNode("div",re,e.toDisplayString(f.updatedAt),1)],8,ie),e.createElementVNode("div",{class:"card-actions",onClick:c[0]||(c[0]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(V,{size:"small",onClick:k=>B(f)},{default:e.withCtx(()=>[...c[3]||(c[3]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"]),e.createVNode(V,{size:"small",onClick:k=>w(f)},{default:e.withCtx(()=>[...c[4]||(c[4]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"]),e.createVNode(V,{size:"small",type:"danger",onClick:k=>F(f)},{default:e.withCtx(()=>[...c[5]||(c[5]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])])]),_:2},1032,["style","body-style"]))),128))],4)):t.value==="add"?(e.openBlock(),e.createElementBlock("div",de,[e.createVNode(A,{mode:"add",onSave:j,onCancel:o})])):t.value==="edit"?(e.openBlock(),e.createElementBlock("div",se,[e.createVNode(A,{mode:"edit",model:n.value,onSave:R,onCancel:o},null,8,["model"])])):t.value==="detail"?(e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(le,{item:n.value,onEdit:c[1]||(c[1]=f=>B(n.value))},null,8,["item"])])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),me=x._export_sfc(pe,[["__scopeId","data-v-bac869af"]]);exports.COMMON=D;exports.DATA=M;exports.DEFAULT=$;exports.OPTIONS=I;exports.PARAMS=z;exports.SOURCE=P;exports.default=me;
@@ -32,8 +32,8 @@ import "element-plus/es/components/card/style/css";
32
32
  import "element-plus/es/components/skeleton/style/css";
33
33
  import "element-plus/es/components/button/style/css";
34
34
  import { defineComponent as z, reactive as ue, watch as X, openBlock as m, createElementBlock as g, createVNode as r, withCtx as u, createElementVNode as h, createTextVNode as v, toDisplayString as w, ref as B, onMounted as R, onBeforeUnmount as pe, normalizeStyle as E, unref as p, createCommentVNode as F, createBlock as U, Fragment as me, renderList as fe, withModifiers as ve, renderSlot as _e } from "vue";
35
- import { B as ge } from "./BaseComponent-D7kfvQid.js";
36
- import { _ as M } from "./index-CaDDNmGU.js";
35
+ import { B as ge } from "./BaseComponent-CcjKs8HB.js";
36
+ import { _ as M } from "./index-DVnOzlFW.js";
37
37
  import "element-plus/es/components/form/style/css";
38
38
  import "element-plus/es/components/form-item/style/css";
39
39
  import "element-plus/es/components/input/style/css";