3h1-ui 3.0.0-next.24 → 3.0.0-next.241
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/es/index.js +46649 -35051
- package/es/style.css +1933 -2633
- package/es/ui/config/index.d.ts +5 -0
- package/es/ui/index.d.ts +34 -0
- package/es/ui/src/AdvancedSearch/index.d.ts +3 -0
- package/es/ui/src/AdvancedSearch/src/data.d.ts +27 -0
- package/es/ui/src/Basic/index.d.ts +4 -0
- package/es/ui/src/Basic/src/BasicArrow.vue.d.ts +114 -0
- package/es/ui/src/Basic/src/BasicHelp.d.ts +117 -0
- package/es/ui/src/Basic/src/BasicTitle.vue.d.ts +115 -0
- package/es/ui/src/BasicContainer/index.d.ts +3 -0
- package/es/ui/src/BasicContainer/src/BasicContainer.vue.d.ts +212 -0
- package/es/ui/src/BasicContainer/src/props.d.ts +94 -0
- package/es/ui/src/BasicResizeWrapper/index.d.ts +2 -0
- package/es/ui/src/BasicResizeWrapper/src/BasicResizeWrapper.vue.d.ts +31 -0
- package/es/ui/src/BasicResizeWrapper/src/props.d.ts +11 -0
- package/es/ui/src/Button/index.d.ts +235 -0
- package/es/ui/src/Button/src/BasicButton.d.ts +105 -0
- package/es/ui/src/Button/src/PopConfirmButton.d.ts +14 -0
- package/es/ui/src/Button/src/props.d.ts +48 -0
- package/es/ui/src/ClickOutSide/index.d.ts +2 -0
- package/es/ui/src/ClickOutSide/src/ClickOutSide.vue.d.ts +8 -0
- package/es/ui/src/ColorPickerPopover/index.d.ts +2 -0
- package/es/ui/src/ColorPickerPopover/src/ColorPickerPopover.d.ts +38 -0
- package/es/ui/src/ColorPickerPopover/src/hooks/useColorManipulation.d.ts +3 -0
- package/es/ui/src/ColorPickerPopover/src/utils/makeStyle.d.ts +7 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/components/HexColorPicker.d.ts +23 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/components/RgbaColorPicker.d.ts +23 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/components/common/Alpha.d.ts +27 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/components/common/AlphaColorPicker.d.ts +26 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/components/common/ColorPicker.d.ts +26 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/components/common/Hue.d.ts +27 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/components/common/Interactive.d.ts +24 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/components/common/Pointer.d.ts +30 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/components/common/Saturation.d.ts +30 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/css/styles.css.d.ts +2 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/hooks/useEventCallback.d.ts +1 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/hooks/useStyleSheet.d.ts +5 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/index.d.ts +2 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/types.d.ts +44 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/utils/clamp.d.ts +1 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/utils/compare.d.ts +4 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/utils/convert.d.ts +26 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/utils/format.d.ts +1 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/utils/nonce.d.ts +11 -0
- package/es/ui/src/ColorPickerPopover/src/vue-colorful/utils/round.d.ts +1 -0
- package/es/ui/src/Container/index.d.ts +5 -0
- package/es/ui/src/Container/src/LazyContainer.vue.d.ts +121 -0
- package/es/ui/src/Container/src/ScrollContainer.vue.d.ts +9 -0
- package/es/ui/src/Container/src/collapse/CollapseContainer.vue.d.ts +525 -0
- package/es/ui/src/Container/src/collapse/CollapseHeader.vue.d.ts +42 -0
- package/es/ui/src/Container/src/typing.d.ts +15 -0
- package/es/ui/src/ContextMenu/index.d.ts +3 -0
- package/es/ui/src/ContextMenu/src/ContextMenu.d.ts +64 -0
- package/es/ui/src/ContextMenu/src/createContextMenu.d.ts +3 -0
- package/es/ui/src/ContextMenu/src/typing.d.ts +33 -0
- package/es/ui/src/ContextMenu/src/useContextMenu.d.ts +3 -0
- package/es/ui/src/CountDown/index.d.ts +3 -0
- package/es/ui/src/CountDown/src/CountButton.vue.d.ts +35 -0
- package/es/ui/src/CountDown/src/CountdownInput.vue.d.ts +41 -0
- package/es/ui/src/CountDown/src/useCountdown.d.ts +9 -0
- package/es/ui/src/CountTo/index.d.ts +2 -0
- package/es/ui/src/CountTo/src/CountTo.vue.d.ts +137 -0
- package/es/ui/src/Cropper/index.d.ts +4 -0
- package/es/ui/src/Cropper/src/CopperModal.vue.d.ts +40 -0
- package/es/ui/src/Cropper/src/Cropper.vue.d.ts +87 -0
- package/es/ui/src/Cropper/src/CropperAvatar.vue.d.ts +173 -0
- package/es/ui/src/Cropper/src/typing.d.ts +6 -0
- package/es/ui/src/Description/index.d.ts +6 -0
- package/es/ui/src/Description/src/Description.d.ts +98 -0
- package/es/ui/src/Description/src/DescriptionGroup.d.ts +14 -0
- package/es/ui/src/Description/src/ShyComponentMap.d.ts +6 -0
- package/es/ui/src/Description/src/components/formItem.d.ts +41 -0
- package/es/ui/src/Description/src/props.d.ts +60 -0
- package/es/ui/src/Description/src/typing.d.ts +38 -0
- package/es/ui/src/Description/src/useDescription.d.ts +2 -0
- package/es/ui/src/Descriptions/index.d.ts +249 -0
- package/es/ui/src/Descriptions/src/Descriptions.d.ts +11 -0
- package/es/ui/src/Descriptions/src/ShyDescriptions.d.ts +111 -0
- package/es/ui/src/Descriptions/src/props.d.ts +52 -0
- package/es/ui/src/Descriptions/src/typing.d.ts +31 -0
- package/es/ui/src/Descriptions/src/useShyDescriptions.d.ts +2 -0
- package/es/ui/src/Drawer/index.d.ts +4 -0
- package/es/ui/src/Drawer/src/BasicDrawer.vue.d.ts +170 -0
- package/es/ui/src/Drawer/src/components/DrawerFooter.vue.d.ts +95 -0
- package/es/ui/src/Drawer/src/components/DrawerHeader.vue.d.ts +30 -0
- package/es/ui/src/Drawer/src/props.d.ts +115 -0
- package/es/ui/src/Drawer/src/typing.d.ts +177 -0
- package/es/ui/src/Drawer/src/useDrawer.d.ts +6 -0
- package/es/ui/src/Dropdown/index.d.ts +3 -0
- package/es/ui/src/Dropdown/src/typing.d.ts +9 -0
- package/es/ui/src/Icon/data/icons.data.tabler.d.ts +2 -0
- package/es/ui/src/Icon/index.d.ts +5 -0
- package/es/ui/src/Icon/src/Icon.vue.d.ts +51 -0
- package/es/ui/src/Icon/src/SvgIcon.vue.d.ts +45 -0
- package/es/ui/src/Label/index.d.ts +2 -0
- package/es/ui/src/Label/src/BasicLabel.vue.d.ts +32 -0
- package/es/ui/src/Label/src/props.d.ts +14 -0
- package/es/ui/src/Loading/index.d.ts +4 -0
- package/es/ui/src/Loading/src/Loading.vue.d.ts +57 -0
- package/es/ui/src/Loading/src/createLoading.d.ts +13 -0
- package/es/ui/src/Loading/src/typing.d.ts +9 -0
- package/es/ui/src/Loading/src/useLoading.d.ts +11 -0
- package/es/ui/src/Modal/index.d.ts +710 -0
- package/es/ui/src/Modal/src/BasicModal.vue.d.ts +322 -0
- package/es/ui/src/Modal/src/components/BasicTitle.vue.d.ts +126 -0
- package/es/ui/src/Modal/src/components/Modal.d.ts +300 -0
- package/es/ui/src/Modal/src/components/ModalClose.vue.d.ts +39 -0
- package/es/ui/src/Modal/src/components/ModalFooter.vue.d.ts +304 -0
- package/es/ui/src/Modal/src/components/ModalHeader.vue.d.ts +19 -0
- package/es/ui/src/Modal/src/components/ModalWrapper.vue.d.ts +97 -0
- package/es/ui/src/Modal/src/components/ScrollContainer.vue.d.ts +2 -0
- package/es/ui/src/Modal/src/hooks/useAttrs.d.ts +9 -0
- package/es/ui/src/Modal/src/hooks/useContext.d.ts +10 -0
- package/es/ui/src/Modal/src/hooks/useI18n.d.ts +15 -0
- package/es/ui/src/Modal/src/hooks/useModal.d.ts +6 -0
- package/es/ui/src/Modal/src/hooks/useModalContext.d.ts +7 -0
- package/es/ui/src/Modal/src/hooks/useModalDrag.d.ts +7 -0
- package/es/ui/src/Modal/src/hooks/useModalFullScreen.d.ts +11 -0
- package/es/ui/src/Modal/src/hooks/useScrollTo.d.ts +10 -0
- package/es/ui/src/Modal/src/hooks/useTimeout.d.ts +10 -0
- package/es/ui/src/Modal/src/hooks/useWindowSizeFn.d.ts +7 -0
- package/es/ui/src/Modal/src/props.d.ts +171 -0
- package/es/ui/src/Modal/src/typing.d.ts +174 -0
- package/es/ui/src/Modal/src/utils/index.d.ts +5 -0
- package/es/ui/src/Modal/src/utils/is.d.ts +13 -0
- package/es/ui/src/Modal/src/utils/log.d.ts +2 -0
- package/es/ui/src/Modal/src/utils/tsxHelper.d.ts +13 -0
- package/es/ui/src/Page/index.d.ts +5 -0
- package/es/ui/src/Page/src/PageFooter.vue.d.ts +5 -0
- package/es/ui/src/Page/src/PageSecond.d.ts +63 -0
- package/es/ui/src/Page/src/PageWrapper.vue.d.ts +86 -0
- package/es/ui/src/Process/index.d.ts +2 -0
- package/es/ui/src/Process/src/Process.d.ts +80 -0
- package/es/ui/src/Scrollbar/index.d.ts +6 -0
- package/es/ui/src/Scrollbar/src/Scrollbar.vue.d.ts +72 -0
- package/es/ui/src/Scrollbar/src/bar.d.ts +14 -0
- package/es/ui/src/Scrollbar/src/types.d.ts +18 -0
- package/es/ui/src/Scrollbar/src/util.d.ts +8 -0
- package/es/ui/src/ShyAdvancedSearch/index.d.ts +3 -0
- package/es/ui/src/ShyAdvancedSearch/src/ShyAdvancedSearch.d.ts +13 -0
- package/es/ui/src/ShyAdvancedSearch/src/ShyGlobalSearch.d.ts +13 -0
- package/es/ui/src/ShyAdvancedSearch/src/constant.d.ts +24 -0
- package/es/ui/src/ShyAdvancedSearch/src/hooks/useAdvancedSearch.d.ts +4 -0
- package/es/ui/src/ShyAdvancedSearch/src/types/index.d.ts +11 -0
- package/es/ui/src/ShyContainer/index.d.ts +3 -0
- package/es/ui/src/ShyContainer/src/ShyContainer.d.ts +217 -0
- package/es/ui/src/ShyContainer/src/props.d.ts +98 -0
- package/es/ui/src/ShyForm/index.d.ts +21 -0
- package/es/ui/src/ShyForm/src/ShyComponentMap.d.ts +6 -0
- package/es/ui/src/ShyForm/src/ShyForm.d.ts +1046 -0
- package/es/ui/src/ShyForm/src/components/ApiCascader.vue.d.ts +141 -0
- package/es/ui/src/ShyForm/src/components/ApiModalSelect/DeptTree.vue.d.ts +134 -0
- package/es/ui/src/ShyForm/src/components/ApiModalSelect/Modal.vue.d.ts +2080 -0
- package/es/ui/src/ShyForm/src/components/ApiModalSelect/Table.vue.d.ts +1213 -0
- package/es/ui/src/ShyForm/src/components/ApiSelect.vue.d.ts +102 -0
- package/es/ui/src/ShyForm/src/components/ApiTransfer.vue.d.ts +144 -0
- package/es/ui/src/ShyForm/src/components/ApiTree.vue.d.ts +50 -0
- package/es/ui/src/ShyForm/src/components/ApiTreeSelect.vue.d.ts +43 -0
- package/es/ui/src/ShyForm/src/components/FormAction.vue.d.ts +111 -0
- package/es/ui/src/ShyForm/src/components/FormItem.d.ts +70 -0
- package/es/ui/src/ShyForm/src/components/FormWrapper.vue.d.ts +18 -0
- package/es/ui/src/ShyForm/src/components/Group.d.ts +125 -0
- package/es/ui/src/ShyForm/src/components/RadioButtonGroup.vue.d.ts +35 -0
- package/es/ui/src/ShyForm/src/components/Table.d.ts +271 -0
- package/es/ui/src/ShyForm/src/components/Tinymce.vue.d.ts +19 -0
- package/es/ui/src/ShyForm/src/helper.d.ts +14 -0
- package/es/ui/src/ShyForm/src/hooks/useAutoFocus.d.ts +10 -0
- package/es/ui/src/ShyForm/src/hooks/useComponentRegister.d.ts +3 -0
- package/es/ui/src/ShyForm/src/hooks/useFormContext.d.ts +10 -0
- package/es/ui/src/ShyForm/src/hooks/useFormEvents.d.ts +28 -0
- package/es/ui/src/ShyForm/src/hooks/useFormValues.d.ts +13 -0
- package/es/ui/src/ShyForm/src/hooks/useLabelWidth.d.ts +310 -0
- package/es/ui/src/ShyForm/src/hooks/useShyForm.d.ts +10 -0
- package/es/ui/src/ShyForm/src/props.d.ts +430 -0
- package/es/ui/src/ShyForm/src/types/form.d.ts +127 -0
- package/es/ui/src/ShyForm/src/types/formItem.d.ts +82 -0
- package/es/ui/src/ShyForm/src/types/hooks.d.ts +6 -0
- package/es/ui/src/ShyForm/src/types/index.d.ts +90 -0
- package/es/ui/src/ShyLayoutContainer/index.d.ts +2 -0
- package/es/ui/src/ShyLayoutContainer/src/ShyLayoutContainer.d.ts +87 -0
- package/es/ui/src/ShyLayoutContainer/src/props.d.ts +62 -0
- package/es/ui/src/ShyLayoutContainer/src/types.d.ts +2 -0
- package/es/ui/src/ShyTable/index.d.ts +10 -0
- package/es/ui/src/ShyTable/src/ShyTable.d.ts +1200 -0
- package/es/ui/src/ShyTable/src/componentMap.d.ts +6 -0
- package/es/ui/src/ShyTable/src/components/EditTableHeaderIcon.vue.d.ts +14 -0
- package/es/ui/src/ShyTable/src/components/HeaderCell.vue.d.ts +95 -0
- package/es/ui/src/ShyTable/src/components/ShyInfo.d.ts +24 -0
- package/es/ui/src/ShyTable/src/components/ShyTableAction.d.ts +109 -0
- package/es/ui/src/ShyTable/src/components/ShyTableFooter.d.ts +57 -0
- package/es/ui/src/ShyTable/src/components/ShyTableHeader.d.ts +63 -0
- package/es/ui/src/ShyTable/src/components/ShyTableSettings/ShyShowMore.d.ts +2 -0
- package/es/ui/src/ShyTable/src/components/ShyTableSettings/ShyShowSearch.d.ts +2 -0
- package/es/ui/src/ShyTable/src/components/ShyTableSettings/ShyTableAdvancedSearch.d.ts +5 -0
- package/es/ui/src/ShyTable/src/components/ShyTableSettings/ShyTableColumn.d.ts +5 -0
- package/es/ui/src/ShyTable/src/components/ShyTableSettings/ShyTableFullScreen.d.ts +2 -0
- package/es/ui/src/ShyTable/src/components/ShyTableSettings/ShyTableGlobalSearch.d.ts +5 -0
- package/es/ui/src/ShyTable/src/components/ShyTableSettings/ShyTableSize.d.ts +10 -0
- package/es/ui/src/ShyTable/src/components/ShyTableSettings/index.d.ts +7 -0
- package/es/ui/src/ShyTable/src/components/TableImg.vue.d.ts +93 -0
- package/es/ui/src/ShyTable/src/components/editable/CellComponent.d.ts +10 -0
- package/es/ui/src/ShyTable/src/components/editable/EditableCell.d.ts +80 -0
- package/es/ui/src/ShyTable/src/components/editable/helper.d.ts +5 -0
- package/es/ui/src/ShyTable/src/components/editable/index.d.ts +23 -0
- package/es/ui/src/ShyTable/src/const.d.ts +25 -0
- package/es/ui/src/ShyTable/src/hooks/useColumns.d.ts +14 -0
- package/es/ui/src/ShyTable/src/hooks/useCustomRow.d.ts +19 -0
- package/es/ui/src/ShyTable/src/hooks/useDataSource.d.ts +29 -0
- package/es/ui/src/ShyTable/src/hooks/useLoading.d.ts +6 -0
- package/es/ui/src/ShyTable/src/hooks/usePagination.d.ts +10 -0
- package/es/ui/src/ShyTable/src/hooks/useRowSelection.d.ts +12 -0
- package/es/ui/src/ShyTable/src/hooks/useScrollTo.d.ts +4 -0
- package/es/ui/src/ShyTable/src/hooks/useShyTable.d.ts +16 -0
- package/es/ui/src/ShyTable/src/hooks/useShyTableContext.d.ts +16 -0
- package/es/ui/src/ShyTable/src/hooks/useShyTableForm.d.ts +9 -0
- package/es/ui/src/ShyTable/src/hooks/useTableExpand.d.ts +14 -0
- package/es/ui/src/ShyTable/src/hooks/useTableHeader.d.ts +5 -0
- package/es/ui/src/ShyTable/src/hooks/useTableScroll.d.ts +11 -0
- package/es/ui/src/ShyTable/src/hooks/useTableStyle.d.ts +5 -0
- package/es/ui/src/ShyTable/src/props.d.ts +577 -0
- package/es/ui/src/ShyTable/src/types/pagination.d.ts +93 -0
- package/es/ui/src/ShyTable/src/types/table.d.ts +422 -0
- package/es/ui/src/ShyTable/src/types/tableAction.d.ts +26 -0
- package/es/ui/src/ShyTag/index.d.ts +3 -0
- package/es/ui/src/ShyTag/src/ShyTag.d.ts +100 -0
- package/es/ui/src/ShyTag/src/props.d.ts +47 -0
- package/es/ui/src/StrengthMeter/index.d.ts +2 -0
- package/es/ui/src/StrengthMeter/src/StrengthMeter.vue.d.ts +35 -0
- package/es/ui/src/TablePlus/TableColGroup.vue.d.ts +52 -0
- package/es/ui/src/TablePlus/TablePlus.vue.d.ts +1977 -0
- package/es/ui/src/TablePlus/componentMap.d.ts +6 -0
- package/es/ui/src/TablePlus/components/ButtonGroupEdit.vue.d.ts +105 -0
- package/es/ui/src/TablePlus/components/Icon/Sort.vue.d.ts +28 -0
- package/es/ui/src/TablePlus/components/editable/CellComponent.d.ts +10 -0
- package/es/ui/src/TablePlus/hooks/index.d.ts +2 -0
- package/es/ui/src/TablePlus/hooks/useColumns.d.ts +8 -0
- package/es/ui/src/TablePlus/hooks/usePagination.d.ts +9 -0
- package/es/ui/src/TablePlus/hooks/useSort.d.ts +4 -0
- package/es/ui/src/TablePlus/hooks/useTableData.d.ts +11 -0
- package/es/ui/src/TablePlus/hooks/useTablePlus.d.ts +1 -0
- package/es/ui/src/TablePlus/index.d.ts +3 -0
- package/es/ui/src/TablePlus/props.d.ts +6 -0
- package/es/ui/src/TablePlus/types/componentType.d.ts +1 -0
- package/es/ui/src/Transition/index.d.ts +368 -0
- package/es/ui/src/Transition/src/CollapseTransition.vue.d.ts +11 -0
- package/es/ui/src/Transition/src/CreateTransition.d.ts +47 -0
- package/es/ui/src/Transition/src/ExpandTransition.d.ts +23 -0
- package/es/ui/src/Tree/index.d.ts +12 -0
- package/es/ui/src/Tree/src/BasicTree.d.ts +97 -0
- package/es/ui/src/Tree/src/TreeIcon.d.ts +2 -0
- package/es/ui/src/Tree/src/hooks/useTree.d.ts +14 -0
- package/es/ui/src/Tree/src/types/tree.d.ts +123 -0
- package/es/ui/src/Tree/style/index.d.ts +0 -0
- package/es/ui/src/Upload/src/components/FileList.d.ts +254 -0
- package/es/ui/src/Upload/src/components/UploadPreviewModal.vue.d.ts +992 -0
- package/es/ui/src/Upload/src/components/data.d.ts +9 -0
- package/es/ui/src/Upload/src/helper.d.ts +7 -0
- package/es/ui/src/Upload/src/hooks/useUpload.d.ts +11 -0
- package/es/ui/src/Upload/src/props.d.ts +153 -0
- package/es/ui/src/Upload/src/types/typing.d.ts +45 -0
- package/es/ui/src/directives/clickOutside.d.ts +3 -0
- package/es/ui/src/directives/index.d.ts +1 -0
- package/es/ui/src/enums/sizeEnum.d.ts +11 -0
- package/es/ui/types/global.d.ts +102 -0
- package/es/ui/types/index.d.ts +36 -0
- package/lib/index.js +46623 -35025
- package/lib/style.css +1933 -2633
- package/lib/ui/config/index.d.ts +5 -0
- package/lib/ui/index.d.ts +34 -0
- package/lib/ui/src/AdvancedSearch/index.d.ts +3 -0
- package/lib/ui/src/AdvancedSearch/src/data.d.ts +27 -0
- package/lib/ui/src/Basic/index.d.ts +4 -0
- package/lib/ui/src/Basic/src/BasicArrow.vue.d.ts +114 -0
- package/lib/ui/src/Basic/src/BasicHelp.d.ts +117 -0
- package/lib/ui/src/Basic/src/BasicTitle.vue.d.ts +115 -0
- package/lib/ui/src/BasicContainer/index.d.ts +3 -0
- package/lib/ui/src/BasicContainer/src/BasicContainer.vue.d.ts +212 -0
- package/lib/ui/src/BasicContainer/src/props.d.ts +94 -0
- package/lib/ui/src/BasicResizeWrapper/index.d.ts +2 -0
- package/lib/ui/src/BasicResizeWrapper/src/BasicResizeWrapper.vue.d.ts +31 -0
- package/lib/ui/src/BasicResizeWrapper/src/props.d.ts +11 -0
- package/lib/ui/src/Button/index.d.ts +235 -0
- package/lib/ui/src/Button/src/BasicButton.d.ts +105 -0
- package/lib/ui/src/Button/src/PopConfirmButton.d.ts +14 -0
- package/lib/ui/src/Button/src/props.d.ts +48 -0
- package/lib/ui/src/ClickOutSide/index.d.ts +2 -0
- package/lib/ui/src/ClickOutSide/src/ClickOutSide.vue.d.ts +8 -0
- package/lib/ui/src/ColorPickerPopover/index.d.ts +2 -0
- package/lib/ui/src/ColorPickerPopover/src/ColorPickerPopover.d.ts +38 -0
- package/lib/ui/src/ColorPickerPopover/src/hooks/useColorManipulation.d.ts +3 -0
- package/lib/ui/src/ColorPickerPopover/src/utils/makeStyle.d.ts +7 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/components/HexColorPicker.d.ts +23 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/components/RgbaColorPicker.d.ts +23 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/components/common/Alpha.d.ts +27 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/components/common/AlphaColorPicker.d.ts +26 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/components/common/ColorPicker.d.ts +26 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/components/common/Hue.d.ts +27 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/components/common/Interactive.d.ts +24 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/components/common/Pointer.d.ts +30 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/components/common/Saturation.d.ts +30 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/css/styles.css.d.ts +2 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/hooks/useEventCallback.d.ts +1 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/hooks/useStyleSheet.d.ts +5 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/index.d.ts +2 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/types.d.ts +44 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/utils/clamp.d.ts +1 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/utils/compare.d.ts +4 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/utils/convert.d.ts +26 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/utils/format.d.ts +1 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/utils/nonce.d.ts +11 -0
- package/lib/ui/src/ColorPickerPopover/src/vue-colorful/utils/round.d.ts +1 -0
- package/lib/ui/src/Container/index.d.ts +5 -0
- package/lib/ui/src/Container/src/LazyContainer.vue.d.ts +121 -0
- package/lib/ui/src/Container/src/ScrollContainer.vue.d.ts +9 -0
- package/lib/ui/src/Container/src/collapse/CollapseContainer.vue.d.ts +525 -0
- package/lib/ui/src/Container/src/collapse/CollapseHeader.vue.d.ts +42 -0
- package/lib/ui/src/Container/src/typing.d.ts +15 -0
- package/lib/ui/src/ContextMenu/index.d.ts +3 -0
- package/lib/ui/src/ContextMenu/src/ContextMenu.d.ts +64 -0
- package/lib/ui/src/ContextMenu/src/createContextMenu.d.ts +3 -0
- package/lib/ui/src/ContextMenu/src/typing.d.ts +33 -0
- package/lib/ui/src/ContextMenu/src/useContextMenu.d.ts +3 -0
- package/lib/ui/src/CountDown/index.d.ts +3 -0
- package/lib/ui/src/CountDown/src/CountButton.vue.d.ts +35 -0
- package/lib/ui/src/CountDown/src/CountdownInput.vue.d.ts +41 -0
- package/lib/ui/src/CountDown/src/useCountdown.d.ts +9 -0
- package/lib/ui/src/CountTo/index.d.ts +2 -0
- package/lib/ui/src/CountTo/src/CountTo.vue.d.ts +137 -0
- package/lib/ui/src/Cropper/index.d.ts +4 -0
- package/lib/ui/src/Cropper/src/CopperModal.vue.d.ts +40 -0
- package/lib/ui/src/Cropper/src/Cropper.vue.d.ts +87 -0
- package/lib/ui/src/Cropper/src/CropperAvatar.vue.d.ts +173 -0
- package/lib/ui/src/Cropper/src/typing.d.ts +6 -0
- package/lib/ui/src/Description/index.d.ts +6 -0
- package/lib/ui/src/Description/src/Description.d.ts +98 -0
- package/lib/ui/src/Description/src/DescriptionGroup.d.ts +14 -0
- package/lib/ui/src/Description/src/ShyComponentMap.d.ts +6 -0
- package/lib/ui/src/Description/src/components/formItem.d.ts +41 -0
- package/lib/ui/src/Description/src/props.d.ts +60 -0
- package/lib/ui/src/Description/src/typing.d.ts +38 -0
- package/lib/ui/src/Description/src/useDescription.d.ts +2 -0
- package/lib/ui/src/Descriptions/index.d.ts +249 -0
- package/lib/ui/src/Descriptions/src/Descriptions.d.ts +11 -0
- package/lib/ui/src/Descriptions/src/ShyDescriptions.d.ts +111 -0
- package/lib/ui/src/Descriptions/src/props.d.ts +52 -0
- package/lib/ui/src/Descriptions/src/typing.d.ts +31 -0
- package/lib/ui/src/Descriptions/src/useShyDescriptions.d.ts +2 -0
- package/lib/ui/src/Drawer/index.d.ts +4 -0
- package/lib/ui/src/Drawer/src/BasicDrawer.vue.d.ts +170 -0
- package/lib/ui/src/Drawer/src/components/DrawerFooter.vue.d.ts +95 -0
- package/lib/ui/src/Drawer/src/components/DrawerHeader.vue.d.ts +30 -0
- package/lib/ui/src/Drawer/src/props.d.ts +115 -0
- package/lib/ui/src/Drawer/src/typing.d.ts +177 -0
- package/lib/ui/src/Drawer/src/useDrawer.d.ts +6 -0
- package/lib/ui/src/Dropdown/index.d.ts +3 -0
- package/lib/ui/src/Dropdown/src/typing.d.ts +9 -0
- package/lib/ui/src/Icon/data/icons.data.tabler.d.ts +2 -0
- package/lib/ui/src/Icon/index.d.ts +5 -0
- package/lib/ui/src/Icon/src/Icon.vue.d.ts +51 -0
- package/lib/ui/src/Icon/src/SvgIcon.vue.d.ts +45 -0
- package/lib/ui/src/Label/index.d.ts +2 -0
- package/lib/ui/src/Label/src/BasicLabel.vue.d.ts +32 -0
- package/lib/ui/src/Label/src/props.d.ts +14 -0
- package/lib/ui/src/Loading/index.d.ts +4 -0
- package/lib/ui/src/Loading/src/Loading.vue.d.ts +57 -0
- package/lib/ui/src/Loading/src/createLoading.d.ts +13 -0
- package/lib/ui/src/Loading/src/typing.d.ts +9 -0
- package/lib/ui/src/Loading/src/useLoading.d.ts +11 -0
- package/lib/ui/src/Modal/index.d.ts +710 -0
- package/lib/ui/src/Modal/src/BasicModal.vue.d.ts +322 -0
- package/lib/ui/src/Modal/src/components/BasicTitle.vue.d.ts +126 -0
- package/lib/ui/src/Modal/src/components/Modal.d.ts +300 -0
- package/lib/ui/src/Modal/src/components/ModalClose.vue.d.ts +39 -0
- package/lib/ui/src/Modal/src/components/ModalFooter.vue.d.ts +304 -0
- package/lib/ui/src/Modal/src/components/ModalHeader.vue.d.ts +19 -0
- package/lib/ui/src/Modal/src/components/ModalWrapper.vue.d.ts +97 -0
- package/lib/ui/src/Modal/src/components/ScrollContainer.vue.d.ts +2 -0
- package/lib/ui/src/Modal/src/hooks/useAttrs.d.ts +9 -0
- package/lib/ui/src/Modal/src/hooks/useContext.d.ts +10 -0
- package/lib/ui/src/Modal/src/hooks/useI18n.d.ts +15 -0
- package/lib/ui/src/Modal/src/hooks/useModal.d.ts +6 -0
- package/lib/ui/src/Modal/src/hooks/useModalContext.d.ts +7 -0
- package/lib/ui/src/Modal/src/hooks/useModalDrag.d.ts +7 -0
- package/lib/ui/src/Modal/src/hooks/useModalFullScreen.d.ts +11 -0
- package/lib/ui/src/Modal/src/hooks/useScrollTo.d.ts +10 -0
- package/lib/ui/src/Modal/src/hooks/useTimeout.d.ts +10 -0
- package/lib/ui/src/Modal/src/hooks/useWindowSizeFn.d.ts +7 -0
- package/lib/ui/src/Modal/src/props.d.ts +171 -0
- package/lib/ui/src/Modal/src/typing.d.ts +174 -0
- package/lib/ui/src/Modal/src/utils/index.d.ts +5 -0
- package/lib/ui/src/Modal/src/utils/is.d.ts +13 -0
- package/lib/ui/src/Modal/src/utils/log.d.ts +2 -0
- package/lib/ui/src/Modal/src/utils/tsxHelper.d.ts +13 -0
- package/lib/ui/src/Page/index.d.ts +5 -0
- package/lib/ui/src/Page/src/PageFooter.vue.d.ts +5 -0
- package/lib/ui/src/Page/src/PageSecond.d.ts +63 -0
- package/lib/ui/src/Page/src/PageWrapper.vue.d.ts +86 -0
- package/lib/ui/src/Process/index.d.ts +2 -0
- package/lib/ui/src/Process/src/Process.d.ts +80 -0
- package/lib/ui/src/Scrollbar/index.d.ts +6 -0
- package/lib/ui/src/Scrollbar/src/Scrollbar.vue.d.ts +72 -0
- package/lib/ui/src/Scrollbar/src/bar.d.ts +14 -0
- package/lib/ui/src/Scrollbar/src/types.d.ts +18 -0
- package/lib/ui/src/Scrollbar/src/util.d.ts +8 -0
- package/lib/ui/src/ShyAdvancedSearch/index.d.ts +3 -0
- package/lib/ui/src/ShyAdvancedSearch/src/ShyAdvancedSearch.d.ts +13 -0
- package/lib/ui/src/ShyAdvancedSearch/src/ShyGlobalSearch.d.ts +13 -0
- package/lib/ui/src/ShyAdvancedSearch/src/constant.d.ts +24 -0
- package/lib/ui/src/ShyAdvancedSearch/src/hooks/useAdvancedSearch.d.ts +4 -0
- package/lib/ui/src/ShyAdvancedSearch/src/types/index.d.ts +11 -0
- package/lib/ui/src/ShyContainer/index.d.ts +3 -0
- package/lib/ui/src/ShyContainer/src/ShyContainer.d.ts +217 -0
- package/lib/ui/src/ShyContainer/src/props.d.ts +98 -0
- package/lib/ui/src/ShyForm/index.d.ts +21 -0
- package/lib/ui/src/ShyForm/src/ShyComponentMap.d.ts +6 -0
- package/lib/ui/src/ShyForm/src/ShyForm.d.ts +1046 -0
- package/lib/ui/src/ShyForm/src/components/ApiCascader.vue.d.ts +141 -0
- package/lib/ui/src/ShyForm/src/components/ApiModalSelect/DeptTree.vue.d.ts +134 -0
- package/lib/ui/src/ShyForm/src/components/ApiModalSelect/Modal.vue.d.ts +2080 -0
- package/lib/ui/src/ShyForm/src/components/ApiModalSelect/Table.vue.d.ts +1213 -0
- package/lib/ui/src/ShyForm/src/components/ApiSelect.vue.d.ts +102 -0
- package/lib/ui/src/ShyForm/src/components/ApiTransfer.vue.d.ts +144 -0
- package/lib/ui/src/ShyForm/src/components/ApiTree.vue.d.ts +50 -0
- package/lib/ui/src/ShyForm/src/components/ApiTreeSelect.vue.d.ts +43 -0
- package/lib/ui/src/ShyForm/src/components/FormAction.vue.d.ts +111 -0
- package/lib/ui/src/ShyForm/src/components/FormItem.d.ts +70 -0
- package/lib/ui/src/ShyForm/src/components/FormWrapper.vue.d.ts +18 -0
- package/lib/ui/src/ShyForm/src/components/Group.d.ts +125 -0
- package/lib/ui/src/ShyForm/src/components/RadioButtonGroup.vue.d.ts +35 -0
- package/lib/ui/src/ShyForm/src/components/Table.d.ts +271 -0
- package/lib/ui/src/ShyForm/src/components/Tinymce.vue.d.ts +19 -0
- package/lib/ui/src/ShyForm/src/helper.d.ts +14 -0
- package/lib/ui/src/ShyForm/src/hooks/useAutoFocus.d.ts +10 -0
- package/lib/ui/src/ShyForm/src/hooks/useComponentRegister.d.ts +3 -0
- package/lib/ui/src/ShyForm/src/hooks/useFormContext.d.ts +10 -0
- package/lib/ui/src/ShyForm/src/hooks/useFormEvents.d.ts +28 -0
- package/lib/ui/src/ShyForm/src/hooks/useFormValues.d.ts +13 -0
- package/lib/ui/src/ShyForm/src/hooks/useLabelWidth.d.ts +310 -0
- package/lib/ui/src/ShyForm/src/hooks/useShyForm.d.ts +10 -0
- package/lib/ui/src/ShyForm/src/props.d.ts +430 -0
- package/lib/ui/src/ShyForm/src/types/form.d.ts +127 -0
- package/lib/ui/src/ShyForm/src/types/formItem.d.ts +82 -0
- package/lib/ui/src/ShyForm/src/types/hooks.d.ts +6 -0
- package/lib/ui/src/ShyForm/src/types/index.d.ts +90 -0
- package/lib/ui/src/ShyLayoutContainer/index.d.ts +2 -0
- package/lib/ui/src/ShyLayoutContainer/src/ShyLayoutContainer.d.ts +87 -0
- package/lib/ui/src/ShyLayoutContainer/src/props.d.ts +62 -0
- package/lib/ui/src/ShyLayoutContainer/src/types.d.ts +2 -0
- package/lib/ui/src/ShyTable/index.d.ts +10 -0
- package/lib/ui/src/ShyTable/src/ShyTable.d.ts +1200 -0
- package/lib/ui/src/ShyTable/src/componentMap.d.ts +6 -0
- package/lib/ui/src/ShyTable/src/components/EditTableHeaderIcon.vue.d.ts +14 -0
- package/lib/ui/src/ShyTable/src/components/HeaderCell.vue.d.ts +95 -0
- package/lib/ui/src/ShyTable/src/components/ShyInfo.d.ts +24 -0
- package/lib/ui/src/ShyTable/src/components/ShyTableAction.d.ts +109 -0
- package/lib/ui/src/ShyTable/src/components/ShyTableFooter.d.ts +57 -0
- package/lib/ui/src/ShyTable/src/components/ShyTableHeader.d.ts +63 -0
- package/lib/ui/src/ShyTable/src/components/ShyTableSettings/ShyShowMore.d.ts +2 -0
- package/lib/ui/src/ShyTable/src/components/ShyTableSettings/ShyShowSearch.d.ts +2 -0
- package/lib/ui/src/ShyTable/src/components/ShyTableSettings/ShyTableAdvancedSearch.d.ts +5 -0
- package/lib/ui/src/ShyTable/src/components/ShyTableSettings/ShyTableColumn.d.ts +5 -0
- package/lib/ui/src/ShyTable/src/components/ShyTableSettings/ShyTableFullScreen.d.ts +2 -0
- package/lib/ui/src/ShyTable/src/components/ShyTableSettings/ShyTableGlobalSearch.d.ts +5 -0
- package/lib/ui/src/ShyTable/src/components/ShyTableSettings/ShyTableSize.d.ts +10 -0
- package/lib/ui/src/ShyTable/src/components/ShyTableSettings/index.d.ts +7 -0
- package/lib/ui/src/ShyTable/src/components/TableImg.vue.d.ts +93 -0
- package/lib/ui/src/ShyTable/src/components/editable/CellComponent.d.ts +10 -0
- package/lib/ui/src/ShyTable/src/components/editable/EditableCell.d.ts +80 -0
- package/lib/ui/src/ShyTable/src/components/editable/helper.d.ts +5 -0
- package/lib/ui/src/ShyTable/src/components/editable/index.d.ts +23 -0
- package/lib/ui/src/ShyTable/src/const.d.ts +25 -0
- package/lib/ui/src/ShyTable/src/hooks/useColumns.d.ts +14 -0
- package/lib/ui/src/ShyTable/src/hooks/useCustomRow.d.ts +19 -0
- package/lib/ui/src/ShyTable/src/hooks/useDataSource.d.ts +29 -0
- package/lib/ui/src/ShyTable/src/hooks/useLoading.d.ts +6 -0
- package/lib/ui/src/ShyTable/src/hooks/usePagination.d.ts +10 -0
- package/lib/ui/src/ShyTable/src/hooks/useRowSelection.d.ts +12 -0
- package/lib/ui/src/ShyTable/src/hooks/useScrollTo.d.ts +4 -0
- package/lib/ui/src/ShyTable/src/hooks/useShyTable.d.ts +16 -0
- package/lib/ui/src/ShyTable/src/hooks/useShyTableContext.d.ts +16 -0
- package/lib/ui/src/ShyTable/src/hooks/useShyTableForm.d.ts +9 -0
- package/lib/ui/src/ShyTable/src/hooks/useTableExpand.d.ts +14 -0
- package/lib/ui/src/ShyTable/src/hooks/useTableHeader.d.ts +5 -0
- package/lib/ui/src/ShyTable/src/hooks/useTableScroll.d.ts +11 -0
- package/lib/ui/src/ShyTable/src/hooks/useTableStyle.d.ts +5 -0
- package/lib/ui/src/ShyTable/src/props.d.ts +577 -0
- package/lib/ui/src/ShyTable/src/types/pagination.d.ts +93 -0
- package/lib/ui/src/ShyTable/src/types/table.d.ts +422 -0
- package/lib/ui/src/ShyTable/src/types/tableAction.d.ts +26 -0
- package/lib/ui/src/ShyTag/index.d.ts +3 -0
- package/lib/ui/src/ShyTag/src/ShyTag.d.ts +100 -0
- package/lib/ui/src/ShyTag/src/props.d.ts +47 -0
- package/lib/ui/src/StrengthMeter/index.d.ts +2 -0
- package/lib/ui/src/StrengthMeter/src/StrengthMeter.vue.d.ts +35 -0
- package/lib/ui/src/TablePlus/TableColGroup.vue.d.ts +52 -0
- package/lib/ui/src/TablePlus/TablePlus.vue.d.ts +1977 -0
- package/lib/ui/src/TablePlus/componentMap.d.ts +6 -0
- package/lib/ui/src/TablePlus/components/ButtonGroupEdit.vue.d.ts +105 -0
- package/lib/ui/src/TablePlus/components/Icon/Sort.vue.d.ts +28 -0
- package/lib/ui/src/TablePlus/components/editable/CellComponent.d.ts +10 -0
- package/lib/ui/src/TablePlus/hooks/index.d.ts +2 -0
- package/lib/ui/src/TablePlus/hooks/useColumns.d.ts +8 -0
- package/lib/ui/src/TablePlus/hooks/usePagination.d.ts +9 -0
- package/lib/ui/src/TablePlus/hooks/useSort.d.ts +4 -0
- package/lib/ui/src/TablePlus/hooks/useTableData.d.ts +11 -0
- package/lib/ui/src/TablePlus/hooks/useTablePlus.d.ts +1 -0
- package/lib/ui/src/TablePlus/index.d.ts +3 -0
- package/lib/ui/src/TablePlus/props.d.ts +6 -0
- package/lib/ui/src/TablePlus/types/componentType.d.ts +1 -0
- package/lib/ui/src/Transition/index.d.ts +368 -0
- package/lib/ui/src/Transition/src/CollapseTransition.vue.d.ts +11 -0
- package/lib/ui/src/Transition/src/CreateTransition.d.ts +47 -0
- package/lib/ui/src/Transition/src/ExpandTransition.d.ts +23 -0
- package/lib/ui/src/Tree/index.d.ts +12 -0
- package/lib/ui/src/Tree/src/BasicTree.d.ts +97 -0
- package/lib/ui/src/Tree/src/TreeIcon.d.ts +2 -0
- package/lib/ui/src/Tree/src/hooks/useTree.d.ts +14 -0
- package/lib/ui/src/Tree/src/types/tree.d.ts +123 -0
- package/lib/ui/src/Tree/style/index.d.ts +0 -0
- package/lib/ui/src/Upload/src/components/FileList.d.ts +254 -0
- package/lib/ui/src/Upload/src/components/UploadPreviewModal.vue.d.ts +992 -0
- package/lib/ui/src/Upload/src/components/data.d.ts +9 -0
- package/lib/ui/src/Upload/src/helper.d.ts +7 -0
- package/lib/ui/src/Upload/src/hooks/useUpload.d.ts +11 -0
- package/lib/ui/src/Upload/src/props.d.ts +153 -0
- package/lib/ui/src/Upload/src/types/typing.d.ts +45 -0
- package/lib/ui/src/directives/clickOutside.d.ts +3 -0
- package/lib/ui/src/directives/index.d.ts +1 -0
- package/lib/ui/src/enums/sizeEnum.d.ts +11 -0
- package/lib/ui/types/global.d.ts +102 -0
- package/lib/ui/types/index.d.ts +36 -0
- package/package.json +7 -6
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ShyColumn, ShyTableProps, CellFormat, GetColumnsParams, TableActionType } from '../types/table';
|
|
2
|
+
import type { PaginationProps } from '../types/pagination';
|
|
3
|
+
import type { ComputedRef } from 'vue';
|
|
4
|
+
import { Ref } from 'vue';
|
|
5
|
+
export declare const useColumns: (propsRef: ComputedRef<ShyTableProps>, getPaginationRef: ComputedRef<boolean | PaginationProps>, tableAction: ComputedRef<TableActionType>, wrapRef: Ref<ComponentRef>) => {
|
|
6
|
+
getColumnsRef: ComputedRef<ShyColumn[]>;
|
|
7
|
+
getCacheColumns: () => ShyColumn[];
|
|
8
|
+
getColumns: (opt?: GetColumnsParams) => ShyColumn[];
|
|
9
|
+
setColumns: (columnList: Partial<ShyColumn>[] | (string | string[])[]) => void;
|
|
10
|
+
getViewColumns: ComputedRef<never[]>;
|
|
11
|
+
setCacheColumnsByField: (dataIndex: string | undefined, value: Partial<ShyColumn>) => void;
|
|
12
|
+
getColumnsSummary: ComputedRef<never[]>;
|
|
13
|
+
};
|
|
14
|
+
export declare const formatCell: (text: string, format: CellFormat, record: Recordable, index: number, tableAction: TableActionType) => any;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
2
|
+
import type { ShyTableProps } from '../types/table';
|
|
3
|
+
interface Options {
|
|
4
|
+
setSelectedRowKeys: (keys: string[]) => void;
|
|
5
|
+
getSelectRowKeys: () => string[];
|
|
6
|
+
clearSelectedRowKeys: () => void;
|
|
7
|
+
emit: EmitType;
|
|
8
|
+
getAutoCreateKey: ComputedRef<boolean | undefined>;
|
|
9
|
+
}
|
|
10
|
+
export declare function useCustomRow(propsRef: ComputedRef<ShyTableProps>, { setSelectedRowKeys, getSelectRowKeys, getAutoCreateKey, clearSelectedRowKeys, emit }: Options): {
|
|
11
|
+
customRow: (record: Recordable, index: number) => {
|
|
12
|
+
onClick: (e: Event) => void;
|
|
13
|
+
onDblclick: (event: Event) => void;
|
|
14
|
+
onContextmenu: (event: Event) => void;
|
|
15
|
+
onMouseenter: (event: Event) => void;
|
|
16
|
+
onMouseleave: (event: Event) => void;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ShyTableProps, FetchParams, SorterResult } from '../types/table';
|
|
2
|
+
import type { PaginationProps } from '../types/pagination';
|
|
3
|
+
import { ComputedRef, Ref } from 'vue';
|
|
4
|
+
interface ActionType {
|
|
5
|
+
getPaginationInfo: ComputedRef<boolean | PaginationProps>;
|
|
6
|
+
setPagination: (info: Partial<PaginationProps>) => void;
|
|
7
|
+
setLoading: (loading: boolean) => void;
|
|
8
|
+
getFieldsValue: () => Recordable;
|
|
9
|
+
clearSelectedRowKeys: () => void;
|
|
10
|
+
tableData: Ref<Recordable[]>;
|
|
11
|
+
}
|
|
12
|
+
export declare function useDataSource(propsRef: ComputedRef<ShyTableProps>, { getPaginationInfo, setPagination, setLoading, getFieldsValue, clearSelectedRowKeys, tableData }: ActionType, emit: EmitType): {
|
|
13
|
+
getDataSourceRef: ComputedRef<Recordable<any>[]>;
|
|
14
|
+
getDataSource: () => Recordable[];
|
|
15
|
+
getRawDataSource: () => Recordable;
|
|
16
|
+
getRowKey: ComputedRef<string | ((record: Recordable<any>) => string)>;
|
|
17
|
+
setTableData: (values: Recordable[]) => void;
|
|
18
|
+
getAutoCreateKey: ComputedRef<boolean>;
|
|
19
|
+
fetch: (opt?: FetchParams) => any;
|
|
20
|
+
reload: (opt?: FetchParams) => Promise<any>;
|
|
21
|
+
updateTableData: (index: number, key: string, value: any) => Promise<Recordable<any>>;
|
|
22
|
+
updateTableDataRecord: (rowKey: string | number, record: Recordable) => Recordable | undefined;
|
|
23
|
+
deleteTableDataRecord: (rowKey: string | number | string[] | number[]) => void;
|
|
24
|
+
insertTableDataRecord: (record: Recordable, index: number) => Recordable | undefined;
|
|
25
|
+
findTableDataRecord: (rowKey: string | number) => any;
|
|
26
|
+
handleTableChange: (pagination: PaginationProps, filters: Partial<Recordable<string[]>>, sorter: SorterResult, extra: any) => void;
|
|
27
|
+
summaryTotalData: ComputedRef<{}>;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PaginationProps } from '../types/pagination';
|
|
2
|
+
import type { ShyTableProps } from '../types/table';
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
4
|
+
export declare function usePagination(refProps: ComputedRef<ShyTableProps>): {
|
|
5
|
+
getPagination: () => PaginationProps;
|
|
6
|
+
getPaginationInfo: ComputedRef<PaginationProps>;
|
|
7
|
+
setShowPagination: (flag: boolean) => Promise<void>;
|
|
8
|
+
getShowPagination: () => boolean;
|
|
9
|
+
setPagination: (info: Partial<PaginationProps>) => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ShyTableProps, TableRowSelection } from '../types/table';
|
|
2
|
+
import { ComputedRef, Ref } from 'vue';
|
|
3
|
+
export declare function useRowSelection(propsRef: ComputedRef<ShyTableProps>, tableData: Ref<Recordable[]>, emit: EmitType): {
|
|
4
|
+
getRowSelection: () => TableRowSelection<any>;
|
|
5
|
+
getRowSelectionRef: ComputedRef<TableRowSelection<any>>;
|
|
6
|
+
getSelectRows: <T = Recordable<any>>() => T[];
|
|
7
|
+
getSelectRowKeys: () => string[];
|
|
8
|
+
setSelectedRowKeys: (rowKeys: string[]) => void;
|
|
9
|
+
clearSelectedRowKeys: () => void;
|
|
10
|
+
deleteSelectRowByKey: (key: string) => void;
|
|
11
|
+
setSelectedRows: (rows: Recordable[]) => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ShyTableProps, TableActionType } from '../types/table';
|
|
2
|
+
import type { FormActionType } from '../../../ShyForm';
|
|
3
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
4
|
+
type DynamicProps<T> = {
|
|
5
|
+
[P in keyof T]: Ref<T[P]> | T[P] | ComputedRef<T[P]>;
|
|
6
|
+
};
|
|
7
|
+
type Props = Partial<DynamicProps<ShyTableProps>>;
|
|
8
|
+
type UseTableMethod = TableActionType & {
|
|
9
|
+
getForm: () => FormActionType;
|
|
10
|
+
getAdvancedForm: () => FormActionType;
|
|
11
|
+
};
|
|
12
|
+
export declare function useShyTable(tableProps?: Props): [
|
|
13
|
+
(instance: TableActionType, formInstance: UseTableMethod, advancedInstance: UseTableMethod) => void,
|
|
14
|
+
UseTableMethod
|
|
15
|
+
];
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { ShyTableProps, TableActionType } from '../types/table';
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
4
|
+
import { FormActionType, RegisterFormFn } from '../../../ShyForm';
|
|
5
|
+
export type Instance = TableActionType & {
|
|
6
|
+
wrapRef: Ref<Nullable<HTMLElement>>;
|
|
7
|
+
getBindValues: ComputedRef<Recordable>;
|
|
8
|
+
registerAdvanced: RegisterFormFn;
|
|
9
|
+
advanceActions: FormActionType;
|
|
10
|
+
};
|
|
11
|
+
type RetInstance = Omit<Instance, 'getBindValues'> & {
|
|
12
|
+
getBindValues: ComputedRef<ShyTableProps>;
|
|
13
|
+
};
|
|
14
|
+
export declare function createTableContext(instance: Instance): void;
|
|
15
|
+
export declare function useTableContext(): RetInstance;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComputedRef, Slots } from 'vue';
|
|
2
|
+
import type { ShyTableProps, FetchParams } from '../types/table';
|
|
3
|
+
import type { FormProps } from '../../../ShyForm';
|
|
4
|
+
export declare function useTableForm(propsRef: ComputedRef<ShyTableProps>, slots: Slots, fetch: (opt?: FetchParams | undefined) => Promise<Recordable<any>[] | undefined>, getLoading: ComputedRef<boolean | undefined>): {
|
|
5
|
+
getFormProps: ComputedRef<Partial<FormProps>>;
|
|
6
|
+
replaceFormSlotKey: (key: string) => string;
|
|
7
|
+
getFormSlotKeys: ComputedRef<string[]>;
|
|
8
|
+
handleSearchInfoChange: (info: Recordable) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import type { ShyTableProps } from '../types/table';
|
|
3
|
+
export declare function useTableExpand(propsRef: ComputedRef<ShyTableProps>, tableData: Ref<Recordable[]>, emit: EmitType): {
|
|
4
|
+
getExpandOption: ComputedRef<{
|
|
5
|
+
expandedRowKeys?: undefined;
|
|
6
|
+
onExpandedRowsChange?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
expandedRowKeys: string[];
|
|
9
|
+
onExpandedRowsChange: (keys: string[]) => void;
|
|
10
|
+
}>;
|
|
11
|
+
expandAll: () => void;
|
|
12
|
+
expandRows: (keys: string[]) => void;
|
|
13
|
+
collapseAll: () => void;
|
|
14
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ComputedRef, Slots } from 'vue';
|
|
2
|
+
import type { ShyTableProps, InnerHandlers } from '../types/table';
|
|
3
|
+
export declare const useTableHeader: (propsRef: ComputedRef<ShyTableProps>, slots: Slots, handlers: InnerHandlers) => {
|
|
4
|
+
getHeaderProps: ComputedRef<Recordable<any>>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ShyTableProps, TableRowSelection, ShyColumn } from '../types/table';
|
|
2
|
+
import { Ref, ComputedRef } from 'vue';
|
|
3
|
+
export declare function useTableScroll(propsRef: ComputedRef<ShyTableProps>, tableElRef: Ref<ComponentRef>, columnsRef: ComputedRef<ShyColumn[]>, rowSelectionRef: ComputedRef<TableRowSelection | null>, getDataSourceRef: ComputedRef<Recordable[]>, wrapRef: Ref<HTMLElement>): {
|
|
4
|
+
getScrollRef: ComputedRef<{
|
|
5
|
+
x: string | number | true;
|
|
6
|
+
y: number;
|
|
7
|
+
scrollToFirstRowOnChange: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
redoHeight: () => void;
|
|
10
|
+
showAll: () => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
2
|
+
import type { ShyTableProps, TableCustomRecord } from '../types/table';
|
|
3
|
+
export declare function useTableStyle(propsRef: ComputedRef<ShyTableProps>, prefixCls: string): {
|
|
4
|
+
getRowClassName: (record: TableCustomRecord, index: number) => string;
|
|
5
|
+
};
|