mixdashboards 1.0.39 → 1.0.43

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 (290) hide show
  1. package/dist/{EChartComponentBase-BaQpBzVC.cjs → EChartComponentBase-BChD1X2l.cjs} +1 -1
  2. package/dist/{EChartComponentBase-BQOhWkz2.js → EChartComponentBase-tSVuV5H3.js} +1 -1
  3. package/dist/{UniverSheet-KlvmL1Yw.cjs → UniverSheet-DxPYELl0.cjs} +1 -1
  4. package/dist/{UniverSheet-MSHzUXq0.js → UniverSheet-ZGig1_Pu.js} +2 -2
  5. package/dist/{accelerationChart-DZj2V2vD.cjs → accelerationChart-BU01FhLB.cjs} +1 -1
  6. package/dist/{accelerationChart-B1HPMmd2.js → accelerationChart-uPXXAoIX.js} +3 -3
  7. package/dist/{actionItem-Bb2xiYlY.js → actionItem-Cto59Uxi.js} +3 -3
  8. package/dist/{actionItem-BYCPoQK7.cjs → actionItem-Ds004yWK.cjs} +1 -1
  9. package/dist/{alarmLevelChart-CCioESvL.js → alarmLevelChart-Bxhp_1Yh.js} +2 -2
  10. package/dist/{alarmLevelChart-Bb0mAbwQ.cjs → alarmLevelChart-pquXuv2m.cjs} +1 -1
  11. package/dist/{alertTable-CQwr8YYt.js → alertTable-BmHTGwvG.js} +2 -2
  12. package/dist/{alertTable-oaX5eJC0.cjs → alertTable-C8POEEmf.cjs} +1 -1
  13. package/dist/{annualRainfallChart-C21jEMBe.js → annualRainfallChart-BgKPNPJQ.js} +2 -2
  14. package/dist/{annualRainfallChart-pO8q6aUJ.cjs → annualRainfallChart-CEy_57N0.cjs} +1 -1
  15. package/dist/{api-P_s372dW.cjs → api-B54Z00Zb.cjs} +1 -1
  16. package/dist/{api-C0GhBpqd.js → api-Cug1klvp.js} +4 -4
  17. package/dist/{aqi-DlY2r7OA.cjs → aqi-XOaZyAYC.cjs} +1 -1
  18. package/dist/{aqi-iLwQH4rc.js → aqi-_FjN7mXi.js} +10 -10
  19. package/dist/{aqiIndass-BaIVBfdC.cjs → aqiIndass-BT4xpq07.cjs} +1 -1
  20. package/dist/{aqiIndass-DBeVSBdy.js → aqiIndass-LrPuO3hk.js} +15 -15
  21. package/dist/arrayCard-CxQt6Fpt.js +94 -0
  22. package/dist/arrayCard-I0242qBp.cjs +1 -0
  23. package/dist/{audio-CAP4D-J2.js → audio-Ca_jh1Ry.js} +5 -5
  24. package/dist/{audio-CThzVIDU.cjs → audio-Ci8MfRFp.cjs} +1 -1
  25. package/dist/{bar-BjR566__.cjs → bar-B2qbk8Xs.cjs} +1 -1
  26. package/dist/{bar-D8C06GO4.js → bar-OCOTqPHY.js} +4 -4
  27. package/dist/{bmp-Cjizh2x6.js → bmp-CLiSfyAx.js} +3 -3
  28. package/dist/{bmp-DsmTzyce.cjs → bmp-DSOZL3Ws.cjs} +1 -1
  29. package/dist/{box-qgu_67OD.cjs → box-CSAC2nll.cjs} +1 -1
  30. package/dist/{box-DqewT3MF.js → box-Dfiea0UY.js} +2 -2
  31. package/dist/{chartConfigPanel-DwAUq3pf.js → chartConfigPanel-DNyg08bW.js} +1 -1
  32. package/dist/{chartConfigPanel-BiQArCoQ.cjs → chartConfigPanel-MmXLFF3s.cjs} +1 -1
  33. package/dist/{circleBar-CO89T7kj.cjs → circleBar-BTodjF_P.cjs} +1 -1
  34. package/dist/{circleBar-DGHDWQih.js → circleBar-jvdZW67Y.js} +8 -8
  35. package/dist/{clock-32hGccm4.cjs → clock-BvUgA4hU.cjs} +1 -1
  36. package/dist/{clock-CT8YXEU3.js → clock-IOEnD1FR.js} +2 -2
  37. package/dist/{clt-FfIEfGtn.js → clt-C0J-U9U2.js} +3 -3
  38. package/dist/{clt-5bP_g1O-.cjs → clt-CqVfBGgu.cjs} +1 -1
  39. package/dist/{cmc-dbuLkE8o.cjs → cmc-CpaXOsS7.cjs} +1 -1
  40. package/dist/{cmc-B2nQFZIS.js → cmc-D0_Qv6Zs.js} +3 -3
  41. package/dist/{cmp-QQlYcnqo.js → cmp-BDgmsQWa.js} +12 -12
  42. package/dist/{cmp-l3U9fIrz.cjs → cmp-BU9ix80c.cjs} +1 -1
  43. package/dist/{composite-DlY2_x6P.cjs → composite-BHFoRAhK.cjs} +1 -1
  44. package/dist/{composite-DjhrBgG1.js → composite-Daajjrh1.js} +8 -8
  45. package/dist/config-D3MEjLGn.js +9 -0
  46. package/dist/config-UTUPYJ45.cjs +1 -0
  47. package/dist/{controlList-BdF8xNAi.js → controlList-OYiF483D.js} +3 -3
  48. package/dist/{controlList-De6PXdOc.cjs → controlList-PkvqGwS5.cjs} +1 -1
  49. package/dist/{controlRecordList-u5a7chIX.cjs → controlRecordList-BaJdGodA.cjs} +1 -1
  50. package/dist/{controlRecordList-CKpAr1ON.js → controlRecordList-pzonY5_g.js} +3 -3
  51. package/dist/{crd-BoaXQhFQ.cjs → crd-CgatCwuM.cjs} +1 -1
  52. package/dist/{crd-BVAf41oX.js → crd-Vjh_CNX2.js} +2 -2
  53. package/dist/{ctrBtn-ZPRYWE66.js → ctrBtn-CSuW7u1a.js} +4 -4
  54. package/dist/{ctrBtn-C9kQiqY1.cjs → ctrBtn-CjMIOEud.cjs} +1 -1
  55. package/dist/{ctrSet-CNCrnLSs.cjs → ctrSet-CNfIgsND.cjs} +1 -1
  56. package/dist/{ctrSet-C87dxLfQ.js → ctrSet-CpKA4FWL.js} +4 -4
  57. package/dist/{ctrSwitch-CkC_Axtp.js → ctrSwitch-BPCp-27u.js} +4 -4
  58. package/dist/{ctrSwitch-CVEtbdfb.cjs → ctrSwitch-DNLZ2RDv.cjs} +1 -1
  59. package/dist/{dataManagement-CjlNfeYq.js → dataManagement-kLivh0Wo.js} +2 -2
  60. package/dist/{dataManagement-n711sd1g.cjs → dataManagement-tU6uKtEj.cjs} +1 -1
  61. package/dist/{dataReport-BsVjW3p7.cjs → dataReport-D7g7U1Mk.cjs} +1 -1
  62. package/dist/{dataReport-ByjswEqq.js → dataReport-DKIWxloF.js} +2 -2
  63. package/dist/{dataTable-K7j4fhnq.cjs → dataTable-BHlNGT3A.cjs} +1 -1
  64. package/dist/{dataTable-DX500R1i.js → dataTable-Ch3UyUHs.js} +1 -1
  65. package/dist/{datetime-DYXWKrXI.cjs → datetime-CGgW1_vl.cjs} +1 -1
  66. package/dist/{datetime-DVbJtALf.js → datetime-Cyg8Xaoh.js} +2 -2
  67. package/dist/{deepClusterSlipSurface-B7nkEM9A.cjs → deepClusterSlipSurface-CN_WZFnF.cjs} +1 -1
  68. package/dist/{deepClusterSlipSurface-CQUE05cK.js → deepClusterSlipSurface-D4PhBTV3.js} +6 -6
  69. package/dist/{deepDataMatrix-DHZA0IAm.cjs → deepDataMatrix-DrQ1_-Ie.cjs} +1 -1
  70. package/dist/{deepDataMatrix-ai5rB6ET.js → deepDataMatrix-v5op9TPA.js} +2 -2
  71. package/dist/{deepDisplacement3D-BFqKqSYg.cjs → deepDisplacement3D--kNKCZIe.cjs} +1 -1
  72. package/dist/{deepDisplacement3D-BsUzvbQb.js → deepDisplacement3D-COaSjPeE.js} +3 -3
  73. package/dist/{deepDisplacementChart-2JZNrhrw.cjs → deepDisplacementChart-C9SjfW9d.cjs} +1 -1
  74. package/dist/{deepDisplacementChart-igl4rW1K.js → deepDisplacementChart-CrQDLDLG.js} +2 -2
  75. package/dist/{deepDisplacementChart-BCIuCMdK.js → deepDisplacementChart-CuH2f1nn.js} +4 -4
  76. package/dist/{deepDisplacementChart-Ba67v6um.cjs → deepDisplacementChart-DcpBhevd.cjs} +1 -1
  77. package/dist/{deepDisplacementView-wQxyKzB-.cjs → deepDisplacementView-CZrY99uX.cjs} +1 -1
  78. package/dist/{deepDisplacementView-BedWJsx7.js → deepDisplacementView-D7lYRm9Y.js} +1 -1
  79. package/dist/{deepNodeTemperatureChart-albL8hKa.cjs → deepNodeTemperatureChart-CxzgoQXA.cjs} +1 -1
  80. package/dist/{deepNodeTemperatureChart-DLeb9jKp.js → deepNodeTemperatureChart-DfR4tUqO.js} +6 -6
  81. package/dist/{deepTangentAngleChart-DukevXaM.cjs → deepTangentAngleChart-B8WNZAJe.cjs} +1 -1
  82. package/dist/{deepTangentAngleChart-C6xOiITk.js → deepTangentAngleChart-CVjnZrOJ.js} +7 -7
  83. package/dist/{deepTemperatureField-De4xKoHw.cjs → deepTemperatureField-CUfAJ9UM.cjs} +1 -1
  84. package/dist/{deepTemperatureField-B-y94GPV.js → deepTemperatureField-Do6-blr7.js} +7 -7
  85. package/dist/{deepTrendChart-DCkV2HNv.js → deepTrendChart-BP2CKFYM.js} +6 -6
  86. package/dist/{deepTrendChart-MmuYSXtu.cjs → deepTrendChart-DtFP9z8x.cjs} +1 -1
  87. package/dist/{deviceOnlineStatus-CFuCTx7_.js → deviceOnlineStatus-D6bULBvw.js} +2 -2
  88. package/dist/{deviceOnlineStatus-B5cCjhNA.cjs → deviceOnlineStatus-DTKqM11O.cjs} +1 -1
  89. package/dist/{deviceStatus-DsEtKiGo.cjs → deviceStatus-B6OKoKq-.cjs} +1 -1
  90. package/dist/{deviceStatus-B2ibBDSi.js → deviceStatus-DJYGmb17.js} +2 -2
  91. package/dist/{displacementDataTable-oLnUdafv.cjs → displacementDataTable-DDG2INsm.cjs} +1 -1
  92. package/dist/{displacementDataTable-BDqG1IvI.js → displacementDataTable-uRgXH0CK.js} +2 -2
  93. package/dist/{displacementTrajectoryChart-Crf55oKi.js → displacementTrajectoryChart-CEiKrhq1.js} +3 -3
  94. package/dist/{displacementTrajectoryChart-CBhPwZhe.cjs → displacementTrajectoryChart-CurD1AeO.cjs} +1 -1
  95. package/dist/{displacementTrendChart-10n_lC9j.js → displacementTrendChart-Cc_3vfUE.js} +2 -2
  96. package/dist/{displacementTrendChart-CWihCuIJ.cjs → displacementTrendChart-DVa6z4Nl.cjs} +1 -1
  97. package/dist/{dxf-D8zHpz5g.js → dxf-BVAbI2Re.js} +5 -5
  98. package/dist/{dxf-DDh_DcQy.cjs → dxf-D4bSvrFx.cjs} +1 -1
  99. package/dist/{dzc-DLCdTCwW.js → dzc-CP27H3cb.js} +10 -10
  100. package/dist/{dzc-uNTDJqpi.cjs → dzc-fP5m-jgn.cjs} +1 -1
  101. package/dist/{arrayCard-DNNUEPvW.js → ele-arrayCard-icon-CAk9ojr4.js} +3 -91
  102. package/dist/ele-arrayCard-icon-QOabvV0y.cjs +1 -0
  103. package/dist/{element-resize-detector-DJcsrJ8s.js → element-resize-detector-CcMj2at_.js} +419 -412
  104. package/dist/element-resize-detector-Dv3K8Mdu.cjs +6 -0
  105. package/dist/{evn-YwCALVXj.js → evn-Ce6AYrxO.js} +2 -2
  106. package/dist/{evn-DuL5oVRl.cjs → evn-CyEggAn9.cjs} +1 -1
  107. package/dist/{evolutionChart-AeL67MAt.cjs → evolutionChart-CMRBPKKA.cjs} +1 -1
  108. package/dist/{evolutionChart-4noZSdLX.js → evolutionChart-D74KWOt_.js} +3 -3
  109. package/dist/{fileViewer-DiH3PM0r.js → fileViewer-FWpbKEm_.js} +5 -5
  110. package/dist/{fileViewer-bsrjlJkC.cjs → fileViewer-HmsHvQbe.cjs} +1 -1
  111. package/dist/{filterBar-Ct1BFhrS.cjs → filterBar-BGqSr_Gz.cjs} +1 -1
  112. package/dist/{filterBar-CWEguwYc.js → filterBar-SwG99EqD.js} +2 -2
  113. package/dist/{fireCombustionCurve-DYPC4zKJ.js → fireCombustionCurve-CK9bbLYm.js} +2 -2
  114. package/dist/{fireCombustionCurve-DyiQn-WA.cjs → fireCombustionCurve-DGYg2Zz7.cjs} +1 -1
  115. package/dist/{fireFilterBar-Bdm2ljuO.cjs → fireFilterBar-BUdbOHbv.cjs} +1 -1
  116. package/dist/{fireFilterBar-DGHPNTwF.js → fireFilterBar-Dv4oMV2C.js} +2 -2
  117. package/dist/{gag-HiNaL81R.cjs → gag-DV4cygUt.cjs} +1 -1
  118. package/dist/{gag-kvkKzJuO.js → gag-eTRNcrqU.js} +5 -5
  119. package/dist/gasStationList-DNIbWG_P.cjs +1 -0
  120. package/dist/gasStationList-Dq4JF7HM.js +984 -0
  121. package/dist/{glbModel-DtBI72ap.cjs → glbModel-BEB3-OkB.cjs} +1 -1
  122. package/dist/{glbModel-CUz6CyVF.js → glbModel-DXwR8B8M.js} +2 -2
  123. package/dist/{gnssFilterBar-TBtirXIB.js → gnssFilterBar-B6A4lUyp.js} +2 -2
  124. package/dist/{gnssFilterBar-BQgY5x1W.cjs → gnssFilterBar-Diqwq6NT.cjs} +1 -1
  125. package/dist/{gnssHistoryTable-D1ZLJOgh.cjs → gnssHistoryTable-Bn_PcTYz.cjs} +1 -1
  126. package/dist/{gnssHistoryTable-U8O7nyO7.js → gnssHistoryTable-DYgh7vSR.js} +3 -3
  127. package/dist/{gnssMapView-42zmAd9q.cjs → gnssMapView-C4nMl0TP.cjs} +1 -1
  128. package/dist/{gnssMapView-CaBfWeT1.js → gnssMapView-g7D0pOjL.js} +2 -2
  129. package/dist/{gnssTimeSeriesChart-CV2w_Aik.cjs → gnssTimeSeriesChart-DeQ-wByR.cjs} +1 -1
  130. package/dist/{gnssTimeSeriesChart-BrXYvuh6.js → gnssTimeSeriesChart-hQbteX4L.js} +4 -4
  131. package/dist/{gnssXYTrajectory-BmzSYjQ_.cjs → gnssXYTrajectory-B_e7j8rL.cjs} +1 -1
  132. package/dist/{gnssXYTrajectory-D2DoYnze.js → gnssXYTrajectory-lvuXN9lD.js} +3 -3
  133. package/dist/{grd-DW8cSFVR.cjs → grd-Cue6pwOG.cjs} +1 -1
  134. package/dist/{grd-B0GUjLm9.js → grd-p61RCI9f.js} +3 -3
  135. package/dist/{grdIndass-DduUKZJm.js → grdIndass-B7h2b6uM.js} +3 -3
  136. package/dist/{grdIndass-BeBXVsos.cjs → grdIndass-C7cig5jz.cjs} +1 -1
  137. package/dist/{grg-fnpcXtju.cjs → grg-CuoOAf0S.cjs} +1 -1
  138. package/dist/{grg-CeX0pirQ.js → grg-duDSzJwQ.js} +6 -6
  139. package/dist/{gridview-DpABhCIw.cjs → gridview-B73KnYlW.cjs} +1 -1
  140. package/dist/{gridview-BPwWXza9.js → gridview-CSJXmPgO.js} +2 -2
  141. package/dist/{groupCard-De1E15mW.js → groupCard-DPlcY3KM.js} +2 -2
  142. package/dist/{groupCard-WNE6gAAl.cjs → groupCard-DbuFpUy_.cjs} +1 -1
  143. package/dist/{headerBar-CZ3qcLHo.js → headerBar-CNX5OgJJ.js} +3 -3
  144. package/dist/{headerBar-Qi1EXrr6.cjs → headerBar-ntCC3TG_.cjs} +1 -1
  145. package/dist/history-BKlOuH9N.cjs +1 -0
  146. package/dist/{history-BkZhlpdY.js → history-DDhjCbfn.js} +60 -57
  147. package/dist/{index-kShjySl9.js → index-DCD0sVkl.js} +1047 -1065
  148. package/dist/index-p4bdBANg.cjs +582 -0
  149. package/dist/{insarDeformChart-CnuSL1d9.js → insarDeformChart-BUpCXYTi.js} +2 -2
  150. package/dist/{insarDeformChart-BGr2xe7w.cjs → insarDeformChart-DWjpCTST.cjs} +1 -1
  151. package/dist/{insarImageViewer-EmVThmVQ.js → insarImageViewer-3jC7sm-N.js} +2 -2
  152. package/dist/{insarImageViewer-DRgGdQmN.cjs → insarImageViewer-DBouC3bG.cjs} +1 -1
  153. package/dist/{kds-CpIQFgeY.js → kds-B8Eb8A5z.js} +10 -10
  154. package/dist/{kds-DTYWOq4K.cjs → kds-BbHwPepp.cjs} +1 -1
  155. package/dist/{layerTabs-BATcBkTA.cjs → layerTabs-D7I2t951.cjs} +1 -1
  156. package/dist/{layerTabs-uze6K91A.js → layerTabs-DyEqHH1_.js} +2 -2
  157. package/dist/{lin-DU_EuPRg.js → lin-BnBuwG1p.js} +8 -8
  158. package/dist/{lin-Ba6fHkYf.cjs → lin-Co2eyQYR.cjs} +1 -1
  159. package/dist/{linIndass-urYe5inp.cjs → linIndass-BI56prH5.cjs} +1 -1
  160. package/dist/{linIndass-XHKElG7L.js → linIndass-D440bglm.js} +7 -7
  161. package/dist/{lst-CpmoEQDY.cjs → lst-CyOeVUwG.cjs} +1 -1
  162. package/dist/{lst-C7aee1cU.js → lst-DJ70Qm0_.js} +2 -2
  163. package/dist/{manualEntry-CJPiO5nh.cjs → manualEntry-DIRgJo2n.cjs} +1 -1
  164. package/dist/{manualEntry-D9m_WPw3.js → manualEntry-w-qfhXMO.js} +2 -2
  165. package/dist/{mapBackground-CF_TqNBy.cjs → mapBackground-B29Oe6LE.cjs} +1 -1
  166. package/dist/{mapBackground-6g_71Fwa.js → mapBackground-CPjs_j_-.js} +2 -2
  167. package/dist/{mappingList-luT5YE0d.js → mappingList-B40O99li.js} +3 -3
  168. package/dist/{mappingList-CR55Tq4t.cjs → mappingList-DbnBjHp6.cjs} +1 -1
  169. package/dist/{markdownViewer-CnguoUr8.js → markdownViewer-Bx2It9sV.js} +5 -5
  170. package/dist/{markdownViewer-D1hDk2Y7.cjs → markdownViewer-CLkqzacw.cjs} +1 -1
  171. package/dist/{mix-control-modal-BDHAB4Tw.cjs → mix-control-modal-CMieJ_yd.cjs} +1 -1
  172. package/dist/{mix-control-modal-CHiX3hQs.js → mix-control-modal-OWpKWsS0.js} +3 -3
  173. package/dist/{mixDataPermission-BaqV0Z6N.js → mixDataPermission-Et2y1ZNV.js} +4 -3
  174. package/dist/{mixDataPermission-BTA1jNd1.cjs → mixDataPermission-wcr14h4V.cjs} +1 -1
  175. package/dist/{mixGrid-3BqQCvg8.cjs → mixGrid-D3cGrQ1G.cjs} +1 -1
  176. package/dist/{mixGrid-C0eEvwPy.js → mixGrid-DZyLbs2L.js} +3 -3
  177. package/dist/{mixMap-Bw-We4Cm.cjs → mixMap-CZijD9Wl.cjs} +1 -1
  178. package/dist/{mixMap-7upgYwWk.js → mixMap-CvcH9tWH.js} +3 -3
  179. package/dist/{mixModel-CgV4XptM.cjs → mixModel-C7jP0OTI.cjs} +1 -1
  180. package/dist/{mixModel-BqE_Kd4c.js → mixModel-Cb9jZGgU.js} +10 -10
  181. package/dist/{mixPie-9LfMCTQV.cjs → mixPie-DaVnghMR.cjs} +1 -1
  182. package/dist/{mixPie-B-HeglUn.js → mixPie-Xl9q3aeM.js} +7 -7
  183. package/dist/mixdashboards.cjs +1 -1
  184. package/dist/mixdashboards.css +1 -1
  185. package/dist/mixdashboards.js +1 -1
  186. package/dist/{mjpegCamera-nxKfhobY.cjs → mjpegCamera-B4DGYk-6.cjs} +1 -1
  187. package/dist/{mjpegCamera-Cfw3rzT5.js → mjpegCamera-Bur1zDjR.js} +2 -2
  188. package/dist/{monitorAlert-Bt0baNh4.cjs → monitorAlert-BEeF7aKG.cjs} +1 -1
  189. package/dist/{monitorAlert-Bg5vzzyG.js → monitorAlert-DTtkf40Q.js} +2 -2
  190. package/dist/{monitorData-CzPVIk_4.cjs → monitorData-CxUmxh7h.cjs} +1 -1
  191. package/dist/{monitorData-BvAMeOrp.js → monitorData-DJOo9Mmf.js} +3 -3
  192. package/dist/{monitorSpeedChart-0bDuU3Kj.js → monitorSpeedChart-BC2X02Sb.js} +1 -1
  193. package/dist/{monitorSpeedChart-C52QjA5K.cjs → monitorSpeedChart-CNoRIuP1.cjs} +1 -1
  194. package/dist/{mxa-BW80xKCc.js → mxa-BN75OPFt.js} +7 -7
  195. package/dist/{mxa-eLAgZPMC.cjs → mxa-BxzaaRQF.cjs} +1 -1
  196. package/dist/myValue-CNORsNDC.js +149 -0
  197. package/dist/myValue-DFkdFmlD.cjs +1 -0
  198. package/dist/myValueList-CBMG0eWA.js +451 -0
  199. package/dist/myValueList-CjBLDJYH.cjs +1 -0
  200. package/dist/objectList-DFhu-fz0.cjs +1 -0
  201. package/dist/{objectList-Cf9GMyXN.js → objectList-bNg216p9.js} +575 -623
  202. package/dist/photo-DigmnVvl.js +342 -0
  203. package/dist/photo-kfRZAysa.cjs +1 -0
  204. package/dist/{pie-DxoBrm0D.cjs → pie-84DfqS1S.cjs} +1 -1
  205. package/dist/{pie-BDLg-Rls.js → pie-DTt2sFrk.js} +7 -7
  206. package/dist/{pressBtn-t0g4vk7s.cjs → pressBtn-DDIIdhOz.cjs} +1 -1
  207. package/dist/{pressBtn-CXG1eSWC.js → pressBtn-DDffBSTH.js} +4 -4
  208. package/dist/{progressBar-BXaFKSCq.js → progressBar-BBXjT_1K.js} +2 -2
  209. package/dist/{progressBar-CJEWkZ42.cjs → progressBar-T-y989f-.cjs} +1 -1
  210. package/dist/{progressCircle-DpOI5D5z.js → progressCircle-CTl5sua8.js} +2 -2
  211. package/dist/{progressCircle-uQ7vaMKM.cjs → progressCircle-Dr9rGPdw.cjs} +1 -1
  212. package/dist/qrcode-B_s5tsz3.cjs +1 -0
  213. package/dist/{qrcode-CX8aymYZ.js → qrcode-kk5QYwXg.js} +297 -298
  214. package/dist/{raceBar-DFaH342G.js → raceBar-LWP50Esm.js} +7 -7
  215. package/dist/{raceBar-Cv0-0ogd.cjs → raceBar-l_09Yq2I.cjs} +1 -1
  216. package/dist/{rad-NS2G_nMg.js → rad-B78foPbg.js} +7 -7
  217. package/dist/{rad-CFswUTwi.cjs → rad-q5w7s5OW.cjs} +1 -1
  218. package/dist/{rainfallFilterBar-D_Ye_NeB.js → rainfallFilterBar-CgLsQ-bP.js} +2 -2
  219. package/dist/{rainfallFilterBar-BI45QvJm.cjs → rainfallFilterBar-Df3KQ_ZM.cjs} +1 -1
  220. package/dist/{rainfallTimeCurve-BHWqX47Q.js → rainfallTimeCurve-B2QbnKYR.js} +3 -3
  221. package/dist/{rainfallTimeCurve-Ke1JvSWq.cjs → rainfallTimeCurve-C7Pyp1yx.cjs} +1 -1
  222. package/dist/{rangeLin-D6VZ2U3C.cjs → rangeLin-54P6A-H6.cjs} +1 -1
  223. package/dist/{rangeLin-GMYEgLeP.js → rangeLin-lsD1Tb23.js} +7 -7
  224. package/dist/{request-Bn100qAJ.cjs → request-Bkzlbfat.cjs} +1 -1
  225. package/dist/{request-BD0x5Hkt.js → request-DvQqpxzM.js} +1 -1
  226. package/dist/{retainer1-h-Whr2c9.js → retainer1-G4qdYcqG.js} +3 -3
  227. package/dist/{retainer1-D2XmjXYH.cjs → retainer1-LbRL0Bvk.cjs} +1 -1
  228. package/dist/{retainer2-ByQdiRjq.js → retainer2-DcNWAHtE.js} +3 -3
  229. package/dist/{retainer2-cF-trL2g.cjs → retainer2-DfFMVUdl.cjs} +1 -1
  230. package/dist/{riskRegionTable-CQxAkG7k.js → riskRegionTable-CIlOa9cB.js} +2 -2
  231. package/dist/{riskRegionTable-cKnxra4_.cjs → riskRegionTable-WR6ex2Hi.cjs} +1 -1
  232. package/dist/{sankey-MRirEgU0.cjs → sankey-BWpsoIQq.cjs} +1 -1
  233. package/dist/{sankey-Bk1IcVJQ.js → sankey-DU5yTv0d.js} +9 -9
  234. package/dist/{scd-J-mN3eI5.cjs → scd-D_1G2sMH.cjs} +1 -1
  235. package/dist/{scd-BDRpzmsa.js → scd-s1R4ArEA.js} +2 -2
  236. package/dist/{sideMenu-BgTMtnMq.js → sideMenu-BLN-hmKR.js} +2 -2
  237. package/dist/{sideMenu-l8X2E00H.cjs → sideMenu-BXylutdD.cjs} +1 -1
  238. package/dist/{slopeStability-BPf7m0fJ.cjs → slopeStability-Dm3wLwov.cjs} +1 -1
  239. package/dist/{slopeStability-C5RqZ1im.js → slopeStability-yF4cbFAW.js} +3 -3
  240. package/dist/{speedCurve-C3pK-zZy.js → speedCurve-B4jL0peM.js} +3 -3
  241. package/dist/{speedCurve-CluwNAZl.cjs → speedCurve-Dha8_czy.cjs} +1 -1
  242. package/dist/{staticLine-DXWOLj15.js → staticLine-9Z3ZUOOu.js} +7 -7
  243. package/dist/{staticLine-C6tGGXcN.cjs → staticLine-DsOWwv03.cjs} +1 -1
  244. package/dist/{store-BJW2NQkK.cjs → store-B3uCwXgM.cjs} +1 -1
  245. package/dist/{store-DzDtVfSX.js → store-BLHqFZQd.js} +2 -2
  246. package/dist/{swiper-IMlGje3t.js → swiper-BdGmBriB.js} +3 -3
  247. package/dist/{swiper-DGqDoUkX.cjs → swiper-CXb_2mfg.cjs} +1 -1
  248. package/dist/{terminalConfigList-D6xDHsnb.cjs → terminalConfigList-DFzOUHe2.cjs} +1 -1
  249. package/dist/{terminalConfigList-SAyXi-BK.js → terminalConfigList-EQ7lagNS.js} +3 -3
  250. package/dist/{terminalList-ml2C18MY.cjs → terminalList-CEr-6C-6.cjs} +1 -1
  251. package/dist/{terminalList-CjSHshiR.js → terminalList-neZWjaQ9.js} +3 -3
  252. package/dist/{textbox-BLV-SY8e.js → textbox-BLzAPC0q.js} +4 -4
  253. package/dist/{textbox-AQtCe25j.cjs → textbox-DmOguEQU.cjs} +1 -1
  254. package/dist/{timeQueryBar-BeMu_DYr.js → timeQueryBar-B_xpm0AC.js} +1 -1
  255. package/dist/{timeQueryBar-BuKakMy8.cjs → timeQueryBar-MDyFx6rP.cjs} +1 -1
  256. package/dist/{timeSeries-DP5iZKVM.js → timeSeries-7SohUo9l.js} +4 -4
  257. package/dist/{timeSeries-DfGgFWiF.cjs → timeSeries-CaIR746Y.cjs} +1 -1
  258. package/dist/{timeSeriesCurve-B0Mw6eNK.cjs → timeSeriesCurve-D-PncXjY.cjs} +1 -1
  259. package/dist/{timeSeriesCurve-BSgtPqYw.js → timeSeriesCurve-DZBsHqsK.js} +3 -3
  260. package/dist/{toggleBtn-Dh64vVWo.cjs → toggleBtn--cJyh7p1.cjs} +1 -1
  261. package/dist/{toggleBtn-O2Y75Uen.js → toggleBtn-B2m2z1Si.js} +7 -7
  262. package/dist/{trajectoryConfigPanel--C1h3tK6.js → trajectoryConfigPanel-Bs-CzBAX.js} +1 -1
  263. package/dist/{trajectoryConfigPanel-P_Qa4omj.cjs → trajectoryConfigPanel-ChfuUbTU.cjs} +1 -1
  264. package/dist/{trajectoryScatter-VLrmImlq.js → trajectoryScatter-Bm2AHlY2.js} +6 -6
  265. package/dist/{trajectoryScatter-BbpbgNb8.cjs → trajectoryScatter-DuWUKaOg.cjs} +1 -1
  266. package/dist/{universalConfigPanel-C0lDSzOB.cjs → universalConfigPanel-C6dYbcUq.cjs} +1 -1
  267. package/dist/{universalConfigPanel-DBg76b4F.js → universalConfigPanel-D6887bDA.js} +1 -1
  268. package/dist/{universalTable-DGK02ywi.js → universalTable-D-Nx7-YD.js} +2 -2
  269. package/dist/{universalTable-Bzq9VqzA.cjs → universalTable-DPpSYgmV.cjs} +1 -1
  270. package/dist/{video-CyRoSQf1.cjs → video-CB2ndqns.cjs} +1 -1
  271. package/dist/{video-DCzzaEmV.js → video-i7fMjDsj.js} +5 -5
  272. package/dist/{videoMonitor-ByaQeIWR.js → videoMonitor-D_gmm8xD.js} +2 -2
  273. package/dist/{videoMonitor-BjD-ZFS0.cjs → videoMonitor-DjHj3jKS.cjs} +1 -1
  274. package/dist/{vlu-CYZjYHaV.cjs → vlu-BapGJiKV.cjs} +1 -1
  275. package/dist/{vlu-h-9twmCr.js → vlu-DKvcQynh.js} +2 -2
  276. package/dist/{weather-B7B5E1EJ.cjs → weather-CqehOpyT.cjs} +1 -1
  277. package/dist/{weather-C_aC0XJ1.js → weather-M9RB9i4h.js} +3 -3
  278. package/dist/{windLin-DPNzX7JN.cjs → windLin-BtRlE9KH.cjs} +1 -1
  279. package/dist/{windLin-B7V4NUV8.js → windLin-xKNNyTR0.js} +9 -9
  280. package/package.json +10 -9
  281. package/dist/arrayCard-OlVAAsZq.cjs +0 -1
  282. package/dist/config-BLSroAzs.cjs +0 -1
  283. package/dist/config-Cc2W4vke.js +0 -9
  284. package/dist/element-resize-detector-Bo5uDQAu.cjs +0 -6
  285. package/dist/history-DAmBl4_5.cjs +0 -1
  286. package/dist/index-Mh5Dw2sd.cjs +0 -585
  287. package/dist/objectList-CpqQxG8L.cjs +0 -1
  288. package/dist/photo-BODEtaYh.cjs +0 -1
  289. package/dist/photo-BfLkWAo8.js +0 -256
  290. package/dist/qrcode-DHCRfp0M.cjs +0 -1
@@ -11,19 +11,19 @@ var w = (c, i, s) => i in c ? B(c, i, { enumerable: !0, configurable: !0, writab
11
11
  return c;
12
12
  }, T = (c, i) => H(c, P(i));
13
13
  import { defineComponent as U, ref as X, inject as Y, computed as Z, watchEffect as j, openBlock as J, createElementBlock as K, normalizeStyle as $, unref as x, createElementVNode as _, toDisplayString as Q, renderSlot as W, nextTick as tt } from "vue";
14
- import { B as et, e as ot, h as C, f as at, a as lt, u as it, p as st, j as rt } from "./element-resize-detector-DJcsrJ8s.js";
14
+ import { B as et, e as ot, h as C, f as at, a as lt, u as it, p as st, j as rt } from "./element-resize-detector-CcMj2at_.js";
15
15
  import { g as nt } from "./titleStyle-BT5GlpAb.js";
16
16
  import { A as ut, D as ct } from "./ele-aqi-icon-DsYfU5th.js";
17
17
  import { i as dt } from "./installMarkLine-BgE0YACE.js";
18
- import { i as pt } from "./install-CBde4hAM.js";
19
- import { i as ft } from "./install-Cx1i_m0k.js";
20
- import { i as mt } from "./install-B0x4IqQr.js";
21
- import { i as vt } from "./install-hfre7yvV.js";
22
- import { u as gt, i as ht, a as St } from "./installCanvasRenderer-CLT2hquJ.js";
23
- import { i as yt } from "./install-BBrAry2m.js";
24
- import { i as xt } from "./install-8XfFtnlL.js";
18
+ import { i as pt } from "./install-Cx1i_m0k.js";
19
+ import { i as ft } from "./install-B0x4IqQr.js";
20
+ import { i as mt } from "./install-8XfFtnlL.js";
21
+ import { u as vt, i as gt, a as ht } from "./installCanvasRenderer-CLT2hquJ.js";
22
+ import { i as St } from "./install-CBde4hAM.js";
23
+ import { i as yt } from "./install-hfre7yvV.js";
24
+ import { i as xt } from "./install-BBrAry2m.js";
25
25
  import { i as Ct, d as _t } from "./echarts-BVht3HHb.js";
26
- import { _ as At } from "./index-kShjySl9.js";
26
+ import { _ as At } from "./index-DCD0sVkl.js";
27
27
  const bt = {
28
28
  DEFAULT_ICON: ct,
29
29
  ACTIVE_ICON: ut,
@@ -60,16 +60,16 @@ const bt = {
60
60
  theme: { type: String, default: "light" }
61
61
  },
62
62
  setup(c) {
63
- gt([
63
+ vt([
64
64
  dt,
65
+ St,
65
66
  pt,
66
67
  ft,
67
- mt,
68
- vt,
69
- ht,
70
68
  yt,
71
- St,
72
- xt
69
+ gt,
70
+ xt,
71
+ ht,
72
+ mt
73
73
  ]);
74
74
  const i = X(Y("session", null)), s = "aqi_" + Math.random().toString(16).substring(4, 12);
75
75
  let e = null, h = null;
@@ -0,0 +1,94 @@
1
+ var E = Object.defineProperty, T = Object.defineProperties;
2
+ var N = Object.getOwnPropertyDescriptors;
3
+ var C = Object.getOwnPropertySymbols;
4
+ var M = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
5
+ var g = (o, t, e) => t in o ? E(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, h = (o, t) => {
6
+ for (var e in t || (t = {}))
7
+ M.call(t, e) && g(o, e, t[e]);
8
+ if (C)
9
+ for (var e of C(t))
10
+ V.call(t, e) && g(o, e, t[e]);
11
+ return o;
12
+ }, _ = (o, t) => T(o, N(t));
13
+ import { defineComponent as R, computed as D, openBlock as p, createElementBlock as d, normalizeStyle as f, unref as i, createElementVNode as x, toDisplayString as O, Fragment as I, renderList as j, normalizeClass as k, renderSlot as B } from "vue";
14
+ import { B as L } from "./element-resize-detector-CcMj2at_.js";
15
+ import { _ as F } from "./index-DCD0sVkl.js";
16
+ import { g as H } from "./titleStyle-BT5GlpAb.js";
17
+ import { A as U, D as $ } from "./ele-arrayCard-icon-CAk9ojr4.js";
18
+ const w = { class: "mix-body" }, P = {
19
+ DEFAULT_ICON: $,
20
+ ACTIVE_ICON: U,
21
+ NAME_CN: "统计",
22
+ NAME_EN: "Array Card",
23
+ ORDER: 5
24
+ }, q = {
25
+ titleColor: "#111",
26
+ bgColor: "#fff",
27
+ textColor: "#111",
28
+ textSize: 48,
29
+ radiusSize: 8,
30
+ isHideTitle: !0
31
+ }, A = [{ fv: "", object_id: "" }], G = ["fv", "object_id"], J = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], K = 1, Q = {
32
+ useAlias: !1,
33
+ source: "mosaic",
34
+ multiObject: !1,
35
+ hideMultiObject: !0
36
+ }, W = { DEFAULT: P, OPTIONS: q, DATA: A, PARAMS: G, SOURCE: J, ITEMS: K, COMMON: Q }, X = /* @__PURE__ */ R(_(h({}, W), {
37
+ __name: "arrayCard",
38
+ props: {
39
+ conf: { type: Object, default: () => ({ data: [] }) },
40
+ uid: { type: String, default: "" },
41
+ mode: { type: String, default: "edit" },
42
+ theme: { type: String, default: "light" }
43
+ },
44
+ setup(o) {
45
+ const t = o;
46
+ class e extends L {
47
+ extractStyles() {
48
+ return {
49
+ bgColor: this.getOptionValue("bgColor", "#fff"),
50
+ titleColor: this.getOptionValue("titleColor", "#111"),
51
+ textColor: this.getOptionValue("textColor", "#111"),
52
+ textSize: this.getOptionValue("textSize", 48),
53
+ radiusSize: this.getOptionValue("radiusSize", 8),
54
+ isHideTitle: this.getOptionValue("isHideTitle", !0)
55
+ };
56
+ }
57
+ init() {
58
+ var r;
59
+ this.Style.value = this.extractStyles(), this.applyTheme(), (r = this.props.conf.data) != null && r.length || (this.props.conf.data = A);
60
+ }
61
+ // 使用基类的默认 setSocketData 实现
62
+ }
63
+ const m = new e(t, "arrayCard");
64
+ m.setupLifecycle();
65
+ const a = m.getStyle(), u = t.conf, b = D(() => H(t.conf.options)), v = (s) => {
66
+ var S;
67
+ const r = ((S = s == null ? void 0 : s[0]) == null ? void 0 : S.value) || 0, l = String(Math.floor(Number(r) || 0)), n = [];
68
+ let c = 0;
69
+ for (; c < l.length; )
70
+ n.push(l.slice(c, c + 3)), c += 3;
71
+ return n.flatMap((y, z) => z > 0 ? [",", y] : [y]);
72
+ };
73
+ return (s, r) => (p(), d("div", {
74
+ class: "mix-component",
75
+ style: f({ background: i(a).bgColor, borderRadius: `${i(a).radiusSize}px` })
76
+ }, [
77
+ x("div", {
78
+ class: "mix-title",
79
+ style: f(b.value)
80
+ }, O(i(u).caption || i(u).name), 5),
81
+ x("div", w, [
82
+ (p(!0), d(I, null, j(v(i(u).data), (l, n) => (p(), d("div", {
83
+ key: n,
84
+ class: k(["digit-item", { separator: l == "," }]),
85
+ style: f({ fontSize: `${i(a).textSize}px`, color: i(a).textColor })
86
+ }, O(l), 7))), 128))
87
+ ]),
88
+ B(s.$slots, "default", {}, void 0, !0)
89
+ ], 4));
90
+ }
91
+ })), st = /* @__PURE__ */ F(X, [["__scopeId", "data-v-ace26503"]]);
92
+ export {
93
+ st as default
94
+ };
@@ -0,0 +1 @@
1
+ "use strict";var A=Object.defineProperty,E=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var S=(r,t,o)=>t in r?A(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o,y=(r,t)=>{for(var o in t||(t={}))z.call(t,o)&&S(r,o,t[o]);if(m)for(var o of m(t))T.call(t,o)&&S(r,o,t[o]);return r},C=(r,t)=>E(r,b(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./element-resize-detector-Dv3K8Mdu.cjs"),N=require("./index-p4bdBANg.cjs"),I=require("./titleStyle-NSnz6cUg.cjs"),g=require("./ele-arrayCard-icon-QOabvV0y.cjs"),M={class:"mix-body"},V={DEFAULT_ICON:g.DEFAULT_ICON,ACTIVE_ICON:g.ACTIVE_ICON,NAME_CN:"统计",NAME_EN:"Array Card",ORDER:5},k={titleColor:"#111",bgColor:"#fff",textColor:"#111",textSize:48,radiusSize:8,isHideTitle:!0},_=[{fv:"",object_id:""}],D=["fv","object_id"],R=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],B=1,j={useAlias:!1,source:"mosaic",multiObject:!1,hideMultiObject:!0},q={DEFAULT:V,OPTIONS:k,DATA:_,PARAMS:D,SOURCE:R,ITEMS:B,COMMON:j},L=e.defineComponent(C(y({},q),{__name:"arrayCard",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const t=r;class o extends v.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",48),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0)}}init(){var l;this.Style.value=this.extractStyles(),this.applyTheme(),(l=this.props.conf.data)!=null&&l.length||(this.props.conf.data=_)}}const d=new o(t,"arrayCard");d.setupLifecycle();const n=d.getStyle(),u=t.conf,h=e.computed(()=>I.generateTitleStyle(t.conf.options)),O=i=>{var p;const l=((p=i==null?void 0:i[0])==null?void 0:p.value)||0,s=String(Math.floor(Number(l)||0)),a=[];let c=0;for(;c<s.length;)a.push(s.slice(c,c+3)),c+=3;return a.flatMap((f,x)=>x>0?[",",f]:[f])};return(i,l)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(h.value)},e.toDisplayString(e.unref(u).caption||e.unref(u).name),5),e.createElementVNode("div",M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O(e.unref(u).data),(s,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:e.normalizeClass(["digit-item",{separator:s==","}]),style:e.normalizeStyle({fontSize:`${e.unref(n).textSize}px`,color:e.unref(n).textColor})},e.toDisplayString(s),7))),128))]),e.renderSlot(i.$slots,"default",{},void 0,!0)],4))}})),F=N._export_sfc(L,[["__scopeId","data-v-ace26503"]]);exports.default=F;
@@ -27,12 +27,12 @@ var B = (s, n, o) => new Promise((b, w) => {
27
27
  p((o = o.apply(s, n)).next());
28
28
  });
29
29
  import { defineComponent as Q, ref as C, getCurrentInstance as X, computed as Y, onMounted as ee, onBeforeUnmount as te, openBlock as u, createElementBlock as d, normalizeStyle as oe, unref as S, createElementVNode as l, normalizeClass as ae, toDisplayString as x, createCommentVNode as m, withDirectives as le, withKeys as se, vModelText as ne, renderSlot as re } from "vue";
30
- import { B as ie } from "./element-resize-detector-DJcsrJ8s.js";
31
- import { f as ue, g as de, _ as ce } from "./index-kShjySl9.js";
32
- import { a as pe } from "./api-C0GhBpqd.js";
33
- import { F as me } from "./config-Cc2W4vke.js";
30
+ import { B as ie } from "./element-resize-detector-CcMj2at_.js";
31
+ import { f as ue, g as de, _ as ce } from "./index-DCD0sVkl.js";
32
+ import { a as pe } from "./api-Cug1klvp.js";
33
+ import { F as me } from "./config-D3MEjLGn.js";
34
34
  import { ElMessage as g } from "element-plus";
35
- import { u as fe } from "./store-DzDtVfSX.js";
35
+ import { u as fe } from "./store-BLHqFZQd.js";
36
36
  import { A as ve, D as ye } from "./ele-vdo-icon-DcWebTR5.js";
37
37
  const he = { class: "mix-body" }, ge = { class: "upload-content" }, Ae = { class: "upload-title" }, Ce = {
38
38
  key: 0,
@@ -1 +1 @@
1
- "use strict";var $=Object.defineProperty,H=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var b=(n,r,a)=>r in n?$(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a,M=(n,r)=>{for(var a in r||(r={}))j.call(r,a)&&b(n,a,r[a]);if(T)for(var a of T(r))W.call(r,a)&&b(n,a,r[a]);return n},O=(n,r)=>H(n,z(r));var x=(n,r,a)=>new Promise((C,g)=>{var p=s=>{try{u(a.next(s))}catch(E){g(E)}},i=s=>{try{u(a.throw(s))}catch(E){g(E)}},u=s=>s.done?C(s.value):Promise.resolve(s.value).then(p,i);u((a=a.apply(n,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Z=require("./element-resize-detector-Bo5uDQAu.cjs"),_=require("./index-Mh5Dw2sd.cjs"),G=require("./api-P_s372dW.cjs"),K=require("./config-BLSroAzs.cjs"),v=require("element-plus"),J=require("./store-BJW2NQkK.cjs"),D=require("./ele-vdo-icon-Bgp9gaT6.cjs"),Q={class:"mix-body"},X={class:"upload-content"},Y={class:"upload-title"},ee={key:0,class:"upload-hint"},te={key:1,class:"upload-formats"},oe={key:1,class:"stream-input-area"},ae={class:"stream-content"},le={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},ne={key:0,class:"stream-input-container"},re=["disabled"],se={key:1,class:"stream-hint"},ie={key:2,class:"stream-hint"},ce={key:2,class:"player-container"},ue={key:0,class:"audio-controls"},de={class:"file-info"},pe={class:"file-name"},me={class:"audio-container"},fe=["src","controls","autoplay","loop","muted"],ve={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"音频播放器",NAME_EN:"Audio Player",ORDER:2},ye={sourceType:{value:"upload",type:"select",label:"component.audio.sourceType",options:[{label:"component.audio.uploadFile",value:"upload"},{label:"component.audio.audioStream",value:"stream"}]},autoplay:!1,loop:!1,muted:!1,controls:!0,fileUrl:{value:"",type:"string",label:"component.audio.fileUrl",placeholder:"component.audio.uploadPlaceholder"},fileName:{value:"",type:"string",label:"component.audio.fileName",placeholder:"component.audio.uploadPlaceholder"},streamUrl:{value:"",type:"string",label:"component.audio.streamUrl",placeholder:"component.audio.streamPlaceholder"}},ge=[],Ee=[],he=[],Ve=null,Ne={DEFAULT:ve,OPTIONS:ye,DATA:ge,PARAMS:Ee,SOURCE:he,COMMON:Ve},Ce=e.defineComponent(O(M({},Ne),{__name:"audio",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const r=J.useCounterStore(),a=n;class C extends Z.BaseComponent{extractStyles(){return{radiusSize:this.getOptionValue("radiusSize",0),autoplay:this.getOptionValue("autoplay",!1),loop:this.getOptionValue("loop",!1),muted:this.getOptionValue("muted",!1),controls:this.getOptionValue("controls",!0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),I()}}const g=new C(a,"audio");g.setupLifecycle();const p=g.getStyle(),i=e.ref(""),u=e.ref(""),s=e.ref(null),E=e.ref(null),w=e.ref(!1),m=e.ref(""),y=e.getCurrentInstance(),V=e.computed(()=>{var o,t,l;return((l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.sourceType)==null?void 0:l.value)||"upload"}),I=()=>{var o,t,l,c,d,f,N;V.value==="upload"&&((l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.fileUrl)!=null&&l.value)&&(i.value=a.conf.options.fileUrl.value,u.value=((c=a.conf.options.fileName)==null?void 0:c.value)||""),V.value==="stream"&&((N=(f=(d=a.conf)==null?void 0:d.options)==null?void 0:f.streamUrl)!=null&&N.value)&&(m.value=a.conf.options.streamUrl.value,k())},R=()=>{var o;(o=s.value)==null||o.click()},S=o=>x(null,null,function*(){var c,d;const t=o.target.files[0];if(!t)return;if(!t.type.startsWith("audio/")){v.ElMessage.warning("请选择有效的音频文件");return}const l=URL.createObjectURL(t);i.value=l,u.value=t.name;try{w.value=!0;const f=yield _.fileToDataUrl(t),N=_.getFileExtension(t.name),h=yield G.api.post("upload",{dashboard_uid:r.pageData.id,file_data:f,file_type:N,user_id:((c=r.session.userInfo)==null?void 0:c.id)||""},!0);if(h.code===200&&((d=h.result)!=null&&d.relative_path)){const L=K.FILE_URL+h.result.relative_path;URL.revokeObjectURL(l),i.value=L,A("fileUrl",L),A("fileName",h.result.file_name||t.name),v.ElMessage.success("音频上传成功")}else throw new Error(h.msg||"上传失败")}catch(f){console.error("音频上传失败:",f),v.ElMessage.error("音频上传失败: "+(f.message||"未知错误"))}finally{w.value=!1,s.value&&(s.value.value="")}}),k=()=>{if(!m.value.trim()){v.ElMessage.warning("请输入音频流地址");return}const o=m.value.trim();A("streamUrl",o),i.value=o,u.value="音频流",v.ElMessage.success("音频流连接成功")},A=(o,t)=>{var l;(l=a.conf)!=null&&l.options&&(a.conf.options[o]||(a.conf.options[o]={value:"",type:"string",label:""}),a.conf.options[o].value=t)},U=o=>{o.preventDefault(),o.stopPropagation()},B=o=>{var l;o.preventDefault(),o.stopPropagation();const t=(l=o.dataTransfer)==null?void 0:l.files;if(t&&t.length>0){const c=t[0];if(c!=null&&c.type.startsWith("audio/")){const d=new DataTransfer;d.items.add(c),s.value&&(s.value.files=d.files,S({target:s.value}))}else v.ElMessage.warning("请选择有效的音频文件")}},P=()=>{i.value="",u.value="",m.value=""},q=()=>{console.log("Audio metadata loaded")},F=o=>{console.error("Audio error:",o),v.ElMessage.error("音频加载失败,请检查URL或文件")};return e.onMounted(()=>{var o,t;if(a.mode!=="preview"){const l=(t=(o=y==null?void 0:y.proxy)==null?void 0:o.$el)==null?void 0:t.querySelector(".upload-area");l&&(l.addEventListener("dragover",U),l.addEventListener("drop",B))}}),e.onBeforeUnmount(()=>{var t,l;const o=(l=(t=y==null?void 0:y.proxy)==null?void 0:t.$el)==null?void 0:l.querySelector(".upload-area");o&&(o.removeEventListener("dragover",U),o.removeEventListener("drop",B))}),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({borderRadius:`${e.unref(p).radiusSize}px`})},[e.createElementVNode("div",Q,[!i.value&&V.value==="upload"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["upload-area",{"preview-mode":n.mode==="preview"}]),onClick:t[0]||(t[0]=l=>n.mode!=="preview"&&R())},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:s,type:"file",accept:"audio/*",onChange:S,style:{display:"none"}},null,544),e.createElementVNode("div",X,[t[3]||(t[3]=e.createElementVNode("div",{class:"upload-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"32",height:"32",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,3V13.55C11.41,13.21 10.73,13 10,13A3,3 0 0,0 7,16A3,3 0 0,0 10,19A3,3 0 0,0 13,16V7H18V5H12V3Z"})])],-1)),e.createElementVNode("h3",Y,e.toDisplayString(n.mode==="preview"?o.$t("component.audio.noFile"):o.$t("component.audio.uploadText")),1),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",ee,e.toDisplayString(o.$t("component.audio.uploadHint")),1)):e.createCommentVNode("",!0),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",te,[...t[2]||(t[2]=[e.createElementVNode("span",{class:"format-tag"},"MP3",-1),e.createElementVNode("span",{class:"format-tag"},"WAV",-1),e.createElementVNode("span",{class:"format-tag"},"OGG",-1),e.createElementVNode("span",{class:"format-tag"},"AAC",-1)])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),!i.value&&V.value==="stream"?(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ae,[(e.openBlock(),e.createElementBlock("svg",le,[...t[4]||(t[4]=[e.createElementVNode("path",{d:"M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z"},null,-1)])])),t[5]||(t[5]=e.createElementVNode("p",{class:"stream-text"},"音频流播放",-1)),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",ne,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=l=>m.value=l),type:"text",class:"stream-url-input",placeholder:"请输入音频流地址,如:http://xxx/radio/stream.mp3",onKeyup:e.withKeys(k,["enter"])},null,544),[[e.vModelText,m.value]]),e.createElementVNode("button",{class:"connect-btn",onClick:k,disabled:!m.value.trim()}," 连接 ",8,re)])):e.createCommentVNode("",!0),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",se,"支持格式: HTTP音频流")):e.createCommentVNode("",!0),n.mode==="preview"?(e.openBlock(),e.createElementBlock("p",ie,"未配置音频流地址")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("div",ce,[n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("div",de,[e.createElementVNode("span",pe,e.toDisplayString(u.value||i.value),1),e.createElementVNode("button",{class:"change-file-btn",onClick:P,title:"更换文件"},[...t[6]||(t[6]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",me,[e.createElementVNode("audio",{ref_key:"audioRef",ref:E,src:i.value,controls:e.unref(p).controls,autoplay:e.unref(p).autoplay,loop:e.unref(p).loop,muted:e.unref(p).muted,onLoadedmetadata:q,onError:F,class:"audio-element"}," 您的浏览器不支持音频播放 ",40,fe)])])):e.createCommentVNode("",!0)]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),ke=_._export_sfc(Ce,[["__scopeId","data-v-050c7953"]]);exports.default=ke;
1
+ "use strict";var $=Object.defineProperty,H=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var b=(n,r,a)=>r in n?$(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a,M=(n,r)=>{for(var a in r||(r={}))j.call(r,a)&&b(n,a,r[a]);if(T)for(var a of T(r))W.call(r,a)&&b(n,a,r[a]);return n},O=(n,r)=>H(n,z(r));var x=(n,r,a)=>new Promise((C,g)=>{var p=s=>{try{u(a.next(s))}catch(E){g(E)}},i=s=>{try{u(a.throw(s))}catch(E){g(E)}},u=s=>s.done?C(s.value):Promise.resolve(s.value).then(p,i);u((a=a.apply(n,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Z=require("./element-resize-detector-Dv3K8Mdu.cjs"),_=require("./index-p4bdBANg.cjs"),G=require("./api-B54Z00Zb.cjs"),K=require("./config-UTUPYJ45.cjs"),v=require("element-plus"),J=require("./store-B3uCwXgM.cjs"),D=require("./ele-vdo-icon-Bgp9gaT6.cjs"),Q={class:"mix-body"},X={class:"upload-content"},Y={class:"upload-title"},ee={key:0,class:"upload-hint"},te={key:1,class:"upload-formats"},oe={key:1,class:"stream-input-area"},ae={class:"stream-content"},le={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},ne={key:0,class:"stream-input-container"},re=["disabled"],se={key:1,class:"stream-hint"},ie={key:2,class:"stream-hint"},ce={key:2,class:"player-container"},ue={key:0,class:"audio-controls"},de={class:"file-info"},pe={class:"file-name"},me={class:"audio-container"},fe=["src","controls","autoplay","loop","muted"],ve={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"音频播放器",NAME_EN:"Audio Player",ORDER:2},ye={sourceType:{value:"upload",type:"select",label:"component.audio.sourceType",options:[{label:"component.audio.uploadFile",value:"upload"},{label:"component.audio.audioStream",value:"stream"}]},autoplay:!1,loop:!1,muted:!1,controls:!0,fileUrl:{value:"",type:"string",label:"component.audio.fileUrl",placeholder:"component.audio.uploadPlaceholder"},fileName:{value:"",type:"string",label:"component.audio.fileName",placeholder:"component.audio.uploadPlaceholder"},streamUrl:{value:"",type:"string",label:"component.audio.streamUrl",placeholder:"component.audio.streamPlaceholder"}},ge=[],Ee=[],he=[],Ve=null,Ne={DEFAULT:ve,OPTIONS:ye,DATA:ge,PARAMS:Ee,SOURCE:he,COMMON:Ve},Ce=e.defineComponent(O(M({},Ne),{__name:"audio",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const r=J.useCounterStore(),a=n;class C extends Z.BaseComponent{extractStyles(){return{radiusSize:this.getOptionValue("radiusSize",0),autoplay:this.getOptionValue("autoplay",!1),loop:this.getOptionValue("loop",!1),muted:this.getOptionValue("muted",!1),controls:this.getOptionValue("controls",!0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),I()}}const g=new C(a,"audio");g.setupLifecycle();const p=g.getStyle(),i=e.ref(""),u=e.ref(""),s=e.ref(null),E=e.ref(null),w=e.ref(!1),m=e.ref(""),y=e.getCurrentInstance(),V=e.computed(()=>{var o,t,l;return((l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.sourceType)==null?void 0:l.value)||"upload"}),I=()=>{var o,t,l,c,d,f,N;V.value==="upload"&&((l=(t=(o=a.conf)==null?void 0:o.options)==null?void 0:t.fileUrl)!=null&&l.value)&&(i.value=a.conf.options.fileUrl.value,u.value=((c=a.conf.options.fileName)==null?void 0:c.value)||""),V.value==="stream"&&((N=(f=(d=a.conf)==null?void 0:d.options)==null?void 0:f.streamUrl)!=null&&N.value)&&(m.value=a.conf.options.streamUrl.value,k())},R=()=>{var o;(o=s.value)==null||o.click()},S=o=>x(null,null,function*(){var c,d;const t=o.target.files[0];if(!t)return;if(!t.type.startsWith("audio/")){v.ElMessage.warning("请选择有效的音频文件");return}const l=URL.createObjectURL(t);i.value=l,u.value=t.name;try{w.value=!0;const f=yield _.fileToDataUrl(t),N=_.getFileExtension(t.name),h=yield G.api.post("upload",{dashboard_uid:r.pageData.id,file_data:f,file_type:N,user_id:((c=r.session.userInfo)==null?void 0:c.id)||""},!0);if(h.code===200&&((d=h.result)!=null&&d.relative_path)){const L=K.FILE_URL+h.result.relative_path;URL.revokeObjectURL(l),i.value=L,A("fileUrl",L),A("fileName",h.result.file_name||t.name),v.ElMessage.success("音频上传成功")}else throw new Error(h.msg||"上传失败")}catch(f){console.error("音频上传失败:",f),v.ElMessage.error("音频上传失败: "+(f.message||"未知错误"))}finally{w.value=!1,s.value&&(s.value.value="")}}),k=()=>{if(!m.value.trim()){v.ElMessage.warning("请输入音频流地址");return}const o=m.value.trim();A("streamUrl",o),i.value=o,u.value="音频流",v.ElMessage.success("音频流连接成功")},A=(o,t)=>{var l;(l=a.conf)!=null&&l.options&&(a.conf.options[o]||(a.conf.options[o]={value:"",type:"string",label:""}),a.conf.options[o].value=t)},U=o=>{o.preventDefault(),o.stopPropagation()},B=o=>{var l;o.preventDefault(),o.stopPropagation();const t=(l=o.dataTransfer)==null?void 0:l.files;if(t&&t.length>0){const c=t[0];if(c!=null&&c.type.startsWith("audio/")){const d=new DataTransfer;d.items.add(c),s.value&&(s.value.files=d.files,S({target:s.value}))}else v.ElMessage.warning("请选择有效的音频文件")}},P=()=>{i.value="",u.value="",m.value=""},q=()=>{console.log("Audio metadata loaded")},F=o=>{console.error("Audio error:",o),v.ElMessage.error("音频加载失败,请检查URL或文件")};return e.onMounted(()=>{var o,t;if(a.mode!=="preview"){const l=(t=(o=y==null?void 0:y.proxy)==null?void 0:o.$el)==null?void 0:t.querySelector(".upload-area");l&&(l.addEventListener("dragover",U),l.addEventListener("drop",B))}}),e.onBeforeUnmount(()=>{var t,l;const o=(l=(t=y==null?void 0:y.proxy)==null?void 0:t.$el)==null?void 0:l.querySelector(".upload-area");o&&(o.removeEventListener("dragover",U),o.removeEventListener("drop",B))}),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({borderRadius:`${e.unref(p).radiusSize}px`})},[e.createElementVNode("div",Q,[!i.value&&V.value==="upload"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["upload-area",{"preview-mode":n.mode==="preview"}]),onClick:t[0]||(t[0]=l=>n.mode!=="preview"&&R())},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:s,type:"file",accept:"audio/*",onChange:S,style:{display:"none"}},null,544),e.createElementVNode("div",X,[t[3]||(t[3]=e.createElementVNode("div",{class:"upload-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"32",height:"32",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,3V13.55C11.41,13.21 10.73,13 10,13A3,3 0 0,0 7,16A3,3 0 0,0 10,19A3,3 0 0,0 13,16V7H18V5H12V3Z"})])],-1)),e.createElementVNode("h3",Y,e.toDisplayString(n.mode==="preview"?o.$t("component.audio.noFile"):o.$t("component.audio.uploadText")),1),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",ee,e.toDisplayString(o.$t("component.audio.uploadHint")),1)):e.createCommentVNode("",!0),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",te,[...t[2]||(t[2]=[e.createElementVNode("span",{class:"format-tag"},"MP3",-1),e.createElementVNode("span",{class:"format-tag"},"WAV",-1),e.createElementVNode("span",{class:"format-tag"},"OGG",-1),e.createElementVNode("span",{class:"format-tag"},"AAC",-1)])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),!i.value&&V.value==="stream"?(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ae,[(e.openBlock(),e.createElementBlock("svg",le,[...t[4]||(t[4]=[e.createElementVNode("path",{d:"M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z"},null,-1)])])),t[5]||(t[5]=e.createElementVNode("p",{class:"stream-text"},"音频流播放",-1)),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",ne,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=l=>m.value=l),type:"text",class:"stream-url-input",placeholder:"请输入音频流地址,如:http://xxx/radio/stream.mp3",onKeyup:e.withKeys(k,["enter"])},null,544),[[e.vModelText,m.value]]),e.createElementVNode("button",{class:"connect-btn",onClick:k,disabled:!m.value.trim()}," 连接 ",8,re)])):e.createCommentVNode("",!0),n.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",se,"支持格式: HTTP音频流")):e.createCommentVNode("",!0),n.mode==="preview"?(e.openBlock(),e.createElementBlock("p",ie,"未配置音频流地址")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("div",ce,[n.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("div",de,[e.createElementVNode("span",pe,e.toDisplayString(u.value||i.value),1),e.createElementVNode("button",{class:"change-file-btn",onClick:P,title:"更换文件"},[...t[6]||(t[6]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",me,[e.createElementVNode("audio",{ref_key:"audioRef",ref:E,src:i.value,controls:e.unref(p).controls,autoplay:e.unref(p).autoplay,loop:e.unref(p).loop,muted:e.unref(p).muted,onLoadedmetadata:q,onError:F,class:"audio-element"}," 您的浏览器不支持音频播放 ",40,fe)])])):e.createCommentVNode("",!0)]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),ke=_._export_sfc(Ce,[["__scopeId","data-v-050c7953"]]);exports.default=ke;
@@ -1,2 +1,2 @@
1
- "use strict";var k=Object.defineProperty,q=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var U=(c,o,r)=>o in c?k(c,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[o]=r,g=(c,o)=>{for(var r in o||(o={}))$.call(o,r)&&U(c,r,o[r]);if(D)for(var r of D(o))w.call(o,r)&&U(c,r,o[r]);return c},C=(c,o)=>q(c,R(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),b=require("./element-resize-detector-Bo5uDQAu.cjs"),N=require("./index-Mh5Dw2sd.cjs"),V=require("./EChartComponentBase-BaQpBzVC.cjs"),j=require("./titleStyle-NSnz6cUg.cjs"),B=require("./store-BJW2NQkK.cjs"),L=require("./ele-bar-icon-V94clxg_.cjs"),M=require("./install-DV5cEgNV.cjs"),W=require("./install-CltTFs4e.cjs"),_=require("./installCanvasRenderer-CyhM1Qpl.cjs"),P=require("./install-C8buXQPI.cjs"),X=require("./install-Ch5d8i37.cjs"),F={class:"mix-body"},G=["id"],H={DEFAULT_ICON:L.DEFAULT_ICON,ACTIVE_ICON:L.ACTIVE_ICON,NAME_CN:"基础柱状图",NAME_EN:"Bar Chart",ORDER:1},K={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:40,right:20,radiusSize:8,textSize:12,barWidth:30,points:10,isHideTitle:!1,showLabel:!1},J=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],Q=["name","fv","object_id","color"],Y=["mosaic","statistics","calculate"],Z={source:"mosaic",useAlias:!1,multiObject:!1,null:{type:"0",value:""}},tt={DEFAULT:H,OPTIONS:K,DATA:J,PARAMS:Q,SOURCE:Y,COMMON:Z},et=s.defineComponent(C(g({},tt),{__name:"bar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(c){_.use([M.install,W.install,_.install,P.install,_.install$1,X.install]);const o=c,r=N.useLinkStore();class I extends V.EChartComponentBase{extractStyles(){return C(g({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",30),showLabel:this.getOptionValue("showLabel",!1)})}getChartOption(){const t=this.Style.value,i=this.props.conf;return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},textStyle:{align:"left",fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!1},legend:{show:!0,data:i.data.map(a=>a.name),right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},xAxis:[{type:"category",data:this.getXAxisData(),axisTick:{alignWithLabel:!0},axisLine:{lineStyle:{color:t.textColor}},axisLabel:{formatter:a=>{if(!/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(a))return a;const[l,e]=a.split(" ");return`${l}
1
+ "use strict";var k=Object.defineProperty,q=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var U=(c,o,r)=>o in c?k(c,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[o]=r,g=(c,o)=>{for(var r in o||(o={}))$.call(o,r)&&U(c,r,o[r]);if(D)for(var r of D(o))w.call(o,r)&&U(c,r,o[r]);return c},C=(c,o)=>q(c,R(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),b=require("./element-resize-detector-Dv3K8Mdu.cjs"),N=require("./index-p4bdBANg.cjs"),V=require("./EChartComponentBase-BChD1X2l.cjs"),j=require("./titleStyle-NSnz6cUg.cjs"),B=require("./store-B3uCwXgM.cjs"),L=require("./ele-bar-icon-V94clxg_.cjs"),M=require("./install-DV5cEgNV.cjs"),W=require("./install-CltTFs4e.cjs"),_=require("./installCanvasRenderer-CyhM1Qpl.cjs"),P=require("./install-C8buXQPI.cjs"),X=require("./install-Ch5d8i37.cjs"),F={class:"mix-body"},G=["id"],H={DEFAULT_ICON:L.DEFAULT_ICON,ACTIVE_ICON:L.ACTIVE_ICON,NAME_CN:"基础柱状图",NAME_EN:"Bar Chart",ORDER:1},K={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:40,right:20,radiusSize:8,textSize:12,barWidth:30,points:10,isHideTitle:!1,showLabel:!1},J=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],Q=["name","fv","object_id","color"],Y=["mosaic","statistics","calculate"],Z={source:"mosaic",useAlias:!1,multiObject:!1,null:{type:"0",value:""}},tt={DEFAULT:H,OPTIONS:K,DATA:J,PARAMS:Q,SOURCE:Y,COMMON:Z},et=s.defineComponent(C(g({},tt),{__name:"bar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(c){_.use([M.install,W.install,_.install,P.install,_.install$1,X.install]);const o=c,r=N.useLinkStore();class I extends V.EChartComponentBase{extractStyles(){return C(g({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",30),showLabel:this.getOptionValue("showLabel",!1)})}getChartOption(){const t=this.Style.value,i=this.props.conf;return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},textStyle:{align:"left",fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!1},legend:{show:!0,data:i.data.map(a=>a.name),right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},xAxis:[{type:"category",data:this.getXAxisData(),axisTick:{alignWithLabel:!0},axisLine:{lineStyle:{color:t.textColor}},axisLabel:{formatter:a=>{if(!/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(a))return a;const[l,e]=a.split(" ");return`${l}
2
2
  ${e}`},color:t.textColor,fontSize:t.textSize}}],yAxis:[{type:"value",nameGap:10,nameTextStyle:{align:"right"},splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}},splitNumber:4}],series:this.formatSeries()}}getXAxisData(){var l,e;const{data:t,common:i}=this.props.conf,a=(i==null?void 0:i.source)||"mosaic";return["statistics","calculate"].includes(a)&&!((e=(l=t[0])==null?void 0:l.periodUnit)!=null&&e.includes("near"))?b.getBarXAxis(t[0].periodUnit):this.getTimeAxis()}formatSeries(){const t=this.props.conf,i=this.Style.value;return t.data.map((a,l)=>{const e=a.color||b.COLORS[l];return{type:"bar",data:b.getRandomArr({num:i.points,max:200,min:0,mode:this.props.mode,hasDataSource:this.hasData()}),name:a.name,itemStyle:{color:e},label:{show:i.showLabel,position:"top",color:e},barWidth:i.barWidth+"%"}})}setSocketData(t){var S;if(!this.hasData()||!this.chartObj||!t)return;const{data:i,common:a}=this.props.conf,l=a.source||"mosaic",e=this.chartObj.getOption();console.log("[bar] setSocketData called",{SOURCE:l,res:t,data:i,periodUnit:(S=i[0])==null?void 0:S.periodUnit}),i.forEach((n,u)=>{let d,p;if(["statistics","calculate"].includes(l)&&n.periodUnit&&!n.periodUnit.includes("near")){console.log("[bar] 固定周期模式",{item:n,periodUnit:n.periodUnit}),d=this.extractDataValue(t,n.fv);const E=n.periodUnit.split("-");p=b.getXAxisNearTime(t.start_time,E[E.length-1]);const y=e.xAxis[0].data.indexOf(p);console.log("[bar] 固定周期数据",{value:d,time:p,index:y,xAxisData:e.xAxis[0].data}),y>=0&&(e.series[u].data[y]=d)}else["statistics","calculate"].includes(l)&&n.periodUnit&&n.periodUnit.includes("near")?(console.log("[bar] 最近周期模式"),d=this.extractDataValue(t,n.fv),p=t.start_time,p!=null&&(u===0&&e.xAxis[0].data.push(p),e.series[u].data.push(d))):(console.log("[bar] 追加模式(马赛克或默认)"),d=this.extractDataValue(t,n.fv),p=["statistics","calculate"].includes(l)?t.start_time:t.datetime,p!=null&&(u===0&&e.xAxis[0].data.push(p),e.series[u].data.push(d)))});const m=b.addRealtimeData(e.xAxis[0].data,e.series.map(n=>n.data)),x=Number(this.Style.value.points)||10;e.xAxis[0].data=m.times.slice(-x),e.series.forEach((n,u)=>{var d;n.data=((d=m.data[u])==null?void 0:d.slice(-x))||[]}),this.updateChart(e)}}const f=new I(o,"bar");f.setupLifecycle();const A=B.useCounterStore();s.onMounted(()=>{var h;if(A.registerInstance(o.uid,f),o.mode==="preview"){const t=((h=f.getChartInstance)==null?void 0:h.call(f))||f.chartObj;t==null||t.off("click"),t==null||t.on("click",i=>{var l,e,m,x,S,n;const a=i==null?void 0:i.seriesName;if(typeof a=="string"&&a){const u=((e=(l=o.conf)==null?void 0:l.options)==null?void 0:e.linkChannel)==="custom"?(x=(m=o.conf)==null?void 0:m.options)==null?void 0:x.customChannel:(n=(S=o.conf)==null?void 0:S.options)==null?void 0:n.linkChannel;r.publish(u||"bar","bar",{objectId:"",deviceId:"",type:"select",fieldKey:a,fv:g({key:a},i),source:"bar"})}})}}),s.onUnmounted(()=>{A.unregisterInstance(o.uid)});const O=f.getStyle(),z=f.getEchartId(),v=o.conf,T=s.computed(()=>j.generateTitleStyle(o.conf.options));return(h,t)=>(s.openBlock(),s.createElementBlock("div",{class:"mix-component",style:s.normalizeStyle({background:s.unref(O).bgColor,borderRadius:`${s.unref(O).radiusSize}px`})},[s.createElementVNode("div",{class:"mix-title",style:s.normalizeStyle(T.value)},s.toDisplayString(s.unref(v).caption||s.unref(v).name),5),s.createElementVNode("div",F,[s.createElementVNode("div",{class:"w-full h-full",id:s.unref(z)},null,8,G)]),s.renderSlot(h.$slots,"default",{},void 0,!0)],4))}})),ot=N._export_sfc(et,[["__scopeId","data-v-0fc03873"]]);exports.default=ot;
@@ -11,11 +11,11 @@ var E = (r, o, l) => o in r ? z(r, o, { enumerable: !0, configurable: !0, writab
11
11
  return r;
12
12
  }, y = (r, o) => I(r, T(o));
13
13
  import { defineComponent as $, onMounted as j, onUnmounted as V, computed as B, openBlock as M, createElementBlock as W, normalizeStyle as U, unref as S, createElementVNode as C, toDisplayString as X, renderSlot as P } from "vue";
14
- import { g as F, C as G, a as H, b as K, c as q } from "./element-resize-detector-DJcsrJ8s.js";
15
- import { u as J, _ as Q } from "./index-kShjySl9.js";
16
- import { E as Y } from "./EChartComponentBase-BQOhWkz2.js";
14
+ import { g as F, C as G, a as H, b as K, c as q } from "./element-resize-detector-CcMj2at_.js";
15
+ import { u as J, _ as Q } from "./index-DCD0sVkl.js";
16
+ import { E as Y } from "./EChartComponentBase-tSVuV5H3.js";
17
17
  import { g as Z } from "./titleStyle-BT5GlpAb.js";
18
- import { u as tt } from "./store-DzDtVfSX.js";
18
+ import { u as tt } from "./store-BLHqFZQd.js";
19
19
  import { A as et, D as ot } from "./ele-bar-icon-C-GiCs2a.js";
20
20
  import { i as at } from "./install-CBde4hAM.js";
21
21
  import { i as st } from "./install-hfre7yvV.js";
@@ -30,12 +30,12 @@ import { ElIcon as te } from "element-plus/es";
30
30
  import "element-plus/es/components/base/style/css";
31
31
  import "element-plus/es/components/icon/style/css";
32
32
  import { defineComponent as oe, getCurrentInstance as se, computed as R, reactive as ne, ref as w, openBlock as f, createElementBlock as y, normalizeStyle as $, unref as b, createElementVNode as i, toDisplayString as p, createVNode as N, withCtx as A, Fragment as ae, renderList as le, createBlock as ie, createCommentVNode as P, withModifiers as re, renderSlot as ce } from "vue";
33
- import { B as de } from "./element-resize-detector-DJcsrJ8s.js";
34
- import { _ as ue } from "./index-kShjySl9.js";
33
+ import { B as de } from "./element-resize-detector-CcMj2at_.js";
34
+ import { _ as ue } from "./index-DCD0sVkl.js";
35
35
  import { g as pe } from "./titleStyle-BT5GlpAb.js";
36
36
  import { n as me, B as fe, M as ge, a as ve, w as _e } from "./no-image-icon-n2ZlEjxS.js";
37
37
  import { Close as he } from "@element-plus/icons-vue";
38
- import { a as F } from "./api-C0GhBpqd.js";
38
+ import { a as F } from "./api-Cug1klvp.js";
39
39
  import { A as ye, D as be } from "./ele-bmp-icon-Pdolk1J5.js";
40
40
  const ke = { class: "mix-body" }, Ce = { key: 0 }, Se = { class: "w-[80px] h-[80px]" }, xe = ["src"], Me = { class: "bdmap-base-info" }, we = { class: "flex" }, Ne = { class: "name" }, Oe = { class: "value" }, ze = { class: "flex" }, $e = { class: "name" }, Ae = { class: "value" }, Be = { class: "flex" }, Ee = { class: "name" }, Ie = { class: "value" }, Ve = {
41
41
  key: 1,
@@ -1 +1 @@
1
- "use strict";var P=Object.defineProperty,F=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var O=(a,l,s)=>l in a?P(a,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[l]=s,w=(a,l)=>{for(var s in l||(l={}))U.call(l,s)&&O(a,s,l[s]);if(B)for(var s of B(l))Z.call(l,s)&&O(a,s,l[s]);return a},z=(a,l)=>F(a,H(l));var M=(a,l,s)=>new Promise((m,p)=>{var y=c=>{try{g(s.next(c))}catch(_){p(_)}},S=c=>{try{g(s.throw(c))}catch(_){p(_)}},g=c=>c.done?m(c.value):Promise.resolve(c.value).then(y,S);g((s=s.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),K=require("./element-resize-detector-Bo5uDQAu.cjs"),G=require("./index-Mh5Dw2sd.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),N=require("./no-image-icon-CPA7RKkF.cjs"),Q=require("@element-plus/icons-vue"),I=require("./api-P_s372dW.cjs"),$=require("./ele-bmp-icon-BBI0-SX7.cjs"),X={class:"mix-body"},Y={key:0},ee={class:"w-[80px] h-[80px]"},te=["src"],oe={class:"bdmap-base-info"},ne={class:"flex"},se={class:"name"},le={class:"value"},ae={class:"flex"},ie={class:"name"},re={class:"value"},ce={class:"flex"},de={class:"name"},ue={class:"value"},pe={key:1,class:"w-[100%] h-[100%] p-[12px] text-[13px] text-[#999]"},me={DEFAULT_ICON:$.DEFAULT_ICON,ACTIVE_ICON:$.ACTIVE_ICON,NAME_CN:"百度地图",NAME_EN:"Baidu Map",ORDER:2},ge={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,lng:113.933782,lat:22.582649,zoom:10},fe={baiduMapAk:""},ve={DEFAULT:me,OPTIONS:ge,COMMON:fe},ye=e.defineComponent(z(w({},ve),{__name:"bmp",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){const{proxy:l}=e.getCurrentInstance(),s="bmp_"+Math.random().toString(16).substring(4,12);let m=null,p=null;const y=a;class S extends K.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),zoom:this.getOptionValue("zoom",10),lng:this.getOptionValue("lng",113.933782),lat:this.getOptionValue("lat",22.582649),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var u;this.Style.value=this.extractStyles(),this.applyTheme(),i.zoom=this.Style.value.zoom,i.center.lat=this.Style.value.lat,i.center.lng=this.Style.value.lng;const t=((u=this.props.conf)==null?void 0:u.common)||{};if(i.ak=t.baiduMapAk||"",p&&m){const n=new p.Point(this.Style.value.lng,this.Style.value.lat);m.centerAndZoom(n,this.Style.value.zoom)}}}const g=new S(y,"bmp");g.setupLifecycle();const c=g.getStyle(),_=e.computed(()=>J.generateTitleStyle(y.conf.options)),i=e.reactive({zoom:10,ak:"",center:{lat:22.582649,lng:113.933782}}),f=e.ref([]),d=e.ref({}),E=e.ref(0),V=e.ref(0),h=e.ref(!1),A=({BMap:o,map:t})=>{m=t,p=o,y.mode==="preview"&&D()},D=()=>M(null,null,function*(){const{result:o}=yield I.api.post("get_object_list"),t=/^(\-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,6})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,6}|180)$/,u=/^(\-|\+)?([0-8]?\d{1}\.\d{0,6}|90\.0{0,6}|[0-8]?\d{1}|90)$/;f.value=[];let n=!1;o.data.forEach(r=>{let k="";if(r.gis||r.gis.split(", ").length>1){const v=r.gis.split(", ");if(t.test(v[1])&&u.test(v[0])&&Number(v[1])&&Number(v[0])){const x=N.wgs84tobd09(Number(v[1]),Number(v[0]));k=x[1]+","+x[0]}else k=r.custom_gis}else k=r.custom_gis;const b=k.split(",");b.length>=2&&!n&&(i.center.lng=Number(b[1]),i.center.lat=Number(b[0]),n=!0),k.length>1&&f.value.push({center:{lng:b[1],lat:b[0]},image:r.image,address:r.address||r.province+r.city,name:r.name,uid:r.uid,desc:r.description})}),!n&&f.value[0]&&(i.center=f.value[0].center);const C=new p.Point(i.center.lng,i.center.lat);m.centerAndZoom(C,c.value.zoom)}),q=(o,t)=>{E.value=o.pixel.y+10+"px",V.value=o.pixel.x+10+"px",d.value=t,t.address||j(t),h.value=!0},T=o=>console.log(o),L=e.computed(()=>d.value.image?l.config.file_url+"/"+d.value.image:N.nullImage),j=o=>{const t=`${o.center.lat},${o.center.lng}`,u={ak:i.ak,location:t,coordtype:"bd09ll",output:"json",extensions_poi:1};I.api.getLocation("/bdMapAddress",u).then(n=>{n.status===0&&(d.value.address=n.result.formatted_address_poi||n.result.formatted_address)})},R=o=>{if(o){let t=location.href;t.indexOf("?object_id=")>-1&&(t=t.split("?object_id=")[0]),location.href=t+"?object_id="+o,location.reload()}};return(o,t)=>{const u=W.ElIcon;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(_.value)},e.toDisplayString(a.conf.caption||a.conf.name),5),e.createElementVNode("div",X,[i.ak?(e.openBlock(),e.createElementBlock("div",{key:0,class:"map-wrap",id:s},[e.createVNode(e.unref(N.BaiduMap),{class:"bm-view relative",center:i.center,"map-click":!1,zoom:i.zoom,ak:i.ak,v:"3.0",type:"API",onMovestart:t[2]||(t[2]=n=>h.value=!1),onZoomstart:t[3]||(t[3]=n=>h.value=!1),onClick:t[4]||(t[4]=n=>T("close")),"scroll-wheel-zoom":!0,onReady:A},{default:e.withCtx(()=>[f.value.length?(e.openBlock(),e.createElementBlock("div",Y,[e.createVNode(e.unref(N.MarkerClusterer),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,n=>(e.openBlock(),e.createBlock(e.unref(N.BmMarker),{onClick:C=>q(C,n),key:n.uid,position:n.center},null,8,["onClick","position"]))),128))]),_:1})])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"index-bdmap-equipment",style:e.normalizeStyle({top:E.value,left:V.value}),onClick:t[1]||(t[1]=n=>R(d.value))},[e.createElementVNode("div",ee,[e.createElementVNode("img",{src:L.value,class:"w-[100%] h-[100%]"},null,8,te)]),e.createElementVNode("div",oe,[e.createElementVNode("div",ne,[e.createElementVNode("span",se,e.toDisplayString(o.$t("component.map.deviceNumber"))+":",1),e.createElementVNode("span",le,e.toDisplayString(d.value.uid),1)]),e.createElementVNode("div",ae,[e.createElementVNode("span",ie,e.toDisplayString(o.$t("component.map.deviceName"))+":",1),e.createElementVNode("span",re,e.toDisplayString(d.value.name),1)]),e.createElementVNode("div",ce,[e.createElementVNode("span",de,e.toDisplayString(o.$t("component.map.address"))+":",1),e.createElementVNode("span",ue,e.toDisplayString(d.value.address),1)])]),e.createVNode(u,{class:"close-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Q.Close),{onClick:t[0]||(t[0]=e.withModifiers(n=>h.value=!1,["stop"]))})]),_:1})],4)):e.createCommentVNode("",!0)]),_:1},8,["center","zoom","ak"])])):(e.openBlock(),e.createElementBlock("div",pe,e.toDisplayString(o.$t("component.map.apiKeyRequired")),1))]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),_e=G._export_sfc(ye,[["__scopeId","data-v-7c9a461b"]]);exports.default=_e;
1
+ "use strict";var P=Object.defineProperty,F=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var O=(a,l,s)=>l in a?P(a,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[l]=s,w=(a,l)=>{for(var s in l||(l={}))U.call(l,s)&&O(a,s,l[s]);if(B)for(var s of B(l))Z.call(l,s)&&O(a,s,l[s]);return a},z=(a,l)=>F(a,H(l));var M=(a,l,s)=>new Promise((m,p)=>{var y=c=>{try{g(s.next(c))}catch(_){p(_)}},S=c=>{try{g(s.throw(c))}catch(_){p(_)}},g=c=>c.done?m(c.value):Promise.resolve(c.value).then(y,S);g((s=s.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),K=require("./element-resize-detector-Dv3K8Mdu.cjs"),G=require("./index-p4bdBANg.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),N=require("./no-image-icon-CPA7RKkF.cjs"),Q=require("@element-plus/icons-vue"),I=require("./api-B54Z00Zb.cjs"),$=require("./ele-bmp-icon-BBI0-SX7.cjs"),X={class:"mix-body"},Y={key:0},ee={class:"w-[80px] h-[80px]"},te=["src"],oe={class:"bdmap-base-info"},ne={class:"flex"},se={class:"name"},le={class:"value"},ae={class:"flex"},ie={class:"name"},re={class:"value"},ce={class:"flex"},de={class:"name"},ue={class:"value"},pe={key:1,class:"w-[100%] h-[100%] p-[12px] text-[13px] text-[#999]"},me={DEFAULT_ICON:$.DEFAULT_ICON,ACTIVE_ICON:$.ACTIVE_ICON,NAME_CN:"百度地图",NAME_EN:"Baidu Map",ORDER:2},ge={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,lng:113.933782,lat:22.582649,zoom:10},fe={baiduMapAk:""},ve={DEFAULT:me,OPTIONS:ge,COMMON:fe},ye=e.defineComponent(z(w({},ve),{__name:"bmp",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){const{proxy:l}=e.getCurrentInstance(),s="bmp_"+Math.random().toString(16).substring(4,12);let m=null,p=null;const y=a;class S extends K.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#73bff9"),titleColor:this.getOptionValue("titleColor","#111"),radiusSize:this.getOptionValue("radiusSize",4),zoom:this.getOptionValue("zoom",10),lng:this.getOptionValue("lng",113.933782),lat:this.getOptionValue("lat",22.582649),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var u;this.Style.value=this.extractStyles(),this.applyTheme(),i.zoom=this.Style.value.zoom,i.center.lat=this.Style.value.lat,i.center.lng=this.Style.value.lng;const t=((u=this.props.conf)==null?void 0:u.common)||{};if(i.ak=t.baiduMapAk||"",p&&m){const n=new p.Point(this.Style.value.lng,this.Style.value.lat);m.centerAndZoom(n,this.Style.value.zoom)}}}const g=new S(y,"bmp");g.setupLifecycle();const c=g.getStyle(),_=e.computed(()=>J.generateTitleStyle(y.conf.options)),i=e.reactive({zoom:10,ak:"",center:{lat:22.582649,lng:113.933782}}),f=e.ref([]),d=e.ref({}),E=e.ref(0),V=e.ref(0),h=e.ref(!1),A=({BMap:o,map:t})=>{m=t,p=o,y.mode==="preview"&&D()},D=()=>M(null,null,function*(){const{result:o}=yield I.api.post("get_object_list"),t=/^(\-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,6})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,6}|180)$/,u=/^(\-|\+)?([0-8]?\d{1}\.\d{0,6}|90\.0{0,6}|[0-8]?\d{1}|90)$/;f.value=[];let n=!1;o.data.forEach(r=>{let k="";if(r.gis||r.gis.split(", ").length>1){const v=r.gis.split(", ");if(t.test(v[1])&&u.test(v[0])&&Number(v[1])&&Number(v[0])){const x=N.wgs84tobd09(Number(v[1]),Number(v[0]));k=x[1]+","+x[0]}else k=r.custom_gis}else k=r.custom_gis;const b=k.split(",");b.length>=2&&!n&&(i.center.lng=Number(b[1]),i.center.lat=Number(b[0]),n=!0),k.length>1&&f.value.push({center:{lng:b[1],lat:b[0]},image:r.image,address:r.address||r.province+r.city,name:r.name,uid:r.uid,desc:r.description})}),!n&&f.value[0]&&(i.center=f.value[0].center);const C=new p.Point(i.center.lng,i.center.lat);m.centerAndZoom(C,c.value.zoom)}),q=(o,t)=>{E.value=o.pixel.y+10+"px",V.value=o.pixel.x+10+"px",d.value=t,t.address||j(t),h.value=!0},T=o=>console.log(o),L=e.computed(()=>d.value.image?l.config.file_url+"/"+d.value.image:N.nullImage),j=o=>{const t=`${o.center.lat},${o.center.lng}`,u={ak:i.ak,location:t,coordtype:"bd09ll",output:"json",extensions_poi:1};I.api.getLocation("/bdMapAddress",u).then(n=>{n.status===0&&(d.value.address=n.result.formatted_address_poi||n.result.formatted_address)})},R=o=>{if(o){let t=location.href;t.indexOf("?object_id=")>-1&&(t=t.split("?object_id=")[0]),location.href=t+"?object_id="+o,location.reload()}};return(o,t)=>{const u=W.ElIcon;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(c).bgColor,borderRadius:`${e.unref(c).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(_.value)},e.toDisplayString(a.conf.caption||a.conf.name),5),e.createElementVNode("div",X,[i.ak?(e.openBlock(),e.createElementBlock("div",{key:0,class:"map-wrap",id:s},[e.createVNode(e.unref(N.BaiduMap),{class:"bm-view relative",center:i.center,"map-click":!1,zoom:i.zoom,ak:i.ak,v:"3.0",type:"API",onMovestart:t[2]||(t[2]=n=>h.value=!1),onZoomstart:t[3]||(t[3]=n=>h.value=!1),onClick:t[4]||(t[4]=n=>T("close")),"scroll-wheel-zoom":!0,onReady:A},{default:e.withCtx(()=>[f.value.length?(e.openBlock(),e.createElementBlock("div",Y,[e.createVNode(e.unref(N.MarkerClusterer),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,n=>(e.openBlock(),e.createBlock(e.unref(N.BmMarker),{onClick:C=>q(C,n),key:n.uid,position:n.center},null,8,["onClick","position"]))),128))]),_:1})])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"index-bdmap-equipment",style:e.normalizeStyle({top:E.value,left:V.value}),onClick:t[1]||(t[1]=n=>R(d.value))},[e.createElementVNode("div",ee,[e.createElementVNode("img",{src:L.value,class:"w-[100%] h-[100%]"},null,8,te)]),e.createElementVNode("div",oe,[e.createElementVNode("div",ne,[e.createElementVNode("span",se,e.toDisplayString(o.$t("component.map.deviceNumber"))+":",1),e.createElementVNode("span",le,e.toDisplayString(d.value.uid),1)]),e.createElementVNode("div",ae,[e.createElementVNode("span",ie,e.toDisplayString(o.$t("component.map.deviceName"))+":",1),e.createElementVNode("span",re,e.toDisplayString(d.value.name),1)]),e.createElementVNode("div",ce,[e.createElementVNode("span",de,e.toDisplayString(o.$t("component.map.address"))+":",1),e.createElementVNode("span",ue,e.toDisplayString(d.value.address),1)])]),e.createVNode(u,{class:"close-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Q.Close),{onClick:t[0]||(t[0]=e.withModifiers(n=>h.value=!1,["stop"]))})]),_:1})],4)):e.createCommentVNode("",!0)]),_:1},8,["center","zoom","ak"])])):(e.openBlock(),e.createElementBlock("div",pe,e.toDisplayString(o.$t("component.map.apiKeyRequired")),1))]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),_e=G._export_sfc(ye,[["__scopeId","data-v-7c9a461b"]]);exports.default=_e;
@@ -1 +1 @@
1
- "use strict";var Z=Object.defineProperty,j=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var F=(a,n,r)=>n in a?Z(a,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[n]=r,f=(a,n)=>{for(var r in n||(n={}))G.call(n,r)&&F(a,r,n[r]);if(D)for(var r of D(n))Q.call(n,r)&&F(a,r,n[r]);return a},y=(a,n)=>j(a,H(n));var A=(a,n,r)=>new Promise((S,v)=>{var V=u=>{try{x(r.next(u))}catch(w){v(w)}},C=u=>{try{x(r.throw(u))}catch(w){v(w)}},x=u=>u.done?S(u.value):Promise.resolve(u.value).then(V,C);x((r=r.apply(a,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/collapse/style/css");require("element-plus/es/components/collapse-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),I=require("@element-plus/icons-vue"),X=require("./element-resize-detector-Bo5uDQAu.cjs"),B=require("./index-Mh5Dw2sd.cjs"),Y="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e组合盒子%3c/title%3e%3cg%20id='box-icon'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(0.000000,%200.500000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3c!--%20外框%20--%3e%3cpath%20d='M14,0%20C15.1045695,0%2016,0.8954305%2016,2%20L16,14%20C16,15.1045695%2015.1045695,16%2014,16%20L2,16%20C0.8954305,16%200,15.1045695%200,14%20L0,2%20C0,0.8954305%200.8954305,0%202,0%20L14,0%20Z%20M14,1.2%20L2,1.2%20C1.55817,1.2%201.2,1.55817%201.2,2%20L1.2,14%20C1.2,14.44183%201.55817,14.8%202,14.8%20L14,14.8%20C14.44183,14.8%2014.8,14.44183%2014.8,14%20L14.8,2%20C14.8,1.55817%2014.44183,1.2%2014,1.2%20Z'/%3e%3c!--%20左侧插槽%20--%3e%3crect%20x='2.5'%20y='2.5'%20width='4.5'%20height='11'%20rx='0.5'/%3e%3c!--%20右侧插槽%20--%3e%3crect%20x='9'%20y='2.5'%20width='4.5'%20height='11'%20rx='0.5'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",K="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e组合盒子%3c/title%3e%3cg%20id='box-icon-active'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(0.000000,%200.500000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3c!--%20外框%20--%3e%3cpath%20d='M14,0%20C15.1045695,0%2016,0.8954305%2016,2%20L16,14%20C16,15.1045695%2015.1045695,16%2014,16%20L2,16%20C0.8954305,16%200,15.1045695%200,14%20L0,2%20C0,0.8954305%200.8954305,0%202,0%20L14,0%20Z%20M14,1.2%20L2,1.2%20C1.55817,1.2%201.2,1.55817%201.2,2%20L1.2,14%20C1.2,14.44183%201.55817,14.8%202,14.8%20L14,14.8%20C14.44183,14.8%2014.8,14.44183%2014.8,14%20L14.8,2%20C14.8,1.55817%2014.44183,1.2%2014,1.2%20Z'/%3e%3c!--%20左侧插槽%20--%3e%3crect%20x='2.5'%20y='2.5'%20width='4.5'%20height='11'%20rx='0.5'/%3e%3c!--%20右侧插槽%20--%3e%3crect%20x='9'%20y='2.5'%20width='4.5'%20height='11'%20rx='0.5'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ee=["onClick"],te=["onClick"],oe={key:1,class:"slot-placeholder"},ne={key:2,class:"slot-actions"},le={class:"component-selector"},ae={class:"component-grid"},re=["onClick"],ie={class:"comp-icon"},ce=["src","alt"],se={class:"comp-name"},de={DEFAULT_ICON:Y,ACTIVE_ICON:K,NAME_CN:"组合盒子",NAME_EN:"Box",ORDER:0},ue={layoutType:{value:"horizontal",type:"select",label:"布局方式",options:[{label:"水平排列",value:"horizontal"},{label:"垂直排列",value:"vertical"},{label:"自由布局",value:"free"},{label:"网格布局",value:"grid"}]},slotCount:{value:2,type:"number",label:"插槽数量",min:1,max:12},gridCols:{value:2,type:"number",label:"网格列数",min:1,max:6},gap:{value:8,type:"number",label:"间距(px)",min:0,max:50},padding:{value:8,type:"number",label:"内边距(px)",min:0,max:50},backgroundColor:{value:"transparent",type:"color",label:"背景色"},borderWidth:{value:0,type:"number",label:"边框宽度",min:0,max:10},borderColor:{value:"#e5e7eb",type:"color",label:"边框颜色"},borderRadius:{value:4,type:"number",label:"圆角(px)",min:0,max:50},slotsConfig:{value:"[]",type:"textarea",label:"插槽配置(JSON)",placeholder:'[{"x":0,"y":0,"w":50,"h":100},{"x":50,"y":0,"w":50,"h":100}]'}},pe=[],me=[],he=[],ge={},ve={DEFAULT:de,OPTIONS:ue,DATA:pe,PARAMS:me,SOURCE:he,COMMON:ge},fe=e.defineComponent(y(f({},ve),{__name:"box",props:{conf:{type:Object,default:()=>({data:[],options:{}})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(a){const n=a,r=e.shallowRef({}),S=e.ref({}),v=e.ref(!1),V=e.ref([]),C=e.ref(-1),x=e.ref(-1);let u={};e.onMounted(()=>A(null,null,function*(){r.value=yield B.elements.loadComponents(),S.value=yield B.elements.getElementsMap(),u=yield B.elements.getAllExposedProps()}));class w extends X.BaseComponent{extractStyles(){return{layoutType:this.getOptionValue("layoutType","horizontal"),slotCount:this.getOptionValue("slotCount",2),gridCols:this.getOptionValue("gridCols",2),gap:this.getOptionValue("gap",8),padding:this.getOptionValue("padding",8),backgroundColor:this.getOptionValue("backgroundColor","transparent"),borderWidth:this.getOptionValue("borderWidth",0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderRadius:this.getOptionValue("borderRadius",4),slotsConfig:this.getOptionValue("slotsConfig","[]")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),$()}}const T=new w(n,"box");T.setupLifecycle();const m=T.getStyle(),b=e.ref([]),$=()=>{var N,E,l,c,s,L,z,M;const t=((N=m.value)==null?void 0:N.slotCount)||2,o=((E=m.value)==null?void 0:E.layoutType)||"horizontal",i=((l=n.conf)==null?void 0:l.slots)||[];let h=[];try{const d=((c=m.value)==null?void 0:c.slotsConfig)||"[]";h=JSON.parse(d)}catch(d){h=[]}const k=[];for(let d=0;d<t;d++){const p=i[d],g=h[d];let O={x:0,y:0,w:100,h:100};o==="free"&&g?O={x:(s=g.x)!=null?s:0,y:(L=g.y)!=null?L:0,w:(z=g.w)!=null?z:50,h:(M=g.h)!=null?M:100}:o==="horizontal"?O={x:100/t*d,y:0,w:100/t,h:100}:o==="vertical"&&(O={x:0,y:100/t*d,w:100,h:100/t}),k.push(y(f({id:(p==null?void 0:p.id)||`slot-${Date.now()}-${d}`,name:(p==null?void 0:p.name)||(g==null?void 0:g.name)||`插槽 ${d+1}`},O),{component:(p==null?void 0:p.component)||null}))}b.value=k,n.conf&&(n.conf.slots=k)},q=e.computed(()=>{const t=m.value,o=(t==null?void 0:t.layoutType)||"horizontal",i={width:"100%",height:"100%",backgroundColor:(t==null?void 0:t.backgroundColor)||"transparent",borderWidth:`${(t==null?void 0:t.borderWidth)||0}px`,borderStyle:(t==null?void 0:t.borderWidth)>0?"solid":"none",borderColor:(t==null?void 0:t.borderColor)||"#e5e7eb",borderRadius:`${(t==null?void 0:t.borderRadius)||4}px`,padding:`${(t==null?void 0:t.padding)||8}px`,boxSizing:"border-box",overflow:"hidden"};return o==="horizontal"?y(f({},i),{display:"flex",flexDirection:"row",gap:`${(t==null?void 0:t.gap)||8}px`}):o==="vertical"?y(f({},i),{display:"flex",flexDirection:"column",gap:`${(t==null?void 0:t.gap)||8}px`}):o==="grid"?y(f({},i),{display:"grid",gridTemplateColumns:`repeat(${(t==null?void 0:t.gridCols)||2}, 1fr)`,gap:`${(t==null?void 0:t.gap)||8}px`}):y(f({},i),{position:"relative"})}),R=t=>{var i;const o=((i=m.value)==null?void 0:i.layoutType)||"horizontal";return o==="free"?{position:"absolute",left:`${t.x}%`,top:`${t.y}%`,width:`${t.w}%`,height:`${t.h}%`}:{flex:o==="horizontal"||o==="vertical"?1:void 0,minWidth:0,minHeight:0,overflow:"hidden"}},P=(t,o)=>{n.mode==="edit"&&(t.component||(C.value=o,v.value=!0))},J=(t,o)=>{var h;if(n.mode!=="edit"||!t.component)return;x.value=o;const i=new CustomEvent("box-component-selected",{bubbles:!0,detail:{component:t.component,boxId:(h=n.conf)==null?void 0:h.id,slotIndex:o}});document.dispatchEvent(i)},U=t=>{if(C.value<0)return;const o=u[t.type]||{},i={id:`box-comp-${Date.now()}`,type:t.type,i:`box-comp-${Date.now()}`,x:0,y:0,w:1,h:1,options:JSON.parse(JSON.stringify(o.OPTIONS||{})),data:JSON.parse(JSON.stringify(o.DATA||[])),common:JSON.parse(JSON.stringify(o.COMMON||{}))};b.value[C.value].component=i,n.conf&&(n.conf.slots=b.value),v.value=!1,C.value=-1},W=t=>{b.value[t].component=null,n.conf&&(n.conf.slots=b.value)};return e.watch(()=>{var t,o,i;return[(t=m.value)==null?void 0:t.slotCount,(o=m.value)==null?void 0:o.layoutType,(i=m.value)==null?void 0:i.slotsConfig]},()=>{$()},{deep:!0}),(t,o)=>{const i=_.ElIcon,h=_.ElButton,k=_.ElCollapseItem,N=_.ElCollapse,E=_.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:"box-container",style:e.normalizeStyle(q.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(l,c)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["box-slot",{"slot-empty":!l.component,"slot-hover":a.mode==="edit"&&!l.component}]),style:e.normalizeStyle(R(l)),onClick:e.withModifiers(s=>P(l,c),["stop"])},[l.component&&r.value[l.component.type]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["slot-component-wrapper",{"slot-component-selected":a.mode==="edit"&&x.value===c}]),onClick:e.withModifiers(s=>J(l,c),["stop"])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value[l.component.type]),{conf:l.component,theme:a.theme,mode:a.mode,class:"slot-component"},null,8,["conf","theme","mode"]))],10,te)):a.mode==="edit"?(e.openBlock(),e.createElementBlock("div",oe,[e.createVNode(i,{size:24},{default:e.withCtx(()=>[e.createVNode(e.unref(I.Plus))]),_:1}),e.createElementVNode("span",null,e.toDisplayString(l.name||`插槽 ${c+1}`),1)])):e.createCommentVNode("",!0),a.mode==="edit"&&l.component?(e.openBlock(),e.createElementBlock("div",ne,[e.createVNode(h,{type:"danger",size:"small",circle:"",onClick:e.withModifiers(s=>W(c),["stop"])},{default:e.withCtx(()=>[e.createVNode(i,null,{default:e.withCtx(()=>[e.createVNode(e.unref(I.Close))]),_:1})]),_:1},8,["onClick"])])):e.createCommentVNode("",!0)],14,ee))),128)),e.renderSlot(t.$slots,"default",{},void 0,!0),e.createVNode(E,{modelValue:v.value,"onUpdate:modelValue":o[1]||(o[1]=l=>v.value=l),title:"选择组件",width:"600px","append-to-body":!0,"close-on-click-modal":!0,"destroy-on-close":""},{default:e.withCtx(()=>[e.createElementVNode("div",le,[e.createVNode(N,{modelValue:V.value,"onUpdate:modelValue":o[0]||(o[0]=l=>V.value=l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(l,c)=>(e.openBlock(),e.createBlock(k,{key:c,title:l.name,name:c},{default:e.withCtx(()=>[e.createElementVNode("div",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.data,s=>(e.openBlock(),e.createElementBlock("div",{key:s.type,class:"component-item",onClick:L=>U(s)},[e.createElementVNode("div",ie,[e.createElementVNode("img",{src:s.default_icon,alt:s.name},null,8,ce)]),e.createElementVNode("div",se,e.toDisplayString(s.name),1)],8,re))),128))])]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"])],4)}}})),ye=B._export_sfc(fe,[["__scopeId","data-v-42684798"]]);exports.default=ye;
1
+ "use strict";var Z=Object.defineProperty,j=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var F=(a,n,r)=>n in a?Z(a,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[n]=r,f=(a,n)=>{for(var r in n||(n={}))G.call(n,r)&&F(a,r,n[r]);if(D)for(var r of D(n))Q.call(n,r)&&F(a,r,n[r]);return a},y=(a,n)=>j(a,H(n));var A=(a,n,r)=>new Promise((S,v)=>{var V=u=>{try{x(r.next(u))}catch(w){v(w)}},C=u=>{try{x(r.throw(u))}catch(w){v(w)}},x=u=>u.done?S(u.value):Promise.resolve(u.value).then(V,C);x((r=r.apply(a,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/collapse/style/css");require("element-plus/es/components/collapse-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),I=require("@element-plus/icons-vue"),X=require("./element-resize-detector-Dv3K8Mdu.cjs"),B=require("./index-p4bdBANg.cjs"),Y="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e组合盒子%3c/title%3e%3cg%20id='box-icon'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(0.000000,%200.500000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3c!--%20外框%20--%3e%3cpath%20d='M14,0%20C15.1045695,0%2016,0.8954305%2016,2%20L16,14%20C16,15.1045695%2015.1045695,16%2014,16%20L2,16%20C0.8954305,16%200,15.1045695%200,14%20L0,2%20C0,0.8954305%200.8954305,0%202,0%20L14,0%20Z%20M14,1.2%20L2,1.2%20C1.55817,1.2%201.2,1.55817%201.2,2%20L1.2,14%20C1.2,14.44183%201.55817,14.8%202,14.8%20L14,14.8%20C14.44183,14.8%2014.8,14.44183%2014.8,14%20L14.8,2%20C14.8,1.55817%2014.44183,1.2%2014,1.2%20Z'/%3e%3c!--%20左侧插槽%20--%3e%3crect%20x='2.5'%20y='2.5'%20width='4.5'%20height='11'%20rx='0.5'/%3e%3c!--%20右侧插槽%20--%3e%3crect%20x='9'%20y='2.5'%20width='4.5'%20height='11'%20rx='0.5'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",K="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e组合盒子%3c/title%3e%3cg%20id='box-icon-active'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(0.000000,%200.500000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3c!--%20外框%20--%3e%3cpath%20d='M14,0%20C15.1045695,0%2016,0.8954305%2016,2%20L16,14%20C16,15.1045695%2015.1045695,16%2014,16%20L2,16%20C0.8954305,16%200,15.1045695%200,14%20L0,2%20C0,0.8954305%200.8954305,0%202,0%20L14,0%20Z%20M14,1.2%20L2,1.2%20C1.55817,1.2%201.2,1.55817%201.2,2%20L1.2,14%20C1.2,14.44183%201.55817,14.8%202,14.8%20L14,14.8%20C14.44183,14.8%2014.8,14.44183%2014.8,14%20L14.8,2%20C14.8,1.55817%2014.44183,1.2%2014,1.2%20Z'/%3e%3c!--%20左侧插槽%20--%3e%3crect%20x='2.5'%20y='2.5'%20width='4.5'%20height='11'%20rx='0.5'/%3e%3c!--%20右侧插槽%20--%3e%3crect%20x='9'%20y='2.5'%20width='4.5'%20height='11'%20rx='0.5'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ee=["onClick"],te=["onClick"],oe={key:1,class:"slot-placeholder"},ne={key:2,class:"slot-actions"},le={class:"component-selector"},ae={class:"component-grid"},re=["onClick"],ie={class:"comp-icon"},ce=["src","alt"],se={class:"comp-name"},de={DEFAULT_ICON:Y,ACTIVE_ICON:K,NAME_CN:"组合盒子",NAME_EN:"Box",ORDER:0},ue={layoutType:{value:"horizontal",type:"select",label:"布局方式",options:[{label:"水平排列",value:"horizontal"},{label:"垂直排列",value:"vertical"},{label:"自由布局",value:"free"},{label:"网格布局",value:"grid"}]},slotCount:{value:2,type:"number",label:"插槽数量",min:1,max:12},gridCols:{value:2,type:"number",label:"网格列数",min:1,max:6},gap:{value:8,type:"number",label:"间距(px)",min:0,max:50},padding:{value:8,type:"number",label:"内边距(px)",min:0,max:50},backgroundColor:{value:"transparent",type:"color",label:"背景色"},borderWidth:{value:0,type:"number",label:"边框宽度",min:0,max:10},borderColor:{value:"#e5e7eb",type:"color",label:"边框颜色"},borderRadius:{value:4,type:"number",label:"圆角(px)",min:0,max:50},slotsConfig:{value:"[]",type:"textarea",label:"插槽配置(JSON)",placeholder:'[{"x":0,"y":0,"w":50,"h":100},{"x":50,"y":0,"w":50,"h":100}]'}},pe=[],me=[],he=[],ge={},ve={DEFAULT:de,OPTIONS:ue,DATA:pe,PARAMS:me,SOURCE:he,COMMON:ge},fe=e.defineComponent(y(f({},ve),{__name:"box",props:{conf:{type:Object,default:()=>({data:[],options:{}})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(a){const n=a,r=e.shallowRef({}),S=e.ref({}),v=e.ref(!1),V=e.ref([]),C=e.ref(-1),x=e.ref(-1);let u={};e.onMounted(()=>A(null,null,function*(){r.value=yield B.elements.loadComponents(),S.value=yield B.elements.getElementsMap(),u=yield B.elements.getAllExposedProps()}));class w extends X.BaseComponent{extractStyles(){return{layoutType:this.getOptionValue("layoutType","horizontal"),slotCount:this.getOptionValue("slotCount",2),gridCols:this.getOptionValue("gridCols",2),gap:this.getOptionValue("gap",8),padding:this.getOptionValue("padding",8),backgroundColor:this.getOptionValue("backgroundColor","transparent"),borderWidth:this.getOptionValue("borderWidth",0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderRadius:this.getOptionValue("borderRadius",4),slotsConfig:this.getOptionValue("slotsConfig","[]")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),$()}}const T=new w(n,"box");T.setupLifecycle();const m=T.getStyle(),b=e.ref([]),$=()=>{var N,E,l,c,s,L,z,M;const t=((N=m.value)==null?void 0:N.slotCount)||2,o=((E=m.value)==null?void 0:E.layoutType)||"horizontal",i=((l=n.conf)==null?void 0:l.slots)||[];let h=[];try{const d=((c=m.value)==null?void 0:c.slotsConfig)||"[]";h=JSON.parse(d)}catch(d){h=[]}const k=[];for(let d=0;d<t;d++){const p=i[d],g=h[d];let O={x:0,y:0,w:100,h:100};o==="free"&&g?O={x:(s=g.x)!=null?s:0,y:(L=g.y)!=null?L:0,w:(z=g.w)!=null?z:50,h:(M=g.h)!=null?M:100}:o==="horizontal"?O={x:100/t*d,y:0,w:100/t,h:100}:o==="vertical"&&(O={x:0,y:100/t*d,w:100,h:100/t}),k.push(y(f({id:(p==null?void 0:p.id)||`slot-${Date.now()}-${d}`,name:(p==null?void 0:p.name)||(g==null?void 0:g.name)||`插槽 ${d+1}`},O),{component:(p==null?void 0:p.component)||null}))}b.value=k,n.conf&&(n.conf.slots=k)},q=e.computed(()=>{const t=m.value,o=(t==null?void 0:t.layoutType)||"horizontal",i={width:"100%",height:"100%",backgroundColor:(t==null?void 0:t.backgroundColor)||"transparent",borderWidth:`${(t==null?void 0:t.borderWidth)||0}px`,borderStyle:(t==null?void 0:t.borderWidth)>0?"solid":"none",borderColor:(t==null?void 0:t.borderColor)||"#e5e7eb",borderRadius:`${(t==null?void 0:t.borderRadius)||4}px`,padding:`${(t==null?void 0:t.padding)||8}px`,boxSizing:"border-box",overflow:"hidden"};return o==="horizontal"?y(f({},i),{display:"flex",flexDirection:"row",gap:`${(t==null?void 0:t.gap)||8}px`}):o==="vertical"?y(f({},i),{display:"flex",flexDirection:"column",gap:`${(t==null?void 0:t.gap)||8}px`}):o==="grid"?y(f({},i),{display:"grid",gridTemplateColumns:`repeat(${(t==null?void 0:t.gridCols)||2}, 1fr)`,gap:`${(t==null?void 0:t.gap)||8}px`}):y(f({},i),{position:"relative"})}),R=t=>{var i;const o=((i=m.value)==null?void 0:i.layoutType)||"horizontal";return o==="free"?{position:"absolute",left:`${t.x}%`,top:`${t.y}%`,width:`${t.w}%`,height:`${t.h}%`}:{flex:o==="horizontal"||o==="vertical"?1:void 0,minWidth:0,minHeight:0,overflow:"hidden"}},P=(t,o)=>{n.mode==="edit"&&(t.component||(C.value=o,v.value=!0))},J=(t,o)=>{var h;if(n.mode!=="edit"||!t.component)return;x.value=o;const i=new CustomEvent("box-component-selected",{bubbles:!0,detail:{component:t.component,boxId:(h=n.conf)==null?void 0:h.id,slotIndex:o}});document.dispatchEvent(i)},U=t=>{if(C.value<0)return;const o=u[t.type]||{},i={id:`box-comp-${Date.now()}`,type:t.type,i:`box-comp-${Date.now()}`,x:0,y:0,w:1,h:1,options:JSON.parse(JSON.stringify(o.OPTIONS||{})),data:JSON.parse(JSON.stringify(o.DATA||[])),common:JSON.parse(JSON.stringify(o.COMMON||{}))};b.value[C.value].component=i,n.conf&&(n.conf.slots=b.value),v.value=!1,C.value=-1},W=t=>{b.value[t].component=null,n.conf&&(n.conf.slots=b.value)};return e.watch(()=>{var t,o,i;return[(t=m.value)==null?void 0:t.slotCount,(o=m.value)==null?void 0:o.layoutType,(i=m.value)==null?void 0:i.slotsConfig]},()=>{$()},{deep:!0}),(t,o)=>{const i=_.ElIcon,h=_.ElButton,k=_.ElCollapseItem,N=_.ElCollapse,E=_.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:"box-container",style:e.normalizeStyle(q.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(l,c)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["box-slot",{"slot-empty":!l.component,"slot-hover":a.mode==="edit"&&!l.component}]),style:e.normalizeStyle(R(l)),onClick:e.withModifiers(s=>P(l,c),["stop"])},[l.component&&r.value[l.component.type]?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["slot-component-wrapper",{"slot-component-selected":a.mode==="edit"&&x.value===c}]),onClick:e.withModifiers(s=>J(l,c),["stop"])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value[l.component.type]),{conf:l.component,theme:a.theme,mode:a.mode,class:"slot-component"},null,8,["conf","theme","mode"]))],10,te)):a.mode==="edit"?(e.openBlock(),e.createElementBlock("div",oe,[e.createVNode(i,{size:24},{default:e.withCtx(()=>[e.createVNode(e.unref(I.Plus))]),_:1}),e.createElementVNode("span",null,e.toDisplayString(l.name||`插槽 ${c+1}`),1)])):e.createCommentVNode("",!0),a.mode==="edit"&&l.component?(e.openBlock(),e.createElementBlock("div",ne,[e.createVNode(h,{type:"danger",size:"small",circle:"",onClick:e.withModifiers(s=>W(c),["stop"])},{default:e.withCtx(()=>[e.createVNode(i,null,{default:e.withCtx(()=>[e.createVNode(e.unref(I.Close))]),_:1})]),_:1},8,["onClick"])])):e.createCommentVNode("",!0)],14,ee))),128)),e.renderSlot(t.$slots,"default",{},void 0,!0),e.createVNode(E,{modelValue:v.value,"onUpdate:modelValue":o[1]||(o[1]=l=>v.value=l),title:"选择组件",width:"600px","append-to-body":!0,"close-on-click-modal":!0,"destroy-on-close":""},{default:e.withCtx(()=>[e.createElementVNode("div",le,[e.createVNode(N,{modelValue:V.value,"onUpdate:modelValue":o[0]||(o[0]=l=>V.value=l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(l,c)=>(e.openBlock(),e.createBlock(k,{key:c,title:l.name,name:c},{default:e.withCtx(()=>[e.createElementVNode("div",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.data,s=>(e.openBlock(),e.createElementBlock("div",{key:s.type,class:"component-item",onClick:L=>U(s)},[e.createElementVNode("div",ie,[e.createElementVNode("img",{src:s.default_icon,alt:s.name},null,8,ce)]),e.createElementVNode("div",se,e.toDisplayString(s.name),1)],8,re))),128))])]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"])],4)}}})),ye=B._export_sfc(fe,[["__scopeId","data-v-42684798"]]);exports.default=ye;
@@ -35,8 +35,8 @@ import "element-plus/es/components/button/style/css";
35
35
  import "element-plus/es/components/icon/style/css";
36
36
  import { defineComponent as he, shallowRef as ve, ref as k, onMounted as ge, computed as fe, watch as ye, openBlock as d, createElementBlock as m, normalizeStyle as j, Fragment as D, renderList as A, withModifiers as I, normalizeClass as H, createBlock as q, resolveDynamicComponent as Ce, createVNode as x, withCtx as S, unref as G, createElementVNode as O, toDisplayString as Q, createCommentVNode as X, renderSlot as xe } from "vue";
37
37
  import { Plus as be, Close as we } from "@element-plus/icons-vue";
38
- import { B as _e } from "./element-resize-detector-DJcsrJ8s.js";
39
- import { h as F, _ as ke } from "./index-kShjySl9.js";
38
+ import { B as _e } from "./element-resize-detector-CcMj2at_.js";
39
+ import { h as F, _ as ke } from "./index-DCD0sVkl.js";
40
40
  const Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e组合盒子%3c/title%3e%3cg%20id='box-icon'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(0.000000,%200.500000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3c!--%20外框%20--%3e%3cpath%20d='M14,0%20C15.1045695,0%2016,0.8954305%2016,2%20L16,14%20C16,15.1045695%2015.1045695,16%2014,16%20L2,16%20C0.8954305,16%200,15.1045695%200,14%20L0,2%20C0,0.8954305%200.8954305,0%202,0%20L14,0%20Z%20M14,1.2%20L2,1.2%20C1.55817,1.2%201.2,1.55817%201.2,2%20L1.2,14%20C1.2,14.44183%201.55817,14.8%202,14.8%20L14,14.8%20C14.44183,14.8%2014.8,14.44183%2014.8,14%20L14.8,2%20C14.8,1.55817%2014.44183,1.2%2014,1.2%20Z'/%3e%3c!--%20左侧插槽%20--%3e%3crect%20x='2.5'%20y='2.5'%20width='4.5'%20height='11'%20rx='0.5'/%3e%3c!--%20右侧插槽%20--%3e%3crect%20x='9'%20y='2.5'%20width='4.5'%20height='11'%20rx='0.5'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Oe = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e组合盒子%3c/title%3e%3cg%20id='box-icon-active'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20transform='translate(0.000000,%200.500000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3c!--%20外框%20--%3e%3cpath%20d='M14,0%20C15.1045695,0%2016,0.8954305%2016,2%20L16,14%20C16,15.1045695%2015.1045695,16%2014,16%20L2,16%20C0.8954305,16%200,15.1045695%200,14%20L0,2%20C0,0.8954305%200.8954305,0%202,0%20L14,0%20Z%20M14,1.2%20L2,1.2%20C1.55817,1.2%201.2,1.55817%201.2,2%20L1.2,14%20C1.2,14.44183%201.55817,14.8%202,14.8%20L14,14.8%20C14.44183,14.8%2014.8,14.44183%2014.8,14%20L14.8,2%20C14.8,1.55817%2014.44183,1.2%2014,1.2%20Z'/%3e%3c!--%20左侧插槽%20--%3e%3crect%20x='2.5'%20y='2.5'%20width='4.5'%20height='11'%20rx='0.5'/%3e%3c!--%20右侧插槽%20--%3e%3crect%20x='9'%20y='2.5'%20width='4.5'%20height='11'%20rx='0.5'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", $e = ["onClick"], Ne = ["onClick"], Te = {
41
41
  key: 1,
42
42
  class: "slot-placeholder"
@@ -22,7 +22,7 @@ import "element-plus/es/components/checkbox/style/css";
22
22
  import "element-plus/es/components/date-picker/style/css";
23
23
  import { defineComponent as Ie, useCssVars as Ee, computed as B, ref as u, onMounted as Se, openBlock as r, createElementBlock as c, Fragment as x, renderList as U, createElementVNode as o, toDisplayString as f, normalizeClass as A, createVNode as a, withCtx as p, createTextVNode as m, unref as ae, createBlock as we, createCommentVNode as Re, renderSlot as Te } from "vue";
24
24
  import { Delete as Ue, Upload as Ae } from "@element-plus/icons-vue";
25
- import { u as Ne, d as G, _ as Oe } from "./index-kShjySl9.js";
25
+ import { u as Ne, d as G, _ as Oe } from "./index-DCD0sVkl.js";
26
26
  import { A as Pe, D as ze } from "./ele-ctrSet-icon-BtKGrCid.js";
27
27
  const Le = { class: "chart-config-panel" }, je = {
28
28
  key: 0,
@@ -1 +1 @@
1
- "use strict";var se=Object.defineProperty,re=Object.defineProperties;var ie=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var Q=(c,a,r)=>a in c?se(c,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[a]=r,q=(c,a)=>{for(var r in a||(a={}))ce.call(a,r)&&Q(c,r,a[r]);if(G)for(var r of G(a))de.call(a,r)&&Q(c,r,a[r]);return c},R=(c,a)=>re(c,ie(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/date-picker/style/css");const e=require("vue"),X=require("@element-plus/icons-vue"),b=require("./index-Mh5Dw2sd.cjs"),H=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),ue={class:"chart-config-panel"},pe={key:0,class:"config-section"},ve={class:"section-header"},me={class:"section-title"},fe={class:"granularity-switch"},ge={class:"quick-range"},Ve=["onClick"],Ce={class:"date-inputs"},ye={key:1,class:"config-section"},Ne={class:"section-header"},be={class:"section-title"},ke={class:"time-list-actions"},_e={class:"selected-count"},he={class:"time-list"},Ee={key:2,class:"config-section"},De={class:"section-title"},xe={key:3,class:"config-section"},Ye={class:"section-title"},Se={class:"direction-tabs"},Be=["onClick"],we={key:4,class:"config-section"},Me={class:"section-title"},Te={class:"range-inputs"},Ie={key:5,class:"config-section"},qe={class:"section-title"},Re={class:"range-inputs"},Ue={key:6,class:"config-section"},Ae={class:"section-title"},Oe={class:"function-options"},ze={key:7,class:"config-section"},Fe={DEFAULT_ICON:H.DEFAULT_ICON,ACTIVE_ICON:H.ACTIVE_ICON,NAME_CN:"图表配置面板",NAME_EN:"Chart Config Panel",ORDER:14},Le={bindId:{value:"",type:"string",label:"component.deepDisplacement.bindId"},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.options.accentColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"}},Pe=[{type:"timeRange",label:"时间段",targetId:""},{type:"timeList",label:"采集时间列表",targetId:""},{type:"direction",label:"位移方向",targetId:""},{type:"dispSwitch",label:"累计/相对切换",targetId:""}],je=["type","label","targetId"],$e=[],Ge={useAlias:!1,multiObject:!1,source:""},Qe={DEFAULT:Fe,OPTIONS:Le,DATA:Pe,PARAMS:je,SOURCE:$e,COMMON:Ge},Xe=e.defineComponent(R(q({},Qe),{__name:"chartConfigPanel",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){e.useCssVars(l=>({v6460e860:y.value.bgColor,v15b6596e:y.value.borderColor,v2f19ff68:y.value.textColor,f7a1752a:y.value.accentColor}));const a=b.useLinkStore(),r=c,y=e.computed(()=>{var t,i,n,u,g;const{options:l}=r.conf||{};return{bindId:((t=l==null?void 0:l.bindId)==null?void 0:t.value)||"",bgColor:((i=l==null?void 0:l.bgColor)==null?void 0:i.value)||"#ffffff",textColor:((n=l==null?void 0:l.textColor)==null?void 0:n.value)||"#333333",accentColor:((u=l==null?void 0:l.accentColor)==null?void 0:u.value)||"#409eff",borderColor:((g=l==null?void 0:l.borderColor)==null?void 0:g.value)||"#e5e5e5"}}),U=e.computed(()=>{var l;return((l=r.conf)==null?void 0:l.data)||[]}),A=e.computed(()=>y.value.bindId||r.uid||""),k=e.ref("day"),O=e.ref("week"),p=e.ref(""),f=e.ref(""),J=[{label:"近7天",value:"week"},{label:"近30天",value:"month"},{label:"近90天",value:"quarter"}],_=e.ref([]),v=e.ref([]),N=e.ref(!0),Y=e.ref("relative"),S=e.ref("total"),K=[{label:"合",value:"total"},{label:"X轴",value:"x"},{label:"Y轴",value:"y"}],B=e.ref(""),w=e.ref(""),M=e.ref(""),T=e.ref(""),h=e.ref(!0),E=e.ref(!0),z=()=>({granularity:k.value,startDate:p.value,endDate:f.value,selectedTimes:v.value,chartType:Y.value,direction:S.value,dispRange:{min:parseFloat(B.value)||null,max:parseFloat(w.value)||null},relativeDispRange:{min:parseFloat(M.value)||null,max:parseFloat(T.value)||null},showDisp:h.value,showRelativeDisp:E.value}),d=()=>{const l=z(),t=U.value,i=A.value;i&&(console.log("[ConfigPanel] 广播配置 (uid):",i,l),a.publish("deepDisplacement","chartConfigPanel",{objectId:i,type:"config",fv:l})),t.forEach(n=>{const u=n.targetId;u&&(n.type==="dispSwitch"?u.split(",").map(V=>V.trim()).forEach((V,C)=>{if(!V)return;const I=C===0?h.value:E.value;a.publish("deepDisplacement","chartConfigPanel",{objectId:V,type:"bindConfig",fv:R(q({},l),{visible:I})})}):a.publish("deepDisplacement","chartConfigPanel",{objectId:u,type:"bindConfig",fv:l}))})},F=l=>{k.value=l,d()},L=l=>{O.value=l;const t=b.dayjs();f.value=t.format("YYYY-MM-DD"),l==="week"?p.value=t.subtract(7,"day").format("YYYY-MM-DD"):l==="month"?p.value=t.subtract(30,"day").format("YYYY-MM-DD"):l==="quarter"&&(p.value=t.subtract(90,"day").format("YYYY-MM-DD")),j(),d()},P=()=>{p.value&&f.value&&(j(),d())},j=()=>{const l=b.dayjs(p.value),t=b.dayjs(f.value),i=[];let n=t;for(;n.isAfter(l)||n.isSame(l);)i.push(n.format("YYYY-MM-DD")),n=n.subtract(1,"day");_.value=i,v.value=[...i],N.value=!0},W=l=>{v.value=l?[..._.value]:[],d()},Z=()=>{v.value=[],N.value=!1,d()},ee=()=>{N.value=v.value.length===_.value.length,d()},te=()=>{d()},le=l=>{S.value=l,d()},D=()=>{d()},$=()=>{d()},oe=()=>{const l=A.value;l&&a.publish("deepDisplacement",{objectId:l,type:"export",fv:{type:"chart",config:z()},source:"chartConfigPanel"})};return e.onMounted(()=>{L("week"),setTimeout(d,300)}),(l,t)=>{const i=m.ElDatePicker,n=m.ElCheckbox,u=m.ElIcon,g=m.ElButton,V=m.ElCheckboxGroup,C=m.ElRadio,I=m.ElRadioGroup,x=m.ElInput;return e.openBlock(),e.createElementBlock("div",ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,(s,ae)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:ae},[s.type==="timeRange"?(e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("div",ve,[e.createElementVNode("span",me,e.toDisplayString(s.label||"时间段"),1),e.createElementVNode("div",fe,[e.createElementVNode("span",{class:e.normalizeClass(["switch-item",{active:k.value==="day"}]),onClick:t[0]||(t[0]=o=>F("day"))},"日均",2),e.createElementVNode("span",{class:e.normalizeClass(["switch-item",{active:k.value==="hour"}]),onClick:t[1]||(t[1]=o=>F("hour"))},"小时",2)])]),e.createElementVNode("div",ge,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(J,o=>e.createElementVNode("span",{key:o.value,class:e.normalizeClass(["range-item",{active:O.value===o.value}]),onClick:ne=>L(o.value)},e.toDisplayString(o.label),11,Ve)),64))]),e.createElementVNode("div",Ce,[e.createVNode(i,{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=o=>p.value=o),type:"date",placeholder:"开始日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",size:"small",class:"date-picker",onChange:P},null,8,["modelValue"]),e.createVNode(i,{modelValue:f.value,"onUpdate:modelValue":t[3]||(t[3]=o=>f.value=o),type:"date",placeholder:"结束日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",size:"small",class:"date-picker",onChange:P},null,8,["modelValue"])])])):s.type==="timeList"?(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("div",Ne,[e.createElementVNode("span",be,e.toDisplayString(s.label||"采集时间列表"),1)]),e.createElementVNode("div",ke,[e.createVNode(n,{modelValue:N.value,"onUpdate:modelValue":t[4]||(t[4]=o=>N.value=o),onChange:W},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("全选",-1)])]),_:1},8,["modelValue"]),e.createVNode(g,{size:"small",text:"",onClick:Z},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Delete))]),_:1}),t[14]||(t[14]=e.createTextVNode("清空",-1))]),_:1}),e.createElementVNode("span",_e,[t[15]||(t[15]=e.createTextVNode("已选 ",-1)),e.createElementVNode("em",null,e.toDisplayString(v.value.length),1),t[16]||(t[16]=e.createTextVNode(" 项",-1))])]),e.createElementVNode("div",he,[e.createVNode(V,{modelValue:v.value,"onUpdate:modelValue":t[5]||(t[5]=o=>v.value=o),onChange:ee},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,o=>(e.openBlock(),e.createBlock(n,{key:o,value:o,class:"time-checkbox"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])])):s.type==="chartType"?(e.openBlock(),e.createElementBlock("div",Ee,[e.createElementVNode("div",De,e.toDisplayString(s.label||"图类型"),1),e.createVNode(I,{modelValue:Y.value,"onUpdate:modelValue":t[6]||(t[6]=o=>Y.value=o),class:"chart-type-group",onChange:te},{default:e.withCtx(()=>[e.createVNode(C,{value:"relative"},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("相对位移",-1)])]),_:1}),e.createVNode(C,{value:"cluster"},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode("滑面聚类判识",-1)])]),_:1}),e.createVNode(C,{value:"borehole"},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("钻孔柱状图",-1)])]),_:1}),e.createVNode(C,{value:"sensor"},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("传感器分布图",-1)])]),_:1})]),_:1},8,["modelValue"])])):s.type==="direction"?(e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("div",Ye,e.toDisplayString(s.label||"位移方向"),1),e.createElementVNode("div",Se,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(K,o=>e.createElementVNode("span",{key:o.value,class:e.normalizeClass(["direction-item",{active:S.value===o.value}]),onClick:ne=>le(o.value)},e.toDisplayString(o.label),11,Be)),64))])])):s.type==="dispRange"?(e.openBlock(),e.createElementBlock("div",we,[e.createElementVNode("div",Me,e.toDisplayString(s.label||"累计位移区间"),1),e.createElementVNode("div",Te,[e.createVNode(x,{modelValue:B.value,"onUpdate:modelValue":t[7]||(t[7]=o=>B.value=o),size:"small",placeholder:"最小值",class:"range-input",onChange:D},null,8,["modelValue"]),t[21]||(t[21]=e.createElementVNode("span",{class:"range-sep"},"~",-1)),e.createVNode(x,{modelValue:w.value,"onUpdate:modelValue":t[8]||(t[8]=o=>w.value=o),size:"small",placeholder:"最大值",class:"range-input",onChange:D},null,8,["modelValue"]),t[22]||(t[22]=e.createElementVNode("span",{class:"range-unit"},"mm",-1))])])):s.type==="relativeDispRange"?(e.openBlock(),e.createElementBlock("div",Ie,[e.createElementVNode("div",qe,e.toDisplayString(s.label||"相对位移区间"),1),e.createElementVNode("div",Re,[e.createVNode(x,{modelValue:M.value,"onUpdate:modelValue":t[9]||(t[9]=o=>M.value=o),size:"small",placeholder:"最小值",class:"range-input",onChange:D},null,8,["modelValue"]),t[23]||(t[23]=e.createElementVNode("span",{class:"range-sep"},"~",-1)),e.createVNode(x,{modelValue:T.value,"onUpdate:modelValue":t[10]||(t[10]=o=>T.value=o),size:"small",placeholder:"最大值",class:"range-input",onChange:D},null,8,["modelValue"]),t[24]||(t[24]=e.createElementVNode("span",{class:"range-unit"},"mm",-1))])])):s.type==="dispSwitch"?(e.openBlock(),e.createElementBlock("div",Ue,[e.createElementVNode("div",Ae,e.toDisplayString(s.label||"功能"),1),e.createElementVNode("div",Oe,[e.createVNode(n,{modelValue:h.value,"onUpdate:modelValue":t[11]||(t[11]=o=>h.value=o),onChange:$},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("累计位移",-1)])]),_:1},8,["modelValue"]),e.createVNode(n,{modelValue:E.value,"onUpdate:modelValue":t[12]||(t[12]=o=>E.value=o),onChange:$},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("相对位移",-1)])]),_:1},8,["modelValue"])])])):s.type==="export"?(e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(g,{size:"small",onClick:oe,class:"export-btn"},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Upload))]),_:1}),e.createTextVNode(e.toDisplayString(s.label||"导出图"),1)]),_:2},1024)])):e.createCommentVNode("",!0)],64))),128)),e.renderSlot(l.$slots,"default",{},void 0,!0)])}}})),He=b._export_sfc(Xe,[["__scopeId","data-v-1a145f90"]]);exports.default=He;
1
+ "use strict";var se=Object.defineProperty,re=Object.defineProperties;var ie=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var Q=(c,a,r)=>a in c?se(c,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[a]=r,q=(c,a)=>{for(var r in a||(a={}))ce.call(a,r)&&Q(c,r,a[r]);if(G)for(var r of G(a))de.call(a,r)&&Q(c,r,a[r]);return c},R=(c,a)=>re(c,ie(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/checkbox-group/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/checkbox/style/css");require("element-plus/es/components/date-picker/style/css");const e=require("vue"),X=require("@element-plus/icons-vue"),b=require("./index-p4bdBANg.cjs"),H=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),ue={class:"chart-config-panel"},pe={key:0,class:"config-section"},ve={class:"section-header"},me={class:"section-title"},fe={class:"granularity-switch"},ge={class:"quick-range"},Ve=["onClick"],Ce={class:"date-inputs"},ye={key:1,class:"config-section"},Ne={class:"section-header"},be={class:"section-title"},ke={class:"time-list-actions"},_e={class:"selected-count"},he={class:"time-list"},Ee={key:2,class:"config-section"},De={class:"section-title"},xe={key:3,class:"config-section"},Ye={class:"section-title"},Se={class:"direction-tabs"},Be=["onClick"],we={key:4,class:"config-section"},Me={class:"section-title"},Te={class:"range-inputs"},Ie={key:5,class:"config-section"},qe={class:"section-title"},Re={class:"range-inputs"},Ue={key:6,class:"config-section"},Ae={class:"section-title"},Oe={class:"function-options"},ze={key:7,class:"config-section"},Fe={DEFAULT_ICON:H.DEFAULT_ICON,ACTIVE_ICON:H.ACTIVE_ICON,NAME_CN:"图表配置面板",NAME_EN:"Chart Config Panel",ORDER:14},Le={bindId:{value:"",type:"string",label:"component.deepDisplacement.bindId"},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},accentColor:{value:"#409eff",type:"color",label:"component.options.accentColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"}},Pe=[{type:"timeRange",label:"时间段",targetId:""},{type:"timeList",label:"采集时间列表",targetId:""},{type:"direction",label:"位移方向",targetId:""},{type:"dispSwitch",label:"累计/相对切换",targetId:""}],je=["type","label","targetId"],$e=[],Ge={useAlias:!1,multiObject:!1,source:""},Qe={DEFAULT:Fe,OPTIONS:Le,DATA:Pe,PARAMS:je,SOURCE:$e,COMMON:Ge},Xe=e.defineComponent(R(q({},Qe),{__name:"chartConfigPanel",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){e.useCssVars(l=>({v6460e860:y.value.bgColor,v15b6596e:y.value.borderColor,v2f19ff68:y.value.textColor,f7a1752a:y.value.accentColor}));const a=b.useLinkStore(),r=c,y=e.computed(()=>{var t,i,n,u,g;const{options:l}=r.conf||{};return{bindId:((t=l==null?void 0:l.bindId)==null?void 0:t.value)||"",bgColor:((i=l==null?void 0:l.bgColor)==null?void 0:i.value)||"#ffffff",textColor:((n=l==null?void 0:l.textColor)==null?void 0:n.value)||"#333333",accentColor:((u=l==null?void 0:l.accentColor)==null?void 0:u.value)||"#409eff",borderColor:((g=l==null?void 0:l.borderColor)==null?void 0:g.value)||"#e5e5e5"}}),U=e.computed(()=>{var l;return((l=r.conf)==null?void 0:l.data)||[]}),A=e.computed(()=>y.value.bindId||r.uid||""),k=e.ref("day"),O=e.ref("week"),p=e.ref(""),f=e.ref(""),J=[{label:"近7天",value:"week"},{label:"近30天",value:"month"},{label:"近90天",value:"quarter"}],_=e.ref([]),v=e.ref([]),N=e.ref(!0),Y=e.ref("relative"),S=e.ref("total"),K=[{label:"合",value:"total"},{label:"X轴",value:"x"},{label:"Y轴",value:"y"}],B=e.ref(""),w=e.ref(""),M=e.ref(""),T=e.ref(""),h=e.ref(!0),E=e.ref(!0),z=()=>({granularity:k.value,startDate:p.value,endDate:f.value,selectedTimes:v.value,chartType:Y.value,direction:S.value,dispRange:{min:parseFloat(B.value)||null,max:parseFloat(w.value)||null},relativeDispRange:{min:parseFloat(M.value)||null,max:parseFloat(T.value)||null},showDisp:h.value,showRelativeDisp:E.value}),d=()=>{const l=z(),t=U.value,i=A.value;i&&(console.log("[ConfigPanel] 广播配置 (uid):",i,l),a.publish("deepDisplacement","chartConfigPanel",{objectId:i,type:"config",fv:l})),t.forEach(n=>{const u=n.targetId;u&&(n.type==="dispSwitch"?u.split(",").map(V=>V.trim()).forEach((V,C)=>{if(!V)return;const I=C===0?h.value:E.value;a.publish("deepDisplacement","chartConfigPanel",{objectId:V,type:"bindConfig",fv:R(q({},l),{visible:I})})}):a.publish("deepDisplacement","chartConfigPanel",{objectId:u,type:"bindConfig",fv:l}))})},F=l=>{k.value=l,d()},L=l=>{O.value=l;const t=b.dayjs();f.value=t.format("YYYY-MM-DD"),l==="week"?p.value=t.subtract(7,"day").format("YYYY-MM-DD"):l==="month"?p.value=t.subtract(30,"day").format("YYYY-MM-DD"):l==="quarter"&&(p.value=t.subtract(90,"day").format("YYYY-MM-DD")),j(),d()},P=()=>{p.value&&f.value&&(j(),d())},j=()=>{const l=b.dayjs(p.value),t=b.dayjs(f.value),i=[];let n=t;for(;n.isAfter(l)||n.isSame(l);)i.push(n.format("YYYY-MM-DD")),n=n.subtract(1,"day");_.value=i,v.value=[...i],N.value=!0},W=l=>{v.value=l?[..._.value]:[],d()},Z=()=>{v.value=[],N.value=!1,d()},ee=()=>{N.value=v.value.length===_.value.length,d()},te=()=>{d()},le=l=>{S.value=l,d()},D=()=>{d()},$=()=>{d()},oe=()=>{const l=A.value;l&&a.publish("deepDisplacement",{objectId:l,type:"export",fv:{type:"chart",config:z()},source:"chartConfigPanel"})};return e.onMounted(()=>{L("week"),setTimeout(d,300)}),(l,t)=>{const i=m.ElDatePicker,n=m.ElCheckbox,u=m.ElIcon,g=m.ElButton,V=m.ElCheckboxGroup,C=m.ElRadio,I=m.ElRadioGroup,x=m.ElInput;return e.openBlock(),e.createElementBlock("div",ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,(s,ae)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:ae},[s.type==="timeRange"?(e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("div",ve,[e.createElementVNode("span",me,e.toDisplayString(s.label||"时间段"),1),e.createElementVNode("div",fe,[e.createElementVNode("span",{class:e.normalizeClass(["switch-item",{active:k.value==="day"}]),onClick:t[0]||(t[0]=o=>F("day"))},"日均",2),e.createElementVNode("span",{class:e.normalizeClass(["switch-item",{active:k.value==="hour"}]),onClick:t[1]||(t[1]=o=>F("hour"))},"小时",2)])]),e.createElementVNode("div",ge,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(J,o=>e.createElementVNode("span",{key:o.value,class:e.normalizeClass(["range-item",{active:O.value===o.value}]),onClick:ne=>L(o.value)},e.toDisplayString(o.label),11,Ve)),64))]),e.createElementVNode("div",Ce,[e.createVNode(i,{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=o=>p.value=o),type:"date",placeholder:"开始日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",size:"small",class:"date-picker",onChange:P},null,8,["modelValue"]),e.createVNode(i,{modelValue:f.value,"onUpdate:modelValue":t[3]||(t[3]=o=>f.value=o),type:"date",placeholder:"结束日期",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",size:"small",class:"date-picker",onChange:P},null,8,["modelValue"])])])):s.type==="timeList"?(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("div",Ne,[e.createElementVNode("span",be,e.toDisplayString(s.label||"采集时间列表"),1)]),e.createElementVNode("div",ke,[e.createVNode(n,{modelValue:N.value,"onUpdate:modelValue":t[4]||(t[4]=o=>N.value=o),onChange:W},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode("全选",-1)])]),_:1},8,["modelValue"]),e.createVNode(g,{size:"small",text:"",onClick:Z},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Delete))]),_:1}),t[14]||(t[14]=e.createTextVNode("清空",-1))]),_:1}),e.createElementVNode("span",_e,[t[15]||(t[15]=e.createTextVNode("已选 ",-1)),e.createElementVNode("em",null,e.toDisplayString(v.value.length),1),t[16]||(t[16]=e.createTextVNode(" 项",-1))])]),e.createElementVNode("div",he,[e.createVNode(V,{modelValue:v.value,"onUpdate:modelValue":t[5]||(t[5]=o=>v.value=o),onChange:ee},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,o=>(e.openBlock(),e.createBlock(n,{key:o,value:o,class:"time-checkbox"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])])):s.type==="chartType"?(e.openBlock(),e.createElementBlock("div",Ee,[e.createElementVNode("div",De,e.toDisplayString(s.label||"图类型"),1),e.createVNode(I,{modelValue:Y.value,"onUpdate:modelValue":t[6]||(t[6]=o=>Y.value=o),class:"chart-type-group",onChange:te},{default:e.withCtx(()=>[e.createVNode(C,{value:"relative"},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode("相对位移",-1)])]),_:1}),e.createVNode(C,{value:"cluster"},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode("滑面聚类判识",-1)])]),_:1}),e.createVNode(C,{value:"borehole"},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("钻孔柱状图",-1)])]),_:1}),e.createVNode(C,{value:"sensor"},{default:e.withCtx(()=>[...t[20]||(t[20]=[e.createTextVNode("传感器分布图",-1)])]),_:1})]),_:1},8,["modelValue"])])):s.type==="direction"?(e.openBlock(),e.createElementBlock("div",xe,[e.createElementVNode("div",Ye,e.toDisplayString(s.label||"位移方向"),1),e.createElementVNode("div",Se,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(K,o=>e.createElementVNode("span",{key:o.value,class:e.normalizeClass(["direction-item",{active:S.value===o.value}]),onClick:ne=>le(o.value)},e.toDisplayString(o.label),11,Be)),64))])])):s.type==="dispRange"?(e.openBlock(),e.createElementBlock("div",we,[e.createElementVNode("div",Me,e.toDisplayString(s.label||"累计位移区间"),1),e.createElementVNode("div",Te,[e.createVNode(x,{modelValue:B.value,"onUpdate:modelValue":t[7]||(t[7]=o=>B.value=o),size:"small",placeholder:"最小值",class:"range-input",onChange:D},null,8,["modelValue"]),t[21]||(t[21]=e.createElementVNode("span",{class:"range-sep"},"~",-1)),e.createVNode(x,{modelValue:w.value,"onUpdate:modelValue":t[8]||(t[8]=o=>w.value=o),size:"small",placeholder:"最大值",class:"range-input",onChange:D},null,8,["modelValue"]),t[22]||(t[22]=e.createElementVNode("span",{class:"range-unit"},"mm",-1))])])):s.type==="relativeDispRange"?(e.openBlock(),e.createElementBlock("div",Ie,[e.createElementVNode("div",qe,e.toDisplayString(s.label||"相对位移区间"),1),e.createElementVNode("div",Re,[e.createVNode(x,{modelValue:M.value,"onUpdate:modelValue":t[9]||(t[9]=o=>M.value=o),size:"small",placeholder:"最小值",class:"range-input",onChange:D},null,8,["modelValue"]),t[23]||(t[23]=e.createElementVNode("span",{class:"range-sep"},"~",-1)),e.createVNode(x,{modelValue:T.value,"onUpdate:modelValue":t[10]||(t[10]=o=>T.value=o),size:"small",placeholder:"最大值",class:"range-input",onChange:D},null,8,["modelValue"]),t[24]||(t[24]=e.createElementVNode("span",{class:"range-unit"},"mm",-1))])])):s.type==="dispSwitch"?(e.openBlock(),e.createElementBlock("div",Ue,[e.createElementVNode("div",Ae,e.toDisplayString(s.label||"功能"),1),e.createElementVNode("div",Oe,[e.createVNode(n,{modelValue:h.value,"onUpdate:modelValue":t[11]||(t[11]=o=>h.value=o),onChange:$},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("累计位移",-1)])]),_:1},8,["modelValue"]),e.createVNode(n,{modelValue:E.value,"onUpdate:modelValue":t[12]||(t[12]=o=>E.value=o),onChange:$},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("相对位移",-1)])]),_:1},8,["modelValue"])])])):s.type==="export"?(e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(g,{size:"small",onClick:oe,class:"export-btn"},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(e.unref(X.Upload))]),_:1}),e.createTextVNode(e.toDisplayString(s.label||"导出图"),1)]),_:2},1024)])):e.createCommentVNode("",!0)],64))),128)),e.renderSlot(l.$slots,"default",{},void 0,!0)])}}})),He=b._export_sfc(Xe,[["__scopeId","data-v-1a145f90"]]);exports.default=He;
@@ -1,4 +1,4 @@
1
- "use strict";var $=Object.defineProperty,q=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var z=(a,i,r)=>i in a?$(a,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[i]=r,x=(a,i)=>{for(var r in i||(i={}))A.call(i,r)&&z(a,r,i[r]);if(O)for(var r of O(i))D.call(i,r)&&z(a,r,i[r]);return a},N=(a,i)=>q(a,w(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),E=require("./element-resize-detector-Bo5uDQAu.cjs"),T=require("./index-Mh5Dw2sd.cjs"),H=require("./EChartComponentBase-BaQpBzVC.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),_=require("./ele-circleBar-icon-Da0-L9sa.cjs"),L=require("./install-DV5cEgNV.cjs"),F=require("./install-CltTFs4e.cjs"),g=require("./installCanvasRenderer-CyhM1Qpl.cjs"),M=require("./install-nDY6w-GK.cjs"),P=require("./echarts-BB8O2KSA.cjs"),U={class:"mix-body"},W=["id"],K={class:"bar-wrap"},G={DEFAULT_ICON:_.DEFAULT_ICON,ACTIVE_ICON:_.ACTIVE_ICON,NAME_CN:"环形图",NAME_EN:"CircleBar",ORDER:2},J={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#e5e5e5",radiusSize:8,textSize:12,barHeight:10,isHideTitle:!1,showTotal:!0,fixed:{value:2,type:"number",label:"component.options.circleBar_fixed",dependent:"showTotal"},totalText:{value:"总数",type:"string",label:"component.options.circleBar_totalText",dependent:"showTotal"}},V=[{name:"参数一",fv:"",color:"#4162ff",object_id:"",default:"10",value:10},{name:"参数二",fv:"",color:"#3bbc6a",object_id:"",default:"10",value:10},{name:"参数三",fv:"",color:"#e24359",object_id:"",default:"10",value:10}],Q=["name","fv","object_id","color","default"],X=["mosaic","statistics","calculate"],Y={useAlias:!1,multiObject:!1,source:"mosaic"},Z={DEFAULT:G,OPTIONS:J,DATA:V,PARAMS:Q,SOURCE:X,COMMON:Y},ee=t.defineComponent(N(x({},Z),{__name:"circleBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){g.use([L.install,F.install,g.install,g.install$1,M.install]);const i=a,r=T.useLinkStore();let b=0;class k extends H.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),barColor:this.getOptionValue("barColor","#e5e5e5"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),barHeight:this.getOptionValue("barHeight",10),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var l;this.Style.value=this.extractStyles(),this.applyTheme(),(l=this.props.conf.data)!=null&&l.length||(this.props.conf.data=V),this.props.conf.data.forEach(e=>{e.default!==void 0&&e.default!==""&&(e.value=Number(e.default)||0)}),b=this.props.conf.data.reduce((e,o)=>e+Number(o.value||0),0),t.nextTick(()=>this.initChart())}initChart(){var e,o,s;const l=document.querySelector(`#${this.echartId}`);l&&(this.chartObj||(this.chartObj=P.init(l),this.setupResizeListener(l)),(e=this.chartObj)==null||e.setOption(this.getChartOption(),!0),this.props.mode==="preview"&&((o=this.chartObj)==null||o.off("click"),(s=this.chartObj)==null||s.on("click",h=>{var m,S,u,f,n,d;const c=h==null?void 0:h.name;if(typeof c=="string"&&c){const v=((S=(m=this.props.conf)==null?void 0:m.options)==null?void 0:S.linkChannel)==="custom"?(f=(u=this.props.conf)==null?void 0:u.options)==null?void 0:f.customChannel:(d=(n=this.props.conf)==null?void 0:n.options)==null?void 0:d.linkChannel;r.publish(v||"circleBar","circleBar",{objectId:"",deviceId:"",type:"select",fieldKey:c,fv:x({key:c},h),source:"circleBar"})}})))}getChartOption(){var c,m,S,u,f,n;const{data:l,options:e,name:o}=this.props.conf,s=l.map((d,v)=>d.color||E.COLORS[v]),h=l.map(d=>({value:d.value||0,name:d.name}));return{title:{zlevel:0,show:(c=e==null?void 0:e.showTotal)==null?void 0:c.value,text:[`{value|${b.toFixed(((m=e==null?void 0:e.fixed)==null?void 0:m.value)||2)}}`,`{name|${((S=e==null?void 0:e.totalText)==null?void 0:S.value)||"总数"}}`].join(`
1
+ "use strict";var $=Object.defineProperty,q=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var z=(a,i,r)=>i in a?$(a,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[i]=r,x=(a,i)=>{for(var r in i||(i={}))A.call(i,r)&&z(a,r,i[r]);if(O)for(var r of O(i))D.call(i,r)&&z(a,r,i[r]);return a},N=(a,i)=>q(a,w(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),E=require("./element-resize-detector-Dv3K8Mdu.cjs"),T=require("./index-p4bdBANg.cjs"),H=require("./EChartComponentBase-BChD1X2l.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),_=require("./ele-circleBar-icon-Da0-L9sa.cjs"),L=require("./install-nDY6w-GK.cjs"),g=require("./installCanvasRenderer-CyhM1Qpl.cjs"),F=require("./install-DV5cEgNV.cjs"),M=require("./install-CltTFs4e.cjs"),P=require("./echarts-BB8O2KSA.cjs"),U={class:"mix-body"},W=["id"],K={class:"bar-wrap"},G={DEFAULT_ICON:_.DEFAULT_ICON,ACTIVE_ICON:_.ACTIVE_ICON,NAME_CN:"环形图",NAME_EN:"CircleBar",ORDER:2},J={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#e5e5e5",radiusSize:8,textSize:12,barHeight:10,isHideTitle:!1,showTotal:!0,fixed:{value:2,type:"number",label:"component.options.circleBar_fixed",dependent:"showTotal"},totalText:{value:"总数",type:"string",label:"component.options.circleBar_totalText",dependent:"showTotal"}},V=[{name:"参数一",fv:"",color:"#4162ff",object_id:"",default:"10",value:10},{name:"参数二",fv:"",color:"#3bbc6a",object_id:"",default:"10",value:10},{name:"参数三",fv:"",color:"#e24359",object_id:"",default:"10",value:10}],Q=["name","fv","object_id","color","default"],X=["mosaic","statistics","calculate"],Y={useAlias:!1,multiObject:!1,source:"mosaic"},Z={DEFAULT:G,OPTIONS:J,DATA:V,PARAMS:Q,SOURCE:X,COMMON:Y},ee=t.defineComponent(N(x({},Z),{__name:"circleBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){g.use([F.install,M.install,g.install,g.install$1,L.install]);const i=a,r=T.useLinkStore();let b=0;class k extends H.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),barColor:this.getOptionValue("barColor","#e5e5e5"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),barHeight:this.getOptionValue("barHeight",10),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){var l;this.Style.value=this.extractStyles(),this.applyTheme(),(l=this.props.conf.data)!=null&&l.length||(this.props.conf.data=V),this.props.conf.data.forEach(e=>{e.default!==void 0&&e.default!==""&&(e.value=Number(e.default)||0)}),b=this.props.conf.data.reduce((e,o)=>e+Number(o.value||0),0),t.nextTick(()=>this.initChart())}initChart(){var e,o,s;const l=document.querySelector(`#${this.echartId}`);l&&(this.chartObj||(this.chartObj=P.init(l),this.setupResizeListener(l)),(e=this.chartObj)==null||e.setOption(this.getChartOption(),!0),this.props.mode==="preview"&&((o=this.chartObj)==null||o.off("click"),(s=this.chartObj)==null||s.on("click",h=>{var m,S,u,f,n,d;const c=h==null?void 0:h.name;if(typeof c=="string"&&c){const v=((S=(m=this.props.conf)==null?void 0:m.options)==null?void 0:S.linkChannel)==="custom"?(f=(u=this.props.conf)==null?void 0:u.options)==null?void 0:f.customChannel:(d=(n=this.props.conf)==null?void 0:n.options)==null?void 0:d.linkChannel;r.publish(v||"circleBar","circleBar",{objectId:"",deviceId:"",type:"select",fieldKey:c,fv:x({key:c},h),source:"circleBar"})}})))}getChartOption(){var c,m,S,u,f,n;const{data:l,options:e,name:o}=this.props.conf,s=l.map((d,v)=>d.color||E.COLORS[v]),h=l.map(d=>({value:d.value||0,name:d.name}));return{title:{zlevel:0,show:(c=e==null?void 0:e.showTotal)==null?void 0:c.value,text:[`{value|${b.toFixed(((m=e==null?void 0:e.fixed)==null?void 0:m.value)||2)}}`,`{name|${((S=e==null?void 0:e.totalText)==null?void 0:S.value)||"总数"}}`].join(`
2
2
  `),textStyle:{rich:{value:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,fontWeight:"bold",lineHeight:this.Style.value.textSize+8},name:{color:this.Style.value.textColor,lineHeight:this.Style.value.textSize+8,fontSize:this.Style.value.textSize}}},top:"center",left:"center"},color:s,series:[{name:o,type:"pie",radius:["50%","85%"],center:["50%","50%"],data:h,label:{position:"center",show:!1,color:"inherit"},emphasis:{scale:0,label:{show:(u=e==null?void 0:e.showTotal)==null?void 0:u.value,fontSize:((f=e==null?void 0:e.textSize)==null?void 0:f.value)||12,fontWeight:"bold",formatter:`{d}%
3
3
  {b}`,lineHeight:(((n=e==null?void 0:e.textSize)==null?void 0:n.value)||12)+8}}}]}}setSocketData(l){var h,c,m,S;if(!l||!this.chartObj)return;const{data:e,options:o}=this.props.conf,s=this.chartObj.getOption();e.forEach((u,f)=>{var d,v;const n=this.extractDataValue(l,u.fv);u.value=n!=null?n:0,(v=(d=s.series)==null?void 0:d[0])!=null&&v.data&&(s.series[0].data[f].value=n!=null?n:0)}),b=e.reduce((u,f)=>u+Number(f.value||0),0),(h=s.title)!=null&&h[0]&&(s.title[0].text=[`{value|${b.toFixed(((c=o==null?void 0:o.fixed)==null?void 0:c.value)||2)}}`,`{name|${((m=o==null?void 0:o.totalText)==null?void 0:m.value)||"总数"}}`].join(`
4
4
  `)),(S=this.chartObj)==null||S.setOption(s)}}const C=new k(i,"circleBar"),B=C.getEchartId();C.setupLifecycle();const p=C.getStyle(),j=t.computed(()=>R.generateTitleStyle(i.conf.options)),I=y=>{const l=Number(y),e=Number(b);return!isNaN(l)&&!isNaN(e)&&e!==0?(l/e*100).toFixed(2)+"%":"0%"};return(y,l)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(p).bgColor,borderRadius:`${t.unref(p).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(j.value)},t.toDisplayString(a.conf.caption||a.conf.name),5),t.createElementVNode("div",U,[t.createElementVNode("div",{class:"echart-container",id:t.unref(B)},null,8,W),t.createElementVNode("div",K,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.conf.data,(e,o)=>(t.openBlock(),t.createElementBlock("div",{class:"bar-item level flex",key:o},[t.createElementVNode("div",{class:"label",style:t.normalizeStyle({color:t.unref(p).textColor,fontSize:`${t.unref(p).textSize}px`})},t.toDisplayString(e.name),5),t.createElementVNode("div",{class:"bar",style:t.normalizeStyle({height:t.unref(p).barHeight+"px",backgroundColor:t.unref(p).barColor})},[t.createElementVNode("div",{class:"percent",style:t.normalizeStyle({backgroundColor:e.color||t.unref(E.COLORS)[o],width:I(e.value)})},null,4)],4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle({color:t.unref(p).textColor,fontSize:`${t.unref(p).textSize}px`})},t.toDisplayString(e.value),5)]))),128))])]),t.renderSlot(y.$slots,"default",{},void 0,!0)],4))}})),te=T._export_sfc(ee,[["__scopeId","data-v-813c8d42"]]);exports.default=te;
@@ -11,15 +11,15 @@ var j = (l, i, a) => i in l ? H(l, i, { enumerable: !0, configurable: !0, writab
11
11
  return l;
12
12
  }, k = (l, i) => I(l, D(i));
13
13
  import { defineComponent as F, computed as M, openBlock as _, createElementBlock as z, normalizeStyle as x, unref as d, createElementVNode as b, toDisplayString as T, Fragment as P, renderList as U, renderSlot as W, nextTick as q } from "vue";
14
- import { C as E } from "./element-resize-detector-DJcsrJ8s.js";
15
- import { u as K, _ as G } from "./index-kShjySl9.js";
16
- import { E as J } from "./EChartComponentBase-BQOhWkz2.js";
14
+ import { C as E } from "./element-resize-detector-CcMj2at_.js";
15
+ import { u as K, _ as G } from "./index-DCD0sVkl.js";
16
+ import { E as J } from "./EChartComponentBase-tSVuV5H3.js";
17
17
  import { g as Q } from "./titleStyle-BT5GlpAb.js";
18
18
  import { A as X, D as Y } from "./ele-circleBar-icon-DNBUxt0A.js";
19
- import { i as Z } from "./install-CBde4hAM.js";
20
- import { i as tt } from "./install-hfre7yvV.js";
21
- import { u as et, i as ot, a as it } from "./installCanvasRenderer-CLT2hquJ.js";
22
- import { i as lt } from "./install-BzdOSCzO.js";
19
+ import { i as Z } from "./install-BzdOSCzO.js";
20
+ import { u as tt, i as et, a as ot } from "./installCanvasRenderer-CLT2hquJ.js";
21
+ import { i as it } from "./install-CBde4hAM.js";
22
+ import { i as lt } from "./install-hfre7yvV.js";
23
23
  import { i as at } from "./echarts-BVht3HHb.js";
24
24
  const rt = { class: "mix-body" }, st = ["id"], nt = { class: "bar-wrap" }, ct = {
25
25
  DEFAULT_ICON: Y,
@@ -56,7 +56,7 @@ const rt = { class: "mix-body" }, st = ["id"], nt = { class: "bar-wrap" }, ct =
56
56
  theme: { type: String, default: "light" }
57
57
  },
58
58
  setup(l) {
59
- et([Z, tt, ot, it, lt]);
59
+ tt([it, lt, et, ot, Z]);
60
60
  const i = l, a = K();
61
61
  let g = 0;
62
62
  class $ extends J {