@_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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const ANSI_RESET = "\u001B[0m";
|
|
2
|
+
export declare const ansiColors: {
|
|
3
|
+
readonly black: "\u001B[30m";
|
|
4
|
+
readonly red: "\u001B[31m";
|
|
5
|
+
readonly green: "\u001B[32m";
|
|
6
|
+
readonly yellow: "\u001B[33m";
|
|
7
|
+
readonly blue: "\u001B[34m";
|
|
8
|
+
readonly magenta: "\u001B[35m";
|
|
9
|
+
readonly pink: "\u001B[95m";
|
|
10
|
+
readonly cyan: "\u001B[36m";
|
|
11
|
+
readonly white: "\u001B[37m";
|
|
12
|
+
readonly gray: "\u001B[90m";
|
|
13
|
+
};
|
|
14
|
+
export type LogColor = keyof typeof ansiColors;
|
|
15
|
+
export type ColorLogOptions = {
|
|
16
|
+
color?: LogColor;
|
|
17
|
+
prefix?: string;
|
|
18
|
+
suffix?: string;
|
|
19
|
+
};
|
|
20
|
+
export type ColorLogAffixes = Omit<ColorLogOptions, 'color'>;
|
|
21
|
+
export declare const colorize: (message: unknown, color?: LogColor) => string;
|
|
22
|
+
export declare const joinColorized: (...messages: readonly unknown[]) => string;
|
|
23
|
+
export declare const logJoinColorized: (...messages: readonly unknown[]) => void;
|
|
24
|
+
export declare function colorLog(color: LogColor, ...data: unknown[]): void;
|
|
25
|
+
export declare function colorLog(...data: unknown[]): void;
|
|
26
|
+
export declare const logColor: (color: LogColor, ...data: unknown[]) => void;
|
|
27
|
+
export declare const logColorized: (...messages: readonly unknown[]) => void;
|
|
28
|
+
export declare const logGreen: (...data: unknown[]) => void;
|
|
29
|
+
export declare const logYellow: (...data: unknown[]) => void;
|
|
30
|
+
export declare const logPink: (...data: unknown[]) => void;
|
|
31
|
+
export declare const logWhite: (...data: unknown[]) => void;
|
|
32
|
+
export declare const logRed: (...data: unknown[]) => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from "./filterEmpty";
|
|
2
|
+
export declare const pick: <T extends object, K extends keyof T>(target: T, keys: readonly K[]) => Pick<T, K>;
|
|
3
|
+
export declare const omit: <T extends object, K extends keyof T>(target: T, keys: readonly K[]) => Omit<T, K>;
|
|
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; };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const useBreadcrumb: import("zustand").UseBoundStore<import("zustand").StoreApi<{
|
|
2
|
+
items: import("../../../../fe/packages/react/ui/index").BreadcrumbItemData[];
|
|
3
|
+
} & {
|
|
4
|
+
setItems: (items: import("../../../../fe/packages/react/ui/index").BreadcrumbItemData[]) => void;
|
|
5
|
+
addItem: (item: import("../../../../fe/packages/react/ui/index").BreadcrumbItemData) => void;
|
|
6
|
+
removeItem: (id: string | number) => void;
|
|
7
|
+
clearItems: () => void;
|
|
8
|
+
setActiveItem: (id: string | number) => void;
|
|
9
|
+
}>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const executionPhaseType: {
|
|
2
|
+
readonly mount: "mount";
|
|
3
|
+
readonly render: "render";
|
|
4
|
+
readonly unMount: "unMount";
|
|
5
|
+
};
|
|
6
|
+
type ExecutionPhaseTypeKeys = keyof typeof executionPhaseType;
|
|
7
|
+
export type ExecutionPhaseType = (typeof executionPhaseType)[ExecutionPhaseTypeKeys];
|
|
8
|
+
export default function useExecuteOnce<T>(factory: () => T, options?: {
|
|
9
|
+
executionPhase: ExecutionPhaseType[] | ExecutionPhaseType;
|
|
10
|
+
}): T | null;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useLanguage(): import("../../../../fe/packages/react/ui/index").I18nStore;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export type ButtonVariant = 'default' | 'primary' | 'dashed' | 'text' | 'link';
|
|
3
|
+
export type ButtonState = 'danger' | 'ghost';
|
|
4
|
+
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
type ButtonCommonProps = {
|
|
6
|
+
size?: ButtonSize;
|
|
7
|
+
state?: ButtonState;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
leftIcon?: ReactNode;
|
|
11
|
+
rightIcon?: ReactNode;
|
|
12
|
+
noUnderline?: boolean;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
};
|
|
15
|
+
type ButtonElementVariant = Exclude<ButtonVariant, 'link'>;
|
|
16
|
+
export type ButtonProps = ButtonElementProps | ButtonLinkProps;
|
|
17
|
+
export type ButtonElementProps = ButtonCommonProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'disabled'> & {
|
|
18
|
+
variant?: ButtonElementVariant;
|
|
19
|
+
};
|
|
20
|
+
export type ButtonLinkProps = ButtonCommonProps & AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
21
|
+
variant: 'link';
|
|
22
|
+
};
|
|
23
|
+
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
24
|
+
export { Button };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { MOmit } from "../../../../../../fe/packages/react/ui/types/index";
|
|
2
|
+
import { type ButtonElementProps } from "./Button";
|
|
3
|
+
export type SubmitButtonProps = MOmit<ButtonElementProps, 'onClick'> & {
|
|
4
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void | boolean> | void;
|
|
5
|
+
};
|
|
6
|
+
declare const SubmitButton: (props: SubmitButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const AsynchronousButton: (props: SubmitButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { AsynchronousButton, SubmitButton };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type CardProps = {
|
|
3
|
+
header?: ReactNode;
|
|
4
|
+
footer?: ReactNode;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
hoverable?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export { Card };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Card";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ChangeEvent, InputHTMLAttributes } from "react";
|
|
2
|
+
export type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> & {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
defaultChecked?: boolean;
|
|
5
|
+
indeterminate?: boolean;
|
|
6
|
+
onChange?: (checked: boolean, e: ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
+
value?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "onChange"> & {
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
defaultChecked?: boolean;
|
|
12
|
+
indeterminate?: boolean;
|
|
13
|
+
onChange?: (checked: boolean, e: ChangeEvent<HTMLInputElement>) => void;
|
|
14
|
+
value?: boolean;
|
|
15
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
16
|
+
export { Checkbox };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Checkbox";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ConfirmDialogProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
content: string;
|
|
5
|
+
okText?: string;
|
|
6
|
+
cancelText?: string;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
onOk: () => void | Promise<void>;
|
|
9
|
+
onCancel: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function ConfirmDialog({ open, title, content, okText, cancelText, loading, onOk, onCancel, }: ConfirmDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ConfirmDialog";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type DropdownItem } from "../Dropdown";
|
|
2
|
+
export type ActionOverflow = 'auto' | 'dropdown' | 'inline';
|
|
3
|
+
export interface ActionBtnProps {
|
|
4
|
+
actions: DropdownItem[];
|
|
5
|
+
overflow?: ActionOverflow;
|
|
6
|
+
}
|
|
7
|
+
export declare const ActionBtn: ({ actions, overflow }: ActionBtnProps) => import("react/jsx-runtime").JSX.Element | "-";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { DropdownItem } from "../Dropdown";
|
|
3
|
+
import { type PaginationProps } from "../Pagination";
|
|
4
|
+
import { type TableFixed } from "../table";
|
|
5
|
+
import type { ColumnDef } from "../types/baseType";
|
|
6
|
+
import { type ActionOverflow } from "./ActionBtn";
|
|
7
|
+
type DataTableActionColumnOptions<T> = {
|
|
8
|
+
actions?: DropdownItem[] | ((value: unknown, record: T, index: number) => DropdownItem[]);
|
|
9
|
+
actionOverflow?: ActionOverflow;
|
|
10
|
+
fixed?: TableFixed;
|
|
11
|
+
};
|
|
12
|
+
type TableColumnDef<T = Record<string, unknown>> = ColumnDef<T> & DataTableActionColumnOptions<T>;
|
|
13
|
+
type RowSelection<T> = {
|
|
14
|
+
selectedRowKeys?: Array<string | number>;
|
|
15
|
+
defaultSelectedRowKeys?: Array<string | number>;
|
|
16
|
+
onChange?: (selectedRowKeys: Array<string | number>, selectedRows: T[], isAll: boolean) => void;
|
|
17
|
+
isAll?: boolean;
|
|
18
|
+
beforeCheckboxNode?: ReactNode;
|
|
19
|
+
};
|
|
20
|
+
interface DataTableProps<T = Record<string, unknown>> {
|
|
21
|
+
columns: TableColumnDef<T>[];
|
|
22
|
+
data: T[];
|
|
23
|
+
rowKey?: keyof T | ((record: T, index: number) => string | number);
|
|
24
|
+
rowSelection?: RowSelection<T>;
|
|
25
|
+
pagination?: PaginationProps;
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
defaultColumnWidth?: number;
|
|
28
|
+
}
|
|
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;
|
|
30
|
+
export { ActionBtn } from "./ActionBtn";
|
|
31
|
+
export type { ActionBtnProps } from "./ActionBtn";
|
|
32
|
+
export type { DataTableProps, RowSelection, TableColumnDef };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ModeType } from "./data";
|
|
2
|
+
import { type DateLocaleConfig } from "./locales";
|
|
3
|
+
export type DateRange = {
|
|
4
|
+
from: Date | undefined;
|
|
5
|
+
to?: Date | undefined;
|
|
6
|
+
};
|
|
7
|
+
export type QuickRangePreset = {
|
|
8
|
+
label: string;
|
|
9
|
+
getRange: () => DateRange;
|
|
10
|
+
};
|
|
11
|
+
export interface CalendarProps {
|
|
12
|
+
mode?: ModeType;
|
|
13
|
+
value?: Date | DateRange | null;
|
|
14
|
+
onChange?: (date: Date | DateRange) => void;
|
|
15
|
+
disabledDate?: (date: Date) => boolean;
|
|
16
|
+
showTime?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
locale?: Partial<DateLocaleConfig>;
|
|
19
|
+
quickRanges?: QuickRangePreset[];
|
|
20
|
+
}
|
|
21
|
+
export declare function Calendar({ mode, value, onChange, disabledDate, showTime, className, locale: customLocale, quickRanges, }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type DateRange, type QuickRangePreset } from "./Calendar";
|
|
2
|
+
import { ModeType } from "./data";
|
|
3
|
+
import { type DateLocaleConfig } from "./locales";
|
|
4
|
+
export type DateChangeStrValue = [string, string] | string;
|
|
5
|
+
type DateBaseValue = Date | DateRange;
|
|
6
|
+
type Dates = DateBaseValue | [Date, Date];
|
|
7
|
+
export type DateValue = Dates | DateChangeStrValue;
|
|
8
|
+
export type DatePickerProps = {
|
|
9
|
+
mode?: ModeType;
|
|
10
|
+
value?: DateValue;
|
|
11
|
+
defaultValue?: DateValue;
|
|
12
|
+
format?: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
allowClear?: boolean;
|
|
16
|
+
showTime?: boolean;
|
|
17
|
+
onChange?: (value?: DateChangeStrValue, date?: Dates) => void;
|
|
18
|
+
disabledDate?: (current: Date) => boolean;
|
|
19
|
+
className?: string;
|
|
20
|
+
locale?: Partial<DateLocaleConfig>;
|
|
21
|
+
quickRanges?: QuickRangePreset[];
|
|
22
|
+
getPopupContainer?: () => HTMLElement;
|
|
23
|
+
};
|
|
24
|
+
declare const DatePicker: import("react").ForwardRefExoticComponent<DatePickerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export { DatePicker };
|
|
26
|
+
export type { DateRange };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDateLocale: () => import("./locales").DateLocaleConfig;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type DateLocaleConfig } from "./locales";
|
|
3
|
+
export interface DateLocaleProviderProps {
|
|
4
|
+
locale?: DateLocaleConfig;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function DateLocaleProvider({ locale, children }: DateLocaleProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type DateLocaleConfig } from "./locales";
|
|
2
|
+
type DateLocaleState = {
|
|
3
|
+
locale: DateLocaleConfig;
|
|
4
|
+
setLocale: (patch: Partial<DateLocaleConfig>) => void;
|
|
5
|
+
replaceLocale: (nextLocale: DateLocaleConfig) => void;
|
|
6
|
+
resetLocale: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const useDateLocaleStore: import("zustand").UseBoundStore<import("zustand").StoreApi<DateLocaleState>>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface DateLocaleConfig {
|
|
2
|
+
placeholder: string;
|
|
3
|
+
placeholderDateTime: string;
|
|
4
|
+
placeholderRange: string;
|
|
5
|
+
placeholderDateTimeRange: string;
|
|
6
|
+
weekDays: string[];
|
|
7
|
+
selectTime: string;
|
|
8
|
+
startTime: string;
|
|
9
|
+
endTime: string;
|
|
10
|
+
confirm: string;
|
|
11
|
+
monthFormat: string;
|
|
12
|
+
quickRanges: string;
|
|
13
|
+
quickRangeToday: string;
|
|
14
|
+
quickRangeYesterday: string;
|
|
15
|
+
quickRangeLast7Days: string;
|
|
16
|
+
quickRangeLast30Days: string;
|
|
17
|
+
quickRangeThisMonth: string;
|
|
18
|
+
quickRangeLastYear: string;
|
|
19
|
+
clear: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const zhCNLocale: DateLocaleConfig;
|
|
22
|
+
export declare const enUSLocale: DateLocaleConfig;
|
|
23
|
+
export declare const defaultLocale: DateLocaleConfig;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type DrawerPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
3
|
+
export type DrawerProps = {
|
|
4
|
+
open?: boolean;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
footer?: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
contentClassName?: string;
|
|
11
|
+
mask?: boolean;
|
|
12
|
+
maskClosable?: boolean;
|
|
13
|
+
lockScroll?: boolean;
|
|
14
|
+
closable?: boolean;
|
|
15
|
+
placement?: DrawerPlacement;
|
|
16
|
+
width?: number | string;
|
|
17
|
+
height?: number | string;
|
|
18
|
+
zIndex?: number;
|
|
19
|
+
renderNode?: HTMLElement | (() => HTMLElement);
|
|
20
|
+
keyboard?: boolean;
|
|
21
|
+
};
|
|
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;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type DropdownPlacement } from "../hooks/useDropdownPositioning";
|
|
3
|
+
export interface DropdownBaseItem {
|
|
4
|
+
key: string;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
danger?: boolean;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export interface DropdownRenderItem {
|
|
11
|
+
render: (item: DropdownRenderItem, context: {
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
close: () => void;
|
|
14
|
+
}) => ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export type DropdownItem = Omit<DropdownBaseItem, 'render'> | DropdownRenderItem;
|
|
17
|
+
export interface DropdownProps {
|
|
18
|
+
items: DropdownItem[];
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
className?: string;
|
|
21
|
+
placement?: DropdownPlacement;
|
|
22
|
+
getPopupContainer?: () => HTMLElement;
|
|
23
|
+
}
|
|
24
|
+
export declare function Dropdown({ items, children, className, placement, getPopupContainer }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Dropdown";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FormProps as RcFormProps } from "rc-field-form";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export interface FormProps<T> extends Omit<RcFormProps<T>, 'component'> {
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare const Form: {
|
|
8
|
+
<T extends object>({ className, children, ...props }: FormProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export { Form };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Field } from "rc-field-form";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import { type LabelLayout } from "../Label";
|
|
4
|
+
type FieldProps = Parameters<typeof Field>[0];
|
|
5
|
+
export interface FormItemProps<T = any> extends Omit<FieldProps, 'children'> {
|
|
6
|
+
className?: string;
|
|
7
|
+
label?: ReactNode;
|
|
8
|
+
labelClassName?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
children?: ReactNode | ((value: T, onChange: (value: T) => void, meta: {
|
|
11
|
+
errors: string[];
|
|
12
|
+
warnings: string[];
|
|
13
|
+
}) => ReactNode);
|
|
14
|
+
errorClassName?: string;
|
|
15
|
+
showError?: boolean;
|
|
16
|
+
layout?: Required<LabelLayout>['layout'];
|
|
17
|
+
}
|
|
18
|
+
declare const FormItem: <T>(props: FormItemProps<T>) => ReactNode | Promise<ReactNode>;
|
|
19
|
+
export { FormItem };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CheckboxProps } from "../../Checkbox";
|
|
3
|
+
import { type DatePickerProps } from "../../Date";
|
|
4
|
+
import { type InputProps } from "../../Input";
|
|
5
|
+
import { InputNumberProps } from "../../InputNumber";
|
|
6
|
+
import { type SelectProps } from "../../Select";
|
|
7
|
+
import { type SwitchProps } from "../../Switch";
|
|
8
|
+
import { type TextareaProps } from "../../Textarea";
|
|
9
|
+
export type SchemaFormComponentPropsMap = {
|
|
10
|
+
input: InputProps;
|
|
11
|
+
inputNumber: InputNumberProps;
|
|
12
|
+
select: SelectProps;
|
|
13
|
+
textarea: TextareaProps;
|
|
14
|
+
switch: SwitchProps;
|
|
15
|
+
date: DatePickerProps;
|
|
16
|
+
checkbox: CheckboxProps;
|
|
17
|
+
};
|
|
18
|
+
export type SchemaFormFieldType = keyof SchemaFormComponentPropsMap;
|
|
19
|
+
export declare namespace SchemaFormNamespace {
|
|
20
|
+
interface FieldTypes {
|
|
21
|
+
}
|
|
22
|
+
interface PropsMap {
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export type ExtendedFieldType = Extract<keyof SchemaFormNamespace.FieldTypes | keyof SchemaFormNamespace.PropsMap, string>;
|
|
26
|
+
export type SchemaFormAllFieldType = SchemaFormFieldType | ExtendedFieldType;
|
|
27
|
+
export type SchemaFormAllPropsMap = SchemaFormComponentPropsMap & SchemaFormNamespace.PropsMap;
|
|
28
|
+
export type SchemaFormComponent = React.ComponentType<any> | React.LazyExoticComponent<React.ComponentType<any>>;
|
|
29
|
+
export declare const componentsMap: Record<SchemaFormAllFieldType, SchemaFormComponent>;
|
|
30
|
+
export type SchemaFormComponentsMap = Partial<Record<ExtendedFieldType, SchemaFormComponent>>;
|
|
31
|
+
export type FieldProps = {
|
|
32
|
+
[K in SchemaFormAllFieldType]: {
|
|
33
|
+
type: K;
|
|
34
|
+
fieldProps?: K extends keyof SchemaFormAllPropsMap ? SchemaFormAllPropsMap[K] : unknown;
|
|
35
|
+
};
|
|
36
|
+
}[SchemaFormAllFieldType] | {
|
|
37
|
+
type?: 'input';
|
|
38
|
+
fieldProps?: InputProps;
|
|
39
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { MOmit } from "../../../../../../../fe/packages/react/ui/types/index";
|
|
2
|
+
import { type FormInstance } from "rc-field-form";
|
|
3
|
+
import type { Rule } from "rc-field-form/es/interface";
|
|
4
|
+
import { type ReactNode } from "react";
|
|
5
|
+
import { type FormProps } from "..";
|
|
6
|
+
import { type ButtonElementProps } from "../../Button";
|
|
7
|
+
import type { LabelLayout } from "../../Label";
|
|
8
|
+
import { type FieldProps, type SchemaFormAllFieldType } from "./data";
|
|
9
|
+
export type { FieldProps, SchemaFormAllFieldType, SchemaFormAllPropsMap, SchemaFormComponent, SchemaFormComponentsMap, SchemaFormComponentPropsMap, SchemaFormFieldType, SchemaFormNamespace, } from "./data";
|
|
10
|
+
export type FormFieldType = SchemaFormAllFieldType;
|
|
11
|
+
type BaseField<T> = {
|
|
12
|
+
[K in keyof T]: {
|
|
13
|
+
key: K | number | (K | number)[];
|
|
14
|
+
label?: ReactNode;
|
|
15
|
+
rules?: Rule[];
|
|
16
|
+
required?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
labelClassName?: string;
|
|
19
|
+
errorClassName?: string;
|
|
20
|
+
showError?: boolean;
|
|
21
|
+
render?: (value: T[K], onChange: (value: T[K]) => void, meta: {
|
|
22
|
+
errors: string[];
|
|
23
|
+
warnings: string[];
|
|
24
|
+
}) => ReactNode;
|
|
25
|
+
layout?: Required<LabelLayout>['layout'];
|
|
26
|
+
affterNode?: ReactNode;
|
|
27
|
+
};
|
|
28
|
+
}[keyof T];
|
|
29
|
+
type GroupField<T> = {
|
|
30
|
+
type: 'group';
|
|
31
|
+
childrens: FormFieldSchema<T>[];
|
|
32
|
+
fieldProps: React.HTMLAttributes<HTMLDivElement>;
|
|
33
|
+
} & BaseField<T>;
|
|
34
|
+
type NotGroupField<T> = FieldProps & BaseField<T>;
|
|
35
|
+
export type FormFieldSchema<T> = GroupField<T> | NotGroupField<T>;
|
|
36
|
+
export interface SchemaFormProps<T = object> extends MOmit<FormProps<T>, 'initialValues' | 'children' | 'preserve'> {
|
|
37
|
+
form?: FormInstance<T>;
|
|
38
|
+
getForm?: (formInstance: FormInstance<T>) => void;
|
|
39
|
+
schemas: FormFieldSchema<T>[];
|
|
40
|
+
className?: string;
|
|
41
|
+
onFinish?: (values: T) => void;
|
|
42
|
+
onFinishFailed?: (errorInfo: any) => void;
|
|
43
|
+
initialValues?: T;
|
|
44
|
+
layout?: Required<LabelLayout>['layout'];
|
|
45
|
+
fieldLayout?: Required<LabelLayout>['layout'];
|
|
46
|
+
footerButtons?: boolean | ReactNode;
|
|
47
|
+
submitText?: ReactNode;
|
|
48
|
+
cancelText?: ReactNode;
|
|
49
|
+
onCancel?: () => void;
|
|
50
|
+
buttonClassName?: string;
|
|
51
|
+
submitButtonProps?: Omit<ButtonElementProps, 'type' | 'onClick' | 'children'>;
|
|
52
|
+
cancelButtonProps?: Omit<ButtonElementProps, 'onClick' | 'children'>;
|
|
53
|
+
preserve?: boolean;
|
|
54
|
+
}
|
|
55
|
+
export declare const SchemaForm: {
|
|
56
|
+
<T extends object>({ form, getForm, schemas, className, onFinish, onFinishFailed, initialValues, footerButtons, submitText, cancelText, onCancel, buttonClassName, submitButtonProps, layout, fieldLayout, cancelButtonProps, ...formProps }: SchemaFormProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
displayName: string;
|
|
58
|
+
};
|
|
59
|
+
export default SchemaForm;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type ImagePreviewControllerProps = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
images: string[];
|
|
4
|
+
initialIndex?: number;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function ImagePreviewController({ open, images, initialIndex, onClose }: ImagePreviewControllerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MOmit } from "../../../../../../fe/packages/react/ui/types/index";
|
|
2
|
+
import { type ImagePreviewControllerProps } from "./ImagePreview";
|
|
3
|
+
export type PreviewImageProps = MOmit<ImagePreviewControllerProps, 'open' | 'onClose'> & Pick<Partial<ImagePreviewControllerProps>, 'onClose'> & {
|
|
4
|
+
thumbSize?: number | string;
|
|
5
|
+
direction?: 'horizontal' | 'vertical';
|
|
6
|
+
};
|
|
7
|
+
export declare function PreviewImage(props: PreviewImageProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ChangeEvent, InputHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'defaultValue'> & {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (v: string, e: ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
allowClear?: boolean | {
|
|
7
|
+
clearIcon: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
addonAfter?: ReactNode;
|
|
10
|
+
inputClassName?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const Input: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "defaultValue" | "onChange"> & {
|
|
13
|
+
value?: string;
|
|
14
|
+
onChange?: (v: string, e: ChangeEvent<HTMLInputElement>) => void;
|
|
15
|
+
defaultValue?: string;
|
|
16
|
+
allowClear?: boolean | {
|
|
17
|
+
clearIcon: ReactNode;
|
|
18
|
+
};
|
|
19
|
+
addonAfter?: ReactNode;
|
|
20
|
+
inputClassName?: string;
|
|
21
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
22
|
+
export { Input };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Input";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ChangeEvent, InputHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import { type InputNumberConstraints } from "./inputNumberUtils";
|
|
3
|
+
export type InputNumberProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'onChange' | 'step' | 'type' | 'value'> & InputNumberConstraints & {
|
|
4
|
+
value?: number;
|
|
5
|
+
defaultValue?: number;
|
|
6
|
+
onChange?: (value: number | undefined, e: ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
+
allowClear?: boolean | {
|
|
8
|
+
clearIcon: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
addonAfter?: ReactNode;
|
|
11
|
+
allowStep?: boolean;
|
|
12
|
+
inputClassName?: string;
|
|
13
|
+
};
|
|
14
|
+
declare const InputNumber: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "type" | "defaultValue" | "onChange" | "step"> & InputNumberConstraints & {
|
|
15
|
+
value?: number;
|
|
16
|
+
defaultValue?: number;
|
|
17
|
+
onChange?: (value: number | undefined, e: ChangeEvent<HTMLInputElement>) => void;
|
|
18
|
+
allowClear?: boolean | {
|
|
19
|
+
clearIcon: ReactNode;
|
|
20
|
+
};
|
|
21
|
+
addonAfter?: ReactNode;
|
|
22
|
+
allowStep?: boolean;
|
|
23
|
+
inputClassName?: string;
|
|
24
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
25
|
+
export { InputNumber };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./InputNumber";
|