mixdashboards 1.0.92 → 1.0.94

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 (341) hide show
  1. package/dist/{BaseComponent-DjjN5Pou.cjs → BaseComponent-CJ3CP33o.cjs} +1 -1
  2. package/dist/{BaseComponent-B59M7tSp.js → BaseComponent-DQKmWNg3.js} +7 -7
  3. package/dist/{EChartComponentBase-DKvdFD6q.js → EChartComponentBase-DDIaxwYZ.js} +5 -5
  4. package/dist/{EChartComponentBase-B7QBSj3i.cjs → EChartComponentBase-krpMZZqF.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-Cs1MBIiZ.js → EmergencyPlanPanel-DOQyw3ut.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-DErLqKVJ.cjs → EmergencyPlanPanel-np1ogg97.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-oF5o0tdo.js → HistoryPlanDialog-BPfCayU2.js} +1 -1
  8. package/dist/{HistoryPlanDialog-Bh17elAK.cjs → HistoryPlanDialog-Cf24tdc7.cjs} +1 -1
  9. package/dist/{MixiotAppDetailPage-Ct0K17Vp.cjs → MixiotAppDetailPage-BpnbknVi.cjs} +1 -1
  10. package/dist/{MixiotAppDetailPage-DUkgCfVD.js → MixiotAppDetailPage-v_pqsB9G.js} +1 -1
  11. package/dist/{MonitoringMap-DVrV7u6c.js → MonitoringMap-Bw2T1si1.js} +2 -2
  12. package/dist/{MonitoringMap-Dxcwn8rF.cjs → MonitoringMap-dheAZzQE.cjs} +1 -1
  13. package/dist/{UniverSheet-DocH4IMy.js → UniverSheet-B6hZh5pm.js} +2 -2
  14. package/dist/{UniverSheet-CEB2dyPX.cjs → UniverSheet-BtzJLlYy.cjs} +1 -1
  15. package/dist/{accelerationChart-XC8g0CHb.cjs → accelerationChart-Cnd-dMDP.cjs} +1 -1
  16. package/dist/{accelerationChart-DX69nYON.js → accelerationChart-DHYX8g4h.js} +16 -16
  17. package/dist/{actionItem-wACA6UiF.cjs → actionItem-Th4srrc7.cjs} +1 -1
  18. package/dist/{actionItem-Be6q1uls.js → actionItem-jUGiIM9X.js} +2 -2
  19. package/dist/{alarmLevelChart-CHTvWW6X.js → alarmLevelChart-C4bioZHO.js} +2 -2
  20. package/dist/{alarmLevelChart-BRXoKULM.cjs → alarmLevelChart-TRtNoosF.cjs} +1 -1
  21. package/dist/{alertTable-CurveODa.js → alertTable-DfkVfHQW.js} +2 -2
  22. package/dist/{alertTable-DccPPmFd.cjs → alertTable-Hg2OuJqQ.cjs} +1 -1
  23. package/dist/{aliasObjectSelectorDemo-DvOo6NSg.js → aliasObjectSelectorDemo-DgU9r_-i.js} +4 -4
  24. package/dist/{aliasObjectSelectorDemo-Cxo9aCwz.cjs → aliasObjectSelectorDemo-UsWROEy1.cjs} +1 -1
  25. package/dist/{annualRainfallChart-Ub5oA_SQ.js → annualRainfallChart-Bp3EK6l0.js} +2 -2
  26. package/dist/{annualRainfallChart-DJLAkjKJ.cjs → annualRainfallChart-DYPD1pYV.cjs} +1 -1
  27. package/dist/{aqi-Ct8QcCo_.js → aqi-4RKBFJGx.js} +6 -6
  28. package/dist/{aqi-C0-b1zEb.cjs → aqi-xz4tyeqa.cjs} +1 -1
  29. package/dist/{aqiIndass-Dk77_lgt.js → aqiIndass-CayXfAC7.js} +19 -19
  30. package/dist/{aqiIndass-sUpgW4iQ.cjs → aqiIndass-t9VLR1g8.cjs} +1 -1
  31. package/dist/{areaDeformCurve-CNcCdOSs.js → areaDeformCurve-B44i3xnq.js} +2 -2
  32. package/dist/{areaDeformCurve-DUAMysnf.cjs → areaDeformCurve-D_92mFHc.cjs} +1 -1
  33. package/dist/{arrayCard-BADJRc30.cjs → arrayCard-DuC-f-6p.cjs} +1 -1
  34. package/dist/{arrayCard-DDGY9UsN.js → arrayCard-qSBkh9Sx.js} +2 -2
  35. package/dist/{audio-Dy0swEd9.js → audio-CpIxmXqe.js} +2 -2
  36. package/dist/{audio-xYxZCe68.cjs → audio-DJ4D3OVa.cjs} +1 -1
  37. package/dist/{bar-BXErI_ok.cjs → bar-BEHZDtG6.cjs} +1 -1
  38. package/dist/{bar-CIyxCiOI.js → bar-E-GDQOS9.js} +14 -14
  39. package/dist/{bmp-CA9wRPnh.cjs → bmp-DPnUiyw9.cjs} +1 -1
  40. package/dist/{bmp-sd5D0l8a.js → bmp-DdjjQbjw.js} +2 -2
  41. package/dist/{box-BsYnV8Bx.js → box-BHDmMqvo.js} +12 -12
  42. package/dist/{box-C6ln8N0y.cjs → box-By9Dason.cjs} +1 -1
  43. package/dist/{chartConfigPanel-C7aianX3.js → chartConfigPanel-BgMlKFNl.js} +1 -1
  44. package/dist/{chartConfigPanel-CMz54Q6v.cjs → chartConfigPanel-DVTRFAKV.cjs} +1 -1
  45. package/dist/{circleBar-B30Atdea.js → circleBar-Bmn-7b6a.js} +2 -2
  46. package/dist/{circleBar-BX5t2nMJ.cjs → circleBar-Ddyx9kpB.cjs} +1 -1
  47. package/dist/{clock-B-8CrowZ.js → clock-CflJfg1S.js} +2 -2
  48. package/dist/{clock-BXtwHRm9.cjs → clock-cQgCDu_3.cjs} +1 -1
  49. package/dist/{clt-BpuHyjGH.cjs → clt-Byo01zR6.cjs} +1 -1
  50. package/dist/{clt-DMm1Nw5a.js → clt-C2TyVj4q.js} +2 -2
  51. package/dist/{cmc-D5i6gU2D.cjs → cmc-CAWyEhl_.cjs} +1 -1
  52. package/dist/{cmc-6PspnRIQ.js → cmc-CbewFTQI.js} +14 -14
  53. package/dist/{cmp-BgunaL09.cjs → cmp-C9yzfEEf.cjs} +1 -1
  54. package/dist/{cmp-ClpSjWb2.js → cmp-trXYKJPO.js} +2 -2
  55. package/dist/{conclusionCard-BdP1uREl.cjs → conclusionCard-B1IIERg5.cjs} +1 -1
  56. package/dist/{conclusionCard-DfxTxHpK.js → conclusionCard-Dn-8k_po.js} +2 -2
  57. package/dist/{controlList-19cc2oTV.cjs → controlList-CPsTHFpz.cjs} +1 -1
  58. package/dist/{controlList-BxIsykAO.js → controlList-CSi3jV4i.js} +9 -9
  59. package/dist/{controlRecordList-rmzJkEDS.js → controlRecordList-BYEn8U1n.js} +5 -5
  60. package/dist/{controlRecordList-CDhkRSsH.cjs → controlRecordList-CLW7DgQU.cjs} +1 -1
  61. package/dist/{controlRecordListAPP-BD-gf2Bs.cjs → controlRecordListAPP-DIG123vR.cjs} +1 -1
  62. package/dist/{controlRecordListAPP-BX4kK2av.js → controlRecordListAPP-LombQOkp.js} +5 -5
  63. package/dist/{crd-ArYQwkHS.cjs → crd-B11CRPhP.cjs} +1 -1
  64. package/dist/{crd-lDL2KOAW.js → crd-Dw0h0kyO.js} +2 -2
  65. package/dist/{ctrBtn-BiEZgseO.js → ctrBtn-omvA52Uy.js} +20 -20
  66. package/dist/{ctrBtn-CGcvGakl.cjs → ctrBtn-ywTH8YBe.cjs} +1 -1
  67. package/dist/{ctrSet-C1-mq1-v.js → ctrSet-C47fAIpX.js} +16 -16
  68. package/dist/{ctrSet-B0WPaxn_.cjs → ctrSet-CYNUFrlS.cjs} +1 -1
  69. package/dist/{ctrSwitch-CUySXlTR.cjs → ctrSwitch-BdQ94cD3.cjs} +1 -1
  70. package/dist/{ctrSwitch-C_13szcJ.js → ctrSwitch-COZH3Xki.js} +19 -19
  71. package/dist/{dataManagement-DvJNb0TV.js → dataManagement-6A9BhO_z.js} +2 -2
  72. package/dist/{dataManagement-DhqIIR6y.cjs → dataManagement-BAhLGUrU.cjs} +1 -1
  73. package/dist/{dataReport-DYUj8pwD.cjs → dataReport-C013gISr.cjs} +1 -1
  74. package/dist/{dataReport-CwlKwjnX.js → dataReport-DSphGSM3.js} +2 -2
  75. package/dist/{dataTable-CXZF0lrW.cjs → dataTable-DAnK1_fd.cjs} +1 -1
  76. package/dist/{dataTable-C4gJg-yV.js → dataTable-uggcjK7Q.js} +1 -1
  77. package/dist/{datetime-CaDdSDdw.cjs → datetime-BWympowa.cjs} +1 -1
  78. package/dist/{datetime-ZRAJmN_d.js → datetime-D9gnfOdg.js} +2 -2
  79. package/dist/{deepClusterSlipSurface-C6yzS5dc.cjs → deepClusterSlipSurface-C18NcKeC.cjs} +1 -1
  80. package/dist/{deepClusterSlipSurface-BSycbE_x.js → deepClusterSlipSurface-DAp7f9nM.js} +24 -24
  81. package/dist/{deepDataMatrix-CuOJSX0e.js → deepDataMatrix-BFyrd1Xs.js} +13 -13
  82. package/dist/{deepDataMatrix-Cx_0i6Bn.cjs → deepDataMatrix-CnQqNgbw.cjs} +1 -1
  83. package/dist/{deepDisplacement3D-CIAFF6Mk.cjs → deepDisplacement3D-Cr9R2oU9.cjs} +1 -1
  84. package/dist/{deepDisplacement3D-O5A29Yh9.js → deepDisplacement3D-DRVOXAbG.js} +2 -2
  85. package/dist/{deepDisplacementChart-gAD_by8F.cjs → deepDisplacementChart-CqG7YPHv.cjs} +1 -1
  86. package/dist/{deepDisplacementChart-cg7TaHvl.js → deepDisplacementChart-fSIiAvtU.js} +63 -63
  87. package/dist/{deepDisplacementChart-CmwxF9VA.cjs → deepDisplacementChart-fvkxms5F.cjs} +1 -1
  88. package/dist/{deepDisplacementChart-CSTT_OoR.js → deepDisplacementChart-n_7q9VJo.js} +20 -20
  89. package/dist/{deepDisplacementView-Cu5sp5x1.cjs → deepDisplacementView-BGRQwhPs.cjs} +1 -1
  90. package/dist/{deepDisplacementView-Dhkq7R8X.js → deepDisplacementView-DABga_r4.js} +1 -1
  91. package/dist/{deepNodeTemperatureChart-D2QFPyLj.cjs → deepNodeTemperatureChart-Ceaqx0Md.cjs} +1 -1
  92. package/dist/{deepNodeTemperatureChart-BHtKQN-w.js → deepNodeTemperatureChart-DH25aSkV.js} +2 -2
  93. package/dist/{deepTangentAngleChart-ByQlg92Q.js → deepTangentAngleChart-CcEM6kbr.js} +13 -13
  94. package/dist/{deepTangentAngleChart-CjT7UKjk.cjs → deepTangentAngleChart-DRakLdpC.cjs} +1 -1
  95. package/dist/{deepTemperatureField-xV_PNi2G.js → deepTemperatureField-CXo3VM3s.js} +52 -52
  96. package/dist/{deepTemperatureField-DTgK45eZ.cjs → deepTemperatureField-DKdTaecu.cjs} +1 -1
  97. package/dist/{deepTrendChart-DBgmMUOQ.cjs → deepTrendChart-DjApOBNe.cjs} +1 -1
  98. package/dist/{deepTrendChart-BHkS7cqD.js → deepTrendChart-NeIMArTR.js} +16 -16
  99. package/dist/{deviceOnlineStatus-mIDsyFai.cjs → deviceOnlineStatus-B3073oKp.cjs} +1 -1
  100. package/dist/{deviceOnlineStatus-x2HGgX0Z.js → deviceOnlineStatus-bMmaZwOo.js} +2 -2
  101. package/dist/{deviceStatus-fFBNgUnk.js → deviceStatus-CuMgyh0r.js} +7 -7
  102. package/dist/{deviceStatus-CAz7UNXA.cjs → deviceStatus-WYPNhueL.cjs} +1 -1
  103. package/dist/{displacementDataTable-sqXNQCuo.cjs → displacementDataTable-BQoCDlqo.cjs} +1 -1
  104. package/dist/{displacementDataTable-DH1joAGy.js → displacementDataTable-PEEXI5aB.js} +11 -11
  105. package/dist/{displacementTrajectoryChart-DOplm2WI.cjs → displacementTrajectoryChart-BgWXNpIP.cjs} +1 -1
  106. package/dist/{displacementTrajectoryChart-DMrT8etH.js → displacementTrajectoryChart-CxdhS7G_.js} +32 -32
  107. package/dist/{displacementTrendChart-Do55_BUl.cjs → displacementTrendChart-5fu0V6Lz.cjs} +1 -1
  108. package/dist/{displacementTrendChart-CaMNDm-f.js → displacementTrendChart-BojyAmE2.js} +17 -17
  109. package/dist/{dxf-BYb_mxfH.js → dxf-CgpUTadv.js} +2 -2
  110. package/dist/{dxf-BdzF3xvx.cjs → dxf-DuJP6IFj.cjs} +1 -1
  111. package/dist/{dzc-DqNO6VS1.js → dzc-CMtt910G.js} +5 -5
  112. package/dist/{dzc-z6FhUmlo.cjs → dzc-MN8YHrIQ.cjs} +1 -1
  113. package/dist/{emergencyPlan-vgQTrH0X.cjs → emergencyPlan-DCKeHU5X.cjs} +1 -1
  114. package/dist/{emergencyPlan-BXf-0LRs.js → emergencyPlan-DFpC2v0J.js} +3 -3
  115. package/dist/{evn-D0pZ7eVz.cjs → evn-B_t1PAAb.cjs} +1 -1
  116. package/dist/{evn-YODKEBYe.js → evn-tgak_Gtq.js} +2 -2
  117. package/dist/{evolutionChart-CgmxWf_V.js → evolutionChart-C4WZZXZK.js} +3 -3
  118. package/dist/{evolutionChart-ZBuYVuoc.cjs → evolutionChart-DfHuTjZb.cjs} +1 -1
  119. package/dist/{fileViewer-C5n7F8hK.cjs → fileViewer-CNtLmyDt.cjs} +1 -1
  120. package/dist/{fileViewer-D6W4lYC9.js → fileViewer-gtQ6v3ab.js} +2 -2
  121. package/dist/{filterBar-BtyW3O3r.cjs → filterBar-Ck62WVT4.cjs} +1 -1
  122. package/dist/{filterBar-B2EcSFW2.js → filterBar-km1uxSn-.js} +2 -2
  123. package/dist/{fireCombustionCurve-XhkLz9eJ.cjs → fireCombustionCurve-C2YhGsVF.cjs} +1 -1
  124. package/dist/{fireCombustionCurve-BYa_t1Kj.js → fireCombustionCurve-CXZMU6mP.js} +3 -3
  125. package/dist/{fireFilterBar-CDPaQTVh.js → fireFilterBar-Ch3Tn3rr.js} +2 -2
  126. package/dist/{fireFilterBar-kskVSjRC.cjs → fireFilterBar-E_q7YyzX.cjs} +1 -1
  127. package/dist/{fireHistoryTable-D1WHAdJO.js → fireHistoryTable-Bo0NOq7N.js} +2 -2
  128. package/dist/{fireHistoryTable-BfFWM7dn.cjs → fireHistoryTable-CljUtT_x.cjs} +1 -1
  129. package/dist/{gag-CDs2jAvl.cjs → gag-CRcph8A7.cjs} +1 -1
  130. package/dist/{gag-LfKVICbO.js → gag-DgvTasnt.js} +2 -2
  131. package/dist/{gasStationList-DyKzPbSS.js → gasStationList-0-yV6E9M.js} +9 -9
  132. package/dist/{gasStationList-BJJcB5dZ.cjs → gasStationList-BKNG2Io8.cjs} +1 -1
  133. package/dist/{geo3dViewer-BlkAAm5j.js → geo3dViewer-DKNeHhJN.js} +3 -3
  134. package/dist/{geo3dViewer-BboRCk5B.cjs → geo3dViewer-DLReQ9-s.cjs} +1 -1
  135. package/dist/{glbModel-71er-YKJ.cjs → glbModel-B4L4XRYs.cjs} +1 -1
  136. package/dist/{glbModel-BSELk7OE.js → glbModel-CMx1K7LV.js} +2 -2
  137. package/dist/{globalObjectSelector-CIKfqySc.cjs → globalObjectSelector-CNwLE8_0.cjs} +1 -1
  138. package/dist/{globalObjectSelector-C4NjRabc.js → globalObjectSelector-ClUjobt2.js} +1 -1
  139. package/dist/{gnssFilterBar-Bo88FW_c.cjs → gnssFilterBar-BT6IvBC6.cjs} +1 -1
  140. package/dist/{gnssFilterBar-CuMX4SEH.js → gnssFilterBar-CgcgxJKy.js} +2 -2
  141. package/dist/{gnssHistoryTable-wyhk4inh.js → gnssHistoryTable-PArk3wLl.js} +2 -2
  142. package/dist/{gnssHistoryTable-CRcIb3xh.cjs → gnssHistoryTable-V0sopHb0.cjs} +1 -1
  143. package/dist/{gnssMapView-C-75Vfyz.cjs → gnssMapView-DHDmtovh.cjs} +2 -2
  144. package/dist/{gnssMapView-CRuNei47.js → gnssMapView-DYbUmKjS.js} +4 -4
  145. package/dist/{gnssSectionProfile-EBXvV8gc.js → gnssSectionProfile-DS_DB9Ai.js} +2 -2
  146. package/dist/{gnssSectionProfile-CgsLq7IS.cjs → gnssSectionProfile-xYBPivIx.cjs} +1 -1
  147. package/dist/{gnssTimeSeriesChart-i-v1cVV5.js → gnssTimeSeriesChart-B4-rNUXi.js} +2 -2
  148. package/dist/{gnssTimeSeriesChart-CqHugQiR.cjs → gnssTimeSeriesChart-s0v_GPXl.cjs} +1 -1
  149. package/dist/{gnssXYTrajectory-6dtkerlD.js → gnssXYTrajectory-B87pyC2f.js} +2 -2
  150. package/dist/{gnssXYTrajectory-_6bzeTg4.cjs → gnssXYTrajectory-C6EypJSe.cjs} +1 -1
  151. package/dist/{grd-tqFAnZ2D.js → grd-BmhzMkFW.js} +14 -14
  152. package/dist/{grd-DkBg7xHz.cjs → grd-BsFPCARf.cjs} +1 -1
  153. package/dist/{grdIndass-D8hdCjom.cjs → grdIndass-CPUB9rkw.cjs} +1 -1
  154. package/dist/{grdIndass-Ddqpb62w.js → grdIndass-V9pcvGHw.js} +2 -2
  155. package/dist/{grg-sYQS2KAB.js → grg-DJBOmrCT.js} +12 -12
  156. package/dist/{grg-Hc2N_7ub.cjs → grg-DYx3uqxw.cjs} +1 -1
  157. package/dist/{gridview-DanekIAf.js → gridview-A_2r5oMD.js} +2 -2
  158. package/dist/{gridview-BBh3AukP.cjs → gridview-Dmf7WK8F.cjs} +1 -1
  159. package/dist/{groundwaterFilterBar-B0OfbZ8w.cjs → groundwaterFilterBar-Cx2UjJOa.cjs} +1 -1
  160. package/dist/{groundwaterFilterBar-BWbvoN3g.js → groundwaterFilterBar-QYmLEQQ-.js} +2 -2
  161. package/dist/{groundwaterProfileChart-JaRBS63n.js → groundwaterProfileChart-D9a7xk1o.js} +3 -3
  162. package/dist/{groundwaterProfileChart-B9BjKAH8.cjs → groundwaterProfileChart-DB9z4nS_.cjs} +2 -2
  163. package/dist/{groundwaterTimeCurve-BrGWoCOP.cjs → groundwaterTimeCurve-CTre1KFz.cjs} +1 -1
  164. package/dist/{groundwaterTimeCurve-ljem_m3k.js → groundwaterTimeCurve-ClGX5Vr7.js} +3 -3
  165. package/dist/{groupCard-DHkR3fkl.js → groupCard-7ijH_G6N.js} +2 -2
  166. package/dist/{groupCard-DRmbMQK2.cjs → groupCard-CQfI0hkB.cjs} +1 -1
  167. package/dist/{headerBar-BqPszkVG.js → headerBar-DBqyxn7r.js} +2 -2
  168. package/dist/{headerBar-CSvua7HJ.cjs → headerBar-DsCblHFn.cjs} +1 -1
  169. package/dist/{history-5ZH7SlIA.cjs → history-BHbiezXx.cjs} +1 -1
  170. package/dist/{history-CTYZgtKO.js → history-I6Sbd46e.js} +21 -21
  171. package/dist/index-B8X4_OUp.cjs +612 -0
  172. package/dist/{index-C596S3FR.js → index-yfWcELw0.js} +3358 -3276
  173. package/dist/{insarDeformChart-KcW3eGy0.js → insarDeformChart-2lM46TpO.js} +2 -2
  174. package/dist/{insarDeformChart-IP_FpqTn.cjs → insarDeformChart-DD735ZeO.cjs} +1 -1
  175. package/dist/{insarImageViewer-Y4zOC2Dl.cjs → insarImageViewer-BefRXgj3.cjs} +1 -1
  176. package/dist/{insarImageViewer-eoizq5PE.js → insarImageViewer-Cr0q07Gh.js} +2 -2
  177. package/dist/{kds-Ypv2B0fV.cjs → kds-DQFNJAHh.cjs} +1 -1
  178. package/dist/{kds-CLvXYpcx.js → kds-DbGYv9V3.js} +21 -21
  179. package/dist/{kpiCard-CIoPFCa0.js → kpiCard-BBUGn40l.js} +2 -2
  180. package/dist/{kpiCard-BzbMfAnY.cjs → kpiCard-DqE9XLLY.cjs} +1 -1
  181. package/dist/{landslideMap-DNj_UrIs.cjs → landslideMap-B1Osza1s.cjs} +1 -1
  182. package/dist/{landslideMap-B_YGvpMe.js → landslideMap-DBKRG3WQ.js} +15 -15
  183. package/dist/{landslideWarning-B210-Aym.cjs → landslideWarning-CCMOSmbu.cjs} +1 -1
  184. package/dist/{landslideWarning-CXEzKv8a.js → landslideWarning-CZWafalo.js} +32 -32
  185. package/dist/{layerTabs-BIjyBFlq.cjs → layerTabs-CkjTvUpD.cjs} +1 -1
  186. package/dist/{layerTabs-CbfEIbQc.js → layerTabs-ekv5hlF1.js} +2 -2
  187. package/dist/{leaflet-src-B33B2nYW.js → leaflet-src-BASNts_W.js} +1 -1
  188. package/dist/{leaflet-src-CtfSNn4i.cjs → leaflet-src-DOoIS56v.cjs} +1 -1
  189. package/dist/{lerc-CtKLZwuA.js → lerc-C3rGJ3AS.js} +2 -2
  190. package/dist/{lerc-c41VJU5B.cjs → lerc-CJAX-VmU.cjs} +1 -1
  191. package/dist/{lin-yzg8CIhc.js → lin-B989UqR-.js} +5 -5
  192. package/dist/{lin-BpWVq023.cjs → lin-C3G8ojS4.cjs} +1 -1
  193. package/dist/{linIndass-Cdl831hz.cjs → linIndass-B_EZudgP.cjs} +1 -1
  194. package/dist/{linIndass-Bfhb4vFC.js → linIndass-B_MyZtDT.js} +13 -13
  195. package/dist/{lst-Cy3wv6ZP.cjs → lst-Du3HzAAS.cjs} +1 -1
  196. package/dist/{lst-D3vSkXZB.js → lst-yEYuUFNo.js} +2 -2
  197. package/dist/{manualEntry-CcyyNoct.js → manualEntry-BrCbc4dN.js} +2 -2
  198. package/dist/{manualEntry-B__l4SN8.cjs → manualEntry-Dpe4mmqt.cjs} +1 -1
  199. package/dist/{mapBackground-BXRaTXR3.cjs → mapBackground-7fpabNWg.cjs} +1 -1
  200. package/dist/{mapBackground-kHBqDQUI.js → mapBackground-KMQe81yq.js} +3 -3
  201. package/dist/{mappingList-BHlm_asK.js → mappingList-BETmoArV.js} +9 -9
  202. package/dist/{mappingList-BbMAwf4p.cjs → mappingList-C6YqJzCD.cjs} +1 -1
  203. package/dist/{markdownViewer-P-EDWaDf.cjs → markdownViewer-By1PCCx9.cjs} +1 -1
  204. package/dist/{markdownViewer-C2nPOliq.js → markdownViewer-DEum5Sq3.js} +2 -2
  205. package/dist/{mix-control-modal-BYzwSJN9.cjs → mix-control-modal-CIKQuHLu.cjs} +1 -1
  206. package/dist/{mix-control-modal-BlxlEQke.js → mix-control-modal-C_YrfKMR.js} +13 -13
  207. package/dist/{mixGrid-C7QVCY-e.js → mixGrid-Dcpdjhog.js} +11 -11
  208. package/dist/{mixGrid-BEAf-HMl.cjs → mixGrid-WAdZ9FOt.cjs} +1 -1
  209. package/dist/mixdashboards.cjs +1 -1
  210. package/dist/mixdashboards.css +1 -1
  211. package/dist/mixdashboards.js +2 -2
  212. package/dist/{mjpegCamera-xiXWBGwD.cjs → mjpegCamera-5S_zSDRC.cjs} +1 -1
  213. package/dist/{mjpegCamera-BSBOqNGL.js → mjpegCamera-n40ZBceZ.js} +2 -2
  214. package/dist/{monitorAlert-F8brZ-G5.cjs → monitorAlert-BYckQyen.cjs} +1 -1
  215. package/dist/{monitorAlert-KX7ihBCC.js → monitorAlert-Bn96eK5y.js} +20 -20
  216. package/dist/{monitorData-BQZmh2L9.js → monitorData-ChffwZY9.js} +14 -14
  217. package/dist/{monitorData-MmsF7_2B.cjs → monitorData-DqT0oZsT.cjs} +1 -1
  218. package/dist/{monitorSpeedChart-D4yHpJuy.cjs → monitorSpeedChart-B_OjKwHx.cjs} +1 -1
  219. package/dist/{monitorSpeedChart-DsBjKn13.js → monitorSpeedChart-DAG8aM7s.js} +1 -1
  220. package/dist/{mxa-zx1c67sf.js → mxa-D558Kd9S.js} +2 -2
  221. package/dist/{mxa-NGOyTXCo.cjs → mxa-DN2nuVsn.cjs} +1 -1
  222. package/dist/{myValue-CB5_VkLC.js → myValue-CIRtQF6N.js} +2 -2
  223. package/dist/{myValue-BEiGcJm4.cjs → myValue-GiODK3JU.cjs} +1 -1
  224. package/dist/{myValueList-DWAoId4n.js → myValueList-CDHZwFfs.js} +2 -2
  225. package/dist/{myValueList-CmJh3rOk.cjs → myValueList-CM7tw3MA.cjs} +1 -1
  226. package/dist/{objectList-B7VoUJhX.js → objectList-CPWt8cfw.js} +442 -442
  227. package/dist/objectList-Hts0S3rP.cjs +1 -0
  228. package/dist/objectList.tabs-BRCf7OY9.cjs +1 -0
  229. package/dist/objectList.tabs-PfI3XJbJ.js +20 -0
  230. package/dist/{objectListAPP-CILIOX7J.js → objectListAPP-Bm1O9FK8.js} +530 -530
  231. package/dist/objectListAPP-CUFdlUaI.cjs +1 -0
  232. package/dist/{percentBar-wFjS3qnX.cjs → percentBar-TXsRXDGf.cjs} +1 -1
  233. package/dist/{percentBar-Cjt-eHhh.js → percentBar-nYq4n6rA.js} +15 -15
  234. package/dist/{photo-BwRXd_a1.js → photo-CfVWLD7p.js} +23 -23
  235. package/dist/{photo-DPr9_bHE.cjs → photo-lw0wfZLf.cjs} +1 -1
  236. package/dist/{pie-Bhsb7wCM.js → pie-5XFtIfvu.js} +2 -2
  237. package/dist/{pie-BJAslcMQ.cjs → pie-f8erramO.cjs} +1 -1
  238. package/dist/{placeholder-BMTCy9hN.js → placeholder-B0FLbT-i.js} +1 -1
  239. package/dist/{placeholder-DG7hytzw.cjs → placeholder-hqS8Zku3.cjs} +1 -1
  240. package/dist/{pressBtn-DcTfh3zH.js → pressBtn-C_HN1xp4.js} +13 -13
  241. package/dist/{pressBtn-2VAEfSxb.cjs → pressBtn-DXmPUIPV.cjs} +1 -1
  242. package/dist/{processTable-DEuk6vh1.cjs → processTable-BKYUhG3i.cjs} +1 -1
  243. package/dist/{processTable-CSPIzkPI.js → processTable-kUYXEht3.js} +2 -2
  244. package/dist/{progressBar-BgG6adaw.cjs → progressBar-C20IpdwG.cjs} +1 -1
  245. package/dist/{progressBar-CUx2nTzK.js → progressBar-I0SoSWvW.js} +2 -2
  246. package/dist/{progressCircle-BrasnqQa.js → progressCircle-CXa4PxsM.js} +2 -2
  247. package/dist/{progressCircle-Bp5c_Ozg.cjs → progressCircle-g5Jvkl2j.cjs} +1 -1
  248. package/dist/{qrcode-8CEAtCTd.cjs → qrcode-B9gsCPu6.cjs} +1 -1
  249. package/dist/{qrcode-Ds0zkoW0.js → qrcode-D4rppepA.js} +2 -2
  250. package/dist/{raceBar-HxcGIxXh.js → raceBar-673aVpec.js} +15 -15
  251. package/dist/{raceBar-DYhf88PA.cjs → raceBar-DeTBOgp9.cjs} +1 -1
  252. package/dist/{rad-d6E_p3or.cjs → rad-BYdK1-pr.cjs} +1 -1
  253. package/dist/{rad-Dt01D6Sq.js → rad-DMxztkfm.js} +2 -2
  254. package/dist/{radarMapViewer-CIl0E9Jr.cjs → radarMapViewer-Byho9Cy4.cjs} +1 -1
  255. package/dist/{radarMapViewer-DTNiqhPT.js → radarMapViewer-c31u_6-s.js} +2 -2
  256. package/dist/{rainfallFilterBar-Cyr-lcNk.cjs → rainfallFilterBar-DEyqJlhg.cjs} +1 -1
  257. package/dist/{rainfallFilterBar-CgvbQoZt.js → rainfallFilterBar-DP5QcEYa.js} +2 -2
  258. package/dist/{rainfallTimeCurve-BlcizpvR.js → rainfallTimeCurve-D1j1jY4q.js} +3 -3
  259. package/dist/{rainfallTimeCurve-CIobctHL.cjs → rainfallTimeCurve-DFBCodU-.cjs} +1 -1
  260. package/dist/{rangeLin-DjAibGQu.js → rangeLin-DIHwJYbw.js} +24 -24
  261. package/dist/{rangeLin-DnXF_LSw.cjs → rangeLin-qjiBWOUN.cjs} +1 -1
  262. package/dist/{realtimeEvolutionMap-DTq8vTEn.cjs → realtimeEvolutionMap-B1lqsqTu.cjs} +1 -1
  263. package/dist/{realtimeEvolutionMap-NNOUj7CK.js → realtimeEvolutionMap-HFYMlPEo.js} +2 -2
  264. package/dist/{regionBar-HNGYQOk4.js → regionBar-Vew5aANa.js} +2 -2
  265. package/dist/{regionBar-Dn2vPvxX.cjs → regionBar-Y-zCbc5M.cjs} +1 -1
  266. package/dist/{request-73XS8hJO.js → request-C426jmB-.js} +15 -15
  267. package/dist/{request-7CmMbSly.cjs → request-Dfwbc0Ix.cjs} +1 -1
  268. package/dist/{retainer1-_IveOR-G.cjs → retainer1-DZ0d512Q.cjs} +1 -1
  269. package/dist/{retainer1-Dl97htVm.js → retainer1-exoaRu1C.js} +3 -3
  270. package/dist/{retainer2-DBA-LNsh.cjs → retainer2-CbOuAuXM.cjs} +1 -1
  271. package/dist/{retainer2-CCyx95eL.js → retainer2-e5auct4d.js} +3 -3
  272. package/dist/{retainerRecordList-DLjc3O0S.js → retainerRecordList-C6p0YgbS.js} +7 -7
  273. package/dist/{retainerRecordList-BJukB31J.cjs → retainerRecordList-CN5rlQCz.cjs} +1 -1
  274. package/dist/{retainerRecordListAPP-BRClySi7.js → retainerRecordListAPP-BLZP1qfM.js} +11 -11
  275. package/dist/{retainerRecordListAPP-CzUJnr0y.cjs → retainerRecordListAPP-BMfNUL2Y.cjs} +1 -1
  276. package/dist/{ringTopN-B6UXfAQ7.js → ringTopN-B46FO90p.js} +2 -2
  277. package/dist/{ringTopN-BtTdkj35.cjs → ringTopN-Cs-W2GHE.cjs} +1 -1
  278. package/dist/{riskRegionTable-DUbIlT4A.cjs → riskRegionTable-CEMe-j-s.cjs} +1 -1
  279. package/dist/{riskRegionTable-BSNKIgmm.js → riskRegionTable-Dcq9GokX.js} +12 -12
  280. package/dist/{sankey-r7fJCig2.cjs → sankey-BUZeqik5.cjs} +1 -1
  281. package/dist/{sankey-CpXpQ28Y.js → sankey-N4N0atYu.js} +8 -8
  282. package/dist/{scd-Cd1dYi0u.cjs → scd-BxELsSzZ.cjs} +1 -1
  283. package/dist/{scd-BDii1Ody.js → scd-pyN1iu0v.js} +2 -2
  284. package/dist/{sideMenu-KGl1TMT9.js → sideMenu-kdSIC9Q9.js} +2 -2
  285. package/dist/{sideMenu-DdTBrLti.cjs → sideMenu-yek1FXug.cjs} +1 -1
  286. package/dist/{slopeStability-BNZYNDeI.cjs → slopeStability-CFgG5z4k.cjs} +1 -1
  287. package/dist/{slopeStability-KHaHZRF9.js → slopeStability-D0kdENCl.js} +26 -26
  288. package/dist/{speedCurve-DfOOKhu3.js → speedCurve-ByKQYhAP.js} +2 -2
  289. package/dist/{speedCurve-JI7BabEv.cjs → speedCurve-DC30NdWH.cjs} +1 -1
  290. package/dist/{stackedBar-Cwh6eyNj.js → stackedBar-BWe-Gg-j.js} +9 -9
  291. package/dist/{stackedBar-Ch22oNx5.cjs → stackedBar-C_Mzs6KH.cjs} +1 -1
  292. package/dist/{stressFilterBar-DqkA3vpk.cjs → stressFilterBar-69oPb8K0.cjs} +1 -1
  293. package/dist/{stressFilterBar-DYJ6SRbJ.js → stressFilterBar-AxrkNFiu.js} +2 -2
  294. package/dist/{stressTimeCurve-CcgQKn6E.js → stressTimeCurve-CWj8LApY.js} +3 -3
  295. package/dist/{stressTimeCurve-BAM1gLA_.cjs → stressTimeCurve-ULJR6xC7.cjs} +1 -1
  296. package/dist/{swiper-i98iNjVH.js → swiper-BhGhklI6.js} +2 -2
  297. package/dist/{swiper-BI5SC0Tw.cjs → swiper-DG3JtxJa.cjs} +1 -1
  298. package/dist/tablemanList-BpNOi9yE.cjs +1 -0
  299. package/dist/tablemanList-CHg84US8.js +1024 -0
  300. package/dist/{terminalConfigList-BF_eQVQm.js → terminalConfigList-CwAsPCXS.js} +42 -42
  301. package/dist/{terminalConfigList-C8E0B9h5.cjs → terminalConfigList-DJcXdYE0.cjs} +1 -1
  302. package/dist/{terminalList-bqT8olPQ.cjs → terminalList-CbRTo3t2.cjs} +1 -1
  303. package/dist/{terminalList-I7u9vU9s.js → terminalList-pqc72wpO.js} +45 -45
  304. package/dist/{terminalListAPP-Dyj6JV0Y.cjs → terminalListAPP-DAJnN1LF.cjs} +1 -1
  305. package/dist/{terminalListAPP-C8pAt4tP.js → terminalListAPP-DnkjJnKB.js} +17 -17
  306. package/dist/{textbox-o3LGkbm7.js → textbox-ClIdpIhw.js} +2 -2
  307. package/dist/{textbox-DAwUjKVj.cjs → textbox-jioFEUOp.cjs} +1 -1
  308. package/dist/{timeQueryBar-CGivKT2Q.cjs → timeQueryBar-0b_LfSSk.cjs} +1 -1
  309. package/dist/{timeQueryBar-J9eYrlap.js → timeQueryBar-BsAOi911.js} +1 -1
  310. package/dist/{timeSeries-BRz6aekM.cjs → timeSeries-BypOZwTe.cjs} +1 -1
  311. package/dist/{timeSeries-Cl5hKmMr.js → timeSeries-Cij4RwSS.js} +3 -3
  312. package/dist/{timeSeriesCurve-0YqHtEOS.js → timeSeriesCurve-CbNkVXI6.js} +3 -3
  313. package/dist/{timeSeriesCurve-CfLJKtYF.cjs → timeSeriesCurve-fOO2r9gV.cjs} +1 -1
  314. package/dist/{toggleBtn-CbJdpQ_Y.cjs → toggleBtn-BhQia411.cjs} +1 -1
  315. package/dist/{toggleBtn-IrlxxdCc.js → toggleBtn-mPMmYtY4.js} +2 -2
  316. package/dist/{trajectoryConfigPanel-C_lfSjMt.cjs → trajectoryConfigPanel-BDFc6t60.cjs} +1 -1
  317. package/dist/{trajectoryConfigPanel-ajFhmZqM.js → trajectoryConfigPanel-BaO4pluQ.js} +1 -1
  318. package/dist/{trajectoryScatter-DgIewXbg.cjs → trajectoryScatter-CXxpfjmG.cjs} +1 -1
  319. package/dist/{trajectoryScatter-CmWtyq7S.js → trajectoryScatter-DeMwvDfW.js} +2 -2
  320. package/dist/{universalConfigPanel-uIrVPthg.js → universalConfigPanel-7ZN2XUD_.js} +1 -1
  321. package/dist/{universalConfigPanel-BeAzvqBa.cjs → universalConfigPanel-G6QYCr_9.cjs} +1 -1
  322. package/dist/{universalTable-Bq7Kd7fL.js → universalTable-C6rgJ9ql.js} +2 -2
  323. package/dist/{universalTable-DCl0jAda.cjs → universalTable-CjWekzt0.cjs} +1 -1
  324. package/dist/{video-Dbw-JZre.js → video-CkjKwH7G.js} +2 -2
  325. package/dist/{video-8HMZlBYI.cjs → video-DmdF1vxW.cjs} +1 -1
  326. package/dist/{videoMonitor-DhdgNBSb.js → videoMonitor-BcI798fT.js} +13 -13
  327. package/dist/{videoMonitor-2hwOLldO.cjs → videoMonitor-CcBhoOxP.cjs} +1 -1
  328. package/dist/{vlu-CQcWvMK-.js → vlu-CYJV_aWu.js} +2 -2
  329. package/dist/{vlu-DfPaVton.cjs → vlu-HjzXfkGC.cjs} +1 -1
  330. package/dist/{warningOverview-uOag_nZW.js → warningOverview-BhzPVBZI.js} +3 -3
  331. package/dist/{warningOverview-BskwWe2j.cjs → warningOverview-DlfyTr4g.cjs} +1 -1
  332. package/dist/{weather-B1md9HVk.cjs → weather-BX8CgyGy.cjs} +1 -1
  333. package/dist/{weather-CvebIEMR.js → weather-DMlM1tya.js} +2 -2
  334. package/dist/{windLin-Bhrf1Iwf.cjs → windLin-B_DYUbT3.cjs} +1 -1
  335. package/dist/{windLin-CLDJ1Cyh.js → windLin-ColVnL0M.js} +42 -42
  336. package/package.json +1 -1
  337. package/dist/index-CLrFRvna.cjs +0 -612
  338. package/dist/mixiotObjectListApi-C7R9sYdy.js +0 -214
  339. package/dist/mixiotObjectListApi-DhTZ5v0p.cjs +0 -1
  340. package/dist/objectList-BYIX-gD7.cjs +0 -1
  341. package/dist/objectListAPP-B9zJ8-Wa.cjs +0 -1
@@ -27,9 +27,9 @@ var A = (a, i, l) => new Promise((h, y) => {
27
27
  c((l = l.apply(a, i)).next());
28
28
  });
29
29
  import { defineComponent as M, computed as P, openBlock as j, createElementBlock as V, normalizeStyle as x, unref as d, createElementVNode as m, toDisplayString as w, Fragment as W, renderList as U, renderSlot as q, nextTick as K } from "vue";
30
- import { s as G, C as $, _ as J } from "./index-C596S3FR.js";
30
+ import { l as G, C as $, _ as J } from "./index-yfWcELw0.js";
31
31
  import "element-plus";
32
- import { E as Q } from "./EChartComponentBase-DKvdFD6q.js";
32
+ import { E as Q } from "./EChartComponentBase-DDIaxwYZ.js";
33
33
  import { g as X } from "./titleStyle-BT5GlpAb.js";
34
34
  import { A as Y, D as Z } from "./ele-circleBar-icon-DNBUxt0A.js";
35
35
  import { u as tt, i as et, a as ot } from "./installCanvasRenderer-oDYkyVFy.js";
@@ -1,4 +1,4 @@
1
- "use strict";var A=Object.defineProperty,I=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var _=(a,l,n)=>l in a?A(a,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[l]=n,z=(a,l)=>{for(var n in l||(l={}))H.call(l,n)&&_(a,n,l[n]);if(V)for(var n of V(l))$.call(l,n)&&_(a,n,l[n]);return a},B=(a,l)=>I(a,q(l));var j=(a,l,n)=>new Promise((h,v)=>{var g=f=>{try{u(n.next(f))}catch(x){v(x)}},N=f=>{try{u(n.throw(f))}catch(x){v(x)}},u=f=>f.done?h(f.value):Promise.resolve(f.value).then(g,N);u((n=n.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),T=require("./index-CLrFRvna.cjs");require("element-plus");const D=require("./EChartComponentBase-B7QBSj3i.cjs"),L=require("./titleStyle-NSnz6cUg.cjs"),k=require("./ele-circleBar-icon-Da0-L9sa.cjs"),E=require("./installCanvasRenderer-CyhM1Qpl.cjs"),R=require("./install-DV5cEgNV.cjs"),F=require("./install-CltTFs4e.cjs"),M=require("./install-nDY6w-GK.cjs"),P=require("./echarts-BB8O2KSA.cjs"),U={class:"mix-body"},W=["id"],K={class:"bar-wrap"},G={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"环形图",NAME_EN:"CircleBar",ORDER:2,PLATFORM:["pc","screen","mobile"]},J={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",barColor:"#e5e5e5",radiusSize:8,textSize:12,barHeight:10,isHideTitle:!1,showTotal:!0,fixed:{value:2,type:"number",label:"component.options.circleBar_fixed",dependent:"showTotal"},totalText:{value:"总数",type:"string",label:"component.options.circleBar_totalText",dependent:"showTotal"},titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},w=[{name:"参数一",fv:"",color:"#4162ff",object_id:"",default:"10",value:10},{name:"参数二",fv:"",color:"#3bbc6a",object_id:"",default:"10",value:10},{name:"参数三",fv:"",color:"#e24359",object_id:"",default:"10",value:10}],Q=["name","fv","object_id","color","default"],X=["mosaic","statistics","calculate"],Y={useAlias:!1,multiObject:!1,source:"mosaic"},Z={DEFAULT:G,OPTIONS:J,DATA:w,PARAMS:Q,SOURCE:X,COMMON:Y},ee=e.defineComponent(B(z({},Z),{__name:"circleBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){E.use([R.install,F.install,E.install,E.install$1,M.install]);const l=a,n=T.useLinkStore();let h=0;class v extends D.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),barColor:this.getOptionValue("barColor","#e5e5e5"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),barHeight:this.getOptionValue("barHeight",10),isHideTitle:this.getOptionValue("isHideTitle",!1),showTotal:this.getOptionValue("showTotal",!0),fixed:this.getOptionValue("fixed",2),totalText:this.getOptionValue("totalText","总数")}}buildCenterTitleText(){const t=Number(this.getOptionValue("fixed",2)),o=Number.isFinite(t)?t:2,i=this.getOptionValue("totalText","总数");return[`{value|${h.toFixed(o)}}`,`{name|${i||"总数"}}`].join(`
1
+ "use strict";var A=Object.defineProperty,I=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var _=(a,l,n)=>l in a?A(a,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[l]=n,z=(a,l)=>{for(var n in l||(l={}))H.call(l,n)&&_(a,n,l[n]);if(V)for(var n of V(l))$.call(l,n)&&_(a,n,l[n]);return a},B=(a,l)=>I(a,q(l));var j=(a,l,n)=>new Promise((h,v)=>{var g=f=>{try{u(n.next(f))}catch(x){v(x)}},N=f=>{try{u(n.throw(f))}catch(x){v(x)}},u=f=>f.done?h(f.value):Promise.resolve(f.value).then(g,N);u((n=n.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),T=require("./index-B8X4_OUp.cjs");require("element-plus");const D=require("./EChartComponentBase-krpMZZqF.cjs"),L=require("./titleStyle-NSnz6cUg.cjs"),k=require("./ele-circleBar-icon-Da0-L9sa.cjs"),E=require("./installCanvasRenderer-CyhM1Qpl.cjs"),R=require("./install-DV5cEgNV.cjs"),F=require("./install-CltTFs4e.cjs"),M=require("./install-nDY6w-GK.cjs"),P=require("./echarts-BB8O2KSA.cjs"),U={class:"mix-body"},W=["id"],K={class:"bar-wrap"},G={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"环形图",NAME_EN:"CircleBar",ORDER:2,PLATFORM:["pc","screen","mobile"]},J={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",barColor:"#e5e5e5",radiusSize:8,textSize:12,barHeight:10,isHideTitle:!1,showTotal:!0,fixed:{value:2,type:"number",label:"component.options.circleBar_fixed",dependent:"showTotal"},totalText:{value:"总数",type:"string",label:"component.options.circleBar_totalText",dependent:"showTotal"},titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},w=[{name:"参数一",fv:"",color:"#4162ff",object_id:"",default:"10",value:10},{name:"参数二",fv:"",color:"#3bbc6a",object_id:"",default:"10",value:10},{name:"参数三",fv:"",color:"#e24359",object_id:"",default:"10",value:10}],Q=["name","fv","object_id","color","default"],X=["mosaic","statistics","calculate"],Y={useAlias:!1,multiObject:!1,source:"mosaic"},Z={DEFAULT:G,OPTIONS:J,DATA:w,PARAMS:Q,SOURCE:X,COMMON:Y},ee=e.defineComponent(B(z({},Z),{__name:"circleBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){E.use([R.install,F.install,E.install,E.install$1,M.install]);const l=a,n=T.useLinkStore();let h=0;class v extends D.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),barColor:this.getOptionValue("barColor","#e5e5e5"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),barHeight:this.getOptionValue("barHeight",10),isHideTitle:this.getOptionValue("isHideTitle",!1),showTotal:this.getOptionValue("showTotal",!0),fixed:this.getOptionValue("fixed",2),totalText:this.getOptionValue("totalText","总数")}}buildCenterTitleText(){const t=Number(this.getOptionValue("fixed",2)),o=Number.isFinite(t)?t:2,i=this.getOptionValue("totalText","总数");return[`{value|${h.toFixed(o)}}`,`{name|${i||"总数"}}`].join(`
2
2
  `)}init(){return j(this,null,function*(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=w),this.props.conf.data.forEach(o=>{o.default!==void 0&&o.default!==""&&(o.value=Number(o.default)||0)}),h=this.props.conf.data.reduce((o,i)=>o+Number(i.value||0),0),e.nextTick(()=>this.initChart())})}initChart(){var o,i,c;const t=document.querySelector(`#${this.echartId}`);t&&(this.chartObj||(this.chartObj=P.init(t),this.setupResizeListener(t)),(o=this.chartObj)==null||o.setOption(this.getChartOption(),!0),this.props.mode==="preview"&&((i=this.chartObj)==null||i.off("click"),(c=this.chartObj)==null||c.on("click",r=>{var d,S,b,m,p,C;const s=r==null?void 0:r.name;if(typeof s=="string"&&s){const y=((S=(d=this.props.conf)==null?void 0:d.options)==null?void 0:S.linkChannel)==="custom"?(m=(b=this.props.conf)==null?void 0:b.options)==null?void 0:m.customChannel:(C=(p=this.props.conf)==null?void 0:p.options)==null?void 0:C.linkChannel;n.publish(y||"circleBar","circleBar",{objectId:"",deviceId:"",type:"select",fieldKey:s,fv:z({key:s},r),source:"circleBar"})}})))}getChartOption(){const t=this.Style.value,{data:o,name:i}=this.props.conf,c=o.map((s,d)=>s.color||T.COLORS[d]),r=o.map(s=>({value:s.value||0,name:s.name}));return{title:{zlevel:0,show:t.showTotal,text:this.buildCenterTitleText(),textStyle:{rich:{value:{color:t.textColor,fontSize:t.textSize,fontWeight:"bold",lineHeight:t.textSize+8},name:{color:t.textColor,lineHeight:t.textSize+8,fontSize:t.textSize}}},top:"center",left:"center"},color:c,series:[{name:i,type:"pie",radius:["50%","85%"],center:["50%","50%"],data:r,label:{position:"center",show:!1,color:"inherit"},emphasis:{scale:0,label:{show:t.showTotal,fontSize:t.textSize,fontWeight:"bold",formatter:`{d}%
3
3
  {b}`,lineHeight:t.textSize+8}}}]}}setHistoryData(t){var c;if(!t||!(t!=null&&t.length))return;const{data:o}=this.props.conf,i=this.chartObj.getOption();if(h=0,i.series[0].data.forEach((r,s)=>{var d;r.value=(d=t[s].data[0])!=null?d:0,h+=r.value,o[s].value=r.value}),(c=i.title)!=null&&c[0]){const r=this.getOptionValue("showTotal",!0);i.title[0].show=r,i.title[0].text=this.buildCenterTitleText()}this.chartObj.setOption(i,!0)}setSocketData(t){var r,s,d,S;if(!t||!this.chartObj)return;const{data:o,options:i}=this.props.conf,c=this.chartObj.getOption();o.forEach((b,m)=>{var C,y;const p=this.extractDataValue(t,b.fv);b.value=p!=null?p:0,(y=(C=c.series)==null?void 0:C[0])!=null&&y.data&&(c.series[0].data[m].value=p!=null?p:0)}),h=o.reduce((b,m)=>b+Number(m.value||0),0),(r=c.title)!=null&&r[0]&&(c.title[0].text=[`{value|${h.toFixed(((s=i==null?void 0:i.fixed)==null?void 0:s.value)||2)}}`,`{name|${((d=i==null?void 0:i.totalText)==null?void 0:d.value)||"总数"}}`].join(`
4
4
  `)),(S=this.chartObj)==null||S.setOption(c)}}const g=new v(l,"circleBar"),N=g.getEchartId();g.setupLifecycle();const u=g.getStyle(),f=e.computed(()=>L.generateTitleStyle(l.conf.options)),x=O=>{const t=Number(O),o=Number(h);return!isNaN(t)&&!isNaN(o)&&o!==0?(t/o*100).toFixed(2)+"%":"0%"};return(O,t)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(u).bgColor,borderRadius:`${e.unref(u).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(f.value)},e.toDisplayString(a.conf.caption||a.conf.name),5),e.createElementVNode("div",U,[e.createElementVNode("div",{class:"echart-container",id:e.unref(N)},null,8,W),e.createElementVNode("div",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:"bar-item level flex",key:i},[e.createElementVNode("div",{class:"label",style:e.normalizeStyle({color:e.unref(u).textColor,fontSize:`${e.unref(u).textSize}px`})},e.toDisplayString(o.name),5),e.createElementVNode("div",{class:"bar",style:e.normalizeStyle({height:e.unref(u).barHeight+"px",backgroundColor:e.unref(u).barColor})},[e.createElementVNode("div",{class:"percent",style:e.normalizeStyle({backgroundColor:o.color||e.unref(T.COLORS)[i],width:x(o.value)})},null,4)],4),e.createElementVNode("div",{class:"value",style:e.normalizeStyle({color:e.unref(u).textColor,fontSize:`${e.unref(u).textSize}px`})},e.toDisplayString(o.value),5)]))),128))])]),e.renderSlot(O.$slots,"default",{},void 0,!0)],4))}})),te=T._export_sfc(ee,[["__scopeId","data-v-255681d1"]]);exports.default=te;
@@ -11,8 +11,8 @@ var z = (s, n, i) => n in s ? ie(s, n, { enumerable: !0, configurable: !0, writa
11
11
  return s;
12
12
  }, I = (s, n) => se(s, re(n));
13
13
  import { defineComponent as de, ref as m, computed as t, onMounted as he, openBlock as u, createElementBlock as c, normalizeStyle as p, createElementVNode as d, toDisplayString as y, createCommentVNode as k, Fragment as F, renderList as P, renderSlot as ve } from "vue";
14
- import { B as me } from "./BaseComponent-B59M7tSp.js";
15
- import { _ as pe } from "./index-C596S3FR.js";
14
+ import { B as me } from "./BaseComponent-DQKmWNg3.js";
15
+ import { _ as pe } from "./index-yfWcELw0.js";
16
16
  import { A as ge, D as fe } from "./ele-dateTime-icon-BEGFlwID.js";
17
17
  const ye = {
18
18
  key: 0,
@@ -1 +1 @@
1
- "use strict";var X=Object.defineProperty,Z=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var _=(r,n,c)=>n in r?X(r,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[n]=c,x=(r,n)=>{for(var c in n||(n={}))te.call(n,c)&&_(r,c,n[c]);if(V)for(var c of V(n))oe.call(n,c)&&_(r,c,n[c]);return r},M=(r,n)=>Z(r,ee(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),le=require("./BaseComponent-DjjN5Pou.cjs"),ae=require("./index-CLrFRvna.cjs"),w=require("./ele-dateTime-icon-BgZ2_KWW.cjs"),ne={key:0,class:"digital-clock"},ce={key:1,class:"analog-clock-wrapper"},re=["width","height"],ie=["r","stroke","stroke-width"],ue=["r","fill"],se=["x1","y1","x2","y2","stroke"],de={key:0},me=["x","y","fill","font-size"],he=["x2","y2","stroke","stroke-width"],pe=["x2","y2","stroke","stroke-width"],ve=["x2","y2","stroke","stroke-width"],ge=["r","fill"],ke={DEFAULT_ICON:w.DEFAULT_ICON,ACTIVE_ICON:w.ACTIVE_ICON,NAME_CN:"钟表",NAME_EN:"Clock",ORDER:5,PLATFORM:["pc","screen","mobile"]},ye={clockType:{value:"analog",type:"select",label:"时钟类型",options:[{label:"模拟时钟",value:"analog"},{label:"数字时钟",value:"digital"}]},timeFormat:{value:"24",type:"select",label:"时间格式",options:[{label:"24小时制",value:"24"},{label:"12小时制",value:"12"}]},showDate:{value:!0,type:"checkbox",label:"显示日期"},showSecondHand:{value:!0,type:"checkbox",label:"显示秒针"},showNumbers:{value:!0,type:"checkbox",label:"显示数字"},digitalFontSize:32,digitalColor:"#1f2937",digitalDateSize:14,digitalDateColor:"#6b7280",clockSize:200,backgroundColor:"#ffffff",borderColor:"#374151",borderWidth:2,tickColor:"#374151",numberColor:"#1f2937",numberSize:14,hourHandColor:"#374151",minuteHandColor:"#374151",secondHandColor:"#ef4444",centerDotColor:"#374151"},fe=[],Ce=[],Se=[],be={},Ve={DEFAULT:ke,OPTIONS:ye,DATA:fe,PARAMS:Ce,SOURCE:Se,COMMON:be},_e=e.defineComponent(M(x({},Ve),{__name:"clock",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const n=r;class c extends le.BaseComponent{constructor(){super(...arguments),this.timer=null}extractStyles(){return{clockType:this.getOptionValue("clockType","analog"),timeFormat:this.getOptionValue("timeFormat","24"),showDate:this.getOptionValue("showDate",!0),showSecondHand:this.getOptionValue("showSecondHand",!0),showNumbers:this.getOptionValue("showNumbers",!0),clockSize:this.getOptionValue("clockSize",200),backgroundColor:this.getOptionValue("backgroundColor","#ffffff"),borderColor:this.getOptionValue("borderColor","#374151"),borderWidth:this.getOptionValue("borderWidth",2),tickColor:this.getOptionValue("tickColor","#374151"),numberColor:this.getOptionValue("numberColor","#1f2937"),numberSize:this.getOptionValue("numberSize",14),hourHandColor:this.getOptionValue("hourHandColor","#374151"),minuteHandColor:this.getOptionValue("minuteHandColor","#374151"),secondHandColor:this.getOptionValue("secondHandColor","#ef4444"),centerDotColor:this.getOptionValue("centerDotColor","#374151"),digitalFontSize:this.getOptionValue("digitalFontSize",32),digitalColor:this.getOptionValue("digitalColor","#1f2937"),digitalDateSize:this.getOptionValue("digitalDateSize",14),digitalDateColor:this.getOptionValue("digitalDateColor","#6b7280")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.timer&&clearInterval(this.timer),p(),this.timer=setInterval(p,1e3)}cleanup(){this.timer&&clearInterval(this.timer)}}const v=new c(n,"clock");v.setupLifecycle();const o=v.getStyle(),g=e.ref(""),h=e.ref(""),d=e.ref(0),s=e.ref(0),m=e.ref(0),N=e.computed(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})),D=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.clockType)||"analog"}),O=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.timeFormat)||"24"}),k=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showDate)!==!1}),E=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showSecondHand)!==!1}),H=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showNumbers)!==!1}),u=e.computed(()=>{var a;const t=(a=o.value)==null?void 0:a.clockSize,l=Number(t);return typeof l=="number"&&!Number.isNaN(l)&&l>0?l:200}),i=e.computed(()=>{const t=u.value;return typeof t=="number"&&!Number.isNaN(t)?t*.45:90}),z=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.backgroundColor)||"#ffffff"}),I=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.borderColor)||"#374151"}),y=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.borderWidth)||2}),B=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.tickColor)||"#374151"}),T=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.numberColor)||"#1f2937"}),F=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.numberSize)||14}),P=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.hourHandColor)||"#374151"}),$=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.minuteHandColor)||"#374151"}),A=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.secondHandColor)||"#ef4444"}),L=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.centerDotColor)||"#374151"}),f=e.computed(()=>i.value*.5),C=e.computed(()=>i.value*.7),S=e.computed(()=>i.value*.8),W=e.computed(()=>Math.max(3,u.value*.015)),R=e.computed(()=>Math.max(2,u.value*.01)),q=e.computed(()=>Math.max(1,u.value*.005)),U=e.computed(()=>Math.max(3,u.value*.015)),j=e.computed(()=>({width:`${u.value}px`,height:`${u.value}px`,maxWidth:"100%",maxHeight:"100%"})),Y=e.computed(()=>{var t,l;return{fontSize:`${((t=o.value)==null?void 0:t.digitalFontSize)||32}px`,color:((l=o.value)==null?void 0:l.digitalColor)||"#1f2937",fontWeight:"bold",fontFamily:"monospace"}}),b=e.computed(()=>{var t,l;return{fontSize:`${((t=o.value)==null?void 0:t.digitalDateSize)||14}px`,color:((l=o.value)==null?void 0:l.digitalDateColor)||"#6b7280",fontFamily:"monospace",marginTop:"8px"}}),p=()=>{const t=new Date;d.value=t.getHours(),s.value=t.getMinutes(),m.value=t.getSeconds();let l=d.value,a="";O.value==="12"&&(a=l>=12?" PM":" AM",l=l%12,l===0&&(l=12)),g.value=`${l.toString().padStart(2,"0")}:${s.value.toString().padStart(2,"0")}:${m.value.toString().padStart(2,"0")}${a}`;const G=t.getFullYear(),J=(t.getMonth()+1).toString().padStart(2,"0"),K=t.getDate().toString().padStart(2,"0"),Q=["周日","周一","周二","周三","周四","周五","周六"];h.value=`${G}-${J}-${K} ${Q[t.getDay()]}`};return e.onMounted(()=>p()),(t,l)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(N.value),class:"mix-component"},[D.value==="digital"?(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("div",{class:"time-display",style:e.normalizeStyle(Y.value)},e.toDisplayString(g.value),5),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-display",style:e.normalizeStyle(b.value)},e.toDisplayString(h.value),5)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",{class:"analog-clock",style:e.normalizeStyle(j.value)},[(e.openBlock(),e.createElementBlock("svg",{width:u.value,height:u.value,viewBox:"0 0 200 200",class:"clock-svg"},[e.createElementVNode("circle",{cx:"100",cy:"100",r:i.value,stroke:I.value,"stroke-width":y.value,fill:"none"},null,8,ie),e.createElementVNode("circle",{cx:"100",cy:"100",r:i.value-y.value/2,fill:z.value},null,8,ue),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,a=>e.createElementVNode("g",{key:`hour-${a}`},[e.createElementVNode("line",{x1:100+(i.value-15)*Math.cos((a*30-90)*Math.PI/180),y1:100+(i.value-15)*Math.sin((a*30-90)*Math.PI/180),x2:100+(i.value-5)*Math.cos((a*30-90)*Math.PI/180),y2:100+(i.value-5)*Math.sin((a*30-90)*Math.PI/180),stroke:B.value,"stroke-width":"2"},null,8,se)])),64)),H.value?(e.openBlock(),e.createElementBlock("g",de,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,a=>e.createElementVNode("text",{key:`number-${a}`,x:100+(i.value-25)*Math.cos((a*30-90)*Math.PI/180),y:100+(i.value-25)*Math.sin((a*30-90)*Math.PI/180),"text-anchor":"middle","dominant-baseline":"central",fill:T.value,"font-size":F.value,"font-weight":"bold"},e.toDisplayString(a),9,me)),64))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:"100",y1:"100",x2:100+f.value*Math.cos((d.value*30+s.value*.5-90)*Math.PI/180),y2:100+f.value*Math.sin((d.value*30+s.value*.5-90)*Math.PI/180),stroke:P.value,"stroke-width":W.value,"stroke-linecap":"round"},null,8,he),e.createElementVNode("line",{x1:"100",y1:"100",x2:100+C.value*Math.cos((s.value*6-90)*Math.PI/180),y2:100+C.value*Math.sin((s.value*6-90)*Math.PI/180),stroke:$.value,"stroke-width":R.value,"stroke-linecap":"round"},null,8,pe),E.value?(e.openBlock(),e.createElementBlock("line",{key:1,x1:"100",y1:"100",x2:100+S.value*Math.cos((m.value*6-90)*Math.PI/180),y2:100+S.value*Math.sin((m.value*6-90)*Math.PI/180),stroke:A.value,"stroke-width":q.value,"stroke-linecap":"round"},null,8,ve)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:"100",cy:"100",r:U.value,fill:L.value},null,8,ge)],8,re))],4),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-display",style:e.normalizeStyle(b.value)},e.toDisplayString(h.value),5)):e.createCommentVNode("",!0)])),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),xe=ae._export_sfc(_e,[["__scopeId","data-v-d8289d01"]]);exports.default=xe;
1
+ "use strict";var X=Object.defineProperty,Z=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var _=(r,n,c)=>n in r?X(r,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):r[n]=c,x=(r,n)=>{for(var c in n||(n={}))te.call(n,c)&&_(r,c,n[c]);if(V)for(var c of V(n))oe.call(n,c)&&_(r,c,n[c]);return r},M=(r,n)=>Z(r,ee(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),le=require("./BaseComponent-CJ3CP33o.cjs"),ae=require("./index-B8X4_OUp.cjs"),w=require("./ele-dateTime-icon-BgZ2_KWW.cjs"),ne={key:0,class:"digital-clock"},ce={key:1,class:"analog-clock-wrapper"},re=["width","height"],ie=["r","stroke","stroke-width"],ue=["r","fill"],se=["x1","y1","x2","y2","stroke"],de={key:0},me=["x","y","fill","font-size"],he=["x2","y2","stroke","stroke-width"],pe=["x2","y2","stroke","stroke-width"],ve=["x2","y2","stroke","stroke-width"],ge=["r","fill"],ke={DEFAULT_ICON:w.DEFAULT_ICON,ACTIVE_ICON:w.ACTIVE_ICON,NAME_CN:"钟表",NAME_EN:"Clock",ORDER:5,PLATFORM:["pc","screen","mobile"]},ye={clockType:{value:"analog",type:"select",label:"时钟类型",options:[{label:"模拟时钟",value:"analog"},{label:"数字时钟",value:"digital"}]},timeFormat:{value:"24",type:"select",label:"时间格式",options:[{label:"24小时制",value:"24"},{label:"12小时制",value:"12"}]},showDate:{value:!0,type:"checkbox",label:"显示日期"},showSecondHand:{value:!0,type:"checkbox",label:"显示秒针"},showNumbers:{value:!0,type:"checkbox",label:"显示数字"},digitalFontSize:32,digitalColor:"#1f2937",digitalDateSize:14,digitalDateColor:"#6b7280",clockSize:200,backgroundColor:"#ffffff",borderColor:"#374151",borderWidth:2,tickColor:"#374151",numberColor:"#1f2937",numberSize:14,hourHandColor:"#374151",minuteHandColor:"#374151",secondHandColor:"#ef4444",centerDotColor:"#374151"},fe=[],Ce=[],Se=[],be={},Ve={DEFAULT:ke,OPTIONS:ye,DATA:fe,PARAMS:Ce,SOURCE:Se,COMMON:be},_e=e.defineComponent(M(x({},Ve),{__name:"clock",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const n=r;class c extends le.BaseComponent{constructor(){super(...arguments),this.timer=null}extractStyles(){return{clockType:this.getOptionValue("clockType","analog"),timeFormat:this.getOptionValue("timeFormat","24"),showDate:this.getOptionValue("showDate",!0),showSecondHand:this.getOptionValue("showSecondHand",!0),showNumbers:this.getOptionValue("showNumbers",!0),clockSize:this.getOptionValue("clockSize",200),backgroundColor:this.getOptionValue("backgroundColor","#ffffff"),borderColor:this.getOptionValue("borderColor","#374151"),borderWidth:this.getOptionValue("borderWidth",2),tickColor:this.getOptionValue("tickColor","#374151"),numberColor:this.getOptionValue("numberColor","#1f2937"),numberSize:this.getOptionValue("numberSize",14),hourHandColor:this.getOptionValue("hourHandColor","#374151"),minuteHandColor:this.getOptionValue("minuteHandColor","#374151"),secondHandColor:this.getOptionValue("secondHandColor","#ef4444"),centerDotColor:this.getOptionValue("centerDotColor","#374151"),digitalFontSize:this.getOptionValue("digitalFontSize",32),digitalColor:this.getOptionValue("digitalColor","#1f2937"),digitalDateSize:this.getOptionValue("digitalDateSize",14),digitalDateColor:this.getOptionValue("digitalDateColor","#6b7280")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),this.timer&&clearInterval(this.timer),p(),this.timer=setInterval(p,1e3)}cleanup(){this.timer&&clearInterval(this.timer)}}const v=new c(n,"clock");v.setupLifecycle();const o=v.getStyle(),g=e.ref(""),h=e.ref(""),d=e.ref(0),s=e.ref(0),m=e.ref(0),N=e.computed(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})),D=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.clockType)||"analog"}),O=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.timeFormat)||"24"}),k=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showDate)!==!1}),E=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showSecondHand)!==!1}),H=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.showNumbers)!==!1}),u=e.computed(()=>{var a;const t=(a=o.value)==null?void 0:a.clockSize,l=Number(t);return typeof l=="number"&&!Number.isNaN(l)&&l>0?l:200}),i=e.computed(()=>{const t=u.value;return typeof t=="number"&&!Number.isNaN(t)?t*.45:90}),z=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.backgroundColor)||"#ffffff"}),I=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.borderColor)||"#374151"}),y=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.borderWidth)||2}),B=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.tickColor)||"#374151"}),T=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.numberColor)||"#1f2937"}),F=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.numberSize)||14}),P=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.hourHandColor)||"#374151"}),$=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.minuteHandColor)||"#374151"}),A=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.secondHandColor)||"#ef4444"}),L=e.computed(()=>{var t;return((t=o.value)==null?void 0:t.centerDotColor)||"#374151"}),f=e.computed(()=>i.value*.5),C=e.computed(()=>i.value*.7),S=e.computed(()=>i.value*.8),W=e.computed(()=>Math.max(3,u.value*.015)),R=e.computed(()=>Math.max(2,u.value*.01)),q=e.computed(()=>Math.max(1,u.value*.005)),U=e.computed(()=>Math.max(3,u.value*.015)),j=e.computed(()=>({width:`${u.value}px`,height:`${u.value}px`,maxWidth:"100%",maxHeight:"100%"})),Y=e.computed(()=>{var t,l;return{fontSize:`${((t=o.value)==null?void 0:t.digitalFontSize)||32}px`,color:((l=o.value)==null?void 0:l.digitalColor)||"#1f2937",fontWeight:"bold",fontFamily:"monospace"}}),b=e.computed(()=>{var t,l;return{fontSize:`${((t=o.value)==null?void 0:t.digitalDateSize)||14}px`,color:((l=o.value)==null?void 0:l.digitalDateColor)||"#6b7280",fontFamily:"monospace",marginTop:"8px"}}),p=()=>{const t=new Date;d.value=t.getHours(),s.value=t.getMinutes(),m.value=t.getSeconds();let l=d.value,a="";O.value==="12"&&(a=l>=12?" PM":" AM",l=l%12,l===0&&(l=12)),g.value=`${l.toString().padStart(2,"0")}:${s.value.toString().padStart(2,"0")}:${m.value.toString().padStart(2,"0")}${a}`;const G=t.getFullYear(),J=(t.getMonth()+1).toString().padStart(2,"0"),K=t.getDate().toString().padStart(2,"0"),Q=["周日","周一","周二","周三","周四","周五","周六"];h.value=`${G}-${J}-${K} ${Q[t.getDay()]}`};return e.onMounted(()=>p()),(t,l)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(N.value),class:"mix-component"},[D.value==="digital"?(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("div",{class:"time-display",style:e.normalizeStyle(Y.value)},e.toDisplayString(g.value),5),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-display",style:e.normalizeStyle(b.value)},e.toDisplayString(h.value),5)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",{class:"analog-clock",style:e.normalizeStyle(j.value)},[(e.openBlock(),e.createElementBlock("svg",{width:u.value,height:u.value,viewBox:"0 0 200 200",class:"clock-svg"},[e.createElementVNode("circle",{cx:"100",cy:"100",r:i.value,stroke:I.value,"stroke-width":y.value,fill:"none"},null,8,ie),e.createElementVNode("circle",{cx:"100",cy:"100",r:i.value-y.value/2,fill:z.value},null,8,ue),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,a=>e.createElementVNode("g",{key:`hour-${a}`},[e.createElementVNode("line",{x1:100+(i.value-15)*Math.cos((a*30-90)*Math.PI/180),y1:100+(i.value-15)*Math.sin((a*30-90)*Math.PI/180),x2:100+(i.value-5)*Math.cos((a*30-90)*Math.PI/180),y2:100+(i.value-5)*Math.sin((a*30-90)*Math.PI/180),stroke:B.value,"stroke-width":"2"},null,8,se)])),64)),H.value?(e.openBlock(),e.createElementBlock("g",de,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,a=>e.createElementVNode("text",{key:`number-${a}`,x:100+(i.value-25)*Math.cos((a*30-90)*Math.PI/180),y:100+(i.value-25)*Math.sin((a*30-90)*Math.PI/180),"text-anchor":"middle","dominant-baseline":"central",fill:T.value,"font-size":F.value,"font-weight":"bold"},e.toDisplayString(a),9,me)),64))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:"100",y1:"100",x2:100+f.value*Math.cos((d.value*30+s.value*.5-90)*Math.PI/180),y2:100+f.value*Math.sin((d.value*30+s.value*.5-90)*Math.PI/180),stroke:P.value,"stroke-width":W.value,"stroke-linecap":"round"},null,8,he),e.createElementVNode("line",{x1:"100",y1:"100",x2:100+C.value*Math.cos((s.value*6-90)*Math.PI/180),y2:100+C.value*Math.sin((s.value*6-90)*Math.PI/180),stroke:$.value,"stroke-width":R.value,"stroke-linecap":"round"},null,8,pe),E.value?(e.openBlock(),e.createElementBlock("line",{key:1,x1:"100",y1:"100",x2:100+S.value*Math.cos((m.value*6-90)*Math.PI/180),y2:100+S.value*Math.sin((m.value*6-90)*Math.PI/180),stroke:A.value,"stroke-width":q.value,"stroke-linecap":"round"},null,8,ve)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:"100",cy:"100",r:U.value,fill:L.value},null,8,ge)],8,re))],4),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"date-display",style:e.normalizeStyle(b.value)},e.toDisplayString(h.value),5)):e.createCommentVNode("",!0)])),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),xe=ae._export_sfc(_e,[["__scopeId","data-v-d8289d01"]]);exports.default=xe;
@@ -1 +1 @@
1
- "use strict";var A=Object.defineProperty,U=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var B=(s,l,n)=>l in s?A(s,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[l]=n,x=(s,l)=>{for(var n in l||(l={}))M.call(l,n)&&B(s,n,l[n]);if(k)for(var n of k(l))P.call(l,n)&&B(s,n,l[n]);return s},O=(s,l)=>U(s,$(l));var V=(s,l,n)=>new Promise((v,u)=>{var S=m=>{try{p(n.next(m))}catch(_){u(_)}},b=m=>{try{p(n.throw(m))}catch(_){u(_)}},p=m=>m.done?v(m.value):Promise.resolve(m.value).then(S,b);p((n=n.apply(s,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),F=require("./BaseComponent-DjjN5Pou.cjs"),g=require("./index-CLrFRvna.cjs"),H=require("./titleStyle-NSnz6cUg.cjs"),C=require("element-plus"),T=require("./ele-clt-icon-BEVOS7Tq.cjs"),R={class:"item-val"},L={class:"w-full flex justify-end"},W={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"项目采集",NAME_EN:"Project",ORDER:1,PLATFORM:["pc","screen","mobile"]},G={bgColor:"#fff",projectColor:"#999",projectSize:14,paramColor:"#333",labelWidth:64,paramSize:12,paramHeight:32,radiusSize:8,type:{value:"project",type:"radio",option:[{value:"project",label:"component.collect.projectType"},{value:"object",label:"component.collect.objectType"}],label:"component.collect.collectType"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},J=[{project_id:"",object_id:""}],K=["project_id","object_id"],Q={DEFAULT:W,OPTIONS:G,DATA:J,PARAMS:K,COMMON:{}},X=e.defineComponent(O(x({},Q),{__name:"clt",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(s){const l=s;class n extends F.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),projectColor:this.getOptionValue("projectColor","#999"),projectSize:this.getOptionValue("projectSize",14),paramColor:this.getOptionValue("paramColor","#333"),labelWidth:this.getOptionValue("labelWidth",64),paramSize:this.getOptionValue("paramSize",12),paramHeight:this.getOptionValue("paramHeight",32),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1),type:this.getOptionValue("type","project")}}init(){return V(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),_()})}}const v=new n(l,"clt");v.setupLifecycle();const u=v.getStyle(),S=l.conf,b=e.computed(()=>H.generateTitleStyle(l.conf.options)),p=e.ref([{name:"离线项目",data:[{name:"采集项",type:"Integer",unit:"℃",value:""}]}]);let m=0;const _=()=>V(null,null,function*(){const{data:a}=l.conf;p.value=[];const d=a.filter(f=>f.project_id).map(f=>f.project_id);if(!d.length)return;const t=++m,r={where_in:JSON.stringify([["uid",d.join(",")]])},{result:c}=yield g.api.post("get_collect_list",r);if(t!==m)return;const o=c==null?void 0:c.data;Array.isArray(o)&&o.length>0&&(p.value=o.map(f=>({name:f.name,uid:f.uid,object_id:f.object_id,data:z(f.script)})))}),z=a=>{const d=[];return a.forEach(t=>{d.push({name:t.label_loc,type:t.type,unit:t.unit,key:t.key})}),d},E=e.computed(()=>{let a=!0;return p.value.forEach(d=>{d.data.forEach(t=>{(t.value||t.value===0)&&(a=!1)})}),a}),q=()=>{l.mode!=="edit"&&(u.value.type==="object"?D():w())},w=()=>{const a=[],d=g.auth.getUser();p.value.forEach(t=>{const r={};if(t.data.forEach(o=>{(o.value||o.value===0)&&(r[o.key]=["Integer","Float"].includes(o.type)?Number(o.value):o.type==="Bool"?!!o.value:o.value)}),!Object.keys(r).length)return;const c={name:t.name,value:r,collect_id:t.uid,collector:d.name};a.push(g.api.post("add_collect_value_without_object",c))}),Promise.all(a).then(t=>{let r=!0;t.forEach(c=>{c.code!==200&&(r=!1,C.ElMessage.error(c.msg))}),r&&C.ElMessage.success("操作成功")})},D=()=>{const a=[],d=g.auth.getUser();p.value.forEach(t=>{const r={};if(t.data.forEach(o=>{(o.value||o.value===0)&&(r[o.key]=["Integer","Float"].includes(o.type)?Number(o.value):o.type==="Bool"?!!o.value:o.value)}),!Object.keys(r).length)return;const c={name:t.name,value:r,collect_id:t.uid,object_id:t.object_id||l.uid,collector:d.name};a.push(g.api.post("add_collect_value",c))}),Promise.all(a).then(t=>{let r=!0;t.forEach(c=>{c.code!==200&&(r=!1,C.ElMessage.error(c.msg))}),r&&C.ElMessage.success("操作成功")})};return(a,d)=>{const t=h.ElInput,r=h.ElInputNumber,c=h.ElRadio,o=h.ElRadioGroup,f=h.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(u).bgColor,borderRadius:`${e.unref(u).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(b.value)},e.toDisplayString(e.unref(S).caption||e.unref(S).name),5),e.createElementVNode("div",{class:"mix-body",style:e.normalizeStyle({height:e.unref(u).isHideTitle?"100%":"calc(100% - 42px)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(j,N)=>(e.openBlock(),e.createElementBlock("div",{key:N},[e.createElementVNode("div",{class:"item-title",style:e.normalizeStyle({fontSize:`${e.unref(u).projectSize}px`,color:e.unref(u).projectColor})},e.toDisplayString(j.name),5),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.data,(i,I)=>(e.openBlock(),e.createElementBlock("div",{class:"item-wrap",key:`${N}_${I}`},[e.createElementVNode("div",{class:"item-item",style:e.normalizeStyle({width:`${e.unref(u).labelWidth}px`,fontSize:`${e.unref(u).paramSize}px`,color:e.unref(u).paramColor,height:`${e.unref(u).paramHeight}px`})},e.toDisplayString(i.name)+": ",5),e.createElementVNode("div",R,[i.type==="String"?(e.openBlock(),e.createBlock(t,{key:0,type:"text",modelValue:i.value,"onUpdate:modelValue":y=>i.value=y},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),i.type==="Integer"?(e.openBlock(),e.createBlock(r,{key:1,style:{width:"100%"},modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,precision:0,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),i.type==="Float"?(e.openBlock(),e.createBlock(r,{key:2,style:{width:"100%"},modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),i.type==="Bool"?(e.openBlock(),e.createBlock(o,{key:3,value:i.value,"onUpdate:value":y=>i.value=y},{default:e.withCtx(()=>[e.createVNode(c,{value:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("common.yes")),1)]),_:1}),e.createVNode(c,{value:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("common.no")),1)]),_:1})]),_:1},8,["value","onUpdate:value"])):e.createCommentVNode("",!0)])]))),128))]))),128)),e.createElementVNode("div",L,[e.createVNode(f,{type:E.value?"default":"primary",disabled:E.value,onClick:q},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])],4),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),Y=g._export_sfc(X,[["__scopeId","data-v-c54bd4ad"]]);exports.default=Y;
1
+ "use strict";var A=Object.defineProperty,U=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var M=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var B=(s,l,n)=>l in s?A(s,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[l]=n,x=(s,l)=>{for(var n in l||(l={}))M.call(l,n)&&B(s,n,l[n]);if(k)for(var n of k(l))P.call(l,n)&&B(s,n,l[n]);return s},O=(s,l)=>U(s,$(l));var V=(s,l,n)=>new Promise((v,u)=>{var S=m=>{try{p(n.next(m))}catch(_){u(_)}},b=m=>{try{p(n.throw(m))}catch(_){u(_)}},p=m=>m.done?v(m.value):Promise.resolve(m.value).then(S,b);p((n=n.apply(s,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),F=require("./BaseComponent-CJ3CP33o.cjs"),g=require("./index-B8X4_OUp.cjs"),H=require("./titleStyle-NSnz6cUg.cjs"),C=require("element-plus"),T=require("./ele-clt-icon-BEVOS7Tq.cjs"),R={class:"item-val"},L={class:"w-full flex justify-end"},W={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"项目采集",NAME_EN:"Project",ORDER:1,PLATFORM:["pc","screen","mobile"]},G={bgColor:"#fff",projectColor:"#999",projectSize:14,paramColor:"#333",labelWidth:64,paramSize:12,paramHeight:32,radiusSize:8,type:{value:"project",type:"radio",option:[{value:"project",label:"component.collect.projectType"},{value:"object",label:"component.collect.objectType"}],label:"component.collect.collectType"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},J=[{project_id:"",object_id:""}],K=["project_id","object_id"],Q={DEFAULT:W,OPTIONS:G,DATA:J,PARAMS:K,COMMON:{}},X=e.defineComponent(O(x({},Q),{__name:"clt",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(s){const l=s;class n extends F.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),projectColor:this.getOptionValue("projectColor","#999"),projectSize:this.getOptionValue("projectSize",14),paramColor:this.getOptionValue("paramColor","#333"),labelWidth:this.getOptionValue("labelWidth",64),paramSize:this.getOptionValue("paramSize",12),paramHeight:this.getOptionValue("paramHeight",32),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1),type:this.getOptionValue("type","project")}}init(){return V(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),_()})}}const v=new n(l,"clt");v.setupLifecycle();const u=v.getStyle(),S=l.conf,b=e.computed(()=>H.generateTitleStyle(l.conf.options)),p=e.ref([{name:"离线项目",data:[{name:"采集项",type:"Integer",unit:"℃",value:""}]}]);let m=0;const _=()=>V(null,null,function*(){const{data:a}=l.conf;p.value=[];const d=a.filter(f=>f.project_id).map(f=>f.project_id);if(!d.length)return;const t=++m,r={where_in:JSON.stringify([["uid",d.join(",")]])},{result:c}=yield g.api.post("get_collect_list",r);if(t!==m)return;const o=c==null?void 0:c.data;Array.isArray(o)&&o.length>0&&(p.value=o.map(f=>({name:f.name,uid:f.uid,object_id:f.object_id,data:z(f.script)})))}),z=a=>{const d=[];return a.forEach(t=>{d.push({name:t.label_loc,type:t.type,unit:t.unit,key:t.key})}),d},E=e.computed(()=>{let a=!0;return p.value.forEach(d=>{d.data.forEach(t=>{(t.value||t.value===0)&&(a=!1)})}),a}),q=()=>{l.mode!=="edit"&&(u.value.type==="object"?D():w())},w=()=>{const a=[],d=g.auth.getUser();p.value.forEach(t=>{const r={};if(t.data.forEach(o=>{(o.value||o.value===0)&&(r[o.key]=["Integer","Float"].includes(o.type)?Number(o.value):o.type==="Bool"?!!o.value:o.value)}),!Object.keys(r).length)return;const c={name:t.name,value:r,collect_id:t.uid,collector:d.name};a.push(g.api.post("add_collect_value_without_object",c))}),Promise.all(a).then(t=>{let r=!0;t.forEach(c=>{c.code!==200&&(r=!1,C.ElMessage.error(c.msg))}),r&&C.ElMessage.success("操作成功")})},D=()=>{const a=[],d=g.auth.getUser();p.value.forEach(t=>{const r={};if(t.data.forEach(o=>{(o.value||o.value===0)&&(r[o.key]=["Integer","Float"].includes(o.type)?Number(o.value):o.type==="Bool"?!!o.value:o.value)}),!Object.keys(r).length)return;const c={name:t.name,value:r,collect_id:t.uid,object_id:t.object_id||l.uid,collector:d.name};a.push(g.api.post("add_collect_value",c))}),Promise.all(a).then(t=>{let r=!0;t.forEach(c=>{c.code!==200&&(r=!1,C.ElMessage.error(c.msg))}),r&&C.ElMessage.success("操作成功")})};return(a,d)=>{const t=h.ElInput,r=h.ElInputNumber,c=h.ElRadio,o=h.ElRadioGroup,f=h.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(u).bgColor,borderRadius:`${e.unref(u).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(b.value)},e.toDisplayString(e.unref(S).caption||e.unref(S).name),5),e.createElementVNode("div",{class:"mix-body",style:e.normalizeStyle({height:e.unref(u).isHideTitle?"100%":"calc(100% - 42px)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(j,N)=>(e.openBlock(),e.createElementBlock("div",{key:N},[e.createElementVNode("div",{class:"item-title",style:e.normalizeStyle({fontSize:`${e.unref(u).projectSize}px`,color:e.unref(u).projectColor})},e.toDisplayString(j.name),5),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.data,(i,I)=>(e.openBlock(),e.createElementBlock("div",{class:"item-wrap",key:`${N}_${I}`},[e.createElementVNode("div",{class:"item-item",style:e.normalizeStyle({width:`${e.unref(u).labelWidth}px`,fontSize:`${e.unref(u).paramSize}px`,color:e.unref(u).paramColor,height:`${e.unref(u).paramHeight}px`})},e.toDisplayString(i.name)+": ",5),e.createElementVNode("div",R,[i.type==="String"?(e.openBlock(),e.createBlock(t,{key:0,type:"text",modelValue:i.value,"onUpdate:modelValue":y=>i.value=y},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),i.type==="Integer"?(e.openBlock(),e.createBlock(r,{key:1,style:{width:"100%"},modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,precision:0,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),i.type==="Float"?(e.openBlock(),e.createBlock(r,{key:2,style:{width:"100%"},modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),i.type==="Bool"?(e.openBlock(),e.createBlock(o,{key:3,value:i.value,"onUpdate:value":y=>i.value=y},{default:e.withCtx(()=>[e.createVNode(c,{value:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("common.yes")),1)]),_:1}),e.createVNode(c,{value:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("common.no")),1)]),_:1})]),_:1},8,["value","onUpdate:value"])):e.createCommentVNode("",!0)])]))),128))]))),128)),e.createElementVNode("div",L,[e.createVNode(f,{type:E.value?"default":"primary",disabled:E.value,onClick:q},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])],4),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),Y=g._export_sfc(X,[["__scopeId","data-v-c54bd4ad"]]);exports.default=Y;
@@ -34,8 +34,8 @@ import "element-plus/es/components/radio/style/css";
34
34
  import "element-plus/es/components/input-number/style/css";
35
35
  import "element-plus/es/components/input/style/css";
36
36
  import { defineComponent as re, computed as P, ref as ie, openBlock as y, createElementBlock as C, normalizeStyle as S, unref as d, createElementVNode as g, toDisplayString as _, Fragment as R, renderList as F, createBlock as O, withCtx as h, createTextVNode as b, createCommentVNode as k, createVNode as z, renderSlot as ne } from "vue";
37
- import { B as ce } from "./BaseComponent-B59M7tSp.js";
38
- import { a as A, k as M, _ as se } from "./index-C596S3FR.js";
37
+ import { B as ce } from "./BaseComponent-DQKmWNg3.js";
38
+ import { a as A, f as M, _ as se } from "./index-yfWcELw0.js";
39
39
  import { g as ue } from "./titleStyle-BT5GlpAb.js";
40
40
  import { ElMessage as x } from "element-plus";
41
41
  import { A as de, D as pe } from "./ele-clt-icon-DuU4Q401.js";
@@ -1 +1 @@
1
- "use strict";var z=Object.defineProperty,A=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var x=(c,a,o)=>a in c?z(c,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):c[a]=o,O=(c,a)=>{for(var o in a||(a={}))w.call(a,o)&&x(c,o,a[o]);if(v)for(var o of v(a))U.call(a,o)&&x(c,o,a[o]);return c},B=(c,a)=>A(c,j(a));var N=(c,a,o)=>new Promise((C,b)=>{var y=f=>{try{g(o.next(f))}catch(h){b(h)}},m=f=>{try{g(o.throw(f))}catch(h){b(h)}},g=f=>f.done?C(f.value):Promise.resolve(f.value).then(y,m);g((o=o.apply(c,a)).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/button/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),q=require("./BaseComponent-DjjN5Pou.cjs"),V=require("./index-CLrFRvna.cjs"),M=require("./titleStyle-NSnz6cUg.cjs"),T=require("./ele-clt-icon-BEVOS7Tq.cjs"),P=require("element-plus"),$={class:"item-val"},H={key:0,class:"btn-wrap"},L={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"定制采集",NAME_EN:"Customer",ORDER:2,PLATFORM:["pc","screen","mobile"]},F={bgColor:"#fff",titleColor:"#111",paramColor:"#333",labelWidth:64,titleSize:14,paramSize:12,paramHeight:32,radiusSize:8,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},R=[{object_id:"",project_id:"",collect:"",label_cn:"",fv:""}],W=["mosaic"],G=["object_id","project_id","collect","label_cn","fv"],J={DEFAULT:L,OPTIONS:F,DATA:R,PARAMS:G,SOURCE:W,COMMON:{}},K=e.defineComponent(B(O({},J),{__name:"cmc",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},sourceData:{type:Object,default:()=>({})}},setup(c){const{proxy:a}=e.getCurrentInstance(),o=c,C="--";class b extends q.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),paramColor:this.getOptionValue("paramColor","#333"),labelWidth:this.getOptionValue("labelWidth",64),titleSize:this.getOptionValue("titleSize",14),paramSize:this.getOptionValue("paramSize",12),paramHeight:this.getOptionValue("paramHeight",32),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1),type:this.getOptionValue("type","project")}}init(){return N(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),h()})}setHistoryData(r){const{data:d}=this.props.conf;d.forEach((u,p)=>{var t;u.value=(t=r[p].data[0])!=null?t:C})}setSocketData(r){const{common:d,data:u,uid:p}=this.props.conf;console.log(r,"result socket"),u.forEach(t=>{var s;t.value=(s=r.data[t.fv])!=null?s:C})}}const y=new b(o,"cmc");y.setupLifecycle();const m=y.getStyle(),g=o.conf,f=e.computed(()=>M.generateTitleStyle(o.conf.options)),h=()=>N(null,null,function*(){const{data:n}=o.conf;if(!n||n.length===0)return;const r=n.filter(t=>t.project_id).map(t=>t.project_id);if(!r.length){o.mode==="edit"&&n.forEach(t=>{t.label_cn=t.label_cn||a.$t("component.collect.collectItem"),t.type=t.type||"Integer",t.unit=t.unit||""});return}let d={where_in:JSON.stringify([["uid",r.join(",")]])};const{result:u}=yield V.api.post("get_collect_list",d,!0),p={};u.data.forEach(t=>{p[t.uid]=t}),n.forEach(t=>{var s;if((s=p[t.project_id])!=null&&s.script){const i=p[t.project_id].script.find(E=>E.key===t.collect);t.unit=i==null?void 0:i.unit,t.label_cn=t.label_cn||(i==null?void 0:i.label_loc),t.type=i==null?void 0:i.type}})}),k=e.computed(()=>{const{data:n}=o.conf;let r=!0;return n.forEach(d=>{(d.setting||d.setting===0)&&(r=!1)}),r}),D=()=>N(null,null,function*(){if(o.mode==="edit")return;const{data:n,common:r}=o.conf,d=JSON.parse(sessionStorage.getItem(V.ALIAS_MAPPING_KEY)||"{}")||{},u=[],p=V.auth.getUser();n.forEach(t=>{const s=r.useAlias?d[t.object_alias]:t.object_id||o.uid;if((t.setting||t.setting===0)&&s){let i={collect_id:t.project_id,object_id:s,value:{[t.collect]:["Integer","Float"].includes(t.type)?Number(t.setting):t.setting},name:t.label_cn,collector:p.name};u.push(V.api.post("add_collect_value",i))}}),Promise.all(u).then(t=>{console.log(t),t.every(s=>s.code===200)&&P.ElMessage.success("操作成功")})});return e.watchEffect(()=>{o.conf.socketData&&y.setSocketData(o.conf.socketData)}),(n,r)=>{var i,E;const d=S.ElInput,u=S.ElInputNumber,p=S.ElRadio,t=S.ElRadioGroup,s=S.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(m).bgColor,borderRadius:`${e.unref(m).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(f.value)},e.toDisplayString(e.unref(g).caption||e.unref(g).name),5),e.createElementVNode("div",{class:"mix-body",style:e.normalizeStyle({height:e.unref(m).isHideTitle?"100%":"calc(100% - 42px)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g).data,(l,I)=>(e.openBlock(),e.createElementBlock("div",{key:I,class:"item-wrap"},[e.createElementVNode("div",{class:"item-item",style:e.normalizeStyle({width:`${e.unref(m).labelWidth}px`,fontSize:`${e.unref(m).paramSize}px`,color:e.unref(m).paramColor})},e.toDisplayString(l.label_cn)+": ",5),e.createElementVNode("div",$,[l.type==="String"?(e.openBlock(),e.createBlock(d,{key:0,type:"text",class:"w-full",modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),l.type==="Integer"?(e.openBlock(),e.createBlock(u,{key:1,style:{width:"100%"},modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_,precision:0,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),l.type==="Float"?(e.openBlock(),e.createBlock(u,{key:2,style:{width:"100%"},modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),l.type==="Boolean"?(e.openBlock(),e.createBlock(t,{key:3,class:"w-full",modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_},{default:e.withCtx(()=>[e.createVNode(p,{value:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("common.yes")),1)]),_:1}),e.createVNode(p,{value:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("common.no")),1)]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"item-label",style:e.normalizeStyle({fontSize:`${e.unref(m).paramSize}px`})},e.toDisplayString(l.value||"--"),5)]))),128)),(E=(i=e.unref(g))==null?void 0:i.data)!=null&&E.length?(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(s,{type:k.value?"default":"primary",disabled:k.value,onClick:D},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])):e.createCommentVNode("",!0)],4),e.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),Y=V._export_sfc(K,[["__scopeId","data-v-e71e3deb"]]);exports.default=Y;
1
+ "use strict";var z=Object.defineProperty,A=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var x=(c,a,o)=>a in c?z(c,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):c[a]=o,O=(c,a)=>{for(var o in a||(a={}))w.call(a,o)&&x(c,o,a[o]);if(v)for(var o of v(a))U.call(a,o)&&x(c,o,a[o]);return c},B=(c,a)=>A(c,j(a));var N=(c,a,o)=>new Promise((C,b)=>{var y=f=>{try{g(o.next(f))}catch(h){b(h)}},m=f=>{try{g(o.throw(f))}catch(h){b(h)}},g=f=>f.done?C(f.value):Promise.resolve(f.value).then(y,m);g((o=o.apply(c,a)).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/button/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio/style/css");require("element-plus/es/components/input-number/style/css");require("element-plus/es/components/input/style/css");const e=require("vue"),q=require("./BaseComponent-CJ3CP33o.cjs"),V=require("./index-B8X4_OUp.cjs"),M=require("./titleStyle-NSnz6cUg.cjs"),T=require("./ele-clt-icon-BEVOS7Tq.cjs"),P=require("element-plus"),$={class:"item-val"},H={key:0,class:"btn-wrap"},L={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"定制采集",NAME_EN:"Customer",ORDER:2,PLATFORM:["pc","screen","mobile"]},F={bgColor:"#fff",titleColor:"#111",paramColor:"#333",labelWidth:64,titleSize:14,paramSize:12,paramHeight:32,radiusSize:8,isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},R=[{object_id:"",project_id:"",collect:"",label_cn:"",fv:""}],W=["mosaic"],G=["object_id","project_id","collect","label_cn","fv"],J={DEFAULT:L,OPTIONS:F,DATA:R,PARAMS:G,SOURCE:W,COMMON:{}},K=e.defineComponent(B(O({},J),{__name:"cmc",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"},sourceData:{type:Object,default:()=>({})}},setup(c){const{proxy:a}=e.getCurrentInstance(),o=c,C="--";class b extends q.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),paramColor:this.getOptionValue("paramColor","#333"),labelWidth:this.getOptionValue("labelWidth",64),titleSize:this.getOptionValue("titleSize",14),paramSize:this.getOptionValue("paramSize",12),paramHeight:this.getOptionValue("paramHeight",32),radiusSize:this.getOptionValue("radiusSize",4),isHideTitle:this.getOptionValue("isHideTitle",!1),type:this.getOptionValue("type","project")}}init(){return N(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),h()})}setHistoryData(r){const{data:d}=this.props.conf;d.forEach((u,p)=>{var t;u.value=(t=r[p].data[0])!=null?t:C})}setSocketData(r){const{common:d,data:u,uid:p}=this.props.conf;console.log(r,"result socket"),u.forEach(t=>{var s;t.value=(s=r.data[t.fv])!=null?s:C})}}const y=new b(o,"cmc");y.setupLifecycle();const m=y.getStyle(),g=o.conf,f=e.computed(()=>M.generateTitleStyle(o.conf.options)),h=()=>N(null,null,function*(){const{data:n}=o.conf;if(!n||n.length===0)return;const r=n.filter(t=>t.project_id).map(t=>t.project_id);if(!r.length){o.mode==="edit"&&n.forEach(t=>{t.label_cn=t.label_cn||a.$t("component.collect.collectItem"),t.type=t.type||"Integer",t.unit=t.unit||""});return}let d={where_in:JSON.stringify([["uid",r.join(",")]])};const{result:u}=yield V.api.post("get_collect_list",d,!0),p={};u.data.forEach(t=>{p[t.uid]=t}),n.forEach(t=>{var s;if((s=p[t.project_id])!=null&&s.script){const i=p[t.project_id].script.find(E=>E.key===t.collect);t.unit=i==null?void 0:i.unit,t.label_cn=t.label_cn||(i==null?void 0:i.label_loc),t.type=i==null?void 0:i.type}})}),k=e.computed(()=>{const{data:n}=o.conf;let r=!0;return n.forEach(d=>{(d.setting||d.setting===0)&&(r=!1)}),r}),D=()=>N(null,null,function*(){if(o.mode==="edit")return;const{data:n,common:r}=o.conf,d=JSON.parse(sessionStorage.getItem(V.ALIAS_MAPPING_KEY)||"{}")||{},u=[],p=V.auth.getUser();n.forEach(t=>{const s=r.useAlias?d[t.object_alias]:t.object_id||o.uid;if((t.setting||t.setting===0)&&s){let i={collect_id:t.project_id,object_id:s,value:{[t.collect]:["Integer","Float"].includes(t.type)?Number(t.setting):t.setting},name:t.label_cn,collector:p.name};u.push(V.api.post("add_collect_value",i))}}),Promise.all(u).then(t=>{console.log(t),t.every(s=>s.code===200)&&P.ElMessage.success("操作成功")})});return e.watchEffect(()=>{o.conf.socketData&&y.setSocketData(o.conf.socketData)}),(n,r)=>{var i,E;const d=S.ElInput,u=S.ElInputNumber,p=S.ElRadio,t=S.ElRadioGroup,s=S.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({backgroundColor:e.unref(m).bgColor,borderRadius:`${e.unref(m).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(f.value)},e.toDisplayString(e.unref(g).caption||e.unref(g).name),5),e.createElementVNode("div",{class:"mix-body",style:e.normalizeStyle({height:e.unref(m).isHideTitle?"100%":"calc(100% - 42px)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g).data,(l,I)=>(e.openBlock(),e.createElementBlock("div",{key:I,class:"item-wrap"},[e.createElementVNode("div",{class:"item-item",style:e.normalizeStyle({width:`${e.unref(m).labelWidth}px`,fontSize:`${e.unref(m).paramSize}px`,color:e.unref(m).paramColor})},e.toDisplayString(l.label_cn)+": ",5),e.createElementVNode("div",$,[l.type==="String"?(e.openBlock(),e.createBlock(d,{key:0,type:"text",class:"w-full",modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),l.type==="Integer"?(e.openBlock(),e.createBlock(u,{key:1,style:{width:"100%"},modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_,precision:0,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),l.type==="Float"?(e.openBlock(),e.createBlock(u,{key:2,style:{width:"100%"},modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_,controls:!1},{suffix:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.unit),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),l.type==="Boolean"?(e.openBlock(),e.createBlock(t,{key:3,class:"w-full",modelValue:l.setting,"onUpdate:modelValue":_=>l.setting=_},{default:e.withCtx(()=>[e.createVNode(p,{value:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("common.yes")),1)]),_:1}),e.createVNode(p,{value:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("common.no")),1)]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"item-label",style:e.normalizeStyle({fontSize:`${e.unref(m).paramSize}px`})},e.toDisplayString(l.value||"--"),5)]))),128)),(E=(i=e.unref(g))==null?void 0:i.data)!=null&&E.length?(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(s,{type:k.value?"default":"primary",disabled:k.value,onClick:D},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.$t("common.confirm")),1)]),_:1},8,["type","disabled"])])):e.createCommentVNode("",!0)],4),e.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),Y=V._export_sfc(K,[["__scopeId","data-v-e71e3deb"]]);exports.default=Y;
@@ -10,20 +10,20 @@ var U = (n, a, e) => a in n ? P(n, a, { enumerable: !0, configurable: !0, writab
10
10
  G.call(a, e) && U(n, e, a[e]);
11
11
  return n;
12
12
  }, B = (n, a) => R(n, F(a));
13
- var x = (n, a, e) => new Promise((k, A) => {
13
+ var x = (n, a, e) => new Promise((A, j) => {
14
14
  var V = (f) => {
15
15
  try {
16
16
  g(e.next(f));
17
17
  } catch (C) {
18
- A(C);
18
+ j(C);
19
19
  }
20
20
  }, m = (f) => {
21
21
  try {
22
22
  g(e.throw(f));
23
23
  } catch (C) {
24
- A(C);
24
+ j(C);
25
25
  }
26
- }, g = (f) => f.done ? k(f.value) : Promise.resolve(f.value).then(V, m);
26
+ }, g = (f) => f.done ? A(f.value) : Promise.resolve(f.value).then(V, m);
27
27
  g((e = e.apply(n, a)).next());
28
28
  });
29
29
  import { ElInput as J, ElInputNumber as K, ElRadioGroup as Y, ElRadio as q, ElButton as Q } from "element-plus/es";
@@ -34,8 +34,8 @@ import "element-plus/es/components/radio/style/css";
34
34
  import "element-plus/es/components/input-number/style/css";
35
35
  import "element-plus/es/components/input/style/css";
36
36
  import { defineComponent as X, getCurrentInstance as Z, computed as M, watchEffect as tt, openBlock as y, createElementBlock as N, normalizeStyle as E, unref as u, createElementVNode as v, toDisplayString as _, Fragment as et, renderList as ot, createBlock as I, withCtx as b, createTextVNode as S, createCommentVNode as O, createVNode as z, renderSlot as at } from "vue";
37
- import { B as lt } from "./BaseComponent-B59M7tSp.js";
38
- import { a as H, E as it, k as nt, _ as st } from "./index-C596S3FR.js";
37
+ import { B as lt } from "./BaseComponent-DQKmWNg3.js";
38
+ import { a as H, w as it, f as nt, _ as st } from "./index-yfWcELw0.js";
39
39
  import { g as ct } from "./titleStyle-BT5GlpAb.js";
40
40
  import { A as rt, D as dt } from "./ele-clt-icon-DuU4Q401.js";
41
41
  import { ElMessage as pt } from "element-plus";
@@ -77,8 +77,8 @@ const ut = { class: "item-val" }, mt = {
77
77
  sourceData: { type: Object, default: () => ({}) }
78
78
  },
79
79
  setup(n) {
80
- const { proxy: a } = Z(), e = n, k = "--";
81
- class A extends lt {
80
+ const { proxy: a } = Z(), e = n, A = "--";
81
+ class j extends lt {
82
82
  extractStyles() {
83
83
  return {
84
84
  bgColor: this.getOptionValue("bgColor", "#fff"),
@@ -102,18 +102,18 @@ const ut = { class: "item-val" }, mt = {
102
102
  const { data: r } = this.props.conf;
103
103
  r.forEach((d, p) => {
104
104
  var t;
105
- d.value = (t = s[p].data[0]) != null ? t : k;
105
+ d.value = (t = s[p].data[0]) != null ? t : A;
106
106
  });
107
107
  }
108
108
  setSocketData(s) {
109
109
  const { common: r, data: d, uid: p } = this.props.conf;
110
110
  console.log(s, "result socket"), d.forEach((t) => {
111
111
  var c;
112
- t.value = (c = s.data[t.fv]) != null ? c : k;
112
+ t.value = (c = s.data[t.fv]) != null ? c : A;
113
113
  });
114
114
  }
115
115
  }
116
- const V = new A(e, "cmc");
116
+ const V = new j(e, "cmc");
117
117
  V.setupLifecycle();
118
118
  const m = V.getStyle(), g = e.conf, f = M(() => ct(e.conf.options)), C = () => x(null, null, function* () {
119
119
  const { data: l } = e.conf;
@@ -132,7 +132,7 @@ const ut = { class: "item-val" }, mt = {
132
132
  }), l.forEach((t) => {
133
133
  var c;
134
134
  if ((c = p[t.project_id]) != null && c.script) {
135
- const i = p[t.project_id].script.find((j) => j.key === t.collect);
135
+ const i = p[t.project_id].script.find((k) => k.key === t.collect);
136
136
  t.unit = i == null ? void 0 : i.unit, t.label_cn = t.label_cn || (i == null ? void 0 : i.label_loc), t.type = i == null ? void 0 : i.type;
137
137
  }
138
138
  });
@@ -164,7 +164,7 @@ const ut = { class: "item-val" }, mt = {
164
164
  return tt(() => {
165
165
  e.conf.socketData && V.setSocketData(e.conf.socketData);
166
166
  }), (l, s) => {
167
- var i, j;
167
+ var i, k;
168
168
  const r = J, d = K, p = q, t = Y, c = Q;
169
169
  return y(), N("div", {
170
170
  class: "mix-component",
@@ -252,7 +252,7 @@ const ut = { class: "item-val" }, mt = {
252
252
  style: E({ fontSize: `${u(m).paramSize}px` })
253
253
  }, _(o.value || "--"), 5)
254
254
  ]))), 128)),
255
- (j = (i = u(g)) == null ? void 0 : i.data) != null && j.length ? (y(), N("div", mt, [
255
+ (k = (i = u(g)) == null ? void 0 : i.data) != null && k.length ? (y(), N("div", mt, [
256
256
  z(c, {
257
257
  type: T.value ? "default" : "primary",
258
258
  disabled: T.value,