@dazhicheng/ui 1.4.17 → 1.4.18
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 +0 -1
- package/dist/components/tt-area/index.d.ts +0 -1
- package/dist/components/tt-button/index.d.ts +231 -232
- package/dist/components/tt-button/index.vue.d.ts +132 -133
- package/dist/components/tt-checkbox/index.d.ts +0 -1
- package/dist/components/tt-checkbox/index.vue.d.ts +0 -1
- package/dist/components/tt-checkbox/type.d.ts +0 -1
- package/dist/components/tt-empty/index.d.ts +0 -1
- package/dist/components/tt-form/index.d.ts +8 -10
- package/dist/components/tt-form/src/components/ExpandableArrow.vue.d.ts +2 -5
- package/dist/components/tt-form/src/components/Slot.d.ts +0 -1
- package/dist/components/tt-form/src/components/{FormActions.vue.d.ts → formActions.vue.d.ts} +8 -15
- package/dist/components/tt-form/src/config.d.ts +2 -6
- package/dist/components/tt-form/src/form/FormControl.vue.d.ts +0 -1
- package/dist/components/tt-form/src/form/FormDescription.vue.d.ts +0 -1
- package/dist/components/tt-form/src/form/FormItem.vue.d.ts +0 -1
- package/dist/components/tt-form/src/form/FormLabel.vue.d.ts +0 -1
- package/dist/components/tt-form/src/form/FormMessage.vue.d.ts +1 -16
- package/dist/components/tt-form/src/form/FormMessageToolTip.vue.d.ts +8 -0
- package/dist/components/tt-form/src/form/FormWarnMessage.vue.d.ts +1 -2
- package/dist/components/tt-form/src/form/RenderContent.vue.d.ts +0 -1
- package/dist/components/tt-form/src/form/index.d.ts +3 -3
- package/dist/components/tt-form/src/form/injectionKeys.d.ts +0 -1
- package/dist/components/tt-form/src/form/useFormField.d.ts +1 -2
- package/dist/components/tt-form/src/form-render/FormField.vue.d.ts +28 -0
- package/dist/components/tt-form/src/form-render/FormLabel.vue.d.ts +27 -0
- package/dist/components/tt-form/src/form-render/context.d.ts +6 -53
- package/dist/components/tt-form/src/form-render/dependencies.d.ts +156 -168
- package/dist/components/tt-form/src/form-render/expandable.d.ts +2 -3
- package/dist/components/tt-form/src/form-render/form.vue.d.ts +10 -45
- package/dist/components/tt-form/src/form-render/helper.d.ts +2 -8
- package/dist/components/tt-form/src/form-render/index.d.ts +2 -3
- package/dist/components/tt-form/src/formApi.d.ts +71 -0
- package/dist/components/tt-form/src/hooks/useEmitAsProps.d.ts +0 -1
- package/dist/components/tt-form/src/hooks/useFormFieldBus.d.ts +2 -2
- package/dist/components/tt-form/src/hooks/useForwardPriorityValues.d.ts +0 -1
- package/dist/components/tt-form/src/hooks/useForwardProps.d.ts +0 -1
- package/dist/components/tt-form/src/hooks/useForwardPropsEmits.d.ts +0 -1
- package/dist/components/tt-form/src/shared/createContext.d.ts +0 -1
- package/dist/components/tt-form/src/shared/global-state.d.ts +0 -1
- package/dist/components/tt-form/src/shared/store.d.ts +0 -1
- package/dist/components/tt-form/src/shared/zod-defaults.d.ts +0 -1
- package/dist/components/tt-form/src/types/common.d.ts +11 -0
- package/dist/components/tt-form/src/types/forms.d.ts +280 -0
- package/dist/components/tt-form/src/types/index.d.ts +3 -0
- package/dist/components/tt-form/src/types/paths.d.ts +142 -0
- package/dist/components/tt-form/src/types/shared.d.ts +19 -0
- package/dist/components/tt-form/src/types.d.ts +381 -0
- package/dist/components/tt-form/src/useForm.d.ts +2 -0
- package/dist/components/tt-form/src/useForm.vue.d.ts +27 -0
- package/dist/components/tt-form/src/useFormContext.d.ts +12 -0
- package/dist/components/tt-form-adapter/component/index.d.ts +1 -2
- package/dist/components/tt-form-adapter/index.d.ts +1 -2
- package/dist/components/tt-form-item-error-tooltip/index.d.ts +8 -9
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +4 -5
- package/dist/components/tt-icon/index.d.ts +3 -4
- package/dist/components/tt-icon/index.vue.d.ts +1 -2
- package/dist/components/tt-image/index.d.ts +5 -6
- package/dist/components/tt-image/src/components/ImageViewer.d.ts +4 -5
- package/dist/components/tt-image/tt-image.d.ts +5 -6
- package/dist/components/tt-loading/index.d.ts +2 -3
- package/dist/components/tt-loading/src/directive.d.ts +0 -1
- package/dist/components/tt-loading/src/loading.vue.d.ts +2 -3
- package/dist/components/tt-loading/src/service.d.ts +0 -1
- package/dist/components/tt-loading/src/type.d.ts +0 -1
- package/dist/components/tt-modal/index.d.ts +92 -93
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts +47 -48
- package/dist/components/tt-modal/src/components/ModalFooter.vue.d.ts +0 -1
- package/dist/components/tt-modal/src/components/ModalHeader.vue.d.ts +0 -1
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.d.ts +4 -5
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +21 -22
- package/dist/components/tt-modal/src/index.d.ts +0 -1
- package/dist/components/tt-modal/src/props.d.ts +0 -1
- package/dist/components/tt-modal/src/typing.d.ts +0 -1
- package/dist/components/tt-modal/src/utils/modal-api.d.ts +0 -1
- package/dist/components/tt-part/index.d.ts +6 -7
- package/dist/components/tt-part/index.vue.d.ts +2 -3
- package/dist/components/tt-part/type.d.ts +0 -1
- package/dist/components/tt-part-item/index.d.ts +3 -4
- package/dist/components/tt-part-item/index.vue.d.ts +1 -2
- package/dist/components/tt-part-item/type.d.ts +0 -1
- package/dist/components/tt-select/index.d.ts +0 -1
- package/dist/components/tt-select/src/Select.vue.d.ts +33 -34
- package/dist/components/tt-select/src/components/SelectTable.vue.d.ts +3 -4
- package/dist/components/tt-select/src/components/Table.vue.d.ts +3 -4
- package/dist/components/tt-select/src/const.d.ts +0 -1
- package/dist/components/tt-select/src/hooks/useDataSource.d.ts +0 -1
- package/dist/components/tt-select/src/hooks/useGrid.d.ts +0 -1
- package/dist/components/tt-select/src/hooks/useKeyboard.d.ts +0 -1
- package/dist/components/tt-select/src/hooks/usePagination.d.ts +0 -1
- package/dist/components/tt-select/src/hooks/useSelect.d.ts +0 -1
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +0 -1
- package/dist/components/tt-select/src/props.d.ts +0 -1
- package/dist/components/tt-select/src/types/index.d.ts +0 -1
- package/dist/components/tt-select/src/utils/index.d.ts +0 -1
- package/dist/components/tt-table/index.d.ts +0 -1
- package/dist/components/tt-table/src/Table.vue.d.ts +111 -112
- package/dist/components/tt-table/src/componentMap.d.ts +0 -1
- package/dist/components/tt-table/src/components/RowContext.d.ts +0 -1
- package/dist/components/tt-table/src/components/TableAction.vue.d.ts +0 -1
- package/dist/components/tt-table/src/components/TableButtons.d.ts +0 -1
- package/dist/components/tt-table/src/components/TableColumnModal.vue.d.ts +0 -1
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +56 -57
- package/dist/components/tt-table/src/emits.d.ts +0 -1
- package/dist/components/tt-table/src/enum.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useCache.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useCellArea.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useColumns.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useCustomColumns.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useDataSource.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useLeftRightSlot.d.ts +88 -89
- package/dist/components/tt-table/src/hooks/usePagination.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTable.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTableContext.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTableEvent.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTableForm.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTableFormEvent.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTableHeight.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts +0 -1
- package/dist/components/tt-table/src/hooks/useTableSlot.d.ts +0 -1
- package/dist/components/tt-table/src/props.d.ts +0 -1
- package/dist/components/tt-table/src/toolProps.d.ts +0 -1
- package/dist/components/tt-table/src/types/table.d.ts +0 -1
- package/dist/components/tt-table/src/types/tableAction.d.ts +0 -1
- package/dist/components/tt-table/src/types/tableForm.d.ts +0 -1
- package/dist/components/tt-table/src/types/tableTools.d.ts +0 -1
- package/dist/components/tt-table/src/utils/context.d.ts +0 -1
- package/dist/components/tt-table/src/utils/filters.d.ts +0 -1
- package/dist/components/tt-table/src/utils/table-api.d.ts +0 -1
- package/dist/components/tt-table/src/utils/table-form-api.d.ts +0 -1
- package/dist/components/tt-table/src/utils/vxeTable.d.ts +0 -1
- package/dist/components/tt-text/index.d.ts +3 -4
- package/dist/components/tt-text/index.vue.d.ts +1 -2
- package/dist/components/tt-tree-select/index.d.ts +0 -1
- package/dist/components/tt-tree-select/src/TtTreeSelect.vue.d.ts +0 -1
- package/dist/components/tt-tree-select/src/cache-options.d.ts +1 -2
- package/dist/components/tt-tree-select/src/select.d.ts +0 -1
- package/dist/components/tt-tree-select/src/tree.d.ts +0 -1
- package/dist/components/tt-tree-select/src/utils.d.ts +0 -1
- package/dist/components/tt-validate/index.d.ts +0 -1
- package/dist/components/tt-validate/src/ErrorMessage.d.ts +0 -1
- package/dist/components/tt-validate/src/Field.d.ts +7 -8
- package/dist/components/tt-validate/src/FieldArray.d.ts +0 -1
- package/dist/components/tt-validate/src/Form.d.ts +3 -4
- package/dist/components/tt-validate/src/config.d.ts +0 -1
- package/dist/components/tt-validate/src/defineRule.d.ts +0 -1
- package/dist/components/tt-validate/src/index.d.ts +0 -1
- package/dist/components/tt-validate/src/symbols.d.ts +0 -1
- package/dist/components/tt-validate/src/types/common.d.ts +0 -1
- package/dist/components/tt-validate/src/types/forms.d.ts +0 -1
- package/dist/components/tt-validate/src/types/index.d.ts +0 -1
- package/dist/components/tt-validate/src/types/paths.d.ts +0 -1
- package/dist/components/tt-validate/src/types/shared.d.ts +0 -1
- package/dist/components/tt-validate/src/useField.d.ts +0 -1
- package/dist/components/tt-validate/src/useFieldArray.d.ts +0 -1
- package/dist/components/tt-validate/src/useFieldError.d.ts +0 -1
- package/dist/components/tt-validate/src/useFieldState.d.ts +0 -1
- package/dist/components/tt-validate/src/useFieldValue.d.ts +0 -1
- package/dist/components/tt-validate/src/useForm.d.ts +0 -1
- package/dist/components/tt-validate/src/useFormErrors.d.ts +0 -1
- package/dist/components/tt-validate/src/useFormValues.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsFieldDirty.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsFieldTouched.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsFieldValid.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsFormDirty.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsFormTouched.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsFormValid.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsSubmitting.d.ts +0 -1
- package/dist/components/tt-validate/src/useIsValidating.d.ts +0 -1
- package/dist/components/tt-validate/src/useResetForm.d.ts +0 -1
- package/dist/components/tt-validate/src/useSetFieldError.d.ts +0 -1
- package/dist/components/tt-validate/src/useSetFieldTouched.d.ts +0 -1
- package/dist/components/tt-validate/src/useSetFieldValue.d.ts +0 -1
- package/dist/components/tt-validate/src/useSetFormErrors.d.ts +0 -1
- package/dist/components/tt-validate/src/useSetFormTouched.d.ts +0 -1
- package/dist/components/tt-validate/src/useSetFormValues.d.ts +0 -1
- package/dist/components/tt-validate/src/useSubmitCount.d.ts +0 -1
- package/dist/components/tt-validate/src/useSubmitForm.d.ts +0 -1
- package/dist/components/tt-validate/src/useValidateField.d.ts +0 -1
- package/dist/components/tt-validate/src/useValidateForm.d.ts +0 -1
- package/dist/components/tt-validate/src/utils/assertions.d.ts +0 -1
- package/dist/components/tt-validate/src/utils/common.d.ts +0 -1
- package/dist/components/tt-validate/src/utils/events.d.ts +0 -1
- package/dist/components/tt-validate/src/utils/index.d.ts +0 -1
- package/dist/components/tt-validate/src/utils/rules.d.ts +0 -1
- package/dist/components/tt-validate/src/utils/shared.d.ts +0 -1
- package/dist/components/tt-validate/src/utils/vnode.d.ts +0 -1
- package/dist/components/tt-validate/src/validate.d.ts +0 -1
- package/dist/components/tt-validate/zod/index.d.ts +0 -1
- package/dist/components/types.d.ts +0 -1
- package/dist/directives/auto-tip/index.d.ts +0 -1
- package/dist/directives/dialog-resize/index.d.ts +0 -1
- package/dist/directives/dialog-resize/use-css-variable.d.ts +0 -1
- package/dist/directives/dialog-resize/use-draggable.d.ts +0 -1
- package/dist/directives/dialog-resize/use-fullscreen.d.ts +0 -1
- package/dist/directives/dialog-resize/use-parse-translate.d.ts +0 -1
- package/dist/directives/dialog-resize/use-resizer.d.ts +0 -1
- package/dist/directives/disabled-tip/index.d.ts +0 -1
- package/dist/directives/index.d.ts +0 -1
- package/dist/hooks/useFormat.d.ts +0 -1
- package/dist/hooks/useLoading.d.ts +0 -1
- package/dist/hooks/useSetup.d.ts +0 -1
- package/dist/hooks/useTable.d.ts +0 -1
- package/dist/hooks/useTemplateSlot.d.ts +0 -1
- package/dist/index.d.ts +15 -8
- package/dist/index.js +33097 -32
- package/dist/style.css +1 -1
- package/package.json +8 -5
- package/dist/components/tt-area/TtArea.vue.d.ts.map +0 -1
- package/dist/components/tt-area/index.d.ts.map +0 -1
- package/dist/components/tt-button/index.d.ts.map +0 -1
- package/dist/components/tt-button/index.vue.d.ts.map +0 -1
- package/dist/components/tt-checkbox/index.d.ts.map +0 -1
- package/dist/components/tt-checkbox/index.vue.d.ts.map +0 -1
- package/dist/components/tt-checkbox/type.d.ts.map +0 -1
- package/dist/components/tt-empty/index.d.ts.map +0 -1
- package/dist/components/tt-form/index.d.ts.map +0 -1
- package/dist/components/tt-form/src/compare.d.ts +0 -15
- package/dist/components/tt-form/src/compare.d.ts.map +0 -1
- package/dist/components/tt-form/src/components/ExpandableArrow.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/components/FormActions.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/components/FormFilter.vue.d.ts +0 -23
- package/dist/components/tt-form/src/components/FormFilter.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/components/Slot.d.ts.map +0 -1
- package/dist/components/tt-form/src/config.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/FormControl.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/FormDescription.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/FormItem.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/FormLabel.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/FormMessage.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/FormWarnMessage.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/RenderContent.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/index.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/injectionKeys.d.ts.map +0 -1
- package/dist/components/tt-form/src/form/useFormField.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-api.d.ts +0 -163
- package/dist/components/tt-form/src/form-api.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/context.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/dependencies.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/expandable.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/form-field.vue.d.ts +0 -33
- package/dist/components/tt-form/src/form-render/form-field.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/form-label.vue.d.ts +0 -44
- package/dist/components/tt-form/src/form-render/form-label.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/form.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/helper.d.ts.map +0 -1
- package/dist/components/tt-form/src/form-render/index.d.ts.map +0 -1
- package/dist/components/tt-form/src/hooks/useEmitAsProps.d.ts.map +0 -1
- package/dist/components/tt-form/src/hooks/useFormFieldBus.d.ts.map +0 -1
- package/dist/components/tt-form/src/hooks/useForwardPriorityValues.d.ts.map +0 -1
- package/dist/components/tt-form/src/hooks/useForwardProps.d.ts.map +0 -1
- package/dist/components/tt-form/src/hooks/useForwardPropsEmits.d.ts.map +0 -1
- package/dist/components/tt-form/src/index.vue.d.ts +0 -344
- package/dist/components/tt-form/src/index.vue.d.ts.map +0 -1
- package/dist/components/tt-form/src/shared/createContext.d.ts.map +0 -1
- package/dist/components/tt-form/src/shared/global-state.d.ts.map +0 -1
- package/dist/components/tt-form/src/shared/store.d.ts.map +0 -1
- package/dist/components/tt-form/src/shared/zod-defaults.d.ts.map +0 -1
- package/dist/components/tt-form/src/types/types.d.ts +0 -503
- package/dist/components/tt-form/src/types/types.d.ts.map +0 -1
- package/dist/components/tt-form/src/use-form-context.d.ts +0 -41
- package/dist/components/tt-form/src/use-form-context.d.ts.map +0 -1
- package/dist/components/tt-form/src/use-form-v2.d.ts +0 -19
- package/dist/components/tt-form/src/use-form-v2.d.ts.map +0 -1
- package/dist/components/tt-form-adapter/component/index.d.ts.map +0 -1
- package/dist/components/tt-form-adapter/index.d.ts.map +0 -1
- package/dist/components/tt-form-item-error-tooltip/index.d.ts.map +0 -1
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts.map +0 -1
- package/dist/components/tt-icon/index.d.ts.map +0 -1
- package/dist/components/tt-icon/index.vue.d.ts.map +0 -1
- package/dist/components/tt-image/index.d.ts.map +0 -1
- package/dist/components/tt-image/src/components/ImageViewer.d.ts.map +0 -1
- package/dist/components/tt-image/tt-image.d.ts.map +0 -1
- package/dist/components/tt-loading/index.d.ts.map +0 -1
- package/dist/components/tt-loading/src/directive.d.ts.map +0 -1
- package/dist/components/tt-loading/src/loading.vue.d.ts.map +0 -1
- package/dist/components/tt-loading/src/service.d.ts.map +0 -1
- package/dist/components/tt-loading/src/type.d.ts.map +0 -1
- package/dist/components/tt-modal/index.d.ts.map +0 -1
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts.map +0 -1
- package/dist/components/tt-modal/src/components/ModalFooter.vue.d.ts.map +0 -1
- package/dist/components/tt-modal/src/components/ModalHeader.vue.d.ts.map +0 -1
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.d.ts.map +0 -1
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts.map +0 -1
- package/dist/components/tt-modal/src/index.d.ts.map +0 -1
- package/dist/components/tt-modal/src/props.d.ts.map +0 -1
- package/dist/components/tt-modal/src/typing.d.ts.map +0 -1
- package/dist/components/tt-modal/src/utils/modal-api.d.ts.map +0 -1
- package/dist/components/tt-part/index.d.ts.map +0 -1
- package/dist/components/tt-part/index.vue.d.ts.map +0 -1
- package/dist/components/tt-part/type.d.ts.map +0 -1
- package/dist/components/tt-part-item/index.d.ts.map +0 -1
- package/dist/components/tt-part-item/index.vue.d.ts.map +0 -1
- package/dist/components/tt-part-item/type.d.ts.map +0 -1
- package/dist/components/tt-select/index.d.ts.map +0 -1
- package/dist/components/tt-select/src/Select.vue.d.ts.map +0 -1
- package/dist/components/tt-select/src/components/SelectTable.vue.d.ts.map +0 -1
- package/dist/components/tt-select/src/components/Table.vue.d.ts.map +0 -1
- package/dist/components/tt-select/src/const.d.ts.map +0 -1
- package/dist/components/tt-select/src/hooks/useDataSource.d.ts.map +0 -1
- package/dist/components/tt-select/src/hooks/useGrid.d.ts.map +0 -1
- package/dist/components/tt-select/src/hooks/useKeyboard.d.ts.map +0 -1
- package/dist/components/tt-select/src/hooks/usePagination.d.ts.map +0 -1
- package/dist/components/tt-select/src/hooks/useSelect.d.ts.map +0 -1
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts.map +0 -1
- package/dist/components/tt-select/src/props.d.ts.map +0 -1
- package/dist/components/tt-select/src/types/index.d.ts.map +0 -1
- package/dist/components/tt-select/src/utils/index.d.ts.map +0 -1
- package/dist/components/tt-table/index.d.ts.map +0 -1
- package/dist/components/tt-table/src/Table.vue.d.ts.map +0 -1
- package/dist/components/tt-table/src/componentMap.d.ts.map +0 -1
- package/dist/components/tt-table/src/components/RowContext.d.ts.map +0 -1
- package/dist/components/tt-table/src/components/TableAction.vue.d.ts.map +0 -1
- package/dist/components/tt-table/src/components/TableButtons.d.ts.map +0 -1
- package/dist/components/tt-table/src/components/TableColumnModal.vue.d.ts.map +0 -1
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts.map +0 -1
- package/dist/components/tt-table/src/emits.d.ts.map +0 -1
- package/dist/components/tt-table/src/enum.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useCache.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useCellArea.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useColumns.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useCustomColumns.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useDataSource.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useLeftRightSlot.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/usePagination.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTable.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTableContext.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTableEvent.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTableForm.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTableFormEvent.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTableHeight.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts.map +0 -1
- package/dist/components/tt-table/src/hooks/useTableSlot.d.ts.map +0 -1
- package/dist/components/tt-table/src/props.d.ts.map +0 -1
- package/dist/components/tt-table/src/toolProps.d.ts.map +0 -1
- package/dist/components/tt-table/src/types/table.d.ts.map +0 -1
- package/dist/components/tt-table/src/types/tableAction.d.ts.map +0 -1
- package/dist/components/tt-table/src/types/tableForm.d.ts.map +0 -1
- package/dist/components/tt-table/src/types/tableTools.d.ts.map +0 -1
- package/dist/components/tt-table/src/utils/context.d.ts.map +0 -1
- package/dist/components/tt-table/src/utils/filters.d.ts.map +0 -1
- package/dist/components/tt-table/src/utils/table-api.d.ts.map +0 -1
- package/dist/components/tt-table/src/utils/table-form-api.d.ts.map +0 -1
- package/dist/components/tt-table/src/utils/vxeTable.d.ts.map +0 -1
- package/dist/components/tt-text/index.d.ts.map +0 -1
- package/dist/components/tt-text/index.vue.d.ts.map +0 -1
- package/dist/components/tt-tree-select/index.d.ts.map +0 -1
- package/dist/components/tt-tree-select/src/TtTreeSelect.vue.d.ts.map +0 -1
- package/dist/components/tt-tree-select/src/cache-options.d.ts.map +0 -1
- package/dist/components/tt-tree-select/src/select.d.ts.map +0 -1
- package/dist/components/tt-tree-select/src/tree.d.ts.map +0 -1
- package/dist/components/tt-tree-select/src/utils.d.ts.map +0 -1
- package/dist/components/tt-validate/index.d.ts.map +0 -1
- package/dist/components/tt-validate/src/ErrorMessage.d.ts.map +0 -1
- package/dist/components/tt-validate/src/Field.d.ts.map +0 -1
- package/dist/components/tt-validate/src/FieldArray.d.ts.map +0 -1
- package/dist/components/tt-validate/src/Form.d.ts.map +0 -1
- package/dist/components/tt-validate/src/config.d.ts.map +0 -1
- package/dist/components/tt-validate/src/defineRule.d.ts.map +0 -1
- package/dist/components/tt-validate/src/index.d.ts.map +0 -1
- package/dist/components/tt-validate/src/symbols.d.ts.map +0 -1
- package/dist/components/tt-validate/src/types/common.d.ts.map +0 -1
- package/dist/components/tt-validate/src/types/forms.d.ts.map +0 -1
- package/dist/components/tt-validate/src/types/index.d.ts.map +0 -1
- package/dist/components/tt-validate/src/types/paths.d.ts.map +0 -1
- package/dist/components/tt-validate/src/types/shared.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useField.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useFieldArray.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useFieldError.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useFieldState.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useFieldValue.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useForm.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useFormErrors.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useFormValues.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsFieldDirty.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsFieldTouched.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsFieldValid.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsFormDirty.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsFormTouched.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsFormValid.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsSubmitting.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useIsValidating.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useResetForm.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSetFieldError.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSetFieldTouched.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSetFieldValue.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSetFormErrors.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSetFormTouched.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSetFormValues.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSubmitCount.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useSubmitForm.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useValidateField.d.ts.map +0 -1
- package/dist/components/tt-validate/src/useValidateForm.d.ts.map +0 -1
- package/dist/components/tt-validate/src/utils/assertions.d.ts.map +0 -1
- package/dist/components/tt-validate/src/utils/common.d.ts.map +0 -1
- package/dist/components/tt-validate/src/utils/events.d.ts.map +0 -1
- package/dist/components/tt-validate/src/utils/index.d.ts.map +0 -1
- package/dist/components/tt-validate/src/utils/rules.d.ts.map +0 -1
- package/dist/components/tt-validate/src/utils/shared.d.ts.map +0 -1
- package/dist/components/tt-validate/src/utils/vnode.d.ts.map +0 -1
- package/dist/components/tt-validate/src/validate.d.ts.map +0 -1
- package/dist/components/tt-validate/zod/index.d.ts.map +0 -1
- package/dist/components/types.d.ts.map +0 -1
- package/dist/css-B-NBzuuu.js +0 -1
- package/dist/css-B2XtZxnv.js +0 -2
- package/dist/css-BizbCFH3.js +0 -4
- package/dist/css-ByWw4KN5.js +0 -2
- package/dist/css-CIkg43yy.js +0 -1
- package/dist/css-COykwHo1.js +0 -2
- package/dist/css-Cgfo87Gs.js +0 -1
- package/dist/css-Chse_8b2.js +0 -3
- package/dist/css-CvjpN3r9.js +0 -1
- package/dist/css-D8FPIJO1.js +0 -1
- package/dist/css-DGumj5iO.js +0 -1
- package/dist/css-DLZxzZoB.js +0 -1
- package/dist/css-Dd6Nw96X.js +0 -1
- package/dist/css-DhJ-Bn4t.js +0 -4
- package/dist/css-sQ8IZeHP.js +0 -4
- package/dist/directives/auto-tip/index.d.ts.map +0 -1
- package/dist/directives/dialog-resize/index.d.ts.map +0 -1
- package/dist/directives/dialog-resize/use-css-variable.d.ts.map +0 -1
- package/dist/directives/dialog-resize/use-draggable.d.ts.map +0 -1
- package/dist/directives/dialog-resize/use-fullscreen.d.ts.map +0 -1
- package/dist/directives/dialog-resize/use-parse-translate.d.ts.map +0 -1
- package/dist/directives/dialog-resize/use-resizer.d.ts.map +0 -1
- package/dist/directives/disabled-tip/index.d.ts.map +0 -1
- package/dist/directives/index.d.ts.map +0 -1
- package/dist/event-BpZD5QYv.js +0 -52
- package/dist/hooks/useFormat.d.ts.map +0 -1
- package/dist/hooks/useLoading.d.ts.map +0 -1
- package/dist/hooks/useSetup.d.ts.map +0 -1
- package/dist/hooks/useTable.d.ts.map +0 -1
- package/dist/hooks/useTemplateSlot.d.ts.map +0 -1
- package/dist/icon-C8mOBgGn.js +0 -15
- package/dist/index-Ay_e-Mu_.js +0 -658
- package/dist/index-BQ2KedE7.js +0 -392
- package/dist/index-BQfVaV7A.js +0 -216
- package/dist/index-BR3sT_rT.js +0 -334
- package/dist/index-BY-Xyp5q.js +0 -832
- package/dist/index-BiA7AsUl.js +0 -22
- package/dist/index-BsKcOBVC.js +0 -1273
- package/dist/index-By3DWh_m.js +0 -3559
- package/dist/index-CDw4vJ_J.js +0 -432
- package/dist/index-CQEli-Vx.js +0 -27
- package/dist/index-D1S5IgHw.js +0 -2502
- package/dist/index-DARbDgFW.js +0 -909
- package/dist/index-DftzFo8M.js +0 -46
- package/dist/index-DtD9KW7p.js +0 -436
- package/dist/index-HEvFEYVF.js +0 -32433
- package/dist/index-iDdpdLyC.js +0 -84
- package/dist/index-kCYWgqco.js +0 -3471
- package/dist/index-qhJRQdTJ.js +0 -21
- package/dist/index-tQY6pN96.js +0 -90
- package/dist/index-zMyxrv4a.js +0 -408
- package/dist/index.d.ts.map +0 -1
- package/dist/panel-time-pick.vue2-3mXww5KZ.js +0 -1603
- package/dist/typescript-BpuhIBuJ.js +0 -4
- package/dist/use-form-common-props-Co2xJKSS.js +0 -98
- package/dist/use-form-item-BHXTK2Pf.js +0 -71
- package/dist/useProps-m8gnZipa.js +0 -215
- package/dist/util-BFu351R4.js +0 -2259
package/dist/util-BFu351R4.js
DELETED
|
@@ -1,2259 +0,0 @@
|
|
|
1
|
-
import { getCurrentInstance as Ye, computed as x, watch as H, onMounted as me, unref as v, shallowRef as _n, ref as B, onBeforeUnmount as _, onBeforeMount as Gn, provide as Ee, inject as Y, defineComponent as te, renderSlot as X, createElementBlock as _e, openBlock as Z, normalizeStyle as Jn, normalizeClass as dn, withDirectives as pn, cloneVNode as Qn, Comment as Ht, Fragment as Xn, Text as eo, createVNode as ke, createBlock as pe, createCommentVNode as Ge, mergeProps as dt, withCtx as re, nextTick as it, toRef as Se, Teleport as to, Transition as no, vShow as oo, readonly as ro, onDeactivated as ao, toDisplayString as so } from "vue";
|
|
2
|
-
import { fromPairs as Vt, isEqual as io, isNil as pt, isUndefined as uo } from "lodash-es";
|
|
3
|
-
import { q as vn, a as L, l as mn, b as G, e as Je, d as Qe, i as be, c as $t, w as vt } from "./use-form-common-props-Co2xJKSS.js";
|
|
4
|
-
import { i as fe, u as lo, a as Me, d as Ce, N as ut, o as co, g as fo } from "./index-HEvFEYVF.js";
|
|
5
|
-
import { u as gn } from "./index-BiA7AsUl.js";
|
|
6
|
-
import { isClient as ie, tryOnScopeDispose as po, unrefElement as yn, computedEager as vo, onClickOutside as mo } from "@vueuse/core";
|
|
7
|
-
import { g as mt, E as Ie, c as oe } from "./event-BpZD5QYv.js";
|
|
8
|
-
import { c as Ut, f as gt } from "./index-tQY6pN96.js";
|
|
9
|
-
import { c as go, b as yo } from "./use-form-item-BHXTK2Pf.js";
|
|
10
|
-
const ho = vn({
|
|
11
|
-
type: L(Boolean),
|
|
12
|
-
default: null
|
|
13
|
-
}), bo = vn({
|
|
14
|
-
type: L(Function)
|
|
15
|
-
}), Eo = (e) => {
|
|
16
|
-
const t = `update:${e}`, n = `onUpdate:${e}`, o = [t], r = {
|
|
17
|
-
[e]: ho,
|
|
18
|
-
[n]: bo
|
|
19
|
-
};
|
|
20
|
-
return {
|
|
21
|
-
useModelToggle: ({
|
|
22
|
-
indicator: u,
|
|
23
|
-
toggleReason: i,
|
|
24
|
-
shouldHideWhenRouteChanges: s,
|
|
25
|
-
shouldProceed: l,
|
|
26
|
-
onShow: f,
|
|
27
|
-
onHide: p
|
|
28
|
-
}) => {
|
|
29
|
-
const m = Ye(), { emit: y } = m, c = m.props, d = x(
|
|
30
|
-
() => fe(c[n])
|
|
31
|
-
), b = x(() => c[e] === null), h = (T) => {
|
|
32
|
-
u.value !== !0 && (u.value = !0, i && (i.value = T), fe(f) && f(T));
|
|
33
|
-
}, E = (T) => {
|
|
34
|
-
u.value !== !1 && (u.value = !1, i && (i.value = T), fe(p) && p(T));
|
|
35
|
-
}, O = (T) => {
|
|
36
|
-
if (c.disabled === !0 || fe(l) && !l())
|
|
37
|
-
return;
|
|
38
|
-
const C = d.value && ie;
|
|
39
|
-
C && y(t, !0), (b.value || !C) && h(T);
|
|
40
|
-
}, g = (T) => {
|
|
41
|
-
if (c.disabled === !0 || !ie) return;
|
|
42
|
-
const C = d.value && ie;
|
|
43
|
-
C && y(t, !1), (b.value || !C) && E(T);
|
|
44
|
-
}, w = (T) => {
|
|
45
|
-
mn(T) && (c.disabled && T ? d.value && y(t, !1) : u.value !== T && (T ? h() : E()));
|
|
46
|
-
}, P = () => {
|
|
47
|
-
u.value ? g() : O();
|
|
48
|
-
};
|
|
49
|
-
return H(() => c[e], w), s && m.appContext.config.globalProperties.$route !== void 0 && H(
|
|
50
|
-
() => ({
|
|
51
|
-
...m.proxy.$route
|
|
52
|
-
}),
|
|
53
|
-
() => {
|
|
54
|
-
s.value && u.value && g();
|
|
55
|
-
}
|
|
56
|
-
), me(() => {
|
|
57
|
-
w(c[e]);
|
|
58
|
-
}), {
|
|
59
|
-
hide: g,
|
|
60
|
-
show: O,
|
|
61
|
-
toggle: P,
|
|
62
|
-
hasUpdateHandler: d
|
|
63
|
-
};
|
|
64
|
-
},
|
|
65
|
-
useModelToggleProps: r,
|
|
66
|
-
useModelToggleEmits: o
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
var $ = "top", z = "bottom", q = "right", U = "left", yt = "auto", je = [$, z, q, U], we = "start", Ne = "end", wo = "clippingParents", hn = "viewport", Fe = "popper", To = "reference", Kt = je.reduce(function(e, t) {
|
|
70
|
-
return e.concat([t + "-" + we, t + "-" + Ne]);
|
|
71
|
-
}, []), ht = [].concat(je, [yt]).reduce(function(e, t) {
|
|
72
|
-
return e.concat([t, t + "-" + we, t + "-" + Ne]);
|
|
73
|
-
}, []), Oo = "beforeRead", xo = "read", Co = "afterRead", Po = "beforeMain", Ro = "main", Ao = "afterMain", Fo = "beforeWrite", So = "write", Io = "afterWrite", Lo = [Oo, xo, Co, Po, Ro, Ao, Fo, So, Io];
|
|
74
|
-
function ee(e) {
|
|
75
|
-
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
76
|
-
}
|
|
77
|
-
function K(e) {
|
|
78
|
-
if (e == null) return window;
|
|
79
|
-
if (e.toString() !== "[object Window]") {
|
|
80
|
-
var t = e.ownerDocument;
|
|
81
|
-
return t && t.defaultView || window;
|
|
82
|
-
}
|
|
83
|
-
return e;
|
|
84
|
-
}
|
|
85
|
-
function ve(e) {
|
|
86
|
-
var t = K(e).Element;
|
|
87
|
-
return e instanceof t || e instanceof Element;
|
|
88
|
-
}
|
|
89
|
-
function W(e) {
|
|
90
|
-
var t = K(e).HTMLElement;
|
|
91
|
-
return e instanceof t || e instanceof HTMLElement;
|
|
92
|
-
}
|
|
93
|
-
function bt(e) {
|
|
94
|
-
if (typeof ShadowRoot > "u") return !1;
|
|
95
|
-
var t = K(e).ShadowRoot;
|
|
96
|
-
return e instanceof t || e instanceof ShadowRoot;
|
|
97
|
-
}
|
|
98
|
-
function Bo(e) {
|
|
99
|
-
var t = e.state;
|
|
100
|
-
Object.keys(t.elements).forEach(function(n) {
|
|
101
|
-
var o = t.styles[n] || {}, r = t.attributes[n] || {}, a = t.elements[n];
|
|
102
|
-
!W(a) || !ee(a) || (Object.assign(a.style, o), Object.keys(r).forEach(function(u) {
|
|
103
|
-
var i = r[u];
|
|
104
|
-
i === !1 ? a.removeAttribute(u) : a.setAttribute(u, i === !0 ? "" : i);
|
|
105
|
-
}));
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
function ko(e) {
|
|
109
|
-
var t = e.state, n = { popper: { position: t.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} };
|
|
110
|
-
return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
|
|
111
|
-
Object.keys(t.elements).forEach(function(o) {
|
|
112
|
-
var r = t.elements[o], a = t.attributes[o] || {}, u = Object.keys(t.styles.hasOwnProperty(o) ? t.styles[o] : n[o]), i = u.reduce(function(s, l) {
|
|
113
|
-
return s[l] = "", s;
|
|
114
|
-
}, {});
|
|
115
|
-
!W(r) || !ee(r) || (Object.assign(r.style, i), Object.keys(a).forEach(function(s) {
|
|
116
|
-
r.removeAttribute(s);
|
|
117
|
-
}));
|
|
118
|
-
});
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
var bn = { name: "applyStyles", enabled: !0, phase: "write", fn: Bo, effect: ko, requires: ["computeStyles"] };
|
|
122
|
-
function Q(e) {
|
|
123
|
-
return e.split("-")[0];
|
|
124
|
-
}
|
|
125
|
-
var de = Math.max, Xe = Math.min, Te = Math.round;
|
|
126
|
-
function lt() {
|
|
127
|
-
var e = navigator.userAgentData;
|
|
128
|
-
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
129
|
-
return t.brand + "/" + t.version;
|
|
130
|
-
}).join(" ") : navigator.userAgent;
|
|
131
|
-
}
|
|
132
|
-
function En() {
|
|
133
|
-
return !/^((?!chrome|android).)*safari/i.test(lt());
|
|
134
|
-
}
|
|
135
|
-
function Oe(e, t, n) {
|
|
136
|
-
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
137
|
-
var o = e.getBoundingClientRect(), r = 1, a = 1;
|
|
138
|
-
t && W(e) && (r = e.offsetWidth > 0 && Te(o.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Te(o.height) / e.offsetHeight || 1);
|
|
139
|
-
var u = ve(e) ? K(e) : window, i = u.visualViewport, s = !En() && n, l = (o.left + (s && i ? i.offsetLeft : 0)) / r, f = (o.top + (s && i ? i.offsetTop : 0)) / a, p = o.width / r, m = o.height / a;
|
|
140
|
-
return { width: p, height: m, top: f, right: l + p, bottom: f + m, left: l, x: l, y: f };
|
|
141
|
-
}
|
|
142
|
-
function Et(e) {
|
|
143
|
-
var t = Oe(e), n = e.offsetWidth, o = e.offsetHeight;
|
|
144
|
-
return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - o) <= 1 && (o = t.height), { x: e.offsetLeft, y: e.offsetTop, width: n, height: o };
|
|
145
|
-
}
|
|
146
|
-
function wn(e, t) {
|
|
147
|
-
var n = t.getRootNode && t.getRootNode();
|
|
148
|
-
if (e.contains(t)) return !0;
|
|
149
|
-
if (n && bt(n)) {
|
|
150
|
-
var o = t;
|
|
151
|
-
do {
|
|
152
|
-
if (o && e.isSameNode(o)) return !0;
|
|
153
|
-
o = o.parentNode || o.host;
|
|
154
|
-
} while (o);
|
|
155
|
-
}
|
|
156
|
-
return !1;
|
|
157
|
-
}
|
|
158
|
-
function ae(e) {
|
|
159
|
-
return K(e).getComputedStyle(e);
|
|
160
|
-
}
|
|
161
|
-
function No(e) {
|
|
162
|
-
return ["table", "td", "th"].indexOf(ee(e)) >= 0;
|
|
163
|
-
}
|
|
164
|
-
function ue(e) {
|
|
165
|
-
return ((ve(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
|
166
|
-
}
|
|
167
|
-
function et(e) {
|
|
168
|
-
return ee(e) === "html" ? e : e.assignedSlot || e.parentNode || (bt(e) ? e.host : null) || ue(e);
|
|
169
|
-
}
|
|
170
|
-
function Wt(e) {
|
|
171
|
-
return !W(e) || ae(e).position === "fixed" ? null : e.offsetParent;
|
|
172
|
-
}
|
|
173
|
-
function Do(e) {
|
|
174
|
-
var t = /firefox/i.test(lt()), n = /Trident/i.test(lt());
|
|
175
|
-
if (n && W(e)) {
|
|
176
|
-
var o = ae(e);
|
|
177
|
-
if (o.position === "fixed") return null;
|
|
178
|
-
}
|
|
179
|
-
var r = et(e);
|
|
180
|
-
for (bt(r) && (r = r.host); W(r) && ["html", "body"].indexOf(ee(r)) < 0; ) {
|
|
181
|
-
var a = ae(r);
|
|
182
|
-
if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none") return r;
|
|
183
|
-
r = r.parentNode;
|
|
184
|
-
}
|
|
185
|
-
return null;
|
|
186
|
-
}
|
|
187
|
-
function He(e) {
|
|
188
|
-
for (var t = K(e), n = Wt(e); n && No(n) && ae(n).position === "static"; ) n = Wt(n);
|
|
189
|
-
return n && (ee(n) === "html" || ee(n) === "body" && ae(n).position === "static") ? t : n || Do(e) || t;
|
|
190
|
-
}
|
|
191
|
-
function wt(e) {
|
|
192
|
-
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
193
|
-
}
|
|
194
|
-
function Le(e, t, n) {
|
|
195
|
-
return de(e, Xe(t, n));
|
|
196
|
-
}
|
|
197
|
-
function Mo(e, t, n) {
|
|
198
|
-
var o = Le(e, t, n);
|
|
199
|
-
return o > n ? n : o;
|
|
200
|
-
}
|
|
201
|
-
function Tn() {
|
|
202
|
-
return { top: 0, right: 0, bottom: 0, left: 0 };
|
|
203
|
-
}
|
|
204
|
-
function On(e) {
|
|
205
|
-
return Object.assign({}, Tn(), e);
|
|
206
|
-
}
|
|
207
|
-
function xn(e, t) {
|
|
208
|
-
return t.reduce(function(n, o) {
|
|
209
|
-
return n[o] = e, n;
|
|
210
|
-
}, {});
|
|
211
|
-
}
|
|
212
|
-
var jo = function(e, t) {
|
|
213
|
-
return e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e, On(typeof e != "number" ? e : xn(e, je));
|
|
214
|
-
};
|
|
215
|
-
function Ho(e) {
|
|
216
|
-
var t, n = e.state, o = e.name, r = e.options, a = n.elements.arrow, u = n.modifiersData.popperOffsets, i = Q(n.placement), s = wt(i), l = [U, q].indexOf(i) >= 0, f = l ? "height" : "width";
|
|
217
|
-
if (!(!a || !u)) {
|
|
218
|
-
var p = jo(r.padding, n), m = Et(a), y = s === "y" ? $ : U, c = s === "y" ? z : q, d = n.rects.reference[f] + n.rects.reference[s] - u[s] - n.rects.popper[f], b = u[s] - n.rects.reference[s], h = He(a), E = h ? s === "y" ? h.clientHeight || 0 : h.clientWidth || 0 : 0, O = d / 2 - b / 2, g = p[y], w = E - m[f] - p[c], P = E / 2 - m[f] / 2 + O, T = Le(g, P, w), C = s;
|
|
219
|
-
n.modifiersData[o] = (t = {}, t[C] = T, t.centerOffset = T - P, t);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
function Vo(e) {
|
|
223
|
-
var t = e.state, n = e.options, o = n.element, r = o === void 0 ? "[data-popper-arrow]" : o;
|
|
224
|
-
r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || wn(t.elements.popper, r) && (t.elements.arrow = r));
|
|
225
|
-
}
|
|
226
|
-
var $o = { name: "arrow", enabled: !0, phase: "main", fn: Ho, effect: Vo, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] };
|
|
227
|
-
function xe(e) {
|
|
228
|
-
return e.split("-")[1];
|
|
229
|
-
}
|
|
230
|
-
var Uo = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
|
|
231
|
-
function Ko(e, t) {
|
|
232
|
-
var n = e.x, o = e.y, r = t.devicePixelRatio || 1;
|
|
233
|
-
return { x: Te(n * r) / r || 0, y: Te(o * r) / r || 0 };
|
|
234
|
-
}
|
|
235
|
-
function zt(e) {
|
|
236
|
-
var t, n = e.popper, o = e.popperRect, r = e.placement, a = e.variation, u = e.offsets, i = e.position, s = e.gpuAcceleration, l = e.adaptive, f = e.roundOffsets, p = e.isFixed, m = u.x, y = m === void 0 ? 0 : m, c = u.y, d = c === void 0 ? 0 : c, b = typeof f == "function" ? f({ x: y, y: d }) : { x: y, y: d };
|
|
237
|
-
y = b.x, d = b.y;
|
|
238
|
-
var h = u.hasOwnProperty("x"), E = u.hasOwnProperty("y"), O = U, g = $, w = window;
|
|
239
|
-
if (l) {
|
|
240
|
-
var P = He(n), T = "clientHeight", C = "clientWidth";
|
|
241
|
-
if (P === K(n) && (P = ue(n), ae(P).position !== "static" && i === "absolute" && (T = "scrollHeight", C = "scrollWidth")), P = P, r === $ || (r === U || r === q) && a === Ne) {
|
|
242
|
-
g = z;
|
|
243
|
-
var F = p && P === w && w.visualViewport ? w.visualViewport.height : P[T];
|
|
244
|
-
d -= F - o.height, d *= s ? 1 : -1;
|
|
245
|
-
}
|
|
246
|
-
if (r === U || (r === $ || r === z) && a === Ne) {
|
|
247
|
-
O = q;
|
|
248
|
-
var R = p && P === w && w.visualViewport ? w.visualViewport.width : P[C];
|
|
249
|
-
y -= R - o.width, y *= s ? 1 : -1;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
var k = Object.assign({ position: i }, l && Uo), I = f === !0 ? Ko({ x: y, y: d }, K(n)) : { x: y, y: d };
|
|
253
|
-
if (y = I.x, d = I.y, s) {
|
|
254
|
-
var S;
|
|
255
|
-
return Object.assign({}, k, (S = {}, S[g] = E ? "0" : "", S[O] = h ? "0" : "", S.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + y + "px, " + d + "px)" : "translate3d(" + y + "px, " + d + "px, 0)", S));
|
|
256
|
-
}
|
|
257
|
-
return Object.assign({}, k, (t = {}, t[g] = E ? d + "px" : "", t[O] = h ? y + "px" : "", t.transform = "", t));
|
|
258
|
-
}
|
|
259
|
-
function Wo(e) {
|
|
260
|
-
var t = e.state, n = e.options, o = n.gpuAcceleration, r = o === void 0 ? !0 : o, a = n.adaptive, u = a === void 0 ? !0 : a, i = n.roundOffsets, s = i === void 0 ? !0 : i, l = { placement: Q(t.placement), variation: xe(t.placement), popper: t.elements.popper, popperRect: t.rects.popper, gpuAcceleration: r, isFixed: t.options.strategy === "fixed" };
|
|
261
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, zt(Object.assign({}, l, { offsets: t.modifiersData.popperOffsets, position: t.options.strategy, adaptive: u, roundOffsets: s })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, zt(Object.assign({}, l, { offsets: t.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: s })))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement });
|
|
262
|
-
}
|
|
263
|
-
var Cn = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: Wo, data: {} }, Ke = { passive: !0 };
|
|
264
|
-
function zo(e) {
|
|
265
|
-
var t = e.state, n = e.instance, o = e.options, r = o.scroll, a = r === void 0 ? !0 : r, u = o.resize, i = u === void 0 ? !0 : u, s = K(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
266
|
-
return a && l.forEach(function(f) {
|
|
267
|
-
f.addEventListener("scroll", n.update, Ke);
|
|
268
|
-
}), i && s.addEventListener("resize", n.update, Ke), function() {
|
|
269
|
-
a && l.forEach(function(f) {
|
|
270
|
-
f.removeEventListener("scroll", n.update, Ke);
|
|
271
|
-
}), i && s.removeEventListener("resize", n.update, Ke);
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
var Pn = { name: "eventListeners", enabled: !0, phase: "write", fn: function() {
|
|
275
|
-
}, effect: zo, data: {} }, qo = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
276
|
-
function Ze(e) {
|
|
277
|
-
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
278
|
-
return qo[t];
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
var Zo = { start: "end", end: "start" };
|
|
282
|
-
function qt(e) {
|
|
283
|
-
return e.replace(/start|end/g, function(t) {
|
|
284
|
-
return Zo[t];
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
function Tt(e) {
|
|
288
|
-
var t = K(e), n = t.pageXOffset, o = t.pageYOffset;
|
|
289
|
-
return { scrollLeft: n, scrollTop: o };
|
|
290
|
-
}
|
|
291
|
-
function Ot(e) {
|
|
292
|
-
return Oe(ue(e)).left + Tt(e).scrollLeft;
|
|
293
|
-
}
|
|
294
|
-
function Yo(e, t) {
|
|
295
|
-
var n = K(e), o = ue(e), r = n.visualViewport, a = o.clientWidth, u = o.clientHeight, i = 0, s = 0;
|
|
296
|
-
if (r) {
|
|
297
|
-
a = r.width, u = r.height;
|
|
298
|
-
var l = En();
|
|
299
|
-
(l || !l && t === "fixed") && (i = r.offsetLeft, s = r.offsetTop);
|
|
300
|
-
}
|
|
301
|
-
return { width: a, height: u, x: i + Ot(e), y: s };
|
|
302
|
-
}
|
|
303
|
-
function _o(e) {
|
|
304
|
-
var t, n = ue(e), o = Tt(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, a = de(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), u = de(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), i = -o.scrollLeft + Ot(e), s = -o.scrollTop;
|
|
305
|
-
return ae(r || n).direction === "rtl" && (i += de(n.clientWidth, r ? r.clientWidth : 0) - a), { width: a, height: u, x: i, y: s };
|
|
306
|
-
}
|
|
307
|
-
function xt(e) {
|
|
308
|
-
var t = ae(e), n = t.overflow, o = t.overflowX, r = t.overflowY;
|
|
309
|
-
return /auto|scroll|overlay|hidden/.test(n + r + o);
|
|
310
|
-
}
|
|
311
|
-
function Rn(e) {
|
|
312
|
-
return ["html", "body", "#document"].indexOf(ee(e)) >= 0 ? e.ownerDocument.body : W(e) && xt(e) ? e : Rn(et(e));
|
|
313
|
-
}
|
|
314
|
-
function Be(e, t) {
|
|
315
|
-
var n;
|
|
316
|
-
t === void 0 && (t = []);
|
|
317
|
-
var o = Rn(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), a = K(o), u = r ? [a].concat(a.visualViewport || [], xt(o) ? o : []) : o, i = t.concat(u);
|
|
318
|
-
return r ? i : i.concat(Be(et(u)));
|
|
319
|
-
}
|
|
320
|
-
function ct(e) {
|
|
321
|
-
return Object.assign({}, e, { left: e.x, top: e.y, right: e.x + e.width, bottom: e.y + e.height });
|
|
322
|
-
}
|
|
323
|
-
function Go(e, t) {
|
|
324
|
-
var n = Oe(e, !1, t === "fixed");
|
|
325
|
-
return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
326
|
-
}
|
|
327
|
-
function Zt(e, t, n) {
|
|
328
|
-
return t === hn ? ct(Yo(e, n)) : ve(t) ? Go(t, n) : ct(_o(ue(e)));
|
|
329
|
-
}
|
|
330
|
-
function Jo(e) {
|
|
331
|
-
var t = Be(et(e)), n = ["absolute", "fixed"].indexOf(ae(e).position) >= 0, o = n && W(e) ? He(e) : e;
|
|
332
|
-
return ve(o) ? t.filter(function(r) {
|
|
333
|
-
return ve(r) && wn(r, o) && ee(r) !== "body";
|
|
334
|
-
}) : [];
|
|
335
|
-
}
|
|
336
|
-
function Qo(e, t, n, o) {
|
|
337
|
-
var r = t === "clippingParents" ? Jo(e) : [].concat(t), a = [].concat(r, [n]), u = a[0], i = a.reduce(function(s, l) {
|
|
338
|
-
var f = Zt(e, l, o);
|
|
339
|
-
return s.top = de(f.top, s.top), s.right = Xe(f.right, s.right), s.bottom = Xe(f.bottom, s.bottom), s.left = de(f.left, s.left), s;
|
|
340
|
-
}, Zt(e, u, o));
|
|
341
|
-
return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
|
|
342
|
-
}
|
|
343
|
-
function An(e) {
|
|
344
|
-
var t = e.reference, n = e.element, o = e.placement, r = o ? Q(o) : null, a = o ? xe(o) : null, u = t.x + t.width / 2 - n.width / 2, i = t.y + t.height / 2 - n.height / 2, s;
|
|
345
|
-
switch (r) {
|
|
346
|
-
case $:
|
|
347
|
-
s = { x: u, y: t.y - n.height };
|
|
348
|
-
break;
|
|
349
|
-
case z:
|
|
350
|
-
s = { x: u, y: t.y + t.height };
|
|
351
|
-
break;
|
|
352
|
-
case q:
|
|
353
|
-
s = { x: t.x + t.width, y: i };
|
|
354
|
-
break;
|
|
355
|
-
case U:
|
|
356
|
-
s = { x: t.x - n.width, y: i };
|
|
357
|
-
break;
|
|
358
|
-
default:
|
|
359
|
-
s = { x: t.x, y: t.y };
|
|
360
|
-
}
|
|
361
|
-
var l = r ? wt(r) : null;
|
|
362
|
-
if (l != null) {
|
|
363
|
-
var f = l === "y" ? "height" : "width";
|
|
364
|
-
switch (a) {
|
|
365
|
-
case we:
|
|
366
|
-
s[l] = s[l] - (t[f] / 2 - n[f] / 2);
|
|
367
|
-
break;
|
|
368
|
-
case Ne:
|
|
369
|
-
s[l] = s[l] + (t[f] / 2 - n[f] / 2);
|
|
370
|
-
break;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
return s;
|
|
374
|
-
}
|
|
375
|
-
function De(e, t) {
|
|
376
|
-
t === void 0 && (t = {});
|
|
377
|
-
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, a = n.strategy, u = a === void 0 ? e.strategy : a, i = n.boundary, s = i === void 0 ? wo : i, l = n.rootBoundary, f = l === void 0 ? hn : l, p = n.elementContext, m = p === void 0 ? Fe : p, y = n.altBoundary, c = y === void 0 ? !1 : y, d = n.padding, b = d === void 0 ? 0 : d, h = On(typeof b != "number" ? b : xn(b, je)), E = m === Fe ? To : Fe, O = e.rects.popper, g = e.elements[c ? E : m], w = Qo(ve(g) ? g : g.contextElement || ue(e.elements.popper), s, f, u), P = Oe(e.elements.reference), T = An({ reference: P, element: O, placement: r }), C = ct(Object.assign({}, O, T)), F = m === Fe ? C : P, R = { top: w.top - F.top + h.top, bottom: F.bottom - w.bottom + h.bottom, left: w.left - F.left + h.left, right: F.right - w.right + h.right }, k = e.modifiersData.offset;
|
|
378
|
-
if (m === Fe && k) {
|
|
379
|
-
var I = k[r];
|
|
380
|
-
Object.keys(R).forEach(function(S) {
|
|
381
|
-
var V = [q, z].indexOf(S) >= 0 ? 1 : -1, j = [$, z].indexOf(S) >= 0 ? "y" : "x";
|
|
382
|
-
R[S] += I[j] * V;
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
return R;
|
|
386
|
-
}
|
|
387
|
-
function Xo(e, t) {
|
|
388
|
-
t === void 0 && (t = {});
|
|
389
|
-
var n = t, o = n.placement, r = n.boundary, a = n.rootBoundary, u = n.padding, i = n.flipVariations, s = n.allowedAutoPlacements, l = s === void 0 ? ht : s, f = xe(o), p = f ? i ? Kt : Kt.filter(function(c) {
|
|
390
|
-
return xe(c) === f;
|
|
391
|
-
}) : je, m = p.filter(function(c) {
|
|
392
|
-
return l.indexOf(c) >= 0;
|
|
393
|
-
});
|
|
394
|
-
m.length === 0 && (m = p);
|
|
395
|
-
var y = m.reduce(function(c, d) {
|
|
396
|
-
return c[d] = De(e, { placement: d, boundary: r, rootBoundary: a, padding: u })[Q(d)], c;
|
|
397
|
-
}, {});
|
|
398
|
-
return Object.keys(y).sort(function(c, d) {
|
|
399
|
-
return y[c] - y[d];
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
function er(e) {
|
|
403
|
-
if (Q(e) === yt) return [];
|
|
404
|
-
var t = Ze(e);
|
|
405
|
-
return [qt(e), t, qt(t)];
|
|
406
|
-
}
|
|
407
|
-
function tr(e) {
|
|
408
|
-
var t = e.state, n = e.options, o = e.name;
|
|
409
|
-
if (!t.modifiersData[o]._skip) {
|
|
410
|
-
for (var r = n.mainAxis, a = r === void 0 ? !0 : r, u = n.altAxis, i = u === void 0 ? !0 : u, s = n.fallbackPlacements, l = n.padding, f = n.boundary, p = n.rootBoundary, m = n.altBoundary, y = n.flipVariations, c = y === void 0 ? !0 : y, d = n.allowedAutoPlacements, b = t.options.placement, h = Q(b), E = h === b, O = s || (E || !c ? [Ze(b)] : er(b)), g = [b].concat(O).reduce(function(le, ne) {
|
|
411
|
-
return le.concat(Q(ne) === yt ? Xo(t, { placement: ne, boundary: f, rootBoundary: p, padding: l, flipVariations: c, allowedAutoPlacements: d }) : ne);
|
|
412
|
-
}, []), w = t.rects.reference, P = t.rects.popper, T = /* @__PURE__ */ new Map(), C = !0, F = g[0], R = 0; R < g.length; R++) {
|
|
413
|
-
var k = g[R], I = Q(k), S = xe(k) === we, V = [$, z].indexOf(I) >= 0, j = V ? "width" : "height", D = De(t, { placement: k, boundary: f, rootBoundary: p, altBoundary: m, padding: l }), M = V ? S ? q : U : S ? z : $;
|
|
414
|
-
w[j] > P[j] && (M = Ze(M));
|
|
415
|
-
var A = Ze(M), N = [];
|
|
416
|
-
if (a && N.push(D[I] <= 0), i && N.push(D[M] <= 0, D[A] <= 0), N.every(function(le) {
|
|
417
|
-
return le;
|
|
418
|
-
})) {
|
|
419
|
-
F = k, C = !1;
|
|
420
|
-
break;
|
|
421
|
-
}
|
|
422
|
-
T.set(k, N);
|
|
423
|
-
}
|
|
424
|
-
if (C) for (var J = c ? 3 : 1, Pe = function(le) {
|
|
425
|
-
var ne = g.find(function($e) {
|
|
426
|
-
var Ae = T.get($e);
|
|
427
|
-
if (Ae) return Ae.slice(0, le).every(function(ge) {
|
|
428
|
-
return ge;
|
|
429
|
-
});
|
|
430
|
-
});
|
|
431
|
-
if (ne) return F = ne, "break";
|
|
432
|
-
}, Re = J; Re > 0; Re--) {
|
|
433
|
-
var Ve = Pe(Re);
|
|
434
|
-
if (Ve === "break") break;
|
|
435
|
-
}
|
|
436
|
-
t.placement !== F && (t.modifiersData[o]._skip = !0, t.placement = F, t.reset = !0);
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
var nr = { name: "flip", enabled: !0, phase: "main", fn: tr, requiresIfExists: ["offset"], data: { _skip: !1 } };
|
|
440
|
-
function Yt(e, t, n) {
|
|
441
|
-
return n === void 0 && (n = { x: 0, y: 0 }), { top: e.top - t.height - n.y, right: e.right - t.width + n.x, bottom: e.bottom - t.height + n.y, left: e.left - t.width - n.x };
|
|
442
|
-
}
|
|
443
|
-
function _t(e) {
|
|
444
|
-
return [$, q, z, U].some(function(t) {
|
|
445
|
-
return e[t] >= 0;
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
function or(e) {
|
|
449
|
-
var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, a = t.modifiersData.preventOverflow, u = De(t, { elementContext: "reference" }), i = De(t, { altBoundary: !0 }), s = Yt(u, o), l = Yt(i, r, a), f = _t(s), p = _t(l);
|
|
450
|
-
t.modifiersData[n] = { referenceClippingOffsets: s, popperEscapeOffsets: l, isReferenceHidden: f, hasPopperEscaped: p }, t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-reference-hidden": f, "data-popper-escaped": p });
|
|
451
|
-
}
|
|
452
|
-
var rr = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: or };
|
|
453
|
-
function ar(e, t, n) {
|
|
454
|
-
var o = Q(e), r = [U, $].indexOf(o) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n, u = a[0], i = a[1];
|
|
455
|
-
return u = u || 0, i = (i || 0) * r, [U, q].indexOf(o) >= 0 ? { x: i, y: u } : { x: u, y: i };
|
|
456
|
-
}
|
|
457
|
-
function sr(e) {
|
|
458
|
-
var t = e.state, n = e.options, o = e.name, r = n.offset, a = r === void 0 ? [0, 0] : r, u = ht.reduce(function(f, p) {
|
|
459
|
-
return f[p] = ar(p, t.rects, a), f;
|
|
460
|
-
}, {}), i = u[t.placement], s = i.x, l = i.y;
|
|
461
|
-
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += l), t.modifiersData[o] = u;
|
|
462
|
-
}
|
|
463
|
-
var ir = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], fn: sr };
|
|
464
|
-
function ur(e) {
|
|
465
|
-
var t = e.state, n = e.name;
|
|
466
|
-
t.modifiersData[n] = An({ reference: t.rects.reference, element: t.rects.popper, placement: t.placement });
|
|
467
|
-
}
|
|
468
|
-
var Fn = { name: "popperOffsets", enabled: !0, phase: "read", fn: ur, data: {} };
|
|
469
|
-
function lr(e) {
|
|
470
|
-
return e === "x" ? "y" : "x";
|
|
471
|
-
}
|
|
472
|
-
function cr(e) {
|
|
473
|
-
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, a = r === void 0 ? !0 : r, u = n.altAxis, i = u === void 0 ? !1 : u, s = n.boundary, l = n.rootBoundary, f = n.altBoundary, p = n.padding, m = n.tether, y = m === void 0 ? !0 : m, c = n.tetherOffset, d = c === void 0 ? 0 : c, b = De(t, { boundary: s, rootBoundary: l, padding: p, altBoundary: f }), h = Q(t.placement), E = xe(t.placement), O = !E, g = wt(h), w = lr(g), P = t.modifiersData.popperOffsets, T = t.rects.reference, C = t.rects.popper, F = typeof d == "function" ? d(Object.assign({}, t.rects, { placement: t.placement })) : d, R = typeof F == "number" ? { mainAxis: F, altAxis: F } : Object.assign({ mainAxis: 0, altAxis: 0 }, F), k = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, I = { x: 0, y: 0 };
|
|
474
|
-
if (P) {
|
|
475
|
-
if (a) {
|
|
476
|
-
var S, V = g === "y" ? $ : U, j = g === "y" ? z : q, D = g === "y" ? "height" : "width", M = P[g], A = M + b[V], N = M - b[j], J = y ? -C[D] / 2 : 0, Pe = E === we ? T[D] : C[D], Re = E === we ? -C[D] : -T[D], Ve = t.elements.arrow, le = y && Ve ? Et(Ve) : { width: 0, height: 0 }, ne = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Tn(), $e = ne[V], Ae = ne[j], ge = Le(0, T[D], le[D]), Un = O ? T[D] / 2 - J - ge - $e - R.mainAxis : Pe - ge - $e - R.mainAxis, Kn = O ? -T[D] / 2 + J + ge + Ae + R.mainAxis : Re + ge + Ae + R.mainAxis, nt = t.elements.arrow && He(t.elements.arrow), Wn = nt ? g === "y" ? nt.clientTop || 0 : nt.clientLeft || 0 : 0, St = (S = k == null ? void 0 : k[g]) != null ? S : 0, zn = M + Un - St - Wn, qn = M + Kn - St, It = Le(y ? Xe(A, zn) : A, M, y ? de(N, qn) : N);
|
|
477
|
-
P[g] = It, I[g] = It - M;
|
|
478
|
-
}
|
|
479
|
-
if (i) {
|
|
480
|
-
var Lt, Zn = g === "x" ? $ : U, Yn = g === "x" ? z : q, ce = P[w], Ue = w === "y" ? "height" : "width", Bt = ce + b[Zn], kt = ce - b[Yn], ot = [$, U].indexOf(h) !== -1, Nt = (Lt = k == null ? void 0 : k[w]) != null ? Lt : 0, Dt = ot ? Bt : ce - T[Ue] - C[Ue] - Nt + R.altAxis, Mt = ot ? ce + T[Ue] + C[Ue] - Nt - R.altAxis : kt, jt = y && ot ? Mo(Dt, ce, Mt) : Le(y ? Dt : Bt, ce, y ? Mt : kt);
|
|
481
|
-
P[w] = jt, I[w] = jt - ce;
|
|
482
|
-
}
|
|
483
|
-
t.modifiersData[o] = I;
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
var fr = { name: "preventOverflow", enabled: !0, phase: "main", fn: cr, requiresIfExists: ["offset"] };
|
|
487
|
-
function dr(e) {
|
|
488
|
-
return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop };
|
|
489
|
-
}
|
|
490
|
-
function pr(e) {
|
|
491
|
-
return e === K(e) || !W(e) ? Tt(e) : dr(e);
|
|
492
|
-
}
|
|
493
|
-
function vr(e) {
|
|
494
|
-
var t = e.getBoundingClientRect(), n = Te(t.width) / e.offsetWidth || 1, o = Te(t.height) / e.offsetHeight || 1;
|
|
495
|
-
return n !== 1 || o !== 1;
|
|
496
|
-
}
|
|
497
|
-
function mr(e, t, n) {
|
|
498
|
-
n === void 0 && (n = !1);
|
|
499
|
-
var o = W(t), r = W(t) && vr(t), a = ue(t), u = Oe(e, r, n), i = { scrollLeft: 0, scrollTop: 0 }, s = { x: 0, y: 0 };
|
|
500
|
-
return (o || !o && !n) && ((ee(t) !== "body" || xt(a)) && (i = pr(t)), W(t) ? (s = Oe(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : a && (s.x = Ot(a))), { x: u.left + i.scrollLeft - s.x, y: u.top + i.scrollTop - s.y, width: u.width, height: u.height };
|
|
501
|
-
}
|
|
502
|
-
function gr(e) {
|
|
503
|
-
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o = [];
|
|
504
|
-
e.forEach(function(a) {
|
|
505
|
-
t.set(a.name, a);
|
|
506
|
-
});
|
|
507
|
-
function r(a) {
|
|
508
|
-
n.add(a.name);
|
|
509
|
-
var u = [].concat(a.requires || [], a.requiresIfExists || []);
|
|
510
|
-
u.forEach(function(i) {
|
|
511
|
-
if (!n.has(i)) {
|
|
512
|
-
var s = t.get(i);
|
|
513
|
-
s && r(s);
|
|
514
|
-
}
|
|
515
|
-
}), o.push(a);
|
|
516
|
-
}
|
|
517
|
-
return e.forEach(function(a) {
|
|
518
|
-
n.has(a.name) || r(a);
|
|
519
|
-
}), o;
|
|
520
|
-
}
|
|
521
|
-
function yr(e) {
|
|
522
|
-
var t = gr(e);
|
|
523
|
-
return Lo.reduce(function(n, o) {
|
|
524
|
-
return n.concat(t.filter(function(r) {
|
|
525
|
-
return r.phase === o;
|
|
526
|
-
}));
|
|
527
|
-
}, []);
|
|
528
|
-
}
|
|
529
|
-
function hr(e) {
|
|
530
|
-
var t;
|
|
531
|
-
return function() {
|
|
532
|
-
return t || (t = new Promise(function(n) {
|
|
533
|
-
Promise.resolve().then(function() {
|
|
534
|
-
t = void 0, n(e());
|
|
535
|
-
});
|
|
536
|
-
})), t;
|
|
537
|
-
};
|
|
538
|
-
}
|
|
539
|
-
function br(e) {
|
|
540
|
-
var t = e.reduce(function(n, o) {
|
|
541
|
-
var r = n[o.name];
|
|
542
|
-
return n[o.name] = r ? Object.assign({}, r, o, { options: Object.assign({}, r.options, o.options), data: Object.assign({}, r.data, o.data) }) : o, n;
|
|
543
|
-
}, {});
|
|
544
|
-
return Object.keys(t).map(function(n) {
|
|
545
|
-
return t[n];
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
var Gt = { placement: "bottom", modifiers: [], strategy: "absolute" };
|
|
549
|
-
function Jt() {
|
|
550
|
-
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
|
|
551
|
-
return !t.some(function(o) {
|
|
552
|
-
return !(o && typeof o.getBoundingClientRect == "function");
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
function Ct(e) {
|
|
556
|
-
e === void 0 && (e = {});
|
|
557
|
-
var t = e, n = t.defaultModifiers, o = n === void 0 ? [] : n, r = t.defaultOptions, a = r === void 0 ? Gt : r;
|
|
558
|
-
return function(u, i, s) {
|
|
559
|
-
s === void 0 && (s = a);
|
|
560
|
-
var l = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, Gt, a), modifiersData: {}, elements: { reference: u, popper: i }, attributes: {}, styles: {} }, f = [], p = !1, m = { state: l, setOptions: function(d) {
|
|
561
|
-
var b = typeof d == "function" ? d(l.options) : d;
|
|
562
|
-
c(), l.options = Object.assign({}, a, l.options, b), l.scrollParents = { reference: ve(u) ? Be(u) : u.contextElement ? Be(u.contextElement) : [], popper: Be(i) };
|
|
563
|
-
var h = yr(br([].concat(o, l.options.modifiers)));
|
|
564
|
-
return l.orderedModifiers = h.filter(function(E) {
|
|
565
|
-
return E.enabled;
|
|
566
|
-
}), y(), m.update();
|
|
567
|
-
}, forceUpdate: function() {
|
|
568
|
-
if (!p) {
|
|
569
|
-
var d = l.elements, b = d.reference, h = d.popper;
|
|
570
|
-
if (Jt(b, h)) {
|
|
571
|
-
l.rects = { reference: mr(b, He(h), l.options.strategy === "fixed"), popper: Et(h) }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(C) {
|
|
572
|
-
return l.modifiersData[C.name] = Object.assign({}, C.data);
|
|
573
|
-
});
|
|
574
|
-
for (var E = 0; E < l.orderedModifiers.length; E++) {
|
|
575
|
-
if (l.reset === !0) {
|
|
576
|
-
l.reset = !1, E = -1;
|
|
577
|
-
continue;
|
|
578
|
-
}
|
|
579
|
-
var O = l.orderedModifiers[E], g = O.fn, w = O.options, P = w === void 0 ? {} : w, T = O.name;
|
|
580
|
-
typeof g == "function" && (l = g({ state: l, options: P, name: T, instance: m }) || l);
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
}, update: hr(function() {
|
|
585
|
-
return new Promise(function(d) {
|
|
586
|
-
m.forceUpdate(), d(l);
|
|
587
|
-
});
|
|
588
|
-
}), destroy: function() {
|
|
589
|
-
c(), p = !0;
|
|
590
|
-
} };
|
|
591
|
-
if (!Jt(u, i)) return m;
|
|
592
|
-
m.setOptions(s).then(function(d) {
|
|
593
|
-
!p && s.onFirstUpdate && s.onFirstUpdate(d);
|
|
594
|
-
});
|
|
595
|
-
function y() {
|
|
596
|
-
l.orderedModifiers.forEach(function(d) {
|
|
597
|
-
var b = d.name, h = d.options, E = h === void 0 ? {} : h, O = d.effect;
|
|
598
|
-
if (typeof O == "function") {
|
|
599
|
-
var g = O({ state: l, name: b, instance: m, options: E }), w = function() {
|
|
600
|
-
};
|
|
601
|
-
f.push(g || w);
|
|
602
|
-
}
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
function c() {
|
|
606
|
-
f.forEach(function(d) {
|
|
607
|
-
return d();
|
|
608
|
-
}), f = [];
|
|
609
|
-
}
|
|
610
|
-
return m;
|
|
611
|
-
};
|
|
612
|
-
}
|
|
613
|
-
Ct();
|
|
614
|
-
var Er = [Pn, Fn, Cn, bn];
|
|
615
|
-
Ct({ defaultModifiers: Er });
|
|
616
|
-
var wr = [Pn, Fn, Cn, bn, ir, nr, fr, $o, rr], Tr = Ct({ defaultModifiers: wr });
|
|
617
|
-
const Or = (e, t, n = {}) => {
|
|
618
|
-
const o = {
|
|
619
|
-
name: "updateState",
|
|
620
|
-
enabled: !0,
|
|
621
|
-
phase: "write",
|
|
622
|
-
fn: ({ state: s }) => {
|
|
623
|
-
const l = xr(s);
|
|
624
|
-
Object.assign(u.value, l);
|
|
625
|
-
},
|
|
626
|
-
requires: ["computeStyles"]
|
|
627
|
-
}, r = x(() => {
|
|
628
|
-
const { onFirstUpdate: s, placement: l, strategy: f, modifiers: p } = v(n);
|
|
629
|
-
return {
|
|
630
|
-
onFirstUpdate: s,
|
|
631
|
-
placement: l || "bottom",
|
|
632
|
-
strategy: f || "absolute",
|
|
633
|
-
modifiers: [
|
|
634
|
-
...p || [],
|
|
635
|
-
o,
|
|
636
|
-
{ name: "applyStyles", enabled: !1 }
|
|
637
|
-
]
|
|
638
|
-
};
|
|
639
|
-
}), a = _n(), u = B({
|
|
640
|
-
styles: {
|
|
641
|
-
popper: {
|
|
642
|
-
position: v(r).strategy,
|
|
643
|
-
left: "0",
|
|
644
|
-
top: "0"
|
|
645
|
-
},
|
|
646
|
-
arrow: {
|
|
647
|
-
position: "absolute"
|
|
648
|
-
}
|
|
649
|
-
},
|
|
650
|
-
attributes: {}
|
|
651
|
-
}), i = () => {
|
|
652
|
-
a.value && (a.value.destroy(), a.value = void 0);
|
|
653
|
-
};
|
|
654
|
-
return H(
|
|
655
|
-
r,
|
|
656
|
-
(s) => {
|
|
657
|
-
const l = v(a);
|
|
658
|
-
l && l.setOptions(s);
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
deep: !0
|
|
662
|
-
}
|
|
663
|
-
), H(
|
|
664
|
-
[e, t],
|
|
665
|
-
([s, l]) => {
|
|
666
|
-
i(), !(!s || !l) && (a.value = Tr(
|
|
667
|
-
s,
|
|
668
|
-
l,
|
|
669
|
-
v(r)
|
|
670
|
-
));
|
|
671
|
-
}
|
|
672
|
-
), _(() => {
|
|
673
|
-
i();
|
|
674
|
-
}), {
|
|
675
|
-
state: x(() => {
|
|
676
|
-
var s;
|
|
677
|
-
return { ...((s = v(a)) == null ? void 0 : s.state) || {} };
|
|
678
|
-
}),
|
|
679
|
-
styles: x(() => v(u).styles),
|
|
680
|
-
attributes: x(() => v(u).attributes),
|
|
681
|
-
update: () => {
|
|
682
|
-
var s;
|
|
683
|
-
return (s = v(a)) == null ? void 0 : s.update();
|
|
684
|
-
},
|
|
685
|
-
forceUpdate: () => {
|
|
686
|
-
var s;
|
|
687
|
-
return (s = v(a)) == null ? void 0 : s.forceUpdate();
|
|
688
|
-
},
|
|
689
|
-
// Preventing end users from modifying the instance.
|
|
690
|
-
instanceRef: x(() => v(a))
|
|
691
|
-
};
|
|
692
|
-
};
|
|
693
|
-
function xr(e) {
|
|
694
|
-
const t = Object.keys(e.elements), n = Vt(
|
|
695
|
-
t.map(
|
|
696
|
-
(r) => [r, e.styles[r] || {}]
|
|
697
|
-
)
|
|
698
|
-
), o = Vt(
|
|
699
|
-
t.map(
|
|
700
|
-
(r) => [r, e.attributes[r]]
|
|
701
|
-
)
|
|
702
|
-
);
|
|
703
|
-
return {
|
|
704
|
-
styles: n,
|
|
705
|
-
attributes: o
|
|
706
|
-
};
|
|
707
|
-
}
|
|
708
|
-
function Qt() {
|
|
709
|
-
let e;
|
|
710
|
-
const t = (o, r) => {
|
|
711
|
-
n(), e = window.setTimeout(o, r);
|
|
712
|
-
}, n = () => window.clearTimeout(e);
|
|
713
|
-
return po(() => n()), {
|
|
714
|
-
registerTimeout: t,
|
|
715
|
-
cancelTimeout: n
|
|
716
|
-
};
|
|
717
|
-
}
|
|
718
|
-
let he = [];
|
|
719
|
-
const Xt = (e) => {
|
|
720
|
-
mt(e) === Ie.esc && he.forEach(
|
|
721
|
-
(n) => n(e)
|
|
722
|
-
);
|
|
723
|
-
}, Cr = (e) => {
|
|
724
|
-
me(() => {
|
|
725
|
-
he.length === 0 && document.addEventListener("keydown", Xt), ie && he.push(e);
|
|
726
|
-
}), _(() => {
|
|
727
|
-
he = he.filter(
|
|
728
|
-
(t) => t !== e
|
|
729
|
-
), he.length === 0 && ie && document.removeEventListener("keydown", Xt);
|
|
730
|
-
});
|
|
731
|
-
}, Sn = () => {
|
|
732
|
-
const e = lo(), t = go(), n = x(() => `${e.value}-popper-container-${t.prefix}`), o = x(() => `#${n.value}`);
|
|
733
|
-
return {
|
|
734
|
-
id: n,
|
|
735
|
-
selector: o
|
|
736
|
-
};
|
|
737
|
-
}, Pr = (e) => {
|
|
738
|
-
const t = document.createElement("div");
|
|
739
|
-
return t.id = e, document.body.appendChild(t), t;
|
|
740
|
-
}, Rr = () => {
|
|
741
|
-
const { id: e, selector: t } = Sn();
|
|
742
|
-
return Gn(() => {
|
|
743
|
-
ie && (process.env.NODE_ENV === "test" || !document.body.querySelector(t.value)) && Pr(e.value);
|
|
744
|
-
}), {
|
|
745
|
-
id: e,
|
|
746
|
-
selector: t
|
|
747
|
-
};
|
|
748
|
-
}, Ar = G({
|
|
749
|
-
/**
|
|
750
|
-
* @description delay of appearance, in millisecond, not valid in controlled mode
|
|
751
|
-
*/
|
|
752
|
-
showAfter: {
|
|
753
|
-
type: Number,
|
|
754
|
-
default: 0
|
|
755
|
-
},
|
|
756
|
-
/**
|
|
757
|
-
* @description delay of disappear, in millisecond, not valid in controlled mode
|
|
758
|
-
*/
|
|
759
|
-
hideAfter: {
|
|
760
|
-
type: Number,
|
|
761
|
-
default: 200
|
|
762
|
-
},
|
|
763
|
-
/**
|
|
764
|
-
* @description disappear automatically, in millisecond, not valid in controlled mode
|
|
765
|
-
*/
|
|
766
|
-
autoClose: {
|
|
767
|
-
type: Number,
|
|
768
|
-
default: 0
|
|
769
|
-
}
|
|
770
|
-
}), Fr = ({
|
|
771
|
-
showAfter: e,
|
|
772
|
-
hideAfter: t,
|
|
773
|
-
autoClose: n,
|
|
774
|
-
open: o,
|
|
775
|
-
close: r
|
|
776
|
-
}) => {
|
|
777
|
-
const { registerTimeout: a } = Qt(), {
|
|
778
|
-
registerTimeout: u,
|
|
779
|
-
cancelTimeout: i
|
|
780
|
-
} = Qt();
|
|
781
|
-
return {
|
|
782
|
-
onOpen: (f, p = v(e)) => {
|
|
783
|
-
a(() => {
|
|
784
|
-
o(f);
|
|
785
|
-
const m = v(n);
|
|
786
|
-
Je(m) && m > 0 && u(() => {
|
|
787
|
-
r(f);
|
|
788
|
-
}, m);
|
|
789
|
-
}, p);
|
|
790
|
-
},
|
|
791
|
-
onClose: (f, p = v(t)) => {
|
|
792
|
-
i(), a(() => {
|
|
793
|
-
r(f);
|
|
794
|
-
}, p);
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
|
-
}, In = /* @__PURE__ */ Symbol("elForwardRef"), Sr = (e) => {
|
|
798
|
-
Ee(In, {
|
|
799
|
-
setForwardRef: (n) => {
|
|
800
|
-
e.value = n;
|
|
801
|
-
}
|
|
802
|
-
});
|
|
803
|
-
}, Ir = (e) => ({
|
|
804
|
-
mounted(t) {
|
|
805
|
-
e(t);
|
|
806
|
-
},
|
|
807
|
-
updated(t) {
|
|
808
|
-
e(t);
|
|
809
|
-
},
|
|
810
|
-
unmounted() {
|
|
811
|
-
e(null);
|
|
812
|
-
}
|
|
813
|
-
}), en = {
|
|
814
|
-
current: 0
|
|
815
|
-
}, tn = B(0), Lr = 2e3, nn = /* @__PURE__ */ Symbol("elZIndexContextKey"), Br = /* @__PURE__ */ Symbol("zIndexContextKey"), kr = (e) => {
|
|
816
|
-
const t = Ye() ? Y(nn, en) : en, n = Ye() ? Y(Br, void 0) : void 0, o = x(() => {
|
|
817
|
-
const u = v(n);
|
|
818
|
-
return Je(u) ? u : Lr;
|
|
819
|
-
}), r = x(() => o.value + tn.value), a = () => (t.current++, tn.value = t.current, r.value);
|
|
820
|
-
return !ie && !Y(nn) && Qe(
|
|
821
|
-
"ZIndexInjection",
|
|
822
|
-
`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
823
|
-
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`
|
|
824
|
-
), {
|
|
825
|
-
initialZIndex: o,
|
|
826
|
-
currentZIndex: r,
|
|
827
|
-
nextZIndex: a
|
|
828
|
-
};
|
|
829
|
-
}, Nr = /* @__PURE__ */ Symbol("emptyValuesContextKey"), Dr = "use-empty-values", Mr = ["", void 0, null], jr = void 0, Ha = G({
|
|
830
|
-
/**
|
|
831
|
-
* @description empty values supported by the component
|
|
832
|
-
*/
|
|
833
|
-
emptyValues: Array,
|
|
834
|
-
/**
|
|
835
|
-
* @description return value when cleared, if you want to set `undefined`, use `() => undefined`
|
|
836
|
-
*/
|
|
837
|
-
valueOnClear: {
|
|
838
|
-
/* eslint-disable-next-line @typescript-eslint/no-unsafe-function-type */
|
|
839
|
-
type: L([
|
|
840
|
-
String,
|
|
841
|
-
Number,
|
|
842
|
-
Boolean,
|
|
843
|
-
Function
|
|
844
|
-
]),
|
|
845
|
-
default: void 0,
|
|
846
|
-
validator: (e) => (e = fe(e) ? e() : e, Me(e) ? e.every((t) => !t) : !e)
|
|
847
|
-
}
|
|
848
|
-
}), Va = (e, t) => {
|
|
849
|
-
const n = Ye() ? Y(Nr, B({})) : B({}), o = x(
|
|
850
|
-
() => e.emptyValues || n.value.emptyValues || Mr
|
|
851
|
-
), r = x(() => fe(e.valueOnClear) ? e.valueOnClear() : e.valueOnClear !== void 0 ? e.valueOnClear : fe(n.value.valueOnClear) ? n.value.valueOnClear() : n.value.valueOnClear !== void 0 ? n.value.valueOnClear : t !== void 0 ? t : jr), a = (u) => {
|
|
852
|
-
let i = !0;
|
|
853
|
-
return Me(u) ? i = o.value.some((s) => io(u, s)) : i = o.value.includes(u), i;
|
|
854
|
-
};
|
|
855
|
-
return a(r.value) || Qe(Dr, "value-on-clear should be a value of empty-values"), {
|
|
856
|
-
emptyValues: o,
|
|
857
|
-
valueOnClear: r,
|
|
858
|
-
isEmptyValue: a
|
|
859
|
-
};
|
|
860
|
-
}, $a = (e) => Me(e) ? e[0] : e, Hr = (e) => !e && e !== 0 ? [] : Me(e) ? e : [e], Ln = G({
|
|
861
|
-
arrowOffset: {
|
|
862
|
-
type: Number,
|
|
863
|
-
default: 5
|
|
864
|
-
}
|
|
865
|
-
}), Vr = ["fixed", "absolute"], $r = G({
|
|
866
|
-
boundariesPadding: {
|
|
867
|
-
type: Number,
|
|
868
|
-
default: 0
|
|
869
|
-
},
|
|
870
|
-
fallbackPlacements: {
|
|
871
|
-
type: L(Array),
|
|
872
|
-
default: void 0
|
|
873
|
-
},
|
|
874
|
-
gpuAcceleration: {
|
|
875
|
-
type: Boolean,
|
|
876
|
-
default: !0
|
|
877
|
-
},
|
|
878
|
-
/**
|
|
879
|
-
* @description offset of the Tooltip
|
|
880
|
-
*/
|
|
881
|
-
offset: {
|
|
882
|
-
type: Number,
|
|
883
|
-
default: 12
|
|
884
|
-
},
|
|
885
|
-
/**
|
|
886
|
-
* @description position of Tooltip
|
|
887
|
-
*/
|
|
888
|
-
placement: {
|
|
889
|
-
type: String,
|
|
890
|
-
values: ht,
|
|
891
|
-
default: "bottom"
|
|
892
|
-
},
|
|
893
|
-
/**
|
|
894
|
-
* @description [popper.js](https://popper.js.org/docs/v2/) parameters
|
|
895
|
-
*/
|
|
896
|
-
popperOptions: {
|
|
897
|
-
type: L(Object),
|
|
898
|
-
default: () => ({})
|
|
899
|
-
},
|
|
900
|
-
strategy: {
|
|
901
|
-
type: String,
|
|
902
|
-
values: Vr,
|
|
903
|
-
default: "absolute"
|
|
904
|
-
}
|
|
905
|
-
}), Bn = G({
|
|
906
|
-
...$r,
|
|
907
|
-
...Ln,
|
|
908
|
-
id: String,
|
|
909
|
-
style: {
|
|
910
|
-
type: L([String, Array, Object])
|
|
911
|
-
},
|
|
912
|
-
className: {
|
|
913
|
-
type: L([String, Array, Object])
|
|
914
|
-
},
|
|
915
|
-
effect: {
|
|
916
|
-
type: L(String),
|
|
917
|
-
default: "dark"
|
|
918
|
-
},
|
|
919
|
-
visible: Boolean,
|
|
920
|
-
enterable: {
|
|
921
|
-
type: Boolean,
|
|
922
|
-
default: !0
|
|
923
|
-
},
|
|
924
|
-
pure: Boolean,
|
|
925
|
-
focusOnShow: Boolean,
|
|
926
|
-
trapping: Boolean,
|
|
927
|
-
popperClass: {
|
|
928
|
-
type: L([String, Array, Object])
|
|
929
|
-
},
|
|
930
|
-
popperStyle: {
|
|
931
|
-
type: L([String, Array, Object])
|
|
932
|
-
},
|
|
933
|
-
referenceEl: {
|
|
934
|
-
type: L(Object)
|
|
935
|
-
},
|
|
936
|
-
triggerTargetEl: {
|
|
937
|
-
type: L(Object)
|
|
938
|
-
},
|
|
939
|
-
stopPopperMouseEvent: {
|
|
940
|
-
type: Boolean,
|
|
941
|
-
default: !0
|
|
942
|
-
},
|
|
943
|
-
virtualTriggering: Boolean,
|
|
944
|
-
zIndex: Number,
|
|
945
|
-
...gn(["ariaLabel"]),
|
|
946
|
-
loop: Boolean
|
|
947
|
-
}), Ur = {
|
|
948
|
-
mouseenter: (e) => e instanceof MouseEvent,
|
|
949
|
-
mouseleave: (e) => e instanceof MouseEvent,
|
|
950
|
-
focus: () => !0,
|
|
951
|
-
blur: () => !0,
|
|
952
|
-
close: () => !0
|
|
953
|
-
}, kn = G({
|
|
954
|
-
to: {
|
|
955
|
-
type: L([String, Object]),
|
|
956
|
-
required: !0
|
|
957
|
-
},
|
|
958
|
-
disabled: Boolean
|
|
959
|
-
}), Nn = G({
|
|
960
|
-
...Ar,
|
|
961
|
-
...Bn,
|
|
962
|
-
/**
|
|
963
|
-
* @description which element the tooltip CONTENT appends to
|
|
964
|
-
*/
|
|
965
|
-
appendTo: {
|
|
966
|
-
type: kn.to.type
|
|
967
|
-
},
|
|
968
|
-
/**
|
|
969
|
-
* @description display content, can be overridden by `slot#content`
|
|
970
|
-
*/
|
|
971
|
-
content: {
|
|
972
|
-
type: String,
|
|
973
|
-
default: ""
|
|
974
|
-
},
|
|
975
|
-
/**
|
|
976
|
-
* @description whether `content` is treated as HTML string
|
|
977
|
-
*/
|
|
978
|
-
rawContent: Boolean,
|
|
979
|
-
/**
|
|
980
|
-
* @description when tooltip inactive and `persistent` is `false` , popconfirm will be destroyed
|
|
981
|
-
*/
|
|
982
|
-
persistent: Boolean,
|
|
983
|
-
// because model toggle prop is generated dynamically
|
|
984
|
-
// so the typing cannot be evaluated by typescript as type:
|
|
985
|
-
// [name]: { type: Boolean, default: null }
|
|
986
|
-
// so we need to declare that again for type checking.
|
|
987
|
-
/**
|
|
988
|
-
* @description visibility of Tooltip
|
|
989
|
-
*/
|
|
990
|
-
visible: {
|
|
991
|
-
type: L(Boolean),
|
|
992
|
-
default: null
|
|
993
|
-
},
|
|
994
|
-
/**
|
|
995
|
-
* @description animation name
|
|
996
|
-
*/
|
|
997
|
-
transition: String,
|
|
998
|
-
/**
|
|
999
|
-
* @description whether tooltip content is teleported, if `true` it will be teleported to where `append-to` sets
|
|
1000
|
-
*/
|
|
1001
|
-
teleported: {
|
|
1002
|
-
type: Boolean,
|
|
1003
|
-
default: !0
|
|
1004
|
-
},
|
|
1005
|
-
/**
|
|
1006
|
-
* @description whether Tooltip is disabled
|
|
1007
|
-
*/
|
|
1008
|
-
disabled: Boolean,
|
|
1009
|
-
...gn(["ariaLabel"])
|
|
1010
|
-
}), Dn = G({
|
|
1011
|
-
/** @description Indicates the reference element to which the popper is attached */
|
|
1012
|
-
virtualRef: {
|
|
1013
|
-
type: L(Object)
|
|
1014
|
-
},
|
|
1015
|
-
/** @description Indicates whether virtual triggering is enabled */
|
|
1016
|
-
virtualTriggering: Boolean,
|
|
1017
|
-
onMouseenter: {
|
|
1018
|
-
type: L(Function)
|
|
1019
|
-
},
|
|
1020
|
-
onMouseleave: {
|
|
1021
|
-
type: L(Function)
|
|
1022
|
-
},
|
|
1023
|
-
onClick: {
|
|
1024
|
-
type: L(Function)
|
|
1025
|
-
},
|
|
1026
|
-
onKeydown: {
|
|
1027
|
-
type: L(Function)
|
|
1028
|
-
},
|
|
1029
|
-
onFocus: {
|
|
1030
|
-
type: L(Function)
|
|
1031
|
-
},
|
|
1032
|
-
onBlur: {
|
|
1033
|
-
type: L(Function)
|
|
1034
|
-
},
|
|
1035
|
-
onContextmenu: {
|
|
1036
|
-
type: L(Function)
|
|
1037
|
-
},
|
|
1038
|
-
id: String,
|
|
1039
|
-
open: Boolean
|
|
1040
|
-
}), Mn = G({
|
|
1041
|
-
...Dn,
|
|
1042
|
-
/**
|
|
1043
|
-
* @description whether Tooltip is disabled
|
|
1044
|
-
*/
|
|
1045
|
-
disabled: Boolean,
|
|
1046
|
-
/**
|
|
1047
|
-
* @description How should the tooltip be triggered (to show), not valid in controlled mode
|
|
1048
|
-
*/
|
|
1049
|
-
trigger: {
|
|
1050
|
-
type: L([String, Array]),
|
|
1051
|
-
default: "hover"
|
|
1052
|
-
},
|
|
1053
|
-
/**
|
|
1054
|
-
* @description When you click the mouse to focus on the trigger element, you can define a set of keyboard codes to control the display of tooltip through the keyboard, not valid in controlled mode
|
|
1055
|
-
*/
|
|
1056
|
-
triggerKeys: {
|
|
1057
|
-
type: L(Array),
|
|
1058
|
-
default: () => [Ie.enter, Ie.numpadEnter, Ie.space]
|
|
1059
|
-
},
|
|
1060
|
-
/**
|
|
1061
|
-
* @description when triggering tooltips through hover, whether to focus the trigger element, which improves accessibility
|
|
1062
|
-
*/
|
|
1063
|
-
focusOnTarget: Boolean
|
|
1064
|
-
}), Kr = [
|
|
1065
|
-
"dialog",
|
|
1066
|
-
"grid",
|
|
1067
|
-
"group",
|
|
1068
|
-
"listbox",
|
|
1069
|
-
"menu",
|
|
1070
|
-
"navigation",
|
|
1071
|
-
"tooltip",
|
|
1072
|
-
"tree"
|
|
1073
|
-
], jn = G({
|
|
1074
|
-
role: {
|
|
1075
|
-
type: String,
|
|
1076
|
-
values: Kr,
|
|
1077
|
-
default: "tooltip"
|
|
1078
|
-
}
|
|
1079
|
-
}), {
|
|
1080
|
-
useModelToggleProps: Wr,
|
|
1081
|
-
useModelToggleEmits: zr,
|
|
1082
|
-
useModelToggle: qr
|
|
1083
|
-
} = Eo("visible"), Zr = G({
|
|
1084
|
-
...jn,
|
|
1085
|
-
...Wr,
|
|
1086
|
-
...Nn,
|
|
1087
|
-
...Mn,
|
|
1088
|
-
...Ln,
|
|
1089
|
-
/**
|
|
1090
|
-
* @description whether the tooltip content has an arrow
|
|
1091
|
-
*/
|
|
1092
|
-
showArrow: {
|
|
1093
|
-
type: Boolean,
|
|
1094
|
-
default: !0
|
|
1095
|
-
}
|
|
1096
|
-
}), Yr = [
|
|
1097
|
-
...zr,
|
|
1098
|
-
"before-show",
|
|
1099
|
-
"before-hide",
|
|
1100
|
-
"show",
|
|
1101
|
-
"hide",
|
|
1102
|
-
"open",
|
|
1103
|
-
"close"
|
|
1104
|
-
], Pt = /* @__PURE__ */ Symbol("popper"), Hn = /* @__PURE__ */ Symbol("popperContent");
|
|
1105
|
-
var _r = /* @__PURE__ */ te({
|
|
1106
|
-
name: "ElPopper",
|
|
1107
|
-
inheritAttrs: !1,
|
|
1108
|
-
__name: "popper",
|
|
1109
|
-
props: jn,
|
|
1110
|
-
setup(e, { expose: t }) {
|
|
1111
|
-
const n = e, o = B(), r = B(), a = B(), u = B(), i = x(() => n.role), s = {
|
|
1112
|
-
/**
|
|
1113
|
-
* @description trigger element
|
|
1114
|
-
*/
|
|
1115
|
-
triggerRef: o,
|
|
1116
|
-
/**
|
|
1117
|
-
* @description popperjs instance
|
|
1118
|
-
*/
|
|
1119
|
-
popperInstanceRef: r,
|
|
1120
|
-
/**
|
|
1121
|
-
* @description popper content element
|
|
1122
|
-
*/
|
|
1123
|
-
contentRef: a,
|
|
1124
|
-
/**
|
|
1125
|
-
* @description popper reference element
|
|
1126
|
-
*/
|
|
1127
|
-
referenceRef: u,
|
|
1128
|
-
/**
|
|
1129
|
-
* @description role determines how aria attributes are distributed
|
|
1130
|
-
*/
|
|
1131
|
-
role: i
|
|
1132
|
-
};
|
|
1133
|
-
return t(s), Ee(Pt, s), (l, f) => X(l.$slots, "default");
|
|
1134
|
-
}
|
|
1135
|
-
}), Gr = /* @__PURE__ */ te({
|
|
1136
|
-
name: "ElPopperArrow",
|
|
1137
|
-
inheritAttrs: !1,
|
|
1138
|
-
__name: "arrow",
|
|
1139
|
-
setup(e, { expose: t }) {
|
|
1140
|
-
const n = Ce("popper"), { arrowRef: o, arrowStyle: r } = Y(
|
|
1141
|
-
Hn,
|
|
1142
|
-
void 0
|
|
1143
|
-
);
|
|
1144
|
-
return _(() => {
|
|
1145
|
-
o.value = void 0;
|
|
1146
|
-
}), t({
|
|
1147
|
-
/**
|
|
1148
|
-
* @description Arrow element
|
|
1149
|
-
*/
|
|
1150
|
-
arrowRef: o
|
|
1151
|
-
}), (a, u) => (Z(), _e(
|
|
1152
|
-
"span",
|
|
1153
|
-
{
|
|
1154
|
-
ref_key: "arrowRef",
|
|
1155
|
-
ref: o,
|
|
1156
|
-
class: dn(v(n).e("arrow")),
|
|
1157
|
-
style: Jn(v(r)),
|
|
1158
|
-
"data-popper-arrow": ""
|
|
1159
|
-
},
|
|
1160
|
-
null,
|
|
1161
|
-
6
|
|
1162
|
-
/* CLASS, STYLE */
|
|
1163
|
-
));
|
|
1164
|
-
}
|
|
1165
|
-
});
|
|
1166
|
-
const rt = "ElOnlyChild", Jr = /* @__PURE__ */ te({
|
|
1167
|
-
name: rt,
|
|
1168
|
-
setup(e, {
|
|
1169
|
-
slots: t,
|
|
1170
|
-
attrs: n
|
|
1171
|
-
}) {
|
|
1172
|
-
var o;
|
|
1173
|
-
const r = Y(In), a = Ir((o = r == null ? void 0 : r.setForwardRef) != null ? o : ut);
|
|
1174
|
-
return () => {
|
|
1175
|
-
var u;
|
|
1176
|
-
const i = (u = t.default) == null ? void 0 : u.call(t, n);
|
|
1177
|
-
if (!i) return null;
|
|
1178
|
-
const [s, l] = Vn(i);
|
|
1179
|
-
return s ? (l > 1 && Qe(rt, "requires exact only one valid child."), pn(Qn(s, n), [[a]])) : (Qe(rt, "no valid child node found"), null);
|
|
1180
|
-
};
|
|
1181
|
-
}
|
|
1182
|
-
});
|
|
1183
|
-
function Vn(e) {
|
|
1184
|
-
if (!e) return [null, 0];
|
|
1185
|
-
const t = e, n = t.filter((o) => o.type !== Ht).length;
|
|
1186
|
-
for (const o of t) {
|
|
1187
|
-
if (co(o))
|
|
1188
|
-
switch (o.type) {
|
|
1189
|
-
case Ht:
|
|
1190
|
-
continue;
|
|
1191
|
-
case eo:
|
|
1192
|
-
case "svg":
|
|
1193
|
-
return [on(o), n];
|
|
1194
|
-
case Xn:
|
|
1195
|
-
return Vn(o.children);
|
|
1196
|
-
default:
|
|
1197
|
-
return [o, n];
|
|
1198
|
-
}
|
|
1199
|
-
return [on(o), n];
|
|
1200
|
-
}
|
|
1201
|
-
return [null, 0];
|
|
1202
|
-
}
|
|
1203
|
-
function on(e) {
|
|
1204
|
-
const t = Ce("only-child");
|
|
1205
|
-
return ke("span", {
|
|
1206
|
-
class: t.e("content")
|
|
1207
|
-
}, [e]);
|
|
1208
|
-
}
|
|
1209
|
-
var Qr = /* @__PURE__ */ te({
|
|
1210
|
-
name: "ElPopperTrigger",
|
|
1211
|
-
inheritAttrs: !1,
|
|
1212
|
-
__name: "trigger",
|
|
1213
|
-
props: Dn,
|
|
1214
|
-
setup(e, { expose: t }) {
|
|
1215
|
-
const n = e, { role: o, triggerRef: r } = Y(Pt, void 0);
|
|
1216
|
-
Sr(r);
|
|
1217
|
-
const a = x(() => i.value ? n.id : void 0), u = x(() => {
|
|
1218
|
-
if (o && o.value === "tooltip")
|
|
1219
|
-
return n.open && n.id ? n.id : void 0;
|
|
1220
|
-
}), i = x(() => {
|
|
1221
|
-
if (o && o.value !== "tooltip")
|
|
1222
|
-
return o.value;
|
|
1223
|
-
}), s = x(() => i.value ? `${n.open}` : void 0);
|
|
1224
|
-
let l;
|
|
1225
|
-
const f = [
|
|
1226
|
-
"onMouseenter",
|
|
1227
|
-
"onMouseleave",
|
|
1228
|
-
"onClick",
|
|
1229
|
-
"onKeydown",
|
|
1230
|
-
"onFocus",
|
|
1231
|
-
"onBlur",
|
|
1232
|
-
"onContextmenu"
|
|
1233
|
-
];
|
|
1234
|
-
return me(() => {
|
|
1235
|
-
H(
|
|
1236
|
-
() => n.virtualRef,
|
|
1237
|
-
(p) => {
|
|
1238
|
-
p && (r.value = yn(p));
|
|
1239
|
-
},
|
|
1240
|
-
{
|
|
1241
|
-
immediate: !0
|
|
1242
|
-
}
|
|
1243
|
-
), H(
|
|
1244
|
-
r,
|
|
1245
|
-
(p, m) => {
|
|
1246
|
-
l == null || l(), l = void 0, be(m) && f.forEach((y) => {
|
|
1247
|
-
const c = n[y];
|
|
1248
|
-
c && m.removeEventListener(
|
|
1249
|
-
y.slice(2).toLowerCase(),
|
|
1250
|
-
c,
|
|
1251
|
-
["onFocus", "onBlur"].includes(y)
|
|
1252
|
-
);
|
|
1253
|
-
}), be(p) && (f.forEach((y) => {
|
|
1254
|
-
const c = n[y];
|
|
1255
|
-
c && p.addEventListener(
|
|
1256
|
-
y.slice(2).toLowerCase(),
|
|
1257
|
-
c,
|
|
1258
|
-
["onFocus", "onBlur"].includes(y)
|
|
1259
|
-
);
|
|
1260
|
-
}), Ut(p) && (l = H(
|
|
1261
|
-
[a, u, i, s],
|
|
1262
|
-
(y) => {
|
|
1263
|
-
[
|
|
1264
|
-
"aria-controls",
|
|
1265
|
-
"aria-describedby",
|
|
1266
|
-
"aria-haspopup",
|
|
1267
|
-
"aria-expanded"
|
|
1268
|
-
].forEach((c, d) => {
|
|
1269
|
-
pt(y[d]) ? p.removeAttribute(c) : p.setAttribute(c, y[d]);
|
|
1270
|
-
});
|
|
1271
|
-
},
|
|
1272
|
-
{ immediate: !0 }
|
|
1273
|
-
))), be(m) && Ut(m) && [
|
|
1274
|
-
"aria-controls",
|
|
1275
|
-
"aria-describedby",
|
|
1276
|
-
"aria-haspopup",
|
|
1277
|
-
"aria-expanded"
|
|
1278
|
-
].forEach((y) => m.removeAttribute(y));
|
|
1279
|
-
},
|
|
1280
|
-
{
|
|
1281
|
-
immediate: !0
|
|
1282
|
-
}
|
|
1283
|
-
);
|
|
1284
|
-
}), _(() => {
|
|
1285
|
-
if (l == null || l(), l = void 0, r.value && be(r.value)) {
|
|
1286
|
-
const p = r.value;
|
|
1287
|
-
f.forEach((m) => {
|
|
1288
|
-
const y = n[m];
|
|
1289
|
-
y && p.removeEventListener(
|
|
1290
|
-
m.slice(2).toLowerCase(),
|
|
1291
|
-
y,
|
|
1292
|
-
["onFocus", "onBlur"].includes(m)
|
|
1293
|
-
);
|
|
1294
|
-
}), r.value = void 0;
|
|
1295
|
-
}
|
|
1296
|
-
}), t({
|
|
1297
|
-
/**
|
|
1298
|
-
* @description trigger element
|
|
1299
|
-
*/
|
|
1300
|
-
triggerRef: r
|
|
1301
|
-
}), (p, m) => e.virtualTriggering ? Ge("v-if", !0) : (Z(), pe(v(Jr), dt({ key: 0 }, p.$attrs, {
|
|
1302
|
-
"aria-controls": a.value,
|
|
1303
|
-
"aria-describedby": u.value,
|
|
1304
|
-
"aria-expanded": s.value,
|
|
1305
|
-
"aria-haspopup": i.value
|
|
1306
|
-
}), {
|
|
1307
|
-
default: re(() => [
|
|
1308
|
-
X(p.$slots, "default")
|
|
1309
|
-
]),
|
|
1310
|
-
_: 3
|
|
1311
|
-
/* FORWARDED */
|
|
1312
|
-
}, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"]));
|
|
1313
|
-
}
|
|
1314
|
-
});
|
|
1315
|
-
const at = "focus-trap.focus-after-trapped", st = "focus-trap.focus-after-released", Xr = "focus-trap.focusout-prevented", rn = {
|
|
1316
|
-
cancelable: !0,
|
|
1317
|
-
bubbles: !1
|
|
1318
|
-
}, ea = {
|
|
1319
|
-
cancelable: !0,
|
|
1320
|
-
bubbles: !1
|
|
1321
|
-
}, an = "focusAfterTrapped", sn = "focusAfterReleased", ta = /* @__PURE__ */ Symbol("elFocusTrap"), Rt = B(), tt = B(0), At = B(0);
|
|
1322
|
-
let We = 0;
|
|
1323
|
-
const $n = (e) => {
|
|
1324
|
-
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
1325
|
-
acceptNode: (o) => {
|
|
1326
|
-
const r = o.tagName === "INPUT" && o.type === "hidden";
|
|
1327
|
-
return o.disabled || o.hidden || r ? NodeFilter.FILTER_SKIP : o.tabIndex >= 0 || o === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
1328
|
-
}
|
|
1329
|
-
});
|
|
1330
|
-
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
1331
|
-
return t;
|
|
1332
|
-
}, un = (e, t) => {
|
|
1333
|
-
for (const n of e)
|
|
1334
|
-
if (!na(n, t)) return n;
|
|
1335
|
-
}, na = (e, t) => {
|
|
1336
|
-
if (process.env.NODE_ENV === "test") return !1;
|
|
1337
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
1338
|
-
for (; e; ) {
|
|
1339
|
-
if (t && e === t) return !1;
|
|
1340
|
-
if (getComputedStyle(e).display === "none") return !0;
|
|
1341
|
-
e = e.parentElement;
|
|
1342
|
-
}
|
|
1343
|
-
return !1;
|
|
1344
|
-
}, oa = (e) => {
|
|
1345
|
-
const t = $n(e), n = un(t, e), o = un(t.reverse(), e);
|
|
1346
|
-
return [n, o];
|
|
1347
|
-
}, ra = (e) => e instanceof HTMLInputElement && "select" in e, se = (e, t) => {
|
|
1348
|
-
if (e) {
|
|
1349
|
-
const n = document.activeElement;
|
|
1350
|
-
gt(e, { preventScroll: !0 }), At.value = window.performance.now(), e !== n && ra(e) && t && e.select();
|
|
1351
|
-
}
|
|
1352
|
-
};
|
|
1353
|
-
function ln(e, t) {
|
|
1354
|
-
const n = [...e], o = e.indexOf(t);
|
|
1355
|
-
return o !== -1 && n.splice(o, 1), n;
|
|
1356
|
-
}
|
|
1357
|
-
const aa = () => {
|
|
1358
|
-
let e = [];
|
|
1359
|
-
return {
|
|
1360
|
-
push: (o) => {
|
|
1361
|
-
const r = e[0];
|
|
1362
|
-
r && o !== r && r.pause(), e = ln(e, o), e.unshift(o);
|
|
1363
|
-
},
|
|
1364
|
-
remove: (o) => {
|
|
1365
|
-
var r, a;
|
|
1366
|
-
e = ln(e, o), (a = (r = e[0]) == null ? void 0 : r.resume) == null || a.call(r);
|
|
1367
|
-
}
|
|
1368
|
-
};
|
|
1369
|
-
}, sa = (e, t = !1) => {
|
|
1370
|
-
const n = document.activeElement;
|
|
1371
|
-
for (const o of e)
|
|
1372
|
-
if (se(o, t), document.activeElement !== n) return;
|
|
1373
|
-
}, cn = aa(), ia = () => tt.value > At.value, ze = () => {
|
|
1374
|
-
Rt.value = "pointer", tt.value = window.performance.now();
|
|
1375
|
-
}, fn = () => {
|
|
1376
|
-
Rt.value = "keyboard", tt.value = window.performance.now();
|
|
1377
|
-
}, ua = () => (me(() => {
|
|
1378
|
-
We === 0 && (document.addEventListener("mousedown", ze), document.addEventListener("touchstart", ze), document.addEventListener("keydown", fn)), We++;
|
|
1379
|
-
}), _(() => {
|
|
1380
|
-
We--, We <= 0 && (document.removeEventListener("mousedown", ze), document.removeEventListener("touchstart", ze), document.removeEventListener("keydown", fn));
|
|
1381
|
-
}), {
|
|
1382
|
-
focusReason: Rt,
|
|
1383
|
-
lastUserFocusTimestamp: tt,
|
|
1384
|
-
lastAutomatedFocusTimestamp: At
|
|
1385
|
-
}), qe = (e) => new CustomEvent(Xr, {
|
|
1386
|
-
...ea,
|
|
1387
|
-
detail: e
|
|
1388
|
-
});
|
|
1389
|
-
var la = te({
|
|
1390
|
-
name: "ElFocusTrap",
|
|
1391
|
-
inheritAttrs: !1,
|
|
1392
|
-
props: {
|
|
1393
|
-
loop: Boolean,
|
|
1394
|
-
trapped: Boolean,
|
|
1395
|
-
focusTrapEl: Object,
|
|
1396
|
-
focusStartEl: {
|
|
1397
|
-
type: [Object, String],
|
|
1398
|
-
default: "first"
|
|
1399
|
-
}
|
|
1400
|
-
},
|
|
1401
|
-
emits: [
|
|
1402
|
-
an,
|
|
1403
|
-
sn,
|
|
1404
|
-
"focusin",
|
|
1405
|
-
"focusout",
|
|
1406
|
-
"focusout-prevented",
|
|
1407
|
-
"release-requested"
|
|
1408
|
-
],
|
|
1409
|
-
setup(e, { emit: t }) {
|
|
1410
|
-
const n = B();
|
|
1411
|
-
let o, r;
|
|
1412
|
-
const { focusReason: a } = ua();
|
|
1413
|
-
Cr((c) => {
|
|
1414
|
-
e.trapped && !u.paused && t("release-requested", c);
|
|
1415
|
-
});
|
|
1416
|
-
const u = {
|
|
1417
|
-
paused: !1,
|
|
1418
|
-
pause() {
|
|
1419
|
-
this.paused = !0;
|
|
1420
|
-
},
|
|
1421
|
-
resume() {
|
|
1422
|
-
this.paused = !1;
|
|
1423
|
-
}
|
|
1424
|
-
}, i = (c) => {
|
|
1425
|
-
if (!e.loop && !e.trapped || u.paused) return;
|
|
1426
|
-
const { altKey: d, ctrlKey: b, metaKey: h, currentTarget: E, shiftKey: O } = c, { loop: g } = e, P = mt(c) === Ie.tab && !d && !b && !h, T = document.activeElement;
|
|
1427
|
-
if (P && T) {
|
|
1428
|
-
const C = E, [F, R] = oa(C);
|
|
1429
|
-
if (F && R) {
|
|
1430
|
-
if (!O && T === R) {
|
|
1431
|
-
const I = qe({
|
|
1432
|
-
focusReason: a.value
|
|
1433
|
-
});
|
|
1434
|
-
t("focusout-prevented", I), I.defaultPrevented || (c.preventDefault(), g && se(F, !0));
|
|
1435
|
-
} else if (O && [F, C].includes(T)) {
|
|
1436
|
-
const I = qe({
|
|
1437
|
-
focusReason: a.value
|
|
1438
|
-
});
|
|
1439
|
-
t("focusout-prevented", I), I.defaultPrevented || (c.preventDefault(), g && se(R, !0));
|
|
1440
|
-
}
|
|
1441
|
-
} else if (T === C) {
|
|
1442
|
-
const I = qe({
|
|
1443
|
-
focusReason: a.value
|
|
1444
|
-
});
|
|
1445
|
-
t("focusout-prevented", I), I.defaultPrevented || c.preventDefault();
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
};
|
|
1449
|
-
Ee(ta, {
|
|
1450
|
-
focusTrapRef: n,
|
|
1451
|
-
onKeydown: i
|
|
1452
|
-
}), H(
|
|
1453
|
-
() => e.focusTrapEl,
|
|
1454
|
-
(c) => {
|
|
1455
|
-
c && (n.value = c);
|
|
1456
|
-
},
|
|
1457
|
-
{ immediate: !0 }
|
|
1458
|
-
), H([n], ([c], [d]) => {
|
|
1459
|
-
c && (c.addEventListener("keydown", i), c.addEventListener("focusin", f), c.addEventListener("focusout", p)), d && (d.removeEventListener("keydown", i), d.removeEventListener("focusin", f), d.removeEventListener("focusout", p));
|
|
1460
|
-
});
|
|
1461
|
-
const s = (c) => {
|
|
1462
|
-
t(an, c);
|
|
1463
|
-
}, l = (c) => t(sn, c), f = (c) => {
|
|
1464
|
-
const d = v(n);
|
|
1465
|
-
if (!d) return;
|
|
1466
|
-
const b = c.target, h = c.relatedTarget, E = b && d.contains(b);
|
|
1467
|
-
e.trapped || h && d.contains(h) || (o = h), E && t("focusin", c), !u.paused && e.trapped && (E ? r = b : se(r, !0));
|
|
1468
|
-
}, p = (c) => {
|
|
1469
|
-
const d = v(n);
|
|
1470
|
-
if (!(u.paused || !d))
|
|
1471
|
-
if (e.trapped) {
|
|
1472
|
-
const b = c.relatedTarget;
|
|
1473
|
-
!pt(b) && !d.contains(b) && setTimeout(() => {
|
|
1474
|
-
if (!u.paused && e.trapped) {
|
|
1475
|
-
const h = qe({
|
|
1476
|
-
focusReason: a.value
|
|
1477
|
-
});
|
|
1478
|
-
t("focusout-prevented", h), h.defaultPrevented || se(r, !0);
|
|
1479
|
-
}
|
|
1480
|
-
}, 0);
|
|
1481
|
-
} else {
|
|
1482
|
-
const b = c.target;
|
|
1483
|
-
b && d.contains(b) || t("focusout", c);
|
|
1484
|
-
}
|
|
1485
|
-
};
|
|
1486
|
-
async function m() {
|
|
1487
|
-
await it();
|
|
1488
|
-
const c = v(n);
|
|
1489
|
-
if (c) {
|
|
1490
|
-
cn.push(u);
|
|
1491
|
-
const d = c.contains(
|
|
1492
|
-
document.activeElement
|
|
1493
|
-
) ? o : document.activeElement;
|
|
1494
|
-
if (o = d, !c.contains(d)) {
|
|
1495
|
-
const h = new Event(
|
|
1496
|
-
at,
|
|
1497
|
-
rn
|
|
1498
|
-
);
|
|
1499
|
-
c.addEventListener(at, s), c.dispatchEvent(h), h.defaultPrevented || it(() => {
|
|
1500
|
-
let E = e.focusStartEl;
|
|
1501
|
-
fo(E) || (se(E), document.activeElement !== E && (E = "first")), E === "first" && sa(
|
|
1502
|
-
$n(c),
|
|
1503
|
-
!0
|
|
1504
|
-
), (document.activeElement === d || E === "container") && se(c);
|
|
1505
|
-
});
|
|
1506
|
-
}
|
|
1507
|
-
}
|
|
1508
|
-
}
|
|
1509
|
-
function y() {
|
|
1510
|
-
const c = v(n);
|
|
1511
|
-
if (c) {
|
|
1512
|
-
c.removeEventListener(at, s);
|
|
1513
|
-
const d = new CustomEvent(st, {
|
|
1514
|
-
...rn,
|
|
1515
|
-
detail: {
|
|
1516
|
-
focusReason: a.value
|
|
1517
|
-
}
|
|
1518
|
-
});
|
|
1519
|
-
c.addEventListener(st, l), c.dispatchEvent(d), !d.defaultPrevented && (a.value == "keyboard" || !ia() || c.contains(document.activeElement)) && se(o ?? document.body), c.removeEventListener(st, l), cn.remove(u), o = null, r = null;
|
|
1520
|
-
}
|
|
1521
|
-
}
|
|
1522
|
-
return me(() => {
|
|
1523
|
-
e.trapped && m(), H(
|
|
1524
|
-
() => e.trapped,
|
|
1525
|
-
(c) => {
|
|
1526
|
-
c ? m() : y();
|
|
1527
|
-
}
|
|
1528
|
-
);
|
|
1529
|
-
}), _(() => {
|
|
1530
|
-
e.trapped && y(), n.value && (n.value.removeEventListener("keydown", i), n.value.removeEventListener("focusin", f), n.value.removeEventListener("focusout", p), n.value = void 0), o = null, r = null;
|
|
1531
|
-
}), {
|
|
1532
|
-
onKeydown: i
|
|
1533
|
-
};
|
|
1534
|
-
}
|
|
1535
|
-
}), ca = (e, t) => {
|
|
1536
|
-
const n = e.__vccOpts || e;
|
|
1537
|
-
for (const [o, r] of t)
|
|
1538
|
-
n[o] = r;
|
|
1539
|
-
return n;
|
|
1540
|
-
};
|
|
1541
|
-
function fa(e, t, n, o, r, a) {
|
|
1542
|
-
return X(e.$slots, "default", { handleKeydown: e.onKeydown });
|
|
1543
|
-
}
|
|
1544
|
-
var da = /* @__PURE__ */ ca(la, [["render", fa]]);
|
|
1545
|
-
const pa = (e, t) => {
|
|
1546
|
-
const n = B(!1), o = B(), r = () => {
|
|
1547
|
-
t("focus");
|
|
1548
|
-
}, a = (l) => {
|
|
1549
|
-
var f;
|
|
1550
|
-
((f = l.detail) == null ? void 0 : f.focusReason) !== "pointer" && (o.value = "first", t("blur"));
|
|
1551
|
-
}, u = (l) => {
|
|
1552
|
-
e.visible && !n.value && (l.target && (o.value = l.target), n.value = !0);
|
|
1553
|
-
}, i = (l) => {
|
|
1554
|
-
e.trapping || (l.detail.focusReason === "pointer" && l.preventDefault(), n.value = !1);
|
|
1555
|
-
}, s = () => {
|
|
1556
|
-
n.value = !1, t("close");
|
|
1557
|
-
};
|
|
1558
|
-
return _(() => {
|
|
1559
|
-
o.value = void 0;
|
|
1560
|
-
}), {
|
|
1561
|
-
focusStartRef: o,
|
|
1562
|
-
trapped: n,
|
|
1563
|
-
onFocusAfterReleased: a,
|
|
1564
|
-
onFocusAfterTrapped: r,
|
|
1565
|
-
onFocusInTrap: u,
|
|
1566
|
-
onFocusoutPrevented: i,
|
|
1567
|
-
onReleaseRequested: s
|
|
1568
|
-
};
|
|
1569
|
-
}, va = (e, t = []) => {
|
|
1570
|
-
const { placement: n, strategy: o, popperOptions: r } = e, a = {
|
|
1571
|
-
placement: n,
|
|
1572
|
-
strategy: o,
|
|
1573
|
-
...r,
|
|
1574
|
-
modifiers: [...ga(e), ...t]
|
|
1575
|
-
};
|
|
1576
|
-
return ya(a, r == null ? void 0 : r.modifiers), a;
|
|
1577
|
-
}, ma = (e) => {
|
|
1578
|
-
if (ie)
|
|
1579
|
-
return yn(e);
|
|
1580
|
-
};
|
|
1581
|
-
function ga(e) {
|
|
1582
|
-
const { offset: t, gpuAcceleration: n, fallbackPlacements: o } = e;
|
|
1583
|
-
return [
|
|
1584
|
-
{
|
|
1585
|
-
name: "offset",
|
|
1586
|
-
options: {
|
|
1587
|
-
offset: [0, t ?? 12]
|
|
1588
|
-
}
|
|
1589
|
-
},
|
|
1590
|
-
{
|
|
1591
|
-
name: "preventOverflow",
|
|
1592
|
-
options: {
|
|
1593
|
-
padding: {
|
|
1594
|
-
top: 0,
|
|
1595
|
-
bottom: 0,
|
|
1596
|
-
left: 0,
|
|
1597
|
-
right: 0
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
},
|
|
1601
|
-
{
|
|
1602
|
-
name: "flip",
|
|
1603
|
-
options: {
|
|
1604
|
-
padding: 5,
|
|
1605
|
-
fallbackPlacements: o
|
|
1606
|
-
}
|
|
1607
|
-
},
|
|
1608
|
-
{
|
|
1609
|
-
name: "computeStyles",
|
|
1610
|
-
options: {
|
|
1611
|
-
gpuAcceleration: n
|
|
1612
|
-
}
|
|
1613
|
-
}
|
|
1614
|
-
];
|
|
1615
|
-
}
|
|
1616
|
-
function ya(e, t) {
|
|
1617
|
-
t && (e.modifiers = [...e.modifiers, ...t ?? []]);
|
|
1618
|
-
}
|
|
1619
|
-
const ha = 0, ba = (e) => {
|
|
1620
|
-
const { popperInstanceRef: t, contentRef: n, triggerRef: o, role: r } = Y(
|
|
1621
|
-
Pt,
|
|
1622
|
-
void 0
|
|
1623
|
-
), a = B(), u = x(() => e.arrowOffset), i = x(() => ({
|
|
1624
|
-
name: "eventListeners",
|
|
1625
|
-
enabled: !!e.visible
|
|
1626
|
-
})), s = x(() => {
|
|
1627
|
-
var h;
|
|
1628
|
-
const E = v(a), O = (h = v(u)) != null ? h : ha;
|
|
1629
|
-
return {
|
|
1630
|
-
name: "arrow",
|
|
1631
|
-
enabled: !uo(E),
|
|
1632
|
-
options: {
|
|
1633
|
-
element: E,
|
|
1634
|
-
padding: O
|
|
1635
|
-
}
|
|
1636
|
-
};
|
|
1637
|
-
}), l = x(() => ({
|
|
1638
|
-
onFirstUpdate: () => {
|
|
1639
|
-
c();
|
|
1640
|
-
},
|
|
1641
|
-
...va(e, [
|
|
1642
|
-
v(s),
|
|
1643
|
-
v(i)
|
|
1644
|
-
])
|
|
1645
|
-
})), f = x(
|
|
1646
|
-
() => ma(e.referenceEl) || v(o)
|
|
1647
|
-
), { attributes: p, state: m, styles: y, update: c, forceUpdate: d, instanceRef: b } = Or(f, n, l);
|
|
1648
|
-
return H(b, (h) => t.value = h, {
|
|
1649
|
-
flush: "sync"
|
|
1650
|
-
}), me(() => {
|
|
1651
|
-
H(
|
|
1652
|
-
() => {
|
|
1653
|
-
var h, E;
|
|
1654
|
-
return (E = (h = v(f)) == null ? void 0 : h.getBoundingClientRect) == null ? void 0 : E.call(h);
|
|
1655
|
-
},
|
|
1656
|
-
() => {
|
|
1657
|
-
c();
|
|
1658
|
-
}
|
|
1659
|
-
);
|
|
1660
|
-
}), _(() => {
|
|
1661
|
-
t.value = void 0;
|
|
1662
|
-
}), {
|
|
1663
|
-
attributes: p,
|
|
1664
|
-
arrowRef: a,
|
|
1665
|
-
contentRef: n,
|
|
1666
|
-
instanceRef: b,
|
|
1667
|
-
state: m,
|
|
1668
|
-
styles: y,
|
|
1669
|
-
role: r,
|
|
1670
|
-
forceUpdate: d,
|
|
1671
|
-
update: c
|
|
1672
|
-
};
|
|
1673
|
-
}, Ea = (e, {
|
|
1674
|
-
attributes: t,
|
|
1675
|
-
styles: n,
|
|
1676
|
-
role: o
|
|
1677
|
-
}) => {
|
|
1678
|
-
const { nextZIndex: r } = kr(), a = Ce("popper"), u = x(() => v(t).popper), i = B(
|
|
1679
|
-
Je(e.zIndex) ? e.zIndex : r()
|
|
1680
|
-
), s = x(() => [
|
|
1681
|
-
a.b(),
|
|
1682
|
-
a.is("pure", e.pure),
|
|
1683
|
-
a.is(e.effect),
|
|
1684
|
-
e.popperClass
|
|
1685
|
-
]), l = x(() => [
|
|
1686
|
-
{ zIndex: v(i) },
|
|
1687
|
-
v(n).popper,
|
|
1688
|
-
e.popperStyle || {}
|
|
1689
|
-
]), f = x(
|
|
1690
|
-
() => o.value === "dialog" ? "false" : void 0
|
|
1691
|
-
), p = x(
|
|
1692
|
-
() => v(n).arrow || {}
|
|
1693
|
-
);
|
|
1694
|
-
return {
|
|
1695
|
-
ariaModal: f,
|
|
1696
|
-
arrowStyle: p,
|
|
1697
|
-
contentAttrs: u,
|
|
1698
|
-
contentClass: s,
|
|
1699
|
-
contentStyle: l,
|
|
1700
|
-
contentZIndex: i,
|
|
1701
|
-
updateZIndex: () => {
|
|
1702
|
-
i.value = Je(e.zIndex) ? e.zIndex : r();
|
|
1703
|
-
}
|
|
1704
|
-
};
|
|
1705
|
-
};
|
|
1706
|
-
var wa = /* @__PURE__ */ te({
|
|
1707
|
-
name: "ElPopperContent",
|
|
1708
|
-
__name: "content",
|
|
1709
|
-
props: Bn,
|
|
1710
|
-
emits: Ur,
|
|
1711
|
-
setup(e, { expose: t, emit: n }) {
|
|
1712
|
-
const o = n, r = e, {
|
|
1713
|
-
focusStartRef: a,
|
|
1714
|
-
trapped: u,
|
|
1715
|
-
onFocusAfterReleased: i,
|
|
1716
|
-
onFocusAfterTrapped: s,
|
|
1717
|
-
onFocusInTrap: l,
|
|
1718
|
-
onFocusoutPrevented: f,
|
|
1719
|
-
onReleaseRequested: p
|
|
1720
|
-
} = pa(r, o), { attributes: m, arrowRef: y, contentRef: c, styles: d, instanceRef: b, role: h, update: E } = ba(r), {
|
|
1721
|
-
ariaModal: O,
|
|
1722
|
-
arrowStyle: g,
|
|
1723
|
-
contentAttrs: w,
|
|
1724
|
-
contentClass: P,
|
|
1725
|
-
contentStyle: T,
|
|
1726
|
-
updateZIndex: C
|
|
1727
|
-
} = Ea(r, {
|
|
1728
|
-
styles: d,
|
|
1729
|
-
attributes: m,
|
|
1730
|
-
role: h
|
|
1731
|
-
}), F = Y($t, void 0);
|
|
1732
|
-
Ee(Hn, {
|
|
1733
|
-
arrowStyle: g,
|
|
1734
|
-
arrowRef: y
|
|
1735
|
-
}), F && Ee($t, {
|
|
1736
|
-
...F,
|
|
1737
|
-
addInputId: ut,
|
|
1738
|
-
removeInputId: ut
|
|
1739
|
-
});
|
|
1740
|
-
let R;
|
|
1741
|
-
const k = (S = !0) => {
|
|
1742
|
-
E(), S && C();
|
|
1743
|
-
}, I = () => {
|
|
1744
|
-
k(!1), r.visible && r.focusOnShow ? u.value = !0 : r.visible === !1 && (u.value = !1);
|
|
1745
|
-
};
|
|
1746
|
-
return me(() => {
|
|
1747
|
-
H(
|
|
1748
|
-
() => r.triggerTargetEl,
|
|
1749
|
-
(S, V) => {
|
|
1750
|
-
R == null || R(), R = void 0;
|
|
1751
|
-
const j = v(S || c.value), D = v(V || c.value);
|
|
1752
|
-
be(j) && (R = H(
|
|
1753
|
-
[h, () => r.ariaLabel, O, () => r.id],
|
|
1754
|
-
(M) => {
|
|
1755
|
-
["role", "aria-label", "aria-modal", "id"].forEach((A, N) => {
|
|
1756
|
-
pt(M[N]) ? j.removeAttribute(A) : j.setAttribute(A, M[N]);
|
|
1757
|
-
});
|
|
1758
|
-
},
|
|
1759
|
-
{ immediate: !0 }
|
|
1760
|
-
)), D !== j && be(D) && ["role", "aria-label", "aria-modal", "id"].forEach((M) => {
|
|
1761
|
-
D.removeAttribute(M);
|
|
1762
|
-
});
|
|
1763
|
-
},
|
|
1764
|
-
{ immediate: !0 }
|
|
1765
|
-
), H(() => r.visible, I, { immediate: !0 });
|
|
1766
|
-
}), _(() => {
|
|
1767
|
-
R == null || R(), R = void 0, c.value = void 0;
|
|
1768
|
-
}), t({
|
|
1769
|
-
/**
|
|
1770
|
-
* @description popper content element
|
|
1771
|
-
*/
|
|
1772
|
-
popperContentRef: c,
|
|
1773
|
-
/**
|
|
1774
|
-
* @description popperjs instance
|
|
1775
|
-
*/
|
|
1776
|
-
popperInstanceRef: b,
|
|
1777
|
-
/**
|
|
1778
|
-
* @description method for updating popper
|
|
1779
|
-
*/
|
|
1780
|
-
updatePopper: k,
|
|
1781
|
-
/**
|
|
1782
|
-
* @description content style
|
|
1783
|
-
*/
|
|
1784
|
-
contentStyle: T
|
|
1785
|
-
}), (S, V) => (Z(), _e(
|
|
1786
|
-
"div",
|
|
1787
|
-
dt({
|
|
1788
|
-
ref_key: "contentRef",
|
|
1789
|
-
ref: c
|
|
1790
|
-
}, v(w), {
|
|
1791
|
-
style: v(T),
|
|
1792
|
-
class: v(P),
|
|
1793
|
-
tabindex: "-1",
|
|
1794
|
-
onMouseenter: V[0] || (V[0] = (j) => S.$emit("mouseenter", j)),
|
|
1795
|
-
onMouseleave: V[1] || (V[1] = (j) => S.$emit("mouseleave", j))
|
|
1796
|
-
}),
|
|
1797
|
-
[
|
|
1798
|
-
ke(v(da), {
|
|
1799
|
-
loop: e.loop,
|
|
1800
|
-
trapped: v(u),
|
|
1801
|
-
"trap-on-focus-in": !0,
|
|
1802
|
-
"focus-trap-el": v(c),
|
|
1803
|
-
"focus-start-el": v(a),
|
|
1804
|
-
onFocusAfterTrapped: v(s),
|
|
1805
|
-
onFocusAfterReleased: v(i),
|
|
1806
|
-
onFocusin: v(l),
|
|
1807
|
-
onFocusoutPrevented: v(f),
|
|
1808
|
-
onReleaseRequested: v(p)
|
|
1809
|
-
}, {
|
|
1810
|
-
default: re(() => [
|
|
1811
|
-
X(S.$slots, "default")
|
|
1812
|
-
]),
|
|
1813
|
-
_: 3
|
|
1814
|
-
/* FORWARDED */
|
|
1815
|
-
}, 8, ["loop", "trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
|
|
1816
|
-
],
|
|
1817
|
-
16
|
|
1818
|
-
/* FULL_PROPS */
|
|
1819
|
-
));
|
|
1820
|
-
}
|
|
1821
|
-
});
|
|
1822
|
-
const Ta = vt(_r), Ft = /* @__PURE__ */ Symbol("elTooltip"), ft = (e, t) => Me(e) ? e.includes(t) : e === t, ye = (e, t, n) => (o) => {
|
|
1823
|
-
ft(v(e), t) && n(o);
|
|
1824
|
-
};
|
|
1825
|
-
var Oa = /* @__PURE__ */ te({
|
|
1826
|
-
name: "ElTooltipTrigger",
|
|
1827
|
-
__name: "trigger",
|
|
1828
|
-
props: Mn,
|
|
1829
|
-
setup(e, { expose: t }) {
|
|
1830
|
-
const n = e, o = Ce("tooltip"), { controlled: r, id: a, open: u, onOpen: i, onClose: s, onToggle: l } = Y(
|
|
1831
|
-
Ft,
|
|
1832
|
-
void 0
|
|
1833
|
-
), f = B(null), p = () => {
|
|
1834
|
-
if (v(r) || n.disabled)
|
|
1835
|
-
return !0;
|
|
1836
|
-
}, m = Se(n, "trigger"), y = oe(
|
|
1837
|
-
p,
|
|
1838
|
-
ye(m, "hover", (g) => {
|
|
1839
|
-
i(g), n.focusOnTarget && g.target && it(() => {
|
|
1840
|
-
gt(g.target, { preventScroll: !0 });
|
|
1841
|
-
});
|
|
1842
|
-
})
|
|
1843
|
-
), c = oe(
|
|
1844
|
-
p,
|
|
1845
|
-
ye(m, "hover", s)
|
|
1846
|
-
), d = oe(
|
|
1847
|
-
p,
|
|
1848
|
-
ye(m, "click", (g) => {
|
|
1849
|
-
g.button === 0 && l(g);
|
|
1850
|
-
})
|
|
1851
|
-
), b = oe(
|
|
1852
|
-
p,
|
|
1853
|
-
ye(m, "focus", i)
|
|
1854
|
-
), h = oe(
|
|
1855
|
-
p,
|
|
1856
|
-
ye(m, "focus", s)
|
|
1857
|
-
), E = oe(
|
|
1858
|
-
p,
|
|
1859
|
-
ye(m, "contextmenu", (g) => {
|
|
1860
|
-
g.preventDefault(), l(g);
|
|
1861
|
-
})
|
|
1862
|
-
), O = oe(
|
|
1863
|
-
p,
|
|
1864
|
-
(g) => {
|
|
1865
|
-
const w = mt(g);
|
|
1866
|
-
n.triggerKeys.includes(w) && (g.preventDefault(), l(g));
|
|
1867
|
-
}
|
|
1868
|
-
);
|
|
1869
|
-
return t({
|
|
1870
|
-
/**
|
|
1871
|
-
* @description trigger element
|
|
1872
|
-
*/
|
|
1873
|
-
triggerRef: f
|
|
1874
|
-
}), (g, w) => (Z(), pe(v(Qr), {
|
|
1875
|
-
id: v(a),
|
|
1876
|
-
"virtual-ref": e.virtualRef,
|
|
1877
|
-
open: v(u),
|
|
1878
|
-
"virtual-triggering": e.virtualTriggering,
|
|
1879
|
-
class: dn(v(o).e("trigger")),
|
|
1880
|
-
onBlur: v(h),
|
|
1881
|
-
onClick: v(d),
|
|
1882
|
-
onContextmenu: v(E),
|
|
1883
|
-
onFocus: v(b),
|
|
1884
|
-
onMouseenter: v(y),
|
|
1885
|
-
onMouseleave: v(c),
|
|
1886
|
-
onKeydown: v(O)
|
|
1887
|
-
}, {
|
|
1888
|
-
default: re(() => [
|
|
1889
|
-
X(g.$slots, "default")
|
|
1890
|
-
]),
|
|
1891
|
-
_: 3
|
|
1892
|
-
/* FORWARDED */
|
|
1893
|
-
}, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]));
|
|
1894
|
-
}
|
|
1895
|
-
}), xa = /* @__PURE__ */ te({
|
|
1896
|
-
__name: "teleport",
|
|
1897
|
-
props: kn,
|
|
1898
|
-
setup(e) {
|
|
1899
|
-
return (t, n) => t.disabled ? X(t.$slots, "default", { key: 0 }) : (Z(), pe(to, {
|
|
1900
|
-
key: 1,
|
|
1901
|
-
to: t.to
|
|
1902
|
-
}, [
|
|
1903
|
-
X(t.$slots, "default")
|
|
1904
|
-
], 8, ["to"]));
|
|
1905
|
-
}
|
|
1906
|
-
});
|
|
1907
|
-
const Ca = vt(xa);
|
|
1908
|
-
var Pa = /* @__PURE__ */ te({
|
|
1909
|
-
name: "ElTooltipContent",
|
|
1910
|
-
inheritAttrs: !1,
|
|
1911
|
-
__name: "content",
|
|
1912
|
-
props: Nn,
|
|
1913
|
-
setup(e, { expose: t }) {
|
|
1914
|
-
const n = e, { selector: o } = Sn(), r = Ce("tooltip"), a = B(), u = vo(() => {
|
|
1915
|
-
var A;
|
|
1916
|
-
return (A = a.value) == null ? void 0 : A.popperContentRef;
|
|
1917
|
-
});
|
|
1918
|
-
let i;
|
|
1919
|
-
const {
|
|
1920
|
-
controlled: s,
|
|
1921
|
-
id: l,
|
|
1922
|
-
open: f,
|
|
1923
|
-
trigger: p,
|
|
1924
|
-
onClose: m,
|
|
1925
|
-
onOpen: y,
|
|
1926
|
-
onShow: c,
|
|
1927
|
-
onHide: d,
|
|
1928
|
-
onBeforeShow: b,
|
|
1929
|
-
onBeforeHide: h
|
|
1930
|
-
} = Y(Ft, void 0), E = x(() => n.transition || `${r.namespace.value}-fade-in-linear`), O = x(() => process.env.NODE_ENV === "test" && !process.env.RUN_TEST_WITH_PERSISTENT ? !0 : n.persistent);
|
|
1931
|
-
_(() => {
|
|
1932
|
-
i == null || i();
|
|
1933
|
-
});
|
|
1934
|
-
const g = x(() => v(O) ? !0 : v(f)), w = x(() => n.disabled ? !1 : v(f)), P = x(() => n.appendTo || o.value), T = x(() => {
|
|
1935
|
-
var A;
|
|
1936
|
-
return (A = n.style) != null ? A : {};
|
|
1937
|
-
}), C = B(!0), F = () => {
|
|
1938
|
-
d(), M() && gt(document.body, { preventScroll: !0 }), C.value = !0;
|
|
1939
|
-
}, R = () => {
|
|
1940
|
-
if (v(s)) return !0;
|
|
1941
|
-
}, k = oe(R, () => {
|
|
1942
|
-
n.enterable && ft(v(p), "hover") && y();
|
|
1943
|
-
}), I = oe(R, () => {
|
|
1944
|
-
ft(v(p), "hover") && m();
|
|
1945
|
-
}), S = () => {
|
|
1946
|
-
var A, N;
|
|
1947
|
-
(N = (A = a.value) == null ? void 0 : A.updatePopper) == null || N.call(A), b == null || b();
|
|
1948
|
-
}, V = () => {
|
|
1949
|
-
h == null || h();
|
|
1950
|
-
}, j = () => {
|
|
1951
|
-
c();
|
|
1952
|
-
}, D = () => {
|
|
1953
|
-
n.virtualTriggering || m();
|
|
1954
|
-
}, M = (A) => {
|
|
1955
|
-
var N;
|
|
1956
|
-
const J = (N = a.value) == null ? void 0 : N.popperContentRef, Pe = (A == null ? void 0 : A.relatedTarget) || document.activeElement;
|
|
1957
|
-
return J == null ? void 0 : J.contains(Pe);
|
|
1958
|
-
};
|
|
1959
|
-
return H(
|
|
1960
|
-
() => v(f),
|
|
1961
|
-
(A) => {
|
|
1962
|
-
A ? (C.value = !1, i = mo(
|
|
1963
|
-
u,
|
|
1964
|
-
() => {
|
|
1965
|
-
if (v(s)) return;
|
|
1966
|
-
Hr(v(p)).every((J) => J !== "hover" && J !== "focus") && m();
|
|
1967
|
-
},
|
|
1968
|
-
{ detectIframe: !0 }
|
|
1969
|
-
)) : i == null || i();
|
|
1970
|
-
},
|
|
1971
|
-
{
|
|
1972
|
-
flush: "post"
|
|
1973
|
-
}
|
|
1974
|
-
), H(
|
|
1975
|
-
() => n.content,
|
|
1976
|
-
() => {
|
|
1977
|
-
var A, N;
|
|
1978
|
-
(N = (A = a.value) == null ? void 0 : A.updatePopper) == null || N.call(A);
|
|
1979
|
-
}
|
|
1980
|
-
), t({
|
|
1981
|
-
/**
|
|
1982
|
-
* @description el-popper-content component instance
|
|
1983
|
-
*/
|
|
1984
|
-
contentRef: a,
|
|
1985
|
-
/**
|
|
1986
|
-
* @description validate current focus event is trigger inside el-popper-content
|
|
1987
|
-
*/
|
|
1988
|
-
isFocusInsideContent: M
|
|
1989
|
-
}), (A, N) => (Z(), pe(v(Ca), {
|
|
1990
|
-
disabled: !e.teleported,
|
|
1991
|
-
to: P.value
|
|
1992
|
-
}, {
|
|
1993
|
-
default: re(() => [
|
|
1994
|
-
g.value || !C.value ? (Z(), pe(no, {
|
|
1995
|
-
key: 0,
|
|
1996
|
-
name: E.value,
|
|
1997
|
-
appear: !O.value,
|
|
1998
|
-
onAfterLeave: F,
|
|
1999
|
-
onBeforeEnter: S,
|
|
2000
|
-
onAfterEnter: j,
|
|
2001
|
-
onBeforeLeave: V,
|
|
2002
|
-
persisted: ""
|
|
2003
|
-
}, {
|
|
2004
|
-
default: re(() => [
|
|
2005
|
-
pn(ke(v(wa), dt({
|
|
2006
|
-
id: v(l),
|
|
2007
|
-
ref_key: "contentRef",
|
|
2008
|
-
ref: a
|
|
2009
|
-
}, A.$attrs, {
|
|
2010
|
-
"aria-label": e.ariaLabel,
|
|
2011
|
-
"aria-hidden": C.value,
|
|
2012
|
-
"boundaries-padding": e.boundariesPadding,
|
|
2013
|
-
"fallback-placements": e.fallbackPlacements,
|
|
2014
|
-
"gpu-acceleration": e.gpuAcceleration,
|
|
2015
|
-
offset: e.offset,
|
|
2016
|
-
placement: e.placement,
|
|
2017
|
-
"popper-options": e.popperOptions,
|
|
2018
|
-
"arrow-offset": e.arrowOffset,
|
|
2019
|
-
strategy: e.strategy,
|
|
2020
|
-
effect: e.effect,
|
|
2021
|
-
enterable: e.enterable,
|
|
2022
|
-
pure: e.pure,
|
|
2023
|
-
"popper-class": e.popperClass,
|
|
2024
|
-
"popper-style": [e.popperStyle, T.value],
|
|
2025
|
-
"reference-el": e.referenceEl,
|
|
2026
|
-
"trigger-target-el": e.triggerTargetEl,
|
|
2027
|
-
visible: w.value,
|
|
2028
|
-
"z-index": e.zIndex,
|
|
2029
|
-
loop: e.loop,
|
|
2030
|
-
onMouseenter: v(k),
|
|
2031
|
-
onMouseleave: v(I),
|
|
2032
|
-
onBlur: D,
|
|
2033
|
-
onClose: v(m)
|
|
2034
|
-
}), {
|
|
2035
|
-
default: re(() => [
|
|
2036
|
-
X(A.$slots, "default")
|
|
2037
|
-
]),
|
|
2038
|
-
_: 3
|
|
2039
|
-
/* FORWARDED */
|
|
2040
|
-
}, 16, ["id", "aria-label", "aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "arrow-offset", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "trigger-target-el", "visible", "z-index", "loop", "onMouseenter", "onMouseleave", "onClose"]), [
|
|
2041
|
-
[oo, w.value]
|
|
2042
|
-
])
|
|
2043
|
-
]),
|
|
2044
|
-
_: 3
|
|
2045
|
-
/* FORWARDED */
|
|
2046
|
-
}, 8, ["name", "appear"])) : Ge("v-if", !0)
|
|
2047
|
-
]),
|
|
2048
|
-
_: 3
|
|
2049
|
-
/* FORWARDED */
|
|
2050
|
-
}, 8, ["disabled", "to"]));
|
|
2051
|
-
}
|
|
2052
|
-
});
|
|
2053
|
-
const Ra = ["innerHTML"], Aa = { key: 1 };
|
|
2054
|
-
var Fa = /* @__PURE__ */ te({
|
|
2055
|
-
name: "ElTooltip",
|
|
2056
|
-
__name: "tooltip",
|
|
2057
|
-
props: Zr,
|
|
2058
|
-
emits: Yr,
|
|
2059
|
-
setup(e, { expose: t, emit: n }) {
|
|
2060
|
-
const o = e, r = n;
|
|
2061
|
-
Rr();
|
|
2062
|
-
const a = Ce("tooltip"), u = yo(), i = B(), s = B(), l = () => {
|
|
2063
|
-
var g;
|
|
2064
|
-
const w = v(i);
|
|
2065
|
-
w && ((g = w.popperInstanceRef) == null || g.update());
|
|
2066
|
-
}, f = B(!1), p = B(), { show: m, hide: y, hasUpdateHandler: c } = qr({
|
|
2067
|
-
indicator: f,
|
|
2068
|
-
toggleReason: p
|
|
2069
|
-
}), { onOpen: d, onClose: b } = Fr({
|
|
2070
|
-
showAfter: Se(o, "showAfter"),
|
|
2071
|
-
hideAfter: Se(o, "hideAfter"),
|
|
2072
|
-
autoClose: Se(o, "autoClose"),
|
|
2073
|
-
open: m,
|
|
2074
|
-
close: y
|
|
2075
|
-
}), h = x(
|
|
2076
|
-
() => mn(o.visible) && !c.value
|
|
2077
|
-
), E = x(() => [a.b(), o.popperClass]);
|
|
2078
|
-
Ee(Ft, {
|
|
2079
|
-
controlled: h,
|
|
2080
|
-
id: u,
|
|
2081
|
-
open: ro(f),
|
|
2082
|
-
trigger: Se(o, "trigger"),
|
|
2083
|
-
onOpen: d,
|
|
2084
|
-
onClose: b,
|
|
2085
|
-
onToggle: (g) => {
|
|
2086
|
-
v(f) ? b(g) : d(g);
|
|
2087
|
-
},
|
|
2088
|
-
onShow: () => {
|
|
2089
|
-
r("show", p.value);
|
|
2090
|
-
},
|
|
2091
|
-
onHide: () => {
|
|
2092
|
-
r("hide", p.value);
|
|
2093
|
-
},
|
|
2094
|
-
onBeforeShow: () => {
|
|
2095
|
-
r("before-show", p.value);
|
|
2096
|
-
},
|
|
2097
|
-
onBeforeHide: () => {
|
|
2098
|
-
r("before-hide", p.value);
|
|
2099
|
-
},
|
|
2100
|
-
updatePopper: l
|
|
2101
|
-
}), H(
|
|
2102
|
-
() => o.disabled,
|
|
2103
|
-
(g) => {
|
|
2104
|
-
g && f.value && (f.value = !1);
|
|
2105
|
-
}
|
|
2106
|
-
);
|
|
2107
|
-
const O = (g) => {
|
|
2108
|
-
var w;
|
|
2109
|
-
return (w = s.value) == null ? void 0 : w.isFocusInsideContent(g);
|
|
2110
|
-
};
|
|
2111
|
-
return ao(() => f.value && y()), _(() => {
|
|
2112
|
-
p.value = void 0;
|
|
2113
|
-
}), t({
|
|
2114
|
-
/**
|
|
2115
|
-
* @description el-popper component instance
|
|
2116
|
-
*/
|
|
2117
|
-
popperRef: i,
|
|
2118
|
-
/**
|
|
2119
|
-
* @description el-tooltip-content component instance
|
|
2120
|
-
*/
|
|
2121
|
-
contentRef: s,
|
|
2122
|
-
/**
|
|
2123
|
-
* @description validate current focus event is trigger inside el-tooltip-content
|
|
2124
|
-
*/
|
|
2125
|
-
isFocusInsideContent: O,
|
|
2126
|
-
/**
|
|
2127
|
-
* @description update el-popper component instance
|
|
2128
|
-
*/
|
|
2129
|
-
updatePopper: l,
|
|
2130
|
-
/**
|
|
2131
|
-
* @description expose onOpen function to mange el-tooltip open state
|
|
2132
|
-
*/
|
|
2133
|
-
onOpen: d,
|
|
2134
|
-
/**
|
|
2135
|
-
* @description expose onClose function to manage el-tooltip close state
|
|
2136
|
-
*/
|
|
2137
|
-
onClose: b,
|
|
2138
|
-
/**
|
|
2139
|
-
* @description expose hide function
|
|
2140
|
-
*/
|
|
2141
|
-
hide: y
|
|
2142
|
-
}), (g, w) => (Z(), pe(v(Ta), {
|
|
2143
|
-
ref_key: "popperRef",
|
|
2144
|
-
ref: i,
|
|
2145
|
-
role: e.role
|
|
2146
|
-
}, {
|
|
2147
|
-
default: re(() => [
|
|
2148
|
-
ke(Oa, {
|
|
2149
|
-
disabled: e.disabled,
|
|
2150
|
-
trigger: e.trigger,
|
|
2151
|
-
"trigger-keys": e.triggerKeys,
|
|
2152
|
-
"virtual-ref": e.virtualRef,
|
|
2153
|
-
"virtual-triggering": e.virtualTriggering,
|
|
2154
|
-
"focus-on-target": e.focusOnTarget
|
|
2155
|
-
}, {
|
|
2156
|
-
default: re(() => [
|
|
2157
|
-
g.$slots.default ? X(g.$slots, "default", { key: 0 }) : Ge("v-if", !0)
|
|
2158
|
-
]),
|
|
2159
|
-
_: 3
|
|
2160
|
-
/* FORWARDED */
|
|
2161
|
-
}, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering", "focus-on-target"]),
|
|
2162
|
-
ke(Pa, {
|
|
2163
|
-
ref_key: "contentRef",
|
|
2164
|
-
ref: s,
|
|
2165
|
-
"aria-label": e.ariaLabel,
|
|
2166
|
-
"boundaries-padding": e.boundariesPadding,
|
|
2167
|
-
content: e.content,
|
|
2168
|
-
disabled: e.disabled,
|
|
2169
|
-
effect: e.effect,
|
|
2170
|
-
enterable: e.enterable,
|
|
2171
|
-
"fallback-placements": e.fallbackPlacements,
|
|
2172
|
-
"hide-after": e.hideAfter,
|
|
2173
|
-
"gpu-acceleration": e.gpuAcceleration,
|
|
2174
|
-
offset: e.offset,
|
|
2175
|
-
persistent: e.persistent,
|
|
2176
|
-
"popper-class": E.value,
|
|
2177
|
-
"popper-style": e.popperStyle,
|
|
2178
|
-
placement: e.placement,
|
|
2179
|
-
"popper-options": e.popperOptions,
|
|
2180
|
-
"arrow-offset": e.arrowOffset,
|
|
2181
|
-
pure: e.pure,
|
|
2182
|
-
"raw-content": e.rawContent,
|
|
2183
|
-
"reference-el": e.referenceEl,
|
|
2184
|
-
"trigger-target-el": e.triggerTargetEl,
|
|
2185
|
-
"show-after": e.showAfter,
|
|
2186
|
-
strategy: e.strategy,
|
|
2187
|
-
teleported: e.teleported,
|
|
2188
|
-
transition: e.transition,
|
|
2189
|
-
"virtual-triggering": e.virtualTriggering,
|
|
2190
|
-
"z-index": e.zIndex,
|
|
2191
|
-
"append-to": e.appendTo,
|
|
2192
|
-
loop: e.loop
|
|
2193
|
-
}, {
|
|
2194
|
-
default: re(() => [
|
|
2195
|
-
X(g.$slots, "content", {}, () => [
|
|
2196
|
-
e.rawContent ? (Z(), _e("span", {
|
|
2197
|
-
key: 0,
|
|
2198
|
-
innerHTML: e.content
|
|
2199
|
-
}, null, 8, Ra)) : (Z(), _e(
|
|
2200
|
-
"span",
|
|
2201
|
-
Aa,
|
|
2202
|
-
so(e.content),
|
|
2203
|
-
1
|
|
2204
|
-
/* TEXT */
|
|
2205
|
-
))
|
|
2206
|
-
]),
|
|
2207
|
-
e.showArrow ? (Z(), pe(v(Gr), { key: 0 })) : Ge("v-if", !0)
|
|
2208
|
-
]),
|
|
2209
|
-
_: 3
|
|
2210
|
-
/* FORWARDED */
|
|
2211
|
-
}, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "arrow-offset", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to", "loop"])
|
|
2212
|
-
]),
|
|
2213
|
-
_: 3
|
|
2214
|
-
/* FORWARDED */
|
|
2215
|
-
}, 8, ["role"]));
|
|
2216
|
-
}
|
|
2217
|
-
});
|
|
2218
|
-
const Ua = vt(Fa), Ka = 4, Wa = {
|
|
2219
|
-
vertical: {
|
|
2220
|
-
offset: "offsetHeight",
|
|
2221
|
-
scroll: "scrollTop",
|
|
2222
|
-
scrollSize: "scrollHeight",
|
|
2223
|
-
size: "height",
|
|
2224
|
-
key: "vertical",
|
|
2225
|
-
axis: "Y",
|
|
2226
|
-
client: "clientY",
|
|
2227
|
-
direction: "top"
|
|
2228
|
-
},
|
|
2229
|
-
horizontal: {
|
|
2230
|
-
offset: "offsetWidth",
|
|
2231
|
-
scroll: "scrollLeft",
|
|
2232
|
-
scrollSize: "scrollWidth",
|
|
2233
|
-
size: "width",
|
|
2234
|
-
key: "horizontal",
|
|
2235
|
-
axis: "X",
|
|
2236
|
-
client: "clientX",
|
|
2237
|
-
direction: "left"
|
|
2238
|
-
}
|
|
2239
|
-
}, za = ({
|
|
2240
|
-
move: e,
|
|
2241
|
-
size: t,
|
|
2242
|
-
bar: n
|
|
2243
|
-
}) => ({
|
|
2244
|
-
[n.size]: t,
|
|
2245
|
-
transform: `translate${n.axis}(${e}%)`
|
|
2246
|
-
});
|
|
2247
|
-
export {
|
|
2248
|
-
Wa as B,
|
|
2249
|
-
ht as E,
|
|
2250
|
-
Ka as G,
|
|
2251
|
-
ca as _,
|
|
2252
|
-
Nn as a,
|
|
2253
|
-
Va as b,
|
|
2254
|
-
Ua as c,
|
|
2255
|
-
Hr as d,
|
|
2256
|
-
$a as e,
|
|
2257
|
-
za as r,
|
|
2258
|
-
Ha as u
|
|
2259
|
-
};
|