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
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Z=Object.defineProperty,J=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var H=(n,d,s)=>d in n?Z(n,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[d]=s,q=(n,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(n,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(n,s,d[s]);return n},D=(n,d)=>J(n,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./BaseComponent-9njJjeix.cjs"),ae=require("./index-Bo49zvKb.cjs"),oe=require("./titleStyle-NSnz6cUg.cjs");var R=function(){return R=Object.assign||function(d){for(var s,u=1,c=arguments.length;u<c;u++){s=arguments[u];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(d[h]=s[h])}return d},R.apply(this,arguments)};var B;(function(n){var d=(function(){function a(e,t,r,o){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var i=[],l=0;l<this.size;l++)i.push(!1);for(var l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();var g=this.addEccAndInterleave(r);if(this.drawCodewords(g),o==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(o=l,m=p),this.applyMask(l)}c(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}return a.encodeText=function(e,t){var r=n.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=n.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,o,i,l){if(r===void 0&&(r=1),o===void 0&&(o=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=o&&o<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var g,m;for(g=r;;g++){var p=a.getNumDataCodewords(g,t)*8,E=h.getTotalBits(e,g);if(E<=p){m=E;break}if(g>=o)throw new RangeError("Data too long")}for(var C=0,y=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<y.length;C++){var w=y[C];l&&m<=a.getNumDataCodewords(g,w)*8&&(t=w)}for(var v=[],S=0,M=e;S<M.length;S++){var b=M[S];s(b.mode.modeBits,4,v),s(b.numChars,b.mode.numCharCountBits(g),v);for(var A=0,P=b.getData();A<P.length;A++){var k=P[A];v.push(k)}}c(v.length==m);var z=a.getNumDataCodewords(g,t)*8;c(v.length<=z),s(0,Math.min(4,z-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<z;N^=253)s(N,8,v);for(var O=[];O.length*8<v.length;)O.push(0);return v.forEach(function(I,_){return O[_>>>3]|=I<<7-(_&7)}),new a(g,t,O,i)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var o=0;o<r;o++)e==0&&o==0||e==0&&o==r-1||e==r-1&&o==0||this.drawAlignmentPattern(t[e],t[o]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,o=0;o<10;o++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var o=0;o<=5;o++)this.setFunctionModule(8,o,u(i,o));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var o=9;o<15;o++)this.setFunctionModule(14-o,8,u(i,o));for(var o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,u(i,o));for(var o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,u(i,o));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;c(r>>>18==0);for(var t=0;t<18;t++){var o=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,o),this.setFunctionModule(l,i,o)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var o=-4;o<=4;o++){var i=Math.max(Math.abs(o),Math.abs(r)),l=e+o,g=t+r;0<=l&&l<this.size&&0<=g&&g<this.size&&this.setFunctionModule(l,g,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var o=-2;o<=2;o++)this.setFunctionModule(e+o,t+r,Math.max(Math.abs(o),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var o=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],i=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],l=Math.floor(a.getNumRawDataModules(t)/8),g=o-l%o,m=Math.floor(l/o),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<o;C++){var w=e.slice(y,y+m-i+(C<g?0:1));y+=w.length;var v=a.reedSolomonComputeRemainder(w,E);C<g&&w.push(0),p.push(w.concat(v))}for(var S=[],M=function(b){p.forEach(function(A,P){(b!=m-i||P>=g)&&S.push(A[b])})},C=0;C<p[0].length;C++)M(C);return c(S.length==l),S},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var o=0;o<this.size;o++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-o:o;!this.isFunction[m][l]&&t<e.length*8&&(this.modules[m][l]=u(e[t>>>3],7-(t&7)),t++)}}c(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var o=void 0;switch(e){case 0:o=(r+t)%2==0;break;case 1:o=t%2==0;break;case 2:o=r%3==0;break;case 3:o=(r+t)%3==0;break;case 4:o=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:o=r*t%2+r*t%3==0;break;case 6:o=(r*t%2+r*t%3)%2==0;break;case 7:o=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&o&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,o=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(o++,o==5?e+=a.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*a.PENALTY_N3}for(var l=0;l<this.size;l++){for(var r=!1,g=0,i=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][l]==r?(g++,g==5?e+=a.PENALTY_N1:g>5&&e++):(this.finderPenaltyAddHistory(g,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],g=1);e+=this.finderPenaltyTerminateAndCount(r,g,i)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var l=0;l<this.size-1;l++){var m=this.modules[t][l];m==this.modules[t][l+1]&&m==this.modules[t+1][l]&&m==this.modules[t+1][l+1]&&(e+=a.PENALTY_N2)}for(var p=0,E=0,C=this.modules;E<C.length;E++){var y=C[E];p=y.reduce(function(S,M){return S+(M?1:0)},p)}var w=this.size*this.size,v=Math.ceil(Math.abs(p*20-w*10)/w)-1;return c(0<=v&&v<=9),e+=v*a.PENALTY_N4,c(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],o=this.size-7;r.length<e;o-=t)r.splice(1,0,o);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return c(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var o=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],o),i+1<t.length&&(t[i]^=t[i+1]);o=a.reedSolomonMultiply(o,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),o=function(m){var p=m^r.shift();r.push(0),t.forEach(function(E,C){return r[C]^=a.reedSolomonMultiply(E,p)})},i=0,l=e;i<l.length;i++){var g=l[i];o(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,o=7;o>=0;o--)r=r<<1^(r>>>7)*285,r^=(t>>>o&1)*e;return c(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];c(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();n.QrCode=d;function s(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function u(a,e){return(a>>>e&1)!=0}function c(a){if(!a)throw new Error("Assertion error")}var h=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,o=e;r<o.length;r++){var i=o[r];s(i,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r<e.length;){var o=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+o),10),o*3+1,t),r+=o}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var o=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(o,11,t)}return r<e.length&&s(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else if(e<1e6)s(6,3,t),s(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,o=0,i=e;o<i.length;o++){var l=i[o],g=l.mode.numCharCountBits(t);if(l.numChars>=1<<g)return 1/0;r+=4+g+l.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a})();n.QrSegment=h})(B||(B={}));(function(n){(function(d){var s=(function(){function u(c,h){this.ordinal=c,this.formatBits=h}return u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),u})();d.Ecc=s})(n.QrCode||(n.QrCode={}))})(B||(B={}));(function(n){(function(d){var s=(function(){function u(c,h){this.modeBits=c,this.numBitsCharCount=h}return u.prototype.numCharCountBits=function(c){return this.numBitsCharCount[Math.floor((c+7)/17)]},u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),u})();d.Mode=s})(n.QrSegment||(n.QrSegment={}))})(B||(B={}));var T=B,V="L",ne=100,G=0,ie=.1,le=2,W={L:T.QrCode.Ecc.LOW,M:T.QrCode.Ecc.MEDIUM,Q:T.QrCode.Ecc.QUARTILE,H:T.QrCode.Ecc.HIGH},ue=(function(){try{new Path2D().addPath(new Path2D)}catch(n){return!1}return!0})();function Y(n){return n in W}function $(n,d){d===void 0&&(d=0);var s="";return n.forEach(function(u,c){var h=null;u.forEach(function(a,e){if(!a&&h!==null){s+="M".concat(h+d," ").concat(c+d,"h").concat(e-h,"v1H").concat(h+d,"z"),h=null;return}if(e===u.length-1){if(!a)return;h===null?s+="M".concat(e+d,",").concat(c+d," h1v1H").concat(e+d,"z"):s+="M".concat(h+d,",").concat(c+d," h").concat(e+1-h,"v1H").concat(h+d,"z");return}a&&h===null&&(h=e)})}),s}function se(n,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=n.length+s*2,r=Math.floor(d*ie),o=t/d,i=(c||r)*o,l=(h||r)*o,g=a==null?n.length/2-i/2:a*o,m=e==null?n.length/2-l/2:e*o,p=(u.borderRadius||0)*o,E=null;if(u.excavate){var C=Math.floor(g),y=Math.floor(m),w=Math.ceil(i+g-C),v=Math.ceil(l+m-y);E={x:C,y,w,h:v}}return{x:g,y:m,h:l,w:i,borderRadius:p,excavation:E}}function K(n){var d=f.computed(function(){var e;return((e=n.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(n.level)?n.level:V;return T.QrCode.encodeText(n.value,W[e]).getModules()}),u=f.computed(function(){return s.value.length+d.value*2}),c=f.computed(function(){return $(s.value,d.value)}),h=f.computed(function(){if(!n.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,n.size,d.value,n.imageSettings);return{x:e.x+d.value,y:e.y+d.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=f.computed(function(){if(!n.imageSettings.excavate||!n.imageSettings.src)return null;var e=le/(n.size/u.value);return{x:h.value.x-e,y:h.value.y-e,width:h.value.width+e*2,height:h.value.height+e*2,borderRadius:h.value.borderRadius}});return{margin:d,numCells:u,cells:s,fgPath:c,imageProps:h,imageBorderProps:a}}var F={value:{type:String,required:!0,default:""},size:{type:Number,default:ne},level:{type:String,default:V,validator:function(n){return Y(n)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:G},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(n){return["linear","radial"].indexOf(n)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},de=R(R({},F),{renderAs:{type:String,required:!1,default:"canvas",validator:function(n){return["canvas","svg"].indexOf(n)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(n){var d=K(n),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!n.gradient)return null;var o=n.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(n.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},o),[f.h("stop",{offset:"0%",style:{stopColor:n.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:n.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var o=c.value.borderRadius;return!n.imageSettings.src||o<=0?null:f.h("clipPath",{id:t},[f.h("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,rx:o,ry:o})])};return function(){return f.h("svg",{width:n.size,height:n.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(s.value," ").concat(s.value)},[f.h("defs",{},[e(),r()]),f.h("rect",{width:"100%",height:"100%",fill:n.background}),f.h("path",{fill:n.gradient?"url(#".concat(a,")"):n.foreground,d:u.value}),h.value&&f.h("rect",{x:h.value.x,y:h.value.y,width:h.value.width,height:h.value.height,fill:n.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),n.imageSettings.src&&f.h("image",R(R({href:n.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(n,d){var s=K(n),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),o=function(){var l=n.size,g=n.background,m=n.foreground,p=n.gradient,E=n.gradientType,C=n.gradientStartColor,y=n.gradientEndColor,w=t.value;if(w){var v=w.getContext("2d");if(v){var S=c.value,M=r.value,b=typeof window!="undefined"&&window.devicePixelRatio||1,A=l/h.value*b;if(w.height=w.width=l*b,v.scale(A,A),v.fillStyle=g,v.fillRect(0,0,h.value,h.value),p){var P=void 0;E==="linear"?P=v.createLinearGradient(0,0,h.value,h.value):P=v.createRadialGradient(h.value/2,h.value/2,0,h.value/2,h.value/2,h.value/2),P.addColorStop(0,C),P.addColorStop(1,y),v.fillStyle=P}else v.fillStyle=m;ue?v.fill(new Path2D($(S,u.value))):S.forEach(function(I,_){I.forEach(function(L,x){L&&v.fillRect(x+u.value,_+u.value,1,1)})});var k=n.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var z=function(I,_,L,x,Q,X){I.beginPath(),I.roundRect?I.roundRect(_,L,x,Q,X):I.rect(_,L,x,Q)};if(e.value){var N=e.value;v.fillStyle=n.background,z(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var O=a.value.borderRadius;O>0?(v.save(),z(v,a.value.x,a.value.y,a.value.width,a.value.height,O),v.clip(),v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height),v.restore()):v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height)}}}};f.onMounted(o),f.watchEffect(o);var i=d.attrs.style;return function(){return f.h(f.Fragment,[f.h("canvas",R(R({},d.attrs),{ref:t,style:R(R({},i),{width:"".concat(n.size,"px"),height:"".concat(n.size,"px")})})),n.imageSettings.src&&f.h("img",{ref:r,src:n.imageSettings.src,style:{display:"none"},onLoad:o})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var n=this.$props,d=n.renderAs,s=n.value,u=n.size,c=n.margin,h=n.level,a=n.background,e=n.foreground,t=n.imageSettings,r=n.gradient,o=n.gradientType,i=n.gradientStartColor,l=n.gradientEndColor;return f.h(d==="svg"?he:ce,{value:s,size:u,margin:c,level:h,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:o,gradientStartColor:i,gradientEndColor:l})},props:de});const ve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='currentColor'/%3e%3c/svg%3e",ge="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234162ff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3c/svg%3e",me={class:"mix-body"},Ce={DEFAULT_ICON:ve,ACTIVE_ICON:ge,NAME_CN:"二维码",NAME_EN:"QR Code",ORDER:10,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,qrColor:{value:"#000000",type:"color",label:"component.qrcode.qrColor"},qrBgColor:{value:"#ffffff",type:"color",label:"component.qrcode.qrBgColor"},showBorder:{value:!0,type:"checkbox",label:"component.qrcode.showBorder"},borderColor:{value:"#e5e7eb",type:"color",label:"setting.borderColor",dependent:"showBorder"},borderWidth:{value:1,type:"number",label:"component.qrcode.borderWidth",min:1,max:10,dependent:"showBorder"},qrSize:{value:200,type:"number",label:"component.qrcode.qrSize",min:50,max:500},defaultContent:{value:"http://www.mixlinker.com",type:"textarea",label:"component.qrcode.defaultContent"},errorLevel:{value:"M",type:"select",label:"component.qrcode.errorLevel",options:[{label:"低 (L)",value:"L"},{label:"中 (M)",value:"M"},{label:"较高 (Q)",value:"Q"},{label:"高 (H)",value:"H"}]}},we=[],Ee=[],ye=[],Se={},Me={DEFAULT:Ce,OPTIONS:pe,DATA:we,PARAMS:Ee,SOURCE:ye,COMMON:Se},Re=f.defineComponent(D(q({},Me),{__name:"qrcode",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(n){const d=n;class s extends re.BaseComponent{extractStyles(){return D(q({},super.extractStyles()),{titleColor:this.getOptionValue("titleColor","#111"),bgColor:this.getOptionValue("bgColor","#fff"),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),qrColor:this.getOptionValue("qrColor","#000000"),qrBgColor:this.getOptionValue("qrBgColor","#ffffff"),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderWidth:this.getOptionValue("borderWidth",1),qrSize:this.getOptionValue("qrSize",200),defaultContent:this.getOptionValue("defaultContent","http://www.mixlinker.com"),errorLevel:this.getOptionValue("errorLevel","M")})}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const u=new s(d,"qrcode");u.setupLifecycle();const c=u.getStyle(),h=d.conf,a=f.computed(()=>oe.generateTitleStyle(d.conf.options)),e=f.computed(()=>c.value.defaultContent||"http://www.mixlinker.com"),t=f.computed(()=>Math.min(c.value.qrSize,300)),r=f.computed(()=>({border:c.value.showBorder?`${c.value.borderWidth}px solid ${c.value.borderColor}`:"none",padding:c.value.showBorder?"8px":"0",background:c.value.qrBgColor,borderRadius:"4px"}));return(o,i)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(c).bgColor,borderRadius:`${f.unref(c).radiusSize}px`})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(a.value)},f.toDisplayString(f.unref(h).caption||f.unref(h).name),5),f.createElementVNode("div",me,[f.createElementVNode("div",{class:"qrcode-wrapper",style:f.normalizeStyle(r.value)},[f.createVNode(fe,{value:e.value,size:t.value,level:f.unref(c).errorLevel,"render-as":"svg",foreground:f.unref(c).qrColor,background:f.unref(c).qrBgColor},null,8,["value","size","level","foreground","background"])],4)]),f.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-3ff68f63"]]);exports.default=be;
|
|
1
|
+
"use strict";var Z=Object.defineProperty,J=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var H=(n,d,s)=>d in n?Z(n,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[d]=s,q=(n,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(n,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(n,s,d[s]);return n},D=(n,d)=>J(n,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./BaseComponent-BabOc6Kc.cjs"),ae=require("./index-Cm7hGuPj.cjs"),oe=require("./titleStyle-NSnz6cUg.cjs");var R=function(){return R=Object.assign||function(d){for(var s,u=1,c=arguments.length;u<c;u++){s=arguments[u];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(d[h]=s[h])}return d},R.apply(this,arguments)};var B;(function(n){var d=(function(){function a(e,t,r,o){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var i=[],l=0;l<this.size;l++)i.push(!1);for(var l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();var g=this.addEccAndInterleave(r);if(this.drawCodewords(g),o==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(o=l,m=p),this.applyMask(l)}c(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}return a.encodeText=function(e,t){var r=n.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=n.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,o,i,l){if(r===void 0&&(r=1),o===void 0&&(o=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=o&&o<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var g,m;for(g=r;;g++){var p=a.getNumDataCodewords(g,t)*8,E=h.getTotalBits(e,g);if(E<=p){m=E;break}if(g>=o)throw new RangeError("Data too long")}for(var C=0,y=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<y.length;C++){var w=y[C];l&&m<=a.getNumDataCodewords(g,w)*8&&(t=w)}for(var v=[],S=0,M=e;S<M.length;S++){var b=M[S];s(b.mode.modeBits,4,v),s(b.numChars,b.mode.numCharCountBits(g),v);for(var A=0,P=b.getData();A<P.length;A++){var k=P[A];v.push(k)}}c(v.length==m);var z=a.getNumDataCodewords(g,t)*8;c(v.length<=z),s(0,Math.min(4,z-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<z;N^=253)s(N,8,v);for(var O=[];O.length*8<v.length;)O.push(0);return v.forEach(function(I,_){return O[_>>>3]|=I<<7-(_&7)}),new a(g,t,O,i)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var o=0;o<r;o++)e==0&&o==0||e==0&&o==r-1||e==r-1&&o==0||this.drawAlignmentPattern(t[e],t[o]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,o=0;o<10;o++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var o=0;o<=5;o++)this.setFunctionModule(8,o,u(i,o));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var o=9;o<15;o++)this.setFunctionModule(14-o,8,u(i,o));for(var o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,u(i,o));for(var o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,u(i,o));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;c(r>>>18==0);for(var t=0;t<18;t++){var o=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,o),this.setFunctionModule(l,i,o)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var o=-4;o<=4;o++){var i=Math.max(Math.abs(o),Math.abs(r)),l=e+o,g=t+r;0<=l&&l<this.size&&0<=g&&g<this.size&&this.setFunctionModule(l,g,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var o=-2;o<=2;o++)this.setFunctionModule(e+o,t+r,Math.max(Math.abs(o),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var o=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],i=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],l=Math.floor(a.getNumRawDataModules(t)/8),g=o-l%o,m=Math.floor(l/o),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<o;C++){var w=e.slice(y,y+m-i+(C<g?0:1));y+=w.length;var v=a.reedSolomonComputeRemainder(w,E);C<g&&w.push(0),p.push(w.concat(v))}for(var S=[],M=function(b){p.forEach(function(A,P){(b!=m-i||P>=g)&&S.push(A[b])})},C=0;C<p[0].length;C++)M(C);return c(S.length==l),S},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var o=0;o<this.size;o++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-o:o;!this.isFunction[m][l]&&t<e.length*8&&(this.modules[m][l]=u(e[t>>>3],7-(t&7)),t++)}}c(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var o=void 0;switch(e){case 0:o=(r+t)%2==0;break;case 1:o=t%2==0;break;case 2:o=r%3==0;break;case 3:o=(r+t)%3==0;break;case 4:o=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:o=r*t%2+r*t%3==0;break;case 6:o=(r*t%2+r*t%3)%2==0;break;case 7:o=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&o&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,o=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(o++,o==5?e+=a.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*a.PENALTY_N3}for(var l=0;l<this.size;l++){for(var r=!1,g=0,i=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][l]==r?(g++,g==5?e+=a.PENALTY_N1:g>5&&e++):(this.finderPenaltyAddHistory(g,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],g=1);e+=this.finderPenaltyTerminateAndCount(r,g,i)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var l=0;l<this.size-1;l++){var m=this.modules[t][l];m==this.modules[t][l+1]&&m==this.modules[t+1][l]&&m==this.modules[t+1][l+1]&&(e+=a.PENALTY_N2)}for(var p=0,E=0,C=this.modules;E<C.length;E++){var y=C[E];p=y.reduce(function(S,M){return S+(M?1:0)},p)}var w=this.size*this.size,v=Math.ceil(Math.abs(p*20-w*10)/w)-1;return c(0<=v&&v<=9),e+=v*a.PENALTY_N4,c(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],o=this.size-7;r.length<e;o-=t)r.splice(1,0,o);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return c(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var o=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],o),i+1<t.length&&(t[i]^=t[i+1]);o=a.reedSolomonMultiply(o,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),o=function(m){var p=m^r.shift();r.push(0),t.forEach(function(E,C){return r[C]^=a.reedSolomonMultiply(E,p)})},i=0,l=e;i<l.length;i++){var g=l[i];o(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,o=7;o>=0;o--)r=r<<1^(r>>>7)*285,r^=(t>>>o&1)*e;return c(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];c(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();n.QrCode=d;function s(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function u(a,e){return(a>>>e&1)!=0}function c(a){if(!a)throw new Error("Assertion error")}var h=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,o=e;r<o.length;r++){var i=o[r];s(i,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r<e.length;){var o=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+o),10),o*3+1,t),r+=o}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var o=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(o,11,t)}return r<e.length&&s(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else if(e<1e6)s(6,3,t),s(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,o=0,i=e;o<i.length;o++){var l=i[o],g=l.mode.numCharCountBits(t);if(l.numChars>=1<<g)return 1/0;r+=4+g+l.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a})();n.QrSegment=h})(B||(B={}));(function(n){(function(d){var s=(function(){function u(c,h){this.ordinal=c,this.formatBits=h}return u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),u})();d.Ecc=s})(n.QrCode||(n.QrCode={}))})(B||(B={}));(function(n){(function(d){var s=(function(){function u(c,h){this.modeBits=c,this.numBitsCharCount=h}return u.prototype.numCharCountBits=function(c){return this.numBitsCharCount[Math.floor((c+7)/17)]},u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),u})();d.Mode=s})(n.QrSegment||(n.QrSegment={}))})(B||(B={}));var T=B,V="L",ne=100,G=0,ie=.1,le=2,W={L:T.QrCode.Ecc.LOW,M:T.QrCode.Ecc.MEDIUM,Q:T.QrCode.Ecc.QUARTILE,H:T.QrCode.Ecc.HIGH},ue=(function(){try{new Path2D().addPath(new Path2D)}catch(n){return!1}return!0})();function Y(n){return n in W}function $(n,d){d===void 0&&(d=0);var s="";return n.forEach(function(u,c){var h=null;u.forEach(function(a,e){if(!a&&h!==null){s+="M".concat(h+d," ").concat(c+d,"h").concat(e-h,"v1H").concat(h+d,"z"),h=null;return}if(e===u.length-1){if(!a)return;h===null?s+="M".concat(e+d,",").concat(c+d," h1v1H").concat(e+d,"z"):s+="M".concat(h+d,",").concat(c+d," h").concat(e+1-h,"v1H").concat(h+d,"z");return}a&&h===null&&(h=e)})}),s}function se(n,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=n.length+s*2,r=Math.floor(d*ie),o=t/d,i=(c||r)*o,l=(h||r)*o,g=a==null?n.length/2-i/2:a*o,m=e==null?n.length/2-l/2:e*o,p=(u.borderRadius||0)*o,E=null;if(u.excavate){var C=Math.floor(g),y=Math.floor(m),w=Math.ceil(i+g-C),v=Math.ceil(l+m-y);E={x:C,y,w,h:v}}return{x:g,y:m,h:l,w:i,borderRadius:p,excavation:E}}function K(n){var d=f.computed(function(){var e;return((e=n.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(n.level)?n.level:V;return T.QrCode.encodeText(n.value,W[e]).getModules()}),u=f.computed(function(){return s.value.length+d.value*2}),c=f.computed(function(){return $(s.value,d.value)}),h=f.computed(function(){if(!n.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,n.size,d.value,n.imageSettings);return{x:e.x+d.value,y:e.y+d.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=f.computed(function(){if(!n.imageSettings.excavate||!n.imageSettings.src)return null;var e=le/(n.size/u.value);return{x:h.value.x-e,y:h.value.y-e,width:h.value.width+e*2,height:h.value.height+e*2,borderRadius:h.value.borderRadius}});return{margin:d,numCells:u,cells:s,fgPath:c,imageProps:h,imageBorderProps:a}}var F={value:{type:String,required:!0,default:""},size:{type:Number,default:ne},level:{type:String,default:V,validator:function(n){return Y(n)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:G},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(n){return["linear","radial"].indexOf(n)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},de=R(R({},F),{renderAs:{type:String,required:!1,default:"canvas",validator:function(n){return["canvas","svg"].indexOf(n)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(n){var d=K(n),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!n.gradient)return null;var o=n.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(n.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},o),[f.h("stop",{offset:"0%",style:{stopColor:n.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:n.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var o=c.value.borderRadius;return!n.imageSettings.src||o<=0?null:f.h("clipPath",{id:t},[f.h("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,rx:o,ry:o})])};return function(){return f.h("svg",{width:n.size,height:n.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(s.value," ").concat(s.value)},[f.h("defs",{},[e(),r()]),f.h("rect",{width:"100%",height:"100%",fill:n.background}),f.h("path",{fill:n.gradient?"url(#".concat(a,")"):n.foreground,d:u.value}),h.value&&f.h("rect",{x:h.value.x,y:h.value.y,width:h.value.width,height:h.value.height,fill:n.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),n.imageSettings.src&&f.h("image",R(R({href:n.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(n,d){var s=K(n),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),o=function(){var l=n.size,g=n.background,m=n.foreground,p=n.gradient,E=n.gradientType,C=n.gradientStartColor,y=n.gradientEndColor,w=t.value;if(w){var v=w.getContext("2d");if(v){var S=c.value,M=r.value,b=typeof window!="undefined"&&window.devicePixelRatio||1,A=l/h.value*b;if(w.height=w.width=l*b,v.scale(A,A),v.fillStyle=g,v.fillRect(0,0,h.value,h.value),p){var P=void 0;E==="linear"?P=v.createLinearGradient(0,0,h.value,h.value):P=v.createRadialGradient(h.value/2,h.value/2,0,h.value/2,h.value/2,h.value/2),P.addColorStop(0,C),P.addColorStop(1,y),v.fillStyle=P}else v.fillStyle=m;ue?v.fill(new Path2D($(S,u.value))):S.forEach(function(I,_){I.forEach(function(L,x){L&&v.fillRect(x+u.value,_+u.value,1,1)})});var k=n.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var z=function(I,_,L,x,Q,X){I.beginPath(),I.roundRect?I.roundRect(_,L,x,Q,X):I.rect(_,L,x,Q)};if(e.value){var N=e.value;v.fillStyle=n.background,z(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var O=a.value.borderRadius;O>0?(v.save(),z(v,a.value.x,a.value.y,a.value.width,a.value.height,O),v.clip(),v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height),v.restore()):v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height)}}}};f.onMounted(o),f.watchEffect(o);var i=d.attrs.style;return function(){return f.h(f.Fragment,[f.h("canvas",R(R({},d.attrs),{ref:t,style:R(R({},i),{width:"".concat(n.size,"px"),height:"".concat(n.size,"px")})})),n.imageSettings.src&&f.h("img",{ref:r,src:n.imageSettings.src,style:{display:"none"},onLoad:o})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var n=this.$props,d=n.renderAs,s=n.value,u=n.size,c=n.margin,h=n.level,a=n.background,e=n.foreground,t=n.imageSettings,r=n.gradient,o=n.gradientType,i=n.gradientStartColor,l=n.gradientEndColor;return f.h(d==="svg"?he:ce,{value:s,size:u,margin:c,level:h,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:o,gradientStartColor:i,gradientEndColor:l})},props:de});const ve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='currentColor'/%3e%3c/svg%3e",ge="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234162ff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3c/svg%3e",me={class:"mix-body"},Ce={DEFAULT_ICON:ve,ACTIVE_ICON:ge,NAME_CN:"二维码",NAME_EN:"QR Code",ORDER:10,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,qrColor:{value:"#000000",type:"color",label:"component.qrcode.qrColor"},qrBgColor:{value:"#ffffff",type:"color",label:"component.qrcode.qrBgColor"},showBorder:{value:!0,type:"checkbox",label:"component.qrcode.showBorder"},borderColor:{value:"#e5e7eb",type:"color",label:"setting.borderColor",dependent:"showBorder"},borderWidth:{value:1,type:"number",label:"component.qrcode.borderWidth",min:1,max:10,dependent:"showBorder"},qrSize:{value:200,type:"number",label:"component.qrcode.qrSize",min:50,max:500},defaultContent:{value:"http://www.mixlinker.com",type:"textarea",label:"component.qrcode.defaultContent"},errorLevel:{value:"M",type:"select",label:"component.qrcode.errorLevel",options:[{label:"低 (L)",value:"L"},{label:"中 (M)",value:"M"},{label:"较高 (Q)",value:"Q"},{label:"高 (H)",value:"H"}]}},we=[],Ee=[],ye=[],Se={},Me={DEFAULT:Ce,OPTIONS:pe,DATA:we,PARAMS:Ee,SOURCE:ye,COMMON:Se},Re=f.defineComponent(D(q({},Me),{__name:"qrcode",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(n){const d=n;class s extends re.BaseComponent{extractStyles(){return D(q({},super.extractStyles()),{titleColor:this.getOptionValue("titleColor","#111"),bgColor:this.getOptionValue("bgColor","#fff"),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),qrColor:this.getOptionValue("qrColor","#000000"),qrBgColor:this.getOptionValue("qrBgColor","#ffffff"),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderWidth:this.getOptionValue("borderWidth",1),qrSize:this.getOptionValue("qrSize",200),defaultContent:this.getOptionValue("defaultContent","http://www.mixlinker.com"),errorLevel:this.getOptionValue("errorLevel","M")})}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const u=new s(d,"qrcode");u.setupLifecycle();const c=u.getStyle(),h=d.conf,a=f.computed(()=>oe.generateTitleStyle(d.conf.options)),e=f.computed(()=>c.value.defaultContent||"http://www.mixlinker.com"),t=f.computed(()=>Math.min(c.value.qrSize,300)),r=f.computed(()=>({border:c.value.showBorder?`${c.value.borderWidth}px solid ${c.value.borderColor}`:"none",padding:c.value.showBorder?"8px":"0",background:c.value.qrBgColor,borderRadius:"4px"}));return(o,i)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(c).bgColor,borderRadius:`${f.unref(c).radiusSize}px`})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(a.value)},f.toDisplayString(f.unref(h).caption||f.unref(h).name),5),f.createElementVNode("div",me,[f.createElementVNode("div",{class:"qrcode-wrapper",style:f.normalizeStyle(r.value)},[f.createVNode(fe,{value:e.value,size:t.value,level:f.unref(c).errorLevel,"render-as":"svg",foreground:f.unref(c).qrColor,background:f.unref(c).qrBgColor},null,8,["value","size","level","foreground","background"])],4)]),f.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-3ff68f63"]]);exports.default=be;
|
|
@@ -11,8 +11,8 @@ var K = (n, d, s) => d in n ? ae(n, d, { enumerable: !0, configurable: !0, writa
|
|
|
11
11
|
return n;
|
|
12
12
|
}, U = (n, d) => oe(n, ne(d));
|
|
13
13
|
import { defineComponent as F, h as E, ref as $, onMounted as ue, watchEffect as se, Fragment as de, computed as A, openBlock as he, createElementBlock as ce, normalizeStyle as H, unref as z, createElementVNode as V, toDisplayString as fe, createVNode as ve, renderSlot as ge } from "vue";
|
|
14
|
-
import { B as me } from "./BaseComponent-
|
|
15
|
-
import { _ as Ce } from "./index-
|
|
14
|
+
import { B as me } from "./BaseComponent-7Sa7XOg-.js";
|
|
15
|
+
import { _ as Ce } from "./index-DUL649KZ.js";
|
|
16
16
|
import { g as we } from "./titleStyle-BT5GlpAb.js";
|
|
17
17
|
var R = function() {
|
|
18
18
|
return R = Object.assign || function(d) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var k=Object.defineProperty,j=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var U=(p,a,r)=>a in p?k(p,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):p[a]=r,R=(p,a)=>{for(var r in a||(a={}))W.call(a,r)&&U(p,r,a[r]);if(M)for(var r of M(a))Z.call(a,r)&&U(p,r,a[r]);return p},A=(p,a)=>j(p,q(a));var V=(p,a,r)=>new Promise((y,T)=>{var S=f=>{try{b(r.next(f))}catch(L){T(L)}},O=f=>{try{b(r.throw(f))}catch(L){T(L)}},b=f=>f.done?y(f.value):Promise.resolve(f.value).then(S,O);b((r=r.apply(p,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),X=require("vue-i18n"),_=require("./index-Bo49zvKb.cjs");require("element-plus");const G=require("./EChartComponentBase-BwbycwwW.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),E=require("./installCanvasRenderer-CyhM1Qpl.cjs"),K=require("./install-DV5cEgNV.cjs"),Q=require("./install-CltTFs4e.cjs"),Y=require("./install-C8buXQPI.cjs"),tt=require("./install-Ch5d8i37.cjs"),et="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",it="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ot={key:0,class:"mix-title-unit"},nt={class:"mix-body"},st=["id"],lt={DEFAULT_ICON:et,ACTIVE_ICON:it,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1,PLATFORM:["pc","screen","mobile"]},at={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:64,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},rt=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],ct=["name","fv","object_id","color"],ut=["mosaic"],ht={useAlias:!1,multiObject:!1,source:"mosaic",valueUnit:"",showPlanCompletionRate:!1},pt={DEFAULT:lt,OPTIONS:at,DATA:rt,PARAMS:ct,SOURCE:ut,COMMON:ht},dt=l.defineComponent(A(R({},pt),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){E.use([K.install,Q.install,E.install,Y.install,E.install$1,tt.install]);const a=p;function r(c,e,t){const i=c==null?void 0:c[e];return i==null?t:typeof i=="object"&&"value"in i?i.value:i}function y(c){return String(c).replace(/[|{}]/g,e=>({"|":"|","{":"﹛","}":"﹜"})[e]||e)}class T extends G.EChartComponentBase{constructor(){super(...arguments),this.CHART={rawValues:[],items:[],colors:[],times:[]}}parseNumericRaw(e){if(e==="--"||e===null||e===void 0||e==="")return null;const t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:null}ensureCommonFields(){const e=this.props.conf;(!e.common||typeof e.common!="object")&&(e.common={useAlias:!1,multiObject:!1,source:"mosaic"});const t=e.common;t.valueUnit===void 0&&(t.valueUnit=""),t.showPlanCompletionRate===void 0&&(t.showPlanCompletionRate=!1)}migrateLegacyDisplayOptions(){var h,d,g;this.ensureCommonFields();const e=this.props.conf.common,t=(h=this.props.conf.data)==null?void 0:h[0];t&&typeof t=="object"&&((!e.valueUnit||String(e.valueUnit).trim()==="")&&t.valueUnit!=null&&String(t.valueUnit).trim()!==""&&(e.valueUnit=String(t.valueUnit)),e.showPlanCompletionRate===!1&&t.showPlanCompletionRate===!0&&(e.showPlanCompletionRate=!0),"valueUnit"in t&&delete t.valueUnit,"showPlanCompletionRate"in t&&delete t.showPlanCompletionRate);const i=(d=this.props.conf.options)==null?void 0:d.valueUnit,o=i!=null&&typeof i=="object"&&"value"in i?i.value:i;(!e.valueUnit||String(e.valueUnit).trim()==="")&&o!==void 0&&o!==null&&String(o).trim()!==""&&(e.valueUnit=String(o));const n=(g=this.props.conf.options)==null?void 0:g.showPlanCompletionRate,u=n!=null&&typeof n=="object"&&"value"in n?n.value:n;e.showPlanCompletionRate===!1&&u===!0&&(e.showPlanCompletionRate=!0)}isPlanCompletionRateEnabled(){return this.ensureCommonFields(),!!this.props.conf.common.showPlanCompletionRate}resolveBarItemIndex(e){const t=this.CHART.items,i=[e==null?void 0:e.axisValue,e==null?void 0:e.name];for(const n of i){if(n==null||n==="")continue;const u=t.indexOf(String(n));if(u!==-1)return u}const o=e==null?void 0:e.dataIndex;return typeof o=="number"&&o>=0&&o<t.length?o:Math.min(Math.max(0,o!=null?o:0),Math.max(0,t.length-1))}extractStyles(){return A(R({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){return V(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.migrateLegacyDisplayOptions(),this.initChartData(),yield l.nextTick(),this.initChart()})}initChart(){super.initChart(),requestAnimationFrame(()=>{this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)})}initChartData(){var n,u;const e=this.props.conf,t=this.CHART.rawValues,i=this.CHART.items,o=t.length===((n=e.data)==null?void 0:n.length)&&i.length===((u=e.data)==null?void 0:u.length)&&i.every((h,d)=>{var g;return h===((g=e.data[d])==null?void 0:g.name)});this.CHART={rawValues:[],items:[],colors:[],times:[]},e.data.forEach((h,d)=>{const g=_.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(h.color||_.COLORS[d]),h.value!==void 0&&h.value!==""?this.CHART.rawValues.push(h.value):o&&t[d]!==void 0&&t[d]!==""?this.CHART.rawValues.push(t[d]):this.CHART.rawValues.push(g[0]),this.CHART.items.push(h.name)})}buildSeriesAndMax(){const e=this.isPlanCompletionRateEnabled(),t=this.CHART.rawValues.map(n=>this.parseNumericRaw(n)).filter(n=>n!==null),i=t.length?Math.max(...t):0;return{seriesData:this.CHART.rawValues.map(n=>{const u=this.parseNumericRaw(n);return u===null?null:e?i<=0?0:u/i*100:u}),maxNumeric:i}}getChartOption(){const e=this,t=this.Style.value,i=this.CHART,o=this.isPlanCompletionRateEnabled(),{seriesData:n,maxNumeric:u}=this.buildSeriesAndMax(),h=t.direction==="x",d=h?"right":"center",g={pct:{color:"#000000",fontSize:t.textSize,align:d,padding:h?[0,0,0,10]:[4,0,0,0]}};i.colors.forEach((s,x)=>{g[`raw${x}`]={color:s||"#5470c6",fontSize:t.textSize,align:d,fontWeight:500}});const D=s=>{const x=this.resolveBarItemIndex(s),C=i.rawValues[x];if(o&&u>0){const v=this.parseNumericRaw(C),w=y(String(C)),$=v!==null&&u>0?`${Math.round(v/u*100)}%`:"";return`{raw${x}|${w}}{pct|${y($)}}`}return`{raw${x}|${y(String(C))}}`},N=28,I=108,F=s=>{var v,w;const x=(w=(v=e.chartObj)==null?void 0:v.getWidth())!=null?w:0;return!x||!s.labelRect?{}:{x:x-12,y:s.labelRect.y+s.labelRect.height/2,verticalAlign:"middle",align:"right"}},H=h?t.right+I:t.right;let m={grid:{top:h?t.top:t.top+N,bottom:t.bottom,left:t.left,right:H,containLabel:!0},tooltip:{show:!0,formatter:s=>{const x=this.resolveBarItemIndex(s),C=i.rawValues[x],v=this.parseNumericRaw(C);let w=`${s.name}:`;return o&&u>0&&v!==null?w+=`${C}(${Math.round(v/u*100)}%)`:w+=String(C),w}},xAxis:{max:"dataMax",axisLine:{show:!0,color:t.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:t.textColor,fontSize:t.textSize,overflow:"none",interval:0,formatter:s=>s.length>4?s.substr(0,4):s}},yAxis:{axisLabel:{formatter:s=>s.length>5?s.substr(0,5)+`
|
|
2
|
-
`+
|
|
1
|
+
"use strict";var $=Object.defineProperty,k=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var U=(m,c,u)=>c in m?$(m,c,{enumerable:!0,configurable:!0,writable:!0,value:u}):m[c]=u,A=(m,c)=>{for(var u in c||(c={}))W.call(c,u)&&U(m,u,c[u]);if(N)for(var u of N(c))Z.call(c,u)&&U(m,u,c[u]);return m},T=(m,c)=>k(m,q(c));var z=(m,c,u)=>new Promise((w,O)=>{var S=g=>{try{b(u.next(g))}catch(L){O(L)}},E=g=>{try{b(u.throw(g))}catch(L){O(L)}},b=g=>g.done?w(g.value):Promise.resolve(g.value).then(S,E);b((u=u.apply(m,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),X=require("vue-i18n"),P=require("./index-Cm7hGuPj.cjs");require("element-plus");const G=require("./EChartComponentBase-DM6aSCAR.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),D=require("./installCanvasRenderer-CyhM1Qpl.cjs"),K=require("./install-DV5cEgNV.cjs"),Q=require("./install-CltTFs4e.cjs"),Y=require("./install-C8buXQPI.cjs"),tt=require("./install-Ch5d8i37.cjs"),et="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",it="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",nt={key:0,class:"mix-title-unit"},ot={class:"mix-body"},st=["id"],lt={DEFAULT_ICON:et,ACTIVE_ICON:it,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1,PLATFORM:["pc","screen","mobile"]},at={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:64,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},rt=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],ct=["name","fv","object_id","color"],ut=["mosaic"],ht={useAlias:!1,multiObject:!1,source:"mosaic",valueUnit:"",showPlanCompletionRate:!1},pt={DEFAULT:lt,OPTIONS:at,DATA:rt,PARAMS:ct,SOURCE:ut,COMMON:ht},dt=a.defineComponent(T(A({},pt),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(m){D.use([K.install,Q.install,D.install,Y.install,D.install$1,tt.install]);const c=m;function u(h,e,t){const i=h==null?void 0:h[e];return i==null?t:typeof i=="object"&&"value"in i?i.value:i}function w(h){return String(h).replace(/[|{}]/g,e=>({"|":"|","{":"﹛","}":"﹜"})[e]||e)}class O extends G.EChartComponentBase{constructor(){super(...arguments),this.CHART={rawValues:[],items:[],colors:[],times:[]}}parseNumericRaw(e){if(e==="--"||e===null||e===void 0||e==="")return null;const t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:null}ensureCommonFields(){const e=this.props.conf;(!e.common||typeof e.common!="object")&&(e.common={useAlias:!1,multiObject:!1,source:"mosaic"});const t=e.common;t.valueUnit===void 0&&(t.valueUnit=""),t.showPlanCompletionRate===void 0&&(t.showPlanCompletionRate=!1)}migrateLegacyDisplayOptions(){var r,p,d;this.ensureCommonFields();const e=this.props.conf.common,t=(r=this.props.conf.data)==null?void 0:r[0];t&&typeof t=="object"&&((!e.valueUnit||String(e.valueUnit).trim()==="")&&t.valueUnit!=null&&String(t.valueUnit).trim()!==""&&(e.valueUnit=String(t.valueUnit)),e.showPlanCompletionRate===!1&&t.showPlanCompletionRate===!0&&(e.showPlanCompletionRate=!0),"valueUnit"in t&&delete t.valueUnit,"showPlanCompletionRate"in t&&delete t.showPlanCompletionRate);const i=(p=this.props.conf.options)==null?void 0:p.valueUnit,o=i!=null&&typeof i=="object"&&"value"in i?i.value:i;(!e.valueUnit||String(e.valueUnit).trim()==="")&&o!==void 0&&o!==null&&String(o).trim()!==""&&(e.valueUnit=String(o));const n=(d=this.props.conf.options)==null?void 0:d.showPlanCompletionRate,s=n!=null&&typeof n=="object"&&"value"in n?n.value:n;e.showPlanCompletionRate===!1&&s===!0&&(e.showPlanCompletionRate=!0)}isPlanCompletionRateEnabled(){return this.ensureCommonFields(),!!this.props.conf.common.showPlanCompletionRate}resolveBarItemIndex(e){const t=this.CHART.items,i=[e==null?void 0:e.axisValue,e==null?void 0:e.name];for(const n of i){if(n==null||n==="")continue;const s=t.indexOf(String(n));if(s!==-1)return s}const o=e==null?void 0:e.dataIndex;return typeof o=="number"&&o>=0&&o<t.length?o:Math.min(Math.max(0,o!=null?o:0),Math.max(0,t.length-1))}extractStyles(){return T(A({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){return z(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.migrateLegacyDisplayOptions(),this.initChartData(),yield a.nextTick(),this.initChart()})}initChart(){super.initChart(),requestAnimationFrame(()=>{this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)})}initChartData(){var n,s;const e=this.props.conf,t=this.CHART.rawValues,i=this.CHART.items,o=t.length===((n=e.data)==null?void 0:n.length)&&i.length===((s=e.data)==null?void 0:s.length)&&i.every((r,p)=>{var d;return r===((d=e.data[p])==null?void 0:d.name)});this.CHART={rawValues:[],items:[],colors:[],times:[]},e.data.forEach((r,p)=>{const d=P.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(r.color||P.COLORS[p]),r.value!==void 0&&r.value!==""?this.CHART.rawValues.push(r.value):o&&t[p]!==void 0&&t[p]!==""?this.CHART.rawValues.push(t[p]):this.CHART.rawValues.push(d[0]),this.CHART.items.push(r.name)})}buildSeriesAndMax(){const e=this.isPlanCompletionRateEnabled(),t=this.CHART.rawValues.map(n=>this.parseNumericRaw(n)).filter(n=>n!==null),i=t.length?Math.max(...t):0;return{seriesData:this.CHART.rawValues.map(n=>{const s=this.parseNumericRaw(n);return s===null?null:e?i<=0?0:s/i*100:s}),maxNumeric:i}}getChartOption(){const e=this,t=this.Style.value,i=this.CHART,o=this.isPlanCompletionRateEnabled(),{seriesData:n,maxNumeric:s}=this.buildSeriesAndMax(),r=t.direction==="x",p=r?"right":"center",d={pct:{color:"#000000",fontSize:t.textSize,align:p,padding:r?[0,0,0,10]:[4,0,0,0]}};i.colors.forEach((l,x)=>{d[`raw${x}`]={color:l||"#5470c6",fontSize:t.textSize,align:p,fontWeight:500}});const R=l=>{const x=this.resolveBarItemIndex(l),C=i.rawValues[x];if(o&&s>0){const y=this.parseNumericRaw(C),v=w(String(C)),j=y!==null&&s>0?`${Math.round(y/s*100)}%`:"";return`{raw${x}|${v}}{pct|${w(j)}}`}return`{raw${x}|${w(String(C))}}`},_=28,V=108,I=l=>{var y,v;const x=(v=(y=e.chartObj)==null?void 0:y.getWidth())!=null?v:0;return!x||!l.labelRect?{}:{x:x-12,y:l.labelRect.y+l.labelRect.height/2,verticalAlign:"middle",align:"right"}},F=r?t.right+V:t.right;let f={grid:{top:r?t.top:t.top+_,bottom:t.bottom,left:t.left,right:F,containLabel:!0},tooltip:{show:!0,formatter:l=>{const x=this.resolveBarItemIndex(l),C=i.rawValues[x],y=this.parseNumericRaw(C);let v=`${l.name}:`;return o&&s>0&&y!==null?v+=`${C}(${Math.round(y/s*100)}%)`:v+=String(C),v}},xAxis:{max:"dataMax",axisLine:{show:!0,color:t.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:t.textColor,fontSize:t.textSize,overflow:"none",interval:0,formatter:l=>l.length>4?l.substr(0,4):l}},yAxis:{axisLabel:{formatter:l=>l.length>5?l.substr(0,5)+`
|
|
2
|
+
`+l.substr(5):l,color:t.textColor,fontSize:t.textSize,overflow:"none"},axisLine:{lineStyle:{color:t.textColor}},splitLine:{lineStyle:{}},animationDuration:300,animationDurationUpdate:300},series:[T(A({realtimeSort:t.realSort,type:"bar",barWidth:t.barWidth+"%",data:n},r?{labelLayout:I}:{}),{label:{show:!0,position:r?"right":"top",align:p,verticalAlign:r?"middle":"bottom",valueAnimation:!0,color:t.textColor,fontSize:t.textSize,rich:d,formatter:R},itemStyle:{color:l=>i.colors[this.resolveBarItemIndex(l)]||"#5470c6"}})],animationDuration:0,animationDurationUpdate:500,animationEasing:"linear",animationEasingUpdate:"linear"};return r?(f.yAxis.data=i.items,t.realSort&&(f.yAxis.inverse=t.sortType==="desc"),f.xAxis.splitLine.lineStyle.type="dashed",o&&s>0&&(f.xAxis.max=100,f.xAxis.axisLabel.formatter=l=>`${l}%`)):(f.xAxis.data=i.items,delete f.xAxis.max,t.realSort&&(f.xAxis.inverse=t.sortType==="asc"),f.yAxis.splitLine.lineStyle.type="dashed",delete f.yAxis.type,o&&s>0&&(f.yAxis.max=100,f.yAxis.axisLabel.formatter=l=>`${l}%`)),f}setHistoryData(e){if(!(e!=null&&e.length)||!this.chartObj)return;const{data:t}=this.props.conf;if(!Array.isArray(t)||!t.length)return;const i=n=>{if(n==null||n===""||n==="-")return null;const s=Number(n);return Number.isFinite(s)?s:null},o=Number(this.Style.value.points)||10;t.forEach((n,s)=>{var _;const r=e[s];if(!((_=r==null?void 0:r.data)!=null&&_.length)){this.CHART.rawValues[s]="--";return}const d=r.data.map(i).filter(V=>V!==null).slice(-o),R=d.length?d[d.length-1]:null;this.CHART.rawValues[s]=R!==null?R:"--"}),this.chartObj.setOption(this.getChartOption(),!1)}setSocketData(e){if(!this.hasData()||!e||!this.chartObj)return;const{data:t}=this.props.conf;this.CHART.rawValues=[],t.forEach(o=>{const n=this.extractDataValue(e,o.fv);this.CHART.rawValues.push(n!=null?n:"--")});const{seriesData:i}=this.buildSeriesAndMax();this.chartObj.setOption({series:[{data:i}]})}}const S=new O(c,"raceBar");S.setupLifecycle();const E=S.getStyle(),b=S.getEchartId(),g=c.conf,{t:L}=X.useI18n(),M=a.computed(()=>{var o;const h=((o=c.conf)==null?void 0:o.common)||{},e=String(h.valueUnit||"").trim(),t=!!h.showPlanCompletionRate,i=[];return e&&i.push(e),t&&i.push(L("component.options.showPlanCompletionRate")),i.join(" / ")}),B=a.computed(()=>{const h=J.generateTitleStyle(c.conf.options);return h.display==="none"?h:T(A({},h),{display:"flex",alignItems:"center",gap:"8px",textAlign:"initial"})}),H=a.computed(()=>{var e;const h=((e=c.conf)==null?void 0:e.options)||{};return{flex:"1",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:u(h,"titleColor","#111"),fontSize:`${u(h,"titleSize",14)}px`,fontWeight:u(h,"titleWeight","bold"),textAlign:u(h,"titleAlign","left")}});return(h,e)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(E).bgColor,borderRadius:`${a.unref(E).radiusSize}px`})},[a.createElementVNode("div",{class:"mix-title",style:a.normalizeStyle(B.value)},[a.createElementVNode("span",{class:"mix-title-caption",style:a.normalizeStyle(H.value)},a.toDisplayString(a.unref(g).caption||a.unref(g).name),5),M.value?(a.openBlock(),a.createElementBlock("span",nt,a.toDisplayString(M.value),1)):a.createCommentVNode("",!0)],4),a.createElementVNode("div",ot,[a.createElementVNode("div",{class:"w-full h-full",id:a.unref(b)},null,8,st)]),a.renderSlot(h.$slots,"default",{},void 0,!0)],4))}})),mt=P._export_sfc(dt,[["__scopeId","data-v-9d472850"]]);exports.default=mt;
|