mixdashboards 1.1.13 → 1.1.15
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/{AgGridTable-Bi7O66-r.cjs → AgGridTable-B0ARi6iQ.cjs} +39 -39
- package/dist/{AgGridTable-BjGMC3qC.js → AgGridTable-CiUB86Yi.js} +34 -35
- package/dist/{BaseComponent-B38Blgw3.js → BaseComponent-7Sa7XOg-.js} +3 -3
- package/dist/{BaseComponent-9njJjeix.cjs → BaseComponent-BabOc6Kc.cjs} +1 -1
- package/dist/{EChartComponentBase-DJScukmS.js → EChartComponentBase-DCKFGbqb.js} +2 -2
- package/dist/{EChartComponentBase-BwbycwwW.cjs → EChartComponentBase-DM6aSCAR.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-BxzP1xYW.cjs → EmergencyPlanPanel-B95hRGD5.cjs} +1 -1
- package/dist/{EmergencyPlanPanel-D3GF-xQQ.js → EmergencyPlanPanel-BJ1w9aHu.js} +1 -1
- package/dist/{HistoryPlanDialog-DpaiRZgi.js → HistoryPlanDialog-0jjitoAV.js} +1 -1
- package/dist/{HistoryPlanDialog-DQXCUsy4.cjs → HistoryPlanDialog-DjIJTjzR.cjs} +1 -1
- package/dist/{MixiotAppDetailPage-BGfF3qrm.js → MixiotAppDetailPage-DcAZ_rZN.js} +1 -1
- package/dist/{MixiotAppDetailPage-CL1Sd9HJ.cjs → MixiotAppDetailPage-JpvZKz0u.cjs} +1 -1
- package/dist/{MonitoringMap-Wzsw3hVH.cjs → MonitoringMap-BFTZh1EC.cjs} +1 -1
- package/dist/{MonitoringMap-DQkO116Z.js → MonitoringMap-D6HBxlBf.js} +2 -2
- package/dist/{UniverSheet-Bne7JZyr.cjs → UniverSheet-0biXXXxr.cjs} +1 -1
- package/dist/{UniverSheet-Cd2a9LPx.js → UniverSheet-B4uisgP1.js} +2 -2
- package/dist/{accelerationChart-BJhVC_l5.cjs → accelerationChart-BDRSdpFi.cjs} +1 -1
- package/dist/{accelerationChart-BUsbSkwA.js → accelerationChart-Bw7lk5Ds.js} +19 -19
- package/dist/{actionItem-B3B4MFcW.js → actionItem-CvYP-t6r.js} +2 -2
- package/dist/{actionItem-DxB7IvtW.cjs → actionItem-DThWcN9C.cjs} +1 -1
- package/dist/{alarmLevelChart-DC-q2AgI.js → alarmLevelChart-687B7l09.js} +2 -2
- package/dist/{alarmLevelChart-DC_hx4Pn.cjs → alarmLevelChart-tIuQCLIZ.cjs} +1 -1
- package/dist/{alertTable-CHfA0TR-.cjs → alertTable-DRMDbKnY.cjs} +1 -1
- package/dist/{alertTable-CGRDnNPw.js → alertTable-VF9l7Yae.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-DGoLPE4i.cjs → aliasObjectSelectorDemo-CM81kBda.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-DuGQCEcG.js → aliasObjectSelectorDemo-W1sOe5E-.js} +7 -7
- package/dist/{annualRainfallChart-CLxVqN5Z.cjs → annualRainfallChart-CqR6pOpX.cjs} +1 -1
- package/dist/{annualRainfallChart-Dr8KKYOG.js → annualRainfallChart-NcsPJb-C.js} +2 -2
- package/dist/{aqi-rBhSWA_m.js → aqi-3Gq00rd7.js} +2 -2
- package/dist/{aqi-BmYGSf2e.cjs → aqi-CZ_4TrPd.cjs} +1 -1
- package/dist/{aqiIndass-DqJBc799.js → aqiIndass-BZ7HrCcK.js} +16 -16
- package/dist/{aqiIndass-Cpqau5M0.cjs → aqiIndass-C1bAEiH_.cjs} +1 -1
- package/dist/{areaDeformCurve-DpHWg6pf.js → areaDeformCurve-DQ3jFm7O.js} +2 -2
- package/dist/{areaDeformCurve-B924KVWX.cjs → areaDeformCurve-DgQjsOl5.cjs} +1 -1
- package/dist/{arrayCard-Bzjg3HKN.cjs → arrayCard-BVII-4mg.cjs} +1 -1
- package/dist/{arrayCard-C7anoYI-.js → arrayCard-BvkmBFMi.js} +2 -2
- package/dist/{audio-DTiS2piX.js → audio-86V-n6Mh.js} +2 -2
- package/dist/{audio-aADcgdZP.cjs → audio-DAVcGaCv.cjs} +1 -1
- package/dist/{bar-D32xICYZ.js → bar-D0uX_Pwu.js} +2 -2
- package/dist/{bar-DqY55XnC.cjs → bar-DdCjm6M9.cjs} +1 -1
- package/dist/{basicShapeToolbox-D8q86CzB.js → basicShapeToolbox-cjpSxBSI.js} +12 -12
- package/dist/{basicShapeToolbox-BvJjH4fV.cjs → basicShapeToolbox-vlF8ai0y.cjs} +1 -1
- package/dist/{bmp-DIFGLoNl.cjs → bmp-DmCehXiK.cjs} +1 -1
- package/dist/{bmp-DU3vm7yj.js → bmp-L5PC6_bj.js} +2 -2
- package/dist/{box-DTQKGR9g.js → box-BBDYqZhV.js} +16 -16
- package/dist/{box-C8pOZXek.cjs → box-DCe5iz-w.cjs} +1 -1
- package/dist/{chartConfigPanel-D4vk7zWs.cjs → chartConfigPanel-BDGfFdm5.cjs} +1 -1
- package/dist/{chartConfigPanel-Bz82sVyH.js → chartConfigPanel-BG38-Lo9.js} +1 -1
- package/dist/{circleBar-B48h_-uK.cjs → circleBar-BBrdfpn6.cjs} +1 -1
- package/dist/{circleBar-ClO05bgq.js → circleBar-CnStKTJz.js} +2 -2
- package/dist/{clock-D8ZXhy53.js → clock-CfoMLhjJ.js} +2 -2
- package/dist/{clock-DB94wQje.cjs → clock-D4FqM5tD.cjs} +1 -1
- package/dist/{clt-cxeCTOaA.cjs → clt-DrF15d3K.cjs} +1 -1
- package/dist/{clt-BX0SNGZr.js → clt-mVBTHfPs.js} +2 -2
- package/dist/{cmc-BvnYrQrR.cjs → cmc-BEKqMpSQ.cjs} +1 -1
- package/dist/{cmc-Co13D559.js → cmc-kC4VJ8V0.js} +17 -17
- package/dist/{cmp-Dd56EQ09.cjs → cmp-BBKmso3S.cjs} +1 -1
- package/dist/{cmp-B4cYCR4p.js → cmp-CEeDDeHU.js} +2 -2
- package/dist/{conclusionCard-Bla25-qd.js → conclusionCard-Drlv8OIb.js} +2 -2
- package/dist/{conclusionCard-Cd3DoD1l.cjs → conclusionCard-glbRT95d.cjs} +1 -1
- package/dist/{controlList-Dx4wSpA7.js → controlList-2sHPYEnd.js} +3 -3
- package/dist/{controlList-CyT_LYgr.cjs → controlList-V6TbbBW2.cjs} +1 -1
- package/dist/{controlRecordList-DsxYHRrs.cjs → controlRecordList-CqMshyV4.cjs} +1 -1
- package/dist/{controlRecordList-BAI_15ZN.js → controlRecordList-kZuqwCCC.js} +3 -3
- package/dist/{controlRecordListAPP-Zfiwcrmq.cjs → controlRecordListAPP-BevyiiWD.cjs} +1 -1
- package/dist/{controlRecordListAPP-BQlABx3f.js → controlRecordListAPP-rsphOVsE.js} +2 -2
- package/dist/{crd-IsqkYOAy.js → crd-1Q8p4BGc.js} +56 -57
- package/dist/crd-z0xGDAjD.cjs +1 -0
- package/dist/{ctrBtn-LwuY-nVR.js → ctrBtn-CDT6KYFl.js} +12 -12
- package/dist/{ctrBtn-C3OqkyNS.cjs → ctrBtn-DNMQrtKl.cjs} +1 -1
- package/dist/{ctrSet-B0nYCdwh.cjs → ctrSet-B8m_Qs1d.cjs} +1 -1
- package/dist/{ctrSet-Qb5XEdD4.js → ctrSet-DF2TcM9X.js} +13 -13
- package/dist/{ctrSwitch-B3jo3Gx0.js → ctrSwitch-_QtKcaSt.js} +3 -3
- package/dist/{ctrSwitch-Bps4Ak15.cjs → ctrSwitch-eUtgP6uT.cjs} +1 -1
- package/dist/{dataManagement-BFxVtU33.cjs → dataManagement-D1uUQ_Ex.cjs} +1 -1
- package/dist/{dataManagement-CVHalRKp.js → dataManagement-xM0ruay1.js} +2 -2
- package/dist/{dataReport-Bk79cBkV.cjs → dataReport-DbQ_m74F.cjs} +1 -1
- package/dist/{dataReport-B2AiDMdM.js → dataReport-XrPAwXcb.js} +2 -2
- package/dist/{dataTable-D9sSJRQn.js → dataTable-BIy_sh-b.js} +1 -1
- package/dist/{dataTable-Dh7s14jM.cjs → dataTable-G_Elyj_e.cjs} +1 -1
- package/dist/{datetime-C25d1bAc.cjs → datetime-CLJrKpiX.cjs} +1 -1
- package/dist/{datetime-CEKzNAlD.js → datetime-Dyw8-i5g.js} +2 -2
- package/dist/{deepClusterSlipSurface-DODVh-Qw.js → deepClusterSlipSurface-CcoFFz6r.js} +26 -26
- package/dist/{deepClusterSlipSurface-BLZL2xX6.cjs → deepClusterSlipSurface-Cthw-rk5.cjs} +1 -1
- package/dist/{deepDataMatrix-D_NPV2sQ.cjs → deepDataMatrix-C8yzdPMG.cjs} +1 -1
- package/dist/{deepDataMatrix-9iClruS0.js → deepDataMatrix-Dy-9hAeO.js} +16 -16
- package/dist/{deepDisplacement3D-C6puNK1m.cjs → deepDisplacement3D-B3jtZ9_l.cjs} +1 -1
- package/dist/{deepDisplacement3D-C5YMqHiD.js → deepDisplacement3D-BqAQle8x.js} +2 -2
- package/dist/{deepDisplacementChart-DhQO428W.cjs → deepDisplacementChart-BT5FC0DX.cjs} +1 -1
- package/dist/{deepDisplacementChart-9sQF6tFO.js → deepDisplacementChart-BdEWrVgi.js} +20 -20
- package/dist/{deepDisplacementChart-DEn2yqGO.js → deepDisplacementChart-C1jrx9vY.js} +25 -25
- package/dist/{deepDisplacementChart-D-dqPlzq.cjs → deepDisplacementChart-DL5yJXj2.cjs} +1 -1
- package/dist/{deepDisplacementView-tzX-vzxO.cjs → deepDisplacementView-B722va1V.cjs} +1 -1
- package/dist/{deepDisplacementView-Cux6lFtG.js → deepDisplacementView-DLOv9gJ6.js} +1 -1
- package/dist/{deepNodeTemperatureChart--GH8-4O7.js → deepNodeTemperatureChart-D5ZY6ywC.js} +27 -27
- package/dist/{deepNodeTemperatureChart-Cyfnw2BR.cjs → deepNodeTemperatureChart-Dj3Xm6SY.cjs} +1 -1
- package/dist/{deepTangentAngleChart-DPMDFXiA.cjs → deepTangentAngleChart-9HyIvRNJ.cjs} +1 -1
- package/dist/{deepTangentAngleChart-Dae_3j30.js → deepTangentAngleChart-DVDa5Zxc.js} +26 -26
- package/dist/{deepTemperatureField-Cr2e_Ytp.js → deepTemperatureField-BO4TyQ_g.js} +3 -3
- package/dist/{deepTemperatureField-B3Eu4zqv.cjs → deepTemperatureField-cbehgtiQ.cjs} +1 -1
- package/dist/{deepTrendChart-8fniZ16K.js → deepTrendChart-BRdRCV_a.js} +14 -14
- package/dist/{deepTrendChart-BPYqojQ2.cjs → deepTrendChart-D9yoOBuy.cjs} +1 -1
- package/dist/{deviceOnlineStatus-mJ0KVMo4.cjs → deviceOnlineStatus-43VQlj7e.cjs} +1 -1
- package/dist/{deviceOnlineStatus-DP7-u5lC.js → deviceOnlineStatus-BAas3BvQ.js} +2 -2
- package/dist/{deviceStatus-Ih0jQNYO.js → deviceStatus-2Jyg0ILJ.js} +10 -10
- package/dist/{deviceStatus-B0AxN-cY.cjs → deviceStatus-CcrMdiqm.cjs} +1 -1
- package/dist/{displacementDataTable-BbZjdMtX.js → displacementDataTable-Cuy2--YT.js} +12 -12
- package/dist/{displacementDataTable-Dkka_jGJ.cjs → displacementDataTable-VumJPDi3.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-DDwm-jr2.cjs → displacementTrajectoryChart-knwhmSBU.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-BZDSkYoZ.js → displacementTrajectoryChart-qLo3xtpZ.js} +23 -23
- package/dist/{displacementTrendChart-DZZaVi86.js → displacementTrendChart-D2Ronskq.js} +34 -34
- package/dist/{displacementTrendChart-CUeVa58Q.cjs → displacementTrendChart-DbAH_mjd.cjs} +1 -1
- package/dist/{dxf-BOfmTSO8.cjs → dxf-BAH7igHZ.cjs} +1 -1
- package/dist/{dxf-DYC74yWV.js → dxf-BSXyBPzC.js} +2 -2
- package/dist/{dzc-DUFiz7a_.cjs → dzc-D105FzEq.cjs} +1 -1
- package/dist/{dzc-BU7yYW4I.js → dzc-DvtA7L0o.js} +2 -2
- package/dist/{emergencyPlan-DDb6j7YU.cjs → emergencyPlan-CAs6Mk1Y.cjs} +1 -1
- package/dist/{emergencyPlan-DabL46QK.js → emergencyPlan-CFmxsb7R.js} +3 -3
- package/dist/{evn-DrreVqnm.cjs → evn-D-e0vp61.cjs} +1 -1
- package/dist/{evn-DhdColcF.js → evn-DtTKI8zs.js} +2 -2
- package/dist/{evolutionChart-QuGAgjXo.cjs → evolutionChart-6EMuwRiR.cjs} +1 -1
- package/dist/{evolutionChart-aedDj0mQ.js → evolutionChart-uRWhCC8C.js} +3 -3
- package/dist/{fileViewer-CvNnUxUK.cjs → fileViewer-CPG-66F1.cjs} +1 -1
- package/dist/{fileViewer-oBpWIjGb.js → fileViewer-Cxo-Sbha.js} +2 -2
- package/dist/{filterBar-CwHODFoy.cjs → filterBar-CI0jzG-8.cjs} +1 -1
- package/dist/{filterBar-DYpEssxC.js → filterBar-DchvCgB0.js} +2 -2
- package/dist/{fireCombustionCurve-wbKsWk4E.js → fireCombustionCurve-fvldUBQh.js} +3 -3
- package/dist/{fireCombustionCurve-lu2qH6_b.cjs → fireCombustionCurve-qOiCa6aW.cjs} +1 -1
- package/dist/{fireFilterBar-B8su74tt.cjs → fireFilterBar-B8J3V0n-.cjs} +1 -1
- package/dist/{fireFilterBar-9_fqGo2q.js → fireFilterBar-D7mx1XUg.js} +2 -2
- package/dist/{fireHistoryTable-C1C95uYN.js → fireHistoryTable-CP0kgqS6.js} +2 -2
- package/dist/{fireHistoryTable-pOJz1_Rp.cjs → fireHistoryTable-r_xPEo29.cjs} +1 -1
- package/dist/{gag-LSkHPD7f.cjs → gag-BhUKp8vX.cjs} +1 -1
- package/dist/{gag-BGUeQKJJ.js → gag-n3ajZOT8.js} +2 -2
- package/dist/{gasStationList-4TtBLsqC.js → gasStationList-CRZGXdZ-.js} +3 -3
- package/dist/{gasStationList-DJTrXjkv.cjs → gasStationList-DX9Q2lFd.cjs} +1 -1
- package/dist/{geo3dViewer-CK89hYK7.cjs → geo3dViewer-CfPFjRsL.cjs} +1 -1
- package/dist/{geo3dViewer-DIjv75YP.js → geo3dViewer-DFD75mZU.js} +3 -3
- package/dist/{glbModel-BDgY9S4f.cjs → glbModel-BrwlvZq6.cjs} +1 -1
- package/dist/{glbModel-IOIVpCjq.js → glbModel-x4OZxfPi.js} +2 -2
- package/dist/{globalObjectSelector-B2dkzNyk.js → globalObjectSelector-Bx2SbcG0.js} +1 -1
- package/dist/{globalObjectSelector-N7s0yyOp.cjs → globalObjectSelector-PiWbhkZ4.cjs} +1 -1
- package/dist/{gnssFilterBar-BF_tbN4_.js → gnssFilterBar-8ie4Hrtf.js} +2 -2
- package/dist/{gnssFilterBar-8eSkGWMH.cjs → gnssFilterBar-BY7YScHH.cjs} +1 -1
- package/dist/{gnssHistoryTable-DUjRjXoS.js → gnssHistoryTable-DH3MNQRj.js} +2 -2
- package/dist/{gnssHistoryTable-X_cgOa6r.cjs → gnssHistoryTable-lvtSQu6T.cjs} +1 -1
- package/dist/{gnssMapView-DnF2bYAD.cjs → gnssMapView-BalPUoGu.cjs} +2 -2
- package/dist/{gnssMapView-BnwPDey9.js → gnssMapView-eqR9-FLA.js} +4 -4
- package/dist/{gnssSectionProfile-D0sbRu3A.js → gnssSectionProfile-C2v9LYEI.js} +2 -2
- package/dist/{gnssSectionProfile-DoEXHKTy.cjs → gnssSectionProfile-fXM6wumD.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-Csm6PwRv.cjs → gnssTimeSeriesChart-DK08VGh2.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-glTixABx.js → gnssTimeSeriesChart-DO4m_7q7.js} +2 -2
- package/dist/{gnssXYTrajectory-4c8JDd_b.cjs → gnssXYTrajectory-CDgAcydt.cjs} +1 -1
- package/dist/{gnssXYTrajectory-BMCO0sb0.js → gnssXYTrajectory-Jdb53wOw.js} +2 -2
- package/dist/{grd-D1enzYOI.cjs → grd-BcVJB4b5.cjs} +1 -1
- package/dist/{grd-BTGTCp0z.js → grd-Bf5VZY3M.js} +19 -19
- package/dist/{grdIndass-B6fwa_k8.cjs → grdIndass-CTaKBOun.cjs} +1 -1
- package/dist/{grdIndass-Dn62HL6y.js → grdIndass-DrBidpYt.js} +2 -2
- package/dist/{grg-DMOF8h8j.js → grg-57h3YudF.js} +5 -5
- package/dist/{grg-B5128EcW.cjs → grg-DR1f44AO.cjs} +1 -1
- package/dist/{gridview-Dewc5Eax.js → gridview-BEiHeWnU.js} +2 -2
- package/dist/{gridview-Ddin99YO.cjs → gridview-DUOWjiqv.cjs} +1 -1
- package/dist/{groundwaterFilterBar-mukvYHDm.js → groundwaterFilterBar-Djh4tnLM.js} +2 -2
- package/dist/{groundwaterFilterBar-2uj_Hf_Q.cjs → groundwaterFilterBar-WfAm45Iv.cjs} +1 -1
- package/dist/{groundwaterProfileChart-DDVsfzyr.cjs → groundwaterProfileChart-B9NrkncY.cjs} +2 -2
- package/dist/{groundwaterProfileChart-BPTP8WBi.js → groundwaterProfileChart-Dvme4PHf.js} +3 -3
- package/dist/{groundwaterTimeCurve-jtQFr0hU.js → groundwaterTimeCurve-DLhsSDRO.js} +3 -3
- package/dist/{groundwaterTimeCurve-Zzn-sEsW.cjs → groundwaterTimeCurve-pLt2KuEY.cjs} +1 -1
- package/dist/{groupCard-DWjFdiH0.cjs → groupCard-DK5_osdM.cjs} +1 -1
- package/dist/{groupCard-B3fp05QD.js → groupCard-QV7NnbBa.js} +2 -2
- package/dist/{headerBar-BkpSQMNy.js → headerBar-CBTHBko2.js} +2 -2
- package/dist/{headerBar-B6lX3WST.cjs → headerBar-DcMgFL7n.cjs} +1 -1
- package/dist/{history-DqPjJP_E.cjs → history-BKLujk4W.cjs} +1 -1
- package/dist/{history-DgSlSTUD.js → history-BvM7EXsN.js} +11 -11
- package/dist/{index-Bo49zvKb.cjs → index-Cm7hGuPj.cjs} +13 -13
- package/dist/{index-BbXEpgom.js → index-DUL649KZ.js} +3422 -3379
- package/dist/{insarDeformChart-8UyVWXTx.cjs → insarDeformChart-D13o5hNr.cjs} +1 -1
- package/dist/{insarDeformChart-DNBHbVuk.js → insarDeformChart-DPq39rTv.js} +2 -2
- package/dist/{insarImageViewer-BeykgIJy.js → insarImageViewer-BLYbI4bm.js} +2 -2
- package/dist/{insarImageViewer-B8PhDcuG.cjs → insarImageViewer-BoqwF7sg.cjs} +1 -1
- package/dist/{kds-CS473Sia.js → kds-B2xqXmO8.js} +2 -2
- package/dist/{kds-BJwYrjV_.cjs → kds-B8Jdw9vL.cjs} +1 -1
- package/dist/{kpiCard-OMuCQe7O.cjs → kpiCard-BGsf7G30.cjs} +1 -1
- package/dist/{kpiCard-CNgj9P9s.js → kpiCard-DRR1gTcG.js} +2 -2
- package/dist/{landslideMap-NaGM5jJE.cjs → landslideMap-CD2LDzJA.cjs} +1 -1
- package/dist/{landslideMap-DMNcfDYF.js → landslideMap-DDlN9f2H.js} +9 -9
- package/dist/{landslideWarning-V1wB3aWq.cjs → landslideWarning-27SNVapD.cjs} +1 -1
- package/dist/{landslideWarning-DU-dDiiS.js → landslideWarning-r1zdMCih.js} +26 -26
- package/dist/{layerTabs-VfYlv6Ks.cjs → layerTabs-B86d5HH7.cjs} +1 -1
- package/dist/{layerTabs-Bgi7pfof.js → layerTabs-BjHiCU_F.js} +2 -2
- package/dist/{leaflet-src-4AJHN6it.js → leaflet-src-CAGnqnjZ.js} +1 -1
- package/dist/{leaflet-src-WG2ob5HA.cjs → leaflet-src-DYGpvxW6.cjs} +1 -1
- package/dist/{lerc-CEea2nO1.cjs → lerc-5z3DZffX.cjs} +1 -1
- package/dist/{lerc-BDiJ3I_S.js → lerc-Dh5beGkQ.js} +2 -2
- package/dist/{lin-BO1pGlXr.js → lin-DDWiOEA0.js} +6 -6
- package/dist/{lin-B_rN6QBj.cjs → lin-r6oOjphh.cjs} +1 -1
- package/dist/{linIndass-BGpoCQ4j.js → linIndass-CWcaOARi.js} +10 -10
- package/dist/{linIndass-B7XnW5XO.cjs → linIndass-CYCVyf-Z.cjs} +1 -1
- package/dist/{lst-BBl9nn63.js → lst-BKViAE6J.js} +2 -2
- package/dist/{lst-BeB_Gi9l.cjs → lst-Jc5oufSH.cjs} +1 -1
- package/dist/{manualEntry-C3qifAlP.js → manualEntry-CR0vY9l1.js} +2 -2
- package/dist/{manualEntry-BQVUqtm7.cjs → manualEntry-DpKGLaSi.cjs} +1 -1
- package/dist/{mapBackground-CDS60ZJC.js → mapBackground-BmlSVAtG.js} +3 -3
- package/dist/{mapBackground-D3-V7S-d.cjs → mapBackground-Cx8KweQ8.cjs} +1 -1
- package/dist/{mappingList-DnoAuivo.cjs → mappingList-BZz7GqJ4.cjs} +1 -1
- package/dist/{mappingList-B0jG2LlO.js → mappingList-C92OnAaA.js} +3 -3
- package/dist/{markdownViewer-BlXaqjhL.js → markdownViewer-ICTPV_72.js} +2 -2
- package/dist/{markdownViewer-BMkbW1Cl.cjs → markdownViewer-O5ng8kl7.cjs} +1 -1
- package/dist/materialFileUrl-C_Aqly-o.cjs +1 -0
- package/dist/{materialFileUrl-hKqW_JAq.js → materialFileUrl-CfFfqtB7.js} +5 -4
- package/dist/{mix-control-modal-BEXucxt5.js → mix-control-modal-CGLYKUCc.js} +5 -5
- package/dist/{mix-control-modal-aUWGjwZP.cjs → mix-control-modal-oxp6LmrP.cjs} +1 -1
- package/dist/{mixGrid-B5pKpGT3.cjs → mixGrid-DO73I4-D.cjs} +1 -1
- package/dist/{mixGrid-DQf7U1_8.js → mixGrid-DnxCOTqm.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-CJgiIk0q.cjs → mjpegCamera-DSMbdhJe.cjs} +1 -1
- package/dist/{mjpegCamera-C6pxWuEr.js → mjpegCamera-Dj5Lyrml.js} +2 -2
- package/dist/{monitorAlert-BPd1b_Cx.cjs → monitorAlert-C0e3mU_8.cjs} +1 -1
- package/dist/{monitorAlert-ZNF5siqY.js → monitorAlert-FwFl3Tjd.js} +12 -12
- package/dist/{monitorData-DIxZYNVr.js → monitorData-CnFHs2-k.js} +10 -10
- package/dist/{monitorData-slk6ogNe.cjs → monitorData-ICqlDSYT.cjs} +1 -1
- package/dist/{monitorSpeedChart-BRwbLD8B.cjs → monitorSpeedChart-B_02qTZy.cjs} +1 -1
- package/dist/{monitorSpeedChart-DCO39Aka.js → monitorSpeedChart-XCq3duqZ.js} +1 -1
- package/dist/{mxa-Bp4RH0w3.cjs → mxa-B9Ioifrx.cjs} +1 -1
- package/dist/{mxa-DFq19ply.js → mxa-DkvNrmvM.js} +2 -2
- package/dist/{myValue-g8shJQA9.cjs → myValue-CJZpYcAp.cjs} +1 -1
- package/dist/{myValue-BvItzUMv.js → myValue-aYi3bo7x.js} +2 -2
- package/dist/{myValueList-A_UGyNxN.js → myValueList-BIZ2JfrI.js} +2 -2
- package/dist/{myValueList-DnZBoJXp.cjs → myValueList-CFnHg4pl.cjs} +1 -1
- package/dist/objectList-B_BnqBg1.js +1842 -0
- package/dist/objectList-BgyTh2e7.cjs +1 -0
- package/dist/{objectListAPP-DxRImk8W.cjs → objectListAPP-B7Yk07oG.cjs} +1 -1
- package/dist/{objectListAPP-CdewSo8l.js → objectListAPP-Bq1S1FGu.js} +3 -3
- package/dist/{percentBar-Cq5ACj9c.cjs → percentBar-DmrRQirp.cjs} +1 -1
- package/dist/{percentBar-BvmYW_u6.js → percentBar-L0Ur3boP.js} +2 -2
- package/dist/{photo-t11P9WKh.js → photo-9c2Vrzor.js} +3 -3
- package/dist/{photo-B-kxNdb5.cjs → photo-BzVvbKrh.cjs} +1 -1
- package/dist/{pie-yTahcSl_.js → pie-BVbkpFWj.js} +2 -2
- package/dist/{pie-0s6FwVBt.cjs → pie-CeeMdBgu.cjs} +1 -1
- package/dist/{placeholder-DBmyvwFn.cjs → placeholder-C07ZscJc.cjs} +1 -1
- package/dist/{placeholder-D_CaQ-hg.js → placeholder-CUYSWWf8.js} +1 -1
- package/dist/{pressBtn-CP4kJr-P.js → pressBtn-Ds60I7hM.js} +3 -3
- package/dist/{pressBtn-JFezb7Yx.cjs → pressBtn-sqz6yim1.cjs} +1 -1
- package/dist/{processTable-BXswsnmt.js → processTable-COz7CKEG.js} +2 -2
- package/dist/{processTable-DRdI9ExW.cjs → processTable-CytoNBR2.cjs} +1 -1
- package/dist/{progressBar-Sn6tAxTY.cjs → progressBar-BxHPc2DD.cjs} +1 -1
- package/dist/{progressBar-D1Xh5APg.js → progressBar-CUnuEFaQ.js} +2 -2
- package/dist/{progressCircle-DLk9v_Os.cjs → progressCircle-BUNOFiUO.cjs} +1 -1
- package/dist/{progressCircle-BMpJVwIE.js → progressCircle-DWKJHFm-.js} +2 -2
- package/dist/{qrcode-BDtn3Ql7.cjs → qrcode-DJrUuI_e.cjs} +1 -1
- package/dist/{qrcode-BqlqV7Jf.js → qrcode-elzi9Ev5.js} +2 -2
- package/dist/{raceBar-BpvWNCV7.cjs → raceBar-BWYiOHgT.cjs} +2 -2
- package/dist/{raceBar-zSL-J18j.js → raceBar-C1Js5fWq.js} +156 -136
- package/dist/{rad-DSfVfaMa.cjs → rad-B__LOwb8.cjs} +1 -1
- package/dist/{rad-CZhY-L-z.js → rad-Dau_xw7q.js} +2 -2
- package/dist/{radarMapViewer-B4tTLLyl.js → radarMapViewer-0jrnj6Nm.js} +2 -2
- package/dist/{radarMapViewer-GmzS18dJ.cjs → radarMapViewer-30nLi5D4.cjs} +1 -1
- package/dist/{rainfallFilterBar-ijVmoglb.js → rainfallFilterBar-CnNMm1L4.js} +2 -2
- package/dist/{rainfallFilterBar-DHaVjXt5.cjs → rainfallFilterBar-io0Xy92q.cjs} +1 -1
- package/dist/{rainfallTimeCurve-B3_bl5L6.js → rainfallTimeCurve-CO3kxkO1.js} +3 -3
- package/dist/{rainfallTimeCurve-Crz3Adzh.cjs → rainfallTimeCurve-CsQNzhJI.cjs} +1 -1
- package/dist/{rangeLin-BOEsEaV1.js → rangeLin-C9p4yw-H.js} +8 -8
- package/dist/{rangeLin-DpEbvxsg.cjs → rangeLin-F-eJUSOD.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-C2u4a2JL.js → realtimeEvolutionMap-BSHmiJdM.js} +2 -2
- package/dist/{realtimeEvolutionMap-BwQJkus6.cjs → realtimeEvolutionMap-DbPSlUVo.cjs} +1 -1
- package/dist/{regionBar-P1fqv7Vb.cjs → regionBar-BqpQ17-j.cjs} +1 -1
- package/dist/{regionBar-BQr-kq-M.js → regionBar-DcIaWt42.js} +2 -2
- package/dist/{request-D9N74QdZ.cjs → request-BNiCZV7_.cjs} +1 -1
- package/dist/{request-Bn2gQLgM.js → request-CEUCACCR.js} +5 -5
- package/dist/{retainer1-Fnw0-Jvy.js → retainer1-BYe-4QPq.js} +3 -3
- package/dist/{retainer1-BCh8WSOq.cjs → retainer1-CtwKT7UP.cjs} +1 -1
- package/dist/{retainer2-nPyFv6Hs.js → retainer2-C8M7swsz.js} +3 -3
- package/dist/{retainer2-_3NOOefF.cjs → retainer2-CQf-EzAl.cjs} +1 -1
- package/dist/{retainerRecordList-C_UsUKsQ.js → retainerRecordList-B-xwovFD.js} +3 -3
- package/dist/{retainerRecordList-BaOTTQQN.cjs → retainerRecordList-DyRQQ0N-.cjs} +1 -1
- package/dist/{retainerRecordListAPP-BgKyfAMh.js → retainerRecordListAPP-CMNYP6hk.js} +3 -3
- package/dist/{retainerRecordListAPP-CE3l6WrB.cjs → retainerRecordListAPP-UPROwhvr.cjs} +1 -1
- package/dist/{ringTopN-Dz0EoM-A.js → ringTopN-FlVjUrQT.js} +2 -2
- package/dist/{ringTopN-DEv30Ms2.cjs → ringTopN-tPWwyl2Y.cjs} +1 -1
- package/dist/{riskRegionTable-BODT2UTF.cjs → riskRegionTable-BbJAvy7W.cjs} +1 -1
- package/dist/{riskRegionTable-Dot8zD_6.js → riskRegionTable-BjZoKdPt.js} +2 -2
- package/dist/{sankey-CYTyQB-L.cjs → sankey-CbPDXthr.cjs} +1 -1
- package/dist/{sankey-CbEUEE5B.js → sankey-Df3nSWC_.js} +7 -7
- package/dist/{scd-Btsiastw.js → scd-B9eeXnYU.js} +344 -348
- package/dist/scd-Ds6_WZDt.cjs +1 -0
- package/dist/{sideMenu-BxJRAAdM.js → sideMenu-BZ8iCENQ.js} +2 -2
- package/dist/{sideMenu-dnpq3qTF.cjs → sideMenu-CCohX7e6.cjs} +1 -1
- package/dist/{slopeStability-DX7WP5ZW.cjs → slopeStability-CO2BLtaT.cjs} +1 -1
- package/dist/{slopeStability-DrooNf1g.js → slopeStability-ChLLwaQA.js} +19 -19
- package/dist/{speedCurve-CNUJ5ScK.js → speedCurve-B7vwk0ti.js} +2 -2
- package/dist/{speedCurve-BT8wnfZI.cjs → speedCurve-DC8GN7er.cjs} +1 -1
- package/dist/{stackedBar-X8Y4lVgT.cjs → stackedBar-Bdt1ii7n.cjs} +1 -1
- package/dist/{stackedBar-nIfO6Aa3.js → stackedBar-p5hQcLfe.js} +2 -2
- package/dist/{stationList-D7lGCblu.js → stationList-4JLmJjJs.js} +3 -3
- package/dist/{stationList-DVzvGGHI.cjs → stationList-BHhnU7rg.cjs} +1 -1
- package/dist/{stressFilterBar-D5xktTRI.cjs → stressFilterBar-CDvVQZhK.cjs} +1 -1
- package/dist/{stressFilterBar-DqeqFHm7.js → stressFilterBar-D5uGrRbV.js} +2 -2
- package/dist/{stressTimeCurve-DfjNQ0rU.js → stressTimeCurve-BmXoUDOP.js} +3 -3
- package/dist/{stressTimeCurve-Bhhb-eqB.cjs → stressTimeCurve-Chj7Kmdb.cjs} +1 -1
- package/dist/{swiper-DuNuvT_N.js → swiper-CkVk-qls.js} +2 -2
- package/dist/{swiper-XCpwFkWS.cjs → swiper-OOktak53.cjs} +1 -1
- package/dist/{tablemanCreate-Cp5DaYUd.cjs → tablemanCreate-D6UFJZIo.cjs} +1 -1
- package/dist/{tablemanCreate-Cp9nOGg2.js → tablemanCreate-Hi3dHyzp.js} +3 -3
- package/dist/{tablemanDetail-DvZdgdHD.js → tablemanDetail-Bpuptxn4.js} +4 -4
- package/dist/{tablemanDetail-3ZMWkdpz.cjs → tablemanDetail-CHy58vFi.cjs} +1 -1
- package/dist/{tablemanList-DZdb1FUR.js → tablemanList-C16Timv1.js} +4 -4
- package/dist/{tablemanList-OLxgUmAi.cjs → tablemanList-C_bH6tMi.cjs} +1 -1
- package/dist/{tablemanTableList-CqsnRIHS.js → tablemanTableList-BW1WE2Ph.js} +3 -3
- package/dist/{tablemanTableList-BN6QjYEV.cjs → tablemanTableList-Duc6n-hm.cjs} +1 -1
- package/dist/{tablemanUpdate-CHs5OgAG.js → tablemanUpdate-Cvrm6nnk.js} +3 -3
- package/dist/{tablemanUpdate-E3d7A3WM.cjs → tablemanUpdate-DIpc92Cl.cjs} +1 -1
- package/dist/{terminalConfigList-BlgcWy40.cjs → terminalConfigList-C8dkmhQS.cjs} +1 -1
- package/dist/{terminalConfigList-BEBNi1Nl.js → terminalConfigList-yGZl93f_.js} +3 -3
- package/dist/{terminalList-Bl5BPmF9.cjs → terminalList-CanK2pyt.cjs} +1 -1
- package/dist/{terminalList-CJpH2Z-r.js → terminalList-dgawgsuV.js} +3 -3
- package/dist/{terminalListAPP-Dgvz8I3j.cjs → terminalListAPP-0iTXcRsu.cjs} +1 -1
- package/dist/{terminalListAPP-BpONJQOA.js → terminalListAPP-DNQzjxMX.js} +3 -3
- package/dist/{textbox-CJnSDwg7.js → textbox-88HaqHYa.js} +2 -2
- package/dist/{textbox-DR0bQEX7.cjs → textbox-CJP0S05E.cjs} +1 -1
- package/dist/{timeQueryBar-FJDQv-gp.js → timeQueryBar-B6WFuoFy.js} +1 -1
- package/dist/{timeQueryBar-Cmyan_30.cjs → timeQueryBar-B7m2zNqC.cjs} +1 -1
- package/dist/{timeSeries-t4uZvXRF.js → timeSeries-CBEMu62t.js} +12 -12
- package/dist/{timeSeries-_RLSUPmg.cjs → timeSeries-pv1B8rAD.cjs} +1 -1
- package/dist/{timeSeriesCurve-BxWiI6w-.js → timeSeriesCurve-C8I6T04V.js} +3 -3
- package/dist/{timeSeriesCurve-BUuLFQ8A.cjs → timeSeriesCurve-DfKXoiJf.cjs} +1 -1
- package/dist/{toggleBtn-BcpJcxpU.cjs → toggleBtn-D892Lgcg.cjs} +1 -1
- package/dist/{toggleBtn-Cx44qVci.js → toggleBtn-DxOPkmCn.js} +2 -2
- package/dist/{trajectoryConfigPanel-BTUv5OVS.cjs → trajectoryConfigPanel-2_KO7Fm_.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-dyo30nx9.js → trajectoryConfigPanel-CiHG2Nj3.js} +1 -1
- package/dist/{trajectoryScatter-CK4_Z1iU.cjs → trajectoryScatter-ceIqjQdd.cjs} +1 -1
- package/dist/{trajectoryScatter-BghFGqxH.js → trajectoryScatter-gYFCMKo8.js} +2 -2
- package/dist/{universalConfigPanel-Cvlpgn-j.cjs → universalConfigPanel-BuJ0pSOp.cjs} +1 -1
- package/dist/{universalConfigPanel-yJFrQDBa.js → universalConfigPanel-T07C_JVG.js} +1 -1
- package/dist/{universalTable-CvBC-L9Z.js → universalTable-C6iYcfCe.js} +2 -2
- package/dist/{universalTable-CRJ7Rx0P.cjs → universalTable-DA2F0v4F.cjs} +1 -1
- package/dist/useMixiotPanelPopperClass-DDtFtXLr.cjs +1 -0
- package/dist/useMixiotPanelPopperClass-DtvQI0g1.js +52 -0
- package/dist/{useTablemanApi-fqoMpRxe.cjs → useTablemanApi-BbUulkUz.cjs} +1 -1
- package/dist/{useTablemanApi-BAt370b-.js → useTablemanApi-Ch3eQRoG.js} +1 -1
- package/dist/{useTablemanFormPanel-Cxo0WsI1.cjs → useTablemanFormPanel-BdBoaHFU.cjs} +1 -1
- package/dist/{useTablemanFormPanel-BKbM39_H.js → useTablemanFormPanel-EtmBEDl7.js} +2 -2
- package/dist/{useTablemanListActions-DRXW-WTa.cjs → useTablemanListActions-Dlfnpnld.cjs} +1 -1
- package/dist/{useTablemanListActions-CYauYy6z.js → useTablemanListActions-gqs6gpza.js} +4 -4
- package/dist/{video-C1N8Ikkh.js → video-BVmqEL79.js} +2 -2
- package/dist/{video-BN19nKK_.cjs → video-jHJpadOt.cjs} +1 -1
- package/dist/{videoMonitor-PKypdwRl.cjs → videoMonitor-BZkwTydy.cjs} +1 -1
- package/dist/{videoMonitor-fkEuZ25x.js → videoMonitor-BwdC2_nR.js} +8 -8
- package/dist/{vlu-B8tqM9md.js → vlu-BSasXwGB.js} +2 -2
- package/dist/{vlu-DrABl6SW.cjs → vlu-DONKeVps.cjs} +1 -1
- package/dist/{warningOverview-_rp_SbLs.js → warningOverview-7bSJ0uSZ.js} +3 -3
- package/dist/{warningOverview-DaTHPveq.cjs → warningOverview-DVtqkIDv.cjs} +1 -1
- package/dist/{weather-B_XCWwDa.cjs → weather--IcwH6Si.cjs} +1 -1
- package/dist/{weather-qvsptrt0.js → weather-CVLrwzcA.js} +2 -2
- package/dist/{windLin-BDtJUYBu.js → windLin-ByNz1LOX.js} +2 -2
- package/dist/{windLin-P84T5W3o.cjs → windLin-C-BHdrGl.cjs} +1 -1
- package/package.json +1 -1
- package/dist/crd-C6iegy7d.cjs +0 -1
- package/dist/materialFileUrl-8YHw7z1T.cjs +0 -1
- package/dist/objectList-BcSCvy54.cjs +0 -1
- package/dist/objectList-DgVJlA1o.js +0 -1828
- package/dist/scd-DwdWl6Wz.cjs +0 -1
- package/dist/useMixiotPanelPopperClass-2tTzKUsO.cjs +0 -1
- package/dist/useMixiotPanelPopperClass-UGlVKJTK.js +0 -53
|
@@ -26,8 +26,8 @@ var Ne = (o, t, e) => new Promise((n, s) => {
|
|
|
26
26
|
l((e = e.apply(o, t)).next());
|
|
27
27
|
});
|
|
28
28
|
import { defineComponent as Ge, reactive as Ve, computed as xe, openBlock as E, createElementBlock as C, withDirectives as be, createElementVNode as x, Fragment as Me, renderList as _e, toDisplayString as Y, vModelSelect as $e, createCommentVNode as J, normalizeClass as Ae, vModelText as Ye, ref as U, watch as ke, nextTick as tt, withModifiers as We, normalizeStyle as Ie, onMounted as lt, onBeforeUnmount as ct, createTextVNode as dt, createVNode as ut } from "vue";
|
|
29
|
-
import { _ as He } from "./index-
|
|
30
|
-
import { L as q } from "./leaflet-src-
|
|
29
|
+
import { _ as He } from "./index-DUL649KZ.js";
|
|
30
|
+
import { L as q } from "./leaflet-src-CAGnqnjZ.js";
|
|
31
31
|
/* empty css */
|
|
32
32
|
import { R as ht, k as ft, S as mt, l as pt, W as vt, m as Oe, A as gt, n as yt, o as Xe, G as Ze, B as ge, a as ce, p as wt, D as bt, C as kt, g as Te, L as Re, q as ze, h as xt, V as Q, r as Je, s as Mt, M as _t, P as St, e as zt, t as At, u as Tt } from "./three.module-DDLQaQWC.js";
|
|
33
33
|
import { O as Lt } from "./OrbitControls-BHOrUcwg.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var q=Object.create;var C=Object.defineProperty,j=Object.defineProperties,F=Object.getOwnPropertyDescriptor,P=Object.getOwnPropertyDescriptors,Z=Object.getOwnPropertyNames,N=Object.getOwnPropertySymbols,$=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var U=(t,e,i)=>e in t?C(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,E=(t,e)=>{for(var i in e||(e={}))O.call(e,i)&&U(t,i,e[i]);if(N)for(var i of N(e))G.call(e,i)&&U(t,i,e[i]);return t},V=(t,e)=>j(t,P(e));var W=(t,e,i,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of Z(e))!O.call(t,l)&&l!==i&&C(t,l,{get:()=>e[l],enumerable:!(a=F(e,l))||a.enumerable});return t};var m=(t,e,i)=>(i=t!=null?q($(t)):{},W(e||!t||!t.__esModule?C(i,"default",{value:t,enumerable:!0}):i,t));var w=(t,e,i)=>new Promise((a,l)=>{var c=n=>{try{v(i.next(n))}catch(r){l(r)}},u=n=>{try{v(i.throw(n))}catch(r){l(r)}},v=n=>n.done?a(n.value):Promise.resolve(n.value).then(c,u);v((i=i.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),J=require("./BaseComponent-
|
|
1
|
+
"use strict";var q=Object.create;var C=Object.defineProperty,j=Object.defineProperties,F=Object.getOwnPropertyDescriptor,P=Object.getOwnPropertyDescriptors,Z=Object.getOwnPropertyNames,N=Object.getOwnPropertySymbols,$=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var U=(t,e,i)=>e in t?C(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,E=(t,e)=>{for(var i in e||(e={}))O.call(e,i)&&U(t,i,e[i]);if(N)for(var i of N(e))G.call(e,i)&&U(t,i,e[i]);return t},V=(t,e)=>j(t,P(e));var W=(t,e,i,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of Z(e))!O.call(t,l)&&l!==i&&C(t,l,{get:()=>e[l],enumerable:!(a=F(e,l))||a.enumerable});return t};var m=(t,e,i)=>(i=t!=null?q($(t)):{},W(e||!t||!t.__esModule?C(i,"default",{value:t,enumerable:!0}):i,t));var w=(t,e,i)=>new Promise((a,l)=>{var c=n=>{try{v(i.next(n))}catch(r){l(r)}},u=n=>{try{v(i.throw(n))}catch(r){l(r)}},v=n=>n.done?a(n.value):Promise.resolve(n.value).then(c,u);v((i=i.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),J=require("./BaseComponent-BabOc6Kc.cjs"),K=require("./index-Cm7hGuPj.cjs"),Q=require("./titleStyle-NSnz6cUg.cjs"),k=require("./ele-gridview-icon-D3GcssP6.cjs"),X={class:"mix-body"},Y={key:0,class:"univer-placeholder"},ee={class:"placeholder-tip"},te={DEFAULT_ICON:k.DEFAULT_ICON,ACTIVE_ICON:k.ACTIVE_ICON,NAME_CN:"Univer表格",NAME_EN:"Univer Sheet",ORDER:2,PLATFORM:["pc","screen","mobile"]},oe={bgColor:"#ffffff",titleColor:"#111",titleSize:14,radiusSize:8,isHideTitle:!1,showToolbar:!0,ribbonType:"simple",locale:"zh-CN"},ie={DEFAULT:te,OPTIONS:oe},le=o.defineComponent(V(E({},ie),{__name:"UniverSheet",props:{conf:{type:Object,default:()=>({name:"Univer表格"})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(t){const e=t,i=o.ref(null),a=o.ref(!1),l=o.ref("");let c=null,u=null;class v extends J.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#ffffff"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showToolbar:this.getOptionValue("showToolbar",!0),ribbonType:this.getOptionValue("ribbonType","simple"),locale:this.getOptionValue("locale","zh-CN")}}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const n=new v(e,"univerSheet");n.setupLifecycle();const r=n.getStyle(),z=o.computed(()=>Q.generateTitleStyle(e.conf.options)),B=o.computed(()=>{var s,p,f,h;return{background:(p=(s=r.value)==null?void 0:s.bgColor)!=null?p:"#ffffff",borderRadius:`${(h=(f=r.value)==null?void 0:f.radiusSize)!=null?h:8}px`}});function x(){return w(this,null,function*(){var p,f,h;const s=i.value;if(s)try{const d=`univer-sheet-${e.uid||Math.random().toString(36).slice(2,8)}`;s.id=d;const{createUniver:M,LocaleType:S,mergeLocales:T}=yield import("@univerjs/presets"),{UniverSheetsCorePreset:A}=yield import("@univerjs/preset-sheets-core"),I=yield import("@univerjs/preset-sheets-core/locales/zh-CN").then(b=>b.default).catch(()=>({})),L=yield import("@univerjs/preset-sheets-core/locales/en-US").then(b=>b.default).catch(()=>({}));yield import("@univerjs/preset-sheets-core/lib/index.css");const R=((p=r.value)==null?void 0:p.locale)==="zh-CN"?S.ZH_CN:S.EN_US,y=((f=r.value)==null?void 0:f.showToolbar)!==!1,_=((h=r.value)==null?void 0:h.ribbonType)||"simple",{univer:H,univerAPI:g}=M({locale:R,locales:{[S.EN_US]:T(L),[S.ZH_CN]:T(I)},presets:[A({container:d,header:y,toolbar:y,formulaBar:y,footer:!1,ribbonType:_==="collapsed"?"collapsed":_==="classic"?"classic":"simple"})]});g.createWorkbook({sheetOrder:["sheet1"],sheets:{sheet1:{id:"sheet1",name:"Sheet1",rowCount:50,columnCount:26,cellData:{0:{0:{v:"月份",t:1},1:{v:"收入",t:1},2:{v:"支出",t:1},3:{v:"利润",t:1}},1:{0:{v:"一月",t:1},1:{v:1e4,t:2},2:{v:6e3,t:2},3:{v:4e3,t:2}},2:{0:{v:"二月",t:1},1:{v:12e3,t:2},2:{v:7e3,t:2},3:{v:5e3,t:2}},3:{0:{v:"三月",t:1},1:{v:11e3,t:2},2:{v:6500,t:2},3:{v:4500,t:2}},4:{0:{v:"合计",t:1},1:{f:"=SUM(B2:B4)",t:2},2:{f:"=SUM(C2:C4)",t:2},3:{f:"=SUM(D2:D4)",t:2}}}}}}),c=H,u=g,a.value=!0}catch(d){console.error("[UniverSheet] init error:",d),l.value=(d==null?void 0:d.message)||"请安装 @univerjs/presets 与 @univerjs/preset-sheets-core"}})}function D(){try{c==null||c.dispose(),u==null||u.dispose()}catch(s){}c=null,u=null,a.value=!1}return o.onMounted(()=>{o.nextTick(()=>x())}),o.onBeforeUnmount(()=>{D()}),(s,p)=>(o.openBlock(),o.createElementBlock("div",{class:"mix-component univer-sheet-wrap",style:o.normalizeStyle(B.value)},[o.unref(r).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(z.value)},o.toDisplayString(t.conf.caption||t.conf.name||"Univer表格"),5)),o.createElementVNode("div",X,[a.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Y,[o.createElementVNode("span",ee,o.toDisplayString(l.value||"加载表格…"),1)])),o.createElementVNode("div",{ref_key:"containerRef",ref:i,class:"univer-container"},null,512)]),o.renderSlot(s.$slots,"default",{},void 0,!0)],4))}})),ne=K._export_sfc(le,[["__scopeId","data-v-38385b19"]]);exports.default=ne;
|
|
@@ -27,8 +27,8 @@ var E = (o, e, t) => new Promise((u, p) => {
|
|
|
27
27
|
f((t = t.apply(o, e)).next());
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as J, ref as y, computed as V, onMounted as K, nextTick as Q, onBeforeUnmount as X, openBlock as b, createElementBlock as C, normalizeStyle as x, unref as Y, toDisplayString as k, createCommentVNode as B, createElementVNode as _, renderSlot as ee } from "vue";
|
|
30
|
-
import { B as te } from "./BaseComponent-
|
|
31
|
-
import { _ as oe } from "./index-
|
|
30
|
+
import { B as te } from "./BaseComponent-7Sa7XOg-.js";
|
|
31
|
+
import { _ as oe } from "./index-DUL649KZ.js";
|
|
32
32
|
import { g as ie } from "./titleStyle-BT5GlpAb.js";
|
|
33
33
|
import { A as le, D as se } from "./ele-gridview-icon-cSd1oIDi.js";
|
|
34
34
|
const ne = { class: "mix-body" }, re = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var z=Object.defineProperty,q=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var k=(y,s,i)=>s in y?z(y,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):y[s]=i,w=(y,s)=>{for(var i in s||(s={}))R.call(s,i)&&k(y,i,s[i]);if(N)for(var i of N(s))P.call(s,i)&&k(y,i,s[i]);return y},A=(y,s)=>q(y,I(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=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/date-picker/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio-button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue");require("html2canvas");const _=require("./index-
|
|
1
|
+
"use strict";var z=Object.defineProperty,q=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var k=(y,s,i)=>s in y?z(y,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):y[s]=i,w=(y,s)=>{for(var i in s||(s={}))R.call(s,i)&&k(y,i,s[i]);if(N)for(var i of N(s))P.call(s,i)&&k(y,i,s[i]);return y},A=(y,s)=>q(y,I(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=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/date-picker/style/css");require("element-plus/es/components/radio-group/style/css");require("element-plus/es/components/radio-button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const t=require("vue");require("html2canvas");const _=require("./index-Cm7hGuPj.cjs");require("element-plus");const U=require("./EChartComponentBase-DM6aSCAR.cjs");require("./index-CJgyJTvc.cjs");const T=require("./ele-lin-icon-Dke_1AmT.cjs"),$=require("./echarts-BB8O2KSA.cjs"),G={class:"acceleration-chart-wrapper"},W={class:"toolbar"},Q={class:"toolbar-left"},X={class:"toolbar-center"},Z={class:"toolbar-right"},J={class:"chart-header"},K={class:"chart-title"},ee={class:"chart-legend"},te={class:"legend-text"},ae={class:"y-axis-unit"},oe={class:"chart-body"},le=["id"],re={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"加速度监测",NAME_EN:"Acceleration Chart",ORDER:10,PLATFORM:["pc","screen"]},ne={unit:{value:"mm",type:"string",label:"component.accelerationChart.unit"},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},gridLineColor:{value:"#e5e5e5",type:"color",label:"component.accelerationChart.gridLineColor"},points:{value:50,type:"number",label:"component.options.points",min:10,max:200},lineType:{value:"smooth",type:"select",label:"component.accelerationChart.lineType",options:[{label:"平滑曲线",value:"smooth"},{label:"折线",value:"line"},{label:"阶梯线",value:"step"}]},showSymbol:{value:!1,type:"checkbox",label:"component.accelerationChart.showSymbol"},lineWidth:{value:1.5,type:"number",label:"component.accelerationChart.lineWidth",min:1,max:5},yMax:{value:30,type:"number",label:"component.line.yMax"},yMin:{value:-20,type:"number",label:"component.line.yMin"},areaList:{value:"内排,外排,边坡,平台",type:"string",label:"component.accelerationChart.areaList"}},se=[{name:"GPS01",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS02",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS03",area:"外排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]}],ce=["name","area","object_id","curves"],ie=["name","fv","color"],ue=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],de={useAlias:!1,multiObject:!0,source:"mosaic"},me={DEFAULT:re,OPTIONS:ne,DATA:se,PARAMS:ce,SOURCE:ue,COMMON:de,CURVE_PARAMS:ie},fe=t.defineComponent(A(w({},me),{__name:"accelerationChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(y){t.useCssVars(o=>({v5223c71b:t.unref(V).bgColor,v2166d81a:t.unref(V).textColor}));const s=y,i=t.ref(""),M=t.computed(()=>{var l,c,d,m;const o=((l=s.conf)==null?void 0:l.data)||[],e=new Set;return o.forEach(n=>{n.area&&e.add(n.area)}),e.size===0?(((m=(d=(c=s.conf)==null?void 0:c.options)==null?void 0:d.areaList)==null?void 0:m.value)||"内排,外排,边坡,平台").split(",").map(r=>r.trim()).filter(r=>r):Array.from(e)});t.watch(M,o=>{o.length>0&&!i.value&&(i.value=o[0])},{immediate:!0});const H=()=>{console.log("区域切换:",i.value);const o=E.value;o.length>0?v.value=o[0].value:v.value="",S()},v=t.ref(""),E=t.computed(()=>{var l;return(((l=s.conf)==null?void 0:l.data)||[]).filter(c=>c.area?c.area===i.value:!0).map(c=>({label:c.name,value:c.name}))});t.watch(E,o=>{o.length>0&&!v.value&&(v.value=o[0].value)},{immediate:!0});const L=t.computed(()=>{var e;const o=((e=s.conf)==null?void 0:e.data)||[];return o.find(l=>l.name===v.value)||o[0]||null}),D=t.computed(()=>{const o=L.value;return o?o.curves||[]:[]}),F=t.ref("7days"),x=t.ref(_.dayjs().subtract(7,"day").format("YYYY-MM-DD HH:mm:ss")),b=t.ref(_.dayjs().format("YYYY-MM-DD HH:mm:ss")),O=o=>{const e=_.dayjs();switch(o){case"today":x.value=e.startOf("day").format("YYYY-MM-DD HH:mm:ss"),b.value=e.format("YYYY-MM-DD HH:mm:ss");break;case"7days":x.value=e.subtract(7,"day").format("YYYY-MM-DD HH:mm:ss"),b.value=e.format("YYYY-MM-DD HH:mm:ss");break;case"30days":x.value=e.subtract(30,"day").format("YYYY-MM-DD HH:mm:ss"),b.value=e.format("YYYY-MM-DD HH:mm:ss");break}S()},S=()=>{console.log("查询数据:",{area:i.value,device:v.value,startTime:x.value,endTime:b.value}),p.updateChartData(D.value)},B=()=>{console.log("导出数据:",{area:i.value,device:v.value,startTime:x.value,endTime:b.value})};t.watch(v,()=>{p.updateChartData(D.value)});class j extends U.EChartComponentBase{constructor(){super(...arguments),this.historyData=new Map,this.xAxisData=[]}extractStyles(){var l,c,d,m,n,r,a,u,f,h,C;const{options:e}=this.props.conf;return{unit:((l=e==null?void 0:e.unit)==null?void 0:l.value)||"mm",bgColor:((c=e==null?void 0:e.bgColor)==null?void 0:c.value)||"#ffffff",textColor:((d=e==null?void 0:e.textColor)==null?void 0:d.value)||"#333333",gridLineColor:((m=e==null?void 0:e.gridLineColor)==null?void 0:m.value)||"#e5e5e5",points:((n=e==null?void 0:e.points)==null?void 0:n.value)||50,lineType:((r=e==null?void 0:e.lineType)==null?void 0:r.value)||"smooth",showSymbol:(u=(a=e==null?void 0:e.showSymbol)==null?void 0:a.value)!=null?u:!1,lineWidth:((f=e==null?void 0:e.lineWidth)==null?void 0:f.value)||1.5,yMax:((h=e==null?void 0:e.yMax)==null?void 0:h.value)||30,yMin:((C=e==null?void 0:e.yMin)==null?void 0:C.value)||-20}}getDefaultData(){return[{name:"GPS01",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS02",area:"内排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]},{name:"GPS03",area:"外排",object_id:"",curves:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]}]}generateMockData(e,l=0,c=15){const d=[];let m=Math.random()*Math.PI*2;for(let n=0;n<e;n++){const r=(Math.random()-.5)*c*.5,a=Math.sin(m+n*.15)*c*.6,u=l+a+r;d.push(parseFloat(u.toFixed(1)))}return d}getChartOption(e=[]){const l=this.extractStyles(),c=l.points;this.xAxisData=_.getxAxisDataTime(c,this.props.mode,!1);const m=(e.length>0?e:[{name:"x加速度",fv:"acc_x",color:"#4169E1"},{name:"y加速度",fv:"acc_y",color:"#32CD32"},{name:"h加速度",fv:"acc_h",color:"#FFD700"},{name:"xy加速度",fv:"acc_xy",color:"#FF4500"},{name:"xyh加速度",fv:"acc_xyh",color:"#1E90FF"}]).map((n,r)=>{const a=`${v.value}_${n.name}`;let u=this.historyData.get(a);if(!u||u.length===0){const h=[15,-12,-11,19,22];u=this.generateMockData(c,h[r]||0,2),this.historyData.set(a,u)}const f={name:n.name,type:"line",symbol:l.showSymbol?"circle":"none",symbolSize:4,data:u,lineStyle:{width:l.lineWidth,color:n.color},itemStyle:{color:n.color}};return l.lineType==="smooth"?f.smooth=!0:(l.lineType==="step"&&(f.step="middle"),f.smooth=!1),f});return{grid:{left:50,right:20,top:20,bottom:70},tooltip:{trigger:"axis",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:n=>{let r=`<div style="font-weight:bold;margin-bottom:5px">${n[0].axisValue}</div>`;return n.forEach(a=>{r+=`<div style="display:flex;align-items:center;gap:5px">
|
|
2
2
|
${a.marker}
|
|
3
3
|
<span>${a.seriesName}:</span>
|
|
4
4
|
<span style="font-weight:bold">${a.value} ${l.unit}</span>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var J = Object.defineProperty, ee = Object.defineProperties;
|
|
2
2
|
var te = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var N = Object.getOwnPropertySymbols;
|
|
4
4
|
var ae = Object.prototype.hasOwnProperty, oe = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var I = (y, s, c) => s in y ?
|
|
5
|
+
var I = (y, s, c) => s in y ? J(y, s, { enumerable: !0, configurable: !0, writable: !0, value: c }) : y[s] = c, P = (y, s) => {
|
|
6
6
|
for (var c in s || (s = {}))
|
|
7
7
|
ae.call(s, c) && I(y, c, s[c]);
|
|
8
8
|
if (N)
|
|
@@ -18,22 +18,22 @@ import "element-plus/es/components/radio-group/style/css";
|
|
|
18
18
|
import "element-plus/es/components/radio-button/style/css";
|
|
19
19
|
import "element-plus/es/components/select/style/css";
|
|
20
20
|
import "element-plus/es/components/option/style/css";
|
|
21
|
-
import { defineComponent as ue, useCssVars as me, unref as A, ref as M, computed as k, watch as Y, onMounted as de, nextTick as $, openBlock as g, createElementBlock as F, createElementVNode as m, createVNode as x, withCtx as b, Fragment as
|
|
21
|
+
import { defineComponent as ue, useCssVars as me, unref as A, ref as M, computed as k, watch as Y, onMounted as de, nextTick as $, openBlock as g, createElementBlock as F, createElementVNode as m, createVNode as x, withCtx as b, Fragment as O, renderList as L, createBlock as G, createTextVNode as E, toDisplayString as T, normalizeStyle as W, renderSlot as fe } from "vue";
|
|
22
22
|
import "html2canvas";
|
|
23
|
-
import { d as z,
|
|
23
|
+
import { d as z, K as he, O as ve, E as ye, _ as pe } from "./index-DUL649KZ.js";
|
|
24
24
|
import "element-plus";
|
|
25
|
-
import { E as xe } from "./EChartComponentBase-
|
|
25
|
+
import { E as xe } from "./EChartComponentBase-DCKFGbqb.js";
|
|
26
26
|
import "./index-eIsZnzkc.js";
|
|
27
27
|
import { A as be, D as _e } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
28
28
|
import { i as De } from "./echarts-Bp7QN4X6.js";
|
|
29
|
-
const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, Se = { class: "toolbar-left" }, Me = { class: "toolbar-center" }, Ye = { class: "toolbar-right" }, Fe = { class: "chart-header" }, Ee = { class: "chart-title" }, Ae = { class: "chart-legend" }, ke = { class: "legend-text" }, we = { class: "y-axis-unit" }, He = { class: "chart-body" }, Ve = ["id"],
|
|
29
|
+
const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, Se = { class: "toolbar-left" }, Me = { class: "toolbar-center" }, Ye = { class: "toolbar-right" }, Fe = { class: "chart-header" }, Ee = { class: "chart-title" }, Ae = { class: "chart-legend" }, ke = { class: "legend-text" }, we = { class: "y-axis-unit" }, He = { class: "chart-body" }, Ve = ["id"], Oe = {
|
|
30
30
|
DEFAULT_ICON: _e,
|
|
31
31
|
ACTIVE_ICON: be,
|
|
32
32
|
NAME_CN: "加速度监测",
|
|
33
33
|
NAME_EN: "Acceleration Chart",
|
|
34
34
|
ORDER: 10,
|
|
35
35
|
PLATFORM: ["pc", "screen"]
|
|
36
|
-
},
|
|
36
|
+
}, Le = {
|
|
37
37
|
unit: { value: "mm", type: "string", label: "component.accelerationChart.unit" },
|
|
38
38
|
bgColor: { value: "#ffffff", type: "color", label: "component.options.bgColor" },
|
|
39
39
|
textColor: { value: "#333333", type: "color", label: "component.options.textColor" },
|
|
@@ -87,7 +87,7 @@ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, S
|
|
|
87
87
|
{ name: "xyh加速度", fv: "acc_xyh", color: "#1E90FF" }
|
|
88
88
|
]
|
|
89
89
|
}
|
|
90
|
-
], ze = ["name", "area", "object_id", "curves"], je = ["name", "fv", "color"],
|
|
90
|
+
], ze = ["name", "area", "object_id", "curves"], je = ["name", "fv", "color"], Re = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], Be = { useAlias: !1, multiObject: !0, source: "mosaic" }, Ne = { DEFAULT: Oe, OPTIONS: Le, DATA: Te, PARAMS: ze, SOURCE: Re, COMMON: Be, CURVE_PARAMS: je }, Ie = /* @__PURE__ */ ue(U(P({}, Ne), {
|
|
91
91
|
__name: "accelerationChart",
|
|
92
92
|
props: {
|
|
93
93
|
conf: { type: Object, default: () => ({ data: [] }) },
|
|
@@ -110,7 +110,7 @@ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, S
|
|
|
110
110
|
Y(j, (a) => {
|
|
111
111
|
a.length > 0 && !c.value && (c.value = a[0]);
|
|
112
112
|
}, { immediate: !0 });
|
|
113
|
-
const
|
|
113
|
+
const K = () => {
|
|
114
114
|
console.log("区域切换:", c.value);
|
|
115
115
|
const a = w.value;
|
|
116
116
|
a.length > 0 ? v.value = a[0].value : v.value = "", H();
|
|
@@ -131,7 +131,7 @@ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, S
|
|
|
131
131
|
}), C = k(() => {
|
|
132
132
|
const a = Q.value;
|
|
133
133
|
return a ? a.curves || [] : [];
|
|
134
|
-
}),
|
|
134
|
+
}), R = M("7days"), _ = M(z().subtract(7, "day").format("YYYY-MM-DD HH:mm:ss")), D = M(z().format("YYYY-MM-DD HH:mm:ss")), X = (a) => {
|
|
135
135
|
const e = z();
|
|
136
136
|
switch (a) {
|
|
137
137
|
case "today":
|
|
@@ -411,10 +411,10 @@ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, S
|
|
|
411
411
|
}
|
|
412
412
|
const p = new q(s, "accelerationChart");
|
|
413
413
|
(!s.conf.data || s.conf.data.length === 0) && (s.conf.data = p.getDefaultData()), p.setupLifecycle();
|
|
414
|
-
const V = p.getStyle(),
|
|
414
|
+
const V = p.getStyle(), B = p.getEchartId();
|
|
415
415
|
return de(() => {
|
|
416
416
|
$(() => {
|
|
417
|
-
const a = document.getElementById(
|
|
417
|
+
const a = document.getElementById(B);
|
|
418
418
|
if (a) {
|
|
419
419
|
const e = De(a);
|
|
420
420
|
e.setOption(p.getChartOption(C.value)), p.chartObj = e;
|
|
@@ -441,10 +441,10 @@ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, S
|
|
|
441
441
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => c.value = t),
|
|
442
442
|
class: "area-select",
|
|
443
443
|
size: "small",
|
|
444
|
-
onChange:
|
|
444
|
+
onChange: K
|
|
445
445
|
}, {
|
|
446
446
|
default: b(() => [
|
|
447
|
-
(g(!0), F(
|
|
447
|
+
(g(!0), F(O, null, L(j.value, (t) => (g(), G(o, {
|
|
448
448
|
key: t,
|
|
449
449
|
label: t,
|
|
450
450
|
value: t
|
|
@@ -460,7 +460,7 @@ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, S
|
|
|
460
460
|
size: "small"
|
|
461
461
|
}, {
|
|
462
462
|
default: b(() => [
|
|
463
|
-
(g(!0), F(
|
|
463
|
+
(g(!0), F(O, null, L(w.value, (t) => (g(), G(o, {
|
|
464
464
|
key: t.value,
|
|
465
465
|
label: t.label,
|
|
466
466
|
value: t.value
|
|
@@ -471,8 +471,8 @@ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, S
|
|
|
471
471
|
]),
|
|
472
472
|
m("div", Me, [
|
|
473
473
|
x(d, {
|
|
474
|
-
modelValue:
|
|
475
|
-
"onUpdate:modelValue": e[2] || (e[2] = (t) =>
|
|
474
|
+
modelValue: R.value,
|
|
475
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => R.value = t),
|
|
476
476
|
size: "small",
|
|
477
477
|
onChange: X
|
|
478
478
|
}, {
|
|
@@ -544,7 +544,7 @@ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, S
|
|
|
544
544
|
m("div", Fe, [
|
|
545
545
|
m("div", Ee, T(v.value), 1),
|
|
546
546
|
m("div", Ae, [
|
|
547
|
-
(g(!0), F(
|
|
547
|
+
(g(!0), F(O, null, L(C.value, (t) => (g(), F("div", {
|
|
548
548
|
key: t.name,
|
|
549
549
|
class: "legend-item"
|
|
550
550
|
}, [
|
|
@@ -564,7 +564,7 @@ const ge = { class: "acceleration-chart-wrapper" }, Ce = { class: "toolbar" }, S
|
|
|
564
564
|
m("div", we, T(A(V).unit), 1),
|
|
565
565
|
m("div", He, [
|
|
566
566
|
m("div", {
|
|
567
|
-
id: A(
|
|
567
|
+
id: A(B),
|
|
568
568
|
class: "chart-container"
|
|
569
569
|
}, null, 8, Ve)
|
|
570
570
|
]),
|
|
@@ -33,8 +33,8 @@ import "element-plus/es/components/empty/style/css";
|
|
|
33
33
|
import { reactive as be, ref as $, watch as ke, defineComponent as G, computed as Q, h as f, onMounted as ve, onUnmounted as Ve, watchEffect as De, openBlock as S, createElementBlock as w, normalizeStyle as X, unref as c, createElementVNode as B, toDisplayString as Y, createVNode as V, withCtx as D, createTextVNode as C, createCommentVNode as I, Fragment as Fe, renderList as Oe, createBlock as Z, renderSlot as Se } from "vue";
|
|
34
34
|
import { ElFormItem as j, ElButton as x, ElInput as A, ElSwitch as ee, ElInputNumber as te, ElSelect as re, ElOption as oe, ElDialog as xe, ElMessage as J } from "element-plus";
|
|
35
35
|
import { Delete as Ee, Plus as we } from "@element-plus/icons-vue";
|
|
36
|
-
import { u as Ce, _ as Ae } from "./index-
|
|
37
|
-
import { B as Ie } from "./BaseComponent-
|
|
36
|
+
import { u as Ce, _ as Ae } from "./index-DUL649KZ.js";
|
|
37
|
+
import { B as Ie } from "./BaseComponent-7Sa7XOg-.js";
|
|
38
38
|
import { g as Je } from "./titleStyle-BT5GlpAb.js";
|
|
39
39
|
import { A as Ne, D as Pe } from "./ele-crd-icon-BXxB7P3T.js";
|
|
40
40
|
class Te extends Ie {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var G=Object.defineProperty,Q=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var A=(k,t,o)=>t in k?G(k,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):k[t]=o,O=(k,t)=>{for(var o in t||(t={}))Y.call(t,o)&&A(k,o,t[o]);if(B)for(var o of B(t))Z.call(t,o)&&A(k,o,t[o]);return k},T=(k,t)=>Q(k,X(t));var P=(k,t,o)=>new Promise((s,n)=>{var i=l=>{try{h(o.next(l))}catch(b){n(b)}},p=l=>{try{h(o.throw(l))}catch(b){n(b)}},h=l=>l.done?s(l.value):Promise.resolve(l.value).then(i,p);h((o=o.apply(k,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/empty/style/css");const e=require("vue"),c=require("element-plus"),$=require("@element-plus/icons-vue"),z=require("./index-Bo49zvKb.cjs"),ee=require("./BaseComponent-9njJjeix.cjs"),te=require("./titleStyle-NSnz6cUg.cjs"),q=require("./ele-crd-icon-BvNgAPKW.cjs");class re extends ee.BaseComponent{constructor(t){super(t,"actionItem"),this.formData=e.reactive({}),this.showJsonEditor=e.ref(!1),this.jsonInput=e.ref("")}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#333"),radiusSize:this.getOptionValue("radiusSize",8),labelWidth:this.getOptionValue("labelWidth",100),isHideTitle:this.getOptionValue("isHideTitle",!1),showButtons:this.getOptionValue("showButtons",!0)}}init(){var o;this.Style.value=this.extractStyles(),this.applyTheme();const t=this.props.conf.data;t&&typeof t=="object"&&((o=t.params)!=null&&o.length)&&this.parseBackendData(t),this.initFormData()}getParams(){var t;return Array.isArray((t=this.props.conf)==null?void 0:t.params)?this.props.conf.params:[]}get hasParams(){return this.getParams().length>0}getVisibleParams(){return this.getParams().filter(t=>t.form_type!=="hidden"&&!this.isFieldHidden(t))}getFormRules(){const t={},o=(s,n="")=>{s.forEach(i=>{const p=n?`${n}.${i.key}`:i.key;if(i.form_type==="sub_form"&&i.properties&&!i.items){o(i.properties,p);return}if(i.form_type==="sub_form"&&i.items)return;const h=this.buildValidationRules(i);h.length&&(t[p]=h)})};return o(this.getParams()),t}initFormData(){var o,s;const t=(s=(o=this.props.conf)==null?void 0:o.data)==null?void 0:s.values;this.getParams().forEach(n=>{t&&t[n.key]!==void 0?this.formData[n.key]=t[n.key]:this.formData[n.key]=this.getDefaultValue(n)})}resetForm(){this.initFormData()}getDefaultValue(t){var o,s;if(t.form_type==="sub_form"&&t.properties&&!t.items){const n={};return t.properties.forEach(i=>{n[i.key]=this.getDefaultValue(i)}),n}return t.form_type==="sub_form"&&t.items?Array.isArray(t.default_value)?t.default_value:[]:t.form_type==="checkbox_group"?Array.isArray(t.default_value)?t.default_value:[]:t.default_value!==null&&t.default_value!==void 0?t.default_value:t.form_type==="switch"?!1:t.form_type==="number"?(s=(o=t.format)==null?void 0:o.min)!=null?s:0:""}buildValidationRules(t){const o=[];t.required&&o.push({required:!0,message:`请输入${t.cn_name}`,trigger:"blur"});const s=t.format;return s&&(s.pattern&&o.push({pattern:new RegExp(s.pattern),message:`${t.cn_name}格式不正确`,trigger:"blur"}),(s.min_length||s.max_length)&&o.push({min:s.min_length,max:s.max_length,message:s.min_length&&s.max_length?`长度在 ${s.min_length} 到 ${s.max_length} 个字符`:s.min_length?`最少 ${s.min_length} 个字符`:`最多 ${s.max_length} 个字符`,trigger:"blur"})),o}isFieldHidden(t){var o,s,n,i;if(!((o=t.rules)!=null&&o.length))return!1;for(const p of t.rules){const h=this.formData[(s=p.related_key)==null?void 0:s.split(".")[0]],l=(n=p.conditions)==null?void 0:n.find(b=>b.value===h);if((i=l==null?void 0:l.property)!=null&&i.hidden)return!0}return!1}isFieldDisabled(t){var o,s,n,i;if(!((o=t.rules)!=null&&o.length))return!1;for(const p of t.rules){const h=this.formData[(s=p.related_key)==null?void 0:s.split(".")[0]],l=(n=p.conditions)==null?void 0:n.find(b=>b.value===h);if((i=l==null?void 0:l.property)!=null&&i.disabled)return!0}return!1}getFieldOptions(t){var s,n;let o=t.enum||[];if(t.rules)for(const i of t.rules){if(!i.related_key)continue;const p=this.formData[i.related_key],h=(s=i.conditions)==null?void 0:s.find(l=>l.value===p);if((n=h==null?void 0:h.property)!=null&&n.enum){o=h.property.enum;break}}return o}onFieldChange(t){this.getParams().forEach(o=>{if(o.rules)for(const s of o.rules)s.related_key===t.key&&(this.formData[o.key]=o.form_type==="checkbox_group"?[]:o.form_type==="switch"?!1:"")})}addSubItem(t){var n;Array.isArray(this.formData[t.key])||(this.formData[t.key]=[]);const o=((n=t.items)==null?void 0:n.properties)||t.properties||[],s={};o.forEach(i=>{s[i.key]=this.getDefaultValue(i)}),this.formData[t.key].push(s)}removeSubItem(t,o){var s;(s=this.formData[t])==null||s.splice(o,1)}getSubFieldOptions(t,o){var s,n,i;if((s=t.enum)!=null&&s.length)return t.enum;if(t.rules)for(const p of t.rules){if(!p.related_key)continue;const h=p.related_key.split(".").pop(),l=(n=p.conditions)==null?void 0:n.find(b=>b.value===o[h]);if((i=l==null?void 0:l.property)!=null&&i.enum)return l.property.enum}return[]}onSubFieldChange(t,o,s){var i;(((i=t.items)==null?void 0:i.properties)||t.properties||[]).forEach(p=>{var h;if(p.rules)for(const l of p.rules)((h=l.related_key)==null?void 0:h.split(".").pop())===o.key&&(s[p.key]="")})}applyJson(){try{const t=JSON.parse(this.jsonInput.value);if(t.params&&Array.isArray(t.params))this.props.conf.action_name=t.action_name||"表单",this.props.conf.description=t.description||"",this.props.conf.params=t.params,this.props.conf.data=t,this.initFormData();else if(Array.isArray(t))this.props.conf.params=t,this.props.conf.data={params:t},this.initFormData();else if(t.key&&t.form_type)this.props.conf.params=[t],this.initFormData();else return{success:!1,error:"无法识别的 JSON 格式"};return this.showJsonEditor.value=!1,{success:!0}}catch(t){return{success:!1,error:t.message||"JSON 格式错误"}}}exportTargetJson(){return this.exportToOriginalFormat()}parseBackendData(t){t&&(this.props.conf.action_name=t.action_name,this.props.conf.description=t.description,this.props.conf.params=t.params,this.props.conf.block=t.block,this.props.conf.action=t.action,this.props.conf.data=t,this.initFormData())}serializeToBackend(){return{block:this.props.conf.block,action:this.props.conf.action,params:O({},this.formData),originalFormat:this.exportToOriginalFormat()}}saveFormData(){this.props.conf.data||(this.props.conf.data={}),this.props.conf.data.values=JSON.parse(JSON.stringify(this.formData))}getFullConfig(){return{action_name:this.props.conf.action_name,description:this.props.conf.description,block:this.props.conf.block,action:this.props.conf.action,params:this.props.conf.params}}exportToOriginalFormat(){return this.convertFormDataToOriginal(this.formData,this.getParams())}convertFormDataToOriginal(t,o){const s={};return o.forEach(n=>{var p;const i=t[n.key];n.form_type==="sub_form"?n.properties&&!n.items?s[n.key]=this.convertFormDataToOriginal(i||{},n.properties):(p=n.items)!=null&&p.properties&&(s[n.key]=Array.isArray(i)?i.map(h=>this.convertArrayItemToOriginal(h,n.items.properties)):[]):n.db_type==="boolean"&&typeof i=="boolean"?s[n.key]=i?"true":"false":s[n.key]=i}),s}convertArrayItemToOriginal(t,o){const s={};return o.forEach(n=>{n.form_type==="sub_form"&&n.properties?s[n.key]=this.convertFormDataToOriginal(t[n.key]||{},n.properties):s[n.key]=t[n.key]}),s}setSocketData(t){if(!t)return;const o=t.result||t,s=o.action_item||o;s!=null&&s.params&&this.parseBackendData(s)}watchParams(){e.watch(()=>{var t;return(t=this.props.conf)==null?void 0:t.params},()=>this.initFormData(),{immediate:!0,deep:!0})}}const oe={class:"mix-body"},se={key:0,class:"json-editor"},ne={class:"editor-header"},ae={key:1,class:"edit-toolbar"},le={key:2,class:"empty-state"},ie={key:3,class:"form-content"},ue={key:0,class:"form-description"},ce={DEFAULT_ICON:q.DEFAULT_ICON,ACTIVE_ICON:q.ACTIVE_ICON,NAME_CN:"动态表单",NAME_EN:"ActionItem",ORDER:1,PLATFORM:["pc","screen","mobile"]},de={titleColor:"#111",bgColor:"#fff",radiusSize:8,labelWidth:100,isHideTitle:!1,showButtons:!0,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},me={},fe=[],pe=[],he={},ye={DEFAULT:ce,OPTIONS:de,DATA:me,PARAMS:fe,SOURCE:pe,COMMON:he},ge=e.defineComponent(T(O({},ye),{__name:"actionItem",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},emits:["submit","generate"],setup(k,{emit:t}){const o=k,s=e.ref(!1),n=e.ref(""),i=t,p=z.useCounterStore(),h=e.ref(),l=new re(o);l.setupLifecycle(),l.watchParams();const b=l.getStyle(),x=e.computed(()=>o.conf||{}),U=e.computed(()=>te.generateTitleStyle(o.conf.options));function N(a,r){return r.split(".").reduce((m,f)=>m==null?void 0:m[f],a)}function w(a,r,m){const f=r.split("."),d=f.pop(),u=f.reduce((_,V)=>((!_[V]||typeof _[V]!="object")&&(_[V]={}),_[V]),a);u[d]=m}function F(a,r,m){var f,d,u;if(!((f=a.rules)!=null&&f.length))return!1;for(const _ of a.rules){const V=_.related_key;if(!V)continue;const E=r?`${r}.${V}`:V,v=N(m,E),g=(d=_.conditions)==null?void 0:d.find(C=>C.value===v);if((u=g==null?void 0:g.property)!=null&&u.hidden)return!0}return!1}const I=e.defineComponent({name:"FormField",props:{param:{type:Object,required:!0},rootData:{type:Object,required:!0},actionItem:{type:Object,required:!0},parentPath:{type:String,default:""}},setup(a){var E;const r=a.param,m=a.rootData,f=a.actionItem,d=r.key,u=a.parentPath?`${a.parentPath}.${d}`:d,_=r.form_type==="sub_form"&&r.properties&&!r.items,V=r.form_type==="sub_form"&&((E=r.items)==null?void 0:E.properties);return()=>{if(F(r,a.parentPath,m))return null;if(_){let g=N(m,u);(!g||typeof g!="object"||Array.isArray(g))&&w(m,u,{});const C=r.properties.filter(y=>!F(y,u,m));return e.h("div",{class:"nested-group"},[e.h("div",{class:"nested-title"},r.cn_name),e.h("div",{class:"nested-content"},C.map(y=>e.h(I,{param:y,rootData:m,actionItem:f,key:y.key,parentPath:u})))])}if(V){let g=N(m,u);Array.isArray(g)||(w(m,u,[]),g=N(m,u));const C=r.items.properties;return e.h(c.ElFormItem,{label:r.cn_name},()=>[e.h("div",{class:"sub-form"},[...g.map((y,D)=>e.h("div",{class:"sub-item",key:D},[e.h("div",{class:"sub-fields"},C.map(S=>e.h("div",{class:"sub-field",key:S.key},[e.h("span",{class:"sub-label"},[S.required?e.h("span",{class:"required-star"},"*"):null,S.cn_name]),j(S,y,f)]))),e.h(c.ElButton,{type:"danger",icon:$.Delete,circle:!0,size:"small",onClick:()=>g.splice(D,1)})])),e.h(c.ElButton,{type:"primary",icon:$.Plus,onClick:()=>{const y={};C.forEach(D=>{y[D.key]=M(D)}),g.push(y)}},()=>"添加")])])}const v={label:r.cn_name,prop:u};return r.required&&(v.rules=[{required:!0,message:`请输入${r.cn_name}`,trigger:"blur"}]),e.h(c.ElFormItem,v,()=>R(r,u,m,f))}}});function R(a,r,m,f){var V,E;const d=f.isFieldDisabled(a),u=N(m,r),_=v=>w(m,r,v);switch(a.form_type){case"text":return e.h(c.ElInput,{modelValue:u!=null?u:"","onUpdate:modelValue":_,placeholder:a.description||`请输入${a.cn_name}`,disabled:d,size:"small"});case"textarea":return e.h(c.ElInput,{type:"textarea",modelValue:u!=null?u:"","onUpdate:modelValue":_,placeholder:a.description,disabled:d,rows:3});case"select":return e.h(c.ElSelect,{modelValue:u!=null?u:"","onUpdate:modelValue":_,placeholder:`请选择${a.cn_name}`,disabled:d,style:"width:100%",size:"small"},()=>(a.enum||[]).map(g=>e.h(c.ElOption,{key:g.value,label:g.cn_name,value:g.value})));case"number":return e.h(c.ElInputNumber,{modelValue:u!=null?u:0,"onUpdate:modelValue":_,disabled:d,min:(V=a.format)==null?void 0:V.min,max:(E=a.format)==null?void 0:E.max,style:"width:100%",size:"small"});case"switch":const v=u===!0||u==="true";return e.h(c.ElSwitch,{modelValue:v,"onUpdate:modelValue":_,disabled:d});default:return e.h(c.ElInput,{modelValue:u!=null?u:"","onUpdate:modelValue":_,disabled:d,size:"small"})}}function j(a,r,m){var u,_,V,E,v,g;const f=a.key,d=m.isFieldDisabled(a);switch(a.form_type){case"text":return e.h(c.ElInput,{modelValue:(u=r[f])!=null?u:"","onUpdate:modelValue":y=>r[f]=y,placeholder:a.description||`请输入${a.cn_name}`,disabled:d,size:"small"});case"select":return e.h(c.ElSelect,{modelValue:(_=r[f])!=null?_:"","onUpdate:modelValue":y=>r[f]=y,placeholder:`请选择${a.cn_name}`,disabled:d,style:"width:100%",size:"small"},()=>(a.enum||[]).map(y=>e.h(c.ElOption,{key:y.value,label:y.cn_name,value:y.value})));case"number":return e.h(c.ElInputNumber,{modelValue:(V=r[f])!=null?V:0,"onUpdate:modelValue":y=>r[f]=y,disabled:d,min:(E=a.format)==null?void 0:E.min,max:(v=a.format)==null?void 0:v.max,style:"width:100%",size:"small"});case"switch":const C=r[f]===!0||r[f]==="true";return e.h(c.ElSwitch,{modelValue:C,"onUpdate:modelValue":y=>r[f]=y,disabled:d});default:return e.h(c.ElInput,{modelValue:(g=r[f])!=null?g:"","onUpdate:modelValue":y=>r[f]=y,disabled:d,size:"small"})}}function M(a){var r,m;return a.default_value!==void 0?a.default_value:a.form_type==="switch"?!1:a.form_type==="checkbox_group"?[]:a.form_type==="number"?(m=(r=a.format)==null?void 0:r.min)!=null?m:0:""}const H=()=>{const a=l.applyJson();a.success?c.ElMessage.success("JSON 配置已应用"):c.ElMessage.error(a.error||"JSON 格式错误")},L=()=>{l.saveFormData(),c.ElMessage.success("保存成功")},W=()=>P(null,null,function*(){var a;try{yield(a=h.value)==null?void 0:a.validate();const r=l.exportTargetJson();n.value=JSON.stringify(r,null,2),s.value=!0,i("generate",r)}catch(r){c.ElMessage.error("请先完善必填项")}}),K=()=>{try{const a=document.createElement("textarea");a.value=n.value,a.style.position="fixed",a.style.opacity="0",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),c.ElMessage.success("已复制到剪贴板")}catch(a){c.ElMessage.error("复制失败")}};return e.onMounted(()=>{p.registerInstance(o.uid,l)}),e.onUnmounted(()=>{p.unregisterInstance(o.uid)}),e.watchEffect(()=>{o.conf.socketData&&l.setSocketData(o.conf.socketData)}),(a,r)=>{const m=J.ElEmpty,f=J.ElForm;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(b).bgColor,borderRadius:e.unref(b).radiusSize+"px"})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(U.value)},e.toDisplayString(x.value.action_name||x.value.caption||x.value.name),5),e.createElementVNode("div",oe,[k.mode==="edit"&&e.unref(l).showJsonEditor.value?(e.openBlock(),e.createElementBlock("div",se,[e.createElementVNode("div",ne,[r[8]||(r[8]=e.createElementVNode("span",null,"JSON 配置",-1)),e.createVNode(e.unref(c.ElButton),{size:"small",onClick:H},{default:e.withCtx(()=>[...r[6]||(r[6]=[e.createTextVNode("应用",-1)])]),_:1}),e.createVNode(e.unref(c.ElButton),{size:"small",onClick:r[0]||(r[0]=d=>e.unref(l).showJsonEditor.value=!1)},{default:e.withCtx(()=>[...r[7]||(r[7]=[e.createTextVNode("关闭",-1)])]),_:1})]),e.createVNode(e.unref(c.ElInput),{type:"textarea",modelValue:e.unref(l).jsonInput.value,"onUpdate:modelValue":r[1]||(r[1]=d=>e.unref(l).jsonInput.value=d),rows:12,placeholder:"粘贴 action_item JSON..."},null,8,["modelValue"])])):e.createCommentVNode("",!0),k.mode==="edit"&&!e.unref(l).showJsonEditor.value?(e.openBlock(),e.createElementBlock("div",ae,[e.createVNode(e.unref(c.ElButton),{size:"small",type:"primary",onClick:r[2]||(r[2]=d=>e.unref(l).showJsonEditor.value=!0)},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("编辑 JSON",-1)])]),_:1})])):e.createCommentVNode("",!0),e.createVNode(e.unref(c.ElDialog),{modelValue:s.value,"onUpdate:modelValue":r[5]||(r[5]=d=>s.value=d),title:"生成的目标JSON",width:"600px","close-on-click-modal":!1},{footer:e.withCtx(()=>[e.createVNode(e.unref(c.ElButton),{onClick:K},{default:e.withCtx(()=>[...r[10]||(r[10]=[e.createTextVNode("复制",-1)])]),_:1}),e.createVNode(e.unref(c.ElButton),{type:"primary",onClick:r[4]||(r[4]=d=>s.value=!1)},{default:e.withCtx(()=>[...r[11]||(r[11]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(c.ElInput),{type:"textarea",modelValue:n.value,"onUpdate:modelValue":r[3]||(r[3]=d=>n.value=d),rows:16,readonly:""},null,8,["modelValue"])]),_:1},8,["modelValue"]),!e.unref(l).hasParams&&k.mode!=="edit"?(e.openBlock(),e.createElementBlock("div",le,[e.createVNode(m,{description:"等待表单配置...","image-size":80})])):e.createCommentVNode("",!0),e.unref(l).hasParams?(e.openBlock(),e.createElementBlock("div",ie,[x.value.description?(e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("p",null,e.toDisplayString(x.value.description),1)])):e.createCommentVNode("",!0),e.createVNode(f,{ref_key:"formRef",ref:h,model:e.unref(l).formData,rules:e.unref(l).getFormRules(),"label-width":e.unref(b).labelWidth+"px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).getVisibleParams(),d=>(e.openBlock(),e.createBlock(e.unref(I),{key:d.key,param:d,rootData:e.unref(l).formData,actionItem:e.unref(l)},null,8,["param","rootData","actionItem"]))),128)),e.unref(b).showButtons?(e.openBlock(),e.createBlock(e.unref(c.ElFormItem),{key:0,class:"form-buttons"},{default:e.withCtx(()=>[e.createVNode(e.unref(c.ElButton),{type:"primary",onClick:L},{default:e.withCtx(()=>[...r[12]||(r[12]=[e.createTextVNode("保存",-1)])]),_:1}),e.createVNode(e.unref(c.ElButton),{type:"success",onClick:W},{default:e.withCtx(()=>[...r[13]||(r[13]=[e.createTextVNode("生成JSON",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["model","rules","label-width"])])):e.createCommentVNode("",!0)]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),_e=z._export_sfc(ge,[["__scopeId","data-v-5198cc32"]]);exports.default=_e;
|
|
1
|
+
"use strict";var G=Object.defineProperty,Q=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var Y=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var A=(k,t,o)=>t in k?G(k,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):k[t]=o,O=(k,t)=>{for(var o in t||(t={}))Y.call(t,o)&&A(k,o,t[o]);if(B)for(var o of B(t))Z.call(t,o)&&A(k,o,t[o]);return k},T=(k,t)=>Q(k,X(t));var P=(k,t,o)=>new Promise((s,n)=>{var i=l=>{try{h(o.next(l))}catch(b){n(b)}},p=l=>{try{h(o.throw(l))}catch(b){n(b)}},h=l=>l.done?s(l.value):Promise.resolve(l.value).then(i,p);h((o=o.apply(k,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/empty/style/css");const e=require("vue"),c=require("element-plus"),$=require("@element-plus/icons-vue"),z=require("./index-Cm7hGuPj.cjs"),ee=require("./BaseComponent-BabOc6Kc.cjs"),te=require("./titleStyle-NSnz6cUg.cjs"),q=require("./ele-crd-icon-BvNgAPKW.cjs");class re extends ee.BaseComponent{constructor(t){super(t,"actionItem"),this.formData=e.reactive({}),this.showJsonEditor=e.ref(!1),this.jsonInput=e.ref("")}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#333"),radiusSize:this.getOptionValue("radiusSize",8),labelWidth:this.getOptionValue("labelWidth",100),isHideTitle:this.getOptionValue("isHideTitle",!1),showButtons:this.getOptionValue("showButtons",!0)}}init(){var o;this.Style.value=this.extractStyles(),this.applyTheme();const t=this.props.conf.data;t&&typeof t=="object"&&((o=t.params)!=null&&o.length)&&this.parseBackendData(t),this.initFormData()}getParams(){var t;return Array.isArray((t=this.props.conf)==null?void 0:t.params)?this.props.conf.params:[]}get hasParams(){return this.getParams().length>0}getVisibleParams(){return this.getParams().filter(t=>t.form_type!=="hidden"&&!this.isFieldHidden(t))}getFormRules(){const t={},o=(s,n="")=>{s.forEach(i=>{const p=n?`${n}.${i.key}`:i.key;if(i.form_type==="sub_form"&&i.properties&&!i.items){o(i.properties,p);return}if(i.form_type==="sub_form"&&i.items)return;const h=this.buildValidationRules(i);h.length&&(t[p]=h)})};return o(this.getParams()),t}initFormData(){var o,s;const t=(s=(o=this.props.conf)==null?void 0:o.data)==null?void 0:s.values;this.getParams().forEach(n=>{t&&t[n.key]!==void 0?this.formData[n.key]=t[n.key]:this.formData[n.key]=this.getDefaultValue(n)})}resetForm(){this.initFormData()}getDefaultValue(t){var o,s;if(t.form_type==="sub_form"&&t.properties&&!t.items){const n={};return t.properties.forEach(i=>{n[i.key]=this.getDefaultValue(i)}),n}return t.form_type==="sub_form"&&t.items?Array.isArray(t.default_value)?t.default_value:[]:t.form_type==="checkbox_group"?Array.isArray(t.default_value)?t.default_value:[]:t.default_value!==null&&t.default_value!==void 0?t.default_value:t.form_type==="switch"?!1:t.form_type==="number"?(s=(o=t.format)==null?void 0:o.min)!=null?s:0:""}buildValidationRules(t){const o=[];t.required&&o.push({required:!0,message:`请输入${t.cn_name}`,trigger:"blur"});const s=t.format;return s&&(s.pattern&&o.push({pattern:new RegExp(s.pattern),message:`${t.cn_name}格式不正确`,trigger:"blur"}),(s.min_length||s.max_length)&&o.push({min:s.min_length,max:s.max_length,message:s.min_length&&s.max_length?`长度在 ${s.min_length} 到 ${s.max_length} 个字符`:s.min_length?`最少 ${s.min_length} 个字符`:`最多 ${s.max_length} 个字符`,trigger:"blur"})),o}isFieldHidden(t){var o,s,n,i;if(!((o=t.rules)!=null&&o.length))return!1;for(const p of t.rules){const h=this.formData[(s=p.related_key)==null?void 0:s.split(".")[0]],l=(n=p.conditions)==null?void 0:n.find(b=>b.value===h);if((i=l==null?void 0:l.property)!=null&&i.hidden)return!0}return!1}isFieldDisabled(t){var o,s,n,i;if(!((o=t.rules)!=null&&o.length))return!1;for(const p of t.rules){const h=this.formData[(s=p.related_key)==null?void 0:s.split(".")[0]],l=(n=p.conditions)==null?void 0:n.find(b=>b.value===h);if((i=l==null?void 0:l.property)!=null&&i.disabled)return!0}return!1}getFieldOptions(t){var s,n;let o=t.enum||[];if(t.rules)for(const i of t.rules){if(!i.related_key)continue;const p=this.formData[i.related_key],h=(s=i.conditions)==null?void 0:s.find(l=>l.value===p);if((n=h==null?void 0:h.property)!=null&&n.enum){o=h.property.enum;break}}return o}onFieldChange(t){this.getParams().forEach(o=>{if(o.rules)for(const s of o.rules)s.related_key===t.key&&(this.formData[o.key]=o.form_type==="checkbox_group"?[]:o.form_type==="switch"?!1:"")})}addSubItem(t){var n;Array.isArray(this.formData[t.key])||(this.formData[t.key]=[]);const o=((n=t.items)==null?void 0:n.properties)||t.properties||[],s={};o.forEach(i=>{s[i.key]=this.getDefaultValue(i)}),this.formData[t.key].push(s)}removeSubItem(t,o){var s;(s=this.formData[t])==null||s.splice(o,1)}getSubFieldOptions(t,o){var s,n,i;if((s=t.enum)!=null&&s.length)return t.enum;if(t.rules)for(const p of t.rules){if(!p.related_key)continue;const h=p.related_key.split(".").pop(),l=(n=p.conditions)==null?void 0:n.find(b=>b.value===o[h]);if((i=l==null?void 0:l.property)!=null&&i.enum)return l.property.enum}return[]}onSubFieldChange(t,o,s){var i;(((i=t.items)==null?void 0:i.properties)||t.properties||[]).forEach(p=>{var h;if(p.rules)for(const l of p.rules)((h=l.related_key)==null?void 0:h.split(".").pop())===o.key&&(s[p.key]="")})}applyJson(){try{const t=JSON.parse(this.jsonInput.value);if(t.params&&Array.isArray(t.params))this.props.conf.action_name=t.action_name||"表单",this.props.conf.description=t.description||"",this.props.conf.params=t.params,this.props.conf.data=t,this.initFormData();else if(Array.isArray(t))this.props.conf.params=t,this.props.conf.data={params:t},this.initFormData();else if(t.key&&t.form_type)this.props.conf.params=[t],this.initFormData();else return{success:!1,error:"无法识别的 JSON 格式"};return this.showJsonEditor.value=!1,{success:!0}}catch(t){return{success:!1,error:t.message||"JSON 格式错误"}}}exportTargetJson(){return this.exportToOriginalFormat()}parseBackendData(t){t&&(this.props.conf.action_name=t.action_name,this.props.conf.description=t.description,this.props.conf.params=t.params,this.props.conf.block=t.block,this.props.conf.action=t.action,this.props.conf.data=t,this.initFormData())}serializeToBackend(){return{block:this.props.conf.block,action:this.props.conf.action,params:O({},this.formData),originalFormat:this.exportToOriginalFormat()}}saveFormData(){this.props.conf.data||(this.props.conf.data={}),this.props.conf.data.values=JSON.parse(JSON.stringify(this.formData))}getFullConfig(){return{action_name:this.props.conf.action_name,description:this.props.conf.description,block:this.props.conf.block,action:this.props.conf.action,params:this.props.conf.params}}exportToOriginalFormat(){return this.convertFormDataToOriginal(this.formData,this.getParams())}convertFormDataToOriginal(t,o){const s={};return o.forEach(n=>{var p;const i=t[n.key];n.form_type==="sub_form"?n.properties&&!n.items?s[n.key]=this.convertFormDataToOriginal(i||{},n.properties):(p=n.items)!=null&&p.properties&&(s[n.key]=Array.isArray(i)?i.map(h=>this.convertArrayItemToOriginal(h,n.items.properties)):[]):n.db_type==="boolean"&&typeof i=="boolean"?s[n.key]=i?"true":"false":s[n.key]=i}),s}convertArrayItemToOriginal(t,o){const s={};return o.forEach(n=>{n.form_type==="sub_form"&&n.properties?s[n.key]=this.convertFormDataToOriginal(t[n.key]||{},n.properties):s[n.key]=t[n.key]}),s}setSocketData(t){if(!t)return;const o=t.result||t,s=o.action_item||o;s!=null&&s.params&&this.parseBackendData(s)}watchParams(){e.watch(()=>{var t;return(t=this.props.conf)==null?void 0:t.params},()=>this.initFormData(),{immediate:!0,deep:!0})}}const oe={class:"mix-body"},se={key:0,class:"json-editor"},ne={class:"editor-header"},ae={key:1,class:"edit-toolbar"},le={key:2,class:"empty-state"},ie={key:3,class:"form-content"},ue={key:0,class:"form-description"},ce={DEFAULT_ICON:q.DEFAULT_ICON,ACTIVE_ICON:q.ACTIVE_ICON,NAME_CN:"动态表单",NAME_EN:"ActionItem",ORDER:1,PLATFORM:["pc","screen","mobile"]},de={titleColor:"#111",bgColor:"#fff",radiusSize:8,labelWidth:100,isHideTitle:!1,showButtons:!0,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},me={},fe=[],pe=[],he={},ye={DEFAULT:ce,OPTIONS:de,DATA:me,PARAMS:fe,SOURCE:pe,COMMON:he},ge=e.defineComponent(T(O({},ye),{__name:"actionItem",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},emits:["submit","generate"],setup(k,{emit:t}){const o=k,s=e.ref(!1),n=e.ref(""),i=t,p=z.useCounterStore(),h=e.ref(),l=new re(o);l.setupLifecycle(),l.watchParams();const b=l.getStyle(),x=e.computed(()=>o.conf||{}),U=e.computed(()=>te.generateTitleStyle(o.conf.options));function N(a,r){return r.split(".").reduce((m,f)=>m==null?void 0:m[f],a)}function w(a,r,m){const f=r.split("."),d=f.pop(),u=f.reduce((_,V)=>((!_[V]||typeof _[V]!="object")&&(_[V]={}),_[V]),a);u[d]=m}function F(a,r,m){var f,d,u;if(!((f=a.rules)!=null&&f.length))return!1;for(const _ of a.rules){const V=_.related_key;if(!V)continue;const E=r?`${r}.${V}`:V,v=N(m,E),g=(d=_.conditions)==null?void 0:d.find(C=>C.value===v);if((u=g==null?void 0:g.property)!=null&&u.hidden)return!0}return!1}const I=e.defineComponent({name:"FormField",props:{param:{type:Object,required:!0},rootData:{type:Object,required:!0},actionItem:{type:Object,required:!0},parentPath:{type:String,default:""}},setup(a){var E;const r=a.param,m=a.rootData,f=a.actionItem,d=r.key,u=a.parentPath?`${a.parentPath}.${d}`:d,_=r.form_type==="sub_form"&&r.properties&&!r.items,V=r.form_type==="sub_form"&&((E=r.items)==null?void 0:E.properties);return()=>{if(F(r,a.parentPath,m))return null;if(_){let g=N(m,u);(!g||typeof g!="object"||Array.isArray(g))&&w(m,u,{});const C=r.properties.filter(y=>!F(y,u,m));return e.h("div",{class:"nested-group"},[e.h("div",{class:"nested-title"},r.cn_name),e.h("div",{class:"nested-content"},C.map(y=>e.h(I,{param:y,rootData:m,actionItem:f,key:y.key,parentPath:u})))])}if(V){let g=N(m,u);Array.isArray(g)||(w(m,u,[]),g=N(m,u));const C=r.items.properties;return e.h(c.ElFormItem,{label:r.cn_name},()=>[e.h("div",{class:"sub-form"},[...g.map((y,D)=>e.h("div",{class:"sub-item",key:D},[e.h("div",{class:"sub-fields"},C.map(S=>e.h("div",{class:"sub-field",key:S.key},[e.h("span",{class:"sub-label"},[S.required?e.h("span",{class:"required-star"},"*"):null,S.cn_name]),j(S,y,f)]))),e.h(c.ElButton,{type:"danger",icon:$.Delete,circle:!0,size:"small",onClick:()=>g.splice(D,1)})])),e.h(c.ElButton,{type:"primary",icon:$.Plus,onClick:()=>{const y={};C.forEach(D=>{y[D.key]=M(D)}),g.push(y)}},()=>"添加")])])}const v={label:r.cn_name,prop:u};return r.required&&(v.rules=[{required:!0,message:`请输入${r.cn_name}`,trigger:"blur"}]),e.h(c.ElFormItem,v,()=>R(r,u,m,f))}}});function R(a,r,m,f){var V,E;const d=f.isFieldDisabled(a),u=N(m,r),_=v=>w(m,r,v);switch(a.form_type){case"text":return e.h(c.ElInput,{modelValue:u!=null?u:"","onUpdate:modelValue":_,placeholder:a.description||`请输入${a.cn_name}`,disabled:d,size:"small"});case"textarea":return e.h(c.ElInput,{type:"textarea",modelValue:u!=null?u:"","onUpdate:modelValue":_,placeholder:a.description,disabled:d,rows:3});case"select":return e.h(c.ElSelect,{modelValue:u!=null?u:"","onUpdate:modelValue":_,placeholder:`请选择${a.cn_name}`,disabled:d,style:"width:100%",size:"small"},()=>(a.enum||[]).map(g=>e.h(c.ElOption,{key:g.value,label:g.cn_name,value:g.value})));case"number":return e.h(c.ElInputNumber,{modelValue:u!=null?u:0,"onUpdate:modelValue":_,disabled:d,min:(V=a.format)==null?void 0:V.min,max:(E=a.format)==null?void 0:E.max,style:"width:100%",size:"small"});case"switch":const v=u===!0||u==="true";return e.h(c.ElSwitch,{modelValue:v,"onUpdate:modelValue":_,disabled:d});default:return e.h(c.ElInput,{modelValue:u!=null?u:"","onUpdate:modelValue":_,disabled:d,size:"small"})}}function j(a,r,m){var u,_,V,E,v,g;const f=a.key,d=m.isFieldDisabled(a);switch(a.form_type){case"text":return e.h(c.ElInput,{modelValue:(u=r[f])!=null?u:"","onUpdate:modelValue":y=>r[f]=y,placeholder:a.description||`请输入${a.cn_name}`,disabled:d,size:"small"});case"select":return e.h(c.ElSelect,{modelValue:(_=r[f])!=null?_:"","onUpdate:modelValue":y=>r[f]=y,placeholder:`请选择${a.cn_name}`,disabled:d,style:"width:100%",size:"small"},()=>(a.enum||[]).map(y=>e.h(c.ElOption,{key:y.value,label:y.cn_name,value:y.value})));case"number":return e.h(c.ElInputNumber,{modelValue:(V=r[f])!=null?V:0,"onUpdate:modelValue":y=>r[f]=y,disabled:d,min:(E=a.format)==null?void 0:E.min,max:(v=a.format)==null?void 0:v.max,style:"width:100%",size:"small"});case"switch":const C=r[f]===!0||r[f]==="true";return e.h(c.ElSwitch,{modelValue:C,"onUpdate:modelValue":y=>r[f]=y,disabled:d});default:return e.h(c.ElInput,{modelValue:(g=r[f])!=null?g:"","onUpdate:modelValue":y=>r[f]=y,disabled:d,size:"small"})}}function M(a){var r,m;return a.default_value!==void 0?a.default_value:a.form_type==="switch"?!1:a.form_type==="checkbox_group"?[]:a.form_type==="number"?(m=(r=a.format)==null?void 0:r.min)!=null?m:0:""}const H=()=>{const a=l.applyJson();a.success?c.ElMessage.success("JSON 配置已应用"):c.ElMessage.error(a.error||"JSON 格式错误")},L=()=>{l.saveFormData(),c.ElMessage.success("保存成功")},W=()=>P(null,null,function*(){var a;try{yield(a=h.value)==null?void 0:a.validate();const r=l.exportTargetJson();n.value=JSON.stringify(r,null,2),s.value=!0,i("generate",r)}catch(r){c.ElMessage.error("请先完善必填项")}}),K=()=>{try{const a=document.createElement("textarea");a.value=n.value,a.style.position="fixed",a.style.opacity="0",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),c.ElMessage.success("已复制到剪贴板")}catch(a){c.ElMessage.error("复制失败")}};return e.onMounted(()=>{p.registerInstance(o.uid,l)}),e.onUnmounted(()=>{p.unregisterInstance(o.uid)}),e.watchEffect(()=>{o.conf.socketData&&l.setSocketData(o.conf.socketData)}),(a,r)=>{const m=J.ElEmpty,f=J.ElForm;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(b).bgColor,borderRadius:e.unref(b).radiusSize+"px"})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(U.value)},e.toDisplayString(x.value.action_name||x.value.caption||x.value.name),5),e.createElementVNode("div",oe,[k.mode==="edit"&&e.unref(l).showJsonEditor.value?(e.openBlock(),e.createElementBlock("div",se,[e.createElementVNode("div",ne,[r[8]||(r[8]=e.createElementVNode("span",null,"JSON 配置",-1)),e.createVNode(e.unref(c.ElButton),{size:"small",onClick:H},{default:e.withCtx(()=>[...r[6]||(r[6]=[e.createTextVNode("应用",-1)])]),_:1}),e.createVNode(e.unref(c.ElButton),{size:"small",onClick:r[0]||(r[0]=d=>e.unref(l).showJsonEditor.value=!1)},{default:e.withCtx(()=>[...r[7]||(r[7]=[e.createTextVNode("关闭",-1)])]),_:1})]),e.createVNode(e.unref(c.ElInput),{type:"textarea",modelValue:e.unref(l).jsonInput.value,"onUpdate:modelValue":r[1]||(r[1]=d=>e.unref(l).jsonInput.value=d),rows:12,placeholder:"粘贴 action_item JSON..."},null,8,["modelValue"])])):e.createCommentVNode("",!0),k.mode==="edit"&&!e.unref(l).showJsonEditor.value?(e.openBlock(),e.createElementBlock("div",ae,[e.createVNode(e.unref(c.ElButton),{size:"small",type:"primary",onClick:r[2]||(r[2]=d=>e.unref(l).showJsonEditor.value=!0)},{default:e.withCtx(()=>[...r[9]||(r[9]=[e.createTextVNode("编辑 JSON",-1)])]),_:1})])):e.createCommentVNode("",!0),e.createVNode(e.unref(c.ElDialog),{modelValue:s.value,"onUpdate:modelValue":r[5]||(r[5]=d=>s.value=d),title:"生成的目标JSON",width:"600px","close-on-click-modal":!1},{footer:e.withCtx(()=>[e.createVNode(e.unref(c.ElButton),{onClick:K},{default:e.withCtx(()=>[...r[10]||(r[10]=[e.createTextVNode("复制",-1)])]),_:1}),e.createVNode(e.unref(c.ElButton),{type:"primary",onClick:r[4]||(r[4]=d=>s.value=!1)},{default:e.withCtx(()=>[...r[11]||(r[11]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(c.ElInput),{type:"textarea",modelValue:n.value,"onUpdate:modelValue":r[3]||(r[3]=d=>n.value=d),rows:16,readonly:""},null,8,["modelValue"])]),_:1},8,["modelValue"]),!e.unref(l).hasParams&&k.mode!=="edit"?(e.openBlock(),e.createElementBlock("div",le,[e.createVNode(m,{description:"等待表单配置...","image-size":80})])):e.createCommentVNode("",!0),e.unref(l).hasParams?(e.openBlock(),e.createElementBlock("div",ie,[x.value.description?(e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("p",null,e.toDisplayString(x.value.description),1)])):e.createCommentVNode("",!0),e.createVNode(f,{ref_key:"formRef",ref:h,model:e.unref(l).formData,rules:e.unref(l).getFormRules(),"label-width":e.unref(b).labelWidth+"px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).getVisibleParams(),d=>(e.openBlock(),e.createBlock(e.unref(I),{key:d.key,param:d,rootData:e.unref(l).formData,actionItem:e.unref(l)},null,8,["param","rootData","actionItem"]))),128)),e.unref(b).showButtons?(e.openBlock(),e.createBlock(e.unref(c.ElFormItem),{key:0,class:"form-buttons"},{default:e.withCtx(()=>[e.createVNode(e.unref(c.ElButton),{type:"primary",onClick:L},{default:e.withCtx(()=>[...r[12]||(r[12]=[e.createTextVNode("保存",-1)])]),_:1}),e.createVNode(e.unref(c.ElButton),{type:"success",onClick:W},{default:e.withCtx(()=>[...r[13]||(r[13]=[e.createTextVNode("生成JSON",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["model","rules","label-width"])])):e.createCommentVNode("",!0)]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),_e=z._export_sfc(ge,[["__scopeId","data-v-5198cc32"]]);exports.default=_e;
|
|
@@ -12,9 +12,9 @@ var N = (c, l, n) => l in c ? $(c, l, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
}, L = (c, l) => H(c, W(l));
|
|
13
13
|
import { defineComponent as V, computed as C, onMounted as G, watch as q, openBlock as J, createElementBlock as K, normalizeStyle as j, createElementVNode as b, unref as y, toDisplayString as Q, renderSlot as X } from "vue";
|
|
14
14
|
import "html2canvas";
|
|
15
|
-
import { _ as Y } from "./index-
|
|
15
|
+
import { _ as Y } from "./index-DUL649KZ.js";
|
|
16
16
|
import "element-plus";
|
|
17
|
-
import { E as Z } from "./EChartComponentBase-
|
|
17
|
+
import { E as Z } from "./EChartComponentBase-DCKFGbqb.js";
|
|
18
18
|
import { A as ee, D as te } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
19
19
|
const le = { class: "panel-header" }, oe = ["id"], ae = {
|
|
20
20
|
DEFAULT_ICON: te,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var w=Object.defineProperty,V=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var N=(u,o,i)=>o in u?w(u,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):u[o]=i,z=(u,o)=>{for(var i in o||(o={}))R.call(o,i)&&N(u,i,o[i]);if(I)for(var i of I(o))$.call(o,i)&&N(u,i,o[i]);return u},k=(u,o)=>V(u,q(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue");require("html2canvas");const H=require("./index-
|
|
1
|
+
"use strict";var w=Object.defineProperty,V=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var N=(u,o,i)=>o in u?w(u,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):u[o]=i,z=(u,o)=>{for(var i in o||(o={}))R.call(o,i)&&N(u,i,o[i]);if(I)for(var i of I(o))$.call(o,i)&&N(u,i,o[i]);return u},k=(u,o)=>V(u,q(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue");require("html2canvas");const H=require("./index-Cm7hGuPj.cjs");require("element-plus");const P=require("./EChartComponentBase-DM6aSCAR.cjs"),L=require("./ele-lin-icon-Dke_1AmT.cjs"),U={class:"panel-header"},W=["id"],G={DEFAULT_ICON:L.DEFAULT_ICON,ACTIVE_ICON:L.ACTIVE_ICON,NAME_CN:"预警等级",NAME_EN:"Alarm Level Chart",ORDER:12,PLATFORM:["pc","screen"]},J={title:{value:"预警等级",type:"string",label:"标题"},bgColor:{value:"#f5f7fa",type:"color",label:"setting.bgColor"},panelBgColor:{value:"#ffffff",type:"color",label:"面板背景色"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},titleFontSize:{value:16,type:"number",label:"标题字体大小",min:12,max:24},centerFontSize:{value:32,type:"number",label:"中心数字大小",min:18,max:48},level1Color:{value:"#F57676",type:"color",label:"一级告警颜色"},level2Color:{value:"#FFA500",type:"color",label:"二级告警颜色"},level3Color:{value:"#fadb14",type:"color",label:"三级告警颜色"},level4Color:{value:"#66B1FF",type:"color",label:"四级告警颜色"},normalColor:{value:"#67C23A",type:"color",label:"运行正常颜色"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},K=[{name:"设备1",fv:"alarm_level",fvDeviceName:"",object_id:""}],Q=["object_id","name","fv","fvDeviceName"],X=["mosaic"],Y={useAlias:!1,multiObject:!0,source:"mosaic"},Z=200,ee={DEFAULT:G,OPTIONS:J,DATA:K,PARAMS:Q,SOURCE:X,COMMON:Y,ITEMS:Z},te=l.defineComponent(k(z({},ee),{__name:"alarmLevelChart",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(u){const o=u,i=["一级告警","二级告警","三级告警","四级告警","运行正常"],b=new Map;class j extends P.EChartComponentBase{extractStyles(){var a,s,n,v,f,h,p,_,A,x,O,F,E,M;const e=(a=this.props.conf)==null?void 0:a.options,c=((s=e==null?void 0:e.linkChannel)==null?void 0:s.value)||"gnss",r=((n=e==null?void 0:e.customChannel)==null?void 0:n.value)||"";return{title:((v=e==null?void 0:e.title)==null?void 0:v.value)||"预警等级",bgColor:((f=e==null?void 0:e.bgColor)==null?void 0:f.value)||"#f5f7fa",panelBgColor:((h=e==null?void 0:e.panelBgColor)==null?void 0:h.value)||"#ffffff",textColor:((p=e==null?void 0:e.textColor)==null?void 0:p.value)||"#333333",titleFontSize:((_=e==null?void 0:e.titleFontSize)==null?void 0:_.value)||16,centerFontSize:((A=e==null?void 0:e.centerFontSize)==null?void 0:A.value)||32,level1Color:((x=e==null?void 0:e.level1Color)==null?void 0:x.value)||"#F57676",level2Color:((O=e==null?void 0:e.level2Color)==null?void 0:O.value)||"#FFA500",level3Color:((F=e==null?void 0:e.level3Color)==null?void 0:F.value)||"#fadb14",level4Color:((E=e==null?void 0:e.level4Color)==null?void 0:E.value)||"#66B1FF",normalColor:((M=e==null?void 0:e.normalColor)==null?void 0:M.value)||"#67C23A",linkChannel:c==="custom"&&r?r:c}}getChartOption(){return C(this.Style.value)}setHistoryData(e){var r;if(!e||!this.chartObj)return;const c=((r=this.props.conf)==null?void 0:r.data)||[];!Array.isArray(c)||!c.length||(c.forEach((a,s)=>{if(!a.fv)return;const n=Array.isArray(e)?e[s]:null,v=Array.isArray(n)&&n.length?n[0]:null;if(!v)return;const f=v[a.fv];if(f==null)return;const h=Math.min(Math.max(typeof f=="number"?Math.round(f):Math.round(parseFloat(String(f)))||0,0),4),p=a.object_id||a.name||"";p&&b.set(p,h)}),this.chartObj.setOption(C(this.Style.value),!0))}setSocketData(e){var r;if(!e)return;(((r=this.props.conf)==null?void 0:r.data)||[]).forEach(a=>{if(!a.fv)return;const s=a.object_id||a.name||"";if(!s)return;const n=this.extractDataValue(e,a.fv);if(n!=null){const v=typeof n=="number"?Math.min(Math.max(Math.round(n),0),4):4;b.set(s,v)}}),this.chartObj&&this.chartObj.setOption(C(this.Style.value),!0)}onLinkEvent(e){}}const m=new j(o,"alarmLevelChart");m.setupLifecycle();const d=m.getStyle(),D=m.getEchartId(),y=l.computed(()=>{var t;return((t=o.conf)==null?void 0:t.data)||[]}),g=l.computed(()=>{const t=[0,0,0,0,0];return y.value.length===0&&o.mode==="edit"?[2,5,5,4,7]:(y.value.forEach(e=>{const c=e.object_id||e.name||"",r=b.get(c),a=typeof r=="number"?r:4;t[a]++}),t)}),T=l.computed(()=>{const t=g.value;for(let e=0;e<5;e++)if(t[e]>0)return{idx:e,count:t[e],name:i[e]};return{idx:4,count:0,name:"运行正常"}}),B=l.computed(()=>({backgroundColor:d.value.bgColor})),C=t=>{const e=g.value,c=[t.level1Color,t.level2Color,t.level3Color,t.level4Color,t.normalColor],r=T.value,a=c[r.idx];return{backgroundColor:"transparent",tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},legend:{orient:"vertical",right:"5%",top:"middle",itemWidth:10,itemHeight:10,itemGap:14,textStyle:{fontSize:13,color:t.textColor},formatter:s=>{const n=i.indexOf(s);return`${s} ${n>=0?e[n]:0}`}},series:[{type:"pie",radius:["48%","70%"],center:["30%","50%"],avoidLabelOverlap:!1,label:{show:!0,position:"center",formatter:()=>`{num|${r.count}}
|
|
2
2
|
{txt|${r.name}}`,rich:{num:{fontSize:t.centerFontSize,fontWeight:"bold",color:a,lineHeight:t.centerFontSize+10},txt:{fontSize:13,color:"#999",lineHeight:22}}},labelLine:{show:!1},itemStyle:{borderRadius:4,borderColor:"#fff",borderWidth:2},data:i.map((s,n)=>({value:e[n],name:s,itemStyle:{color:c[n]}}))}]}},S=()=>{const t=m.getChartInstance();t&&t.setOption(C(d.value),!0)};return l.onMounted(()=>{o.mode==="edit"&&S(),setTimeout(()=>{var t;return(t=m.getChartInstance())==null?void 0:t.resize()},200)}),l.watch(()=>o.conf,()=>{o.mode==="edit"&&S()},{deep:!0}),(t,e)=>(l.openBlock(),l.createElementBlock("div",{class:"alarm-level-chart",style:l.normalizeStyle(B.value)},[l.createElementVNode("div",U,[e[0]||(e[0]=l.createElementVNode("span",{class:"indicator-dot"},null,-1)),l.createElementVNode("span",{class:"panel-title",style:l.normalizeStyle({color:l.unref(d).textColor,fontSize:l.unref(d).titleFontSize+"px"})},l.toDisplayString(l.unref(d).title),5)]),l.createElementVNode("div",{id:l.unref(D),class:"chart-container"},null,8,W),l.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),le=H._export_sfc(te,[["__scopeId","data-v-a4efd6a7"]]);exports.default=le;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var U=Object.defineProperty,G=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var I=(f,s,u)=>s in f?U(f,s,{enumerable:!0,configurable:!0,writable:!0,value:u}):f[s]=u,V=(f,s)=>{for(var u in s||(s={}))$.call(s,u)&&I(f,u,s[u]);if(L)for(var u of L(s))W.call(s,u)&&I(f,u,s[u]);return f},B=(f,s)=>G(f,H(s));var D=(f,s,u)=>new Promise((g,m)=>{var b=h=>{try{C(u.next(h))}catch(_){m(_)}},x=h=>{try{C(u.throw(h))}catch(_){m(_)}},C=h=>h.done?g(h.value):Promise.resolve(h.value).then(b,x);C((u=u.apply(f,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const J=require("./BaseComponent-
|
|
1
|
+
"use strict";var U=Object.defineProperty,G=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var I=(f,s,u)=>s in f?U(f,s,{enumerable:!0,configurable:!0,writable:!0,value:u}):f[s]=u,V=(f,s)=>{for(var u in s||(s={}))$.call(s,u)&&I(f,u,s[u]);if(L)for(var u of L(s))W.call(s,u)&&I(f,u,s[u]);return f},B=(f,s)=>G(f,H(s));var D=(f,s,u)=>new Promise((g,m)=>{var b=h=>{try{C(u.next(h))}catch(_){m(_)}},x=h=>{try{C(u.throw(h))}catch(_){m(_)}},C=h=>h.done?g(h.value):Promise.resolve(h.value).then(b,x);C((u=u.apply(f,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const J=require("./BaseComponent-BabOc6Kc.cjs"),w=require("./index-Cm7hGuPj.cjs"),O=require("./ele-lst-icon-CrxnHZ-A.cjs"),Q={class:"panel-header"},X={class:"header-left"},Y={class:"header-title"},Z={class:"header-right"},K=["disabled"],ee={class:"page-info"},te=["disabled"],le={class:"table-area"},ae={class:"data-table"},re=["onClick"],ne={DEFAULT_ICON:O.DEFAULT_ICON,ACTIVE_ICON:O.ACTIVE_ICON,NAME_CN:"监测预警表格",NAME_EN:"Alert Table",ORDER:2,PLATFORM:["pc","screen"]},oe={title:{value:"监测预警 (GNSS)",type:"string",label:"component.alertTable.title"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},headerBgColor:{value:"#f5f5f5",type:"color",label:"component.alertTable.headerBgColor"},pageSize:{value:5,type:"number",label:"component.alertTable.pageSize",min:3,max:20},alertColumn:{value:"speed",type:"string",label:"告警判定列(key)"},alertLevels:{value:[{name:"正常",minValue:0,maxValue:5,color:"#52c41a"},{name:"二级告警 (警告)",minValue:5,maxValue:10,color:"#faad14"},{name:"一级告警 (危险)",minValue:10,maxValue:999,color:"#ff4d4f"}],type:"alertLevels",label:"component.alertTable.alertLevels"},columns:{value:[{key:"area",label:"区域",width:"80px",useFv:!0},{key:"deviceId",label:"编号",width:"100px",useFv:!0},{key:"elevation",label:"标高",width:"80px",useFv:!0},{key:"speed",label:"速度",width:"80px",useFv:!0},{key:"threshold",label:"阈值",width:"60px",useFv:!1}],type:"columns",label:"component.alertTable.columns"},linkChannel:{value:"gnss",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"设备联动",value:"device"},{label:"告警联动",value:"alarm"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},se=[{object_id:"",threshold:"8"}],ce=["object_id","threshold"],ue=["mosaic","statistics"],ie={useAlias:!1,multiObject:!0,source:"mosaic"},de={DEFAULT:ne,OPTIONS:oe,DATA:se,PARAMS:ce,SOURCE:ue,COMMON:ie},me=t.defineComponent(B(V({},de),{__name:"alertTable",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(f){const s=f;class u extends J.BaseComponent{extractStyles(){var n,y,i,d,c,k,N,F,T,j;const{options:e}=this.props.conf,l=[{key:"area",label:"区域",width:"80px",useFv:!0},{key:"deviceId",label:"编号",width:"100px",useFv:!0},{key:"elevation",label:"标高",width:"80px",useFv:!0},{key:"speed",label:"速度",width:"80px",useFv:!0},{key:"threshold",label:"阈值",width:"60px",useFv:!1}],o=[{name:"正常",minValue:0,maxValue:5,color:"#52c41a"},{name:"二级告警 (警告)",minValue:5,maxValue:10,color:"#faad14"},{name:"一级告警 (危险)",minValue:10,maxValue:999,color:"#ff4d4f"}],r=((n=e==null?void 0:e.linkChannel)==null?void 0:n.value)||"gnss",v=((y=e==null?void 0:e.customChannel)==null?void 0:y.value)||"",p=r==="custom"&&v?v:r;return{title:((i=e==null?void 0:e.title)==null?void 0:i.value)||"监测预警 (GNSS)",bgColor:((d=e==null?void 0:e.bgColor)==null?void 0:d.value)||"#ffffff",textColor:((c=e==null?void 0:e.textColor)==null?void 0:c.value)||"#333333",headerBgColor:((k=e==null?void 0:e.headerBgColor)==null?void 0:k.value)||"#f5f5f5",pageSize:((N=e==null?void 0:e.pageSize)==null?void 0:N.value)||5,alertColumn:((F=e==null?void 0:e.alertColumn)==null?void 0:F.value)||"speed",alertLevels:((T=e==null?void 0:e.alertLevels)==null?void 0:T.value)||o,columns:((j=e==null?void 0:e.columns)==null?void 0:j.value)||l,linkChannel:p}}initHistory(){return D(this,null,function*(){var p;const{data:e,options:l}=this.props.conf;if(!e||!Array.isArray(e))return[];const r=(((p=l==null?void 0:l.columns)==null?void 0:p.value)||[]).filter(n=>n.useFv).map(n=>n.key);if(r.length===0)return[];const v=e.map(n=>{if(!n.object_id||(this.applyHistoryObjectResolution(n),!n.object_id))return Promise.resolve(null);const y={block_mapping:"influxdbproxy",action:"get_mosaic_list",object_id:n.object_id,keys:r,page_index:1,page_size:1};return new Promise(i=>{w.api.platform(d=>{var c;i(((c=d==null?void 0:d.result)==null?void 0:c.data)||[])},y)})});return Promise.all(v)})}setHistoryData(e){var p;if(!e||!Array.isArray(e))return;const{data:l,options:o}=this.props.conf;if(!l||!Array.isArray(l))return;const v=(((p=o==null?void 0:o.columns)==null?void 0:p.value)||[]).filter(n=>n.useFv).map(n=>n.key);e.forEach((n,y)=>{if(!n||!Array.isArray(n)||n.length===0)return;const i=l[y];if(!i)return;const d=n[0];v.forEach(c=>{d[c]!==void 0&&d[c]!==null&&(i[c]=d[c])})})}setSocketData(e){var n,y;if(!e)return;const{data:l,options:o}=this.props.conf;if(!l||!Array.isArray(l))return;const v=(((n=o==null?void 0:o.columns)==null?void 0:n.value)||[]).filter(i=>i.useFv).map(i=>i.key);if(v.length===0)return;const p=e.object_id||((y=e.data)==null?void 0:y.object_id)||"";l.forEach(i=>{i.object_id&&(p&&String(i.object_id)!==String(p)||v.forEach(d=>{try{const c=this.extractDataValue(e,d);c!=null&&(i[d]=c)}catch(c){console.warn(`[alertTable] 提取字段 ${d} 失败:`,c)}}))})}}const g=new u(s,"alertTable");g.setupLifecycle();const m=g.getStyle(),b=t.ref(1),x=t.ref(!1),C=a=>{const e=m.value.linkChannel,l=g.linkStore.channels[e];if(!l)return!1;const{payload:o}=l;return o.objectId&&a.object_id?String(o.objectId)===String(a.object_id):o.deviceId&&a.deviceId?String(o.deviceId)===String(a.deviceId):!1},h=t.computed(()=>{const a=m.value.columns||[];return[{key:"index",label:"序号",width:"60px"},...a]}),_=a=>{const e=m.value.alertLevels||[];if(isNaN(a)||e.length===0)return{alertLevel:0,alertText:"正常",alertColor:"#52c41a"};for(let o=0;o<e.length;o++){const r=e[o];if(a>=r.minValue&&a<r.maxValue)return{alertLevel:o,alertText:r.name,alertColor:r.color}}const l=e[e.length-1];return{alertLevel:e.length-1,alertText:l.name,alertColor:l.color}},S=t.computed(()=>{var o;const a=((o=s.conf)==null?void 0:o.data)||[],e=m.value.alertColumn||"";return(s.mode==="preview"?a.filter(r=>r.object_id):a).map((r,v)=>{const p=e&&parseFloat(r[e])||0,{alertLevel:n,alertText:y,alertColor:i}=_(p),d={index:v+1,object_id:r.object_id||"",isAlert:n>0,alertLevel:n,alertText:y,alertColor:i,_exceed:p-(parseFloat(r.threshold)||0)};return h.value.forEach(c=>{var k;c.key!=="index"&&(d[c.key]=(k=r[c.key])!=null?k:"-")}),d}).sort((r,v)=>v._exceed-r._exceed).map((r,v)=>(r.index=v+1,r))}),P=a=>a.alertColor?{color:a.alertColor}:{},E=t.computed(()=>Math.max(1,Math.ceil(S.value.length/m.value.pageSize))),z=t.computed(()=>{const a=(b.value-1)*m.value.pageSize,e=a+m.value.pageSize;return S.value.slice(a,e)}),R=t.computed(()=>({backgroundColor:m.value.bgColor,color:m.value.textColor,"--header-bg":m.value.headerBgColor})),M=()=>{b.value>1&&b.value--},q=()=>{b.value<E.value&&b.value++},A=a=>{s.mode!=="edit"&&g.publish(V({objectId:a.object_id,deviceId:a.deviceId||"",alertLevels:m.value.alertLevels},a))};return t.watch(()=>s.conf,()=>{b.value=1},{deep:!0}),t.watch(S,a=>{if(x.value||s.mode!=="preview"||!a||a.length===0)return;const e=a[0],l=m.value.alertColumn||"";!l||e[l]==="-"||e[l]===void 0||(x.value=!0,A(e))}),(a,e)=>(t.openBlock(),t.createElementBlock("div",{class:"alert-table-wrapper",style:t.normalizeStyle(R.value)},[t.createElementVNode("div",Q,[t.createElementVNode("div",X,[e[0]||(e[0]=t.createElementVNode("div",{class:"header-indicator"},null,-1)),t.createElementVNode("span",Y,t.toDisplayString(t.unref(m).title),1)]),t.createElementVNode("div",Z,[t.createElementVNode("button",{class:"page-btn",disabled:b.value<=1,onClick:M},[...e[1]||(e[1]=[t.createElementVNode("span",null,"<",-1)])],8,K),t.createElementVNode("span",ee,t.toDisplayString(b.value)+" / "+t.toDisplayString(E.value),1),t.createElementVNode("button",{class:"page-btn",disabled:b.value>=E.value,onClick:q},[...e[2]||(e[2]=[t.createElementVNode("span",null,">",-1)])],8,te)])]),t.createElementVNode("div",le,[t.createElementVNode("table",ae,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,l=>(t.openBlock(),t.createElementBlock("th",{key:l.key,style:t.normalizeStyle({width:l.width})},t.toDisplayString(l.label),5))),128))])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(z.value,(l,o)=>(t.openBlock(),t.createElementBlock("tr",{key:o,class:t.normalizeClass({"alert-row":l.isAlert,"active-row":C(l)}),onClick:r=>A(l)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.value,r=>(t.openBlock(),t.createElementBlock("td",{key:r.key,style:t.normalizeStyle(P(l))},t.toDisplayString(l[r.key]),5))),128))],10,re))),128))])])]),t.renderSlot(a.$slots,"default",{},void 0,!0)],4))}})),ve=w._export_sfc(me,[["__scopeId","data-v-bd23f3c0"]]);exports.default=ve;
|
|
@@ -28,8 +28,8 @@ var G = (f, o, u) => new Promise((C, d) => {
|
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as le, ref as H, computed as A, watch as U, openBlock as g, createElementBlock as _, normalizeStyle as I, createElementVNode as m, toDisplayString as j, unref as te, Fragment as E, renderList as w, normalizeClass as ae, renderSlot as re } from "vue";
|
|
30
30
|
import "html2canvas";
|
|
31
|
-
import { B as ne } from "./BaseComponent-
|
|
32
|
-
import { a as oe, _ as se } from "./index-
|
|
31
|
+
import { B as ne } from "./BaseComponent-7Sa7XOg-.js";
|
|
32
|
+
import { a as oe, _ as se } from "./index-DUL649KZ.js";
|
|
33
33
|
import { A as ue, D as ce } from "./ele-lst-icon-CKpeRKmk.js";
|
|
34
34
|
const ie = { class: "panel-header" }, de = { class: "header-left" }, ve = { class: "header-title" }, me = { class: "header-right" }, fe = ["disabled"], be = { class: "page-info" }, pe = ["disabled"], he = { class: "table-area" }, ye = { class: "data-table" }, ge = ["onClick"], _e = {
|
|
35
35
|
DEFAULT_ICON: ce,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var M=Object.defineProperty,L=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var V=(c,n,r)=>n in c?M(c,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[n]=r,S=(c,n)=>{for(var r in n||(n={}))R.call(n,r)&&V(c,r,n[r]);if(N)for(var r of N(n))F.call(n,r)&&V(c,r,n[r]);return c},E=(c,n)=>L(c,q(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=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/input/style/css");const e=require("vue"),v=require("./index-
|
|
1
|
+
"use strict";var M=Object.defineProperty,L=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var V=(c,n,r)=>n in c?M(c,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[n]=r,S=(c,n)=>{for(var r in n||(n={}))R.call(n,r)&&V(c,r,n[r]);if(N)for(var r of N(n))F.call(n,r)&&V(c,r,n[r]);return c},E=(c,n)=>L(c,q(n));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=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/input/style/css");const e=require("vue"),v=require("./index-Cm7hGuPj.cjs"),j=require("./ele-ctrSet-icon-DCsPO0tL.cjs"),z={class:"section-header"},B={class:"section-title"},U={class:"row"},Y={class:"label"},$={class:"row"},K={class:"row"},H={class:"row row-meta"},J={key:0},W={class:"payload-preview"},G={DEFAULT_ICON:j.DEFAULT_ICON,ACTIVE_ICON:j.ACTIVE_ICON,NAME_CN:"对象别名选择器",NAME_EN:"Alias Object Selector",ORDER:22,PLATFORM:["pc","screen"]},Q={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},borderColor:{value:"#e5e5e5",type:"color",label:"component.options.borderColor"},sectionTitle:{value:"对象别名切换",type:"string",label:"component.openpitConfigPanel.label"},aliasLabel:{value:"别名模式",type:"string",label:"component.openpitConfigPanel.objectSelectInputLabel"},aliasPlaceholder:{value:"例如 radar*",type:"string",label:"component.openpitConfigPanel.objectSelectInputPlaceholder"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},X=[{key:"objectAlias",multiple:!0,pattern:"radar*",fvs:["disp","speed"]}],Z=[{key:"key",label:"component.openpitConfigPanel.key",type:"string"},{key:"multiple",label:"component.openpitConfigPanel.multiple",type:"switch"},{key:"pattern",label:"component.openpitConfigPanel.optionValue",type:"string"},{key:"fvs",label:"component.openpitConfigPanel.options",type:"array"}],ee=[],te={useAlias:!0,multiObject:!0,source:""},le={DEFAULT:G,OPTIONS:Q,DATA:X,PARAMS:Z,SOURCE:ee,COMMON:te},oe=e.defineComponent(E(S({},le),{__name:"aliasObjectSelectorDemo",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""}},setup(c){e.useCssVars(t=>({v20d7bd78:_.value.borderColor,v6db2e060:_.value.color}));const n=c,r=v.useLinkStore(),d=e.ref("radar*"),m=e.ref("disp,speed"),p=e.ref([]),f=e.ref(""),C=e.ref(""),_=e.computed(()=>{var l,o,a,s;const t=((l=n.conf)==null?void 0:l.options)||{};return{backgroundColor:((o=t==null?void 0:t.bgColor)==null?void 0:o.value)||"#ffffff",color:((a=t==null?void 0:t.textColor)==null?void 0:a.value)||"#333333",borderColor:((s=t==null?void 0:t.borderColor)==null?void 0:s.value)||"#e5e5e5"}}),k=e.computed(()=>{var t,l,o;return String(((o=(l=(t=n.conf)==null?void 0:t.options)==null?void 0:l.sectionTitle)==null?void 0:o.value)||"对象别名切换")}),O=e.computed(()=>{var t,l,o;return String(((o=(l=(t=n.conf)==null?void 0:t.options)==null?void 0:l.aliasLabel)==null?void 0:o.value)||"别名模式")}),A=e.computed(()=>{var t,l,o;return String(((o=(l=(t=n.conf)==null?void 0:t.options)==null?void 0:l.aliasPlaceholder)==null?void 0:o.value)||"例如 radar*")}),P=()=>{var a,s,i;const t=((a=n.conf)==null?void 0:a.options)||{},l=((s=t==null?void 0:t.linkChannel)==null?void 0:s.value)||"deepDisplacement",o=((i=t==null?void 0:t.customChannel)==null?void 0:i.value)||"";return l==="custom"&&o?o:l},w=()=>{try{return JSON.parse(sessionStorage.getItem(v.ALIAS_MAPPING_KEY)||"{}")||{}}catch(t){return{}}},T=t=>String(t||"").split(",").map(l=>l.trim()).filter(Boolean),D=t=>t.replace(/[.+?^${}()|[\]\\]/g,"\\$&"),I=t=>{const l=D(t).replace(/\*/g,".*");return new RegExp(`^${l}$`,"i")},x=()=>{const t=w();return Object.keys(t).map(l=>({object_alias:l,object_id:String(t[l]||"")})).filter(l=>l.object_id)},g=()=>{const t=String(d.value||"").trim();if(!t){p.value=[];return}const l=I(t),o=x();p.value=o.filter(a=>l.test(a.object_alias))},y=()=>{g();const t=p.value.map(i=>i.object_id),l=p.value.map(i=>i.object_alias),o=T(m.value),a=P(),s={source:"aliasObjectSelector",type:"filter",mode:"aliasWildcard",objectAliasPattern:d.value,objectAliases:l,objectIds:t,objectId:t[0]||"",fvs:o,fv:o[0]||"",count:t.length,time:Date.now()};r.publish(a,"aliasObjectSelector",s),f.value=v.dayjs().format("YYYY-MM-DD HH:mm:ss"),C.value=JSON.stringify(s,null,2)};return e.onMounted(()=>{var o,a,s,i,u,h;const t=String(((s=(a=(o=n.conf)==null?void 0:o.data)==null?void 0:a[0])==null?void 0:s.pattern)||"").trim();t&&(d.value=t);const l=(h=(u=(i=n.conf)==null?void 0:i.data)==null?void 0:u[0])==null?void 0:h.fvs;Array.isArray(l)&&l.length&&(m.value=l.join(",")),g()}),(t,l)=>{const o=b.ElInput,a=b.ElButton,s=b.ElTableColumn,i=b.ElTable;return e.openBlock(),e.createElementBlock("div",{class:"alias-demo",style:e.normalizeStyle(_.value)},[e.createElementVNode("div",z,[e.createElementVNode("span",B,e.toDisplayString(k.value),1)]),e.createElementVNode("div",U,[e.createElementVNode("span",Y,e.toDisplayString(O.value),1),e.createVNode(o,{modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=u=>d.value=u),placeholder:A.value,size:"small",clearable:"",onKeyup:e.withKeys(y,["enter"])},null,8,["modelValue","placeholder"])]),e.createElementVNode("div",$,[l[2]||(l[2]=e.createElementVNode("span",{class:"label"},"FV",-1)),e.createVNode(o,{modelValue:m.value,"onUpdate:modelValue":l[1]||(l[1]=u=>m.value=u),placeholder:"例如 disp,speed,temp",size:"small",clearable:""},null,8,["modelValue"])]),e.createElementVNode("div",K,[e.createVNode(a,{type:"primary",size:"small",onClick:y},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode("匹配并联动",-1)])]),_:1}),e.createVNode(a,{size:"small",onClick:g},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createTextVNode("仅匹配",-1)])]),_:1})]),e.createElementVNode("div",H,[e.createElementVNode("span",null,"匹配数量:"+e.toDisplayString(p.value.length),1),f.value?(e.openBlock(),e.createElementBlock("span",J,"最近推送:"+e.toDisplayString(f.value),1)):e.createCommentVNode("",!0)]),l[6]||(l[6]=e.createElementVNode("div",{class:"tips"},[e.createTextVNode(" 数据源:sessionStorage["),e.createElementVNode("code",null,"object_alias_uid_mapping"),e.createTextVNode("](真实对象别名映射) ")],-1)),e.createVNode(i,{data:p.value,size:"small",border:"",style:{width:"100%"},"max-height":"220"},{default:e.withCtx(()=>[e.createVNode(s,{prop:"object_id",label:"object_id","min-width":"180"}),e.createVNode(s,{prop:"object_alias",label:"object_alias","min-width":"180"})]),_:1},8,["data"]),e.createElementVNode("div",W,[l[5]||(l[5]=e.createElementVNode("div",{class:"preview-title"},"本次联动 payload 预览",-1)),e.createElementVNode("pre",null,e.toDisplayString(C.value),1)])],4)}}})),ne=v._export_sfc(oe,[["__scopeId","data-v-a1c7e108"]]);exports.default=ne;
|
|
@@ -17,7 +17,7 @@ import "element-plus/es/components/table-column/style/css";
|
|
|
17
17
|
import "element-plus/es/components/button/style/css";
|
|
18
18
|
import "element-plus/es/components/input/style/css";
|
|
19
19
|
import { defineComponent as q, useCssVars as Q, ref as b, computed as _, onMounted as X, openBlock as V, createElementBlock as D, normalizeStyle as Z, createElementVNode as s, toDisplayString as v, createVNode as p, withKeys as ee, withCtx as j, createTextVNode as g, createCommentVNode as te } from "vue";
|
|
20
|
-
import { l as le, d as oe,
|
|
20
|
+
import { l as le, d as oe, x as ne, _ as ae } from "./index-DUL649KZ.js";
|
|
21
21
|
import { A as se, D as ie } from "./ele-ctrSet-icon-BtKGrCid.js";
|
|
22
22
|
const ce = { class: "section-header" }, re = { class: "section-title" }, pe = { class: "row" }, ue = { class: "label" }, de = { class: "row" }, me = { class: "row" }, be = { class: "row row-meta" }, ve = { key: 0 }, fe = { class: "payload-preview" }, _e = {
|
|
23
23
|
DEFAULT_ICON: ie,
|
|
@@ -89,10 +89,10 @@ const ce = { class: "section-header" }, re = { class: "section-title" }, pe = {
|
|
|
89
89
|
}), N = _(() => {
|
|
90
90
|
var e, t, l;
|
|
91
91
|
return String(((l = (t = (e = o.conf) == null ? void 0 : e.options) == null ? void 0 : t.aliasLabel) == null ? void 0 : l.value) || "别名模式");
|
|
92
|
-
}),
|
|
92
|
+
}), x = _(() => {
|
|
93
93
|
var e, t, l;
|
|
94
94
|
return String(((l = (t = (e = o.conf) == null ? void 0 : e.options) == null ? void 0 : t.aliasPlaceholder) == null ? void 0 : l.value) || "例如 radar*");
|
|
95
|
-
}),
|
|
95
|
+
}), T = () => {
|
|
96
96
|
var n, a, r;
|
|
97
97
|
const e = ((n = o.conf) == null ? void 0 : n.options) || {}, t = ((a = e == null ? void 0 : e.linkChannel) == null ? void 0 : a.value) || "deepDisplacement", l = ((r = e == null ? void 0 : e.customChannel) == null ? void 0 : r.value) || "";
|
|
98
98
|
return t === "custom" && l ? l : t;
|
|
@@ -121,7 +121,7 @@ const ce = { class: "section-header" }, re = { class: "section-title" }, pe = {
|
|
|
121
121
|
u.value = l.filter((n) => t.test(n.object_alias));
|
|
122
122
|
}, k = () => {
|
|
123
123
|
h();
|
|
124
|
-
const e = u.value.map((r) => r.object_id), t = u.value.map((r) => r.object_alias), l = L(f.value), n =
|
|
124
|
+
const e = u.value.map((r) => r.object_id), t = u.value.map((r) => r.object_alias), l = L(f.value), n = T(), a = {
|
|
125
125
|
source: "aliasObjectSelector",
|
|
126
126
|
type: "filter",
|
|
127
127
|
mode: "aliasWildcard",
|
|
@@ -156,7 +156,7 @@ const ce = { class: "section-header" }, re = { class: "section-title" }, pe = {
|
|
|
156
156
|
p(l, {
|
|
157
157
|
modelValue: m.value,
|
|
158
158
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => m.value = d),
|
|
159
|
-
placeholder:
|
|
159
|
+
placeholder: x.value,
|
|
160
160
|
size: "small",
|
|
161
161
|
clearable: "",
|
|
162
162
|
onKeyup: ee(k, ["enter"])
|
|
@@ -230,7 +230,7 @@ const ce = { class: "section-header" }, re = { class: "section-title" }, pe = {
|
|
|
230
230
|
], 4);
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
})),
|
|
233
|
+
})), Te = /* @__PURE__ */ ae(ke, [["__scopeId", "data-v-a1c7e108"]]);
|
|
234
234
|
export {
|
|
235
|
-
|
|
235
|
+
Te as default
|
|
236
236
|
};
|