@qynpm/ui 1.0.38 → 1.0.40
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/README.md +117 -113
- package/dist/index.cjs +2 -1
- package/dist/index.mjs +50 -48
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-alert/index.cjs +1 -1
- package/dist/qy-alert/index.mjs +1 -1
- package/dist/qy-aside/index.cjs +1 -1
- package/dist/qy-aside/index.mjs +1 -1
- package/dist/qy-autocomplete/index.cjs +1 -1
- package/dist/qy-autocomplete/index.mjs +1 -1
- package/dist/qy-avatar/index.cjs +1 -1
- package/dist/qy-avatar/index.mjs +1 -1
- package/dist/qy-badge/index.cjs +1 -1
- package/dist/qy-badge/index.mjs +1 -1
- package/dist/qy-button/index.cjs +1 -1
- package/dist/qy-button/index.mjs +1 -1
- package/dist/qy-card/index.cjs +1 -1
- package/dist/qy-card/index.mjs +1 -1
- package/dist/qy-cascader/index.cjs +1 -1
- package/dist/qy-cascader/index.mjs +1 -1
- package/dist/qy-checkbox/index.cjs +1 -1
- package/dist/qy-checkbox/index.mjs +1 -1
- package/dist/qy-checkbox-group/index.cjs +1 -1
- package/dist/qy-checkbox-group/index.mjs +1 -1
- package/dist/qy-col/index.cjs +1 -1
- package/dist/qy-col/index.mjs +1 -1
- package/dist/qy-collapse/index.cjs +1 -1
- package/dist/qy-collapse/index.mjs +1 -1
- package/dist/qy-collapse-item/index.cjs +1 -1
- package/dist/qy-collapse-item/index.mjs +1 -1
- package/dist/qy-color-picker/index.cjs +1 -1
- package/dist/qy-color-picker/index.mjs +1 -1
- package/dist/qy-container/index.cjs +1 -1
- package/dist/qy-container/index.mjs +1 -1
- package/dist/qy-date-picker/index.cjs +1 -1
- package/dist/qy-date-picker/index.mjs +1 -1
- package/dist/qy-descriptions/index.cjs +1 -1
- package/dist/qy-descriptions/index.mjs +1 -1
- package/dist/qy-descriptions-item/index.cjs +1 -1
- package/dist/qy-descriptions-item/index.mjs +1 -1
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +1 -1
- package/dist/qy-divider/index.cjs +1 -1
- package/dist/qy-divider/index.mjs +1 -1
- package/dist/qy-drawer/index.cjs +1 -1
- package/dist/qy-drawer/index.mjs +1 -1
- package/dist/qy-dropdown/index.cjs +1 -1
- package/dist/qy-dropdown/index.mjs +1 -1
- package/dist/qy-empty/index.cjs +1 -1
- package/dist/qy-empty/index.mjs +1 -1
- package/dist/qy-file-picker/index.cjs +1 -1
- package/dist/qy-file-picker/index.mjs +1 -1
- package/dist/qy-form-section/index.cjs +1 -1
- package/dist/qy-form-section/index.mjs +1 -1
- package/dist/qy-fullscreen/index.cjs +1 -1
- package/dist/qy-fullscreen/index.mjs +1 -1
- package/dist/qy-icon/index.cjs +1 -1
- package/dist/qy-icon/index.mjs +2 -2
- package/dist/qy-icon-picker/index.cjs +1 -1
- package/dist/qy-icon-picker/index.mjs +1 -1
- package/dist/qy-iframe/index.cjs +1 -1
- package/dist/qy-iframe/index.mjs +1 -1
- package/dist/qy-image/index.cjs +1 -1
- package/dist/qy-image/index.mjs +1 -1
- package/dist/qy-image-preview/index.cjs +1 -1
- package/dist/qy-image-preview/index.mjs +1 -1
- package/dist/qy-image-upload/index.cjs +1 -1
- package/dist/qy-image-upload/index.mjs +1 -1
- package/dist/qy-input/index.cjs +1 -1
- package/dist/qy-input/index.mjs +1 -1
- package/dist/qy-input-number/index.cjs +1 -1
- package/dist/qy-input-number/index.mjs +1 -1
- package/dist/qy-input-tag/index.cjs +1 -1
- package/dist/qy-input-tag/index.mjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
- package/dist/qy-link/index.cjs +1 -1
- package/dist/qy-link/index.mjs +1 -1
- package/dist/qy-main/index.cjs +1 -1
- package/dist/qy-main/index.mjs +1 -1
- package/dist/qy-menu-actions/index.cjs +1 -1
- package/dist/qy-menu-actions/index.mjs +1 -1
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +1 -1
- package/dist/qy-pagination/index.cjs +1 -0
- package/dist/qy-pagination/index.mjs +7 -0
- package/dist/qy-popconfirm/index.cjs +1 -1
- package/dist/qy-popconfirm/index.mjs +1 -1
- package/dist/qy-popover/index.cjs +1 -1
- package/dist/qy-popover/index.mjs +1 -1
- package/dist/qy-progress/index.cjs +1 -1
- package/dist/qy-progress/index.mjs +1 -1
- package/dist/qy-radio/index.cjs +1 -1
- package/dist/qy-radio/index.mjs +1 -1
- package/dist/qy-radio-group/index.cjs +1 -1
- package/dist/qy-radio-group/index.mjs +1 -1
- package/dist/qy-record-quote-search/index.cjs +1 -1
- package/dist/qy-record-quote-search/index.mjs +1 -1
- package/dist/qy-remark-image/index.cjs +1 -1
- package/dist/qy-remark-image/index.mjs +1 -1
- package/dist/qy-remote-select/index.cjs +1 -1
- package/dist/qy-remote-select/index.mjs +1 -1
- package/dist/qy-result/index.cjs +1 -1
- package/dist/qy-result/index.mjs +1 -1
- package/dist/qy-row/index.cjs +1 -1
- package/dist/qy-row/index.mjs +1 -1
- package/dist/qy-scrollbar/index.cjs +1 -1
- package/dist/qy-scrollbar/index.mjs +1 -1
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +1 -1
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +1 -1
- package/dist/qy-selection-dialog/index.mjs +1 -1
- package/dist/qy-skeleton/index.cjs +1 -1
- package/dist/qy-skeleton/index.mjs +1 -1
- package/dist/qy-skeleton-item/index.cjs +1 -1
- package/dist/qy-skeleton-item/index.mjs +1 -1
- package/dist/qy-statistic/index.cjs +1 -1
- package/dist/qy-statistic/index.mjs +1 -1
- package/dist/qy-step/index.cjs +1 -1
- package/dist/qy-step/index.mjs +1 -1
- package/dist/qy-steps/index.cjs +1 -1
- package/dist/qy-steps/index.mjs +1 -1
- package/dist/qy-switch/index.cjs +1 -1
- package/dist/qy-switch/index.mjs +1 -1
- package/dist/qy-tab-pane/index.cjs +1 -1
- package/dist/qy-tab-pane/index.mjs +1 -1
- package/dist/qy-table-column-settings/index.cjs +1 -1
- package/dist/qy-table-column-settings/index.mjs +1 -1
- package/dist/qy-tabs/index.cjs +1 -1
- package/dist/qy-tabs/index.mjs +1 -1
- package/dist/qy-tag/index.cjs +1 -1
- package/dist/qy-tag/index.mjs +1 -1
- package/dist/qy-tooltip/index.cjs +1 -1
- package/dist/qy-tooltip/index.mjs +1 -1
- package/dist/qy-tree/index.cjs +1 -1
- package/dist/qy-tree/index.mjs +1 -1
- package/dist/qy-tree-select/index.cjs +1 -1
- package/dist/qy-tree-select/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +1 -1
- package/dist/qy-watermark/index.cjs +1 -1
- package/dist/qy-watermark/index.mjs +1 -1
- package/dist/shared/{index-WUwab92q.mjs → index-1Vw54aYL.mjs} +9 -9
- package/dist/shared/{index-Cs-LC7ZG.mjs → index-5vWL_IJI.mjs} +15 -15
- package/dist/shared/{index-xhROPBam.mjs → index-7fIb2Tqw.mjs} +12 -12
- package/dist/shared/{index-CyJHJCj8.cjs → index-9T0p3USM.cjs} +1 -1
- package/dist/shared/{index-BxQnJVT8.cjs → index-B-zfoMbw.cjs} +1 -1
- package/dist/shared/{index-qLomEtF6.mjs → index-B1I7mCIm.mjs} +3 -3
- package/dist/shared/{index-CnIZoCkL.mjs → index-B1aU9mew.mjs} +10 -10
- package/dist/shared/{index-BIWER6Wa.cjs → index-B26-GlFX.cjs} +1 -1
- package/dist/shared/{index-CF3vimnX.mjs → index-B63vgrS4.mjs} +7 -7
- package/dist/shared/{index-CJxpEc9q.cjs → index-B97hTd-h.cjs} +1 -1
- package/dist/shared/{index-CypWMqI4.cjs → index-B9zEH5Yq.cjs} +1 -1
- package/dist/shared/{index--I-pLtO3.cjs → index-BA_tJgLE.cjs} +1 -1
- package/dist/shared/{index-DiNSSXC8.mjs → index-BBIPQa5N.mjs} +4 -4
- package/dist/shared/index-BCWvMvRL.cjs +1 -0
- package/dist/shared/{index-DtXU2qQS.cjs → index-BDJIWxaw.cjs} +1 -1
- package/dist/shared/{index-DdoFHdjY.mjs → index-BFbAB8UH.mjs} +41 -41
- package/dist/shared/{index-B-d53uut.mjs → index-BG3XKumS.mjs} +10 -10
- package/dist/shared/{index-CCqfQb_M.mjs → index-BHGDbXoK.mjs} +9 -9
- package/dist/shared/{index-Cz6Lo9RL.cjs → index-BInkt-Al.cjs} +1 -1
- package/dist/shared/{index-jdGrSpGg.mjs → index-BKEw_9fh.mjs} +553 -550
- package/dist/shared/{index-BOLL0aGP.mjs → index-BNfu2YgX.mjs} +7 -7
- package/dist/shared/{index-CaM4EpCy.mjs → index-BPXJkcM1.mjs} +7 -7
- package/dist/shared/{index-Q8rXwNnM.mjs → index-BQzQcTgt.mjs} +2 -2
- package/dist/shared/{index-4uXwnK7G.cjs → index-BUSdZ-x8.cjs} +1 -1
- package/dist/shared/{index-ChEefC0G.cjs → index-BZDbBD41.cjs} +1 -1
- package/dist/shared/{index-Di3R0FOU.cjs → index-Bc1ny9GC.cjs} +1 -1
- package/dist/shared/{index-B8S5RT2Z.mjs → index-BcscC86C.mjs} +30 -30
- package/dist/shared/{index-B0aY8Q_T.cjs → index-BiowqiSD.cjs} +1 -1
- package/dist/shared/{index-hPaHbb1Y.cjs → index-Bpl6Jh4H.cjs} +1 -1
- package/dist/shared/{index-DgPQ8292.cjs → index-BqojE7aF.cjs} +1 -1
- package/dist/shared/{index-mKnRWsLn.cjs → index-BrZzYI8x.cjs} +1 -1
- package/dist/shared/{index-DI5COVol.cjs → index-BsXys36-.cjs} +1 -1
- package/dist/shared/{index-gOUVgYd_.cjs → index-BvmXE8aK.cjs} +1 -1
- package/dist/shared/{index-D_l30Gzr.cjs → index-Bw3nETeY.cjs} +1 -1
- package/dist/shared/{index-DnFQkBfl.cjs → index-BxxuaQGJ.cjs} +1 -1
- package/dist/shared/{index-Du-FNseo.cjs → index-BxymsnW0.cjs} +1 -1
- package/dist/shared/{index-DniPcZnL.mjs → index-BzpgGytE.mjs} +8 -8
- package/dist/shared/{index-BiCdxX0E.mjs → index-BzzZmppN.mjs} +10 -10
- package/dist/shared/{index-B3wIgwN7.cjs → index-C0rOcDsc.cjs} +1 -1
- package/dist/shared/{index-Ba5CLmrh.mjs → index-C1hAuubZ.mjs} +8 -8
- package/dist/shared/{index-YWKumDEW.mjs → index-C2BQtQPa.mjs} +7 -7
- package/dist/shared/{index-DQn_5j_f.cjs → index-C62Loq0f.cjs} +1 -1
- package/dist/shared/{index-DFTSBy3g.mjs → index-C7N8x3DK.mjs} +36 -36
- package/dist/shared/{index-B8znc-qD.cjs → index-C8aLbb8l.cjs} +1 -1
- package/dist/shared/{index-DS539-rn.mjs → index-CA279UZp.mjs} +27 -27
- package/dist/shared/{index-BE4CELs-.mjs → index-CBhrdEIf.mjs} +1 -1
- package/dist/shared/{index-COpowa-E.mjs → index-CCVlab6d.mjs} +9 -9
- package/dist/shared/{index-Bg_o9zrB.cjs → index-CDjAMIpe.cjs} +1 -1
- package/dist/shared/{index-BWO4qxne.mjs → index-CDleTMJj.mjs} +11 -11
- package/dist/shared/{index-B-PlDm1A.cjs → index-CG4I3nRK.cjs} +1 -1
- package/dist/shared/{index-0mok5nS2.cjs → index-CHt1R1WD.cjs} +1 -1
- package/dist/shared/index-CZIsLBLq.cjs +1 -0
- package/dist/shared/{index-DFnpyAa1.mjs → index-CcEXTVYA.mjs} +14 -14
- package/dist/shared/{index-DVPk0jMO.cjs → index-CedTjtZr.cjs} +1 -1
- package/dist/shared/{index-DpitpmqK.mjs → index-CgXuleV-.mjs} +20 -20
- package/dist/shared/index-CkfWS0Ba.cjs +1 -0
- package/dist/shared/index-Cm7k9j8a.cjs +1 -0
- package/dist/shared/{index-CWB5fAb7.mjs → index-CmgT_pgc.mjs} +12 -12
- package/dist/shared/{index-Ba3qQVYM.cjs → index-CngdcQWi.cjs} +1 -1
- package/dist/shared/{index-CjKfmMG4.cjs → index-CqdhLbMe.cjs} +1 -1
- package/dist/shared/index-CrlLsoRF.mjs +78 -0
- package/dist/shared/{index-DeBjILEK.cjs → index-CsI1WBRp.cjs} +1 -1
- package/dist/shared/{index-bvvNTmuM.mjs → index-CsXA7Qfy.mjs} +8 -8
- package/dist/shared/{index-jsEFCWaY.mjs → index-CsaDF9d4.mjs} +21 -21
- package/dist/shared/{index-DyqFfMhy.mjs → index-CvdUJpAu.mjs} +12 -12
- package/dist/shared/{index-CftZiihF.mjs → index-CvfLEIFE.mjs} +28 -27
- package/dist/shared/{index-D1cbnYac.mjs → index-CwcD7q4B.mjs} +9 -9
- package/dist/shared/{index-CXAVVShG.mjs → index-D0kCG3Ov.mjs} +37 -37
- package/dist/shared/{index-R6vvV3td.cjs → index-D1-QYDXi.cjs} +1 -1
- package/dist/shared/{index-CioDI8Ys.cjs → index-D1BK66mG.cjs} +1 -1
- package/dist/shared/index-D3IHte_d.cjs +1 -0
- package/dist/shared/{index-BmWDUjpi.mjs → index-D3VO2Ccd.mjs} +8 -8
- package/dist/shared/{index-DWrymMO5.cjs → index-D5spJ8nj.cjs} +1 -1
- package/dist/shared/{index-B71cpH4T.cjs → index-D7uPizqd.cjs} +1 -1
- package/dist/shared/{index-TMhQv4oD.mjs → index-D8OJx-hy.mjs} +21 -21
- package/dist/shared/{index-BsRfuMop.cjs → index-D97QYFZw.cjs} +1 -1
- package/dist/shared/{index-_AB6uqZw.mjs → index-DAiFZxwY.mjs} +13 -13
- package/dist/shared/{index-xdsYNS2u.mjs → index-DBz3lz62.mjs} +12 -12
- package/dist/shared/{index-CndG7UWF.mjs → index-DCKEecrx.mjs} +24 -24
- package/dist/shared/index-DCneRuMf.mjs +78 -0
- package/dist/shared/{index-DePXY0TI.cjs → index-DD-zKgrO.cjs} +1 -1
- package/dist/shared/{index-DRICnDix.mjs → index-DEHvfBYQ.mjs} +8 -8
- package/dist/shared/{index-VtJrvPka.mjs → index-DF_Q6c4g.mjs} +1 -1
- package/dist/shared/index-DFeV2CL8.cjs +1 -0
- package/dist/shared/{index-2xIkj7uz.cjs → index-DIckpqrH.cjs} +1 -1
- package/dist/shared/{index-DwHzztSj.cjs → index-DKKMSKqm.cjs} +1 -1
- package/dist/shared/{index-D8-4wR07.mjs → index-DPhYSn9g.mjs} +19 -19
- package/dist/shared/{index-BsTSa25A.cjs → index-DSq7WIiO.cjs} +1 -1
- package/dist/shared/{index-DTOfhAXP.mjs → index-DTHRZ-aL.mjs} +20 -20
- package/dist/shared/{index-BM3ueCK9.cjs → index-DTqCwGN_.cjs} +1 -1
- package/dist/shared/{index-B1-htEYJ.mjs → index-DVwCIrin.mjs} +27 -27
- package/dist/shared/{index-DAoXMHpO.mjs → index-DZU3jXf9.mjs} +1 -1
- package/dist/shared/index-D_Imq4-m.mjs +72 -0
- package/dist/shared/{index-fVS62tLm.mjs → index-DbxSDJ7e.mjs} +5 -5
- package/dist/shared/{index-Bx_faI_u.mjs → index-Dc4A_1-H.mjs} +10 -10
- package/dist/shared/index-Dchy1DNn.mjs +197 -0
- package/dist/shared/{index-gU6HjdHv.mjs → index-DdKCUobQ.mjs} +55 -55
- package/dist/shared/{index-CRU4YvLz.cjs → index-DdX40CzJ.cjs} +1 -1
- package/dist/shared/{index-CutbNRjY.mjs → index-DfP6txWq.mjs} +6 -6
- package/dist/shared/{index-BoGA3Pdv.cjs → index-Dh_dh3TS.cjs} +1 -1
- package/dist/shared/{index-BigCKPUY.mjs → index-DjRDV62n.mjs} +36 -36
- package/dist/shared/{index-DYYPqv3Y.cjs → index-DpGlBnUl.cjs} +1 -1
- package/dist/shared/{index-C7GXprxF.cjs → index-DsDUAk2R.cjs} +1 -1
- package/dist/shared/{index-C97qoSgI.cjs → index-DxUzSONj.cjs} +1 -1
- package/dist/shared/{index-Hn-IGtqe.cjs → index-DypZJHmM.cjs} +1 -1
- package/dist/shared/{index-DmEwKHe4.cjs → index-DzCwEfCQ.cjs} +1 -1
- package/dist/shared/{index-Cp0dxH7g.mjs → index-EPcAlzgc.mjs} +4 -4
- package/dist/shared/{index-u7VYI7Kg.mjs → index-GRwpbz1m.mjs} +11 -11
- package/dist/shared/index-Gyu5R4Gn.cjs +1 -0
- package/dist/shared/{index-DULBwiHC.mjs → index-IJJI2ylC.mjs} +12 -12
- package/dist/shared/index-LDtOVxCE.mjs +36 -0
- package/dist/shared/{index-lsWZ_M5R.mjs → index-OaA2R7Ur.mjs} +20 -20
- package/dist/shared/{index-BhO1ARf9.cjs → index-S2TDFo5d.cjs} +1 -1
- package/dist/shared/{index-9KXqMXBF.mjs → index-Se0xx6vl.mjs} +9 -9
- package/dist/shared/{index-BA6hc-j-.mjs → index-TVUj4Yp4.mjs} +4 -4
- package/dist/shared/index-U3c1apvC.cjs +1 -0
- package/dist/shared/{index-Brxx2EqN.mjs → index-VExJFRrd.mjs} +31 -31
- package/dist/shared/{index-CeasMt4r.mjs → index-Xw2_Py_V.mjs} +10 -10
- package/dist/shared/{index-Db7PhnjA.cjs → index-ZbSETCxZ.cjs} +1 -1
- package/dist/shared/index-ZkHMbIv4.cjs +1 -0
- package/dist/shared/{index-Nx_w1JYm.cjs → index-aveXATNw.cjs} +1 -1
- package/dist/shared/{index-DnexuGuJ.cjs → index-byOl9Vtk.cjs} +1 -1
- package/dist/shared/{index-i0G6DcP0.cjs → index-fiuhurmv.cjs} +1 -1
- package/dist/shared/{index-BCfULlZK.cjs → index-pqwrEshN.cjs} +1 -1
- package/dist/shared/{index-DEosiUQV.mjs → index-rowlxa3p.mjs} +26 -26
- package/dist/shared/{index-DZzMTGSJ.cjs → index-trf8Dvbk.cjs} +1 -1
- package/dist/shared/{index-DxFfP2Fn.cjs → index-tsfRa5ze.cjs} +1 -1
- package/dist/shared/{index-BcPpl_OJ.mjs → index-uRVIiLjP.mjs} +22 -22
- package/index.d.ts +122 -113
- package/package.json +496 -490
- package/qy-alert/index.d.ts +64 -64
- package/qy-autocomplete/index.d.ts +5 -5
- package/qy-avatar/index.d.ts +67 -67
- package/qy-badge/index.d.ts +63 -63
- package/qy-card/index.d.ts +64 -64
- package/qy-cascader/index.d.ts +198 -198
- package/qy-collapse/index.d.ts +59 -59
- package/qy-collapse-item/index.d.ts +45 -45
- package/qy-descriptions/index.d.ts +47 -47
- package/qy-descriptions-item/index.d.ts +46 -46
- package/qy-dialog/index.d.ts +63 -63
- package/qy-divider/index.d.ts +53 -53
- package/qy-drawer/index.d.ts +55 -55
- package/qy-empty/index.d.ts +51 -51
- package/qy-file-picker/index.d.ts +4 -4
- package/qy-icon/index.d.ts +9 -9
- package/qy-iframe/index.d.ts +66 -66
- package/qy-image/index.d.ts +28 -28
- package/qy-image-preview/index.d.ts +20 -20
- package/qy-image-upload/index.d.ts +69 -69
- package/qy-input/index.d.ts +76 -76
- package/qy-input-number/index.d.ts +64 -64
- package/qy-input-tag/index.d.ts +69 -69
- package/qy-link/index.d.ts +69 -69
- package/qy-loading/index.d.ts +25 -25
- package/qy-menu-actions/index.d.ts +29 -29
- package/qy-money-input/index.d.ts +87 -87
- package/qy-pagination/index.d.ts +40 -0
- package/qy-progress/index.d.ts +74 -74
- package/qy-result/index.d.ts +64 -64
- package/qy-scrollbar/index.d.ts +85 -85
- package/qy-skeleton/index.d.ts +54 -54
- package/qy-skeleton-item/index.d.ts +48 -48
- package/qy-step/index.d.ts +55 -55
- package/qy-steps/index.d.ts +62 -62
- package/qy-tab-pane/index.d.ts +40 -40
- package/qy-table-column-settings/index.d.ts +18 -18
- package/qy-tabs/index.d.ts +84 -84
- package/qy-tree/index.d.ts +132 -132
- package/qy-tree-select/index.d.ts +123 -123
- package/qy-upload/index.d.ts +99 -99
- package/dist/shared/index-0aCI4Gj1.mjs +0 -78
- package/dist/shared/index-B1ZuGEIr.cjs +0 -1
- package/dist/shared/index-BFFnf0Bn.cjs +0 -1
- package/dist/shared/index-Bguu2ys0.cjs +0 -1
- package/dist/shared/index-Btwke2ql.cjs +0 -1
- package/dist/shared/index-CDGjUhaC.mjs +0 -72
- package/dist/shared/index-CSMOYD1R.cjs +0 -1
- package/dist/shared/index-CrwhANF5.mjs +0 -78
- package/dist/shared/index-CzyB5ttX.cjs +0 -1
- package/dist/shared/index-D9dQaZtu.cjs +0 -1
- package/dist/shared/index-DNMOtH4s.mjs +0 -36
- package/dist/shared/index-jP71VQxo.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a, openBlock as o, createBlock as l, normalizeProps as
|
|
1
|
+
import { defineComponent as a, openBlock as o, createBlock as l, normalizeProps as u, guardReactiveProps as c, withCtx as p, renderSlot as _, computed as f, h as m } from "vue";
|
|
2
2
|
import { ElMain as d } from "element-plus";
|
|
3
3
|
import { _ as i } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
4
|
const h = /* @__PURE__ */ a({
|
|
@@ -13,10 +13,10 @@ const h = /* @__PURE__ */ a({
|
|
|
13
13
|
return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
function M(e, r, t, n, s,
|
|
16
|
+
function M(e, r, t, n, s, E) {
|
|
17
17
|
return o(), l(
|
|
18
18
|
n.ElMain,
|
|
19
|
-
c(
|
|
19
|
+
u(c(e.$attrs)),
|
|
20
20
|
{
|
|
21
21
|
default: p(() => [
|
|
22
22
|
_(e.$slots, "default")
|
|
@@ -28,12 +28,12 @@ function M(e, r, t, n, s, x) {
|
|
|
28
28
|
/* FULL_PROPS */
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
|
-
const b = /* @__PURE__ */ i(h, [["render", M], ["__file", "
|
|
31
|
+
const b = /* @__PURE__ */ i(h, [["render", M], ["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-main/renderer/element-plus.vue"]]), v = (e) => e === "class" || e === "style" || e === "id" || e === "role" || e === "title" || e.startsWith("data-") || e.startsWith("aria-"), x = a({
|
|
32
32
|
name: "QyMain",
|
|
33
33
|
inheritAttrs: !1,
|
|
34
34
|
setup(e, { attrs: r, slots: t }) {
|
|
35
35
|
const n = f(
|
|
36
|
-
() => Object.fromEntries(Object.entries(r).filter(([s]) =>
|
|
36
|
+
() => Object.fromEntries(Object.entries(r).filter(([s]) => v(s)))
|
|
37
37
|
);
|
|
38
38
|
return () => m(
|
|
39
39
|
b,
|
|
@@ -41,7 +41,7 @@ const b = /* @__PURE__ */ i(h, [["render", M], ["__file", "C:/Users/wzqy/.codex/
|
|
|
41
41
|
t.default ? { default: t.default } : void 0
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
44
|
+
}), q = /* @__PURE__ */ i(x, [["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-main/index.vue"]]);
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
q as M
|
|
47
47
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as u, computed as f, h as r, isVNode as
|
|
2
|
-
import { ElDescriptions as
|
|
1
|
+
import { defineComponent as u, computed as f, h as r, isVNode as m, Fragment as s } from "vue";
|
|
2
|
+
import { ElDescriptions as c, ElDescriptionsItem as d } from "element-plus";
|
|
3
3
|
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
4
|
const y = (t) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t.startsWith("data-") || t.startsWith("aria-"), p = {
|
|
5
5
|
label: ["label"],
|
|
@@ -23,7 +23,7 @@ function A(t) {
|
|
|
23
23
|
i && (e[a] = t == null ? void 0 : t[i]);
|
|
24
24
|
}), e.span ?? (e.span = 1), e.rowspan ?? (e.rowspan = 1), e;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function h(t) {
|
|
27
27
|
if (t && typeof t == "object" && !Array.isArray(t)) {
|
|
28
28
|
const e = {};
|
|
29
29
|
return typeof t.default == "function" && (e.default = t.default), typeof t.label == "function" && (e.label = t.label), e;
|
|
@@ -38,7 +38,7 @@ function l(t) {
|
|
|
38
38
|
e.push(...l(a));
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
-
if (!
|
|
41
|
+
if (!m(a)) {
|
|
42
42
|
e.push(a);
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
@@ -46,7 +46,7 @@ function l(t) {
|
|
|
46
46
|
e.push(r(
|
|
47
47
|
d,
|
|
48
48
|
{ ...A(a.props), key: a.key ?? void 0 },
|
|
49
|
-
|
|
49
|
+
h(a.children)
|
|
50
50
|
));
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
@@ -86,7 +86,7 @@ const x = u({
|
|
|
86
86
|
() => Object.fromEntries(Object.entries(e).filter(([i]) => y(i)))
|
|
87
87
|
);
|
|
88
88
|
return () => r(
|
|
89
|
-
|
|
89
|
+
c,
|
|
90
90
|
{
|
|
91
91
|
...n.value,
|
|
92
92
|
class: ["qy-descriptions", n.value.class],
|
|
@@ -108,7 +108,7 @@ const x = u({
|
|
|
108
108
|
}
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
|
-
}), z = /* @__PURE__ */ b(x, [["__file", "
|
|
111
|
+
}), z = /* @__PURE__ */ b(x, [["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-descriptions/index.vue"]]);
|
|
112
112
|
export {
|
|
113
113
|
z as D
|
|
114
114
|
};
|
|
@@ -13,7 +13,7 @@ const t = e({
|
|
|
13
13
|
setup() {
|
|
14
14
|
return () => null;
|
|
15
15
|
}
|
|
16
|
-
}),
|
|
16
|
+
}), o = /* @__PURE__ */ a(t, [["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-tab-pane/index.vue"]]);
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
o as T
|
|
19
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("vue"),o=require("element-plus"),a=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),u=["primary","success","warning","info","error"],f=["light","dark"],d={title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info",validator:e=>u.includes(e)},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:e=>f.includes(e)}},p=l.defineComponent({name:"QyAlert",inheritAttrs:!1,props:d,emits:{close:()=>!0},setup(e,{attrs:
|
|
1
|
+
"use strict";const l=require("vue"),o=require("element-plus"),a=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),u=["primary","success","warning","info","error"],f=["light","dark"],d={title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info",validator:e=>u.includes(e)},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:e=>f.includes(e)}},p=l.defineComponent({name:"QyAlert",inheritAttrs:!1,props:d,emits:{close:()=>!0},setup(e,{attrs:r,slots:n,emit:i}){const s=l.computed(()=>Object.fromEntries(Object.entries(r).filter(([t])=>t==="class"||t==="style"||t==="id"||t==="role"||t.startsWith("data-")||t.startsWith("aria-")))),c=l.computed(()=>Object.fromEntries(["icon","title","default"].filter(t=>n[t]).map(t=>[t,n[t]])));return()=>l.h(o.ElAlert,{...s.value,title:e.title,description:e.description,type:e.type,closable:e.closable,closeText:e.closeText,showIcon:e.showIcon,center:e.center,effect:e.effect,onClose:()=>i("close")},c.value)}}),m=a._export_sfc(p,[["__file","D:/xushenz/qy-components/packages/ui/lib/qy-alert/index.vue"]]);exports.Alert=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),J=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),J=require("./index-D97QYFZw.cjs"),X=require("./index-DypZJHmM.cjs"),Z=require("../qy-popover/index.cjs"),R=require("./index-B9zEH5Yq.cjs"),$=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function ee(i,c){const f=c==null?"":String(c),n=i&&f?i.resolve(f):void 0;return Object.freeze({value:f,known:!!n,canonicalName:n==null?void 0:n.name,definition:n})}function ne(i,c,f=""){const n=(i==null?void 0:i.list())??[],d=c===void 0?void 0:new Set(c.map(a=>{var t;return(t=i==null?void 0:i.resolve(a))==null?void 0:t.name}).filter(a=>!!a).map(T)),u=String(f).trim().toLocaleLowerCase();return Object.freeze(n.filter(a=>d&&!d.has(T(a.name))?!1:u?[a.name,a.label,...a.keywords??[]].some(t=>typeof t=="string"&&t.toLocaleLowerCase().includes(u)):!0))}function T(i){return R.normalizeQyIconName(i).toLocaleLowerCase()}let E=0;const re=e.defineComponent({name:"QyIconPicker",__name:"index",props:{modelValue:{type:null,required:!1,default:""},allowedNames:{type:Array,required:!1},disabled:{type:Boolean,required:!1,default:!1},clearable:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1,default:"default"},placeholder:{type:String,required:!1,default:"点击选择图标"},searchPlaceholder:{type:String,required:!1,default:"搜索图标名称、标签或关键词"},emptyText:{type:String,required:!1,default:"暂无匹配图标"},panelWidth:{type:[Number,String],required:!1,default:540},open:{type:Boolean,required:!1,default:void 0},id:{type:String,required:!1},ariaLabel:{type:String,required:!1}},emits:["update:modelValue","change","clear","update:open","open-change"],setup(i,{expose:c,emit:f}){const n=i,d=f,u=e.inject(R.QY_ICON_REGISTRY_KEY,null),a=e.ref(""),t=e.ref(!1),l=e.ref(-1),m=e.ref([]),y=e.ref(!1),x=e.ref(""),C=e.ref(0);let _=!1;const v=e.ref(null),P=e.ref(null),g=e.ref("pointer"),N=`qy-icon-picker-${++E}`,S=e.computed(()=>ee(u,n.modelValue)),p=e.computed(()=>(C.value,ne(u,n.allowedNames,a.value))),h=e.computed(()=>n.open!==void 0),q=e.computed(()=>h.value?n.open===!0:t.value),z=e.computed(()=>"click"),V=e.computed(()=>`${n.id||N}-panel`);e.watch(q,(r,o)=>{!r||o||(a.value="",l.value=Q(),m.value=[],!_&&u&&(_=!0,B(u.load())),g.value==="keyboard"&&e.nextTick(()=>{var s,k;return(k=(s=P.value)==null?void 0:s.focus)==null?void 0:k.call(s)}))});function B(r){y.value=!0,x.value="",r.then(()=>{y.value=!1,C.value++},o=>{y.value=!1,x.value=o instanceof Error?o.message:String(o)})}function A(){!u||y.value||B(u.retry())}e.watch(p,()=>{if(!p.value.length){l.value=-1;return}l.value>=p.value.length&&(l.value=0),l.value<0&&(l.value=0)});function D(){n.disabled||(g.value="keyboard",I("keyboard"))}function M(r){n.disabled||h.value&&n.open!==!1||(r.stopImmediatePropagation(),I("pointer"))}function U(r){b(r)}function j(r){r===q.value&&(h.value||(t.value=r),d("open-change",r),r||e.nextTick(()=>{var o,s;return(s=(o=v.value)==null?void 0:o.focus)==null?void 0:s.call(o)}))}function b(r){r&&n.disabled||r!==q.value&&(h.value||(t.value=r),d("update:open",r))}function I(r="programmatic"){g.value=r,b(!0)}function w(){b(!1),e.nextTick(()=>{var r,o;return(o=(r=v.value)==null?void 0:r.focus)==null?void 0:o.call(r)})}function F(){n.disabled||(d("update:modelValue",""),d("change",""),d("clear"))}function Y(r){n.disabled||(d("update:modelValue",r.name),d("change",r.name),w())}function H(r){if(r.key==="Escape"){r.preventDefault(),w();return}if(!p.value.length||!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(r.key))return;r.preventDefault();const o=r.key==="ArrowUp"||r.key==="ArrowLeft"?-1:1,s=p.value.length;l.value=(l.value+o+s)%s,e.nextTick(()=>{var k;return(k=m.value[l.value])==null?void 0:k.focus()})}function Q(){const r=S.value.canonicalName;if(!r)return p.value.length?0:-1;const o=p.value.findIndex(({name:s})=>s===r);return o>=0?o:p.value.length?0:-1}function W(r,o){r instanceof HTMLElement&&(m.value[o]=r)}function G(r){return`${V.value}-${encodeURIComponent(r)}`}function L(){var r,o;(o=(r=v.value)==null?void 0:r.focus)==null||o.call(r)}function K(){var r,o;(o=(r=v.value)==null?void 0:r.blur)==null||o.call(r)}c({focus:L,blur:K,open:I,close:w});const O={get nextQyIconPickerId(){return E},set nextQyIconPickerId(r){E=r},props:n,emit:d,registry:u,query:a,internalOpen:t,activeIndex:l,optionRefs:m,loading:y,loadError:x,catalogRevision:C,get requestedLoad(){return _},set requestedLoad(r){_=r},triggerRef:v,searchRef:P,lastOpenMethod:g,generatedId:N,current:S,filteredItems:p,controlledOpen:h,renderedOpen:q,popoverTrigger:z,panelId:V,runLoad:B,retryLoad:A,handleTriggerKeyboardOpen:D,handleTriggerClick:M,handlePopoverRequest:U,handlePopoverOpenChange:j,requestOpen:b,openPicker:I,closePicker:w,handleClear:F,handleSelect:Y,handlePanelKeydown:H,findInitialIndex:Q,setOptionRef:W,getOptionId:G,focus:L,blur:K,get QyIcon(){return J.QyIcon},get QyInput(){return X.QyInput},get QyPopover(){return Z.QyPopover}};return Object.defineProperty(O,"__isScriptSetup",{enumerable:!1,value:!0}),O}}),oe={class:"qy-icon-picker"},ae=["onKeydown"],te={class:"qy-icon-picker__preview","aria-hidden":"true"},le={key:1,class:"qy-icon-picker__missing","aria-hidden":"true"},ie=["id"],ce={class:"qy-icon-picker__search","data-testid":"qy-icon-picker-search"},de={key:0,class:"qy-icon-picker__state","data-testid":"qy-icon-picker-loading",role:"status"},se={key:1,class:"qy-icon-picker__state qy-icon-picker__state--error","data-testid":"qy-icon-picker-error",role:"alert"},ue=["aria-label"],pe=["id","data-qy-icon-option","data-qy-icon-active","aria-selected","tabindex","onClick","onFocus","onKeydown"],fe={class:"qy-icon-picker__option-label"},ye={key:3,class:"qy-icon-picker__empty"};function ve(i,c,f,n,d,u){return e.openBlock(),e.createElementBlock("div",oe,[e.createVNode(n.QyPopover,{ref:"popoverRef",class:"qy-icon-picker__popover",open:n.renderedOpen,trigger:n.popoverTrigger,placement:"bottom-start",width:n.props.panelWidth,"show-delay":0,"hide-delay":0,disabled:n.props.disabled||n.controlledOpen&&n.props.open===!1,"onUpdate:open":n.handlePopoverRequest,onOpenChange:n.handlePopoverOpenChange},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"qy-icon-picker__trigger","data-testid":"qy-icon-picker-trigger",onClick:n.handleTriggerClick,onKeydown:[e.withKeys(e.withModifiers(n.handleTriggerKeyboardOpen,["prevent"]),["enter"]),e.withKeys(e.withModifiers(n.handleTriggerKeyboardOpen,["prevent"]),["space"])]},[e.createVNode(n.QyInput,{ref:"triggerRef",id:n.props.id,"model-value":n.current.value,size:n.props.size,disabled:n.props.disabled,clearable:n.props.clearable,readonly:"",placeholder:n.props.placeholder,"aria-label":n.props.ariaLabel,"aria-haspopup":"listbox","aria-expanded":n.renderedOpen?"true":"false","aria-controls":n.panelId,onClear:n.handleClear},{prefix:e.withCtx(()=>[e.createElementVNode("span",te,[n.current.definition?(e.openBlock(),e.createBlock(n.QyIcon,{key:0,name:n.current.definition.name,size:18},null,8,["name"])):(e.openBlock(),e.createElementBlock("span",le,"?"))])]),suffix:e.withCtx(()=>[n.props.clearable&&n.current.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"qy-icon-picker__clear","data-testid":"qy-icon-picker-clear","aria-label":"清空图标",onClick:e.withModifiers(n.handleClear,["stop","prevent"])},[...c[1]||(c[1]=[e.createElementVNode("span",{"aria-hidden":"true"},"×",-1)])])):e.createCommentVNode("v-if",!0)]),_:1},8,["id","model-value","size","disabled","clearable","placeholder","aria-label","aria-expanded","aria-controls"])],40,ae)]),default:e.withCtx(()=>[n.renderedOpen?(e.openBlock(),e.createElementBlock("div",{key:0,id:n.panelId,class:"qy-icon-picker__panel",onKeydown:n.handlePanelKeydown},[e.createElementVNode("div",ce,[e.createVNode(n.QyInput,{ref:"searchRef",modelValue:n.query,"onUpdate:modelValue":c[0]||(c[0]=a=>n.query=a),type:"search",clearable:"",placeholder:n.props.searchPlaceholder,"aria-label":"搜索图标"},null,8,["modelValue","placeholder"])]),n.loading?(e.openBlock(),e.createElementBlock("div",de," 正在加载图标… ")):n.loadError?(e.openBlock(),e.createElementBlock("div",se,[e.createElementVNode("span",null,e.toDisplayString(n.loadError),1),e.createElementVNode("button",{type:"button","data-testid":"qy-icon-picker-retry",onClick:n.retryLoad}," 重试 ")])):n.filteredItems.length?(e.openBlock(),e.createElementBlock("div",{key:2,class:"qy-icon-picker__grid",role:"listbox","aria-label":n.props.ariaLabel||"图标列表"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.filteredItems,(a,t)=>(e.openBlock(),e.createElementBlock("div",{id:n.getOptionId(a.name),key:a.name,ref_for:!0,ref:l=>n.setOptionRef(l,t),class:e.normalizeClass(["qy-icon-picker__option",{"is-active":n.activeIndex===t}]),"data-qy-icon-option":a.name,"data-qy-icon-active":n.activeIndex===t?"true":void 0,role:"option","aria-selected":n.current.canonicalName===a.name?"true":"false",tabindex:n.activeIndex===t?0:-1,onClick:l=>n.handleSelect(a),onFocus:l=>n.activeIndex=t,onKeydown:[e.withKeys(e.withModifiers(l=>n.handleSelect(a),["prevent"]),["enter"]),e.withKeys(e.withModifiers(l=>n.handleSelect(a),["prevent"]),["space"])]},[e.createVNode(n.QyIcon,{name:a.name,size:18,"aria-hidden":"true"},null,8,["name"]),e.createElementVNode("span",fe,e.toDisplayString(a.label||a.name),1)],42,pe))),128))],8,ue)):(e.openBlock(),e.createElementBlock("div",ye,[e.renderSlot(i.$slots,"empty",{},()=>[e.createTextVNode(e.toDisplayString(n.props.emptyText),1)])]))],40,ie)):e.createCommentVNode("v-if",!0)]),_:3},8,["open","trigger","width","disabled"])])}const he=$._export_sfc(re,[["render",ve],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-icon-picker/index.vue"]]);exports.Picker=he;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),
|
|
1
|
+
"use strict";const t=require("vue"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=t.defineComponent({name:"QyDescriptionsItem",inheritAttrs:!1,props:{label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number],required:!1},align:{type:String,default:"left",validator:e=>["left","center","right"].includes(e)},labelAlign:{type:String,required:!1,validator:e=>["left","center","right"].includes(e)},className:{type:String,default:""},labelClassName:{type:String,default:""}},setup(){return()=>null}}),n=i._export_sfc(r,[["__file","D:/xushenz/qy-components/packages/ui/lib/qy-descriptions-item/index.vue"]]);exports.DescriptionsItem=n;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as D, useAttrs as K, ref as C, computed as L, watch as R, openBlock as j, createBlock as O, mergeProps as Q, withKeys as G, createSlots as H, withCtx as y, renderSlot as h } from "vue";
|
|
2
2
|
import { ElInput as J } from "element-plus";
|
|
3
3
|
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
-
const X = /* @__PURE__ */
|
|
4
|
+
const X = /* @__PURE__ */ D({
|
|
5
5
|
name: "QyMoneyInput",
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "index",
|
|
@@ -29,38 +29,38 @@ const X = /* @__PURE__ */ K({
|
|
|
29
29
|
},
|
|
30
30
|
emits: ["update:modelValue", "input", "change", "focus", "blur", "clear", "enter"],
|
|
31
31
|
setup(l, { expose: v, emit: a }) {
|
|
32
|
-
const t = l, i = a, V =
|
|
33
|
-
|
|
32
|
+
const t = l, i = a, V = K(), d = C(null), f = C(u(t.modelValue)), k = L(() => u(t.modelValue));
|
|
33
|
+
R(
|
|
34
34
|
() => t.modelValue,
|
|
35
35
|
(e) => {
|
|
36
|
-
f.value =
|
|
36
|
+
f.value = u(e);
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
|
-
function
|
|
39
|
+
function u(e) {
|
|
40
40
|
return e == null ? "" : String(e);
|
|
41
41
|
}
|
|
42
42
|
function g(e) {
|
|
43
43
|
return Number.isFinite(e) ? Math.max(0, Math.floor(e)) : 2;
|
|
44
44
|
}
|
|
45
45
|
function c(e) {
|
|
46
|
-
const n =
|
|
47
|
-
let o = "", m = !1,
|
|
46
|
+
const n = u(e);
|
|
47
|
+
let o = "", m = !1, z = !1;
|
|
48
48
|
const x = g(t.precision);
|
|
49
49
|
for (let s = 0; s < n.length; s += 1) {
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
52
|
-
o +=
|
|
50
|
+
const r = n[s];
|
|
51
|
+
if (r >= "0" && r <= "9") {
|
|
52
|
+
o += r;
|
|
53
53
|
continue;
|
|
54
54
|
}
|
|
55
|
-
if (
|
|
56
|
-
o +=
|
|
55
|
+
if (r === "." && x > 0 && !m) {
|
|
56
|
+
o += r, m = !0;
|
|
57
57
|
continue;
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
r === "-" && t.allowNegative && s === 0 && !z && (o += r, z = !0);
|
|
60
60
|
}
|
|
61
61
|
if (x > 0 && m) {
|
|
62
|
-
const [s,
|
|
63
|
-
return `${s}.${
|
|
62
|
+
const [s, r = ""] = o.split(".");
|
|
63
|
+
return `${s}.${r.slice(0, x)}`;
|
|
64
64
|
}
|
|
65
65
|
return o;
|
|
66
66
|
}
|
|
@@ -71,42 +71,42 @@ const X = /* @__PURE__ */ K({
|
|
|
71
71
|
function b(e) {
|
|
72
72
|
const n = c(e);
|
|
73
73
|
if (!n || n === "-" || n === ".")
|
|
74
|
-
return
|
|
74
|
+
return u(t.emptyValue);
|
|
75
75
|
const o = Number(n);
|
|
76
|
-
if (Number.isNaN(o)) return
|
|
76
|
+
if (Number.isNaN(o)) return u(t.emptyValue);
|
|
77
77
|
const m = g(t.precision);
|
|
78
78
|
return q(o).toFixed(m);
|
|
79
79
|
}
|
|
80
80
|
function p(e) {
|
|
81
81
|
f.value = e, i("update:modelValue", e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function F(e) {
|
|
84
84
|
const n = c(e);
|
|
85
85
|
p(n);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function w(e) {
|
|
88
88
|
const n = c(e);
|
|
89
89
|
f.value = n, i("input", n);
|
|
90
90
|
}
|
|
91
91
|
function E(e) {
|
|
92
92
|
const n = t.formatTrigger === "change" ? b(e) : c(e);
|
|
93
|
-
n !==
|
|
93
|
+
n !== u(t.modelValue) && p(n), i("change", n);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function A(e) {
|
|
96
96
|
i("focus", e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function P(e) {
|
|
99
99
|
if (t.formatTrigger === "blur") {
|
|
100
100
|
const n = b(f.value);
|
|
101
|
-
n !==
|
|
101
|
+
n !== u(t.modelValue) && p(n);
|
|
102
102
|
}
|
|
103
103
|
i("blur", e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
const e =
|
|
105
|
+
function T() {
|
|
106
|
+
const e = u(t.emptyValue);
|
|
107
107
|
f.value = e, i("update:modelValue", e), i("clear");
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function U(e) {
|
|
110
110
|
i("enter", e);
|
|
111
111
|
}
|
|
112
112
|
function N() {
|
|
@@ -136,14 +136,14 @@ const X = /* @__PURE__ */ K({
|
|
|
136
136
|
clear: _,
|
|
137
137
|
getNativeInput: B
|
|
138
138
|
});
|
|
139
|
-
const I = { props: t, emit: i, attrs: V, inputRef: d, innerValue: f, displayValue:
|
|
139
|
+
const I = { props: t, emit: i, attrs: V, inputRef: d, innerValue: f, displayValue: k, stringifyValue: u, normalizePrecision: g, sanitizeInput: c, clampAmount: q, formatMoneyValue: b, emitModelValue: p, handleUpdateModelValue: F, handleInput: w, handleChange: E, handleFocus: A, handleBlur: P, handleClear: T, handleEnter: U, focus: N, blur: S, select: M, clear: _, getNativeInput: B, get ElInput() {
|
|
140
140
|
return J;
|
|
141
141
|
} };
|
|
142
142
|
return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
function Y(l, v, a, t, i, V) {
|
|
146
|
-
return
|
|
146
|
+
return j(), O(t.ElInput, Q({ ref: "inputRef" }, t.attrs, {
|
|
147
147
|
"model-value": t.displayValue,
|
|
148
148
|
inputmode: "decimal",
|
|
149
149
|
placeholder: a.placeholder,
|
|
@@ -200,7 +200,7 @@ function Y(l, v, a, t, i, V) {
|
|
|
200
200
|
} : void 0
|
|
201
201
|
]), 1040, ["model-value", "placeholder", "clearable", "disabled", "readonly", "size", "name", "id", "autocomplete", "autofocus", "maxlength", "minlength", "tabindex", "aria-label"]);
|
|
202
202
|
}
|
|
203
|
-
const ne = /* @__PURE__ */ W(X, [["render", Y], ["__file", "
|
|
203
|
+
const ne = /* @__PURE__ */ W(X, [["render", Y], ["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-money-input/index.vue"]]);
|
|
204
204
|
export {
|
|
205
205
|
ne as M
|
|
206
206
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),N=require("./index-
|
|
1
|
+
"use strict";const t=require("vue"),N=require("./index-BsXys36-.cjs"),z=require("./index-B9zEH5Yq.cjs"),L=require("@vueuse/core"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O=["fullscreenchange","webkitfullscreenchange"],R=["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"],U=["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"];function V(n,r,i){const e=C(),a=t.ref(null),o=t.ref(!1),v=t.ref(!1);let u=null,p=!1;const b=t.computed(()=>k(n.value)),S=t.computed(()=>(a.value||b.value)??void 0),g=L.useFullscreen(S),y=t.ref(!1);function x(){y.value=I(a.value||b.value)}function d(){if(p)return;const l=E(e),s=a.value||b.value,c=!!(l&&l===s);c?a.value=l:(!l||l!==a.value)&&(a.value=null),x(),c!==o.value&&(o.value=c,i.onChange(c))}L.useEventListener(e,O,d),t.watch(n,d,{flush:"post"}),d();function h(){if(r.value||o.value)return Promise.resolve(!1);if(u)return u;const l=k(n.value);return l?I(l)?(a.value=l,x(),q(async()=>{try{return await F(l),d(),o.value&&E(e)===l}catch{return a.value=null,d(),f("enter","request-rejected","The browser rejected the fullscreen request.")}})):Promise.resolve(f("enter","unsupported","Fullscreen is not supported by this browser.")):Promise.resolve(f("enter","target-unavailable","Fullscreen target is unavailable."))}function m(){if(r.value||!o.value)return Promise.resolve(!1);if(u)return u;const l=a.value||k(n.value);return l?I(l)?q(async()=>{try{return await P(l),d(),!o.value&&E(e)!==l}catch{return f("exit","request-rejected","The browser rejected the fullscreen request.")}}):Promise.resolve(f("exit","unsupported","Fullscreen is not supported by this browser.")):Promise.resolve(f("exit","target-unavailable","Fullscreen target is unavailable."))}function _(){return u||(o.value?m():h())}function q(l){v.value=!0;const s=l().finally(()=>{v.value=!1,u=null});return u=s,s}function f(l,s,c){const w=Object.freeze({action:l,code:s,message:c});return i.onError(w),!1}async function F(l){const s=Q(l);if(s==="requestFullscreen"){await l.requestFullscreen();return}if(g.isSupported.value){await g.enter();return}if(s){await T(l,s);return}throw new Error("Fullscreen request is unavailable.")}async function P(l){var w;const s=e,c=j(s,l);if(c==="exitFullscreen"){await((w=s==null?void 0:s.exitFullscreen)==null?void 0:w.call(s));return}if(c){await T(s,c);return}await g.exit()}return t.onBeforeUnmount(()=>{p=!0}),{isFullscreen:o,isSupported:y,pending:v,enter:h,exit:m,toggle:_}}function C(){return typeof document>"u"?void 0:document}function k(n){var r;return n===null?null:n!==void 0?n:((r=C())==null?void 0:r.documentElement)||null}function E(n){return(n==null?void 0:n.fullscreenElement)||(n==null?void 0:n.webkitFullscreenElement)||null}function I(n){if(!n||n===null)return!1;const r=C();return(r==null?void 0:r.fullscreenEnabled)!==!0?!1:!!(Q(n)&&j(r,n))}function Q(n){return R.find(r=>B(n,r))}function j(n,r){return U.find(i=>B(n,i)||B(r,i))}async function T(n,r){const i=n&&n[r];if(typeof i!="function")throw new Error("Fullscreen method is unavailable.");await i.call(n)}function B(n,r){return typeof(n==null?void 0:n[r])=="function"}const Y=t.defineComponent({name:"QyFullscreen",inheritAttrs:!1,__name:"index",props:{target:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1,default:"default"},enterLabel:{type:String,required:!1,default:"进入全屏"},exitLabel:{type:String,required:!1,default:"退出全屏"},enterIcon:{type:[String,Number],required:!1,default:"fullscreen"},exitIcon:{type:[String,Number],required:!1,default:"exit-fullscreen"}},emits:["change","error"],setup(n,{expose:r,emit:i}){const e=n,a=i,o=t.useSlots(),v=t.inject(z.QY_ICON_REGISTRY_KEY,null),u=V(t.toRef(e,"target"),t.toRef(e,"disabled"),{onChange:F=>a("change",F),onError:F=>a("error",F)}),p=u.isFullscreen,b=u.pending,S=t.computed(()=>p.value?e.exitLabel:e.enterLabel),g=t.computed(()=>p.value?e.exitIcon:e.enterIcon),y=t.computed(()=>p.value?"exit-icon":"enter-icon"),x=t.computed(()=>!!o[y.value]),d=t.computed(()=>v==null?void 0:v.resolve(g.value)),h=t.computed(()=>x.value||!!d.value),m=t.computed(()=>({small:"sm",default:"md",large:"lg"})[e.size]),_=t.computed(()=>e.disabled||!u.isSupported.value||b.value);function q(){u.toggle()}r({enter:u.enter,exit:u.exit,toggle:u.toggle});const f={props:e,emit:a,slots:o,registry:v,controller:u,isFullscreen:p,pending:b,currentLabel:S,activeIconName:g,activeIconSlot:y,hasCustomIcon:x,registeredIcon:d,showIcon:h,mappedSize:m,buttonDisabled:_,handleClick:q,QyButton:N.Button,QyIcon:z.Icon};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}});function A(n,r,i,e,a,o){return e.showIcon?(t.openBlock(),t.createBlock(e.QyButton,{key:0,class:"qy-fullscreen",size:e.mappedSize,disabled:e.buttonDisabled,loading:e.pending,active:e.isFullscreen,"icon-only":!0,"aria-label":e.currentLabel,"aria-pressed":e.isFullscreen?"true":"false",title:e.currentLabel,onClick:e.handleClick},{prefix:t.withCtx(()=>[e.hasCustomIcon?t.renderSlot(n.$slots,e.activeIconSlot,{},void 0,!0,0):(t.openBlock(),t.createBlock(e.QyIcon,{key:1,name:e.activeIconName},null,8,["name"]))]),_:3},8,["size","disabled","loading","active","aria-label","aria-pressed","title"])):(t.openBlock(),t.createBlock(e.QyButton,{key:1,class:"qy-fullscreen",size:e.mappedSize,disabled:e.buttonDisabled,loading:e.pending,active:e.isFullscreen,"icon-only":!1,"aria-label":e.currentLabel,"aria-pressed":e.isFullscreen?"true":"false",title:e.currentLabel,onClick:e.handleClick},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.currentLabel),1)]),_:1},8,["size","disabled","loading","active","aria-label","aria-pressed","title"]))}const G=M._export_sfc(Y,[["render",A],["__scopeId","data-v-9cd78f22"],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-fullscreen/index.vue"]]);exports.Fullscreen=G;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),W=require("@element-plus/icons-vue"),
|
|
1
|
+
"use strict";const t=require("vue"),W=require("@element-plus/icons-vue"),K=require("element-plus"),te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g=[],ne=t.defineComponent({name:"QyPopconfirm",inheritAttrs:!1,__name:"index",props:{title:{type:String,required:!0},open:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},width:{type:[Number,String],default:220},confirmText:{type:String,default:"确认"},cancelText:{type:String,default:"取消"},variant:{type:String,default:"warning"},confirmType:{type:String,default:"primary"},showIcon:{type:Boolean,default:!0},confirmLoading:{type:Boolean,default:!1},closeOnConfirm:{type:Boolean,default:!0}},emits:["update:open","open-change","confirm","cancel","close"],setup(y,{expose:F,emit:i}){F();const n=y,l=i,q=t.useAttrs(),E=t.ref(null),x=t.ref(null),S=t.computed(()=>n.open!==void 0),C=n.open===!0&&!n.disabled,L=t.ref(C),f=t.ref(C),a=t.ref(C),r=t.ref(null),h=t.ref(!1),_=t.ref(null),b={};let s=!1,d,m,p=!1,v=null;const T=t.computed(()=>n.disabled?!1:S.value?n.open===!0:L.value),Q=t.computed(()=>{const e={};for(const[o,w]of Object.entries(q))(o==="class"||o==="style"||o==="id"||o==="title"||o==="tabindex"||o==="role"||o.startsWith("data-")||o.startsWith("aria-")||/^onKey(?:down|up|press)/i.test(o))&&(e[o]=w);return e}),I=t.computed(()=>typeof n.width=="number"?`${n.width}px`:n.width),U=t.computed(()=>({"--qy-popconfirm-width":I.value,"--qy-popconfirm-mobile-gutter":"24px"})),G=t.computed(()=>n.variant==="danger"?W.CircleCloseFilled:n.variant==="info"?W.InfoFilled:W.WarningFilled);function k(){return g[g.length-1]===b}function A(){g.includes(b)||g.push(b)}function B(){const e=g.indexOf(b);e>=0&&g.splice(e,1)}function D(e){var H,j;const o=document.activeElement;if(o instanceof HTMLElement&&((H=E.value)!=null&&H.contains(o))){_.value=o;return}const w=e==null?void 0:e.target;w instanceof HTMLElement&&((j=x.value)!=null&&j.contains(w))&&(_.value=w)}function z(){const e=_.value;_.value=null,e!=null&&e.isConnected&&e.focus()}function u(){if(s)return;const e=T.value;f.value!==e&&(s=!0,d=e,m=e?void 0:r.value??(n.disabled?"disabled":"external"),f.value=e)}function c(e,o){e&&n.disabled||(!e&&o&&r.value===null&&(r.value=o),S.value?n.open!==e&&l("update:open",e):L.value!==e&&(L.value=e,l("update:open",e)),u())}function M(){var e;return r.value?r.value:v instanceof Node&&((e=E.value)!=null&&e.contains(v))?"trigger":"outside"}function J(e){if(e){D(),c(!0);return}if(n.confirmLoading)return;const o=M();!k()&&o!=="external"&&o!=="disabled"||c(!1,o)}function X(e){var o;!(e.target instanceof Node)||!((o=x.value)!=null&&o.contains(e.target))||n.confirmLoading||(a.value||f.value?(r.value="trigger",c(!1,"trigger")):(D(e),c(!0)))}function Y(){n.disabled||n.confirmLoading||h.value||(h.value=!0,l("confirm"),n.closeOnConfirm&&c(!1,"confirm"))}function Z(){n.disabled||n.confirmLoading||(l("cancel"),c(!1,"cancel"))}function N(e){e.key!=="Escape"&&e.code!=="Escape"||n.confirmLoading||!a.value||!k()||(e.preventDefault(),c(!1,"escape"))}function V(e){v=e.target}function P(e){v=e.target}function R(e){var o;n.confirmLoading||!a.value||!k()||e.target instanceof Node&&((o=E.value)!=null&&o.contains(e.target)||e.target instanceof Element&&e.target.closest(".qy-popconfirm-popper")||c(!1,"outside"))}function $(){!s||d!==!0||(s=!1,d=void 0,a.value=!0,A(),r.value=null,m=void 0,l("open-change",!0),u())}function ee(){!s||d!==!1||(s=!1,d=void 0,a.value=!1,B(),l("open-change",!1),l("close",m??r.value??"external"),r.value=null,m=void 0,h.value=!1,p=!1,z(),u())}t.watch(T,()=>u()),t.watch(()=>n.open,(e,o)=>{e!==o&&(e===!1&&(a.value||f.value)&&r.value===null&&(r.value="external"),u())}),t.watch(()=>n.disabled,e=>{e&&(a.value||f.value)&&(r.value="disabled"),u()}),t.watch(()=>n.confirmLoading,e=>{e?p=!0:p&&(p=!1,a.value&&(h.value=!1))}),t.onMounted(()=>{a.value&&A(),window.addEventListener("keydown",N),document.addEventListener("pointerdown",V,!0),document.addEventListener("mousedown",P,!0),document.addEventListener("click",R)}),t.onBeforeUnmount(()=>{B(),window.removeEventListener("keydown",N),document.removeEventListener("pointerdown",V,!0),document.removeEventListener("mousedown",P,!0),document.removeEventListener("click",R)});const O={props:n,emit:l,attrs:q,rootRef:E,referenceRef:x,isControlled:S,initialVisible:C,requestedDesired:L,renderedDesired:f,actualVisible:a,pendingCloseReason:r,confirmLocked:h,focusTarget:_,token:b,get transitionActive(){return s},set transitionActive(e){s=e},get transitionDirection(){return d},set transitionDirection(e){d=e},get transitionReason(){return m},set transitionReason(e){m=e},get loadingWasActive(){return p},set loadingWasActive(e){p=e},get lastPointerTarget(){return v},set lastPointerTarget(e){v=e},targetDesired:T,rootAttrs:Q,normalizedWidth:I,popperStyle:U,iconComponent:G,isTopmost:k,registerVisible:A,unregisterVisible:B,rememberFocus:D,restoreFocus:z,pumpTransition:u,requestIntent:c,closeReasonFromInteraction:M,handleElementVisibility:J,handleRootClick:X,handleConfirm:Y,handleCancel:Z,handleKeydown:N,handlePointerDown:V,handleMouseDown:P,handleDocumentClick:R,handleAfterEnter:$,handleAfterLeave:ee,get ElButton(){return K.ElButton},get ElPopover(){return K.ElPopover}};return Object.defineProperty(O,"__isScriptSetup",{enumerable:!1,value:!0}),O}}),oe={ref:"referenceRef","data-qy-popconfirm-reference":""},ie={class:"qy-popconfirm__message"},re={key:0,class:"qy-popconfirm__icon","aria-hidden":"true"},ae={"data-testid":"qy-popconfirm-title",class:"qy-popconfirm__title"},le={class:"qy-popconfirm__actions"};function ce(y,F,i,n,l,q){return t.openBlock(),t.createElementBlock("span",t.mergeProps({ref:"rootRef",class:"qy-popconfirm"},n.rootAttrs,{onClickCapture:n.handleRootClick}),[t.createVNode(n.ElPopover,{visible:n.renderedDesired,trigger:"click",placement:i.placement,width:i.width,disabled:i.disabled,"popper-style":n.popperStyle,"popper-class":"qy-popconfirm-popper","onUpdate:visible":n.handleElementVisibility,onAfterEnter:n.handleAfterEnter,onAfterLeave:n.handleAfterLeave},{reference:t.withCtx(()=>[t.createElementVNode("span",oe,[t.renderSlot(y.$slots,"reference")],512)]),default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["qy-popconfirm__content",`is-${i.variant}`]),"data-qy-popconfirm-content":""},[t.createElementVNode("div",ie,[i.showIcon?(t.openBlock(),t.createElementBlock("span",re,[t.renderSlot(y.$slots,"icon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.iconComponent)))])])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",ae,[t.renderSlot(y.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(i.title),1)])])]),t.createElementVNode("div",le,[t.createVNode(n.ElButton,{"data-testid":"qy-popconfirm-cancel",size:"small",disabled:i.disabled||i.confirmLoading,onClick:n.handleCancel},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.cancelText),1)]),_:1},8,["disabled"]),t.createVNode(n.ElButton,{"data-testid":"qy-popconfirm-confirm",size:"small",type:i.confirmType,loading:i.confirmLoading,disabled:i.disabled||i.confirmLoading||n.confirmLocked,onClick:n.handleConfirm},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.confirmText),1)]),_:1},8,["type","loading","disabled"])])],2)]),_:3},8,["visible","placement","width","disabled","popper-style"])],16)}const se=te._export_sfc(ne,[["render",ce],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-popconfirm/index.vue"]]);exports.Popconfirm=se;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const r=require("vue"),h=require("element-plus"),_=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g=r.defineComponent({name:"QyCheckbox",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number],required:!1,default:!1},value:{type:[Boolean,String,Number],required:!1},indeterminate:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1,default:void 0},trueValue:{type:[Boolean,String,Number],required:!1,default:!0},falseValue:{type:[Boolean,String,Number],required:!1,default:!1},name:{type:String,required:!1},id:{type:String,required:!1},tabindex:{type:[String,Number],required:!1},ariaLabel:{type:String,required:!1},ariaControls:{type:String,required:!1}},emits:["update:modelValue","change","focus","blur"],setup(l,{expose:i,emit:s}){i();const e=l,t=s,n=r.useAttrs(),u=r.computed(()=>Object.fromEntries(Object.entries(n).filter(([a])=>a==="class"||a==="style"||a==="role"||a==="title"||a.startsWith("data-")||a.startsWith("aria-")))),c=r.computed(()=>e.modelValue===e.trueValue);function o(a){return a?e.trueValue:e.falseValue}function f(a){e.disabled||t("update:modelValue",o(a===!0))}function p(a){e.disabled||t("change",o(a===!0))}function b(a){t("focus",a)}function m(a){t("blur",a)}const d={props:e,emit:t,attrs:n,safeAttrs:u,isChecked:c,resolveModelValue:o,handleUpdateModelValue:f,handleChange:p,handleFocus:b,handleBlur:m,get ElCheckbox(){return h.ElCheckbox}};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}});function x(l,i,s,e,t,n){return r.openBlock(),r.createBlock(e.ElCheckbox,r.mergeProps(e.safeAttrs,{class:"qy-checkbox","model-value":e.isChecked,value:e.props.value,indeterminate:e.props.indeterminate,disabled:e.props.disabled||void 0,size:e.props.size,name:e.props.name,id:e.props.id,tabindex:e.props.tabindex,"aria-label":e.props.ariaLabel,"aria-controls":e.props.ariaControls,"onUpdate:modelValue":e.handleUpdateModelValue,onChange:e.handleChange,onFocusin:e.handleFocus,onFocusout:e.handleBlur}),{default:r.withCtx(()=>[r.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},16,["model-value","value","indeterminate","disabled","size","name","id","tabindex","aria-label","aria-controls"])}const q=_._export_sfc(g,[["render",x],["__scopeId","data-v-e6e09c7b"],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-checkbox/index.vue"]]);exports.Checkbox=q;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),
|
|
1
|
+
"use strict";const t=require("vue"),s=require("element-plus"),o=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),u=e=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"),d=t.defineComponent({name:"QyProgress",inheritAttrs:!1,props:{type:{type:String,default:"line"},percentage:{type:Number,default:0},status:{type:String,default:""},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},striped:Boolean,stripedFlow:Boolean,format:Function},setup(e,{attrs:i,slots:r}){const n=t.computed(()=>Object.fromEntries(Object.entries(i).filter(([a])=>u(a))));return()=>t.h(s.ElProgress,{...n.value,type:e.type,percentage:e.percentage,status:e.status,indeterminate:e.indeterminate,duration:e.duration,strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,textInside:e.textInside,width:e.width,showText:e.showText,color:e.color,striped:e.striped,stripedFlow:e.stripedFlow,format:e.format},r.default?{default:r.default}:void 0)}}),l=o._export_sfc(d,[["__file","D:/xushenz/qy-components/packages/ui/lib/qy-progress/index.vue"]]);exports.Progress=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),T=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),
|
|
1
|
+
"use strict";const e=require("vue"),T=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),D=e.defineComponent({name:"QyButton",inheritAttrs:!1,__name:"index",props:{type:{type:String,required:!1},variant:{type:String,required:!1},size:{type:String,required:!1,default:"md"},disabled:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1},active:{type:Boolean,required:!1,default:!1},block:{type:Boolean,required:!1,default:!1},round:{type:Boolean,required:!1,default:!1},nativeType:{type:String,required:!1,default:"button"},prefixIcon:{type:null,required:!1},suffixIcon:{type:null,required:!1},iconOnly:{type:Boolean,required:!1,default:!1}},emits:["click"],setup(a,{expose:s,emit:i}){s();const o=["default","primary","success","warning","danger","text","ghost","link"],r=["sm","md","lg"],c=["button","submit","reset"],n=a,p=i,l=e.useAttrs(),u=e.useSlots(),y=e.computed(()=>{const t=n.variant||n.type||"default";return o.includes(t)?t:"default"}),m=e.computed(()=>r.includes(n.size)?n.size:"md"),B=e.computed(()=>c.includes(n.nativeType)?n.nativeType:"button"),b=e.computed(()=>n.disabled||n.loading),_=e.computed(()=>f(n.prefixIcon)),k=e.computed(()=>f(n.suffixIcon)),x=e.computed(()=>!!(_.value||u.prefix)),h=e.computed(()=>!!(k.value||u.suffix)),v=e.computed(()=>{const t=l["aria-label"],S=l.title;return d(t)||d(S)}),g=e.computed(()=>{const t=l["aria-pressed"];return t??(n.active?"true":void 0)}),C=e.computed(()=>[`qy-button--${y.value}`,`qy-button--${m.value}`,{"is-disabled":n.disabled,"is-loading":n.loading,"is-active":n.active,"is-block":n.block,"is-round":n.round,"is-icon-only":n.iconOnly}]);e.watchEffect(()=>{n.iconOnly&&!v.value&&console.warn("QyButton icon-only requires aria-label or title.")});function d(t){return typeof t=="string"?t.trim().length>0:t!=null&&t!==!1}function f(t){if(!(!t||typeof t=="string"))return e.markRaw(e.toRaw(t))}function I(t){if(b.value){t.preventDefault();return}p("click",t)}const q={buttonTypes:o,buttonSizes:r,nativeTypes:c,props:n,emit:p,attrs:l,slots:u,buttonType:y,buttonSize:m,nativeType:B,isDisabled:b,prefixIconComponent:_,suffixIconComponent:k,hasPrefixIcon:x,hasSuffixIcon:h,hasAccessibleName:v,ariaPressed:g,buttonClasses:C,hasTextValue:d,normalizeIcon:f,handleClick:I};return Object.defineProperty(q,"__isScriptSetup",{enumerable:!1,value:!0}),q}}),E=["type","disabled","aria-busy","aria-disabled","aria-pressed"],z={key:0,class:"qy-button__icon qy-button__icon--loading","aria-hidden":"true"},O={key:1,class:"qy-button__icon qy-button__icon--prefix","aria-hidden":"true"},P={key:2,class:"qy-button__content"},V={key:3,class:"qy-button__icon qy-button__icon--suffix","aria-hidden":"true"},w={key:4,class:"qy-button__icon qy-button__icon--suffix","aria-hidden":"true"};function N(a,s,i,o,r,c){return e.openBlock(),e.createElementBlock("button",e.mergeProps(o.attrs,{class:["qy-button",o.buttonClasses],type:o.nativeType,disabled:o.isDisabled,"aria-busy":i.loading?"true":void 0,"aria-disabled":o.isDisabled?"true":void 0,"aria-pressed":o.ariaPressed,onClick:o.handleClick}),[i.loading?(e.openBlock(),e.createElementBlock("span",z,[...s[0]||(s[0]=[e.createElementVNode("span",{class:"qy-button__spinner"},null,-1)])])):o.hasPrefixIcon?(e.openBlock(),e.createElementBlock("span",O,[e.renderSlot(a.$slots,"prefix",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.prefixIconComponent)))],!0)])):e.createCommentVNode("v-if",!0),i.iconOnly?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",P,[e.renderSlot(a.$slots,"default",{},void 0,!0)])),!i.loading&&!i.iconOnly&&o.hasSuffixIcon?(e.openBlock(),e.createElementBlock("span",V,[e.renderSlot(a.$slots,"suffix",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.suffixIconComponent)))],!0)])):!i.loading&&i.iconOnly&&!o.hasPrefixIcon&&o.hasSuffixIcon?(e.openBlock(),e.createElementBlock("span",w,[e.renderSlot(a.$slots,"suffix",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.suffixIconComponent)))],!0)])):e.createCommentVNode("v-if",!0)],16,E)}const A=T._export_sfc(D,[["render",N],["__scopeId","data-v-ef627eea"],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-button/index.vue"]]);exports.Button=A;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("vue"),
|
|
1
|
+
"use strict";const l=require("vue"),T=require("element-plus"),U=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),D=l.defineComponent({name:"QyMoneyInput",inheritAttrs:!1,__name:"index",props:{modelValue:{type:null,required:!1,default:""},precision:{type:Number,required:!1,default:2},min:{type:Number,required:!1,default:void 0},max:{type:Number,required:!1,default:void 0},allowNegative:{type:Boolean,required:!1,default:!1},formatTrigger:{type:String,required:!1,default:"blur"},emptyValue:{type:[String,Number],required:!1,default:""},placeholder:{type:String,required:!1,default:void 0},clearable:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1,default:void 0},name:{type:String,required:!1,default:void 0},id:{type:String,required:!1,default:void 0},autocomplete:{type:String,required:!1,default:void 0},autofocus:{type:Boolean,required:!1,default:!1},maxlength:{type:[String,Number],required:!1,default:void 0},minlength:{type:[String,Number],required:!1,default:void 0},tabindex:{type:[String,Number],required:!1,default:void 0},ariaLabel:{type:String,required:!1,default:void 0}},emits:["update:modelValue","input","change","focus","blur","clear","enter"],setup(i,{expose:x,emit:a}){const t=i,u=a,v=l.useAttrs(),f=l.ref(null),s=l.ref(r(t.modelValue)),B=l.computed(()=>r(t.modelValue));l.watch(()=>t.modelValue,e=>{s.value=r(e)});function r(e){return e==null?"":String(e)}function y(e){return Number.isFinite(e)?Math.max(0,Math.floor(e)):2}function m(e){const n=r(e);let d="",p=!1,I=!1;const b=y(t.precision);for(let c=0;c<n.length;c+=1){const o=n[c];if(o>="0"&&o<="9"){d+=o;continue}if(o==="."&&b>0&&!p){d+=o,p=!0;continue}o==="-"&&t.allowNegative&&c===0&&!I&&(d+=o,I=!0)}if(b>0&&p){const[c,o=""]=d.split(".");return`${c}.${o.slice(0,b)}`}return d}function V(e){let n=e;return typeof t.min=="number"&&Number.isFinite(t.min)&&(n=Math.max(n,t.min)),typeof t.max=="number"&&Number.isFinite(t.max)&&(n=Math.min(n,t.max)),n}function g(e){const n=m(e);if(!n||n==="-"||n===".")return r(t.emptyValue);const d=Number(n);if(Number.isNaN(d))return r(t.emptyValue);const p=y(t.precision);return V(d).toFixed(p)}function h(e){s.value=e,u("update:modelValue",e)}function w(e){const n=m(e);h(n)}function z(e){const n=m(e);s.value=n,u("input",n)}function k(e){const n=t.formatTrigger==="change"?g(e):m(e);n!==r(t.modelValue)&&h(n),u("change",n)}function F(e){u("focus",e)}function E(e){if(t.formatTrigger==="blur"){const n=g(s.value);n!==r(t.modelValue)&&h(n)}u("blur",e)}function P(){const e=r(t.emptyValue);s.value=e,u("update:modelValue",e),u("clear")}function A(e){u("enter",e)}function q(){var e,n;(n=(e=f.value)==null?void 0:e.focus)==null||n.call(e)}function S(){var e,n;(n=(e=f.value)==null?void 0:e.blur)==null||n.call(e)}function N(){var e,n;(n=(e=f.value)==null?void 0:e.select)==null||n.call(e)}function _(){var e,n;(n=(e=f.value)==null?void 0:e.clear)==null||n.call(e)}function M(){var e;return((e=f.value)==null?void 0:e.input)||null}x({focus:q,blur:S,select:N,clear:_,getNativeInput:M});const C={props:t,emit:u,attrs:v,inputRef:f,innerValue:s,displayValue:B,stringifyValue:r,normalizePrecision:y,sanitizeInput:m,clampAmount:V,formatMoneyValue:g,emitModelValue:h,handleUpdateModelValue:w,handleInput:z,handleChange:k,handleFocus:F,handleBlur:E,handleClear:P,handleEnter:A,focus:q,blur:S,select:N,clear:_,getNativeInput:M,get ElInput(){return T.ElInput}};return Object.defineProperty(C,"__isScriptSetup",{enumerable:!1,value:!0}),C}});function K(i,x,a,t,u,v){return l.openBlock(),l.createBlock(t.ElInput,l.mergeProps({ref:"inputRef"},t.attrs,{"model-value":t.displayValue,inputmode:"decimal",placeholder:a.placeholder,clearable:a.clearable,disabled:a.disabled,readonly:a.readonly,size:a.size,name:a.name,id:a.id,autocomplete:a.autocomplete,autofocus:a.autofocus,maxlength:a.maxlength,minlength:a.minlength,tabindex:a.tabindex,"aria-label":a.ariaLabel,"onUpdate:modelValue":t.handleUpdateModelValue,onInput:t.handleInput,onChange:t.handleChange,onFocus:t.handleFocus,onBlur:t.handleBlur,onClear:t.handleClear,onKeydown:l.withKeys(t.handleEnter,["enter"])}),l.createSlots({_:2},[i.$slots.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"prefix")]),key:"0"}:void 0,i.$slots.suffix?{name:"suffix",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"suffix")]),key:"1"}:void 0,i.$slots.prepend?{name:"prepend",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"prepend")]),key:"2"}:void 0,i.$slots.append?{name:"append",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"append")]),key:"3"}:void 0]),1040,["model-value","placeholder","clearable","disabled","readonly","size","name","id","autocomplete","autofocus","maxlength","minlength","tabindex","aria-label"])}const L=U._export_sfc(D,[["render",K],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-money-input/index.vue"]]);exports.MoneyInput=L;
|