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
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mc-plus",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.71",
|
|
4
4
|
"description": "Components library for Vue 3.X by Meta Compass",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -12,12 +12,13 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "./dist/umd/index.umd.cjs",
|
|
14
14
|
"module": "./dist/es/index.js",
|
|
15
|
-
"types": "./dist/types/
|
|
15
|
+
"types": "./dist/types/index.d.ts",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
+
"development": "./src/index.ts",
|
|
18
19
|
"import": "./dist/es/index.js",
|
|
19
20
|
"require": "./dist/umd/index.umd.cjs",
|
|
20
|
-
"types": "./dist/types/
|
|
21
|
+
"types": "./dist/types/index.d.ts"
|
|
21
22
|
},
|
|
22
23
|
"./dist/": {
|
|
23
24
|
"import": "./dist/",
|
|
@@ -40,13 +41,8 @@
|
|
|
40
41
|
"author": "Hirasawa Yui <ayachinenesanobauxichi@gmail.com>",
|
|
41
42
|
"license": "ISC",
|
|
42
43
|
"packageManager": "pnpm@10.6.2",
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
45
|
-
"terser": "^5.39.0",
|
|
46
|
-
"vite-plugin-compression2": "^1.3.3",
|
|
47
|
-
"vite-plugin-dts": "^4.5.3"
|
|
48
|
-
},
|
|
49
44
|
"dependencies": {
|
|
45
|
+
"lodash-es": "^4.17.21",
|
|
50
46
|
"@popperjs/core": "^2.11.8",
|
|
51
47
|
"@tiptap/pm": "^3.4.4",
|
|
52
48
|
"@tiptap/starter-kit": "^3.4.4",
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, useSlots as s, computed as t, createElementBlock as l, openBlock as o, normalizeStyle as c, normalizeClass as n, createElementVNode as r, createCommentVNode as i, renderSlot as m, createVNode as d, createTextVNode as u, toDisplayString as p, createBlock as g, withModifiers as v, Transition as f, withCtx as y } from "vue";
|
|
2
|
-
import { M as h } from "./mc-icon-C4bB78Bl.js";
|
|
3
|
-
import { _ as x, w as _ } from "./utils-DhYrNPrr.js";
|
|
4
|
-
const k = { class: "mc-alert-message-header" }, b = { class: "mc-alert-message-title-container" }, w = { key: 0, class: "mc-alert-message-icon-group" }, z = { class: "mc-alert-message-icon-wrapper" }, B = { class: "mc-alert-message-icon-wrapper" }, C = { key: 0, class: "mc-alert-message-body" }, I = _(x(e({ name: "McAlertMessage", __name: "mc-alert-message", props: { modelValue: { type: Boolean, default: true }, width: {}, height: {}, type: { default: "info" }, message: {}, content: {}, closable: { type: Boolean, default: false }, hideIcon: { type: Boolean, default: false }, expandable: { type: Boolean, default: false } }, emits: ["click", "close", "update:modelValue", "expand"], setup(e2, { expose: x2, emit: _2 }) {
|
|
5
|
-
const I2 = e2, M = _2, $ = a(), V = s(), j = t(() => I2.content || V.content), A = t(() => H.value || V.icon), E = a(false), D = t(() => !I2.expandable || E.value), H = t(() => {
|
|
6
|
-
if (!I2.hideIcon) switch (I2.type) {
|
|
7
|
-
case "success":
|
|
8
|
-
return "Accept_02";
|
|
9
|
-
case "error":
|
|
10
|
-
return "Error_04";
|
|
11
|
-
case "warning":
|
|
12
|
-
return "Error_02";
|
|
13
|
-
case "info":
|
|
14
|
-
return "Info_02";
|
|
15
|
-
default:
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
}), L = () => {
|
|
19
|
-
M("update:modelValue", false), M("close");
|
|
20
|
-
}, S = () => {
|
|
21
|
-
M("click"), I2.expandable && (E.value = !E.value, M("expand", E.value));
|
|
22
|
-
};
|
|
23
|
-
return x2({ ref: $, close: L, show: () => {
|
|
24
|
-
E.value = true;
|
|
25
|
-
}, hide: () => {
|
|
26
|
-
E.value = false;
|
|
27
|
-
} }), (a2, s2) => (o(), l("div", { ref_key: "_ref", ref: $, class: n(["mc-alert-message", [`mc-alert-message-${e2.type}`]]), style: c({ width: e2.width, height: e2.height, cursor: e2.expandable ? "pointer" : "default" }), onClick: S }, [r("div", k, [r("div", b, [A.value ? (o(), l("div", { key: 0, class: "mc-alert-message-icon", style: c({ height: j.value ? "30px" : "24px" }) }, [m(a2.$slots, "icon", {}, () => [d(h, { name: H.value, size: 24 }, null, 8, ["name"])], true)], 4)) : i("", true), r("div", { class: "mc-alert-message-title", style: c({ fontSize: j.value ? "18px" : "16px", fontWeight: j.value ? "600" : "400", lineHeight: j.value ? "30px" : "24px" }) }, [m(a2.$slots, "default", {}, () => [u(p(e2.message), 1)], true)], 4)]), e2.closable || e2.expandable ? (o(), l("div", w, [r("div", z, [e2.expandable ? (o(), g(h, { key: 0, name: "Down-Chevron", size: 24, class: "mc-alert-message-tool-icon mc-alert-message-tool-icon-expand", style: c({ transform: D.value ? "rotate(180deg)" : "rotate(0deg)" }) }, null, 8, ["style"])) : i("", true)]), r("div", B, [e2.closable ? (o(), g(h, { key: 0, name: "Cross", size: 24, class: "mc-alert-message-tool-icon mc-alert-message-tool-icon-close", onClick: v(L, ["stop"]) })) : i("", true)])])) : i("", true)]), j.value ? (o(), l("div", C, [d(f, { name: "mc-alert-message-content-transition" }, { default: y(() => [D.value ? (o(), l("div", { key: 0, class: "mc-alert-message-content", style: c({ paddingLeft: A.value ? "48px" : "16px" }) }, [m(a2.$slots, "content", {}, () => [u(p(e2.content), 1)], true)], 4)) : i("", true)]), _: 3 })])) : i("", true)], 6));
|
|
28
|
-
} }), [["__scopeId", "data-v-831d8a79"]]));
|
|
29
|
-
export {
|
|
30
|
-
I as M
|
|
31
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, toRefs as t, ref as o, useAttrs as a, computed as i, toValue as l, createElementBlock as n, openBlock as s, unref as d, normalizeClass as u, normalizeStyle as r, createBlock as c, createCommentVNode as m, createElementVNode as p, createVNode as v, renderSlot as f } from "vue";
|
|
2
|
-
import { M as y } from "./mc-icon-C4bB78Bl.js";
|
|
3
|
-
import { t as h } from "./vendor-CfcDHsSD.js";
|
|
4
|
-
import { _ as b, w as g } from "./utils-DhYrNPrr.js";
|
|
5
|
-
const k = ["type", "disabled"], I = { key: 1, class: "loading-icon" }, _ = { class: "mc-button-text" }, w = b(e({ name: "McButton", __name: "mc-button", props: { type: { default: "primary" }, nativeType: { default: "button" }, size: { default: "medium" }, disabled: { type: Boolean }, loading: { type: Boolean }, useThrottle: { type: Boolean, default: true }, throttleDuration: { default: 500 }, leftIcon: {}, rightIcon: {}, content: {}, height: {}, width: {} }, emits: ["click"], setup(e2, { expose: b2, emit: g2 }) {
|
|
6
|
-
const w2 = e2, { loading: z2, disabled: B, throttleDuration: T, height: j, width: x } = t(w2), M = g2, $ = o(), D = t(a()), C = i(() => ({ ...l(D).style, width: x.value ? x.value : void 0, height: j.value ? j.value : void 0 })), L = (e3) => {
|
|
7
|
-
z2.value || B.value || M("click", e3);
|
|
8
|
-
}, q = h(L, T.value, { trailing: false });
|
|
9
|
-
return b2({ ref: $ }), (t2, o2) => (s(), n("button", { ref_key: "_ref", ref: $, style: r(C.value), class: u(["mc-button", { [`mc-button--${e2.type}`]: e2.type, [`mc-button--${e2.size}`]: e2.size, "is-loading": d(z2), "is-disabled": d(B) }]), type: e2.nativeType, disabled: !(!d(B) && !d(z2)) || void 0, onClick: o2[0] || (o2[0] = (t3) => e2.useThrottle ? d(q)(t3) : L(t3)) }, [e2.leftIcon && !d(z2) ? (s(), c(y, { key: 0, name: e2.leftIcon }, null, 8, ["name"])) : m("", true), d(z2) && !d(B) ? (s(), n("span", I, [v(y, { name: "Loading", size: 16 })])) : m("", true), p("div", _, [f(t2.$slots, "default", {}, void 0, true)]), e2.rightIcon ? (s(), c(y, { key: 2, name: e2.rightIcon }, null, 8, ["name"])) : m("", true)], 14, k));
|
|
10
|
-
} }), [["__scopeId", "data-v-22e63398"]]), z = g(w);
|
|
11
|
-
export {
|
|
12
|
-
w as M,
|
|
13
|
-
z as a
|
|
14
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { inject as e, computed as a, defineComponent as l, ref as o, createElementBlock as c, openBlock as s, createElementVNode as t, createCommentVNode as d, withModifiers as u, normalizeClass as r, unref as m, withKeys as n, renderSlot as i, createTextVNode as p, toDisplayString as b, nextTick as h, watch as k, provide as x } from "vue";
|
|
2
|
-
import { useFocus as f } from "@mc-plus/hooks";
|
|
3
|
-
import { u as v, a as y } from "./mc-form-DzA54Vbo.js";
|
|
4
|
-
import { i as V, a as C, b as S, c as _ } from "./vendor-CfcDHsSD.js";
|
|
5
|
-
import { _ as g, w as B } from "./utils-DhYrNPrr.js";
|
|
6
|
-
const G = Symbol("CheckboxGroupContext"), I = { class: "mc-checkbox" }, w = ["id", "value", "disabled", "onKeypress"], $ = { key: 0, class: "mc-checkbox-content" }, D = { key: 0, class: "mc-checkbox-remarks" }, j = g(l({ name: "McCheckbox", __name: "mc-checkbox", props: { modelValue: { type: Boolean }, disabled: { type: Boolean }, content: {}, remarks: {}, partial: { type: Boolean }, disableValidation: { type: Boolean, default: false }, value: {} }, emits: ["update:modelValue", "change", "focus", "blur"], setup(l2, { emit: k2 }) {
|
|
7
|
-
const x2 = l2, y2 = k2, _2 = o(), { wrapperRef: g2, isFocused: B2, handleFocus: j2, handleBlur: F2 } = f(_2), { checkboxGroupDisabled: M2, isCheckboxGroup: R2, isCheckboxSelected: K2, handleCheckboxSelect: q } = (() => {
|
|
8
|
-
const l3 = e(G, void 0), o2 = a(() => {
|
|
9
|
-
var _a;
|
|
10
|
-
return !!((_a = l3 == null ? void 0 : l3.disabled) == null ? void 0 : _a.value);
|
|
11
|
-
}), c2 = a(() => !!l3 && V(l3 == null ? void 0 : l3.handleSelect));
|
|
12
|
-
return { checkboxGroupCtx: l3, checkboxGroupDisabled: o2, isCheckboxGroup: c2, isCheckboxSelected: (e2) => {
|
|
13
|
-
var _a;
|
|
14
|
-
return !S(e2) && C((_a = l3 == null ? void 0 : l3.modelValue) == null ? void 0 : _a.value, e2);
|
|
15
|
-
}, handleCheckboxSelect: (e2) => {
|
|
16
|
-
l3 == null ? void 0 : l3.handleSelect(e2);
|
|
17
|
-
} };
|
|
18
|
-
})(), { formId: z, formItem: A, formDisabled: E, validateStyle: H } = v({ externalDisabled: M2 }), J = a(() => R2.value ? K2(x2.value) : !!x2.modelValue), L = async () => {
|
|
19
|
-
E.value || (R2.value ? q(x2.value) : (y2("update:modelValue", !x2.modelValue), y2("change", !x2.modelValue), await h(), A == null ? void 0 : A.validate("input")));
|
|
20
|
-
};
|
|
21
|
-
return (e2, a2) => (s(), c("div", I, [t("label", { ref_key: "checkboxRef", ref: g2, class: r(["mc-checkbox-wrapper", { "mc-checkbox-disabled": m(E), "mc-checkbox-checked": J.value, "mc-checkbox-partial": l2.partial, "mc-checkbox-focused": m(B2), [m(H)]: m(H) }]), onClick: u(L, ["prevent"]) }, [t("input", { ref_key: "checkboxInputRef", ref: _2, id: m(z), type: "checkbox", class: "mc-checkbox-input", value: J.value, disabled: m(E), onKeypress: n(u(L, ["prevent", "stop"]), ["enter"]), onFocus: a2[0] || (a2[0] = (...e3) => m(j2) && m(j2)(...e3)), onBlur: a2[1] || (a2[1] = (...e3) => m(F2) && m(F2)(...e3)) }, null, 40, w), a2[2] || (a2[2] = t("div", { class: "mc-checkbox-box" }, null, -1)), l2.content || e2.$slots.default ? (s(), c("div", $, [i(e2.$slots, "default", {}, () => [p(b(l2.content), 1)], true)])) : d("", true)], 2), l2.remarks || e2.$slots.remarks ? (s(), c("div", D, [i(e2.$slots, "remarks", {}, () => [p(b(l2.remarks), 1)], true)])) : d("", true)]));
|
|
22
|
-
} }), [["__scopeId", "data-v-6f10b0a7"]]), F = ["id"], M = l({ name: "McCheckboxGroup", __name: "mc-checkbox-group", props: { modelValue: { default: () => [] }, disabled: { type: Boolean, default: false } }, emits: ["update:modelValue", "change"], setup(e2, { emit: l2 }) {
|
|
23
|
-
const o2 = e2, t2 = l2, { formId: d2, formItem: u2 } = y();
|
|
24
|
-
return k(() => o2.modelValue, () => {
|
|
25
|
-
u2 == null ? void 0 : u2.validate("change");
|
|
26
|
-
}), x(G, { modelValue: a(() => o2.modelValue), disabled: a(() => o2.disabled), handleSelect: async (e3) => {
|
|
27
|
-
if (!e3) return;
|
|
28
|
-
const a2 = [...o2.modelValue], l3 = _(a2, e3);
|
|
29
|
-
l3 > -1 ? a2.splice(l3, 1) : a2.push(e3), t2("update:modelValue", a2), t2("change", a2), await h(), u2 == null ? void 0 : u2.validate("input");
|
|
30
|
-
} }), (e3, a2) => (s(), c("div", { class: "mc-checkbox-group", id: m(d2) }, [i(e3.$slots, "default")], 8, F));
|
|
31
|
-
} }), R = B(j), K = B(M);
|
|
32
|
-
export {
|
|
33
|
-
j as M,
|
|
34
|
-
R as a,
|
|
35
|
-
K as b
|
|
36
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, watchEffect as l, watch as s, provide as o, createElementBlock as c, openBlock as t, renderSlot as i, inject as m, computed as d, normalizeClass as n, createElementVNode as p, withDirectives as u, createTextVNode as r, toDisplayString as v, createVNode as _, vShow as h } from "vue";
|
|
2
|
-
import { d as f, _ as C, w as V } from "./utils-DhYrNPrr.js";
|
|
3
|
-
import { M as b } from "./mc-icon-C4bB78Bl.js";
|
|
4
|
-
const g = Symbol("COLLAPSE_CONTEXT"), I = "McCollapse", M = { class: "mc-collapse" }, k = C(e({ name: I, __name: "mc-collapse", props: { modelValue: {}, accordion: { type: Boolean } }, emits: ["update:modelValue", "change"], setup(e2, { emit: m2 }) {
|
|
5
|
-
const d2 = a(e2.modelValue), n2 = m2;
|
|
6
|
-
l(() => {
|
|
7
|
-
e2.accordion && e2.modelValue.length > 1 && f(I, "accordion is true, modelValue should be a single value.");
|
|
8
|
-
}), s(() => e2.modelValue, (e3) => p2(e3));
|
|
9
|
-
const p2 = (e3) => {
|
|
10
|
-
d2.value = e3, n2("update:modelValue", e3), n2("change", e3);
|
|
11
|
-
};
|
|
12
|
-
return o(g, { activeNames: d2, handleItemClick: (a2) => {
|
|
13
|
-
let l2 = [...d2.value];
|
|
14
|
-
if (e2.accordion) l2 = [l2[0] === a2 ? "" : a2], p2(l2);
|
|
15
|
-
else {
|
|
16
|
-
const e3 = l2.indexOf(a2);
|
|
17
|
-
e3 > -1 ? l2.splice(e3, 1) : l2.push(a2), p2(l2);
|
|
18
|
-
}
|
|
19
|
-
} }), (e3, a2) => (t(), c("div", M, [i(e3.$slots, "default", {}, void 0, true)]));
|
|
20
|
-
} }), [["__scopeId", "data-v-bd05404d"]]), w = { class: "mc-collapse-item-header" }, y = { class: "mc-collapse-item-title" }, N = { class: "triangle-icon" }, O = { class: "mc-collapse-item-wapper" }, $ = { class: "mc-collapse-item-content" }, j = C(e({ name: "McCollapseItem", __name: "mc-collapse-item", props: { name: {}, title: {}, disabled: { type: Boolean } }, setup(e2) {
|
|
21
|
-
const a2 = m(g, void 0), l2 = d(() => {
|
|
22
|
-
var _a;
|
|
23
|
-
return (_a = a2 == null ? void 0 : a2.activeNames.value) == null ? void 0 : _a.includes(e2.name);
|
|
24
|
-
}), s2 = () => {
|
|
25
|
-
e2.disabled || (a2 == null ? void 0 : a2.handleItemClick(e2.name));
|
|
26
|
-
};
|
|
27
|
-
return (a3, o2) => (t(), c("div", { class: n(["mc-collapse-item", { "mc-collapse-item--active": l2.value }]), onClick: s2 }, [p("div", w, [p("span", y, [i(a3.$slots, "title", {}, () => [r(v(e2.title), 1)], true)]), p("span", N, [_(b, { name: "Down-Chevron" })])]), u(p("div", O, [p("div", $, [i(a3.$slots, "default", {}, void 0, true)])], 512), [[h, l2.value]])], 2));
|
|
28
|
-
} }), [["__scopeId", "data-v-8937850f"]]), x = V(k), B = V(j);
|
|
29
|
-
export {
|
|
30
|
-
x as M,
|
|
31
|
-
B as a
|
|
32
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineComponent as t, createElementBlock as s, openBlock as o, renderSlot as e, createVNode as a, createElementVNode as c, toDisplayString as r } from "vue";
|
|
2
|
-
import { M as p } from "./mc-icon-C4bB78Bl.js";
|
|
3
|
-
import { t as m } from "./mc-toast-CvIFs-KO.js";
|
|
4
|
-
import { _ as l, w as i } from "./utils-DhYrNPrr.js";
|
|
5
|
-
const u = { class: "mc-copy" }, n = { class: "mc-copy-text" }, x = i(l(t({ name: "McCopy", __name: "mc-copy", props: { text: {}, showToast: { type: Boolean, default: false }, toastSuccessText: { default: "copy succeed" }, toastErrorText: { default: "copy failed" }, manual: { type: Boolean, default: false } }, emits: ["copy", "success", "error"], setup(t2, { emit: l2 }) {
|
|
6
|
-
const i2 = t2, x2 = l2, y = async () => {
|
|
7
|
-
if (i2.text) if (i2.manual) x2("copy", i2.text);
|
|
8
|
-
else try {
|
|
9
|
-
await navigator.clipboard.writeText(i2.text), x2("success", i2.text), i2.showToast && m.success(i2.toastSuccessText);
|
|
10
|
-
} catch (t3) {
|
|
11
|
-
console.error(t3), x2("error", i2.text, t3), i2.showToast && m.error(i2.toastErrorText);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
return (m2, l3) => (o(), s("div", u, [e(m2.$slots, "default", {}, () => [c("span", n, r(t2.text), 1)], true), a(p, { name: "Duplicate", class: "mc-copy-icon", onClick: y })]));
|
|
15
|
-
} }), [["__scopeId", "data-v-4ba1d29a"]]));
|
|
16
|
-
export {
|
|
17
|
-
x as M
|
|
18
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, computed as a, watch as t, createElementBlock as u, createCommentVNode as n, openBlock as m, normalizeClass as o, toDisplayString as c } from "vue";
|
|
2
|
-
import { _ as s, w as l } from "./utils-DhYrNPrr.js";
|
|
3
|
-
const r = { key: 0, class: "mc-count-number" }, d = l(s(e({ name: "McCount", __name: "mc-count", props: { value: {}, theme: { default: "red" }, type: { default: "medium" }, hiddenZero: { type: Boolean, default: true }, max: { default: 99 } }, emits: ["change"], setup(e2, { emit: s2 }) {
|
|
4
|
-
const l2 = e2, d2 = s2, i = a(() => {
|
|
5
|
-
const e3 = Number(l2.value);
|
|
6
|
-
return isNaN(e3) ? (console.warn("mc-count: value is not a number"), 0) : e3;
|
|
7
|
-
}), p = a(() => !l2.hiddenZero || i.value > 0), v = a(() => l2.max && i.value > l2.max ? `${l2.max}+` : `${i.value}`), y = a(() => "tiny" === l2.type);
|
|
8
|
-
return t(() => l2.value, (e3, a2) => {
|
|
9
|
-
e3 !== a2 && d2("change", e3);
|
|
10
|
-
}), (a2, t2) => p.value ? (m(), u("i", { key: 0, class: o(["mc-count", [`mc-count-${e2.theme}`, `mc-count-${e2.type}`]]) }, [y.value ? n("", true) : (m(), u("span", r, c(v.value), 1))], 2)) : n("", true);
|
|
11
|
-
} }), [["__scopeId", "data-v-a735e8dc"]]));
|
|
12
|
-
export {
|
|
13
|
-
d as M
|
|
14
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, createElementBlock as r, openBlock as n, normalizeStyle as e, unref as s, createElementVNode as i, renderSlot as t, normalizeClass as o, toDisplayString as l } from "vue";
|
|
2
|
-
import { useCDNPath as u, useWidthHeight as a } from "@mc-plus/hooks";
|
|
3
|
-
import { _ as d, w as m } from "./utils-DhYrNPrr.js";
|
|
4
|
-
const y = { class: "mc-currency-icon-img-wrapper" }, p = ["src", "alt"], h = { class: "mc-currency-icon-label" }, f = { class: "mc-currency-icon-text" }, g = m(d(c({ name: "McCurrencyIcon", __name: "mc-currency-icon", props: { currency: {}, direction: { default: "horizontal" }, desc: {}, cdnUrl: {}, suffix: { default: "svg" }, height: {}, width: {} }, setup(c2) {
|
|
5
|
-
const d2 = c2, { generateFileUrl: m2 } = u(d2.cdnUrl, d2.suffix), { width: g2, height: v } = a();
|
|
6
|
-
return (u2, a2) => (n(), r("div", { class: "mc-currency-icon", style: e({ width: s(g2), height: s(v) }) }, [i("div", y, [t(u2.$slots, "icon", {}, () => [i("img", { src: s(m2)(c2.currency), class: "mc-currency-icon-img", alt: `${c2.currency}-icon` }, null, 8, p)], true)]), i("div", { class: o(["mc-currency-icon-content", [`mc-currency-icon-content-${c2.direction}`]]) }, [i("div", h, [t(u2.$slots, "default", {}, () => [i("span", null, l(c2.currency), 1)], true)]), i("div", f, [t(u2.$slots, "desc", {}, () => [i("span", null, l(c2.desc), 1)], true)])], 2)], 4));
|
|
7
|
-
} }), [["__scopeId", "data-v-a7836bdb"]]));
|
|
8
|
-
export {
|
|
9
|
-
g as M
|
|
10
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, createElementBlock as e, openBlock as a, normalizeClass as s } from "vue";
|
|
2
|
-
import { _ as d, w as m } from "./utils-DhYrNPrr.js";
|
|
3
|
-
const r = d(i({ name: "McDivider", __name: "mc-divider", props: { size: { default: "small" }, emphasis: { default: "minimal" }, orientation: { default: "horizontal" } }, setup: (i2) => (d2, m2) => (a(), e("div", { class: s(["mc-divider", [`mc-divider-${i2.orientation}`, `mc-divider-${i2.size}`, `mc-divider-${i2.emphasis}`]]) }, null, 2)) }), [["__scopeId", "data-v-6b53d9f6"]]), t = m(r);
|
|
4
|
-
export {
|
|
5
|
-
r as M,
|
|
6
|
-
t as a
|
|
7
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, watch as t, createElementBlock as a, createCommentVNode as r, openBlock as s, createBlock as l, Teleport as d, createVNode as i, Transition as m, withCtx as c, normalizeClass as f, createElementVNode as u, renderSlot as n, nextTick as p } from "vue";
|
|
2
|
-
import { M as v } from "./mc-overlay-ClS50yUJ.js";
|
|
3
|
-
import { _ as w } from "./mc-modal-header-Cs3LnuT0.js";
|
|
4
|
-
import { M as h } from "./mc-footer-CzKkst7M.js";
|
|
5
|
-
import { useResizeObserver as y } from "@mc-plus/hooks";
|
|
6
|
-
import { _, w as $ } from "./utils-DhYrNPrr.js";
|
|
7
|
-
const g = { key: 0, class: "mc-drawer-container" }, b = { class: "mc-drawer-header" }, k = { class: "mc-drawer-content-wrapper" }, B = { class: "mc-drawer-content" }, x = $(_(e({ name: "McDrawer", __name: "mc-drawer", props: { modelValue: { type: Boolean }, title: {}, size: { default: "medium" }, maskClosable: { type: Boolean, default: true }, fixed: { type: Boolean, default: true }, portCssSelector: { default: "body" }, showBorder: { type: Boolean, default: true }, hideFooter: { type: Boolean, default: false }, position: { default: "right" } }, emits: ["update:modelValue", "close"], setup(e2, { expose: _2, emit: $2 }) {
|
|
8
|
-
const x2 = e2, C = o(false), j = o(false), M = o(false), V = async () => {
|
|
9
|
-
C.value = true, j.value = true, await p(), M.value = true;
|
|
10
|
-
}, z = async () => {
|
|
11
|
-
M.value = false, await p(), j.value = false, await p(), C.value = false, F("close"), F("update:modelValue", false);
|
|
12
|
-
};
|
|
13
|
-
t(() => x2.modelValue, (e3, o2) => {
|
|
14
|
-
!o2 && e3 ? V() : z();
|
|
15
|
-
}, { immediate: true, flush: "post" });
|
|
16
|
-
const F = $2, S = () => {
|
|
17
|
-
x2.maskClosable && z();
|
|
18
|
-
}, D = () => {
|
|
19
|
-
z();
|
|
20
|
-
}, I = o(), R = o();
|
|
21
|
-
return y(R, ({ height: e3 }) => {
|
|
22
|
-
const o2 = I.value;
|
|
23
|
-
o2 && (o2.style.paddingBottom = `${e3}px`);
|
|
24
|
-
}), _2({ ref: I, open: V, close: z }), (o2, t2) => C.value ? (s(), a("div", g, [(s(), l(d, { to: e2.portCssSelector }, [i(m, { name: "mc-drawer-overlay" }, { default: c(() => [i(v, { visible: j.value, fixed: e2.fixed, onClick: S }, { default: c(() => [i(m, { name: `mc-drawer-content-${e2.position}` }, { default: c(() => [M.value ? (s(), a("div", { key: 0, class: f(["mc-drawer", [`mc-drawer-${e2.size}`, `mc-drawer-${e2.position}`]]), ref_key: "_ref", ref: I }, [u("div", b, [n(o2.$slots, "header", {}, () => [i(w, { title: e2.title, "show-border": e2.showBorder, onClose: D }, { default: c(() => [n(o2.$slots, "header-title", {}, void 0, true)]), _: 3 }, 8, ["title", "show-border"])], true)]), u("div", k, [u("div", B, [n(o2.$slots, "default", {}, void 0, true)])]), e2.hideFooter ? r("", true) : (s(), a("div", { key: 0, class: "mc-drawer-footer", ref_key: "footerRef", ref: R }, [n(o2.$slots, "footer", {}, () => [i(h, null, { left: c(() => [n(o2.$slots, "footer-left", {}, void 0, true)]), right: c(() => [n(o2.$slots, "footer-right", {}, void 0, true)]), "right-button-group": c(() => [n(o2.$slots, "footer-right-button-group", {}, void 0, true)]), desc: c(() => [n(o2.$slots, "footer-desc", {}, void 0, true)]), _: 3 })], true)], 512))], 2)) : r("", true)]), _: 3 }, 8, ["name"])]), _: 3 }, 8, ["visible", "fixed"])]), _: 3 })], 8, ["to"]))])) : r("", true);
|
|
25
|
-
} }), [["__scopeId", "data-v-8501380e"]]));
|
|
26
|
-
export {
|
|
27
|
-
x as M
|
|
28
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { defineComponent as t, ref as o, createElementBlock as e, openBlock as s, normalizeStyle as r, normalizeClass as c, createCommentVNode as i, createElementVNode as d, renderSlot as a } from "vue";
|
|
2
|
-
import { _ as l, w as p } from "./utils-DhYrNPrr.js";
|
|
3
|
-
const f = { key: 0, class: "mc-footer-content" }, h = { class: "mc-footer-bottom" }, m = { class: "mc-footer-bottom-content" }, n = { class: "mc-footer-left" }, v = { class: "mc-footer-right" }, w = { class: "mc-footer-right-button-group" }, g = l(t({ name: "McFooter", __name: "mc-footer", props: { width: {}, height: {}, wrapperWidth: {}, showborder: { type: Boolean, default: true } }, setup(t2, { expose: l2 }) {
|
|
4
|
-
const p2 = o();
|
|
5
|
-
return l2({ ref: p2 }), (o2, l3) => (s(), e("section", { class: c(["mc-footer", { "mc-footer-border": t2.showborder }]), style: r({ width: t2.width, height: t2.height }), ref_key: "_ref", ref: p2 }, [o2.$slots.desc ? (s(), e("div", f, [d("div", { class: "mc-footer-wrapper", style: r({ width: t2.wrapperWidth }) }, [a(o2.$slots, "desc", {}, void 0, true)], 4)])) : i("", true), d("div", h, [d("div", { class: "mc-footer-wrapper", style: r({ width: t2.wrapperWidth }) }, [d("div", m, [d("div", n, [a(o2.$slots, "left", {}, void 0, true)]), d("div", v, [a(o2.$slots, "right", {}, () => [d("div", w, [a(o2.$slots, "right-button-group", {}, void 0, true)])], true)])])], 4)])], 6));
|
|
6
|
-
} }), [["__scopeId", "data-v-e6cb581e"]]), u = p(g);
|
|
7
|
-
export {
|
|
8
|
-
g as M,
|
|
9
|
-
u as a
|
|
10
|
-
};
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { onMounted as e, onBeforeUnmount as r, computed as a, inject as t, watch as o, defineComponent as l, reactive as s, toRefs as i, provide as d, createElementBlock as n, openBlock as c, createElementVNode as m, withModifiers as u, renderSlot as v, ref as p, onUnmounted as f, normalizeClass as b, createCommentVNode as h, toDisplayString as I, createVNode as y, createTextVNode as g, Transition as x, withCtx as _, nextTick as q } from "vue";
|
|
2
|
-
import { useId as j, useProp as F } from "@mc-plus/hooks";
|
|
3
|
-
import { i as V, k as w, h as P, f as S, s as $, d as D, a as k, b as B, m as E, e as M, g as z, j as C, l as T, n as A } from "./vendor-CfcDHsSD.js";
|
|
4
|
-
import { a as O, _ as R, w as G } from "./utils-DhYrNPrr.js";
|
|
5
|
-
import H from "async-validator";
|
|
6
|
-
import { _ as J } from "./mc-tooltip-CgftGKxe.js";
|
|
7
|
-
const K = Symbol("formContext"), L = Symbol("formItemContext"), N = ({ externalId: o2, externalDisabled: l2, disableValidation: s2 } = {}) => {
|
|
8
|
-
const i2 = F("disableValidation"), d2 = a(() => !!i2.value || !!(s2 == null ? void 0 : s2.value)), n2 = t(K, void 0), c2 = d2.value ? void 0 : t(L, void 0), m2 = c2 ? (({ formItem: a2, externalId: t2 }) => {
|
|
9
|
-
const o3 = j(t2 == null ? void 0 : t2.value);
|
|
10
|
-
return e(() => {
|
|
11
|
-
a2 && (a2.id = o3);
|
|
12
|
-
}), r(() => {
|
|
13
|
-
a2 && (a2.id = "");
|
|
14
|
-
}), o3;
|
|
15
|
-
})({ formItem: c2, externalId: o2 }) : void 0, u2 = (({ form: e2, formItem: r2, externalDisabled: t2 }) => {
|
|
16
|
-
const o3 = F("disabled");
|
|
17
|
-
return a(() => o3.value || !!(e2 == null ? void 0 : e2.disabled) || !!(r2 == null ? void 0 : r2.disabled) || !!(t2 == null ? void 0 : t2.value));
|
|
18
|
-
})({ form: n2, formItem: c2, externalDisabled: l2 });
|
|
19
|
-
return { form: n2, formItem: c2, formId: m2, formDisabled: u2 };
|
|
20
|
-
}, Q = ({ externalId: e2, externalDisabled: r2, disableValidation: t2, validator: l2 } = {}) => {
|
|
21
|
-
const { form: s2, formItem: i2, formId: d2, formDisabled: n2 } = N({ externalId: e2, externalDisabled: r2, disableValidation: t2 }), c2 = i2 ? a(() => V(l2) && "error" === l2() ? "error" : (i2 == null ? void 0 : i2.validateStatus) || "init") : void 0, m2 = c2 ? a(() => `mc-form-validate-${c2.value}`) : "", u2 = !!c2 && a(() => "error" === c2.value), v2 = !!c2 && a(() => "success" === c2.value), p2 = F(["hideValidationIcon", "hide-validation-icon"]), f2 = !!c2 && a(() => !p2.value && (u2 && u2.value ? "Reject_02" : !(!v2 || !v2.value) && "Accept_02"));
|
|
22
|
-
if (i2) {
|
|
23
|
-
const e3 = F("modelValue");
|
|
24
|
-
o(() => e3.value, () => {
|
|
25
|
-
i2.validate("change");
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
return { form: s2, formItem: i2, formId: d2, formDisabled: n2, validateStatus: c2, validateStyle: m2, isError: u2, isSuccess: v2, statusIcon: f2 };
|
|
29
|
-
}, U = { class: "mc-form" }, W = R(l({ name: "McForm", __name: "mc-form", props: { model: {}, rules: { default: () => ({}) }, disabled: { type: Boolean }, direction: { default: "vertical" }, scrollToError: { type: Boolean, default: false } }, emits: ["validate"], setup(e2, { expose: r2, emit: a2 }) {
|
|
30
|
-
const t2 = e2, o2 = a2, l2 = [], p2 = (e3, r3) => $(r3) ? S(e3, (e4) => k(r3, e4.prop)) : e3, f2 = s({ ...i(t2), emits: o2, addField: (e3) => {
|
|
31
|
-
e3.prop && l2.push(e3);
|
|
32
|
-
}, removeField: (e3) => {
|
|
33
|
-
e3.prop && l2.splice(l2.indexOf(e3), 1);
|
|
34
|
-
} });
|
|
35
|
-
return d(K, f2), r2({ validate: async (e3 = [], r3) => {
|
|
36
|
-
try {
|
|
37
|
-
return await (async (e4 = [], r4) => {
|
|
38
|
-
const a3 = $(e4) ? S(l2, (r5) => k(e4, r5.prop)) : l2;
|
|
39
|
-
try {
|
|
40
|
-
const e5 = await (async (e6 = []) => {
|
|
41
|
-
let r5 = [];
|
|
42
|
-
for (const a4 of e6) try {
|
|
43
|
-
await a4.validate();
|
|
44
|
-
} catch (e7) {
|
|
45
|
-
r5.push(e7);
|
|
46
|
-
}
|
|
47
|
-
return !$(r5) || Promise.reject(r5);
|
|
48
|
-
})(a3);
|
|
49
|
-
return true === e5 && (r4 == null ? void 0 : r4(true)), e5;
|
|
50
|
-
} catch (e5) {
|
|
51
|
-
if (e5 instanceof Error) throw e5;
|
|
52
|
-
const a4 = e5;
|
|
53
|
-
return r4 == null ? void 0 : r4(false, a4), Promise.reject(a4);
|
|
54
|
-
}
|
|
55
|
-
})(e3, r3);
|
|
56
|
-
} catch (e4) {
|
|
57
|
-
return t2.scrollToError && (async (e5) => {
|
|
58
|
-
const r4 = w(P(e5))[0], a3 = p2(l2, [r4])[0].id, t3 = document.getElementById(a3);
|
|
59
|
-
t3 == null ? void 0 : t3.scrollIntoView({ block: "center", inline: "center", behavior: "smooth" }), await O(500), t3 == null ? void 0 : t3.focus();
|
|
60
|
-
})(e4), Promise.reject(e4);
|
|
61
|
-
}
|
|
62
|
-
}, resetFields: (e3 = []) => {
|
|
63
|
-
D(p2(l2, e3), (e4) => e4.resetField());
|
|
64
|
-
}, clearValidate: (e3 = []) => {
|
|
65
|
-
D(p2(l2, e3), (e4) => e4.clearValidate());
|
|
66
|
-
} }), (e3, r3) => (c(), n("div", U, [m("form", { onSubmit: r3[0] || (r3[0] = u(() => {
|
|
67
|
-
}, ["prevent"])) }, [v(e3.$slots, "default", {}, void 0, true)], 32)]));
|
|
68
|
-
} }), [["__scopeId", "data-v-7e825355"]]), X = { class: "mc-form-item-label-wrapper" }, Y = { key: 0, class: "mc-form-item-label" }, Z = { key: 0, class: "mc-form-item-help" }, ee = { key: 0, class: "mc-form-item-desc" }, re = { class: "mc-form-item__content" }, ae = { key: 0, class: "mc-form-item__error" }, te = R(l({ name: "McFormItem", __name: "mc-form-item", props: { prop: { default: "" }, label: {}, disabled: { type: Boolean, default: false }, required: { type: Boolean, default: false }, rules: {}, help: {}, desc: {} }, setup(r2, { expose: o2 }) {
|
|
69
|
-
const l2 = r2, i2 = t(K, void 0), u2 = p("init"), j2 = p(""), F2 = (e2) => e2 && l2.prop && !B(z(e2, l2.prop)) ? z(e2, l2.prop) : null, V2 = a(() => {
|
|
70
|
-
const e2 = i2 == null ? void 0 : i2.model;
|
|
71
|
-
return F2(e2);
|
|
72
|
-
}), P2 = a(() => {
|
|
73
|
-
const e2 = [];
|
|
74
|
-
l2.required && e2.push({ required: true }), l2.rules && e2.push(...l2.rules);
|
|
75
|
-
const r3 = i2 == null ? void 0 : i2.rules;
|
|
76
|
-
if (r3 && l2.prop) {
|
|
77
|
-
const a3 = F2(r3);
|
|
78
|
-
a3 && e2.push(...a3);
|
|
79
|
-
}
|
|
80
|
-
const a2 = l2.required;
|
|
81
|
-
if (B(a2)) {
|
|
82
|
-
const r4 = S(E(e2, (e3, r5) => [e3, r5]), (e3) => k(w(e3[0]), "required"));
|
|
83
|
-
if ($(r4)) for (const t2 of r4) {
|
|
84
|
-
const [r5, o3] = t2;
|
|
85
|
-
r5.required !== a2 && (e2[o3] = { ...r5, required: a2 });
|
|
86
|
-
}
|
|
87
|
-
else e2.push({ required: a2 });
|
|
88
|
-
}
|
|
89
|
-
return e2;
|
|
90
|
-
}), D2 = a(() => $(P2.value) > 0), O2 = a(() => M(P2.value, "required") || l2.required), R2 = a(() => l2.disabled);
|
|
91
|
-
let G2 = null, N2 = false;
|
|
92
|
-
const Q2 = (e2, r3) => {
|
|
93
|
-
if (N2 || !l2.prop || R2.value) return Promise.resolve(true);
|
|
94
|
-
if (!D2.value) return r3 == null ? void 0 : r3(true), Promise.resolve(true);
|
|
95
|
-
const a2 = ((e3) => {
|
|
96
|
-
const r4 = P2.value;
|
|
97
|
-
return r4 ? S(r4, (r5) => !(!r5.trigger && e3 && "change" !== e3) && (!r5.trigger || !e3 || (A(r5.trigger) ? k(r5.trigger, e3) : r5.trigger === e3))).map(({ trigger: e4, ...r5 }) => r5) : [];
|
|
98
|
-
})(e2);
|
|
99
|
-
if (!$(a2)) return r3 == null ? void 0 : r3(true), Promise.resolve(true);
|
|
100
|
-
u2.value = "validating";
|
|
101
|
-
const t2 = ((e3) => {
|
|
102
|
-
const r4 = l2.prop;
|
|
103
|
-
return r4 ? new H({ [r4]: e3 }).validate({ [r4]: V2.value }, { firstFields: true }).then(() => (u2.value = "success", i2 == null ? void 0 : i2.emits("validate", l2, true, ""), j2.value = "", true)).catch((e4) => {
|
|
104
|
-
const { errors: r5 } = e4;
|
|
105
|
-
return u2.value = "error", j2.value = r5 && $(r5) > 0 ? r5[0].message ?? "" : "", i2 == null ? void 0 : i2.emits("validate", l2, false, j2.value), Promise.reject(e4);
|
|
106
|
-
}) : null;
|
|
107
|
-
})(a2);
|
|
108
|
-
return t2 ? t2.then(() => (r3 == null ? void 0 : r3(true), true)).catch((e3) => {
|
|
109
|
-
const { fields: a3 } = e3;
|
|
110
|
-
return r3 == null ? void 0 : r3(false, a3), Promise.reject(a3);
|
|
111
|
-
}) : Promise.reject(false);
|
|
112
|
-
}, U2 = () => {
|
|
113
|
-
const e2 = i2 == null ? void 0 : i2.model;
|
|
114
|
-
e2 && l2.prop && !B(z(e2, l2.prop)) && (N2 = true, C(e2, l2.prop, T(G2))), q(() => {
|
|
115
|
-
W2();
|
|
116
|
-
});
|
|
117
|
-
}, W2 = () => {
|
|
118
|
-
u2.value = "init", j2.value = "", N2 = false;
|
|
119
|
-
}, te2 = s({ id: p(""), prop: a(() => l2.prop ?? ""), validateStatus: a(() => u2.value), disabled: R2, validate: Q2, resetField: U2, clearValidate: W2 }), oe2 = a(() => "horizontal" === (i2 == null ? void 0 : i2.direction));
|
|
120
|
-
return d(L, te2), e(() => {
|
|
121
|
-
l2.prop && (i2 == null ? void 0 : i2.addField(te2), G2 = V2.value);
|
|
122
|
-
}), f(() => {
|
|
123
|
-
l2.prop && (i2 == null ? void 0 : i2.removeField(te2));
|
|
124
|
-
}), o2({ validateMessage: j2, validateStatus: u2, validate: Q2, resetField: U2, clearValidate: W2 }), (e2, a2) => (c(), n("div", { class: b(["mc-form-item", { "mc-form-item-horizontal": oe2.value }]) }, [v(e2.$slots, "label", { required: O2.value }, () => [m("div", null, [m("div", X, [r2.label ? (c(), n("label", Y, [m("span", { class: b(["mc-form-item-lable-text", { "mc-form-item-label-required": O2.value }]) }, I(r2.label), 3), r2.help || e2.$slots.help ? (c(), n("div", Z, [v(e2.$slots, "help", {}, () => [y(J, { content: r2.help, "icon-size": 20 }, null, 8, ["content"])], true)])) : h("", true)])) : h("", true), v(e2.$slots, "tool", {}, void 0, true)]), r2.desc || e2.$slots.desc ? (c(), n("div", ee, [v(e2.$slots, "desc", {}, () => [g(I(r2.desc), 1)], true)])) : h("", true)])], true), m("div", re, [v(e2.$slots, "default", {}, void 0, true), y(x, { name: "mc-form-item-error" }, { default: _(() => [j2.value ? (c(), n("div", ae, I(j2.value), 1)) : h("", true)]), _: 1 })])], 2));
|
|
125
|
-
} }), [["__scopeId", "data-v-6700cc07"]]), oe = G(W), le = G(te);
|
|
126
|
-
export {
|
|
127
|
-
oe as M,
|
|
128
|
-
N as a,
|
|
129
|
-
le as b,
|
|
130
|
-
Q as u
|
|
131
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as c, createElementBlock as s, openBlock as o, normalizeStyle as i, createElementVNode as t, normalizeClass as l, computed as a } from "vue";
|
|
2
|
-
import { _ as n, w as r } from "./utils-DhYrNPrr.js";
|
|
3
|
-
import { useWidthHeight as m } from "@mc-plus/hooks";
|
|
4
|
-
const p = n(e({ name: "McIcon", __name: "mc-icon", props: { name: {}, size: { default: 24 }, color: {} }, emits: ["click"], setup(e2, { expose: a2, emit: n2 }) {
|
|
5
|
-
const r2 = n2, m2 = c();
|
|
6
|
-
return a2({ ref: m2 }), (c2, a3) => (o(), s("span", { class: "mc-icon", style: i({ fontSize: `${e2.size}px`, width: `${e2.size}px`, height: `${e2.size}px`, color: e2.color }) }, [t("i", { ref_key: "_ref", ref: m2, class: l(["mc-iconfont", `mc-icon--${e2.name}`]), onClick: a3[0] || (a3[0] = (e3) => ((e4) => {
|
|
7
|
-
r2("click", e4);
|
|
8
|
-
})(e3)) }, null, 2)], 4));
|
|
9
|
-
} }), [["__scopeId", "data-v-3f56ebd0"]]), u = r(p), f = n(e({ name: "McIconPlus", __name: "mc-icon-plus", props: { name: {}, size: { default: 24 }, width: {}, height: {}, color: {}, cursor: { default: "default" } }, emits: ["click"], setup(e2, { emit: c2 }) {
|
|
10
|
-
const n2 = e2, r2 = c2, { width: p2, height: u2 } = m(), f2 = a(() => n2.width ? p2.value : `${n2.size}px`), h2 = a(() => n2.height ? u2.value : `${n2.size}px`), d = () => {
|
|
11
|
-
r2("click", n2.name);
|
|
12
|
-
};
|
|
13
|
-
return (c3, a2) => (o(), s("span", { class: "mc-icon-plus", style: i({ fontSize: `${e2.size}px`, width: f2.value, height: h2.value, color: e2.color, cursor: e2.cursor }), onClick: d }, [t("i", { class: l(["mc-iconfont-plus", `mc-icon-plus-${e2.name}`]) }, null, 2)], 4));
|
|
14
|
-
} }), [["__scopeId", "data-v-17b36944"]]), h = r(f);
|
|
15
|
-
export {
|
|
16
|
-
p as M,
|
|
17
|
-
f as a,
|
|
18
|
-
u as b,
|
|
19
|
-
h as c
|
|
20
|
-
};
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { ref as e, computed as t, inject as a, watch as u, defineComponent as l, onMounted as i, createElementBlock as s, openBlock as n, normalizeStyle as o, normalizeClass as r, unref as p, createCommentVNode as d, createElementVNode as c, renderSlot as f, createBlock as v, withKeys as m, createVNode as x, Fragment as y, nextTick as g, provide as I } from "vue";
|
|
2
|
-
import { useProp as h, useFocus as b, useHover as _ } from "@mc-plus/hooks";
|
|
3
|
-
import { M as G } from "./mc-icon-C4bB78Bl.js";
|
|
4
|
-
import { u as w, a as A } from "./mc-form-DzA54Vbo.js";
|
|
5
|
-
import { a as V, o as S, p as $, q as k, b as E, i as B } from "./vendor-CfcDHsSD.js";
|
|
6
|
-
import { _ as F, w as C } from "./utils-DhYrNPrr.js";
|
|
7
|
-
const P = Symbol("InputGroupContext"), R = (e2) => {
|
|
8
|
-
const l2 = a(P, void 0);
|
|
9
|
-
if (!l2) return;
|
|
10
|
-
const i2 = t(() => l2.disabled.value), s2 = h("inputGroupPosition");
|
|
11
|
-
if (!s2 || !s2.value) return;
|
|
12
|
-
const { validateStatus: n2, isExpanded: o2, isFocused: r2, isHovering: p2 } = e2;
|
|
13
|
-
return n2 && u(n2, (e3) => {
|
|
14
|
-
l2.setInputGroupValidate(e3);
|
|
15
|
-
}), o2 && u(o2, (e3) => {
|
|
16
|
-
l2.setInputGroupExpanded(e3);
|
|
17
|
-
}), u([r2, p2], ([e3, t2]) => {
|
|
18
|
-
e3 || t2 ? l2.setInputGroupActived(true, s2.value) : l2.setInputGroupActived(false, s2.value);
|
|
19
|
-
}), { inputGroupDisabled: i2 };
|
|
20
|
-
}, j = { key: 0, class: "mc-input__prefix" }, D = ["id", "type", "disabled", "readonly", "autocomplete", "placeholder", "autofocus", "maxlength"], z = { key: 2, class: "mc-input__password" }, H = { key: 0, class: "mc-input__suffix" }, M = { key: 4, class: "mc-input-append" }, T = { class: "mc-input-append-text" }, q = C(F(l({ name: "McInput", __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(a2, { expose: l2, emit: I2 }) {
|
|
21
|
-
const h2 = a2, { formatter: A2, parser: F2 } = h2, C2 = I2, P2 = e(), q2 = t(() => E(h2.modelValue) ? "" : k(h2.modelValue)), K2 = (e2) => ("number" === h2.type ? e2 = ((e3) => e3.replace(/[^\d]/g, ""))(e2) : "currency" === h2.type && (e2 = ((e3, t2 = 8) => {
|
|
22
|
-
e3 = e3.replace(/(?:[^0-9.]+)/g, "");
|
|
23
|
-
const [a3, ...u2] = e3.split(".");
|
|
24
|
-
if (u2.length) {
|
|
25
|
-
const e4 = u2.join("");
|
|
26
|
-
return 0 === t2 ? a3 : `${a3}.${e4.substring(0, t2)}`;
|
|
27
|
-
}
|
|
28
|
-
return a3;
|
|
29
|
-
})(e2, h2.currencyAccuracy)), B(F2) && (e2 = F2(e2)), e2), O2 = () => {
|
|
30
|
-
const e2 = P2.value, t2 = (a3 = q2.value, "number" === h2.type ? a3 = ((e3) => e3.replace(/[^\d]/g, ""))(a3) : "currency" === h2.type && (a3 = ((e3) => {
|
|
31
|
-
e3 = e3.toString();
|
|
32
|
-
const [t3, a4] = e3.toString().split("."), u2 = t3.replace(/(\d)(?=(\d{3})+$)/g, "$1,");
|
|
33
|
-
return V(e3, ".") ? `${u2}.${a4}` : u2;
|
|
34
|
-
})(a3)), B(A2) && (a3 = A2(a3)), a3);
|
|
35
|
-
var a3;
|
|
36
|
-
e2 && e2.value !== t2 && (e2.value = t2);
|
|
37
|
-
};
|
|
38
|
-
i(() => {
|
|
39
|
-
O2();
|
|
40
|
-
});
|
|
41
|
-
const J2 = e(false), L = t(() => "password" === h2.type), { formItem: N, formId: Q, formDisabled: U, validateStyle: W, statusIcon: X } = w({ externalDisabled: t(() => !!(ue == null ? void 0 : ue.inputGroupDisabled.value)) }), { wrapperRef: Y, isFocused: Z, handleFocus: ee, handleBlur: te } = b(P2, { afterBlur() {
|
|
42
|
-
N == null ? void 0 : N.validate("blur");
|
|
43
|
-
} }), { isHovering: ae } = _(Y), ue = R({ validateStatus: t(() => (N == null ? void 0 : N.validateStatus) || "init"), isFocused: Z, isHovering: ae }), le = () => {
|
|
44
|
-
C2("delete");
|
|
45
|
-
}, ie = (e2) => {
|
|
46
|
-
C2("paste", e2);
|
|
47
|
-
};
|
|
48
|
-
u(() => h2.currencyAccuracy, () => {
|
|
49
|
-
C2("update:modelValue", K2(q2.value));
|
|
50
|
-
});
|
|
51
|
-
const { recordCursor: se, setCursor: ne } = function(t2) {
|
|
52
|
-
const a3 = e();
|
|
53
|
-
return { recordCursor: () => {
|
|
54
|
-
if (!t2.value) return;
|
|
55
|
-
const { selectionStart: e2, selectionEnd: u2, value: l3 } = t2.value;
|
|
56
|
-
if (!e2 || !u2) return;
|
|
57
|
-
const i2 = l3.slice(0, e2), s2 = l3.slice(u2);
|
|
58
|
-
a3.value = { selectionStart: e2, selectionEnd: u2, value: l3, beforeTxt: i2, afterTxt: s2 };
|
|
59
|
-
}, setCursor: () => {
|
|
60
|
-
if (!t2.value || !a3.value) return;
|
|
61
|
-
const { value: e2 } = t2.value, { beforeTxt: u2, afterTxt: l3, selectionStart: i2 } = a3.value;
|
|
62
|
-
if (!u2 || !l3 || !i2) return;
|
|
63
|
-
let s2 = e2.length;
|
|
64
|
-
if (S(e2, l3)) s2 = e2.length - l3.length;
|
|
65
|
-
else if ($(e2, u2)) s2 = u2.length;
|
|
66
|
-
else {
|
|
67
|
-
const t3 = u2[i2 - 1], a4 = e2.indexOf(t3, i2 - 1);
|
|
68
|
-
-1 !== a4 && (s2 = a4 + 1);
|
|
69
|
-
}
|
|
70
|
-
t2.value.setSelectionRange(s2, s2);
|
|
71
|
-
} };
|
|
72
|
-
}(P2), oe = async (e2) => {
|
|
73
|
-
const { value: t2 } = e2.target;
|
|
74
|
-
se(), C2("update:modelValue", K2(t2)), C2("input", K2(t2)), await g(), O2(), ne(), N == null ? void 0 : N.validate("input");
|
|
75
|
-
}, re = (e2) => {
|
|
76
|
-
const { value: t2 } = e2.target;
|
|
77
|
-
C2("change", K2(t2));
|
|
78
|
-
}, pe = () => {
|
|
79
|
-
U.value || (J2.value = !J2.value);
|
|
80
|
-
};
|
|
81
|
-
return u(() => U.value, (e2) => {
|
|
82
|
-
e2 && (J2.value = false);
|
|
83
|
-
}), u(q2, () => {
|
|
84
|
-
O2();
|
|
85
|
-
}), l2({ ref: P2, focus: async () => {
|
|
86
|
-
var _a;
|
|
87
|
-
await g(), (_a = P2.value) == null ? void 0 : _a.focus();
|
|
88
|
-
}, blur: async () => {
|
|
89
|
-
var _a;
|
|
90
|
-
(_a = P2.value) == null ? void 0 : _a.blur();
|
|
91
|
-
}, select: () => {
|
|
92
|
-
var _a;
|
|
93
|
-
(_a = P2.value) == null ? void 0 : _a.select();
|
|
94
|
-
}, clear: () => {
|
|
95
|
-
C2("update:modelValue", ""), C2("input", ""), C2("change", ""), C2("clear"), N == null ? void 0 : N.clearValidate();
|
|
96
|
-
} }), (e2, t2) => (n(), s("div", { class: r(["mc-input", { "mc-input--disabled": p(U), "mc-input--focused": p(Z), "mc-input--inputed": a2.modelValue, "mc-input-hovering": p(ae), [p(W)]: p(W) }]), style: o({ width: a2.width, height: a2.height }), ref_key: "wrapperRef", ref: Y }, [e2.$slots.prefix || a2.prefixIcon ? (n(), s("div", j, [f(e2.$slots, "prefix", {}, () => [a2.prefixIcon ? (n(), v(G, { key: 0, class: "mc-input-icon", name: a2.prefixIcon, size: 24 }, null, 8, ["name"])) : d("", true)], true)])) : d("", true), c("input", { class: "mc-input__inner", style: o({ textAlign: a2.textAlign }), ref_key: "inputRef", ref: P2, id: p(Q), type: L.value ? J2.value ? "text" : "password" : "text", disabled: p(U), readonly: a2.readonly, autocomplete: a2.autocomplete, placeholder: a2.placeholder, autofocus: a2.autofocus, maxlength: a2.maxlength, onInput: oe, onChange: re, onFocus: t2[0] || (t2[0] = (...e3) => p(ee) && p(ee)(...e3)), onBlur: t2[1] || (t2[1] = (...e3) => p(te) && p(te)(...e3)), onKeydown: m(le, ["delete"]), onPaste: ie }, null, 44, D), p(X) ? (n(), s("div", { key: 1, class: r(["mc-input__status", p(W)]) }, [x(G, { name: p(X), size: 24 }, null, 8, ["name"])], 2)) : d("", true), "password" === a2.type ? (n(), s("div", z, [x(G, { class: "mc-input-icon", name: J2.value ? "Review-Hidden" : "Review", size: 24, onClick: pe }, null, 8, ["name"])])) : (n(), s(y, { key: 3 }, [e2.$slots.suffix || a2.suffixIcon ? (n(), s("div", H, [f(e2.$slots, "suffix", {}, () => [a2.suffixIcon ? (n(), v(G, { key: 0, name: a2.suffixIcon, size: 24 }, null, 8, ["name"])) : d("", true)], true)])) : d("", true)], 64)), e2.$slots.append ? (n(), s("div", M, [c("div", T, [f(e2.$slots, "append", {}, void 0, true)])])) : d("", true)], 6));
|
|
97
|
-
} }), [["__scopeId", "data-v-ca647dfd"]])), K = ["id"], O = { key: 0, class: "mc-input-group-divider" }, J = C(F(l({ name: "McInputGroup", __name: "mc-input-group", props: { disabled: { type: Boolean, default: false }, suffixFlex: { default: 1 }, prefixFlex: { default: 1 } }, setup(a2) {
|
|
98
|
-
const { isError: u2, isExpanded: l2, isPrefixActived: i2, isSuffixActived: v2, setInputGroupValidate: m2, setInputGroupExpanded: x2, setInputGroupActived: y2 } = (() => {
|
|
99
|
-
const a3 = e("init"), u3 = t(() => "error" === a3.value), l3 = e(false), i3 = e(false), s2 = e(false);
|
|
100
|
-
return { validateStatus: a3, isError: u3, isExpanded: l3, isPrefixActived: i3, isSuffixActived: s2, setInputGroupValidate: (e2) => {
|
|
101
|
-
a3.value = e2;
|
|
102
|
-
}, setInputGroupExpanded: (e2) => {
|
|
103
|
-
l3.value = e2;
|
|
104
|
-
}, setInputGroupActived: (e2, t2) => {
|
|
105
|
-
"prefix" === t2 ? i3.value = e2 : s2.value = e2;
|
|
106
|
-
} };
|
|
107
|
-
})(), { formId: g2, formDisabled: h2 } = A(), b2 = t(() => !i2.value && !v2.value && !l2.value || h2.value);
|
|
108
|
-
return I(P, { disabled: h2, setInputGroupExpanded: x2, setInputGroupValidate: m2, setInputGroupActived: y2 }), (e2, t2) => (n(), s("div", { id: p(g2), class: r(["mc-input-group", { "mc-input-group-disabled": p(h2) }]) }, [c("div", { class: r(["mc-input-group-prefix", { "mc-input-group-prefix-expanded": p(l2), "mc-input-group-prefix-actived": p(i2), "mc-input-group-prefix-error": p(u2) }]), style: o({ flex: a2.prefixFlex }) }, [f(e2.$slots, "prefix", {}, void 0, true)], 6), b2.value ? (n(), s("div", O)) : d("", true), c("div", { class: r(["mc-input-group-suffix", { "mc-input-group-suffix-expanded": p(l2), "mc-input-group-suffix-actived": p(v2), "mc-input-group-suffix-error": p(u2) }]), style: o({ flex: a2.suffixFlex }) }, [f(e2.$slots, "suffix", {}, void 0, true)], 6)], 10, K));
|
|
109
|
-
} }), [["__scopeId", "data-v-9b76b4d0"]]));
|
|
110
|
-
export {
|
|
111
|
-
P as I,
|
|
112
|
-
q as M,
|
|
113
|
-
J as a,
|
|
114
|
-
R as u
|
|
115
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, watch as t, nextTick as l, createElementBlock as a, createCommentVNode as i, openBlock as s, createBlock as r, Teleport as d, createVNode as f, Transition as m, withCtx as u, normalizeClass as n, createElementVNode as c, renderSlot as h, normalizeStyle as p } from "vue";
|
|
2
|
-
import { M as v } from "./mc-overlay-ClS50yUJ.js";
|
|
3
|
-
import { _ as g } from "./mc-modal-header-Cs3LnuT0.js";
|
|
4
|
-
import { M as b } from "./mc-footer-CzKkst7M.js";
|
|
5
|
-
import { useWindowResize as x, useResizeObserver as y } from "@mc-plus/hooks";
|
|
6
|
-
import { _, w } from "./utils-DhYrNPrr.js";
|
|
7
|
-
const k = { key: 0, class: "mc-lightbox-container" }, $ = { class: "mc-lightbox-header" }, B = { key: 0, class: "mc-lightbox-bottom-padding" }, H = w(_(e({ name: "McLightbox", __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: _2, emit: w2 }) {
|
|
8
|
-
const H2 = e2, C = w2, V = o(), j = o(), M = o(), R = o(), z = o(false), F = o(false), S = o(false), I = () => {
|
|
9
|
-
H2.maskClosable && A();
|
|
10
|
-
}, L = () => {
|
|
11
|
-
A();
|
|
12
|
-
}, q = async (e3 = true) => {
|
|
13
|
-
z.value = true, F.value = true, await l(), S.value = true, e3 && (C("open"), C("update:modelValue", true));
|
|
14
|
-
}, A = async (e3 = true) => {
|
|
15
|
-
S.value = false, await l(), F.value = false, await l(), z.value = false, e3 && (C("close"), C("update:modelValue", false));
|
|
16
|
-
};
|
|
17
|
-
t(() => H2.modelValue, (e3, o2) => {
|
|
18
|
-
!o2 && e3 ? q(false) : o2 && !e3 && A(false);
|
|
19
|
-
}, { immediate: true });
|
|
20
|
-
const D = () => {
|
|
21
|
-
var _a, _b;
|
|
22
|
-
if (!M.value) return;
|
|
23
|
-
const e3 = ((_a = j.value) == null ? void 0 : _a.offsetHeight) ?? 0, o2 = 0.7 * window.innerHeight - 84 - e3, t2 = ((_b = R.value) == null ? void 0 : _b.offsetHeight) ?? 40;
|
|
24
|
-
M.value.style.height = `${t2 > o2 ? o2 : t2}px`;
|
|
25
|
-
};
|
|
26
|
-
return x(() => {
|
|
27
|
-
D();
|
|
28
|
-
}), y(j, async ({ height: e3 }) => {
|
|
29
|
-
const o2 = V.value;
|
|
30
|
-
o2 && (o2.style.paddingBottom = `${e3}px`, await l(), D());
|
|
31
|
-
}), y(R, () => {
|
|
32
|
-
D();
|
|
33
|
-
}), _2({ ref: V, open: q, close: A }), (o2, t2) => z.value ? (s(), a("div", k, [(s(), r(d, { to: e2.portCssSelector }, [f(m, { name: "mc-lightbox-overlay" }, { default: u(() => [f(v, { visible: F.value, fixed: e2.fixed, onClick: I }, { default: u(() => [f(m, { name: "mc-lightbox-content" }, { default: u(() => [S.value ? (s(), a("div", { key: 0, class: n(["mc-lightbox", [`mc-lightbox-${e2.size}`]]), ref_key: "lightboxRef", ref: V }, [c("div", $, [h(o2.$slots, "header", {}, () => [f(g, { title: e2.title, "show-border": e2.showBorder, onClose: L }, { default: u(() => [h(o2.$slots, "header-title", {}, void 0, true)]), _: 3 }, 8, ["title", "show-border"])], true)]), c("div", { class: "mc-lightbox-content-wrapper", ref_key: "wrapperRef", ref: M }, [c("div", { class: "mc-lightbox-content", style: p({ minHeight: e2.minHeight ? `${e2.minHeight}px` : void 0 }), ref_key: "contentRef", ref: R }, [h(o2.$slots, "default", {}, void 0, true)], 4)], 512), c("div", { class: "mc-lightbox-footer", ref_key: "footerRef", ref: j }, [e2.hideFooter ? (s(), a("div", B)) : h(o2.$slots, "footer", { key: 1 }, () => [f(b, null, { left: u(() => [h(o2.$slots, "footer-left", {}, void 0, true)]), right: u(() => [h(o2.$slots, "footer-right", {}, void 0, true)]), "right-button-group": u(() => [h(o2.$slots, "footer-right-button-group", {}, void 0, true)]), desc: u(() => [h(o2.$slots, "footer-desc", {}, void 0, true)]), _: 3 })], true)], 512)], 2)) : i("", true)]), _: 3 })]), _: 3 }, 8, ["visible", "fixed"])]), _: 3 })], 8, ["to"]))])) : i("", true);
|
|
34
|
-
} }), [["__scopeId", "data-v-2fb9861d"]]));
|
|
35
|
-
export {
|
|
36
|
-
H as M
|
|
37
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, computed as s, createElementBlock as a, openBlock as i, normalizeClass as e, createCommentVNode as o, renderSlot as n, createElementVNode as d, createVNode as t, toDisplayString as c } from "vue";
|
|
2
|
-
import { M as m } from "./mc-icon-C4bB78Bl.js";
|
|
3
|
-
import { _ as p, w as u } from "./utils-DhYrNPrr.js";
|
|
4
|
-
const g = { key: 0, class: "mc-loading-pulse" }, r = { key: 1, class: "mc-loading-spin" }, f = { class: "mc-loading-text" }, v = p(l({ name: "McLoading", __name: "mc-loading", props: { loading: { type: Boolean }, loadingText: {}, size: { default: "medium" }, type: { default: "spin" } }, setup(l2) {
|
|
5
|
-
const p2 = l2, u2 = s(() => "small" === p2.size ? 24 : "medium" === p2.size ? 32 : 64);
|
|
6
|
-
return (s2, p3) => (i(), a("div", { class: e(["mc-loading", [`mc-loading-${l2.size}`, { "mc-loading-active": l2.loading }]]) }, ["pulse" === l2.type ? (i(), a("div", g, [...p3[0] || (p3[0] = [d("i", { class: "mc-loading-pulse-dot" }, null, -1), d("i", { class: "mc-loading-pulse-dot" }, null, -1), d("i", { class: "mc-loading-pulse-dot" }, null, -1), d("i", { class: "mc-loading-pulse-dot" }, null, -1)])])) : "spin" === l2.type ? (i(), a("div", r, [t(m, { name: "Loading_Line", size: u2.value }, null, 8, ["size"])])) : o("", true), l2.loadingText || s2.$slots.default ? n(s2.$slots, "default", { key: 2 }, () => [d("p", f, c(l2.loadingText), 1)], true) : o("", true)], 2));
|
|
7
|
-
} }), [["__scopeId", "data-v-5c6aa641"]]), y = u(v);
|
|
8
|
-
export {
|
|
9
|
-
v as M,
|
|
10
|
-
y as a
|
|
11
|
-
};
|