mixdashboards 1.0.75 → 1.0.76

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 (331) hide show
  1. package/dist/{BaseComponent-BXAJUoaf.cjs → BaseComponent-BmhMoM4H.cjs} +1 -1
  2. package/dist/{BaseComponent-BlCsb-HW.js → BaseComponent-CQaDWNO0.js} +8 -8
  3. package/dist/{EChartComponentBase-BPiPzdtw.cjs → EChartComponentBase-D9EUh4BZ.cjs} +1 -1
  4. package/dist/{EChartComponentBase-DPWPg81w.js → EChartComponentBase-i76OGL3z.js} +2 -2
  5. package/dist/{EmergencyPlanPanel-Cv06qTDX.js → EmergencyPlanPanel-B9S3Ru5-.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-CU0gJiFM.cjs → EmergencyPlanPanel-BiAHvTfh.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-CiRVXFaZ.cjs → HistoryPlanDialog-BU4GayEm.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-BALmXGdQ.js → HistoryPlanDialog-CbbeFm-i.js} +1 -1
  9. package/dist/{MonitoringMap-BuVJ-ir-.js → MonitoringMap-B6tXBdvK.js} +2 -2
  10. package/dist/{MonitoringMap-BXxlfEQV.cjs → MonitoringMap-FGDoA0fw.cjs} +1 -1
  11. package/dist/{UniverSheet-CDug4m6W.cjs → UniverSheet-D7y2pceH.cjs} +1 -1
  12. package/dist/{UniverSheet-GnlJ56Io.js → UniverSheet-D8sflrTb.js} +2 -2
  13. package/dist/{accelerationChart-BQkfynh-.cjs → accelerationChart-DTlwSA0N.cjs} +1 -1
  14. package/dist/{accelerationChart-lWscOOUn.js → accelerationChart-bch4O3t-.js} +14 -14
  15. package/dist/{actionItem-B4nl_rf_.js → actionItem-Cw67YwsR.js} +2 -2
  16. package/dist/{actionItem-6eYNuhg3.cjs → actionItem-cdsgUvaC.cjs} +1 -1
  17. package/dist/{alarmLevelChart-Mq8iVSI0.cjs → alarmLevelChart-BMjTLxB5.cjs} +1 -1
  18. package/dist/{alarmLevelChart-CiobE56j.js → alarmLevelChart-BynSRHG2.js} +2 -2
  19. package/dist/{alertTable-f0pzyZBg.cjs → alertTable-3VhkUZSf.cjs} +1 -1
  20. package/dist/{alertTable-CMlVY_8H.js → alertTable-CiwuaydQ.js} +2 -2
  21. package/dist/{aliasObjectSelectorDemo-C1bpTa2y.cjs → aliasObjectSelectorDemo-BLoecZkV.cjs} +1 -1
  22. package/dist/{aliasObjectSelectorDemo-DqZ0EfVH.js → aliasObjectSelectorDemo-DfdRxb4I.js} +1 -1
  23. package/dist/{annualRainfallChart-_mJM58W4.js → annualRainfallChart-CHcr4-0D.js} +2 -2
  24. package/dist/{annualRainfallChart-BbYOeEs_.cjs → annualRainfallChart-DKR-A_PT.cjs} +1 -1
  25. package/dist/{aqi-yjjoBI4W.cjs → aqi-D7VqP1QE.cjs} +1 -1
  26. package/dist/{aqi-jYtMHp4c.js → aqi-Gu-pAovO.js} +4 -4
  27. package/dist/{aqiIndass-BPnJN1L7.js → aqiIndass-Bjj6n1aj.js} +18 -18
  28. package/dist/{aqiIndass-DuxFgiJF.cjs → aqiIndass-nfYUZ3UM.cjs} +1 -1
  29. package/dist/{areaDeformCurve-BM8ClfUa.cjs → areaDeformCurve-fpGWmq05.cjs} +1 -1
  30. package/dist/{areaDeformCurve-DNleJiVH.js → areaDeformCurve-nwlcUBDv.js} +2 -2
  31. package/dist/{arrayCard-jITzZi-r.js → arrayCard-TfcgLrHv.js} +2 -2
  32. package/dist/{arrayCard-BxpqdLMV.cjs → arrayCard-UoDqAGbN.cjs} +1 -1
  33. package/dist/{audio-CH5r-0gF.js → audio-BYgGYoEr.js} +2 -2
  34. package/dist/{audio-BuyKXQ0N.cjs → audio-DdUv9Ot-.cjs} +1 -1
  35. package/dist/bar-CkBXc7t1.cjs +2 -0
  36. package/dist/{bar-BtlkgC6a.js → bar-SfGiFl1r.js} +75 -67
  37. package/dist/{bmp-C2DUdhaT.js → bmp-BbtdzIrI.js} +2 -2
  38. package/dist/{bmp-DLIPXhyT.cjs → bmp-CY-Hb2x1.cjs} +1 -1
  39. package/dist/{box-CVcPOlKk.cjs → box-B4C_mirv.cjs} +1 -1
  40. package/dist/{box-BgwIB1Bl.js → box-CV41cJuX.js} +2 -2
  41. package/dist/{chartConfigPanel-ByzQkeYT.js → chartConfigPanel-D650rSn7.js} +1 -1
  42. package/dist/{chartConfigPanel-BdVphXRS.cjs → chartConfigPanel-DBlqAbbH.cjs} +1 -1
  43. package/dist/{circleBar-DBCX2g0i.cjs → circleBar-DkV7xPBl.cjs} +1 -1
  44. package/dist/{circleBar-CFV6RoS1.js → circleBar-U3iXMQr5.js} +2 -2
  45. package/dist/{clock--G7VfksN.cjs → clock-CjgMeOhp.cjs} +1 -1
  46. package/dist/{clock-ilY2WqEO.js → clock-zKVUU8pu.js} +2 -2
  47. package/dist/{clt-4fAQmG5V.js → clt-BsIA-YPQ.js} +2 -2
  48. package/dist/{clt-DOAntJi9.cjs → clt-DwI8i7zI.cjs} +1 -1
  49. package/dist/{cmc-CehLriLD.cjs → cmc-BX9ichBB.cjs} +1 -1
  50. package/dist/{cmc-Bhyw5-iw.js → cmc-CgpHejR2.js} +2 -2
  51. package/dist/{cmp-znNaGWlx.js → cmp-CS34lG7V.js} +2 -2
  52. package/dist/{cmp-BL3VD7Pn.cjs → cmp-CTqtxzo4.cjs} +1 -1
  53. package/dist/{conclusionCard-B5DhxboF.js → conclusionCard-N6pA6Q9P.js} +2 -2
  54. package/dist/{conclusionCard-K6CSG9A7.cjs → conclusionCard-wvtJmV_8.cjs} +1 -1
  55. package/dist/{controlList-CyE_bM7S.cjs → controlList-BUAMdHA3.cjs} +1 -1
  56. package/dist/{controlList-DoaSMBIh.js → controlList-Zz5ABe5b.js} +2 -2
  57. package/dist/{controlRecordList-CDKRXU47.cjs → controlRecordList-CMR4y_Ml.cjs} +1 -1
  58. package/dist/{controlRecordList-DwXUWAgm.js → controlRecordList-Dx0zj7js.js} +2 -2
  59. package/dist/{controlRecordListAPP-cODkXLeg.cjs → controlRecordListAPP-ZDCKmz_8.cjs} +1 -1
  60. package/dist/{controlRecordListAPP-CP-tQ4o_.js → controlRecordListAPP-bL9oqWzQ.js} +2 -2
  61. package/dist/{crd-D9Djs_9M.cjs → crd-8tMwNlgx.cjs} +1 -1
  62. package/dist/{crd-BJJ9sEBi.js → crd-DZPpD6XY.js} +2 -2
  63. package/dist/{ctrBtn-zECsVsC6.js → ctrBtn-6Ql9ulTr.js} +10 -10
  64. package/dist/{ctrBtn-Ci7BkiOn.cjs → ctrBtn-eCu0UDtW.cjs} +1 -1
  65. package/dist/{ctrSet-DQTACQn1.js → ctrSet-BwFVH1Mk.js} +3 -3
  66. package/dist/{ctrSet-DZrpF9pM.cjs → ctrSet-pX-zVivo.cjs} +1 -1
  67. package/dist/{ctrSwitch-BDy8B1lF.cjs → ctrSwitch-D95SI-aJ.cjs} +1 -1
  68. package/dist/{ctrSwitch-CrEAuL-v.js → ctrSwitch-b6hHf4QF.js} +11 -11
  69. package/dist/{dataManagement-D6SM8zVY.cjs → dataManagement-DubA1TV1.cjs} +1 -1
  70. package/dist/{dataManagement-ivUDfZ3f.js → dataManagement-VucRLCK4.js} +2 -2
  71. package/dist/{dataReport-CryAeh7C.js → dataReport-CALIw14D.js} +2 -2
  72. package/dist/{dataReport-CFJ5aMrb.cjs → dataReport-CkF5J7X1.cjs} +1 -1
  73. package/dist/{dataTable-BBW0i51h.js → dataTable-C1rBH_p9.js} +1 -1
  74. package/dist/{dataTable-IKk8N9i9.cjs → dataTable-C2q_CX5D.cjs} +1 -1
  75. package/dist/{datetime-BPoSIL-3.js → datetime-Cq8scz5Q.js} +2 -2
  76. package/dist/{datetime-CGUnVeRE.cjs → datetime-TBTeWqlf.cjs} +1 -1
  77. package/dist/{deepClusterSlipSurface-rZIUqLLp.cjs → deepClusterSlipSurface-CFaxRVmM.cjs} +1 -1
  78. package/dist/{deepClusterSlipSurface-jt74ODxX.js → deepClusterSlipSurface-Cm50wbjv.js} +2 -2
  79. package/dist/{deepDataMatrix-DyK--0cJ.cjs → deepDataMatrix-CAYSav3X.cjs} +1 -1
  80. package/dist/{deepDataMatrix-B1rr5lNY.js → deepDataMatrix-DyStA98d.js} +7 -7
  81. package/dist/{deepDisplacement3D-DdSfiM8c.cjs → deepDisplacement3D-B3Iju2KK.cjs} +1 -1
  82. package/dist/{deepDisplacement3D-BnWitDOk.js → deepDisplacement3D-Bat-Wc3i.js} +2 -2
  83. package/dist/{deepDisplacementChart-BxdiiuUe.cjs → deepDisplacementChart-C-Tr4DdI.cjs} +1 -1
  84. package/dist/{deepDisplacementChart-DY3PLNdf.cjs → deepDisplacementChart-CX9ALM89.cjs} +1 -1
  85. package/dist/{deepDisplacementChart-BQ3nFJLH.js → deepDisplacementChart-CYMpNu_W.js} +25 -25
  86. package/dist/{deepDisplacementChart-lIfyzMpq.js → deepDisplacementChart-D5rHoC9r.js} +26 -26
  87. package/dist/{deepDisplacementView-C0r4oIIk.cjs → deepDisplacementView-DTSsODJQ.cjs} +1 -1
  88. package/dist/{deepDisplacementView-BsddlCKN.js → deepDisplacementView-DnjwQmEW.js} +1 -1
  89. package/dist/{deepNodeTemperatureChart-DrqwFmDg.cjs → deepNodeTemperatureChart-C9NRJ49Y.cjs} +1 -1
  90. package/dist/{deepNodeTemperatureChart-C1RVbMT1.js → deepNodeTemperatureChart-CLKg72UA.js} +32 -32
  91. package/dist/{deepTangentAngleChart-Hs9wfNfb.cjs → deepTangentAngleChart-C9aFSFrD.cjs} +1 -1
  92. package/dist/{deepTangentAngleChart-BSifjEIw.js → deepTangentAngleChart-DklHYHhm.js} +13 -13
  93. package/dist/{deepTemperatureField-Bz9X6xx5.cjs → deepTemperatureField-CXBL4_LS.cjs} +1 -1
  94. package/dist/{deepTemperatureField-BSsTui64.js → deepTemperatureField-CcnVGgbf.js} +3 -3
  95. package/dist/{deepTrendChart-apQrMrj6.js → deepTrendChart-De7ebpk4.js} +14 -14
  96. package/dist/{deepTrendChart-B3q-lEJw.cjs → deepTrendChart-OGW08BX-.cjs} +1 -1
  97. package/dist/{deviceOnlineStatus-DABeXKWW.cjs → deviceOnlineStatus-DarcMtY4.cjs} +1 -1
  98. package/dist/{deviceOnlineStatus-kFsHXR6n.js → deviceOnlineStatus-_3Txb8Tg.js} +2 -2
  99. package/dist/{deviceStatus-BE2Pszt3.cjs → deviceStatus-BiJw8rnz.cjs} +1 -1
  100. package/dist/{deviceStatus-TNP-PLi-.js → deviceStatus-CL6E-pQ0.js} +10 -10
  101. package/dist/{displacementDataTable-BD45feZR.cjs → displacementDataTable-DmAqr-JK.cjs} +1 -1
  102. package/dist/{displacementDataTable-kZBxmOLa.js → displacementDataTable-tKtGe2xd.js} +11 -11
  103. package/dist/{displacementTrajectoryChart-DmuezhG8.cjs → displacementTrajectoryChart-DG2YdSqq.cjs} +1 -1
  104. package/dist/{displacementTrajectoryChart-BjbgbY-z.js → displacementTrajectoryChart-Dh6oPB0p.js} +22 -22
  105. package/dist/{displacementTrendChart-BjIXnttw.js → displacementTrendChart-BHORe0qO.js} +36 -36
  106. package/dist/{displacementTrendChart-iXH_pVRS.cjs → displacementTrendChart-CT140vXG.cjs} +1 -1
  107. package/dist/{dxf-DMZPfCEF.cjs → dxf-CVa4Vfm3.cjs} +1 -1
  108. package/dist/{dxf-Cne0HiZv.js → dxf-CjcHSJq-.js} +2 -2
  109. package/dist/{dzc-BHGWFMVE.js → dzc-DDXNSuie.js} +6 -6
  110. package/dist/{dzc-Xii4wMjP.cjs → dzc-DK16oTVj.cjs} +1 -1
  111. package/dist/{emergencyPlan-B1znDbbO.cjs → emergencyPlan-D0AMuD-3.cjs} +1 -1
  112. package/dist/{emergencyPlan-CdFHCDZY.js → emergencyPlan-Vim4E6h7.js} +3 -3
  113. package/dist/{evn-UM09m5js.js → evn-CdMN8gIC.js} +2 -2
  114. package/dist/{evn-DQIIN0A9.cjs → evn-D2mdSoFB.cjs} +1 -1
  115. package/dist/{evolutionChart-DDtDzRIE.cjs → evolutionChart-I8XVW05I.cjs} +1 -1
  116. package/dist/{evolutionChart-Dm3nLcz6.js → evolutionChart-P0l6P0Bc.js} +3 -3
  117. package/dist/{fileViewer-CoTW7CWz.cjs → fileViewer-D7sAA8-W.cjs} +1 -1
  118. package/dist/{fileViewer-C1Ky9Ydw.js → fileViewer-DvntGv0b.js} +2 -2
  119. package/dist/{filterBar-BNr5i0ab.js → filterBar-8gex5oR-.js} +2 -2
  120. package/dist/{filterBar-DPG_jFL8.cjs → filterBar-GSTji96g.cjs} +1 -1
  121. package/dist/{fireCombustionCurve-DpcQ13zK.js → fireCombustionCurve-B3jAhOft.js} +3 -3
  122. package/dist/{fireCombustionCurve-z2iMEkbd.cjs → fireCombustionCurve-DrMmHf3N.cjs} +1 -1
  123. package/dist/{fireFilterBar-BFJeB-8m.js → fireFilterBar-CH6iK0Xg.js} +2 -2
  124. package/dist/{fireFilterBar-iXGBx5Zi.cjs → fireFilterBar-Dy9DcHij.cjs} +1 -1
  125. package/dist/{fireHistoryTable-E9Gx4Gqf.js → fireHistoryTable-CHxHqPs0.js} +2 -2
  126. package/dist/{fireHistoryTable-BE79laqx.cjs → fireHistoryTable-n6L3juWp.cjs} +1 -1
  127. package/dist/{gag-naUs2e3c.js → gag-BsO4kmp1.js} +2 -2
  128. package/dist/{gag-Ce_-YYka.cjs → gag-BzjuwBvY.cjs} +1 -1
  129. package/dist/{gasStationList-Kbha10pX.js → gasStationList-7JzUcISs.js} +214 -276
  130. package/dist/gasStationList-QwqTDEAG.cjs +1 -0
  131. package/dist/{geo3dViewer-CnAgLJ_6.cjs → geo3dViewer-Cf-jHpvF.cjs} +1 -1
  132. package/dist/{geo3dViewer-CMISZOfo.js → geo3dViewer-doEpUC_J.js} +3 -3
  133. package/dist/{glbModel-Bw25mL_R.js → glbModel-BgFIj_es.js} +2 -2
  134. package/dist/{glbModel-CS8qUhON.cjs → glbModel-C6L--3dO.cjs} +1 -1
  135. package/dist/{globalObjectSelector-BcLO38lZ.js → globalObjectSelector-CdfiXRjg.js} +1 -1
  136. package/dist/{globalObjectSelector-BwoQjJGq.cjs → globalObjectSelector-P_irB0rv.cjs} +1 -1
  137. package/dist/{gnssFilterBar-CfqJBy4d.cjs → gnssFilterBar-CIwyv2yc.cjs} +1 -1
  138. package/dist/{gnssFilterBar-bS10JYoi.js → gnssFilterBar-DPNshMIx.js} +2 -2
  139. package/dist/{gnssHistoryTable-CPs_w2gf.js → gnssHistoryTable-C7x4-Tpp.js} +2 -2
  140. package/dist/{gnssHistoryTable-CyingjiU.cjs → gnssHistoryTable-j5FL6oYs.cjs} +1 -1
  141. package/dist/{gnssMapView-DD_L9jE0.js → gnssMapView-BWcS4hqj.js} +4 -4
  142. package/dist/{gnssMapView-KvzwIbK1.cjs → gnssMapView-_VaJWBcE.cjs} +2 -2
  143. package/dist/{gnssSectionProfile-DxkEsZQx.cjs → gnssSectionProfile-DGbTO7lV.cjs} +1 -1
  144. package/dist/{gnssSectionProfile-DGYWQKML.js → gnssSectionProfile-hpyiGI-6.js} +2 -2
  145. package/dist/{gnssTimeSeriesChart-KVg2GW1C.cjs → gnssTimeSeriesChart-CNT6xaNs.cjs} +1 -1
  146. package/dist/{gnssTimeSeriesChart-1bLKTD-e.js → gnssTimeSeriesChart-rL9oG1ly.js} +2 -2
  147. package/dist/{gnssXYTrajectory-B-d6rq3V.js → gnssXYTrajectory-B1LZAepw.js} +2 -2
  148. package/dist/{gnssXYTrajectory-B-0h71U8.cjs → gnssXYTrajectory-CwAjhPRc.cjs} +1 -1
  149. package/dist/{grd-CqeXHXO2.js → grd-BLab9IY0.js} +20 -20
  150. package/dist/{grd-CbvQkv0q.cjs → grd-rJXqEimt.cjs} +1 -1
  151. package/dist/{grdIndass-BaHBsp5T.js → grdIndass-gGrZ7gRV.js} +6 -6
  152. package/dist/{grdIndass-_-7wqVjL.cjs → grdIndass-niY4UOwz.cjs} +1 -1
  153. package/dist/{grg-DmN25aj-.cjs → grg-C1L5yeyY.cjs} +1 -1
  154. package/dist/{grg-Cgpfx9kR.js → grg-Dnro7bLg.js} +6 -6
  155. package/dist/{gridview-B0haH8LS.js → gridview-BhjWlD0J.js} +2 -2
  156. package/dist/{gridview-DYYpW2MH.cjs → gridview-DxUsv2ny.cjs} +1 -1
  157. package/dist/{groundwaterFilterBar-mcMEwt9B.cjs → groundwaterFilterBar-C-2e7S04.cjs} +1 -1
  158. package/dist/{groundwaterFilterBar-ClXMXCj6.js → groundwaterFilterBar-bNhTkX1C.js} +2 -2
  159. package/dist/{groundwaterProfileChart-BoRVOmen.cjs → groundwaterProfileChart-BxKGPuOe.cjs} +2 -2
  160. package/dist/{groundwaterProfileChart-Cfwfua8-.js → groundwaterProfileChart-dhzmwfwz.js} +3 -3
  161. package/dist/{groundwaterTimeCurve-BOarX2wf.js → groundwaterTimeCurve-BtzP6icm.js} +3 -3
  162. package/dist/{groundwaterTimeCurve-Czt7iLlt.cjs → groundwaterTimeCurve-CTQPlTUr.cjs} +1 -1
  163. package/dist/{groupCard-2aS7lgg2.js → groupCard-D00ElZoy.js} +63 -53
  164. package/dist/{groupCard-DjUIJShv.cjs → groupCard-D4gdaVqR.cjs} +1 -1
  165. package/dist/{headerBar-u-0s0z16.js → headerBar-DEHj8fJr.js} +2 -2
  166. package/dist/{headerBar-5nL0hMXs.cjs → headerBar-MFw1W0qa.cjs} +1 -1
  167. package/dist/{history-BtX7uNYs.js → history-BRkb914v.js} +16 -16
  168. package/dist/{history-B-Ynlm5z.cjs → history-D1R2RAZQ.cjs} +1 -1
  169. package/dist/index-77aUdspY.cjs +612 -0
  170. package/dist/{index-DomNEEyv.js → index-BZpYmpDy.js} +3569 -2983
  171. package/dist/{insarDeformChart-KECXbG_n.cjs → insarDeformChart-5EVWIkpL.cjs} +1 -1
  172. package/dist/{insarDeformChart-DVGZUwaX.js → insarDeformChart-pbOnnoN-.js} +2 -2
  173. package/dist/{insarImageViewer-BMk5v36R.js → insarImageViewer-D3bbQA6g.js} +2 -2
  174. package/dist/{insarImageViewer-CdJyowUc.cjs → insarImageViewer-DQJBN4YM.cjs} +1 -1
  175. package/dist/{kds-DU8wNnhT.cjs → kds-D5seJB3L.cjs} +1 -1
  176. package/dist/{kds-CawaHOXh.js → kds-gTJOwHbM.js} +21 -21
  177. package/dist/{kpiCard-CAuX9-zP.cjs → kpiCard-Bz-fg6sL.cjs} +1 -1
  178. package/dist/{kpiCard-B5ZueB0g.js → kpiCard-Cx6VNK6L.js} +2 -2
  179. package/dist/{landslideMap-DGkSLtbi.js → landslideMap-5erIcZo7.js} +15 -15
  180. package/dist/{landslideMap-CImGVGDr.cjs → landslideMap-D7_QpwmM.cjs} +1 -1
  181. package/dist/{landslideWarning-C8cHW-2p.cjs → landslideWarning-C3FZqrxT.cjs} +1 -1
  182. package/dist/{landslideWarning-BeQUD3uJ.js → landslideWarning-CzaddgWf.js} +14 -14
  183. package/dist/{layerTabs-DxX6yqOO.cjs → layerTabs-Dc1Xb11W.cjs} +1 -1
  184. package/dist/{layerTabs-CBr-oH28.js → layerTabs-DqbOykS2.js} +2 -2
  185. package/dist/{leaflet-src-BXugYdBe.js → leaflet-src-BY2SMh9y.js} +1 -1
  186. package/dist/{leaflet-src-VXn1CZcu.cjs → leaflet-src-Brb8KUL5.cjs} +1 -1
  187. package/dist/{lerc-td9bbpKy.js → lerc-Chm_GVte.js} +2 -2
  188. package/dist/{lerc-DJGGksD3.cjs → lerc-DGuyYCKG.cjs} +1 -1
  189. package/dist/{lin-vrv9_1Gw.cjs → lin-8x2j8aGa.cjs} +1 -1
  190. package/dist/{lin-DlD92hLY.js → lin-tqtSA5ci.js} +9 -9
  191. package/dist/{linIndass-DRZUPyVA.js → linIndass-DHFymSVI.js} +12 -12
  192. package/dist/{linIndass-BhvIJJ_-.cjs → linIndass-Dxo_bzrZ.cjs} +1 -1
  193. package/dist/{lst-BsGZwd4K.cjs → lst-BV6EbDPs.cjs} +1 -1
  194. package/dist/{lst-DHBMHjOM.js → lst-BejIuO0f.js} +2 -2
  195. package/dist/{manualEntry-zdYpuGoU.cjs → manualEntry-Bt4cs6kn.cjs} +1 -1
  196. package/dist/{manualEntry-gGLZH2mN.js → manualEntry-DObI0OAq.js} +2 -2
  197. package/dist/{mapBackground-DBXKXI9j.js → mapBackground-Cuym5Dqr.js} +3 -3
  198. package/dist/{mapBackground-U2NX5fCU.cjs → mapBackground-oVOBK3zr.cjs} +1 -1
  199. package/dist/{mappingList-vLJbxZcd.cjs → mappingList-BEWAqLd4.cjs} +1 -1
  200. package/dist/{mappingList-D4KRWEkc.js → mappingList-Dzq0zMfs.js} +2 -2
  201. package/dist/{markdownViewer-DzZnOTO-.js → markdownViewer-Bz50jkb6.js} +2 -2
  202. package/dist/{markdownViewer-XvNb3eNT.cjs → markdownViewer-V5b1xhPh.cjs} +1 -1
  203. package/dist/{mix-control-modal-DjD4xOuc.js → mix-control-modal-DzVLdO3S.js} +7 -7
  204. package/dist/{mix-control-modal-DQnZbDGs.cjs → mix-control-modal-I6DqPm04.cjs} +1 -1
  205. package/dist/{mixGrid-CLEdWr86.cjs → mixGrid-_ur8VKLD.cjs} +1 -1
  206. package/dist/{mixGrid-uzRHR_XB.js → mixGrid-tVSdKPms.js} +2 -2
  207. package/dist/mixdashboards.cjs +1 -1
  208. package/dist/mixdashboards.css +1 -1
  209. package/dist/mixdashboards.js +1 -1
  210. package/dist/{mixiotObjectListApi-DCuG7zc-.cjs → mixiotObjectListApi-BUQ-RZ3L.cjs} +1 -1
  211. package/dist/{mixiotObjectListApi-DP6wrrOJ.js → mixiotObjectListApi-D5vNNWgT.js} +1 -1
  212. package/dist/{mjpegCamera-D416oWYH.cjs → mjpegCamera-CjWe8BEK.cjs} +1 -1
  213. package/dist/{mjpegCamera-y_pW209K.js → mjpegCamera-DnAPpFJU.js} +2 -2
  214. package/dist/{monitorAlert-BOJ4UrnO.js → monitorAlert-B-fTYPn6.js} +11 -11
  215. package/dist/{monitorAlert-Bq1MEu6y.cjs → monitorAlert-qmVSQ1lc.cjs} +1 -1
  216. package/dist/{monitorData-CTVzSwsd.js → monitorData-Dopc660L.js} +7 -7
  217. package/dist/{monitorData-eE9QUfb3.cjs → monitorData-YhGSUq3H.cjs} +1 -1
  218. package/dist/{monitorSpeedChart-CnKy9z8m.cjs → monitorSpeedChart-Brj_YHsO.cjs} +1 -1
  219. package/dist/{monitorSpeedChart-CUZat2mO.js → monitorSpeedChart-Dsvr_QPB.js} +1 -1
  220. package/dist/{mxa-ueyMsY-m.cjs → mxa-BzdI7BLB.cjs} +1 -1
  221. package/dist/{mxa-DDJJIW_n.js → mxa-D4WkyBYZ.js} +7 -7
  222. package/dist/{myValue-BdJdeV7Y.cjs → myValue-C0tq-asC.cjs} +1 -1
  223. package/dist/{myValue-jZIrcY-B.js → myValue-DYtBtOJ2.js} +2 -2
  224. package/dist/{myValueList-KoXkIHn0.cjs → myValueList-BJctRTNd.cjs} +1 -1
  225. package/dist/{myValueList-DYPYb3FQ.js → myValueList-Ddpn1S68.js} +2 -2
  226. package/dist/{objectList-Ct6UzSuD.cjs → objectList-Csf0hVwo.cjs} +1 -1
  227. package/dist/{objectList-CGYOZD6e.js → objectList-G4wXFDwe.js} +3 -3
  228. package/dist/{objectListAPP-DrymYbRw.js → objectListAPP-BrmUj4At.js} +3 -3
  229. package/dist/{objectListAPP-D0dHuEhF.cjs → objectListAPP-UZN4iuTn.cjs} +1 -1
  230. package/dist/{photo-DC0tNbgw.js → photo-BEPeK7U8.js} +2 -2
  231. package/dist/{photo-siDcsoGU.cjs → photo-BYH_qg5O.cjs} +1 -1
  232. package/dist/{pie-D9J75dIT.cjs → pie-B57zDxJV.cjs} +1 -1
  233. package/dist/{pie-I_Gqoxg_.js → pie-CEVKe1lL.js} +2 -2
  234. package/dist/{placeholder-BPjcnXBR.cjs → placeholder-BezBEQGo.cjs} +1 -1
  235. package/dist/{placeholder-BsmPsTrK.js → placeholder-Bwv3VyEg.js} +1 -1
  236. package/dist/{pressBtn-CXasqSG5.js → pressBtn-1LCNz2gE.js} +3 -3
  237. package/dist/{pressBtn-DkR5yC7c.cjs → pressBtn-CJZTyY8I.cjs} +1 -1
  238. package/dist/{processTable-CprS7V6w.js → processTable-CHDazqah.js} +2 -2
  239. package/dist/{processTable-D2upRmGB.cjs → processTable-HtDeg1by.cjs} +1 -1
  240. package/dist/{progressBar-CHGUKjOk.cjs → progressBar-BP4SmPZK.cjs} +1 -1
  241. package/dist/{progressBar-BnDhCqnO.js → progressBar-C3NcWUrS.js} +2 -2
  242. package/dist/{progressCircle-DTSsucDj.js → progressCircle-Bo9-Qva_.js} +2 -2
  243. package/dist/{progressCircle-C7U0fPQv.cjs → progressCircle-CDqK1iFt.cjs} +1 -1
  244. package/dist/{qrcode-B65TN3DU.js → qrcode-VmYwvClG.js} +2 -2
  245. package/dist/{qrcode-COSof3Xg.cjs → qrcode-qD6tOm4F.cjs} +1 -1
  246. package/dist/{raceBar-B-Dg_JeH.js → raceBar-DR2-luKW.js} +2 -2
  247. package/dist/{raceBar-DUTC68PY.cjs → raceBar-uAs91hyk.cjs} +1 -1
  248. package/dist/{rad-CQS9cZyM.js → rad-1Jy1KDzt.js} +2 -2
  249. package/dist/{rad-C-5BUzw2.cjs → rad-D7-YZJNO.cjs} +1 -1
  250. package/dist/{radarMapViewer-8GICTIhi.js → radarMapViewer-ByQXe0Mu.js} +2 -2
  251. package/dist/{radarMapViewer-Bnzk9-oK.cjs → radarMapViewer-KPhNE5XX.cjs} +1 -1
  252. package/dist/{rainfallFilterBar-2PbsD0mU.js → rainfallFilterBar-C1obotPf.js} +2 -2
  253. package/dist/{rainfallFilterBar-BAFB2Yla.cjs → rainfallFilterBar-CVQpQp82.cjs} +1 -1
  254. package/dist/{rainfallTimeCurve-D8deMaZA.js → rainfallTimeCurve-B2rEx3T_.js} +3 -3
  255. package/dist/{rainfallTimeCurve-pNf06cfu.cjs → rainfallTimeCurve-DU2tt-Ls.cjs} +1 -1
  256. package/dist/{rangeLin-D1_RCrEG.cjs → rangeLin-COsJkCky.cjs} +1 -1
  257. package/dist/{rangeLin-DiCVHBXe.js → rangeLin-CdfUCFQr.js} +2 -2
  258. package/dist/{realtimeEvolutionMap-BwDjG4Cd.cjs → realtimeEvolutionMap-B7GT8MOq.cjs} +1 -1
  259. package/dist/{realtimeEvolutionMap-BZ3odAWj.js → realtimeEvolutionMap-aR63xPW_.js} +2 -2
  260. package/dist/{regionBar-BZVsJdo6.cjs → regionBar-BYF7IaGA.cjs} +1 -1
  261. package/dist/{regionBar-C_C5cX2r.js → regionBar-DB-secNe.js} +2 -2
  262. package/dist/{request-CsiNbn80.js → request-CBsG4ipL.js} +7 -7
  263. package/dist/{request-B1HlG30f.cjs → request-CvdHjG34.cjs} +1 -1
  264. package/dist/{retainer1-CzyGsNUK.cjs → retainer1-1CFk4InO.cjs} +1 -1
  265. package/dist/{retainer1-DROmtfRa.js → retainer1-CMzTlM5Z.js} +3 -3
  266. package/dist/{retainer2-BCAnjUE9.js → retainer2-DW4ewYX7.js} +3 -3
  267. package/dist/{retainer2-1BaKVlim.cjs → retainer2-DliOH7it.cjs} +1 -1
  268. package/dist/{retainerRecordList-DIdk5Q5E.js → retainerRecordList-Bcm6leuD.js} +2 -2
  269. package/dist/{retainerRecordList-Ct_yDZds.cjs → retainerRecordList-DV7Tx39d.cjs} +1 -1
  270. package/dist/{retainerRecordListAPP-Bi6Ax0r6.js → retainerRecordListAPP-BDRwp8T3.js} +2 -2
  271. package/dist/{retainerRecordListAPP-DUqNtCCN.cjs → retainerRecordListAPP-CJ-u0Tj2.cjs} +1 -1
  272. package/dist/{ringTopN-BSWAdbso.js → ringTopN-Duq0pzm_.js} +2 -2
  273. package/dist/{ringTopN-CIusnN5O.cjs → ringTopN-rd2UwH9f.cjs} +1 -1
  274. package/dist/{riskRegionTable-Lmup8bDM.js → riskRegionTable-BE_ggcEV.js} +7 -7
  275. package/dist/{riskRegionTable-0fHQGnVM.cjs → riskRegionTable-CbPB8mlY.cjs} +1 -1
  276. package/dist/{sankey-D8Erc_QS.cjs → sankey-BqBn6_rx.cjs} +1 -1
  277. package/dist/{sankey-D99KciIH.js → sankey-CnKm9PZe.js} +5 -5
  278. package/dist/{scd-0yZCqQT2.js → scd-BaBLoem8.js} +2 -2
  279. package/dist/{scd-Bkse6tqJ.cjs → scd-BgJ5P7co.cjs} +1 -1
  280. package/dist/{sideMenu-B8Wf4m_8.cjs → sideMenu-BgiQL2P1.cjs} +1 -1
  281. package/dist/{sideMenu-DZ2bbsp7.js → sideMenu-CUal1UQY.js} +2 -2
  282. package/dist/{slopeStability-B8u5QQaS.js → slopeStability-B9YbQLCE.js} +24 -24
  283. package/dist/{slopeStability-D2XSPa-Q.cjs → slopeStability-Y2tDzJeh.cjs} +1 -1
  284. package/dist/{speedCurve-BD8ajqAX.js → speedCurve-DERBMtE1.js} +2 -2
  285. package/dist/{speedCurve-CMZGeXjF.cjs → speedCurve-Kll2RRJ8.cjs} +1 -1
  286. package/dist/{stressFilterBar-Chq7rovQ.cjs → stressFilterBar-BGI4gVfE.cjs} +1 -1
  287. package/dist/{stressFilterBar-Dpn3RUli.js → stressFilterBar-CHRWFnpP.js} +2 -2
  288. package/dist/{stressTimeCurve-D-wPq_W1.cjs → stressTimeCurve-DE5KiXEt.cjs} +1 -1
  289. package/dist/{stressTimeCurve-SRlS-9iL.js → stressTimeCurve-hrlqSYS3.js} +3 -3
  290. package/dist/{swiper-BBV8vKRh.cjs → swiper-CnGllhBQ.cjs} +1 -1
  291. package/dist/{swiper-DIFY95yz.js → swiper-DNHC412s.js} +2 -2
  292. package/dist/{terminalConfigList-Dom3--nE.js → terminalConfigList-BlHAsyCm.js} +2 -2
  293. package/dist/{terminalConfigList-DwA9ITHL.cjs → terminalConfigList-C45EANO4.cjs} +1 -1
  294. package/dist/{terminalList-ClsF5hyg.cjs → terminalList-CNI3_FGb.cjs} +1 -1
  295. package/dist/{terminalList-DpB3UlZG.js → terminalList-UGjkhyf4.js} +2 -2
  296. package/dist/{terminalListAPP-Bu_KM5lV.cjs → terminalListAPP-6fPXF-yJ.cjs} +1 -1
  297. package/dist/{terminalListAPP-U6qqbtPw.js → terminalListAPP-CIJZMdxI.js} +2 -2
  298. package/dist/{textbox-DLDf0rM6.js → textbox-BD_LQ0EN.js} +2 -2
  299. package/dist/{textbox-CbF9pAtK.cjs → textbox-yNPnOaan.cjs} +1 -1
  300. package/dist/{timeQueryBar-CE9N3lDg.cjs → timeQueryBar-3qiV0IV9.cjs} +1 -1
  301. package/dist/{timeQueryBar-ZAH6gs8Q.js → timeQueryBar-B-uPtN25.js} +1 -1
  302. package/dist/{timeSeries-0oO4KLxQ.cjs → timeSeries-BTUuojvj.cjs} +1 -1
  303. package/dist/{timeSeries-DvHAA0wU.js → timeSeries-DdQI4oZU.js} +19 -19
  304. package/dist/{timeSeriesCurve-BTuPg-3z.cjs → timeSeriesCurve-Cj_FbK4x.cjs} +1 -1
  305. package/dist/{timeSeriesCurve-Dyl9b667.js → timeSeriesCurve-TGXshTzl.js} +3 -3
  306. package/dist/{toggleBtn-CZoTmwAw.js → toggleBtn-BMxqm5WG.js} +2 -2
  307. package/dist/{toggleBtn-qDOJLJ7K.cjs → toggleBtn-BXcQfnTB.cjs} +1 -1
  308. package/dist/{trajectoryConfigPanel-CxV8Ed97.cjs → trajectoryConfigPanel-CqoKO0hL.cjs} +1 -1
  309. package/dist/{trajectoryConfigPanel-DwZvvYAl.js → trajectoryConfigPanel-uRLWdXUb.js} +1 -1
  310. package/dist/{trajectoryScatter-CEFp9PB3.js → trajectoryScatter-DPE4cC8N.js} +2 -2
  311. package/dist/{trajectoryScatter-Dd8Ppxae.cjs → trajectoryScatter-Dph8PSdN.cjs} +1 -1
  312. package/dist/{universalConfigPanel-BAppgtmC.js → universalConfigPanel-CI1CuBmr.js} +1 -1
  313. package/dist/{universalConfigPanel-C7tTPczg.cjs → universalConfigPanel-Db-pC67o.cjs} +1 -1
  314. package/dist/{universalTable-3JLC8oEV.js → universalTable-DMrgtBrw.js} +2 -2
  315. package/dist/{universalTable-COmdNAnW.cjs → universalTable-dQObEQog.cjs} +1 -1
  316. package/dist/{video-BtR163lf.js → video-DEhLie80.js} +2 -2
  317. package/dist/{video-8vSuQilp.cjs → video-DbsKQhVD.cjs} +1 -1
  318. package/dist/{videoMonitor-CdTNqBTI.js → videoMonitor-BS6_LYUb.js} +12 -12
  319. package/dist/{videoMonitor-BZwJZvno.cjs → videoMonitor-DLBtivXO.cjs} +1 -1
  320. package/dist/{vlu-AozGL50n.cjs → vlu-DXk_wQf-.cjs} +1 -1
  321. package/dist/{vlu-DqeEDfiN.js → vlu-DaSjPY3I.js} +2 -2
  322. package/dist/{warningOverview-CV_pqizm.js → warningOverview-CKCEs_Jj.js} +3 -3
  323. package/dist/{warningOverview-CRaFyOXe.cjs → warningOverview-DAUlXzr0.cjs} +1 -1
  324. package/dist/{weather-CLXe9W0L.cjs → weather-BAI0IWNH.cjs} +1 -1
  325. package/dist/{weather-iTeslV81.js → weather-XUj6pFwM.js} +2 -2
  326. package/dist/{windLin-u983PAHI.js → windLin-Bt4q2eUT.js} +2 -2
  327. package/dist/{windLin-BCMqmXdY.cjs → windLin-C9dsCT1w.cjs} +1 -1
  328. package/package.json +1 -1
  329. package/dist/bar-vpJvlBYX.cjs +0 -2
  330. package/dist/gasStationList-jfKZeg4P.cjs +0 -1
  331. package/dist/index-Cvu9nAQq.cjs +0 -612
@@ -1 +1 @@
1
- "use strict";var F=Object.defineProperty,I=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols,P=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,H=Reflect.get;var M=(n,o,t)=>o in n?F(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,k=(n,o)=>{for(var t in o||(o={}))D.call(o,t)&&M(n,t,o[t]);if(_)for(var t of _(o))R.call(o,t)&&M(n,t,o[t]);return n},O=(n,o)=>I(n,j(o));var w=(n,o,t)=>H(P(n),t,o);var x=(n,o,t)=>new Promise((u,C)=>{var g=a=>{try{c(t.next(a))}catch(l){C(l)}},p=a=>{try{c(t.throw(a))}catch(l){C(l)}},c=a=>a.done?u(a.value):Promise.resolve(a.value).then(g,p);c((t=t.apply(n,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const $=require("./BaseComponent-BXAJUoaf.cjs"),h=require("./index-Cvu9nAQq.cjs"),q=require("./titleStyle-NSnz6cUg.cjs"),v=require("./mix-control-modal-DQnZbDGs.cjs"),S=require("element-plus"),U="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%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='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",W="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",G={class:"font-semibold flex items-center justify-between"},J={class:"flex items-center"},K={class:"mix-body"},Y={class:"w-full flex flex-wrap content-start"},Q=["onMousedown","onMouseup"],X={DEFAULT_ICON:U,ACTIVE_ICON:W,NAME_CN:"双控",NAME_EN:"Dual Control",ORDER:3,PLATFORM:["pc","screen","mobile"]},e2={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:h.CONTROL_OPTIONS}},z=[{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"关机",color:"#c92309",code:0},{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"开机",color:"#217406",code:1}],t2=["name","color","upper","down"],o2={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},n2=["mosaic"],l2={DEFAULT:X,OPTIONS:e2,DATA:z,PARAMS:t2,SOURCE:n2,COMMON:o2},i2=e.defineComponent(O(k({},l2),{__name:"pressBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(n){const o=n,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),u=e.reactive({text:"",color:""}),C=e.ref(null),g=e.ref(!0),p=e.ref(!1);class c extends $.BaseComponent{extractStyles(){const{options:i}=this.props.conf;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),method:this.getOptionValue("method","alway"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return x(this,null,function*(){w(c.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:z})}onPreview(){return x(this,null,function*(){yield w(c.prototype,this,"onPreview").call(this);const i=yield v.getAuthorized(this.props);t.authorized=i.authorized,t.password=i.password})}setSocketData(i){var d,b;if(!i)return;const{common:r}=this.props.conf,m=this.extractDataValue(i,r.statusFv);if(m!=null){const f=r.status.find(Z=>String(Z.code)===String(m));u.text=(d=f==null?void 0:f.text)!=null?d:"",u.color=(b=f==null?void 0:f.color)!=null?b:""}}}const a=new c(o,"pressBtn");a.setupLifecycle();const l=a.getStyle(),E=e.computed(()=>q.generateTitleStyle(o.conf.options)),N=e.computed(()=>`${(100/l.value.items).toFixed(2)||100}%`),L=e.computed(()=>{const s=l.value.method||"alway";return s==="once"&&g.value||s==="alway"&&!p.value}),V=()=>{p.value||(C.value.modal.visible=!0)},A=()=>{p.value=!0,l.value.method==="once"&&(g.value=!1)},B=s=>{if(L.value)return;if(!v.checkPermission(t.authorized,s.down.command)){S.ElMessage.error("您没有控制权限!");return}const{common:i}=o.conf,r=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let d={block_mapping:"pusher",action:"publish_command",object_id:i.useAlias?r[i.object_alias]:i.object_id||o.uid,command:s.down.command.toString(),value:s.down.code.toString()||"",control:t.password,rule:l.value.method};y(d,"down")},T=s=>{if(L.value)return;if(!v.checkPermission(t.authorized,s.upper.command)){S.ElMessage.error("您没有控制权限!");return}const{common:i}=o.conf,r=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let d={block_mapping:"pusher",action:"publish_command",object_id:i.useAlias?r[i.object_alias]:i.object_id||o.uid,command:s.upper.command.toString(),value:s.upper.code.toString()||"",control:t.password,rule:l.value.method};y(d,"up")},y=(s,i)=>{h.api.platform(r=>{r.code===200&&(S.ElMessage.success(r.msg),g.value=!1,l.value.method==="alway"&&i==="up"&&(p.value=!1))},s)};return(s,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(l).bgColor,borderRadius:`${e.unref(l).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",G,[e.createTextVNode(e.toDisplayString(n.conf.caption||n.conf.name)+" ",1),e.createElementVNode("div",J,[e.unref(l).method!=="never"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["verify-btn",{disabled:p.value}]),onClick:V},"验证密码",2)):e.createCommentVNode("",!0),u.text?(e.openBlock(),e.createElementBlock("div",{key:1,class:"status-btn",style:e.normalizeStyle({backgroundColor:u.color,color:e.unref(l).textColor})},e.toDisplayString(u.text),5)):e.createCommentVNode("",!0)])])],4),e.createElementVNode("div",K,[e.createElementVNode("div",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.conf.data,(r,m)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:m,style:e.normalizeStyle({width:N.value,height:`${e.unref(l).itemHeight}px`,fontSize:`${e.unref(l).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:L.value}]),style:e.normalizeStyle({backgroundColor:r.color,color:e.unref(l).textColor}),onMousedown:d=>B(r),onMouseup:d=>T(r)},e.toDisplayString(r.name),47,Q)],4))),128))])]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4),e.createVNode(v._sfc_main,{ref_key:"controlRef",ref:C,onSubmit:A,password:t.password},null,8,["password"])],64))}})),s2=h._export_sfc(i2,[["__scopeId","data-v-4a5f2b28"]]);exports.default=s2;
1
+ "use strict";var F=Object.defineProperty,I=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols,P=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,H=Reflect.get;var M=(n,o,t)=>o in n?F(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t,k=(n,o)=>{for(var t in o||(o={}))D.call(o,t)&&M(n,t,o[t]);if(_)for(var t of _(o))R.call(o,t)&&M(n,t,o[t]);return n},O=(n,o)=>I(n,j(o));var w=(n,o,t)=>H(P(n),t,o);var x=(n,o,t)=>new Promise((u,C)=>{var g=a=>{try{c(t.next(a))}catch(l){C(l)}},p=a=>{try{c(t.throw(a))}catch(l){C(l)}},c=a=>a.done?u(a.value):Promise.resolve(a.value).then(g,p);c((t=t.apply(n,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const $=require("./BaseComponent-BmhMoM4H.cjs"),h=require("./index-77aUdspY.cjs"),q=require("./titleStyle-NSnz6cUg.cjs"),v=require("./mix-control-modal-I6DqPm04.cjs"),S=require("element-plus"),U="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%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='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",W="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e双控%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-318.000000,%20-1207.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M332.736782,1207.3%20C333.600123,1207.3%20334.3,1207.99988%20334.3,1208.86322%20L334.3,1208.86322%20L334.3,1221.73678%20C334.3,1222.60012%20333.600123,1223.3%20332.736782,1223.3%20L332.736782,1223.3%20L319.863218,1223.3%20C318.999877,1223.3%20318.3,1222.60012%20318.3,1221.73678%20L318.3,1221.73678%20L318.3,1208.86322%20C318.3,1207.99988%20318.999877,1207.3%20319.863218,1207.3%20L319.863218,1207.3%20Z%20M332.736782,1208.58736%20L319.863218,1208.58736%20C319.710864,1208.58736%20319.587356,1208.71086%20319.587356,1208.86322%20L319.587356,1208.86322%20L319.587356,1221.73678%20C319.587356,1221.88914%20319.710864,1222.01264%20319.863218,1222.01264%20L319.863218,1222.01264%20L332.736782,1222.01264%20C332.889136,1222.01264%20333.012644,1221.88914%20333.012644,1221.73678%20L333.012644,1221.73678%20L333.012644,1208.86322%20C333.012644,1208.71086%20332.889136,1208.58736%20332.736782,1208.58736%20L332.736782,1208.58736%20Z%20M323.725287,1216.86322%20C324.893338,1216.86322%20325.84023,1217.81011%20325.84023,1218.97816%20C325.84023,1220.14621%20324.893338,1221.0931%20323.725287,1221.0931%20C322.557237,1221.0931%20321.610345,1220.14621%20321.610345,1218.97816%20C321.610345,1217.81011%20322.557237,1216.86322%20323.725287,1216.86322%20Z%20M328.874713,1216.86322%20C330.042763,1216.86322%20330.989655,1217.81011%20330.989655,1218.97816%20C330.989655,1220.14621%20330.042763,1221.0931%20328.874713,1221.0931%20C327.706662,1221.0931%20326.75977,1220.14621%20326.75977,1218.97816%20C326.75977,1217.81011%20327.706662,1216.86322%20328.874713,1216.86322%20Z%20M323.725287,1218.15057%20C323.268224,1218.15057%20322.897701,1218.5211%20322.897701,1218.97816%20C322.897701,1219.43522%20323.268224,1219.80575%20323.725287,1219.80575%20C324.182351,1219.80575%20324.552874,1219.43522%20324.552874,1218.97816%20C324.552874,1218.5211%20324.182351,1218.15057%20323.725287,1218.15057%20Z%20M328.874713,1218.15057%20C328.417649,1218.15057%20328.047126,1218.5211%20328.047126,1218.97816%20C328.047126,1219.43522%20328.417649,1219.80575%20328.874713,1219.80575%20C329.331776,1219.80575%20329.702299,1219.43522%20329.702299,1218.97816%20C329.702299,1218.5211%20329.331776,1218.15057%20328.874713,1218.15057%20Z%20M329.242529,1214.65632%20C329.598022,1214.65632%20329.886207,1214.94451%20329.886207,1215.3%20C329.886207,1215.62587%20329.644052,1215.89518%20329.329872,1215.9378%20L329.242529,1215.94368%20L323.357471,1215.94368%20C323.001978,1215.94368%20322.713793,1215.65549%20322.713793,1215.3%20C322.713793,1214.97413%20322.955948,1214.70482%20323.270128,1214.6622%20L323.357471,1214.65632%20L329.242529,1214.65632%20Z%20M331.081609,1209.5069%20C331.437103,1209.5069%20331.725287,1209.79508%20331.725287,1210.15057%20L331.725287,1210.15057%20L331.725287,1213.0931%20C331.725287,1213.4486%20331.437103,1213.73678%20331.081609,1213.73678%20L331.081609,1213.73678%20L321.518391,1213.73678%20C321.162897,1213.73678%20320.874713,1213.4486%20320.874713,1213.0931%20L320.874713,1213.0931%20L320.874713,1210.15057%20C320.874713,1209.79508%20321.162897,1209.5069%20321.518391,1209.5069%20L321.518391,1209.5069%20Z%20M330.437931,1210.79425%20L322.162069,1210.79425%20L322.162069,1212.44943%20L330.437931,1212.44943%20L330.437931,1210.79425%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",G={class:"font-semibold flex items-center justify-between"},J={class:"flex items-center"},K={class:"mix-body"},Y={class:"w-full flex flex-wrap content-start"},Q=["onMousedown","onMouseup"],X={DEFAULT_ICON:U,ACTIVE_ICON:W,NAME_CN:"双控",NAME_EN:"Dual Control",ORDER:3,PLATFORM:["pc","screen","mobile"]},e2={bgColor:"#fff",titleColor:"#111",textColor:"#fff",titleSize:14,textSize:14,itemHeight:42,radiusSize:8,items:2,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,method:{value:"alway",type:"select",label:"component.switch.method",options:h.CONTROL_OPTIONS}},z=[{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"关机",color:"#c92309",code:0},{upper:{command:"Control_01",code:0},down:{command:"Control_01",code:1},name:"开机",color:"#217406",code:1}],t2=["name","color","upper","down"],o2={useAlias:!1,multiObject:!1,hideMultiObject:!0,statusFv:"",statusType:1,status:[{code:0,text:"离线",color:"#c92309"}]},n2=["mosaic"],l2={DEFAULT:X,OPTIONS:e2,DATA:z,PARAMS:t2,SOURCE:n2,COMMON:o2},i2=e.defineComponent(O(k({},l2),{__name:"pressBtn",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},password:{type:String,default:""}},setup(n){const o=n,t=e.reactive({authorized:{type:"black_list",list:[]},password:""}),u=e.reactive({text:"",color:""}),C=e.ref(null),g=e.ref(!0),p=e.ref(!1);class c extends $.BaseComponent{extractStyles(){const{options:i}=this.props.conf;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#fff"),titleSize:this.getOptionValue("titleSize",16),textSize:this.getOptionValue("textSize",14),itemHeight:this.getOptionValue("itemHeight",42),radiusSize:this.getOptionValue("radiusSize",8),items:this.getOptionValue("items",2),method:this.getOptionValue("method","alway"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return x(this,null,function*(){w(c.prototype,this,"init").call(this),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:z})}onPreview(){return x(this,null,function*(){yield w(c.prototype,this,"onPreview").call(this);const i=yield v.getAuthorized(this.props);t.authorized=i.authorized,t.password=i.password})}setSocketData(i){var d,b;if(!i)return;const{common:r}=this.props.conf,m=this.extractDataValue(i,r.statusFv);if(m!=null){const f=r.status.find(Z=>String(Z.code)===String(m));u.text=(d=f==null?void 0:f.text)!=null?d:"",u.color=(b=f==null?void 0:f.color)!=null?b:""}}}const a=new c(o,"pressBtn");a.setupLifecycle();const l=a.getStyle(),E=e.computed(()=>q.generateTitleStyle(o.conf.options)),N=e.computed(()=>`${(100/l.value.items).toFixed(2)||100}%`),L=e.computed(()=>{const s=l.value.method||"alway";return s==="once"&&g.value||s==="alway"&&!p.value}),V=()=>{p.value||(C.value.modal.visible=!0)},A=()=>{p.value=!0,l.value.method==="once"&&(g.value=!1)},B=s=>{if(L.value)return;if(!v.checkPermission(t.authorized,s.down.command)){S.ElMessage.error("您没有控制权限!");return}const{common:i}=o.conf,r=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let d={block_mapping:"pusher",action:"publish_command",object_id:i.useAlias?r[i.object_alias]:i.object_id||o.uid,command:s.down.command.toString(),value:s.down.code.toString()||"",control:t.password,rule:l.value.method};y(d,"down")},T=s=>{if(L.value)return;if(!v.checkPermission(t.authorized,s.upper.command)){S.ElMessage.error("您没有控制权限!");return}const{common:i}=o.conf,r=JSON.parse(sessionStorage.getItem(h.ALIAS_MAPPING_KEY)||"{}");let d={block_mapping:"pusher",action:"publish_command",object_id:i.useAlias?r[i.object_alias]:i.object_id||o.uid,command:s.upper.command.toString(),value:s.upper.code.toString()||"",control:t.password,rule:l.value.method};y(d,"up")},y=(s,i)=>{h.api.platform(r=>{r.code===200&&(S.ElMessage.success(r.msg),g.value=!1,l.value.method==="alway"&&i==="up"&&(p.value=!1))},s)};return(s,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(l).bgColor,borderRadius:`${e.unref(l).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(E.value)},[e.createElementVNode("div",G,[e.createTextVNode(e.toDisplayString(n.conf.caption||n.conf.name)+" ",1),e.createElementVNode("div",J,[e.unref(l).method!=="never"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["verify-btn",{disabled:p.value}]),onClick:V},"验证密码",2)):e.createCommentVNode("",!0),u.text?(e.openBlock(),e.createElementBlock("div",{key:1,class:"status-btn",style:e.normalizeStyle({backgroundColor:u.color,color:e.unref(l).textColor})},e.toDisplayString(u.text),5)):e.createCommentVNode("",!0)])])],4),e.createElementVNode("div",K,[e.createElementVNode("div",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.conf.data,(r,m)=>(e.openBlock(),e.createElementBlock("div",{class:"btn-wrap",key:m,style:e.normalizeStyle({width:N.value,height:`${e.unref(l).itemHeight}px`,fontSize:`${e.unref(l).textSize}px`})},[e.createElementVNode("div",{class:e.normalizeClass(["btn-item",{disabled:L.value}]),style:e.normalizeStyle({backgroundColor:r.color,color:e.unref(l).textColor}),onMousedown:d=>B(r),onMouseup:d=>T(r)},e.toDisplayString(r.name),47,Q)],4))),128))])]),e.renderSlot(s.$slots,"default",{},void 0,!0)],4),e.createVNode(v._sfc_main,{ref_key:"controlRef",ref:C,onSubmit:A,password:t.password},null,8,["password"])],64))}})),s2=h._export_sfc(i2,[["__scopeId","data-v-4a5f2b28"]]);exports.default=s2;
@@ -12,8 +12,8 @@ var V = (c, o, a) => o in c ? H(c, o, { enumerable: !0, configurable: !0, writab
12
12
  }, D = (c, o) => U(c, I(o));
13
13
  import { defineComponent as Y, computed as C, ref as G, watch as W, openBlock as d, createElementBlock as v, normalizeStyle as m, unref as n, createElementVNode as i, toDisplayString as u, withDirectives as q, Fragment as E, renderList as A, vModelSelect as J, createCommentVNode as h, renderSlot as K } from "vue";
14
14
  import { u as Q } from "./safeI18n-CXZgGKWp.js";
15
- import { B as X } from "./BaseComponent-BlCsb-HW.js";
16
- import { _ as Z } from "./index-DomNEEyv.js";
15
+ import { B as X } from "./BaseComponent-CQaDWNO0.js";
16
+ import { _ as Z } from "./index-BZpYmpDy.js";
17
17
  import { g as tt } from "./titleStyle-BT5GlpAb.js";
18
18
  import { A as et, D as lt } from "./ele-evn-icon-MWzAujnD.js";
19
19
  const ot = { class: "title-text" }, nt = { class: "title-actions" }, st = ["value"], at = { class: "mix-body" }, it = { class: "pt-thead" }, ct = { class: "pt-th pt-col-stage" }, ut = { class: "pt-th pt-col-duration" }, pt = { class: "pt-th pt-col-status" }, rt = { class: "pt-td pt-col-stage" }, dt = { class: "pt-td pt-col-duration" }, vt = { class: "pt-td pt-col-status" }, _t = {
@@ -1,3 +1,3 @@
1
- "use strict";var B=Object.defineProperty,L=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var C=(i,n,a)=>n in i?B(i,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[n]=a,k=(i,n)=>{for(var a in n||(n={}))z.call(n,a)&&C(i,a,n[a]);if(S)for(var a of S(n))F.call(n,a)&&C(i,a,n[a]);return i},w=(i,n)=>L(i,$(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),A=require("./safeI18n-DR20q_h1.cjs"),j=require("./BaseComponent-BXAJUoaf.cjs"),I=require("./index-Cvu9nAQq.cjs"),M=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-evn-icon-DUQMS-9T.cjs"),R={class:"title-text"},U={class:"title-actions"},H=["value"],q={class:"mix-body"},P={class:"pt-thead"},Y={class:"pt-th pt-col-stage"},G={class:"pt-th pt-col-duration"},W={class:"pt-th pt-col-status"},J={class:"pt-td pt-col-stage"},K={class:"pt-td pt-col-duration"},Q={class:"pt-td pt-col-status"},X={key:0,class:"pt-empty"},Z={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"流程效率表",NAME_EN:"Process Table",ORDER:12,PLATFORM:["pc","screen"]},ee={bgColor:"#fff",titleColor:"#111",textColor:"#666",radiusSize:8,textSize:13,rowHeight:44,isHideTitle:!1,description:"关注预警发出、任务下达、现场反馈到隐患关闭全过程。",showFilter:!0,defaultLevel:{value:"1",type:"select",label:"component.options.lw_defaultLevel",options:[{label:"component.options.lw_level_1",value:"1"},{label:"component.options.lw_level_2",value:"2"},{label:"component.options.lw_level_3",value:"3"},{label:"component.options.lw_level_4",value:"4"},{label:"component.options.lw_level_all",value:"all"}]},btnText:"数据下载",linkChannel:{value:"landslide",type:"select",label:"component.options.lw_linkChannel",options:[{label:"component.options.lw_linkChannel_landslide",value:"landslide"},{label:"component.options.lw_linkChannel_custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.options.lw_customChannel",showWhen:{linkChannel:"custom"}}},te=[{stage:"预警推送",fv:"",object_id:"",value:1.8,unit:"min",status:"正常",statusType:"normal",level:"1"},{stage:"调度确认",fv:"",object_id:"",value:6.5,unit:"min",status:"可优化",statusType:"warn",level:"1"},{stage:"现场响应",fv:"",object_id:"",value:12.4,unit:"min",status:"波动较大",statusType:"danger",level:"1"},{stage:"隐患关闭",fv:"",object_id:"",value:3.2,unit:"h",status:"持续跟踪",statusType:"info",level:"1"}],le=[{key:"stage",label:"component.options.lw_stage",type:"string"},"fv","object_id",{key:"unit",label:"component.options.lw_unitMinH",type:"string"},{key:"status",label:"component.options.lw_statusText",type:"string"},{key:"statusType",label:"component.options.lw_statusType",type:"select",options:[{label:"component.options.lw_statusType_normal",value:"normal"},{label:"component.options.lw_statusType_warn",value:"warn"},{label:"component.options.lw_statusType_danger",value:"danger"},{label:"component.options.lw_statusType_info",value:"info"}]},{key:"level",label:"component.options.lw_level",type:"select",options:[{label:"component.options.lw_levelShort_1",value:"1"},{label:"component.options.lw_levelShort_2",value:"2"},{label:"component.options.lw_levelShort_3",value:"3"},{label:"component.options.lw_levelShort_4",value:"4"}]}],oe=["mosaic","statistics","calculate"],ne={useAlias:!1,multiObject:!0,source:"statistics"},se={DEFAULT:Z,OPTIONS:ee,DATA:te,PARAMS:le,SOURCE:oe,COMMON:ne},ae=e.defineComponent(w(k({},se),{__name:"processTable",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const n=i,a={normal:{bg:"#e7f7ec",color:"#1f9d4a"},warn:{bg:"#fff5e0",color:"#d97706"},danger:{bg:"#fde8e8",color:"#dc2626"},info:{bg:"#e0ecfd",color:"#2563eb"}};class T extends j.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",13),rowHeight:this.getOptionValue("rowHeight",44),description:this.getOptionValue("description",""),showFilter:this.getOptionValue("showFilter",!0),defaultLevel:this.getOptionValue("defaultLevel","1"),btnText:this.getOptionValue("btnText",""),linkChannel:this.getOptionValue("linkChannel","landslide"),customChannel:this.getOptionValue("customChannel","")}}getLinkChannel(){const t=this.Style.value;return(t==null?void 0:t.linkChannel)==="custom"?t.customChannel||"":(t==null?void 0:t.linkChannel)||""}setSocketData(t){var r;if(!t)return;(((r=this.props.conf)==null?void 0:r.data)||[]).forEach(m=>{const p=this.extractDataValue(t,m.fv);p!=null&&(m.value=Number(p)||0)})}}const g=new T(n,"processTable");g.setupLifecycle();const{t:c}=A.useSafeI18n(),s=g.getStyle(),b=n.conf,V=e.computed(()=>M.generateTitleStyle(n.conf.options)),x=e.computed(()=>[{label:c("component.options.lw_level_1"),value:"1"},{label:c("component.options.lw_level_2"),value:"2"},{label:c("component.options.lw_level_3"),value:"3"},{label:c("component.options.lw_level_4"),value:"4"},{label:c("component.options.lw_level_all"),value:"all"}]),u=e.ref(s.value.defaultLevel||"1");e.watch(()=>s.value.defaultLevel,l=>{l&&(u.value=l)});const v=e.computed(()=>{var t;const l=((t=n.conf)==null?void 0:t.data)||[];return u.value==="all"?l:l.filter(o=>String(o.level||"1")===String(u.value))});function h(l){const t=l==null?void 0:l.value;if(t==null||t==="")return"--";const o=(l==null?void 0:l.unit)||"",r=typeof t=="number"?Number.isInteger(t)?String(t):t.toFixed(1):String(t);return o?`${r} ${o}`:r}function N(l){const t=a[l]||a.info;return{background:t.bg,color:t.color}}function _(l){const t=String(l!=null?l:"");return/[",\n]/.test(t)?`"${t.replace(/"/g,'""')}"`:t}function O(){const l=new Date,t=o=>String(o).padStart(2,"0");return`${l.getFullYear()}${t(l.getMonth()+1)}${t(l.getDate())}_${t(l.getHours())}${t(l.getMinutes())}${t(l.getSeconds())}`}function D(){if(n.mode!=="preview")return;const l=v.value;if(!l.length)return;const t=["阶段","平均时长","状态"].join(","),o=l.map(f=>[_(f.stage),_(h(f)),_(f.status)].join(",")).join(`
1
+ "use strict";var B=Object.defineProperty,L=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var C=(i,n,a)=>n in i?B(i,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[n]=a,k=(i,n)=>{for(var a in n||(n={}))z.call(n,a)&&C(i,a,n[a]);if(S)for(var a of S(n))F.call(n,a)&&C(i,a,n[a]);return i},w=(i,n)=>L(i,$(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),A=require("./safeI18n-DR20q_h1.cjs"),j=require("./BaseComponent-BmhMoM4H.cjs"),I=require("./index-77aUdspY.cjs"),M=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-evn-icon-DUQMS-9T.cjs"),R={class:"title-text"},U={class:"title-actions"},H=["value"],q={class:"mix-body"},P={class:"pt-thead"},Y={class:"pt-th pt-col-stage"},G={class:"pt-th pt-col-duration"},W={class:"pt-th pt-col-status"},J={class:"pt-td pt-col-stage"},K={class:"pt-td pt-col-duration"},Q={class:"pt-td pt-col-status"},X={key:0,class:"pt-empty"},Z={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"流程效率表",NAME_EN:"Process Table",ORDER:12,PLATFORM:["pc","screen"]},ee={bgColor:"#fff",titleColor:"#111",textColor:"#666",radiusSize:8,textSize:13,rowHeight:44,isHideTitle:!1,description:"关注预警发出、任务下达、现场反馈到隐患关闭全过程。",showFilter:!0,defaultLevel:{value:"1",type:"select",label:"component.options.lw_defaultLevel",options:[{label:"component.options.lw_level_1",value:"1"},{label:"component.options.lw_level_2",value:"2"},{label:"component.options.lw_level_3",value:"3"},{label:"component.options.lw_level_4",value:"4"},{label:"component.options.lw_level_all",value:"all"}]},btnText:"数据下载",linkChannel:{value:"landslide",type:"select",label:"component.options.lw_linkChannel",options:[{label:"component.options.lw_linkChannel_landslide",value:"landslide"},{label:"component.options.lw_linkChannel_custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.options.lw_customChannel",showWhen:{linkChannel:"custom"}}},te=[{stage:"预警推送",fv:"",object_id:"",value:1.8,unit:"min",status:"正常",statusType:"normal",level:"1"},{stage:"调度确认",fv:"",object_id:"",value:6.5,unit:"min",status:"可优化",statusType:"warn",level:"1"},{stage:"现场响应",fv:"",object_id:"",value:12.4,unit:"min",status:"波动较大",statusType:"danger",level:"1"},{stage:"隐患关闭",fv:"",object_id:"",value:3.2,unit:"h",status:"持续跟踪",statusType:"info",level:"1"}],le=[{key:"stage",label:"component.options.lw_stage",type:"string"},"fv","object_id",{key:"unit",label:"component.options.lw_unitMinH",type:"string"},{key:"status",label:"component.options.lw_statusText",type:"string"},{key:"statusType",label:"component.options.lw_statusType",type:"select",options:[{label:"component.options.lw_statusType_normal",value:"normal"},{label:"component.options.lw_statusType_warn",value:"warn"},{label:"component.options.lw_statusType_danger",value:"danger"},{label:"component.options.lw_statusType_info",value:"info"}]},{key:"level",label:"component.options.lw_level",type:"select",options:[{label:"component.options.lw_levelShort_1",value:"1"},{label:"component.options.lw_levelShort_2",value:"2"},{label:"component.options.lw_levelShort_3",value:"3"},{label:"component.options.lw_levelShort_4",value:"4"}]}],oe=["mosaic","statistics","calculate"],ne={useAlias:!1,multiObject:!0,source:"statistics"},se={DEFAULT:Z,OPTIONS:ee,DATA:te,PARAMS:le,SOURCE:oe,COMMON:ne},ae=e.defineComponent(w(k({},se),{__name:"processTable",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const n=i,a={normal:{bg:"#e7f7ec",color:"#1f9d4a"},warn:{bg:"#fff5e0",color:"#d97706"},danger:{bg:"#fde8e8",color:"#dc2626"},info:{bg:"#e0ecfd",color:"#2563eb"}};class T extends j.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",13),rowHeight:this.getOptionValue("rowHeight",44),description:this.getOptionValue("description",""),showFilter:this.getOptionValue("showFilter",!0),defaultLevel:this.getOptionValue("defaultLevel","1"),btnText:this.getOptionValue("btnText",""),linkChannel:this.getOptionValue("linkChannel","landslide"),customChannel:this.getOptionValue("customChannel","")}}getLinkChannel(){const t=this.Style.value;return(t==null?void 0:t.linkChannel)==="custom"?t.customChannel||"":(t==null?void 0:t.linkChannel)||""}setSocketData(t){var r;if(!t)return;(((r=this.props.conf)==null?void 0:r.data)||[]).forEach(m=>{const p=this.extractDataValue(t,m.fv);p!=null&&(m.value=Number(p)||0)})}}const g=new T(n,"processTable");g.setupLifecycle();const{t:c}=A.useSafeI18n(),s=g.getStyle(),b=n.conf,V=e.computed(()=>M.generateTitleStyle(n.conf.options)),x=e.computed(()=>[{label:c("component.options.lw_level_1"),value:"1"},{label:c("component.options.lw_level_2"),value:"2"},{label:c("component.options.lw_level_3"),value:"3"},{label:c("component.options.lw_level_4"),value:"4"},{label:c("component.options.lw_level_all"),value:"all"}]),u=e.ref(s.value.defaultLevel||"1");e.watch(()=>s.value.defaultLevel,l=>{l&&(u.value=l)});const v=e.computed(()=>{var t;const l=((t=n.conf)==null?void 0:t.data)||[];return u.value==="all"?l:l.filter(o=>String(o.level||"1")===String(u.value))});function h(l){const t=l==null?void 0:l.value;if(t==null||t==="")return"--";const o=(l==null?void 0:l.unit)||"",r=typeof t=="number"?Number.isInteger(t)?String(t):t.toFixed(1):String(t);return o?`${r} ${o}`:r}function N(l){const t=a[l]||a.info;return{background:t.bg,color:t.color}}function _(l){const t=String(l!=null?l:"");return/[",\n]/.test(t)?`"${t.replace(/"/g,'""')}"`:t}function O(){const l=new Date,t=o=>String(o).padStart(2,"0");return`${l.getFullYear()}${t(l.getMonth()+1)}${t(l.getDate())}_${t(l.getHours())}${t(l.getMinutes())}${t(l.getSeconds())}`}function D(){if(n.mode!=="preview")return;const l=v.value;if(!l.length)return;const t=["阶段","平均时长","状态"].join(","),o=l.map(f=>[_(f.stage),_(h(f)),_(f.status)].join(",")).join(`
2
2
  `),r=t+`
3
3
  `+o,m=u.value==="all"?"全部":`${u.value}级`,p=new Blob(["\uFEFF"+r],{type:"text/csv;charset=utf-8;"}),y=URL.createObjectURL(p),d=document.createElement("a");d.href=y,d.download=`流程效率表_${m}_${O()}.csv`,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(y)}return(l,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(s).bgColor,borderRadius:`${e.unref(s).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(V.value)},[e.createElementVNode("span",R,e.toDisplayString(e.unref(b).caption||e.unref(b).name),1),e.createElementVNode("div",U,[e.unref(s).showFilter?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:0,"onUpdate:modelValue":t[0]||(t[0]=o=>u.value=o),class:"pt-select"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,o=>(e.openBlock(),e.createElementBlock("option",{key:o.value,value:o.value},e.toDisplayString(o.label),9,H))),128))],512)),[[e.vModelSelect,u.value]]):e.createCommentVNode("",!0),e.unref(s).btnText?(e.openBlock(),e.createElementBlock("button",{key:1,class:"pt-btn",onClick:D},e.toDisplayString(e.unref(s).btnText),1)):e.createCommentVNode("",!0)])],4),e.createElementVNode("div",q,[e.unref(s).description?(e.openBlock(),e.createElementBlock("div",{key:0,class:"body-desc",style:e.normalizeStyle({fontSize:`${e.unref(s).textSize}px`,color:e.unref(s).textColor})},e.toDisplayString(e.unref(s).description),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"body-table",style:e.normalizeStyle({fontSize:`${e.unref(s).textSize}px`,color:e.unref(s).textColor})},[e.createElementVNode("div",P,[e.createElementVNode("div",Y,e.toDisplayString(e.unref(c)("component.options.lw_th_stage")),1),e.createElementVNode("div",G,e.toDisplayString(e.unref(c)("component.options.lw_th_duration")),1),e.createElementVNode("div",W,e.toDisplayString(e.unref(c)("component.options.lw_th_status")),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"pt-tr",style:e.normalizeStyle({minHeight:`${e.unref(s).rowHeight}px`})},[e.createElementVNode("div",J,e.toDisplayString(o.stage||"--"),1),e.createElementVNode("div",K,e.toDisplayString(h(o)),1),e.createElementVNode("div",Q,[e.createElementVNode("span",{class:"pt-tag",style:e.normalizeStyle(N(o.statusType))},e.toDisplayString(o.status||"--"),5)])],4))),128)),v.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",X,e.toDisplayString(e.unref(c)("component.options.lw_noData")),1))],4)]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),ie=I._export_sfc(ae,[["__scopeId","data-v-231420a4"]]);exports.default=ie;
@@ -1 +1 @@
1
- "use strict";var m=Object.defineProperty,h=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var f=(r,o,l)=>o in r?m(r,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[o]=l,g=(r,o)=>{for(var l in o||(o={}))y.call(o,l)&&f(r,l,o[l]);if(p)for(var l of p(o))b.call(o,l)&&f(r,l,o[l]);return r},L=(r,o)=>h(r,v(o));var x=(r,o,l)=>new Promise((c,n)=>{var C=a=>{try{i(l.next(a))}catch(t){n(t)}},d=a=>{try{i(l.throw(a))}catch(t){n(t)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(C,d);i((l=l.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),w=require("./BaseComponent-BXAJUoaf.cjs"),M=require("./index-Cvu9nAQq.cjs"),_=require("./titleStyle-NSnz6cUg.cjs"),O="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B={class:"mix-body flex flex-col"},k={class:"flex-1"},E={DEFAULT_ICON:O,ACTIVE_ICON:T,NAME_CN:"条形进度",NAME_EN:"Progress Bar",ORDER:2,PLATFORM:["pc","screen","mobile"]},V={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,labelWidth:48,barWidth:16,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},z=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],Z=["name","fv","object_id","color","maxType","max"],N=["mosaic"],A={useAlias:!1,multiObject:!1,source:"mosaic"},F={DEFAULT:E,OPTIONS:V,DATA:z,PARAMS:Z,SOURCE:N,COMMON:A},D=e.defineComponent(L(g({},F),{__name:"progressBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const o=r;class l extends w.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),labelWidth:this.getOptionValue("labelWidth",80),barWidth:this.getOptionValue("barWidth",16),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return x(this,null,function*(){var i;this.Style.value=this.extractStyles(),this.applyTheme(),(i=this.props.conf.data)!=null&&i.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])})}setHistoryData(i){if(!i)return;const{data:a}=this.props.conf;!Array.isArray(a)||!a.length||a.forEach((t,s)=>{var u;t.value=(u=i[s].data[0])!=null?u:0,t.percent=t.value/t.max*100})}setSocketData(i){if(!i)return;const{data:a}=this.props.conf;a.forEach(t=>{t.value=this.extractDataValue(i,t.fv)||0;const s=t.maxType==="value"?t.max:this.extractDataValue(i,t.max)||0;t.percent=s==0?0:Number((t.value/s*100).toFixed(2))})}}const c=new l(o,"progressBar");c.setupLifecycle();const n=c.getStyle(),C=e.computed(()=>_.generateTitleStyle(o.conf.options));return(d,i)=>{const a=S.ElProgress;return 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(C.value)},e.toDisplayString(r.conf.caption||r.conf.name),5),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.conf.data,(t,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"flex item"},[e.createElementVNode("div",{class:"label",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor,width:e.unref(n).labelWidth+"px"})},e.toDisplayString(t.name),5),e.createElementVNode("div",k,[e.createVNode(a,{percentage:t.percent,"text-inside":!0,style:e.normalizeStyle({"--progress-bg-color":e.unref(n).barColor}),color:t.color,"stroke-width":e.unref(n).barWidth},null,8,["percentage","style","color","stroke-width"])]),e.createElementVNode("div",{class:"value",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(t.value),5)]))),128))]),e.renderSlot(d.$slots,"default",{},void 0,!0)],4)}}})),W=M._export_sfc(D,[["__scopeId","data-v-22bac22c"]]);exports.default=W;
1
+ "use strict";var m=Object.defineProperty,h=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var f=(r,o,l)=>o in r?m(r,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[o]=l,g=(r,o)=>{for(var l in o||(o={}))y.call(o,l)&&f(r,l,o[l]);if(p)for(var l of p(o))b.call(o,l)&&f(r,l,o[l]);return r},L=(r,o)=>h(r,v(o));var x=(r,o,l)=>new Promise((c,n)=>{var C=a=>{try{i(l.next(a))}catch(t){n(t)}},d=a=>{try{i(l.throw(a))}catch(t){n(t)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(C,d);i((l=l.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),w=require("./BaseComponent-BmhMoM4H.cjs"),M=require("./index-77aUdspY.cjs"),_=require("./titleStyle-NSnz6cUg.cjs"),O="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B={class:"mix-body flex flex-col"},k={class:"flex-1"},E={DEFAULT_ICON:O,ACTIVE_ICON:T,NAME_CN:"条形进度",NAME_EN:"Progress Bar",ORDER:2,PLATFORM:["pc","screen","mobile"]},V={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,labelWidth:48,barWidth:16,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},z=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],Z=["name","fv","object_id","color","maxType","max"],N=["mosaic"],A={useAlias:!1,multiObject:!1,source:"mosaic"},F={DEFAULT:E,OPTIONS:V,DATA:z,PARAMS:Z,SOURCE:N,COMMON:A},D=e.defineComponent(L(g({},F),{__name:"progressBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const o=r;class l extends w.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),labelWidth:this.getOptionValue("labelWidth",80),barWidth:this.getOptionValue("barWidth",16),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return x(this,null,function*(){var i;this.Style.value=this.extractStyles(),this.applyTheme(),(i=this.props.conf.data)!=null&&i.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])})}setHistoryData(i){if(!i)return;const{data:a}=this.props.conf;!Array.isArray(a)||!a.length||a.forEach((t,s)=>{var u;t.value=(u=i[s].data[0])!=null?u:0,t.percent=t.value/t.max*100})}setSocketData(i){if(!i)return;const{data:a}=this.props.conf;a.forEach(t=>{t.value=this.extractDataValue(i,t.fv)||0;const s=t.maxType==="value"?t.max:this.extractDataValue(i,t.max)||0;t.percent=s==0?0:Number((t.value/s*100).toFixed(2))})}}const c=new l(o,"progressBar");c.setupLifecycle();const n=c.getStyle(),C=e.computed(()=>_.generateTitleStyle(o.conf.options));return(d,i)=>{const a=S.ElProgress;return 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(C.value)},e.toDisplayString(r.conf.caption||r.conf.name),5),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.conf.data,(t,s)=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"flex item"},[e.createElementVNode("div",{class:"label",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor,width:e.unref(n).labelWidth+"px"})},e.toDisplayString(t.name),5),e.createElementVNode("div",k,[e.createVNode(a,{percentage:t.percent,"text-inside":!0,style:e.normalizeStyle({"--progress-bg-color":e.unref(n).barColor}),color:t.color,"stroke-width":e.unref(n).barWidth},null,8,["percentage","style","color","stroke-width"])]),e.createElementVNode("div",{class:"value",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(t.value),5)]))),128))]),e.renderSlot(d.$slots,"default",{},void 0,!0)],4)}}})),W=M._export_sfc(D,[["__scopeId","data-v-22bac22c"]]);exports.default=W;
@@ -30,8 +30,8 @@ import { ElProgress as T } from "element-plus/es";
30
30
  import "element-plus/es/components/base/style/css";
31
31
  import "element-plus/es/components/progress/style/css";
32
32
  import { defineComponent as B, computed as Z, openBlock as L, createElementBlock as g, normalizeStyle as c, unref as s, createElementVNode as d, toDisplayString as x, Fragment as k, renderList as V, createVNode as z, renderSlot as A } from "vue";
33
- import { B as E } from "./BaseComponent-BlCsb-HW.js";
34
- import { _ as F } from "./index-DomNEEyv.js";
33
+ import { B as E } from "./BaseComponent-CQaDWNO0.js";
34
+ import { _ as F } from "./index-BZpYmpDy.js";
35
35
  import { g as N } from "./titleStyle-BT5GlpAb.js";
36
36
  const W = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", D = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", P = { class: "mix-body flex flex-col" }, j = { class: "flex-1" }, R = {
37
37
  DEFAULT_ICON: W,
@@ -30,8 +30,8 @@ import { ElProgress as E } from "element-plus/es";
30
30
  import "element-plus/es/components/base/style/css";
31
31
  import "element-plus/es/components/progress/style/css";
32
32
  import { defineComponent as F, computed as b, openBlock as C, createElementBlock as g, normalizeStyle as u, unref as s, createElementVNode as x, toDisplayString as v, Fragment as B, renderList as D, createVNode as L, withCtx as P, createCommentVNode as T, renderSlot as Z } from "vue";
33
- import { B as j } from "./BaseComponent-BlCsb-HW.js";
34
- import { _ as W } from "./index-DomNEEyv.js";
33
+ import { B as j } from "./BaseComponent-CQaDWNO0.js";
34
+ import { _ as W } from "./index-BZpYmpDy.js";
35
35
  import { g as R } from "./titleStyle-BT5GlpAb.js";
36
36
  const H = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", I = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", U = { class: "mix-body flex flex-wrap" }, $ = {
37
37
  DEFAULT_ICON: H,
@@ -1 +1 @@
1
- "use strict";var b=Object.defineProperty,S=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var v=(a,l,r)=>l in a?b(a,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[l]=r,x=(a,l)=>{for(var r in l||(l={}))k.call(l,r)&&v(a,r,l[r]);if(m)for(var r of m(l))N.call(l,r)&&v(a,r,l[r]);return a},y=(a,l)=>S(a,w(l));var h=(a,l,r)=>new Promise((d,n)=>{var g=s=>{try{p(r.next(s))}catch(c){n(c)}},f=s=>{try{p(r.throw(s))}catch(c){n(c)}},p=s=>s.done?d(s.value):Promise.resolve(s.value).then(g,f);p((r=r.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),V=require("./BaseComponent-BXAJUoaf.cjs"),_=require("./index-Cvu9nAQq.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",E="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B={class:"mix-body flex flex-wrap"},M={DEFAULT_ICON:T,ACTIVE_ICON:E,NAME_CN:"环形进度",NAME_EN:"Progress Circle",ORDER:3,PLATFORM:["pc","screen","mobile"]},A={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,barWidth:16,diameter:70,position:{value:"outer",type:"radio",option:[{value:"outer",label:"component.gauge.outer"},{value:"inner",label:"component.gauge.inner"}],label:"component.gauge.position"},type:{value:"value",type:"radio",option:[{value:"value",label:"component.gauge.value"},{value:"rate",label:"component.gauge.rate"}],label:"component.gauge.type"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},D=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],F=["name","fv","object_id","color","maxType","max"],L=["mosaic"],P={useAlias:!1,multiObject:!1,source:"mosaic"},j={DEFAULT:M,OPTIONS:A,DATA:D,PARAMS:F,SOURCE:L,COMMON:P},Z=e.defineComponent(y(x({},j),{__name:"progressCircle",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){const l=a;class r extends V.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",16),diameter:this.getOptionValue("diameter",70),position:this.getOptionValue("position","outer"),type:this.getOptionValue("type","value"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return h(this,null,function*(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])})}setHistoryData(t){if(!t)return;const{data:i}=this.props.conf;!Array.isArray(i)||!i.length||i.forEach((o,u)=>{var C;o.value=(C=t[u].data[0])!=null?C:0,o.percent=o.value/o.max*100})}setSocketData(t){if(!t)return;const{data:i}=this.props.conf;i.forEach(o=>{o.value=this.extractDataValue(t,o.fv)||0;const u=o.maxType==="value"?o.max:this.extractDataValue(t,o.max)||0;o.percent=u==0?0:Number((o.value/u*100).toFixed(2))})}}const d=new r(l,"progressCircle");d.setupLifecycle();const n=d.getStyle(),g=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.diameter,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>0?t:70}),f=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.barWidth,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>=0?t:16}),p=e.computed(()=>z.generateTitleStyle(l.conf.options)),s=(c,t)=>n.value.type==="value"?t==null?void 0:t.value:c+"%";return(c,t)=>{const i=O.ElProgress;return 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(p.value)},e.toDisplayString(a.conf.caption||a.conf.name),5),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(o,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"circle-item"},[e.createElementVNode("div",null,[e.createVNode(i,{percentage:o.percent,type:"circle",style:e.normalizeStyle({"--progress-bg-color":e.unref(n).barColor}),color:o.color,"stroke-width":f.value,width:g.value},{default:e.withCtx(({percentage:C})=>[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(s(C,o)),5),e.unref(n).position==="inner"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mt-1.5",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)]),_:2},1032,["percentage","style","color","stroke-width","width"]),e.unref(n).position==="outer"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"label",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)])]))),128))]),e.renderSlot(c.$slots,"default",{},void 0,!0)],4)}}})),q=_._export_sfc(Z,[["__scopeId","data-v-0f05a5f9"]]);exports.default=q;
1
+ "use strict";var b=Object.defineProperty,S=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var v=(a,l,r)=>l in a?b(a,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[l]=r,x=(a,l)=>{for(var r in l||(l={}))k.call(l,r)&&v(a,r,l[r]);if(m)for(var r of m(l))N.call(l,r)&&v(a,r,l[r]);return a},y=(a,l)=>S(a,w(l));var h=(a,l,r)=>new Promise((d,n)=>{var g=s=>{try{p(r.next(s))}catch(c){n(c)}},f=s=>{try{p(r.throw(s))}catch(c){n(c)}},p=s=>s.done?d(s.value):Promise.resolve(s.value).then(g,f);p((r=r.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),V=require("./BaseComponent-BmhMoM4H.cjs"),_=require("./index-77aUdspY.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",E="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B={class:"mix-body flex flex-wrap"},M={DEFAULT_ICON:T,ACTIVE_ICON:E,NAME_CN:"环形进度",NAME_EN:"Progress Circle",ORDER:3,PLATFORM:["pc","screen","mobile"]},A={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,barWidth:16,diameter:70,position:{value:"outer",type:"radio",option:[{value:"outer",label:"component.gauge.outer"},{value:"inner",label:"component.gauge.inner"}],label:"component.gauge.position"},type:{value:"value",type:"radio",option:[{value:"value",label:"component.gauge.value"},{value:"rate",label:"component.gauge.rate"}],label:"component.gauge.type"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},D=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],F=["name","fv","object_id","color","maxType","max"],L=["mosaic"],P={useAlias:!1,multiObject:!1,source:"mosaic"},j={DEFAULT:M,OPTIONS:A,DATA:D,PARAMS:F,SOURCE:L,COMMON:P},Z=e.defineComponent(y(x({},j),{__name:"progressCircle",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){const l=a;class r extends V.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",16),diameter:this.getOptionValue("diameter",70),position:this.getOptionValue("position","outer"),type:this.getOptionValue("type","value"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return h(this,null,function*(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])})}setHistoryData(t){if(!t)return;const{data:i}=this.props.conf;!Array.isArray(i)||!i.length||i.forEach((o,u)=>{var C;o.value=(C=t[u].data[0])!=null?C:0,o.percent=o.value/o.max*100})}setSocketData(t){if(!t)return;const{data:i}=this.props.conf;i.forEach(o=>{o.value=this.extractDataValue(t,o.fv)||0;const u=o.maxType==="value"?o.max:this.extractDataValue(t,o.max)||0;o.percent=u==0?0:Number((o.value/u*100).toFixed(2))})}}const d=new r(l,"progressCircle");d.setupLifecycle();const n=d.getStyle(),g=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.diameter,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>0?t:70}),f=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.barWidth,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>=0?t:16}),p=e.computed(()=>z.generateTitleStyle(l.conf.options)),s=(c,t)=>n.value.type==="value"?t==null?void 0:t.value:c+"%";return(c,t)=>{const i=O.ElProgress;return 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(p.value)},e.toDisplayString(a.conf.caption||a.conf.name),5),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(o,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"circle-item"},[e.createElementVNode("div",null,[e.createVNode(i,{percentage:o.percent,type:"circle",style:e.normalizeStyle({"--progress-bg-color":e.unref(n).barColor}),color:o.color,"stroke-width":f.value,width:g.value},{default:e.withCtx(({percentage:C})=>[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(s(C,o)),5),e.unref(n).position==="inner"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mt-1.5",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)]),_:2},1032,["percentage","style","color","stroke-width","width"]),e.unref(n).position==="outer"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"label",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)])]))),128))]),e.renderSlot(c.$slots,"default",{},void 0,!0)],4)}}})),q=_._export_sfc(Z,[["__scopeId","data-v-0f05a5f9"]]);exports.default=q;
@@ -11,8 +11,8 @@ var K = (n, d, s) => d in n ? ae(n, d, { enumerable: !0, configurable: !0, writa
11
11
  return n;
12
12
  }, U = (n, d) => oe(n, ne(d));
13
13
  import { defineComponent as F, h as E, ref as $, onMounted as ue, watchEffect as se, Fragment as de, computed as A, openBlock as he, createElementBlock as ce, normalizeStyle as H, unref as B, createElementVNode as V, toDisplayString as fe, createVNode as ve, renderSlot as ge } from "vue";
14
- import { B as me } from "./BaseComponent-BlCsb-HW.js";
15
- import { _ as Ce } from "./index-DomNEEyv.js";
14
+ import { B as me } from "./BaseComponent-CQaDWNO0.js";
15
+ import { _ as Ce } from "./index-BZpYmpDy.js";
16
16
  import { g as we } from "./titleStyle-BT5GlpAb.js";
17
17
  var R = function() {
18
18
  return R = Object.assign || function(d) {
@@ -1 +1 @@
1
- "use strict";var Z=Object.defineProperty,J=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var H=(o,d,s)=>d in o?Z(o,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[d]=s,q=(o,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(o,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(o,s,d[s]);return o},D=(o,d)=>J(o,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./BaseComponent-BXAJUoaf.cjs"),ae=require("./index-Cvu9nAQq.cjs"),ne=require("./titleStyle-NSnz6cUg.cjs");var R=function(){return R=Object.assign||function(d){for(var s,u=1,c=arguments.length;u<c;u++){s=arguments[u];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(d[h]=s[h])}return d},R.apply(this,arguments)};var z;(function(o){var d=(function(){function a(e,t,r,n){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(n<-1||n>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var i=[],l=0;l<this.size;l++)i.push(!1);for(var l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();var g=this.addEccAndInterleave(r);if(this.drawCodewords(g),n==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(n=l,m=p),this.applyMask(l)}c(0<=n&&n<=7),this.mask=n,this.applyMask(n),this.drawFormatBits(n),this.isFunction=[]}return a.encodeText=function(e,t){var r=o.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=o.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,n,i,l){if(r===void 0&&(r=1),n===void 0&&(n=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=n&&n<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var g,m;for(g=r;;g++){var p=a.getNumDataCodewords(g,t)*8,E=h.getTotalBits(e,g);if(E<=p){m=E;break}if(g>=n)throw new RangeError("Data too long")}for(var C=0,y=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<y.length;C++){var w=y[C];l&&m<=a.getNumDataCodewords(g,w)*8&&(t=w)}for(var v=[],S=0,M=e;S<M.length;S++){var b=M[S];s(b.mode.modeBits,4,v),s(b.numChars,b.mode.numCharCountBits(g),v);for(var A=0,P=b.getData();A<P.length;A++){var k=P[A];v.push(k)}}c(v.length==m);var T=a.getNumDataCodewords(g,t)*8;c(v.length<=T),s(0,Math.min(4,T-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<T;N^=253)s(N,8,v);for(var O=[];O.length*8<v.length;)O.push(0);return v.forEach(function(I,_){return O[_>>>3]|=I<<7-(_&7)}),new a(g,t,O,i)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var n=0;n<r;n++)e==0&&n==0||e==0&&n==r-1||e==r-1&&n==0||this.drawAlignmentPattern(t[e],t[n]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,n=0;n<10;n++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var n=0;n<=5;n++)this.setFunctionModule(8,n,u(i,n));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var n=9;n<15;n++)this.setFunctionModule(14-n,8,u(i,n));for(var n=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,u(i,n));for(var n=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,u(i,n));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;c(r>>>18==0);for(var t=0;t<18;t++){var n=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,n),this.setFunctionModule(l,i,n)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var n=-4;n<=4;n++){var i=Math.max(Math.abs(n),Math.abs(r)),l=e+n,g=t+r;0<=l&&l<this.size&&0<=g&&g<this.size&&this.setFunctionModule(l,g,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,Math.max(Math.abs(n),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var n=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],i=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],l=Math.floor(a.getNumRawDataModules(t)/8),g=n-l%n,m=Math.floor(l/n),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<n;C++){var w=e.slice(y,y+m-i+(C<g?0:1));y+=w.length;var v=a.reedSolomonComputeRemainder(w,E);C<g&&w.push(0),p.push(w.concat(v))}for(var S=[],M=function(b){p.forEach(function(A,P){(b!=m-i||P>=g)&&S.push(A[b])})},C=0;C<p[0].length;C++)M(C);return c(S.length==l),S},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var n=0;n<this.size;n++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-n:n;!this.isFunction[m][l]&&t<e.length*8&&(this.modules[m][l]=u(e[t>>>3],7-(t&7)),t++)}}c(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var n=void 0;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,n=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(n++,n==5?e+=a.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,i)*a.PENALTY_N3}for(var l=0;l<this.size;l++){for(var r=!1,g=0,i=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][l]==r?(g++,g==5?e+=a.PENALTY_N1:g>5&&e++):(this.finderPenaltyAddHistory(g,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],g=1);e+=this.finderPenaltyTerminateAndCount(r,g,i)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var l=0;l<this.size-1;l++){var m=this.modules[t][l];m==this.modules[t][l+1]&&m==this.modules[t+1][l]&&m==this.modules[t+1][l+1]&&(e+=a.PENALTY_N2)}for(var p=0,E=0,C=this.modules;E<C.length;E++){var y=C[E];p=y.reduce(function(S,M){return S+(M?1:0)},p)}var w=this.size*this.size,v=Math.ceil(Math.abs(p*20-w*10)/w)-1;return c(0<=v&&v<=9),e+=v*a.PENALTY_N4,c(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return c(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var n=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],n),i+1<t.length&&(t[i]^=t[i+1]);n=a.reedSolomonMultiply(n,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),n=function(m){var p=m^r.shift();r.push(0),t.forEach(function(E,C){return r[C]^=a.reedSolomonMultiply(E,p)})},i=0,l=e;i<l.length;i++){var g=l[i];n(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&1)*e;return c(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];c(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();o.QrCode=d;function s(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function u(a,e){return(a>>>e&1)!=0}function c(a){if(!a)throw new Error("Assertion error")}var h=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];s(i,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+n),10),n*3+1,t),r+=n}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var n=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;n+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(n,11,t)}return r<e.length&&s(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else if(e<1e6)s(6,3,t),s(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++){var l=i[n],g=l.mode.numCharCountBits(t);if(l.numChars>=1<<g)return 1/0;r+=4+g+l.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a})();o.QrSegment=h})(z||(z={}));(function(o){(function(d){var s=(function(){function u(c,h){this.ordinal=c,this.formatBits=h}return u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),u})();d.Ecc=s})(o.QrCode||(o.QrCode={}))})(z||(z={}));(function(o){(function(d){var s=(function(){function u(c,h){this.modeBits=c,this.numBitsCharCount=h}return u.prototype.numCharCountBits=function(c){return this.numBitsCharCount[Math.floor((c+7)/17)]},u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),u})();d.Mode=s})(o.QrSegment||(o.QrSegment={}))})(z||(z={}));var B=z,V="L",oe=100,G=0,ie=.1,le=2,W={L:B.QrCode.Ecc.LOW,M:B.QrCode.Ecc.MEDIUM,Q:B.QrCode.Ecc.QUARTILE,H:B.QrCode.Ecc.HIGH},ue=(function(){try{new Path2D().addPath(new Path2D)}catch(o){return!1}return!0})();function Y(o){return o in W}function $(o,d){d===void 0&&(d=0);var s="";return o.forEach(function(u,c){var h=null;u.forEach(function(a,e){if(!a&&h!==null){s+="M".concat(h+d," ").concat(c+d,"h").concat(e-h,"v1H").concat(h+d,"z"),h=null;return}if(e===u.length-1){if(!a)return;h===null?s+="M".concat(e+d,",").concat(c+d," h1v1H").concat(e+d,"z"):s+="M".concat(h+d,",").concat(c+d," h").concat(e+1-h,"v1H").concat(h+d,"z");return}a&&h===null&&(h=e)})}),s}function se(o,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=o.length+s*2,r=Math.floor(d*ie),n=t/d,i=(c||r)*n,l=(h||r)*n,g=a==null?o.length/2-i/2:a*n,m=e==null?o.length/2-l/2:e*n,p=(u.borderRadius||0)*n,E=null;if(u.excavate){var C=Math.floor(g),y=Math.floor(m),w=Math.ceil(i+g-C),v=Math.ceil(l+m-y);E={x:C,y,w,h:v}}return{x:g,y:m,h:l,w:i,borderRadius:p,excavation:E}}function K(o){var d=f.computed(function(){var e;return((e=o.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(o.level)?o.level:V;return B.QrCode.encodeText(o.value,W[e]).getModules()}),u=f.computed(function(){return s.value.length+d.value*2}),c=f.computed(function(){return $(s.value,d.value)}),h=f.computed(function(){if(!o.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,o.size,d.value,o.imageSettings);return{x:e.x+d.value,y:e.y+d.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=f.computed(function(){if(!o.imageSettings.excavate||!o.imageSettings.src)return null;var e=le/(o.size/u.value);return{x:h.value.x-e,y:h.value.y-e,width:h.value.width+e*2,height:h.value.height+e*2,borderRadius:h.value.borderRadius}});return{margin:d,numCells:u,cells:s,fgPath:c,imageProps:h,imageBorderProps:a}}var F={value:{type:String,required:!0,default:""},size:{type:Number,default:oe},level:{type:String,default:V,validator:function(o){return Y(o)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:G},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(o){return["linear","radial"].indexOf(o)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},de=R(R({},F),{renderAs:{type:String,required:!1,default:"canvas",validator:function(o){return["canvas","svg"].indexOf(o)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(o){var d=K(o),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!o.gradient)return null;var n=o.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(o.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},n),[f.h("stop",{offset:"0%",style:{stopColor:o.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:o.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var n=c.value.borderRadius;return!o.imageSettings.src||n<=0?null:f.h("clipPath",{id:t},[f.h("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,rx:n,ry:n})])};return function(){return f.h("svg",{width:o.size,height:o.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(s.value," ").concat(s.value)},[f.h("defs",{},[e(),r()]),f.h("rect",{width:"100%",height:"100%",fill:o.background}),f.h("path",{fill:o.gradient?"url(#".concat(a,")"):o.foreground,d:u.value}),h.value&&f.h("rect",{x:h.value.x,y:h.value.y,width:h.value.width,height:h.value.height,fill:o.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),o.imageSettings.src&&f.h("image",R(R({href:o.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(o,d){var s=K(o),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),n=function(){var l=o.size,g=o.background,m=o.foreground,p=o.gradient,E=o.gradientType,C=o.gradientStartColor,y=o.gradientEndColor,w=t.value;if(w){var v=w.getContext("2d");if(v){var S=c.value,M=r.value,b=typeof window!="undefined"&&window.devicePixelRatio||1,A=l/h.value*b;if(w.height=w.width=l*b,v.scale(A,A),v.fillStyle=g,v.fillRect(0,0,h.value,h.value),p){var P=void 0;E==="linear"?P=v.createLinearGradient(0,0,h.value,h.value):P=v.createRadialGradient(h.value/2,h.value/2,0,h.value/2,h.value/2,h.value/2),P.addColorStop(0,C),P.addColorStop(1,y),v.fillStyle=P}else v.fillStyle=m;ue?v.fill(new Path2D($(S,u.value))):S.forEach(function(I,_){I.forEach(function(L,x){L&&v.fillRect(x+u.value,_+u.value,1,1)})});var k=o.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var T=function(I,_,L,x,Q,X){I.beginPath(),I.roundRect?I.roundRect(_,L,x,Q,X):I.rect(_,L,x,Q)};if(e.value){var N=e.value;v.fillStyle=o.background,T(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var O=a.value.borderRadius;O>0?(v.save(),T(v,a.value.x,a.value.y,a.value.width,a.value.height,O),v.clip(),v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height),v.restore()):v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height)}}}};f.onMounted(n),f.watchEffect(n);var i=d.attrs.style;return function(){return f.h(f.Fragment,[f.h("canvas",R(R({},d.attrs),{ref:t,style:R(R({},i),{width:"".concat(o.size,"px"),height:"".concat(o.size,"px")})})),o.imageSettings.src&&f.h("img",{ref:r,src:o.imageSettings.src,style:{display:"none"},onLoad:n})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var o=this.$props,d=o.renderAs,s=o.value,u=o.size,c=o.margin,h=o.level,a=o.background,e=o.foreground,t=o.imageSettings,r=o.gradient,n=o.gradientType,i=o.gradientStartColor,l=o.gradientEndColor;return f.h(d==="svg"?he:ce,{value:s,size:u,margin:c,level:h,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:n,gradientStartColor:i,gradientEndColor:l})},props:de});const ve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='currentColor'/%3e%3c/svg%3e",ge="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234162ff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3c/svg%3e",me={class:"mix-body"},Ce={DEFAULT_ICON:ve,ACTIVE_ICON:ge,NAME_CN:"二维码",NAME_EN:"QR Code",ORDER:10,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,qrColor:{value:"#000000",type:"color",label:"component.qrcode.qrColor"},qrBgColor:{value:"#ffffff",type:"color",label:"component.qrcode.qrBgColor"},showBorder:{value:!0,type:"checkbox",label:"component.qrcode.showBorder"},borderColor:{value:"#e5e7eb",type:"color",label:"setting.borderColor",dependent:"showBorder"},borderWidth:{value:1,type:"number",label:"component.qrcode.borderWidth",min:1,max:10,dependent:"showBorder"},qrSize:{value:200,type:"number",label:"component.qrcode.qrSize",min:50,max:500},defaultContent:{value:"http://www.mixlinker.com",type:"textarea",label:"component.qrcode.defaultContent"},errorLevel:{value:"M",type:"select",label:"component.qrcode.errorLevel",options:[{label:"低 (L)",value:"L"},{label:"中 (M)",value:"M"},{label:"较高 (Q)",value:"Q"},{label:"高 (H)",value:"H"}]}},we=[],Ee=[],ye=[],Se={},Me={DEFAULT:Ce,OPTIONS:pe,DATA:we,PARAMS:Ee,SOURCE:ye,COMMON:Se},Re=f.defineComponent(D(q({},Me),{__name:"qrcode",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(o){const d=o;class s extends re.BaseComponent{extractStyles(){return D(q({},super.extractStyles()),{titleColor:this.getOptionValue("titleColor","#111"),bgColor:this.getOptionValue("bgColor","#fff"),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),qrColor:this.getOptionValue("qrColor","#000000"),qrBgColor:this.getOptionValue("qrBgColor","#ffffff"),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderWidth:this.getOptionValue("borderWidth",1),qrSize:this.getOptionValue("qrSize",200),defaultContent:this.getOptionValue("defaultContent","http://www.mixlinker.com"),errorLevel:this.getOptionValue("errorLevel","M")})}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const u=new s(d,"qrcode");u.setupLifecycle();const c=u.getStyle(),h=d.conf,a=f.computed(()=>ne.generateTitleStyle(d.conf.options)),e=f.computed(()=>c.value.defaultContent||"http://www.mixlinker.com"),t=f.computed(()=>Math.min(c.value.qrSize,300)),r=f.computed(()=>({border:c.value.showBorder?`${c.value.borderWidth}px solid ${c.value.borderColor}`:"none",padding:c.value.showBorder?"8px":"0",background:c.value.qrBgColor,borderRadius:"4px"}));return(n,i)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(c).bgColor,borderRadius:`${f.unref(c).radiusSize}px`})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(a.value)},f.toDisplayString(f.unref(h).caption||f.unref(h).name),5),f.createElementVNode("div",me,[f.createElementVNode("div",{class:"qrcode-wrapper",style:f.normalizeStyle(r.value)},[f.createVNode(fe,{value:e.value,size:t.value,level:f.unref(c).errorLevel,"render-as":"svg",foreground:f.unref(c).qrColor,background:f.unref(c).qrBgColor},null,8,["value","size","level","foreground","background"])],4)]),f.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-82738f56"]]);exports.default=be;
1
+ "use strict";var Z=Object.defineProperty,J=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var H=(o,d,s)=>d in o?Z(o,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[d]=s,q=(o,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(o,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(o,s,d[s]);return o},D=(o,d)=>J(o,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./BaseComponent-BmhMoM4H.cjs"),ae=require("./index-77aUdspY.cjs"),ne=require("./titleStyle-NSnz6cUg.cjs");var R=function(){return R=Object.assign||function(d){for(var s,u=1,c=arguments.length;u<c;u++){s=arguments[u];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(d[h]=s[h])}return d},R.apply(this,arguments)};var z;(function(o){var d=(function(){function a(e,t,r,n){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(n<-1||n>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var i=[],l=0;l<this.size;l++)i.push(!1);for(var l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();var g=this.addEccAndInterleave(r);if(this.drawCodewords(g),n==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(n=l,m=p),this.applyMask(l)}c(0<=n&&n<=7),this.mask=n,this.applyMask(n),this.drawFormatBits(n),this.isFunction=[]}return a.encodeText=function(e,t){var r=o.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=o.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,n,i,l){if(r===void 0&&(r=1),n===void 0&&(n=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=n&&n<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var g,m;for(g=r;;g++){var p=a.getNumDataCodewords(g,t)*8,E=h.getTotalBits(e,g);if(E<=p){m=E;break}if(g>=n)throw new RangeError("Data too long")}for(var C=0,y=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<y.length;C++){var w=y[C];l&&m<=a.getNumDataCodewords(g,w)*8&&(t=w)}for(var v=[],S=0,M=e;S<M.length;S++){var b=M[S];s(b.mode.modeBits,4,v),s(b.numChars,b.mode.numCharCountBits(g),v);for(var A=0,P=b.getData();A<P.length;A++){var k=P[A];v.push(k)}}c(v.length==m);var T=a.getNumDataCodewords(g,t)*8;c(v.length<=T),s(0,Math.min(4,T-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<T;N^=253)s(N,8,v);for(var O=[];O.length*8<v.length;)O.push(0);return v.forEach(function(I,_){return O[_>>>3]|=I<<7-(_&7)}),new a(g,t,O,i)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var n=0;n<r;n++)e==0&&n==0||e==0&&n==r-1||e==r-1&&n==0||this.drawAlignmentPattern(t[e],t[n]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,n=0;n<10;n++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var n=0;n<=5;n++)this.setFunctionModule(8,n,u(i,n));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var n=9;n<15;n++)this.setFunctionModule(14-n,8,u(i,n));for(var n=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,u(i,n));for(var n=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,u(i,n));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;c(r>>>18==0);for(var t=0;t<18;t++){var n=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,n),this.setFunctionModule(l,i,n)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var n=-4;n<=4;n++){var i=Math.max(Math.abs(n),Math.abs(r)),l=e+n,g=t+r;0<=l&&l<this.size&&0<=g&&g<this.size&&this.setFunctionModule(l,g,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,Math.max(Math.abs(n),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var n=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],i=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],l=Math.floor(a.getNumRawDataModules(t)/8),g=n-l%n,m=Math.floor(l/n),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<n;C++){var w=e.slice(y,y+m-i+(C<g?0:1));y+=w.length;var v=a.reedSolomonComputeRemainder(w,E);C<g&&w.push(0),p.push(w.concat(v))}for(var S=[],M=function(b){p.forEach(function(A,P){(b!=m-i||P>=g)&&S.push(A[b])})},C=0;C<p[0].length;C++)M(C);return c(S.length==l),S},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var n=0;n<this.size;n++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-n:n;!this.isFunction[m][l]&&t<e.length*8&&(this.modules[m][l]=u(e[t>>>3],7-(t&7)),t++)}}c(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var n=void 0;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,n=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(n++,n==5?e+=a.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,i)*a.PENALTY_N3}for(var l=0;l<this.size;l++){for(var r=!1,g=0,i=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][l]==r?(g++,g==5?e+=a.PENALTY_N1:g>5&&e++):(this.finderPenaltyAddHistory(g,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],g=1);e+=this.finderPenaltyTerminateAndCount(r,g,i)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var l=0;l<this.size-1;l++){var m=this.modules[t][l];m==this.modules[t][l+1]&&m==this.modules[t+1][l]&&m==this.modules[t+1][l+1]&&(e+=a.PENALTY_N2)}for(var p=0,E=0,C=this.modules;E<C.length;E++){var y=C[E];p=y.reduce(function(S,M){return S+(M?1:0)},p)}var w=this.size*this.size,v=Math.ceil(Math.abs(p*20-w*10)/w)-1;return c(0<=v&&v<=9),e+=v*a.PENALTY_N4,c(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return c(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var n=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],n),i+1<t.length&&(t[i]^=t[i+1]);n=a.reedSolomonMultiply(n,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),n=function(m){var p=m^r.shift();r.push(0),t.forEach(function(E,C){return r[C]^=a.reedSolomonMultiply(E,p)})},i=0,l=e;i<l.length;i++){var g=l[i];n(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&1)*e;return c(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];c(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();o.QrCode=d;function s(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function u(a,e){return(a>>>e&1)!=0}function c(a){if(!a)throw new Error("Assertion error")}var h=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];s(i,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+n),10),n*3+1,t),r+=n}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var n=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;n+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(n,11,t)}return r<e.length&&s(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else if(e<1e6)s(6,3,t),s(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++){var l=i[n],g=l.mode.numCharCountBits(t);if(l.numChars>=1<<g)return 1/0;r+=4+g+l.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a})();o.QrSegment=h})(z||(z={}));(function(o){(function(d){var s=(function(){function u(c,h){this.ordinal=c,this.formatBits=h}return u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),u})();d.Ecc=s})(o.QrCode||(o.QrCode={}))})(z||(z={}));(function(o){(function(d){var s=(function(){function u(c,h){this.modeBits=c,this.numBitsCharCount=h}return u.prototype.numCharCountBits=function(c){return this.numBitsCharCount[Math.floor((c+7)/17)]},u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),u})();d.Mode=s})(o.QrSegment||(o.QrSegment={}))})(z||(z={}));var B=z,V="L",oe=100,G=0,ie=.1,le=2,W={L:B.QrCode.Ecc.LOW,M:B.QrCode.Ecc.MEDIUM,Q:B.QrCode.Ecc.QUARTILE,H:B.QrCode.Ecc.HIGH},ue=(function(){try{new Path2D().addPath(new Path2D)}catch(o){return!1}return!0})();function Y(o){return o in W}function $(o,d){d===void 0&&(d=0);var s="";return o.forEach(function(u,c){var h=null;u.forEach(function(a,e){if(!a&&h!==null){s+="M".concat(h+d," ").concat(c+d,"h").concat(e-h,"v1H").concat(h+d,"z"),h=null;return}if(e===u.length-1){if(!a)return;h===null?s+="M".concat(e+d,",").concat(c+d," h1v1H").concat(e+d,"z"):s+="M".concat(h+d,",").concat(c+d," h").concat(e+1-h,"v1H").concat(h+d,"z");return}a&&h===null&&(h=e)})}),s}function se(o,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=o.length+s*2,r=Math.floor(d*ie),n=t/d,i=(c||r)*n,l=(h||r)*n,g=a==null?o.length/2-i/2:a*n,m=e==null?o.length/2-l/2:e*n,p=(u.borderRadius||0)*n,E=null;if(u.excavate){var C=Math.floor(g),y=Math.floor(m),w=Math.ceil(i+g-C),v=Math.ceil(l+m-y);E={x:C,y,w,h:v}}return{x:g,y:m,h:l,w:i,borderRadius:p,excavation:E}}function K(o){var d=f.computed(function(){var e;return((e=o.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(o.level)?o.level:V;return B.QrCode.encodeText(o.value,W[e]).getModules()}),u=f.computed(function(){return s.value.length+d.value*2}),c=f.computed(function(){return $(s.value,d.value)}),h=f.computed(function(){if(!o.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,o.size,d.value,o.imageSettings);return{x:e.x+d.value,y:e.y+d.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=f.computed(function(){if(!o.imageSettings.excavate||!o.imageSettings.src)return null;var e=le/(o.size/u.value);return{x:h.value.x-e,y:h.value.y-e,width:h.value.width+e*2,height:h.value.height+e*2,borderRadius:h.value.borderRadius}});return{margin:d,numCells:u,cells:s,fgPath:c,imageProps:h,imageBorderProps:a}}var F={value:{type:String,required:!0,default:""},size:{type:Number,default:oe},level:{type:String,default:V,validator:function(o){return Y(o)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:G},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(o){return["linear","radial"].indexOf(o)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},de=R(R({},F),{renderAs:{type:String,required:!1,default:"canvas",validator:function(o){return["canvas","svg"].indexOf(o)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(o){var d=K(o),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!o.gradient)return null;var n=o.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(o.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},n),[f.h("stop",{offset:"0%",style:{stopColor:o.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:o.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var n=c.value.borderRadius;return!o.imageSettings.src||n<=0?null:f.h("clipPath",{id:t},[f.h("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,rx:n,ry:n})])};return function(){return f.h("svg",{width:o.size,height:o.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(s.value," ").concat(s.value)},[f.h("defs",{},[e(),r()]),f.h("rect",{width:"100%",height:"100%",fill:o.background}),f.h("path",{fill:o.gradient?"url(#".concat(a,")"):o.foreground,d:u.value}),h.value&&f.h("rect",{x:h.value.x,y:h.value.y,width:h.value.width,height:h.value.height,fill:o.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),o.imageSettings.src&&f.h("image",R(R({href:o.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(o,d){var s=K(o),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),n=function(){var l=o.size,g=o.background,m=o.foreground,p=o.gradient,E=o.gradientType,C=o.gradientStartColor,y=o.gradientEndColor,w=t.value;if(w){var v=w.getContext("2d");if(v){var S=c.value,M=r.value,b=typeof window!="undefined"&&window.devicePixelRatio||1,A=l/h.value*b;if(w.height=w.width=l*b,v.scale(A,A),v.fillStyle=g,v.fillRect(0,0,h.value,h.value),p){var P=void 0;E==="linear"?P=v.createLinearGradient(0,0,h.value,h.value):P=v.createRadialGradient(h.value/2,h.value/2,0,h.value/2,h.value/2,h.value/2),P.addColorStop(0,C),P.addColorStop(1,y),v.fillStyle=P}else v.fillStyle=m;ue?v.fill(new Path2D($(S,u.value))):S.forEach(function(I,_){I.forEach(function(L,x){L&&v.fillRect(x+u.value,_+u.value,1,1)})});var k=o.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var T=function(I,_,L,x,Q,X){I.beginPath(),I.roundRect?I.roundRect(_,L,x,Q,X):I.rect(_,L,x,Q)};if(e.value){var N=e.value;v.fillStyle=o.background,T(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var O=a.value.borderRadius;O>0?(v.save(),T(v,a.value.x,a.value.y,a.value.width,a.value.height,O),v.clip(),v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height),v.restore()):v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height)}}}};f.onMounted(n),f.watchEffect(n);var i=d.attrs.style;return function(){return f.h(f.Fragment,[f.h("canvas",R(R({},d.attrs),{ref:t,style:R(R({},i),{width:"".concat(o.size,"px"),height:"".concat(o.size,"px")})})),o.imageSettings.src&&f.h("img",{ref:r,src:o.imageSettings.src,style:{display:"none"},onLoad:n})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var o=this.$props,d=o.renderAs,s=o.value,u=o.size,c=o.margin,h=o.level,a=o.background,e=o.foreground,t=o.imageSettings,r=o.gradient,n=o.gradientType,i=o.gradientStartColor,l=o.gradientEndColor;return f.h(d==="svg"?he:ce,{value:s,size:u,margin:c,level:h,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:n,gradientStartColor:i,gradientEndColor:l})},props:de});const ve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='currentColor'/%3e%3c/svg%3e",ge="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234162ff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3c/svg%3e",me={class:"mix-body"},Ce={DEFAULT_ICON:ve,ACTIVE_ICON:ge,NAME_CN:"二维码",NAME_EN:"QR Code",ORDER:10,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,qrColor:{value:"#000000",type:"color",label:"component.qrcode.qrColor"},qrBgColor:{value:"#ffffff",type:"color",label:"component.qrcode.qrBgColor"},showBorder:{value:!0,type:"checkbox",label:"component.qrcode.showBorder"},borderColor:{value:"#e5e7eb",type:"color",label:"setting.borderColor",dependent:"showBorder"},borderWidth:{value:1,type:"number",label:"component.qrcode.borderWidth",min:1,max:10,dependent:"showBorder"},qrSize:{value:200,type:"number",label:"component.qrcode.qrSize",min:50,max:500},defaultContent:{value:"http://www.mixlinker.com",type:"textarea",label:"component.qrcode.defaultContent"},errorLevel:{value:"M",type:"select",label:"component.qrcode.errorLevel",options:[{label:"低 (L)",value:"L"},{label:"中 (M)",value:"M"},{label:"较高 (Q)",value:"Q"},{label:"高 (H)",value:"H"}]}},we=[],Ee=[],ye=[],Se={},Me={DEFAULT:Ce,OPTIONS:pe,DATA:we,PARAMS:Ee,SOURCE:ye,COMMON:Se},Re=f.defineComponent(D(q({},Me),{__name:"qrcode",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(o){const d=o;class s extends re.BaseComponent{extractStyles(){return D(q({},super.extractStyles()),{titleColor:this.getOptionValue("titleColor","#111"),bgColor:this.getOptionValue("bgColor","#fff"),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),qrColor:this.getOptionValue("qrColor","#000000"),qrBgColor:this.getOptionValue("qrBgColor","#ffffff"),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderWidth:this.getOptionValue("borderWidth",1),qrSize:this.getOptionValue("qrSize",200),defaultContent:this.getOptionValue("defaultContent","http://www.mixlinker.com"),errorLevel:this.getOptionValue("errorLevel","M")})}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const u=new s(d,"qrcode");u.setupLifecycle();const c=u.getStyle(),h=d.conf,a=f.computed(()=>ne.generateTitleStyle(d.conf.options)),e=f.computed(()=>c.value.defaultContent||"http://www.mixlinker.com"),t=f.computed(()=>Math.min(c.value.qrSize,300)),r=f.computed(()=>({border:c.value.showBorder?`${c.value.borderWidth}px solid ${c.value.borderColor}`:"none",padding:c.value.showBorder?"8px":"0",background:c.value.qrBgColor,borderRadius:"4px"}));return(n,i)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(c).bgColor,borderRadius:`${f.unref(c).radiusSize}px`})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(a.value)},f.toDisplayString(f.unref(h).caption||f.unref(h).name),5),f.createElementVNode("div",me,[f.createElementVNode("div",{class:"qrcode-wrapper",style:f.normalizeStyle(r.value)},[f.createVNode(fe,{value:e.value,size:t.value,level:f.unref(c).errorLevel,"render-as":"svg",foreground:f.unref(c).qrColor,background:f.unref(c).qrBgColor},null,8,["value","size","level","foreground","background"])],4)]),f.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-82738f56"]]);exports.default=be;
@@ -28,9 +28,9 @@ var I = (p, a, l) => new Promise((v, R) => {
28
28
  });
29
29
  import { defineComponent as G, computed as D, openBlock as $, createElementBlock as F, normalizeStyle as U, unref as L, createElementVNode as _, toDisplayString as N, createCommentVNode as J, renderSlot as K, nextTick as Q } from "vue";
30
30
  import { u as Y } from "./vue-i18n-5Nahpzrm.js";
31
- import { o as tt, C as et, _ as it } from "./index-DomNEEyv.js";
31
+ import { o as tt, C as et, _ as it } from "./index-BZpYmpDy.js";
32
32
  import "element-plus";
33
- import { E as ot } from "./EChartComponentBase-DPWPg81w.js";
33
+ import { E as ot } from "./EChartComponentBase-i76OGL3z.js";
34
34
  import { g as nt } from "./titleStyle-BT5GlpAb.js";
35
35
  import { u as st, i as at, a as lt } from "./installCanvasRenderer-oDYkyVFy.js";
36
36
  import { i as rt } from "./install-DdM8j5Ll.js";
@@ -1,2 +1,2 @@
1
- "use strict";var $=Object.defineProperty,k=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var V=(p,l,r)=>l in p?$(p,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):p[l]=r,T=(p,l)=>{for(var r in l||(l={}))j.call(l,r)&&V(p,r,l[r]);if(U)for(var r of U(l))H.call(l,r)&&V(p,r,l[r]);return p},O=(p,l)=>k(p,B(l));var P=(p,l,r)=>new Promise((y,R)=>{var S=f=>{try{b(r.next(f))}catch(L){R(L)}},A=f=>{try{b(r.throw(f))}catch(L){R(L)}},b=f=>f.done?y(f.value):Promise.resolve(f.value).then(S,A);b((r=r.apply(p,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),q=require("./vue-i18n-BvHMBi_b.cjs"),_=require("./index-Cvu9nAQq.cjs");require("element-plus");const W=require("./EChartComponentBase-BPiPzdtw.cjs"),Z=require("./titleStyle-NSnz6cUg.cjs"),E=require("./installCanvasRenderer-CyhM1Qpl.cjs"),X=require("./install-DV5cEgNV.cjs"),G=require("./install-CltTFs4e.cjs"),J=require("./install-C8buXQPI.cjs"),K=require("./install-Ch5d8i37.cjs"),Q="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%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='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Y="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",tt={key:0,class:"mix-title-unit"},et={class:"mix-body"},it=["id"],nt={DEFAULT_ICON:Q,ACTIVE_ICON:Y,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1,PLATFORM:["pc","screen","mobile"]},ot={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:50,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1},st=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],at=["name","fv","object_id","color"],lt=["mosaic"],rt={useAlias:!1,multiObject:!1,source:"mosaic",valueUnit:"",showPlanCompletionRate:!1},ct={DEFAULT:nt,OPTIONS:ot,DATA:st,PARAMS:at,SOURCE:lt,COMMON:rt},ut=a.defineComponent(O(T({},ct),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){E.use([X.install,G.install,E.install,J.install,E.install$1,K.install]);const l=p;function r(c,e,t){const i=c==null?void 0:c[e];return i==null?t:typeof i=="object"&&"value"in i?i.value:i}function y(c){return String(c).replace(/[|{}]/g,e=>({"|":"|","{":"﹛","}":"﹜"})[e]||e)}class R extends W.EChartComponentBase{constructor(){super(...arguments),this.CHART={rawValues:[],items:[],colors:[],times:[]}}parseNumericRaw(e){if(e==="--"||e===null||e===void 0||e==="")return null;const t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:null}ensureCommonFields(){const e=this.props.conf;(!e.common||typeof e.common!="object")&&(e.common={useAlias:!1,multiObject:!1,source:"mosaic"});const t=e.common;t.valueUnit===void 0&&(t.valueUnit=""),t.showPlanCompletionRate===void 0&&(t.showPlanCompletionRate=!1)}migrateLegacyDisplayOptions(){var d,m,x;this.ensureCommonFields();const e=this.props.conf.common,t=(d=this.props.conf.data)==null?void 0:d[0];t&&typeof t=="object"&&((!e.valueUnit||String(e.valueUnit).trim()==="")&&t.valueUnit!=null&&String(t.valueUnit).trim()!==""&&(e.valueUnit=String(t.valueUnit)),e.showPlanCompletionRate===!1&&t.showPlanCompletionRate===!0&&(e.showPlanCompletionRate=!0),"valueUnit"in t&&delete t.valueUnit,"showPlanCompletionRate"in t&&delete t.showPlanCompletionRate);const i=(m=this.props.conf.options)==null?void 0:m.valueUnit,n=i!=null&&typeof i=="object"&&"value"in i?i.value:i;(!e.valueUnit||String(e.valueUnit).trim()==="")&&n!==void 0&&n!==null&&String(n).trim()!==""&&(e.valueUnit=String(n));const o=(x=this.props.conf.options)==null?void 0:x.showPlanCompletionRate,u=o!=null&&typeof o=="object"&&"value"in o?o.value:o;e.showPlanCompletionRate===!1&&u===!0&&(e.showPlanCompletionRate=!0)}isPlanCompletionRateEnabled(){return this.ensureCommonFields(),!!this.props.conf.common.showPlanCompletionRate}resolveBarItemIndex(e){const t=this.CHART.items,i=[e==null?void 0:e.axisValue,e==null?void 0:e.name];for(const o of i){if(o==null||o==="")continue;const u=t.indexOf(String(o));if(u!==-1)return u}const n=e==null?void 0:e.dataIndex;return typeof n=="number"&&n>=0&&n<t.length?n:Math.min(Math.max(0,n!=null?n:0),Math.max(0,t.length-1))}extractStyles(){return O(T({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){return P(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.migrateLegacyDisplayOptions(),this.initChartData(),yield a.nextTick(),this.initChart()})}initChart(){super.initChart(),requestAnimationFrame(()=>{this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)})}initChartData(){var o,u;const e=this.props.conf,t=this.CHART.rawValues,i=this.CHART.items,n=t.length===((o=e.data)==null?void 0:o.length)&&i.length===((u=e.data)==null?void 0:u.length)&&i.every((d,m)=>{var x;return d===((x=e.data[m])==null?void 0:x.name)});this.CHART={rawValues:[],items:[],colors:[],times:[]},e.data.forEach((d,m)=>{const x=_.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(d.color||_.COLORS[m]),d.value!==void 0&&d.value!==""?this.CHART.rawValues.push(d.value):n&&t[m]!==void 0&&t[m]!==""?this.CHART.rawValues.push(t[m]):this.CHART.rawValues.push(x[0]),this.CHART.items.push(d.name)})}buildSeriesAndMax(){const e=this.isPlanCompletionRateEnabled(),t=this.CHART.rawValues.map(o=>this.parseNumericRaw(o)).filter(o=>o!==null),i=t.length?Math.max(...t):0;return{seriesData:this.CHART.rawValues.map(o=>{const u=this.parseNumericRaw(o);return u===null?null:e?i<=0?0:u/i*100:u}),maxNumeric:i}}getChartOption(){const e=this,t=this.Style.value,i=this.CHART,n=this.isPlanCompletionRateEnabled(),{seriesData:o,maxNumeric:u}=this.buildSeriesAndMax(),d={pct:{color:"#000000",fontSize:t.textSize,align:"right",padding:[0,0,0,10]}};i.colors.forEach((s,g)=>{d[`raw${g}`]={color:s||"#5470c6",fontSize:t.textSize,align:"right",fontWeight:500}});const m=s=>{const g=this.resolveBarItemIndex(s),C=i.rawValues[g];if(n&&u>0){const v=this.parseNumericRaw(C),w=y(String(C)),F=v!==null&&u>0?`${Math.round(v/u*100)}%`:"";return`{raw${g}|${w}}{pct|${y(F)}}`}return`{raw${g}|${y(String(C))}}`},x=108,M=s=>{var v,w;const g=(w=(v=e.chartObj)==null?void 0:v.getWidth())!=null?w:0;return!g||!s.labelRect?{}:{x:g-12,y:s.labelRect.y+s.labelRect.height/2,verticalAlign:"middle",align:"right"}},z=t.direction==="x"?t.right+x:t.right;let h={grid:{top:t.top,bottom:t.bottom,left:t.left,right:z,containLabel:!1},tooltip:{show:!0,formatter:s=>{const g=this.resolveBarItemIndex(s),C=i.rawValues[g],v=this.parseNumericRaw(C);let w=`${s.name}:`;return n&&u>0&&v!==null?w+=`${C}(${Math.round(v/u*100)}%)`:w+=String(C),w}},xAxis:{max:"dataMax",axisLine:{show:!0,color:t.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:t.textColor,fontSize:t.textSize,formatter:s=>s.length>4?s.substr(0,4):s}},yAxis:{axisLabel:{formatter:s=>s.length>5?s.substr(0,5)+`
1
+ "use strict";var $=Object.defineProperty,k=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var V=(p,l,r)=>l in p?$(p,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):p[l]=r,T=(p,l)=>{for(var r in l||(l={}))j.call(l,r)&&V(p,r,l[r]);if(U)for(var r of U(l))H.call(l,r)&&V(p,r,l[r]);return p},O=(p,l)=>k(p,B(l));var P=(p,l,r)=>new Promise((y,R)=>{var S=f=>{try{b(r.next(f))}catch(L){R(L)}},A=f=>{try{b(r.throw(f))}catch(L){R(L)}},b=f=>f.done?y(f.value):Promise.resolve(f.value).then(S,A);b((r=r.apply(p,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),q=require("./vue-i18n-BvHMBi_b.cjs"),_=require("./index-77aUdspY.cjs");require("element-plus");const W=require("./EChartComponentBase-D9EUh4BZ.cjs"),Z=require("./titleStyle-NSnz6cUg.cjs"),E=require("./installCanvasRenderer-CyhM1Qpl.cjs"),X=require("./install-DV5cEgNV.cjs"),G=require("./install-CltTFs4e.cjs"),J=require("./install-C8buXQPI.cjs"),K=require("./install-Ch5d8i37.cjs"),Q="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%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='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Y="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",tt={key:0,class:"mix-title-unit"},et={class:"mix-body"},it=["id"],nt={DEFAULT_ICON:Q,ACTIVE_ICON:Y,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1,PLATFORM:["pc","screen","mobile"]},ot={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:50,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1},st=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],at=["name","fv","object_id","color"],lt=["mosaic"],rt={useAlias:!1,multiObject:!1,source:"mosaic",valueUnit:"",showPlanCompletionRate:!1},ct={DEFAULT:nt,OPTIONS:ot,DATA:st,PARAMS:at,SOURCE:lt,COMMON:rt},ut=a.defineComponent(O(T({},ct),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){E.use([X.install,G.install,E.install,J.install,E.install$1,K.install]);const l=p;function r(c,e,t){const i=c==null?void 0:c[e];return i==null?t:typeof i=="object"&&"value"in i?i.value:i}function y(c){return String(c).replace(/[|{}]/g,e=>({"|":"|","{":"﹛","}":"﹜"})[e]||e)}class R extends W.EChartComponentBase{constructor(){super(...arguments),this.CHART={rawValues:[],items:[],colors:[],times:[]}}parseNumericRaw(e){if(e==="--"||e===null||e===void 0||e==="")return null;const t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:null}ensureCommonFields(){const e=this.props.conf;(!e.common||typeof e.common!="object")&&(e.common={useAlias:!1,multiObject:!1,source:"mosaic"});const t=e.common;t.valueUnit===void 0&&(t.valueUnit=""),t.showPlanCompletionRate===void 0&&(t.showPlanCompletionRate=!1)}migrateLegacyDisplayOptions(){var d,m,x;this.ensureCommonFields();const e=this.props.conf.common,t=(d=this.props.conf.data)==null?void 0:d[0];t&&typeof t=="object"&&((!e.valueUnit||String(e.valueUnit).trim()==="")&&t.valueUnit!=null&&String(t.valueUnit).trim()!==""&&(e.valueUnit=String(t.valueUnit)),e.showPlanCompletionRate===!1&&t.showPlanCompletionRate===!0&&(e.showPlanCompletionRate=!0),"valueUnit"in t&&delete t.valueUnit,"showPlanCompletionRate"in t&&delete t.showPlanCompletionRate);const i=(m=this.props.conf.options)==null?void 0:m.valueUnit,n=i!=null&&typeof i=="object"&&"value"in i?i.value:i;(!e.valueUnit||String(e.valueUnit).trim()==="")&&n!==void 0&&n!==null&&String(n).trim()!==""&&(e.valueUnit=String(n));const o=(x=this.props.conf.options)==null?void 0:x.showPlanCompletionRate,u=o!=null&&typeof o=="object"&&"value"in o?o.value:o;e.showPlanCompletionRate===!1&&u===!0&&(e.showPlanCompletionRate=!0)}isPlanCompletionRateEnabled(){return this.ensureCommonFields(),!!this.props.conf.common.showPlanCompletionRate}resolveBarItemIndex(e){const t=this.CHART.items,i=[e==null?void 0:e.axisValue,e==null?void 0:e.name];for(const o of i){if(o==null||o==="")continue;const u=t.indexOf(String(o));if(u!==-1)return u}const n=e==null?void 0:e.dataIndex;return typeof n=="number"&&n>=0&&n<t.length?n:Math.min(Math.max(0,n!=null?n:0),Math.max(0,t.length-1))}extractStyles(){return O(T({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){return P(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.migrateLegacyDisplayOptions(),this.initChartData(),yield a.nextTick(),this.initChart()})}initChart(){super.initChart(),requestAnimationFrame(()=>{this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)})}initChartData(){var o,u;const e=this.props.conf,t=this.CHART.rawValues,i=this.CHART.items,n=t.length===((o=e.data)==null?void 0:o.length)&&i.length===((u=e.data)==null?void 0:u.length)&&i.every((d,m)=>{var x;return d===((x=e.data[m])==null?void 0:x.name)});this.CHART={rawValues:[],items:[],colors:[],times:[]},e.data.forEach((d,m)=>{const x=_.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(d.color||_.COLORS[m]),d.value!==void 0&&d.value!==""?this.CHART.rawValues.push(d.value):n&&t[m]!==void 0&&t[m]!==""?this.CHART.rawValues.push(t[m]):this.CHART.rawValues.push(x[0]),this.CHART.items.push(d.name)})}buildSeriesAndMax(){const e=this.isPlanCompletionRateEnabled(),t=this.CHART.rawValues.map(o=>this.parseNumericRaw(o)).filter(o=>o!==null),i=t.length?Math.max(...t):0;return{seriesData:this.CHART.rawValues.map(o=>{const u=this.parseNumericRaw(o);return u===null?null:e?i<=0?0:u/i*100:u}),maxNumeric:i}}getChartOption(){const e=this,t=this.Style.value,i=this.CHART,n=this.isPlanCompletionRateEnabled(),{seriesData:o,maxNumeric:u}=this.buildSeriesAndMax(),d={pct:{color:"#000000",fontSize:t.textSize,align:"right",padding:[0,0,0,10]}};i.colors.forEach((s,g)=>{d[`raw${g}`]={color:s||"#5470c6",fontSize:t.textSize,align:"right",fontWeight:500}});const m=s=>{const g=this.resolveBarItemIndex(s),C=i.rawValues[g];if(n&&u>0){const v=this.parseNumericRaw(C),w=y(String(C)),F=v!==null&&u>0?`${Math.round(v/u*100)}%`:"";return`{raw${g}|${w}}{pct|${y(F)}}`}return`{raw${g}|${y(String(C))}}`},x=108,M=s=>{var v,w;const g=(w=(v=e.chartObj)==null?void 0:v.getWidth())!=null?w:0;return!g||!s.labelRect?{}:{x:g-12,y:s.labelRect.y+s.labelRect.height/2,verticalAlign:"middle",align:"right"}},z=t.direction==="x"?t.right+x:t.right;let h={grid:{top:t.top,bottom:t.bottom,left:t.left,right:z,containLabel:!1},tooltip:{show:!0,formatter:s=>{const g=this.resolveBarItemIndex(s),C=i.rawValues[g],v=this.parseNumericRaw(C);let w=`${s.name}:`;return n&&u>0&&v!==null?w+=`${C}(${Math.round(v/u*100)}%)`:w+=String(C),w}},xAxis:{max:"dataMax",axisLine:{show:!0,color:t.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:t.textColor,fontSize:t.textSize,formatter:s=>s.length>4?s.substr(0,4):s}},yAxis:{axisLabel:{formatter:s=>s.length>5?s.substr(0,5)+`
2
2
  `+s.substr(5):s,color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}},splitLine:{lineStyle:{}},animationDuration:300,animationDurationUpdate:300},series:[{realtimeSort:t.realSort,type:"bar",barWidth:t.barWidth+"%",data:o,labelLayout:M,label:{show:!0,position:"right",align:"right",verticalAlign:"middle",valueAnimation:!0,color:t.textColor,fontSize:t.textSize,rich:d,formatter:m},itemStyle:{color:s=>i.colors[this.resolveBarItemIndex(s)]||"#5470c6"}}],animationDuration:0,animationDurationUpdate:500,animationEasing:"linear",animationEasingUpdate:"linear"};return t.direction==="x"?(h.yAxis.data=i.items,t.realSort&&(h.yAxis.inverse=t.sortType==="desc"),h.series[0].label.position="right",h.series[0].label.align="right",h.xAxis.splitLine.lineStyle.type="dashed",n&&u>0&&(h.xAxis.max=100,h.xAxis.axisLabel.formatter=s=>`${s}%`)):(h.xAxis.data=i.items,t.realSort&&(h.xAxis.inverse=t.sortType==="asc"),h.series[0].label.position="top",h.series[0].label.align="right",h.yAxis.splitLine.lineStyle.type="dashed",delete h.yAxis.type,n&&u>0&&(h.yAxis.max=100,h.yAxis.axisLabel.formatter=s=>`${s}%`)),h}setSocketData(e){if(!this.hasData()||!e||!this.chartObj)return;const{data:t}=this.props.conf;this.CHART.rawValues=[],t.forEach(n=>{const o=this.extractDataValue(e,n.fv);this.CHART.rawValues.push(o!=null?o:"--")});const{seriesData:i}=this.buildSeriesAndMax();this.chartObj.setOption({series:[{data:i}]})}}const S=new R(l,"raceBar");S.setupLifecycle();const A=S.getStyle(),b=S.getEchartId(),f=l.conf,{t:L}=q.useI18n(),D=a.computed(()=>{var n;const c=((n=l.conf)==null?void 0:n.common)||{},e=String(c.valueUnit||"").trim(),t=!!c.showPlanCompletionRate,i=[];return e&&i.push(e),t&&i.push(L("component.options.showPlanCompletionRate")),i.join(" / ")}),N=a.computed(()=>{const c=Z.generateTitleStyle(l.conf.options);return c.display==="none"?c:O(T({},c),{display:"flex",alignItems:"center",gap:"8px",textAlign:"initial"})}),I=a.computed(()=>{var e;const c=((e=l.conf)==null?void 0:e.options)||{};return{flex:"1",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:r(c,"titleColor","#111"),fontSize:`${r(c,"titleSize",14)}px`,fontWeight:r(c,"titleWeight","bold"),textAlign:r(c,"titleAlign","left")}});return(c,e)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(A).bgColor,borderRadius:`${a.unref(A).radiusSize}px`})},[a.createElementVNode("div",{class:"mix-title",style:a.normalizeStyle(N.value)},[a.createElementVNode("span",{class:"mix-title-caption",style:a.normalizeStyle(I.value)},a.toDisplayString(a.unref(f).caption||a.unref(f).name),5),D.value?(a.openBlock(),a.createElementBlock("span",tt,a.toDisplayString(D.value),1)):a.createCommentVNode("",!0)],4),a.createElementVNode("div",et,[a.createElementVNode("div",{class:"w-full h-full",id:a.unref(b)},null,8,it)]),a.renderSlot(c.$slots,"default",{},void 0,!0)],4))}})),ht=_._export_sfc(ut,[["__scopeId","data-v-a7136add"]]);exports.default=ht;
@@ -11,9 +11,9 @@ var m = (o, t, e) => t in o ? O(o, t, { enumerable: !0, configurable: !0, writab
11
11
  return o;
12
12
  }, h = (o, t) => y(o, b(t));
13
13
  import { defineComponent as E, computed as Z, openBlock as k, createElementBlock as F, normalizeStyle as g, unref as r, createElementVNode as c, toDisplayString as T, renderSlot as z } from "vue";
14
- import { _ as A } from "./index-DomNEEyv.js";
14
+ import { _ as A } from "./index-BZpYmpDy.js";
15
15
  import "element-plus";
16
- import { E as N } from "./EChartComponentBase-DPWPg81w.js";
16
+ import { E as N } from "./EChartComponentBase-i76OGL3z.js";
17
17
  import { g as j } from "./titleStyle-BT5GlpAb.js";
18
18
  import { i as D } from "./install-BfNaEf5I.js";
19
19
  import { u as V, i as R, a as I } from "./installCanvasRenderer-oDYkyVFy.js";