@_tc/template-core 0.0.1-bate.49 → 0.0.1-bate.50
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/cjs/app/controller/view.js +1 -1
- package/cjs/app/extend/render-view.js +1 -1
- package/cjs/app/middleware.js +1 -1
- package/cjs/packages/core/env.js +1 -1
- package/cjs/packages/core/loader/router.js +1 -1
- package/esm/app/controller/view.js +4 -3
- package/esm/app/extend/render-view.js +5 -3
- package/esm/app/middleware.js +6 -1
- package/esm/packages/core/env.js +1 -1
- package/esm/packages/core/loader/router.js +5 -2
- package/fe/frontend/apps/dash/Dashboard.d.ts +0 -1
- package/fe/frontend/apps/dash/dash.entry.d.ts +0 -1
- package/fe/frontend/apps/dash/types.d.ts +0 -11
- package/fe/frontend/apps/ui-components/index.d.ts +0 -1
- package/fe/frontend/apps/ui-components/ui-components.entry.d.ts +0 -1
- package/fe/frontend/extended/SchemaForm/data.d.ts +0 -4
- package/fe/frontend/src/api/baseInfo.d.ts +0 -1
- package/fe/frontend/src/common/CRUD/CRUD.d.ts +0 -1
- package/fe/frontend/src/common/CRUD/index.d.ts +0 -1
- package/fe/frontend/src/common/auth/index.d.ts +0 -1
- package/fe/frontend/src/common/fetchErrorShow.d.ts +0 -1
- package/fe/frontend/src/common/generateMenuData.d.ts +0 -1
- package/fe/frontend/src/common/importComponent.d.ts +0 -1
- package/fe/frontend/src/common/language.d.ts +0 -1
- package/fe/frontend/src/common/logFn/index.d.ts +0 -1
- package/fe/frontend/src/common/menu.d.ts +0 -13
- package/fe/frontend/src/common/request.d.ts +0 -4
- package/fe/frontend/src/common/request.js +1 -1
- package/fe/frontend/src/components/AsyncSelect/AsyncSelect.d.ts +0 -1
- package/fe/frontend/src/components/AsyncSelect/AsyncSelect.js +5 -4
- package/fe/frontend/src/components/AsyncSelect/index.d.ts +0 -1
- package/fe/frontend/src/components/BasePage/HeaderView.d.ts +0 -1
- package/fe/frontend/src/components/LanguageSwitch/LanguageSwitch.d.ts +0 -1
- package/fe/frontend/src/components/LanguageSwitch/index.d.ts +0 -1
- package/fe/frontend/src/components/Router/index.d.ts +0 -1
- package/fe/frontend/src/components/Router/type.d.ts +0 -1
- package/fe/frontend/src/components/ThemeSwitch/ThemeSwitch.d.ts +0 -1
- package/fe/frontend/src/components/ThemeSwitch/index.d.ts +0 -1
- package/fe/frontend/src/components/index.d.ts +0 -1
- package/fe/frontend/src/defaultPages/Iframe/index.d.ts +0 -1
- package/fe/frontend/src/defaultPages/NotFoundPage/index.d.ts +0 -1
- package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/DetailPanel.d.ts +0 -1
- package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/PopFrom.d.ts +0 -1
- package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/builtIn.d.ts +0 -16
- package/fe/frontend/src/defaultPages/SchemaPage/components/CallCom/data.d.ts +0 -1
- package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaSearch/index.d.ts +0 -1
- package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaTable/index.d.ts +0 -1
- package/fe/frontend/src/defaultPages/SchemaPage/components/SchemaTable/index.js +16 -14
- package/fe/frontend/src/defaultPages/SchemaPage/data/eventInfo.d.ts +0 -1
- package/fe/frontend/src/defaultPages/SchemaPage/data/index.d.ts +0 -1
- package/fe/frontend/src/defaultPages/SchemaPage/hooks/useComConfig.d.ts +0 -1
- package/fe/frontend/src/defaultPages/SchemaPage/index.d.ts +0 -1
- package/fe/frontend/src/defaultPages/SchemaPage/schemaType.d.ts +0 -10
- package/fe/frontend/src/defaultPages/SchemaPage/utils/permissions.d.ts +0 -1
- package/fe/frontend/src/defaultPages/SchemaPage/utils/schemaConversion.d.ts +0 -1
- package/fe/frontend/src/defaultPages/SchemaPage/utils/validator.d.ts +0 -4
- package/fe/frontend/src/defaultPages/SidebarSlotPage/SidebarSlotContainer.d.ts +0 -1
- package/fe/frontend/src/defaultPages/SidebarSlotPage/index.d.ts +0 -1
- package/fe/frontend/src/defaultPages/SidebarSlotPageTmp.d.ts +0 -1
- package/fe/frontend/src/defaultPages/SlotPage/index.d.ts +0 -1
- package/fe/frontend/src/exportStore.d.ts +0 -13
- package/fe/frontend/src/hooks/useCurrentMenuData.d.ts +0 -9
- package/fe/frontend/src/hooks/useRouterParams.d.ts +0 -1
- package/fe/frontend/src/index.d.ts +0 -10
- package/fe/frontend/src/language/en-US.d.ts +0 -1
- package/fe/frontend/src/language/index.d.ts +0 -1
- package/fe/frontend/src/language/zh-CN.d.ts +0 -1
- package/fe/frontend/src/main.d.ts +1 -14
- package/fe/frontend/src/stores/apiFreezer.d.ts +0 -67
- package/fe/frontend/src/stores/mode.d.ts +0 -4
- package/fe/frontend/src/stores/schemaEventBus.d.ts +0 -20
- package/fe/frontend/src/stores/schemaStore.d.ts +0 -15
- package/fe/frontend/src/typing/scalability.d.ts +0 -32
- package/fe/frontend/src/typing/window.d.ts +0 -1
- package/fe/model/types/data/button.d.ts +0 -10
- package/fe/model/types/data/component.d.ts +0 -10
- package/fe/model/types/data/fetchInfo.d.ts +0 -13
- package/fe/model/types/data/schema.d.ts +0 -52
- package/fe/model/types/data/search.d.ts +0 -1
- package/{model → fe/model}/types/index.d.ts +0 -1
- package/fe/model/types/menuType.d.ts +0 -30
- package/fe/model/types/model.d.ts +0 -14
- package/fe/packages/common/LRUCache.d.ts +1 -0
- package/fe/packages/common/array/index.d.ts +0 -1
- package/fe/packages/common/cache/LRUCache.d.ts +0 -1
- package/fe/packages/common/cache/index.d.ts +0 -1
- package/fe/packages/common/guards/index.d.ts +0 -1
- package/fe/packages/common/http/index.d.ts +0 -1
- package/fe/packages/common/i18n/default.d.ts +0 -6
- package/fe/packages/common/i18n/en-US.d.ts +0 -6
- package/fe/packages/common/i18n/index.d.ts +0 -25
- package/fe/packages/common/i18n/locales.d.ts +0 -1
- package/fe/packages/common/i18n/types.d.ts +0 -25
- package/fe/packages/common/index.d.ts +0 -1
- package/fe/packages/common/log/index.d.ts +0 -1
- package/fe/packages/common/number/index.d.ts +0 -1
- package/fe/packages/common/object/filterEmpty.d.ts +0 -1
- package/fe/packages/common/object/filtereEmpty.d.ts +1 -0
- package/fe/packages/common/object/index.d.ts +0 -1
- package/fe/packages/common/string/index.d.ts +0 -1
- package/fe/packages/common/types/index.d.ts +0 -1
- package/fe/packages/react/hooks/useBreadcrumb.d.ts +0 -1
- package/fe/packages/react/hooks/useExecuteOnce.d.ts +1 -20
- package/fe/packages/react/hooks/useInit.d.ts +0 -1
- package/fe/packages/react/hooks/useLanguage.d.ts +0 -1
- package/fe/packages/react/hooks/usePagination.d.ts +0 -1
- package/fe/packages/react/hooks/useRefState.d.ts +0 -13
- package/fe/packages/react/hooks/useWatch.d.ts +0 -9
- package/fe/packages/react/ui/components/Button/Button.d.ts +0 -34
- package/fe/packages/react/ui/components/Button/SubmitButton.d.ts +0 -5
- package/fe/packages/react/ui/components/Button/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Card/Card.d.ts +0 -5
- package/fe/packages/react/ui/components/Card/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Checkbox/Checkbox.d.ts +0 -1
- package/fe/packages/react/ui/components/Checkbox/index.d.ts +0 -1
- package/fe/packages/react/ui/components/ConfirmDialog/ConfirmDialog.d.ts +0 -9
- package/fe/packages/react/ui/components/ConfirmDialog/index.d.ts +0 -1
- package/fe/packages/react/ui/components/DataTable/ActionBtn.d.ts +0 -1
- package/fe/packages/react/ui/components/DataTable/index.d.ts +0 -20
- package/fe/packages/react/ui/components/Date/Calendar.d.ts +0 -14
- package/fe/packages/react/ui/components/Date/Date.d.ts +0 -12
- package/fe/packages/react/ui/components/Date/DateTestPage.d.ts +0 -1
- package/fe/packages/react/ui/components/Date/LocaleContext.d.ts +0 -5
- package/fe/packages/react/ui/components/Date/LocaleProvider.d.ts +0 -12
- package/fe/packages/react/ui/components/Date/TimePicker.d.ts +0 -1
- package/fe/packages/react/ui/components/Date/data.d.ts +0 -1
- package/fe/packages/react/ui/components/Date/dateLocaleStore.d.ts +0 -7
- package/fe/packages/react/ui/components/Date/dropdownPositioning.d.ts +0 -1
- package/fe/packages/react/ui/components/Date/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Date/locales.d.ts +0 -20
- package/fe/packages/react/ui/components/Drawer/Drawer.d.ts +0 -7
- package/fe/packages/react/ui/components/Drawer/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Dropdown/Dropdown.d.ts +0 -2
- package/fe/packages/react/ui/components/Dropdown/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Form/Form.d.ts +0 -7
- package/fe/packages/react/ui/components/Form/FormItem.d.ts +0 -22
- package/fe/packages/react/ui/components/Form/SchemaForm/data.d.ts +0 -1
- package/fe/packages/react/ui/components/Form/SchemaForm/defaultComponentsMap.d.ts +0 -1
- package/fe/packages/react/ui/components/Form/SchemaForm/index.d.ts +0 -94
- package/fe/packages/react/ui/components/Form/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Form/useForm.d.ts +0 -1
- package/fe/packages/react/ui/components/ImagePreview/ImagePreview.d.ts +0 -1
- package/fe/packages/react/ui/components/ImagePreview/PreviewImage.d.ts +0 -4
- package/fe/packages/react/ui/components/ImagePreview/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Input/Input.d.ts +0 -23
- package/fe/packages/react/ui/components/Input/index.d.ts +0 -1
- package/fe/packages/react/ui/components/InputNumber/InputNumber.d.ts +0 -3
- package/fe/packages/react/ui/components/InputNumber/index.d.ts +0 -1
- package/fe/packages/react/ui/components/InputNumber/inputNumberUtils.d.ts +0 -1
- package/fe/packages/react/ui/components/Label/Label.d.ts +0 -30
- package/fe/packages/react/ui/components/Label/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Layout/Layout.d.ts +0 -1
- package/fe/packages/react/ui/components/Layout/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Loading/Loading.d.ts +0 -12
- package/fe/packages/react/ui/components/Loading/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Menu/Menu.d.ts +0 -1
- package/fe/packages/react/ui/components/Menu/MenuContext.d.ts +0 -1
- package/fe/packages/react/ui/components/Menu/MenuItem.d.ts +0 -1
- package/fe/packages/react/ui/components/Menu/SubMenu.d.ts +0 -8
- package/fe/packages/react/ui/components/Menu/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Menu/menuTypes.d.ts +0 -2
- package/fe/packages/react/ui/components/Menu/utils.d.ts +0 -1
- package/fe/packages/react/ui/components/Message/Message.d.ts +0 -8
- package/fe/packages/react/ui/components/Message/MessageManager.d.ts +0 -1
- package/fe/packages/react/ui/components/Message/data.d.ts +0 -1
- package/fe/packages/react/ui/components/Message/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Modal/Modal.d.ts +0 -7
- package/fe/packages/react/ui/components/Modal/ModalManager.d.ts +0 -13
- package/fe/packages/react/ui/components/Modal/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Notification/Notification.d.ts +0 -1
- package/fe/packages/react/ui/components/Notification/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Overlay/Overlay.d.ts +0 -4
- package/fe/packages/react/ui/components/Overlay/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Pagination/Pagination.d.ts +0 -8
- package/fe/packages/react/ui/components/Pagination/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Popup/Popup.d.ts +0 -1
- package/fe/packages/react/ui/components/Popup/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Radio/Radio.d.ts +0 -1
- package/fe/packages/react/ui/components/Radio/RadioGroup.d.ts +0 -1
- package/fe/packages/react/ui/components/Radio/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Search/Search.d.ts +0 -4
- package/fe/packages/react/ui/components/Search/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Select/Select.d.ts +1 -6
- package/fe/packages/react/ui/components/Select/Select.js +19 -13
- package/fe/packages/react/ui/components/Select/dropdownPositioning.d.ts +0 -1
- package/fe/packages/react/ui/components/Select/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Skeleton/Skeleton.d.ts +0 -16
- package/fe/packages/react/ui/components/Skeleton/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Switch/Switch.d.ts +0 -1
- package/fe/packages/react/ui/components/Switch/index.d.ts +0 -1
- package/fe/packages/react/ui/components/TableSearch/TableSearch.d.ts +0 -38
- package/fe/packages/react/ui/components/TableSearch/index.d.ts +0 -1
- package/fe/packages/react/ui/components/TableSearch/lang.d.ts +0 -1
- package/fe/packages/react/ui/components/TableSearch/tableSearchLocaleStore.d.ts +0 -1
- package/fe/packages/react/ui/components/Tabs/Tabs.d.ts +0 -1
- package/fe/packages/react/ui/components/Tabs/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Textarea/Textarea.d.ts +0 -47
- package/fe/packages/react/ui/components/Textarea/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Tooltip/Tooltip.d.ts +0 -17
- package/fe/packages/react/ui/components/Tooltip/index.d.ts +0 -1
- package/fe/packages/react/ui/components/TreeSelect/TreeSelect.d.ts +0 -7
- package/fe/packages/react/ui/components/TreeSelect/index.d.ts +0 -1
- package/fe/packages/react/ui/components/Upload/ImageUpload.d.ts +0 -1
- package/fe/packages/react/ui/components/Upload/Upload.d.ts +0 -28
- package/fe/packages/react/ui/components/Upload/index.d.ts +0 -1
- package/fe/packages/react/ui/components/breadcrumb/breadcrumb.d.ts +0 -1
- package/fe/packages/react/ui/components/breadcrumb/index.d.ts +0 -1
- package/fe/packages/react/ui/components/hooks/useDropdownPositioning.d.ts +0 -7
- package/fe/packages/react/ui/components/hooks/useInputController.d.ts +0 -4
- package/fe/packages/react/ui/components/index.d.ts +0 -1
- package/fe/packages/react/ui/components/table/index.d.ts +0 -1
- package/fe/packages/react/ui/components/table/table.d.ts +0 -1
- package/fe/packages/react/ui/components/testPage/MenuTestPage.d.ts +0 -1
- package/fe/packages/react/ui/components/testPage/index.d.ts +0 -1
- package/fe/packages/react/ui/i18n/I18nProvider.d.ts +0 -19
- package/fe/packages/react/ui/i18n/index.d.ts +0 -1
- package/fe/packages/react/ui/i18n/useI18n.d.ts +0 -5
- package/fe/packages/react/ui/index.d.ts +0 -1
- package/fe/packages/react/ui/lib/createStoreHook.d.ts +0 -1
- package/fe/packages/react/ui/lib/export.d.ts +0 -45
- package/fe/packages/react/ui/lib/utils.d.ts +0 -25
- package/fe/packages/react/ui/stores/breadcrumb.d.ts +0 -1
- package/fe/packages/react/ui/stores/language.d.ts +0 -1
- package/fe/packages/react/ui/types/index.d.ts +0 -1
- package/fe/typings/type.d.ts +0 -1
- package/model/frontend/extended/SchemaForm/data.d.ts +9 -0
- package/model/frontend/src/common/auth/index.d.ts +6 -0
- package/model/frontend/src/common/fetchErrorShow.d.ts +2 -0
- package/model/frontend/src/common/language.d.ts +2 -0
- package/model/frontend/src/common/logFn/index.d.ts +4 -0
- package/model/frontend/src/common/request.d.ts +33 -0
- package/model/frontend/src/components/AsyncSelect/AsyncSelect.d.ts +7 -0
- package/model/frontend/src/components/AsyncSelect/index.d.ts +3 -0
- package/model/frontend/src/defaultPages/SchemaPage/components/CallCom/DetailPanel.d.ts +6 -0
- package/model/frontend/src/defaultPages/SchemaPage/components/CallCom/PopFrom.d.ts +12 -0
- package/model/frontend/src/defaultPages/SchemaPage/components/CallCom/builtIn.d.ts +28 -0
- package/model/frontend/src/defaultPages/SchemaPage/data/eventInfo.d.ts +7 -0
- package/model/frontend/src/defaultPages/SchemaPage/data/index.d.ts +2 -0
- package/model/frontend/src/defaultPages/SchemaPage/hooks/useComConfig.d.ts +9 -0
- package/model/frontend/src/defaultPages/SchemaPage/schemaType.d.ts +41 -0
- package/model/frontend/src/defaultPages/SchemaPage/utils/permissions.d.ts +2 -0
- package/model/frontend/src/defaultPages/SchemaPage/utils/validator.d.ts +7 -0
- package/model/frontend/src/language/en-US.d.ts +88 -0
- package/model/frontend/src/language/index.d.ts +72 -0
- package/model/frontend/src/language/zh-CN.d.ts +88 -0
- package/model/frontend/src/stores/apiFreezer.d.ts +26 -0
- package/model/frontend/src/stores/schemaEventBus.d.ts +22 -0
- package/model/frontend/src/stores/schemaStore.d.ts +32 -0
- package/model/frontend/src/typing/scalability.d.ts +15 -0
- package/model/frontend/src/typing/window.d.ts +8 -0
- package/model/{index.d.ts → model/index.d.ts} +0 -1
- package/model/model/test.d.ts +1 -0
- package/model/{types → model/types}/data/button.d.ts +1 -11
- package/model/{types → model/types}/data/component.d.ts +3 -13
- package/model/model/types/data/fetchInfo.d.ts +7 -0
- package/model/{types → model/types}/data/schema.d.ts +2 -54
- package/model/{types → model/types}/data/search.d.ts +1 -2
- package/model/model/types/index.d.ts +2 -0
- package/model/{types → model/types}/menuType.d.ts +0 -30
- package/model/{types → model/types}/model.d.ts +0 -14
- package/model/packages/common/array/index.d.ts +6 -0
- package/model/packages/common/cache/LRUCache.d.ts +12 -0
- package/model/packages/common/cache/index.d.ts +1 -0
- package/model/packages/common/guards/index.d.ts +8 -0
- package/model/packages/common/http/index.d.ts +89 -0
- package/model/packages/common/i18n/default.d.ts +86 -0
- package/model/packages/common/i18n/en-US.d.ts +86 -0
- package/model/packages/common/i18n/index.d.ts +18 -0
- package/model/packages/common/i18n/locales.d.ts +7 -0
- package/model/packages/common/i18n/types.d.ts +46 -0
- package/model/packages/common/index.d.ts +10 -0
- package/model/packages/common/log/index.d.ts +32 -0
- package/model/packages/common/number/index.d.ts +2 -0
- package/model/packages/common/object/filterEmpty.d.ts +2 -0
- package/model/packages/common/object/index.d.ts +4 -0
- package/model/packages/common/string/index.d.ts +3 -0
- package/model/packages/common/types/index.d.ts +3 -0
- package/model/packages/react/hooks/useBreadcrumb.d.ts +9 -0
- package/model/packages/react/hooks/useExecuteOnce.d.ts +11 -0
- package/model/packages/react/hooks/useLanguage.d.ts +1 -0
- package/model/packages/react/ui/components/Button/Button.d.ts +24 -0
- package/model/packages/react/ui/components/Button/SubmitButton.d.ts +8 -0
- package/model/packages/react/ui/components/Button/index.d.ts +3 -0
- package/model/packages/react/ui/components/Card/Card.d.ts +10 -0
- package/model/packages/react/ui/components/Card/index.d.ts +1 -0
- package/model/packages/react/ui/components/Checkbox/Checkbox.d.ts +16 -0
- package/model/packages/react/ui/components/Checkbox/index.d.ts +1 -0
- package/model/packages/react/ui/components/ConfirmDialog/ConfirmDialog.d.ts +11 -0
- package/model/packages/react/ui/components/ConfirmDialog/index.d.ts +1 -0
- package/model/packages/react/ui/components/DataTable/ActionBtn.d.ts +7 -0
- package/model/packages/react/ui/components/DataTable/index.d.ts +32 -0
- package/model/packages/react/ui/components/Date/Calendar.d.ts +21 -0
- package/model/packages/react/ui/components/Date/Date.d.ts +26 -0
- package/model/packages/react/ui/components/Date/LocaleContext.d.ts +1 -0
- package/model/packages/react/ui/components/Date/LocaleProvider.d.ts +7 -0
- package/model/packages/react/ui/components/Date/TimePicker.d.ts +6 -0
- package/model/packages/react/ui/components/Date/data.d.ts +5 -0
- package/model/packages/react/ui/components/Date/dateLocaleStore.d.ts +9 -0
- package/model/packages/react/ui/components/Date/dropdownPositioning.d.ts +2 -0
- package/model/packages/react/ui/components/Date/index.d.ts +5 -0
- package/model/packages/react/ui/components/Date/locales.d.ts +23 -0
- package/model/packages/react/ui/components/Drawer/Drawer.d.ts +22 -0
- package/model/packages/react/ui/components/Drawer/index.d.ts +2 -0
- package/model/packages/react/ui/components/Dropdown/Dropdown.d.ts +24 -0
- package/model/packages/react/ui/components/Dropdown/index.d.ts +1 -0
- package/model/packages/react/ui/components/Form/Form.d.ts +11 -0
- package/model/packages/react/ui/components/Form/FormItem.d.ts +19 -0
- package/model/packages/react/ui/components/Form/SchemaForm/data.d.ts +39 -0
- package/model/packages/react/ui/components/Form/SchemaForm/index.d.ts +59 -0
- package/model/packages/react/ui/components/Form/index.d.ts +4 -0
- package/model/packages/react/ui/components/Form/useForm.d.ts +2 -0
- package/model/packages/react/ui/components/ImagePreview/ImagePreview.d.ts +7 -0
- package/model/packages/react/ui/components/ImagePreview/PreviewImage.d.ts +7 -0
- package/model/packages/react/ui/components/ImagePreview/index.d.ts +2 -0
- package/model/packages/react/ui/components/Input/Input.d.ts +22 -0
- package/model/packages/react/ui/components/Input/index.d.ts +1 -0
- package/model/packages/react/ui/components/InputNumber/InputNumber.d.ts +25 -0
- package/model/packages/react/ui/components/InputNumber/index.d.ts +1 -0
- package/model/packages/react/ui/components/InputNumber/inputNumberUtils.d.ts +29 -0
- package/model/packages/react/ui/components/Label/Label.d.ts +21 -0
- package/model/packages/react/ui/components/Label/index.d.ts +2 -0
- package/model/packages/react/ui/components/Layout/Layout.d.ts +10 -0
- package/model/packages/react/ui/components/Layout/index.d.ts +1 -0
- package/model/packages/react/ui/components/Loading/Loading.d.ts +13 -0
- package/model/packages/react/ui/components/Loading/index.d.ts +1 -0
- package/model/packages/react/ui/components/Menu/Menu.d.ts +17 -0
- package/model/packages/react/ui/components/Menu/MenuContext.d.ts +38 -0
- package/model/packages/react/ui/components/Menu/MenuItem.d.ts +2 -0
- package/model/packages/react/ui/components/Menu/SubMenu.d.ts +2 -0
- package/model/packages/react/ui/components/Menu/index.d.ts +8 -0
- package/model/packages/react/ui/components/Menu/menuTypes.d.ts +57 -0
- package/model/packages/react/ui/components/Menu/utils.d.ts +1 -0
- package/model/packages/react/ui/components/Message/Message.d.ts +12 -0
- package/model/packages/react/ui/components/Message/MessageManager.d.ts +36 -0
- package/model/packages/react/ui/components/Message/data.d.ts +1 -0
- package/model/packages/react/ui/components/Message/index.d.ts +2 -0
- package/model/packages/react/ui/components/Modal/Modal.d.ts +20 -0
- package/model/packages/react/ui/components/Modal/ModalManager.d.ts +46 -0
- package/model/packages/react/ui/components/Modal/index.d.ts +3 -0
- package/model/packages/react/ui/components/Notification/Notification.d.ts +13 -0
- package/model/packages/react/ui/components/Notification/index.d.ts +1 -0
- package/model/packages/react/ui/components/Overlay/Overlay.d.ts +19 -0
- package/model/packages/react/ui/components/Overlay/index.d.ts +2 -0
- package/model/packages/react/ui/components/Pagination/Pagination.d.ts +10 -0
- package/model/packages/react/ui/components/Pagination/index.d.ts +1 -0
- package/model/packages/react/ui/components/Popup/Popup.d.ts +25 -0
- package/model/packages/react/ui/components/Popup/index.d.ts +1 -0
- package/model/packages/react/ui/components/Radio/Radio.d.ts +8 -0
- package/model/packages/react/ui/components/Radio/RadioGroup.d.ts +18 -0
- package/model/packages/react/ui/components/Radio/index.d.ts +2 -0
- package/model/packages/react/ui/components/Search/Search.d.ts +13 -0
- package/model/packages/react/ui/components/Search/index.d.ts +1 -0
- package/model/packages/react/ui/components/Select/Select.d.ts +21 -0
- package/model/packages/react/ui/components/Select/dropdownPositioning.d.ts +2 -0
- package/model/packages/react/ui/components/Select/index.d.ts +1 -0
- package/model/packages/react/ui/components/Skeleton/Skeleton.d.ts +12 -0
- package/model/packages/react/ui/components/Skeleton/index.d.ts +2 -0
- package/model/packages/react/ui/components/Switch/Switch.d.ts +10 -0
- package/model/packages/react/ui/components/Switch/index.d.ts +1 -0
- package/model/packages/react/ui/components/TableSearch/TableSearch.d.ts +30 -0
- package/model/packages/react/ui/components/TableSearch/index.d.ts +2 -0
- package/model/packages/react/ui/components/TableSearch/lang.d.ts +14 -0
- package/model/packages/react/ui/components/TableSearch/tableSearchLocaleStore.d.ts +8 -0
- package/model/packages/react/ui/components/Tabs/Tabs.d.ts +15 -0
- package/model/packages/react/ui/components/Tabs/index.d.ts +1 -0
- package/model/packages/react/ui/components/Textarea/Textarea.d.ts +20 -0
- package/model/packages/react/ui/components/Textarea/index.d.ts +1 -0
- package/model/packages/react/ui/components/Tooltip/Tooltip.d.ts +8 -0
- package/model/packages/react/ui/components/Tooltip/index.d.ts +1 -0
- package/model/packages/react/ui/components/TreeSelect/TreeSelect.d.ts +18 -0
- package/model/packages/react/ui/components/TreeSelect/index.d.ts +1 -0
- package/model/packages/react/ui/components/Upload/ImageUpload.d.ts +8 -0
- package/model/packages/react/ui/components/Upload/Upload.d.ts +13 -0
- package/model/packages/react/ui/components/Upload/index.d.ts +2 -0
- package/model/packages/react/ui/components/breadcrumb/breadcrumb.d.ts +34 -0
- package/model/packages/react/ui/components/breadcrumb/index.d.ts +1 -0
- package/model/packages/react/ui/components/hooks/useDropdownPositioning.d.ts +42 -0
- package/model/packages/react/ui/components/hooks/useInputController.d.ts +20 -0
- package/model/packages/react/ui/components/index.d.ts +35 -0
- package/model/packages/react/ui/components/table/index.d.ts +1 -0
- package/model/packages/react/ui/components/table/table.d.ts +29 -0
- package/model/packages/react/ui/i18n/I18nProvider.d.ts +12 -0
- package/model/packages/react/ui/i18n/index.d.ts +3 -0
- package/model/packages/react/ui/i18n/useI18n.d.ts +8 -0
- package/model/packages/react/ui/index.d.ts +4 -0
- package/model/packages/react/ui/lib/createStoreHook.d.ts +8 -0
- package/model/packages/react/ui/lib/export.d.ts +21 -0
- package/model/packages/react/ui/lib/utils.d.ts +9 -0
- package/model/packages/react/ui/stores/breadcrumb.d.ts +14 -0
- package/model/packages/react/ui/stores/language.d.ts +3 -0
- package/model/packages/react/ui/types/index.d.ts +1 -0
- package/model/typings/type.d.ts +4 -0
- package/package.json +1 -1
- package/types/app/controller/view.d.ts +2 -1
- package/types/app/extend/render-view.d.ts +2 -1
- package/fe/packages/react/hooks/useWatch.test.d.ts +0 -2
- package/fe/packages/react/ui/components/InputNumber/inputNumberUtils.test.d.ts +0 -2
- package/model/test.d.ts +0 -2
- package/model/types/data/fetchInfo.d.ts +0 -20
|
@@ -2,30 +2,10 @@ import type { I18nDictionary, I18nInterpolationValues, I18nMessage, I18nResource
|
|
|
2
2
|
export * from "./types";
|
|
3
3
|
export * from "./locales";
|
|
4
4
|
export declare const isPlainI18nDictionary: (value: I18nMessage) => value is I18nDictionary;
|
|
5
|
-
/**
|
|
6
|
-
* 深合并单个语言包。
|
|
7
|
-
* 嵌套对象递归合并,字符串、数组、数字等叶子节点直接以 patch 覆盖 base。
|
|
8
|
-
*/
|
|
9
5
|
export declare const mergeI18nDictionary: (base?: I18nDictionary, patch?: I18nDictionary) => I18nDictionary;
|
|
10
|
-
/**
|
|
11
|
-
* 合并多语言资源。
|
|
12
|
-
* 结构示例:{ 'zh-CN': { common: { ok: '确定' } }, 'en-US': { common: { ok: 'OK' } } }
|
|
13
|
-
*/
|
|
14
6
|
export declare const mergeI18nResources: (base?: I18nResources, patch?: I18nResources) => I18nResources;
|
|
15
|
-
/**
|
|
16
|
-
* 根据点分 key 从语言包中取值。
|
|
17
|
-
* 例如 common.submit 会读取 resources[language].common.submit。
|
|
18
|
-
*/
|
|
19
7
|
export declare const getI18nPathValue: (dictionary: I18nDictionary | undefined, key: string) => I18nMessage | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* 替换文案中的插值占位符。
|
|
22
|
-
* 例如 "Hello, {name}" + { name: "Tom" } => "Hello, Tom"。
|
|
23
|
-
*/
|
|
24
8
|
export declare const interpolateI18nMessage: (value: string, data?: I18nInterpolationValues) => string;
|
|
25
|
-
/**
|
|
26
|
-
* 纯翻译函数:只依赖传入的 state。
|
|
27
|
-
* 优先级:指定语言 -> 兜底语言 -> options.fallback -> 原 key。
|
|
28
|
-
*/
|
|
29
9
|
export declare const translate: <T = string>(state: I18nTranslateState, key: string, fillingData?: I18nInterpolationValues, options?: I18nTranslateOptions) => T | string;
|
|
30
10
|
export declare const i18nStore: {
|
|
31
11
|
getState: () => I18nStore;
|
|
@@ -33,11 +13,6 @@ export declare const i18nStore: {
|
|
|
33
13
|
setState: (partial: Partial<I18nStore> | ((state: I18nStore) => Partial<I18nStore>)) => void;
|
|
34
14
|
subscribe: (listener: I18nStoreListener) => () => void;
|
|
35
15
|
};
|
|
36
|
-
/**
|
|
37
|
-
* 对外使用的 i18n 函数。
|
|
38
|
-
* 每次调用都会读取最新 state,适合在非 React 代码中直接使用。
|
|
39
|
-
*/
|
|
40
16
|
export declare const i18n: <T = string>(key: string, fillingData?: I18nInterpolationValues, options?: I18nTranslateOptions) => string | T;
|
|
41
17
|
export declare const t: <T = string>(key: string, fillingData?: I18nInterpolationValues, options?: I18nTranslateOptions) => string | T;
|
|
42
18
|
export declare const getLanguage: <T = string>(key: string, fillingData?: I18nInterpolationValues, options?: I18nTranslateOptions) => string | T;
|
|
43
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,52 +12,28 @@ export interface I18nTranslateState {
|
|
|
12
12
|
resources: I18nResources;
|
|
13
13
|
}
|
|
14
14
|
export interface I18nState extends I18nTranslateState {
|
|
15
|
-
/** 持久化语言时使用的 localStorage key。 */
|
|
16
15
|
storageKey: string;
|
|
17
|
-
/** 是否把 setLanguage 的结果写入 localStorage。 */
|
|
18
16
|
persist: boolean;
|
|
19
17
|
}
|
|
20
18
|
export interface I18nTranslateOptions {
|
|
21
|
-
/**
|
|
22
|
-
* 指定本次翻译使用的语言,不传则使用全局 language。
|
|
23
|
-
*/
|
|
24
19
|
language?: I18nLanguage;
|
|
25
|
-
/**
|
|
26
|
-
* 当前语言未命中时使用的兜底语言,不传则使用全局 fallbackLanguage。
|
|
27
|
-
*/
|
|
28
20
|
fallbackLanguage?: I18nLanguage;
|
|
29
|
-
/**
|
|
30
|
-
* 当前语言和兜底语言都未命中时返回的兜底值。
|
|
31
|
-
*/
|
|
32
21
|
fallback?: I18nMessage;
|
|
33
22
|
}
|
|
34
23
|
export interface I18nSetResourcesOptions {
|
|
35
|
-
/**
|
|
36
|
-
* 是否和现有资源深合并。默认 false,直接替换 resources。
|
|
37
|
-
*/
|
|
38
24
|
merge?: boolean;
|
|
39
25
|
}
|
|
40
26
|
export interface I18nAddResourcesOptions {
|
|
41
|
-
/**
|
|
42
|
-
* 是否和当前语言资源深合并。默认 true。
|
|
43
|
-
*/
|
|
44
27
|
merge?: boolean;
|
|
45
28
|
}
|
|
46
29
|
export type I18nTranslator = <T = string>(key: string, fillingData?: I18nInterpolationValues, options?: I18nTranslateOptions) => T | string;
|
|
47
30
|
export interface I18nActions {
|
|
48
|
-
/** 设置当前展示语言。 */
|
|
49
31
|
setLanguage: (language: I18nLanguage) => void;
|
|
50
|
-
/** 设置兜底语言。 */
|
|
51
32
|
setFallbackLanguage: (language: I18nLanguage) => void;
|
|
52
|
-
/** 批量设置多语言资源,可选择替换或合并。 */
|
|
53
33
|
setResources: (resources: I18nResources, options?: I18nSetResourcesOptions) => void;
|
|
54
|
-
/** 为指定语言追加资源,默认和已有资源深合并。 */
|
|
55
34
|
addResources: (language: I18nLanguage, messages: I18nDictionary, options?: I18nAddResourcesOptions) => void;
|
|
56
|
-
/** 配置存储行为,主要由 I18nProvider 同步外部 props 使用。 */
|
|
57
35
|
configureI18n: (config: Partial<Pick<I18nState, 'storageKey' | 'persist'>>) => void;
|
|
58
|
-
/** 重置为默认语言、默认资源和默认存储配置。 */
|
|
59
36
|
resetI18n: () => void;
|
|
60
|
-
/** 挂在 store 上的翻译函数,方便直接读取。 */
|
|
61
37
|
t: I18nTranslator;
|
|
62
38
|
}
|
|
63
39
|
export type I18nStore = I18nState & I18nActions;
|
|
@@ -68,4 +44,3 @@ export interface I18nStoreApi {
|
|
|
68
44
|
setState: (partial: Partial<I18nStore> | ((state: I18nStore) => Partial<I18nStore>)) => void;
|
|
69
45
|
subscribe: (listener: I18nStoreListener) => () => void;
|
|
70
46
|
}
|
|
71
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -30,4 +30,3 @@ export declare const logYellow: (...data: unknown[]) => void;
|
|
|
30
30
|
export declare const logPink: (...data: unknown[]) => void;
|
|
31
31
|
export declare const logWhite: (...data: unknown[]) => void;
|
|
32
32
|
export declare const logRed: (...data: unknown[]) => void;
|
|
33
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { filterEmpty, filtereEmpty } from "./filterEmpty";
|
|
@@ -2,4 +2,3 @@ export * from "./filterEmpty";
|
|
|
2
2
|
export declare const pick: <T extends object, K extends keyof T>(target: T, keys: readonly K[]) => Pick<T, K>;
|
|
3
3
|
export declare const omit: <T extends object, K extends keyof T>(target: T, keys: readonly K[]) => Omit<T, K>;
|
|
4
4
|
export declare const mapValues: <T extends object, TResult>(target: T, mapper: <K extends keyof T>(value: T[K], key: K) => TResult) => { [K in keyof T]: TResult; };
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,26 +5,7 @@ export declare const executionPhaseType: {
|
|
|
5
5
|
};
|
|
6
6
|
type ExecutionPhaseTypeKeys = keyof typeof executionPhaseType;
|
|
7
7
|
export type ExecutionPhaseType = (typeof executionPhaseType)[ExecutionPhaseTypeKeys];
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
* @description 在各个阶段只触发一次
|
|
11
|
-
* @demo
|
|
12
|
-
* ```
|
|
13
|
-
const count = useExecuteOnce(() => {
|
|
14
|
-
console.log('123'); // 只会在第一次render时触发
|
|
15
|
-
return 123
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
// count 123
|
|
19
|
-
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export default function useExecuteOnce<T>(factory: () => T,
|
|
23
|
-
/**
|
|
24
|
-
* @default executionPhase = render
|
|
25
|
-
*/
|
|
26
|
-
options?: {
|
|
8
|
+
export default function useExecuteOnce<T>(factory: () => T, options?: {
|
|
27
9
|
executionPhase: ExecutionPhaseType[] | ExecutionPhaseType;
|
|
28
10
|
}): T | null;
|
|
29
11
|
export {};
|
|
30
|
-
//# sourceMappingURL=useExecuteOnce.d.ts.map
|
|
@@ -4,18 +4,6 @@ type CallBackFN<T> = (value: T) => void;
|
|
|
4
4
|
type RefState<T> = RefObject<{
|
|
5
5
|
data: T;
|
|
6
6
|
}>;
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
* @demo
|
|
10
|
-
* ```
|
|
11
|
-
const [data, setData, dataRef] = useState(0);
|
|
12
|
-
|
|
13
|
-
setData(1, (newData) => {
|
|
14
|
-
// newData 1
|
|
15
|
-
// data 0
|
|
16
|
-
})
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
7
|
export default function useRefState<S>(initialState: S | (() => S)): [
|
|
20
8
|
S,
|
|
21
9
|
SetState<S>,
|
|
@@ -27,4 +15,3 @@ export default function useRefState<S = undefined>(): [
|
|
|
27
15
|
RefState<S | undefined>
|
|
28
16
|
];
|
|
29
17
|
export {};
|
|
30
|
-
//# sourceMappingURL=useRefState.d.ts.map
|
|
@@ -3,15 +3,7 @@ export type WatchCompare<T> = (value: T, prevValue: T) => boolean;
|
|
|
3
3
|
export type WatchCompareType = 'identity' | 'shallow';
|
|
4
4
|
export type WatchSelector<TSource, TValue> = (source: TSource) => TValue;
|
|
5
5
|
export type UseWatchOptions<T> = {
|
|
6
|
-
/**
|
|
7
|
-
* @default false
|
|
8
|
-
*/
|
|
9
6
|
immediate?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Return true when the two values should be treated as equal.
|
|
12
|
-
*
|
|
13
|
-
* @default Array values use shallow compare, other values use Object.is.
|
|
14
|
-
*/
|
|
15
7
|
compare?: WatchCompareType | WatchCompare<T>;
|
|
16
8
|
};
|
|
17
9
|
export declare const identityCompare: <T>(value: T, prevValue: T) => boolean;
|
|
@@ -20,4 +12,3 @@ export declare const defaultCompare: <T>(value: T, prevValue: T) => boolean;
|
|
|
20
12
|
export declare function useWatch<T>(value: T, callback: WatchCallback<T>, options?: UseWatchOptions<T>): void;
|
|
21
13
|
export declare function useWatch<TSource, TValue>(source: TSource, selector: WatchSelector<TSource, TValue>, callback: WatchCallback<TValue>, options?: UseWatchOptions<TValue>): void;
|
|
22
14
|
export default useWatch;
|
|
23
|
-
//# sourceMappingURL=useWatch.d.ts.map
|
|
@@ -3,56 +3,22 @@ export type ButtonVariant = 'default' | 'primary' | 'dashed' | 'text' | 'link';
|
|
|
3
3
|
export type ButtonState = 'danger' | 'ghost';
|
|
4
4
|
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
5
5
|
type ButtonCommonProps = {
|
|
6
|
-
/**
|
|
7
|
-
* 按钮尺寸
|
|
8
|
-
* @default 'md'
|
|
9
|
-
*/
|
|
10
6
|
size?: ButtonSize;
|
|
11
|
-
/**
|
|
12
|
-
* 按钮状态
|
|
13
|
-
*/
|
|
14
7
|
state?: ButtonState;
|
|
15
|
-
/**
|
|
16
|
-
* 是否禁用
|
|
17
|
-
*/
|
|
18
8
|
disabled?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* 是否显示加载状态
|
|
21
|
-
*/
|
|
22
9
|
loading?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* 左侧图标
|
|
25
|
-
*/
|
|
26
10
|
leftIcon?: ReactNode;
|
|
27
|
-
/**
|
|
28
|
-
* 右侧图标
|
|
29
|
-
*/
|
|
30
11
|
rightIcon?: ReactNode;
|
|
31
|
-
/**
|
|
32
|
-
* 是否去除下划线(仅对 variant="link" 有效)
|
|
33
|
-
* @default false
|
|
34
|
-
*/
|
|
35
12
|
noUnderline?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* 作为子元素,用于更灵活的布局
|
|
38
|
-
*/
|
|
39
13
|
children?: ReactNode;
|
|
40
14
|
};
|
|
41
15
|
type ButtonElementVariant = Exclude<ButtonVariant, 'link'>;
|
|
42
16
|
export type ButtonProps = ButtonElementProps | ButtonLinkProps;
|
|
43
17
|
export type ButtonElementProps = ButtonCommonProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'disabled'> & {
|
|
44
|
-
/**
|
|
45
|
-
* 按钮变体
|
|
46
|
-
* @default 'default'
|
|
47
|
-
*/
|
|
48
18
|
variant?: ButtonElementVariant;
|
|
49
19
|
};
|
|
50
20
|
export type ButtonLinkProps = ButtonCommonProps & AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
51
|
-
/**
|
|
52
|
-
* 链接变体,渲染为 a 标签
|
|
53
|
-
*/
|
|
54
21
|
variant: 'link';
|
|
55
22
|
};
|
|
56
23
|
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
57
24
|
export { Button };
|
|
58
|
-
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -3,11 +3,6 @@ import { type ButtonElementProps } from "./Button";
|
|
|
3
3
|
export type SubmitButtonProps = MOmit<ButtonElementProps, 'onClick'> & {
|
|
4
4
|
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void | boolean> | void;
|
|
5
5
|
};
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* 会自动添加loading 其余同button一致
|
|
9
|
-
*/
|
|
10
6
|
declare const SubmitButton: (props: SubmitButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
7
|
declare const AsynchronousButton: (props: SubmitButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
8
|
export { AsynchronousButton, SubmitButton };
|
|
13
|
-
//# sourceMappingURL=SubmitButton.d.ts.map
|
|
@@ -4,12 +4,7 @@ export type CardProps = {
|
|
|
4
4
|
footer?: ReactNode;
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
className?: string;
|
|
7
|
-
/**
|
|
8
|
-
* 是否启用 hover 悬浮阴影
|
|
9
|
-
* @default true
|
|
10
|
-
*/
|
|
11
7
|
hoverable?: boolean;
|
|
12
8
|
};
|
|
13
9
|
declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
10
|
export { Card };
|
|
15
|
-
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
export interface ConfirmDialogProps {
|
|
2
|
-
/** 是否显示 */
|
|
3
2
|
open: boolean;
|
|
4
|
-
/** 标题 */
|
|
5
3
|
title?: string;
|
|
6
|
-
/** 内容 */
|
|
7
4
|
content: string;
|
|
8
|
-
/** 确认按钮文本 */
|
|
9
5
|
okText?: string;
|
|
10
|
-
/** 取消按钮文本 */
|
|
11
6
|
cancelText?: string;
|
|
12
|
-
/** 确认按钮加载状态 */
|
|
13
7
|
loading?: boolean;
|
|
14
|
-
/** 确认回调 */
|
|
15
8
|
onOk: () => void | Promise<void>;
|
|
16
|
-
/** 取消回调 */
|
|
17
9
|
onCancel: () => void;
|
|
18
10
|
}
|
|
19
11
|
export declare function ConfirmDialog({ open, title, content, okText, cancelText, loading, onOk, onCancel, }: ConfirmDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
//# sourceMappingURL=ConfirmDialog.d.ts.map
|
|
@@ -11,25 +11,10 @@ type DataTableActionColumnOptions<T> = {
|
|
|
11
11
|
};
|
|
12
12
|
type TableColumnDef<T = Record<string, unknown>> = ColumnDef<T> & DataTableActionColumnOptions<T>;
|
|
13
13
|
type RowSelection<T> = {
|
|
14
|
-
/**
|
|
15
|
-
* 受控用法:完全由外部维护选中 keys
|
|
16
|
-
*/
|
|
17
14
|
selectedRowKeys?: Array<string | number>;
|
|
18
|
-
/**
|
|
19
|
-
* 非受控用法:仅作为初始值,后续由内部维护
|
|
20
|
-
*/
|
|
21
15
|
defaultSelectedRowKeys?: Array<string | number>;
|
|
22
|
-
/**
|
|
23
|
-
* 选中项变化回调(受控/非受控都会触发)
|
|
24
|
-
*/
|
|
25
16
|
onChange?: (selectedRowKeys: Array<string | number>, selectedRows: T[], isAll: boolean) => void;
|
|
26
|
-
/**
|
|
27
|
-
* 全选 受控
|
|
28
|
-
*/
|
|
29
17
|
isAll?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* theader checkbox
|
|
32
|
-
*/
|
|
33
18
|
beforeCheckboxNode?: ReactNode;
|
|
34
19
|
};
|
|
35
20
|
interface DataTableProps<T = Record<string, unknown>> {
|
|
@@ -39,14 +24,9 @@ interface DataTableProps<T = Record<string, unknown>> {
|
|
|
39
24
|
rowSelection?: RowSelection<T>;
|
|
40
25
|
pagination?: PaginationProps;
|
|
41
26
|
loading?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* 统一配置 column width 默认100px
|
|
44
|
-
* 会被columns[number].width覆盖
|
|
45
|
-
*/
|
|
46
27
|
defaultColumnWidth?: number;
|
|
47
28
|
}
|
|
48
29
|
export declare function DataTable<T = Record<string, unknown>>({ columns, data: pData, loading, rowKey, rowSelection, defaultColumnWidth, pagination: pPagination, }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
49
30
|
export { ActionBtn } from "./ActionBtn";
|
|
50
31
|
export type { ActionBtnProps } from "./ActionBtn";
|
|
51
32
|
export type { DataTableProps, RowSelection, TableColumnDef };
|
|
52
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,13 +5,7 @@ export type DateRange = {
|
|
|
5
5
|
to?: Date | undefined;
|
|
6
6
|
};
|
|
7
7
|
export type QuickRangePreset = {
|
|
8
|
-
/**
|
|
9
|
-
* 展示文案
|
|
10
|
-
*/
|
|
11
8
|
label: string;
|
|
12
|
-
/**
|
|
13
|
-
* 返回一个范围对象
|
|
14
|
-
*/
|
|
15
9
|
getRange: () => DateRange;
|
|
16
10
|
};
|
|
17
11
|
export interface CalendarProps {
|
|
@@ -21,15 +15,7 @@ export interface CalendarProps {
|
|
|
21
15
|
disabledDate?: (date: Date) => boolean;
|
|
22
16
|
showTime?: boolean;
|
|
23
17
|
className?: string;
|
|
24
|
-
/**
|
|
25
|
-
* 自定义文案配置,会覆盖默认文案
|
|
26
|
-
*/
|
|
27
18
|
locale?: Partial<DateLocaleConfig>;
|
|
28
|
-
/**
|
|
29
|
-
* 范围模式下的快捷选择配置
|
|
30
|
-
* 不传则使用默认预设
|
|
31
|
-
*/
|
|
32
19
|
quickRanges?: QuickRangePreset[];
|
|
33
20
|
}
|
|
34
21
|
export declare function Calendar({ mode, value, onChange, disabledDate, showTime, className, locale: customLocale, quickRanges, }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
//# sourceMappingURL=Calendar.d.ts.map
|
|
@@ -9,9 +9,6 @@ export type DatePickerProps = {
|
|
|
9
9
|
mode?: ModeType;
|
|
10
10
|
value?: DateValue;
|
|
11
11
|
defaultValue?: DateValue;
|
|
12
|
-
/**
|
|
13
|
-
* @default 'yyyy-MM-dd'
|
|
14
|
-
*/
|
|
15
12
|
format?: string;
|
|
16
13
|
placeholder?: string;
|
|
17
14
|
disabled?: boolean;
|
|
@@ -20,19 +17,10 @@ export type DatePickerProps = {
|
|
|
20
17
|
onChange?: (value?: DateChangeStrValue, date?: Dates) => void;
|
|
21
18
|
disabledDate?: (current: Date) => boolean;
|
|
22
19
|
className?: string;
|
|
23
|
-
/**
|
|
24
|
-
* 自定义文案配置,会覆盖默认文案
|
|
25
|
-
*/
|
|
26
20
|
locale?: Partial<DateLocaleConfig>;
|
|
27
|
-
/**
|
|
28
|
-
* 范围模式下的快捷选择配置
|
|
29
|
-
* 不传则使用默认预设
|
|
30
|
-
*/
|
|
31
21
|
quickRanges?: QuickRangePreset[];
|
|
32
|
-
/** 自定义弹出容器,不传则默认挂载到 document.body */
|
|
33
22
|
getPopupContainer?: () => HTMLElement;
|
|
34
23
|
};
|
|
35
24
|
declare const DatePicker: import("react").ForwardRefExoticComponent<DatePickerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
36
25
|
export { DatePicker };
|
|
37
26
|
export type { DateRange };
|
|
38
|
-
//# sourceMappingURL=Date.d.ts.map
|
|
@@ -4,16 +4,4 @@ export interface DateLocaleProviderProps {
|
|
|
4
4
|
locale?: DateLocaleConfig;
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
}
|
|
7
|
-
/**
|
|
8
|
-
* Date 组件文案配置 Provider
|
|
9
|
-
* 用于全局设置 Date 组件的文案
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* <DateLocaleProvider locale={customLocale}>
|
|
14
|
-
* <App />
|
|
15
|
-
* </DateLocaleProvider>
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
7
|
export declare function DateLocaleProvider({ locale, children }: DateLocaleProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
//# sourceMappingURL=LocaleProvider.d.ts.map
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import { type DateLocaleConfig } from "./locales";
|
|
2
2
|
type DateLocaleState = {
|
|
3
3
|
locale: DateLocaleConfig;
|
|
4
|
-
/**
|
|
5
|
-
* Merge partial updates into the current locale.
|
|
6
|
-
*/
|
|
7
4
|
setLocale: (patch: Partial<DateLocaleConfig>) => void;
|
|
8
|
-
/**
|
|
9
|
-
* Replace the locale entirely.
|
|
10
|
-
*/
|
|
11
5
|
replaceLocale: (nextLocale: DateLocaleConfig) => void;
|
|
12
6
|
resetLocale: () => void;
|
|
13
7
|
};
|
|
14
8
|
export declare const useDateLocaleStore: import("zustand").UseBoundStore<import("zustand").StoreApi<DateLocaleState>>;
|
|
15
9
|
export {};
|
|
16
|
-
//# sourceMappingURL=dateLocaleStore.d.ts.map
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Date 组件文案配置
|
|
3
|
-
* 支持外部修改文案内容
|
|
4
|
-
*/
|
|
5
1
|
export interface DateLocaleConfig {
|
|
6
2
|
placeholder: string;
|
|
7
3
|
placeholderDateTime: string;
|
|
@@ -13,13 +9,7 @@ export interface DateLocaleConfig {
|
|
|
13
9
|
endTime: string;
|
|
14
10
|
confirm: string;
|
|
15
11
|
monthFormat: string;
|
|
16
|
-
/**
|
|
17
|
-
* 范围模式 - 快捷选择面板标题
|
|
18
|
-
*/
|
|
19
12
|
quickRanges: string;
|
|
20
|
-
/**
|
|
21
|
-
* 范围模式 - 各快捷范围文案
|
|
22
|
-
*/
|
|
23
13
|
quickRangeToday: string;
|
|
24
14
|
quickRangeYesterday: string;
|
|
25
15
|
quickRangeLast7Days: string;
|
|
@@ -28,16 +18,6 @@ export interface DateLocaleConfig {
|
|
|
28
18
|
quickRangeLastYear: string;
|
|
29
19
|
clear: string;
|
|
30
20
|
}
|
|
31
|
-
/**
|
|
32
|
-
* 默认中文文案
|
|
33
|
-
*/
|
|
34
21
|
export declare const zhCNLocale: DateLocaleConfig;
|
|
35
|
-
/**
|
|
36
|
-
* 默认英文文案
|
|
37
|
-
*/
|
|
38
22
|
export declare const enUSLocale: DateLocaleConfig;
|
|
39
|
-
/**
|
|
40
|
-
* 默认使用中文文案
|
|
41
|
-
*/
|
|
42
23
|
export declare const defaultLocale: DateLocaleConfig;
|
|
43
|
-
//# sourceMappingURL=locales.d.ts.map
|
|
@@ -16,14 +16,7 @@ export type DrawerProps = {
|
|
|
16
16
|
width?: number | string;
|
|
17
17
|
height?: number | string;
|
|
18
18
|
zIndex?: number;
|
|
19
|
-
/**
|
|
20
|
-
* @default document.body
|
|
21
|
-
*/
|
|
22
19
|
renderNode?: HTMLElement | (() => HTMLElement);
|
|
23
|
-
/**
|
|
24
|
-
* 是否支持键盘关闭 默认开启
|
|
25
|
-
*/
|
|
26
20
|
keyboard?: boolean;
|
|
27
21
|
};
|
|
28
22
|
export declare function Drawer({ open, onClose, title, children, footer, className, contentClassName, mask, maskClosable, lockScroll, closable, placement, width, height, renderNode, keyboard, zIndex, }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -19,8 +19,6 @@ export interface DropdownProps {
|
|
|
19
19
|
children: ReactNode;
|
|
20
20
|
className?: string;
|
|
21
21
|
placement?: DropdownPlacement;
|
|
22
|
-
/** 自定义弹出容器,不传则默认挂载到 document.body */
|
|
23
22
|
getPopupContainer?: () => HTMLElement;
|
|
24
23
|
}
|
|
25
24
|
export declare function Dropdown({ items, children, className, placement, getPopupContainer }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
//# sourceMappingURL=Dropdown.d.ts.map
|