mixdashboards 1.0.85 → 1.0.87

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 (346) hide show
  1. package/dist/{BaseComponent-D34QRHy5.cjs → BaseComponent-BHUHnLj-.cjs} +1 -1
  2. package/dist/{BaseComponent-B5SIFUKu.js → BaseComponent-qzL33ZSL.js} +3 -3
  3. package/dist/{EChartComponentBase-dqtNexA7.js → EChartComponentBase-BtAW2Yko.js} +2 -2
  4. package/dist/{EChartComponentBase-jAYYsevE.cjs → EChartComponentBase-C4s5HSfS.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-CNSVT9m8.cjs → EmergencyPlanPanel-C8ieiZvC.cjs} +1 -1
  6. package/dist/{EmergencyPlanPanel-Doo5cu72.js → EmergencyPlanPanel-CqvHGqqx.js} +1 -1
  7. package/dist/{HistoryPlanDialog-D5v_jcxq.js → HistoryPlanDialog-CUSKabw0.js} +1 -1
  8. package/dist/{HistoryPlanDialog-EUzHsez4.cjs → HistoryPlanDialog-D6VMuzat.cjs} +1 -1
  9. package/dist/{MixiotAppDetailPage-COTIq_oL.cjs → MixiotAppDetailPage-Bd9WrADz.cjs} +1 -1
  10. package/dist/{MixiotAppDetailPage-hVI9fZpO.js → MixiotAppDetailPage-CFISQwpc.js} +1 -1
  11. package/dist/{MonitoringMap-BqnRXXf0.js → MonitoringMap-CV7YYixH.js} +2 -2
  12. package/dist/{MonitoringMap-CtqtQDrg.cjs → MonitoringMap-DjvavXD5.cjs} +1 -1
  13. package/dist/{UniverSheet-BVbFQzbx.cjs → UniverSheet-BY4vwAeQ.cjs} +1 -1
  14. package/dist/{UniverSheet-DGslLlF8.js → UniverSheet-C7QQQUHI.js} +2 -2
  15. package/dist/{accelerationChart-Dlaz8dCi.cjs → accelerationChart-CnbCpT4d.cjs} +1 -1
  16. package/dist/{accelerationChart-BLfCB0xQ.js → accelerationChart-Dd7s6CA0.js} +2 -2
  17. package/dist/{actionItem-BztkzgJJ.js → actionItem-CjNacj0F.js} +179 -164
  18. package/dist/actionItem-DNgoQB08.cjs +1 -0
  19. package/dist/{alarmLevelChart-DAPsXpBm.cjs → alarmLevelChart-CRL45xkr.cjs} +1 -1
  20. package/dist/{alarmLevelChart-DW3YpK8y.js → alarmLevelChart-DDFP_ADG.js} +2 -2
  21. package/dist/{alertTable-LzeUcaTy.js → alertTable-DrUs1wUN.js} +2 -2
  22. package/dist/{alertTable-DIRQidQO.cjs → alertTable-UvxQNZ2Y.cjs} +1 -1
  23. package/dist/{aliasObjectSelectorDemo-CmB0VaaP.cjs → aliasObjectSelectorDemo-BGgcbyT-.cjs} +1 -1
  24. package/dist/{aliasObjectSelectorDemo-DSxciPwy.js → aliasObjectSelectorDemo-Bep18FrL.js} +1 -1
  25. package/dist/{annualRainfallChart-Dv_GAuLC.js → annualRainfallChart-BMuH6tsO.js} +2 -2
  26. package/dist/{annualRainfallChart-k6KjFS_C.cjs → annualRainfallChart-DDnaZZp0.cjs} +1 -1
  27. package/dist/{aqi-Ba50jmO9.js → aqi-CbyrPtO4.js} +4 -3
  28. package/dist/{aqi-DaUUMaJU.cjs → aqi-DjkOgiun.cjs} +2 -2
  29. package/dist/{aqiIndass-Z59-E4wM.js → aqiIndass-C-DEsmZ4.js} +2 -2
  30. package/dist/{aqiIndass-CymFUbJo.cjs → aqiIndass-C3mPUZP6.cjs} +1 -1
  31. package/dist/{areaDeformCurve-BkIAPPuz.cjs → areaDeformCurve-B-bUeLI-.cjs} +1 -1
  32. package/dist/{areaDeformCurve-D0Ewk9vb.js → areaDeformCurve-D6in1BnQ.js} +2 -2
  33. package/dist/arrayCard-CAoU7DHK.cjs +1 -0
  34. package/dist/{arrayCard-BSXdzUVh.js → arrayCard-CpzPkgA9.js} +12 -11
  35. package/dist/{audio-ChzQRc-m.cjs → audio-BrTfWQmo.cjs} +1 -1
  36. package/dist/{audio-DxRwie49.js → audio-TkisK5FD.js} +2 -2
  37. package/dist/{bar-D_fG07s5.cjs → bar-BZBOTnN4.cjs} +2 -2
  38. package/dist/{bar-FVRxAIV0.js → bar-CT6sCNW4.js} +18 -17
  39. package/dist/{bmp-Du28cT6S.cjs → bmp-DgcyTiV5.cjs} +1 -1
  40. package/dist/{bmp-DC5cos_-.js → bmp-Xsdyi9gr.js} +2 -2
  41. package/dist/{box-e8ah_S9H.cjs → box-DED4JT5G.cjs} +1 -1
  42. package/dist/{box-7ErrZ6BV.js → box-DNKXXXYx.js} +2 -2
  43. package/dist/{chartConfigPanel-we0JCKlW.js → chartConfigPanel-CF-q-XUN.js} +1 -1
  44. package/dist/{chartConfigPanel-B-DcUfb-.cjs → chartConfigPanel-D1M21nDO.cjs} +1 -1
  45. package/dist/{circleBar-C_PheazC.js → circleBar-CaC8ntp-.js} +12 -11
  46. package/dist/{circleBar-CDNNFZ-7.cjs → circleBar-m6J_QvzN.cjs} +2 -2
  47. package/dist/{clock-DcBtsj1a.cjs → clock-CnV36tpq.cjs} +1 -1
  48. package/dist/{clock-Drlpl4rd.js → clock-tPcek90B.js} +2 -2
  49. package/dist/{clt-CeZd9gK8.cjs → clt-DoDENEcJ.cjs} +1 -1
  50. package/dist/{clt-C17ZCh49.js → clt-DwoBhD_P.js} +2 -2
  51. package/dist/{cmc-DubkXzay.cjs → cmc-Dld5UOW9.cjs} +1 -1
  52. package/dist/{cmc-C7liYuEm.js → cmc-ObS3fWlL.js} +2 -2
  53. package/dist/{cmp-D2Rfyq8M.cjs → cmp-Bp9FqBZV.cjs} +1 -1
  54. package/dist/{cmp-B-x5XEU3.js → cmp-DEH1jzrG.js} +2 -2
  55. package/dist/{conclusionCard-CzPFreK2.js → conclusionCard-CHFJIt7G.js} +2 -2
  56. package/dist/{conclusionCard-Dpp7yCQr.cjs → conclusionCard-DXiFAJmo.cjs} +1 -1
  57. package/dist/{controlList-CdRFJ8T_.cjs → controlList-B2tV397i.cjs} +1 -1
  58. package/dist/{controlList-BxRyFAbK.js → controlList-hWCbafkY.js} +2 -2
  59. package/dist/{controlRecordList-6kKpjq1n.js → controlRecordList-DnhHr7kU.js} +2 -2
  60. package/dist/{controlRecordList-DNASxF1-.cjs → controlRecordList-uAmuCKjf.cjs} +1 -1
  61. package/dist/{controlRecordListAPP-NtlIWQXs.js → controlRecordListAPP-BpZmCMM-.js} +2 -2
  62. package/dist/{controlRecordListAPP-D8yzsc2T.cjs → controlRecordListAPP-BpfPZW3b.cjs} +1 -1
  63. package/dist/{crd-taCzWBxq.cjs → crd-BQ7AFV1c.cjs} +1 -1
  64. package/dist/{crd-DI5bkvJ2.js → crd-ChpWMXAm.js} +2 -2
  65. package/dist/{ctrBtn-CN6WqLz4.js → ctrBtn-CmdQ3s7z.js} +3 -3
  66. package/dist/{ctrBtn-BYFK-n7Z.cjs → ctrBtn-PTITC7R8.cjs} +1 -1
  67. package/dist/{ctrSet-Dmp-SSwX.cjs → ctrSet-CYqeDilm.cjs} +1 -1
  68. package/dist/{ctrSet-Doo8KOid.js → ctrSet-Dv5i5ne5.js} +3 -3
  69. package/dist/{ctrSwitch-Huz7y3qH.cjs → ctrSwitch-Byt4qKjt.cjs} +1 -1
  70. package/dist/{ctrSwitch-ymPMJQrr.js → ctrSwitch-C3NZcUxa.js} +3 -3
  71. package/dist/{dataManagement-D-ydHbCi.cjs → dataManagement-BFIS0e4d.cjs} +1 -1
  72. package/dist/{dataManagement-BSFDkBO0.js → dataManagement-enhqxRgF.js} +2 -2
  73. package/dist/{dataReport-scEzKoGr.js → dataReport-DLdB1ARI.js} +2 -2
  74. package/dist/{dataReport-DkybkxI_.cjs → dataReport-vfCe0q9d.cjs} +1 -1
  75. package/dist/{dataTable-CYdLGzsw.cjs → dataTable-DE3yOae0.cjs} +1 -1
  76. package/dist/{dataTable-DeOLfzYM.js → dataTable-DFZrMHnF.js} +1 -1
  77. package/dist/{datetime-D-2UMZL8.js → datetime-BK4xGaTM.js} +2 -2
  78. package/dist/{datetime-C69N7_sI.cjs → datetime-DXTcE56I.cjs} +1 -1
  79. package/dist/{deepClusterSlipSurface-CGD8erAY.cjs → deepClusterSlipSurface-BKFavDI5.cjs} +1 -1
  80. package/dist/{deepClusterSlipSurface-rvmSm6ES.js → deepClusterSlipSurface-D_PbxUdd.js} +2 -2
  81. package/dist/{deepDataMatrix-CCiOw7na.cjs → deepDataMatrix-DzzK55Mc.cjs} +1 -1
  82. package/dist/{deepDataMatrix-DWooX6Y5.js → deepDataMatrix-avI-0mLw.js} +2 -2
  83. package/dist/{deepDisplacement3D-e53WV3xO.js → deepDisplacement3D-CbyatHpJ.js} +2 -2
  84. package/dist/{deepDisplacement3D-Df2O35JO.cjs → deepDisplacement3D-DW0CW2ut.cjs} +1 -1
  85. package/dist/{deepDisplacementChart-BXnNpjNH.js → deepDisplacementChart-B7GDsSm7.js} +2 -2
  86. package/dist/{deepDisplacementChart-v-DnKo0p.js → deepDisplacementChart-DY0lNJOz.js} +3 -3
  87. package/dist/{deepDisplacementChart-Dek4HCcF.cjs → deepDisplacementChart-DauJXxkW.cjs} +1 -1
  88. package/dist/{deepDisplacementChart-ByX2EeAy.cjs → deepDisplacementChart-Dm71dHpY.cjs} +1 -1
  89. package/dist/{deepDisplacementView-BXQbJ5vC.cjs → deepDisplacementView-BJAAMyTP.cjs} +1 -1
  90. package/dist/{deepDisplacementView-BosvzWIx.js → deepDisplacementView-RywcwybM.js} +1 -1
  91. package/dist/{deepNodeTemperatureChart-DPeTrYd-.js → deepNodeTemperatureChart-Et7GEspn.js} +2 -2
  92. package/dist/{deepNodeTemperatureChart-CpEfTehr.cjs → deepNodeTemperatureChart-FN14qWXP.cjs} +1 -1
  93. package/dist/{deepTangentAngleChart-CPv5w_eL.js → deepTangentAngleChart-CEsc85Mi.js} +2 -2
  94. package/dist/{deepTangentAngleChart-BysYnjJH.cjs → deepTangentAngleChart-m3r_mJg0.cjs} +1 -1
  95. package/dist/{deepTemperatureField-BQH8OSoj.js → deepTemperatureField-Cr3c_t1T.js} +3 -3
  96. package/dist/{deepTemperatureField-Bj7Q0vFg.cjs → deepTemperatureField-jfV1EahT.cjs} +1 -1
  97. package/dist/{deepTrendChart-DDW9FMRA.js → deepTrendChart-D7IDGKBC.js} +2 -2
  98. package/dist/{deepTrendChart-rtNsOGoK.cjs → deepTrendChart-DIyUa5qe.cjs} +1 -1
  99. package/dist/{deviceOnlineStatus-C3Ns4Eih.cjs → deviceOnlineStatus--G66OLv8.cjs} +1 -1
  100. package/dist/{deviceOnlineStatus-44KJ1Q4h.js → deviceOnlineStatus-DDo0caCc.js} +2 -2
  101. package/dist/{deviceStatus-BBmMff_F.cjs → deviceStatus-B0sBzHx9.cjs} +1 -1
  102. package/dist/{deviceStatus-q5q6x9K8.js → deviceStatus-cmxKruD-.js} +2 -2
  103. package/dist/{displacementDataTable-H1ruFQIu.js → displacementDataTable-BwhylBbX.js} +2 -2
  104. package/dist/{displacementDataTable-CvJctf3O.cjs → displacementDataTable-Bxs-LIOW.cjs} +1 -1
  105. package/dist/{displacementTrajectoryChart-B4l2zV26.js → displacementTrajectoryChart-D3VcZ1qM.js} +2 -2
  106. package/dist/{displacementTrajectoryChart-BHnt4XRT.cjs → displacementTrajectoryChart-JJEGEVMc.cjs} +1 -1
  107. package/dist/{displacementTrendChart-DQ8_g6Rx.js → displacementTrendChart-BlIqd2IK.js} +2 -2
  108. package/dist/{displacementTrendChart-JEQEzPRH.cjs → displacementTrendChart-GmxA4M6n.cjs} +1 -1
  109. package/dist/{dxf-CwyjmtpP.cjs → dxf-JH5I0L5F.cjs} +1 -1
  110. package/dist/{dxf-BXkxWRVK.js → dxf-r-iy1MWn.js} +2 -2
  111. package/dist/{dzc-BD022_cK.js → dzc-CMhN9l76.js} +23 -22
  112. package/dist/{dzc-Cs2c5qKW.cjs → dzc-KbkTkgzk.cjs} +2 -2
  113. package/dist/{emergencyPlan-7AeZCcku.js → emergencyPlan-CR8HkDi4.js} +3 -3
  114. package/dist/{emergencyPlan-DogUPjrm.cjs → emergencyPlan-FSdy0Ik5.cjs} +1 -1
  115. package/dist/evn-D8kcAx_T.cjs +1 -0
  116. package/dist/{evn-6LJwZ9oI.js → evn-DGxcYjRA.js} +12 -11
  117. package/dist/{evolutionChart-2iAuIjeo.cjs → evolutionChart-CI2hDs5C.cjs} +1 -1
  118. package/dist/{evolutionChart-Dvw_-w8R.js → evolutionChart-K7H8KKIG.js} +3 -3
  119. package/dist/{fileViewer-nvVZ78WD.js → fileViewer-Df0AU_z9.js} +2 -2
  120. package/dist/{fileViewer-iCJj8Ui8.cjs → fileViewer-DtIGy-zH.cjs} +1 -1
  121. package/dist/{filterBar-Rv8R1LOA.js → filterBar-BRDe-GgC.js} +2 -2
  122. package/dist/{filterBar-UNAHc5sn.cjs → filterBar-DEfkfl04.cjs} +1 -1
  123. package/dist/{fireCombustionCurve-BJhW5uLF.cjs → fireCombustionCurve-C8UGnEPC.cjs} +1 -1
  124. package/dist/{fireCombustionCurve-KogHwH-O.js → fireCombustionCurve-DJXeynXa.js} +3 -3
  125. package/dist/{fireFilterBar-JKyuyiby.js → fireFilterBar-CXiN-Jkv.js} +2 -2
  126. package/dist/{fireFilterBar-B7dHcX98.cjs → fireFilterBar-iqgVdbgH.cjs} +1 -1
  127. package/dist/{fireHistoryTable-B9h4fG5U.js → fireHistoryTable-CTIdqGk3.js} +2 -2
  128. package/dist/{fireHistoryTable-B0AuWVNb.cjs → fireHistoryTable-Dl4A1pRv.cjs} +1 -1
  129. package/dist/{gag-CorgSUVK.js → gag-BVPZK4hG.js} +2 -2
  130. package/dist/{gag-CU-DwzvP.cjs → gag-DQa6TEDv.cjs} +1 -1
  131. package/dist/gasStationList-BkzLZp4-.cjs +1 -0
  132. package/dist/gasStationList-NFyxin-H.js +1397 -0
  133. package/dist/{geo3dViewer-Cd12xZud.js → geo3dViewer-BJpae_MX.js} +3 -3
  134. package/dist/{geo3dViewer-DY1T1MFb.cjs → geo3dViewer-VRenmVKs.cjs} +1 -1
  135. package/dist/{glbModel-Coj4FgKp.js → glbModel-C96hRxP0.js} +2 -2
  136. package/dist/{glbModel-Y2xx0JR5.cjs → glbModel-i2X1L8LC.cjs} +1 -1
  137. package/dist/{globalObjectSelector-DbJUUWyG.js → globalObjectSelector-D09a0A2t.js} +1 -1
  138. package/dist/{globalObjectSelector-8qMu0LAU.cjs → globalObjectSelector-DhbeX3bm.cjs} +1 -1
  139. package/dist/{gnssFilterBar-Lq2eyPKr.js → gnssFilterBar-BHqE79Ri.js} +2 -2
  140. package/dist/{gnssFilterBar-BlkpVZW3.cjs → gnssFilterBar-BX3mEKiT.cjs} +1 -1
  141. package/dist/{gnssHistoryTable-Dse3OJ1u.js → gnssHistoryTable-D9tglOkP.js} +2 -2
  142. package/dist/{gnssHistoryTable-Bq2w43Wl.cjs → gnssHistoryTable-ZBfzhnlx.cjs} +1 -1
  143. package/dist/{gnssMapView-CWLlDlV5.cjs → gnssMapView-B2rSxPml.cjs} +2 -2
  144. package/dist/{gnssMapView-yTzbni2D.js → gnssMapView-Bicnnr6P.js} +4 -4
  145. package/dist/{gnssSectionProfile-BfGrXkPT.cjs → gnssSectionProfile-BKnvQBHa.cjs} +1 -1
  146. package/dist/{gnssSectionProfile-BF15R9j6.js → gnssSectionProfile-BfkjiI0i.js} +2 -2
  147. package/dist/{gnssTimeSeriesChart-CdOhINv8.js → gnssTimeSeriesChart-BTK4Qize.js} +2 -2
  148. package/dist/{gnssTimeSeriesChart-278oeIbH.cjs → gnssTimeSeriesChart-Cj-151Zs.cjs} +1 -1
  149. package/dist/{gnssXYTrajectory-Bh_tiDoG.cjs → gnssXYTrajectory-BgwA-1Fx.cjs} +1 -1
  150. package/dist/{gnssXYTrajectory-CIOmRk86.js → gnssXYTrajectory-DZiGIgf5.js} +2 -2
  151. package/dist/{grd-Cvhb0vqp.js → grd-DW4ve5k2.js} +77 -69
  152. package/dist/grd-DrRka55C.cjs +1 -0
  153. package/dist/{grdIndass-Blww3AWs.js → grdIndass-CRZ9agT-.js} +2 -2
  154. package/dist/{grdIndass-CAECiDwM.cjs → grdIndass-CofZtTJe.cjs} +1 -1
  155. package/dist/{grg-CZ-1c9KZ.cjs → grg-Cugg5crY.cjs} +1 -1
  156. package/dist/{grg-DaEWoH-V.js → grg-zv4YAkAu.js} +2 -2
  157. package/dist/gridview-BjOw8zBf.cjs +1 -0
  158. package/dist/{gridview-DfxjMc8r.js → gridview-DRB1rG1L.js} +100 -92
  159. package/dist/{groundwaterFilterBar-D-0_8E9_.cjs → groundwaterFilterBar-D4appJuv.cjs} +1 -1
  160. package/dist/{groundwaterFilterBar-BERwFBRI.js → groundwaterFilterBar-DyCL0fs9.js} +2 -2
  161. package/dist/{groundwaterProfileChart-LnbC3LFM.js → groundwaterProfileChart-Bo_XCqyF.js} +3 -3
  162. package/dist/{groundwaterProfileChart-D1N2guhL.cjs → groundwaterProfileChart-CDByowkP.cjs} +2 -2
  163. package/dist/{groundwaterTimeCurve-DsEJddqR.js → groundwaterTimeCurve-C0WRGZNY.js} +3 -3
  164. package/dist/{groundwaterTimeCurve-UD6BkRfr.cjs → groundwaterTimeCurve-Cj5qSKTI.cjs} +1 -1
  165. package/dist/{groupCard-BXkVVWCD.cjs → groupCard-B7XW81Xq.cjs} +1 -1
  166. package/dist/{groupCard-DtrSQ-Z7.js → groupCard-JeKQg4FL.js} +2 -2
  167. package/dist/{headerBar-Bwju12X9.cjs → headerBar-BXNzoDYA.cjs} +1 -1
  168. package/dist/{headerBar-Ddnid9UG.js → headerBar-D5FXDHNR.js} +2 -2
  169. package/dist/{history-Bw6bUdAH.js → history-BDIdK3AY.js} +1 -1
  170. package/dist/{history-27cn84JA.cjs → history-D_NO9ojb.cjs} +1 -1
  171. package/dist/{index-BAzRwQtP.js → index-BHBE19E2.js} +2112 -2095
  172. package/dist/{index-CfXXizWL.cjs → index-D7PZNHF4.cjs} +13 -13
  173. package/dist/{insarDeformChart-C1dTHqOV.js → insarDeformChart-DuBYscAT.js} +2 -2
  174. package/dist/{insarDeformChart-CvI9xE5R.cjs → insarDeformChart-wTnTF5NC.cjs} +1 -1
  175. package/dist/{insarImageViewer-ZvTfxIgq.cjs → insarImageViewer-DGkic1Rj.cjs} +1 -1
  176. package/dist/{insarImageViewer-C41SvD4C.js → insarImageViewer-tPyDE815.js} +2 -2
  177. package/dist/{kds-DUxLqoHG.cjs → kds-Bto_xGCo.cjs} +1 -1
  178. package/dist/{kds-E46fKndy.js → kds-Joeeniwr.js} +2 -2
  179. package/dist/{kpiCard-B9jjjkvf.js → kpiCard-B2MTndw-.js} +2 -2
  180. package/dist/{kpiCard-s94FkJRU.cjs → kpiCard-D_8YToN_.cjs} +1 -1
  181. package/dist/{landslideMap-DjZnkJBI.js → landslideMap-BSImmP3T.js} +3 -3
  182. package/dist/{landslideMap-VxTTg5Cg.cjs → landslideMap-DbvJ2h3R.cjs} +1 -1
  183. package/dist/{landslideWarning-VJ-TbmUJ.cjs → landslideWarning-CVvZS5-l.cjs} +1 -1
  184. package/dist/{landslideWarning-ujgAYvQd.js → landslideWarning-DjgODoEd.js} +5 -5
  185. package/dist/{layerTabs-CIVcYvAB.js → layerTabs-C2qdit8f.js} +2 -2
  186. package/dist/{layerTabs-CRfqhHZK.cjs → layerTabs-CT14C_oL.cjs} +1 -1
  187. package/dist/{leaflet-src-B0Z393os.cjs → leaflet-src-BuDfd_hT.cjs} +1 -1
  188. package/dist/{leaflet-src-Db2Zajkc.js → leaflet-src-CsuGTXZi.js} +1 -1
  189. package/dist/{lerc-DJHaixvD.js → lerc-5_flDPwM.js} +2 -2
  190. package/dist/{lerc-DNW0dac6.cjs → lerc-BVRAhrgg.cjs} +1 -1
  191. package/dist/{lin-BWXOU9MB.cjs → lin--Wc9Mzoq.cjs} +2 -2
  192. package/dist/{lin-Cc9KS6g8.js → lin-Djc6HZCi.js} +22 -21
  193. package/dist/{linIndass-B80W-sSu.cjs → linIndass-Bxs7wFnh.cjs} +1 -1
  194. package/dist/{linIndass-C_RGaGCW.js → linIndass-CQ2BZiY0.js} +2 -2
  195. package/dist/lst-C-yxmy1r.cjs +1 -0
  196. package/dist/{lst-vQnVvY0w.js → lst-CxLOKAzL.js} +65 -57
  197. package/dist/{manualEntry-Cn3zVMa6.js → manualEntry-DLL43b_K.js} +2 -2
  198. package/dist/{manualEntry-C50Ywtez.cjs → manualEntry-Dd9swkaL.cjs} +1 -1
  199. package/dist/{mapBackground-GUJpzKft.js → mapBackground-CDGjjy8-.js} +3 -3
  200. package/dist/{mapBackground-DSWA99yj.cjs → mapBackground-DNQRoaFb.cjs} +1 -1
  201. package/dist/{mappingList-De10OfoU.cjs → mappingList-C9HUo2y9.cjs} +1 -1
  202. package/dist/{mappingList-DABXXILd.js → mappingList-DrhZfKtH.js} +2 -2
  203. package/dist/{markdownViewer-C5FIYiVb.cjs → markdownViewer-Bea8zl8q.cjs} +1 -1
  204. package/dist/{markdownViewer-DpA36Il6.js → markdownViewer-DIb7t2bx.js} +2 -2
  205. package/dist/{mix-control-modal-D8AvXlfA.js → mix-control-modal-CaAkqkzX.js} +1 -1
  206. package/dist/{mix-control-modal-CmiQEHAY.cjs → mix-control-modal-Dh-NZ50w.cjs} +1 -1
  207. package/dist/mixGrid-DFuBeOy6.cjs +1 -0
  208. package/dist/{mixGrid-CGx9sB8L.js → mixGrid-DPdzqHke.js} +52 -42
  209. package/dist/mixdashboards.cjs +1 -1
  210. package/dist/mixdashboards.css +1 -1
  211. package/dist/mixdashboards.js +1 -1
  212. package/dist/{mixiotObjectListApi-6fOgrxRi.js → mixiotObjectListApi-CJsYvcG_.js} +1 -1
  213. package/dist/{mixiotObjectListApi--iL8o43r.cjs → mixiotObjectListApi-DVYddjqi.cjs} +1 -1
  214. package/dist/{mjpegCamera-BXoEh0eO.cjs → mjpegCamera-BvlKwwDL.cjs} +1 -1
  215. package/dist/{mjpegCamera-DKHwjIuj.js → mjpegCamera-C9PNl-r4.js} +2 -2
  216. package/dist/{monitorAlert-BWiJrdAz.cjs → monitorAlert-LeeMIRjf.cjs} +1 -1
  217. package/dist/{monitorAlert-bjx3tK4J.js → monitorAlert-vVcYtohz.js} +2 -2
  218. package/dist/{monitorData-BokcK6n-.cjs → monitorData-BtF_j2kd.cjs} +1 -1
  219. package/dist/{monitorData-Btt7aDZ_.js → monitorData-CHhLhD4y.js} +2 -2
  220. package/dist/{monitorSpeedChart-DUg3ZWWL.cjs → monitorSpeedChart-BH_rITMD.cjs} +1 -1
  221. package/dist/{monitorSpeedChart-DUDV7Rzr.js → monitorSpeedChart-Dhchpe2h.js} +1 -1
  222. package/dist/{mxa-B1Zo2pdY.js → mxa-B3DlA-Xs.js} +26 -25
  223. package/dist/{mxa-AkNoI49p.cjs → mxa-CU0OUOdG.cjs} +2 -2
  224. package/dist/{myValue-Dc-TNaIJ.cjs → myValue-AeGxHeE2.cjs} +1 -1
  225. package/dist/{myValue-DiFqx2Mu.js → myValue-DEbeO9Cb.js} +2 -2
  226. package/dist/{myValueList-BvxK1IqV.cjs → myValueList-EkbSpjf0.cjs} +1 -1
  227. package/dist/{myValueList-DT6elu6g.js → myValueList-qDBbrqDv.js} +2 -2
  228. package/dist/{objectList-DP_NFlRs.cjs → objectList-B1Q5MJPW.cjs} +1 -1
  229. package/dist/{objectList-DKdeE9sZ.js → objectList-DTHwnvxc.js} +3 -3
  230. package/dist/{objectListAPP-CmsWqEg9.cjs → objectListAPP-CgPjYGiu.cjs} +1 -1
  231. package/dist/{objectListAPP-DeE1b0G0.js → objectListAPP-njF3tJUP.js} +4 -4
  232. package/dist/{percentBar-D3OMvL9S.js → percentBar-BAwdbKH8.js} +8 -7
  233. package/dist/{percentBar-u174zBDW.cjs → percentBar-Dil8Vm3q.cjs} +2 -2
  234. package/dist/{photo-CqTeohyU.cjs → photo-BlZ5X_9p.cjs} +1 -1
  235. package/dist/{photo-DTa8-JfE.js → photo-Bn0lWnis.js} +2 -2
  236. package/dist/{pie-CFrlejaI.js → pie-CG2cvCTM.js} +8 -7
  237. package/dist/pie-CbOvGe0n.cjs +2 -0
  238. package/dist/{placeholder-CMjwiNJg.js → placeholder-Bdop1bDv.js} +1 -1
  239. package/dist/{placeholder-DowLjPKg.cjs → placeholder-jPC58i_u.cjs} +1 -1
  240. package/dist/{pressBtn-DqnDriy0.cjs → pressBtn-C6mEzpGm.cjs} +1 -1
  241. package/dist/{pressBtn-JjbjOMlO.js → pressBtn-Cwp0-Mju.js} +3 -3
  242. package/dist/{processTable-u-d0dEWb.js → processTable--PnPJzep.js} +2 -2
  243. package/dist/{processTable-DJGB7G0f.cjs → processTable-CUrw-_tx.cjs} +1 -1
  244. package/dist/{progressBar-BleFQuz0.js → progressBar-CLBQrVhg.js} +2 -2
  245. package/dist/{progressBar-B72uJjds.cjs → progressBar-Dg1WRKUU.cjs} +1 -1
  246. package/dist/{progressCircle-BhjM-BJQ.cjs → progressCircle-DBXHBoZS.cjs} +1 -1
  247. package/dist/{progressCircle-WV1cKW4h.js → progressCircle-Dft4lI8s.js} +2 -2
  248. package/dist/{qrcode-GP6jNJVw.js → qrcode-B7VNzAkt.js} +2 -2
  249. package/dist/{qrcode-DDTd4R-s.cjs → qrcode-BH8f2Hfp.cjs} +1 -1
  250. package/dist/{raceBar-Cc9JESDP.js → raceBar-Ck_RLw_X.js} +4 -3
  251. package/dist/{raceBar-CYruNXAm.cjs → raceBar-DZCr0eC-.cjs} +2 -2
  252. package/dist/{rad-BGWast-X.cjs → rad-C3kidKBD.cjs} +1 -1
  253. package/dist/{rad-CjQvIZQD.js → rad-C7ostpqi.js} +11 -10
  254. package/dist/{radarMapViewer-BFpD4-LL.cjs → radarMapViewer-B8g9WmmH.cjs} +1 -1
  255. package/dist/{radarMapViewer-S1rUbXWP.js → radarMapViewer-BxHWMhxf.js} +2 -2
  256. package/dist/{rainfallFilterBar-C3JEj8IG.js → rainfallFilterBar-C6amyMsu.js} +2 -2
  257. package/dist/{rainfallFilterBar-DkDjbh8n.cjs → rainfallFilterBar-G_3cep1I.cjs} +1 -1
  258. package/dist/{rainfallTimeCurve-B2OKTFXD.cjs → rainfallTimeCurve-Ce8eRvv6.cjs} +1 -1
  259. package/dist/{rainfallTimeCurve-BGq_ewcy.js → rainfallTimeCurve-dOfq4IKr.js} +3 -3
  260. package/dist/{rangeLin-bBttYnyX.js → rangeLin-CXrCb7e3.js} +2 -2
  261. package/dist/{rangeLin-DpFnJ8K3.cjs → rangeLin-GOVFLiyl.cjs} +1 -1
  262. package/dist/{realtimeEvolutionMap-BT4k2Wqr.js → realtimeEvolutionMap-CLhVGzzZ.js} +2 -2
  263. package/dist/{realtimeEvolutionMap-C_n42Iq6.cjs → realtimeEvolutionMap-VApbSWKk.cjs} +1 -1
  264. package/dist/{regionBar-CsqUtbp-.js → regionBar-CgCQBHYm.js} +2 -2
  265. package/dist/{regionBar-CSXHxkm3.cjs → regionBar-DOkzOqR4.cjs} +1 -1
  266. package/dist/{request-J5J0wsgP.js → request-CsLYkQ1F.js} +1 -1
  267. package/dist/{request-DUSs41EC.cjs → request-DBDym05o.cjs} +1 -1
  268. package/dist/{retainer1-D22rnFmM.cjs → retainer1-BihlkLkk.cjs} +1 -1
  269. package/dist/{retainer1-Cte9J2d4.js → retainer1-D2ORoyPc.js} +3 -3
  270. package/dist/{retainer2-DRI9ppfn.cjs → retainer2-5-qgDYHt.cjs} +1 -1
  271. package/dist/{retainer2-RS4hCoZq.js → retainer2-89gF8O00.js} +3 -3
  272. package/dist/{retainerRecordList-Cr0StG14.js → retainerRecordList-B7oZOPiz.js} +2 -2
  273. package/dist/{retainerRecordList-DQMB4-L4.cjs → retainerRecordList-ZukSm42U.cjs} +1 -1
  274. package/dist/{retainerRecordListAPP-BP4gtI1i.cjs → retainerRecordListAPP-C3ghAm55.cjs} +1 -1
  275. package/dist/{retainerRecordListAPP-YvyGdK5v.js → retainerRecordListAPP-CJifqoYV.js} +3 -3
  276. package/dist/{ringTopN-BeZDRsjJ.cjs → ringTopN-BKFTI8w3.cjs} +1 -1
  277. package/dist/{ringTopN-ConF82Zh.js → ringTopN-DEWE8OKA.js} +2 -2
  278. package/dist/{riskRegionTable-DTVgEHjW.js → riskRegionTable-DDWPmzK4.js} +2 -2
  279. package/dist/{riskRegionTable-CsGVR8wJ.cjs → riskRegionTable-Dg-ZfEl1.cjs} +1 -1
  280. package/dist/{sankey-J0dciPYs.cjs → sankey-CVIFo2TP.cjs} +1 -1
  281. package/dist/{sankey-_umLe_10.js → sankey-CjCzdx5A.js} +41 -32
  282. package/dist/{scd-BJgAGWPG.cjs → scd-D7vwm2So.cjs} +1 -1
  283. package/dist/{scd-CZ4ai5ex.js → scd-ExZtelyF.js} +2 -2
  284. package/dist/{sideMenu-DV_609Yg.js → sideMenu-9YGvznYC.js} +2 -2
  285. package/dist/{sideMenu-C5WHsknE.cjs → sideMenu-LL4XLBcW.cjs} +1 -1
  286. package/dist/{slopeStability-D6Juu1nG.js → slopeStability-BRVBekjo.js} +2 -2
  287. package/dist/{slopeStability-DXm89s4Z.cjs → slopeStability-BeoNqhaA.cjs} +1 -1
  288. package/dist/{speedCurve-RS-Vmcpx.js → speedCurve-DJUY_EGs.js} +2 -2
  289. package/dist/{speedCurve-XuSoQEpY.cjs → speedCurve-DLuFWpeb.cjs} +1 -1
  290. package/dist/{stackedBar-BZeUHK-7.js → stackedBar-DkjXvEyH.js} +4 -3
  291. package/dist/{stackedBar--qF-SuFI.cjs → stackedBar-W-rgbty6.cjs} +2 -2
  292. package/dist/{stressFilterBar-CGg4KSaN.cjs → stressFilterBar-D02NjLM9.cjs} +1 -1
  293. package/dist/{stressFilterBar-DOEeLbb7.js → stressFilterBar-FmqkdIl5.js} +2 -2
  294. package/dist/{stressTimeCurve-Cq-Tezdg.cjs → stressTimeCurve-CEU3JrfW.cjs} +1 -1
  295. package/dist/{stressTimeCurve-BKhPXoKQ.js → stressTimeCurve-Ck194Rx4.js} +3 -3
  296. package/dist/{swiper-CL6kBvkH.cjs → swiper-CM54onRz.cjs} +1 -1
  297. package/dist/{swiper-D4M4lXZ4.js → swiper-DGAjlGUa.js} +2 -2
  298. package/dist/{terminalConfigList-3dnhayKR.js → terminalConfigList-DmIncQe8.js} +2 -2
  299. package/dist/{terminalConfigList-QY28rzjd.cjs → terminalConfigList-hy2uUsJe.cjs} +1 -1
  300. package/dist/{terminalList-Bu7bP19K.js → terminalList-9qcAM4LG.js} +2 -2
  301. package/dist/{terminalList-tiGSk_0K.cjs → terminalList-C6DxUrb2.cjs} +1 -1
  302. package/dist/{terminalListAPP-DXmgYl5L.js → terminalListAPP-Dl5MpCjB.js} +3 -3
  303. package/dist/{terminalListAPP-C6eX5qzo.cjs → terminalListAPP-RYLAuqiK.cjs} +1 -1
  304. package/dist/{textbox-D9rdyeFX.js → textbox-CHkPlSAX.js} +2 -2
  305. package/dist/{textbox-CgccVs4H.cjs → textbox-GG4d1QIy.cjs} +1 -1
  306. package/dist/{timeQueryBar-CL3HJJhW.js → timeQueryBar-4KSmgROW.js} +1 -1
  307. package/dist/{timeQueryBar-Bb3Xcgpu.cjs → timeQueryBar-B_sNNLNx.cjs} +1 -1
  308. package/dist/{timeSeries-D_CnLULq.cjs → timeSeries-C6jp_8BG.cjs} +1 -1
  309. package/dist/{timeSeries-D6MUsEtQ.js → timeSeries-CgJ0SIKo.js} +3 -3
  310. package/dist/{timeSeriesCurve-Ba9xhV8H.cjs → timeSeriesCurve-CH12QzSV.cjs} +1 -1
  311. package/dist/{timeSeriesCurve-C1T9LrHY.js → timeSeriesCurve-TMqcdmQk.js} +3 -3
  312. package/dist/{toggleBtn-BxANAeYr.js → toggleBtn-4pgNSMG6.js} +28 -28
  313. package/dist/toggleBtn-DQd4gNtX.cjs +1 -0
  314. package/dist/{trajectoryConfigPanel-CXe1FrhE.js → trajectoryConfigPanel-BG3SSwn9.js} +1 -1
  315. package/dist/{trajectoryConfigPanel-Vc6bTKNr.cjs → trajectoryConfigPanel-Bw1VrV-D.cjs} +1 -1
  316. package/dist/{trajectoryScatter-CTAzSMb-.js → trajectoryScatter-CEN_a_hP.js} +2 -2
  317. package/dist/{trajectoryScatter-CNYUKIcZ.cjs → trajectoryScatter-YyQc-_lS.cjs} +1 -1
  318. package/dist/{universalConfigPanel-BOduMFlD.js → universalConfigPanel-DM-AnPb9.js} +1 -1
  319. package/dist/{universalConfigPanel-CsQJsE0y.cjs → universalConfigPanel-DXs2cr1a.cjs} +1 -1
  320. package/dist/{universalTable-ANbcZ8GW.js → universalTable-BqhsfcZp.js} +2 -2
  321. package/dist/{universalTable-Bnknn0qO.cjs → universalTable-zF3jltzT.cjs} +1 -1
  322. package/dist/{video-B0IQ26cF.js → video-D1iN2V0C.js} +2 -2
  323. package/dist/{video-CL9UQ-9d.cjs → video-Dq1cVS0l.cjs} +1 -1
  324. package/dist/{videoMonitor-C9YBVXU9.cjs → videoMonitor-B_1M-KcU.cjs} +1 -1
  325. package/dist/{videoMonitor-DeYYYnDI.js → videoMonitor-hkuvSmn4.js} +2 -2
  326. package/dist/vlu-0SrsCMT-.cjs +1 -0
  327. package/dist/{vlu-DK3einyX.js → vlu-K66RvuKO.js} +10 -9
  328. package/dist/{warningOverview-Bo_QiQhQ.js → warningOverview-BRKnU2qJ.js} +3 -3
  329. package/dist/{warningOverview-DImw0Y_8.cjs → warningOverview-DE4mZJtA.cjs} +1 -1
  330. package/dist/{weather-CXzPAr2U.cjs → weather-Cc-DzSlJ.cjs} +1 -1
  331. package/dist/{weather-BUuoB0nE.js → weather-DXSwe2wL.js} +2 -2
  332. package/dist/{windLin-CPCjUk4K.cjs → windLin-BWa_lMdL.cjs} +1 -1
  333. package/dist/{windLin-CHPjy9FI.js → windLin-BpJaU1Or.js} +2 -2
  334. package/package.json +1 -1
  335. package/dist/actionItem-DYRI89JR.cjs +0 -1
  336. package/dist/arrayCard-CAKVcE2n.cjs +0 -1
  337. package/dist/evn-DQHREzvd.cjs +0 -1
  338. package/dist/gasStationList-Ctwxqvkd.js +0 -1325
  339. package/dist/gasStationList-DMA0u1LJ.cjs +0 -1
  340. package/dist/grd-DYVYK3to.cjs +0 -1
  341. package/dist/gridview-iOWeVjY1.cjs +0 -1
  342. package/dist/lst-CUa31DYE.cjs +0 -1
  343. package/dist/mixGrid-DnGw5RnG.cjs +0 -1
  344. package/dist/pie-lwxiwQMf.cjs +0 -2
  345. package/dist/toggleBtn-Dbt6N5Sb.cjs +0 -1
  346. package/dist/vlu-TqQBXXP4.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";var F=Object.defineProperty,$=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var O=(n,o,a)=>o in n?F(n,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[o]=a,R=(n,o)=>{for(var a in o||(o={}))H.call(o,a)&&O(n,a,o[a]);if(S)for(var a of S(o))K.call(o,a)&&O(n,a,o[a]);return n},A=(n,o)=>$(n,z(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const Q=require("./BaseComponent-D34QRHy5.cjs"),y=require("./index-CfXXizWL.cjs"),U=require("./ele-vdo-icon-Bgp9gaT6.cjs"),G={class:"video-monitor-wrapper"},J={class:"panel-header"},W={class:"header-left"},X={class:"header-title"},Y={class:"search-bar"},Z=["placeholder"],ee={class:"time-range-row"},te={class:"time-range-item"},oe={class:"time-range-item"},le={class:"video-area"},re={key:0,class:"rec-badge"},ae={class:"video-content"},ne=["src","autoplay","loop","muted","controls"],ce={key:1,class:"video-placeholder"},se={class:"placeholder-text"},de={DEFAULT_ICON:U.DEFAULT_ICON,ACTIVE_ICON:U.ACTIVE_ICON,NAME_CN:"视频监控",NAME_EN:"Video Monitor",ORDER:11,PLATFORM:["pc","screen"]},ie={title:{value:"视频监控",type:"string",label:"component.videoMonitor.title"},realtimeBtnText:{value:"实时更新",type:"string",label:"component.videoMonitor.realtimeBtnText"},searchPlaceholder:{value:"搜索摄像头、位置...",type:"string",label:"component.videoMonitor.searchPlaceholder"},placeholderText:{value:"实时监控",type:"string",label:"component.videoMonitor.placeholderText"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.videoMonitor.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.videoMonitor.accentColor"},recColor:{value:"#e74c3c",type:"color",label:"component.videoMonitor.recColor"},glowEffect:{value:!0,type:"checkbox",label:"component.videoMonitor.glowEffect"},autoplay:{value:!0,type:"checkbox",label:"component.options.autoplay"},loop:{value:!0,type:"checkbox",label:"component.options.loop"},muted:{value:!0,type:"checkbox",label:"component.options.muted"},showControls:{value:!1,type:"checkbox",label:"component.options.controls"}},ue=[{name:"摄像头-01",fv:"video_url",object_id:"",url:""}],fe=["name","fv","object_id","url"],ve=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],me={useAlias:!1,multiObject:!1,source:"mosaic"},pe={DEFAULT:de,OPTIONS:ie,DATA:ue,PARAMS:fe,SOURCE:ve,COMMON:me},he=t.defineComponent(A(R({},pe),{__name:"videoMonitor",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){t.useCssVars(d=>({v05918fa4:t.unref(r).bgColor,d3f9beb2:t.unref(r).borderColor,v23480c46:t.unref(r).textColor,v250d92c9:t.unref(r).accentColor,v91ac3974:t.unref(r).glowEffect?`drop-shadow(0 0 6px ${t.unref(r).accentColor})`:"none",v9406041c:t.unref(r).glowEffect?`0 0 10px ${t.unref(r).accentColor}`:"none",v1bb2feba:t.unref(r).recColor}));const o=n;class a extends Q.BaseComponent{extractStyles(){var l,f,c,i,h,s,b,v,m,u,x,N,V,M,k,w,T,D,B;const{options:e}=this.props.conf;return{title:((l=e==null?void 0:e.title)==null?void 0:l.value)||"视频监控",realtimeBtnText:((f=e==null?void 0:e.realtimeBtnText)==null?void 0:f.value)||"实时更新",searchPlaceholder:((c=e==null?void 0:e.searchPlaceholder)==null?void 0:c.value)||"搜索摄像头、位置...",placeholderText:((i=e==null?void 0:e.placeholderText)==null?void 0:i.value)||"实时监控",bgColor:((h=e==null?void 0:e.bgColor)==null?void 0:h.value)||"#1a2a3a",borderColor:((s=e==null?void 0:e.borderColor)==null?void 0:s.value)||"#2a4a6a",textColor:((b=e==null?void 0:e.textColor)==null?void 0:b.value)||"#ffffff",accentColor:((v=e==null?void 0:e.accentColor)==null?void 0:v.value)||"#00d4ff",recColor:((m=e==null?void 0:e.recColor)==null?void 0:m.value)||"#e74c3c",glowEffect:(x=(u=e==null?void 0:e.glowEffect)==null?void 0:u.value)!=null?x:!0,autoplay:(V=(N=e==null?void 0:e.autoplay)==null?void 0:N.value)!=null?V:!0,loop:(k=(M=e==null?void 0:e.loop)==null?void 0:M.value)!=null?k:!0,muted:(T=(w=e==null?void 0:e.muted)==null?void 0:w.value)!=null?T:!0,showControls:(B=(D=e==null?void 0:e.showControls)==null?void 0:D.value)!=null?B:!1}}getDefaultData(){return[{name:"摄像头-01",fv:"video_url",object_id:"",url:""}]}setHistoryData(e){const{data:l,common:f}=this.props.conf;if(!l.some(s=>s.object_id&&s.fv))return;const i=f.source||"mosaic";["statistics","calculate"].includes(i)&&(e=y.formatStatisticsResult(e,l));let h=y.handleNullData(e,this.props,"history");l.forEach((s,b)=>{var v,m;if(!(!s.object_id||!s.fv))try{const u=(m=(v=h.history[b])==null?void 0:v[0])==null?void 0:m[s.fv];u&&(s.url=u)}catch(u){}})}setSocketData(e){if(!e)return;const{data:l}=this.props.conf;l.some(c=>c.object_id&&c.fv)&&l.forEach(c=>{if(!c.object_id||!c.fv)return;const i=this.extractDataValue(e,c.fv);i&&(c.url=i)})}}const C=new a(o,"videoMonitor");(!o.conf.data||o.conf.data.length===0)&&(o.conf.data=C.getDefaultData()),C.setupLifecycle();const r=C.getStyle(),p=t.ref(""),j=t.ref(!0),I=t.ref(null),E=t.ref(""),g=t.ref(""),_=t.computed(()=>{var e,l;const d=(l=(e=o.conf)==null?void 0:e.data)==null?void 0:l[0];return(d==null?void 0:d.url)||""}),P=()=>console.log("实时更新"),q=()=>console.log("搜索:",p.value),L=()=>{p.value=""};return(d,e)=>(t.openBlock(),t.createElementBlock("div",G,[t.createElementVNode("div",J,[t.createElementVNode("div",W,[e[3]||(e[3]=t.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("path",{d:"M23 7l-7 5 7 5V7z"}),t.createElementVNode("rect",{x:"1",y:"5",width:"15",height:"14",rx:"2",ry:"2"})],-1)),t.createElementVNode("span",X,t.toDisplayString(t.unref(r).title),1)]),t.createElementVNode("button",{class:"realtime-btn",onClick:P},t.toDisplayString(t.unref(r).realtimeBtnText),1)]),t.createElementVNode("div",Y,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=l=>p.value=l),type:"text",class:"search-input",placeholder:t.unref(r).searchPlaceholder},null,8,Z),[[t.vModelText,p.value]]),t.createElementVNode("button",{class:"search-btn",onClick:q},[...e[4]||(e[4]=[t.createElementVNode("span",null,"Q",-1)])]),t.createElementVNode("button",{class:"clear-btn",onClick:L},[...e[5]||(e[5]=[t.createElementVNode("span",null,"×",-1)])])]),t.createElementVNode("div",ee,[t.createElementVNode("div",te,[e[6]||(e[6]=t.createElementVNode("label",null,"开始时间",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=l=>E.value=l),type:"datetime-local",class:"time-input"},null,512),[[t.vModelText,E.value]])]),t.createElementVNode("div",oe,[e[7]||(e[7]=t.createElementVNode("label",null,"结束时间",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[2]||(e[2]=l=>g.value=l),type:"datetime-local",class:"time-input"},null,512),[[t.vModelText,g.value]])])]),t.createElementVNode("div",le,[j.value?(t.openBlock(),t.createElementBlock("div",re,"REC")):t.createCommentVNode("",!0),t.createElementVNode("div",ae,[_.value?(t.openBlock(),t.createElementBlock("video",{key:0,ref_key:"videoRef",ref:I,src:_.value,autoplay:t.unref(r).autoplay,loop:t.unref(r).loop,muted:t.unref(r).muted,controls:t.unref(r).showControls,class:"video-player"}," 您的浏览器不支持视频播放 ",8,ne)):(t.openBlock(),t.createElementBlock("div",ce,[e[8]||(e[8]=t.createElementVNode("svg",{class:"placeholder-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[t.createElementVNode("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),t.createElementVNode("circle",{cx:"12",cy:"12",r:"3"}),t.createElementVNode("path",{d:"M2 8h2M20 8h2"})],-1)),t.createElementVNode("div",se,t.toDisplayString(t.unref(r).placeholderText),1)]))])]),t.renderSlot(d.$slots,"default",{},void 0,!0)]))}})),be=y._export_sfc(he,[["__scopeId","data-v-c25a1dc2"]]);exports.default=be;
1
+ "use strict";var F=Object.defineProperty,$=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var O=(n,o,a)=>o in n?F(n,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[o]=a,R=(n,o)=>{for(var a in o||(o={}))H.call(o,a)&&O(n,a,o[a]);if(S)for(var a of S(o))K.call(o,a)&&O(n,a,o[a]);return n},A=(n,o)=>$(n,z(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const Q=require("./BaseComponent-BHUHnLj-.cjs"),y=require("./index-D7PZNHF4.cjs"),U=require("./ele-vdo-icon-Bgp9gaT6.cjs"),G={class:"video-monitor-wrapper"},J={class:"panel-header"},W={class:"header-left"},X={class:"header-title"},Y={class:"search-bar"},Z=["placeholder"],ee={class:"time-range-row"},te={class:"time-range-item"},oe={class:"time-range-item"},le={class:"video-area"},re={key:0,class:"rec-badge"},ae={class:"video-content"},ne=["src","autoplay","loop","muted","controls"],ce={key:1,class:"video-placeholder"},se={class:"placeholder-text"},de={DEFAULT_ICON:U.DEFAULT_ICON,ACTIVE_ICON:U.ACTIVE_ICON,NAME_CN:"视频监控",NAME_EN:"Video Monitor",ORDER:11,PLATFORM:["pc","screen"]},ie={title:{value:"视频监控",type:"string",label:"component.videoMonitor.title"},realtimeBtnText:{value:"实时更新",type:"string",label:"component.videoMonitor.realtimeBtnText"},searchPlaceholder:{value:"搜索摄像头、位置...",type:"string",label:"component.videoMonitor.searchPlaceholder"},placeholderText:{value:"实时监控",type:"string",label:"component.videoMonitor.placeholderText"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.videoMonitor.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.videoMonitor.accentColor"},recColor:{value:"#e74c3c",type:"color",label:"component.videoMonitor.recColor"},glowEffect:{value:!0,type:"checkbox",label:"component.videoMonitor.glowEffect"},autoplay:{value:!0,type:"checkbox",label:"component.options.autoplay"},loop:{value:!0,type:"checkbox",label:"component.options.loop"},muted:{value:!0,type:"checkbox",label:"component.options.muted"},showControls:{value:!1,type:"checkbox",label:"component.options.controls"}},ue=[{name:"摄像头-01",fv:"video_url",object_id:"",url:""}],fe=["name","fv","object_id","url"],ve=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],me={useAlias:!1,multiObject:!1,source:"mosaic"},pe={DEFAULT:de,OPTIONS:ie,DATA:ue,PARAMS:fe,SOURCE:ve,COMMON:me},he=t.defineComponent(A(R({},pe),{__name:"videoMonitor",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){t.useCssVars(d=>({v05918fa4:t.unref(r).bgColor,d3f9beb2:t.unref(r).borderColor,v23480c46:t.unref(r).textColor,v250d92c9:t.unref(r).accentColor,v91ac3974:t.unref(r).glowEffect?`drop-shadow(0 0 6px ${t.unref(r).accentColor})`:"none",v9406041c:t.unref(r).glowEffect?`0 0 10px ${t.unref(r).accentColor}`:"none",v1bb2feba:t.unref(r).recColor}));const o=n;class a extends Q.BaseComponent{extractStyles(){var l,f,c,i,h,s,b,v,m,u,x,N,V,M,k,w,T,D,B;const{options:e}=this.props.conf;return{title:((l=e==null?void 0:e.title)==null?void 0:l.value)||"视频监控",realtimeBtnText:((f=e==null?void 0:e.realtimeBtnText)==null?void 0:f.value)||"实时更新",searchPlaceholder:((c=e==null?void 0:e.searchPlaceholder)==null?void 0:c.value)||"搜索摄像头、位置...",placeholderText:((i=e==null?void 0:e.placeholderText)==null?void 0:i.value)||"实时监控",bgColor:((h=e==null?void 0:e.bgColor)==null?void 0:h.value)||"#1a2a3a",borderColor:((s=e==null?void 0:e.borderColor)==null?void 0:s.value)||"#2a4a6a",textColor:((b=e==null?void 0:e.textColor)==null?void 0:b.value)||"#ffffff",accentColor:((v=e==null?void 0:e.accentColor)==null?void 0:v.value)||"#00d4ff",recColor:((m=e==null?void 0:e.recColor)==null?void 0:m.value)||"#e74c3c",glowEffect:(x=(u=e==null?void 0:e.glowEffect)==null?void 0:u.value)!=null?x:!0,autoplay:(V=(N=e==null?void 0:e.autoplay)==null?void 0:N.value)!=null?V:!0,loop:(k=(M=e==null?void 0:e.loop)==null?void 0:M.value)!=null?k:!0,muted:(T=(w=e==null?void 0:e.muted)==null?void 0:w.value)!=null?T:!0,showControls:(B=(D=e==null?void 0:e.showControls)==null?void 0:D.value)!=null?B:!1}}getDefaultData(){return[{name:"摄像头-01",fv:"video_url",object_id:"",url:""}]}setHistoryData(e){const{data:l,common:f}=this.props.conf;if(!l.some(s=>s.object_id&&s.fv))return;const i=f.source||"mosaic";["statistics","calculate"].includes(i)&&(e=y.formatStatisticsResult(e,l));let h=y.handleNullData(e,this.props,"history");l.forEach((s,b)=>{var v,m;if(!(!s.object_id||!s.fv))try{const u=(m=(v=h.history[b])==null?void 0:v[0])==null?void 0:m[s.fv];u&&(s.url=u)}catch(u){}})}setSocketData(e){if(!e)return;const{data:l}=this.props.conf;l.some(c=>c.object_id&&c.fv)&&l.forEach(c=>{if(!c.object_id||!c.fv)return;const i=this.extractDataValue(e,c.fv);i&&(c.url=i)})}}const C=new a(o,"videoMonitor");(!o.conf.data||o.conf.data.length===0)&&(o.conf.data=C.getDefaultData()),C.setupLifecycle();const r=C.getStyle(),p=t.ref(""),j=t.ref(!0),I=t.ref(null),E=t.ref(""),g=t.ref(""),_=t.computed(()=>{var e,l;const d=(l=(e=o.conf)==null?void 0:e.data)==null?void 0:l[0];return(d==null?void 0:d.url)||""}),P=()=>console.log("实时更新"),q=()=>console.log("搜索:",p.value),L=()=>{p.value=""};return(d,e)=>(t.openBlock(),t.createElementBlock("div",G,[t.createElementVNode("div",J,[t.createElementVNode("div",W,[e[3]||(e[3]=t.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("path",{d:"M23 7l-7 5 7 5V7z"}),t.createElementVNode("rect",{x:"1",y:"5",width:"15",height:"14",rx:"2",ry:"2"})],-1)),t.createElementVNode("span",X,t.toDisplayString(t.unref(r).title),1)]),t.createElementVNode("button",{class:"realtime-btn",onClick:P},t.toDisplayString(t.unref(r).realtimeBtnText),1)]),t.createElementVNode("div",Y,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=l=>p.value=l),type:"text",class:"search-input",placeholder:t.unref(r).searchPlaceholder},null,8,Z),[[t.vModelText,p.value]]),t.createElementVNode("button",{class:"search-btn",onClick:q},[...e[4]||(e[4]=[t.createElementVNode("span",null,"Q",-1)])]),t.createElementVNode("button",{class:"clear-btn",onClick:L},[...e[5]||(e[5]=[t.createElementVNode("span",null,"×",-1)])])]),t.createElementVNode("div",ee,[t.createElementVNode("div",te,[e[6]||(e[6]=t.createElementVNode("label",null,"开始时间",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=l=>E.value=l),type:"datetime-local",class:"time-input"},null,512),[[t.vModelText,E.value]])]),t.createElementVNode("div",oe,[e[7]||(e[7]=t.createElementVNode("label",null,"结束时间",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[2]||(e[2]=l=>g.value=l),type:"datetime-local",class:"time-input"},null,512),[[t.vModelText,g.value]])])]),t.createElementVNode("div",le,[j.value?(t.openBlock(),t.createElementBlock("div",re,"REC")):t.createCommentVNode("",!0),t.createElementVNode("div",ae,[_.value?(t.openBlock(),t.createElementBlock("video",{key:0,ref_key:"videoRef",ref:I,src:_.value,autoplay:t.unref(r).autoplay,loop:t.unref(r).loop,muted:t.unref(r).muted,controls:t.unref(r).showControls,class:"video-player"}," 您的浏览器不支持视频播放 ",8,ne)):(t.openBlock(),t.createElementBlock("div",ce,[e[8]||(e[8]=t.createElementVNode("svg",{class:"placeholder-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[t.createElementVNode("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),t.createElementVNode("circle",{cx:"12",cy:"12",r:"3"}),t.createElementVNode("path",{d:"M2 8h2M20 8h2"})],-1)),t.createElementVNode("div",se,t.toDisplayString(t.unref(r).placeholderText),1)]))])]),t.renderSlot(d.$slots,"default",{},void 0,!0)]))}})),be=y._export_sfc(he,[["__scopeId","data-v-c25a1dc2"]]);exports.default=be;
@@ -12,8 +12,8 @@ var I = (n, o, c) => o in n ? q(n, o, { enumerable: !0, configurable: !0, writab
12
12
  }, F = (n, o) => G(n, J(o));
13
13
  import { defineComponent as Y, useCssVars as Z, unref as r, ref as m, computed as ee, openBlock as g, createElementBlock as _, createElementVNode as t, toDisplayString as M, withDirectives as w, vModelText as E, createCommentVNode as te, renderSlot as oe } from "vue";
14
14
  import "html2canvas";
15
- import { B as le } from "./BaseComponent-B5SIFUKu.js";
16
- import { O as ae, E as re, _ as ce } from "./index-BAzRwQtP.js";
15
+ import { B as le } from "./BaseComponent-qzL33ZSL.js";
16
+ import { O as ae, E as re, _ as ce } from "./index-BHBE19E2.js";
17
17
  import { A as ne, D as se } from "./ele-vdo-icon-DcWebTR5.js";
18
18
  const ie = { class: "video-monitor-wrapper" }, de = { class: "panel-header" }, ue = { class: "header-left" }, ve = { class: "header-title" }, fe = { class: "search-bar" }, pe = ["placeholder"], he = { class: "time-range-row" }, me = { class: "time-range-item" }, be = { class: "time-range-item" }, Ce = { class: "video-area" }, ye = {
19
19
  key: 0,
@@ -0,0 +1 @@
1
+ "use strict";var A=Object.defineProperty,z=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var g=(l,o,t)=>o in l?A(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,_=(l,o)=>{for(var t in o||(o={}))V.call(o,t)&&g(l,t,o[t]);if(v)for(var t of v(o))T.call(o,t)&&g(l,t,o[t]);return l},C=(l,o)=>z(l,b(o));var h=(l,o,t)=>new Promise((y,c)=>{var n=a=>{try{d(t.next(a))}catch(i){c(i)}},u=a=>{try{d(t.throw(a))}catch(i){c(i)}},d=a=>a.done?y(a.value):Promise.resolve(a.value).then(n,u);d((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("./BaseComponent-BHUHnLj-.cjs"),O=require("./index-D7PZNHF4.cjs"),N=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),D={class:"mix-body"},M={class:"mix-footer"},I="--",j="--",B={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"数值卡片",NAME_EN:"Value",ORDER:3,PLATFORM:["pc","screen","mobile"]},L={valueSize:36,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",titleSize:14,textColor:"#111",isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},R=[{name:"参数一",fv:"",object_id:""}],U=["name","fv","object_id"],F=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],P={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},k=1,q={DEFAULT:B,OPTIONS:L,DATA:R,PARAMS:U,SOURCE:F,ITEMS:k,COMMON:P},H=e.defineComponent(C(_({},q),{__name:"vlu",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const o=l,t=e.ref(O.dayjs().format("YYYY-MM-DD HH:mm:ss"));class y extends x.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),valueSize:this.getOptionValue("valueSize",36),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){return h(this,null,function*(){var i;this.Style.value=this.extractStyles(),this.applyTheme(),(i=this.props.conf.data)!=null&&i.length||(this.props.conf.data=[{name:"参数一",fv:"",object_id:""}])})}setHistoryData(i){if(!i)return;const{data:r}=this.props.conf;!Array.isArray(r)||!r.length||r.forEach((S,f)=>{var m;try{const s=i[f].data[0];s!=null&&(S.value=s);const p=(m=i[f])==null?void 0:m.time[0];p&&(t.value=p)}catch(s){}})}setSocketData(i){super.setSocketData(i),i&&i.datetime&&(t.value=i.datetime)}}const c=new y(o,"vlu");c.setupLifecycle();const n=c.getStyle(),u=o.conf,d=e.computed(()=>N.generateTitleStyle(o.conf.options));return(a,i)=>{var r,S,f,m,s,p;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(d.value)},e.toDisplayString(((f=(S=(r=e.unref(u))==null?void 0:r.data)==null?void 0:S[0])==null?void 0:f.name)||e.unref(u).caption||j),5),e.createElementVNode("div",D,[e.createElementVNode("div",{class:"body-value",style:e.normalizeStyle({fontSize:`${e.unref(n).valueSize}px`,color:e.unref(n).textColor})},e.toDisplayString(((p=(s=(m=e.unref(u))==null?void 0:m.data)==null?void 0:s[0])==null?void 0:p.value)||I),5)]),e.createElementVNode("div",M,[e.createElementVNode("div",{class:"footer-time",style:e.normalizeStyle({fontSize:`${e.unref(n).timeSize}px`,color:e.unref(n).textColor})},e.toDisplayString(t.value),5)]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),$=O._export_sfc(H,[["__scopeId","data-v-e0ed34ae"]]);exports.default=$;
@@ -1,5 +1,5 @@
1
- var x = Object.defineProperty, E = Object.defineProperties;
2
- var z = Object.getOwnPropertyDescriptors;
1
+ var x = Object.defineProperty, z = Object.defineProperties;
2
+ var E = Object.getOwnPropertyDescriptors;
3
3
  var h = Object.getOwnPropertySymbols;
4
4
  var T = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
5
5
  var C = (i, e, t) => e in i ? x(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, A = (i, e) => {
@@ -9,8 +9,8 @@ var C = (i, e, t) => e in i ? x(i, e, { enumerable: !0, configurable: !0, writab
9
9
  for (var t of h(e))
10
10
  D.call(e, t) && C(i, t, e[t]);
11
11
  return i;
12
- }, b = (i, e) => E(i, z(e));
13
- var O = (i, e, t) => new Promise((_, r) => {
12
+ }, O = (i, e) => z(i, E(e));
13
+ var b = (i, e, t) => new Promise((_, r) => {
14
14
  var s = (a) => {
15
15
  try {
16
16
  u(t.next(a));
@@ -27,8 +27,8 @@ var O = (i, e, t) => new Promise((_, r) => {
27
27
  u((t = t.apply(i, e)).next());
28
28
  });
29
29
  import { defineComponent as V, ref as M, computed as N, openBlock as B, createElementBlock as R, normalizeStyle as y, unref as l, createElementVNode as S, toDisplayString as g, renderSlot as j } from "vue";
30
- import { B as L } from "./BaseComponent-B5SIFUKu.js";
31
- import { d as I, _ as U } from "./index-BAzRwQtP.js";
30
+ import { B as L } from "./BaseComponent-qzL33ZSL.js";
31
+ import { d as I, _ as U } from "./index-BHBE19E2.js";
32
32
  import { g as k } from "./titleStyle-BT5GlpAb.js";
33
33
  import { A as F, D as H } from "./ele-vlu-icon-Bg6EHZdJ.js";
34
34
  const P = { class: "mix-body" }, Y = { class: "mix-footer" }, $ = "--", w = "--", W = {
@@ -44,6 +44,7 @@ const P = { class: "mix-body" }, Y = { class: "mix-footer" }, $ = "--", w = "--"
44
44
  radiusSize: 8,
45
45
  bgColor: "#fff",
46
46
  titleColor: "#111",
47
+ titleSize: 14,
47
48
  textColor: "#111",
48
49
  isHideTitle: !1,
49
50
  titleAlign: "left",
@@ -65,7 +66,7 @@ const P = { class: "mix-body" }, Y = { class: "mix-footer" }, $ = "--", w = "--"
65
66
  multiObject: !1,
66
67
  hideMultiObject: !0,
67
68
  source: "mosaic"
68
- }, X = 1, Z = { DEFAULT: W, OPTIONS: q, DATA: G, PARAMS: J, SOURCE: K, ITEMS: X, COMMON: Q }, tt = /* @__PURE__ */ V(b(A({}, Z), {
69
+ }, X = 1, Z = { DEFAULT: W, OPTIONS: q, DATA: G, PARAMS: J, SOURCE: K, ITEMS: X, COMMON: Q }, tt = /* @__PURE__ */ V(O(A({}, Z), {
69
70
  __name: "vlu",
70
71
  props: {
71
72
  conf: { type: Object, default: () => ({ data: [] }) },
@@ -87,7 +88,7 @@ const P = { class: "mix-body" }, Y = { class: "mix-footer" }, $ = "--", w = "--"
87
88
  };
88
89
  }
89
90
  init() {
90
- return O(this, null, function* () {
91
+ return b(this, null, function* () {
91
92
  var o;
92
93
  this.Style.value = this.extractStyles(), this.applyTheme(), (o = this.props.conf.data) != null && o.length || (this.props.conf.data = [{ name: "参数一", fv: "", object_id: "" }]);
93
94
  });
@@ -143,7 +144,7 @@ const P = { class: "mix-body" }, Y = { class: "mix-footer" }, $ = "--", w = "--"
143
144
  ], 4);
144
145
  };
145
146
  }
146
- })), nt = /* @__PURE__ */ U(tt, [["__scopeId", "data-v-bf31c6eb"]]);
147
+ })), nt = /* @__PURE__ */ U(tt, [["__scopeId", "data-v-e0ed34ae"]]);
147
148
  export {
148
149
  nt as default
149
150
  };
@@ -12,10 +12,10 @@ var k = (t, o, a) => o in t ? q(t, o, { enumerable: !0, configurable: !0, writab
12
12
  }, U = (t, o) => G(t, J(o));
13
13
  import { defineComponent as X, computed as b, reactive as Y, ref as V, onMounted as Z, onBeforeUnmount as ee, openBlock as le, createElementBlock as oe, normalizeStyle as ae, createVNode as p, renderSlot as te } from "vue";
14
14
  import "html2canvas";
15
- import { B as ne } from "./BaseComponent-B5SIFUKu.js";
16
- import { _ as re } from "./index-BAzRwQtP.js";
15
+ import { B as ne } from "./BaseComponent-qzL33ZSL.js";
16
+ import { _ as re } from "./index-BHBE19E2.js";
17
17
  import { g as ie } from "./mockData-DcqLnbJF.js";
18
- import { W as se, P as ue, H as ve } from "./HistoryPlanDialog-D5v_jcxq.js";
18
+ import { W as se, P as ue, H as ve } from "./HistoryPlanDialog-CUSKabw0.js";
19
19
  import { A as be, D as pe } from "./ele-evn-icon-MWzAujnD.js";
20
20
  const ce = {
21
21
  DEFAULT_ICON: pe,
@@ -1 +1 @@
1
- "use strict";var $=Object.defineProperty,G=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var I=(n,t,a)=>t in n?$(n,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[t]=a,R=(n,t)=>{for(var a in t||(t={}))K.call(t,a)&&I(n,a,t[a]);if(k)for(var a of k(t))Q.call(t,a)&&I(n,a,t[a]);return n},T=(n,t)=>G(n,J(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const X=require("./BaseComponent-D34QRHy5.cjs"),Y=require("./index-CfXXizWL.cjs"),Z=require("./mockData-Cj71Qk7-.cjs"),b=require("./HistoryPlanDialog-EUzHsez4.cjs"),V=require("./ele-evn-icon-DUQMS-9T.cjs"),ee={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"预警数据概览",NAME_EN:"Warning Overview",ORDER:2,PLATFORM:["pc","screen"]},le={title:{value:"预警数据概览",type:"string",label:"标题"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"强调色"},baseFontSize:{value:13,type:"number",label:"基础字号(px)",min:10,max:20},titleFontSize:{value:14,type:"number",label:"标题字号(px)",min:12,max:24},titleFontWeight:{value:"600",type:"select",label:"标题字重",options:[{label:"常规",value:"400"},{label:"中等",value:"500"},{label:"半粗",value:"600"},{label:"粗体",value:"700"}]},tableHeaderFontSize:{value:12,type:"number",label:"表头字号(px)",min:10,max:18},tableBodyFontSize:{value:12,type:"number",label:"表格字号(px)",min:10,max:18},panelHeaderBgColor:{value:"#ffffff",type:"color",label:"面板头背景"},tableHeaderBgColor:{value:"#f5f7fa",type:"color",label:"表头背景"},tableHeaderColor:{value:"#333333",type:"color",label:"表头文字色"},tableBorderColor:{value:"#ebeef5",type:"color",label:"表格分隔线"},tableRowHoverColor:{value:"#f5f7fa",type:"color",label:"行悬停色"},level1Color:{value:"#e74c3c",type:"color",label:"一级预警色"},level2Color:{value:"#ff6600",type:"color",label:"二级预警色"},level3Color:{value:"#f39c12",type:"color",label:"三级预警色"},level4Color:{value:"#3498db",type:"color",label:"四级预警色"},linkChannel:{value:"landslide",type:"select",label:"联动频道",options:[{label:"滑坡预警",value:"landslide"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道",showWhen:{linkChannel:"custom"}}},oe=[],te=[],ae=["mosaic"],ne={useAlias:!1,multiObject:!1,source:"mosaic"},re={DEFAULT:ee,OPTIONS:le,DATA:oe,PARAMS:te,SOURCE:ae,COMMON:ne},ie=o.defineComponent(T(R({},re),{__name:"warningOverview",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const t=n;class a extends X.BaseComponent{extractStyles(){var i,p,f,C,d,g,y,m,w,S,F,H,x,z,B,O,h,A,D,E,N,P,W,_,M;const e=((i=this.props.conf)==null?void 0:i.options)||{};return{title:((p=e.title)==null?void 0:p.value)||"预警数据概览",bgColor:((f=e.bgColor)==null?void 0:f.value)||"#ffffff",textColor:((C=e.textColor)==null?void 0:C.value)||"#333333",accentColor:((d=e.accentColor)==null?void 0:d.value)||"#409eff",baseFontSize:(y=(g=e.baseFontSize)==null?void 0:g.value)!=null?y:13,titleFontSize:(w=(m=e.titleFontSize)==null?void 0:m.value)!=null?w:14,titleFontWeight:((S=e.titleFontWeight)==null?void 0:S.value)||"600",tableHeaderFontSize:(H=(F=e.tableHeaderFontSize)==null?void 0:F.value)!=null?H:12,tableBodyFontSize:(z=(x=e.tableBodyFontSize)==null?void 0:x.value)!=null?z:12,panelHeaderBgColor:((B=e.panelHeaderBgColor)==null?void 0:B.value)||"#ffffff",tableHeaderBgColor:((O=e.tableHeaderBgColor)==null?void 0:O.value)||"#f5f7fa",tableHeaderColor:((h=e.tableHeaderColor)==null?void 0:h.value)||"#333333",tableBorderColor:((A=e.tableBorderColor)==null?void 0:A.value)||"#ebeef5",tableRowHoverColor:((D=e.tableRowHoverColor)==null?void 0:D.value)||"#f5f7fa",level1Color:((E=e.level1Color)==null?void 0:E.value)||"#e74c3c",level2Color:((N=e.level2Color)==null?void 0:N.value)||"#ff6600",level3Color:((P=e.level3Color)==null?void 0:P.value)||"#f39c12",level4Color:((W=e.level4Color)==null?void 0:W.value)||"#3498db",linkChannel:((_=e.linkChannel)==null?void 0:_.value)||"landslide",customChannel:((M=e.customChannel)==null?void 0:M.value)||""}}getDefaultData(){return[]}}const s=new a(t,"warningOverview"),u=o.computed(()=>s.extractStyles()),q=o.computed(()=>{const l=u.value;return{background:l.bgColor,color:l.textColor,fontSize:l.baseFontSize+"px","--lw-accent":l.accentColor,"--lw-title-size":l.titleFontSize+"px","--lw-title-weight":l.titleFontWeight,"--lw-th-size":l.tableHeaderFontSize+"px","--lw-td-size":l.tableBodyFontSize+"px","--lw-panel-bg":l.bgColor,"--lw-panel-header-bg":l.panelHeaderBgColor,"--lw-table-header-bg":l.tableHeaderBgColor,"--lw-table-header-color":l.tableHeaderColor,"--lw-table-border":l.tableBorderColor,"--lw-table-hover":l.tableRowHoverColor}}),U=o.computed(()=>({1:u.value.level1Color,2:u.value.level2Color,3:u.value.level3Color,4:u.value.level4Color})),r=o.reactive(Z.getMockPageData()),v=o.ref(!1),c=o.ref(!1);function j(l){r.currentWarning=l,s.publish({type:"warning-selected",warning:l})}function L(l){r.plans=l,s.publish({type:"plans-updated",plans:l})}return o.onMounted(()=>s.init()),o.onBeforeUnmount(()=>s.cleanup()),(l,e)=>(o.openBlock(),o.createElementBlock("div",{class:"wov-wrapper",style:o.normalizeStyle(q.value)},[o.createVNode(b.WarningOverviewPanel,{warnings:r.warningEvents,"current-warning":r.currentWarning,"level-colors":U.value,onSelectWarning:j,onManagePlans:e[0]||(e[0]=i=>v.value=!0),onHistoryPlans:e[1]||(e[1]=i=>c.value=!0)},null,8,["warnings","current-warning","level-colors"]),o.createVNode(b.PlanLibraryDialog,{visible:v.value,plans:r.plans,"mobile-objects":r.mobileObjects,"current-warning":r.currentWarning,onClose:e[2]||(e[2]=i=>v.value=!1),"onUpdate:plans":L},null,8,["visible","plans","mobile-objects","current-warning"]),o.createVNode(b.HistoryPlanDialog,{visible:c.value,plans:r.plans,onClose:e[3]||(e[3]=i=>c.value=!1)},null,8,["visible","plans"]),o.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),se=Y._export_sfc(ie,[["__scopeId","data-v-7fdc2e1d"]]);exports.default=se;
1
+ "use strict";var $=Object.defineProperty,G=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var I=(n,t,a)=>t in n?$(n,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[t]=a,R=(n,t)=>{for(var a in t||(t={}))K.call(t,a)&&I(n,a,t[a]);if(k)for(var a of k(t))Q.call(t,a)&&I(n,a,t[a]);return n},T=(n,t)=>G(n,J(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const X=require("./BaseComponent-BHUHnLj-.cjs"),Y=require("./index-D7PZNHF4.cjs"),Z=require("./mockData-Cj71Qk7-.cjs"),b=require("./HistoryPlanDialog-D6VMuzat.cjs"),V=require("./ele-evn-icon-DUQMS-9T.cjs"),ee={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"预警数据概览",NAME_EN:"Warning Overview",ORDER:2,PLATFORM:["pc","screen"]},le={title:{value:"预警数据概览",type:"string",label:"标题"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"强调色"},baseFontSize:{value:13,type:"number",label:"基础字号(px)",min:10,max:20},titleFontSize:{value:14,type:"number",label:"标题字号(px)",min:12,max:24},titleFontWeight:{value:"600",type:"select",label:"标题字重",options:[{label:"常规",value:"400"},{label:"中等",value:"500"},{label:"半粗",value:"600"},{label:"粗体",value:"700"}]},tableHeaderFontSize:{value:12,type:"number",label:"表头字号(px)",min:10,max:18},tableBodyFontSize:{value:12,type:"number",label:"表格字号(px)",min:10,max:18},panelHeaderBgColor:{value:"#ffffff",type:"color",label:"面板头背景"},tableHeaderBgColor:{value:"#f5f7fa",type:"color",label:"表头背景"},tableHeaderColor:{value:"#333333",type:"color",label:"表头文字色"},tableBorderColor:{value:"#ebeef5",type:"color",label:"表格分隔线"},tableRowHoverColor:{value:"#f5f7fa",type:"color",label:"行悬停色"},level1Color:{value:"#e74c3c",type:"color",label:"一级预警色"},level2Color:{value:"#ff6600",type:"color",label:"二级预警色"},level3Color:{value:"#f39c12",type:"color",label:"三级预警色"},level4Color:{value:"#3498db",type:"color",label:"四级预警色"},linkChannel:{value:"landslide",type:"select",label:"联动频道",options:[{label:"滑坡预警",value:"landslide"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道",showWhen:{linkChannel:"custom"}}},oe=[],te=[],ae=["mosaic"],ne={useAlias:!1,multiObject:!1,source:"mosaic"},re={DEFAULT:ee,OPTIONS:le,DATA:oe,PARAMS:te,SOURCE:ae,COMMON:ne},ie=o.defineComponent(T(R({},re),{__name:"warningOverview",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const t=n;class a extends X.BaseComponent{extractStyles(){var i,p,f,C,d,g,y,m,w,S,F,H,x,z,B,O,h,A,D,E,N,P,W,_,M;const e=((i=this.props.conf)==null?void 0:i.options)||{};return{title:((p=e.title)==null?void 0:p.value)||"预警数据概览",bgColor:((f=e.bgColor)==null?void 0:f.value)||"#ffffff",textColor:((C=e.textColor)==null?void 0:C.value)||"#333333",accentColor:((d=e.accentColor)==null?void 0:d.value)||"#409eff",baseFontSize:(y=(g=e.baseFontSize)==null?void 0:g.value)!=null?y:13,titleFontSize:(w=(m=e.titleFontSize)==null?void 0:m.value)!=null?w:14,titleFontWeight:((S=e.titleFontWeight)==null?void 0:S.value)||"600",tableHeaderFontSize:(H=(F=e.tableHeaderFontSize)==null?void 0:F.value)!=null?H:12,tableBodyFontSize:(z=(x=e.tableBodyFontSize)==null?void 0:x.value)!=null?z:12,panelHeaderBgColor:((B=e.panelHeaderBgColor)==null?void 0:B.value)||"#ffffff",tableHeaderBgColor:((O=e.tableHeaderBgColor)==null?void 0:O.value)||"#f5f7fa",tableHeaderColor:((h=e.tableHeaderColor)==null?void 0:h.value)||"#333333",tableBorderColor:((A=e.tableBorderColor)==null?void 0:A.value)||"#ebeef5",tableRowHoverColor:((D=e.tableRowHoverColor)==null?void 0:D.value)||"#f5f7fa",level1Color:((E=e.level1Color)==null?void 0:E.value)||"#e74c3c",level2Color:((N=e.level2Color)==null?void 0:N.value)||"#ff6600",level3Color:((P=e.level3Color)==null?void 0:P.value)||"#f39c12",level4Color:((W=e.level4Color)==null?void 0:W.value)||"#3498db",linkChannel:((_=e.linkChannel)==null?void 0:_.value)||"landslide",customChannel:((M=e.customChannel)==null?void 0:M.value)||""}}getDefaultData(){return[]}}const s=new a(t,"warningOverview"),u=o.computed(()=>s.extractStyles()),q=o.computed(()=>{const l=u.value;return{background:l.bgColor,color:l.textColor,fontSize:l.baseFontSize+"px","--lw-accent":l.accentColor,"--lw-title-size":l.titleFontSize+"px","--lw-title-weight":l.titleFontWeight,"--lw-th-size":l.tableHeaderFontSize+"px","--lw-td-size":l.tableBodyFontSize+"px","--lw-panel-bg":l.bgColor,"--lw-panel-header-bg":l.panelHeaderBgColor,"--lw-table-header-bg":l.tableHeaderBgColor,"--lw-table-header-color":l.tableHeaderColor,"--lw-table-border":l.tableBorderColor,"--lw-table-hover":l.tableRowHoverColor}}),U=o.computed(()=>({1:u.value.level1Color,2:u.value.level2Color,3:u.value.level3Color,4:u.value.level4Color})),r=o.reactive(Z.getMockPageData()),v=o.ref(!1),c=o.ref(!1);function j(l){r.currentWarning=l,s.publish({type:"warning-selected",warning:l})}function L(l){r.plans=l,s.publish({type:"plans-updated",plans:l})}return o.onMounted(()=>s.init()),o.onBeforeUnmount(()=>s.cleanup()),(l,e)=>(o.openBlock(),o.createElementBlock("div",{class:"wov-wrapper",style:o.normalizeStyle(q.value)},[o.createVNode(b.WarningOverviewPanel,{warnings:r.warningEvents,"current-warning":r.currentWarning,"level-colors":U.value,onSelectWarning:j,onManagePlans:e[0]||(e[0]=i=>v.value=!0),onHistoryPlans:e[1]||(e[1]=i=>c.value=!0)},null,8,["warnings","current-warning","level-colors"]),o.createVNode(b.PlanLibraryDialog,{visible:v.value,plans:r.plans,"mobile-objects":r.mobileObjects,"current-warning":r.currentWarning,onClose:e[2]||(e[2]=i=>v.value=!1),"onUpdate:plans":L},null,8,["visible","plans","mobile-objects","current-warning"]),o.createVNode(b.HistoryPlanDialog,{visible:c.value,plans:r.plans,onClose:e[3]||(e[3]=i=>c.value=!1)},null,8,["visible","plans"]),o.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),se=Y._export_sfc(ie,[["__scopeId","data-v-7fdc2e1d"]]);exports.default=se;
@@ -1 +1 @@
1
- "use strict";var w=Object.defineProperty,v=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var g=(C,t,n)=>t in C?w(C,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):C[t]=n,u=(C,t)=>{for(var n in t||(t={}))b.call(t,n)&&g(C,n,t[n]);if(d)for(var n of d(t))_.call(t,n)&&g(C,n,t[n]);return C},m=(C,t)=>v(C,x(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue");require("html2canvas");const M=require("./BaseComponent-D34QRHy5.cjs"),i=require("./index-CfXXizWL.cjs"),y="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e天气%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-807.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",F="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e天气%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-807.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",I={class:"mix-component"},S=["src"],Z={DEFAULT_ICON:y,ACTIVE_ICON:F,NAME_CN:"天气",NAME_EN:"Weather",ORDER:4,PLATFORM:["pc","screen","mobile"]},k={transparent:{value:!1,type:"checkbox",label:"component.options.transparent"},bgColor:"#fff",textColor:{value:"#00B0F0",type:"color",label:"component.options.textColor",hideAlpha:!0},radiusSize:8,bgImg:{value:"",type:"image",label:"component.customized.bgImg"}},E={DEFAULT:Z,OPTIONS:k,COMMON:{}},L=r.defineComponent(m(u({},E),{__name:"weather",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(C){const t=C;class n extends M.BaseComponent{extractStyles(){const{options:e}=this.props.conf,c=(a,h)=>a==null?h:typeof a=="object"&&"value"in a?a.value:a;return{bgColor:c(e==null?void 0:e.bgColor,"#fff"),textColor:c(e==null?void 0:e.textColor,"#00B0F0"),radiusSize:c(e==null?void 0:e.radiusSize,8),bgImg:c(e==null?void 0:e.bgImg,""),transparent:c(e==null?void 0:e.transparent,!1)}}}const s=new n(t,"weather");s.setupLifecycle();const l=s.getStyle(),f=o=>o?o.startsWith(i.FILE_URL)||o.startsWith("http")?o:i.FILE_URL+o:"",p=r.computed(()=>{var o,e;return((e=(o=l.value)==null?void 0:o.textColor)==null?void 0:e.replace("#",""))||"00B0F0"});return(o,e)=>(r.openBlock(),r.createElementBlock("div",I,[r.createElementVNode("div",{class:"weather-wrap",style:r.normalizeStyle({backgroundColor:r.unref(l).transparent?"transparent":r.unref(l).bgColor,borderRadius:`${r.unref(l).radiusSize}px`,backgroundImage:r.unref(l).bgImg?`url(${f(r.unref(l).bgImg)})`:""})},[r.createElementVNode("iframe",{width:"200",scrolling:"no",height:"60",frameborder:"0",allowtransparency:"true",src:`https://i.tianqi.com?c=code&id=12&color=%23${p.value}&icon=1&num=1&site=15&align=center`},null,8,S)],4),r.renderSlot(o.$slots,"default",{},void 0,!0)]))}})),N=i._export_sfc(L,[["__scopeId","data-v-dfc24c16"]]);exports.default=N;
1
+ "use strict";var w=Object.defineProperty,v=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var g=(C,t,n)=>t in C?w(C,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):C[t]=n,u=(C,t)=>{for(var n in t||(t={}))b.call(t,n)&&g(C,n,t[n]);if(d)for(var n of d(t))_.call(t,n)&&g(C,n,t[n]);return C},m=(C,t)=>v(C,x(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue");require("html2canvas");const M=require("./BaseComponent-BHUHnLj-.cjs"),i=require("./index-D7PZNHF4.cjs"),y="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e天气%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-807.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",F="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e天气%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-807.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",I={class:"mix-component"},S=["src"],Z={DEFAULT_ICON:y,ACTIVE_ICON:F,NAME_CN:"天气",NAME_EN:"Weather",ORDER:4,PLATFORM:["pc","screen","mobile"]},k={transparent:{value:!1,type:"checkbox",label:"component.options.transparent"},bgColor:"#fff",textColor:{value:"#00B0F0",type:"color",label:"component.options.textColor",hideAlpha:!0},radiusSize:8,bgImg:{value:"",type:"image",label:"component.customized.bgImg"}},E={DEFAULT:Z,OPTIONS:k,COMMON:{}},L=r.defineComponent(m(u({},E),{__name:"weather",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(C){const t=C;class n extends M.BaseComponent{extractStyles(){const{options:e}=this.props.conf,c=(a,h)=>a==null?h:typeof a=="object"&&"value"in a?a.value:a;return{bgColor:c(e==null?void 0:e.bgColor,"#fff"),textColor:c(e==null?void 0:e.textColor,"#00B0F0"),radiusSize:c(e==null?void 0:e.radiusSize,8),bgImg:c(e==null?void 0:e.bgImg,""),transparent:c(e==null?void 0:e.transparent,!1)}}}const s=new n(t,"weather");s.setupLifecycle();const l=s.getStyle(),f=o=>o?o.startsWith(i.FILE_URL)||o.startsWith("http")?o:i.FILE_URL+o:"",p=r.computed(()=>{var o,e;return((e=(o=l.value)==null?void 0:o.textColor)==null?void 0:e.replace("#",""))||"00B0F0"});return(o,e)=>(r.openBlock(),r.createElementBlock("div",I,[r.createElementVNode("div",{class:"weather-wrap",style:r.normalizeStyle({backgroundColor:r.unref(l).transparent?"transparent":r.unref(l).bgColor,borderRadius:`${r.unref(l).radiusSize}px`,backgroundImage:r.unref(l).bgImg?`url(${f(r.unref(l).bgImg)})`:""})},[r.createElementVNode("iframe",{width:"200",scrolling:"no",height:"60",frameborder:"0",allowtransparency:"true",src:`https://i.tianqi.com?c=code&id=12&color=%23${p.value}&icon=1&num=1&site=15&align=center`},null,8,S)],4),r.renderSlot(o.$slots,"default",{},void 0,!0)]))}})),N=i._export_sfc(L,[["__scopeId","data-v-dfc24c16"]]);exports.default=N;
@@ -12,8 +12,8 @@ var d = (C, t, r) => t in C ? x(C, t, { enumerable: !0, configurable: !0, writab
12
12
  }, m = (C, t) => v(C, _(t));
13
13
  import { defineComponent as F, computed as y, openBlock as I, createElementBlock as Z, createElementVNode as p, normalizeStyle as k, unref as s, renderSlot as S } from "vue";
14
14
  import "html2canvas";
15
- import { B as E } from "./BaseComponent-B5SIFUKu.js";
16
- import { F as f, _ as B } from "./index-BAzRwQtP.js";
15
+ import { B as E } from "./BaseComponent-qzL33ZSL.js";
16
+ import { F as f, _ as B } from "./index-BHBE19E2.js";
17
17
  const N = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e天气%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-807.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", O = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e天气%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-807.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", z = { class: "mix-component" }, L = ["src"], A = {
18
18
  DEFAULT_ICON: N,
19
19
  ACTIVE_ICON: O,
@@ -1 +1 @@
1
- "use strict";var Mn=Object.defineProperty,An=Object.defineProperties;var Nn=Object.getOwnPropertyDescriptors;var hn=Object.getOwnPropertySymbols;var Cn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable;var dn=(X,b,o)=>b in X?Mn(X,b,{enumerable:!0,configurable:!0,writable:!0,value:o}):X[b]=o,mn=(X,b)=>{for(var o in b||(b={}))Cn.call(b,o)&&dn(X,o,b[o]);if(hn)for(var o of hn(b))Tn.call(b,o)&&dn(X,o,b[o]);return X},gn=(X,b)=>An(X,Nn(b));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("vue"),on=require("./BaseComponent-D34QRHy5.cjs"),Q=require("./index-CfXXizWL.cjs"),In=require("./titleStyle-NSnz6cUg.cjs"),pn=require("./ele-aqi-icon-BMm9WgFH.cjs"),Pn=require("./install-DIlB2q7w.cjs"),sn=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Ln=require("./install-C8buXQPI.cjs"),zn=require("./install-CIT6k8Ga.cjs"),Fn=require("./install-z6wShIZI.cjs"),Rn=require("./install-CYwVETsi.cjs"),On=require("./universalTransition-CIN_u2Cu.cjs"),En=require("./echarts-BB8O2KSA.cjs");var k={exports:{}},Un=k.exports,Dn;function Bn(){return Dn||(Dn=1,(function(X,b){(function(f,n){X.exports=n()})(Un,function(){return(function(o){var f={};function n(t){if(f[t])return f[t].exports;var C=f[t]={exports:{},id:t,loaded:!1};return o[t].call(C.exports,C,C.exports,n),C.loaded=!0,C.exports}return n.m=o,n.c=f,n.p="",n(0)})([(function(o,f,n){var t;t=function(C){return{clustering:n(1),regression:n(5),statistics:n(6),histogram:n(15),transform:{regression:n(18),histogram:n(21),clustering:n(22)}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.dataPreprocess,E=m.normalizeDimensions,c=n(3),e=n(4),g=c.size,D=c.sumOfColumn,i=c.sum,y=c.zeros,e=n(4),l=e.isNumber,v=Math.pow,a={SINGLE:"single",MULTIPLE:"multiple"};function h(x,S,M){for(var L=y(x.length,2),P=d(S,F(x,M.dimensions)),N=!0,z,I,O,U;N;){N=!1;for(var T=0;T<x.length;T++){z=1/0,I=-1;for(var W=0;W<S;W++)O=p(x[T],P[W],M),O<z&&(z=O,I=W);L[T][0]!==I&&(N=!0),L[T][0]=I,L[T][1]=z}for(var T=0;T<S;T++){U=[];for(var W=0;W<L.length;W++)L[W][0]===T&&U.push(x[W]);P[T]=u(U,M)}}var w={centroids:P,clusterAssigned:L};return w}function u(x,S){for(var M=[],L,P,N=0;N<S.dimensions.length;N++){var z=S.dimensions[N];L=0;for(var I=0;I<x.length;I++)L+=x[I][z];P=L/x.length,M.push(P)}return M}function r(x,S,M){var L=(l(S)?{clusterCount:S,stepByStep:M}:S)||{clusterCount:2},P=L.clusterCount;if(P<2)return;var N=R(x,L),z=N.outputType===a.SINGLE,I=A(x,{dimensions:N.dimensions}),O=y(I.length,2),U,T,W;function w(V,J){O[V][1]=J}function q(V){return O[V][1]}if(z){U=[];var ln=N.outputClusterIndexDimension;T=function(V,J){U[V][ln]=J},W=function(V){return U[V][ln]};for(var H=0;H<I.length;H++)U.push(I[H].slice()),w(H,0),T(H,0)}else T=function(V,J){O[V][0]=J},W=function(V){return O[V][0]};for(var vn=u(I,N),$=[vn],H=0;H<I.length;H++){var Sn=p(I[H],vn,N);w(H,Sn)}var _,nn,rn,j,en,tn,fn=1,G={data:U,centroids:$,isEnd:!1};z||(G.clusterAssment=O);function cn(){if(fn<P){_=1/0;for(var V,J,Z,Y=0;Y<$.length;Y++){nn=[],rn=[];for(var B=0;B<I.length;B++)W(B)===Y?nn.push(I[B]):rn.push(q(B));j=h(nn,2,N),en=D(j.clusterAssigned,1),tn=i(rn),en+tn<_&&(_=tn+en,V=Y,J=j.centroids,Z=j.clusterAssigned)}for(var B=0;B<Z.length;B++)Z[B][0]===0?Z[B][0]=V:Z[B][0]===1&&(Z[B][0]=$.length);$[V]=J[0],$.push(J[1]);for(var B=0,Y=0;B<I.length&&Y<Z.length;B++)W(B)===V&&(T(B,Z[Y][0]),w(B,Z[Y++][1]));var an=[];if(!z){for(var B=0;B<$.length;B++){an[B]=[];for(var Y=0;Y<I.length;Y++)W(Y)===B&&an[B].push(I[Y])}G.pointsInCluster=an}fn++}else G.isEnd=!0}if(L.stepByStep)G.next=function(){return cn(),s(G,N),G};else for(;cn(),!G.isEnd;);return s(G,N),G}function s(x,S){var M=S.outputCentroidDimensions;if(!(S.outputType!==a.SINGLE||M==null))for(var L=x.data,P=x.centroids,N=0;N<L.length;N++)for(var z=L[N],I=z[S.outputClusterIndexDimension],O=P[I],U=Math.min(O.length,M.length),T=0;T<U;T++)z[M[T]]=O[T]}function d(x,S){for(var M=y(x,S.length),L=0;L<S.length;L++)for(var P=S[L],N=0;N<x;N++)M[N][L]=P.min+P.span*Math.random();return M}function p(x,S,M){for(var L=0,P=M.dimensions,N=M.rawExtents,z=0;z<P.length;z++){var I=N[z].span;if(I){var O=P[z],U=(x[O]-S[z])/I;L+=v(U,2)}}return L}function R(x,S){var M=g(x);if(M.length<1)throw new Error("The input data of clustering should be two-dimension array.");for(var L=M[1],P=[],N=0;N<L;N++)P.push(N);var z=E(S.dimensions,P),I=S.outputType||a.MULTIPLE,O=S.outputClusterIndexDimension;if(I===a.SINGLE&&!e.isNumber(O))throw new Error("outputClusterIndexDimension is required as a number.");var U=F(x,z);return{dimensions:z,rawExtents:U,outputType:I,outputClusterIndexDimension:O,outputCentroidDimensions:S.outputCentroidDimensions}}function F(x,S){for(var M=[],L=S.length,P=0;P<L;P++)M.push({min:1/0,max:-1/0});for(var P=0;P<x.length;P++)for(var N=x[P],z=0;z<L;z++){var I=M[z],O=N[S[z]];I.min>O&&(I.min=O),I.max<O&&(I.max=O)}for(var P=0;P<L;P++)M[P].span=M[P].max-M[P].min;return M}return{OutputType:a,hierarchicalKMeans:r}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(3),A=m.isArray,E=m.size,c=n(4),g=c.isNumber;function D(e,l){return typeof e=="number"?[e]:e==null?l:e}function i(e,l){l=l||{};var v=l.dimensions,a={};if(v!=null)for(var h=0;h<v.length;h++)a[v[h]]=!0;var u=l.toOneDimensionArray?v?v[0]:0:null;function r(x){return!v||a.hasOwnProperty(x)}if(!A(e))throw new Error("Invalid data type, you should input an array");var s=[],d=E(e);if(d.length===1)for(var h=0;h<d[0];h++){var p=e[h];g(p)&&s.push(p)}else if(d.length===2)for(var h=0;h<d[0];h++){for(var R=!0,p=e[h],F=0;F<d[1];F++)r(F)&&!g(p[F])&&(R=!1);R&&s.push(u!=null?p[u]:p)}return s}function y(e){var l=e.toString(),v=l.indexOf(".");return v<0?0:l.length-1-v}return{normalizeDimensions:D,dataPreprocess:i,getPrecision:y}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=Object.prototype.toString,A=Array.prototype,E=A.map;function c(a){for(var h=[];g(a);)h.push(a.length),a=a[0];return h}function g(a){return m.call(a)==="[object Array]"}function D(a,h){for(var u=[],r=0;r<a;r++){u[r]=[];for(var s=0;s<h;s++)u[r][s]=0}return u}function i(a){for(var h=0,u=0;u<a.length;u++)h+=a[u];return h}function y(a,h){for(var u=0,r=0;r<a.length;r++)u+=a[r][h];return u}function e(a,h){return a>h?1:a<h?-1:a===h?0:NaN}function l(a,h,u,r){for(u==null&&(u=0),r==null&&(r=a.length);u<r;){var s=Math.floor((u+r)/2),d=e(a[s],h);if(d>0)r=s;else if(d<0)u=s+1;else return s+1}return u}function v(a,h,u){if(a&&h){if(a.map&&a.map===E)return a.map(h,u);for(var r=[],s=0,d=a.length;s<d;s++)r.push(h.call(u,a[s],s,a));return r}}return{size:c,isArray:g,zeros:D,sum:i,sumOfColumn:y,ascending:e,bisect:l,map:v}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){function m(c){return c=c===null?NaN:+c,typeof c=="number"&&!isNaN(c)}function A(c){return isFinite(c)&&c===Math.round(c)}function E(c){if(c===0)return 0;var g=Math.floor(Math.log(c)/Math.LN10);return c/Math.pow(10,g)>=10&&g++,g}return{isNumber:m,isInteger:A,quantityExponent:E}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.dataPreprocess,E=m.normalizeDimensions,c={linear:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=i.length,s=0;s<r;s++){var d=i[s];v+=d[e],a+=d[l],h+=d[e]*d[l],u+=d[e]*d[e]}for(var p=(r*h-v*a)/(r*u-v*v),R=a/r-p*v/r,F=[],x=0;x<i.length;x++){var d=i[x],S=d.slice();S[e]=d[e],S[l]=p*d[e]+R,F.push(S)}var M="y = "+Math.round(p*100)/100+"x + "+Math.round(R*100)/100;return{points:F,parameter:{gradient:p,intercept:R},expression:M}},linearThroughOrigin:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0;h<i.length;h++){var u=i[h];v+=u[e]*u[e],a+=u[e]*u[l]}for(var r=a/v,s=[],d=0;d<i.length;d++){var u=i[d],p=u.slice();p[e]=u[e],p[l]=u[e]*r,s.push(p)}var R="y = "+Math.round(r*100)/100+"x";return{points:s,parameter:{gradient:r},expression:R}},exponential:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=0,s=0,d=0;d<i.length;d++){var p=i[d];v+=p[e],a+=p[l],s+=p[e]*p[l],h+=p[e]*p[e]*p[l],u+=p[l]*Math.log(p[l]),r+=p[e]*p[l]*Math.log(p[l])}for(var R=a*h-s*s,F=Math.pow(Math.E,(h*u-s*r)/R),x=(a*r-s*u)/R,S=[],M=0;M<i.length;M++){var p=i[M],L=p.slice();L[e]=p[e],L[l]=F*Math.pow(Math.E,x*p[e]),S.push(L)}var P="y = "+Math.round(F*100)/100+"e^("+Math.round(x*100)/100+"x)";return{points:S,parameter:{coefficient:F,index:x},expression:P}},logarithmic:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=0;r<i.length;r++){var s=i[r];v+=Math.log(s[e]),a+=s[l]*Math.log(s[e]),h+=s[l],u+=Math.pow(Math.log(s[e]),2)}for(var d=(r*a-h*v)/(r*u-v*v),p=(h-d*v)/r,R=[],F=0;F<i.length;F++){var s=i[F],x=s.slice();x[e]=s[e],x[l]=d*Math.log(s[e])+p,R.push(x)}var S="y = "+Math.round(p*100)/100+" + "+Math.round(d*100)/100+"ln(x)";return{points:R,parameter:{gradient:d,intercept:p},expression:S}},polynomial:function(i,y){var e=y.dimensions[0],l=y.dimensions[1],v=y.order;v==null&&(v=2);for(var a=[],h=[],u=v+1,r=0;r<u;r++){for(var s=0,d=0;d<i.length;d++){var p=i[d];s+=p[l]*Math.pow(p[e],r)}h.push(s);for(var R=[],F=0;F<u;F++){for(var x=0,S=0;S<i.length;S++)x+=Math.pow(i[S][e],r+F);R.push(x)}a.push(R)}a.push(h);for(var M=g(a,u),L=[],r=0;r<i.length;r++){for(var P=0,p=i[r],d=0;d<M.length;d++)P+=M[d]*Math.pow(p[e],d);var N=p.slice();N[e]=p[e],N[l]=P,L.push(N)}for(var z="y = ",r=M.length-1;r>=0;r--)r>1?z+=Math.round(M[r]*Math.pow(10,r+1))/Math.pow(10,r+1)+"x^"+r+" + ":r===1?z+=Math.round(M[r]*100)/100+"x + ":z+=Math.round(M[r]*100)/100;return{points:L,parameter:M,expression:z}}};function g(i,y){for(var e=0;e<i.length-1;e++){for(var l=e,v=e+1;v<i.length-1;v++)Math.abs(i[e][v])>Math.abs(i[e][l])&&(l=v);for(var a=e;a<i.length;a++){var h=i[a][e];i[a][e]=i[a][l],i[a][l]=h}for(var u=e+1;u<i.length-1;u++)for(var r=i.length-1;r>=e;r--)i[r][u]-=i[r][e]/i[e][e]*i[e][u]}for(var s=new Array(y),d=i.length-1,v=i.length-2;v>=0;v--){for(var h=0,e=v+1;e<i.length-1;e++)h+=i[e][v]*s[e];s[v]=(i[d][v]-h)/i[v][v]}return s}var D=function(i,y,e){var l=typeof e=="number"?{order:e}:e||{},v=E(l.dimensions,[0,1]),a=A(y,{dimensions:v}),h=c[i](a,{order:l.order,dimensions:v}),u=v[0];return h.points.sort(function(r,s){return r[u]-s[u]}),h};return D}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m={};return m.max=n(7),m.deviation=n(8),m.mean=n(10),m.median=n(12),m.min=n(14),m.quantile=n(13),m.sampleVariance=n(9),m.sum=n(11),m}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){for(var g=-1/0,D=0;D<c.length;D++)A(c[D])&&c[D]>g&&(g=c[D]);return g}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(9);return function(A){var E=m(A);return E&&Math.sqrt(E)}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber,E=n(10);function c(g){var D=g.length;if(!D||D<2)return 0;if(g.length>=2){for(var i=E(g),y=0,e,l=0;l<g.length;l++)A(g[l])&&(e=g[l]-i,y+=e*e);return y/(g.length-1)}}return c}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(11);function A(E){var c=E.length;return c?m(E)/E.length:0}return A}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){var g=c.length;if(!g)return 0;for(var D=0,i=0;i<g;i++)A(c[i])&&(D+=c[i]);return D}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(13);function A(E){return m(E,.5)}return A}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){return function(m,A){var E=m.length;if(!E)return 0;if(A<=0||E<2)return m[0];if(A>=1)return m[E-1];var c=(E-1)*A,g=Math.floor(c),D=m[g],i=m[g+1];return D+(i-D)*(c-g)}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){for(var g=1/0,D=0;D<c.length;D++)A(c[D])&&c[D]<g&&(g=c[D]);return g}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(7),A=n(14),E=n(13),c=n(8),g=n(2),D=g.dataPreprocess,i=g.normalizeDimensions,y=n(3),e=y.ascending,l=y.map,v=n(16),a=y.bisect,h=n(17);function u(W,d){for(var p=typeof d=="string"?{method:d}:d||{},R=p.method==null?r.squareRoot:r[p.method],F=i(p.dimensions),x=D(W,{dimensions:F,toOneDimensionArray:!0}),S=m(x),M=A(x),L=R(x,M,S),P=h(M,S,L),N=P.step,z=P.toFixedPrecision,I=v(+(Math.ceil(M/N)*N).toFixed(z),+(Math.floor(S/N)*N).toFixed(z),N,z),O=I.length,U=new Array(O+1),T=0;T<=O;T++)U[T]={},U[T].sample=[],U[T].x0=T>0?I[T-1]:I[T]-M===N?M:I[T]-N,U[T].x1=T<O?I[T]:S-I[T-1]===N?S:I[T-1]+N;for(var T=0;T<x.length;T++)M<=x[T]&&x[T]<=S&&U[a(I,x[T],0,O)].sample.push(x[T]);var W=l(U,function(q){return[+((q.x0+q.x1)/2).toFixed(z),q.sample.length,q.x0,q.x1,q.x0+" - "+q.x1]}),w=l(U,function(q){return[q.x0,q.x1,q.sample.length]});return{bins:U,data:W,customData:w}}var r={squareRoot:function(s){var d=Math.ceil(Math.sqrt(s.length));return d>50?50:d},scott:function(s,d,p){return Math.ceil((p-d)/(3.5*c(s)*Math.pow(s.length,-1/3)))},freedmanDiaconis:function(s,d,p){return s.sort(e),Math.ceil((p-d)/(2*(E(s,.75)-E(s,.25))*Math.pow(s.length,-1/3)))},sturges:function(s){return Math.ceil(Math.log(s.length)/Math.LN2)+1}};return u}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.getPrecision;return function(E,c,g,D){var i=arguments.length;i<2?(c=E,E=0,g=1):i<3?g=1:i<4?(g=+g,D=A(g)):D=+D;for(var y=Math.ceil(((c-E)/g).toFixed(D)),e=new Array(y+1),l=0;l<y+1;l++)e[l]=+(E+l*g).toFixed(D);return e}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4);return function(A,E,c){var g=Math.abs(E-A)/c,D=m.quantityExponent(g),i=Math.pow(10,D),y=g/i;y>=Math.sqrt(50)?i*=10:y>=Math.sqrt(10)?i*=5:y>=Math.sqrt(2)&&(i*=2);var e=D<0?-D:0,l=+(E>=A?i:-i).toFixed(e);return{step:l,toFixedPrecision:e}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(5),A=n(19),E=2;return{type:"ecStat:regression",transform:function(g){var D=g.upstream,i=g.config||{},y=i.method||"linear",e=m(y,D.cloneRawData(),{order:i.order,dimensions:A.normalizeExistingDimensions(g,i.dimensions)}),l=e.points,v=i.formulaOn;v==null&&(v="end");var a;if(v!=="none"){for(var h=0;h<l.length;h++)l[h][E]=v==="start"&&h===0||v==="all"||v==="end"&&h===l.length-1?e.expression:"";a=D.cloneAllDimensionInfo(),a[E]={}}return[{dimensions:a,data:l}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(3),A=n(4),E=n(20);function c(D,i){if(i==null)return;var y=D.upstream;if(m.isArray(i)){for(var e=[],l=0;l<i.length;l++){var v=y.getDimensionInfo(i[l]);a(v,i[l]),e[l]=v.index}return e}else{var v=y.getDimensionInfo(i);return a(v,i),v.index}function a(h,u){if(!h)throw new Error("Can not find dimension by "+u)}}function g(D){if(m.isArray(D)){for(var i=[],y=[],e=0;e<D.length;e++){var l=v(D[e]);i.push(l.name),y.push(l.index)}return{name:i,index:y}}else if(D!=null)return v(D);function v(a){if(A.isNumber(a))return{index:a};if(E.isObject(a)&&A.isNumber(a.index))return a;throw new Error("Illegle new dimensions config. Expect `{ name: string, index: number }`.")}}return{normalizeExistingDimensions:c,normalizeNewDimensions:g}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){function m(E,c){if(Object.assign)Object.assign(E,c);else for(var g in c)c.hasOwnProperty(g)&&(E[g]=c[g]);return E}function A(E){const c=typeof E;return c==="function"||!!E&&c==="object"}return{extend:m,isObject:A}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(15),A=n(19);return{type:"ecStat:histogram",transform:function(c){var g=c.upstream,D=c.config||{},i=m(g.cloneRawData(),{method:D.method,dimensions:A.normalizeExistingDimensions(c,D.dimensions)});return[{dimensions:["MeanOfV0V1","VCount","V0","V1","DisplayableName"],data:i.data},{data:i.customData}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(1),A=n(4),E=n(19),c=A.isNumber;return{type:"ecStat:clustering",transform:function(D){var i=D.upstream,y=D.config||{},e=y.clusterCount;if(!c(e)||e<=0)throw new Error('config param "clusterCount" need to be specified as an interger greater than 1.');if(e===1)return[{},{data:[]}];var l=E.normalizeNewDimensions(y.outputClusterIndexDimension),v=E.normalizeNewDimensions(y.outputCentroidDimensions);if(l==null)throw new Error("outputClusterIndexDimension is required as a number.");for(var a=m.hierarchicalKMeans(i.cloneRawData(),{clusterCount:e,stepByStep:!1,dimensions:E.normalizeExistingDimensions(D,y.dimensions),outputType:m.OutputType.SINGLE,outputClusterIndexDimension:l.index,outputCentroidDimensions:(v||{}).index}),h=i.cloneAllDimensionInfo(),u=[],r=0;r<h.length;r++){var s=h[r];u.push(s.name)}if(u[l.index]=l.name,v)for(var r=0;r<v.index.length;r++)v.name[r]!=null&&(u[v.index[r]]=v.name[r]);return[{dimensions:u,data:a.data},{data:a.centroids}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)})])})})(k)),k.exports}var un,xn;function Kn(){return xn||(xn=1,un=Bn()),un}var Wn=Kn();const bn=Q.getDefaultExportFromCjs(Wn),Vn={DEFAULT_ICON:pn.DEFAULT_ICON,ACTIVE_ICON:pn.ACTIVE_ICON,NAME_CN:"风向图",NAME_EN:"Wind Line",ORDER:5,PLATFORM:["pc","screen","mobile"]},Xn={titleColor:"#111",bgColor:"#fff",textColor:"#111",lineColor:"#314656",top:30,bottom:40,left:20,right:20,radiusSize:8,textSize:12,points:30,isHideTitle:!1,isSmooth:!1},yn=[{name:"参数一",项目编号:"",object_id:""}],qn=["name","项目编号"],Yn=["index","deviation","stability","balance","increment","risk"],Hn=1,Gn={useAlias:!1,null:{type:"0",value:""},multiObject:!1,hideMultiObject:!0,source:"index"},Jn={DEFAULT:Vn,OPTIONS:Xn,DATA:yn,PARAMS:qn,SOURCE:Yn,ITEMS:Hn,COMMON:Gn},Zn=K.defineComponent(gn(mn({},Jn),{__name:"windLin",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(X){sn.use([sn.install,Ln.install,zn.install,Fn.install,Rn.install,Pn.install,sn.install$1,On.installUniversalTransition]);const b=K.ref(K.inject("session",null)),{proxy:o}=K.getCurrentInstance(),f="windlin_"+Math.random().toString(16).substring(4,12);let n=null,t=null;const C=X;let m=[];class A extends on.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),lineColor:this.getOptionValue("lineColor","#314656"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),isSmooth:this.getOptionValue("isSmooth",!1)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:yn,C.mode==="edit"&&i(),K.nextTick(()=>{let r=document.querySelector("#"+f);r&&(n||(n=En.init(r),t=Q.elementResizeDetectorMaker({strategy:"scroll"}),t.listenTo(r,()=>n==null?void 0:n.resize())),n.setOption(D(),!0))})}onPreview(){a.preview()}cleanup(){t&&t.uninstall(document.querySelector("#"+f)),n&&n.clear(),n&&En.dispose(n),n=null,a.unregister()}}const E=new A(C,"windLin");E.setupLifecycle();const c=E.getStyle(),g=K.computed(()=>In.generateTitleStyle(C.conf.options)),D=()=>{var d,p,R,F;const{data:u,options:r}=C.conf;let s=u[0]||{};return{tooltip:{trigger:"axis",formatter:function(x){return[x[0].value[0],`${s==null?void 0:s.name}: `+x[0].value[1],`${o.$t("setting.gradient")}: `+x[0].value[2]].join("<br>")}},grid:{top:((d=r==null?void 0:r.top)==null?void 0:d.value)||30,bottom:((p=r==null?void 0:r.bottom)==null?void 0:p.value)||40,left:((R=r==null?void 0:r.left)==null?void 0:R.value)||20,right:((F=r==null?void 0:r.right)==null?void 0:F.value)||20,containLabel:!0},xAxis:{type:"time",splitLine:{lineStyle:{color:"#ddd"}}},yAxis:[{axisLine:{lineStyle:{color:"#666"}},splitNumber:4}],visualMap:{type:"piecewise",show:!1,orient:"horizontal",left:"center",bottom:10,pieces:[{lt:0,color:"#18BF12"},{gte:0,lte:0,color:"#f4e9a3"},{gte:0,color:"#D33C3E"}],seriesIndex:1,dimension:2},dataZoom:[{type:"slider",xAxisIndex:0,start:80,end:100,height:15,bottom:15},{type:"inside"}],series:[{type:"line",yAxisIndex:0,showSymbol:!1,emphasis:{scale:!1},symbolSize:10,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:c.value.lineColor},{offset:1,color:c.value.lineColor+"00"}]}},lineStyle:{color:c.value.lineColor},itemStyle:{color:c.value.lineColor},encode:{x:0},data:m,z:2,smooth:c.value.isSmooth},{type:"custom",renderItem:e,data:m,z:10}]}},i=()=>{var R,F;const u=Q.hasDataSource(C.conf);m=[];let r=[];const{options:s}=C.conf;let d=(F=(R=s==null?void 0:s.points)==null?void 0:R.value)!=null?F:30,p=Q.getxAxisDataTime(d,C.mode,u);if(!p.length){m=[];return}for(let x=0;x<d;x++){let S=Math.floor(Math.random()*200);r.push([p[x],S])}m=y(r)},y=u=>u.map((r,s)=>{var d;if(s===u.length-1)r[2]=0;else{let p=bn.regression("linear",[[s+1,r[1]],[s+2,u[s+1][1]]],0);r[2]=Math.atan(((d=p.parameter)==null?void 0:d.gradient)||0).toFixed(4)}return r}),e=(u,r)=>{const s=r.coord([r.value(0),0]),d=16;return{type:"path",shape:{pathData:"M31 16l-15-15v9h-26v12h26v9z",x:-d/2,y:-d/2,width:d,height:d},rotation:r.value(2),position:s,style:r.style({stroke:"#555",lineWidth:1})}},l=u=>{if(!Q.hasDataSource(C.conf))return;const{data:r}=C.conf;let s=Q.handleNullData(u,C,"history");if(!s.history.length)return;let d=s.history[0],p=[];d.forEach(R=>{let F=R[r[0].fv]||0;p.push([R.time,F])}),m=y(p),n==null||n.setOption(D())},v=u=>{Q.hasDataSource(C.conf)},a={preview:()=>on.preview(C,b.value,l,v,"windLin"),unregister:()=>on.unregister(C,b.value)};K.watchEffect(()=>{C.conf.socketData&&v(C.conf.socketData)});const h=C.conf;return(u,r)=>(K.openBlock(),K.createElementBlock("div",{class:"mix-component",style:K.normalizeStyle({background:K.unref(c).bgColor,borderRadius:`${K.unref(c).radiusSize}px`})},[K.createElementVNode("div",{class:"mix-title",style:K.normalizeStyle(g.value)},K.toDisplayString(K.unref(h).caption||K.unref(h).name),5),K.createElementVNode("div",{class:"mix-body"},[K.createElementVNode("div",{class:"w-full h-full",id:f})]),K.renderSlot(u.$slots,"default",{},void 0,!0)],4))}})),Qn=Q._export_sfc(Zn,[["__scopeId","data-v-4e09b728"]]);exports.default=Qn;
1
+ "use strict";var Mn=Object.defineProperty,An=Object.defineProperties;var Nn=Object.getOwnPropertyDescriptors;var hn=Object.getOwnPropertySymbols;var Cn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable;var dn=(X,b,o)=>b in X?Mn(X,b,{enumerable:!0,configurable:!0,writable:!0,value:o}):X[b]=o,mn=(X,b)=>{for(var o in b||(b={}))Cn.call(b,o)&&dn(X,o,b[o]);if(hn)for(var o of hn(b))Tn.call(b,o)&&dn(X,o,b[o]);return X},gn=(X,b)=>An(X,Nn(b));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("vue"),on=require("./BaseComponent-BHUHnLj-.cjs"),Q=require("./index-D7PZNHF4.cjs"),In=require("./titleStyle-NSnz6cUg.cjs"),pn=require("./ele-aqi-icon-BMm9WgFH.cjs"),Pn=require("./install-DIlB2q7w.cjs"),sn=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Ln=require("./install-C8buXQPI.cjs"),zn=require("./install-CIT6k8Ga.cjs"),Fn=require("./install-z6wShIZI.cjs"),Rn=require("./install-CYwVETsi.cjs"),On=require("./universalTransition-CIN_u2Cu.cjs"),En=require("./echarts-BB8O2KSA.cjs");var k={exports:{}},Un=k.exports,Dn;function Bn(){return Dn||(Dn=1,(function(X,b){(function(f,n){X.exports=n()})(Un,function(){return(function(o){var f={};function n(t){if(f[t])return f[t].exports;var C=f[t]={exports:{},id:t,loaded:!1};return o[t].call(C.exports,C,C.exports,n),C.loaded=!0,C.exports}return n.m=o,n.c=f,n.p="",n(0)})([(function(o,f,n){var t;t=function(C){return{clustering:n(1),regression:n(5),statistics:n(6),histogram:n(15),transform:{regression:n(18),histogram:n(21),clustering:n(22)}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.dataPreprocess,E=m.normalizeDimensions,c=n(3),e=n(4),g=c.size,D=c.sumOfColumn,i=c.sum,y=c.zeros,e=n(4),l=e.isNumber,v=Math.pow,a={SINGLE:"single",MULTIPLE:"multiple"};function h(x,S,M){for(var L=y(x.length,2),P=d(S,F(x,M.dimensions)),N=!0,z,I,O,U;N;){N=!1;for(var T=0;T<x.length;T++){z=1/0,I=-1;for(var W=0;W<S;W++)O=p(x[T],P[W],M),O<z&&(z=O,I=W);L[T][0]!==I&&(N=!0),L[T][0]=I,L[T][1]=z}for(var T=0;T<S;T++){U=[];for(var W=0;W<L.length;W++)L[W][0]===T&&U.push(x[W]);P[T]=u(U,M)}}var w={centroids:P,clusterAssigned:L};return w}function u(x,S){for(var M=[],L,P,N=0;N<S.dimensions.length;N++){var z=S.dimensions[N];L=0;for(var I=0;I<x.length;I++)L+=x[I][z];P=L/x.length,M.push(P)}return M}function r(x,S,M){var L=(l(S)?{clusterCount:S,stepByStep:M}:S)||{clusterCount:2},P=L.clusterCount;if(P<2)return;var N=R(x,L),z=N.outputType===a.SINGLE,I=A(x,{dimensions:N.dimensions}),O=y(I.length,2),U,T,W;function w(V,J){O[V][1]=J}function q(V){return O[V][1]}if(z){U=[];var ln=N.outputClusterIndexDimension;T=function(V,J){U[V][ln]=J},W=function(V){return U[V][ln]};for(var H=0;H<I.length;H++)U.push(I[H].slice()),w(H,0),T(H,0)}else T=function(V,J){O[V][0]=J},W=function(V){return O[V][0]};for(var vn=u(I,N),$=[vn],H=0;H<I.length;H++){var Sn=p(I[H],vn,N);w(H,Sn)}var _,nn,rn,j,en,tn,fn=1,G={data:U,centroids:$,isEnd:!1};z||(G.clusterAssment=O);function cn(){if(fn<P){_=1/0;for(var V,J,Z,Y=0;Y<$.length;Y++){nn=[],rn=[];for(var B=0;B<I.length;B++)W(B)===Y?nn.push(I[B]):rn.push(q(B));j=h(nn,2,N),en=D(j.clusterAssigned,1),tn=i(rn),en+tn<_&&(_=tn+en,V=Y,J=j.centroids,Z=j.clusterAssigned)}for(var B=0;B<Z.length;B++)Z[B][0]===0?Z[B][0]=V:Z[B][0]===1&&(Z[B][0]=$.length);$[V]=J[0],$.push(J[1]);for(var B=0,Y=0;B<I.length&&Y<Z.length;B++)W(B)===V&&(T(B,Z[Y][0]),w(B,Z[Y++][1]));var an=[];if(!z){for(var B=0;B<$.length;B++){an[B]=[];for(var Y=0;Y<I.length;Y++)W(Y)===B&&an[B].push(I[Y])}G.pointsInCluster=an}fn++}else G.isEnd=!0}if(L.stepByStep)G.next=function(){return cn(),s(G,N),G};else for(;cn(),!G.isEnd;);return s(G,N),G}function s(x,S){var M=S.outputCentroidDimensions;if(!(S.outputType!==a.SINGLE||M==null))for(var L=x.data,P=x.centroids,N=0;N<L.length;N++)for(var z=L[N],I=z[S.outputClusterIndexDimension],O=P[I],U=Math.min(O.length,M.length),T=0;T<U;T++)z[M[T]]=O[T]}function d(x,S){for(var M=y(x,S.length),L=0;L<S.length;L++)for(var P=S[L],N=0;N<x;N++)M[N][L]=P.min+P.span*Math.random();return M}function p(x,S,M){for(var L=0,P=M.dimensions,N=M.rawExtents,z=0;z<P.length;z++){var I=N[z].span;if(I){var O=P[z],U=(x[O]-S[z])/I;L+=v(U,2)}}return L}function R(x,S){var M=g(x);if(M.length<1)throw new Error("The input data of clustering should be two-dimension array.");for(var L=M[1],P=[],N=0;N<L;N++)P.push(N);var z=E(S.dimensions,P),I=S.outputType||a.MULTIPLE,O=S.outputClusterIndexDimension;if(I===a.SINGLE&&!e.isNumber(O))throw new Error("outputClusterIndexDimension is required as a number.");var U=F(x,z);return{dimensions:z,rawExtents:U,outputType:I,outputClusterIndexDimension:O,outputCentroidDimensions:S.outputCentroidDimensions}}function F(x,S){for(var M=[],L=S.length,P=0;P<L;P++)M.push({min:1/0,max:-1/0});for(var P=0;P<x.length;P++)for(var N=x[P],z=0;z<L;z++){var I=M[z],O=N[S[z]];I.min>O&&(I.min=O),I.max<O&&(I.max=O)}for(var P=0;P<L;P++)M[P].span=M[P].max-M[P].min;return M}return{OutputType:a,hierarchicalKMeans:r}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(3),A=m.isArray,E=m.size,c=n(4),g=c.isNumber;function D(e,l){return typeof e=="number"?[e]:e==null?l:e}function i(e,l){l=l||{};var v=l.dimensions,a={};if(v!=null)for(var h=0;h<v.length;h++)a[v[h]]=!0;var u=l.toOneDimensionArray?v?v[0]:0:null;function r(x){return!v||a.hasOwnProperty(x)}if(!A(e))throw new Error("Invalid data type, you should input an array");var s=[],d=E(e);if(d.length===1)for(var h=0;h<d[0];h++){var p=e[h];g(p)&&s.push(p)}else if(d.length===2)for(var h=0;h<d[0];h++){for(var R=!0,p=e[h],F=0;F<d[1];F++)r(F)&&!g(p[F])&&(R=!1);R&&s.push(u!=null?p[u]:p)}return s}function y(e){var l=e.toString(),v=l.indexOf(".");return v<0?0:l.length-1-v}return{normalizeDimensions:D,dataPreprocess:i,getPrecision:y}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=Object.prototype.toString,A=Array.prototype,E=A.map;function c(a){for(var h=[];g(a);)h.push(a.length),a=a[0];return h}function g(a){return m.call(a)==="[object Array]"}function D(a,h){for(var u=[],r=0;r<a;r++){u[r]=[];for(var s=0;s<h;s++)u[r][s]=0}return u}function i(a){for(var h=0,u=0;u<a.length;u++)h+=a[u];return h}function y(a,h){for(var u=0,r=0;r<a.length;r++)u+=a[r][h];return u}function e(a,h){return a>h?1:a<h?-1:a===h?0:NaN}function l(a,h,u,r){for(u==null&&(u=0),r==null&&(r=a.length);u<r;){var s=Math.floor((u+r)/2),d=e(a[s],h);if(d>0)r=s;else if(d<0)u=s+1;else return s+1}return u}function v(a,h,u){if(a&&h){if(a.map&&a.map===E)return a.map(h,u);for(var r=[],s=0,d=a.length;s<d;s++)r.push(h.call(u,a[s],s,a));return r}}return{size:c,isArray:g,zeros:D,sum:i,sumOfColumn:y,ascending:e,bisect:l,map:v}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){function m(c){return c=c===null?NaN:+c,typeof c=="number"&&!isNaN(c)}function A(c){return isFinite(c)&&c===Math.round(c)}function E(c){if(c===0)return 0;var g=Math.floor(Math.log(c)/Math.LN10);return c/Math.pow(10,g)>=10&&g++,g}return{isNumber:m,isInteger:A,quantityExponent:E}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.dataPreprocess,E=m.normalizeDimensions,c={linear:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=i.length,s=0;s<r;s++){var d=i[s];v+=d[e],a+=d[l],h+=d[e]*d[l],u+=d[e]*d[e]}for(var p=(r*h-v*a)/(r*u-v*v),R=a/r-p*v/r,F=[],x=0;x<i.length;x++){var d=i[x],S=d.slice();S[e]=d[e],S[l]=p*d[e]+R,F.push(S)}var M="y = "+Math.round(p*100)/100+"x + "+Math.round(R*100)/100;return{points:F,parameter:{gradient:p,intercept:R},expression:M}},linearThroughOrigin:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0;h<i.length;h++){var u=i[h];v+=u[e]*u[e],a+=u[e]*u[l]}for(var r=a/v,s=[],d=0;d<i.length;d++){var u=i[d],p=u.slice();p[e]=u[e],p[l]=u[e]*r,s.push(p)}var R="y = "+Math.round(r*100)/100+"x";return{points:s,parameter:{gradient:r},expression:R}},exponential:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=0,s=0,d=0;d<i.length;d++){var p=i[d];v+=p[e],a+=p[l],s+=p[e]*p[l],h+=p[e]*p[e]*p[l],u+=p[l]*Math.log(p[l]),r+=p[e]*p[l]*Math.log(p[l])}for(var R=a*h-s*s,F=Math.pow(Math.E,(h*u-s*r)/R),x=(a*r-s*u)/R,S=[],M=0;M<i.length;M++){var p=i[M],L=p.slice();L[e]=p[e],L[l]=F*Math.pow(Math.E,x*p[e]),S.push(L)}var P="y = "+Math.round(F*100)/100+"e^("+Math.round(x*100)/100+"x)";return{points:S,parameter:{coefficient:F,index:x},expression:P}},logarithmic:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=0;r<i.length;r++){var s=i[r];v+=Math.log(s[e]),a+=s[l]*Math.log(s[e]),h+=s[l],u+=Math.pow(Math.log(s[e]),2)}for(var d=(r*a-h*v)/(r*u-v*v),p=(h-d*v)/r,R=[],F=0;F<i.length;F++){var s=i[F],x=s.slice();x[e]=s[e],x[l]=d*Math.log(s[e])+p,R.push(x)}var S="y = "+Math.round(p*100)/100+" + "+Math.round(d*100)/100+"ln(x)";return{points:R,parameter:{gradient:d,intercept:p},expression:S}},polynomial:function(i,y){var e=y.dimensions[0],l=y.dimensions[1],v=y.order;v==null&&(v=2);for(var a=[],h=[],u=v+1,r=0;r<u;r++){for(var s=0,d=0;d<i.length;d++){var p=i[d];s+=p[l]*Math.pow(p[e],r)}h.push(s);for(var R=[],F=0;F<u;F++){for(var x=0,S=0;S<i.length;S++)x+=Math.pow(i[S][e],r+F);R.push(x)}a.push(R)}a.push(h);for(var M=g(a,u),L=[],r=0;r<i.length;r++){for(var P=0,p=i[r],d=0;d<M.length;d++)P+=M[d]*Math.pow(p[e],d);var N=p.slice();N[e]=p[e],N[l]=P,L.push(N)}for(var z="y = ",r=M.length-1;r>=0;r--)r>1?z+=Math.round(M[r]*Math.pow(10,r+1))/Math.pow(10,r+1)+"x^"+r+" + ":r===1?z+=Math.round(M[r]*100)/100+"x + ":z+=Math.round(M[r]*100)/100;return{points:L,parameter:M,expression:z}}};function g(i,y){for(var e=0;e<i.length-1;e++){for(var l=e,v=e+1;v<i.length-1;v++)Math.abs(i[e][v])>Math.abs(i[e][l])&&(l=v);for(var a=e;a<i.length;a++){var h=i[a][e];i[a][e]=i[a][l],i[a][l]=h}for(var u=e+1;u<i.length-1;u++)for(var r=i.length-1;r>=e;r--)i[r][u]-=i[r][e]/i[e][e]*i[e][u]}for(var s=new Array(y),d=i.length-1,v=i.length-2;v>=0;v--){for(var h=0,e=v+1;e<i.length-1;e++)h+=i[e][v]*s[e];s[v]=(i[d][v]-h)/i[v][v]}return s}var D=function(i,y,e){var l=typeof e=="number"?{order:e}:e||{},v=E(l.dimensions,[0,1]),a=A(y,{dimensions:v}),h=c[i](a,{order:l.order,dimensions:v}),u=v[0];return h.points.sort(function(r,s){return r[u]-s[u]}),h};return D}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m={};return m.max=n(7),m.deviation=n(8),m.mean=n(10),m.median=n(12),m.min=n(14),m.quantile=n(13),m.sampleVariance=n(9),m.sum=n(11),m}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){for(var g=-1/0,D=0;D<c.length;D++)A(c[D])&&c[D]>g&&(g=c[D]);return g}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(9);return function(A){var E=m(A);return E&&Math.sqrt(E)}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber,E=n(10);function c(g){var D=g.length;if(!D||D<2)return 0;if(g.length>=2){for(var i=E(g),y=0,e,l=0;l<g.length;l++)A(g[l])&&(e=g[l]-i,y+=e*e);return y/(g.length-1)}}return c}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(11);function A(E){var c=E.length;return c?m(E)/E.length:0}return A}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){var g=c.length;if(!g)return 0;for(var D=0,i=0;i<g;i++)A(c[i])&&(D+=c[i]);return D}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(13);function A(E){return m(E,.5)}return A}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){return function(m,A){var E=m.length;if(!E)return 0;if(A<=0||E<2)return m[0];if(A>=1)return m[E-1];var c=(E-1)*A,g=Math.floor(c),D=m[g],i=m[g+1];return D+(i-D)*(c-g)}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){for(var g=1/0,D=0;D<c.length;D++)A(c[D])&&c[D]<g&&(g=c[D]);return g}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(7),A=n(14),E=n(13),c=n(8),g=n(2),D=g.dataPreprocess,i=g.normalizeDimensions,y=n(3),e=y.ascending,l=y.map,v=n(16),a=y.bisect,h=n(17);function u(W,d){for(var p=typeof d=="string"?{method:d}:d||{},R=p.method==null?r.squareRoot:r[p.method],F=i(p.dimensions),x=D(W,{dimensions:F,toOneDimensionArray:!0}),S=m(x),M=A(x),L=R(x,M,S),P=h(M,S,L),N=P.step,z=P.toFixedPrecision,I=v(+(Math.ceil(M/N)*N).toFixed(z),+(Math.floor(S/N)*N).toFixed(z),N,z),O=I.length,U=new Array(O+1),T=0;T<=O;T++)U[T]={},U[T].sample=[],U[T].x0=T>0?I[T-1]:I[T]-M===N?M:I[T]-N,U[T].x1=T<O?I[T]:S-I[T-1]===N?S:I[T-1]+N;for(var T=0;T<x.length;T++)M<=x[T]&&x[T]<=S&&U[a(I,x[T],0,O)].sample.push(x[T]);var W=l(U,function(q){return[+((q.x0+q.x1)/2).toFixed(z),q.sample.length,q.x0,q.x1,q.x0+" - "+q.x1]}),w=l(U,function(q){return[q.x0,q.x1,q.sample.length]});return{bins:U,data:W,customData:w}}var r={squareRoot:function(s){var d=Math.ceil(Math.sqrt(s.length));return d>50?50:d},scott:function(s,d,p){return Math.ceil((p-d)/(3.5*c(s)*Math.pow(s.length,-1/3)))},freedmanDiaconis:function(s,d,p){return s.sort(e),Math.ceil((p-d)/(2*(E(s,.75)-E(s,.25))*Math.pow(s.length,-1/3)))},sturges:function(s){return Math.ceil(Math.log(s.length)/Math.LN2)+1}};return u}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.getPrecision;return function(E,c,g,D){var i=arguments.length;i<2?(c=E,E=0,g=1):i<3?g=1:i<4?(g=+g,D=A(g)):D=+D;for(var y=Math.ceil(((c-E)/g).toFixed(D)),e=new Array(y+1),l=0;l<y+1;l++)e[l]=+(E+l*g).toFixed(D);return e}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4);return function(A,E,c){var g=Math.abs(E-A)/c,D=m.quantityExponent(g),i=Math.pow(10,D),y=g/i;y>=Math.sqrt(50)?i*=10:y>=Math.sqrt(10)?i*=5:y>=Math.sqrt(2)&&(i*=2);var e=D<0?-D:0,l=+(E>=A?i:-i).toFixed(e);return{step:l,toFixedPrecision:e}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(5),A=n(19),E=2;return{type:"ecStat:regression",transform:function(g){var D=g.upstream,i=g.config||{},y=i.method||"linear",e=m(y,D.cloneRawData(),{order:i.order,dimensions:A.normalizeExistingDimensions(g,i.dimensions)}),l=e.points,v=i.formulaOn;v==null&&(v="end");var a;if(v!=="none"){for(var h=0;h<l.length;h++)l[h][E]=v==="start"&&h===0||v==="all"||v==="end"&&h===l.length-1?e.expression:"";a=D.cloneAllDimensionInfo(),a[E]={}}return[{dimensions:a,data:l}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(3),A=n(4),E=n(20);function c(D,i){if(i==null)return;var y=D.upstream;if(m.isArray(i)){for(var e=[],l=0;l<i.length;l++){var v=y.getDimensionInfo(i[l]);a(v,i[l]),e[l]=v.index}return e}else{var v=y.getDimensionInfo(i);return a(v,i),v.index}function a(h,u){if(!h)throw new Error("Can not find dimension by "+u)}}function g(D){if(m.isArray(D)){for(var i=[],y=[],e=0;e<D.length;e++){var l=v(D[e]);i.push(l.name),y.push(l.index)}return{name:i,index:y}}else if(D!=null)return v(D);function v(a){if(A.isNumber(a))return{index:a};if(E.isObject(a)&&A.isNumber(a.index))return a;throw new Error("Illegle new dimensions config. Expect `{ name: string, index: number }`.")}}return{normalizeExistingDimensions:c,normalizeNewDimensions:g}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){function m(E,c){if(Object.assign)Object.assign(E,c);else for(var g in c)c.hasOwnProperty(g)&&(E[g]=c[g]);return E}function A(E){const c=typeof E;return c==="function"||!!E&&c==="object"}return{extend:m,isObject:A}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(15),A=n(19);return{type:"ecStat:histogram",transform:function(c){var g=c.upstream,D=c.config||{},i=m(g.cloneRawData(),{method:D.method,dimensions:A.normalizeExistingDimensions(c,D.dimensions)});return[{dimensions:["MeanOfV0V1","VCount","V0","V1","DisplayableName"],data:i.data},{data:i.customData}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(1),A=n(4),E=n(19),c=A.isNumber;return{type:"ecStat:clustering",transform:function(D){var i=D.upstream,y=D.config||{},e=y.clusterCount;if(!c(e)||e<=0)throw new Error('config param "clusterCount" need to be specified as an interger greater than 1.');if(e===1)return[{},{data:[]}];var l=E.normalizeNewDimensions(y.outputClusterIndexDimension),v=E.normalizeNewDimensions(y.outputCentroidDimensions);if(l==null)throw new Error("outputClusterIndexDimension is required as a number.");for(var a=m.hierarchicalKMeans(i.cloneRawData(),{clusterCount:e,stepByStep:!1,dimensions:E.normalizeExistingDimensions(D,y.dimensions),outputType:m.OutputType.SINGLE,outputClusterIndexDimension:l.index,outputCentroidDimensions:(v||{}).index}),h=i.cloneAllDimensionInfo(),u=[],r=0;r<h.length;r++){var s=h[r];u.push(s.name)}if(u[l.index]=l.name,v)for(var r=0;r<v.index.length;r++)v.name[r]!=null&&(u[v.index[r]]=v.name[r]);return[{dimensions:u,data:a.data},{data:a.centroids}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)})])})})(k)),k.exports}var un,xn;function Kn(){return xn||(xn=1,un=Bn()),un}var Wn=Kn();const bn=Q.getDefaultExportFromCjs(Wn),Vn={DEFAULT_ICON:pn.DEFAULT_ICON,ACTIVE_ICON:pn.ACTIVE_ICON,NAME_CN:"风向图",NAME_EN:"Wind Line",ORDER:5,PLATFORM:["pc","screen","mobile"]},Xn={titleColor:"#111",bgColor:"#fff",textColor:"#111",lineColor:"#314656",top:30,bottom:40,left:20,right:20,radiusSize:8,textSize:12,points:30,isHideTitle:!1,isSmooth:!1},yn=[{name:"参数一",项目编号:"",object_id:""}],qn=["name","项目编号"],Yn=["index","deviation","stability","balance","increment","risk"],Hn=1,Gn={useAlias:!1,null:{type:"0",value:""},multiObject:!1,hideMultiObject:!0,source:"index"},Jn={DEFAULT:Vn,OPTIONS:Xn,DATA:yn,PARAMS:qn,SOURCE:Yn,ITEMS:Hn,COMMON:Gn},Zn=K.defineComponent(gn(mn({},Jn),{__name:"windLin",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(X){sn.use([sn.install,Ln.install,zn.install,Fn.install,Rn.install,Pn.install,sn.install$1,On.installUniversalTransition]);const b=K.ref(K.inject("session",null)),{proxy:o}=K.getCurrentInstance(),f="windlin_"+Math.random().toString(16).substring(4,12);let n=null,t=null;const C=X;let m=[];class A extends on.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),lineColor:this.getOptionValue("lineColor","#314656"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),isSmooth:this.getOptionValue("isSmooth",!1)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:yn,C.mode==="edit"&&i(),K.nextTick(()=>{let r=document.querySelector("#"+f);r&&(n||(n=En.init(r),t=Q.elementResizeDetectorMaker({strategy:"scroll"}),t.listenTo(r,()=>n==null?void 0:n.resize())),n.setOption(D(),!0))})}onPreview(){a.preview()}cleanup(){t&&t.uninstall(document.querySelector("#"+f)),n&&n.clear(),n&&En.dispose(n),n=null,a.unregister()}}const E=new A(C,"windLin");E.setupLifecycle();const c=E.getStyle(),g=K.computed(()=>In.generateTitleStyle(C.conf.options)),D=()=>{var d,p,R,F;const{data:u,options:r}=C.conf;let s=u[0]||{};return{tooltip:{trigger:"axis",formatter:function(x){return[x[0].value[0],`${s==null?void 0:s.name}: `+x[0].value[1],`${o.$t("setting.gradient")}: `+x[0].value[2]].join("<br>")}},grid:{top:((d=r==null?void 0:r.top)==null?void 0:d.value)||30,bottom:((p=r==null?void 0:r.bottom)==null?void 0:p.value)||40,left:((R=r==null?void 0:r.left)==null?void 0:R.value)||20,right:((F=r==null?void 0:r.right)==null?void 0:F.value)||20,containLabel:!0},xAxis:{type:"time",splitLine:{lineStyle:{color:"#ddd"}}},yAxis:[{axisLine:{lineStyle:{color:"#666"}},splitNumber:4}],visualMap:{type:"piecewise",show:!1,orient:"horizontal",left:"center",bottom:10,pieces:[{lt:0,color:"#18BF12"},{gte:0,lte:0,color:"#f4e9a3"},{gte:0,color:"#D33C3E"}],seriesIndex:1,dimension:2},dataZoom:[{type:"slider",xAxisIndex:0,start:80,end:100,height:15,bottom:15},{type:"inside"}],series:[{type:"line",yAxisIndex:0,showSymbol:!1,emphasis:{scale:!1},symbolSize:10,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:c.value.lineColor},{offset:1,color:c.value.lineColor+"00"}]}},lineStyle:{color:c.value.lineColor},itemStyle:{color:c.value.lineColor},encode:{x:0},data:m,z:2,smooth:c.value.isSmooth},{type:"custom",renderItem:e,data:m,z:10}]}},i=()=>{var R,F;const u=Q.hasDataSource(C.conf);m=[];let r=[];const{options:s}=C.conf;let d=(F=(R=s==null?void 0:s.points)==null?void 0:R.value)!=null?F:30,p=Q.getxAxisDataTime(d,C.mode,u);if(!p.length){m=[];return}for(let x=0;x<d;x++){let S=Math.floor(Math.random()*200);r.push([p[x],S])}m=y(r)},y=u=>u.map((r,s)=>{var d;if(s===u.length-1)r[2]=0;else{let p=bn.regression("linear",[[s+1,r[1]],[s+2,u[s+1][1]]],0);r[2]=Math.atan(((d=p.parameter)==null?void 0:d.gradient)||0).toFixed(4)}return r}),e=(u,r)=>{const s=r.coord([r.value(0),0]),d=16;return{type:"path",shape:{pathData:"M31 16l-15-15v9h-26v12h26v9z",x:-d/2,y:-d/2,width:d,height:d},rotation:r.value(2),position:s,style:r.style({stroke:"#555",lineWidth:1})}},l=u=>{if(!Q.hasDataSource(C.conf))return;const{data:r}=C.conf;let s=Q.handleNullData(u,C,"history");if(!s.history.length)return;let d=s.history[0],p=[];d.forEach(R=>{let F=R[r[0].fv]||0;p.push([R.time,F])}),m=y(p),n==null||n.setOption(D())},v=u=>{Q.hasDataSource(C.conf)},a={preview:()=>on.preview(C,b.value,l,v,"windLin"),unregister:()=>on.unregister(C,b.value)};K.watchEffect(()=>{C.conf.socketData&&v(C.conf.socketData)});const h=C.conf;return(u,r)=>(K.openBlock(),K.createElementBlock("div",{class:"mix-component",style:K.normalizeStyle({background:K.unref(c).bgColor,borderRadius:`${K.unref(c).radiusSize}px`})},[K.createElementVNode("div",{class:"mix-title",style:K.normalizeStyle(g.value)},K.toDisplayString(K.unref(h).caption||K.unref(h).name),5),K.createElementVNode("div",{class:"mix-body"},[K.createElementVNode("div",{class:"w-full h-full",id:f})]),K.renderSlot(u.$slots,"default",{},void 0,!0)],4))}})),Qn=Q._export_sfc(Zn,[["__scopeId","data-v-4e09b728"]]);exports.default=Qn;
@@ -11,8 +11,8 @@ var hn = (V, W, o) => W in V ? yn(V, W, { enumerable: !0, configurable: !0, writ
11
11
  return V;
12
12
  }, dn = (V, W) => Mn(V, Sn(W));
13
13
  import { defineComponent as Cn, ref as Tn, inject as Pn, getCurrentInstance as In, computed as Ln, watchEffect as zn, openBlock as Fn, createElementBlock as Rn, normalizeStyle as gn, unref as $, createElementVNode as an, toDisplayString as Un, renderSlot as On, nextTick as Bn } from "vue";
14
- import { B as Kn, u as Wn, p as bn } from "./BaseComponent-B5SIFUKu.js";
15
- import { k as Vn, I as Xn, J as on, K as Yn, E as Hn, _ as Gn } from "./index-BAzRwQtP.js";
14
+ import { B as Kn, u as Wn, p as bn } from "./BaseComponent-qzL33ZSL.js";
15
+ import { k as Vn, I as Xn, J as on, K as Yn, E as Hn, _ as Gn } from "./index-BHBE19E2.js";
16
16
  import { g as Jn } from "./titleStyle-BT5GlpAb.js";
17
17
  import { A as Zn, D as Qn } from "./ele-aqi-icon-DsYfU5th.js";
18
18
  import { i as qn } from "./install-CJ_UX-RT.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mixdashboards",
3
- "version": "1.0.85",
3
+ "version": "1.0.87",
4
4
  "description": "MixDashboards Display Components - Show, Pro, App",
5
5
  "type": "module",
6
6
  "main": "./dist/mixdashboards.cjs",
@@ -1 +0,0 @@
1
- "use strict";var G=Object.defineProperty,Q=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var A=(k,t,o)=>t in k?G(k,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):k[t]=o,O=(k,t)=>{for(var o in t||(t={}))Y.call(t,o)&&A(k,o,t[o]);if(B)for(var o of B(t))Z.call(t,o)&&A(k,o,t[o]);return k},T=(k,t)=>Q(k,X(t));var J=(k,t,o)=>new Promise((s,n)=>{var i=l=>{try{h(o.next(l))}catch(b){n(b)}},p=l=>{try{h(o.throw(l))}catch(b){n(b)}},h=l=>l.done?s(l.value):Promise.resolve(l.value).then(i,p);h((o=o.apply(k,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/empty/style/css");const e=require("vue"),c=require("element-plus"),$=require("@element-plus/icons-vue"),z=require("./index-CfXXizWL.cjs"),ee=require("./BaseComponent-D34QRHy5.cjs"),te=require("./titleStyle-NSnz6cUg.cjs"),q=require("./ele-crd-icon-BvNgAPKW.cjs");class re extends ee.BaseComponent{constructor(t){super(t,"actionItem"),this.formData=e.reactive({}),this.showJsonEditor=e.ref(!1),this.jsonInput=e.ref("")}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#333"),radiusSize:this.getOptionValue("radiusSize",8),labelWidth:this.getOptionValue("labelWidth",100),isHideTitle:this.getOptionValue("isHideTitle",!1),showButtons:this.getOptionValue("showButtons",!0)}}init(){var o;this.Style.value=this.extractStyles(),this.applyTheme();const t=this.props.conf.data;t&&typeof t=="object"&&((o=t.params)!=null&&o.length)&&this.parseBackendData(t),this.initFormData()}getParams(){var t;return Array.isArray((t=this.props.conf)==null?void 0:t.params)?this.props.conf.params:[]}get hasParams(){return this.getParams().length>0}getVisibleParams(){return this.getParams().filter(t=>t.form_type!=="hidden"&&!this.isFieldHidden(t))}getFormRules(){const t={},o=(s,n="")=>{s.forEach(i=>{const p=n?`${n}.${i.key}`:i.key;if(i.form_type==="sub_form"&&i.properties&&!i.items){o(i.properties,p);return}if(i.form_type==="sub_form"&&i.items)return;const h=this.buildValidationRules(i);h.length&&(t[p]=h)})};return o(this.getParams()),t}initFormData(){var o,s;const t=(s=(o=this.props.conf)==null?void 0:o.data)==null?void 0:s.values;this.getParams().forEach(n=>{t&&t[n.key]!==void 0?this.formData[n.key]=t[n.key]:this.formData[n.key]=this.getDefaultValue(n)})}resetForm(){this.initFormData()}getDefaultValue(t){var o,s;if(t.form_type==="sub_form"&&t.properties&&!t.items){const n={};return t.properties.forEach(i=>{n[i.key]=this.getDefaultValue(i)}),n}return t.form_type==="sub_form"&&t.items?Array.isArray(t.default_value)?t.default_value:[]:t.form_type==="checkbox_group"?Array.isArray(t.default_value)?t.default_value:[]:t.default_value!==null&&t.default_value!==void 0?t.default_value:t.form_type==="switch"?!1:t.form_type==="number"?(s=(o=t.format)==null?void 0:o.min)!=null?s:0:""}buildValidationRules(t){const o=[];t.required&&o.push({required:!0,message:`请输入${t.cn_name}`,trigger:"blur"});const s=t.format;return s&&(s.pattern&&o.push({pattern:new RegExp(s.pattern),message:`${t.cn_name}格式不正确`,trigger:"blur"}),(s.min_length||s.max_length)&&o.push({min:s.min_length,max:s.max_length,message:s.min_length&&s.max_length?`长度在 ${s.min_length} 到 ${s.max_length} 个字符`:s.min_length?`最少 ${s.min_length} 个字符`:`最多 ${s.max_length} 个字符`,trigger:"blur"})),o}isFieldHidden(t){var o,s,n,i;if(!((o=t.rules)!=null&&o.length))return!1;for(const p of t.rules){const h=this.formData[(s=p.related_key)==null?void 0:s.split(".")[0]],l=(n=p.conditions)==null?void 0:n.find(b=>b.value===h);if((i=l==null?void 0:l.property)!=null&&i.hidden)return!0}return!1}isFieldDisabled(t){var o,s,n,i;if(!((o=t.rules)!=null&&o.length))return!1;for(const p of t.rules){const h=this.formData[(s=p.related_key)==null?void 0:s.split(".")[0]],l=(n=p.conditions)==null?void 0:n.find(b=>b.value===h);if((i=l==null?void 0:l.property)!=null&&i.disabled)return!0}return!1}getFieldOptions(t){var s,n;let o=t.enum||[];if(t.rules)for(const i of t.rules){if(!i.related_key)continue;const p=this.formData[i.related_key],h=(s=i.conditions)==null?void 0:s.find(l=>l.value===p);if((n=h==null?void 0:h.property)!=null&&n.enum){o=h.property.enum;break}}return o}onFieldChange(t){this.getParams().forEach(o=>{if(o.rules)for(const s of o.rules)s.related_key===t.key&&(this.formData[o.key]=o.form_type==="checkbox_group"?[]:o.form_type==="switch"?!1:"")})}addSubItem(t){var n;Array.isArray(this.formData[t.key])||(this.formData[t.key]=[]);const o=((n=t.items)==null?void 0:n.properties)||t.properties||[],s={};o.forEach(i=>{s[i.key]=this.getDefaultValue(i)}),this.formData[t.key].push(s)}removeSubItem(t,o){var s;(s=this.formData[t])==null||s.splice(o,1)}getSubFieldOptions(t,o){var s,n,i;if((s=t.enum)!=null&&s.length)return t.enum;if(t.rules)for(const p of t.rules){if(!p.related_key)continue;const h=p.related_key.split(".").pop(),l=(n=p.conditions)==null?void 0:n.find(b=>b.value===o[h]);if((i=l==null?void 0:l.property)!=null&&i.enum)return l.property.enum}return[]}onSubFieldChange(t,o,s){var i;(((i=t.items)==null?void 0:i.properties)||t.properties||[]).forEach(p=>{var h;if(p.rules)for(const l of p.rules)((h=l.related_key)==null?void 0:h.split(".").pop())===o.key&&(s[p.key]="")})}applyJson(){try{const t=JSON.parse(this.jsonInput.value);if(t.params&&Array.isArray(t.params))this.props.conf.action_name=t.action_name||"表单",this.props.conf.description=t.description||"",this.props.conf.params=t.params,this.props.conf.data=t,this.initFormData();else if(Array.isArray(t))this.props.conf.params=t,this.props.conf.data={params:t},this.initFormData();else if(t.key&&t.form_type)this.props.conf.params=[t],this.initFormData();else return{success:!1,error:"无法识别的 JSON 格式"};return this.showJsonEditor.value=!1,{success:!0}}catch(t){return{success:!1,error:t.message||"JSON 格式错误"}}}exportTargetJson(){return this.exportToOriginalFormat()}parseBackendData(t){t&&(this.props.conf.action_name=t.action_name,this.props.conf.description=t.description,this.props.conf.params=t.params,this.props.conf.block=t.block,this.props.conf.action=t.action,this.props.conf.data=t,this.initFormData())}serializeToBackend(){return{block:this.props.conf.block,action:this.props.conf.action,params:O({},this.formData),originalFormat:this.exportToOriginalFormat()}}saveFormData(){this.props.conf.data||(this.props.conf.data={}),this.props.conf.data.values=JSON.parse(JSON.stringify(this.formData))}getFullConfig(){return{action_name:this.props.conf.action_name,description:this.props.conf.description,block:this.props.conf.block,action:this.props.conf.action,params:this.props.conf.params}}exportToOriginalFormat(){return this.convertFormDataToOriginal(this.formData,this.getParams())}convertFormDataToOriginal(t,o){const s={};return o.forEach(n=>{var p;const i=t[n.key];n.form_type==="sub_form"?n.properties&&!n.items?s[n.key]=this.convertFormDataToOriginal(i||{},n.properties):(p=n.items)!=null&&p.properties&&(s[n.key]=Array.isArray(i)?i.map(h=>this.convertArrayItemToOriginal(h,n.items.properties)):[]):n.db_type==="boolean"&&typeof i=="boolean"?s[n.key]=i?"true":"false":s[n.key]=i}),s}convertArrayItemToOriginal(t,o){const s={};return o.forEach(n=>{n.form_type==="sub_form"&&n.properties?s[n.key]=this.convertFormDataToOriginal(t[n.key]||{},n.properties):s[n.key]=t[n.key]}),s}setSocketData(t){if(!t)return;const o=t.result||t,s=o.action_item||o;s!=null&&s.params&&this.parseBackendData(s)}watchParams(){e.watch(()=>{var t;return(t=this.props.conf)==null?void 0:t.params},()=>this.initFormData(),{immediate:!0,deep:!0})}}const oe={class:"mix-body"},se={key:0,class:"json-editor"},ne={class:"editor-header"},ae={key:1,class:"edit-toolbar"},le={key:2,class:"empty-state"},ie={key:3,class:"form-content"},ue={key:0,class:"form-description"},ce={DEFAULT_ICON:q.DEFAULT_ICON,ACTIVE_ICON:q.ACTIVE_ICON,NAME_CN:"动态表单",NAME_EN:"ActionItem",ORDER:1,PLATFORM:["pc","screen","mobile"]},de={titleColor:"#111",bgColor:"#fff",radiusSize:8,labelWidth:100,isHideTitle:!1,showButtons:!0},me={},fe=[],pe=[],he={},ye={DEFAULT:ce,OPTIONS:de,DATA:me,PARAMS:fe,SOURCE:pe,COMMON:he},ge=e.defineComponent(T(O({},ye),{__name:"actionItem",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},emits:["submit","generate"],setup(k,{emit:t}){const o=k,s=e.ref(!1),n=e.ref(""),i=t,p=z.useCounterStore(),h=e.ref(),l=new re(o);l.setupLifecycle(),l.watchParams();const b=l.getStyle(),C=e.computed(()=>o.conf||{}),U=e.computed(()=>te.generateTitleStyle(o.conf.options));function N(a,r){return r.split(".").reduce((m,f)=>m==null?void 0:m[f],a)}function w(a,r,m){const f=r.split("."),d=f.pop(),u=f.reduce((_,V)=>((!_[V]||typeof _[V]!="object")&&(_[V]={}),_[V]),a);u[d]=m}function F(a,r,m){var f,d,u;if(!((f=a.rules)!=null&&f.length))return!1;for(const _ of a.rules){const V=_.related_key;if(!V)continue;const E=r?`${r}.${V}`:V,v=N(m,E),g=(d=_.conditions)==null?void 0:d.find(x=>x.value===v);if((u=g==null?void 0:g.property)!=null&&u.hidden)return!0}return!1}const I=e.defineComponent({name:"FormField",props:{param:{type:Object,required:!0},rootData:{type:Object,required:!0},actionItem:{type:Object,required:!0},parentPath:{type:String,default:""}},setup(a){var E;const r=a.param,m=a.rootData,f=a.actionItem,d=r.key,u=a.parentPath?`${a.parentPath}.${d}`:d,_=r.form_type==="sub_form"&&r.properties&&!r.items,V=r.form_type==="sub_form"&&((E=r.items)==null?void 0:E.properties);return()=>{if(F(r,a.parentPath,m))return null;if(_){let g=N(m,u);(!g||typeof g!="object"||Array.isArray(g))&&w(m,u,{});const x=r.properties.filter(y=>!F(y,u,m));return e.h("div",{class:"nested-group"},[e.h("div",{class:"nested-title"},r.cn_name),e.h("div",{class:"nested-content"},x.map(y=>e.h(I,{param:y,rootData:m,actionItem:f,key:y.key,parentPath:u})))])}if(V){let g=N(m,u);Array.isArray(g)||(w(m,u,[]),g=N(m,u));const x=r.items.properties;return e.h(c.ElFormItem,{label:r.cn_name},()=>[e.h("div",{class:"sub-form"},[...g.map((y,D)=>e.h("div",{class:"sub-item",key:D},[e.h("div",{class:"sub-fields"},x.map(S=>e.h("div",{class:"sub-field",key:S.key},[e.h("span",{class:"sub-label"},[S.required?e.h("span",{class:"required-star"},"*"):null,S.cn_name]),j(S,y,f)]))),e.h(c.ElButton,{type:"danger",icon:$.Delete,circle:!0,size:"small",onClick:()=>g.splice(D,1)})])),e.h(c.ElButton,{type:"primary",icon:$.Plus,onClick:()=>{const y={};x.forEach(D=>{y[D.key]=M(D)}),g.push(y)}},()=>"添加")])])}const v={label:r.cn_name,prop:u};return r.required&&(v.rules=[{required:!0,message:`请输入${r.cn_name}`,trigger:"blur"}]),e.h(c.ElFormItem,v,()=>R(r,u,m,f))}}});function R(a,r,m,f){var V,E;const d=f.isFieldDisabled(a),u=N(m,r),_=v=>w(m,r,v);switch(a.form_type){case"text":return e.h(c.ElInput,{modelValue:u!=null?u:"","onUpdate:modelValue":_,placeholder:a.description||`请输入${a.cn_name}`,disabled:d,size:"small"});case"textarea":return e.h(c.ElInput,{type:"textarea",modelValue:u!=null?u:"","onUpdate:modelValue":_,placeholder:a.description,disabled:d,rows:3});case"select":return e.h(c.ElSelect,{modelValue:u!=null?u:"","onUpdate:modelValue":_,placeholder:`请选择${a.cn_name}`,disabled:d,style:"width:100%",size:"small"},()=>(a.enum||[]).map(g=>e.h(c.ElOption,{key:g.value,label:g.cn_name,value:g.value})));case"number":return e.h(c.ElInputNumber,{modelValue:u!=null?u:0,"onUpdate:modelValue":_,disabled:d,min:(V=a.format)==null?void 0:V.min,max:(E=a.format)==null?void 0:E.max,style:"width:100%",size:"small"});case"switch":const v=u===!0||u==="true";return e.h(c.ElSwitch,{modelValue:v,"onUpdate:modelValue":_,disabled:d});default:return e.h(c.ElInput,{modelValue:u!=null?u:"","onUpdate:modelValue":_,disabled:d,size:"small"})}}function j(a,r,m){var u,_,V,E,v,g;const f=a.key,d=m.isFieldDisabled(a);switch(a.form_type){case"text":return e.h(c.ElInput,{modelValue:(u=r[f])!=null?u:"","onUpdate:modelValue":y=>r[f]=y,placeholder:a.description||`请输入${a.cn_name}`,disabled:d,size:"small"});case"select":return e.h(c.ElSelect,{modelValue:(_=r[f])!=null?_:"","onUpdate:modelValue":y=>r[f]=y,placeholder:`请选择${a.cn_name}`,disabled:d,style:"width:100%",size:"small"},()=>(a.enum||[]).map(y=>e.h(c.ElOption,{key:y.value,label:y.cn_name,value:y.value})));case"number":return e.h(c.ElInputNumber,{modelValue:(V=r[f])!=null?V:0,"onUpdate:modelValue":y=>r[f]=y,disabled:d,min:(E=a.format)==null?void 0:E.min,max:(v=a.format)==null?void 0:v.max,style:"width:100%",size:"small"});case"switch":const x=r[f]===!0||r[f]==="true";return e.h(c.ElSwitch,{modelValue:x,"onUpdate:modelValue":y=>r[f]=y,disabled:d});default:return e.h(c.ElInput,{modelValue:(g=r[f])!=null?g:"","onUpdate:modelValue":y=>r[f]=y,disabled:d,size:"small"})}}function M(a){var r,m;return a.default_value!==void 0?a.default_value:a.form_type==="switch"?!1:a.form_type==="checkbox_group"?[]:a.form_type==="number"?(m=(r=a.format)==null?void 0:r.min)!=null?m:0:""}const H=()=>{const a=l.applyJson();a.success?c.ElMessage.success("JSON 配置已应用"):c.ElMessage.error(a.error||"JSON 格式错误")},L=()=>{l.saveFormData(),c.ElMessage.success("保存成功")},W=()=>J(null,null,function*(){var a;try{yield(a=h.value)==null?void 0:a.validate();const r=l.exportTargetJson();n.value=JSON.stringify(r,null,2),s.value=!0,i("generate",r)}catch(r){c.ElMessage.error("请先完善必填项")}}),K=()=>{try{const a=document.createElement("textarea");a.value=n.value,a.style.position="fixed",a.style.opacity="0",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),c.ElMessage.success("已复制到剪贴板")}catch(a){c.ElMessage.error("复制失败")}};return e.onMounted(()=>{p.registerInstance(o.uid,l)}),e.onUnmounted(()=>{p.unregisterInstance(o.uid)}),e.watchEffect(()=>{o.conf.socketData&&l.setSocketData(o.conf.socketData)}),(a,r)=>{const m=P.ElEmpty,f=P.ElForm;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(b).bgColor,borderRadius:e.unref(b).radiusSize+"px"})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(U.value)},e.toDisplayString(C.value.action_name||C.value.caption||C.value.name),5),e.createElementVNode("div",oe,[k.mode==="edit"&&e.unref(l).showJsonEditor.value?(e.openBlock(),e.createElementBlock("div",se,[e.createElementVNode("div",ne,[r[8]||(r[8]=e.createElementVNode("span",null,"JSON 配置",-1)),e.createVNode(e.unref(c.ElButton),{size:"small",onClick:H},{default:e.withCtx(()=>[...r[6]||(r[6]=[e.createTextVNode("应用",-1)])]),_:1}),e.createVNode(e.unref(c.ElButton),{size:"small",onClick:r[0]||(r[0]=d=>e.unref(l).showJsonEditor.value=!1)},{default:e.withCtx(()=>[...r[7]||(r[7]=[e.createTextVNode("关闭",-1)])]),_:1})]),e.createVNode(e.unref(c.ElInput),{type:"textarea",modelValue:e.unref(l).jsonInput.value,"onUpdate:modelValue":r[1]||(r[1]=d=>e.unref(l).jsonInput.value=d),rows:12,placeholder:"粘贴 action_item JSON..."},null,8,["modelValue"])])):e.createCommentVNode("",!0),k.mode==="edit"&&!e.unref(l).showJsonEditor.value?(e.openBlock(),e.createElementBlock("div",ae,[e.createVNode(e.unref(c.ElButton),{size:"small",type:"primary",onClick:r[2]||(r[2]=d=>e.unref(l).showJsonEditor.value=!0)},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("编辑 JSON",-1)])]),_:1})])):e.createCommentVNode("",!0),e.createVNode(e.unref(c.ElDialog),{modelValue:s.value,"onUpdate:modelValue":r[5]||(r[5]=d=>s.value=d),title:"生成的目标JSON",width:"600px","close-on-click-modal":!1},{footer:e.withCtx(()=>[e.createVNode(e.unref(c.ElButton),{onClick:K},{default:e.withCtx(()=>[...r[10]||(r[10]=[e.createTextVNode("复制",-1)])]),_:1}),e.createVNode(e.unref(c.ElButton),{type:"primary",onClick:r[4]||(r[4]=d=>s.value=!1)},{default:e.withCtx(()=>[...r[11]||(r[11]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(c.ElInput),{type:"textarea",modelValue:n.value,"onUpdate:modelValue":r[3]||(r[3]=d=>n.value=d),rows:16,readonly:""},null,8,["modelValue"])]),_:1},8,["modelValue"]),!e.unref(l).hasParams&&k.mode!=="edit"?(e.openBlock(),e.createElementBlock("div",le,[e.createVNode(m,{description:"等待表单配置...","image-size":80})])):e.createCommentVNode("",!0),e.unref(l).hasParams?(e.openBlock(),e.createElementBlock("div",ie,[C.value.description?(e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("p",null,e.toDisplayString(C.value.description),1)])):e.createCommentVNode("",!0),e.createVNode(f,{ref_key:"formRef",ref:h,model:e.unref(l).formData,rules:e.unref(l).getFormRules(),"label-width":e.unref(b).labelWidth+"px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).getVisibleParams(),d=>(e.openBlock(),e.createBlock(e.unref(I),{key:d.key,param:d,rootData:e.unref(l).formData,actionItem:e.unref(l)},null,8,["param","rootData","actionItem"]))),128)),e.unref(b).showButtons?(e.openBlock(),e.createBlock(e.unref(c.ElFormItem),{key:0,class:"form-buttons"},{default:e.withCtx(()=>[e.createVNode(e.unref(c.ElButton),{type:"primary",onClick:L},{default:e.withCtx(()=>[...r[12]||(r[12]=[e.createTextVNode("保存",-1)])]),_:1}),e.createVNode(e.unref(c.ElButton),{type:"success",onClick:W},{default:e.withCtx(()=>[...r[13]||(r[13]=[e.createTextVNode("生成JSON",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["model","rules","label-width"])])):e.createCommentVNode("",!0)]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),_e=z._export_sfc(ge,[["__scopeId","data-v-87fa7bd9"]]);exports.default=_e;
@@ -1 +0,0 @@
1
- "use strict";var b=Object.defineProperty,v=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var g=(r,o,e)=>o in r?b(r,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[o]=e,h=(r,o)=>{for(var e in o||(o={}))V.call(o,e)&&g(r,e,o[e]);if(C)for(var e of C(o))z.call(o,e)&&g(r,e,o[e]);return r},_=(r,o)=>v(r,T(o));var A=(r,o,e)=>new Promise((S,p)=>{var d=a=>{try{y(e.next(a))}catch(n){p(n)}},f=a=>{try{y(e.throw(a))}catch(n){p(n)}},y=a=>a.done?S(a.value):Promise.resolve(a.value).then(d,f);y((e=e.apply(r,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),N=require("./BaseComponent-D34QRHy5.cjs"),B=require("./index-CfXXizWL.cjs"),D=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-arrayCard-icon-QOabvV0y.cjs"),M={class:"mix-body"},I={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"统计",NAME_EN:"Array Card",ORDER:5,PLATFORM:["pc","screen","mobile"]},L={titleColor:"#111",bgColor:"#fff",textColor:"#111",textSize:48,radiusSize:8,isHideTitle:!0,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},O=[{fv:"",object_id:""}],k=["fv","object_id"],R=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],U=1,F={useAlias:!1,source:"mosaic",multiObject:!1,hideMultiObject:!0},j={DEFAULT:I,OPTIONS:L,DATA:O,PARAMS:k,SOURCE:R,ITEMS:U,COMMON:F},P=t.defineComponent(_(h({},j),{__name:"arrayCard",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const e=r;class S extends N.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",48),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!0)}}init(){return A(this,null,function*(){var i;this.Style.value=this.extractStyles(),this.applyTheme(),(i=this.props.conf.data)!=null&&i.length||(this.props.conf.data=O)})}setHistoryData(i){if(!i)return;const{data:l}=this.props.conf;!Array.isArray(l)||!l.length||l.forEach((s,c)=>{try{const u=i[c].data[0];u!=null&&(s.value=u)}catch(u){}})}setSocketData(i){if(!i)return;const{data:l}=this.props.conf;l.forEach(s=>{var c;s.value=(c=this.extractDataValue(i,s.fv))!=null?c:"--"})}}const p=new S(e,"arrayCard");p.setupLifecycle();const d=p.getStyle(),f=e.conf,y=t.computed(()=>D.generateTitleStyle(e.conf.options)),a=n=>{var u;const i=((u=n==null?void 0:n[0])==null?void 0:u.value)||0,l=String(Math.floor(Number(i)||0)),s=[];let c=0;for(;c<l.length;)s.push(l.slice(c,c+3)),c+=3;return s.flatMap((m,x)=>x>0?[",",m]:[m])};return(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(d).bgColor,borderRadius:`${t.unref(d).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(y.value)},t.toDisplayString(t.unref(f).caption||t.unref(f).name),5),t.createElementVNode("div",M,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a(t.unref(f).data),(l,s)=>(t.openBlock(),t.createElementBlock("div",{key:s,class:t.normalizeClass(["digit-item",{separator:l==","}]),style:t.normalizeStyle({fontSize:`${t.unref(d).textSize}px`,color:t.unref(d).textColor})},t.toDisplayString(l),7))),128))]),t.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),q=B._export_sfc(P,[["__scopeId","data-v-e77aeb33"]]);exports.default=q;
@@ -1 +0,0 @@
1
- "use strict";var N=Object.defineProperty,M=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var O=(n,o,a)=>o in n?N(n,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[o]=a,A=(n,o)=>{for(var a in o||(o={}))B.call(o,a)&&O(n,a,o[a]);if(E)for(var a of E(o))j.call(o,a)&&O(n,a,o[a]);return n},V=(n,o)=>M(n,I(o));var z=(n,o,a)=>new Promise((y,p)=>{var u=c=>{try{v(a.next(c))}catch(f){p(f)}},S=c=>{try{v(a.throw(c))}catch(f){p(f)}},v=c=>c.done?y(c.value):Promise.resolve(c.value).then(u,S);v((a=a.apply(n,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),L=require("./BaseComponent-D34QRHy5.cjs"),D=require("./index-CfXXizWL.cjs"),F=require("./titleStyle-NSnz6cUg.cjs"),b=require("./ele-evn-icon-DUQMS-9T.cjs"),P={class:"mix-body"},R={class:"mix-footer"},T="--",U={DEFAULT_ICON:b.DEFAULT_ICON,ACTIVE_ICON:b.ACTIVE_ICON,NAME_CN:"状态卡片",NAME_EN:"State",ORDER:3,PLATFORM:["pc","screen","mobile"]},q={valueSize:36,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",textColor:"#111",isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},H=[{fv:"",status_fv:"",object_id:"",status:[{code:0,text:"离线",color:"#a40e0e"}]}],$=["fv","status_fv"],k=["mosaic"],Y={useAlias:!1,source:"mosaic",multiObject:!1,hideMultiObject:!0},w=1,W={DEFAULT:U,OPTIONS:q,DATA:H,PARAMS:$,SOURCE:k,ITEMS:w,COMMON:Y},G=t.defineComponent(V(A({},W),{__name:"evn",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(n){const o=n,a=t.ref(D.dayjs().format("YYYY-MM-DD HH:mm:ss"));class y extends L.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),valueSize:this.getOptionValue("valueSize",36),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){return z(this,null,function*(){var s;this.Style.value=this.extractStyles(),this.applyTheme(),(s=this.props.conf.data)!=null&&s.length||(this.props.conf.data=[{fv:"",status_fv:"",object_id:"",status:[{code:0,text:"离线",color:"#a40e0e"}]}])})}setHistoryData(s){if(!s)return;const{data:i}=this.props.conf;!i||!Array.isArray(i)||!i.length||i.forEach((e,r)=>{var g,h,_;try{const l=(h=(g=s==null?void 0:s.history)==null?void 0:g[r])==null?void 0:h[0];if(!l)return;const m=e==null?void 0:e.fv,C=e==null?void 0:e.status_fv;if(m){const d=l==null?void 0:l[m];d!=null&&(e.value=d)}if(C){const d=l==null?void 0:l[C];d!=null&&(e.statusValue=d)}const x=(_=l==null?void 0:l.time)!=null?_:l==null?void 0:l.datetime;x&&(a.value=x)}catch(l){}})}setSocketData(s){if(!s)return;const{data:i}=this.props.conf;!i||!Array.isArray(i)||i.forEach(e=>{var r;try{e.value=(r=this.extractDataValue(s,e.fv))!=null?r:T,e.statusValue=this.extractDataValue(s,e.status_fv),s.datetime&&(a.value=s.datetime)}catch(g){e.value=T}})}}const p=new y(o,"evn");p.setupLifecycle();const u=p.getStyle(),S=o.conf,v=t.computed(()=>F.generateTitleStyle(o.conf.options)),c=()=>{var e;const{data:f}=o.conf,s=f[0];let i={color:"",text:""};return(e=s==null?void 0:s.status)==null||e.forEach(r=>{String(r.code)===String(s.statusValue)&&(i={text:r.text,color:r.color})}),i};return(f,s)=>{var i,e,r;return t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(u).bgColor,borderRadius:`${t.unref(u).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(v.value)},t.toDisplayString(c().text||t.unref(S).caption||""),5),t.createElementVNode("div",P,[t.createElementVNode("div",{class:"body-value",style:t.normalizeStyle({fontSize:`${t.unref(u).valueSize}px`,color:t.unref(u).textColor})},t.toDisplayString((r=(e=(i=t.unref(S))==null?void 0:i.data)==null?void 0:e[0])==null?void 0:r.value),5)]),t.createElementVNode("div",R,[t.createElementVNode("div",{class:"footer-time",style:t.normalizeStyle({fontSize:`${t.unref(u).timeSize}px`,color:t.unref(u).textColor})},t.toDisplayString(a.value),5)]),t.renderSlot(f.$slots,"default",{},void 0,!0)],4)}}})),J=D._export_sfc(G,[["__scopeId","data-v-176cfd19"]]);exports.default=J;