mixdashboards 1.0.75 → 1.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseComponent-BXAJUoaf.cjs → BaseComponent-BmhMoM4H.cjs} +1 -1
- package/dist/{BaseComponent-BlCsb-HW.js → BaseComponent-CQaDWNO0.js} +8 -8
- package/dist/{EChartComponentBase-BPiPzdtw.cjs → EChartComponentBase-D9EUh4BZ.cjs} +1 -1
- package/dist/{EChartComponentBase-DPWPg81w.js → EChartComponentBase-i76OGL3z.js} +2 -2
- package/dist/{EmergencyPlanPanel-Cv06qTDX.js → EmergencyPlanPanel-B9S3Ru5-.js} +1 -1
- package/dist/{EmergencyPlanPanel-CU0gJiFM.cjs → EmergencyPlanPanel-BiAHvTfh.cjs} +1 -1
- package/dist/{HistoryPlanDialog-CiRVXFaZ.cjs → HistoryPlanDialog-BU4GayEm.cjs} +1 -1
- package/dist/{HistoryPlanDialog-BALmXGdQ.js → HistoryPlanDialog-CbbeFm-i.js} +1 -1
- package/dist/{MonitoringMap-BuVJ-ir-.js → MonitoringMap-B6tXBdvK.js} +2 -2
- package/dist/{MonitoringMap-BXxlfEQV.cjs → MonitoringMap-FGDoA0fw.cjs} +1 -1
- package/dist/{UniverSheet-CDug4m6W.cjs → UniverSheet-D7y2pceH.cjs} +1 -1
- package/dist/{UniverSheet-GnlJ56Io.js → UniverSheet-D8sflrTb.js} +2 -2
- package/dist/{accelerationChart-BQkfynh-.cjs → accelerationChart-DTlwSA0N.cjs} +1 -1
- package/dist/{accelerationChart-lWscOOUn.js → accelerationChart-bch4O3t-.js} +14 -14
- package/dist/{actionItem-B4nl_rf_.js → actionItem-Cw67YwsR.js} +2 -2
- package/dist/{actionItem-6eYNuhg3.cjs → actionItem-cdsgUvaC.cjs} +1 -1
- package/dist/{alarmLevelChart-Mq8iVSI0.cjs → alarmLevelChart-BMjTLxB5.cjs} +1 -1
- package/dist/{alarmLevelChart-CiobE56j.js → alarmLevelChart-BynSRHG2.js} +2 -2
- package/dist/{alertTable-f0pzyZBg.cjs → alertTable-3VhkUZSf.cjs} +1 -1
- package/dist/{alertTable-CMlVY_8H.js → alertTable-CiwuaydQ.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-C1bpTa2y.cjs → aliasObjectSelectorDemo-BLoecZkV.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-DqZ0EfVH.js → aliasObjectSelectorDemo-DfdRxb4I.js} +1 -1
- package/dist/{annualRainfallChart-_mJM58W4.js → annualRainfallChart-CHcr4-0D.js} +2 -2
- package/dist/{annualRainfallChart-BbYOeEs_.cjs → annualRainfallChart-DKR-A_PT.cjs} +1 -1
- package/dist/{aqi-yjjoBI4W.cjs → aqi-D7VqP1QE.cjs} +1 -1
- package/dist/{aqi-jYtMHp4c.js → aqi-Gu-pAovO.js} +4 -4
- package/dist/{aqiIndass-BPnJN1L7.js → aqiIndass-Bjj6n1aj.js} +18 -18
- package/dist/{aqiIndass-DuxFgiJF.cjs → aqiIndass-nfYUZ3UM.cjs} +1 -1
- package/dist/{areaDeformCurve-BM8ClfUa.cjs → areaDeformCurve-fpGWmq05.cjs} +1 -1
- package/dist/{areaDeformCurve-DNleJiVH.js → areaDeformCurve-nwlcUBDv.js} +2 -2
- package/dist/{arrayCard-jITzZi-r.js → arrayCard-TfcgLrHv.js} +2 -2
- package/dist/{arrayCard-BxpqdLMV.cjs → arrayCard-UoDqAGbN.cjs} +1 -1
- package/dist/{audio-CH5r-0gF.js → audio-BYgGYoEr.js} +2 -2
- package/dist/{audio-BuyKXQ0N.cjs → audio-DdUv9Ot-.cjs} +1 -1
- package/dist/bar-CkBXc7t1.cjs +2 -0
- package/dist/{bar-BtlkgC6a.js → bar-SfGiFl1r.js} +75 -67
- package/dist/{bmp-C2DUdhaT.js → bmp-BbtdzIrI.js} +2 -2
- package/dist/{bmp-DLIPXhyT.cjs → bmp-CY-Hb2x1.cjs} +1 -1
- package/dist/{box-CVcPOlKk.cjs → box-B4C_mirv.cjs} +1 -1
- package/dist/{box-BgwIB1Bl.js → box-CV41cJuX.js} +2 -2
- package/dist/{chartConfigPanel-ByzQkeYT.js → chartConfigPanel-D650rSn7.js} +1 -1
- package/dist/{chartConfigPanel-BdVphXRS.cjs → chartConfigPanel-DBlqAbbH.cjs} +1 -1
- package/dist/{circleBar-DBCX2g0i.cjs → circleBar-DkV7xPBl.cjs} +1 -1
- package/dist/{circleBar-CFV6RoS1.js → circleBar-U3iXMQr5.js} +2 -2
- package/dist/{clock--G7VfksN.cjs → clock-CjgMeOhp.cjs} +1 -1
- package/dist/{clock-ilY2WqEO.js → clock-zKVUU8pu.js} +2 -2
- package/dist/{clt-4fAQmG5V.js → clt-BsIA-YPQ.js} +2 -2
- package/dist/{clt-DOAntJi9.cjs → clt-DwI8i7zI.cjs} +1 -1
- package/dist/{cmc-CehLriLD.cjs → cmc-BX9ichBB.cjs} +1 -1
- package/dist/{cmc-Bhyw5-iw.js → cmc-CgpHejR2.js} +2 -2
- package/dist/{cmp-znNaGWlx.js → cmp-CS34lG7V.js} +2 -2
- package/dist/{cmp-BL3VD7Pn.cjs → cmp-CTqtxzo4.cjs} +1 -1
- package/dist/{conclusionCard-B5DhxboF.js → conclusionCard-N6pA6Q9P.js} +2 -2
- package/dist/{conclusionCard-K6CSG9A7.cjs → conclusionCard-wvtJmV_8.cjs} +1 -1
- package/dist/{controlList-CyE_bM7S.cjs → controlList-BUAMdHA3.cjs} +1 -1
- package/dist/{controlList-DoaSMBIh.js → controlList-Zz5ABe5b.js} +2 -2
- package/dist/{controlRecordList-CDKRXU47.cjs → controlRecordList-CMR4y_Ml.cjs} +1 -1
- package/dist/{controlRecordList-DwXUWAgm.js → controlRecordList-Dx0zj7js.js} +2 -2
- package/dist/{controlRecordListAPP-cODkXLeg.cjs → controlRecordListAPP-ZDCKmz_8.cjs} +1 -1
- package/dist/{controlRecordListAPP-CP-tQ4o_.js → controlRecordListAPP-bL9oqWzQ.js} +2 -2
- package/dist/{crd-D9Djs_9M.cjs → crd-8tMwNlgx.cjs} +1 -1
- package/dist/{crd-BJJ9sEBi.js → crd-DZPpD6XY.js} +2 -2
- package/dist/{ctrBtn-zECsVsC6.js → ctrBtn-6Ql9ulTr.js} +10 -10
- package/dist/{ctrBtn-Ci7BkiOn.cjs → ctrBtn-eCu0UDtW.cjs} +1 -1
- package/dist/{ctrSet-DQTACQn1.js → ctrSet-BwFVH1Mk.js} +3 -3
- package/dist/{ctrSet-DZrpF9pM.cjs → ctrSet-pX-zVivo.cjs} +1 -1
- package/dist/{ctrSwitch-BDy8B1lF.cjs → ctrSwitch-D95SI-aJ.cjs} +1 -1
- package/dist/{ctrSwitch-CrEAuL-v.js → ctrSwitch-b6hHf4QF.js} +11 -11
- package/dist/{dataManagement-D6SM8zVY.cjs → dataManagement-DubA1TV1.cjs} +1 -1
- package/dist/{dataManagement-ivUDfZ3f.js → dataManagement-VucRLCK4.js} +2 -2
- package/dist/{dataReport-CryAeh7C.js → dataReport-CALIw14D.js} +2 -2
- package/dist/{dataReport-CFJ5aMrb.cjs → dataReport-CkF5J7X1.cjs} +1 -1
- package/dist/{dataTable-BBW0i51h.js → dataTable-C1rBH_p9.js} +1 -1
- package/dist/{dataTable-IKk8N9i9.cjs → dataTable-C2q_CX5D.cjs} +1 -1
- package/dist/{datetime-BPoSIL-3.js → datetime-Cq8scz5Q.js} +2 -2
- package/dist/{datetime-CGUnVeRE.cjs → datetime-TBTeWqlf.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-rZIUqLLp.cjs → deepClusterSlipSurface-CFaxRVmM.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-jt74ODxX.js → deepClusterSlipSurface-Cm50wbjv.js} +2 -2
- package/dist/{deepDataMatrix-DyK--0cJ.cjs → deepDataMatrix-CAYSav3X.cjs} +1 -1
- package/dist/{deepDataMatrix-B1rr5lNY.js → deepDataMatrix-DyStA98d.js} +7 -7
- package/dist/{deepDisplacement3D-DdSfiM8c.cjs → deepDisplacement3D-B3Iju2KK.cjs} +1 -1
- package/dist/{deepDisplacement3D-BnWitDOk.js → deepDisplacement3D-Bat-Wc3i.js} +2 -2
- package/dist/{deepDisplacementChart-BxdiiuUe.cjs → deepDisplacementChart-C-Tr4DdI.cjs} +1 -1
- package/dist/{deepDisplacementChart-DY3PLNdf.cjs → deepDisplacementChart-CX9ALM89.cjs} +1 -1
- package/dist/{deepDisplacementChart-BQ3nFJLH.js → deepDisplacementChart-CYMpNu_W.js} +25 -25
- package/dist/{deepDisplacementChart-lIfyzMpq.js → deepDisplacementChart-D5rHoC9r.js} +26 -26
- package/dist/{deepDisplacementView-C0r4oIIk.cjs → deepDisplacementView-DTSsODJQ.cjs} +1 -1
- package/dist/{deepDisplacementView-BsddlCKN.js → deepDisplacementView-DnjwQmEW.js} +1 -1
- package/dist/{deepNodeTemperatureChart-DrqwFmDg.cjs → deepNodeTemperatureChart-C9NRJ49Y.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-C1RVbMT1.js → deepNodeTemperatureChart-CLKg72UA.js} +32 -32
- package/dist/{deepTangentAngleChart-Hs9wfNfb.cjs → deepTangentAngleChart-C9aFSFrD.cjs} +1 -1
- package/dist/{deepTangentAngleChart-BSifjEIw.js → deepTangentAngleChart-DklHYHhm.js} +13 -13
- package/dist/{deepTemperatureField-Bz9X6xx5.cjs → deepTemperatureField-CXBL4_LS.cjs} +1 -1
- package/dist/{deepTemperatureField-BSsTui64.js → deepTemperatureField-CcnVGgbf.js} +3 -3
- package/dist/{deepTrendChart-apQrMrj6.js → deepTrendChart-De7ebpk4.js} +14 -14
- package/dist/{deepTrendChart-B3q-lEJw.cjs → deepTrendChart-OGW08BX-.cjs} +1 -1
- package/dist/{deviceOnlineStatus-DABeXKWW.cjs → deviceOnlineStatus-DarcMtY4.cjs} +1 -1
- package/dist/{deviceOnlineStatus-kFsHXR6n.js → deviceOnlineStatus-_3Txb8Tg.js} +2 -2
- package/dist/{deviceStatus-BE2Pszt3.cjs → deviceStatus-BiJw8rnz.cjs} +1 -1
- package/dist/{deviceStatus-TNP-PLi-.js → deviceStatus-CL6E-pQ0.js} +10 -10
- package/dist/{displacementDataTable-BD45feZR.cjs → displacementDataTable-DmAqr-JK.cjs} +1 -1
- package/dist/{displacementDataTable-kZBxmOLa.js → displacementDataTable-tKtGe2xd.js} +11 -11
- package/dist/{displacementTrajectoryChart-DmuezhG8.cjs → displacementTrajectoryChart-DG2YdSqq.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-BjbgbY-z.js → displacementTrajectoryChart-Dh6oPB0p.js} +22 -22
- package/dist/{displacementTrendChart-BjIXnttw.js → displacementTrendChart-BHORe0qO.js} +36 -36
- package/dist/{displacementTrendChart-iXH_pVRS.cjs → displacementTrendChart-CT140vXG.cjs} +1 -1
- package/dist/{dxf-DMZPfCEF.cjs → dxf-CVa4Vfm3.cjs} +1 -1
- package/dist/{dxf-Cne0HiZv.js → dxf-CjcHSJq-.js} +2 -2
- package/dist/{dzc-BHGWFMVE.js → dzc-DDXNSuie.js} +6 -6
- package/dist/{dzc-Xii4wMjP.cjs → dzc-DK16oTVj.cjs} +1 -1
- package/dist/{emergencyPlan-B1znDbbO.cjs → emergencyPlan-D0AMuD-3.cjs} +1 -1
- package/dist/{emergencyPlan-CdFHCDZY.js → emergencyPlan-Vim4E6h7.js} +3 -3
- package/dist/{evn-UM09m5js.js → evn-CdMN8gIC.js} +2 -2
- package/dist/{evn-DQIIN0A9.cjs → evn-D2mdSoFB.cjs} +1 -1
- package/dist/{evolutionChart-DDtDzRIE.cjs → evolutionChart-I8XVW05I.cjs} +1 -1
- package/dist/{evolutionChart-Dm3nLcz6.js → evolutionChart-P0l6P0Bc.js} +3 -3
- package/dist/{fileViewer-CoTW7CWz.cjs → fileViewer-D7sAA8-W.cjs} +1 -1
- package/dist/{fileViewer-C1Ky9Ydw.js → fileViewer-DvntGv0b.js} +2 -2
- package/dist/{filterBar-BNr5i0ab.js → filterBar-8gex5oR-.js} +2 -2
- package/dist/{filterBar-DPG_jFL8.cjs → filterBar-GSTji96g.cjs} +1 -1
- package/dist/{fireCombustionCurve-DpcQ13zK.js → fireCombustionCurve-B3jAhOft.js} +3 -3
- package/dist/{fireCombustionCurve-z2iMEkbd.cjs → fireCombustionCurve-DrMmHf3N.cjs} +1 -1
- package/dist/{fireFilterBar-BFJeB-8m.js → fireFilterBar-CH6iK0Xg.js} +2 -2
- package/dist/{fireFilterBar-iXGBx5Zi.cjs → fireFilterBar-Dy9DcHij.cjs} +1 -1
- package/dist/{fireHistoryTable-E9Gx4Gqf.js → fireHistoryTable-CHxHqPs0.js} +2 -2
- package/dist/{fireHistoryTable-BE79laqx.cjs → fireHistoryTable-n6L3juWp.cjs} +1 -1
- package/dist/{gag-naUs2e3c.js → gag-BsO4kmp1.js} +2 -2
- package/dist/{gag-Ce_-YYka.cjs → gag-BzjuwBvY.cjs} +1 -1
- package/dist/{gasStationList-Kbha10pX.js → gasStationList-7JzUcISs.js} +214 -276
- package/dist/gasStationList-QwqTDEAG.cjs +1 -0
- package/dist/{geo3dViewer-CnAgLJ_6.cjs → geo3dViewer-Cf-jHpvF.cjs} +1 -1
- package/dist/{geo3dViewer-CMISZOfo.js → geo3dViewer-doEpUC_J.js} +3 -3
- package/dist/{glbModel-Bw25mL_R.js → glbModel-BgFIj_es.js} +2 -2
- package/dist/{glbModel-CS8qUhON.cjs → glbModel-C6L--3dO.cjs} +1 -1
- package/dist/{globalObjectSelector-BcLO38lZ.js → globalObjectSelector-CdfiXRjg.js} +1 -1
- package/dist/{globalObjectSelector-BwoQjJGq.cjs → globalObjectSelector-P_irB0rv.cjs} +1 -1
- package/dist/{gnssFilterBar-CfqJBy4d.cjs → gnssFilterBar-CIwyv2yc.cjs} +1 -1
- package/dist/{gnssFilterBar-bS10JYoi.js → gnssFilterBar-DPNshMIx.js} +2 -2
- package/dist/{gnssHistoryTable-CPs_w2gf.js → gnssHistoryTable-C7x4-Tpp.js} +2 -2
- package/dist/{gnssHistoryTable-CyingjiU.cjs → gnssHistoryTable-j5FL6oYs.cjs} +1 -1
- package/dist/{gnssMapView-DD_L9jE0.js → gnssMapView-BWcS4hqj.js} +4 -4
- package/dist/{gnssMapView-KvzwIbK1.cjs → gnssMapView-_VaJWBcE.cjs} +2 -2
- package/dist/{gnssSectionProfile-DxkEsZQx.cjs → gnssSectionProfile-DGbTO7lV.cjs} +1 -1
- package/dist/{gnssSectionProfile-DGYWQKML.js → gnssSectionProfile-hpyiGI-6.js} +2 -2
- package/dist/{gnssTimeSeriesChart-KVg2GW1C.cjs → gnssTimeSeriesChart-CNT6xaNs.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-1bLKTD-e.js → gnssTimeSeriesChart-rL9oG1ly.js} +2 -2
- package/dist/{gnssXYTrajectory-B-d6rq3V.js → gnssXYTrajectory-B1LZAepw.js} +2 -2
- package/dist/{gnssXYTrajectory-B-0h71U8.cjs → gnssXYTrajectory-CwAjhPRc.cjs} +1 -1
- package/dist/{grd-CqeXHXO2.js → grd-BLab9IY0.js} +20 -20
- package/dist/{grd-CbvQkv0q.cjs → grd-rJXqEimt.cjs} +1 -1
- package/dist/{grdIndass-BaHBsp5T.js → grdIndass-gGrZ7gRV.js} +6 -6
- package/dist/{grdIndass-_-7wqVjL.cjs → grdIndass-niY4UOwz.cjs} +1 -1
- package/dist/{grg-DmN25aj-.cjs → grg-C1L5yeyY.cjs} +1 -1
- package/dist/{grg-Cgpfx9kR.js → grg-Dnro7bLg.js} +6 -6
- package/dist/{gridview-B0haH8LS.js → gridview-BhjWlD0J.js} +2 -2
- package/dist/{gridview-DYYpW2MH.cjs → gridview-DxUsv2ny.cjs} +1 -1
- package/dist/{groundwaterFilterBar-mcMEwt9B.cjs → groundwaterFilterBar-C-2e7S04.cjs} +1 -1
- package/dist/{groundwaterFilterBar-ClXMXCj6.js → groundwaterFilterBar-bNhTkX1C.js} +2 -2
- package/dist/{groundwaterProfileChart-BoRVOmen.cjs → groundwaterProfileChart-BxKGPuOe.cjs} +2 -2
- package/dist/{groundwaterProfileChart-Cfwfua8-.js → groundwaterProfileChart-dhzmwfwz.js} +3 -3
- package/dist/{groundwaterTimeCurve-BOarX2wf.js → groundwaterTimeCurve-BtzP6icm.js} +3 -3
- package/dist/{groundwaterTimeCurve-Czt7iLlt.cjs → groundwaterTimeCurve-CTQPlTUr.cjs} +1 -1
- package/dist/{groupCard-2aS7lgg2.js → groupCard-D00ElZoy.js} +63 -53
- package/dist/{groupCard-DjUIJShv.cjs → groupCard-D4gdaVqR.cjs} +1 -1
- package/dist/{headerBar-u-0s0z16.js → headerBar-DEHj8fJr.js} +2 -2
- package/dist/{headerBar-5nL0hMXs.cjs → headerBar-MFw1W0qa.cjs} +1 -1
- package/dist/{history-BtX7uNYs.js → history-BRkb914v.js} +16 -16
- package/dist/{history-B-Ynlm5z.cjs → history-D1R2RAZQ.cjs} +1 -1
- package/dist/index-77aUdspY.cjs +612 -0
- package/dist/{index-DomNEEyv.js → index-BZpYmpDy.js} +3569 -2983
- package/dist/{insarDeformChart-KECXbG_n.cjs → insarDeformChart-5EVWIkpL.cjs} +1 -1
- package/dist/{insarDeformChart-DVGZUwaX.js → insarDeformChart-pbOnnoN-.js} +2 -2
- package/dist/{insarImageViewer-BMk5v36R.js → insarImageViewer-D3bbQA6g.js} +2 -2
- package/dist/{insarImageViewer-CdJyowUc.cjs → insarImageViewer-DQJBN4YM.cjs} +1 -1
- package/dist/{kds-DU8wNnhT.cjs → kds-D5seJB3L.cjs} +1 -1
- package/dist/{kds-CawaHOXh.js → kds-gTJOwHbM.js} +21 -21
- package/dist/{kpiCard-CAuX9-zP.cjs → kpiCard-Bz-fg6sL.cjs} +1 -1
- package/dist/{kpiCard-B5ZueB0g.js → kpiCard-Cx6VNK6L.js} +2 -2
- package/dist/{landslideMap-DGkSLtbi.js → landslideMap-5erIcZo7.js} +15 -15
- package/dist/{landslideMap-CImGVGDr.cjs → landslideMap-D7_QpwmM.cjs} +1 -1
- package/dist/{landslideWarning-C8cHW-2p.cjs → landslideWarning-C3FZqrxT.cjs} +1 -1
- package/dist/{landslideWarning-BeQUD3uJ.js → landslideWarning-CzaddgWf.js} +14 -14
- package/dist/{layerTabs-DxX6yqOO.cjs → layerTabs-Dc1Xb11W.cjs} +1 -1
- package/dist/{layerTabs-CBr-oH28.js → layerTabs-DqbOykS2.js} +2 -2
- package/dist/{leaflet-src-BXugYdBe.js → leaflet-src-BY2SMh9y.js} +1 -1
- package/dist/{leaflet-src-VXn1CZcu.cjs → leaflet-src-Brb8KUL5.cjs} +1 -1
- package/dist/{lerc-td9bbpKy.js → lerc-Chm_GVte.js} +2 -2
- package/dist/{lerc-DJGGksD3.cjs → lerc-DGuyYCKG.cjs} +1 -1
- package/dist/{lin-vrv9_1Gw.cjs → lin-8x2j8aGa.cjs} +1 -1
- package/dist/{lin-DlD92hLY.js → lin-tqtSA5ci.js} +9 -9
- package/dist/{linIndass-DRZUPyVA.js → linIndass-DHFymSVI.js} +12 -12
- package/dist/{linIndass-BhvIJJ_-.cjs → linIndass-Dxo_bzrZ.cjs} +1 -1
- package/dist/{lst-BsGZwd4K.cjs → lst-BV6EbDPs.cjs} +1 -1
- package/dist/{lst-DHBMHjOM.js → lst-BejIuO0f.js} +2 -2
- package/dist/{manualEntry-zdYpuGoU.cjs → manualEntry-Bt4cs6kn.cjs} +1 -1
- package/dist/{manualEntry-gGLZH2mN.js → manualEntry-DObI0OAq.js} +2 -2
- package/dist/{mapBackground-DBXKXI9j.js → mapBackground-Cuym5Dqr.js} +3 -3
- package/dist/{mapBackground-U2NX5fCU.cjs → mapBackground-oVOBK3zr.cjs} +1 -1
- package/dist/{mappingList-vLJbxZcd.cjs → mappingList-BEWAqLd4.cjs} +1 -1
- package/dist/{mappingList-D4KRWEkc.js → mappingList-Dzq0zMfs.js} +2 -2
- package/dist/{markdownViewer-DzZnOTO-.js → markdownViewer-Bz50jkb6.js} +2 -2
- package/dist/{markdownViewer-XvNb3eNT.cjs → markdownViewer-V5b1xhPh.cjs} +1 -1
- package/dist/{mix-control-modal-DjD4xOuc.js → mix-control-modal-DzVLdO3S.js} +7 -7
- package/dist/{mix-control-modal-DQnZbDGs.cjs → mix-control-modal-I6DqPm04.cjs} +1 -1
- package/dist/{mixGrid-CLEdWr86.cjs → mixGrid-_ur8VKLD.cjs} +1 -1
- package/dist/{mixGrid-uzRHR_XB.js → mixGrid-tVSdKPms.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mixiotObjectListApi-DCuG7zc-.cjs → mixiotObjectListApi-BUQ-RZ3L.cjs} +1 -1
- package/dist/{mixiotObjectListApi-DP6wrrOJ.js → mixiotObjectListApi-D5vNNWgT.js} +1 -1
- package/dist/{mjpegCamera-D416oWYH.cjs → mjpegCamera-CjWe8BEK.cjs} +1 -1
- package/dist/{mjpegCamera-y_pW209K.js → mjpegCamera-DnAPpFJU.js} +2 -2
- package/dist/{monitorAlert-BOJ4UrnO.js → monitorAlert-B-fTYPn6.js} +11 -11
- package/dist/{monitorAlert-Bq1MEu6y.cjs → monitorAlert-qmVSQ1lc.cjs} +1 -1
- package/dist/{monitorData-CTVzSwsd.js → monitorData-Dopc660L.js} +7 -7
- package/dist/{monitorData-eE9QUfb3.cjs → monitorData-YhGSUq3H.cjs} +1 -1
- package/dist/{monitorSpeedChart-CnKy9z8m.cjs → monitorSpeedChart-Brj_YHsO.cjs} +1 -1
- package/dist/{monitorSpeedChart-CUZat2mO.js → monitorSpeedChart-Dsvr_QPB.js} +1 -1
- package/dist/{mxa-ueyMsY-m.cjs → mxa-BzdI7BLB.cjs} +1 -1
- package/dist/{mxa-DDJJIW_n.js → mxa-D4WkyBYZ.js} +7 -7
- package/dist/{myValue-BdJdeV7Y.cjs → myValue-C0tq-asC.cjs} +1 -1
- package/dist/{myValue-jZIrcY-B.js → myValue-DYtBtOJ2.js} +2 -2
- package/dist/{myValueList-KoXkIHn0.cjs → myValueList-BJctRTNd.cjs} +1 -1
- package/dist/{myValueList-DYPYb3FQ.js → myValueList-Ddpn1S68.js} +2 -2
- package/dist/{objectList-Ct6UzSuD.cjs → objectList-Csf0hVwo.cjs} +1 -1
- package/dist/{objectList-CGYOZD6e.js → objectList-G4wXFDwe.js} +3 -3
- package/dist/{objectListAPP-DrymYbRw.js → objectListAPP-BrmUj4At.js} +3 -3
- package/dist/{objectListAPP-D0dHuEhF.cjs → objectListAPP-UZN4iuTn.cjs} +1 -1
- package/dist/{photo-DC0tNbgw.js → photo-BEPeK7U8.js} +2 -2
- package/dist/{photo-siDcsoGU.cjs → photo-BYH_qg5O.cjs} +1 -1
- package/dist/{pie-D9J75dIT.cjs → pie-B57zDxJV.cjs} +1 -1
- package/dist/{pie-I_Gqoxg_.js → pie-CEVKe1lL.js} +2 -2
- package/dist/{placeholder-BPjcnXBR.cjs → placeholder-BezBEQGo.cjs} +1 -1
- package/dist/{placeholder-BsmPsTrK.js → placeholder-Bwv3VyEg.js} +1 -1
- package/dist/{pressBtn-CXasqSG5.js → pressBtn-1LCNz2gE.js} +3 -3
- package/dist/{pressBtn-DkR5yC7c.cjs → pressBtn-CJZTyY8I.cjs} +1 -1
- package/dist/{processTable-CprS7V6w.js → processTable-CHDazqah.js} +2 -2
- package/dist/{processTable-D2upRmGB.cjs → processTable-HtDeg1by.cjs} +1 -1
- package/dist/{progressBar-CHGUKjOk.cjs → progressBar-BP4SmPZK.cjs} +1 -1
- package/dist/{progressBar-BnDhCqnO.js → progressBar-C3NcWUrS.js} +2 -2
- package/dist/{progressCircle-DTSsucDj.js → progressCircle-Bo9-Qva_.js} +2 -2
- package/dist/{progressCircle-C7U0fPQv.cjs → progressCircle-CDqK1iFt.cjs} +1 -1
- package/dist/{qrcode-B65TN3DU.js → qrcode-VmYwvClG.js} +2 -2
- package/dist/{qrcode-COSof3Xg.cjs → qrcode-qD6tOm4F.cjs} +1 -1
- package/dist/{raceBar-B-Dg_JeH.js → raceBar-DR2-luKW.js} +2 -2
- package/dist/{raceBar-DUTC68PY.cjs → raceBar-uAs91hyk.cjs} +1 -1
- package/dist/{rad-CQS9cZyM.js → rad-1Jy1KDzt.js} +2 -2
- package/dist/{rad-C-5BUzw2.cjs → rad-D7-YZJNO.cjs} +1 -1
- package/dist/{radarMapViewer-8GICTIhi.js → radarMapViewer-ByQXe0Mu.js} +2 -2
- package/dist/{radarMapViewer-Bnzk9-oK.cjs → radarMapViewer-KPhNE5XX.cjs} +1 -1
- package/dist/{rainfallFilterBar-2PbsD0mU.js → rainfallFilterBar-C1obotPf.js} +2 -2
- package/dist/{rainfallFilterBar-BAFB2Yla.cjs → rainfallFilterBar-CVQpQp82.cjs} +1 -1
- package/dist/{rainfallTimeCurve-D8deMaZA.js → rainfallTimeCurve-B2rEx3T_.js} +3 -3
- package/dist/{rainfallTimeCurve-pNf06cfu.cjs → rainfallTimeCurve-DU2tt-Ls.cjs} +1 -1
- package/dist/{rangeLin-D1_RCrEG.cjs → rangeLin-COsJkCky.cjs} +1 -1
- package/dist/{rangeLin-DiCVHBXe.js → rangeLin-CdfUCFQr.js} +2 -2
- package/dist/{realtimeEvolutionMap-BwDjG4Cd.cjs → realtimeEvolutionMap-B7GT8MOq.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-BZ3odAWj.js → realtimeEvolutionMap-aR63xPW_.js} +2 -2
- package/dist/{regionBar-BZVsJdo6.cjs → regionBar-BYF7IaGA.cjs} +1 -1
- package/dist/{regionBar-C_C5cX2r.js → regionBar-DB-secNe.js} +2 -2
- package/dist/{request-CsiNbn80.js → request-CBsG4ipL.js} +7 -7
- package/dist/{request-B1HlG30f.cjs → request-CvdHjG34.cjs} +1 -1
- package/dist/{retainer1-CzyGsNUK.cjs → retainer1-1CFk4InO.cjs} +1 -1
- package/dist/{retainer1-DROmtfRa.js → retainer1-CMzTlM5Z.js} +3 -3
- package/dist/{retainer2-BCAnjUE9.js → retainer2-DW4ewYX7.js} +3 -3
- package/dist/{retainer2-1BaKVlim.cjs → retainer2-DliOH7it.cjs} +1 -1
- package/dist/{retainerRecordList-DIdk5Q5E.js → retainerRecordList-Bcm6leuD.js} +2 -2
- package/dist/{retainerRecordList-Ct_yDZds.cjs → retainerRecordList-DV7Tx39d.cjs} +1 -1
- package/dist/{retainerRecordListAPP-Bi6Ax0r6.js → retainerRecordListAPP-BDRwp8T3.js} +2 -2
- package/dist/{retainerRecordListAPP-DUqNtCCN.cjs → retainerRecordListAPP-CJ-u0Tj2.cjs} +1 -1
- package/dist/{ringTopN-BSWAdbso.js → ringTopN-Duq0pzm_.js} +2 -2
- package/dist/{ringTopN-CIusnN5O.cjs → ringTopN-rd2UwH9f.cjs} +1 -1
- package/dist/{riskRegionTable-Lmup8bDM.js → riskRegionTable-BE_ggcEV.js} +7 -7
- package/dist/{riskRegionTable-0fHQGnVM.cjs → riskRegionTable-CbPB8mlY.cjs} +1 -1
- package/dist/{sankey-D8Erc_QS.cjs → sankey-BqBn6_rx.cjs} +1 -1
- package/dist/{sankey-D99KciIH.js → sankey-CnKm9PZe.js} +5 -5
- package/dist/{scd-0yZCqQT2.js → scd-BaBLoem8.js} +2 -2
- package/dist/{scd-Bkse6tqJ.cjs → scd-BgJ5P7co.cjs} +1 -1
- package/dist/{sideMenu-B8Wf4m_8.cjs → sideMenu-BgiQL2P1.cjs} +1 -1
- package/dist/{sideMenu-DZ2bbsp7.js → sideMenu-CUal1UQY.js} +2 -2
- package/dist/{slopeStability-B8u5QQaS.js → slopeStability-B9YbQLCE.js} +24 -24
- package/dist/{slopeStability-D2XSPa-Q.cjs → slopeStability-Y2tDzJeh.cjs} +1 -1
- package/dist/{speedCurve-BD8ajqAX.js → speedCurve-DERBMtE1.js} +2 -2
- package/dist/{speedCurve-CMZGeXjF.cjs → speedCurve-Kll2RRJ8.cjs} +1 -1
- package/dist/{stressFilterBar-Chq7rovQ.cjs → stressFilterBar-BGI4gVfE.cjs} +1 -1
- package/dist/{stressFilterBar-Dpn3RUli.js → stressFilterBar-CHRWFnpP.js} +2 -2
- package/dist/{stressTimeCurve-D-wPq_W1.cjs → stressTimeCurve-DE5KiXEt.cjs} +1 -1
- package/dist/{stressTimeCurve-SRlS-9iL.js → stressTimeCurve-hrlqSYS3.js} +3 -3
- package/dist/{swiper-BBV8vKRh.cjs → swiper-CnGllhBQ.cjs} +1 -1
- package/dist/{swiper-DIFY95yz.js → swiper-DNHC412s.js} +2 -2
- package/dist/{terminalConfigList-Dom3--nE.js → terminalConfigList-BlHAsyCm.js} +2 -2
- package/dist/{terminalConfigList-DwA9ITHL.cjs → terminalConfigList-C45EANO4.cjs} +1 -1
- package/dist/{terminalList-ClsF5hyg.cjs → terminalList-CNI3_FGb.cjs} +1 -1
- package/dist/{terminalList-DpB3UlZG.js → terminalList-UGjkhyf4.js} +2 -2
- package/dist/{terminalListAPP-Bu_KM5lV.cjs → terminalListAPP-6fPXF-yJ.cjs} +1 -1
- package/dist/{terminalListAPP-U6qqbtPw.js → terminalListAPP-CIJZMdxI.js} +2 -2
- package/dist/{textbox-DLDf0rM6.js → textbox-BD_LQ0EN.js} +2 -2
- package/dist/{textbox-CbF9pAtK.cjs → textbox-yNPnOaan.cjs} +1 -1
- package/dist/{timeQueryBar-CE9N3lDg.cjs → timeQueryBar-3qiV0IV9.cjs} +1 -1
- package/dist/{timeQueryBar-ZAH6gs8Q.js → timeQueryBar-B-uPtN25.js} +1 -1
- package/dist/{timeSeries-0oO4KLxQ.cjs → timeSeries-BTUuojvj.cjs} +1 -1
- package/dist/{timeSeries-DvHAA0wU.js → timeSeries-DdQI4oZU.js} +19 -19
- package/dist/{timeSeriesCurve-BTuPg-3z.cjs → timeSeriesCurve-Cj_FbK4x.cjs} +1 -1
- package/dist/{timeSeriesCurve-Dyl9b667.js → timeSeriesCurve-TGXshTzl.js} +3 -3
- package/dist/{toggleBtn-CZoTmwAw.js → toggleBtn-BMxqm5WG.js} +2 -2
- package/dist/{toggleBtn-qDOJLJ7K.cjs → toggleBtn-BXcQfnTB.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-CxV8Ed97.cjs → trajectoryConfigPanel-CqoKO0hL.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-DwZvvYAl.js → trajectoryConfigPanel-uRLWdXUb.js} +1 -1
- package/dist/{trajectoryScatter-CEFp9PB3.js → trajectoryScatter-DPE4cC8N.js} +2 -2
- package/dist/{trajectoryScatter-Dd8Ppxae.cjs → trajectoryScatter-Dph8PSdN.cjs} +1 -1
- package/dist/{universalConfigPanel-BAppgtmC.js → universalConfigPanel-CI1CuBmr.js} +1 -1
- package/dist/{universalConfigPanel-C7tTPczg.cjs → universalConfigPanel-Db-pC67o.cjs} +1 -1
- package/dist/{universalTable-3JLC8oEV.js → universalTable-DMrgtBrw.js} +2 -2
- package/dist/{universalTable-COmdNAnW.cjs → universalTable-dQObEQog.cjs} +1 -1
- package/dist/{video-BtR163lf.js → video-DEhLie80.js} +2 -2
- package/dist/{video-8vSuQilp.cjs → video-DbsKQhVD.cjs} +1 -1
- package/dist/{videoMonitor-CdTNqBTI.js → videoMonitor-BS6_LYUb.js} +12 -12
- package/dist/{videoMonitor-BZwJZvno.cjs → videoMonitor-DLBtivXO.cjs} +1 -1
- package/dist/{vlu-AozGL50n.cjs → vlu-DXk_wQf-.cjs} +1 -1
- package/dist/{vlu-DqeEDfiN.js → vlu-DaSjPY3I.js} +2 -2
- package/dist/{warningOverview-CV_pqizm.js → warningOverview-CKCEs_Jj.js} +3 -3
- package/dist/{warningOverview-CRaFyOXe.cjs → warningOverview-DAUlXzr0.cjs} +1 -1
- package/dist/{weather-CLXe9W0L.cjs → weather-BAI0IWNH.cjs} +1 -1
- package/dist/{weather-iTeslV81.js → weather-XUj6pFwM.js} +2 -2
- package/dist/{windLin-u983PAHI.js → windLin-Bt4q2eUT.js} +2 -2
- package/dist/{windLin-BCMqmXdY.cjs → windLin-C9dsCT1w.cjs} +1 -1
- package/package.json +1 -1
- package/dist/bar-vpJvlBYX.cjs +0 -2
- package/dist/gasStationList-jfKZeg4P.cjs +0 -1
- package/dist/index-Cvu9nAQq.cjs +0 -612
package/dist/mixdashboards.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty;var u=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var d=(a,t,e)=>t in a?y(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,l=(a,t)=>{for(var e in t||(t={}))T.call(t,e)&&d(a,e,t[e]);if(u)for(var e of u(t))A.call(t,e)&&d(a,e,t[e]);return a};const n=require("./index-
|
|
1
|
+
"use strict";var y=Object.defineProperty;var u=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var d=(a,t,e)=>t in a?y(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,l=(a,t)=>{for(var e in t||(t={}))T.call(t,e)&&d(a,e,t[e]);if(u)for(var e of u(t))A.call(t,e)&&d(a,e,t[e]);return a};const n=require("./index-77aUdspY.cjs"),m=[{dataKey:"detailTab_baseinfo",label:"详细信息",defaultOn:!0},{dataKey:"detailTab_monitor",label:"实时监控",defaultOn:!0},{dataKey:"detailTab_retainer_record",label:"故障报警",defaultOn:!0},{dataKey:"detailTab_collect",label:"离线采集",defaultOn:!0},{dataKey:"detailTab_child",label:"子设备",defaultOn:!0},{dataKey:"detailTab_terminal",label:"终端管理",defaultOn:!0},{dataKey:"detailTab_history",label:"历史数据",defaultOn:!0}];function L(){return Object.fromEntries(m.map(a=>[a.dataKey,a.defaultOn]))}function M(a){return a.replace(/^detailTab_/,"").replace(/_/g,"-")}class k{constructor(){this.autoMockEnabled=!1,this.SERVICE_UNAVAILABLE_CODES=[10013,500,404]}errorText(t){if(!t)return"";const e=[];for(const o of["msg","info","message"]){const r=t[o];r!=null&&e.push(typeof r=="string"?r:JSON.stringify(r))}return e.join(" ")}isServiceUnavailableError(t){if(!t)return!1;if(t.code===10013)return!0;const e=this.errorText(t);return["CONSUL","无法通过","未注册","service is nil"].some(o=>e.includes(o))}shouldUseMock(t){if(this.isServiceUnavailableError(t))return!0;if(!this.autoMockEnabled)return!1;if(t!=null&&t.code&&this.SERVICE_UNAVAILABLE_CODES.includes(t.code))return!0;const e=this.errorText(t);return["CONSUL","无法通过","未注册","service is nil"].some(r=>e.includes(r))}getMockData(t,e){console.warn(`[Mock] 使用模拟数据: ${t}`);const o={get_object_list:()=>({code:200,msg:"ok",result:{data:[],total_records:0}}),get_object_item:()=>({code:200,msg:"成功 (Mock)",result:this.generateObjectItem()}),get_big_customer_list:()=>({code:200,msg:"成功 (Mock)",result:{data:this.generateCustomerList(),total_records:5}}),get_collect_list:()=>({code:200,msg:"成功 (Mock)",result:{data:this.generateCollectData(),total_records:20}}),default:()=>({code:200,msg:"成功 (Mock)",result:{data:[],total_records:0}})};return(o[t]||o.default)()}generateObjectList(){return Array.from({length:10},(t,e)=>({uid:`object_${e+1}`,name:`模拟对象 ${e+1}`,alias:`mock_obj_${e+1}`,type:["设备","传感器","控制器"][e%3],status:[1,2,3][e%3],create_time:Date.now()-e*864e5,update_time:Date.now()}))}generateObjectItem(){return{uid:"object_1",name:"模拟对象",alias:"mock_object",type:"设备",status:1,properties:{temperature:25.5,humidity:60,pressure:101.3}}}generateCustomerList(){return Array.from({length:5},(t,e)=>({uid:`customer_${e+1}`,name:`模拟客户 ${e+1}`,code:`MOCK${String(e+1).padStart(3,"0")}`,create_time:Date.now()-e*864e5}))}generateCollectData(){return Array.from({length:20},(t,e)=>({timestamp:Date.now()-e*3e5,value:Math.random()*100,quality:1}))}setAutoMock(t){this.autoMockEnabled=t}}const _=new k,O=n.MIDDLE_PLATFORM_URL;function g(a){return a==="get_object_list"?n.HTTP_API_URL:O}function b(a){const t=n.action_mapping,e=a.split(".");return e.length===1?t[e[0]]:t[e[0]][e[1]]}function D(a,t={},e=!0){const o=l({},t);n.mergeMixDataPermission(a,o);const r=localStorage.getItem("globalApiUrl"),p=localStorage.getItem("globalApiToken"),f=window.location.href.includes("/preview");if(!!(r&&p&&f&&!(a==="create_object"||a==="update_object"||a==="delete_object"))){const i=b(a),h=l({block_mapping:i.block_mapping,action:i.action},o);return n.useCounterStore().changeLoading(!e),n.apiProxy.post(h).catch(c=>{if(c.code===10018&&c.info&&c.info.includes("不存在的action和路由"))return console.warn(`[objectListApiPost] ApiProxy 不支持 action: ${i.action},回退到网关/中台服务`),o.block_mapping=i.block_mapping,o.action=i.action,n.base.post(g(i.action),o);throw c}).finally(()=>{n.useCounterStore().changeLoading(!1)})}const s=b(a);return o.block_mapping=s.block_mapping,o.action=s.action,n.useCounterStore().changeLoading(!e),n.base.post(g(s.action),o).catch(i=>{if(_.shouldUseMock(i))return console.warn(`⚠️ 服务不可用,使用 Mock 数据: ${s.action}`,i),_.getMockData(s.action,o);throw i}).finally(()=>{n.useCounterStore().changeLoading(!1)})}exports.OBJECT_DETAIL_TAB_DEFS=m;exports.dataKeyToTabKey=M;exports.detailTabRowDefaults=L;exports.objectListApiPost=D;
|
|
@@ -9,7 +9,7 @@ var d = (a, e, t) => e in a ? y(a, e, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
A.call(e, t) && d(a, t, e[t]);
|
|
10
10
|
return a;
|
|
11
11
|
};
|
|
12
|
-
import { m as k, u as c, e as L, f as _, g as O, H as T, M as j } from "./index-
|
|
12
|
+
import { m as k, u as c, e as L, f as _, g as O, H as T, M as j } from "./index-BZpYmpDy.js";
|
|
13
13
|
const D = [
|
|
14
14
|
{ dataKey: "detailTab_baseinfo", label: "详细信息", defaultOn: !0 },
|
|
15
15
|
{ dataKey: "detailTab_monitor", label: "实时监控", defaultOn: !0 },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var N=Object.defineProperty,h=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var g=(r,o,a)=>o in r?N(r,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[o]=a,f=(r,o)=>{for(var a in o||(o={}))A.call(o,a)&&g(r,a,o[a]);if(y)for(var a of y(o))B.call(o,a)&&g(r,a,o[a]);return r},E=(r,o)=>h(r,S(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./BaseComponent-
|
|
1
|
+
"use strict";var N=Object.defineProperty,h=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var g=(r,o,a)=>o in r?N(r,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[o]=a,f=(r,o)=>{for(var a in o||(o={}))A.call(o,a)&&g(r,a,o[a]);if(y)for(var a of y(o))B.call(o,a)&&g(r,a,o[a]);return r},E=(r,o)=>h(r,S(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./BaseComponent-BmhMoM4H.cjs"),x=require("./index-77aUdspY.cjs"),C=require("./ele-vdo-icon-Bgp9gaT6.cjs"),M={key:0,class:"empty-state"},j={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.4"}},I={key:1,class:"stream-wrapper"},U=["src"],w={key:0,class:"overlay"},L={key:1,class:"overlay error"},P={key:2,class:"edit-badge"},F={DEFAULT_ICON:C.DEFAULT_ICON,ACTIVE_ICON:C.ACTIVE_ICON,NAME_CN:"监控摄像头",NAME_EN:"MJPEG Camera",ORDER:2,PLATFORM:["pc","screen","mobile"]},R={streamUrl:{value:"",type:"string",label:"推流地址"},objectFit:{value:"contain",type:"select",label:"画面填充方式",options:[{label:"等比缩放",value:"contain"},{label:"填充",value:"cover"},{label:"拉伸",value:"fill"}]},bgColor:{value:"#000000",type:"color",label:"component.options.bgColor"},radiusSize:{value:0,type:"number",label:"component.options.radiusSize",min:0,max:50},useProxy:{value:!0,type:"checkbox",label:"启用代理(解决跨域)"}},T=[],z=[],D=[],H=null,q={DEFAULT:F,OPTIONS:R,DATA:T,PARAMS:z,SOURCE:D,COMMON:H},$=e.defineComponent(E(f({},q),{__name:"mjpegCamera",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const o=r;class a extends O.BaseComponent{extractStyles(){return{streamUrl:this.getOptionValue("streamUrl",""),objectFit:this.getOptionValue("objectFit","contain"),bgColor:this.getOptionValue("bgColor","#000000"),radiusSize:this.getOptionValue("radiusSize",0),useProxy:this.getOptionValue("useProxy",!0)}}}const p=new a(o,"mjpegCamera");p.setupLifecycle();const n=p.getStyle(),i=e.ref(null),s=e.ref(!1),c=e.ref(!1),v=e.ref(""),m=e.computed(()=>{var t;return((t=n.value)==null?void 0:t.streamUrl)||""}),u=e.computed(()=>{var l;const t=m.value;if(!t)return"";if(!((l=n.value)!=null&&l.useProxy))return t;try{const d=new URL(t);return`/mjpeg-proxy${d.pathname}${d.search}`}catch(d){return t}}),b=e.computed(()=>{var t,l;return{borderRadius:`${((t=n.value)==null?void 0:t.radiusSize)||0}px`,backgroundColor:((l=n.value)==null?void 0:l.bgColor)||"#000"}}),V=()=>{s.value=!1,c.value=!1},_=()=>{s.value=!1,c.value=!0,v.value="无法连接到推流地址,请检查地址是否正确"},k=()=>{!i.value||!u.value||(c.value=!1,s.value=!0,i.value.src=u.value+(u.value.includes("?")?"&":"?")+"_t="+Date.now())};return e.watch(m,t=>{t&&(s.value=!0,c.value=!1)}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:"mjpeg-camera",style:e.normalizeStyle(b.value)},[m.value?(e.openBlock(),e.createElementBlock("div",I,[e.createElementVNode("img",{ref_key:"imgRef",ref:i,src:u.value,class:"stream-img",style:e.normalizeStyle({objectFit:e.unref(n).objectFit}),onError:_,onLoad:V,alt:"监控画面"},null,44,U),s.value?(e.openBlock(),e.createElementBlock("div",w,[...l[2]||(l[2]=[e.createElementVNode("div",{class:"spinner"},null,-1),e.createElementVNode("span",null,"连接中...",-1)])])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("div",L,[l[3]||(l[3]=e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"36",height:"36",fill:"currentColor"},[e.createElementVNode("path",{d:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"})],-1)),e.createElementVNode("span",null,e.toDisplayString(v.value),1),e.createElementVNode("button",{class:"retry-btn",onClick:k},"重试")])):e.createCommentVNode("",!0),r.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",P,"MJPEG 监控")):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",M,[(e.openBlock(),e.createElementBlock("svg",j,[...l[0]||(l[0]=[e.createElementVNode("path",{d:"M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5Z"},null,-1)])])),l[1]||(l[1]=e.createElementVNode("p",{class:"empty-text"},"请在属性面板中设置推流地址",-1))])),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),G=x._export_sfc($,[["__scopeId","data-v-318986e2"]]);exports.default=G;
|
|
@@ -11,8 +11,8 @@ var h = (l, t, r) => t in l ? j(l, t, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return l;
|
|
12
12
|
}, S = (l, t) => k(l, w(t));
|
|
13
13
|
import { defineComponent as L, ref as m, computed as g, watch as P, openBlock as s, createElementBlock as n, normalizeStyle as x, createElementVNode as a, unref as R, createCommentVNode as f, toDisplayString as F, renderSlot as D } from "vue";
|
|
14
|
-
import { B as I } from "./BaseComponent-
|
|
15
|
-
import { _ as z } from "./index-
|
|
14
|
+
import { B as I } from "./BaseComponent-CQaDWNO0.js";
|
|
15
|
+
import { _ as z } from "./index-BZpYmpDy.js";
|
|
16
16
|
import { A as B, D as H } from "./ele-vdo-icon-DcWebTR5.js";
|
|
17
17
|
const T = {
|
|
18
18
|
key: 0,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var $ = Object.defineProperty, F = Object.defineProperties;
|
|
2
2
|
var z = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var O = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var G = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var N = (d, l, i) => l in d ? $(d, l, { enumerable: !0, configurable: !0, writable: !0, value: i }) : d[l] = i, M = (d, l) => {
|
|
6
6
|
for (var i in l || (l = {}))
|
|
7
|
-
|
|
7
|
+
G.call(l, i) && N(d, i, l[i]);
|
|
8
8
|
if (O)
|
|
9
9
|
for (var i of O(l))
|
|
10
|
-
|
|
10
|
+
H.call(l, i) && N(d, i, l[i]);
|
|
11
11
|
return d;
|
|
12
|
-
},
|
|
13
|
-
import { defineComponent as
|
|
12
|
+
}, L = (d, l) => F(d, z(l));
|
|
13
|
+
import { defineComponent as K, useCssVars as Q, unref as c, ref as A, computed as B, openBlock as _, createElementBlock as g, createElementVNode as o, toDisplayString as C, normalizeStyle as R, withDirectives as w, vModelText as D, Fragment as q, renderList as J, createCommentVNode as W, renderSlot as X } from "vue";
|
|
14
14
|
import "html2canvas";
|
|
15
|
-
import { B as Y } from "./BaseComponent-
|
|
16
|
-
import {
|
|
15
|
+
import { B as Y } from "./BaseComponent-CQaDWNO0.js";
|
|
16
|
+
import { N as Z, G as ee, _ as te } from "./index-BZpYmpDy.js";
|
|
17
17
|
import { A as oe, D as le } from "./ele-evn-icon-MWzAujnD.js";
|
|
18
18
|
const ae = { class: "monitor-alert-wrapper" }, re = { class: "panel-header" }, ne = { class: "header-left" }, ce = { class: "header-title" }, se = { class: "search-bar" }, ie = ["placeholder"], de = { class: "date-picker-row" }, ue = { class: "date-picker-item" }, fe = { class: "date-picker-item" }, ve = { class: "alert-list" }, pe = ["onClick"], me = { class: "alert-content" }, Ce = { class: "alert-title" }, be = { class: "alert-desc" }, he = { class: "alert-time" }, _e = {
|
|
19
19
|
key: 0,
|
|
@@ -40,7 +40,7 @@ const ae = { class: "monitor-alert-wrapper" }, re = { class: "panel-header" }, n
|
|
|
40
40
|
{ name: "边坡变形监测", fv: "alert_type", object_id: "", location: "南区边坡", desc: "变形加速", time: "15:42", level: "warn" },
|
|
41
41
|
{ name: "裂缝监测预警", fv: "alert_type", object_id: "", location: "北区挡墙", desc: "裂缝扩展", time: "14:30", level: "error" },
|
|
42
42
|
{ name: "位移监测提醒", fv: "alert_type", object_id: "", location: "东区边坡", desc: "位移异常", time: "13:15", level: "info" }
|
|
43
|
-
], we = ["name", "fv", "object_id", "location", "desc", "time", "level"], De = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], Ee = { useAlias: !1, multiObject: !0, source: "mosaic" }, ke = { DEFAULT: ge, OPTIONS: ye, DATA: Ae, PARAMS: we, SOURCE: De, COMMON: Ee }, xe = /* @__PURE__ */
|
|
43
|
+
], we = ["name", "fv", "object_id", "location", "desc", "time", "level"], De = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], Ee = { useAlias: !1, multiObject: !0, source: "mosaic" }, ke = { DEFAULT: ge, OPTIONS: ye, DATA: Ae, PARAMS: we, SOURCE: De, COMMON: Ee }, xe = /* @__PURE__ */ K(L(M({}, ke), {
|
|
44
44
|
__name: "monitorAlert",
|
|
45
45
|
props: {
|
|
46
46
|
conf: { type: Object, default: () => ({ data: [] }) },
|
|
@@ -49,7 +49,7 @@ const ae = { class: "monitor-alert-wrapper" }, re = { class: "panel-header" }, n
|
|
|
49
49
|
theme: { type: String, default: "light" }
|
|
50
50
|
},
|
|
51
51
|
setup(d) {
|
|
52
|
-
|
|
52
|
+
Q((s) => ({
|
|
53
53
|
v72df6802: c(a).bgColor,
|
|
54
54
|
v221be3f8: c(a).borderColor,
|
|
55
55
|
v0aa92052: c(a).textColor,
|
|
@@ -203,7 +203,7 @@ const ae = { class: "monitor-alert-wrapper" }, re = { class: "panel-header" }, n
|
|
|
203
203
|
])
|
|
204
204
|
]),
|
|
205
205
|
o("div", ve, [
|
|
206
|
-
(_(!0), g(
|
|
206
|
+
(_(!0), g(q, null, J(x.value, (t, u) => (_(), g("div", {
|
|
207
207
|
key: u,
|
|
208
208
|
class: "alert-item",
|
|
209
209
|
style: R(V(t.level)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var M=Object.defineProperty,T=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var A=(i,l,s)=>l in i?M(i,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[l]=s,w=(i,l)=>{for(var s in l||(l={}))I.call(l,s)&&A(i,s,l[s]);if(V)for(var s of V(l))P.call(l,s)&&A(i,s,l[s]);return i},D=(i,l)=>T(i,L(l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const R=require("./BaseComponent-
|
|
1
|
+
"use strict";var M=Object.defineProperty,T=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var A=(i,l,s)=>l in i?M(i,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[l]=s,w=(i,l)=>{for(var s in l||(l={}))I.call(l,s)&&A(i,s,l[s]);if(V)for(var s of V(l))P.call(l,s)&&A(i,s,l[s]);return i},D=(i,l)=>T(i,L(l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const R=require("./BaseComponent-BmhMoM4H.cjs"),h=require("./index-77aUdspY.cjs"),S=require("./ele-evn-icon-DUQMS-9T.cjs"),U={class:"monitor-alert-wrapper"},$={class:"panel-header"},q={class:"header-left"},F={class:"header-title"},z={class:"search-bar"},H=["placeholder"],K={class:"date-picker-row"},Q={class:"date-picker-item"},G={class:"date-picker-item"},J={class:"alert-list"},W=["onClick"],X={class:"alert-content"},Y={class:"alert-title"},Z={class:"alert-desc"},ee={class:"alert-time"},te={key:0,class:"no-data"},oe={DEFAULT_ICON:S.DEFAULT_ICON,ACTIVE_ICON:S.ACTIVE_ICON,NAME_CN:"监测预警",NAME_EN:"Monitor Alert",ORDER:10,PLATFORM:["pc","screen"]},le={title:{value:"监测预警",type:"string",label:"component.monitorAlert.title"},searchPlaceholder:{value:"搜索预警类型、位置...",type:"string",label:"component.monitorAlert.searchPlaceholder"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.monitorAlert.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.monitorAlert.accentColor"},alertColor:{value:"#e74c3c",type:"color",label:"component.monitorAlert.alertColor"},glowEffect:{value:!0,type:"checkbox",label:"component.monitorAlert.glowEffect"},warnColor:{value:"#f39c12",type:"color",label:"component.monitorAlert.warnColor"},infoColor:{value:"#9b59b6",type:"color",label:"component.monitorAlert.infoColor"}},re=[{name:"边坡变形监测",fv:"alert_type",object_id:"",location:"南区边坡",desc:"变形加速",time:"15:42",level:"warn"},{name:"裂缝监测预警",fv:"alert_type",object_id:"",location:"北区挡墙",desc:"裂缝扩展",time:"14:30",level:"error"},{name:"位移监测提醒",fv:"alert_type",object_id:"",location:"东区边坡",desc:"位移异常",time:"13:15",level:"info"}],ae=["name","fv","object_id","location","desc","time","level"],ne=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ce={useAlias:!1,multiObject:!0,source:"mosaic"},se={DEFAULT:oe,OPTIONS:le,DATA:re,PARAMS:ae,SOURCE:ne,COMMON:ce},ie=e.defineComponent(D(w({},se),{__name:"monitorAlert",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(i){e.useCssVars(c=>({v72df6802:e.unref(r).bgColor,v221be3f8:e.unref(r).borderColor,v0aa92052:e.unref(r).textColor,v9db353cc:e.unref(r).accentColor,dc3d4052:e.unref(r).glowEffect?`drop-shadow(0 0 6px ${e.unref(r).accentColor})`:"none",v05260c03:e.unref(r).glowEffect?`0 0 10px ${e.unref(r).accentColor}`:"none",v12c6b5da:e.unref(r).glowEffect?`0 0 10px ${e.unref(r).alertColor}`:"none"}));const l=i;class s extends R.BaseComponent{extractStyles(){var o,d,a,n,f,u,C,p,m,g,N;const{options:t}=this.props.conf;return{title:((o=t==null?void 0:t.title)==null?void 0:o.value)||"监测预警",searchPlaceholder:((d=t==null?void 0:t.searchPlaceholder)==null?void 0:d.value)||"搜索预警类型、位置...",bgColor:((a=t==null?void 0:t.bgColor)==null?void 0:a.value)||"#1a2a3a",borderColor:((n=t==null?void 0:t.borderColor)==null?void 0:n.value)||"#2a4a6a",textColor:((f=t==null?void 0:t.textColor)==null?void 0:f.value)||"#ffffff",accentColor:((u=t==null?void 0:t.accentColor)==null?void 0:u.value)||"#00d4ff",alertColor:((C=t==null?void 0:t.alertColor)==null?void 0:C.value)||"#e74c3c",glowEffect:(m=(p=t==null?void 0:t.glowEffect)==null?void 0:p.value)!=null?m:!0,warnColor:((g=t==null?void 0:t.warnColor)==null?void 0:g.value)||"#f39c12",infoColor:((N=t==null?void 0:t.infoColor)==null?void 0:N.value)||"#9b59b6"}}getDefaultData(){return[{name:"边坡变形监测",fv:"alert_type",object_id:"",location:"南区边坡",desc:"变形加速",time:"15:42",level:"warn"},{name:"裂缝监测预警",fv:"alert_type",object_id:"",location:"北区挡墙",desc:"裂缝扩展",time:"14:30",level:"error"},{name:"位移监测提醒",fv:"alert_type",object_id:"",location:"东区边坡",desc:"位移异常",time:"13:15",level:"info"}]}setHistoryData(t){const{data:o,common:d}=this.props.conf;if(!o.some(u=>u.object_id&&u.fv))return;const n=d.source||"mosaic";["statistics","calculate"].includes(n)&&(t=h.formatStatisticsResult(t,o));let f=h.handleNullData(t,this.props,"history");o.forEach((u,C)=>{var p;if(!(!u.object_id||!u.fv))try{const m=(p=f.history[C])==null?void 0:p[0];m&&Object.assign(u,m)}catch(m){}})}setSocketData(t){if(!t)return;const{data:o}=this.props.conf;o.some(a=>a.object_id&&a.fv)&&o.forEach(a=>{if(!a.object_id||!a.fv)return;const n=this.extractDataValue(t,a.fv);n!=null&&(typeof n=="object"&&n!==null?Object.assign(a,n):a.value=n)})}}const b=new s(l,"monitorAlert");(!l.conf.data||l.conf.data.length===0)&&(l.conf.data=b.getDefaultData()),b.setupLifecycle();const r=b.getStyle(),v=e.ref(""),_=e.ref(""),y=e.ref(""),k=e.computed(()=>{var c,t;return((t=(c=l.conf)==null?void 0:c.data)==null?void 0:t.length)||0}),E=e.computed(()=>{var o;const c=((o=l.conf)==null?void 0:o.data)||[];if(!v.value)return c;const t=v.value.toLowerCase();return c.filter(d=>{var a,n,f;return((a=d.name)==null?void 0:a.toLowerCase().includes(t))||((n=d.location)==null?void 0:n.toLowerCase().includes(t))||((f=d.desc)==null?void 0:f.toLowerCase().includes(t))})}),x=c=>{const o={error:r.alertColor,warn:r.warnColor,info:r.infoColor}[c]||r.infoColor;return{borderLeftColor:o,background:`linear-gradient(90deg, ${o}20 0%, transparent 100%)`}},j=()=>console.log("搜索:",v.value),O=()=>{v.value=""},B=c=>console.log("点击预警:",c);return(c,t)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",$,[e.createElementVNode("div",q,[t[3]||(t[3]=e.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),e.createElementVNode("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})],-1)),e.createElementVNode("span",F,e.toDisplayString(e.unref(r).title),1)]),e.createElementVNode("div",{class:"alert-badge",style:e.normalizeStyle({borderColor:e.unref(r).alertColor,color:e.unref(r).alertColor})},e.toDisplayString(k.value)+"条新预警 ",5)]),e.createElementVNode("div",z,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=o=>v.value=o),type:"text",class:"search-input",placeholder:e.unref(r).searchPlaceholder},null,8,H),[[e.vModelText,v.value]]),e.createElementVNode("button",{class:"search-btn",onClick:j},[...t[4]||(t[4]=[e.createElementVNode("span",null,"Q",-1)])]),e.createElementVNode("button",{class:"clear-btn",onClick:O},[...t[5]||(t[5]=[e.createElementVNode("span",null,"×",-1)])])]),e.createElementVNode("div",K,[e.createElementVNode("div",Q,[t[6]||(t[6]=e.createElementVNode("label",null,"开始日期",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=o=>_.value=o),type:"date",class:"date-input"},null,512),[[e.vModelText,_.value]])]),e.createElementVNode("div",G,[t[7]||(t[7]=e.createElementVNode("label",null,"结束日期",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[2]||(t[2]=o=>y.value=o),type:"date",class:"date-input"},null,512),[[e.vModelText,y.value]])])]),e.createElementVNode("div",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(o,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"alert-item",style:e.normalizeStyle(x(o.level)),onClick:a=>B(o)},[e.createElementVNode("div",X,[e.createElementVNode("div",Y,e.toDisplayString(o.name),1),e.createElementVNode("div",Z,"位置:"+e.toDisplayString(o.location)+" "+e.toDisplayString(o.desc),1)]),e.createElementVNode("div",ee,e.toDisplayString(o.time),1)],12,W))),128)),E.value.length===0?(e.openBlock(),e.createElementBlock("div",te," 暂无预警数据 ")):e.createCommentVNode("",!0)]),e.renderSlot(c.$slots,"default",{},void 0,!0)]))}})),de=h._export_sfc(ie,[["__scopeId","data-v-a1dccb42"]]);exports.default=de;
|
|
@@ -10,11 +10,11 @@ var T = (h, o, c) => o in h ? V(h, o, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
z.call(o, c) && T(h, c, o[c]);
|
|
11
11
|
return h;
|
|
12
12
|
}, M = (h, o) => $(h, U(o));
|
|
13
|
-
import { defineComponent as G, useCssVars as H, unref as u, ref as _, onMounted as
|
|
13
|
+
import { defineComponent as G, useCssVars as H, unref as u, ref as _, onMounted as Q, nextTick as L, watch as j, openBlock as W, createElementBlock as q, createElementVNode as e, toDisplayString as N, withDirectives as S, vModelText as E, renderSlot as J } from "vue";
|
|
14
14
|
import "html2canvas";
|
|
15
|
-
import {
|
|
15
|
+
import { L as K, N as X, G as Y, _ as Z } from "./index-BZpYmpDy.js";
|
|
16
16
|
import "element-plus";
|
|
17
|
-
import { E as tt } from "./EChartComponentBase-
|
|
17
|
+
import { E as tt } from "./EChartComponentBase-i76OGL3z.js";
|
|
18
18
|
import "./index-eIsZnzkc.js";
|
|
19
19
|
import { A as et, D as at } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
20
20
|
import { i as ot, cn as R } from "./echarts-Bp7QN4X6.js";
|
|
@@ -89,7 +89,7 @@ const lt = { class: "monitor-data-wrapper" }, rt = { class: "panel-header" }, st
|
|
|
89
89
|
}
|
|
90
90
|
getChartOption(t = "") {
|
|
91
91
|
var D;
|
|
92
|
-
const a = ((D = this.props.conf) == null ? void 0 : D.data) || this.getDefaultData(), d = this.extractStyles(), v = d.points, s =
|
|
92
|
+
const a = ((D = this.props.conf) == null ? void 0 : D.data) || this.getDefaultData(), d = this.extractStyles(), v = d.points, s = K(v, this.props.mode, !1);
|
|
93
93
|
this.xAxisData = s;
|
|
94
94
|
let f;
|
|
95
95
|
t ? f = a.filter((n) => {
|
|
@@ -209,7 +209,7 @@ const lt = { class: "monitor-data-wrapper" }, rt = { class: "panel-header" }, st
|
|
|
209
209
|
}, P = () => {
|
|
210
210
|
b.value = "", p.updateChartData("");
|
|
211
211
|
};
|
|
212
|
-
return
|
|
212
|
+
return Q(() => {
|
|
213
213
|
L(() => {
|
|
214
214
|
const l = document.getElementById(w);
|
|
215
215
|
if (l) {
|
|
@@ -224,7 +224,7 @@ const lt = { class: "monitor-data-wrapper" }, rt = { class: "panel-header" }, st
|
|
|
224
224
|
return (l = o.conf) == null ? void 0 : l.data;
|
|
225
225
|
}, () => {
|
|
226
226
|
L(() => p.updateChartData(b.value));
|
|
227
|
-
}, { deep: !0 }), (l, t) => (
|
|
227
|
+
}, { deep: !0 }), (l, t) => (W(), q("div", lt, [
|
|
228
228
|
e("div", rt, [
|
|
229
229
|
e("div", st, [
|
|
230
230
|
t[3] || (t[3] = e("svg", {
|
|
@@ -311,7 +311,7 @@ const lt = { class: "monitor-data-wrapper" }, rt = { class: "panel-header" }, st
|
|
|
311
311
|
class: "chart-container"
|
|
312
312
|
}, null, 8, vt)
|
|
313
313
|
]),
|
|
314
|
-
|
|
314
|
+
J(l.$slots, "default", {}, void 0, !0)
|
|
315
315
|
]));
|
|
316
316
|
}
|
|
317
317
|
})), Nt = /* @__PURE__ */ Z(St, [["__scopeId", "data-v-f9e839b2"]]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var L=Object.defineProperty,j=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var S=(f,o,c)=>o in f?L(f,o,{enumerable:!0,configurable:!0,writable:!0,value:c}):f[o]=c,w=(f,o)=>{for(var c in o||(o={}))B.call(o,c)&&S(f,c,o[c]);if(_)for(var c of _(o))R.call(o,c)&&S(f,c,o[c]);return f},A=(f,o)=>j(f,I(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const b=require("./index-
|
|
1
|
+
"use strict";var L=Object.defineProperty,j=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var S=(f,o,c)=>o in f?L(f,o,{enumerable:!0,configurable:!0,writable:!0,value:c}):f[o]=c,w=(f,o)=>{for(var c in o||(o={}))B.call(o,c)&&S(f,c,o[c]);if(_)for(var c of _(o))R.call(o,c)&&S(f,c,o[c]);return f},A=(f,o)=>j(f,I(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const b=require("./index-77aUdspY.cjs");require("element-plus");const P=require("./EChartComponentBase-D9EUh4BZ.cjs");require("./index-CJgyJTvc.cjs");const O=require("./ele-lin-icon-Dke_1AmT.cjs"),E=require("./echarts-BB8O2KSA.cjs"),q={class:"monitor-data-wrapper"},U={class:"panel-header"},$={class:"header-left"},F={class:"header-title"},z={class:"search-bar"},G=["placeholder"],H={class:"date-picker-row"},Q={class:"date-picker-item"},W={class:"date-picker-item"},J={class:"chart-area"},K={class:"chart-header"},X={class:"chart-title"},Y=["id"],Z={DEFAULT_ICON:O.DEFAULT_ICON,ACTIVE_ICON:O.ACTIVE_ICON,NAME_CN:"监测数据",NAME_EN:"Monitor Data",ORDER:9,PLATFORM:["pc","screen"]},ee={title:{value:"监测数据",type:"string",label:"component.monitorData.title"},searchPlaceholder:{value:"搜索监测点、设备...",type:"string",label:"component.monitorData.searchPlaceholder"},trendTitle:{value:"位移监测趋势",type:"string",label:"component.monitorData.trendTitle"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.monitorData.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.monitorData.accentColor"},glowEffect:{value:!0,type:"checkbox",label:"component.monitorData.glowEffect"},unit:{value:"mm",type:"string",label:"component.monitorData.unit"},points:{value:10,type:"number",label:"component.options.points",min:5,max:50}},te=[{name:"监测点-01",fv:"displacement",object_id:"",color:"#00d4ff"}],ae=["name","fv","object_id","color"],oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],re={useAlias:!1,multiObject:!0,source:"mosaic"},le={DEFAULT:Z,OPTIONS:ee,DATA:te,PARAMS:ae,SOURCE:oe,COMMON:re},ne=t.defineComponent(A(w({},le),{__name:"monitorData",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(f){t.useCssVars(r=>({v1e07c062:t.unref(m).bgColor,v704d6070:t.unref(m).borderColor,v39718fa7:t.unref(m).textColor,v56e3c1ea:t.unref(m).accentColor,v3c05cfa7:t.unref(m).glowEffect?`drop-shadow(0 0 6px ${t.unref(m).accentColor})`:"none",v65d0985a:t.unref(m).glowEffect?`0 0 10px ${t.unref(m).accentColor}`:"none"}));const o=f;class c extends P.EChartComponentBase{constructor(){super(...arguments),this.historyData=new Map,this.xAxisData=[]}extractStyles(){var a,d,p,n,u,l,y,s,v,i,D;const{options:e}=this.props.conf;return{title:((a=e==null?void 0:e.title)==null?void 0:a.value)||"监测数据",searchPlaceholder:((d=e==null?void 0:e.searchPlaceholder)==null?void 0:d.value)||"搜索监测点、设备...",trendTitle:((p=e==null?void 0:e.trendTitle)==null?void 0:p.value)||"位移监测趋势",bgColor:((n=e==null?void 0:e.bgColor)==null?void 0:n.value)||"#1a2a3a",borderColor:((u=e==null?void 0:e.borderColor)==null?void 0:u.value)||"#2a4a6a",textColor:((l=e==null?void 0:e.textColor)==null?void 0:l.value)||"#ffffff",accentColor:((y=e==null?void 0:e.accentColor)==null?void 0:y.value)||"#00d4ff",glowEffect:(v=(s=e==null?void 0:e.glowEffect)==null?void 0:s.value)!=null?v:!0,unit:((i=e==null?void 0:e.unit)==null?void 0:i.value)||"mm",points:((D=e==null?void 0:e.points)==null?void 0:D.value)||10}}getDefaultData(){return[{name:"监测点-01",fv:"displacement",object_id:"",color:"#00d4ff"}]}generateMockData(e){const a=[];let d=1;for(let p=0;p<e;p++)d+=Math.random()*1.5,a.push(parseFloat(d.toFixed(1)));return a}getChartOption(e=""){var y;const a=((y=this.props.conf)==null?void 0:y.data)||this.getDefaultData(),d=this.extractStyles(),p=d.points,n=b.getxAxisDataTime(p,this.props.mode,!1);this.xAxisData=n;let u;e?u=a.filter(s=>{var v;return(v=s.name)==null?void 0:v.toLowerCase().includes(e.toLowerCase())}):u=a.length>0?[a[0]]:a;const l=u.map((s,v)=>{let i=this.historyData.get(s.name);return(!i||i.length===0)&&(i=this.generateMockData(p),this.historyData.set(s.name,i)),s.color,{name:s.name,type:"line",smooth:!0,symbol:"circle",symbolSize:8,data:i,lineStyle:{width:3,color:new E.LinearGradient(0,0,1,0,[{offset:0,color:"#2ecc71"},{offset:.5,color:"#f39c12"},{offset:1,color:"#e74c3c"}])},itemStyle:{color:D=>{const V=D.value;return V<3?"#2ecc71":V<6?"#f39c12":"#e74c3c"},borderColor:"#fff",borderWidth:2},areaStyle:{color:new E.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(0, 212, 255, 0.3)"},{offset:1,color:"rgba(0, 212, 255, 0.05)"}])}}});return{grid:{left:50,right:20,top:40,bottom:30},tooltip:{trigger:"axis",backgroundColor:"rgba(0, 0, 0, 0.8)",borderColor:"#2a4a6a",textStyle:{color:"#fff"},formatter:s=>{let v=`<div style="font-weight:bold">${s[0].axisValue}</div>`;return s.forEach(i=>{v+=`<div>${i.marker} ${i.seriesName}: ${i.value} ${d.unit}</div>`}),v}},xAxis:{type:"category",data:n,axisLine:{lineStyle:{color:"#2a4a6a"}},axisLabel:{color:"#ffffff",fontSize:11}},yAxis:{type:"value",name:d.unit,nameTextStyle:{color:"#ffffff",fontSize:12},axisLine:{show:!1},splitLine:{lineStyle:{color:"#2a4a6a",type:"dashed"}},axisLabel:{color:"#ffffff",fontSize:11}},series:l}}setHistoryData(e){const{data:a,common:d}=this.props.conf;if(!a.some(l=>l.object_id&&l.fv))return;const n=d.source||"mosaic";["statistics","calculate"].includes(n)&&(e=b.formatStatisticsResult(e,a));let u=b.handleNullData(e,this.props,"history");a.forEach((l,y)=>{if(!(!l.object_id||!l.fv))try{const v=(u.history[y]||[]).map(i=>{var D;return(D=i[l.fv])!=null?D:0});this.historyData.set(l.name,v)}catch(s){}}),this.updateChartData()}setSocketData(e){if(!e)return;const{data:a}=this.props.conf;if(!a.some(n=>n.object_id&&n.fv))return;const p=this.extractStyles().points;a.forEach(n=>{if(!n.object_id||!n.fv)return;const u=this.extractDataValue(e,n.fv);if(u!=null){let l=this.historyData.get(n.name)||[];l.push(u),l.length>p&&l.shift(),this.historyData.set(n.name,l)}}),this.updateChartData()}updateChartData(e=""){this.chartObj&&this.chartObj.setOption(this.getChartOption(e),!0)}}const h=new c(o,"monitorData");(!o.conf.data||o.conf.data.length===0)&&(o.conf.data=h.getDefaultData()),h.setupLifecycle();const m=h.getStyle(),N=h.getEchartId(),g=t.ref(""),C=t.ref(""),x=t.ref(""),T=()=>{const r=h.xAxisData;if(r&&r.length>0){const e=r[0],a=r[r.length-1];C.value=e.split(" ")[0],x.value=a.split(" ")[0]}},k=()=>{h.updateChartData(g.value)},M=()=>{g.value="",h.updateChartData("")};return t.onMounted(()=>{t.nextTick(()=>{const r=document.getElementById(N);if(r){const e=E.init(r);e.setOption(h.getChartOption()),h.chartObj=e,T()}})}),t.watch(g,r=>{h.updateChartData(r)}),t.watch(()=>{var r;return(r=o.conf)==null?void 0:r.data},()=>{t.nextTick(()=>h.updateChartData(g.value))},{deep:!0}),(r,e)=>(t.openBlock(),t.createElementBlock("div",q,[t.createElementVNode("div",U,[t.createElementVNode("div",$,[e[3]||(e[3]=t.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("line",{x1:"18",y1:"20",x2:"18",y2:"10"}),t.createElementVNode("line",{x1:"12",y1:"20",x2:"12",y2:"4"}),t.createElementVNode("line",{x1:"6",y1:"20",x2:"6",y2:"14"})],-1)),t.createElementVNode("span",F,t.toDisplayString(t.unref(m).title),1)]),e[4]||(e[4]=t.createElementVNode("button",{class:"realtime-btn"}," 实时监测(自动更新) ",-1))]),t.createElementVNode("div",z,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>g.value=a),type:"text",class:"search-input",placeholder:t.unref(m).searchPlaceholder},null,8,G),[[t.vModelText,g.value]]),t.createElementVNode("button",{class:"search-btn",onClick:k},[...e[5]||(e[5]=[t.createElementVNode("span",null,"Q",-1)])]),t.createElementVNode("button",{class:"clear-btn",onClick:M},[...e[6]||(e[6]=[t.createElementVNode("span",null,"×",-1)])])]),t.createElementVNode("div",H,[t.createElementVNode("div",Q,[e[7]||(e[7]=t.createElementVNode("label",null,"开始日期",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>C.value=a),type:"date",class:"date-input"},null,512),[[t.vModelText,C.value]])]),t.createElementVNode("div",W,[e[8]||(e[8]=t.createElementVNode("label",null,"结束日期",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[2]||(e[2]=a=>x.value=a),type:"date",class:"date-input"},null,512),[[t.vModelText,x.value]])])]),t.createElementVNode("div",J,[t.createElementVNode("div",K,[t.createElementVNode("div",X,t.toDisplayString(t.unref(m).trendTitle),1),e[9]||(e[9]=t.createElementVNode("div",{class:"chart-subtitle"},"实时监测数据",-1))]),t.createElementVNode("div",{id:t.unref(N),class:"chart-container"},null,8,Y)]),t.renderSlot(r.$slots,"default",{},void 0,!0)]))}})),se=b._export_sfc(ne,[["__scopeId","data-v-f9e839b2"]]);exports.default=se;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var W=Object.defineProperty,Z=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var I=(c,r,i)=>r in c?W(c,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[r]=i,U=(c,r)=>{for(var i in r||(r={}))K.call(r,i)&&I(c,i,r[i]);if(X)for(var i of X(r))Q.call(r,i)&&I(c,i,r[i]);return c},q=(c,r)=>Z(c,J(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),g=require("./index-
|
|
1
|
+
"use strict";var W=Object.defineProperty,Z=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var I=(c,r,i)=>r in c?W(c,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[r]=i,U=(c,r)=>{for(var i in r||(r={}))K.call(r,i)&&I(c,i,r[i]);if(X)for(var i of X(r))Q.call(r,i)&&I(c,i,r[i]);return c},q=(c,r)=>Z(c,J(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),g=require("./index-77aUdspY.cjs");require("./index-CJgyJTvc.cjs");const $=require("./ele-lin-icon-Dke_1AmT.cjs"),V=require("./echarts-BB8O2KSA.cjs"),ee={class:"chart-header"},te={class:"chart-title"},le={key:0,class:"click-hint"},oe={class:"modal-header"},ae={class:"modal-title"},ne={class:"modal-body"},ie={class:"modal-toolbar"},re={class:"toolbar-left"},se={class:"toolbar-right"},de={class:"modal-charts"},ce={class:"chart-section"},me={class:"section-header"},pe={class:"chart-section"},ue={class:"section-header"},be={class:"modal-table"},ve={class:"table-header"},fe={class:"table-actions"},ye={class:"code-link"},ge={DEFAULT_ICON:$.DEFAULT_ICON,ACTIVE_ICON:$.ACTIVE_ICON,NAME_CN:"监测点速度曲线",NAME_EN:"Monitor Speed Chart",ORDER:20,PLATFORM:["pc","screen"]},he={title:{value:"监测点速度曲线 (24h)",type:"string",label:"component.monitorSpeed.title"},clickable:{value:!0,type:"boolean",label:"component.monitorSpeed.clickable"},clickAction:{value:"modal",type:"select",label:"component.monitorSpeed.clickAction",options:[{label:"打开弹窗",value:"modal"},{label:"发送事件",value:"event"},{label:"跳转页面",value:"navigate"}]},eventName:{value:"onChartClick",type:"string",label:"component.monitorSpeed.eventName"},targetUrl:{value:"",type:"string",label:"component.monitorSpeed.targetUrl"},modalTitle:{value:"GNSS 监测数据分析",type:"string",label:"component.monitorSpeed.modalTitle"},modalWidth:{value:1200,type:"number",label:"component.monitorSpeed.modalWidth",min:600,max:1920},modalHeight:{value:700,type:"number",label:"component.monitorSpeed.modalHeight",min:400,max:1080},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},lineColor:{value:"#ff6b6b",type:"color",label:"component.deepDisplacement.lineColor"},areaColor:{value:"rgba(255, 107, 107, 0.3)",type:"color",label:"component.monitorSpeed.areaColor"}},Ne=[{object_id:"",speed_fv:"speed",time_fv:"time"}],Ve=["object_id","speed_fv","time_fv"],Se=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],xe={useAlias:!1,multiObject:!1,source:"mosaic"},Ce={DEFAULT:ge,OPTIONS:he,DATA:Ne,PARAMS:Ve,SOURCE:Se,COMMON:xe},_e=e.defineComponent(q(U({},Ce),{__name:"monitorSpeedChart",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){e.useCssVars(l=>({v5aefa6ff:a.value.bgColor,v712b7720:a.value.lineColor,v16bfea52:a.value.textColor}));const r=g.useLinkStore(),i=c,x=`monitorSpeed_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,C=`modalChart_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,_=`modalTrajectory_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,S=e.ref(!1),E=e.ref("all"),k=e.ref("GNSS55"),w=e.ref([g.dayjs().subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),g.dayjs().format("YYYY-MM-DD HH:mm:ss")]),Y=e.ref("xy_speed"),M=e.ref("day"),D=e.ref("day");let m=null,p=null,u=null,h=null;const a=e.computed(()=>{var t,o,d,f,y,b,s,N,n,H,L,O;const{options:l}=i.conf||{};return{title:((t=l==null?void 0:l.title)==null?void 0:t.value)||"监测点速度曲线 (24h)",clickable:((o=l==null?void 0:l.clickable)==null?void 0:o.value)!==!1,clickAction:((d=l==null?void 0:l.clickAction)==null?void 0:d.value)||"modal",eventName:((f=l==null?void 0:l.eventName)==null?void 0:f.value)||"onChartClick",targetUrl:((y=l==null?void 0:l.targetUrl)==null?void 0:y.value)||"",modalTitle:((b=l==null?void 0:l.modalTitle)==null?void 0:b.value)||"GNSS 监测数据分析",modalWidth:((s=l==null?void 0:l.modalWidth)==null?void 0:s.value)||1200,modalHeight:((N=l==null?void 0:l.modalHeight)==null?void 0:N.value)||700,bgColor:((n=l==null?void 0:l.bgColor)==null?void 0:n.value)||"#ffffff",textColor:((H=l==null?void 0:l.textColor)==null?void 0:H.value)||"#333333",lineColor:((L=l==null?void 0:l.lineColor)==null?void 0:L.value)||"#ff6b6b",areaColor:((O=l==null?void 0:l.areaColor)==null?void 0:O.value)||"rgba(255, 107, 107, 0.3)"}}),j=e.ref([{index:1,region:"北帮",code:"GNSS55",time:"2026/1/19 10:39:00",baseX:2450.55,baseY:1300.12,baseH:1150,dispX:1.35,dispY:1.01,dispH:.01,dispXY:10.88},{index:2,region:"北帮",code:"GNSS55",time:"2026/1/20 10:39:00",baseX:2450.55,baseY:1300.12,baseH:1150,dispX:1.21,dispY:.91,dispH:.01,dispXY:10.89}]),T=()=>{const l=[],t=g.dayjs();for(let o=24;o>=0;o--){const d=t.subtract(o,"hour"),f=6+Math.sin(o*.5)*2,y=(Math.random()-.5)*2;l.push({time:d.format("MM-DD HH:mm"),value:Math.max(0,f+y)})}return l},z=()=>{const l=T(),t=a.value;return{tooltip:{trigger:"axis",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:o=>{const d=o[0];return`<div style="padding: 4px 8px;">
|
|
2
2
|
<div style="font-weight: 600; margin-bottom: 4px;">${d.name}</div>
|
|
3
3
|
<div style="display: flex; align-items: center; gap: 4px;">
|
|
4
4
|
<span style="display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: ${t.lineColor};"></span>
|
|
@@ -20,7 +20,7 @@ import "element-plus/es/components/input/style/css";
|
|
|
20
20
|
import "element-plus/es/components/select/style/css";
|
|
21
21
|
import "element-plus/es/components/option/style/css";
|
|
22
22
|
import { defineComponent as be, useCssVars as ve, ref as f, computed as fe, onMounted as ge, nextTick as P, onBeforeUnmount as ye, watch as he, openBlock as Y, createElementBlock as W, normalizeClass as Se, createElementVNode as l, toDisplayString as w, createCommentVNode as q, createBlock as xe, Teleport as _e, withModifiers as Ce, normalizeStyle as ke, createVNode as o, withCtx as u, createTextVNode as _, renderSlot as Ye } from "vue";
|
|
23
|
-
import { l as we, d as C, _ as Me } from "./index-
|
|
23
|
+
import { l as we, d as C, _ as Me } from "./index-BZpYmpDy.js";
|
|
24
24
|
import "./index-eIsZnzkc.js";
|
|
25
25
|
import { A as De, D as ze } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
26
26
|
import { i as M, cn as Ne } from "./echarts-Bp7QN4X6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var v=Object.defineProperty,N=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var O=(i,o,l)=>o in i?v(i,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[o]=l,h=(i,o)=>{for(var l in o||(o={}))L.call(o,l)&&O(i,l,o[l]);if(g)for(var l of g(o))T.call(o,l)&&O(i,l,o[l]);return i},S=(i,o)=>N(i,D(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),m=require("./index-
|
|
1
|
+
"use strict";var v=Object.defineProperty,N=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var O=(i,o,l)=>o in i?v(i,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[o]=l,h=(i,o)=>{for(var l in o||(o={}))L.call(o,l)&&O(i,l,o[l]);if(g)for(var l of g(o))T.call(o,l)&&O(i,l,o[l]);return i},S=(i,o)=>N(i,D(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),m=require("./index-77aUdspY.cjs");require("element-plus");const z=require("./EChartComponentBase-D9EUh4BZ.cjs"),I=require("./titleStyle-NSnz6cUg.cjs"),A=require("./ele-mxa-icon-fgN0MLnh.cjs"),x=require("./installCanvasRenderer-CyhM1Qpl.cjs"),R=require("./install-DV5cEgNV.cjs"),q=require("./install-CltTFs4e.cjs"),M=require("./install-C8buXQPI.cjs"),j=require("./install-CYwVETsi.cjs"),V={class:"mix-body"},k=["id"],$={DEFAULT_ICON:A.DEFAULT_ICON,ACTIVE_ICON:A.ACTIVE_ICON,NAME_CN:"双X轴",NAME_EN:"Double X-Axis",ORDER:3,PLATFORM:["pc","screen","mobile"]},w={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,top:20,bottom:10,left:20,right:30,points:50,isSmooth:!1,isHideTitle:!1},B=[{name:"参数一",fv:"",color:"#5793f3",object_id:""},{name:"参数二",fv:"",color:"#d14a61",object_id:""}],F=["name","fv","object_id","color","source"],P=["mosaic","statistics","calculate"],U=2,X={useAlias:!1,null:{type:"0",value:""},multiObject:!1,showBothModes:!0,source:"mosaic",rate:{checked:!1,value:1}},H={DEFAULT:$,OPTIONS:w,DATA:B,PARAMS:F,SOURCE:P,ITEMS:U,COMMON:X},G=s.defineComponent(S(h({},H),{__name:"mxa",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){x.use([R.install,q.install,x.install,M.install,x.install$1,j.install]);const o=i;class l extends z.EChartComponentBase{extractStyles(){return S(h({},super.extractStyles()),{isSmooth:this.getOptionValue("isSmooth",!1)})}getChartOption(){const t=this.Style.value,{data:a}=this.props.conf;return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}},textStyle:{fontSize:t.textSize}},legend:{show:!0,data:a.map(n=>n.name),right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!0},xAxis:this.formatXAxis(),yAxis:{type:"value",splitNumber:4,splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}}},series:this.formatSeries()}}formatXAxis(){const t=this.Style.value;return this.props.conf.data.map((a,n)=>({type:"category",boundaryGap:!1,data:this.getTimeAxis(),axisLabel:{formatter:u=>u.includes(" ")?u.replace(" ",`
|
|
2
2
|
`):u,color:t.textColor,fontSize:t.textSize},axisLine:{onZero:!1,lineStyle:{color:a.color||m.COLORS[n]}},axisTick:{alignWithLabel:!0}}))}formatSeries(){const t=this.Style.value;return this.props.conf.data.map((a,n)=>({type:"line",name:a.name,xAxisIndex:n,smooth:t.isSmooth,itemStyle:{color:a.color||m.COLORS[n]},lineStyle:{color:a.color||m.COLORS[n]},data:m.getRandomArr({num:t.points,max:200,min:0,mode:this.props.mode,hasDataSource:this.hasData()})}))}setSocketData(t){if(!this.hasData()||!this.chartObj||!t)return;const{data:a,common:n}=this.props.conf,u=n.source||"mosaic",e=this.chartObj.getOption();a.forEach((c,d)=>{const p=this.extractDataValue(t,c.fv),b=["statistics","calculate"].includes(u)?t.start_time:t.datetime;b!=null&&(e.xAxis[d].data.push(b),e.series[d].data.push(p))});const r=m.addRealtimeData(e.xAxis[0].data,e.series.map(c=>c.data));e.xAxis.forEach(c=>{c.data=r.times.slice(-this.Style.value.points)}),e.series.forEach((c,d)=>{var p;c.data=((p=r.data[d])==null?void 0:p.slice(-this.Style.value.points))||[]}),this.updateChart(e)}setHistoryData(t){if(!t)return;const a=this.chartObj.getOption(),n=Number(this.Style.value.points)||50,u=e=>{if(e==null||e===""||e==="-")return null;const r=Number(e);return Number.isFinite(r)?r:null};t.forEach((e,r)=>{var d;if(!a.xAxis[r]||!a.series[r]||!((d=e.time)!=null&&d.length))return;a.xAxis[r].data=e.time.slice(-n);const c=e.data||[];a.series[r].data=c.map(u).slice(-n)}),this.updateChart(a)}}const f=new l(o,"mxa");f.setupLifecycle();const y=f.getStyle(),E=f.getEchartId(),_=s.computed(()=>I.generateTitleStyle(o.conf.options));return(C,t)=>(s.openBlock(),s.createElementBlock("div",{class:"mix-component",style:s.normalizeStyle({background:s.unref(y).bgColor,borderRadius:`${s.unref(y).radiusSize}px`})},[s.createElementVNode("div",{class:"mix-title",style:s.normalizeStyle(_.value)},s.toDisplayString(i.conf.caption||i.conf.name),5),s.createElementVNode("div",V,[s.createElementVNode("div",{class:"w-full h-full",id:s.unref(E)},null,8,k)]),s.renderSlot(C.$slots,"default",{},void 0,!0)],4))}})),W=m._export_sfc(G,[["__scopeId","data-v-a2204086"]]);exports.default=W;
|
|
@@ -11,15 +11,15 @@ var C = (s, o, i) => o in s ? v(s, o, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return s;
|
|
12
12
|
}, f = (s, o) => D(s, N(o));
|
|
13
13
|
import { defineComponent as T, computed as R, openBlock as I, createElementBlock as M, normalizeStyle as _, unref as h, createElementVNode as S, toDisplayString as j, renderSlot as k } from "vue";
|
|
14
|
-
import { C as x, o as $,
|
|
14
|
+
import { C as x, o as $, q as w, _ as V } from "./index-BZpYmpDy.js";
|
|
15
15
|
import "element-plus";
|
|
16
|
-
import { E as B } from "./EChartComponentBase-
|
|
16
|
+
import { E as B } from "./EChartComponentBase-i76OGL3z.js";
|
|
17
17
|
import { g as F } from "./titleStyle-BT5GlpAb.js";
|
|
18
18
|
import { A as P, D as U } from "./ele-mxa-icon-CJWttkCK.js";
|
|
19
|
-
import { u as X, i as H, a as
|
|
20
|
-
import { i as
|
|
21
|
-
import { i as
|
|
22
|
-
import { i as
|
|
19
|
+
import { u as X, i as H, a as q } from "./installCanvasRenderer-oDYkyVFy.js";
|
|
20
|
+
import { i as G } from "./install-DdM8j5Ll.js";
|
|
21
|
+
import { i as W } from "./install-CEl1AYgZ.js";
|
|
22
|
+
import { i as Z } from "./install-DbAuuRVv.js";
|
|
23
23
|
import { i as J } from "./install-uPZUxWT9.js";
|
|
24
24
|
const K = { class: "mix-body" }, Q = ["id"], Y = {
|
|
25
25
|
DEFAULT_ICON: U,
|
|
@@ -61,7 +61,7 @@ const K = { class: "mix-body" }, Q = ["id"], Y = {
|
|
|
61
61
|
theme: { type: String, default: "light" }
|
|
62
62
|
},
|
|
63
63
|
setup(s) {
|
|
64
|
-
X([
|
|
64
|
+
X([G, W, H, Z, q, J]);
|
|
65
65
|
const o = s;
|
|
66
66
|
class i extends B {
|
|
67
67
|
extractStyles() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var k=Object.defineProperty,E=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var v=(a,t,n)=>t in a?k(a,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[t]=n,y=(a,t)=>{for(var n in t||(t={}))A.call(t,n)&&v(a,n,t[n]);if(C)for(var n of C(t))I.call(t,n)&&v(a,n,t[n]);return a},b=(a,t)=>E(a,N(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),T=require("./BaseComponent-
|
|
1
|
+
"use strict";var k=Object.defineProperty,E=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var v=(a,t,n)=>t in a?k(a,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[t]=n,y=(a,t)=>{for(var n in t||(t={}))A.call(t,n)&&v(a,n,t[n]);if(C)for(var n of C(t))I.call(t,n)&&v(a,n,t[n]);return a},b=(a,t)=>E(a,N(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),T=require("./BaseComponent-BmhMoM4H.cjs"),z=require("./index-77aUdspY.cjs"),q=require("@element-plus/icons-vue"),_=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),L={DEFAULT_ICON:_.DEFAULT_ICON,ACTIVE_ICON:_.ACTIVE_ICON,NAME_CN:"导航栏",NAME_EN:"Nav Bar",ORDER:1,PLATFORM:["pc","screen","mobile"]},M={bgColor:"#ffffff",height:44,paddingX:12,titleColor:"#303133",titleSize:16,iconColor:"#303133",showBack:!0,showBorder:!0,borderColor:"#ebeef5",navChannel:"myValueApp"},D=[{title:"mix-webView"}],R=["title","navChannel"],U=[],$={source:"mosaic"},P={DEFAULT:L,OPTIONS:M,DATA:D,PARAMS:R,SOURCE:U,COMMON:$},X=e.defineComponent(b(y({},P),{__name:"myValue",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){var h,f;const t=a;class n extends T.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#ffffff"),height:this.getOptionValue("height",44),paddingX:this.getOptionValue("paddingX",12),titleColor:this.getOptionValue("titleColor","#303133"),titleSize:this.getOptionValue("titleSize",16),iconColor:this.getOptionValue("iconColor","#303133"),showBack:this.getOptionValue("showBack",!0),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#ebeef5")}}init(){var o;this.Style.value=this.extractStyles(),this.applyTheme(),(o=this.props.conf.data)!=null&&o.length||(this.props.conf.data=[{title:"mix-webView"}])}}const c=new n(t,"myValue");c.setupLifecycle();const i=c.getStyle(),l=t.conf,u=e.ref((l==null?void 0:l.caption)||((f=(h=l==null?void 0:l.data)==null?void 0:h[0])==null?void 0:f.title)||"mix-webView"),s=e.ref(!1),B=e.computed(()=>window.history.length>1),d=()=>{var r,o;return((r=i.value)==null?void 0:r.navChannel)||((o=l==null?void 0:l.options)==null?void 0:o.navChannel)||"myValueApp"},p=r=>{const o=(r==null?void 0:r.detail)||{};o&&o.channel===d()&&(typeof o.title=="string"&&(u.value=o.title),typeof o.showBack=="boolean"&&(s.value=o.showBack))};e.onMounted(()=>{window.addEventListener("mix-myvalue-nav:update",p)}),e.onBeforeUnmount(()=>{window.removeEventListener("mix-myvalue-nav:update",p)});const S=()=>{if(window.dispatchEvent(new CustomEvent("mix-myvalue-nav:back",{detail:{channel:d()}})),t.mode!=="edit"){if(B.value){window.history.back();return}window.location.href="/home"}};return(r,o)=>{var m,g,w;const x=V.ElIcon,O=V.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"nav-container",style:e.normalizeStyle({background:e.unref(i).bgColor,height:`${e.unref(i).height}px`,paddingLeft:`${e.unref(i).paddingX}px`,paddingRight:`${e.unref(i).paddingX}px`,borderBottom:e.unref(i).showBorder?`1px solid ${e.unref(i).borderColor}`:"none"})},[s.value||e.unref(i).showBack?(e.openBlock(),e.createBlock(O,{key:0,class:"nav-back",style:e.normalizeStyle({color:e.unref(i).iconColor}),onClick:e.withModifiers(S,["stop"]),"aria-label":"back",type:"text"},{default:e.withCtx(()=>[e.createVNode(x,{size:22},{default:e.withCtx(()=>[e.createVNode(e.unref(q.ArrowLeft))]),_:1})]),_:1},8,["style"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"nav-title",style:e.normalizeStyle({color:e.unref(i).titleColor,fontSize:`${e.unref(i).titleSize}px`})},e.toDisplayString(u.value||e.unref(l).caption||((w=(g=(m=e.unref(l))==null?void 0:m.data)==null?void 0:g[0])==null?void 0:w.title)||"mix-webView"),5),e.createElementVNode("div",{class:"nav-right",style:e.normalizeStyle({width:s.value||e.unref(i).showBack?"32px":"0px"})},null,4),e.renderSlot(r.$slots,"default",{},void 0,!0)],4)}}})),F=z._export_sfc(X,[["__scopeId","data-v-1d778a85"]]);exports.default=F;
|
|
@@ -15,8 +15,8 @@ import "element-plus/es/components/base/style/css";
|
|
|
15
15
|
import "element-plus/es/components/button/style/css";
|
|
16
16
|
import "element-plus/es/components/icon/style/css";
|
|
17
17
|
import { defineComponent as $, ref as B, computed as U, onMounted as X, onBeforeUnmount as F, openBlock as V, createElementBlock as P, normalizeStyle as s, unref as e, createBlock as j, withModifiers as G, withCtx as x, createVNode as k, createCommentVNode as q, createElementVNode as S, toDisplayString as H, renderSlot as J } from "vue";
|
|
18
|
-
import { B as K } from "./BaseComponent-
|
|
19
|
-
import { _ as Q } from "./index-
|
|
18
|
+
import { B as K } from "./BaseComponent-CQaDWNO0.js";
|
|
19
|
+
import { _ as Q } from "./index-BZpYmpDy.js";
|
|
20
20
|
import { ArrowLeft as W } from "@element-plus/icons-vue";
|
|
21
21
|
import { A as Y, D as Z } from "./ele-vlu-icon-Bg6EHZdJ.js";
|
|
22
22
|
const tt = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var X=Object.defineProperty,Y=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var S=(r,d,t)=>d in r?X(r,d,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[d]=t,g=(r,d)=>{for(var t in d||(d={}))J.call(d,t)&&S(r,t,d[t]);if(E)for(var t of E(d))K.call(d,t)&&S(r,t,d[t]);return r},O=(r,d)=>Y(r,H(d));var C=(r,d,t)=>new Promise((u,n)=>{var m=s=>{try{l(t.next(s))}catch(i){n(i)}},o=s=>{try{l(t.throw(s))}catch(i){n(i)}},l=s=>s.done?u(s.value):Promise.resolve(s.value).then(m,o);l((t=t.apply(r,d)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/card/style/css");require("element-plus/es/components/skeleton/style/css");require("element-plus/es/components/button/style/css");const e=require("vue"),Q=require("./BaseComponent-BXAJUoaf.cjs"),x=require("./index-Cvu9nAQq.cjs");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");const h=require("element-plus"),T=require("./ele-arrayCard-icon-QOabvV0y.cjs"),W={class:"page"},Z={class:"actions"},ee=e.defineComponent({__name:"MyValueFormPage",props:{mode:{type:String,default:"add"},model:{type:Object,default:null}},emits:["save","cancel"],setup(r,{emit:d}){const t=r,u=d,n=e.reactive({title:"",desc:""});e.watch(()=>t.model,o=>{var l,s;n.title=(l=o==null?void 0:o.title)!=null?l:"",n.desc=(s=o==null?void 0:o.desc)!=null?s:""},{immediate:!0});const m=()=>{var o,l,s;u("save",{title:((o=n.title)==null?void 0:o.toString().trim())||"未命名",desc:(s=(l=n.desc)==null?void 0:l.toString())!=null?s:""})};return(o,l)=>{const s=p.ElInput,i=p.ElFormItem,y=p.ElForm,_=p.ElButton;return e.openBlock(),e.createElementBlock("div",W,[e.createVNode(y,{"label-position":"top",model:n,class:"form"},{default:e.withCtx(()=>[e.createVNode(i,{label:"标题"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.title,"onUpdate:modelValue":l[0]||(l[0]=v=>n.title=v),placeholder:"请输入标题"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.desc,"onUpdate:modelValue":l[1]||(l[1]=v=>n.desc=v),type:"textarea",rows:3,placeholder:"请输入描述"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),e.createElementVNode("div",Z,[e.createVNode(_,{onClick:l[2]||(l[2]=v=>o.$emit("cancel"))},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(_,{type:"primary",onClick:m},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createTextVNode("保存",-1)])]),_:1})])])}}}),A=x._export_sfc(ee,[["__scopeId","data-v-583abcf7"]]),te={class:"page"},oe={class:"actions"},ae=e.defineComponent({__name:"MyValueDetailPage",props:{item:{type:Object,default:null}},emits:["edit"],setup(r){return(d,t)=>{const u=p.ElDescriptionsItem,n=p.ElDescriptions,m=p.ElButton;return e.openBlock(),e.createElementBlock("div",te,[e.createVNode(n,{column:1,border:""},{default:e.withCtx(()=>[e.createVNode(u,{label:"标题"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString(((o=r.item)==null?void 0:o.title)||"-"),1)]}),_:1}),e.createVNode(u,{label:"描述"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString(((o=r.item)==null?void 0:o.desc)||"-"),1)]}),_:1}),e.createVNode(u,{label:"更新时间"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString(((o=r.item)==null?void 0:o.updatedAt)||"-"),1)]}),_:1})]),_:1}),e.createElementVNode("div",oe,[e.createVNode(m,{type:"primary",onClick:t[0]||(t[0]=o=>d.$emit("edit",r.item))},{default:e.withCtx(()=>[...t[1]||(t[1]=[e.createTextVNode("编辑",-1)])]),_:1})])])}}}),le=x._export_sfc(ae,[["__scopeId","data-v-d6e7f1ea"]]),ne={key:0,class:"list-toolbar"},ie=["onClick"],re={class:"item-sub"},de={key:2,class:"page-wrap"},se={key:3,class:"page-wrap"},ce={key:4,class:"page-wrap"},$={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"列表",NAME_EN:"My Value List",ORDER:2,PLATFORM:["pc","screen","mobile"]},I={bgColor:"#ffffff",radiusSize:8,borderColor:"#ebeef5",showBorder:!0,textColor:"#606266",valueColor:"#303133",itemTitleSize:13,itemValueSize:13,itemHeight:36,cardBgColor:"#ffffff",cardRadius:8,cardPaddingX:12,cardPaddingY:8,cardGap:10,showCardBorder:!0,cardBorderColor:"#f0f0f0"},M=[{title:"Item 1",fv:"",object_id:"",value:"--"},{title:"Item 2",fv:"",object_id:"",value:"--"},{title:"Item 3",fv:"",object_id:"",value:"--"},{title:"Item 4",fv:"",object_id:"",value:"--"}],z=["title","fv","object_id"],P=["mosaic"],D={source:"mosaic",multiObject:!1,hideMultiObject:!0},ue={DEFAULT:$,OPTIONS:I,DATA:M,PARAMS:z,SOURCE:P,COMMON:D},pe=e.defineComponent(O(g({},ue),{__name:"myValueList",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const d=r,t=e.ref("list"),u=e.ref([]),n=e.ref(null),m=e.ref(!1),o=()=>{t.value="list",n.value=null};class l extends Q.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#ffffff"),radiusSize:this.getOptionValue("radiusSize",8),borderColor:this.getOptionValue("borderColor","#ebeef5"),showBorder:this.getOptionValue("showBorder",!0),textColor:this.getOptionValue("textColor","#606266"),valueColor:this.getOptionValue("valueColor","#303133"),itemTitleSize:this.getOptionValue("itemTitleSize",13),itemValueSize:this.getOptionValue("itemValueSize",13),itemHeight:this.getOptionValue("itemHeight",36),cardBgColor:this.getOptionValue("cardBgColor","#ffffff"),cardRadius:this.getOptionValue("cardRadius",8),cardPaddingX:this.getOptionValue("cardPaddingX",12),cardPaddingY:this.getOptionValue("cardPaddingY",8),cardGap:this.getOptionValue("cardGap",10),showCardBorder:this.getOptionValue("showCardBorder",!0),cardBorderColor:this.getOptionValue("cardBorderColor","#f0f0f0"),navChannel:this.getOptionValue("navChannel","myValueApp")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),(!Array.isArray(this.props.conf.data)||this.props.conf.data.length===0)&&(this.props.conf.data=[{title:"Item 1",fv:"",object_id:"",value:"--"},{title:"Item 2",fv:"",object_id:"",value:"--"},{title:"Item 3",fv:"",object_id:"",value:"--"},{title:"Item 4",fv:"",object_id:"",value:"--"}])}}const s=new l(d,"myValueList");s.setupLifecycle();const i=s.getStyle(),y=()=>{var a;return((a=i.value)==null?void 0:a.navChannel)||"myValueApp"},_=()=>{const a=t.value,c=a==="list"?"列表":a==="add"?"新增":a==="edit"?"编辑":"详情";window.dispatchEvent(new CustomEvent("mix-myvalue-nav:update",{detail:{channel:y(),title:c,showBack:a!=="list"}}))},v=a=>{((a==null?void 0:a.detail)||{}).channel===y()&&t.value!=="list"&&o()};e.watch(t,()=>_()),e.onMounted(()=>{window.addEventListener("mix-myvalue-nav:back",v),_()}),e.onBeforeUnmount(()=>{window.removeEventListener("mix-myvalue-nav:back",v)});const L=()=>[{id:"1",title:"示例项 1",desc:"这是详情描述 1",updatedAt:"2026-04-08 10:00"},{id:"2",title:"示例项 2",desc:"这是详情描述 2",updatedAt:"2026-04-08 10:05"},{id:"3",title:"示例项 3",desc:"这是详情描述 3",updatedAt:"2026-04-08 10:10"}],N=()=>C(null,null,function*(){m.value=!0,yield new Promise(a=>setTimeout(a,300)),u.value=L(),m.value=!1});e.onMounted(()=>{N()});const b=()=>C(null,null,function*(){yield N()}),j=()=>{t.value="add"},w=a=>{n.value=g({},a),t.value="detail"},B=a=>{n.value=g({},a),t.value="edit"},q=a=>C(null,null,function*(){h.ElMessage.success("新增成功"),o(),yield b()}),R=a=>C(null,null,function*(){h.ElMessage.success("保存成功"),o(),yield b()}),F=a=>C(null,null,function*(){try{yield h.ElMessageBox.confirm(`确认删除「${a.title}」吗?`,"二次确认",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"})}catch(c){return}h.ElMessage.success("删除成功"),yield b()});return(a,c)=>{const V=p.ElButton,U=p.ElSkeleton,G=p.ElCard;return e.openBlock(),e.createElementBlock("div",{class:"list-container",style:e.normalizeStyle({background:e.unref(i).bgColor,borderRadius:`${e.unref(i).radiusSize}px`,border:e.unref(i).showBorder?`1px solid ${e.unref(i).borderColor}`:"none"})},[t.value==="list"?(e.openBlock(),e.createElementBlock("div",ne,[e.createVNode(V,{type:"primary",size:"small",onClick:j},{default:e.withCtx(()=>[...c[2]||(c[2]=[e.createTextVNode(" 新增 ",-1)])]),_:1})])):e.createCommentVNode("",!0),t.value==="list"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"list-body",style:e.normalizeStyle({gap:`${e.unref(i).cardGap}px`})},[m.value?(e.openBlock(),e.createBlock(U,{key:0,rows:4,animated:""})):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(u.value,f=>(e.openBlock(),e.createBlock(G,{key:f.id,class:"list-card",shadow:"never",style:e.normalizeStyle({background:e.unref(i).cardBgColor,borderRadius:`${e.unref(i).cardRadius}px`,border:e.unref(i).showCardBorder?`1px solid ${e.unref(i).cardBorderColor}`:"none"}),"body-style":{padding:`${e.unref(i).cardPaddingY}px ${e.unref(i).cardPaddingX}px`}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"card-content",onClick:k=>w(f)},[e.createElementVNode("div",{class:"item-title",style:e.normalizeStyle({color:e.unref(i).textColor,fontSize:`${e.unref(i).itemTitleSize}px`})},e.toDisplayString(f.title),5),e.createElementVNode("div",re,e.toDisplayString(f.updatedAt),1)],8,ie),e.createElementVNode("div",{class:"card-actions",onClick:c[0]||(c[0]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(V,{size:"small",onClick:k=>B(f)},{default:e.withCtx(()=>[...c[3]||(c[3]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"]),e.createVNode(V,{size:"small",onClick:k=>w(f)},{default:e.withCtx(()=>[...c[4]||(c[4]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"]),e.createVNode(V,{size:"small",type:"danger",onClick:k=>F(f)},{default:e.withCtx(()=>[...c[5]||(c[5]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])])]),_:2},1032,["style","body-style"]))),128))],4)):t.value==="add"?(e.openBlock(),e.createElementBlock("div",de,[e.createVNode(A,{mode:"add",onSave:q,onCancel:o})])):t.value==="edit"?(e.openBlock(),e.createElementBlock("div",se,[e.createVNode(A,{mode:"edit",model:n.value,onSave:R,onCancel:o},null,8,["model"])])):t.value==="detail"?(e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(le,{item:n.value,onEdit:c[1]||(c[1]=f=>B(n.value))},null,8,["item"])])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),me=x._export_sfc(pe,[["__scopeId","data-v-bac869af"]]);exports.COMMON=D;exports.DATA=M;exports.DEFAULT=$;exports.OPTIONS=I;exports.PARAMS=z;exports.SOURCE=P;exports.default=me;
|
|
1
|
+
"use strict";var X=Object.defineProperty,Y=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var S=(r,d,t)=>d in r?X(r,d,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[d]=t,g=(r,d)=>{for(var t in d||(d={}))J.call(d,t)&&S(r,t,d[t]);if(E)for(var t of E(d))K.call(d,t)&&S(r,t,d[t]);return r},O=(r,d)=>Y(r,H(d));var C=(r,d,t)=>new Promise((u,n)=>{var m=s=>{try{l(t.next(s))}catch(i){n(i)}},o=s=>{try{l(t.throw(s))}catch(i){n(i)}},l=s=>s.done?u(s.value):Promise.resolve(s.value).then(m,o);l((t=t.apply(r,d)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/card/style/css");require("element-plus/es/components/skeleton/style/css");require("element-plus/es/components/button/style/css");const e=require("vue"),Q=require("./BaseComponent-BmhMoM4H.cjs"),x=require("./index-77aUdspY.cjs");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");const h=require("element-plus"),T=require("./ele-arrayCard-icon-QOabvV0y.cjs"),W={class:"page"},Z={class:"actions"},ee=e.defineComponent({__name:"MyValueFormPage",props:{mode:{type:String,default:"add"},model:{type:Object,default:null}},emits:["save","cancel"],setup(r,{emit:d}){const t=r,u=d,n=e.reactive({title:"",desc:""});e.watch(()=>t.model,o=>{var l,s;n.title=(l=o==null?void 0:o.title)!=null?l:"",n.desc=(s=o==null?void 0:o.desc)!=null?s:""},{immediate:!0});const m=()=>{var o,l,s;u("save",{title:((o=n.title)==null?void 0:o.toString().trim())||"未命名",desc:(s=(l=n.desc)==null?void 0:l.toString())!=null?s:""})};return(o,l)=>{const s=p.ElInput,i=p.ElFormItem,y=p.ElForm,_=p.ElButton;return e.openBlock(),e.createElementBlock("div",W,[e.createVNode(y,{"label-position":"top",model:n,class:"form"},{default:e.withCtx(()=>[e.createVNode(i,{label:"标题"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.title,"onUpdate:modelValue":l[0]||(l[0]=v=>n.title=v),placeholder:"请输入标题"},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.desc,"onUpdate:modelValue":l[1]||(l[1]=v=>n.desc=v),type:"textarea",rows:3,placeholder:"请输入描述"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),e.createElementVNode("div",Z,[e.createVNode(_,{onClick:l[2]||(l[2]=v=>o.$emit("cancel"))},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(_,{type:"primary",onClick:m},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createTextVNode("保存",-1)])]),_:1})])])}}}),A=x._export_sfc(ee,[["__scopeId","data-v-583abcf7"]]),te={class:"page"},oe={class:"actions"},ae=e.defineComponent({__name:"MyValueDetailPage",props:{item:{type:Object,default:null}},emits:["edit"],setup(r){return(d,t)=>{const u=p.ElDescriptionsItem,n=p.ElDescriptions,m=p.ElButton;return e.openBlock(),e.createElementBlock("div",te,[e.createVNode(n,{column:1,border:""},{default:e.withCtx(()=>[e.createVNode(u,{label:"标题"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString(((o=r.item)==null?void 0:o.title)||"-"),1)]}),_:1}),e.createVNode(u,{label:"描述"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString(((o=r.item)==null?void 0:o.desc)||"-"),1)]}),_:1}),e.createVNode(u,{label:"更新时间"},{default:e.withCtx(()=>{var o;return[e.createTextVNode(e.toDisplayString(((o=r.item)==null?void 0:o.updatedAt)||"-"),1)]}),_:1})]),_:1}),e.createElementVNode("div",oe,[e.createVNode(m,{type:"primary",onClick:t[0]||(t[0]=o=>d.$emit("edit",r.item))},{default:e.withCtx(()=>[...t[1]||(t[1]=[e.createTextVNode("编辑",-1)])]),_:1})])])}}}),le=x._export_sfc(ae,[["__scopeId","data-v-d6e7f1ea"]]),ne={key:0,class:"list-toolbar"},ie=["onClick"],re={class:"item-sub"},de={key:2,class:"page-wrap"},se={key:3,class:"page-wrap"},ce={key:4,class:"page-wrap"},$={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"列表",NAME_EN:"My Value List",ORDER:2,PLATFORM:["pc","screen","mobile"]},I={bgColor:"#ffffff",radiusSize:8,borderColor:"#ebeef5",showBorder:!0,textColor:"#606266",valueColor:"#303133",itemTitleSize:13,itemValueSize:13,itemHeight:36,cardBgColor:"#ffffff",cardRadius:8,cardPaddingX:12,cardPaddingY:8,cardGap:10,showCardBorder:!0,cardBorderColor:"#f0f0f0"},M=[{title:"Item 1",fv:"",object_id:"",value:"--"},{title:"Item 2",fv:"",object_id:"",value:"--"},{title:"Item 3",fv:"",object_id:"",value:"--"},{title:"Item 4",fv:"",object_id:"",value:"--"}],z=["title","fv","object_id"],P=["mosaic"],D={source:"mosaic",multiObject:!1,hideMultiObject:!0},ue={DEFAULT:$,OPTIONS:I,DATA:M,PARAMS:z,SOURCE:P,COMMON:D},pe=e.defineComponent(O(g({},ue),{__name:"myValueList",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(r){const d=r,t=e.ref("list"),u=e.ref([]),n=e.ref(null),m=e.ref(!1),o=()=>{t.value="list",n.value=null};class l extends Q.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#ffffff"),radiusSize:this.getOptionValue("radiusSize",8),borderColor:this.getOptionValue("borderColor","#ebeef5"),showBorder:this.getOptionValue("showBorder",!0),textColor:this.getOptionValue("textColor","#606266"),valueColor:this.getOptionValue("valueColor","#303133"),itemTitleSize:this.getOptionValue("itemTitleSize",13),itemValueSize:this.getOptionValue("itemValueSize",13),itemHeight:this.getOptionValue("itemHeight",36),cardBgColor:this.getOptionValue("cardBgColor","#ffffff"),cardRadius:this.getOptionValue("cardRadius",8),cardPaddingX:this.getOptionValue("cardPaddingX",12),cardPaddingY:this.getOptionValue("cardPaddingY",8),cardGap:this.getOptionValue("cardGap",10),showCardBorder:this.getOptionValue("showCardBorder",!0),cardBorderColor:this.getOptionValue("cardBorderColor","#f0f0f0"),navChannel:this.getOptionValue("navChannel","myValueApp")}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),(!Array.isArray(this.props.conf.data)||this.props.conf.data.length===0)&&(this.props.conf.data=[{title:"Item 1",fv:"",object_id:"",value:"--"},{title:"Item 2",fv:"",object_id:"",value:"--"},{title:"Item 3",fv:"",object_id:"",value:"--"},{title:"Item 4",fv:"",object_id:"",value:"--"}])}}const s=new l(d,"myValueList");s.setupLifecycle();const i=s.getStyle(),y=()=>{var a;return((a=i.value)==null?void 0:a.navChannel)||"myValueApp"},_=()=>{const a=t.value,c=a==="list"?"列表":a==="add"?"新增":a==="edit"?"编辑":"详情";window.dispatchEvent(new CustomEvent("mix-myvalue-nav:update",{detail:{channel:y(),title:c,showBack:a!=="list"}}))},v=a=>{((a==null?void 0:a.detail)||{}).channel===y()&&t.value!=="list"&&o()};e.watch(t,()=>_()),e.onMounted(()=>{window.addEventListener("mix-myvalue-nav:back",v),_()}),e.onBeforeUnmount(()=>{window.removeEventListener("mix-myvalue-nav:back",v)});const L=()=>[{id:"1",title:"示例项 1",desc:"这是详情描述 1",updatedAt:"2026-04-08 10:00"},{id:"2",title:"示例项 2",desc:"这是详情描述 2",updatedAt:"2026-04-08 10:05"},{id:"3",title:"示例项 3",desc:"这是详情描述 3",updatedAt:"2026-04-08 10:10"}],N=()=>C(null,null,function*(){m.value=!0,yield new Promise(a=>setTimeout(a,300)),u.value=L(),m.value=!1});e.onMounted(()=>{N()});const b=()=>C(null,null,function*(){yield N()}),j=()=>{t.value="add"},w=a=>{n.value=g({},a),t.value="detail"},B=a=>{n.value=g({},a),t.value="edit"},q=a=>C(null,null,function*(){h.ElMessage.success("新增成功"),o(),yield b()}),R=a=>C(null,null,function*(){h.ElMessage.success("保存成功"),o(),yield b()}),F=a=>C(null,null,function*(){try{yield h.ElMessageBox.confirm(`确认删除「${a.title}」吗?`,"二次确认",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"})}catch(c){return}h.ElMessage.success("删除成功"),yield b()});return(a,c)=>{const V=p.ElButton,U=p.ElSkeleton,G=p.ElCard;return e.openBlock(),e.createElementBlock("div",{class:"list-container",style:e.normalizeStyle({background:e.unref(i).bgColor,borderRadius:`${e.unref(i).radiusSize}px`,border:e.unref(i).showBorder?`1px solid ${e.unref(i).borderColor}`:"none"})},[t.value==="list"?(e.openBlock(),e.createElementBlock("div",ne,[e.createVNode(V,{type:"primary",size:"small",onClick:j},{default:e.withCtx(()=>[...c[2]||(c[2]=[e.createTextVNode(" 新增 ",-1)])]),_:1})])):e.createCommentVNode("",!0),t.value==="list"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"list-body",style:e.normalizeStyle({gap:`${e.unref(i).cardGap}px`})},[m.value?(e.openBlock(),e.createBlock(U,{key:0,rows:4,animated:""})):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(u.value,f=>(e.openBlock(),e.createBlock(G,{key:f.id,class:"list-card",shadow:"never",style:e.normalizeStyle({background:e.unref(i).cardBgColor,borderRadius:`${e.unref(i).cardRadius}px`,border:e.unref(i).showCardBorder?`1px solid ${e.unref(i).cardBorderColor}`:"none"}),"body-style":{padding:`${e.unref(i).cardPaddingY}px ${e.unref(i).cardPaddingX}px`}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"card-content",onClick:k=>w(f)},[e.createElementVNode("div",{class:"item-title",style:e.normalizeStyle({color:e.unref(i).textColor,fontSize:`${e.unref(i).itemTitleSize}px`})},e.toDisplayString(f.title),5),e.createElementVNode("div",re,e.toDisplayString(f.updatedAt),1)],8,ie),e.createElementVNode("div",{class:"card-actions",onClick:c[0]||(c[0]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(V,{size:"small",onClick:k=>B(f)},{default:e.withCtx(()=>[...c[3]||(c[3]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"]),e.createVNode(V,{size:"small",onClick:k=>w(f)},{default:e.withCtx(()=>[...c[4]||(c[4]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"]),e.createVNode(V,{size:"small",type:"danger",onClick:k=>F(f)},{default:e.withCtx(()=>[...c[5]||(c[5]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])])]),_:2},1032,["style","body-style"]))),128))],4)):t.value==="add"?(e.openBlock(),e.createElementBlock("div",de,[e.createVNode(A,{mode:"add",onSave:q,onCancel:o})])):t.value==="edit"?(e.openBlock(),e.createElementBlock("div",se,[e.createVNode(A,{mode:"edit",model:n.value,onSave:R,onCancel:o},null,8,["model"])])):t.value==="detail"?(e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(le,{item:n.value,onEdit:c[1]||(c[1]=f=>B(n.value))},null,8,["item"])])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),me=x._export_sfc(pe,[["__scopeId","data-v-bac869af"]]);exports.COMMON=D;exports.DATA=M;exports.DEFAULT=$;exports.OPTIONS=I;exports.PARAMS=z;exports.SOURCE=P;exports.default=me;
|
|
@@ -32,8 +32,8 @@ import "element-plus/es/components/card/style/css";
|
|
|
32
32
|
import "element-plus/es/components/skeleton/style/css";
|
|
33
33
|
import "element-plus/es/components/button/style/css";
|
|
34
34
|
import { defineComponent as z, reactive as ue, watch as X, openBlock as m, createElementBlock as g, createVNode as r, withCtx as u, createElementVNode as h, createTextVNode as v, toDisplayString as w, ref as B, onMounted as R, onBeforeUnmount as pe, normalizeStyle as E, unref as p, createCommentVNode as F, createBlock as U, Fragment as me, renderList as fe, withModifiers as ve, renderSlot as _e } from "vue";
|
|
35
|
-
import { B as ge } from "./BaseComponent-
|
|
36
|
-
import { _ as M } from "./index-
|
|
35
|
+
import { B as ge } from "./BaseComponent-CQaDWNO0.js";
|
|
36
|
+
import { _ as M } from "./index-BZpYmpDy.js";
|
|
37
37
|
import "element-plus/es/components/form/style/css";
|
|
38
38
|
import "element-plus/es/components/form-item/style/css";
|
|
39
39
|
import "element-plus/es/components/input/style/css";
|