fat-design 0.0.1-beta.20251010070112 → 0.0.1-beta.20251010161507

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 (246) hide show
  1. package/README.md +285 -285
  2. package/index.browser.js +5 -5
  3. package/index.js +8 -8
  4. package/index.umd.cjs +4 -4
  5. package/index.umd.js +4 -4
  6. package/libs/config-16.js +7 -7
  7. package/libs/config-17.js +7 -7
  8. package/libs/config-18.js +9 -9
  9. package/libs/config-19.js +9 -9
  10. package/libs/theme/theme-blue1.css +58 -58
  11. package/libs/theme/theme-blue2.css +63 -63
  12. package/libs/theme/theme-blue3.css +73 -73
  13. package/libs/theme/theme-blue4.css +53 -53
  14. package/libs/theme/theme-default.css +60 -60
  15. package/libs/theme/theme-green.css +96 -96
  16. package/libs/theme/theme-green2.css +96 -96
  17. package/libs/theme/theme-orange.css +58 -58
  18. package/libs/theme/theme-pink.css +53 -53
  19. package/libs/theme/theme-purple.css +53 -53
  20. package/libs/theme/theme-red.css +55 -55
  21. package/package.json +2 -2
  22. package/types/0buildTypes/config-provider/constants.d.ts +3 -3
  23. package/types/0buildTypes/config-provider/index.d.ts +4 -4
  24. package/types/0buildTypes/config-provider/v2/consumer.d.ts +3 -3
  25. package/types/0buildTypes/config-provider/v2/context.d.ts +6 -6
  26. package/types/0buildTypes/config-provider/v2/error-boundary.d.ts +27 -27
  27. package/types/0buildTypes/config-provider/v2/functions.d.ts +66 -66
  28. package/types/0buildTypes/config-provider/v2/index.d.ts +37 -36
  29. package/types/0buildTypes/config-provider/v2/provider.d.ts +4 -4
  30. package/types/0buildTypes/config-provider/v2/types.d.ts +22 -22
  31. package/types/0buildTypes/dependencies.d.ts +2 -2
  32. package/types/0buildTypes/empty/empty.d.ts +22 -22
  33. package/types/0buildTypes/empty/index.d.ts +2 -2
  34. package/types/0buildTypes/filter/filter-types.d.ts +21 -21
  35. package/types/0buildTypes/filter/filter.d.ts +10 -10
  36. package/types/0buildTypes/filter/index.d.ts +9 -9
  37. package/types/0buildTypes/form2/deps.d.ts +10 -10
  38. package/types/0buildTypes/form2/form-actions.d.ts +36 -36
  39. package/types/0buildTypes/form2/form-buttons.d.ts +28 -28
  40. package/types/0buildTypes/form2/form-context.d.ts +4 -4
  41. package/types/0buildTypes/form2/form-error.d.ts +3 -3
  42. package/types/0buildTypes/form2/form-item-card.d.ts +4 -4
  43. package/types/0buildTypes/form2/form-item-comp.d.ts +4 -4
  44. package/types/0buildTypes/form2/form-item-label.d.ts +4 -4
  45. package/types/0buildTypes/form2/form-item-preview.d.ts +4 -4
  46. package/types/0buildTypes/form2/form-item.d.ts +7 -7
  47. package/types/0buildTypes/form2/form-layout.d.ts +3 -3
  48. package/types/0buildTypes/form2/form-rules.d.ts +3 -3
  49. package/types/0buildTypes/form2/form-section.d.ts +25 -25
  50. package/types/0buildTypes/form2/form-types.d.ts +395 -395
  51. package/types/0buildTypes/form2/form.d.ts +36 -36
  52. package/types/0buildTypes/form2/helper/buildParams.d.ts +5 -5
  53. package/types/0buildTypes/form2/helper/constants.d.ts +24 -24
  54. package/types/0buildTypes/form2/helper/fixItemProps.d.ts +16 -16
  55. package/types/0buildTypes/form2/helper/fnInheritProps.d.ts +2 -2
  56. package/types/0buildTypes/form2/helper/linkageFormState.d.ts +16 -16
  57. package/types/0buildTypes/form2/helper/useDataSource.d.ts +14 -14
  58. package/types/0buildTypes/form2/helper/useFormChildren.d.ts +5 -5
  59. package/types/0buildTypes/form2/helper/useFormItemState.d.ts +3 -3
  60. package/types/0buildTypes/form2/helper/useGetXProps.d.ts +3 -3
  61. package/types/0buildTypes/form2/index.d.ts +20 -20
  62. package/types/0buildTypes/form2/layout/from-float-layout.d.ts +3 -3
  63. package/types/0buildTypes/hooks/index.d.ts +16 -16
  64. package/types/0buildTypes/hooks/useCurrentState.d.ts +11 -11
  65. package/types/0buildTypes/hooks/useOnKeyPressSave.d.ts +12 -12
  66. package/types/0buildTypes/hooks/usePersistFn.d.ts +3 -3
  67. package/types/0buildTypes/hooks/usePreciseStore.d.ts +53 -53
  68. package/types/0buildTypes/hooks/useSize.d.ts +6 -6
  69. package/types/0buildTypes/hooks/useUniqueId.d.ts +2 -2
  70. package/types/0buildTypes/hooks/useValueOnChange.d.ts +2 -2
  71. package/types/0buildTypes/image/Image.d.ts +42 -42
  72. package/types/0buildTypes/image/Operations.d.ts +25 -25
  73. package/types/0buildTypes/image/Preview.d.ts +64 -64
  74. package/types/0buildTypes/image/PreviewGroup.d.ts +32 -32
  75. package/types/0buildTypes/image/common.d.ts +2 -2
  76. package/types/0buildTypes/image/context.d.ts +7 -7
  77. package/types/0buildTypes/image/getFixScaleEleTransPosition.d.ts +17 -17
  78. package/types/0buildTypes/image/hooks/useImageTransform.d.ts +28 -28
  79. package/types/0buildTypes/image/hooks/useMouseEvent.d.ts +9 -9
  80. package/types/0buildTypes/image/hooks/usePreviewItems.d.ts +7 -7
  81. package/types/0buildTypes/image/hooks/useRegisterImage.d.ts +2 -2
  82. package/types/0buildTypes/image/hooks/useStatus.d.ts +14 -14
  83. package/types/0buildTypes/image/hooks/useTouchEvent.d.ts +8 -8
  84. package/types/0buildTypes/image/index.d.ts +6 -6
  85. package/types/0buildTypes/image/interface.d.ts +14 -14
  86. package/types/0buildTypes/image/previewConfig.d.ts +4 -4
  87. package/types/0buildTypes/image/util.d.ts +1 -1
  88. package/types/0buildTypes/image/utils/KeyCode.d.ts +23 -23
  89. package/types/0buildTypes/image/utils/addEventListener.d.ts +4 -4
  90. package/types/0buildTypes/image/utils/buildIcons.d.ts +2 -2
  91. package/types/0buildTypes/image/utils/css.d.ts +8 -8
  92. package/types/0buildTypes/image/utils/isEqual.d.ts +8 -8
  93. package/types/0buildTypes/image/utils/raf.d.ts +6 -6
  94. package/types/0buildTypes/image/utils/useEvent.d.ts +1 -1
  95. package/types/0buildTypes/image/utils/useLayoutEffect.d.ts +4 -4
  96. package/types/0buildTypes/image/utils/useMergedState.d.ts +12 -12
  97. package/types/0buildTypes/image/utils/useSafeState.d.ts +14 -14
  98. package/types/0buildTypes/index.d.ts +4 -4
  99. package/types/0buildTypes/libs.d.ts +67 -67
  100. package/types/0buildTypes/nav/group.d.ts +30 -30
  101. package/types/0buildTypes/nav/index.d.ts +4 -4
  102. package/types/0buildTypes/nav/item.d.ts +30 -30
  103. package/types/0buildTypes/nav/nav.d.ts +2 -2
  104. package/types/0buildTypes/nav/popup-item.d.ts +24 -24
  105. package/types/0buildTypes/nav/sub-nav.d.ts +30 -30
  106. package/types/0buildTypes/nav/types.d.ts +375 -375
  107. package/types/0buildTypes/others.d.ts +10 -10
  108. package/types/0buildTypes/pages/deps.d.ts +5 -5
  109. package/types/0buildTypes/pages/detail-page/detail-page-card-form.d.ts +12 -12
  110. package/types/0buildTypes/pages/detail-page/detail-page-form-item.d.ts +9 -9
  111. package/types/0buildTypes/pages/detail-page/detail-page-section.d.ts +19 -19
  112. package/types/0buildTypes/pages/detail-page/detail-page-summary.d.ts +9 -9
  113. package/types/0buildTypes/pages/detail-page/detail-page.d.ts +14 -14
  114. package/types/0buildTypes/pages/detail-page/index.d.ts +2 -2
  115. package/types/0buildTypes/pages/detail-page/types.d.ts +29 -29
  116. package/types/0buildTypes/pages/page-card/types.d.ts +6 -6
  117. package/types/0buildTypes/previews/renderFileImage.d.ts +34 -34
  118. package/types/0buildTypes/query-form/index.d.ts +2 -2
  119. package/types/0buildTypes/query-form/query-form-items.d.ts +3 -3
  120. package/types/0buildTypes/query-form/query-form-layout.d.ts +2 -2
  121. package/types/0buildTypes/query-form/query-form.d.ts +18 -18
  122. package/types/0buildTypes/query-form/types.d.ts +5 -5
  123. package/types/0buildTypes/sortable-list/helpers.d.ts +8 -8
  124. package/types/0buildTypes/sortable-list/hooks.d.ts +24 -24
  125. package/types/0buildTypes/sortable-list/index.d.ts +14 -14
  126. package/types/0buildTypes/sortable-list/sortable-editable-table.d.ts +2 -2
  127. package/types/0buildTypes/sortable-list/sortable-list.d.ts +560 -560
  128. package/types/0buildTypes/sortable-list/sortable-table.d.ts +2 -2
  129. package/types/0buildTypes/sortable-list/types.d.ts +15 -15
  130. package/types/0buildTypes/table-pro/index.d.ts +26 -26
  131. package/types/0buildTypes/table-pro/table-pro.d.ts +17 -17
  132. package/types/0buildTypes/table-pro/types.d.ts +95 -95
  133. package/types/0buildTypes/table-pro/useTablePro.d.ts +10 -10
  134. package/types/0buildTypes/table-pro/utils/formatQueryRes.d.ts +1 -1
  135. package/types/0buildTypes/table-pro/widget/column-setting.d.ts +5 -5
  136. package/types/0buildTypes/table-pro/widget/deps.d.ts +2 -2
  137. package/types/0buildTypes/table-pro/widget/index.d.ts +25 -25
  138. package/types/0buildTypes/table-pro/widget/operations.d.ts +5 -5
  139. package/types/0buildTypes/table-pro/widget/operationsActions.d.ts +2 -2
  140. package/types/0buildTypes/table-pro/widget/renderFormats.d.ts +17 -17
  141. package/types/0buildTypes/table-pro/widget/renderMultiFieldCell.d.ts +4 -4
  142. package/types/0buildTypes/table-pro/widget/renderOperationCell.d.ts +4 -4
  143. package/types/0buildTypes/table-pro/widget/renderToolbar.d.ts +6 -6
  144. package/types/0buildTypes/table-pro/widget/table-utils-types.d.ts +40 -40
  145. package/types/0buildTypes/util/comp.d.ts +16 -16
  146. package/types/0buildTypes/util/component.d.ts +1 -1
  147. package/types/0buildTypes/util/constants.d.ts +4 -4
  148. package/types/0buildTypes/util/dom.d.ts +116 -116
  149. package/types/0buildTypes/util/env.d.ts +7 -7
  150. package/types/0buildTypes/util/func-wrapper.d.ts +1 -1
  151. package/types/0buildTypes/util/func.d.ts +73 -73
  152. package/types/0buildTypes/util/guid.d.ts +11 -11
  153. package/types/0buildTypes/util/isStateEquals.d.ts +4 -4
  154. package/types/0buildTypes/util/localforage.d.ts +11 -11
  155. package/types/0buildTypes/util/log.d.ts +18 -18
  156. package/types/0buildTypes/util/pick-res-data.d.ts +28 -28
  157. package/types/0buildTypes/util/react-dom.d.ts +27 -27
  158. package/types/0buildTypes/util/shallowEqual.d.ts +3 -3
  159. package/types/0buildTypes/util/string.d.ts +32 -32
  160. package/types/0buildTypes/util/tiny-emitter.d.ts +10 -10
  161. package/types/0buildTypes/util/toMap.d.ts +7 -7
  162. package/types/affix/index.d.ts +33 -33
  163. package/types/animate/index.d.ts +80 -80
  164. package/types/avatar/index.d.ts +41 -41
  165. package/types/badge/index.d.ts +38 -38
  166. package/types/balloon/index.d.ts +254 -254
  167. package/types/balloon-confirm/index.d.ts +78 -78
  168. package/types/batch-input/index.d.ts +152 -152
  169. package/types/box/index.d.ts +18 -18
  170. package/types/breadcrumb/index.d.ts +60 -60
  171. package/types/button/index.d.ts +179 -179
  172. package/types/calendar/index.d.ts +76 -76
  173. package/types/card/index.d.ts +147 -147
  174. package/types/cascader/index.d.ts +135 -135
  175. package/types/cascader-select/index.d.ts +230 -230
  176. package/types/checkbox/index.d.ts +175 -175
  177. package/types/collapse/index.d.ts +96 -96
  178. package/types/comments/index.d.ts +278 -278
  179. package/types/config-provider/index.d.ts +3 -3
  180. package/types/date-picker/index.d.ts +123 -123
  181. package/types/dialog/index.d.ts +328 -328
  182. package/types/divider/index.d.ts +21 -21
  183. package/types/drawer/index.d.ts +121 -121
  184. package/types/dropdown/index.d.ts +198 -198
  185. package/types/editable-table/index.d.ts +121 -121
  186. package/types/empty/index.d.ts +78 -78
  187. package/types/field/index.d.ts +33 -33
  188. package/types/filter/index.d.ts +2 -2
  189. package/types/form/index.d.ts +5 -5
  190. package/types/grid/index.d.ts +142 -142
  191. package/types/hooks/index.d.ts +2 -2
  192. package/types/icon/index.d.ts +29 -29
  193. package/types/image/index.d.ts +3 -3
  194. package/types/index.d.ts +69 -69
  195. package/types/input/index.d.ts +458 -458
  196. package/types/list/index.d.ts +69 -69
  197. package/types/loading/index.d.ts +100 -100
  198. package/types/locale/default.d.ts +143 -143
  199. package/types/locale/en-us.d.ts +1 -1
  200. package/types/locale/id-id.d.ts +1 -1
  201. package/types/locale/it-it.d.ts +1 -1
  202. package/types/locale/ja-jp.d.ts +1 -1
  203. package/types/locale/ko-kr.d.ts +1 -1
  204. package/types/locale/ms-my.d.ts +1 -1
  205. package/types/locale/pt-pt.d.ts +1 -1
  206. package/types/locale/th-th.d.ts +1 -1
  207. package/types/locale/vi-vn.d.ts +1 -1
  208. package/types/locale/zh-cn.d.ts +1 -1
  209. package/types/locale/zh-hk.d.ts +1 -1
  210. package/types/locale/zh-tw.d.ts +1 -1
  211. package/types/menu/index.d.ts +336 -336
  212. package/types/menu-button/index.d.ts +100 -100
  213. package/types/message/index.d.ts +165 -165
  214. package/types/nav/index.d.ts +313 -313
  215. package/types/notification/index.d.ts +35 -35
  216. package/types/number-picker/index.d.ts +161 -161
  217. package/types/overlay/index.d.ts +363 -363
  218. package/types/pagination/index.d.ts +115 -115
  219. package/types/paragraph/index.d.ts +23 -23
  220. package/types/progress/index.d.ts +53 -53
  221. package/types/query-form/index.d.ts +3 -3
  222. package/types/radio/index.d.ts +180 -180
  223. package/types/range/index.d.ts +120 -120
  224. package/types/rating/index.d.ts +84 -84
  225. package/types/responsive-grid/index.d.ts +30 -30
  226. package/types/search/index.d.ts +219 -219
  227. package/types/select/index.d.ts +479 -479
  228. package/types/shell/index.d.ts +53 -53
  229. package/types/slider/index.d.ts +172 -172
  230. package/types/sortable-list/index.d.ts +165 -165
  231. package/types/split-button/index.d.ts +134 -134
  232. package/types/step/index.d.ts +108 -108
  233. package/types/switch/index.d.ts +85 -85
  234. package/types/tab/index.d.ts +170 -170
  235. package/types/table/index.d.ts +407 -407
  236. package/types/table-pro/index.d.ts +3 -3
  237. package/types/tag/index.d.ts +142 -142
  238. package/types/time-picker/index.d.ts +193 -193
  239. package/types/timeline/index.d.ts +95 -95
  240. package/types/transfer/index.d.ts +199 -199
  241. package/types/tree/index.d.ts +421 -421
  242. package/types/tree-select/index.d.ts +251 -251
  243. package/types/typography/index.d.ts +28 -28
  244. package/types/upload/index.d.ts +711 -711
  245. package/types/util.d.ts +80 -80
  246. package/types/virtual-list/index.d.ts +44 -44
@@ -1,2 +1,2 @@
1
- declare const SortableTable: unknown;
2
- export { SortableTable };
1
+ declare const SortableTable: unknown;
2
+ export { SortableTable };
@@ -1,15 +1,15 @@
1
- export type Point = {
2
- x: number;
3
- y: number;
4
- };
5
- export interface SortableTableProps {
6
- size: string;
7
- isZebra: boolean;
8
- prefix: string;
9
- dataSource: any[];
10
- columns: any[];
11
- onRowValueChange: any;
12
- actionEmitter?: any;
13
- onSortEnd?: any;
14
- onCreated?: any;
15
- }
1
+ export type Point = {
2
+ x: number;
3
+ y: number;
4
+ };
5
+ export interface SortableTableProps {
6
+ size: string;
7
+ isZebra: boolean;
8
+ prefix: string;
9
+ dataSource: any[];
10
+ columns: any[];
11
+ onRowValueChange: any;
12
+ actionEmitter?: any;
13
+ onSortEnd?: any;
14
+ onCreated?: any;
15
+ }
@@ -1,26 +1,26 @@
1
- import React from "react";
2
- import { TableProProps, ICellRenderFunc, IUseTableProFunc, IGetTableColumnsBySettingFunc, OperationsProps, TableToolbarProps, IRenderTableToolbar, IRenderOperationCell, IRenderMultiFieldCell } from "./types";
3
- declare class TablePro extends React.Component<TableProProps, any> {
4
- static TableOperations: React.FC<OperationsProps>;
5
- static TableToolbar: React.FC<TableToolbarProps>;
6
- static useTablePro: IUseTableProFunc;
7
- static getTableColumnsBySetting: IGetTableColumnsBySettingFunc;
8
- static renderTableToolbar: IRenderTableToolbar;
9
- static renderOperationCell: IRenderOperationCell;
10
- static renderMultiFieldCell: IRenderMultiFieldCell;
11
- static renderJSON: ICellRenderFunc;
12
- static renderString: ICellRenderFunc;
13
- static renderDay: ICellRenderFunc;
14
- static renderDayAuto: ICellRenderFunc;
15
- static renderTime: ICellRenderFunc;
16
- static renderTimeAuto: ICellRenderFunc;
17
- static renderThousands: ICellRenderFunc;
18
- static renderHTML: ICellRenderFunc;
19
- static renderBoolean: ICellRenderFunc;
20
- static renderRelativeTime: ICellRenderFunc;
21
- static renderFileDownload: ICellRenderFunc;
22
- static renderFileImage: ICellRenderFunc;
23
- static renderEnumTag: ICellRenderFunc;
24
- render(): React.JSX.Element;
25
- }
26
- export default TablePro;
1
+ import React from "react";
2
+ import { TableProProps, ICellRenderFunc, IUseTableProFunc, IGetTableColumnsBySettingFunc, OperationsProps, TableToolbarProps, IRenderTableToolbar, IRenderOperationCell, IRenderMultiFieldCell } from "./types";
3
+ declare class TablePro extends React.Component<TableProProps, any> {
4
+ static TableOperations: React.FC<OperationsProps>;
5
+ static TableToolbar: React.FC<TableToolbarProps>;
6
+ static useTablePro: IUseTableProFunc;
7
+ static getTableColumnsBySetting: IGetTableColumnsBySettingFunc;
8
+ static renderTableToolbar: IRenderTableToolbar;
9
+ static renderOperationCell: IRenderOperationCell;
10
+ static renderMultiFieldCell: IRenderMultiFieldCell;
11
+ static renderJSON: ICellRenderFunc;
12
+ static renderString: ICellRenderFunc;
13
+ static renderDay: ICellRenderFunc;
14
+ static renderDayAuto: ICellRenderFunc;
15
+ static renderTime: ICellRenderFunc;
16
+ static renderTimeAuto: ICellRenderFunc;
17
+ static renderThousands: ICellRenderFunc;
18
+ static renderHTML: ICellRenderFunc;
19
+ static renderBoolean: ICellRenderFunc;
20
+ static renderRelativeTime: ICellRenderFunc;
21
+ static renderFileDownload: ICellRenderFunc;
22
+ static renderFileImage: ICellRenderFunc;
23
+ static renderEnumTag: ICellRenderFunc;
24
+ render(): React.JSX.Element;
25
+ }
26
+ export default TablePro;
@@ -1,17 +1,17 @@
1
- import React from "react";
2
- import { TableProProps } from "./types";
3
- interface TableProState {
4
- columns: any[] | null;
5
- }
6
- declare class TableProImpl extends React.Component<TableProProps, TableProState> {
7
- static defaultProps: {};
8
- static displayName: string;
9
- constructor(props: any);
10
- updateColumns: () => Promise<void>;
11
- componentDidMount(): void;
12
- paginationTotalRender: (total: string) => React.JSX.Element;
13
- rowSelectedMsgRender: (tableProps: any) => React.JSX.Element;
14
- render(): React.JSX.Element;
15
- }
16
- declare const TableProInner: typeof TableProImpl;
17
- export { TableProInner };
1
+ import React from "react";
2
+ import { TableProProps } from "./types";
3
+ interface TableProState {
4
+ columns: any[] | null;
5
+ }
6
+ declare class TableProImpl extends React.Component<TableProProps, TableProState> {
7
+ static defaultProps: {};
8
+ static displayName: string;
9
+ constructor(props: any);
10
+ updateColumns: () => Promise<void>;
11
+ componentDidMount(): void;
12
+ paginationTotalRender: (total: string) => React.JSX.Element;
13
+ rowSelectedMsgRender: (tableProps: any) => React.JSX.Element;
14
+ render(): React.JSX.Element;
15
+ }
16
+ declare const TableProInner: typeof TableProImpl;
17
+ export { TableProInner };
@@ -1,95 +1,95 @@
1
- import React from "react";
2
- export declare enum StyleModeEnum {
3
- simple = "simple"
4
- }
5
- export interface QueryFormTableSlots {
6
- renderAfterQueryForm: any;
7
- }
8
- export interface TableProProps {
9
- className?: string;
10
- settingName: string;
11
- prefix: string;
12
- components: any;
13
- formProps: any;
14
- tableProps: any;
15
- paginationProps: any;
16
- filterProps: any;
17
- operationProps: OperationsProps;
18
- slots?: QueryFormTableSlots;
19
- actions?: any;
20
- styleMode: StyleModeEnum;
21
- stickyLock?: boolean;
22
- styleConfig?: any;
23
- }
24
- export type FnOnQuery = (formValues: any, otherValue: any) => any;
25
- export interface IUseTableProParams {
26
- onQuery?: FnOnQuery;
27
- autoFirstQuery?: boolean;
28
- isReadyToFirstQuery?: FnOnQuery;
29
- isEnableRowSelection?: boolean;
30
- isEnableCrossPageRowSelection?: boolean;
31
- isEnableFrontendPagination?: boolean;
32
- initFormProps?: any;
33
- initTableProps?: any;
34
- initPaginationProps?: any;
35
- initFilterProps?: any;
36
- initOperationProps?: any;
37
- }
38
- export interface OperationBtnItem {
39
- size?: string;
40
- icon?: string;
41
- text?: string;
42
- type?: string;
43
- tooltip?: any;
44
- onClick?: any | string;
45
- children?: OperationBtnItem[];
46
- }
47
- export interface OperationsProps {
48
- prefix: string;
49
- spacing?: number;
50
- buttons: OperationBtnItem[];
51
- actions?: any;
52
- }
53
- export interface OperateCellProps {
54
- prefix?: string;
55
- max?: number;
56
- size?: any;
57
- operationItems?: OperateCellItemProps[];
58
- direction?: "row" | "column" | "row-reverse";
59
- wrap?: boolean;
60
- spacing?: number;
61
- operationPerms?: string[];
62
- }
63
- export type onClickOperateCellItem = (btnItem: OperateCellItemProps) => void;
64
- export interface OperateCellItemProps extends Record<string, any> {
65
- title: string;
66
- disabled?: boolean;
67
- tooltip?: string;
68
- operationCode?: string;
69
- onClick?: onClickOperateCellItem;
70
- }
71
- export interface TableToolbarProps {
72
- title?: string;
73
- totalCount?: number | string;
74
- filterProps?: any;
75
- operationProps?: any;
76
- prefix?: string;
77
- actions?: any;
78
- components?: any;
79
- }
80
- export interface MultiFieldCellItem {
81
- content?: any;
82
- title?: any;
83
- display?: boolean;
84
- }
85
- export type MultiFieldCellItem2 = MultiFieldCellItem | string | boolean | number;
86
- export interface MultiFieldCellProps {
87
- itemList: MultiFieldCellItem2[];
88
- prefix: any;
89
- }
90
- export type IGetTableColumnsBySettingFunc = (tableProProps: TableProProps) => Promise<any[]>;
91
- export type IUseTableProFunc = (params: IUseTableProParams) => any;
92
- export type ICellRenderFunc = (value: any) => React.JSX.Element;
93
- export type IRenderTableToolbar = (props: TableToolbarProps) => any;
94
- export type IRenderOperationCell = (operationItems: OperateCellItemProps[], others?: OperateCellProps) => any;
95
- export type IRenderMultiFieldCell = (itemList: MultiFieldCellItem2[]) => any;
1
+ import React from "react";
2
+ export declare enum StyleModeEnum {
3
+ simple = "simple"
4
+ }
5
+ export interface QueryFormTableSlots {
6
+ renderAfterQueryForm: any;
7
+ }
8
+ export interface TableProProps {
9
+ className?: string;
10
+ settingName: string;
11
+ prefix: string;
12
+ components: any;
13
+ formProps: any;
14
+ tableProps: any;
15
+ paginationProps: any;
16
+ filterProps: any;
17
+ operationProps: OperationsProps;
18
+ slots?: QueryFormTableSlots;
19
+ actions?: any;
20
+ styleMode: StyleModeEnum;
21
+ stickyLock?: boolean;
22
+ styleConfig?: any;
23
+ }
24
+ export type FnOnQuery = (formValues: any, otherValue: any) => any;
25
+ export interface IUseTableProParams {
26
+ onQuery?: FnOnQuery;
27
+ autoFirstQuery?: boolean;
28
+ isReadyToFirstQuery?: FnOnQuery;
29
+ isEnableRowSelection?: boolean;
30
+ isEnableCrossPageRowSelection?: boolean;
31
+ isEnableFrontendPagination?: boolean;
32
+ initFormProps?: any;
33
+ initTableProps?: any;
34
+ initPaginationProps?: any;
35
+ initFilterProps?: any;
36
+ initOperationProps?: any;
37
+ }
38
+ export interface OperationBtnItem {
39
+ size?: string;
40
+ icon?: string;
41
+ text?: string;
42
+ type?: string;
43
+ tooltip?: any;
44
+ onClick?: any | string;
45
+ children?: OperationBtnItem[];
46
+ }
47
+ export interface OperationsProps {
48
+ prefix: string;
49
+ spacing?: number;
50
+ buttons: OperationBtnItem[];
51
+ actions?: any;
52
+ }
53
+ export interface OperateCellProps {
54
+ prefix?: string;
55
+ max?: number;
56
+ size?: any;
57
+ operationItems?: OperateCellItemProps[];
58
+ direction?: "row" | "column" | "row-reverse";
59
+ wrap?: boolean;
60
+ spacing?: number;
61
+ operationPerms?: string[];
62
+ }
63
+ export type onClickOperateCellItem = (btnItem: OperateCellItemProps) => void;
64
+ export interface OperateCellItemProps extends Record<string, any> {
65
+ title: string;
66
+ disabled?: boolean;
67
+ tooltip?: string;
68
+ operationCode?: string;
69
+ onClick?: onClickOperateCellItem;
70
+ }
71
+ export interface TableToolbarProps {
72
+ title?: string;
73
+ totalCount?: number | string;
74
+ filterProps?: any;
75
+ operationProps?: any;
76
+ prefix?: string;
77
+ actions?: any;
78
+ components?: any;
79
+ }
80
+ export interface MultiFieldCellItem {
81
+ content?: any;
82
+ title?: any;
83
+ display?: boolean;
84
+ }
85
+ export type MultiFieldCellItem2 = MultiFieldCellItem | string | boolean | number;
86
+ export interface MultiFieldCellProps {
87
+ itemList: MultiFieldCellItem2[];
88
+ prefix: any;
89
+ }
90
+ export type IGetTableColumnsBySettingFunc = (tableProProps: TableProProps) => Promise<any[]>;
91
+ export type IUseTableProFunc = (params: IUseTableProParams) => any;
92
+ export type ICellRenderFunc = (value: any) => React.JSX.Element;
93
+ export type IRenderTableToolbar = (props: TableToolbarProps) => any;
94
+ export type IRenderOperationCell = (operationItems: OperateCellItemProps[], others?: OperateCellProps) => any;
95
+ export type IRenderMultiFieldCell = (itemList: MultiFieldCellItem2[]) => any;
@@ -1,10 +1,10 @@
1
- import { IUseTableProParams } from "./types";
2
- declare function useTablePro(params: IUseTableProParams): {
3
- formProps: any;
4
- tableProps: any;
5
- paginationProps: any;
6
- filterProps: any;
7
- operationProps: any;
8
- actions: any;
9
- };
10
- export { useTablePro };
1
+ import { IUseTableProParams } from "./types";
2
+ declare function useTablePro(params: IUseTableProParams): {
3
+ formProps: any;
4
+ tableProps: any;
5
+ paginationProps: any;
6
+ filterProps: any;
7
+ operationProps: any;
8
+ actions: any;
9
+ };
10
+ export { useTablePro };
@@ -1 +1 @@
1
- export default function formatQueryRes(res: any): any;
1
+ export default function formatQueryRes(res: any): any;
@@ -1,5 +1,5 @@
1
- import { TableProProps } from "../types";
2
- declare function isSettingNameValid(settingName: any): boolean;
3
- declare function showColumnSettingDialog({ actions }: any): Promise<void>;
4
- declare function getTableColumnsBySetting(tableProProps: TableProProps): Promise<any[]>;
5
- export { isSettingNameValid, showColumnSettingDialog, getTableColumnsBySetting };
1
+ import { TableProProps } from "../types";
2
+ declare function isSettingNameValid(settingName: any): boolean;
3
+ declare function showColumnSettingDialog({ actions }: any): Promise<void>;
4
+ declare function getTableColumnsBySetting(tableProProps: TableProProps): Promise<any[]>;
5
+ export { isSettingNameValid, showColumnSettingDialog, getTableColumnsBySetting };
@@ -1,2 +1,2 @@
1
- declare function getDep(name: string): any;
2
- export { getDep };
1
+ declare function getDep(name: string): any;
2
+ export { getDep };
@@ -1,25 +1,25 @@
1
- /// <reference types="react" />
2
- import { renderOperationCell } from "./renderOperationCell";
3
- import { getTableColumnsBySetting } from "./column-setting";
4
- declare const tableUtils: {
5
- getTableColumnsBySetting: typeof getTableColumnsBySetting;
6
- TableOperations: (props: import("../types").OperationsProps, ref: any) => import("react").JSX.Element;
7
- TableToolbar: (props: import("../types").TableToolbarProps, ref: any) => import("react").JSX.Element;
8
- renderTableToolbar: (props: import("../types").TableToolbarProps) => import("react").JSX.Element;
9
- renderOperationCell: typeof renderOperationCell;
10
- renderMultiFieldCell: (itemList: import("../types").MultiFieldCellItem2[]) => import("react").JSX.Element;
11
- renderJSON: (value: any) => import("react").JSX.Element;
12
- renderString: (value: any) => import("react").JSX.Element;
13
- renderDay: (value: any) => import("react").JSX.Element;
14
- renderDayAuto: (value: any) => import("react").JSX.Element;
15
- renderTime: (value: any) => import("react").JSX.Element;
16
- renderTimeAuto: (value: any) => import("react").JSX.Element;
17
- renderThousands: (value: any) => import("react").JSX.Element;
18
- renderHTML: (value: any) => import("react").JSX.Element;
19
- renderBoolean: (value: any) => import("react").JSX.Element;
20
- renderRelativeTime: (value: any) => import("react").JSX.Element;
21
- renderFileDownload: (value: any) => import("react").JSX.Element;
22
- renderFileImage: (value: any) => import("react").JSX.Element;
23
- renderEnumTag: (value: any) => import("react").JSX.Element;
24
- };
25
- export default tableUtils;
1
+ /// <reference types="react" />
2
+ import { renderOperationCell } from "./renderOperationCell";
3
+ import { getTableColumnsBySetting } from "./column-setting";
4
+ declare const tableUtils: {
5
+ getTableColumnsBySetting: typeof getTableColumnsBySetting;
6
+ TableOperations: (props: import("../types").OperationsProps, ref: any) => import("react").JSX.Element;
7
+ TableToolbar: (props: import("../types").TableToolbarProps, ref: any) => import("react").JSX.Element;
8
+ renderTableToolbar: (props: import("../types").TableToolbarProps) => import("react").JSX.Element;
9
+ renderOperationCell: typeof renderOperationCell;
10
+ renderMultiFieldCell: (itemList: import("../types").MultiFieldCellItem2[]) => import("react").JSX.Element;
11
+ renderJSON: (value: any) => import("react").JSX.Element;
12
+ renderString: (value: any) => import("react").JSX.Element;
13
+ renderDay: (value: any) => import("react").JSX.Element;
14
+ renderDayAuto: (value: any) => import("react").JSX.Element;
15
+ renderTime: (value: any) => import("react").JSX.Element;
16
+ renderTimeAuto: (value: any) => import("react").JSX.Element;
17
+ renderThousands: (value: any) => import("react").JSX.Element;
18
+ renderHTML: (value: any) => import("react").JSX.Element;
19
+ renderBoolean: (value: any) => import("react").JSX.Element;
20
+ renderRelativeTime: (value: any) => import("react").JSX.Element;
21
+ renderFileDownload: (value: any) => import("react").JSX.Element;
22
+ renderFileImage: (value: any) => import("react").JSX.Element;
23
+ renderEnumTag: (value: any) => import("react").JSX.Element;
24
+ };
25
+ export default tableUtils;
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { OperationsProps } from "../types";
3
- declare function OperationsImpl(props: OperationsProps, ref: any): React.JSX.Element;
4
- declare const TableOperations: typeof OperationsImpl;
5
- export { TableOperations };
1
+ import React from "react";
2
+ import { OperationsProps } from "../types";
3
+ declare function OperationsImpl(props: OperationsProps, ref: any): React.JSX.Element;
4
+ declare const TableOperations: typeof OperationsImpl;
5
+ export { TableOperations };
@@ -1,2 +1,2 @@
1
- declare function executeOperationAction(fn: string, btnItem: any, actions: any): void;
2
- export { executeOperationAction };
1
+ declare function executeOperationAction(fn: string, btnItem: any, actions: any): void;
2
+ export { executeOperationAction };
@@ -1,17 +1,17 @@
1
- import React from 'react';
2
- declare const renderFormats: {
3
- renderString: (value: any) => React.JSX.Element;
4
- renderJSON: (value: any) => React.JSX.Element;
5
- renderDay: (value: any) => React.JSX.Element;
6
- renderDayAuto: (value: any) => React.JSX.Element;
7
- renderTime: (value: any) => React.JSX.Element;
8
- renderTimeAuto: (value: any) => React.JSX.Element;
9
- renderThousands: (value: any) => React.JSX.Element;
10
- renderHTML: (value: any) => React.JSX.Element;
11
- renderBoolean: (value: any) => React.JSX.Element;
12
- renderRelativeTime: (value: any) => React.JSX.Element;
13
- renderFileDownload: (value: any) => React.JSX.Element;
14
- renderFileImage: (value: any) => React.JSX.Element;
15
- renderEnumTag: (value: any) => React.JSX.Element;
16
- };
17
- export { renderFormats };
1
+ import React from 'react';
2
+ declare const renderFormats: {
3
+ renderString: (value: any) => React.JSX.Element;
4
+ renderJSON: (value: any) => React.JSX.Element;
5
+ renderDay: (value: any) => React.JSX.Element;
6
+ renderDayAuto: (value: any) => React.JSX.Element;
7
+ renderTime: (value: any) => React.JSX.Element;
8
+ renderTimeAuto: (value: any) => React.JSX.Element;
9
+ renderThousands: (value: any) => React.JSX.Element;
10
+ renderHTML: (value: any) => React.JSX.Element;
11
+ renderBoolean: (value: any) => React.JSX.Element;
12
+ renderRelativeTime: (value: any) => React.JSX.Element;
13
+ renderFileDownload: (value: any) => React.JSX.Element;
14
+ renderFileImage: (value: any) => React.JSX.Element;
15
+ renderEnumTag: (value: any) => React.JSX.Element;
16
+ };
17
+ export { renderFormats };
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { MultiFieldCellItem2 } from "../types";
3
- declare const renderMultiFieldCell: (itemList: MultiFieldCellItem2[]) => React.JSX.Element;
4
- export { renderMultiFieldCell };
1
+ import React from 'react';
2
+ import { MultiFieldCellItem2 } from "../types";
3
+ declare const renderMultiFieldCell: (itemList: MultiFieldCellItem2[]) => React.JSX.Element;
4
+ export { renderMultiFieldCell };
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- import { OperateCellItemProps, OperateCellProps } from "../types";
3
- declare function renderOperationCell(operationItems: OperateCellItemProps[], others?: OperateCellProps): string | import("react").JSX.Element;
4
- export { renderOperationCell };
1
+ /// <reference types="react" />
2
+ import { OperateCellItemProps, OperateCellProps } from "../types";
3
+ declare function renderOperationCell(operationItems: OperateCellItemProps[], others?: OperateCellProps): string | import("react").JSX.Element;
4
+ export { renderOperationCell };
@@ -1,6 +1,6 @@
1
- import React from "react";
2
- import { TableToolbarProps } from "../types";
3
- declare function TableToolbarImpl(props: TableToolbarProps, ref: any): React.JSX.Element;
4
- declare const TableToolbar: typeof TableToolbarImpl;
5
- declare const renderTableToolbar: (props: TableToolbarProps) => React.JSX.Element;
6
- export { TableToolbar, renderTableToolbar };
1
+ import React from "react";
2
+ import { TableToolbarProps } from "../types";
3
+ declare function TableToolbarImpl(props: TableToolbarProps, ref: any): React.JSX.Element;
4
+ declare const TableToolbar: typeof TableToolbarImpl;
5
+ declare const renderTableToolbar: (props: TableToolbarProps) => React.JSX.Element;
6
+ export { TableToolbar, renderTableToolbar };
@@ -1,40 +1,40 @@
1
- export interface OperationBtnItem {
2
- size?: string;
3
- icon?: string;
4
- text?: string;
5
- type?: string;
6
- tooltip?: any;
7
- onClick?: any | string;
8
- children?: OperationBtnItem[];
9
- }
10
- export interface OperationsProps {
11
- prefix: string;
12
- spacing?: number;
13
- buttons: OperationBtnItem[];
14
- actions?: any;
15
- }
16
- export interface OperateCellProps {
17
- prefix?: string;
18
- max?: number;
19
- size?: any;
20
- operationItems?: OperateCellItemProps[];
21
- direction?: "row" | "column" | "row-reverse";
22
- wrap?: boolean;
23
- spacing?: number;
24
- operationPerms?: string[];
25
- }
26
- export type onClickOperateCellItem = (btnItem: OperateCellItemProps) => void;
27
- export interface OperateCellItemProps extends Record<string, any> {
28
- title: string;
29
- operationCode?: string;
30
- onClick?: onClickOperateCellItem;
31
- }
32
- export interface TableToolbarProps {
33
- title?: string;
34
- totalCount?: number | string;
35
- filterProps?: any;
36
- operationProps?: any;
37
- prefix?: string;
38
- actions?: any;
39
- components?: any;
40
- }
1
+ export interface OperationBtnItem {
2
+ size?: string;
3
+ icon?: string;
4
+ text?: string;
5
+ type?: string;
6
+ tooltip?: any;
7
+ onClick?: any | string;
8
+ children?: OperationBtnItem[];
9
+ }
10
+ export interface OperationsProps {
11
+ prefix: string;
12
+ spacing?: number;
13
+ buttons: OperationBtnItem[];
14
+ actions?: any;
15
+ }
16
+ export interface OperateCellProps {
17
+ prefix?: string;
18
+ max?: number;
19
+ size?: any;
20
+ operationItems?: OperateCellItemProps[];
21
+ direction?: "row" | "column" | "row-reverse";
22
+ wrap?: boolean;
23
+ spacing?: number;
24
+ operationPerms?: string[];
25
+ }
26
+ export type onClickOperateCellItem = (btnItem: OperateCellItemProps) => void;
27
+ export interface OperateCellItemProps extends Record<string, any> {
28
+ title: string;
29
+ operationCode?: string;
30
+ onClick?: onClickOperateCellItem;
31
+ }
32
+ export interface TableToolbarProps {
33
+ title?: string;
34
+ totalCount?: number | string;
35
+ filterProps?: any;
36
+ operationProps?: any;
37
+ prefix?: string;
38
+ actions?: any;
39
+ components?: any;
40
+ }
@@ -1,16 +1,16 @@
1
- interface ComponentsStoreProps {
2
- components: any;
3
- }
4
- declare class ComponentsStore {
5
- static buildInComponents: any;
6
- instanceComponents: any;
7
- mergedComponents: any;
8
- constructor(obj: ComponentsStoreProps);
9
- static configBuildIn(obj: ComponentsStoreProps): void;
10
- static getBuildIn(name: string): any;
11
- configInstance(obj: ComponentsStoreProps): void;
12
- private doMergeComponents;
13
- getComponentTag(component: any): any;
14
- }
15
- declare function isComponentsStoreEquals(a: ComponentsStore, b: ComponentsStore): boolean;
16
- export { ComponentsStore, isComponentsStoreEquals };
1
+ interface ComponentsStoreProps {
2
+ components: any;
3
+ }
4
+ declare class ComponentsStore {
5
+ static buildInComponents: any;
6
+ instanceComponents: any;
7
+ mergedComponents: any;
8
+ constructor(obj: ComponentsStoreProps);
9
+ static configBuildIn(obj: ComponentsStoreProps): void;
10
+ static getBuildIn(name: string): any;
11
+ configInstance(obj: ComponentsStoreProps): void;
12
+ private doMergeComponents;
13
+ getComponentTag(component: any): any;
14
+ }
15
+ declare function isComponentsStoreEquals(a: ComponentsStore, b: ComponentsStore): boolean;
16
+ export { ComponentsStore, isComponentsStoreEquals };
@@ -1 +1 @@
1
- export declare function assignSubComponent(Component: any, SubComponents: any): any;
1
+ export declare function assignSubComponent(Component: any, SubComponents: any): any;
@@ -1,4 +1,4 @@
1
- declare const constants: {
2
- EMPTY_PLACEHOLDER: string;
3
- };
4
- export { constants };
1
+ declare const constants: {
2
+ EMPTY_PLACEHOLDER: string;
3
+ };
4
+ export { constants };