@qynpm/ui 1.0.47 → 1.2.0
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/CHANGELOG.md +20 -1
- package/README.md +3 -1
- package/dist/index.cjs +26 -26
- package/dist/index.mjs +241 -241
- package/dist/qy-action-bar/index.cjs +2 -2
- package/dist/qy-action-bar/index.mjs +2 -2
- package/dist/qy-alert/index.cjs +1 -1
- package/dist/qy-alert/index.mjs +4 -4
- package/dist/qy-aside/index.cjs +1 -1
- package/dist/qy-aside/index.mjs +4 -4
- package/dist/qy-autocomplete/index.cjs +1 -1
- package/dist/qy-autocomplete/index.mjs +3 -3
- 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 +4 -4
- package/dist/qy-button/index.cjs +2 -2
- package/dist/qy-button/index.mjs +2 -2
- 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 +3 -3
- 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 +4 -4
- package/dist/qy-col/index.cjs +1 -1
- package/dist/qy-col/index.mjs +4 -4
- package/dist/qy-collapse/index.cjs +1 -1
- package/dist/qy-collapse/index.mjs +2 -2
- package/dist/qy-collapse-item/index.cjs +1 -1
- package/dist/qy-collapse-item/index.mjs +5 -5
- package/dist/qy-color-picker/index.cjs +1 -1
- package/dist/qy-color-picker/index.mjs +4 -4
- package/dist/qy-container/index.cjs +1 -1
- package/dist/qy-container/index.mjs +3 -3
- 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 +4 -4
- package/dist/qy-dialog/index.cjs +2 -2
- package/dist/qy-dialog/index.mjs +4 -4
- package/dist/qy-divider/index.cjs +1 -1
- package/dist/qy-divider/index.mjs +4 -4
- package/dist/qy-drawer/index.cjs +1 -1
- package/dist/qy-drawer/index.mjs +2 -2
- package/dist/qy-dropdown/index.cjs +2 -2
- package/dist/qy-dropdown/index.mjs +2 -2
- package/dist/qy-empty/index.cjs +1 -1
- package/dist/qy-empty/index.mjs +4 -4
- 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 +2 -2
- package/dist/qy-form-section/index.mjs +2 -2
- 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 +2 -2
- package/dist/qy-icon-picker/index.mjs +5 -5
- 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 +2 -2
- package/dist/qy-image-upload/index.mjs +4 -4
- 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 +2 -2
- package/dist/qy-input-tag/index.cjs +1 -1
- package/dist/qy-input-tag/index.mjs +134 -123
- package/dist/qy-legacy-selection-dialog/index.cjs +7 -7
- package/dist/qy-legacy-selection-dialog/index.mjs +7 -7
- package/dist/qy-link/index.cjs +1 -1
- package/dist/qy-link/index.mjs +5 -5
- package/dist/qy-main/index.cjs +1 -1
- package/dist/qy-main/index.mjs +4 -4
- 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 +4 -4
- package/dist/qy-pagination/index.cjs +1 -1
- package/dist/qy-pagination/index.mjs +1 -1
- package/dist/qy-popconfirm/index.cjs +1 -1
- package/dist/qy-popconfirm/index.mjs +5 -5
- package/dist/qy-popover/index.cjs +1 -1
- package/dist/qy-popover/index.mjs +4 -4
- package/dist/qy-progress/index.cjs +1 -1
- package/dist/qy-progress/index.mjs +3 -3
- 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 +3 -3
- package/dist/qy-record-quote-search/index.mjs +3 -3
- package/dist/qy-remark-image/index.cjs +2 -2
- package/dist/qy-remark-image/index.mjs +3 -3
- package/dist/qy-remote-select/index.cjs +2 -2
- package/dist/qy-remote-select/index.mjs +4 -4
- package/dist/qy-result/index.cjs +1 -1
- package/dist/qy-result/index.mjs +4 -4
- package/dist/qy-row/index.cjs +1 -1
- package/dist/qy-row/index.mjs +4 -4
- package/dist/qy-scrollbar/index.cjs +1 -1
- package/dist/qy-scrollbar/index.mjs +3 -3
- package/dist/qy-search-input/index.cjs +2 -2
- package/dist/qy-search-input/index.mjs +2 -2
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +6 -6
- package/dist/qy-selection-dialog/index.mjs +6 -6
- package/dist/qy-skeleton/index.cjs +1 -1
- package/dist/qy-skeleton/index.mjs +4 -4
- package/dist/qy-skeleton-item/index.cjs +1 -1
- package/dist/qy-skeleton-item/index.mjs +4 -4
- package/dist/qy-statistic/index.cjs +1 -1
- package/dist/qy-statistic/index.mjs +3 -3
- package/dist/qy-step/index.cjs +1 -1
- package/dist/qy-step/index.mjs +5 -5
- package/dist/qy-steps/index.cjs +1 -1
- package/dist/qy-steps/index.mjs +4 -4
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- package/dist/qy-tree/index.cjs +1 -1
- package/dist/qy-tree/index.mjs +5 -5
- 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-0PQfX5FF.cjs +1 -0
- package/dist/shared/index-0rmLB9X5.mjs +153 -0
- package/dist/shared/index-2Mjm9QSY.cjs +1 -0
- package/dist/shared/index-4Yl91Bw1.cjs +1 -0
- package/dist/shared/{index-DNMRIYkm.mjs → index-4f74z6ej.mjs} +1 -1
- package/dist/shared/index-5gzkbh5i.mjs +155 -0
- package/dist/shared/index-8hd7J6aU.mjs +387 -0
- package/dist/shared/index-8yOtcFvL.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-DOOT2grg.mjs → index-9ONwSw5w.mjs} +13 -12
- package/dist/shared/index-9uvmS4AG.mjs +269 -0
- package/dist/shared/index-AanbrbHj.mjs +341 -0
- package/dist/shared/index-AlGD5i9H.mjs +69 -0
- package/dist/shared/index-B5QHWuu6.mjs +77 -0
- package/dist/shared/index-BD_xspQz.mjs +48 -0
- package/dist/shared/index-BE5027ro.mjs +93 -0
- package/dist/shared/index-BEBpuiBd.mjs +88 -0
- package/dist/shared/index-BEkygL14.mjs +53 -0
- package/dist/shared/index-BEtTFM5x.cjs +1 -0
- package/dist/shared/index-BHwo-QWj.cjs +1 -0
- package/dist/shared/index-BNFOINBq.cjs +1 -0
- package/dist/shared/index-BO98Eu6o.mjs +177 -0
- package/dist/shared/index-BQhmieVL.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-BnmY1ndj.mjs → index-BQsEFX28.mjs} +24 -23
- package/dist/shared/index-BSHA0cGJ.mjs +160 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-BvBAR8A1.mjs → index-BToXN_2w.mjs} +18 -17
- package/dist/shared/{index.vue_vue_type_script_lang-BGAdXWIL.mjs → index-BVb2RMjG.mjs} +12 -11
- package/dist/shared/index-BZWCuG8R.cjs +1 -0
- package/dist/shared/index-BZ_NcHA_.mjs +53 -0
- package/dist/shared/{index.vue_vue_type_script_lang-DIKHRo0o.mjs → index-BZqyVU0P.mjs} +22 -21
- package/dist/shared/index-B_SR7dGJ.cjs +1 -0
- package/dist/shared/index-BerXbfTu.mjs +253 -0
- package/dist/shared/index-BflaWNs2.cjs +1 -0
- package/dist/shared/index-BhgJxAHO.cjs +1 -0
- package/dist/shared/index-BiKe-5ke.cjs +1 -0
- package/dist/shared/index-BikJ___N.cjs +1 -0
- package/dist/shared/index-Bk0SVo_S.cjs +1 -0
- package/dist/shared/index-BlC4k76M.cjs +1 -0
- package/dist/shared/index-BlRFiIMi.cjs +1 -0
- package/dist/shared/index-BlkrT9Gw.cjs +1 -0
- package/dist/shared/index-BmK0RFXS.cjs +1 -0
- package/dist/shared/index-BoyiE_59.cjs +1 -0
- package/dist/shared/index-BwHeigcB.cjs +1 -0
- package/dist/shared/index-BzVbwomQ.mjs +365 -0
- package/dist/shared/index-C0vnuFhn.cjs +1 -0
- package/dist/shared/index-C1__R9-C.mjs +371 -0
- package/dist/shared/index-C1fkmo0S.cjs +1 -0
- package/dist/shared/index-C9Lf2bX3.mjs +295 -0
- package/dist/shared/{index.vue_vue_type_script_lang-Dfq7D3mJ.mjs → index-C9n9zVss.mjs} +4 -3
- package/dist/shared/{index.vue_vue_type_script_lang-BaIOvoQn.mjs → index-CBbKlfPG.mjs} +10 -9
- package/dist/shared/index-CC5n_6uk.mjs +205 -0
- package/dist/shared/index-CDczgvbL.cjs +1 -0
- package/dist/shared/index-CESgJwIg.mjs +328 -0
- package/dist/shared/index-CFBWO7n0.mjs +78 -0
- package/dist/shared/index-CFJz6vrN.mjs +47 -0
- package/dist/shared/{index-CXnL-0Kp.cjs → index-CGFTY4Fp.cjs} +1 -1
- package/dist/shared/index-CHkcP5-q.cjs +1 -0
- package/dist/shared/index-CIUWz2Hp.cjs +1 -0
- package/dist/shared/index-COAR6xjP.mjs +402 -0
- package/dist/shared/index-CP3-7cLC.mjs +105 -0
- package/dist/shared/index-CP7N-9VV.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-D7b9ABei.mjs → index-CQRVbO-K.mjs} +20 -19
- package/dist/shared/{index.vue_vue_type_script_lang-D7nzeBUR.mjs → index-CTGLKLFg.mjs} +6 -5
- package/dist/shared/index-CWkXHOq7.cjs +1 -0
- package/dist/shared/index-CX-7EN8r.mjs +79 -0
- package/dist/shared/index-CXOF1C3t.mjs +84 -0
- package/dist/shared/index-CXeVLEcE.cjs +1 -0
- package/dist/shared/index-CXzBoO6N.cjs +1 -0
- package/dist/shared/index-C_vMHW_7.cjs +1 -0
- package/dist/shared/index-CcGYgKVf.mjs +446 -0
- package/dist/shared/index-CdqAvLtW.cjs +1 -0
- package/dist/shared/index-CfKXtmed.cjs +1 -0
- package/dist/shared/index-CfxDI3TR.mjs +284 -0
- package/dist/shared/index-Cgt_jiO8.cjs +1 -0
- package/dist/shared/index-CialZcU3.mjs +74 -0
- package/dist/shared/index-CjoH6lLx.cjs +1 -0
- package/dist/shared/index-CkXEXmTX.cjs +1 -0
- package/dist/shared/index-Cq0QWpNp.cjs +1 -0
- package/dist/shared/index-CtQ7TLzl.mjs +138 -0
- package/dist/shared/index-Ctcu-6T-.mjs +104 -0
- package/dist/shared/index-CvFL8RVZ.cjs +1 -0
- package/dist/shared/index-D-KJitUI.mjs +234 -0
- package/dist/shared/index-D-Se1DH6.cjs +1 -0
- package/dist/shared/index-D1SCfWlF.cjs +1 -0
- package/dist/shared/index-D2djzg5O.mjs +170 -0
- package/dist/shared/index-D6lq2cXm.cjs +1 -0
- package/dist/shared/index-DF3BUyOu.cjs +1 -0
- package/dist/shared/index-DGGBR9IQ.cjs +1 -0
- package/dist/shared/index-DI5Xx4zU.mjs +740 -0
- package/dist/shared/index-DMfiLqWm.cjs +1 -0
- package/dist/shared/index-DN3FSxUk.cjs +1 -0
- package/dist/shared/index-DN5Y8eHV.mjs +197 -0
- package/dist/shared/index-DNkrf-d7.cjs +1 -0
- package/dist/shared/index-DREOpf4w.cjs +1 -0
- package/dist/shared/index-DSc98P0J.mjs +957 -0
- package/dist/shared/index-DWxTBo0t.cjs +1 -0
- package/dist/shared/index-DYRxgeIB.mjs +311 -0
- package/dist/shared/index-DYhS_2hH.cjs +1 -0
- package/dist/shared/index-DZ9ixuhw.cjs +1 -0
- package/dist/shared/index-DZfZB8LS.mjs +146 -0
- package/dist/shared/index-DalbvZMR.mjs +132 -0
- package/dist/shared/index-DbpA63pp.mjs +51 -0
- package/dist/shared/index-Dd3rOEzY.mjs +136 -0
- package/dist/shared/index-DdOHKkWW.mjs +52 -0
- package/dist/shared/index-DhN2XKVc.cjs +1 -0
- package/dist/shared/index-DiZtu6-f.mjs +239 -0
- package/dist/shared/index-DkObuzo1.cjs +1 -0
- package/dist/shared/index-DkXIyXp3.mjs +27 -0
- package/dist/shared/index-DlyaXZXS.mjs +129 -0
- package/dist/shared/index-DmlIk2mW.cjs +1 -0
- package/dist/shared/index-DvLP2-p4.mjs +53 -0
- package/dist/shared/{index.vue_vue_type_script_lang-Bk0kLg5l.mjs → index-DxJnYlq4.mjs} +12 -11
- package/dist/shared/index-FSg27SoE.cjs +1 -0
- package/dist/shared/index-H0zceO6D.cjs +1 -0
- package/dist/shared/index-KFGhsuz_.mjs +63 -0
- package/dist/shared/index-KRMhlM-i.mjs +73 -0
- package/dist/shared/index-KvPH1usv.cjs +1 -0
- package/dist/shared/index-MaJdwWFj.cjs +1 -0
- package/dist/shared/index-NVs2UMip.cjs +1 -0
- package/dist/shared/index-OtL-aoXO.cjs +1 -0
- package/dist/shared/index-QHgVgpQU.mjs +67 -0
- package/dist/shared/index-R_lpFv9P.cjs +1 -0
- package/dist/shared/index-UyFdOJwl.mjs +157 -0
- package/dist/shared/{index.vue_vue_type_script_lang-C9X0V5AK.mjs → index-ZaBOgUd8.mjs} +17 -16
- package/dist/shared/index-_aPlj867.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-chBiq2cG.mjs → index-_llXjfm8.mjs} +4 -3
- package/dist/shared/index-aIBPfUAm.mjs +213 -0
- package/dist/shared/index-bR6Q3uaD.mjs +407 -0
- package/dist/shared/index-dM8FfZ_X.cjs +1 -0
- package/dist/shared/index-eIplwAX7.cjs +1 -0
- package/dist/shared/index-fEmIlZsO.cjs +1 -0
- package/dist/shared/index-frOfvcCH.mjs +307 -0
- package/dist/shared/index-iDsQyjN1.mjs +548 -0
- package/dist/shared/index-iGKTM26-.mjs +63 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-CN3dJjUV.mjs → index-iqem06ey.mjs} +12 -11
- package/dist/shared/index-mO9UiIQW.cjs +1 -0
- package/dist/shared/index-nYilZJM6.cjs +1 -0
- package/dist/shared/index-oZEfxmBH.cjs +1 -0
- package/dist/shared/index-oeKD9ezb.mjs +208 -0
- package/dist/shared/index-rP44D5Dd.cjs +1 -0
- package/dist/shared/index-rPOiDeUU.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-C4JHCuXz.mjs → index-tQgB7Kvd.mjs} +16 -15
- package/dist/shared/index-xCLpvAQ0.cjs +1 -0
- package/index.d.ts +1 -0
- package/package.json +2 -2
- package/qy-dialog/index.d.ts +6 -3
- package/qy-upload/index.d.ts +2 -1
- package/dist/shared/index-5UAiwqdT.cjs +0 -1
- package/dist/shared/index-AvNvmJe5.cjs +0 -1
- package/dist/shared/index-B0CTzdRW.mjs +0 -149
- package/dist/shared/index-B1J7PQMl.mjs +0 -79
- package/dist/shared/index-B1gnVI8Y.mjs +0 -161
- package/dist/shared/index-B7j9BtSm.mjs +0 -233
- package/dist/shared/index-BAOV5iYx.mjs +0 -385
- package/dist/shared/index-BJZjXeoT.cjs +0 -1
- package/dist/shared/index-BKdw4jD_.mjs +0 -142
- package/dist/shared/index-BN4A-O6P.mjs +0 -727
- package/dist/shared/index-BR7tIt2k.mjs +0 -211
- package/dist/shared/index-BVaIvVMi.mjs +0 -71
- package/dist/shared/index-BaRw7pWi.mjs +0 -156
- package/dist/shared/index-Bdlzmh8A.cjs +0 -1
- package/dist/shared/index-BgAP_K2E.cjs +0 -1
- package/dist/shared/index-Blgz8PJc.cjs +0 -1
- package/dist/shared/index-BqzKToOL.cjs +0 -1
- package/dist/shared/index-BsNtvE6i.cjs +0 -1
- package/dist/shared/index-BuVrLl5B.mjs +0 -90
- package/dist/shared/index-Bv1DrJ32.mjs +0 -71
- package/dist/shared/index-BxGP8OkE.cjs +0 -1
- package/dist/shared/index-Bz9WjKdL.cjs +0 -1
- package/dist/shared/index-Bzr2RHi5.mjs +0 -293
- package/dist/shared/index-C50jpQ11.mjs +0 -295
- package/dist/shared/index-C6G9eVku.cjs +0 -1
- package/dist/shared/index-CB0v25oB.cjs +0 -1
- package/dist/shared/index-CGH2ROZV.mjs +0 -54
- package/dist/shared/index-CIXJwYI-.cjs +0 -1
- package/dist/shared/index-CKkanVur.cjs +0 -1
- package/dist/shared/index-CLvL8LAM.cjs +0 -1
- package/dist/shared/index-CN2mgT5V.cjs +0 -1
- package/dist/shared/index-CW4s627w.mjs +0 -107
- package/dist/shared/index-CXOCZlps.mjs +0 -222
- package/dist/shared/index-CbSGTE1S.mjs +0 -578
- package/dist/shared/index-Cqr-L0yd.mjs +0 -285
- package/dist/shared/index-Cu6yAwdj.mjs +0 -124
- package/dist/shared/index-CxTyKMEH.cjs +0 -1
- package/dist/shared/index-D5HS8M1P.cjs +0 -1
- package/dist/shared/index-D6QwZtYV.mjs +0 -56
- package/dist/shared/index-DAU1WtID.mjs +0 -361
- package/dist/shared/index-DCsun70c.cjs +0 -1
- package/dist/shared/index-DEzFHeJL.cjs +0 -1
- package/dist/shared/index-DY2IXvwl.cjs +0 -1
- package/dist/shared/index-DdGlwebp.mjs +0 -347
- package/dist/shared/index-DiN5vXXD.cjs +0 -1
- package/dist/shared/index-Duq5XZ5w.cjs +0 -1
- package/dist/shared/index-DvXzDAmi.mjs +0 -285
- package/dist/shared/index-FZ5gl2au.cjs +0 -1
- package/dist/shared/index-O6K0DO_k.cjs +0 -1
- package/dist/shared/index-QN7-6GpS.mjs +0 -127
- package/dist/shared/index-_Bagw0Pj.cjs +0 -1
- package/dist/shared/index-ykI9hKtc.mjs +0 -88
- package/dist/shared/index.vue_vue_type_script_lang-69zSOotQ.mjs +0 -47
- package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +0 -31
- package/dist/shared/index.vue_vue_type_script_lang-CZK0hDYa.mjs +0 -77
- package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-2ZOn9XPM.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-4CNzVpgF.mjs +0 -40
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-B38X3tvf.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +0 -42
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +0 -63
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +0 -62
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BtMkNw_I.mjs +0 -199
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +0 -48
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CeVvm5Ph.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cn0JqB5r.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-D3MxDFk1.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DECgTYqI.mjs +0 -108
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DM0MGPZh.mjs +0 -331
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DMHhx9lY.mjs +0 -133
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DW2JKXjA.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +0 -19
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DeFEEJk8.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-GUuWAB0o.mjs +0 -238
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-mWNAIcqc.mjs +0 -63
- package/dist/shared/index.vue_vue_type_style_index_0_lang-90f2jQr7.mjs +0 -98
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B4fDeQox.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BLRxKB-e.mjs +0 -413
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BNL5vyrU.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Ba6d5zw4.mjs +0 -142
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BzJsAWKD.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C4yXFBV_.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C7L66EnO.mjs +0 -67
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CFp5MK6j.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CNdV3Mnk.mjs +0 -286
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CVAm3ApY.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CgScSrRJ.mjs +0 -148
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Clt7QDAK.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CuTyK1Ey.mjs +0 -317
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CvVl_Y56.mjs +0 -219
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CvlRVqcl.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D-p1u8y8.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D9T_xdbu.mjs +0 -176
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DGV7FQlw.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DGt78p3G.mjs +0 -298
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DZOPXZov.mjs +0 -168
- package/dist/shared/index.vue_vue_type_style_index_0_lang-J7wvS2CR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-KXiTSh4t.mjs +0 -74
- package/dist/shared/index.vue_vue_type_style_index_0_lang-YEjVWWsy.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-nS-EDK4t.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-yci929so.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),N=require("./index-eIplwAX7.cjs"),z=require("./index-DmlIk2mW.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),s=t.ref(!1),v=t.ref(!1);let u=null,p=!1;const b=t.computed(()=>_(n.value)),S=t.computed(()=>(a.value||b.value)??void 0),g=L.useFullscreen(S),y=t.ref(!1);function m(){y.value=I(a.value||b.value)}function d(){if(p)return;const l=E(e),o=a.value||b.value,c=!!(l&&l===o);c?a.value=l:(!l||l!==a.value)&&(a.value=null),m(),c!==s.value&&(s.value=c,i.onChange(c))}L.useEventListener(e,O,d),t.watch(n,d,{flush:"post"}),d();function F(){if(r.value||s.value)return Promise.resolve(!1);if(u)return u;const l=_(n.value);return l?I(l)?(a.value=l,m(),q(async()=>{try{return await x(l),d(),s.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 h(){if(r.value||!s.value)return Promise.resolve(!1);if(u)return u;const l=a.value||_(n.value);return l?I(l)?q(async()=>{try{return await P(l),d(),!s.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 k(){return u||(s.value?h():F())}function q(l){v.value=!0;const o=l().finally(()=>{v.value=!1,u=null});return u=o,o}function f(l,o,c){const w=Object.freeze({action:l,code:o,message:c});return i.onError(w),!1}async function x(l){const o=Q(l);if(o==="requestFullscreen"){await l.requestFullscreen();return}if(g.isSupported.value){await g.enter();return}if(o){await T(l,o);return}throw new Error("Fullscreen request is unavailable.")}async function P(l){var w;const o=e,c=j(o,l);if(c==="exitFullscreen"){await((w=o==null?void 0:o.exitFullscreen)==null?void 0:w.call(o));return}if(c){await T(o,c);return}await g.exit()}return t.onBeforeUnmount(()=>{p=!0}),{isFullscreen:s,isSupported:y,pending:v,enter:F,exit:h,toggle:k}}function C(){return typeof document>"u"?void 0:document}function _(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,s=t.useSlots(),v=t.inject(z.QY_ICON_REGISTRY_KEY,null),u=V(t.toRef(e,"target"),t.toRef(e,"disabled"),{onChange:x=>a("change",x),onError:x=>a("error",x)}),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"),m=t.computed(()=>!!s[y.value]),d=t.computed(()=>v==null?void 0:v.resolve(g.value)),F=t.computed(()=>m.value||!!d.value),h=t.computed(()=>({small:"sm",default:"md",large:"lg"})[e.size]),k=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:s,registry:v,controller:u,isFullscreen:p,pending:b,currentLabel:S,activeIconName:g,activeIconSlot:y,hasCustomIcon:m,registeredIcon:d,showIcon:F,mappedSize:h,buttonDisabled:k,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,s){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","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-fullscreen/index.vue"]]);exports.Fullscreen=G;
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { defineComponent as T, useAttrs as W, useSlots as B, inject as D, computed as d, markRaw as V, toRaw as F, ref as Y, watchEffect as q, openBlock as I, createElementBlock as E, mergeProps as Z, createBlock as x, resolveDynamicComponent as A, createElementVNode as G, normalizeClass as H, renderSlot as J, normalizeProps as U, guardReactiveProps as X, createCommentVNode as ee } from "vue";
|
|
2
|
+
import { _ as re } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const C = Symbol("QyIconRegistry"), _ = /* @__PURE__ */ new WeakMap();
|
|
4
|
+
function K(e) {
|
|
5
|
+
const r = [], o = /* @__PURE__ */ new Map();
|
|
6
|
+
for (const i of (e == null ? void 0 : e.icons) ?? []) {
|
|
7
|
+
const s = w(i == null ? void 0 : i.name);
|
|
8
|
+
if (!s)
|
|
9
|
+
throw new Error("QyIcon definition name must not be empty.");
|
|
10
|
+
const f = h(s);
|
|
11
|
+
if (o.has(f))
|
|
12
|
+
throw new Error(`Duplicate icon name "${s}".`);
|
|
13
|
+
const c = te(i, s);
|
|
14
|
+
r.push(c), o.set(f, c);
|
|
15
|
+
}
|
|
16
|
+
const t = [], m = /* @__PURE__ */ new Map();
|
|
17
|
+
for (const i of P(e == null ? void 0 : e.aliases)) {
|
|
18
|
+
const s = w(i.name), f = w(i.target), c = h(s), p = h(f);
|
|
19
|
+
if (!s)
|
|
20
|
+
throw new Error("QyIcon alias name must not be empty.");
|
|
21
|
+
if (!f)
|
|
22
|
+
throw new Error(`QyIcon alias "${s}" target must not be empty.`);
|
|
23
|
+
if (o.has(c))
|
|
24
|
+
throw new Error(`Icon alias "${s}" conflicts with a canonical icon name.`);
|
|
25
|
+
if (m.has(c))
|
|
26
|
+
throw new Error(`Duplicate icon alias "${s}".`);
|
|
27
|
+
const v = o.get(p);
|
|
28
|
+
if (!v)
|
|
29
|
+
throw new Error(`Icon alias "${s}" target "${f}" not found.`);
|
|
30
|
+
m.set(c, h(v.name)), t.push(Object.freeze({ name: s, target: v.name }));
|
|
31
|
+
}
|
|
32
|
+
let a = Object.freeze({
|
|
33
|
+
definitions: Object.freeze(r),
|
|
34
|
+
aliases: Object.freeze(t),
|
|
35
|
+
byName: o,
|
|
36
|
+
aliasTargets: m
|
|
37
|
+
}), y, l = !1;
|
|
38
|
+
const g = () => {
|
|
39
|
+
if (!e.loader) return y ?? (y = Promise.resolve());
|
|
40
|
+
l = !1;
|
|
41
|
+
let i;
|
|
42
|
+
try {
|
|
43
|
+
i = e.loader();
|
|
44
|
+
} catch (s) {
|
|
45
|
+
i = Promise.reject(s);
|
|
46
|
+
}
|
|
47
|
+
return y = Promise.resolve(i).then((s) => {
|
|
48
|
+
let f;
|
|
49
|
+
try {
|
|
50
|
+
f = K({
|
|
51
|
+
icons: [...a.definitions, ...s.icons],
|
|
52
|
+
aliases: [...a.aliases, ...P(s.aliases)]
|
|
53
|
+
});
|
|
54
|
+
} catch (c) {
|
|
55
|
+
const p = c instanceof Error ? c.message : String(c);
|
|
56
|
+
throw new Error(`Icon registry load conflict: ${p}`);
|
|
57
|
+
}
|
|
58
|
+
a = _.get(f), _.set(b, a);
|
|
59
|
+
}).catch((s) => {
|
|
60
|
+
throw l = !0, s;
|
|
61
|
+
}), y;
|
|
62
|
+
}, b = Object.freeze({
|
|
63
|
+
resolve(i) {
|
|
64
|
+
const s = h(w(i)), f = a.aliasTargets.get(s) ?? s, c = a.byName.get(f);
|
|
65
|
+
return c ? R(c) : void 0;
|
|
66
|
+
},
|
|
67
|
+
has(i) {
|
|
68
|
+
const s = h(w(i));
|
|
69
|
+
return a.byName.has(a.aliasTargets.get(s) ?? s);
|
|
70
|
+
},
|
|
71
|
+
list() {
|
|
72
|
+
return Object.freeze(a.definitions.map(R));
|
|
73
|
+
},
|
|
74
|
+
load() {
|
|
75
|
+
return y ?? g();
|
|
76
|
+
},
|
|
77
|
+
retry() {
|
|
78
|
+
return l ? g() : Promise.reject(new Error("QyIcon registry retry is only available after a failed load."));
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
return _.set(b, a), b;
|
|
82
|
+
}
|
|
83
|
+
function me(...e) {
|
|
84
|
+
const r = [], o = [];
|
|
85
|
+
for (const t of e) {
|
|
86
|
+
const m = _.get(t);
|
|
87
|
+
if (!m)
|
|
88
|
+
throw new TypeError("mergeQyIconRegistries accepts only QyIcon registries created by this package.");
|
|
89
|
+
r.push(...m.definitions), o.push(...m.aliases);
|
|
90
|
+
}
|
|
91
|
+
try {
|
|
92
|
+
return K({ icons: r, aliases: o });
|
|
93
|
+
} catch (t) {
|
|
94
|
+
const m = t instanceof Error ? t.message : String(t);
|
|
95
|
+
throw new Error(`Icon registry merge conflict: ${m}`);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function de(e) {
|
|
99
|
+
if (!_.has(e))
|
|
100
|
+
throw new TypeError("createQyIconPlugin accepts only a QyIcon registry created by this package.");
|
|
101
|
+
return Object.freeze({
|
|
102
|
+
install(r) {
|
|
103
|
+
r.provide(C, e);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function w(e) {
|
|
108
|
+
const r = typeof e == "string" || typeof e == "number" ? String(e).trim() : "";
|
|
109
|
+
if (!r) return "";
|
|
110
|
+
const o = /^#icon-(.+)$/i.exec(r);
|
|
111
|
+
if (o) return o[1].trim();
|
|
112
|
+
const t = /^icon-\[([^\[\]]+?)--([^\[\]]+?)\]$/i.exec(r);
|
|
113
|
+
return t ? `iconify:${t[1]}:${t[2]}` : r;
|
|
114
|
+
}
|
|
115
|
+
function h(e) {
|
|
116
|
+
return e.toLocaleLowerCase();
|
|
117
|
+
}
|
|
118
|
+
function P(e) {
|
|
119
|
+
return e ? Array.isArray(e) ? [...e] : Object.entries(e).map(([r, o]) => ({ name: r, target: o })) : [];
|
|
120
|
+
}
|
|
121
|
+
function te(e, r) {
|
|
122
|
+
const o = {
|
|
123
|
+
...e.label === void 0 ? {} : { label: ne(e.label, r) },
|
|
124
|
+
...e.keywords === void 0 ? {} : { keywords: oe(e.keywords, r) }
|
|
125
|
+
};
|
|
126
|
+
switch (e.source) {
|
|
127
|
+
case "symbol":
|
|
128
|
+
return S({
|
|
129
|
+
name: r,
|
|
130
|
+
source: "symbol",
|
|
131
|
+
value: k("symbol", e.value, r),
|
|
132
|
+
...o
|
|
133
|
+
});
|
|
134
|
+
case "component":
|
|
135
|
+
return S({
|
|
136
|
+
name: r,
|
|
137
|
+
source: "component",
|
|
138
|
+
value: k("component", e.value, r),
|
|
139
|
+
...o
|
|
140
|
+
});
|
|
141
|
+
case "class":
|
|
142
|
+
return S({
|
|
143
|
+
name: r,
|
|
144
|
+
source: "class",
|
|
145
|
+
value: k("class", e.value, r),
|
|
146
|
+
...o
|
|
147
|
+
});
|
|
148
|
+
default:
|
|
149
|
+
throw new Error(`QyIcon definition "${r}" has unsupported source "${String(e.source)}".`);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
function k(e, r, o) {
|
|
153
|
+
if (e === "symbol") {
|
|
154
|
+
if (typeof r != "string" || !/^#[^\s#]+$/.test(r))
|
|
155
|
+
throw new Error(`QyIcon symbol "${o}" must be a same-document #fragment.`);
|
|
156
|
+
return r;
|
|
157
|
+
}
|
|
158
|
+
if (e === "component") {
|
|
159
|
+
if (typeof r != "object" && typeof r != "function" || r === null)
|
|
160
|
+
throw new Error(`QyIcon component "${o}" must be a Vue component.`);
|
|
161
|
+
return r;
|
|
162
|
+
}
|
|
163
|
+
if (e !== "class")
|
|
164
|
+
throw new Error(`QyIcon definition "${o}" has unsupported source "${String(e)}".`);
|
|
165
|
+
if (typeof r != "string" || !r.trim() || !/^[A-Za-z0-9_:.\/\[\]%-]+(?:\s+[A-Za-z0-9_:.\/\[\]%-]+)*$/.test(r.trim()))
|
|
166
|
+
throw new Error(`QyIcon class "${o}" must be a trusted static class string.`);
|
|
167
|
+
return r.trim();
|
|
168
|
+
}
|
|
169
|
+
function ne(e, r) {
|
|
170
|
+
if (typeof e != "string")
|
|
171
|
+
throw new Error(`QyIcon label "${r}" must be a string.`);
|
|
172
|
+
return e;
|
|
173
|
+
}
|
|
174
|
+
function oe(e, r) {
|
|
175
|
+
if (!Array.isArray(e) || e.some((o) => typeof o != "string"))
|
|
176
|
+
throw new Error(`QyIcon keywords "${r}" must be strings.`);
|
|
177
|
+
return Object.freeze([...e]);
|
|
178
|
+
}
|
|
179
|
+
function S(e) {
|
|
180
|
+
return e.keywords && !Object.isFrozen(e.keywords) && (e = { ...e, keywords: Object.freeze([...e.keywords]) }), Object.freeze(e);
|
|
181
|
+
}
|
|
182
|
+
function R(e) {
|
|
183
|
+
return S({
|
|
184
|
+
...e,
|
|
185
|
+
...e.keywords ? { keywords: [...e.keywords] } : {}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
const z = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new Set(), se = /* @__PURE__ */ T({
|
|
189
|
+
name: "QyIcon",
|
|
190
|
+
inheritAttrs: !1,
|
|
191
|
+
__name: "index",
|
|
192
|
+
props: {
|
|
193
|
+
name: { type: [String, Number], required: !1 },
|
|
194
|
+
icon: { type: null, required: !1 },
|
|
195
|
+
size: { type: [Number, String], required: !1, default: "1em" },
|
|
196
|
+
color: { type: String, required: !1, default: "currentColor" },
|
|
197
|
+
spin: { type: Boolean, required: !1, default: !1 },
|
|
198
|
+
label: { type: String, required: !1 }
|
|
199
|
+
},
|
|
200
|
+
setup(e, { expose: r }) {
|
|
201
|
+
r();
|
|
202
|
+
const o = e, t = W(), m = B(), a = D(C, null), y = d(
|
|
203
|
+
() => o.icon ? V(F(o.icon)) : void 0
|
|
204
|
+
), l = d(
|
|
205
|
+
() => o.name === void 0 || o.name === null ? "" : w(o.name)
|
|
206
|
+
), g = d(() => {
|
|
207
|
+
if (!(o.icon || !a || !l.value))
|
|
208
|
+
return a.resolve(l.value);
|
|
209
|
+
}), b = Y(null), i = d(() => !!(!o.icon && l.value && !g.value)), s = d(() => {
|
|
210
|
+
const n = typeof o.label == "string" ? o.label.trim() : "";
|
|
211
|
+
if (n) return n;
|
|
212
|
+
const u = t["aria-label"];
|
|
213
|
+
return N(u) ? String(u) : "";
|
|
214
|
+
}), f = d(() => s.value ? "img" : t.role), c = d(() => j(o.size)), p = d(() => ({
|
|
215
|
+
width: c.value,
|
|
216
|
+
height: c.value,
|
|
217
|
+
fontSize: c.value,
|
|
218
|
+
color: o.color || "currentColor"
|
|
219
|
+
})), v = d(() => {
|
|
220
|
+
const n = {};
|
|
221
|
+
for (const [u, M] of Object.entries(t))
|
|
222
|
+
O(u) && (n[u] = M);
|
|
223
|
+
return n;
|
|
224
|
+
}), $ = d(() => Object.freeze({ name: l.value }));
|
|
225
|
+
q(() => {
|
|
226
|
+
const n = g.value;
|
|
227
|
+
b.value && (n == null ? void 0 : n.source) === "symbol" && (b.value.setAttributeNS(
|
|
228
|
+
"http://www.w3.org/1999/xlink",
|
|
229
|
+
"xlink:href",
|
|
230
|
+
n.value
|
|
231
|
+
), b.value.setAttribute("xlink:href", n.value));
|
|
232
|
+
}), q(() => {
|
|
233
|
+
if (o.icon) {
|
|
234
|
+
l.value && console.warn("QyIcon received both icon and name; the direct icon takes precedence.");
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
const n = l.value;
|
|
238
|
+
if (!(!n || !i.value)) {
|
|
239
|
+
if (a) {
|
|
240
|
+
const u = z.get(a) || /* @__PURE__ */ new Set();
|
|
241
|
+
if (u.has(n.toLocaleLowerCase())) return;
|
|
242
|
+
u.add(n.toLocaleLowerCase()), z.set(a, u);
|
|
243
|
+
} else {
|
|
244
|
+
const u = n.toLocaleLowerCase();
|
|
245
|
+
if (Q.has(u)) return;
|
|
246
|
+
Q.add(u);
|
|
247
|
+
}
|
|
248
|
+
console.warn(`QyIcon icon "${n}" was not found in the current app registry.`);
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
function j(n) {
|
|
252
|
+
return typeof n == "number" ? Number.isFinite(n) && n > 0 ? `${n}px` : "1em" : n.trim() || "1em";
|
|
253
|
+
}
|
|
254
|
+
function N(n) {
|
|
255
|
+
return typeof n == "string" ? n.trim().length > 0 : n != null && n !== !1;
|
|
256
|
+
}
|
|
257
|
+
function O(n) {
|
|
258
|
+
return n !== "class" && n !== "style" && n !== "role" && n !== "aria-label" && n !== "aria-hidden" && n !== "data-qy-icon-missing" && (n === "id" || n === "title" || n.startsWith("data-") || n.startsWith("aria-"));
|
|
259
|
+
}
|
|
260
|
+
const L = { missingWarningsByRegistry: z, missingWarningsWithoutRegistry: Q, props: o, attrs: t, slots: m, registry: a, directIcon: y, normalizedName: l, definition: g, symbolElement: b, isMissing: i, accessibleLabel: s, rootRole: f, iconSize: c, iconStyle: p, safeAttrs: v, fallbackSlotProps: $, normalizeSize: j, hasTextValue: N, isSafeAttr: O };
|
|
261
|
+
return Object.defineProperty(L, "__isScriptSetup", { enumerable: !1, value: !0 }), L;
|
|
262
|
+
}
|
|
263
|
+
}), ae = ["role", "aria-label", "aria-hidden", "data-qy-icon-missing"], ie = {
|
|
264
|
+
key: 1,
|
|
265
|
+
"aria-hidden": "true",
|
|
266
|
+
focusable: "false"
|
|
267
|
+
}, ce = ["href", "xlink:href"];
|
|
268
|
+
function le(e, r, o, t, m, a) {
|
|
269
|
+
var y, l, g;
|
|
270
|
+
return I(), E("span", Z(t.safeAttrs, {
|
|
271
|
+
class: ["qy-icon", [t.attrs.class, { "is-spin": t.props.spin }]],
|
|
272
|
+
style: [t.attrs.style, t.iconStyle],
|
|
273
|
+
role: t.rootRole,
|
|
274
|
+
"aria-label": t.accessibleLabel || void 0,
|
|
275
|
+
"aria-hidden": t.accessibleLabel ? void 0 : "true",
|
|
276
|
+
"data-qy-icon-missing": t.isMissing ? t.normalizedName : void 0
|
|
277
|
+
}), [
|
|
278
|
+
t.directIcon ? (I(), x(A(t.directIcon), {
|
|
279
|
+
key: 0,
|
|
280
|
+
"aria-hidden": "true"
|
|
281
|
+
})) : ((y = t.definition) == null ? void 0 : y.source) === "symbol" ? (I(), E("svg", ie, [
|
|
282
|
+
G("use", {
|
|
283
|
+
ref: "symbolElement",
|
|
284
|
+
href: t.definition.value,
|
|
285
|
+
"xlink:href": t.definition.value
|
|
286
|
+
}, null, 8, ce)
|
|
287
|
+
])) : ((l = t.definition) == null ? void 0 : l.source) === "component" ? (I(), x(A(t.definition.value), {
|
|
288
|
+
key: 2,
|
|
289
|
+
"aria-hidden": "true"
|
|
290
|
+
})) : ((g = t.definition) == null ? void 0 : g.source) === "class" ? (I(), E(
|
|
291
|
+
"span",
|
|
292
|
+
{
|
|
293
|
+
key: 3,
|
|
294
|
+
class: H(["qy-icon__class", t.definition.value]),
|
|
295
|
+
"aria-hidden": "true"
|
|
296
|
+
},
|
|
297
|
+
null,
|
|
298
|
+
2
|
|
299
|
+
/* CLASS */
|
|
300
|
+
)) : t.isMissing && t.slots.fallback ? J(e.$slots, "fallback", U(X(t.fallbackSlotProps)), void 0, !0, 4) : ee("v-if", !0)
|
|
301
|
+
], 16, ae);
|
|
302
|
+
}
|
|
303
|
+
const ye = /* @__PURE__ */ re(se, [["render", le], ["__scopeId", "data-v-2acb0327"], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-icon/index.vue"]]);
|
|
304
|
+
export {
|
|
305
|
+
ye as I,
|
|
306
|
+
C as Q,
|
|
307
|
+
K as a,
|
|
308
|
+
de as c,
|
|
309
|
+
me as m,
|
|
310
|
+
w as n
|
|
311
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),d=require("element-plus"),l=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),p=t.defineComponent({name:"QyDivider",inheritAttrs:!1,__name:"index",props:{direction:{type:String,default:"horizontal"},contentPosition:{type:String,default:"center"},borderStyle:{type:String,default:"solid"}},setup(i,{expose:o}){o();const s=i,e=t.useAttrs(),c=t.computed(()=>Object.fromEntries(Object.entries(e).filter(([r])=>r==="class"||r==="style"||r==="id"||r==="role"||r==="title"||r.startsWith("data-")||r.startsWith("aria-")))),n={props:s,attrs:e,safeAttrs:c,get ElDivider(){return d.ElDivider}};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}});function a(i,o,s,e,c,n){return t.openBlock(),t.createBlock(e.ElDivider,t.mergeProps(e.safeAttrs,{direction:e.props.direction,"content-position":e.props.contentPosition,"border-style":e.props.borderStyle}),{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},16,["direction","content-position","border-style"])}const u=l._export_sfc(p,[["render",a],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-divider/index.vue"]]);exports.Divider=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("vue"),o=require("element-plus"),h=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),b=l.defineComponent({name:"QySwitch",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean],required:!1,default:!1},activeValue:{type:[String,Number,Boolean],required:!1,default:!0},inactiveValue:{type:[String,Number,Boolean],required:!1,default:!1},disabled:{type:Boolean,required:!1,default:()=>{}},validateEvent:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1},activeText:{type:String,required:!1,default:""},inactiveText:{type:String,required:!1,default:""},inlinePrompt:{type:Boolean,required:!1,default:!1},name:{type:String,required:!1,default:""},id:{type:String,required:!1},tabindex:{type:[String,Number],required:!1},ariaLabel:{type:String,required:!1}},emits:["update:modelValue","change","focus","blur"],setup(i,{expose:u,emit:e}){u();const a=e,n=o.useFormDisabled(),r=l.useAttrs(),c=l.computed(()=>Object.fromEntries(Object.entries(r).filter(([t])=>t==="class"||t==="style"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"))));function s(t){a("focus",t)}function f(t){a("blur",t)}function v(t){n.value||i.loading||a("update:modelValue",t===!0?i.activeValue:i.inactiveValue)}function m(t){n.value||i.loading||a("change",t===!0?i.activeValue:i.inactiveValue)}const d={emit:a,resolvedDisabled:n,attrs:r,safeAttrs:c,handleFocus:s,handleBlur:f,handleUpdateModelValue:v,handleChange:m,get ElSwitch(){return o.ElSwitch}};return Object.defineProperty(d,"__isScriptSetup",{enumerable:!1,value:!0}),d}});function g(i,u,e,a,n,r){return l.openBlock(),l.createBlock(a.ElSwitch,l.mergeProps(a.safeAttrs,{class:"qy-switch","model-value":e.modelValue===e.activeValue,"active-value":!0,"inactive-value":!1,disabled:a.resolvedDisabled,"validate-event":e.validateEvent,loading:e.loading,size:e.size,"active-text":e.activeText,"inactive-text":e.inactiveText,"inline-prompt":e.inlinePrompt,name:e.name,id:e.id,tabindex:e.tabindex,"aria-label":e.ariaLabel,"onUpdate:modelValue":a.handleUpdateModelValue,onChange:a.handleChange,onFocusin:a.handleFocus,onFocusout:a.handleBlur}),null,16,["model-value","disabled","validate-event","loading","size","active-text","inactive-text","inline-prompt","name","id","tabindex","aria-label"])}const q=h._export_sfc(b,[["render",g],["__scopeId","data-v-639a456a"],["__file","/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-switch/index.vue"]]);exports.Switch=q;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { defineComponent as K, useAttrs as U, ref as j, onBeforeUnmount as E, computed as S, unref as v, openBlock as R, createBlock as O, mergeProps as T, createSlots as w, withCtx as _, renderSlot as A, renderList as L } from "vue";
|
|
2
|
+
import { ElAutocomplete as N } from "element-plus";
|
|
3
|
+
import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
const D = /* @__PURE__ */ K({
|
|
5
|
+
name: "QyAutocomplete",
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { type: [String, Number, null], required: !1, default: "" },
|
|
10
|
+
options: { type: [Array, Object], required: !1, default: () => [] },
|
|
11
|
+
valueKey: { type: String, required: !1, default: "value" },
|
|
12
|
+
labelKey: { type: String, required: !1, default: "label" },
|
|
13
|
+
placeholder: { type: String, required: !1, default: "请输入" },
|
|
14
|
+
disabled: { type: Boolean, required: !1, default: void 0 },
|
|
15
|
+
clearable: { type: Boolean, required: !1, default: !0 },
|
|
16
|
+
size: { type: String, required: !1, default: void 0 },
|
|
17
|
+
teleported: { type: Boolean, required: !1, default: !0 },
|
|
18
|
+
appendTo: { type: String, required: !1, default: "body" },
|
|
19
|
+
popperClass: { type: String, required: !1, default: "" },
|
|
20
|
+
filterMethod: { type: Function, required: !1, default: void 0 },
|
|
21
|
+
fetchSuggestions: { type: Function, required: !1 }
|
|
22
|
+
},
|
|
23
|
+
emits: ["update:modelValue", "input", "change", "select", "focus", "blur", "clear"],
|
|
24
|
+
setup(o, { expose: i, emit: a }) {
|
|
25
|
+
const l = o, n = a, p = U(), r = j(null);
|
|
26
|
+
let d = 0;
|
|
27
|
+
E(() => {
|
|
28
|
+
d += 1;
|
|
29
|
+
});
|
|
30
|
+
const C = S(
|
|
31
|
+
() => ["qy-autocomplete__popper", l.popperClass].filter(Boolean).join(" ")
|
|
32
|
+
), m = S(() => {
|
|
33
|
+
const e = v(l.options);
|
|
34
|
+
return (Array.isArray(e) ? e : v(e == null ? void 0 : e.value) || []).map((t) => ({
|
|
35
|
+
...t,
|
|
36
|
+
value: (t == null ? void 0 : t[l.valueKey]) ?? (t == null ? void 0 : t.value) ?? (t == null ? void 0 : t[l.labelKey]) ?? (t == null ? void 0 : t.label) ?? ""
|
|
37
|
+
}));
|
|
38
|
+
});
|
|
39
|
+
function h(e, u) {
|
|
40
|
+
const t = String(e ?? ""), P = ++d;
|
|
41
|
+
if (l.fetchSuggestions) {
|
|
42
|
+
let c = !1;
|
|
43
|
+
const f = (s) => {
|
|
44
|
+
c || P !== d || (c = !0, u(s));
|
|
45
|
+
};
|
|
46
|
+
try {
|
|
47
|
+
const s = l.fetchSuggestions(t, f);
|
|
48
|
+
Array.isArray(s) ? f(s) : s && Promise.resolve(s).then(
|
|
49
|
+
(b) => {
|
|
50
|
+
Array.isArray(b) && f(b);
|
|
51
|
+
},
|
|
52
|
+
() => f([])
|
|
53
|
+
);
|
|
54
|
+
} catch {
|
|
55
|
+
f([]);
|
|
56
|
+
}
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const k = m.value.filter((c) => l.filterMethod ? l.filterMethod(t, c) : t ? String(c.value ?? "").includes(t) : !0);
|
|
60
|
+
u(k);
|
|
61
|
+
}
|
|
62
|
+
function B(e) {
|
|
63
|
+
n("update:modelValue", e);
|
|
64
|
+
}
|
|
65
|
+
function I(e) {
|
|
66
|
+
n("input", e);
|
|
67
|
+
}
|
|
68
|
+
function V(e) {
|
|
69
|
+
n("change", e);
|
|
70
|
+
}
|
|
71
|
+
function x(e) {
|
|
72
|
+
n("select", e);
|
|
73
|
+
}
|
|
74
|
+
function z(e) {
|
|
75
|
+
n("focus", e);
|
|
76
|
+
}
|
|
77
|
+
function F(e) {
|
|
78
|
+
n("blur", e);
|
|
79
|
+
}
|
|
80
|
+
function M() {
|
|
81
|
+
d += 1, n("clear");
|
|
82
|
+
}
|
|
83
|
+
function y() {
|
|
84
|
+
var e, u;
|
|
85
|
+
(u = (e = r.value) == null ? void 0 : e.focus) == null || u.call(e);
|
|
86
|
+
}
|
|
87
|
+
function g() {
|
|
88
|
+
var e, u;
|
|
89
|
+
(u = (e = r.value) == null ? void 0 : e.blur) == null || u.call(e);
|
|
90
|
+
}
|
|
91
|
+
i({
|
|
92
|
+
querySearch: h,
|
|
93
|
+
focus: y,
|
|
94
|
+
blur: g
|
|
95
|
+
});
|
|
96
|
+
const q = { props: l, emit: n, attrs: p, autocompleteRef: r, get requestId() {
|
|
97
|
+
return d;
|
|
98
|
+
}, set requestId(e) {
|
|
99
|
+
d = e;
|
|
100
|
+
}, mergedPopperClass: C, normalizedOptions: m, querySearch: h, handleUpdateModelValue: B, handleInput: I, handleChange: V, handleSelect: x, handleFocus: z, handleBlur: F, handleClear: M, focus: y, blur: g, get ElAutocomplete() {
|
|
101
|
+
return N;
|
|
102
|
+
} };
|
|
103
|
+
return Object.defineProperty(q, "__isScriptSetup", { enumerable: !1, value: !0 }), q;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
function G(o, i, a, l, n, p) {
|
|
107
|
+
return R(), O(l.ElAutocomplete, T({ ref: "autocompleteRef" }, l.attrs, {
|
|
108
|
+
"model-value": a.modelValue,
|
|
109
|
+
"fetch-suggestions": l.querySearch,
|
|
110
|
+
placeholder: a.placeholder,
|
|
111
|
+
disabled: a.disabled,
|
|
112
|
+
clearable: a.clearable,
|
|
113
|
+
size: a.size,
|
|
114
|
+
teleported: a.teleported,
|
|
115
|
+
"append-to": a.appendTo,
|
|
116
|
+
"popper-class": l.mergedPopperClass,
|
|
117
|
+
"onUpdate:modelValue": l.handleUpdateModelValue,
|
|
118
|
+
onInput: l.handleInput,
|
|
119
|
+
onChange: l.handleChange,
|
|
120
|
+
onSelect: l.handleSelect,
|
|
121
|
+
onFocus: l.handleFocus,
|
|
122
|
+
onBlur: l.handleBlur,
|
|
123
|
+
onClear: l.handleClear
|
|
124
|
+
}), w({
|
|
125
|
+
_: 2
|
|
126
|
+
/* DYNAMIC */
|
|
127
|
+
}, [
|
|
128
|
+
o.$slots.default ? {
|
|
129
|
+
name: "default",
|
|
130
|
+
fn: _(({ item: r }) => [
|
|
131
|
+
A(o.$slots, "default", { item: r })
|
|
132
|
+
]),
|
|
133
|
+
key: "0"
|
|
134
|
+
} : void 0,
|
|
135
|
+
L(["prefix", "suffix", "prepend", "append"].filter((r) => o.$slots[r]), (r) => ({
|
|
136
|
+
name: r,
|
|
137
|
+
fn: _(() => [
|
|
138
|
+
A(o.$slots, r)
|
|
139
|
+
])
|
|
140
|
+
}))
|
|
141
|
+
]), 1040, ["model-value", "placeholder", "disabled", "clearable", "size", "teleported", "append-to", "popper-class"]);
|
|
142
|
+
}
|
|
143
|
+
const X = /* @__PURE__ */ Q(D, [["render", G], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-autocomplete/index.vue"]]);
|
|
144
|
+
export {
|
|
145
|
+
X as A
|
|
146
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { defineComponent as C, useAttrs as E, computed as i, ref as G, openBlock as s, createBlock as v, mergeProps as y, withCtx as g, renderSlot as _, createElementBlock as K, Fragment as O, renderList as x, resolveDynamicComponent as A, createTextVNode as P, toDisplayString as w } from "vue";
|
|
2
|
+
import { ElRadioButton as j, ElRadioGroup as U } from "element-plus";
|
|
3
|
+
import { R as D } from "./index-Ctcu-6T-.mjs";
|
|
4
|
+
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
|
+
const N = /* @__PURE__ */ C({
|
|
6
|
+
name: "QyRadioGroup",
|
|
7
|
+
inheritAttrs: !1,
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
modelValue: { type: [String, Number, Boolean, null], required: !1, default: void 0 },
|
|
11
|
+
options: { type: Array, required: !1, default: () => [] },
|
|
12
|
+
labelKey: { type: String, required: !1, default: "label" },
|
|
13
|
+
valueKey: { type: String, required: !1, default: "value" },
|
|
14
|
+
disabledKey: { type: String, required: !1, default: "disabled" },
|
|
15
|
+
validateEvent: { type: Boolean, required: !1, default: !0 },
|
|
16
|
+
disabled: { type: Boolean, required: !1, default: void 0 },
|
|
17
|
+
size: { type: String, required: !1, default: void 0 },
|
|
18
|
+
name: { type: String, required: !1, default: void 0 },
|
|
19
|
+
type: { type: String, required: !1, default: "radio" },
|
|
20
|
+
border: { type: Boolean, required: !1, default: !1 }
|
|
21
|
+
},
|
|
22
|
+
emits: ["update:modelValue", "change"],
|
|
23
|
+
setup(l, { expose: u, emit: f }) {
|
|
24
|
+
const a = l, o = f, n = E(), r = i(
|
|
25
|
+
() => Object.fromEntries(
|
|
26
|
+
Object.entries(n).filter(
|
|
27
|
+
([e]) => e === "class" || e === "style" || e === "role" || e === "title" || e === "id" || e.startsWith("data-") || e.startsWith("aria-")
|
|
28
|
+
)
|
|
29
|
+
)
|
|
30
|
+
), d = G(null), h = i(
|
|
31
|
+
() => a.type === "button" ? j : D
|
|
32
|
+
), R = i(
|
|
33
|
+
() => a.options.map((e) => {
|
|
34
|
+
const t = e[a.labelKey], b = e[a.valueKey], z = p(b) ? b : e.value ?? e.label ?? "";
|
|
35
|
+
return {
|
|
36
|
+
raw: e,
|
|
37
|
+
label: String(t ?? e.label ?? e.value ?? ""),
|
|
38
|
+
value: z,
|
|
39
|
+
disabled: !!e[a.disabledKey]
|
|
40
|
+
};
|
|
41
|
+
})
|
|
42
|
+
);
|
|
43
|
+
function p(e) {
|
|
44
|
+
return typeof e == "boolean" || typeof e == "string" || typeof e == "number";
|
|
45
|
+
}
|
|
46
|
+
function q(e) {
|
|
47
|
+
const t = {
|
|
48
|
+
modelValue: a.modelValue ?? void 0,
|
|
49
|
+
value: e.value,
|
|
50
|
+
label: e.label,
|
|
51
|
+
disabled: e.disabled || void 0,
|
|
52
|
+
size: a.size,
|
|
53
|
+
name: a.name
|
|
54
|
+
};
|
|
55
|
+
return a.type === "button" ? t : {
|
|
56
|
+
...t,
|
|
57
|
+
border: a.border
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function S(e, t) {
|
|
61
|
+
return `${String(e.value ?? e.label)}-${t}`;
|
|
62
|
+
}
|
|
63
|
+
function V(e) {
|
|
64
|
+
o("update:modelValue", e);
|
|
65
|
+
}
|
|
66
|
+
function B(e) {
|
|
67
|
+
o("change", e);
|
|
68
|
+
}
|
|
69
|
+
function m() {
|
|
70
|
+
return d.value;
|
|
71
|
+
}
|
|
72
|
+
u({
|
|
73
|
+
getRadioGroupInstance: m
|
|
74
|
+
});
|
|
75
|
+
const c = { props: a, emit: o, attrs: n, safeAttrs: r, radioGroupRef: d, radioComponent: h, normalizedOptions: R, isRadioValue: p, getRadioProps: q, getOptionKey: S, handleUpdateModelValue: V, handleChange: B, getRadioGroupInstance: m, get ElRadioGroup() {
|
|
76
|
+
return U;
|
|
77
|
+
} };
|
|
78
|
+
return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
function W(l, u, f, a, o, n) {
|
|
82
|
+
return s(), v(a.ElRadioGroup, y({ ref: "radioGroupRef" }, a.safeAttrs, {
|
|
83
|
+
"model-value": a.props.modelValue,
|
|
84
|
+
disabled: a.props.disabled,
|
|
85
|
+
"validate-event": a.props.validateEvent,
|
|
86
|
+
size: a.props.size,
|
|
87
|
+
name: a.props.name,
|
|
88
|
+
"onUpdate:modelValue": a.handleUpdateModelValue,
|
|
89
|
+
onChange: a.handleChange
|
|
90
|
+
}), {
|
|
91
|
+
default: g(() => [
|
|
92
|
+
l.$slots.default ? _(l.$slots, "default", {}, void 0, void 0, 0) : (s(!0), K(
|
|
93
|
+
O,
|
|
94
|
+
{ key: 1 },
|
|
95
|
+
x(a.normalizedOptions, (r, d) => (s(), v(
|
|
96
|
+
A(a.radioComponent),
|
|
97
|
+
y({
|
|
98
|
+
key: a.getOptionKey(r, d)
|
|
99
|
+
}, { ref_for: !0 }, a.getRadioProps(r)),
|
|
100
|
+
{
|
|
101
|
+
default: g(() => [
|
|
102
|
+
_(l.$slots, "option", {
|
|
103
|
+
option: r.raw,
|
|
104
|
+
label: r.label,
|
|
105
|
+
value: r.value,
|
|
106
|
+
disabled: r.disabled
|
|
107
|
+
}, () => [
|
|
108
|
+
P(
|
|
109
|
+
w(r.label),
|
|
110
|
+
1
|
|
111
|
+
/* TEXT */
|
|
112
|
+
)
|
|
113
|
+
])
|
|
114
|
+
]),
|
|
115
|
+
_: 2
|
|
116
|
+
/* DYNAMIC */
|
|
117
|
+
},
|
|
118
|
+
1040
|
|
119
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
120
|
+
))),
|
|
121
|
+
128
|
|
122
|
+
/* KEYED_FRAGMENT */
|
|
123
|
+
))
|
|
124
|
+
]),
|
|
125
|
+
_: 3
|
|
126
|
+
/* FORWARDED */
|
|
127
|
+
}, 16, ["model-value", "disabled", "validate-event", "size", "name"]);
|
|
128
|
+
}
|
|
129
|
+
const Q = /* @__PURE__ */ M(N, [["render", W], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-radio-group/index.vue"]]);
|
|
130
|
+
export {
|
|
131
|
+
Q as R
|
|
132
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent as i, useAttrs as u, computed as d, openBlock as f, createBlock as m, mergeProps as c, createSlots as p, withCtx as l, renderSlot as s } from "vue";
|
|
2
|
+
import { ElSkeleton as _ } from "element-plus";
|
|
3
|
+
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
+
const S = /* @__PURE__ */ i({
|
|
5
|
+
name: "QySkeleton",
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
animated: { type: Boolean, required: !1, default: !1 },
|
|
10
|
+
count: { type: Number, required: !1, default: 1 },
|
|
11
|
+
rows: { type: Number, required: !1, default: 3 },
|
|
12
|
+
loading: { type: Boolean, required: !1, default: !0 },
|
|
13
|
+
throttle: { type: [Number, Object], required: !1 }
|
|
14
|
+
},
|
|
15
|
+
setup(r, { expose: a }) {
|
|
16
|
+
a();
|
|
17
|
+
const e = u(), o = d(() => Object.fromEntries(Object.entries(e).filter(
|
|
18
|
+
([t]) => t === "class" || t === "style" || t === "role" || t === "title" || t.startsWith("data-") || t.startsWith("aria-")
|
|
19
|
+
))), n = { attrs: e, safeAttrs: o, get ElSkeleton() {
|
|
20
|
+
return _;
|
|
21
|
+
} };
|
|
22
|
+
return Object.defineProperty(n, "__isScriptSetup", { enumerable: !1, value: !0 }), n;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
function b(r, a, e, o, n, t) {
|
|
26
|
+
return f(), m(o.ElSkeleton, c(o.safeAttrs, {
|
|
27
|
+
animated: e.animated,
|
|
28
|
+
count: e.count,
|
|
29
|
+
rows: e.rows,
|
|
30
|
+
loading: e.loading,
|
|
31
|
+
throttle: e.throttle
|
|
32
|
+
}), p({
|
|
33
|
+
default: l(() => [
|
|
34
|
+
s(r.$slots, "default")
|
|
35
|
+
]),
|
|
36
|
+
_: 2
|
|
37
|
+
/* DYNAMIC */
|
|
38
|
+
}, [
|
|
39
|
+
r.$slots.template ? {
|
|
40
|
+
name: "template",
|
|
41
|
+
fn: l(() => [
|
|
42
|
+
s(r.$slots, "template")
|
|
43
|
+
]),
|
|
44
|
+
key: "0"
|
|
45
|
+
} : void 0
|
|
46
|
+
]), 1040, ["animated", "count", "rows", "loading", "throttle"]);
|
|
47
|
+
}
|
|
48
|
+
const k = /* @__PURE__ */ h(S, [["render", b], ["__file", "/home/runner/work/qy-component/qy-component/packages/ui/lib/qy-skeleton/index.vue"]]);
|
|
49
|
+
export {
|
|
50
|
+
k as S
|
|
51
|
+
};
|