fat-design 0.0.1-beta.20250809023342 → 0.0.1-beta.20250815054017

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.
Files changed (240) hide show
  1. package/index.browser.js +17 -17
  2. package/index.js +2352 -2340
  3. package/index.umd.cjs +16 -16
  4. package/index.umd.js +16 -16
  5. package/libs/config-16.js +7 -0
  6. package/libs/config-17.js +7 -0
  7. package/libs/config-18.js +9 -0
  8. package/libs/config-19.js +9 -0
  9. package/libs/theme/theme-blue1.css +59 -0
  10. package/libs/theme/theme-blue2.css +64 -0
  11. package/libs/theme/theme-blue3.css +74 -0
  12. package/libs/theme/theme-blue4.css +54 -0
  13. package/libs/theme/theme-default.css +61 -0
  14. package/libs/theme/theme-green.css +97 -0
  15. package/libs/theme/theme-orange.css +59 -0
  16. package/libs/theme/theme-pink.css +54 -0
  17. package/libs/theme/theme-purple.css +54 -0
  18. package/libs/theme/theme-red.css +56 -0
  19. package/package.json +2 -2
  20. package/types/0buildTypes/config-provider/constants.d.ts +3 -0
  21. package/types/0buildTypes/config-provider/index.d.ts +4 -0
  22. package/types/0buildTypes/config-provider/v2/consumer.d.ts +3 -0
  23. package/types/0buildTypes/config-provider/v2/context.d.ts +6 -0
  24. package/types/0buildTypes/config-provider/v2/error-boundary.d.ts +26 -0
  25. package/types/0buildTypes/config-provider/v2/functions.d.ts +65 -0
  26. package/types/0buildTypes/config-provider/v2/index.d.ts +36 -0
  27. package/types/0buildTypes/config-provider/v2/provider.d.ts +4 -0
  28. package/types/0buildTypes/config-provider/v2/types.d.ts +22 -0
  29. package/types/0buildTypes/dependencies.d.ts +2 -0
  30. package/types/0buildTypes/empty/empty.d.ts +22 -0
  31. package/types/0buildTypes/empty/index.d.ts +2 -0
  32. package/types/0buildTypes/filter/filter-types.d.ts +21 -0
  33. package/types/0buildTypes/filter/filter.d.ts +10 -0
  34. package/types/0buildTypes/filter/index.d.ts +9 -0
  35. package/types/0buildTypes/form2/deps.d.ts +10 -0
  36. package/types/0buildTypes/form2/form-actions.d.ts +36 -0
  37. package/types/0buildTypes/form2/form-buttons.d.ts +28 -0
  38. package/types/0buildTypes/form2/form-context.d.ts +4 -0
  39. package/types/0buildTypes/form2/form-error.d.ts +3 -0
  40. package/types/0buildTypes/form2/form-item-card.d.ts +4 -0
  41. package/types/0buildTypes/form2/form-item-comp.d.ts +4 -0
  42. package/types/0buildTypes/form2/form-item-label.d.ts +4 -0
  43. package/types/0buildTypes/form2/form-item-preview.d.ts +4 -0
  44. package/types/0buildTypes/form2/form-item.d.ts +7 -0
  45. package/types/0buildTypes/form2/form-layout.d.ts +3 -0
  46. package/types/0buildTypes/form2/form-rules.d.ts +3 -0
  47. package/types/0buildTypes/form2/form-section.d.ts +25 -0
  48. package/types/0buildTypes/form2/form-types.d.ts +390 -0
  49. package/types/0buildTypes/form2/form.d.ts +36 -0
  50. package/types/0buildTypes/form2/helper/buildParams.d.ts +5 -0
  51. package/types/0buildTypes/form2/helper/constants.d.ts +24 -0
  52. package/types/0buildTypes/form2/helper/fixItemProps.d.ts +16 -0
  53. package/types/0buildTypes/form2/helper/fnInheritProps.d.ts +2 -0
  54. package/types/0buildTypes/form2/helper/linkageFormState.d.ts +16 -0
  55. package/types/0buildTypes/form2/helper/useDataSource.d.ts +14 -0
  56. package/types/0buildTypes/form2/helper/useFormChildren.d.ts +5 -0
  57. package/types/0buildTypes/form2/helper/useFormItemState.d.ts +3 -0
  58. package/types/0buildTypes/form2/helper/useGetXProps.d.ts +3 -0
  59. package/types/0buildTypes/form2/index.d.ts +20 -0
  60. package/types/0buildTypes/form2/layout/from-float-layout.d.ts +3 -0
  61. package/types/0buildTypes/hooks/index.d.ts +16 -0
  62. package/types/0buildTypes/hooks/useCurrentState.d.ts +11 -0
  63. package/types/0buildTypes/hooks/useOnKeyPressSave.d.ts +12 -0
  64. package/types/0buildTypes/hooks/usePersistFn.d.ts +3 -0
  65. package/types/0buildTypes/hooks/usePreciseStore.d.ts +53 -0
  66. package/types/0buildTypes/hooks/useSize.d.ts +6 -0
  67. package/types/0buildTypes/hooks/useUniqueId.d.ts +2 -0
  68. package/types/0buildTypes/hooks/useValueOnChange.d.ts +2 -0
  69. package/types/0buildTypes/image/Image.d.ts +42 -0
  70. package/types/0buildTypes/image/Operations.d.ts +25 -0
  71. package/types/0buildTypes/image/Preview.d.ts +64 -0
  72. package/types/0buildTypes/image/PreviewGroup.d.ts +32 -0
  73. package/types/0buildTypes/image/common.d.ts +2 -0
  74. package/types/0buildTypes/image/context.d.ts +7 -0
  75. package/types/0buildTypes/image/getFixScaleEleTransPosition.d.ts +17 -0
  76. package/types/0buildTypes/image/hooks/useImageTransform.d.ts +28 -0
  77. package/types/0buildTypes/image/hooks/useMouseEvent.d.ts +9 -0
  78. package/types/0buildTypes/image/hooks/usePreviewItems.d.ts +7 -0
  79. package/types/0buildTypes/image/hooks/useRegisterImage.d.ts +2 -0
  80. package/types/0buildTypes/image/hooks/useStatus.d.ts +14 -0
  81. package/types/0buildTypes/image/hooks/useTouchEvent.d.ts +8 -0
  82. package/types/0buildTypes/image/index.d.ts +6 -0
  83. package/types/0buildTypes/image/interface.d.ts +14 -0
  84. package/types/0buildTypes/image/previewConfig.d.ts +4 -0
  85. package/types/0buildTypes/image/util.d.ts +1 -0
  86. package/types/0buildTypes/image/utils/KeyCode.d.ts +23 -0
  87. package/types/0buildTypes/image/utils/addEventListener.d.ts +4 -0
  88. package/types/0buildTypes/image/utils/buildIcons.d.ts +2 -0
  89. package/types/0buildTypes/image/utils/css.d.ts +8 -0
  90. package/types/0buildTypes/image/utils/isEqual.d.ts +8 -0
  91. package/types/0buildTypes/image/utils/raf.d.ts +6 -0
  92. package/types/0buildTypes/image/utils/useEvent.d.ts +1 -0
  93. package/types/0buildTypes/image/utils/useLayoutEffect.d.ts +4 -0
  94. package/types/0buildTypes/image/utils/useMergedState.d.ts +12 -0
  95. package/types/0buildTypes/image/utils/useSafeState.d.ts +14 -0
  96. package/types/0buildTypes/index.d.ts +4 -0
  97. package/types/0buildTypes/libs.d.ts +66 -0
  98. package/types/0buildTypes/nav/group.d.ts +29 -0
  99. package/types/0buildTypes/nav/index.d.ts +4 -0
  100. package/types/0buildTypes/nav/item.d.ts +29 -0
  101. package/types/0buildTypes/nav/nav.d.ts +2 -0
  102. package/types/0buildTypes/nav/popup-item.d.ts +23 -0
  103. package/types/0buildTypes/nav/sub-nav.d.ts +29 -0
  104. package/types/0buildTypes/nav/types.d.ts +375 -0
  105. package/types/0buildTypes/others.d.ts +10 -0
  106. package/types/0buildTypes/pages/deps.d.ts +5 -0
  107. package/types/0buildTypes/pages/detail-page/detail-page-card-form.d.ts +12 -0
  108. package/types/0buildTypes/pages/detail-page/detail-page-form-item.d.ts +9 -0
  109. package/types/0buildTypes/pages/detail-page/detail-page-section.d.ts +19 -0
  110. package/types/0buildTypes/pages/detail-page/detail-page-summary.d.ts +9 -0
  111. package/types/0buildTypes/pages/detail-page/detail-page.d.ts +14 -0
  112. package/types/0buildTypes/pages/detail-page/index.d.ts +2 -0
  113. package/types/0buildTypes/pages/detail-page/types.d.ts +29 -0
  114. package/types/0buildTypes/pages/page-card/types.d.ts +6 -0
  115. package/types/0buildTypes/previews/renderFileImage.d.ts +34 -0
  116. package/types/0buildTypes/query-form/index.d.ts +2 -0
  117. package/types/0buildTypes/query-form/query-form-items.d.ts +3 -0
  118. package/types/0buildTypes/query-form/query-form-layout.d.ts +2 -0
  119. package/types/0buildTypes/query-form/query-form.d.ts +17 -0
  120. package/types/0buildTypes/query-form/types.d.ts +5 -0
  121. package/types/0buildTypes/sortable-list/helpers.d.ts +8 -0
  122. package/types/0buildTypes/sortable-list/hooks.d.ts +24 -0
  123. package/types/0buildTypes/sortable-list/index.d.ts +14 -0
  124. package/types/0buildTypes/sortable-list/sortable-editable-table.d.ts +2 -0
  125. package/types/0buildTypes/sortable-list/sortable-list.d.ts +560 -0
  126. package/types/0buildTypes/sortable-list/sortable-table.d.ts +2 -0
  127. package/types/0buildTypes/sortable-list/types.d.ts +15 -0
  128. package/types/0buildTypes/table-pro/index.d.ts +26 -0
  129. package/types/0buildTypes/table-pro/table-pro.d.ts +17 -0
  130. package/types/0buildTypes/table-pro/types.d.ts +95 -0
  131. package/types/0buildTypes/table-pro/useTablePro.d.ts +10 -0
  132. package/types/0buildTypes/table-pro/utils/formatQueryRes.d.ts +1 -0
  133. package/types/0buildTypes/table-pro/widget/column-setting.d.ts +4 -0
  134. package/types/0buildTypes/table-pro/widget/deps.d.ts +2 -0
  135. package/types/0buildTypes/table-pro/widget/index.d.ts +25 -0
  136. package/types/0buildTypes/table-pro/widget/operations.d.ts +5 -0
  137. package/types/0buildTypes/table-pro/widget/operationsActions.d.ts +2 -0
  138. package/types/0buildTypes/table-pro/widget/renderFormats.d.ts +17 -0
  139. package/types/0buildTypes/table-pro/widget/renderMultiFieldCell.d.ts +4 -0
  140. package/types/0buildTypes/table-pro/widget/renderOperationCell.d.ts +4 -0
  141. package/types/0buildTypes/table-pro/widget/renderToolbar.d.ts +6 -0
  142. package/types/0buildTypes/table-pro/widget/table-utils-types.d.ts +40 -0
  143. package/types/0buildTypes/util/comp.d.ts +16 -0
  144. package/types/0buildTypes/util/component.d.ts +1 -0
  145. package/types/0buildTypes/util/constants.d.ts +4 -0
  146. package/types/0buildTypes/util/dom.d.ts +116 -0
  147. package/types/0buildTypes/util/env.d.ts +7 -0
  148. package/types/0buildTypes/util/func-wrapper.d.ts +1 -0
  149. package/types/0buildTypes/util/func.d.ts +73 -0
  150. package/types/0buildTypes/util/guid.d.ts +11 -0
  151. package/types/0buildTypes/util/isStateEquals.d.ts +4 -0
  152. package/types/0buildTypes/util/localforage.d.ts +11 -0
  153. package/types/0buildTypes/util/log.d.ts +18 -0
  154. package/types/0buildTypes/util/pick-res-data.d.ts +28 -0
  155. package/types/0buildTypes/util/react-dom.d.ts +27 -0
  156. package/types/0buildTypes/util/shallowEqual.d.ts +3 -0
  157. package/types/0buildTypes/util/string.d.ts +32 -0
  158. package/types/0buildTypes/util/tiny-emitter.d.ts +10 -0
  159. package/types/0buildTypes/util/toMap.d.ts +7 -0
  160. package/types/affix/index.d.ts +33 -0
  161. package/types/animate/index.d.ts +80 -0
  162. package/types/avatar/index.d.ts +41 -0
  163. package/types/badge/index.d.ts +38 -0
  164. package/types/balloon/index.d.ts +254 -0
  165. package/types/balloon-confirm/index.d.ts +78 -0
  166. package/types/batch-input/index.d.ts +152 -0
  167. package/types/box/index.d.ts +18 -0
  168. package/types/breadcrumb/index.d.ts +60 -0
  169. package/types/button/index.d.ts +179 -0
  170. package/types/calendar/index.d.ts +76 -0
  171. package/types/card/index.d.ts +147 -0
  172. package/types/cascader/index.d.ts +135 -0
  173. package/types/cascader-select/index.d.ts +230 -0
  174. package/types/checkbox/index.d.ts +175 -0
  175. package/types/collapse/index.d.ts +96 -0
  176. package/types/config-provider/index.d.ts +3 -0
  177. package/types/date-picker/index.d.ts +123 -0
  178. package/types/dialog/index.d.ts +328 -0
  179. package/types/divider/index.d.ts +21 -0
  180. package/types/drawer/index.d.ts +121 -0
  181. package/types/dropdown/index.d.ts +198 -0
  182. package/types/field/index.d.ts +33 -0
  183. package/types/filter/index.d.ts +2 -0
  184. package/types/form/index.d.ts +5 -0
  185. package/types/grid/index.d.ts +142 -0
  186. package/types/hooks/index.d.ts +2 -0
  187. package/types/icon/index.d.ts +29 -0
  188. package/types/image/index.d.ts +3 -0
  189. package/types/index.d.ts +67 -0
  190. package/types/input/index.d.ts +367 -0
  191. package/types/list/index.d.ts +69 -0
  192. package/types/loading/index.d.ts +100 -0
  193. package/types/locale/default.d.ts +143 -0
  194. package/types/locale/en-us.d.ts +1 -0
  195. package/types/locale/id-id.d.ts +1 -0
  196. package/types/locale/it-it.d.ts +1 -0
  197. package/types/locale/ja-jp.d.ts +1 -0
  198. package/types/locale/ko-kr.d.ts +1 -0
  199. package/types/locale/ms-my.d.ts +1 -0
  200. package/types/locale/pt-pt.d.ts +1 -0
  201. package/types/locale/th-th.d.ts +1 -0
  202. package/types/locale/vi-vn.d.ts +1 -0
  203. package/types/locale/zh-cn.d.ts +1 -0
  204. package/types/locale/zh-hk.d.ts +1 -0
  205. package/types/locale/zh-tw.d.ts +1 -0
  206. package/types/menu/index.d.ts +336 -0
  207. package/types/menu-button/index.d.ts +100 -0
  208. package/types/message/index.d.ts +164 -0
  209. package/types/nav/index.d.ts +313 -0
  210. package/types/notification/index.d.ts +35 -0
  211. package/types/number-picker/index.d.ts +161 -0
  212. package/types/overlay/index.d.ts +363 -0
  213. package/types/pagination/index.d.ts +115 -0
  214. package/types/paragraph/index.d.ts +23 -0
  215. package/types/progress/index.d.ts +53 -0
  216. package/types/query-form/index.d.ts +3 -0
  217. package/types/radio/index.d.ts +180 -0
  218. package/types/range/index.d.ts +120 -0
  219. package/types/rating/index.d.ts +84 -0
  220. package/types/responsive-grid/index.d.ts +30 -0
  221. package/types/search/index.d.ts +219 -0
  222. package/types/select/index.d.ts +479 -0
  223. package/types/shell/index.d.ts +53 -0
  224. package/types/slider/index.d.ts +172 -0
  225. package/types/split-button/index.d.ts +134 -0
  226. package/types/step/index.d.ts +108 -0
  227. package/types/switch/index.d.ts +85 -0
  228. package/types/tab/index.d.ts +170 -0
  229. package/types/table/index.d.ts +407 -0
  230. package/types/table-pro/index.d.ts +3 -0
  231. package/types/tag/index.d.ts +124 -0
  232. package/types/time-picker/index.d.ts +193 -0
  233. package/types/timeline/index.d.ts +95 -0
  234. package/types/transfer/index.d.ts +199 -0
  235. package/types/tree/index.d.ts +421 -0
  236. package/types/tree-select/index.d.ts +251 -0
  237. package/types/typography/index.d.ts +28 -0
  238. package/types/upload/index.d.ts +707 -0
  239. package/types/util.d.ts +50 -0
  240. package/types/virtual-list/index.d.ts +44 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fat-design",
3
- "version": "0.0.1-beta.20250809023342",
3
+ "version": "0.0.1-beta.20250815054017",
4
4
  "scripts": {},
5
5
  "main": "index.umd.js",
6
6
  "module": "index.js",
@@ -16,5 +16,5 @@
16
16
  "publishConfig": {
17
17
  "registry": "https://registry.npmjs.org"
18
18
  },
19
- "buildTime": "Fri, 08 Aug 2025 18:33:42 GMT"
19
+ "buildTime": "Thu, 14 Aug 2025 21:40:17 GMT"
20
20
  }
@@ -0,0 +1,3 @@
1
+ import { IConfigValues } from "./v2/types";
2
+ export declare const defaultPrefix = "fatd-";
3
+ export declare const defaultConfigValues: IConfigValues;
@@ -0,0 +1,4 @@
1
+ import { ConfigProvider } from "./v2";
2
+ import { defaultPrefix } from './constants';
3
+ export { defaultPrefix };
4
+ export default ConfigProvider;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare function withConsumer(Component: any, options?: any): React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
+ export { withConsumer };
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { PreciseStore } from "../../hooks/usePreciseStore.js";
3
+ declare const configContext: React.Context<import("./types.js").IConfigValues>;
4
+ declare const CONFIG_VALUES_PATH = "configValues";
5
+ declare const configStore: PreciseStore;
6
+ export { configStore, configContext, CONFIG_VALUES_PATH };
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ export default class ErrorBoundary extends React.Component<any, any> {
3
+ static propTypes: {
4
+ children: any;
5
+ /**
6
+ * 捕获错误后的自定义处理, 比如埋点上传
7
+ * @param {Object} error 错误
8
+ * @param {Object} errorInfo 错误详细信息
9
+ */
10
+ afterCatch: any;
11
+ /**
12
+ * 捕获错误后的展现 自定义组件
13
+ * @param {Object} error 错误
14
+ * @param {Object} errorInfo 错误详细信息
15
+ * @returns {Element} 捕获错误后的处理
16
+ */
17
+ fallbackUI: any;
18
+ /**
19
+ * 被捕获的组件名
20
+ */
21
+ componentName: any;
22
+ };
23
+ constructor(props: any);
24
+ componentDidCatch(error: any, errorInfo: any): void;
25
+ render(): any;
26
+ }
@@ -0,0 +1,65 @@
1
+ import { IConfigValues, IGetContextProps } from "./types";
2
+ declare function getContext(): IConfigValues;
3
+ declare function setContext(updates: IConfigValues, justSetValue?: boolean): void;
4
+ declare function getLocale(): any;
5
+ declare function getLanguage(): string;
6
+ declare function getDirection(): boolean;
7
+ declare function getDisplayName(Component: any, options?: any): string;
8
+ /**
9
+ * 合并组件props和context配置
10
+ * @param args 参数支持两个或三个
11
+ * props,contextValues,displayName
12
+ * props,displayName
13
+ */
14
+ declare function getContextProps(args: IGetContextProps): {
15
+ prefix: any;
16
+ locale: any;
17
+ rtl: boolean;
18
+ warning: boolean;
19
+ defaultPropsConfig: any;
20
+ device: any;
21
+ popupContainer: any;
22
+ errorBoundary: any;
23
+ };
24
+ /**
25
+ * 设置所有文案。
26
+ * @param globalLocales 所有语言下的所有文案。
27
+ */
28
+ declare function initLocales(globalLocales: any): void;
29
+ /**
30
+ * 当前语言类型:如:zh-cn / en-us
31
+ * @param language
32
+ */
33
+ declare function setLanguage(language: string): void;
34
+ declare function setLocale(locale: any): void;
35
+ declare function setDirection(dir: string): void;
36
+ declare const commonPropNames: string[];
37
+ declare const setMomentLocale: (locale: any) => void;
38
+ declare const setDateLocale: (locale: any) => void;
39
+ declare const getCommonPropTypes: () => {
40
+ prefix: any;
41
+ locale: any;
42
+ defaultPropsConfig: any;
43
+ errorBoundary: any;
44
+ pure: any;
45
+ warning: any;
46
+ rtl: any;
47
+ device: any;
48
+ children: any;
49
+ popupContainer: any;
50
+ };
51
+ declare const providerFunctions: {
52
+ getContextProps: typeof getContextProps;
53
+ getContext: typeof getContext;
54
+ getLocale: typeof getLocale;
55
+ getLanguage: typeof getLanguage;
56
+ getDirection: typeof getDirection;
57
+ initLocales: typeof initLocales;
58
+ setLanguage: typeof setLanguage;
59
+ setLocale: typeof setLocale;
60
+ setDirection: typeof setDirection;
61
+ setContext: typeof setContext;
62
+ setMomentLocale: (locale: any) => void;
63
+ setDateLocale: (locale: any) => void;
64
+ };
65
+ export { getCommonPropTypes, getDisplayName, setMomentLocale, setDateLocale, providerFunctions, commonPropNames };
@@ -0,0 +1,36 @@
1
+ import React from "react";
2
+ import { IConfigProviderProps, IGetContextProps } from "./types";
3
+ declare class ConfigProvider extends React.Component<IConfigProviderProps, any> {
4
+ static defaultPrefix: string;
5
+ static propTypes: {
6
+ prefix: any;
7
+ locale: any;
8
+ defaultPropsConfig: any;
9
+ errorBoundary: any;
10
+ pure: any;
11
+ warning: any;
12
+ rtl: any;
13
+ device: any;
14
+ children: any;
15
+ popupContainer: any;
16
+ };
17
+ static config<T>(Component: any, options?: any): T;
18
+ static configFn<T>(Component: any, options?: any): T;
19
+ static getContext(): import("./types").IConfigValues;
20
+ static getContextProps(args: IGetContextProps): any;
21
+ static initLocales(locales: any): void;
22
+ static setLanguage(language: string): void;
23
+ static setLocale(locale: any): void;
24
+ static setDirection(dir: string): any;
25
+ static getLocale(): any;
26
+ static getLanguage(): string;
27
+ static getDirection(): string;
28
+ static getPrefix(): string;
29
+ static createBoolComponent(Component: any, displayName?: string): {
30
+ (props: any): React.JSX.Element;
31
+ displayName: string;
32
+ };
33
+ constructor(props: IConfigProviderProps);
34
+ render(): React.JSX.Element;
35
+ }
36
+ export { ConfigProvider };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IConfigProviderProps } from "./types";
3
+ declare function ConfigProvider(props: IConfigProviderProps): React.JSX.Element;
4
+ export { ConfigProvider };
@@ -0,0 +1,22 @@
1
+ export interface IConfigValues {
2
+ prefix?: string | null;
3
+ locale?: any | null;
4
+ defaultPropsConfig?: any | null;
5
+ warning?: boolean | null;
6
+ rtl?: boolean | null;
7
+ device?: string | null;
8
+ popupContainer?: any | null;
9
+ errorBoundary?: any | null;
10
+ globalLocales?: any | null;
11
+ currentGlobalLanguage?: string | null;
12
+ currentGlobalRtl?: boolean | null;
13
+ providerTick?: number;
14
+ }
15
+ export interface IConfigProviderProps extends IConfigValues {
16
+ children?: any;
17
+ }
18
+ export interface IGetContextProps {
19
+ props: any;
20
+ displayName: string;
21
+ contextValues?: IConfigValues;
22
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ export interface EmptyProps extends Record<string, any> {
3
+ prefixCls?: string;
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ imageStyle?: React.CSSProperties;
7
+ image?: string;
8
+ description?: React.ReactNode;
9
+ locale?: any;
10
+ children?: any;
11
+ rtl?: boolean;
12
+ imageNode?: any;
13
+ prefix?: string;
14
+ }
15
+ declare const Empty: {
16
+ (props: EmptyProps): React.JSX.Element;
17
+ defaultProps: {
18
+ prefix: string;
19
+ locale: any;
20
+ };
21
+ };
22
+ export default Empty;
@@ -0,0 +1,2 @@
1
+ declare const Empty: unknown;
2
+ export default Empty;
@@ -0,0 +1,21 @@
1
+ export interface FilterItemData {
2
+ label: string;
3
+ value: string;
4
+ count: any;
5
+ render?: any;
6
+ className?: string;
7
+ }
8
+ export interface FilterItemProps extends FilterItemData {
9
+ prefix?: string;
10
+ isActive: boolean;
11
+ onClick: any;
12
+ }
13
+ export type FnOnFilterChange = (value: string, b: FilterItemData) => {};
14
+ export interface FilterProps {
15
+ appendAllTag?: boolean;
16
+ prefix?: string;
17
+ defaultValue?: string;
18
+ dataSource: FilterItemData[];
19
+ value?: string;
20
+ onChange?: FnOnFilterChange;
21
+ }
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { FilterProps } from "./filter-types";
3
+ declare const FilterImpl: {
4
+ (props: FilterProps, ref: any): React.JSX.Element;
5
+ defaultProps: {
6
+ prefix: string;
7
+ };
8
+ displayName: string;
9
+ };
10
+ export { FilterImpl };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ declare const Filter: {
3
+ (props: import("./filter-types").FilterProps, ref: any): React.JSX.Element;
4
+ defaultProps: {
5
+ prefix: string;
6
+ };
7
+ displayName: string;
8
+ };
9
+ export default Filter;
@@ -0,0 +1,10 @@
1
+ declare const getDeps: () => {
2
+ Message: any;
3
+ Button: any;
4
+ Icon: any;
5
+ Grid: any;
6
+ ResponsiveGrid: any;
7
+ Card: any;
8
+ RGrid: any;
9
+ };
10
+ export { getDeps };
@@ -0,0 +1,36 @@
1
+ import { PreciseStore } from "../hooks/usePreciseStore";
2
+ import { FormItemProps, FormStoreExtData1, IItemState } from "./form-types";
3
+ type StringOrArray = string[] | string;
4
+ declare class FormActions {
5
+ private formStore;
6
+ private schemaValidateOptions;
7
+ constructor(formStore: PreciseStore, locale: any);
8
+ getExtData1(): FormStoreExtData1;
9
+ validate(): Promise<void>;
10
+ validateForm(): Promise<void>;
11
+ firstAutoValidateForm(): Promise<void>;
12
+ validateFromItem(name: string): Promise<void>;
13
+ forceUpdate(name: string): void;
14
+ setStateItem(name: string, stateKey: string, value: any): void;
15
+ setState(name: string, updates: any): void;
16
+ getState(name: string): any;
17
+ getStates(): any;
18
+ validateFromItemByTrigger(name: string, triggerName: string): Promise<any>;
19
+ getErrors(): IItemState[];
20
+ getFormItemPropsFixedByState(name: string): FormItemProps;
21
+ getFormItemProps(name: string): FormItemProps;
22
+ getValue(name: string): any;
23
+ setValue(name: string, value: any): any;
24
+ getValues(): any;
25
+ setValues(values: any): any;
26
+ getDefaultValues(): any;
27
+ getResetNames(names: StringOrArray, exclude: string[]): string[];
28
+ resetToDefault(names0?: StringOrArray, exclude?: string[], isValidate?: boolean): Promise<any>;
29
+ reset(names0?: StringOrArray, exclude?: string[], isValidate?: boolean): Promise<any>;
30
+ clearErrors(): Promise<void>;
31
+ /**
32
+ * 只拣取表单中存在的字段,其他values字段不管了。
33
+ */
34
+ pickFormValues(): any;
35
+ }
36
+ export { FormActions };
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ import { BaseBtnProps, FormButtonGroupProps, ResetProps, SubmitProps } from "./form-types";
3
+ declare function FormButton(props: BaseBtnProps): React.JSX.Element;
4
+ declare namespace FormButton {
5
+ var _typeMark: string;
6
+ var _supportPreview: boolean;
7
+ }
8
+ declare function Submit(props: SubmitProps): React.JSX.Element;
9
+ declare namespace Submit {
10
+ var defaultProps: {
11
+ validate: boolean;
12
+ };
13
+ var _typeMark: string;
14
+ var _supportPreview: boolean;
15
+ }
16
+ declare function Reset(props: ResetProps): React.JSX.Element;
17
+ declare namespace Reset {
18
+ var _typeMark: string;
19
+ var _supportPreview: boolean;
20
+ var defaultProps: {
21
+ toDefault: boolean;
22
+ };
23
+ }
24
+ declare function FormButtonGroup(props: FormButtonGroupProps): React.JSX.Element;
25
+ declare namespace FormButtonGroup {
26
+ var _supportPreview: boolean;
27
+ }
28
+ export { Submit, Reset, FormButton, FormButtonGroup };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ declare const formContextDef: React.Context<{}>;
3
+ declare const formSectionDef: React.Context<{}>;
4
+ export { formContextDef, formSectionDef };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { WrapFormItemProps } from "./form-types";
3
+ export declare function FormError(props: WrapFormItemProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IFormItemCardProps } from "./form-types";
3
+ declare function FormItemCard(props: IFormItemCardProps): React.JSX.Element;
4
+ export { FormItemCard };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { WrapFormItemProps } from "./form-types";
3
+ declare function FormItemComp(props: WrapFormItemProps): React.JSX.Element;
4
+ export { FormItemComp };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { FormItemProps, FormItemState } from "./form-types";
3
+ declare function getFormItemLabel(formItemProps: FormItemProps, formItemState: FormItemState): React.JSX.Element;
4
+ export { getFormItemLabel };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { FormItemProps } from "./form-types";
3
+ declare function renderWrapPreview(childProps: any, formItemProps: FormItemProps): React.JSX.Element;
4
+ export { renderWrapPreview };
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { FormItemProps } from "./form-types";
3
+ declare function FormItem(props: FormItemProps): React.JSX.Element;
4
+ declare namespace FormItem {
5
+ var _typeMark: string;
6
+ }
7
+ export default FormItem;
@@ -0,0 +1,3 @@
1
+ import { FormProps } from "./form-types";
2
+ declare function FormLayout(props: FormProps): any;
3
+ export { FormLayout };
@@ -0,0 +1,3 @@
1
+ import { FormItemProps } from "./form-types";
2
+ declare function buildValidateRules(props: FormItemProps): any[];
3
+ export { buildValidateRules };
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import { IFormSectionProps } from "./form-types";
3
+ declare function FormSection(props: IFormSectionProps): React.JSX.Element;
4
+ declare namespace FormSection {
5
+ var defaultProps: {
6
+ prefix: string;
7
+ onSubmit: typeof import("../util/func").preventDefault;
8
+ size: string;
9
+ labelAlign: string;
10
+ onChange: () => void;
11
+ component: string;
12
+ device: string;
13
+ locale: any;
14
+ colon: boolean;
15
+ autoValidate: boolean;
16
+ useLabelForErrorMessage: boolean;
17
+ helpPos: string;
18
+ disabled: boolean;
19
+ isPreview: boolean;
20
+ display: boolean;
21
+ autoValidateOnCreated: boolean;
22
+ previewPlaceholder: string;
23
+ };
24
+ }
25
+ export { FormSection };