@dazhicheng/ui 1.0.6 → 1.0.8
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/components/tt-area/TtArea.vue.d.ts.map +1 -0
- package/dist/components/tt-area/index.d.ts.map +1 -0
- package/dist/{packages/ui/src/components → components}/tt-button/index.d.ts.map +1 -1
- package/dist/components/tt-button/index.vue.d.ts.map +1 -0
- package/dist/components/tt-checkbox/index.d.ts.map +1 -0
- package/dist/components/tt-checkbox/index.vue.d.ts.map +1 -0
- package/dist/components/tt-checkbox/type.d.ts.map +1 -0
- package/dist/components/tt-empty/index.d.ts.map +1 -0
- package/dist/{packages/ui/src/components → components}/tt-form/index.d.ts +1 -1
- package/dist/components/tt-form/index.d.ts.map +1 -0
- package/dist/components/tt-form/src/compare.d.ts.map +1 -0
- package/dist/components/tt-form/src/components/ExpandableArrow.vue.d.ts.map +1 -0
- package/dist/components/tt-form/src/components/FormActions.vue.d.ts.map +1 -0
- package/dist/{packages/ui/src/components → components}/tt-form/src/components/FormFilter.vue.d.ts +1 -1
- package/dist/components/tt-form/src/components/FormFilter.vue.d.ts.map +1 -0
- package/dist/components/tt-form/src/components/Slot.d.ts.map +1 -0
- package/dist/components/tt-form/src/config.d.ts.map +1 -0
- package/dist/components/tt-form/src/form/FormControl.vue.d.ts.map +1 -0
- package/dist/components/tt-form/src/form/FormDescription.vue.d.ts.map +1 -0
- package/dist/components/tt-form/src/form/FormItem.vue.d.ts.map +1 -0
- package/dist/components/tt-form/src/form/FormLabel.vue.d.ts.map +1 -0
- package/dist/components/tt-form/src/form/FormMessage.vue.d.ts.map +1 -0
- package/dist/components/tt-form/src/form/FormWarnMessage.vue.d.ts.map +1 -0
- package/dist/components/tt-form/src/form/RenderContent.vue.d.ts.map +1 -0
- package/dist/components/tt-form/src/form/index.d.ts.map +1 -0
- package/dist/components/tt-form/src/form/injectionKeys.d.ts.map +1 -0
- package/dist/components/tt-form/src/form/useFormField.d.ts.map +1 -0
- package/dist/components/tt-form/src/form-api.d.ts.map +1 -0
- package/dist/components/tt-form/src/form-render/context.d.ts.map +1 -0
- package/dist/components/tt-form/src/form-render/dependencies.d.ts.map +1 -0
- package/dist/components/tt-form/src/form-render/expandable.d.ts.map +1 -0
- package/dist/components/tt-form/src/form-render/form-field.vue.d.ts.map +1 -0
- package/dist/components/tt-form/src/form-render/form-label.vue.d.ts.map +1 -0
- package/dist/components/tt-form/src/form-render/form.vue.d.ts.map +1 -0
- package/dist/components/tt-form/src/form-render/helper.d.ts.map +1 -0
- package/dist/components/tt-form/src/form-render/index.d.ts.map +1 -0
- package/dist/components/tt-form/src/hooks/useEmitAsProps.d.ts.map +1 -0
- package/dist/components/tt-form/src/hooks/useFormFieldBus.d.ts.map +1 -0
- package/dist/components/tt-form/src/hooks/useForwardPriorityValues.d.ts.map +1 -0
- package/dist/components/tt-form/src/hooks/useForwardProps.d.ts.map +1 -0
- package/dist/components/tt-form/src/hooks/useForwardPropsEmits.d.ts.map +1 -0
- package/dist/{packages/ui/src/components → components}/tt-form/src/index.vue.d.ts +8 -8
- package/dist/components/tt-form/src/index.vue.d.ts.map +1 -0
- package/dist/components/tt-form/src/shared/createContext.d.ts.map +1 -0
- package/dist/components/tt-form/src/shared/global-state.d.ts.map +1 -0
- package/dist/components/tt-form/src/shared/store.d.ts.map +1 -0
- package/dist/components/tt-form/src/shared/zod-defaults.d.ts.map +1 -0
- package/dist/components/tt-form/src/types/types.d.ts.map +1 -0
- package/dist/components/tt-form/src/use-form-context.d.ts.map +1 -0
- package/dist/components/tt-form/src/use-form-v2.d.ts.map +1 -0
- package/dist/components/tt-form-adapter/component/index.d.ts +14 -0
- package/dist/components/tt-form-adapter/component/index.d.ts.map +1 -0
- package/dist/components/tt-form-adapter/index.d.ts +37 -0
- package/dist/components/tt-form-adapter/index.d.ts.map +1 -0
- package/dist/components/tt-form-item-error-tooltip/index.d.ts.map +1 -0
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts.map +1 -0
- package/dist/components/tt-icon/index.d.ts.map +1 -0
- package/dist/components/tt-icon/index.vue.d.ts.map +1 -0
- package/dist/components/tt-modal/index.d.ts.map +1 -0
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts.map +1 -0
- package/dist/components/tt-modal/src/components/ModalFooter.vue.d.ts.map +1 -0
- package/dist/components/tt-modal/src/components/ModalHeader.vue.d.ts.map +1 -0
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.d.ts.map +1 -0
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts.map +1 -0
- package/dist/components/tt-modal/src/index.d.ts.map +1 -0
- package/dist/components/tt-modal/src/props.d.ts.map +1 -0
- package/dist/components/tt-modal/src/typing.d.ts.map +1 -0
- package/dist/components/tt-modal/src/utils/modal-api.d.ts.map +1 -0
- package/dist/{packages/ui/src/components → components}/tt-part/index.d.ts.map +1 -1
- package/dist/components/tt-part/index.vue.d.ts.map +1 -0
- package/dist/components/tt-part/type.d.ts.map +1 -0
- package/dist/components/tt-part-item/index.d.ts.map +1 -0
- package/dist/components/tt-part-item/index.vue.d.ts.map +1 -0
- package/dist/components/tt-part-item/type.d.ts.map +1 -0
- package/dist/components/tt-select/index.d.ts.map +1 -0
- package/dist/components/tt-select/src/Select.vue.d.ts +862 -0
- package/dist/components/tt-select/src/Select.vue.d.ts.map +1 -0
- package/dist/components/tt-select/src/components/SelectTable.vue.d.ts.map +1 -0
- package/dist/components/tt-select/src/components/Table.vue.d.ts.map +1 -0
- package/dist/components/tt-select/src/const.d.ts.map +1 -0
- package/dist/components/tt-select/src/hooks/useDataSource.d.ts.map +1 -0
- package/dist/components/tt-select/src/hooks/useGrid.d.ts.map +1 -0
- package/dist/components/tt-select/src/hooks/useKeyboard.d.ts.map +1 -0
- package/dist/components/tt-select/src/hooks/usePagination.d.ts.map +1 -0
- package/dist/components/tt-select/src/hooks/useSelect.d.ts.map +1 -0
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts.map +1 -0
- package/dist/components/tt-select/src/props.d.ts.map +1 -0
- package/dist/components/tt-select/src/types/index.d.ts.map +1 -0
- package/dist/components/tt-select/src/utils/index.d.ts.map +1 -0
- package/dist/components/tt-text/index.d.ts.map +1 -0
- package/dist/components/tt-text/index.vue.d.ts.map +1 -0
- package/dist/components/tt-tree-select/index.d.ts +6 -0
- package/dist/components/tt-tree-select/index.d.ts.map +1 -0
- package/dist/components/tt-tree-select/src/TtTreeSelect.vue.d.ts +7 -0
- package/dist/components/tt-tree-select/src/TtTreeSelect.vue.d.ts.map +1 -0
- package/dist/components/tt-tree-select/src/cache-options.d.ts +36 -0
- package/dist/components/tt-tree-select/src/cache-options.d.ts.map +1 -0
- package/dist/components/tt-tree-select/src/select.d.ts +11 -0
- package/dist/components/tt-tree-select/src/select.d.ts.map +1 -0
- package/dist/components/tt-tree-select/src/tree.d.ts +24 -0
- package/dist/components/tt-tree-select/src/tree.d.ts.map +1 -0
- package/dist/components/tt-tree-select/src/utils.d.ts +11 -0
- package/dist/components/tt-tree-select/src/utils.d.ts.map +1 -0
- package/dist/components/tt-validate/index.d.ts.map +1 -0
- package/dist/components/tt-validate/src/ErrorMessage.d.ts.map +1 -0
- package/dist/{packages/ui/src/components → components}/tt-validate/src/Field.d.ts +1 -1
- package/dist/components/tt-validate/src/Field.d.ts.map +1 -0
- package/dist/components/tt-validate/src/FieldArray.d.ts.map +1 -0
- package/dist/components/tt-validate/src/Form.d.ts.map +1 -0
- package/dist/components/tt-validate/src/config.d.ts.map +1 -0
- package/dist/components/tt-validate/src/defineRule.d.ts.map +1 -0
- package/dist/components/tt-validate/src/index.d.ts.map +1 -0
- package/dist/components/tt-validate/src/symbols.d.ts.map +1 -0
- package/dist/components/tt-validate/src/types/common.d.ts.map +1 -0
- package/dist/components/tt-validate/src/types/forms.d.ts.map +1 -0
- package/dist/components/tt-validate/src/types/index.d.ts.map +1 -0
- package/dist/components/tt-validate/src/types/paths.d.ts.map +1 -0
- package/dist/components/tt-validate/src/types/shared.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useField.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useFieldArray.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useFieldError.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useFieldState.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useFieldValue.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useForm.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useFormErrors.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useFormValues.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useIsFieldDirty.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useIsFieldTouched.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useIsFieldValid.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useIsFormDirty.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useIsFormTouched.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useIsFormValid.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useIsSubmitting.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useIsValidating.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useResetForm.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useSetFieldError.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useSetFieldTouched.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useSetFieldValue.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useSetFormErrors.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useSetFormTouched.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useSetFormValues.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useSubmitCount.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useSubmitForm.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useValidateField.d.ts.map +1 -0
- package/dist/components/tt-validate/src/useValidateForm.d.ts.map +1 -0
- package/dist/components/tt-validate/src/utils/assertions.d.ts.map +1 -0
- package/dist/components/tt-validate/src/utils/common.d.ts.map +1 -0
- package/dist/components/tt-validate/src/utils/events.d.ts.map +1 -0
- package/dist/components/tt-validate/src/utils/index.d.ts.map +1 -0
- package/dist/components/tt-validate/src/utils/rules.d.ts.map +1 -0
- package/dist/components/tt-validate/src/utils/shared.d.ts.map +1 -0
- package/dist/components/tt-validate/src/utils/vnode.d.ts.map +1 -0
- package/dist/components/tt-validate/src/validate.d.ts.map +1 -0
- package/dist/components/tt-validate/zod/index.d.ts.map +1 -0
- package/dist/components/types.d.ts.map +1 -0
- package/dist/css-B-NBzuuu.js +1 -0
- package/dist/css-B2XtZxnv.js +2 -0
- package/dist/css-ByWw4KN5.js +2 -0
- package/dist/css-CIkg43yy.js +1 -0
- package/dist/css-CKklk3nV.js +3 -0
- package/dist/css-COykwHo1.js +2 -0
- package/dist/css-Cgfo87Gs.js +1 -0
- package/dist/css-Chse_8b2.js +3 -0
- package/dist/css-CvjpN3r9.js +1 -0
- package/dist/css-D8FPIJO1.js +1 -0
- package/dist/css-DGumj5iO.js +1 -0
- package/dist/css-DLZxzZoB.js +1 -0
- package/dist/css-Dd6Nw96X.js +1 -0
- package/dist/css-sQ8IZeHP.js +4 -0
- package/dist/directives/auto-tip/index.d.ts.map +1 -0
- package/dist/directives/dialog-resize/index.d.ts.map +1 -0
- package/dist/directives/dialog-resize/use-css-variable.d.ts.map +1 -0
- package/dist/directives/dialog-resize/use-draggable.d.ts.map +1 -0
- package/dist/directives/dialog-resize/use-fullscreen.d.ts.map +1 -0
- package/dist/directives/dialog-resize/use-parse-translate.d.ts.map +1 -0
- package/dist/directives/dialog-resize/use-resizer.d.ts.map +1 -0
- package/dist/directives/disabled-tip/index.d.ts.map +1 -0
- package/dist/directives/index.d.ts.map +1 -0
- package/dist/event-CgLWlq-W.js +52 -0
- package/dist/hooks/useLoading.d.ts.map +1 -0
- package/dist/hooks/useTable.d.ts.map +1 -0
- package/dist/icon-DO5WEZ3U.js +15 -0
- package/dist/index-1hQOvP1X.js +1273 -0
- package/dist/index-7R1S3sB2.js +47918 -0
- package/dist/index-B-3b7Nox.js +22 -0
- package/dist/index-BHCo-WRT.js +658 -0
- package/dist/index-BQfVaV7A.js +216 -0
- package/dist/index-BWFNEHAe.js +78 -0
- package/dist/index-BZosiARJ.js +21 -0
- package/dist/index-BnaENTzr.js +46 -0
- package/dist/index-C9uVj2Ef.js +3471 -0
- package/dist/index-CMjNBMj5.js +3431 -0
- package/dist/index-CN_A-qCa.js +90 -0
- package/dist/index-CUL_IQbJ.js +334 -0
- package/dist/index-CxQRxjJp.js +909 -0
- package/dist/index-D2KfwzYW.js +832 -0
- package/dist/index-D72GrrFm.js +392 -0
- package/dist/index-MMce8S7G.js +2700 -0
- package/dist/index-RZOtcmxt.js +27 -0
- package/dist/index-_u3rhzTw.js +432 -0
- package/dist/index-rYtVbp5V.js +408 -0
- package/dist/{packages/ui/src/index.d.ts → index.d.ts} +3 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -48905
- package/dist/panel-time-pick.vue2-DYyyaJH8.js +2026 -0
- package/dist/style.css +1 -1
- package/dist/typescript-BpuhIBuJ.js +4 -0
- package/dist/use-form-common-props-CH53YdF-.js +98 -0
- package/dist/use-form-item--pOyiE--.js +71 -0
- package/dist/util-2yRGKqgX.js +2259 -0
- package/package.json +19 -9
- package/dist/packages/components/__test__/TtArea.test.d.ts +0 -2
- package/dist/packages/components/__test__/TtArea.test.d.ts.map +0 -1
- package/dist/packages/components/src/TtArea/TtArea.vue.d.ts.map +0 -1
- package/dist/packages/components/src/TtArea/index.d.ts.map +0 -1
- package/dist/packages/components/src/index.d.ts +0 -7
- package/dist/packages/components/src/index.d.ts.map +0 -1
- package/dist/packages/hooks/src/index.d.ts +0 -6
- package/dist/packages/hooks/src/index.d.ts.map +0 -1
- package/dist/packages/hooks/src/propTypes.d.ts +0 -7
- package/dist/packages/hooks/src/propTypes.d.ts.map +0 -1
- package/dist/packages/hooks/src/tools.d.ts +0 -40
- package/dist/packages/hooks/src/tools.d.ts.map +0 -1
- package/dist/packages/hooks/src/useDesign.d.ts +0 -5
- package/dist/packages/hooks/src/useDesign.d.ts.map +0 -1
- package/dist/packages/hooks/src/useIsScroll.d.ts +0 -6
- package/dist/packages/hooks/src/useIsScroll.d.ts.map +0 -1
- package/dist/packages/hooks/src/usePriorityValue.d.ts +0 -30
- package/dist/packages/hooks/src/usePriorityValue.d.ts.map +0 -1
- package/dist/packages/ui/__test__/TtArea.test.d.ts +0 -2
- package/dist/packages/ui/__test__/TtArea.test.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-button/index.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-checkbox/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-checkbox/index.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-checkbox/type.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-empty/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/compare.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/components/ExpandableArrow.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/components/FormActions.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/components/FormFilter.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/components/Slot.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/config.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form/FormControl.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form/FormDescription.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form/FormItem.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form/FormLabel.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form/FormMessage.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form/FormWarnMessage.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form/RenderContent.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form/injectionKeys.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form/useFormField.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form-api.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form-render/context.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form-render/dependencies.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form-render/expandable.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form-render/form-field.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form-render/form-label.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form-render/form.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form-render/helper.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/form-render/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/hooks/useEmitAsProps.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/hooks/useFormFieldBus.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/hooks/useForwardPriorityValues.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/hooks/useForwardProps.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/hooks/useForwardPropsEmits.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/index.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/shared/createContext.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/shared/global-state.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/shared/store.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/shared/zod-defaults.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/types/types.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/use-form-context.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form/src/use-form-v2.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form-item-error-tooltip/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-form-item-error-tooltip/index.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-icon/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-icon/index.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-modal/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-modal/src/RenderModal.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-modal/src/components/ModalFooter.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-modal/src/components/ModalHeader.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-modal/src/components/ModalWrapper.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-modal/src/hooks/useModalRender.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-modal/src/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-modal/src/props.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-modal/src/typing.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-modal/src/utils/modal-api.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-part/index.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-part/type.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-part-item/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-part-item/index.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-part-item/type.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-select/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-select/src/components/SelectTable.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-select/src/components/Table.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-select/src/const.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-select/src/hooks/useDataSource.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-select/src/hooks/useGrid.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-select/src/hooks/useKeyboard.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-select/src/hooks/usePagination.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-select/src/hooks/useSelect.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-select/src/hooks/useSelectTableEvent.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-select/src/props.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-select/src/types/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-select/src/utils/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-text/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-text/index.vue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/ErrorMessage.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/Field.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/FieldArray.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/Form.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/config.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/defineRule.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/symbols.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/types/common.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/types/forms.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/types/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/types/paths.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/types/shared.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useField.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useFieldArray.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useFieldError.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useFieldState.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useFieldValue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useForm.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useFormErrors.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useFormValues.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useIsFieldDirty.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useIsFieldTouched.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useIsFieldValid.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useIsFormDirty.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useIsFormTouched.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useIsFormValid.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useIsSubmitting.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useIsValidating.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useResetForm.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useSetFieldError.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useSetFieldTouched.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useSetFieldValue.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useSetFormErrors.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useSetFormTouched.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useSetFormValues.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useSubmitCount.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useSubmitForm.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useValidateField.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/useValidateForm.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/utils/assertions.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/utils/common.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/utils/events.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/utils/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/utils/rules.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/utils/shared.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/utils/vnode.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/src/validate.d.ts.map +0 -1
- package/dist/packages/ui/src/components/tt-validate/zod/index.d.ts.map +0 -1
- package/dist/packages/ui/src/components/types.d.ts.map +0 -1
- package/dist/packages/ui/src/directives/auto-tip/index.d.ts.map +0 -1
- package/dist/packages/ui/src/directives/dialog-resize/index.d.ts.map +0 -1
- package/dist/packages/ui/src/directives/dialog-resize/use-css-variable.d.ts.map +0 -1
- package/dist/packages/ui/src/directives/dialog-resize/use-draggable.d.ts.map +0 -1
- package/dist/packages/ui/src/directives/dialog-resize/use-fullscreen.d.ts.map +0 -1
- package/dist/packages/ui/src/directives/dialog-resize/use-parse-translate.d.ts.map +0 -1
- package/dist/packages/ui/src/directives/dialog-resize/use-resizer.d.ts.map +0 -1
- package/dist/packages/ui/src/directives/disabled-tip/index.d.ts.map +0 -1
- package/dist/packages/ui/src/directives/index.d.ts.map +0 -1
- package/dist/packages/ui/src/hooks/useLoading.d.ts.map +0 -1
- package/dist/packages/ui/src/hooks/useTable.d.ts.map +0 -1
- package/dist/packages/ui/src/index.d.ts.map +0 -1
- package/dist/packages/ui/vite.config.d.ts +0 -3
- package/dist/packages/ui/vite.config.d.ts.map +0 -1
- package/dist/packages/utils/__test__/math.test.d.ts +0 -2
- package/dist/packages/utils/__test__/math.test.d.ts.map +0 -1
- package/dist/packages/utils/__test__/string.test.d.ts +0 -2
- package/dist/packages/utils/__test__/string.test.d.ts.map +0 -1
- package/dist/packages/utils/src/axios/error.d.ts +0 -63
- package/dist/packages/utils/src/axios/error.d.ts.map +0 -1
- package/dist/packages/utils/src/axios/index.d.ts +0 -4
- package/dist/packages/utils/src/axios/index.d.ts.map +0 -1
- package/dist/packages/utils/src/axios/loadinSvg.d.ts +0 -2
- package/dist/packages/utils/src/axios/loadinSvg.d.ts.map +0 -1
- package/dist/packages/utils/src/axios/loading.d.ts +0 -12
- package/dist/packages/utils/src/axios/loading.d.ts.map +0 -1
- package/dist/packages/utils/src/axios/status.d.ts +0 -38
- package/dist/packages/utils/src/axios/status.d.ts.map +0 -1
- package/dist/packages/utils/src/axios/type.d.ts +0 -24
- package/dist/packages/utils/src/axios/type.d.ts.map +0 -1
- package/dist/packages/utils/src/calc.d.ts +0 -58
- package/dist/packages/utils/src/calc.d.ts.map +0 -1
- package/dist/packages/utils/src/file.d.ts +0 -13
- package/dist/packages/utils/src/file.d.ts.map +0 -1
- package/dist/packages/utils/src/index.d.ts +0 -12
- package/dist/packages/utils/src/index.d.ts.map +0 -1
- package/dist/packages/utils/src/install.d.ts +0 -4
- package/dist/packages/utils/src/install.d.ts.map +0 -1
- package/dist/packages/utils/src/is.d.ts +0 -238
- package/dist/packages/utils/src/is.d.ts.map +0 -1
- package/dist/packages/utils/src/merge.d.ts +0 -17
- package/dist/packages/utils/src/merge.d.ts.map +0 -1
- package/dist/packages/utils/src/stateHandler.d.ts +0 -22
- package/dist/packages/utils/src/stateHandler.d.ts.map +0 -1
- package/dist/packages/utils/src/string.d.ts +0 -4
- package/dist/packages/utils/src/string.d.ts.map +0 -1
- package/dist/packages/utils/src/testid-helper.d.ts +0 -151
- package/dist/packages/utils/src/testid-helper.d.ts.map +0 -1
- package/dist/packages/utils/src/tool.d.ts +0 -92
- package/dist/packages/utils/src/tool.d.ts.map +0 -1
- package/dist/vitest.config.d.ts +0 -3
- package/dist/vitest.config.d.ts.map +0 -1
- /package/dist/{packages/components/src/TtArea → components/tt-area}/TtArea.vue.d.ts +0 -0
- /package/dist/{packages/components/src/TtArea → components/tt-area}/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-button/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-button/index.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-checkbox/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-checkbox/index.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-checkbox/type.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-empty/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/compare.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/components/ExpandableArrow.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/components/FormActions.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/components/Slot.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/config.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form/FormControl.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form/FormDescription.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form/FormItem.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form/FormLabel.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form/FormMessage.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form/FormWarnMessage.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form/RenderContent.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form/injectionKeys.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form/useFormField.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form-api.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form-render/context.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form-render/dependencies.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form-render/expandable.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form-render/form-field.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form-render/form-label.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form-render/form.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form-render/helper.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/form-render/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/hooks/useEmitAsProps.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/hooks/useFormFieldBus.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/hooks/useForwardPriorityValues.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/hooks/useForwardProps.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/hooks/useForwardPropsEmits.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/shared/createContext.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/shared/global-state.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/shared/store.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/shared/zod-defaults.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/types/types.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/use-form-context.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form/src/use-form-v2.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form-item-error-tooltip/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-form-item-error-tooltip/index.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-icon/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-icon/index.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-modal/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-modal/src/RenderModal.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-modal/src/components/ModalFooter.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-modal/src/components/ModalHeader.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-modal/src/components/ModalWrapper.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-modal/src/hooks/useModalRender.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-modal/src/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-modal/src/props.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-modal/src/typing.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-modal/src/utils/modal-api.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-part/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-part/index.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-part/type.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-part-item/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-part-item/index.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-part-item/type.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-select/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-select/src/components/SelectTable.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-select/src/components/Table.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-select/src/const.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-select/src/hooks/useDataSource.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-select/src/hooks/useGrid.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-select/src/hooks/useKeyboard.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-select/src/hooks/usePagination.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-select/src/hooks/useSelect.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-select/src/hooks/useSelectTableEvent.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-select/src/props.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-select/src/types/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-select/src/utils/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-text/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-text/index.vue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/ErrorMessage.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/FieldArray.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/Form.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/config.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/defineRule.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/symbols.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/types/common.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/types/forms.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/types/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/types/paths.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/types/shared.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useField.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useFieldArray.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useFieldError.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useFieldState.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useFieldValue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useForm.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useFormErrors.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useFormValues.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useIsFieldDirty.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useIsFieldTouched.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useIsFieldValid.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useIsFormDirty.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useIsFormTouched.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useIsFormValid.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useIsSubmitting.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useIsValidating.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useResetForm.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useSetFieldError.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useSetFieldTouched.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useSetFieldValue.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useSetFormErrors.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useSetFormTouched.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useSetFormValues.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useSubmitCount.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useSubmitForm.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useValidateField.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/useValidateForm.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/utils/assertions.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/utils/common.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/utils/events.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/utils/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/utils/rules.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/utils/shared.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/utils/vnode.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/src/validate.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/tt-validate/zod/index.d.ts +0 -0
- /package/dist/{packages/ui/src/components → components}/types.d.ts +0 -0
- /package/dist/{packages/ui/src/directives → directives}/auto-tip/index.d.ts +0 -0
- /package/dist/{packages/ui/src/directives → directives}/dialog-resize/index.d.ts +0 -0
- /package/dist/{packages/ui/src/directives → directives}/dialog-resize/use-css-variable.d.ts +0 -0
- /package/dist/{packages/ui/src/directives → directives}/dialog-resize/use-draggable.d.ts +0 -0
- /package/dist/{packages/ui/src/directives → directives}/dialog-resize/use-fullscreen.d.ts +0 -0
- /package/dist/{packages/ui/src/directives → directives}/dialog-resize/use-parse-translate.d.ts +0 -0
- /package/dist/{packages/ui/src/directives → directives}/dialog-resize/use-resizer.d.ts +0 -0
- /package/dist/{packages/ui/src/directives → directives}/disabled-tip/index.d.ts +0 -0
- /package/dist/{packages/ui/src/directives → directives}/index.d.ts +0 -0
- /package/dist/{packages/ui/src/hooks → hooks}/useLoading.d.ts +0 -0
- /package/dist/{packages/ui/src/hooks → hooks}/useTable.d.ts +0 -0
|
@@ -0,0 +1,1273 @@
|
|
|
1
|
+
import { isNil as pe, flatten as ee, cloneDeep as te, isEqual as Le } from "lodash-es";
|
|
2
|
+
import { t as _, b as z, a as h, w as ve, j as X, d as xe } from "./use-form-common-props-CH53YdF-.js";
|
|
3
|
+
import { a as me, N as f, d as I, w as De, b as ye, c as Ue, r as ge, s as he, i as be, g as se, t as Be, z as Oe, x as Ne, y as ae } from "./index-7R1S3sB2.js";
|
|
4
|
+
import { m as K } from "./typescript-BpuhIBuJ.js";
|
|
5
|
+
import { defineComponent as H, computed as F, createElementBlock as E, openBlock as g, normalizeClass as m, unref as a, createCommentVNode as w, createElementVNode as N, normalizeStyle as j, renderSlot as C, toDisplayString as V, createBlock as B, withCtx as T, resolveDynamicComponent as je, ref as ke, TransitionGroup as Ae, Fragment as qe, renderList as Ie, withKeys as we, withModifiers as M, createVNode as O, inject as Me, shallowRef as Y, watch as oe, nextTick as ze, onBeforeUnmount as Ke, provide as He, toRef as We, createSlots as ne, mergeProps as re } from "vue";
|
|
6
|
+
import { E as A } from "./index-BWFNEHAe.js";
|
|
7
|
+
import { u as Ve } from "./index-BQfVaV7A.js";
|
|
8
|
+
import { useVModel as Xe } from "@vueuse/core";
|
|
9
|
+
const Ge = (e) => Object.entries(e);
|
|
10
|
+
var Je = Object.defineProperty, Qe = (e, r, s) => r in e ? Je(e, r, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[r] = s, W = (e, r, s) => Qe(e, typeof r != "symbol" ? r + "" : r, s);
|
|
11
|
+
const Ye = "ElUpload";
|
|
12
|
+
class Ze extends Error {
|
|
13
|
+
constructor(r, s, i, k) {
|
|
14
|
+
super(r), W(this, "name", "UploadAjaxError"), W(this, "status"), W(this, "method"), W(this, "url"), this.status = s, this.method = i, this.url = k;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function le(e, r, s) {
|
|
18
|
+
let i;
|
|
19
|
+
return s.response ? i = `${s.response.error || s.response}` : s.responseText ? i = `${s.responseText}` : i = `fail to ${r.method} ${e} ${s.status}`, new Ze(i, s.status, r.method, e);
|
|
20
|
+
}
|
|
21
|
+
function _e(e) {
|
|
22
|
+
const r = e.responseText || e.response;
|
|
23
|
+
if (!r)
|
|
24
|
+
return r;
|
|
25
|
+
try {
|
|
26
|
+
return JSON.parse(r);
|
|
27
|
+
} catch {
|
|
28
|
+
return r;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const $e = (e) => {
|
|
32
|
+
typeof XMLHttpRequest > "u" && _(Ye, "XMLHttpRequest is undefined");
|
|
33
|
+
const r = new XMLHttpRequest(), s = e.action;
|
|
34
|
+
r.upload && r.upload.addEventListener("progress", (c) => {
|
|
35
|
+
const d = c;
|
|
36
|
+
d.percent = c.total > 0 ? c.loaded / c.total * 100 : 0, e.onProgress(d);
|
|
37
|
+
});
|
|
38
|
+
const i = new FormData();
|
|
39
|
+
if (e.data)
|
|
40
|
+
for (const [c, d] of Object.entries(e.data))
|
|
41
|
+
me(d) && d.length ? i.append(c, ...d) : i.append(c, d);
|
|
42
|
+
i.append(e.filename, e.file, e.file.name), r.addEventListener("error", () => {
|
|
43
|
+
e.onError(le(s, e, r));
|
|
44
|
+
}), r.addEventListener("load", () => {
|
|
45
|
+
if (r.status < 200 || r.status >= 300)
|
|
46
|
+
return e.onError(le(s, e, r));
|
|
47
|
+
e.onSuccess(_e(r));
|
|
48
|
+
}), r.open(e.method, s, !0), e.withCredentials && "withCredentials" in r && (r.withCredentials = !0);
|
|
49
|
+
const k = e.headers || {};
|
|
50
|
+
if (k instanceof Headers)
|
|
51
|
+
k.forEach((c, d) => r.setRequestHeader(d, c));
|
|
52
|
+
else
|
|
53
|
+
for (const [c, d] of Object.entries(k))
|
|
54
|
+
pe(d) || r.setRequestHeader(c, String(d));
|
|
55
|
+
return r.send(i), r;
|
|
56
|
+
}, Ee = ["text", "picture", "picture-card"];
|
|
57
|
+
let et = 1;
|
|
58
|
+
const Z = () => Date.now() + et++, Pe = z({
|
|
59
|
+
/**
|
|
60
|
+
* @description request URL
|
|
61
|
+
*/
|
|
62
|
+
action: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: "#"
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
* @description request headers
|
|
68
|
+
*/
|
|
69
|
+
headers: {
|
|
70
|
+
type: h(Object)
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* @description set upload request method
|
|
74
|
+
*/
|
|
75
|
+
method: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: "post"
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
* @description additions options of request
|
|
81
|
+
*/
|
|
82
|
+
data: {
|
|
83
|
+
type: h([Object, Function, Promise]),
|
|
84
|
+
default: () => K({})
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* @description whether uploading multiple files is permitted
|
|
88
|
+
*/
|
|
89
|
+
multiple: Boolean,
|
|
90
|
+
/**
|
|
91
|
+
* @description key name for uploaded file
|
|
92
|
+
*/
|
|
93
|
+
name: {
|
|
94
|
+
type: String,
|
|
95
|
+
default: "file"
|
|
96
|
+
},
|
|
97
|
+
/**
|
|
98
|
+
* @description whether to activate drag and drop mode
|
|
99
|
+
*/
|
|
100
|
+
drag: Boolean,
|
|
101
|
+
/**
|
|
102
|
+
* @description whether cookies are sent
|
|
103
|
+
*/
|
|
104
|
+
withCredentials: Boolean,
|
|
105
|
+
/**
|
|
106
|
+
* @description whether to show the uploaded file list
|
|
107
|
+
*/
|
|
108
|
+
showFileList: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
default: !0
|
|
111
|
+
},
|
|
112
|
+
/**
|
|
113
|
+
* @description accepted [file types](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept), will not work when `thumbnail-mode === true`
|
|
114
|
+
*/
|
|
115
|
+
accept: {
|
|
116
|
+
type: String,
|
|
117
|
+
default: ""
|
|
118
|
+
},
|
|
119
|
+
/**
|
|
120
|
+
* @description default uploaded files
|
|
121
|
+
*/
|
|
122
|
+
fileList: {
|
|
123
|
+
type: h(Array),
|
|
124
|
+
default: () => K([])
|
|
125
|
+
},
|
|
126
|
+
/**
|
|
127
|
+
* @description whether to auto upload file
|
|
128
|
+
*/
|
|
129
|
+
autoUpload: {
|
|
130
|
+
type: Boolean,
|
|
131
|
+
default: !0
|
|
132
|
+
},
|
|
133
|
+
/**
|
|
134
|
+
* @description type of file list
|
|
135
|
+
*/
|
|
136
|
+
listType: {
|
|
137
|
+
type: String,
|
|
138
|
+
values: Ee,
|
|
139
|
+
default: "text"
|
|
140
|
+
},
|
|
141
|
+
/**
|
|
142
|
+
* @description override default xhr behavior, allowing you to implement your own upload-file's request
|
|
143
|
+
*/
|
|
144
|
+
httpRequest: {
|
|
145
|
+
type: h(Function),
|
|
146
|
+
default: $e
|
|
147
|
+
},
|
|
148
|
+
/**
|
|
149
|
+
* @description whether to disable upload
|
|
150
|
+
*/
|
|
151
|
+
disabled: {
|
|
152
|
+
type: Boolean,
|
|
153
|
+
default: void 0
|
|
154
|
+
},
|
|
155
|
+
/**
|
|
156
|
+
* @description maximum number of uploads allowed
|
|
157
|
+
*/
|
|
158
|
+
limit: Number,
|
|
159
|
+
/**
|
|
160
|
+
* @description whether to support uploading directory
|
|
161
|
+
*/
|
|
162
|
+
directory: Boolean
|
|
163
|
+
}), tt = z({
|
|
164
|
+
...Pe,
|
|
165
|
+
/**
|
|
166
|
+
* @description hook function before uploading with the file to be uploaded as its parameter. If `false` is returned or a `Promise` is returned and then is rejected, uploading will be aborted
|
|
167
|
+
*/
|
|
168
|
+
beforeUpload: {
|
|
169
|
+
type: h(Function),
|
|
170
|
+
default: f
|
|
171
|
+
},
|
|
172
|
+
/**
|
|
173
|
+
* @description hook function before removing a file with the file and file list as its parameters. If `false` is returned or a `Promise` is returned and then is rejected, removing will be aborted
|
|
174
|
+
*/
|
|
175
|
+
beforeRemove: {
|
|
176
|
+
type: h(Function)
|
|
177
|
+
},
|
|
178
|
+
/**
|
|
179
|
+
* @description hook function when files are removed
|
|
180
|
+
*/
|
|
181
|
+
onRemove: {
|
|
182
|
+
type: h(Function),
|
|
183
|
+
default: f
|
|
184
|
+
},
|
|
185
|
+
/**
|
|
186
|
+
* @description hook function when select file or upload file success or upload file fail
|
|
187
|
+
*/
|
|
188
|
+
onChange: {
|
|
189
|
+
type: h(Function),
|
|
190
|
+
default: f
|
|
191
|
+
},
|
|
192
|
+
/**
|
|
193
|
+
* @description hook function when clicking the uploaded files
|
|
194
|
+
*/
|
|
195
|
+
onPreview: {
|
|
196
|
+
type: h(Function),
|
|
197
|
+
default: f
|
|
198
|
+
},
|
|
199
|
+
/**
|
|
200
|
+
* @description hook function when uploaded successfully
|
|
201
|
+
*/
|
|
202
|
+
onSuccess: {
|
|
203
|
+
type: h(Function),
|
|
204
|
+
default: f
|
|
205
|
+
},
|
|
206
|
+
/**
|
|
207
|
+
* @description hook function when some progress occurs
|
|
208
|
+
*/
|
|
209
|
+
onProgress: {
|
|
210
|
+
type: h(Function),
|
|
211
|
+
default: f
|
|
212
|
+
},
|
|
213
|
+
/**
|
|
214
|
+
* @description hook function when some errors occurs
|
|
215
|
+
*/
|
|
216
|
+
onError: {
|
|
217
|
+
type: h(Function),
|
|
218
|
+
default: f
|
|
219
|
+
},
|
|
220
|
+
/**
|
|
221
|
+
* @description hook function when limit is exceeded
|
|
222
|
+
*/
|
|
223
|
+
onExceed: {
|
|
224
|
+
type: h(Function),
|
|
225
|
+
default: f
|
|
226
|
+
},
|
|
227
|
+
/**
|
|
228
|
+
* @description set HTML attribute: crossorigin.
|
|
229
|
+
*/
|
|
230
|
+
crossorigin: {
|
|
231
|
+
type: h(String)
|
|
232
|
+
}
|
|
233
|
+
}), Se = {
|
|
234
|
+
action: "#",
|
|
235
|
+
method: "post",
|
|
236
|
+
data: () => K({}),
|
|
237
|
+
name: "file",
|
|
238
|
+
showFileList: !0,
|
|
239
|
+
accept: "",
|
|
240
|
+
fileList: () => K([]),
|
|
241
|
+
autoUpload: !0,
|
|
242
|
+
listType: "text",
|
|
243
|
+
httpRequest: $e,
|
|
244
|
+
disabled: void 0
|
|
245
|
+
}, Bt = {
|
|
246
|
+
...Se,
|
|
247
|
+
beforeUpload: f,
|
|
248
|
+
onRemove: f,
|
|
249
|
+
onChange: f,
|
|
250
|
+
onPreview: f,
|
|
251
|
+
onSuccess: f,
|
|
252
|
+
onProgress: f,
|
|
253
|
+
onError: f,
|
|
254
|
+
onExceed: f
|
|
255
|
+
}, Fe = /* @__PURE__ */ Symbol("uploadContextKey"), st = z({
|
|
256
|
+
files: {
|
|
257
|
+
type: h(Array),
|
|
258
|
+
default: () => K([])
|
|
259
|
+
},
|
|
260
|
+
disabled: {
|
|
261
|
+
type: Boolean,
|
|
262
|
+
default: void 0
|
|
263
|
+
},
|
|
264
|
+
handlePreview: {
|
|
265
|
+
type: h(Function),
|
|
266
|
+
default: f
|
|
267
|
+
},
|
|
268
|
+
listType: {
|
|
269
|
+
type: String,
|
|
270
|
+
values: Ee,
|
|
271
|
+
default: "text"
|
|
272
|
+
},
|
|
273
|
+
/**
|
|
274
|
+
* @description set HTML attribute: crossorigin.
|
|
275
|
+
*/
|
|
276
|
+
crossorigin: {
|
|
277
|
+
type: h(String)
|
|
278
|
+
}
|
|
279
|
+
}), at = {
|
|
280
|
+
remove: (e) => !!e
|
|
281
|
+
}, ot = z({
|
|
282
|
+
/**
|
|
283
|
+
* @description type of progress bar
|
|
284
|
+
*/
|
|
285
|
+
type: {
|
|
286
|
+
type: String,
|
|
287
|
+
default: "line",
|
|
288
|
+
values: ["line", "circle", "dashboard"]
|
|
289
|
+
},
|
|
290
|
+
/**
|
|
291
|
+
* @description percentage, required
|
|
292
|
+
*/
|
|
293
|
+
percentage: {
|
|
294
|
+
type: Number,
|
|
295
|
+
default: 0,
|
|
296
|
+
validator: (e) => e >= 0 && e <= 100
|
|
297
|
+
},
|
|
298
|
+
/**
|
|
299
|
+
* @description the current status of progress bar
|
|
300
|
+
*/
|
|
301
|
+
status: {
|
|
302
|
+
type: String,
|
|
303
|
+
default: "",
|
|
304
|
+
values: ["", "success", "exception", "warning"]
|
|
305
|
+
},
|
|
306
|
+
/**
|
|
307
|
+
* @description set indeterminate progress
|
|
308
|
+
*/
|
|
309
|
+
indeterminate: Boolean,
|
|
310
|
+
/**
|
|
311
|
+
* @description control the animation duration of indeterminate progress or striped flow progress
|
|
312
|
+
*/
|
|
313
|
+
duration: {
|
|
314
|
+
type: Number,
|
|
315
|
+
default: 3
|
|
316
|
+
},
|
|
317
|
+
/**
|
|
318
|
+
* @description the width of progress bar
|
|
319
|
+
*/
|
|
320
|
+
strokeWidth: {
|
|
321
|
+
type: Number,
|
|
322
|
+
default: 6
|
|
323
|
+
},
|
|
324
|
+
/**
|
|
325
|
+
* @description butt/circle/dashboard type shape at the end path
|
|
326
|
+
*/
|
|
327
|
+
strokeLinecap: {
|
|
328
|
+
type: h(String),
|
|
329
|
+
default: "round"
|
|
330
|
+
},
|
|
331
|
+
/**
|
|
332
|
+
* @description whether to place the percentage inside progress bar, only works when `type` is 'line'
|
|
333
|
+
*/
|
|
334
|
+
textInside: Boolean,
|
|
335
|
+
/**
|
|
336
|
+
* @description the canvas width of circle progress bar
|
|
337
|
+
*/
|
|
338
|
+
width: {
|
|
339
|
+
type: Number,
|
|
340
|
+
default: 126
|
|
341
|
+
},
|
|
342
|
+
/**
|
|
343
|
+
* @description whether to show percentage
|
|
344
|
+
*/
|
|
345
|
+
showText: {
|
|
346
|
+
type: Boolean,
|
|
347
|
+
default: !0
|
|
348
|
+
},
|
|
349
|
+
/**
|
|
350
|
+
* @description background color of progress bar. Overrides `status` prop
|
|
351
|
+
*/
|
|
352
|
+
color: {
|
|
353
|
+
type: h([
|
|
354
|
+
String,
|
|
355
|
+
Array,
|
|
356
|
+
Function
|
|
357
|
+
]),
|
|
358
|
+
default: ""
|
|
359
|
+
},
|
|
360
|
+
/**
|
|
361
|
+
* @description stripe over the progress bar's color
|
|
362
|
+
*/
|
|
363
|
+
striped: Boolean,
|
|
364
|
+
/**
|
|
365
|
+
* @description get the stripes to flow
|
|
366
|
+
*/
|
|
367
|
+
stripedFlow: Boolean,
|
|
368
|
+
/**
|
|
369
|
+
* @description custom text format
|
|
370
|
+
*/
|
|
371
|
+
format: {
|
|
372
|
+
type: h(Function),
|
|
373
|
+
default: (e) => `${e}%`
|
|
374
|
+
}
|
|
375
|
+
}), nt = ["aria-valuenow"], rt = { viewBox: "0 0 100 100" }, lt = ["d", "stroke", "stroke-linecap", "stroke-width"], it = ["d", "stroke", "opacity", "stroke-linecap", "stroke-width"], ut = { key: 0 };
|
|
376
|
+
var ct = /* @__PURE__ */ H({
|
|
377
|
+
name: "ElProgress",
|
|
378
|
+
__name: "progress",
|
|
379
|
+
props: ot,
|
|
380
|
+
setup(e) {
|
|
381
|
+
const r = {
|
|
382
|
+
success: "#13ce66",
|
|
383
|
+
exception: "#ff4949",
|
|
384
|
+
warning: "#e6a23c",
|
|
385
|
+
default: "#20a0ff"
|
|
386
|
+
}, s = e, i = I("progress"), k = F(() => {
|
|
387
|
+
const u = {
|
|
388
|
+
width: `${s.percentage}%`,
|
|
389
|
+
animationDuration: `${s.duration}s`
|
|
390
|
+
}, v = y(s.percentage);
|
|
391
|
+
return v.includes("gradient") ? u.background = v : u.backgroundColor = v, u;
|
|
392
|
+
}), c = F(
|
|
393
|
+
() => (s.strokeWidth / s.width * 100).toFixed(1)
|
|
394
|
+
), d = F(() => ["circle", "dashboard"].includes(s.type) ? Number.parseInt(
|
|
395
|
+
`${50 - Number.parseFloat(c.value) / 2}`,
|
|
396
|
+
10
|
|
397
|
+
) : 0), P = F(() => {
|
|
398
|
+
const u = d.value, v = s.type === "dashboard";
|
|
399
|
+
return `
|
|
400
|
+
M 50 50
|
|
401
|
+
m 0 ${v ? "" : "-"}${u}
|
|
402
|
+
a ${u} ${u} 0 1 1 0 ${v ? "-" : ""}${u * 2}
|
|
403
|
+
a ${u} ${u} 0 1 1 0 ${v ? "" : "-"}${u * 2}
|
|
404
|
+
`;
|
|
405
|
+
}), b = F(() => 2 * Math.PI * d.value), $ = F(() => s.type === "dashboard" ? 0.75 : 1), L = F(() => `${-1 * b.value * (1 - $.value) / 2}px`), S = F(() => ({
|
|
406
|
+
strokeDasharray: `${b.value * $.value}px, ${b.value}px`,
|
|
407
|
+
strokeDashoffset: L.value
|
|
408
|
+
})), R = F(() => ({
|
|
409
|
+
strokeDasharray: `${b.value * $.value * (s.percentage / 100)}px, ${b.value}px`,
|
|
410
|
+
strokeDashoffset: L.value,
|
|
411
|
+
transition: "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"
|
|
412
|
+
})), p = F(() => {
|
|
413
|
+
let u;
|
|
414
|
+
return s.color ? u = y(s.percentage) : u = r[s.status] || r.default, u;
|
|
415
|
+
}), o = F(() => s.status === "warning" ? De : s.type === "line" ? s.status === "success" ? ye : Ue : s.status === "success" ? ge : he), t = F(() => s.type === "line" ? 12 + s.strokeWidth * 0.4 : s.width * 0.111111 + 2), n = F(() => s.format(s.percentage));
|
|
416
|
+
function l(u) {
|
|
417
|
+
const v = 100 / u.length;
|
|
418
|
+
return u.map((x, U) => se(x) ? {
|
|
419
|
+
color: x,
|
|
420
|
+
percentage: (U + 1) * v
|
|
421
|
+
} : x).sort((x, U) => x.percentage - U.percentage);
|
|
422
|
+
}
|
|
423
|
+
const y = (u) => {
|
|
424
|
+
var v;
|
|
425
|
+
const { color: D } = s;
|
|
426
|
+
if (be(D))
|
|
427
|
+
return D(u);
|
|
428
|
+
if (se(D))
|
|
429
|
+
return D;
|
|
430
|
+
{
|
|
431
|
+
const x = l(D);
|
|
432
|
+
for (const U of x)
|
|
433
|
+
if (U.percentage > u) return U.color;
|
|
434
|
+
return (v = x[x.length - 1]) == null ? void 0 : v.color;
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
return (u, v) => (g(), E("div", {
|
|
438
|
+
class: m([
|
|
439
|
+
a(i).b(),
|
|
440
|
+
a(i).m(e.type),
|
|
441
|
+
a(i).is(e.status),
|
|
442
|
+
{
|
|
443
|
+
[a(i).m("without-text")]: !e.showText,
|
|
444
|
+
[a(i).m("text-inside")]: e.textInside
|
|
445
|
+
}
|
|
446
|
+
]),
|
|
447
|
+
role: "progressbar",
|
|
448
|
+
"aria-valuenow": e.percentage,
|
|
449
|
+
"aria-valuemin": "0",
|
|
450
|
+
"aria-valuemax": "100"
|
|
451
|
+
}, [
|
|
452
|
+
e.type === "line" ? (g(), E(
|
|
453
|
+
"div",
|
|
454
|
+
{
|
|
455
|
+
key: 0,
|
|
456
|
+
class: m(a(i).b("bar"))
|
|
457
|
+
},
|
|
458
|
+
[
|
|
459
|
+
N(
|
|
460
|
+
"div",
|
|
461
|
+
{
|
|
462
|
+
class: m(a(i).be("bar", "outer")),
|
|
463
|
+
style: j({ height: `${e.strokeWidth}px` })
|
|
464
|
+
},
|
|
465
|
+
[
|
|
466
|
+
N(
|
|
467
|
+
"div",
|
|
468
|
+
{
|
|
469
|
+
class: m([
|
|
470
|
+
a(i).be("bar", "inner"),
|
|
471
|
+
{ [a(i).bem("bar", "inner", "indeterminate")]: e.indeterminate },
|
|
472
|
+
{ [a(i).bem("bar", "inner", "striped")]: e.striped },
|
|
473
|
+
{ [a(i).bem("bar", "inner", "striped-flow")]: e.stripedFlow }
|
|
474
|
+
]),
|
|
475
|
+
style: j(k.value)
|
|
476
|
+
},
|
|
477
|
+
[
|
|
478
|
+
(e.showText || u.$slots.default) && e.textInside ? (g(), E(
|
|
479
|
+
"div",
|
|
480
|
+
{
|
|
481
|
+
key: 0,
|
|
482
|
+
class: m(a(i).be("bar", "innerText"))
|
|
483
|
+
},
|
|
484
|
+
[
|
|
485
|
+
C(u.$slots, "default", { percentage: e.percentage }, () => [
|
|
486
|
+
N(
|
|
487
|
+
"span",
|
|
488
|
+
null,
|
|
489
|
+
V(n.value),
|
|
490
|
+
1
|
|
491
|
+
/* TEXT */
|
|
492
|
+
)
|
|
493
|
+
])
|
|
494
|
+
],
|
|
495
|
+
2
|
|
496
|
+
/* CLASS */
|
|
497
|
+
)) : w("v-if", !0)
|
|
498
|
+
],
|
|
499
|
+
6
|
|
500
|
+
/* CLASS, STYLE */
|
|
501
|
+
)
|
|
502
|
+
],
|
|
503
|
+
6
|
|
504
|
+
/* CLASS, STYLE */
|
|
505
|
+
)
|
|
506
|
+
],
|
|
507
|
+
2
|
|
508
|
+
/* CLASS */
|
|
509
|
+
)) : (g(), E(
|
|
510
|
+
"div",
|
|
511
|
+
{
|
|
512
|
+
key: 1,
|
|
513
|
+
class: m(a(i).b("circle")),
|
|
514
|
+
style: j({ height: `${e.width}px`, width: `${e.width}px` })
|
|
515
|
+
},
|
|
516
|
+
[
|
|
517
|
+
(g(), E("svg", rt, [
|
|
518
|
+
N("path", {
|
|
519
|
+
class: m(a(i).be("circle", "track")),
|
|
520
|
+
d: P.value,
|
|
521
|
+
stroke: `var(${a(i).cssVarName("fill-color-light")}, #e5e9f2)`,
|
|
522
|
+
"stroke-linecap": e.strokeLinecap,
|
|
523
|
+
"stroke-width": c.value,
|
|
524
|
+
fill: "none",
|
|
525
|
+
style: j(S.value)
|
|
526
|
+
}, null, 14, lt),
|
|
527
|
+
N("path", {
|
|
528
|
+
class: m(a(i).be("circle", "path")),
|
|
529
|
+
d: P.value,
|
|
530
|
+
stroke: p.value,
|
|
531
|
+
fill: "none",
|
|
532
|
+
opacity: e.percentage ? 1 : 0,
|
|
533
|
+
"stroke-linecap": e.strokeLinecap,
|
|
534
|
+
"stroke-width": c.value,
|
|
535
|
+
style: j(R.value)
|
|
536
|
+
}, null, 14, it)
|
|
537
|
+
]))
|
|
538
|
+
],
|
|
539
|
+
6
|
|
540
|
+
/* CLASS, STYLE */
|
|
541
|
+
)),
|
|
542
|
+
(e.showText || u.$slots.default) && !e.textInside ? (g(), E(
|
|
543
|
+
"div",
|
|
544
|
+
{
|
|
545
|
+
key: 2,
|
|
546
|
+
class: m(a(i).e("text")),
|
|
547
|
+
style: j({ fontSize: `${t.value}px` })
|
|
548
|
+
},
|
|
549
|
+
[
|
|
550
|
+
C(u.$slots, "default", { percentage: e.percentage }, () => [
|
|
551
|
+
e.status ? (g(), B(a(A), { key: 1 }, {
|
|
552
|
+
default: T(() => [
|
|
553
|
+
(g(), B(je(o.value)))
|
|
554
|
+
]),
|
|
555
|
+
_: 1
|
|
556
|
+
/* STABLE */
|
|
557
|
+
})) : (g(), E(
|
|
558
|
+
"span",
|
|
559
|
+
ut,
|
|
560
|
+
V(n.value),
|
|
561
|
+
1
|
|
562
|
+
/* TEXT */
|
|
563
|
+
))
|
|
564
|
+
])
|
|
565
|
+
],
|
|
566
|
+
6
|
|
567
|
+
/* CLASS, STYLE */
|
|
568
|
+
)) : w("v-if", !0)
|
|
569
|
+
], 10, nt));
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
const dt = ve(ct), ft = ["tabindex", "aria-disabled", "onKeydown"], pt = ["src", "crossorigin"], vt = ["onClick"], mt = ["title"], yt = ["onClick"], gt = ["onClick"];
|
|
573
|
+
var ie = /* @__PURE__ */ H({
|
|
574
|
+
name: "ElUploadList",
|
|
575
|
+
__name: "upload-list",
|
|
576
|
+
props: st,
|
|
577
|
+
emits: at,
|
|
578
|
+
setup(e, { emit: r }) {
|
|
579
|
+
const s = e, i = r, { t: k } = Ve(), c = I("upload"), d = I("icon"), P = I("list"), b = X(), $ = ke(!1), L = F(() => [
|
|
580
|
+
c.b("list"),
|
|
581
|
+
c.bm("list", s.listType),
|
|
582
|
+
c.is("disabled", b.value)
|
|
583
|
+
]), S = (R) => {
|
|
584
|
+
i("remove", R);
|
|
585
|
+
};
|
|
586
|
+
return (R, p) => (g(), B(Ae, {
|
|
587
|
+
tag: "ul",
|
|
588
|
+
class: m(L.value),
|
|
589
|
+
name: a(P).b()
|
|
590
|
+
}, {
|
|
591
|
+
default: T(() => [
|
|
592
|
+
(g(!0), E(
|
|
593
|
+
qe,
|
|
594
|
+
null,
|
|
595
|
+
Ie(e.files, (o, t) => (g(), E("li", {
|
|
596
|
+
key: o.uid || o.name,
|
|
597
|
+
class: m([
|
|
598
|
+
a(c).be("list", "item"),
|
|
599
|
+
a(c).is(o.status),
|
|
600
|
+
{ focusing: $.value }
|
|
601
|
+
]),
|
|
602
|
+
tabindex: a(b) ? void 0 : 0,
|
|
603
|
+
"aria-disabled": a(b),
|
|
604
|
+
role: "button",
|
|
605
|
+
onKeydown: we((n) => !a(b) && S(o), ["delete"]),
|
|
606
|
+
onFocus: p[0] || (p[0] = (n) => $.value = !0),
|
|
607
|
+
onBlur: p[1] || (p[1] = (n) => $.value = !1),
|
|
608
|
+
onClick: p[2] || (p[2] = (n) => $.value = !1)
|
|
609
|
+
}, [
|
|
610
|
+
C(R.$slots, "default", {
|
|
611
|
+
file: o,
|
|
612
|
+
index: t
|
|
613
|
+
}, () => [
|
|
614
|
+
e.listType === "picture" || o.status !== "uploading" && e.listType === "picture-card" ? (g(), E("img", {
|
|
615
|
+
key: 0,
|
|
616
|
+
class: m(a(c).be("list", "item-thumbnail")),
|
|
617
|
+
src: o.url,
|
|
618
|
+
crossorigin: e.crossorigin,
|
|
619
|
+
alt: ""
|
|
620
|
+
}, null, 10, pt)) : w("v-if", !0),
|
|
621
|
+
o.status === "uploading" || e.listType !== "picture-card" ? (g(), E(
|
|
622
|
+
"div",
|
|
623
|
+
{
|
|
624
|
+
key: 1,
|
|
625
|
+
class: m(a(c).be("list", "item-info"))
|
|
626
|
+
},
|
|
627
|
+
[
|
|
628
|
+
N("a", {
|
|
629
|
+
class: m(a(c).be("list", "item-name")),
|
|
630
|
+
onClick: M((n) => e.handlePreview(o), ["prevent"])
|
|
631
|
+
}, [
|
|
632
|
+
O(a(A), {
|
|
633
|
+
class: m(a(d).m("document"))
|
|
634
|
+
}, {
|
|
635
|
+
default: T(() => [
|
|
636
|
+
O(a(Be))
|
|
637
|
+
]),
|
|
638
|
+
_: 1
|
|
639
|
+
/* STABLE */
|
|
640
|
+
}, 8, ["class"]),
|
|
641
|
+
N("span", {
|
|
642
|
+
class: m(a(c).be("list", "item-file-name")),
|
|
643
|
+
title: o.name
|
|
644
|
+
}, V(o.name), 11, mt)
|
|
645
|
+
], 10, vt),
|
|
646
|
+
o.status === "uploading" ? (g(), B(a(dt), {
|
|
647
|
+
key: 0,
|
|
648
|
+
type: e.listType === "picture-card" ? "circle" : "line",
|
|
649
|
+
"stroke-width": e.listType === "picture-card" ? 6 : 2,
|
|
650
|
+
percentage: Number(o.percentage),
|
|
651
|
+
style: j(e.listType === "picture-card" ? "" : "margin-top: 0.5rem")
|
|
652
|
+
}, null, 8, ["type", "stroke-width", "percentage", "style"])) : w("v-if", !0)
|
|
653
|
+
],
|
|
654
|
+
2
|
|
655
|
+
/* CLASS */
|
|
656
|
+
)) : w("v-if", !0),
|
|
657
|
+
N(
|
|
658
|
+
"label",
|
|
659
|
+
{
|
|
660
|
+
class: m(a(c).be("list", "item-status-label"))
|
|
661
|
+
},
|
|
662
|
+
[
|
|
663
|
+
e.listType === "text" ? (g(), B(a(A), {
|
|
664
|
+
key: 0,
|
|
665
|
+
class: m([a(d).m("upload-success"), a(d).m("circle-check")])
|
|
666
|
+
}, {
|
|
667
|
+
default: T(() => [
|
|
668
|
+
O(a(ye))
|
|
669
|
+
]),
|
|
670
|
+
_: 1
|
|
671
|
+
/* STABLE */
|
|
672
|
+
}, 8, ["class"])) : ["picture-card", "picture"].includes(e.listType) ? (g(), B(a(A), {
|
|
673
|
+
key: 1,
|
|
674
|
+
class: m([a(d).m("upload-success"), a(d).m("check")])
|
|
675
|
+
}, {
|
|
676
|
+
default: T(() => [
|
|
677
|
+
O(a(ge))
|
|
678
|
+
]),
|
|
679
|
+
_: 1
|
|
680
|
+
/* STABLE */
|
|
681
|
+
}, 8, ["class"])) : w("v-if", !0)
|
|
682
|
+
],
|
|
683
|
+
2
|
|
684
|
+
/* CLASS */
|
|
685
|
+
),
|
|
686
|
+
a(b) ? w("v-if", !0) : (g(), B(a(A), {
|
|
687
|
+
key: 2,
|
|
688
|
+
class: m(a(d).m("close")),
|
|
689
|
+
onClick: (n) => S(o)
|
|
690
|
+
}, {
|
|
691
|
+
default: T(() => [
|
|
692
|
+
O(a(he))
|
|
693
|
+
]),
|
|
694
|
+
_: 1
|
|
695
|
+
/* STABLE */
|
|
696
|
+
}, 8, ["class", "onClick"])),
|
|
697
|
+
w(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),
|
|
698
|
+
w(" This is a bug which needs to be fixed "),
|
|
699
|
+
w(" TODO: Fix the incorrect navigation interaction "),
|
|
700
|
+
a(b) ? w("v-if", !0) : (g(), E(
|
|
701
|
+
"i",
|
|
702
|
+
{
|
|
703
|
+
key: 3,
|
|
704
|
+
class: m(a(d).m("close-tip"))
|
|
705
|
+
},
|
|
706
|
+
V(a(k)("el.upload.deleteTip")),
|
|
707
|
+
3
|
|
708
|
+
/* TEXT, CLASS */
|
|
709
|
+
)),
|
|
710
|
+
e.listType === "picture-card" ? (g(), E(
|
|
711
|
+
"span",
|
|
712
|
+
{
|
|
713
|
+
key: 4,
|
|
714
|
+
class: m(a(c).be("list", "item-actions"))
|
|
715
|
+
},
|
|
716
|
+
[
|
|
717
|
+
N("span", {
|
|
718
|
+
class: m(a(c).be("list", "item-preview")),
|
|
719
|
+
onClick: (n) => e.handlePreview(o)
|
|
720
|
+
}, [
|
|
721
|
+
O(a(A), {
|
|
722
|
+
class: m(a(d).m("zoom-in"))
|
|
723
|
+
}, {
|
|
724
|
+
default: T(() => [
|
|
725
|
+
O(a(Oe))
|
|
726
|
+
]),
|
|
727
|
+
_: 1
|
|
728
|
+
/* STABLE */
|
|
729
|
+
}, 8, ["class"])
|
|
730
|
+
], 10, yt),
|
|
731
|
+
a(b) ? w("v-if", !0) : (g(), E("span", {
|
|
732
|
+
key: 0,
|
|
733
|
+
class: m(a(c).be("list", "item-delete")),
|
|
734
|
+
onClick: (n) => S(o)
|
|
735
|
+
}, [
|
|
736
|
+
O(a(A), {
|
|
737
|
+
class: m(a(d).m("delete"))
|
|
738
|
+
}, {
|
|
739
|
+
default: T(() => [
|
|
740
|
+
O(a(Ne))
|
|
741
|
+
]),
|
|
742
|
+
_: 1
|
|
743
|
+
/* STABLE */
|
|
744
|
+
}, 8, ["class"])
|
|
745
|
+
], 10, gt))
|
|
746
|
+
],
|
|
747
|
+
2
|
|
748
|
+
/* CLASS */
|
|
749
|
+
)) : w("v-if", !0)
|
|
750
|
+
])
|
|
751
|
+
], 42, ft))),
|
|
752
|
+
128
|
|
753
|
+
/* KEYED_FRAGMENT */
|
|
754
|
+
)),
|
|
755
|
+
C(R.$slots, "append")
|
|
756
|
+
]),
|
|
757
|
+
_: 3
|
|
758
|
+
/* FORWARDED */
|
|
759
|
+
}, 8, ["class", "name"]));
|
|
760
|
+
}
|
|
761
|
+
});
|
|
762
|
+
const ht = z({
|
|
763
|
+
...Pe,
|
|
764
|
+
beforeUpload: {
|
|
765
|
+
type: h(Function),
|
|
766
|
+
default: f
|
|
767
|
+
},
|
|
768
|
+
onRemove: {
|
|
769
|
+
type: h(Function),
|
|
770
|
+
default: f
|
|
771
|
+
},
|
|
772
|
+
onStart: {
|
|
773
|
+
type: h(Function),
|
|
774
|
+
default: f
|
|
775
|
+
},
|
|
776
|
+
onSuccess: {
|
|
777
|
+
type: h(
|
|
778
|
+
Function
|
|
779
|
+
),
|
|
780
|
+
default: f
|
|
781
|
+
},
|
|
782
|
+
onProgress: {
|
|
783
|
+
type: h(Function),
|
|
784
|
+
default: f
|
|
785
|
+
},
|
|
786
|
+
onError: {
|
|
787
|
+
type: h(Function),
|
|
788
|
+
default: f
|
|
789
|
+
},
|
|
790
|
+
onExceed: {
|
|
791
|
+
type: h(Function),
|
|
792
|
+
default: f
|
|
793
|
+
}
|
|
794
|
+
}), Ot = {
|
|
795
|
+
...Se,
|
|
796
|
+
beforeUpload: f,
|
|
797
|
+
onRemove: f,
|
|
798
|
+
onStart: f,
|
|
799
|
+
onSuccess: f,
|
|
800
|
+
onProgress: f,
|
|
801
|
+
onError: f,
|
|
802
|
+
onExceed: f
|
|
803
|
+
}, bt = z({
|
|
804
|
+
disabled: {
|
|
805
|
+
type: Boolean,
|
|
806
|
+
default: void 0
|
|
807
|
+
},
|
|
808
|
+
directory: Boolean
|
|
809
|
+
}), kt = {
|
|
810
|
+
file: (e) => me(e)
|
|
811
|
+
}, ue = "ElUploadDrag";
|
|
812
|
+
var wt = /* @__PURE__ */ H({
|
|
813
|
+
name: ue,
|
|
814
|
+
__name: "upload-dragger",
|
|
815
|
+
props: bt,
|
|
816
|
+
emits: kt,
|
|
817
|
+
setup(e, { emit: r }) {
|
|
818
|
+
const s = e, i = r;
|
|
819
|
+
Me(Fe) || _(
|
|
820
|
+
ue,
|
|
821
|
+
"usage: <el-upload><el-upload-dragger /></el-upload>"
|
|
822
|
+
);
|
|
823
|
+
const c = I("upload"), d = ke(!1), P = X(), b = (p) => new Promise((o, t) => p.file(o, t)), $ = async (p) => {
|
|
824
|
+
try {
|
|
825
|
+
if (p.isFile) {
|
|
826
|
+
const o = await b(
|
|
827
|
+
p
|
|
828
|
+
);
|
|
829
|
+
return o.isDirectory = !1, [o];
|
|
830
|
+
}
|
|
831
|
+
if (p.isDirectory) {
|
|
832
|
+
const o = p.createReader(), t = () => new Promise(
|
|
833
|
+
(v, D) => o.readEntries(v, D)
|
|
834
|
+
), n = [];
|
|
835
|
+
let l = await t();
|
|
836
|
+
for (; l.length > 0; )
|
|
837
|
+
n.push(...l), l = await t();
|
|
838
|
+
const y = n.map(
|
|
839
|
+
(v) => $(v).catch(() => [])
|
|
840
|
+
), u = await Promise.all(y);
|
|
841
|
+
return ee(u);
|
|
842
|
+
}
|
|
843
|
+
} catch {
|
|
844
|
+
return [];
|
|
845
|
+
}
|
|
846
|
+
return [];
|
|
847
|
+
}, L = async (p) => {
|
|
848
|
+
if (P.value) return;
|
|
849
|
+
d.value = !1, p.stopPropagation();
|
|
850
|
+
const o = Array.from(p.dataTransfer.files), t = p.dataTransfer.items || [];
|
|
851
|
+
if (s.directory) {
|
|
852
|
+
const n = Array.from(t).map((y) => {
|
|
853
|
+
var u;
|
|
854
|
+
return (u = y == null ? void 0 : y.webkitGetAsEntry) == null ? void 0 : u.call(y);
|
|
855
|
+
}).filter((y) => y), l = await Promise.all(n.map($));
|
|
856
|
+
i("file", ee(l));
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
o.forEach((n, l) => {
|
|
860
|
+
var y;
|
|
861
|
+
const u = t[l], v = (y = u == null ? void 0 : u.webkitGetAsEntry) == null ? void 0 : y.call(u);
|
|
862
|
+
v && (n.isDirectory = v.isDirectory);
|
|
863
|
+
}), i("file", o);
|
|
864
|
+
}, S = () => {
|
|
865
|
+
P.value || (d.value = !0);
|
|
866
|
+
}, R = (p) => {
|
|
867
|
+
p.currentTarget.contains(p.relatedTarget) || (d.value = !1);
|
|
868
|
+
};
|
|
869
|
+
return (p, o) => (g(), E(
|
|
870
|
+
"div",
|
|
871
|
+
{
|
|
872
|
+
class: m([a(c).b("dragger"), a(c).is("dragover", d.value)]),
|
|
873
|
+
onDrop: M(L, ["prevent"]),
|
|
874
|
+
onDragover: M(S, ["prevent"]),
|
|
875
|
+
onDragleave: M(R, ["prevent"])
|
|
876
|
+
},
|
|
877
|
+
[
|
|
878
|
+
C(p.$slots, "default")
|
|
879
|
+
],
|
|
880
|
+
34
|
|
881
|
+
/* CLASS, NEED_HYDRATION */
|
|
882
|
+
));
|
|
883
|
+
}
|
|
884
|
+
});
|
|
885
|
+
const $t = ["tabindex", "aria-disabled", "onKeydown"], Et = ["name", "disabled", "multiple", "accept", "webkitdirectory"];
|
|
886
|
+
var ce = /* @__PURE__ */ H({
|
|
887
|
+
name: "ElUploadContent",
|
|
888
|
+
inheritAttrs: !1,
|
|
889
|
+
__name: "upload-content",
|
|
890
|
+
props: ht,
|
|
891
|
+
setup(e, { expose: r }) {
|
|
892
|
+
const s = e, i = I("upload"), k = X(), c = Y(
|
|
893
|
+
{}
|
|
894
|
+
), d = Y(), P = (t) => {
|
|
895
|
+
if (t.length === 0) return;
|
|
896
|
+
const { autoUpload: n, limit: l, fileList: y, multiple: u, onStart: v, onExceed: D } = s;
|
|
897
|
+
if (l && y.length + t.length > l) {
|
|
898
|
+
D(t, y);
|
|
899
|
+
return;
|
|
900
|
+
}
|
|
901
|
+
u || (t = t.slice(0, 1));
|
|
902
|
+
for (const x of t) {
|
|
903
|
+
const U = x;
|
|
904
|
+
U.uid = Z(), v(U), n && b(U);
|
|
905
|
+
}
|
|
906
|
+
}, b = async (t) => {
|
|
907
|
+
if (d.value.value = "", !s.beforeUpload)
|
|
908
|
+
return L(t);
|
|
909
|
+
let n, l = {};
|
|
910
|
+
try {
|
|
911
|
+
const u = s.data, v = s.beforeUpload(t);
|
|
912
|
+
l = ae(s.data) ? te(s.data) : s.data, n = await v, ae(s.data) && Le(u, l) && (l = te(s.data));
|
|
913
|
+
} catch {
|
|
914
|
+
n = !1;
|
|
915
|
+
}
|
|
916
|
+
if (n === !1) {
|
|
917
|
+
s.onRemove(t);
|
|
918
|
+
return;
|
|
919
|
+
}
|
|
920
|
+
let y = t;
|
|
921
|
+
n instanceof Blob && (n instanceof File ? y = n : y = new File([n], t.name, {
|
|
922
|
+
type: t.type
|
|
923
|
+
})), L(
|
|
924
|
+
Object.assign(y, {
|
|
925
|
+
uid: t.uid
|
|
926
|
+
}),
|
|
927
|
+
l
|
|
928
|
+
);
|
|
929
|
+
}, $ = async (t, n) => be(t) ? t(n) : t, L = async (t, n) => {
|
|
930
|
+
const {
|
|
931
|
+
headers: l,
|
|
932
|
+
data: y,
|
|
933
|
+
method: u,
|
|
934
|
+
withCredentials: v,
|
|
935
|
+
name: D,
|
|
936
|
+
action: x,
|
|
937
|
+
onProgress: U,
|
|
938
|
+
onSuccess: Re,
|
|
939
|
+
onError: Ce,
|
|
940
|
+
httpRequest: Te
|
|
941
|
+
} = s;
|
|
942
|
+
try {
|
|
943
|
+
n = await $(n ?? y, t);
|
|
944
|
+
} catch {
|
|
945
|
+
s.onRemove(t);
|
|
946
|
+
return;
|
|
947
|
+
}
|
|
948
|
+
const { uid: G } = t, J = {
|
|
949
|
+
headers: l || {},
|
|
950
|
+
withCredentials: v,
|
|
951
|
+
file: t,
|
|
952
|
+
data: n,
|
|
953
|
+
method: u,
|
|
954
|
+
filename: D,
|
|
955
|
+
action: x,
|
|
956
|
+
onProgress: (q) => {
|
|
957
|
+
U(q, t);
|
|
958
|
+
},
|
|
959
|
+
onSuccess: (q) => {
|
|
960
|
+
Re(q, t), delete c.value[G];
|
|
961
|
+
},
|
|
962
|
+
onError: (q) => {
|
|
963
|
+
Ce(q, t), delete c.value[G];
|
|
964
|
+
}
|
|
965
|
+
}, Q = Te(J);
|
|
966
|
+
c.value[G] = Q, Q instanceof Promise && Q.then(J.onSuccess, J.onError);
|
|
967
|
+
}, S = (t) => {
|
|
968
|
+
const n = t.target.files;
|
|
969
|
+
n && P(Array.from(n));
|
|
970
|
+
}, R = () => {
|
|
971
|
+
k.value || (d.value.value = "", d.value.click());
|
|
972
|
+
}, p = () => {
|
|
973
|
+
R();
|
|
974
|
+
};
|
|
975
|
+
return r({
|
|
976
|
+
abort: (t) => {
|
|
977
|
+
Ge(c.value).filter(
|
|
978
|
+
t ? ([l]) => String(t.uid) === l : () => !0
|
|
979
|
+
).forEach(([l, y]) => {
|
|
980
|
+
y instanceof XMLHttpRequest && y.abort(), delete c.value[l];
|
|
981
|
+
});
|
|
982
|
+
},
|
|
983
|
+
upload: b
|
|
984
|
+
}), (t, n) => (g(), E("div", {
|
|
985
|
+
class: m([
|
|
986
|
+
a(i).b(),
|
|
987
|
+
a(i).m(e.listType),
|
|
988
|
+
a(i).is("drag", e.drag),
|
|
989
|
+
a(i).is("disabled", a(k))
|
|
990
|
+
]),
|
|
991
|
+
tabindex: a(k) ? void 0 : 0,
|
|
992
|
+
"aria-disabled": a(k),
|
|
993
|
+
role: "button",
|
|
994
|
+
onClick: R,
|
|
995
|
+
onKeydown: we(M(p, ["self"]), ["enter", "space"])
|
|
996
|
+
}, [
|
|
997
|
+
e.drag ? (g(), B(wt, {
|
|
998
|
+
key: 0,
|
|
999
|
+
disabled: a(k),
|
|
1000
|
+
directory: e.directory,
|
|
1001
|
+
onFile: P
|
|
1002
|
+
}, {
|
|
1003
|
+
default: T(() => [
|
|
1004
|
+
C(t.$slots, "default")
|
|
1005
|
+
]),
|
|
1006
|
+
_: 3
|
|
1007
|
+
/* FORWARDED */
|
|
1008
|
+
}, 8, ["disabled", "directory"])) : C(t.$slots, "default", { key: 1 }),
|
|
1009
|
+
N("input", {
|
|
1010
|
+
ref_key: "inputRef",
|
|
1011
|
+
ref: d,
|
|
1012
|
+
class: m(a(i).e("input")),
|
|
1013
|
+
name: e.name,
|
|
1014
|
+
disabled: a(k),
|
|
1015
|
+
multiple: e.multiple,
|
|
1016
|
+
accept: e.accept,
|
|
1017
|
+
webkitdirectory: e.directory || void 0,
|
|
1018
|
+
type: "file",
|
|
1019
|
+
onChange: S,
|
|
1020
|
+
onClick: n[0] || (n[0] = M(() => {
|
|
1021
|
+
}, ["stop"]))
|
|
1022
|
+
}, null, 42, Et)
|
|
1023
|
+
], 42, $t));
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
const de = "ElUpload", fe = (e) => {
|
|
1027
|
+
var r;
|
|
1028
|
+
(r = e.url) != null && r.startsWith("blob:") && URL.revokeObjectURL(e.url);
|
|
1029
|
+
}, Pt = (e, r) => {
|
|
1030
|
+
const s = Xe(
|
|
1031
|
+
e,
|
|
1032
|
+
"fileList",
|
|
1033
|
+
void 0,
|
|
1034
|
+
{ passive: !0 }
|
|
1035
|
+
), i = (o) => s.value.find((t) => t.uid === o.uid);
|
|
1036
|
+
function k(o) {
|
|
1037
|
+
var t;
|
|
1038
|
+
(t = r.value) == null || t.abort(o);
|
|
1039
|
+
}
|
|
1040
|
+
function c(o = ["ready", "uploading", "success", "fail"]) {
|
|
1041
|
+
s.value = s.value.filter(
|
|
1042
|
+
(t) => !o.includes(t.status)
|
|
1043
|
+
);
|
|
1044
|
+
}
|
|
1045
|
+
function d(o) {
|
|
1046
|
+
s.value = s.value.filter(
|
|
1047
|
+
(t) => t.uid !== o.uid
|
|
1048
|
+
);
|
|
1049
|
+
}
|
|
1050
|
+
const P = (o) => {
|
|
1051
|
+
ze(() => e.onChange(o, s.value));
|
|
1052
|
+
}, b = (o, t) => {
|
|
1053
|
+
const n = i(t);
|
|
1054
|
+
n && (console.error(o), n.status = "fail", d(n), e.onError(o, n, s.value), P(n));
|
|
1055
|
+
}, $ = (o, t) => {
|
|
1056
|
+
const n = i(t);
|
|
1057
|
+
n && (e.onProgress(o, n, s.value), n.status = "uploading", n.percentage = Math.round(o.percent));
|
|
1058
|
+
}, L = (o, t) => {
|
|
1059
|
+
const n = i(t);
|
|
1060
|
+
n && (n.status = "success", n.response = o, e.onSuccess(o, n, s.value), P(n));
|
|
1061
|
+
}, S = (o) => {
|
|
1062
|
+
pe(o.uid) && (o.uid = Z());
|
|
1063
|
+
const t = {
|
|
1064
|
+
name: o.name,
|
|
1065
|
+
percentage: 0,
|
|
1066
|
+
status: "ready",
|
|
1067
|
+
size: o.size,
|
|
1068
|
+
raw: o,
|
|
1069
|
+
uid: o.uid
|
|
1070
|
+
};
|
|
1071
|
+
if (e.listType === "picture-card" || e.listType === "picture")
|
|
1072
|
+
try {
|
|
1073
|
+
t.url = URL.createObjectURL(o);
|
|
1074
|
+
} catch (n) {
|
|
1075
|
+
xe(de, n.message), e.onError(n, t, s.value);
|
|
1076
|
+
}
|
|
1077
|
+
s.value = [...s.value, t], P(t);
|
|
1078
|
+
}, R = async (o) => {
|
|
1079
|
+
const t = o instanceof File ? i(o) : o;
|
|
1080
|
+
t || _(de, "file to be removed not found");
|
|
1081
|
+
const n = (l) => {
|
|
1082
|
+
k(l), d(l), e.onRemove(l, s.value), fe(l);
|
|
1083
|
+
};
|
|
1084
|
+
e.beforeRemove ? await e.beforeRemove(t, s.value) !== !1 && n(t) : n(t);
|
|
1085
|
+
};
|
|
1086
|
+
function p() {
|
|
1087
|
+
s.value.filter(({ status: o }) => o === "ready").forEach(({ raw: o }) => {
|
|
1088
|
+
var t;
|
|
1089
|
+
return o && ((t = r.value) == null ? void 0 : t.upload(o));
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
return oe(
|
|
1093
|
+
() => e.listType,
|
|
1094
|
+
(o) => {
|
|
1095
|
+
o !== "picture-card" && o !== "picture" || (s.value = s.value.map((t) => {
|
|
1096
|
+
const { raw: n, url: l } = t;
|
|
1097
|
+
if (!l && n)
|
|
1098
|
+
try {
|
|
1099
|
+
t.url = URL.createObjectURL(n);
|
|
1100
|
+
} catch (y) {
|
|
1101
|
+
e.onError(y, t, s.value);
|
|
1102
|
+
}
|
|
1103
|
+
return t;
|
|
1104
|
+
}));
|
|
1105
|
+
}
|
|
1106
|
+
), oe(
|
|
1107
|
+
s,
|
|
1108
|
+
(o) => {
|
|
1109
|
+
for (const t of o)
|
|
1110
|
+
t.uid || (t.uid = Z()), t.status || (t.status = "success");
|
|
1111
|
+
},
|
|
1112
|
+
{ immediate: !0, deep: !0 }
|
|
1113
|
+
), {
|
|
1114
|
+
/** @description two-way binding ref from props `fileList` */
|
|
1115
|
+
uploadFiles: s,
|
|
1116
|
+
abort: k,
|
|
1117
|
+
clearFiles: c,
|
|
1118
|
+
handleError: b,
|
|
1119
|
+
handleProgress: $,
|
|
1120
|
+
handleStart: S,
|
|
1121
|
+
handleSuccess: L,
|
|
1122
|
+
handleRemove: R,
|
|
1123
|
+
submit: p,
|
|
1124
|
+
revokeFileObjectURL: fe
|
|
1125
|
+
};
|
|
1126
|
+
};
|
|
1127
|
+
var St = /* @__PURE__ */ H({
|
|
1128
|
+
name: "ElUpload",
|
|
1129
|
+
__name: "upload",
|
|
1130
|
+
props: tt,
|
|
1131
|
+
setup(e, { expose: r }) {
|
|
1132
|
+
const s = e, i = X(), k = Y(), {
|
|
1133
|
+
abort: c,
|
|
1134
|
+
submit: d,
|
|
1135
|
+
clearFiles: P,
|
|
1136
|
+
uploadFiles: b,
|
|
1137
|
+
handleStart: $,
|
|
1138
|
+
handleError: L,
|
|
1139
|
+
handleRemove: S,
|
|
1140
|
+
handleSuccess: R,
|
|
1141
|
+
handleProgress: p,
|
|
1142
|
+
revokeFileObjectURL: o
|
|
1143
|
+
} = Pt(s, k), t = F(() => s.listType === "picture-card"), n = F(() => ({
|
|
1144
|
+
...s,
|
|
1145
|
+
fileList: b.value,
|
|
1146
|
+
onStart: $,
|
|
1147
|
+
onProgress: p,
|
|
1148
|
+
onSuccess: R,
|
|
1149
|
+
onError: L,
|
|
1150
|
+
onRemove: S
|
|
1151
|
+
}));
|
|
1152
|
+
return Ke(() => {
|
|
1153
|
+
b.value.forEach(o);
|
|
1154
|
+
}), He(Fe, {
|
|
1155
|
+
accept: We(s, "accept")
|
|
1156
|
+
}), r({
|
|
1157
|
+
/** @description cancel upload request */
|
|
1158
|
+
abort: c,
|
|
1159
|
+
/** @description upload the file list manually */
|
|
1160
|
+
submit: d,
|
|
1161
|
+
/** @description clear the file list */
|
|
1162
|
+
clearFiles: P,
|
|
1163
|
+
/** @description select the file manually */
|
|
1164
|
+
handleStart: $,
|
|
1165
|
+
/** @description remove the file manually */
|
|
1166
|
+
handleRemove: S
|
|
1167
|
+
}), (l, y) => (g(), E("div", null, [
|
|
1168
|
+
t.value && e.showFileList ? (g(), B(ie, {
|
|
1169
|
+
key: 0,
|
|
1170
|
+
disabled: a(i),
|
|
1171
|
+
"list-type": e.listType,
|
|
1172
|
+
files: a(b),
|
|
1173
|
+
crossorigin: e.crossorigin,
|
|
1174
|
+
"handle-preview": e.onPreview,
|
|
1175
|
+
onRemove: a(S)
|
|
1176
|
+
}, ne({
|
|
1177
|
+
append: T(() => [
|
|
1178
|
+
O(
|
|
1179
|
+
ce,
|
|
1180
|
+
re({
|
|
1181
|
+
ref_key: "uploadRef",
|
|
1182
|
+
ref: k
|
|
1183
|
+
}, n.value),
|
|
1184
|
+
{
|
|
1185
|
+
default: T(() => [
|
|
1186
|
+
l.$slots.trigger ? C(l.$slots, "trigger", { key: 0 }) : w("v-if", !0),
|
|
1187
|
+
!l.$slots.trigger && l.$slots.default ? C(l.$slots, "default", { key: 1 }) : w("v-if", !0)
|
|
1188
|
+
]),
|
|
1189
|
+
_: 3
|
|
1190
|
+
/* FORWARDED */
|
|
1191
|
+
},
|
|
1192
|
+
16
|
|
1193
|
+
/* FULL_PROPS */
|
|
1194
|
+
)
|
|
1195
|
+
]),
|
|
1196
|
+
_: 2
|
|
1197
|
+
/* DYNAMIC */
|
|
1198
|
+
}, [
|
|
1199
|
+
l.$slots.file ? {
|
|
1200
|
+
name: "default",
|
|
1201
|
+
fn: T(({ file: u, index: v }) => [
|
|
1202
|
+
C(l.$slots, "file", {
|
|
1203
|
+
file: u,
|
|
1204
|
+
index: v
|
|
1205
|
+
})
|
|
1206
|
+
]),
|
|
1207
|
+
key: "0"
|
|
1208
|
+
} : void 0
|
|
1209
|
+
]), 1032, ["disabled", "list-type", "files", "crossorigin", "handle-preview", "onRemove"])) : w("v-if", !0),
|
|
1210
|
+
!t.value || t.value && !e.showFileList ? (g(), B(
|
|
1211
|
+
ce,
|
|
1212
|
+
re({
|
|
1213
|
+
key: 1,
|
|
1214
|
+
ref_key: "uploadRef",
|
|
1215
|
+
ref: k
|
|
1216
|
+
}, n.value),
|
|
1217
|
+
{
|
|
1218
|
+
default: T(() => [
|
|
1219
|
+
l.$slots.trigger ? C(l.$slots, "trigger", { key: 0 }) : w("v-if", !0),
|
|
1220
|
+
!l.$slots.trigger && l.$slots.default ? C(l.$slots, "default", { key: 1 }) : w("v-if", !0)
|
|
1221
|
+
]),
|
|
1222
|
+
_: 3
|
|
1223
|
+
/* FORWARDED */
|
|
1224
|
+
},
|
|
1225
|
+
16
|
|
1226
|
+
/* FULL_PROPS */
|
|
1227
|
+
)) : w("v-if", !0),
|
|
1228
|
+
l.$slots.trigger ? C(l.$slots, "default", { key: 2 }) : w("v-if", !0),
|
|
1229
|
+
C(l.$slots, "tip"),
|
|
1230
|
+
!t.value && e.showFileList ? (g(), B(ie, {
|
|
1231
|
+
key: 3,
|
|
1232
|
+
disabled: a(i),
|
|
1233
|
+
"list-type": e.listType,
|
|
1234
|
+
files: a(b),
|
|
1235
|
+
crossorigin: e.crossorigin,
|
|
1236
|
+
"handle-preview": e.onPreview,
|
|
1237
|
+
onRemove: a(S)
|
|
1238
|
+
}, ne({
|
|
1239
|
+
_: 2
|
|
1240
|
+
/* DYNAMIC */
|
|
1241
|
+
}, [
|
|
1242
|
+
l.$slots.file ? {
|
|
1243
|
+
name: "default",
|
|
1244
|
+
fn: T(({ file: u, index: v }) => [
|
|
1245
|
+
C(l.$slots, "file", {
|
|
1246
|
+
file: u,
|
|
1247
|
+
index: v
|
|
1248
|
+
})
|
|
1249
|
+
]),
|
|
1250
|
+
key: "0"
|
|
1251
|
+
} : void 0
|
|
1252
|
+
]), 1032, ["disabled", "list-type", "files", "crossorigin", "handle-preview", "onRemove"])) : w("v-if", !0)
|
|
1253
|
+
]));
|
|
1254
|
+
}
|
|
1255
|
+
});
|
|
1256
|
+
const Nt = ve(St);
|
|
1257
|
+
export {
|
|
1258
|
+
Nt as ElUpload,
|
|
1259
|
+
Nt as default,
|
|
1260
|
+
Z as genFileId,
|
|
1261
|
+
Pe as uploadBaseProps,
|
|
1262
|
+
Se as uploadBasePropsDefaults,
|
|
1263
|
+
ht as uploadContentProps,
|
|
1264
|
+
Ot as uploadContentPropsDefaults,
|
|
1265
|
+
Fe as uploadContextKey,
|
|
1266
|
+
kt as uploadDraggerEmits,
|
|
1267
|
+
bt as uploadDraggerProps,
|
|
1268
|
+
at as uploadListEmits,
|
|
1269
|
+
st as uploadListProps,
|
|
1270
|
+
Ee as uploadListTypes,
|
|
1271
|
+
tt as uploadProps,
|
|
1272
|
+
Bt as uploadPropsDefaults
|
|
1273
|
+
};
|