mc-plus 1.0.69 → 1.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/index.js +271 -106
- package/dist/es/mc-alert-message-CKZ76HjI.js +32 -0
- package/dist/es/mc-button-CPZqvhsh.js +15 -0
- package/dist/es/mc-checkbox-CHbRGh7X.js +28 -0
- package/dist/es/mc-checkbox-group-C7RSwCS8.js +19 -0
- package/dist/es/mc-collapse-CvmRUjmI.js +25 -0
- package/dist/es/mc-collapse-item-CXJ35AIq.js +16 -0
- package/dist/es/mc-copy-CfKJv572.js +19 -0
- package/dist/es/mc-count-CksEIqs3.js +15 -0
- package/dist/es/mc-currency-icon-BIDfG8Aq.js +11 -0
- package/dist/es/mc-divider-CpY6Y0z_.js +8 -0
- package/dist/es/mc-drawer-jOf9UKUF.js +29 -0
- package/dist/es/mc-file-list-BhWLlT6y.js +30 -0
- package/dist/es/mc-footer-B5NDA_C4.js +11 -0
- package/dist/es/mc-form-OerjYAFL.js +74 -0
- package/dist/es/mc-form-item-NTzV5y7o.js +69 -0
- package/dist/es/mc-icon-DNEaXCT8.js +13 -0
- package/dist/es/mc-icon-plus-CmTBSYSx.js +14 -0
- package/dist/es/mc-input-DZ6fY-dR.js +89 -0
- package/dist/es/mc-input-group-CDGApZJq.js +36 -0
- package/dist/es/mc-lightbox-OObNEsiX.js +38 -0
- package/dist/es/mc-loading-D_ELubbA.js +12 -0
- package/dist/es/mc-modal-header-D_Ft0Os1.js +13 -0
- package/dist/es/mc-multi-tag-DsCmJyQO.js +16 -0
- package/dist/es/mc-otp-BjyPMD6Q.js +72 -0
- package/dist/es/mc-overlay-BKPcvOBP.js +13 -0
- package/dist/es/mc-popper-Dlkl2YZd.js +35 -0
- package/dist/es/mc-progress-bar-bmMvvbxy.js +30 -0
- package/dist/es/mc-radio-BZ_zN7H-.js +22 -0
- package/dist/es/mc-radio-group-f-g3sp7v.js +14 -0
- package/dist/es/mc-removable-tag-BnTEvVRv.js +14 -0
- package/dist/es/mc-reset-y5MoqtCq.js +14 -0
- package/dist/es/mc-secondary-menu-C919q75A.js +38 -0
- package/dist/es/mc-select-DoPTc0MI.js +81 -0
- package/dist/es/mc-select-group-BFPLj4uh.js +17 -0
- package/dist/es/mc-select-group-plus-DFyHm8e6.js +13 -0
- package/dist/es/mc-select-multi-option-BJwnMcQI.js +14 -0
- package/dist/es/mc-select-option-UUZ5HPxk.js +23 -0
- package/dist/es/mc-select-option-plus-XWnN3NT4.js +24 -0
- package/dist/es/mc-select-plus-BYaPg8Ac.js +166 -0
- package/dist/es/mc-status-BltbAaE2.js +8 -0
- package/dist/es/mc-step-Cm74mFYy.js +52 -0
- package/dist/es/mc-step-child-item-plus-BJGp07U3.js +7 -0
- package/dist/es/mc-step-item-plus-BHVvxoiN.js +7 -0
- package/dist/es/mc-step-plus-Dj_c7FUy.js +70 -0
- package/dist/es/mc-step-v2-thQB838M.js +76 -0
- package/dist/es/mc-success-icon-DPHksG1Z.js +8 -0
- package/dist/es/mc-switch-CkRdXHcz.js +15 -0
- package/dist/es/mc-tab-N43Tkqvk.js +54 -0
- package/dist/es/mc-tab-item-zLJGXu5k.js +7 -0
- package/dist/es/mc-table-CwfBTwtf.js +311 -0
- package/dist/es/mc-table-column-plus-pTIaL0u3.js +7 -0
- package/dist/es/mc-table-plus-1lzRcIRy.js +310 -0
- package/dist/es/mc-tag-_bo2-b4S.js +16 -0
- package/dist/es/mc-textarea-Xj87kIKl.js +18 -0
- package/dist/es/mc-title-Dm-Uzqcw.js +12 -0
- package/dist/es/mc-title-tool-bar-BMujgwja.js +19 -0
- package/dist/es/mc-toast-BtnRmNIu.js +71 -0
- package/dist/es/mc-tooltip-BeldB7Zk.js +13 -0
- package/dist/es/mc-upload-DaFbq8XW.js +117 -0
- package/dist/es/theme/mc-alert-message.css +1 -1
- package/dist/es/theme/mc-button.css +1 -1
- package/dist/es/theme/mc-checkbox.css +1 -1
- package/dist/es/theme/mc-collapse-item.css +1 -0
- package/dist/es/theme/mc-collapse.css +1 -1
- package/dist/es/theme/mc-copy.css +1 -1
- package/dist/es/theme/mc-count.css +1 -1
- package/dist/es/theme/mc-currency-icon.css +1 -1
- package/dist/es/theme/mc-divider.css +1 -1
- package/dist/es/theme/mc-drawer.css +1 -1
- package/dist/es/theme/mc-file-list.css +1 -0
- package/dist/es/theme/mc-footer.css +1 -1
- package/dist/es/theme/mc-form-item.css +1 -0
- package/dist/es/theme/mc-icon-plus.css +1 -0
- package/dist/es/theme/mc-icon.css +1 -1
- package/dist/es/theme/mc-input-group.css +1 -0
- package/dist/es/theme/mc-input.css +1 -1
- package/dist/es/theme/mc-lightbox.css +1 -1
- package/dist/es/theme/mc-loading.css +1 -1
- package/dist/es/theme/mc-modal-header.css +1 -1
- package/dist/es/theme/mc-multi-tag.css +1 -1
- package/dist/es/theme/mc-otp.css +1 -1
- package/dist/es/theme/mc-overlay.css +1 -1
- package/dist/es/theme/mc-popper.css +1 -1
- package/dist/es/theme/mc-progress-bar.css +1 -1
- package/dist/es/theme/mc-radio-group.css +1 -0
- package/dist/es/theme/mc-radio.css +1 -1
- package/dist/es/theme/mc-removable-tag.css +1 -1
- package/dist/es/theme/mc-reset.css +1 -1
- package/dist/es/theme/mc-secondary-menu.css +1 -1
- package/dist/es/theme/mc-select-group-plus.css +1 -0
- package/dist/es/theme/mc-select-group.css +1 -0
- package/dist/es/theme/mc-select-option-plus.css +1 -0
- package/dist/es/theme/mc-select-option.css +1 -0
- package/dist/es/theme/mc-select-plus.css +1 -0
- package/dist/es/theme/mc-select.css +1 -1
- package/dist/es/theme/mc-status.css +1 -1
- package/dist/es/theme/mc-step-plus.css +1 -0
- package/dist/es/theme/mc-step-v2.css +1 -0
- package/dist/es/theme/mc-step.css +1 -1
- package/dist/es/theme/mc-success-icon.css +1 -1
- package/dist/es/theme/mc-switch.css +1 -1
- package/dist/es/theme/mc-tab.css +1 -1
- package/dist/es/theme/mc-table-plus.css +1 -0
- package/dist/es/theme/mc-table.css +1 -0
- package/dist/es/theme/mc-tag.css +1 -1
- package/dist/es/theme/mc-textarea.css +1 -1
- package/dist/es/theme/mc-title-tool-bar.css +1 -0
- package/dist/es/theme/mc-title.css +1 -1
- package/dist/es/theme/mc-toast.css +1 -1
- package/dist/es/theme/mc-tooltip.css +1 -1
- package/dist/es/theme/mc-upload.css +1 -1
- package/dist/es/utils-Bxl3PXzk.js +18 -0
- package/dist/index.css +1 -1
- package/dist/types/{components/index.d.ts → components.d.ts} +21 -3
- package/dist/types/{core/index.d.ts → index.d.ts} +1 -1
- package/dist/types/mc-alert-message/constant.d.ts +1 -0
- package/dist/types/{components/mc-alert-message → mc-alert-message}/index.d.ts +7 -6
- package/dist/types/mc-alert-message/mc-alert-message.vue.d.ts +45 -0
- package/dist/types/mc-button/constant.d.ts +1 -0
- package/dist/types/{components/mc-button → mc-button}/index.d.ts +13 -12
- package/dist/types/mc-button/mc-button.vue.d.ts +34 -0
- package/dist/types/mc-checkbox/constant.d.ts +1 -0
- package/dist/types/{components/mc-checkbox → mc-checkbox}/hooks/useCheckboxGroup.d.ts +1 -1
- package/dist/types/mc-checkbox/index.d.ts +54 -0
- package/dist/types/mc-checkbox/mc-checkbox.vue.d.ts +37 -0
- package/dist/types/mc-checkbox/types.d.ts +16 -0
- package/dist/types/{components/mc-checkbox → mc-checkbox-group}/constant.d.ts +1 -2
- package/dist/types/mc-checkbox-group/index.d.ts +43 -0
- package/dist/types/mc-checkbox-group/mc-checkbox-group.vue.d.ts +28 -0
- package/dist/types/{components/mc-checkbox → mc-checkbox-group}/types.d.ts +1 -16
- package/dist/types/{components/mc-collapse → mc-collapse}/constant.d.ts +1 -1
- package/dist/types/mc-collapse/index.d.ts +34 -0
- package/dist/types/mc-collapse/mc-collapse.vue.d.ts +24 -0
- package/dist/types/{components/mc-collapse → mc-collapse}/types.d.ts +0 -5
- package/dist/types/mc-collapse-item/constant.d.ts +1 -0
- package/dist/types/mc-collapse-item/index.d.ts +20 -0
- package/dist/types/mc-collapse-item/mc-collapse-item.vue.d.ts +19 -0
- package/dist/types/mc-collapse-item/types.d.ts +6 -0
- package/dist/types/mc-copy/constant.d.ts +1 -0
- package/dist/types/{components/mc-copy → mc-copy}/index.d.ts +7 -6
- package/dist/types/mc-copy/mc-copy.vue.d.ts +31 -0
- package/dist/types/mc-count/constant.d.ts +1 -0
- package/dist/types/{components/mc-count → mc-count}/index.d.ts +18 -17
- package/dist/types/mc-count/mc-count.vue.d.ts +12 -0
- package/dist/types/mc-currency-icon/constant.d.ts +1 -0
- package/dist/types/{components/mc-loading → mc-currency-icon}/index.d.ts +13 -10
- package/dist/types/mc-currency-icon/mc-currency-icon.vue.d.ts +23 -0
- package/dist/types/mc-divider/constant.d.ts +1 -0
- package/dist/types/mc-divider/index.d.ts +27 -0
- package/dist/types/mc-divider/mc-divider.vue.d.ts +7 -0
- package/dist/types/mc-drawer/constant.d.ts +1 -0
- package/dist/types/{components/mc-drawer → mc-drawer}/index.d.ts +10 -9
- package/dist/types/mc-drawer/mc-drawer.vue.d.ts +49 -0
- package/dist/types/mc-file-list/constant.d.ts +1 -0
- package/dist/types/mc-file-list/index.d.ts +73 -0
- package/dist/types/mc-file-list/mc-file-list.vue.d.ts +27 -0
- package/dist/types/{components/mc-upload/types/mc-file-list.d.ts → mc-file-list/types.d.ts} +1 -1
- package/dist/types/mc-footer/constant.d.ts +1 -0
- package/dist/types/{components/mc-footer → mc-footer}/index.d.ts +4 -3
- package/dist/types/mc-footer/mc-footer.vue.d.ts +29 -0
- package/dist/types/mc-form/constant.d.ts +4 -0
- package/dist/types/{components/mc-form → mc-form}/hooks/types.d.ts +2 -1
- package/dist/types/{components/mc-form → mc-form}/hooks/useFormItem.d.ts +2 -2
- package/dist/types/{components/mc-form → mc-form}/hooks/useFormValidate.d.ts +2 -2
- package/dist/types/mc-form/index.d.ts +53 -0
- package/dist/types/mc-form/mc-form.vue.d.ts +30 -0
- package/dist/types/{components/mc-form → mc-form}/types.d.ts +6 -35
- package/dist/types/mc-form-item/constant.d.ts +4 -0
- package/dist/types/mc-form-item/index.d.ts +55 -0
- package/dist/types/mc-form-item/mc-form-item.vue.d.ts +35 -0
- package/dist/types/mc-form-item/types.d.ts +32 -0
- package/dist/types/mc-icon/constant.d.ts +1 -0
- package/dist/types/{components/mc-icon → mc-icon}/index.d.ts +4 -3
- package/dist/types/mc-icon/mc-icon.vue.d.ts +13 -0
- package/dist/types/mc-icon-plus/constant.d.ts +1 -0
- package/dist/types/{components/mc-icon-plus → mc-icon-plus}/index.d.ts +12 -11
- package/dist/types/mc-icon-plus/mc-icon-plus.vue.d.ts +10 -0
- package/dist/types/mc-input/constant.d.ts +1 -0
- package/dist/types/{components/mc-input → mc-input}/index.d.ts +23 -22
- package/dist/types/mc-input/mc-input.vue.d.ts +61 -0
- package/dist/types/{components/mc-input-group → mc-input-group}/constant.d.ts +1 -1
- package/dist/types/{components/mc-input-group → mc-input-group}/index.d.ts +4 -3
- package/dist/types/mc-input-group/mc-input-group.vue.d.ts +23 -0
- package/dist/types/mc-lightbox/constant.d.ts +1 -0
- package/dist/types/{components/mc-lightbox → mc-lightbox}/index.d.ts +7 -6
- package/dist/types/mc-lightbox/mc-lightbox.vue.d.ts +56 -0
- package/dist/types/mc-loading/constant.d.ts +1 -0
- package/dist/types/{components/mc-status → mc-loading}/index.d.ts +11 -7
- package/dist/types/mc-loading/mc-loading.vue.d.ts +21 -0
- package/dist/types/mc-modal-header/constant.d.ts +1 -0
- package/dist/types/{components/mc-modal-header → mc-modal-header}/index.d.ts +4 -3
- package/dist/types/mc-modal-header/mc-modal-header.vue.d.ts +25 -0
- package/dist/types/mc-multi-tag/constant.d.ts +1 -0
- package/dist/types/{components/mc-multi-tag → mc-multi-tag}/index.d.ts +7 -3
- package/dist/types/mc-multi-tag/mc-multi-tag.vue.d.ts +12 -0
- package/dist/types/{components/mc-multi-tag → mc-multi-tag}/types.d.ts +1 -0
- package/dist/types/mc-otp/constant.d.ts +1 -0
- package/dist/types/{components/mc-otp → mc-otp}/index.d.ts +4 -3
- package/dist/types/mc-otp/mc-otp.vue.d.ts +12 -0
- package/dist/types/mc-overlay/constant.d.ts +1 -0
- package/dist/types/mc-overlay/index.d.ts +43 -0
- package/dist/types/mc-overlay/mc-overlay.vue.d.ts +30 -0
- package/dist/types/mc-popper/constant.d.ts +1 -0
- package/dist/types/{components/mc-popper → mc-popper}/index.d.ts +7 -6
- package/dist/types/mc-popper/mc-popper.vue.d.ts +43 -0
- package/dist/types/mc-progress-bar/constant.d.ts +1 -0
- package/dist/types/{components/mc-progress-bar → mc-progress-bar}/index.d.ts +4 -3
- package/dist/types/mc-progress-bar/mc-progress-bar.vue.d.ts +39 -0
- package/dist/types/mc-radio/constant.d.ts +1 -0
- package/dist/types/mc-radio/index.d.ts +39 -0
- package/dist/types/mc-radio/mc-radio.vue.d.ts +32 -0
- package/dist/types/mc-radio/types.d.ts +12 -0
- package/dist/types/mc-radio-group/constant.d.ts +4 -0
- package/dist/types/mc-radio-group/index.d.ts +34 -0
- package/dist/types/mc-radio-group/mc-radio-group.vue.d.ts +25 -0
- package/dist/types/{components/mc-radio → mc-radio-group}/types.d.ts +1 -12
- package/dist/types/mc-removable-tag/constant.d.ts +1 -0
- package/dist/types/{components/mc-removable-tag → mc-removable-tag}/index.d.ts +13 -6
- package/dist/types/mc-removable-tag/mc-removable-tag.vue.d.ts +26 -0
- package/dist/types/{components/mc-removable-tag → mc-removable-tag}/types.d.ts +1 -0
- package/dist/types/mc-reset/constant.d.ts +1 -0
- package/dist/types/{components/mc-reset → mc-reset}/index.d.ts +4 -3
- package/dist/types/mc-reset/mc-reset.vue.d.ts +26 -0
- package/dist/types/mc-secondary-menu/constant.d.ts +1 -0
- package/dist/types/mc-secondary-menu/index.d.ts +39 -0
- package/dist/types/mc-secondary-menu/mc-secondary-menu.vue.d.ts +14 -0
- package/dist/types/mc-select/constant.d.ts +4 -0
- package/dist/types/mc-select/index.d.ts +70 -0
- package/dist/types/mc-select/mc-select.vue.d.ts +46 -0
- package/dist/types/{components/mc-select → mc-select}/types.d.ts +2 -21
- package/dist/types/mc-select-group/constant.d.ts +4 -0
- package/dist/types/mc-select-group/index.d.ts +19 -0
- package/dist/types/mc-select-group/mc-select-group.vue.d.ts +18 -0
- package/dist/types/mc-select-group/types.d.ts +8 -0
- package/dist/types/mc-select-group-plus/constant.d.ts +1 -0
- package/dist/types/{components/mc-currency-icon → mc-select-group-plus}/index.d.ts +12 -13
- package/dist/types/mc-select-group-plus/mc-select-group-plus.vue.d.ts +21 -0
- package/dist/types/mc-select-multi-option/constant.d.ts +1 -0
- package/dist/types/mc-select-multi-option/index.d.ts +31 -0
- package/dist/types/mc-select-multi-option/mc-select-multi-option.vue.d.ts +9 -0
- package/dist/types/mc-select-option/constant.d.ts +1 -0
- package/dist/types/mc-select-option/index.d.ts +30 -0
- package/dist/types/mc-select-option/mc-select-option.vue.d.ts +25 -0
- package/dist/types/mc-select-option/types.d.ts +14 -0
- package/dist/types/mc-select-option-plus/constant.d.ts +1 -0
- package/dist/types/mc-select-option-plus/index.d.ts +30 -0
- package/dist/types/mc-select-option-plus/mc-select-option-plus.vue.d.ts +23 -0
- package/dist/types/{components/mc-select-plus/types/mc-select-option.d.ts → mc-select-option-plus/types.d.ts} +1 -1
- package/dist/types/mc-select-plus/constant.d.ts +4 -0
- package/dist/types/{components/mc-select-plus → mc-select-plus}/index.d.ts +25 -107
- package/dist/types/mc-select-plus/mc-select-plus.vue.d.ts +239 -0
- package/dist/types/mc-select-plus/types/index.d.ts +2 -0
- package/dist/types/mc-status/constant.d.ts +1 -0
- package/dist/types/mc-status/index.d.ts +25 -0
- package/dist/types/mc-status/mc-status.vue.d.ts +20 -0
- package/dist/types/mc-step/constant.d.ts +1 -0
- package/dist/types/{components/mc-step → mc-step}/index.d.ts +20 -19
- package/dist/types/mc-step/mc-step.vue.d.ts +19 -0
- package/dist/types/mc-step-child-item-plus/constant.d.ts +1 -0
- package/dist/types/mc-step-child-item-plus/index.d.ts +17 -0
- package/dist/types/mc-step-child-item-plus/mc-step-child-item-plus.vue.d.ts +16 -0
- package/dist/types/{components/mc-step-plus/types/mc-step-child-item.d.ts → mc-step-child-item-plus/types.d.ts} +1 -1
- package/dist/types/mc-step-item-plus/constant.d.ts +1 -0
- package/dist/types/mc-step-item-plus/index.d.ts +17 -0
- package/dist/types/mc-step-item-plus/mc-step-item-plus.vue.d.ts +16 -0
- package/dist/types/{components/mc-step-plus/types/mc-step-item.d.ts → mc-step-item-plus/types.d.ts} +2 -2
- package/dist/types/mc-step-plus/constant.d.ts +1 -0
- package/dist/types/{components/mc-step-plus → mc-step-plus}/hooks/useStepItem.d.ts +9 -9
- package/dist/types/mc-step-plus/index.d.ts +64 -0
- package/dist/types/mc-step-plus/mc-step-plus.vue.d.ts +21 -0
- package/dist/types/{components/mc-step-plus/types/mc-step.d.ts → mc-step-plus/types.d.ts} +1 -1
- package/dist/types/{components/mc-step-v2 → mc-step-v2}/index.d.ts +22 -22
- package/dist/types/mc-step-v2/mc-step-child-item-v2.vue.d.ts +20 -0
- package/dist/types/mc-step-v2/mc-step-item-v2.vue.d.ts +31 -0
- package/dist/types/mc-step-v2/mc-step-v2.vue.d.ts +30 -0
- package/dist/types/mc-success-icon/constant.d.ts +1 -0
- package/dist/types/{components/mc-success-icon → mc-success-icon}/index.d.ts +2 -0
- package/dist/types/mc-success-icon/mc-success-icon.vue.d.ts +6 -0
- package/dist/types/mc-switch/constant.d.ts +2 -0
- package/dist/types/{components/mc-switch → mc-switch}/index.d.ts +10 -9
- package/dist/types/mc-switch/mc-switch-label.vue.d.ts +21 -0
- package/dist/types/mc-switch/mc-switch.vue.d.ts +35 -0
- package/dist/types/mc-tab/constant.d.ts +1 -0
- package/dist/types/mc-tab/index.d.ts +49 -0
- package/dist/types/mc-tab/mc-tab.vue.d.ts +18 -0
- package/dist/types/{components/mc-tab → mc-tab}/types.d.ts +1 -10
- package/dist/types/mc-tab-item/constant.d.ts +1 -0
- package/dist/types/mc-tab-item/index.d.ts +19 -0
- package/dist/types/mc-tab-item/mc-tab-item.vue.d.ts +18 -0
- package/dist/types/mc-tab-item/types.d.ts +11 -0
- package/dist/types/mc-table/components/mc-table-body.vue.d.ts +38 -0
- package/dist/types/mc-table/components/mc-table-cell.vue.d.ts +29 -0
- package/dist/types/mc-table/components/mc-table-header.vue.d.ts +39 -0
- package/dist/types/mc-table/components/mc-table-loading.vue.d.ts +30 -0
- package/dist/types/mc-table/components/mc-table-pagination.vue.d.ts +16 -0
- package/dist/types/{components/mc-table → mc-table}/index.d.ts +72 -72
- package/dist/types/mc-table/mc-table.vue.d.ts +417 -0
- package/dist/types/{components/mc-table → mc-table}/types.d.ts +33 -0
- package/dist/types/mc-table-column-plus/constant.d.ts +1 -0
- package/dist/types/mc-table-column-plus/index.d.ts +17 -0
- package/dist/types/mc-table-column-plus/mc-table-column-plus.vue.d.ts +16 -0
- package/dist/types/{components/mc-table-plus/types/mc-table-column.d.ts → mc-table-column-plus/types.d.ts} +1 -1
- package/dist/types/mc-table-plus/constant.d.ts +25 -0
- package/dist/types/{components/mc-table-plus → mc-table-plus}/hooks/useColumns.d.ts +6 -6
- package/dist/types/{components/mc-table-plus → mc-table-plus}/hooks/useTableCell.d.ts +1 -1
- package/dist/types/{components/mc-table-plus → mc-table-plus}/hooks/useTableContext.d.ts +8 -8
- package/dist/types/mc-table-plus/index.d.ts +56 -0
- package/dist/types/mc-table-plus/mc-table-body.vue.d.ts +20 -0
- package/dist/types/mc-table-plus/mc-table-cell.vue.d.ts +29 -0
- package/dist/types/mc-table-plus/mc-table-ellipsis.vue.d.ts +2 -0
- package/dist/types/mc-table-plus/mc-table-empty.vue.d.ts +17 -0
- package/dist/types/mc-table-plus/mc-table-footer.vue.d.ts +2 -0
- package/dist/types/mc-table-plus/mc-table-header.vue.d.ts +2 -0
- package/dist/types/mc-table-plus/mc-table-loading.vue.d.ts +17 -0
- package/dist/types/mc-table-plus/mc-table-page-size.vue.d.ts +2 -0
- package/dist/types/mc-table-plus/mc-table-pagination-item.vue.d.ts +8 -0
- package/dist/types/mc-table-plus/mc-table-pagination.vue.d.ts +2 -0
- package/dist/types/mc-table-plus/mc-table-plus.vue.d.ts +35 -0
- package/dist/types/mc-table-plus/mc-table-row.vue.d.ts +35 -0
- package/dist/types/mc-table-plus/mc-table-scroll.vue.d.ts +5 -0
- package/dist/types/mc-table-plus/mc-table-sort.vue.d.ts +5 -0
- package/dist/types/mc-table-plus/mc-table-total.vue.d.ts +2 -0
- package/dist/types/{components/mc-table-plus → mc-table-plus}/types/index.d.ts +0 -1
- package/dist/types/{components/mc-table-plus → mc-table-plus}/types/mc-table.d.ts +1 -1
- package/dist/types/mc-tag/constant.d.ts +1 -0
- package/dist/types/{components/mc-tag → mc-tag}/index.d.ts +18 -17
- package/dist/types/mc-tag/mc-tag.vue.d.ts +36 -0
- package/dist/types/{components/mc-tag → mc-tag}/types.d.ts +1 -1
- package/dist/types/mc-textarea/constant.d.ts +1 -0
- package/dist/types/{components/mc-textarea → mc-textarea}/index.d.ts +7 -6
- package/dist/types/mc-textarea/mc-textarea.vue.d.ts +46 -0
- package/dist/types/mc-title/constant.d.ts +1 -0
- package/dist/types/{components/mc-title → mc-title}/index.d.ts +4 -3
- package/dist/types/mc-title/mc-title.vue.d.ts +38 -0
- package/dist/types/mc-title-tool-bar/constant.d.ts +1 -0
- package/dist/types/{components/mc-title-toolbar → mc-title-tool-bar}/index.d.ts +4 -3
- package/dist/types/mc-title-tool-bar/mc-title-tool-bar.vue.d.ts +32 -0
- package/dist/types/{components/mc-title-toolbar → mc-title-tool-bar}/types.d.ts +3 -3
- package/dist/types/mc-toast/constant.d.ts +1 -0
- package/dist/types/{components/mc-toast → mc-toast}/index.d.ts +7 -6
- package/dist/types/mc-toast/mc-toast.vue.d.ts +32 -0
- package/dist/types/mc-tooltip/constant.d.ts +1 -0
- package/dist/types/{components/mc-tooltip → mc-tooltip}/index.d.ts +13 -12
- package/dist/types/mc-tooltip/mc-tooltip.vue.d.ts +26 -0
- package/dist/types/{components/mc-tooltip → mc-tooltip}/types.d.ts +1 -1
- package/dist/types/mc-upload/constant.d.ts +4 -0
- package/dist/types/mc-upload/index.d.ts +228 -0
- package/dist/types/mc-upload/mc-upload-dropzone.vue.d.ts +45 -0
- package/dist/types/mc-upload/mc-upload.vue.d.ts +248 -0
- package/dist/types/{components/mc-upload → mc-upload}/types/index.d.ts +0 -1
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.css.gz +0 -0
- package/dist/umd/index.umd.cjs +14 -14
- package/dist/umd/index.umd.cjs.gz +0 -0
- package/package.json +5 -9
- package/dist/es/mc-alert-message-c-JIhsFw.js +0 -31
- package/dist/es/mc-button-BCS40pay.js +0 -14
- package/dist/es/mc-checkbox-ClZVuArL.js +0 -36
- package/dist/es/mc-collapse-CW_kYbhE.js +0 -32
- package/dist/es/mc-copy-37FOBLjL.js +0 -18
- package/dist/es/mc-count-DLyuZZnA.js +0 -14
- package/dist/es/mc-currency-icon-BymN7NXL.js +0 -10
- package/dist/es/mc-divider-j7w64XCK.js +0 -7
- package/dist/es/mc-drawer-Cz3Ssrkd.js +0 -28
- package/dist/es/mc-footer-CzKkst7M.js +0 -10
- package/dist/es/mc-form-DzA54Vbo.js +0 -131
- package/dist/es/mc-icon-C4bB78Bl.js +0 -20
- package/dist/es/mc-input-nZY2BJev.js +0 -115
- package/dist/es/mc-lightbox-DdcyuLRy.js +0 -37
- package/dist/es/mc-loading-lx-CA95N.js +0 -11
- package/dist/es/mc-modal-header-Cs3LnuT0.js +0 -12
- package/dist/es/mc-multi-tag-DUoLf0x-.js +0 -15
- package/dist/es/mc-otp-CxNHOgPQ.js +0 -71
- package/dist/es/mc-overlay-ClS50yUJ.js +0 -11
- package/dist/es/mc-popper-Dk4Q05J_.js +0 -34
- package/dist/es/mc-progress-bar-Bl7k4yM6.js +0 -29
- package/dist/es/mc-radio-CXtRzLhS.js +0 -26
- package/dist/es/mc-removable-tag-uymUYm5p.js +0 -13
- package/dist/es/mc-reset-DKf4uJlw.js +0 -13
- package/dist/es/mc-secondary-menu-DnJlVezj.js +0 -37
- package/dist/es/mc-select-CnTBxq45.js +0 -275
- package/dist/es/mc-status-DCrbcQ0G.js +0 -7
- package/dist/es/mc-step-Dyje8LmB.js +0 -179
- package/dist/es/mc-success-icon-BVgweNlO.js +0 -7
- package/dist/es/mc-switch-MD6GKMB1.js +0 -14
- package/dist/es/mc-tab-DGhC9UHh.js +0 -641
- package/dist/es/mc-tag-N6zuIYRt.js +0 -15
- package/dist/es/mc-textarea-CSE681vS.js +0 -17
- package/dist/es/mc-title-TAtfnHOk.js +0 -22
- package/dist/es/mc-toast-CvIFs-KO.js +0 -70
- package/dist/es/mc-tooltip-CgftGKxe.js +0 -12
- package/dist/es/mc-upload-DLwgPb49.js +0 -130
- package/dist/es/theme/mc-form.css +0 -1
- package/dist/es/utils-DhYrNPrr.js +0 -35
- package/dist/es/vendor-CfcDHsSD.js +0 -1268
- package/dist/types/components/mc-checkbox/index.d.ts +0 -94
- package/dist/types/components/mc-collapse/index.d.ts +0 -51
- package/dist/types/components/mc-divider/index.d.ts +0 -26
- package/dist/types/components/mc-form/constanst.d.ts +0 -4
- package/dist/types/components/mc-form/index.d.ts +0 -105
- package/dist/types/components/mc-icon-plus/constant.d.ts +0 -1
- package/dist/types/components/mc-loading/constant.d.ts +0 -1
- package/dist/types/components/mc-multi-tag/constant.d.ts +0 -1
- package/dist/types/components/mc-otp/constant.d.ts +0 -1
- package/dist/types/components/mc-radio/constant.d.ts +0 -3
- package/dist/types/components/mc-radio/index.d.ts +0 -70
- package/dist/types/components/mc-removable-tag/constant.d.ts +0 -1
- package/dist/types/components/mc-secondary-menu/index.d.ts +0 -38
- package/dist/types/components/mc-select/constant.d.ts +0 -4
- package/dist/types/components/mc-select/index.d.ts +0 -114
- package/dist/types/components/mc-select-plus/constant.d.ts +0 -7
- package/dist/types/components/mc-select-plus/types/index.d.ts +0 -5
- package/dist/types/components/mc-step-plus/constant.d.ts +0 -3
- package/dist/types/components/mc-step-plus/index.d.ts +0 -93
- package/dist/types/components/mc-step-plus/types/index.d.ts +0 -3
- package/dist/types/components/mc-tab/index.d.ts +0 -65
- package/dist/types/components/mc-table-plus/constant.d.ts +0 -26
- package/dist/types/components/mc-table-plus/index.d.ts +0 -70
- package/dist/types/components/mc-textarea/constanst.d.ts +0 -1
- package/dist/types/components/mc-title-toolbar/constanst.d.ts +0 -1
- package/dist/types/components/mc-upload/constant.d.ts +0 -2
- package/dist/types/components/mc-upload/index.d.ts +0 -368
- package/dist/types/hooks/index.d.ts +0 -13
- package/dist/types/hooks/src/useCDNPath.d.ts +0 -4
- package/dist/types/hooks/src/useClassName.d.ts +0 -6
- package/dist/types/hooks/src/useClickOutside.d.ts +0 -3
- package/dist/types/hooks/src/useDragover.d.ts +0 -10
- package/dist/types/hooks/src/useEventListener.d.ts +0 -3
- package/dist/types/hooks/src/useFocus.d.ts +0 -15
- package/dist/types/hooks/src/useHover.d.ts +0 -5
- package/dist/types/hooks/src/useId.d.ts +0 -2
- package/dist/types/hooks/src/usePolling.d.ts +0 -8
- package/dist/types/hooks/src/useProp.d.ts +0 -3
- package/dist/types/hooks/src/useResizeObserver.d.ts +0 -7
- package/dist/types/hooks/src/useWidthHeight.d.ts +0 -5
- package/dist/types/hooks/src/useWindowResize.d.ts +0 -2
- package/dist/types/hooks/vite.config.d.ts +0 -2
- package/dist/types/utils/build.d.ts +0 -20
- package/dist/types/utils/delay.d.ts +0 -1
- package/dist/types/utils/errorHandler.d.ts +0 -3
- package/dist/types/utils/generateId.d.ts +0 -1
- package/dist/types/utils/index.d.ts +0 -6
- package/dist/types/utils/install.d.ts +0 -9
- package/dist/types/utils/numberToPx.d.ts +0 -2
- package/dist/types/utils/printInfo.d.ts +0 -1
- /package/dist/types/{components/mc-alert-message → mc-alert-message}/types.d.ts +0 -0
- /package/dist/types/{components/mc-button → mc-button}/types.d.ts +0 -0
- /package/dist/types/{components/mc-checkbox → mc-checkbox}/hooks/index.d.ts +0 -0
- /package/dist/types/{components/mc-copy → mc-copy}/types.d.ts +0 -0
- /package/dist/types/{components/mc-count → mc-count}/types.d.ts +0 -0
- /package/dist/types/{components/mc-currency-icon → mc-currency-icon}/types.d.ts +0 -0
- /package/dist/types/{components/mc-divider → mc-divider}/types.d.ts +0 -0
- /package/dist/types/{components/mc-drawer → mc-drawer}/types.d.ts +0 -0
- /package/dist/types/{components/mc-footer → mc-footer}/types.d.ts +0 -0
- /package/dist/types/{components/mc-form → mc-form}/hooks/index.d.ts +0 -0
- /package/dist/types/{components/mc-form → mc-form}/hooks/useFormDisabled.d.ts +0 -0
- /package/dist/types/{components/mc-form → mc-form}/hooks/useFormId.d.ts +0 -0
- /package/dist/types/{components/mc-icon → mc-icon}/types.d.ts +0 -0
- /package/dist/types/{components/mc-icon-plus → mc-icon-plus}/types.d.ts +0 -0
- /package/dist/types/{components/mc-input → mc-input}/formatter/currency.d.ts +0 -0
- /package/dist/types/{components/mc-input → mc-input}/formatter/index.d.ts +0 -0
- /package/dist/types/{components/mc-input → mc-input}/formatter/number.d.ts +0 -0
- /package/dist/types/{components/mc-input → mc-input}/hooks.d.ts +0 -0
- /package/dist/types/{components/mc-input → mc-input}/types.d.ts +0 -0
- /package/dist/types/{components/mc-input-group → mc-input-group}/hooks/index.d.ts +0 -0
- /package/dist/types/{components/mc-input-group → mc-input-group}/hooks/useInputGroupCtx.d.ts +0 -0
- /package/dist/types/{components/mc-input-group → mc-input-group}/hooks/useStatus.d.ts +0 -0
- /package/dist/types/{components/mc-input-group → mc-input-group}/types.d.ts +0 -0
- /package/dist/types/{components/mc-lightbox → mc-lightbox}/types.d.ts +0 -0
- /package/dist/types/{components/mc-loading → mc-loading}/types.d.ts +0 -0
- /package/dist/types/{components/mc-modal-header → mc-modal-header}/types.d.ts +0 -0
- /package/dist/types/{components/mc-otp → mc-otp}/hooks/index.d.ts +0 -0
- /package/dist/types/{components/mc-otp → mc-otp}/hooks/useOtpFocus.d.ts +0 -0
- /package/dist/types/{components/mc-otp → mc-otp}/types.d.ts +0 -0
- /package/dist/types/{components/mc-overlay → mc-overlay}/types.d.ts +0 -0
- /package/dist/types/{components/mc-popper → mc-popper}/types.d.ts +0 -0
- /package/dist/types/{components/mc-progress-bar → mc-progress-bar}/types.d.ts +0 -0
- /package/dist/types/{components/mc-reset → mc-reset}/types.d.ts +0 -0
- /package/dist/types/{components/mc-richtext → mc-richtext}/constant.d.ts +0 -0
- /package/dist/types/{components/mc-richtext → mc-richtext}/index.d.ts +0 -0
- /package/dist/types/{components/mc-richtext → mc-richtext}/marks/custom-font.d.ts +0 -0
- /package/dist/types/{components/mc-richtext → mc-richtext}/marks/index.d.ts +0 -0
- /package/dist/types/{components/mc-richtext → mc-richtext}/types/index.d.ts +0 -0
- /package/dist/types/{components/mc-richtext → mc-richtext}/types/mc-richtext-tool.d.ts +0 -0
- /package/dist/types/{components/mc-richtext → mc-richtext}/types/mc-richtext.d.ts +0 -0
- /package/dist/types/{components/mc-secondary-menu → mc-secondary-menu}/types.d.ts +0 -0
- /package/dist/types/{components/mc-select-plus/types/mc-select-group.d.ts → mc-select-group-plus/types.d.ts} +0 -0
- /package/dist/types/{components/mc-select-plus/types/mc-select-multi-option.d.ts → mc-select-multi-option/types.d.ts} +0 -0
- /package/dist/types/{components/mc-select-plus → mc-select-plus}/hooks/index.d.ts +0 -0
- /package/dist/types/{components/mc-select-plus → mc-select-plus}/hooks/useClear.d.ts +0 -0
- /package/dist/types/{components/mc-select-plus → mc-select-plus}/hooks/useExpand.d.ts +0 -0
- /package/dist/types/{components/mc-select-plus → mc-select-plus}/hooks/useOptionHover.d.ts +0 -0
- /package/dist/types/{components/mc-select-plus → mc-select-plus}/hooks/useSearch.d.ts +0 -0
- /package/dist/types/{components/mc-select-plus → mc-select-plus}/hooks/useSelectAll.d.ts +0 -0
- /package/dist/types/{components/mc-select-plus → mc-select-plus}/hooks/useSelectDisable.d.ts +0 -0
- /package/dist/types/{components/mc-select-plus → mc-select-plus}/hooks/useSelectOptions.d.ts +0 -0
- /package/dist/types/{components/mc-select-plus → mc-select-plus}/hooks/useSelectWidthHeight.d.ts +0 -0
- /package/dist/types/{components/mc-select-plus → mc-select-plus}/types/common.d.ts +0 -0
- /package/dist/types/{components/mc-select-plus → mc-select-plus}/types/mc-select.d.ts +0 -0
- /package/dist/types/{components/mc-select-plus → mc-select-plus}/utils/index.d.ts +0 -0
- /package/dist/types/{components/mc-status → mc-status}/types.d.ts +0 -0
- /package/dist/types/{components/mc-step → mc-step}/types.d.ts +0 -0
- /package/dist/types/{components/mc-step-plus → mc-step-plus}/hooks/index.d.ts +0 -0
- /package/dist/types/{components/mc-step-plus → mc-step-plus}/utils/index.d.ts +0 -0
- /package/dist/types/{components/mc-step-v2 → mc-step-v2}/constant.d.ts +0 -0
- /package/dist/types/{components/mc-step-v2 → mc-step-v2}/types.d.ts +0 -0
- /package/dist/types/{components/mc-success-icon → mc-success-icon}/types.d.ts +0 -0
- /package/dist/types/{components/mc-switch → mc-switch}/types.d.ts +0 -0
- /package/dist/types/{components/mc-table → mc-table}/composables/usePagination.d.ts +0 -0
- /package/dist/types/{components/mc-table → mc-table}/composables/useTableCurrentRow.d.ts +0 -0
- /package/dist/types/{components/mc-table → mc-table}/composables/useTableScroll.d.ts +0 -0
- /package/dist/types/{components/mc-table → mc-table}/composables/useTableSelection.d.ts +0 -0
- /package/dist/types/{components/mc-table → mc-table}/composables/useTableSort.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/hooks/index.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/hooks/useExpand.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/hooks/usePagination.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/hooks/useScroll.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/hooks/useSectionWidth.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/hooks/useSort.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/types/mc-table-body.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/types/mc-table-cell.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/types/mc-table-pagination-item.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/types/mc-table-pagination.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/types/mc-table-row.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/types/mc-table-sort.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/utils/generateColumns.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/utils/getFlexAlign.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/utils/getNextSort.d.ts +0 -0
- /package/dist/types/{components/mc-table-plus → mc-table-plus}/utils/index.d.ts +0 -0
- /package/dist/types/{components/mc-textarea → mc-textarea}/types.d.ts +0 -0
- /package/dist/types/{components/mc-title → mc-title}/types.d.ts +0 -0
- /package/dist/types/{components/mc-toast → mc-toast}/toast.d.ts +0 -0
- /package/dist/types/{components/mc-toast → mc-toast}/types.d.ts +0 -0
- /package/dist/types/{components/mc-upload → mc-upload}/hooks/index.d.ts +0 -0
- /package/dist/types/{components/mc-upload → mc-upload}/hooks/useLang.d.ts +0 -0
- /package/dist/types/{components/mc-upload → mc-upload}/lang/en.d.ts +0 -0
- /package/dist/types/{components/mc-upload → mc-upload}/lang/index.d.ts +0 -0
- /package/dist/types/{components/mc-upload → mc-upload}/lang/zh.d.ts +0 -0
- /package/dist/types/{components/mc-upload → mc-upload}/types/common.d.ts +0 -0
- /package/dist/types/{components/mc-upload → mc-upload}/types/mc-upload-dropzone.d.ts +0 -0
- /package/dist/types/{components/mc-upload → mc-upload}/types/mc-upload.d.ts +0 -0
- /package/dist/types/{components/mc-upload → mc-upload}/utils.d.ts +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { _ as e, l } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { defineComponent as i, ref as s, createElementBlock as a, openBlock as t, normalizeClass as m, Fragment as c, renderList as o, createElementVNode as n, createCommentVNode as f, createVNode as d, toDisplayString as p, unref as u, createBlock as r } from "vue";
|
|
3
|
+
import { useResizeObserver as v } from "@mc-plus/hooks";
|
|
4
|
+
import { M as k } from "./mc-icon-DNEaXCT8.js";
|
|
5
|
+
import { M as y } from "./mc-divider-CpY6Y0z_.js";
|
|
6
|
+
import { M as b } from "./mc-progress-bar-bmMvvbxy.js";
|
|
7
|
+
import { u as g, g as C, f as _ } from "./mc-upload-DaFbq8XW.js";
|
|
8
|
+
const w = "mc-file-list", h = { class: "mc-file-list-item-content" }, M = { class: "mc-file-list-item-file mc-file-list-item-info" }, j = ["onClick"], B = { class: "mc-file-list-item-file-name-text" }, V = { class: "mc-file-list-item-file-desc" }, x = { class: "mc-file-list-item-file-size-text" }, z = { key: 0, class: "mc-file-list-item-file-progress-bar" }, T = { key: 1, class: "mc-file-list-item-file-error" }, D = { class: "mc-file-list-item-info" }, I = { class: "mc-file-list-item-label" }, L = { class: "mc-file-list-item-value" }, R = { class: "mc-file-list-item-info" }, $ = { class: "mc-file-list-item-label" }, q = { class: "mc-file-list-item-value" }, A = { class: "mc-file-list-item-actions" }, E = { class: "mc-file-list-item-compact-content" }, F = { class: "mc-file-list-item-info" }, G = { class: "mc-file-list-item-label" }, H = { class: "mc-file-list-item-value" }, J = { class: "mc-file-list-item-info" }, K = { class: "mc-file-list-item-label" }, N = { class: "mc-file-list-item-value" }, O = e(i({ name: w, __name: "mc-file-list", props: { modelValue: { default: () => [] }, theme: { default: "light" }, lang: { default: "en" }, downloadable: { type: Boolean, default: false }, allowCancel: { type: Boolean, default: false }, deletable: { type: Boolean, default: true } }, emits: ["update:modelValue", "change", "delete", "download", "preview", "cancel"], setup(e2, { emit: l2 }) {
|
|
9
|
+
const i2 = e2, w2 = l2, { langMap: O2 } = g(), P2 = s(false), Q = s();
|
|
10
|
+
v(Q, ({ width: e3 }) => {
|
|
11
|
+
P2.value = e3 <= 600;
|
|
12
|
+
});
|
|
13
|
+
const S = (e3) => {
|
|
14
|
+
w2("update:modelValue", i2.modelValue.filter((l3) => l3.name !== e3.name));
|
|
15
|
+
};
|
|
16
|
+
return (l3, i3) => (t(), a("ul", { class: m(["mc-file-list", [`mc-file-list-${e2.theme}`, { "mc-file-list-compact": P2.value }]]), ref_key: "fileListRef", ref: Q }, [(t(true), a(c, null, o(e2.modelValue, (l4) => (t(), a("li", { class: "mc-file-list-item", key: l4.name }, [n("div", h, [n("div", M, [n("div", { class: "mc-file-list-item-file-name", onClick: (e3) => ((e4) => {
|
|
17
|
+
w2("preview", e4);
|
|
18
|
+
})(l4) }, [d(k, { name: "Document" }), n("span", B, p(l4.name), 1)], 8, j), n("div", V, ["failed" !== l4.status ? (t(), a(c, { key: 0 }, [n("span", x, p(l4.size ? u(C)(l4.size) : "--"), 1), "loading" === l4.status ? (t(), a("div", z, [d(b, { percentage: l4.progress, "transition-duration": 1e3 }, null, 8, ["percentage"])])) : f("", true)], 64)) : (t(), a("span", T, p(l4.errorMessage || "failed to upload"), 1))])]), P2.value ? f("", true) : (t(), a(c, { key: 0 }, [n("div", D, [n("span", I, p(u(O2).uploaded_by), 1), n("span", L, p(l4.uploadBy || "--"), 1)]), n("div", R, [n("span", $, p(u(O2).uploaded_on), 1), n("span", q, p(u(_)(l4.uploadTime) || "--"), 1)])], 64)), n("div", A, ["loading" === l4.status ? (t(), a(c, { key: 0 }, [e2.allowCancel ? (t(), r(k, { key: 0, name: "Cross", class: "mc-file-list-item-icon", onClick: (e3) => ((e4) => {
|
|
19
|
+
w2("cancel", e4), S(e4);
|
|
20
|
+
})(l4) }, null, 8, ["onClick"])) : f("", true)], 64)) : (t(), a(c, { key: 1 }, [e2.downloadable ? (t(), r(k, { key: 0, name: "Download", class: "mc-file-list-item-icon", onClick: (e3) => ((e4) => {
|
|
21
|
+
w2("download", e4);
|
|
22
|
+
})(l4) }, null, 8, ["onClick"])) : f("", true), e2.deletable ? (t(), r(k, { key: 1, name: "Trash", class: "mc-file-list-item-icon", onClick: (e3) => ((e4) => {
|
|
23
|
+
w2("delete", e4), S(e4);
|
|
24
|
+
})(l4) }, null, 8, ["onClick"])) : f("", true)], 64))])]), P2.value ? (t(), a(c, { key: 0 }, [d(y), n("div", E, [n("div", F, [n("span", G, p(u(O2).uploaded_by), 1), n("span", H, p(l4.uploadBy || "--"), 1)]), n("div", J, [n("span", K, p(u(O2).uploaded_on), 1), n("span", N, p(u(_)(l4.uploadTime) || "--"), 1)])])], 64)) : f("", true)]))), 128))], 2));
|
|
25
|
+
} }), [["__scopeId", "data-v-bfa00e0d"]]), P = l(O);
|
|
26
|
+
export {
|
|
27
|
+
P as M,
|
|
28
|
+
O as _,
|
|
29
|
+
w as a
|
|
30
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { _ as t, l as o } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { defineComponent as e, ref as s, createElementBlock as r, openBlock as i, normalizeStyle as c, normalizeClass as d, createCommentVNode as a, createElementVNode as l, renderSlot as f } from "vue";
|
|
3
|
+
const p = "mc-footer", h = { key: 0, class: "mc-footer-content" }, m = { class: "mc-footer-bottom" }, n = { class: "mc-footer-bottom-content" }, v = { class: "mc-footer-left" }, w = { class: "mc-footer-right" }, g = { class: "mc-footer-right-button-group" }, u = t(e({ name: p, __name: "mc-footer", props: { width: {}, height: {}, wrapperWidth: {}, showborder: { type: Boolean, default: true } }, setup(t2, { expose: o2 }) {
|
|
4
|
+
const e2 = s();
|
|
5
|
+
return o2({ ref: e2 }), (o3, s2) => (i(), r("section", { class: d(["mc-footer", { "mc-footer-border": t2.showborder }]), style: c({ width: t2.width, height: t2.height }), ref_key: "_ref", ref: e2 }, [o3.$slots.desc ? (i(), r("div", h, [l("div", { class: "mc-footer-wrapper", style: c({ width: t2.wrapperWidth }) }, [f(o3.$slots, "desc", {}, void 0, true)], 4)])) : a("", true), l("div", m, [l("div", { class: "mc-footer-wrapper", style: c({ width: t2.wrapperWidth }) }, [l("div", n, [l("div", v, [f(o3.$slots, "left", {}, void 0, true)]), l("div", w, [f(o3.$slots, "right", {}, () => [l("div", g, [f(o3.$slots, "right-button-group", {}, void 0, true)])], true)])])], 4)])], 6));
|
|
6
|
+
} }), [["__scopeId", "data-v-4553dea7"]]), b = o(u);
|
|
7
|
+
export {
|
|
8
|
+
u as M,
|
|
9
|
+
b as a,
|
|
10
|
+
p as b
|
|
11
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { m as e, _ as a, l as r } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { onMounted as t, onBeforeUnmount as o, computed as l, defineComponent as i, reactive as s, toRefs as d, provide as m, createElementBlock as n, openBlock as c, createElementVNode as u, withModifiers as f, renderSlot as v, inject as p, watch as b } from "vue";
|
|
3
|
+
import { keys as I, first as x, filter as h, size as y, includes as V, each as D, isFunction as _ } from "lodash-es";
|
|
4
|
+
import { useId as j, useProp as w } from "@mc-plus/hooks";
|
|
5
|
+
import { F } from "./mc-form-item-NTzV5y7o.js";
|
|
6
|
+
const S = Symbol("mc-form-context"), E = "mc-form", B = { class: "mc-form" }, P = r(a(i({ name: E, __name: "mc-form", props: { model: {}, rules: { default: () => ({}) }, disabled: { type: Boolean }, direction: { default: "vertical" }, scrollToError: { type: Boolean, default: false } }, emits: ["validate"], setup(a2, { expose: r2, emit: t2 }) {
|
|
7
|
+
const o2 = a2, l2 = t2, i2 = [], p2 = (e2, a3) => y(a3) ? h(e2, (e3) => V(a3, e3.prop)) : e2, b2 = s({ ...d(o2), emits: l2, addField: (e2) => {
|
|
8
|
+
e2.prop && i2.push(e2);
|
|
9
|
+
}, removeField: (e2) => {
|
|
10
|
+
e2.prop && i2.splice(i2.indexOf(e2), 1);
|
|
11
|
+
} });
|
|
12
|
+
return m(S, b2), r2({ validate: async (a3 = [], r3) => {
|
|
13
|
+
try {
|
|
14
|
+
return await (async (e2 = [], a4) => {
|
|
15
|
+
const r4 = y(e2) ? h(i2, (a5) => V(e2, a5.prop)) : i2;
|
|
16
|
+
try {
|
|
17
|
+
const e3 = await (async (e4 = []) => {
|
|
18
|
+
let a5 = [];
|
|
19
|
+
for (const r5 of e4) try {
|
|
20
|
+
await r5.validate();
|
|
21
|
+
} catch (e5) {
|
|
22
|
+
a5.push(e5);
|
|
23
|
+
}
|
|
24
|
+
return !y(a5) || Promise.reject(a5);
|
|
25
|
+
})(r4);
|
|
26
|
+
return true === e3 && (a4 == null ? void 0 : a4(true)), e3;
|
|
27
|
+
} catch (e3) {
|
|
28
|
+
if (e3 instanceof Error) throw e3;
|
|
29
|
+
const r5 = e3;
|
|
30
|
+
return a4 == null ? void 0 : a4(false, r5), Promise.reject(r5);
|
|
31
|
+
}
|
|
32
|
+
})(a3, r3);
|
|
33
|
+
} catch (a4) {
|
|
34
|
+
return o2.scrollToError && (async (a5) => {
|
|
35
|
+
const r4 = I(x(a5))[0], t3 = p2(i2, [r4])[0].id, o3 = document.getElementById(t3);
|
|
36
|
+
o3 == null ? void 0 : o3.scrollIntoView({ block: "center", inline: "center", behavior: "smooth" }), await e(500), o3 == null ? void 0 : o3.focus();
|
|
37
|
+
})(a4), Promise.reject(a4);
|
|
38
|
+
}
|
|
39
|
+
}, resetFields: (e2 = []) => {
|
|
40
|
+
D(p2(i2, e2), (e3) => e3.resetField());
|
|
41
|
+
}, clearValidate: (e2 = []) => {
|
|
42
|
+
D(p2(i2, e2), (e3) => e3.clearValidate());
|
|
43
|
+
} }), (e2, a3) => (c(), n("div", B, [u("form", { onSubmit: a3[0] || (a3[0] = f(() => {
|
|
44
|
+
}, ["prevent"])) }, [v(e2.$slots, "default", {}, void 0, true)], 32)]));
|
|
45
|
+
} }), [["__scopeId", "data-v-446fb309"]])), g = ({ externalId: e2, externalDisabled: a2, disableValidation: r2 } = {}) => {
|
|
46
|
+
const i2 = w("disableValidation"), s2 = l(() => !!i2.value || !!(r2 == null ? void 0 : r2.value)), d2 = p(S, void 0), m2 = s2.value ? void 0 : p(F, void 0), n2 = m2 ? (({ formItem: e3, externalId: a3 }) => {
|
|
47
|
+
const r3 = j(a3 == null ? void 0 : a3.value);
|
|
48
|
+
return t(() => {
|
|
49
|
+
e3 && (e3.id = r3);
|
|
50
|
+
}), o(() => {
|
|
51
|
+
e3 && (e3.id = "");
|
|
52
|
+
}), r3;
|
|
53
|
+
})({ formItem: m2, externalId: e2 }) : void 0, c2 = (({ form: e3, formItem: a3, externalDisabled: r3 }) => {
|
|
54
|
+
const t2 = w("disabled");
|
|
55
|
+
return l(() => t2.value || !!(e3 == null ? void 0 : e3.disabled) || !!(a3 == null ? void 0 : a3.disabled) || !!(r3 == null ? void 0 : r3.value));
|
|
56
|
+
})({ form: d2, formItem: m2, externalDisabled: a2 });
|
|
57
|
+
return { form: d2, formItem: m2, formId: n2, formDisabled: c2 };
|
|
58
|
+
}, k = ({ externalId: e2, externalDisabled: a2, disableValidation: r2, validator: t2 } = {}) => {
|
|
59
|
+
const { form: o2, formItem: i2, formId: s2, formDisabled: d2 } = g({ externalId: e2, externalDisabled: a2, disableValidation: r2 }), m2 = i2 ? l(() => _(t2) && "error" === t2() ? "error" : (i2 == null ? void 0 : i2.validateStatus) || "init") : void 0, n2 = m2 ? l(() => `mc-form-validate-${m2.value}`) : "", c2 = !!m2 && l(() => "error" === m2.value), u2 = !!m2 && l(() => "success" === m2.value), f2 = w(["hideValidationIcon", "hide-validation-icon"]), v2 = !!m2 && l(() => !f2.value && (c2 && c2.value ? "Reject_02" : !(!u2 || !u2.value) && "Accept_02"));
|
|
60
|
+
if (i2) {
|
|
61
|
+
const e3 = w("modelValue");
|
|
62
|
+
b(() => e3.value, () => {
|
|
63
|
+
i2.validate("change");
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
return { form: o2, formItem: i2, formId: s2, formDisabled: d2, validateStatus: m2, validateStyle: n2, isError: c2, isSuccess: u2, statusIcon: v2 };
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
S as F,
|
|
70
|
+
P as M,
|
|
71
|
+
g as a,
|
|
72
|
+
E as b,
|
|
73
|
+
k as u
|
|
74
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { _ as e, l as r } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { defineComponent as t, inject as l, ref as o, computed as s, reactive as a, provide as i, onMounted as m, onUnmounted as d, createElementBlock as c, openBlock as u, normalizeClass as n, renderSlot as p, createElementVNode as v, createCommentVNode as f, toDisplayString as h, createVNode as g, createTextVNode as b, Transition as q, withCtx as _, nextTick as y } from "vue";
|
|
3
|
+
import { isNil as F, filter as $, map as j, includes as P, keys as k, size as x, some as z, get as S, set as w, cloneDeep as B, isArray as M } from "lodash-es";
|
|
4
|
+
import V from "async-validator";
|
|
5
|
+
import { _ as I } from "./mc-tooltip-BeldB7Zk.js";
|
|
6
|
+
import { F as A } from "./mc-form-OerjYAFL.js";
|
|
7
|
+
const C = Symbol("mc-form-item-context"), D = "mc-form-item", E = { class: "mc-form-item-label-wrapper" }, G = { key: 0, class: "mc-form-item-label" }, H = { key: 0, class: "mc-form-item-help" }, J = { key: 0, class: "mc-form-item-desc" }, K = { class: "mc-form-item__content" }, L = { key: 0, class: "mc-form-item__error" }, N = r(e(t({ name: D, __name: "mc-form-item", props: { prop: { default: "" }, label: {}, disabled: { type: Boolean, default: false }, required: { type: Boolean, default: false }, rules: {}, help: {}, desc: {} }, setup(e2, { expose: r2 }) {
|
|
8
|
+
const t2 = e2, D2 = l(A, void 0), N2 = o("init"), O = o(""), Q = (e3) => e3 && t2.prop && !F(S(e3, t2.prop)) ? S(e3, t2.prop) : null, R = s(() => {
|
|
9
|
+
const e3 = D2 == null ? void 0 : D2.model;
|
|
10
|
+
return Q(e3);
|
|
11
|
+
}), T = s(() => {
|
|
12
|
+
const e3 = [];
|
|
13
|
+
t2.required && e3.push({ required: true }), t2.rules && e3.push(...t2.rules);
|
|
14
|
+
const r3 = D2 == null ? void 0 : D2.rules;
|
|
15
|
+
if (r3 && t2.prop) {
|
|
16
|
+
const t3 = Q(r3);
|
|
17
|
+
t3 && e3.push(...t3);
|
|
18
|
+
}
|
|
19
|
+
const l2 = t2.required;
|
|
20
|
+
if (F(l2)) {
|
|
21
|
+
const r4 = $(j(e3, (e4, r5) => [e4, r5]), (e4) => P(k(e4[0]), "required"));
|
|
22
|
+
if (x(r4)) for (const t3 of r4) {
|
|
23
|
+
const [r5, o2] = t3;
|
|
24
|
+
r5.required !== l2 && (e3[o2] = { ...r5, required: l2 });
|
|
25
|
+
}
|
|
26
|
+
else e3.push({ required: l2 });
|
|
27
|
+
}
|
|
28
|
+
return e3;
|
|
29
|
+
}), U = s(() => x(T.value) > 0), W = s(() => z(T.value, "required") || t2.required), X = s(() => t2.disabled);
|
|
30
|
+
let Y = null, Z = false;
|
|
31
|
+
const ee = (e3, r3) => {
|
|
32
|
+
if (Z || !t2.prop || X.value) return Promise.resolve(true);
|
|
33
|
+
if (!U.value) return r3 == null ? void 0 : r3(true), Promise.resolve(true);
|
|
34
|
+
const l2 = ((e4) => {
|
|
35
|
+
const r4 = T.value;
|
|
36
|
+
return r4 ? $(r4, (r5) => !(!r5.trigger && e4 && "change" !== e4) && (!r5.trigger || !e4 || (M(r5.trigger) ? P(r5.trigger, e4) : r5.trigger === e4))).map(({ trigger: e5, ...r5 }) => r5) : [];
|
|
37
|
+
})(e3);
|
|
38
|
+
if (!x(l2)) return r3 == null ? void 0 : r3(true), Promise.resolve(true);
|
|
39
|
+
N2.value = "validating";
|
|
40
|
+
const o2 = ((e4) => {
|
|
41
|
+
const r4 = t2.prop;
|
|
42
|
+
return r4 ? new V({ [r4]: e4 }).validate({ [r4]: R.value }, { firstFields: true }).then(() => (N2.value = "success", D2 == null ? void 0 : D2.emits("validate", t2, true, ""), O.value = "", true)).catch((e5) => {
|
|
43
|
+
const { errors: r5 } = e5;
|
|
44
|
+
return N2.value = "error", O.value = r5 && x(r5) > 0 ? r5[0].message ?? "" : "", D2 == null ? void 0 : D2.emits("validate", t2, false, O.value), Promise.reject(e5);
|
|
45
|
+
}) : null;
|
|
46
|
+
})(l2);
|
|
47
|
+
return o2 ? o2.then(() => (r3 == null ? void 0 : r3(true), true)).catch((e4) => {
|
|
48
|
+
const { fields: t3 } = e4;
|
|
49
|
+
return r3 == null ? void 0 : r3(false, t3), Promise.reject(t3);
|
|
50
|
+
}) : Promise.reject(false);
|
|
51
|
+
}, re = () => {
|
|
52
|
+
const e3 = D2 == null ? void 0 : D2.model;
|
|
53
|
+
e3 && t2.prop && !F(S(e3, t2.prop)) && (Z = true, w(e3, t2.prop, B(Y))), y(() => {
|
|
54
|
+
te();
|
|
55
|
+
});
|
|
56
|
+
}, te = () => {
|
|
57
|
+
N2.value = "init", O.value = "", Z = false;
|
|
58
|
+
}, le = a({ id: o(""), prop: s(() => t2.prop ?? ""), validateStatus: s(() => N2.value), disabled: X, validate: ee, resetField: re, clearValidate: te }), oe = s(() => "horizontal" === (D2 == null ? void 0 : D2.direction));
|
|
59
|
+
return i(C, le), m(() => {
|
|
60
|
+
t2.prop && (D2 == null ? void 0 : D2.addField(le), Y = R.value);
|
|
61
|
+
}), d(() => {
|
|
62
|
+
t2.prop && (D2 == null ? void 0 : D2.removeField(le));
|
|
63
|
+
}), r2({ validateMessage: O, validateStatus: N2, validate: ee, resetField: re, clearValidate: te }), (r3, t3) => (u(), c("div", { class: n(["mc-form-item", { "mc-form-item-horizontal": oe.value }]) }, [p(r3.$slots, "label", { required: W.value }, () => [v("div", null, [v("div", E, [e2.label ? (u(), c("label", G, [v("span", { class: n(["mc-form-item-lable-text", { "mc-form-item-label-required": W.value }]) }, h(e2.label), 3), e2.help || r3.$slots.help ? (u(), c("div", H, [p(r3.$slots, "help", {}, () => [g(I, { content: e2.help, "icon-size": 20 }, null, 8, ["content"])], true)])) : f("", true)])) : f("", true), p(r3.$slots, "tool", {}, void 0, true)]), e2.desc || r3.$slots.desc ? (u(), c("div", J, [p(r3.$slots, "desc", {}, () => [b(h(e2.desc), 1)], true)])) : f("", true)])], true), v("div", K, [p(r3.$slots, "default", {}, void 0, true), g(q, { name: "mc-form-item-error" }, { default: _(() => [O.value ? (u(), c("div", L, h(O.value), 1)) : f("", true)]), _: 1 })])], 2));
|
|
64
|
+
} }), [["__scopeId", "data-v-7b5ddbdd"]]));
|
|
65
|
+
export {
|
|
66
|
+
C as F,
|
|
67
|
+
N as M,
|
|
68
|
+
D as a
|
|
69
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { _ as e, l as o } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { defineComponent as c, ref as s, createElementBlock as i, openBlock as n, normalizeStyle as t, createElementVNode as a, normalizeClass as m } from "vue";
|
|
3
|
+
const r = "mc-icon", l = e(c({ name: r, __name: "mc-icon", props: { name: {}, size: { default: 24 }, color: {} }, emits: ["click"], setup(e2, { expose: o2, emit: c2 }) {
|
|
4
|
+
const r2 = c2, l2 = s();
|
|
5
|
+
return o2({ ref: l2 }), (o3, c3) => (n(), i("span", { class: "mc-icon", style: t({ fontSize: `${e2.size}px`, width: `${e2.size}px`, height: `${e2.size}px`, color: e2.color }) }, [a("i", { ref_key: "_ref", ref: l2, class: m(["mc-iconfont", `mc-icon--${e2.name}`]), onClick: c3[0] || (c3[0] = (e3) => ((e4) => {
|
|
6
|
+
r2("click", e4);
|
|
7
|
+
})(e3)) }, null, 2)], 4));
|
|
8
|
+
} }), [["__scopeId", "data-v-24abf3b0"]]), p = o(l);
|
|
9
|
+
export {
|
|
10
|
+
l as M,
|
|
11
|
+
p as a,
|
|
12
|
+
r as b
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { _ as s, l as o } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { defineComponent as e, computed as c, createElementBlock as i, openBlock as t, normalizeStyle as l, createElementVNode as a, normalizeClass as u } from "vue";
|
|
3
|
+
import { useWidthHeight as m } from "@mc-plus/hooks";
|
|
4
|
+
const r = "mc-icon-plus", n = s(e({ name: r, __name: "mc-icon-plus", props: { name: {}, size: { default: 24 }, width: {}, height: {}, color: {}, cursor: { default: "default" } }, emits: ["click"], setup(s2, { emit: o2 }) {
|
|
5
|
+
const e2 = s2, r2 = o2, { width: n2, height: p2 } = m(), h = c(() => e2.width ? n2.value : `${e2.size}px`), d = c(() => e2.height ? p2.value : `${e2.size}px`), f = () => {
|
|
6
|
+
r2("click", e2.name);
|
|
7
|
+
};
|
|
8
|
+
return (o3, e3) => (t(), i("span", { class: "mc-icon-plus", style: l({ fontSize: `${s2.size}px`, width: h.value, height: d.value, color: s2.color, cursor: s2.cursor }), onClick: f }, [a("i", { class: u(["mc-iconfont-plus", `mc-icon-plus-${s2.name}`]) }, null, 2)], 4));
|
|
9
|
+
} }), [["__scopeId", "data-v-779c77bf"]]), p = o(n);
|
|
10
|
+
export {
|
|
11
|
+
n as M,
|
|
12
|
+
p as a,
|
|
13
|
+
r as b
|
|
14
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { _ as e, l as t } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { ref as a, defineComponent as l, computed as n, onMounted as u, watch as o, createElementBlock as s, openBlock as r, normalizeStyle as i, normalizeClass as c, unref as p, createCommentVNode as d, createElementVNode as f, renderSlot as m, createBlock as v, withKeys as y, createVNode as g, Fragment as x, nextTick as h } from "vue";
|
|
3
|
+
import { includes as b, endsWith as _, startsWith as w, toString as I, isNil as k, isFunction as $ } from "lodash-es";
|
|
4
|
+
import { useFocus as V, useHover as B } from "@mc-plus/hooks";
|
|
5
|
+
import { M as S } from "./mc-icon-DNEaXCT8.js";
|
|
6
|
+
import { u as A } from "./mc-form-OerjYAFL.js";
|
|
7
|
+
import { u as C } from "./mc-input-group-CDGApZJq.js";
|
|
8
|
+
const R = "mc-input", j = { key: 0, class: "mc-input__prefix" }, z = ["id", "type", "disabled", "readonly", "autocomplete", "placeholder", "autofocus", "maxlength"], F = { key: 2, class: "mc-input__password" }, T = { key: 0, class: "mc-input__suffix" }, D = { key: 4, class: "mc-input-append" }, H = { class: "mc-input-append-text" }, P = t(e(l({ name: R, __name: "mc-input", props: { modelValue: {}, width: {}, height: {}, id: {}, type: { default: "text" }, disabled: { type: Boolean, default: false }, clearable: { type: Boolean, default: false }, placeholder: { default: "Please enter" }, readonly: { type: Boolean, default: false }, autocomplete: { default: "off" }, autofocus: { type: Boolean, default: false }, prefixIcon: {}, suffixIcon: {}, maxlength: {}, currencyAccuracy: {}, inputGroupPosition: {}, disableValidation: { type: Boolean, default: false }, hideValidationIcon: { type: Boolean, default: false }, textAlign: { default: "left" }, formatter: {}, parser: {} }, emits: ["update:modelValue", "input", "change", "focus", "blur", "paste", "clear", "delete"], setup(e2, { expose: t2, emit: l2 }) {
|
|
9
|
+
const R2 = e2, { formatter: P2, parser: E } = R2, G = l2, M = a(), q = n(() => k(R2.modelValue) ? "" : I(R2.modelValue)), K = (e3) => ("number" === R2.type ? e3 = ((e4) => e4.replace(/[^\d]/g, ""))(e3) : "currency" === R2.type && (e3 = ((e4, t3 = 8) => {
|
|
10
|
+
e4 = e4.replace(/(?:[^0-9.]+)/g, "");
|
|
11
|
+
const [a2, ...l3] = e4.split(".");
|
|
12
|
+
if (l3.length) {
|
|
13
|
+
const e5 = l3.join("");
|
|
14
|
+
return 0 === t3 ? a2 : `${a2}.${e5.substring(0, t3)}`;
|
|
15
|
+
}
|
|
16
|
+
return a2;
|
|
17
|
+
})(e3, R2.currencyAccuracy)), $(E) && (e3 = E(e3)), e3), O = () => {
|
|
18
|
+
const e3 = M.value, t3 = (a2 = q.value, "number" === R2.type ? a2 = ((e4) => e4.replace(/[^\d]/g, ""))(a2) : "currency" === R2.type && (a2 = ((e4) => {
|
|
19
|
+
e4 = e4.toString();
|
|
20
|
+
const [t4, a3] = e4.toString().split("."), l3 = t4.replace(/(\d)(?=(\d{3})+$)/g, "$1,");
|
|
21
|
+
return b(e4, ".") ? `${l3}.${a3}` : l3;
|
|
22
|
+
})(a2)), $(P2) && (a2 = P2(a2)), a2);
|
|
23
|
+
var a2;
|
|
24
|
+
e3 && e3.value !== t3 && (e3.value = t3);
|
|
25
|
+
};
|
|
26
|
+
u(() => {
|
|
27
|
+
O();
|
|
28
|
+
});
|
|
29
|
+
const J = a(false), L = n(() => "password" === R2.type), { formItem: N, formId: Q, formDisabled: U, validateStyle: W, statusIcon: X } = A({ externalDisabled: n(() => !!(le == null ? void 0 : le.inputGroupDisabled.value)) }), { wrapperRef: Y, isFocused: Z, handleFocus: ee, handleBlur: te } = V(M, { afterBlur() {
|
|
30
|
+
N == null ? void 0 : N.validate("blur");
|
|
31
|
+
} }), { isHovering: ae } = B(Y), le = C({ validateStatus: n(() => (N == null ? void 0 : N.validateStatus) || "init"), isFocused: Z, isHovering: ae }), ne = () => {
|
|
32
|
+
G("delete");
|
|
33
|
+
}, ue = (e3) => {
|
|
34
|
+
G("paste", e3);
|
|
35
|
+
};
|
|
36
|
+
o(() => R2.currencyAccuracy, () => {
|
|
37
|
+
G("update:modelValue", K(q.value));
|
|
38
|
+
});
|
|
39
|
+
const { recordCursor: oe, setCursor: se } = function(e3) {
|
|
40
|
+
const t3 = a();
|
|
41
|
+
return { recordCursor: () => {
|
|
42
|
+
if (!e3.value) return;
|
|
43
|
+
const { selectionStart: a2, selectionEnd: l3, value: n2 } = e3.value;
|
|
44
|
+
if (!a2 || !l3) return;
|
|
45
|
+
const u2 = n2.slice(0, a2), o2 = n2.slice(l3);
|
|
46
|
+
t3.value = { selectionStart: a2, selectionEnd: l3, value: n2, beforeTxt: u2, afterTxt: o2 };
|
|
47
|
+
}, setCursor: () => {
|
|
48
|
+
if (!e3.value || !t3.value) return;
|
|
49
|
+
const { value: a2 } = e3.value, { beforeTxt: l3, afterTxt: n2, selectionStart: u2 } = t3.value;
|
|
50
|
+
if (!l3 || !n2 || !u2) return;
|
|
51
|
+
let o2 = a2.length;
|
|
52
|
+
if (_(a2, n2)) o2 = a2.length - n2.length;
|
|
53
|
+
else if (w(a2, l3)) o2 = l3.length;
|
|
54
|
+
else {
|
|
55
|
+
const e4 = l3[u2 - 1], t4 = a2.indexOf(e4, u2 - 1);
|
|
56
|
+
-1 !== t4 && (o2 = t4 + 1);
|
|
57
|
+
}
|
|
58
|
+
e3.value.setSelectionRange(o2, o2);
|
|
59
|
+
} };
|
|
60
|
+
}(M), re = async (e3) => {
|
|
61
|
+
const { value: t3 } = e3.target;
|
|
62
|
+
oe(), G("update:modelValue", K(t3)), G("input", K(t3)), await h(), O(), se(), N == null ? void 0 : N.validate("input");
|
|
63
|
+
}, ie = (e3) => {
|
|
64
|
+
const { value: t3 } = e3.target;
|
|
65
|
+
G("change", K(t3));
|
|
66
|
+
}, ce = () => {
|
|
67
|
+
U.value || (J.value = !J.value);
|
|
68
|
+
};
|
|
69
|
+
return o(() => U.value, (e3) => {
|
|
70
|
+
e3 && (J.value = false);
|
|
71
|
+
}), o(q, () => {
|
|
72
|
+
O();
|
|
73
|
+
}), t2({ ref: M, focus: async () => {
|
|
74
|
+
var _a;
|
|
75
|
+
await h(), (_a = M.value) == null ? void 0 : _a.focus();
|
|
76
|
+
}, blur: async () => {
|
|
77
|
+
var _a;
|
|
78
|
+
(_a = M.value) == null ? void 0 : _a.blur();
|
|
79
|
+
}, select: () => {
|
|
80
|
+
var _a;
|
|
81
|
+
(_a = M.value) == null ? void 0 : _a.select();
|
|
82
|
+
}, clear: () => {
|
|
83
|
+
G("update:modelValue", ""), G("input", ""), G("change", ""), G("clear"), N == null ? void 0 : N.clearValidate();
|
|
84
|
+
} }), (t3, a2) => (r(), s("div", { class: c(["mc-input", { "mc-input--disabled": p(U), "mc-input--focused": p(Z), "mc-input--inputed": e2.modelValue, "mc-input-hovering": p(ae), [p(W)]: p(W) }]), style: i({ width: e2.width, height: e2.height }), ref_key: "wrapperRef", ref: Y }, [t3.$slots.prefix || e2.prefixIcon ? (r(), s("div", j, [m(t3.$slots, "prefix", {}, () => [e2.prefixIcon ? (r(), v(S, { key: 0, class: "mc-input-icon", name: e2.prefixIcon, size: 24 }, null, 8, ["name"])) : d("", true)], true)])) : d("", true), f("input", { class: "mc-input__inner", style: i({ textAlign: e2.textAlign }), ref_key: "inputRef", ref: M, id: p(Q), type: L.value ? J.value ? "text" : "password" : "text", disabled: p(U), readonly: e2.readonly, autocomplete: e2.autocomplete, placeholder: e2.placeholder, autofocus: e2.autofocus, maxlength: e2.maxlength, onInput: re, onChange: ie, onFocus: a2[0] || (a2[0] = (...e3) => p(ee) && p(ee)(...e3)), onBlur: a2[1] || (a2[1] = (...e3) => p(te) && p(te)(...e3)), onKeydown: y(ne, ["delete"]), onPaste: ue }, null, 44, z), p(X) ? (r(), s("div", { key: 1, class: c(["mc-input__status", p(W)]) }, [g(S, { name: p(X), size: 24 }, null, 8, ["name"])], 2)) : d("", true), "password" === e2.type ? (r(), s("div", F, [g(S, { class: "mc-input-icon", name: J.value ? "Review-Hidden" : "Review", size: 24, onClick: ce }, null, 8, ["name"])])) : (r(), s(x, { key: 3 }, [t3.$slots.suffix || e2.suffixIcon ? (r(), s("div", T, [m(t3.$slots, "suffix", {}, () => [e2.suffixIcon ? (r(), v(S, { key: 0, name: e2.suffixIcon, size: 24 }, null, 8, ["name"])) : d("", true)], true)])) : d("", true)], 64)), t3.$slots.append ? (r(), s("div", D, [f("div", H, [m(t3.$slots, "append", {}, void 0, true)])])) : d("", true)], 6));
|
|
85
|
+
} }), [["__scopeId", "data-v-fb2298c1"]]));
|
|
86
|
+
export {
|
|
87
|
+
P as M,
|
|
88
|
+
R as a
|
|
89
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ref as e, computed as u, inject as t, watch as i, defineComponent as p, provide as r, createElementBlock as s, openBlock as o, normalizeClass as a, unref as d, createElementVNode as n, createCommentVNode as l, normalizeStyle as f, renderSlot as c } from "vue";
|
|
2
|
+
import { useProp as v } from "@mc-plus/hooks";
|
|
3
|
+
import { _ as x, l as m } from "./utils-Bxl3PXzk.js";
|
|
4
|
+
import { a as I } from "./mc-form-OerjYAFL.js";
|
|
5
|
+
const g = Symbol("mc-input-group-context"), G = "mc-input-group", A = (e2) => {
|
|
6
|
+
const p2 = t(g, void 0);
|
|
7
|
+
if (!p2) return;
|
|
8
|
+
const r2 = u(() => p2.disabled.value), s2 = v("inputGroupPosition");
|
|
9
|
+
if (!s2 || !s2.value) return;
|
|
10
|
+
const { validateStatus: o2, isExpanded: a2, isFocused: d2, isHovering: n2 } = e2;
|
|
11
|
+
return o2 && i(o2, (e3) => {
|
|
12
|
+
p2.setInputGroupValidate(e3);
|
|
13
|
+
}), a2 && i(a2, (e3) => {
|
|
14
|
+
p2.setInputGroupExpanded(e3);
|
|
15
|
+
}), i([d2, n2], ([e3, u2]) => {
|
|
16
|
+
e3 || u2 ? p2.setInputGroupActived(true, s2.value) : p2.setInputGroupActived(false, s2.value);
|
|
17
|
+
}), { inputGroupDisabled: r2 };
|
|
18
|
+
}, E = ["id"], b = { key: 0, class: "mc-input-group-divider" }, y = m(x(p({ name: G, __name: "mc-input-group", props: { disabled: { type: Boolean, default: false }, suffixFlex: { default: 1 }, prefixFlex: { default: 1 } }, setup(t2) {
|
|
19
|
+
const { isError: i2, isExpanded: p2, isPrefixActived: v2, isSuffixActived: x2, setInputGroupValidate: m2, setInputGroupExpanded: G2, setInputGroupActived: A2 } = (() => {
|
|
20
|
+
const t3 = e("init"), i3 = u(() => "error" === t3.value), p3 = e(false), r2 = e(false), s2 = e(false);
|
|
21
|
+
return { validateStatus: t3, isError: i3, isExpanded: p3, isPrefixActived: r2, isSuffixActived: s2, setInputGroupValidate: (e2) => {
|
|
22
|
+
t3.value = e2;
|
|
23
|
+
}, setInputGroupExpanded: (e2) => {
|
|
24
|
+
p3.value = e2;
|
|
25
|
+
}, setInputGroupActived: (e2, u2) => {
|
|
26
|
+
"prefix" === u2 ? r2.value = e2 : s2.value = e2;
|
|
27
|
+
} };
|
|
28
|
+
})(), { formId: y2, formDisabled: F } = I(), S = u(() => !v2.value && !x2.value && !p2.value || F.value);
|
|
29
|
+
return r(g, { disabled: F, setInputGroupExpanded: G2, setInputGroupValidate: m2, setInputGroupActived: A2 }), (e2, u2) => (o(), s("div", { id: d(y2), class: a(["mc-input-group", { "mc-input-group-disabled": d(F) }]) }, [n("div", { class: a(["mc-input-group-prefix", { "mc-input-group-prefix-expanded": d(p2), "mc-input-group-prefix-actived": d(v2), "mc-input-group-prefix-error": d(i2) }]), style: f({ flex: t2.prefixFlex }) }, [c(e2.$slots, "prefix", {}, void 0, true)], 6), S.value ? (o(), s("div", b)) : l("", true), n("div", { class: a(["mc-input-group-suffix", { "mc-input-group-suffix-expanded": d(p2), "mc-input-group-suffix-actived": d(x2), "mc-input-group-suffix-error": d(i2) }]), style: f({ flex: t2.suffixFlex }) }, [c(e2.$slots, "suffix", {}, void 0, true)], 6)], 10, E));
|
|
30
|
+
} }), [["__scopeId", "data-v-a61c5f3e"]]));
|
|
31
|
+
export {
|
|
32
|
+
g as I,
|
|
33
|
+
y as M,
|
|
34
|
+
G as a,
|
|
35
|
+
A as u
|
|
36
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { _ as e, l as o } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { defineComponent as t, ref as l, watch as a, nextTick as i, createElementBlock as s, createCommentVNode as r, openBlock as d, createBlock as m, Teleport as f, createVNode as u, Transition as n, withCtx as c, normalizeClass as h, createElementVNode as p, renderSlot as v, normalizeStyle as g } from "vue";
|
|
3
|
+
import { useWindowResize as b, useResizeObserver as x } from "@mc-plus/hooks";
|
|
4
|
+
import { _ as y } from "./mc-overlay-BKPcvOBP.js";
|
|
5
|
+
import { _ } from "./mc-modal-header-D_Ft0Os1.js";
|
|
6
|
+
import { M as k } from "./mc-footer-B5NDA_C4.js";
|
|
7
|
+
const w = "mc-lightbox", $ = { key: 0, class: "mc-lightbox-container" }, B = { class: "mc-lightbox-header" }, H = { key: 0, class: "mc-lightbox-bottom-padding" }, C = o(e(t({ name: w, __name: "mc-lightbox", props: { modelValue: { type: Boolean, default: false }, title: {}, size: { default: "medium" }, maskClosable: { type: Boolean, default: true }, fixed: { type: Boolean, default: true }, portCssSelector: { default: "body" }, hideFooter: { type: Boolean, default: false }, showBorder: { type: Boolean, default: false }, minHeight: { default: void 0 } }, emits: ["update:modelValue", "open", "close"], setup(e2, { expose: o2, emit: t2 }) {
|
|
8
|
+
const w2 = e2, C2 = t2, V = l(), j = l(), R = l(), z = l(), F = l(false), M = l(false), S = l(false), I = () => {
|
|
9
|
+
w2.maskClosable && D();
|
|
10
|
+
}, q = () => {
|
|
11
|
+
D();
|
|
12
|
+
}, A = async (e3 = true) => {
|
|
13
|
+
F.value = true, M.value = true, await i(), S.value = true, e3 && (C2("open"), C2("update:modelValue", true));
|
|
14
|
+
}, D = async (e3 = true) => {
|
|
15
|
+
S.value = false, await i(), M.value = false, await i(), F.value = false, e3 && (C2("close"), C2("update:modelValue", false));
|
|
16
|
+
};
|
|
17
|
+
a(() => w2.modelValue, (e3, o3) => {
|
|
18
|
+
!o3 && e3 ? A(false) : o3 && !e3 && D(false);
|
|
19
|
+
}, { immediate: true });
|
|
20
|
+
const E = () => {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
if (!R.value) return;
|
|
23
|
+
const e3 = ((_a = j.value) == null ? void 0 : _a.offsetHeight) ?? 0, o3 = 0.7 * window.innerHeight - 84 - e3, t3 = ((_b = z.value) == null ? void 0 : _b.offsetHeight) ?? 40;
|
|
24
|
+
R.value.style.height = `${t3 > o3 ? o3 : t3}px`;
|
|
25
|
+
};
|
|
26
|
+
return b(() => {
|
|
27
|
+
E();
|
|
28
|
+
}), x(j, async ({ height: e3 }) => {
|
|
29
|
+
const o3 = V.value;
|
|
30
|
+
o3 && (o3.style.paddingBottom = `${e3}px`, await i(), E());
|
|
31
|
+
}), x(z, () => {
|
|
32
|
+
E();
|
|
33
|
+
}), o2({ ref: V, open: A, close: D }), (o3, t3) => F.value ? (d(), s("div", $, [(d(), m(f, { to: e2.portCssSelector }, [u(n, { name: "mc-lightbox-overlay" }, { default: c(() => [u(y, { visible: M.value, fixed: e2.fixed, onClick: I }, { default: c(() => [u(n, { name: "mc-lightbox-content" }, { default: c(() => [S.value ? (d(), s("div", { key: 0, class: h(["mc-lightbox", [`mc-lightbox-${e2.size}`]]), ref_key: "lightboxRef", ref: V }, [p("div", B, [v(o3.$slots, "header", {}, () => [u(_, { title: e2.title, "show-border": e2.showBorder, onClose: q }, { default: c(() => [v(o3.$slots, "header-title", {}, void 0, true)]), _: 3 }, 8, ["title", "show-border"])], true)]), p("div", { class: "mc-lightbox-content-wrapper", ref_key: "wrapperRef", ref: R }, [p("div", { class: "mc-lightbox-content", style: g({ minHeight: e2.minHeight ? `${e2.minHeight}px` : void 0 }), ref_key: "contentRef", ref: z }, [v(o3.$slots, "default", {}, void 0, true)], 4)], 512), p("div", { class: "mc-lightbox-footer", ref_key: "footerRef", ref: j }, [e2.hideFooter ? (d(), s("div", H)) : v(o3.$slots, "footer", { key: 1 }, () => [u(k, null, { left: c(() => [v(o3.$slots, "footer-left", {}, void 0, true)]), right: c(() => [v(o3.$slots, "footer-right", {}, void 0, true)]), "right-button-group": c(() => [v(o3.$slots, "footer-right-button-group", {}, void 0, true)]), desc: c(() => [v(o3.$slots, "footer-desc", {}, void 0, true)]), _: 3 })], true)], 512)], 2)) : r("", true)]), _: 3 })]), _: 3 }, 8, ["visible", "fixed"])]), _: 3 })], 8, ["to"]))])) : r("", true);
|
|
34
|
+
} }), [["__scopeId", "data-v-0a4bb412"]]));
|
|
35
|
+
export {
|
|
36
|
+
C as M,
|
|
37
|
+
w as a
|
|
38
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { _ as l, l as s } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { defineComponent as a, computed as i, createElementBlock as e, openBlock as o, normalizeClass as n, createCommentVNode as d, renderSlot as t, createElementVNode as m, createVNode as c, toDisplayString as p } from "vue";
|
|
3
|
+
import { M as u } from "./mc-icon-DNEaXCT8.js";
|
|
4
|
+
const g = "mc-loading", r = { key: 0, class: "mc-loading-pulse" }, f = { key: 1, class: "mc-loading-spin" }, v = { class: "mc-loading-text" }, y = l(a({ name: g, __name: "mc-loading", props: { loading: { type: Boolean }, loadingText: {}, size: { default: "medium" }, type: { default: "spin" } }, setup(l2) {
|
|
5
|
+
const s2 = l2, a2 = i(() => "small" === s2.size ? 24 : "medium" === s2.size ? 32 : 64);
|
|
6
|
+
return (s3, i2) => (o(), e("div", { class: n(["mc-loading", [`mc-loading-${l2.size}`, { "mc-loading-active": l2.loading }]]) }, ["pulse" === l2.type ? (o(), e("div", r, [...i2[0] || (i2[0] = [m("i", { class: "mc-loading-pulse-dot" }, null, -1), m("i", { class: "mc-loading-pulse-dot" }, null, -1), m("i", { class: "mc-loading-pulse-dot" }, null, -1), m("i", { class: "mc-loading-pulse-dot" }, null, -1)])])) : "spin" === l2.type ? (o(), e("div", f, [c(u, { name: "Loading_Line", size: a2.value }, null, 8, ["size"])])) : d("", true), l2.loadingText || s3.$slots.default ? t(s3.$slots, "default", { key: 2 }, () => [m("p", v, p(l2.loadingText), 1)], true) : d("", true)], 2));
|
|
7
|
+
} }), [["__scopeId", "data-v-9130fb96"]]), z = s(y);
|
|
8
|
+
export {
|
|
9
|
+
y as M,
|
|
10
|
+
z as a,
|
|
11
|
+
g as b
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { _ as e, l as o } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { defineComponent as s, createElementBlock as t, openBlock as a, createVNode as l, withCtx as r, renderSlot as m } from "vue";
|
|
3
|
+
import { M as d } from "./mc-icon-DNEaXCT8.js";
|
|
4
|
+
import { _ as c } from "./mc-title-Dm-Uzqcw.js";
|
|
5
|
+
const i = "mc-modal-header", h = { class: "mc-modal-header" }, n = e(s({ name: i, __name: "mc-modal-header", props: { title: {}, showBorder: { type: Boolean, default: true }, showClose: { type: Boolean, default: true } }, emits: ["close"], setup(e2, { emit: o2 }) {
|
|
6
|
+
const s2 = o2;
|
|
7
|
+
return (o3, i2) => (a(), t("div", h, [l(c, { title: e2.title, "show-border": e2.showBorder, height: "100%", class: "mc-modal-header-title" }, { "tool-bar": r(() => [l(d, { name: "Cross", size: 24, class: "mc-modal-header-close-icon", onClick: i2[0] || (i2[0] = (e3) => s2("close")) })]), default: r(() => [m(o3.$slots, "default", {}, void 0, true)]), _: 3 }, 8, ["title", "show-border"])]));
|
|
8
|
+
} }), [["__scopeId", "data-v-4f75e89c"]]), p = o(n);
|
|
9
|
+
export {
|
|
10
|
+
p as M,
|
|
11
|
+
n as _,
|
|
12
|
+
i as a
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { _ as l, l as a } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { defineComponent as e, createElementBlock as s, openBlock as t, normalizeClass as m, createVNode as o, createElementVNode as i, toDisplayString as d, Fragment as c, renderList as r, createBlock as u } from "vue";
|
|
3
|
+
import { M as b } from "./mc-icon-plus-CmTBSYSx.js";
|
|
4
|
+
import { _ as n } from "./mc-removable-tag-BnTEvVRv.js";
|
|
5
|
+
const p = "mc-multi-tag", g = { class: "mc-multi-tag-label" }, v = { class: "mc-multi-tag-option-list" }, f = a(l(e({ name: p, __name: "mc-multi-tag", props: { label: {}, tags: { default: () => [] }, disabled: { type: Boolean, default: false } }, emits: ["remove:all", "remove:tag"], setup(l2, { emit: a2 }) {
|
|
6
|
+
const e2 = l2, p2 = a2, f2 = (l3) => {
|
|
7
|
+
e2.disabled || p2("remove:tag", l3, e2.label);
|
|
8
|
+
}, _ = () => {
|
|
9
|
+
e2.disabled || p2("remove:all", e2.label);
|
|
10
|
+
};
|
|
11
|
+
return (a3, e3) => (t(), s("li", { class: m(["mc-multi-tag", { "mc-multi-tag-disabled": l2.disabled }]) }, [o(b, { class: "mc-multi-tag-close-all-icon", name: "cross", cursor: l2.disabled ? "not-allowed" : "pointer", onClick: _ }, null, 8, ["cursor"]), e3[0] || (e3[0] = i("i", { class: "mc-multi-tag-divider" }, null, -1)), i("span", g, d(`${l2.label} :`), 1), i("ul", v, [(t(true), s(c, null, r(l2.tags, (a4) => (t(), u(n, { key: a4, label: a4, disabled: l2.disabled, onRemove: f2 }, null, 8, ["label", "disabled"]))), 128))])], 2));
|
|
12
|
+
} }), [["__scopeId", "data-v-3dae2bba"]]));
|
|
13
|
+
export {
|
|
14
|
+
f as M,
|
|
15
|
+
p as a
|
|
16
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { _ as e, l as t } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { ref as o, nextTick as a, defineComponent as l, reactive as n, computed as s, onMounted as u, watch as c, watchEffect as r, createElementBlock as i, openBlock as p, normalizeClass as d, unref as m, createElementVNode as v, createBlock as f, createCommentVNode as h, Fragment as g, renderList as y, withDirectives as b, withModifiers as V, withKeys as I, vModelText as x } from "vue";
|
|
3
|
+
import { isNil as w, isEmpty as F } from "lodash-es";
|
|
4
|
+
import { M as k } from "./mc-icon-DNEaXCT8.js";
|
|
5
|
+
import { useClickOutside as _, useProp as j } from "@mc-plus/hooks";
|
|
6
|
+
import { u as D } from "./mc-form-OerjYAFL.js";
|
|
7
|
+
const M = "mc-otp", C = ["id"], K = { class: "mc-otp-input-list" }, U = ["onClick"], z = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown"], A = t(e(l({ name: M, __name: "mc-otp", props: { modelValue: {}, disabled: { type: Boolean, default: false }, length: { default: 6 } }, emits: ["update:modelValue", "change"], setup(e2, { emit: t2 }) {
|
|
8
|
+
const l2 = e2, M2 = t2, A2 = o([]), B = n(new Array(l2.length)), { focusIndex: E, setFocus: P, nextFocus: S, prevFocus: q } = ((e3) => {
|
|
9
|
+
const t3 = o(), l3 = (e4) => {
|
|
10
|
+
t3.value = e4;
|
|
11
|
+
};
|
|
12
|
+
_(e3, () => {
|
|
13
|
+
w(t3.value) || (H == null ? void 0 : H.validate("blur")), l3(void 0);
|
|
14
|
+
});
|
|
15
|
+
const n2 = j("length"), s2 = (o2) => {
|
|
16
|
+
var _a;
|
|
17
|
+
const a2 = n2.value ?? 0;
|
|
18
|
+
o2 < 0 && (o2 = 0), o2 > a2 - 1 && (o2 = a2 - 1), t3.value = o2;
|
|
19
|
+
const l4 = e3.value[o2], s3 = (_a = l4 == null ? void 0 : l4.children) == null ? void 0 : _a[0];
|
|
20
|
+
s3 == null ? void 0 : s3.focus();
|
|
21
|
+
}, u2 = j("modelValue");
|
|
22
|
+
return { focusIndex: t3, setFocusIndex: l3, setFocus: s2, nextFocus: () => {
|
|
23
|
+
a(() => {
|
|
24
|
+
var _a;
|
|
25
|
+
const e4 = ((_a = u2.value) == null ? void 0 : _a.length) ?? 0;
|
|
26
|
+
e4 < (n2.value ?? 0) && s2(e4);
|
|
27
|
+
});
|
|
28
|
+
}, prevFocus: () => {
|
|
29
|
+
a(() => {
|
|
30
|
+
var _a;
|
|
31
|
+
const e4 = ((_a = u2.value) == null ? void 0 : _a.length) ?? 0;
|
|
32
|
+
e4 - 1 >= 0 && s2(e4 - 1);
|
|
33
|
+
});
|
|
34
|
+
} };
|
|
35
|
+
})(A2), { formId: G, formItem: H, formDisabled: J, validateStyle: L, statusIcon: N } = D({ externalDisabled: s(() => l2.disabled) }), O = (e3) => {
|
|
36
|
+
for (let t3 = 0; t3 < l2.length; t3++) B[t3] = (e3 == null ? void 0 : e3[t3]) || "";
|
|
37
|
+
};
|
|
38
|
+
u(() => {
|
|
39
|
+
O(l2.modelValue);
|
|
40
|
+
}), c(() => l2.modelValue, (e3) => {
|
|
41
|
+
O(e3);
|
|
42
|
+
});
|
|
43
|
+
const Q = async () => {
|
|
44
|
+
M2("change", B.join("")), M2("update:modelValue", B.join("")), await a(), H == null ? void 0 : H.validate("input");
|
|
45
|
+
};
|
|
46
|
+
return r(() => {
|
|
47
|
+
var _a;
|
|
48
|
+
if ((((_a = l2.modelValue) == null ? void 0 : _a.length) ?? 0) > l2.length) throw new Error("modelValue length is greater than length.");
|
|
49
|
+
}), (e3, t3) => (p(), i("div", { id: m(G), class: d(["mc-otp", { "mc-otp-disabled": m(J), [m(L)]: m(L) }]) }, [v("ul", K, [(p(true), i(g, null, y(l2.length, (e4) => (p(), i("li", { key: e4, class: d(["mc-otp-input-item", { "mc-otp-input-item-focus": m(E) === e4 - 1 }]), ref_for: true, ref: (t4) => ((e5, t5) => {
|
|
50
|
+
t5 && (A2.value[e5] = t5);
|
|
51
|
+
})(e4 - 1, t4), onClick: (t4) => (async (e5) => {
|
|
52
|
+
F(B[e5]) ? S() : P(e5);
|
|
53
|
+
})(e4 - 1) }, [b(v("input", { "onUpdate:modelValue": (t4) => B[e4 - 1] = t4, class: "mc-otp-input", type: "number", disabled: m(J), onInput: (t4) => (async (e5, t5) => {
|
|
54
|
+
if (J.value) return;
|
|
55
|
+
const o2 = t5.target;
|
|
56
|
+
let a2 = o2.value.slice(0, 1);
|
|
57
|
+
o2.value = a2, B[e5] = a2, Q(), a2 && S();
|
|
58
|
+
})(e4 - 1, t4), onPaste: t3[0] || (t3[0] = (e5) => (async (e6) => {
|
|
59
|
+
var _a;
|
|
60
|
+
if (e6.preventDefault(), J.value) return;
|
|
61
|
+
const t4 = ((_a = e6.clipboardData) == null ? void 0 : _a.getData("text").slice(0, l2.length)) || "";
|
|
62
|
+
O(t4), Q(), S();
|
|
63
|
+
})(e5)), onKeydown: [I(V((t4) => (async (e5) => {
|
|
64
|
+
B[e5] = "", Q(), q();
|
|
65
|
+
})(e4 - 1), ["prevent", "stop"]), ["backspace"]), I(V((t4) => m(P)(e4 - 2), ["prevent", "stop"]), ["left"]), I(V((t4) => m(P)(e4), ["prevent", "stop"]), ["right"]), t3[2] || (t3[2] = I(V(() => {
|
|
66
|
+
}, ["prevent", "stop"]), ["tab"]))], onMousedown: t3[1] || (t3[1] = V(() => {
|
|
67
|
+
}, ["prevent"])) }, null, 40, z), [[x, B[e4 - 1]]])], 10, U))), 128))]), m(N) ? (p(), f(k, { key: 0, class: "mc-otp-status-icon", name: m(N), size: 24 }, null, 8, ["name"])) : h("", true)], 10, C));
|
|
68
|
+
} }), [["__scopeId", "data-v-a28ede58"]]));
|
|
69
|
+
export {
|
|
70
|
+
A as M,
|
|
71
|
+
M as a
|
|
72
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { _ as e, l as o } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { defineComponent as s, ref as t, createElementBlock as a, createCommentVNode as i, openBlock as l, normalizeStyle as r, renderSlot as c } from "vue";
|
|
3
|
+
const f = "mc-overlay", m = e(s({ name: f, __name: "mc-overlay", props: { visible: { type: Boolean }, fixed: { type: Boolean, default: true } }, emits: ["click"], setup(e2, { expose: o2, emit: s2 }) {
|
|
4
|
+
const f2 = s2, m2 = t();
|
|
5
|
+
return o2({ ref: m2 }), (o3, s3) => e2.visible ? (l(), a("div", { key: 0, class: "mc-overlay", ref_key: "_ref", ref: m2, onClick: s3[0] || (s3[0] = (e3) => ((e4) => {
|
|
6
|
+
e4.target === m2.value && f2("click");
|
|
7
|
+
})(e3)), style: r({ position: e2.fixed ? "fixed" : "absolute" }) }, [c(o3.$slots, "default", {}, void 0, true)], 4)) : i("", true);
|
|
8
|
+
} }), [["__scopeId", "data-v-9486332c"]]), p = o(m);
|
|
9
|
+
export {
|
|
10
|
+
p as M,
|
|
11
|
+
m as _,
|
|
12
|
+
f as a
|
|
13
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { _ as e, l as o } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { defineComponent as a, ref as r, computed as t, watch as l, onUnmounted as p, watchEffect as s, createElementBlock as i, openBlock as u, mergeProps as c, toHandlers as n, createElementVNode as m, createVNode as d, renderSlot as v, Transition as f, withCtx as g, createCommentVNode as h, createTextVNode as k, toDisplayString as w } from "vue";
|
|
3
|
+
import { createPopper as _ } from "@popperjs/core";
|
|
4
|
+
import { debounce as y, bind as b, isNil as N } from "lodash-es";
|
|
5
|
+
import { useClickOutside as T } from "@mc-plus/hooks";
|
|
6
|
+
const j = "mc-popper", x = { key: 0, id: "arrow", class: "mc-popper-arrow", "data-popper-arrow": "" }, A = e(a({ name: j, __name: "mc-popper", props: { content: {}, trigger: { default: "hover" }, placement: { default: "top" }, disabled: { type: Boolean }, popperOptions: {}, showTimeout: { default: 0 }, hideTimeout: { default: 300 }, transitionName: { default: "fade" }, showArrow: { type: Boolean, default: true } }, emits: ["visible:change", "click:outside"], setup(e2, { expose: o2, emit: a2 }) {
|
|
7
|
+
const j2 = e2, A2 = a2, B2 = r({}), O = r({}), $ = r({}), I = r(), M = r(), q = r(), z = r(false), C = (e3) => {
|
|
8
|
+
j2.disabled && (e3 = false), z.value = e3, A2("visible:change", e3);
|
|
9
|
+
}, D = t(() => ({ placement: j2.placement, modifiers: [{ name: "offset", options: { offset: [0, 8] } }], ...j2.popperOptions }));
|
|
10
|
+
let E, F, G;
|
|
11
|
+
l(z, (e3) => {
|
|
12
|
+
e3 && M.value && q.value && (E = _(M.value, q.value, D.value));
|
|
13
|
+
}, { flush: "post" }), p(() => {
|
|
14
|
+
N(E) || (E.destroy(), E = void 0);
|
|
15
|
+
});
|
|
16
|
+
const H = t(() => "hover" === j2.trigger ? j2.showTimeout : 0), J = t(() => "hover" === j2.trigger ? j2.hideTimeout : 0);
|
|
17
|
+
s(() => {
|
|
18
|
+
B2.value = {}, O.value = {}, $.value = {}, j2.disabled ? L(false) : "click" === j2.trigger ? B2.value.click = () => {
|
|
19
|
+
z.value ? L() : K();
|
|
20
|
+
} : "hover" === j2.trigger && (B2.value.mouseenter = () => K(), O.value.mouseleave = () => L(), $.value.mouseenter = () => K()), F = y(b(C, null, true), H.value), G = y(b(C, null, false), J.value);
|
|
21
|
+
});
|
|
22
|
+
const K = (e3 = true) => {
|
|
23
|
+
G == null ? void 0 : G.cancel(), e3 ? F == null ? void 0 : F() : C(true);
|
|
24
|
+
}, L = (e3 = true) => {
|
|
25
|
+
F == null ? void 0 : F.cancel(), e3 ? G == null ? void 0 : G() : C(false);
|
|
26
|
+
};
|
|
27
|
+
return T(I, () => {
|
|
28
|
+
A2("click:outside"), "click" === j2.trigger && z.value && L(false);
|
|
29
|
+
}), o2({ show: () => K(false), hide: () => L(false) }), (o3, a3) => (u(), i("div", c({ class: "mc-popper", ref_key: "containerNode", ref: I }, n(O.value, true)), [m("div", c({ class: "mc-popper-trigger", ref_key: "triggerNode", ref: M }, n(B2.value, true)), [v(o3.$slots, "default", {}, void 0, true)], 16), d(f, { name: e2.transitionName }, { default: g(() => [z.value ? (u(), i("div", c({ key: 0, class: "mc-popper-popper", ref_key: "popperNode", ref: q }, n($.value, true)), [v(o3.$slots, "content", {}, () => [k(w(e2.content), 1)], true), e2.showArrow ? (u(), i("div", x)) : h("", true)], 16)) : h("", true)]), _: 3 }, 8, ["name"])], 16));
|
|
30
|
+
} }), [["__scopeId", "data-v-96fe7118"]]), B = o(A);
|
|
31
|
+
export {
|
|
32
|
+
A as M,
|
|
33
|
+
B as a,
|
|
34
|
+
j as b
|
|
35
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { _ as e, l as r } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { defineComponent as s, ref as a, watchEffect as t, computed as o, watch as p, useSlots as m, createElementBlock as l, openBlock as n, normalizeStyle as i, unref as c, createElementVNode as u, createCommentVNode as d, renderSlot as g, toDisplayString as h } from "vue";
|
|
3
|
+
import { ceil as f } from "lodash-es";
|
|
4
|
+
import { useWidthHeight as v } from "@mc-plus/hooks";
|
|
5
|
+
const b = "mc-progress-bar", k = { key: 0, class: "mc-progress-bar-shimmer" }, y = { key: 0, class: "mc-progress-bar-remarks" }, w = e(s({ name: b, __name: "mc-progress-bar", props: { percentage: { default: 0 }, height: { default: "4px" }, width: { default: "100%" }, remarks: {}, showPercentage: { type: Boolean, default: false }, transitionDuration: { default: 300 }, shimmer: { type: Boolean, default: false } }, emits: ["update:percentage", "complete"], setup(e2, { expose: r2, emit: s2 }) {
|
|
6
|
+
const b2 = e2, w2 = s2, { width: _2, height: P } = v(), $ = a();
|
|
7
|
+
t(() => {
|
|
8
|
+
$.value && $.value.style.setProperty("--border-radius", P.value);
|
|
9
|
+
});
|
|
10
|
+
const x = o(() => {
|
|
11
|
+
const e3 = b2.percentage / 100;
|
|
12
|
+
return e3 > 1 ? 1 : e3 < 0 ? 0 : e3;
|
|
13
|
+
});
|
|
14
|
+
p(() => b2.percentage, (e3) => {
|
|
15
|
+
e3 >= 100 && w2("complete");
|
|
16
|
+
}, { immediate: true });
|
|
17
|
+
const B = m(), D = o(() => b2.showPercentage || !!b2.remarks || !!B.remarks);
|
|
18
|
+
return r2({ updatePercentage: (e3) => {
|
|
19
|
+
w2("update:percentage", e3);
|
|
20
|
+
}, complete: () => {
|
|
21
|
+
w2("update:percentage", 100), w2("complete");
|
|
22
|
+
}, reset: () => {
|
|
23
|
+
w2("update:percentage", 0);
|
|
24
|
+
} }), (r3, s3) => (n(), l("div", { class: "mc-progress-bar", style: i({ width: c(_2) }) }, [u("div", { ref_key: "progressBarRef", ref: $, class: "mc-progress-bar-wrapper", style: i({ width: c(_2), height: c(P) }) }, [u("div", { class: "mc-progress-bar-inner", style: i({ transform: `scaleX(${x.value})`, transitionDuration: `${e2.transitionDuration}ms` }) }, null, 4), e2.shimmer ? (n(), l("i", k)) : d("", true)], 4), D.value ? (n(), l("div", y, [g(r3.$slots, "remarks", {}, () => [u("span", null, h(e2.remarks || `${c(f)(100 * x.value)}%`), 1)], true)])) : d("", true)], 4));
|
|
25
|
+
} }), [["__scopeId", "data-v-af235b95"]]), _ = r(w);
|
|
26
|
+
export {
|
|
27
|
+
w as M,
|
|
28
|
+
_ as a,
|
|
29
|
+
b
|
|
30
|
+
};
|