es-grid-template 1.8.65 → 1.8.66

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 (146) hide show
  1. package/es/grid-component/TempTable.d.ts +2 -2
  2. package/es/grid-component/TempTable.js +3 -3
  3. package/es/grid-component/hooks/index.js +0 -1
  4. package/es/grid-component/hooks/useLazyKVMap.d.ts +1 -1
  5. package/es/grid-component/hooks/useLazyKVMap.js +0 -4
  6. package/es/grid-component/hooks/utils.d.ts +3 -4
  7. package/es/grid-component/hooks/utils.js +2 -1
  8. package/es/grid-component/styles.scss +1394 -1394
  9. package/es/grid-component/type.d.ts +0 -414
  10. package/es/grid-component/type.js +490 -1
  11. package/es/table-component/type.d.ts +2 -0
  12. package/es/table-virtuoso/ColumnsGroup/ColumnsGroup.js +1 -3
  13. package/es/table-virtuoso/InternalTable.js +6 -28
  14. package/es/table-virtuoso/body/TableBodyCell.js +0 -9
  15. package/es/table-virtuoso/body/TableBodyRow.js +0 -4
  16. package/es/table-virtuoso/style.js +2 -1
  17. package/es/table-virtuoso/style.scss +2 -1
  18. package/es/table-virtuoso/table/Grid.js +0 -4
  19. package/es/table-virtuoso/table/TableContainer.js +31 -44
  20. package/es/table-virtuoso/table/TableWrapper.d.ts +2 -0
  21. package/es/table-virtuoso/table/TableWrapper.js +5 -2
  22. package/lib/grid-component/TempTable.d.ts +2 -2
  23. package/lib/grid-component/TempTable.js +3 -5
  24. package/lib/grid-component/hooks/useLazyKVMap.d.ts +1 -1
  25. package/lib/grid-component/hooks/useLazyKVMap.js +0 -3
  26. package/lib/grid-component/hooks/utils.d.ts +3 -4
  27. package/lib/grid-component/hooks/utils.js +3 -0
  28. package/lib/grid-component/styles.scss +1394 -1394
  29. package/lib/grid-component/type.d.ts +0 -414
  30. package/lib/grid-component/type.js +490 -4
  31. package/lib/table-component/type.d.ts +2 -0
  32. package/lib/table-virtuoso/ColumnsGroup/ColumnsGroup.js +1 -3
  33. package/lib/table-virtuoso/InternalTable.js +6 -28
  34. package/lib/table-virtuoso/body/TableBodyCell.js +0 -9
  35. package/lib/table-virtuoso/body/TableBodyRow.js +0 -5
  36. package/lib/table-virtuoso/style.js +2 -1
  37. package/lib/table-virtuoso/style.scss +2 -1
  38. package/lib/table-virtuoso/table/Grid.js +0 -4
  39. package/lib/table-virtuoso/table/TableContainer.js +29 -42
  40. package/lib/table-virtuoso/table/TableWrapper.d.ts +2 -0
  41. package/lib/table-virtuoso/table/TableWrapper.js +4 -2
  42. package/package.json +1 -1
  43. package/es/grid-component/AdvanceFilter.d.ts +0 -14
  44. package/es/grid-component/AdvanceFilter.js +0 -454
  45. package/es/grid-component/CheckboxFilter.d.ts +0 -20
  46. package/es/grid-component/CheckboxFilter.js +0 -244
  47. package/es/grid-component/CheckboxFilter2.d.ts +0 -20
  48. package/es/grid-component/CheckboxFilter2.js +0 -244
  49. package/es/grid-component/ColumnsChoose.d.ts +0 -10
  50. package/es/grid-component/ColumnsChoose.js +0 -230
  51. package/es/grid-component/ColumnsGroup/ColumnsGroup.d.ts +0 -12
  52. package/es/grid-component/ColumnsGroup/ColumnsGroup.js +0 -232
  53. package/es/grid-component/ColumnsGroup/index.d.ts +0 -1
  54. package/es/grid-component/ColumnsGroup/index.js +0 -1
  55. package/es/grid-component/Command.d.ts +0 -8
  56. package/es/grid-component/Command.js +0 -80
  57. package/es/grid-component/ContextMenu.d.ts +0 -20
  58. package/es/grid-component/ContextMenu.js +0 -130
  59. package/es/grid-component/EditForm/EditForm.d.ts +0 -27
  60. package/es/grid-component/EditForm/EditForm.js +0 -394
  61. package/es/grid-component/EditForm/index.d.ts +0 -1
  62. package/es/grid-component/EditForm/index.js +0 -1
  63. package/es/grid-component/EditableCell.d.ts +0 -20
  64. package/es/grid-component/EditableCell.js +0 -1030
  65. package/es/grid-component/FilterSearch.d.ts +0 -12
  66. package/es/grid-component/FilterSearch.js +0 -33
  67. package/es/grid-component/GridStyle.d.ts +0 -8
  68. package/es/grid-component/GridStyle.js +0 -5
  69. package/es/grid-component/TableGrid.d.ts +0 -21
  70. package/es/grid-component/TableGrid.js +0 -493
  71. package/es/grid-component/async-select/index.d.ts +0 -11
  72. package/es/grid-component/async-select/index.js +0 -38
  73. package/es/grid-component/async-table-select/index.d.ts +0 -11
  74. package/es/grid-component/async-table-select/index.js +0 -40
  75. package/es/grid-component/checkbox-control/index.d.ts +0 -13
  76. package/es/grid-component/checkbox-control/index.js +0 -40
  77. package/es/grid-component/hooks/columns/index.d.ts +0 -10
  78. package/es/grid-component/hooks/columns/index.js +0 -503
  79. package/es/grid-component/hooks/content/ControlCheckbox.d.ts +0 -13
  80. package/es/grid-component/hooks/content/ControlCheckbox.js +0 -87
  81. package/es/grid-component/hooks/content/HeaderContent.d.ts +0 -14
  82. package/es/grid-component/hooks/content/HeaderContent.js +0 -44
  83. package/es/grid-component/hooks/content/TooltipContent.d.ts +0 -13
  84. package/es/grid-component/hooks/content/TooltipContent.js +0 -74
  85. package/es/grid-component/hooks/useColumns.d.ts +0 -19
  86. package/es/grid-component/hooks/useColumns.js +0 -317
  87. package/es/grid-component/number/index.d.ts +0 -10
  88. package/es/grid-component/number/index.js +0 -39
  89. package/es/grid-component/number-range/index.d.ts +0 -11
  90. package/es/grid-component/number-range/index.js +0 -63
  91. package/es/grid-component/useContext.d.ts +0 -34
  92. package/es/grid-component/useContext.js +0 -8
  93. package/es/table-virtuoso/body/TableBody.d.ts +0 -14
  94. package/es/table-virtuoso/body/TableBody.js +0 -84
  95. package/lib/grid-component/AdvanceFilter.d.ts +0 -14
  96. package/lib/grid-component/AdvanceFilter.js +0 -463
  97. package/lib/grid-component/CheckboxFilter.d.ts +0 -20
  98. package/lib/grid-component/CheckboxFilter.js +0 -253
  99. package/lib/grid-component/CheckboxFilter2.d.ts +0 -20
  100. package/lib/grid-component/CheckboxFilter2.js +0 -253
  101. package/lib/grid-component/ColumnsChoose.d.ts +0 -10
  102. package/lib/grid-component/ColumnsChoose.js +0 -240
  103. package/lib/grid-component/ColumnsGroup/ColumnsGroup.d.ts +0 -12
  104. package/lib/grid-component/ColumnsGroup/ColumnsGroup.js +0 -243
  105. package/lib/grid-component/ColumnsGroup/index.d.ts +0 -1
  106. package/lib/grid-component/ColumnsGroup/index.js +0 -16
  107. package/lib/grid-component/Command.d.ts +0 -8
  108. package/lib/grid-component/Command.js +0 -88
  109. package/lib/grid-component/ContextMenu.d.ts +0 -20
  110. package/lib/grid-component/ContextMenu.js +0 -140
  111. package/lib/grid-component/EditForm/EditForm.d.ts +0 -27
  112. package/lib/grid-component/EditForm/EditForm.js +0 -404
  113. package/lib/grid-component/EditForm/index.d.ts +0 -1
  114. package/lib/grid-component/EditForm/index.js +0 -16
  115. package/lib/grid-component/EditableCell.d.ts +0 -20
  116. package/lib/grid-component/EditableCell.js +0 -1032
  117. package/lib/grid-component/FilterSearch.d.ts +0 -12
  118. package/lib/grid-component/FilterSearch.js +0 -42
  119. package/lib/grid-component/GridStyle.d.ts +0 -8
  120. package/lib/grid-component/GridStyle.js +0 -12
  121. package/lib/grid-component/TableGrid.d.ts +0 -21
  122. package/lib/grid-component/TableGrid.js +0 -493
  123. package/lib/grid-component/async-select/index.d.ts +0 -11
  124. package/lib/grid-component/async-select/index.js +0 -47
  125. package/lib/grid-component/async-table-select/index.d.ts +0 -11
  126. package/lib/grid-component/async-table-select/index.js +0 -49
  127. package/lib/grid-component/checkbox-control/index.d.ts +0 -13
  128. package/lib/grid-component/checkbox-control/index.js +0 -48
  129. package/lib/grid-component/hooks/columns/index.d.ts +0 -10
  130. package/lib/grid-component/hooks/columns/index.js +0 -518
  131. package/lib/grid-component/hooks/content/ControlCheckbox.d.ts +0 -13
  132. package/lib/grid-component/hooks/content/ControlCheckbox.js +0 -95
  133. package/lib/grid-component/hooks/content/HeaderContent.d.ts +0 -14
  134. package/lib/grid-component/hooks/content/HeaderContent.js +0 -53
  135. package/lib/grid-component/hooks/content/TooltipContent.d.ts +0 -13
  136. package/lib/grid-component/hooks/content/TooltipContent.js +0 -81
  137. package/lib/grid-component/hooks/useColumns.d.ts +0 -19
  138. package/lib/grid-component/hooks/useColumns.js +0 -328
  139. package/lib/grid-component/number/index.d.ts +0 -10
  140. package/lib/grid-component/number/index.js +0 -47
  141. package/lib/grid-component/number-range/index.d.ts +0 -11
  142. package/lib/grid-component/number-range/index.js +0 -71
  143. package/lib/grid-component/useContext.d.ts +0 -34
  144. package/lib/grid-component/useContext.js +0 -13
  145. package/lib/table-virtuoso/body/TableBody.d.ts +0 -14
  146. package/lib/table-virtuoso/body/TableBody.js +0 -95
@@ -1,414 +0,0 @@
1
- import type { Key, ReactElement, ReactNode } from "react";
2
- import type React from "react";
3
- import type { IOperator } from "./hooks";
4
- import type { TypeFilter, TableProps as RcTableProps, TableColumnType as RcColumnType, EditType, TablePaginationConfig } from "rc-master-ui";
5
- import type { FilterOperator, TableRowSelection } from "rc-master-ui/es/table/interface";
6
- import type { ToolbarItem as RcToolbarItem } from "rc-master-ui/es/toolbar";
7
- import type { ItemType } from "rc-master-ui/es/menu/interface";
8
- import type { FieldNames, FilterFunc } from "rc-select/es/Select";
9
- import type { ColorPickerProps } from "antd";
10
- import type { FixedType } from "rc-base-table/lib/interface";
11
- import type { TableLocale } from "rc-master-ui/lib/table/interface";
12
- import type { Cell, Header, Row } from '@tanstack/react-table';
13
- export type IColumnType = "number" | "time" | "date" | "week" | "month" | "file" | "quarter" | "year" | "datetime" | "string" | "boolean" | "checkbox" | "color" | null | undefined;
14
- export type AnyObject = Record<PropertyKey, any>;
15
- export type SelectMode = 'checkbox' | 'radio' | undefined;
16
- export type ITextAlign = 'center' | 'left' | 'right';
17
- export type Frozen = 'left' | 'right' | 'Left' | 'Right';
18
- export type ToolbarItem = Omit<RcToolbarItem, 'position' | 'align'> & {
19
- position?: 'Top' | 'Bottom';
20
- align?: ITextAlign;
21
- onClick?: (args: any) => void;
22
- };
23
- export type ContextMenuItem = ItemType;
24
- export type ITemplateColumn = {
25
- value: any;
26
- column: any;
27
- rowData: any;
28
- field: number | string;
29
- index: number;
30
- };
31
- export type ColumnSelectTable = {
32
- field: string;
33
- dataIndex?: string;
34
- type?: IColumnType;
35
- headerText?: string;
36
- fixedType?: 'left' | 'right' | undefined;
37
- width?: number | undefined;
38
- minWidth?: number;
39
- maxWidth?: number;
40
- visible?: boolean;
41
- textAlign?: ITextAlign;
42
- headerTextAlign?: ITextAlign;
43
- template?: (props: ITemplateColumn) => ReactNode | ReactElement;
44
- headerTemplate?: any;
45
- ellipsis?: boolean | undefined;
46
- format?: IFormat;
47
- tooltipDescription?: string | ((rowData: any) => string | ReactNode);
48
- showTooltip?: boolean;
49
- showTooltipHeader?: boolean;
50
- };
51
- export type IEditSelectSettings = {
52
- fieldKey?: string;
53
- options: any[] | ((rowData: any, field: string) => any[]);
54
- /** get value form other field **/
55
- fieldValue?: string;
56
- /** get label form other field **/
57
- fieldLabel?: string;
58
- /** cho phép nhập giá trị - onBlur: giá trị search được set thành value **/
59
- searchTextAsValue?: boolean;
60
- inputKey?: string;
61
- filterKey?: string[];
62
- selectMode?: SelectMode;
63
- getPasteValue?: (value: any) => Record<string, any> | null;
64
- validateOption?: (rowData: any, field: string) => any[];
65
- defaultOptions?: any[];
66
- defaultValue?: (value: any, rowData: any) => {
67
- value: any;
68
- label: string;
69
- [key: string]: string;
70
- } | null;
71
- formatOptionLabel?: (option: any) => ReactNode | ReactElement;
72
- loadOptions?: (search: string, callback: (newOptions: any[]) => void, args?: LoadOptionsArgs) => void;
73
- isMulti?: boolean;
74
- closeMenuOnSelect?: boolean;
75
- menuWidth?: number;
76
- menuHeight?: number;
77
- columns?: ColumnSelectTable[];
78
- toolbarItems?: ToolbarItem[];
79
- toolbarClick?: (props: ToolbarClick) => void;
80
- toolbarHeight?: number;
81
- hideSelectedOptions?: boolean;
82
- showItems?: number;
83
- isLengthSelected?: boolean;
84
- fieldNames?: FieldNames;
85
- filterOption?: boolean | FilterFunc<any>;
86
- };
87
- export type ToolbarClick = {
88
- item: any;
89
- column: any;
90
- };
91
- export type LoadOptionsArgs = {
92
- rowData?: any;
93
- };
94
- export type ColumnTable<RecordType = AnyObject> = Omit<RcColumnType<RecordType>, 'headerTemplate' | 'title' | 'format' | 'commandItems'> & {
95
- field?: string;
96
- key?: any;
97
- type?: IColumnType;
98
- /** @deprecated This function is deprecated and should use `onChange` instead */
99
- haveSum?: boolean;
100
- isSummary?: boolean;
101
- summaryTemplate?: (data: number, key: string) => ReactElement | ReactNode;
102
- maxWidth?: string | number;
103
- format?: IFormat | ((rowData: any) => IFormat);
104
- allowFiltering?: boolean;
105
- allowSortering?: boolean;
106
- operator?: FilterOperator;
107
- hideOperator?: boolean;
108
- placeholder?: string;
109
- showInColumnChoose?: boolean;
110
- typeFilter?: TypeFilter;
111
- source?: any[];
112
- showFilterSearch?: boolean;
113
- headerText?: string;
114
- visible?: boolean;
115
- headerTooltip?: boolean | string | (() => ReactNode | ReactElement);
116
- columnGroupText?: string;
117
- textAlign?: ITextAlign;
118
- headerTextAlign?: ITextAlign;
119
- template?: ReactNode | ReactElement | ((args: ColumnTemplate<RecordType>) => ReactNode | ReactElement);
120
- showTooltip?: boolean;
121
- tooltipDescription?: ReactNode | ReactElement | ((args: {
122
- value: any;
123
- record: RecordType;
124
- }) => ReactNode | ReactElement);
125
- headerTemplate?: React.ReactNode | React.ReactElement | ((column: ColumnTable<RecordType>) => React.ReactNode | React.ReactElement);
126
- commandItems?: CommandItem[];
127
- children?: ColumnTable<RecordType>[];
128
- editType?: EditType | ((rowData?: RecordType) => EditType);
129
- disable?: boolean | ((rowData: any) => boolean);
130
- editEnable?: boolean | ((rowData: any) => boolean);
131
- isClearable?: boolean;
132
- maxDate?: any;
133
- minDate?: any;
134
- maxTime?: any;
135
- minTime?: any;
136
- max?: number;
137
- min?: number;
138
- editSelectSettings?: IEditSelectSettings;
139
- editFromSettings?: IEditFromSettings;
140
- fixedType?: FixedType;
141
- headerTextWrap?: boolean;
142
- sumGroup?: boolean;
143
- allowSelection?: boolean | ((rowData: RecordType) => boolean);
144
- onCellStyles?: Omit<React.CSSProperties, 'display' | 'width' | 'minWidth' | 'left' | 'right' | 'position'> | ((cellValue: any, cell: Cell<RecordType, unknown>) => Omit<React.CSSProperties, 'display' | 'width' | 'minWidth' | 'left' | 'right' | 'position'>);
145
- onCellHeaderStyles?: Omit<React.CSSProperties, 'display' | 'width' | 'minWidth' | 'left' | 'right' | 'position'> | ((cell: Header<RecordType, unknown>) => Omit<React.CSSProperties, 'display' | 'width' | 'minWidth' | 'left' | 'right' | 'position'>);
146
- onCellFooterStyles?: Omit<React.CSSProperties, 'display' | 'width' | 'minWidth' | 'left' | 'right' | 'position'> | ((cellValue: any, cell: Header<RecordType, unknown>) => Omit<React.CSSProperties, 'display' | 'width' | 'minWidth' | 'left' | 'right' | 'position'>);
147
- };
148
- export type IFormOpen = {
149
- value?: any;
150
- setValue?: any;
151
- getValues?: any;
152
- reset?: any;
153
- rowData?: any;
154
- };
155
- export type IEditFromSettings = {
156
- fieldKey: string;
157
- formOpen?: (props: IFormOpen) => void;
158
- formClose?: (props: IFormOpen) => void;
159
- formatLabel?: (value: any) => string;
160
- menuWidth?: number;
161
- menuHeight?: number;
162
- labelWith?: number;
163
- items: any[];
164
- layout?: {
165
- xl?: IGrid;
166
- lg?: IGrid;
167
- md?: IGrid;
168
- sm?: IGrid;
169
- xs?: IGrid;
170
- };
171
- defaultValues?: Record<string, any>;
172
- schema?: any;
173
- };
174
- type IGrid = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
175
- export type ColumnTemplate<RecordType> = {
176
- value: any;
177
- rowData: RecordType;
178
- index: number;
179
- field: string;
180
- };
181
- export type ColumnsTable<RecordType = AnyObject> = ColumnTable<RecordType>[];
182
- export type Locale = TableLocale & {
183
- ok_btn: string;
184
- cancel_btn: string;
185
- add_rows: string;
186
- add_rows_before: string;
187
- add_rows_after: string;
188
- add_1: string;
189
- add_10: string;
190
- add_50: string;
191
- add_100: string;
192
- add_children: string;
193
- delete_content: string;
194
- delete_rows: string;
195
- custom: string;
196
- };
197
- export type Sort = {
198
- columnKey: string;
199
- field: string;
200
- order: 'ascend' | 'descend' | null;
201
- };
202
- export interface TableProps<RecordType = AnyObject> extends Omit<RcTableProps<RecordType>, 'columns' | 'rowSelection' | 'loading' | 'dataSource' | 'summary' | 'pagination' | 'locale' | 'virtual'> {
203
- editAble?: boolean;
204
- infiniteScroll?: boolean;
205
- theme?: {
206
- theme?: 'dark' | 'light';
207
- backgroundColor?: string;
208
- color?: string;
209
- };
210
- virtualRow?: boolean;
211
- virtualColumns?: boolean;
212
- next?: () => void;
213
- locale?: Locale;
214
- groupAble?: boolean;
215
- groupColumns?: string[];
216
- groupSetting?: IGroupSetting;
217
- onChooseColumns?: (props: IOnChooseColumns) => void;
218
- pagination?: false | PaginationConfig;
219
- showCustomTooltip?: boolean;
220
- sortMultiple?: boolean;
221
- dataSource: RecordType[];
222
- columns: ColumnsTable<RecordType>;
223
- height?: number;
224
- minHeight?: number;
225
- format?: IFormat;
226
- t?: any;
227
- lang?: string;
228
- contextMenuItems?: ContextMenuItem[];
229
- showDefaultContext?: boolean;
230
- contextMenuHidden?: string[] | ((args?: Omit<ContextInfo<RecordType>, 'item' | 'event'>) => string[]);
231
- contextMenuOpen?: (args: Omit<ContextInfo<RecordType>, 'item'>) => void;
232
- contextMenuClick?: (args: ContextInfo<RecordType>) => void;
233
- recordDoubleClick?: (args: RecordDoubleClickEventArgs<RecordType>) => void;
234
- toolbarItems?: ToolbarItem[];
235
- showColumnChoose?: boolean;
236
- showAdvanceFilter?: boolean;
237
- allowFiltering?: boolean;
238
- onFilter?: (query: {
239
- field: string;
240
- key: string;
241
- operator: IOperator;
242
- predicate: 'and' | 'or';
243
- value: any;
244
- }[]) => void;
245
- allowSortering?: boolean;
246
- onSorter?: (args: {
247
- column: ColumnTable<RecordType>;
248
- columnKey: string;
249
- field: string;
250
- order: 'ascend' | 'descend' | null;
251
- }) => void;
252
- defaultSorter?: Sort[];
253
- selectionSettings?: SelectionSettings;
254
- rowKey?: string | keyof RecordType | GetRowKey<RecordType>;
255
- rowSelection?: RowSelection<RecordType>;
256
- rowSelected?: (args: {
257
- type: string;
258
- rowData: RecordType;
259
- selected: RecordType | RecordType[];
260
- }) => void;
261
- dataSourceFilter?: SourceFilter[];
262
- onFilterClick?: (column: ColumnTable<RecordType>, callback: (key: string, data: any) => void) => void;
263
- loading?: boolean;
264
- allowResizing?: boolean;
265
- showToolbar?: boolean;
266
- onDataChange?: (data: RecordType[]) => void;
267
- defaultValue?: AnyObject | (() => AnyObject);
268
- summary?: boolean | ((data: readonly RecordType[]) => React.ReactNode);
269
- showEmptyText?: boolean;
270
- commandSettings?: CommandSettings;
271
- onCellPaste?: ICellPasteModel<RecordType>;
272
- onCellChange?: (args: CellChangeArgs<RecordType>, handleCallback: (rowData: any, index: any, value?: any) => void) => void;
273
- onCellClick?: (args: ICellClick, callback?: any) => void;
274
- rowEditable?: (rowData: RecordType) => boolean;
275
- validate?: any;
276
- onBlur?: (data: RecordType[]) => void;
277
- onExpandClick?: (args: {
278
- expandedKeys: string[];
279
- key: string;
280
- rowData: any;
281
- }) => void;
282
- wrapSettings?: IWrapSettings;
283
- actionTemplate?: ReactNode | ReactElement | (() => ReactNode | ReactElement);
284
- fullScreen?: boolean;
285
- onRowStyles?: Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'> | ((data: RecordType, row: Row<RecordType>) => Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'>);
286
- onRowHeaderStyles?: Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'> | (() => Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'>);
287
- onRowFooterStyles?: Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'> | (() => Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'>);
288
- fullScreenTitle?: ReactNode | (() => ReactNode);
289
- }
290
- export type PaginationConfig = TablePaginationConfig & {
291
- currentPage?: number;
292
- };
293
- export type ICellClick = {
294
- index: number;
295
- indexCol?: number;
296
- rowId: string | number;
297
- type: 'Editing' | 'Default';
298
- field: string;
299
- cellValue: any;
300
- rowData: any;
301
- };
302
- export type GridTableProps<RecordType = AnyObject> = TableProps<RecordType>;
303
- export interface CommandItem {
304
- id: string;
305
- type?: string;
306
- visible?: boolean | ((record: any) => boolean);
307
- title: string;
308
- color?: 'blue' | 'purple' | 'cyan' | 'green' | 'magenta' | 'pink' | 'red' | 'orange' | 'yellow' | 'volcano' | 'geekblue' | 'lime' | 'gold';
309
- tooltip?: string;
310
- icon?: ReactNode | ReactElement | (() => ReactNode | ReactElement);
311
- template?: ReactNode | ReactElement | ((record: any) => ReactNode | ReactElement);
312
- client?: boolean;
313
- confirmDialog?: boolean;
314
- }
315
- export type GroupTemplate = {
316
- rowData: any;
317
- value: any;
318
- column: ColumnTable;
319
- };
320
- export type IGroupSetting = {
321
- client?: boolean;
322
- onGroup?: (props: IOnGroup) => void;
323
- groupColumnSpan?: number;
324
- hiddenColumnGroup?: boolean;
325
- showHeaderColumn?: boolean;
326
- showGroupIcon?: boolean;
327
- unClearableLevel?: 1 | 2 | 3 | undefined;
328
- sumGroup?: boolean;
329
- groupTemplate?: React.ReactNode | React.ReactElement | ((args: GroupTemplate) => React.ReactNode | React.ReactElement);
330
- };
331
- type IOnGroup = {
332
- columnGrouped: string[];
333
- columns: ColumnsTable;
334
- flattenColumns: ColumnsTable;
335
- };
336
- export type IOnChooseColumns = {
337
- columns: ColumnsTable;
338
- showColumns: ColumnsTable;
339
- flattenColumns: ColumnsTable;
340
- };
341
- export type CellChangeArgs<T> = {
342
- type: 'onPaste' | 'onChange' | 'onCellPaste';
343
- value: any;
344
- option: AnyObject;
345
- rowData: T;
346
- rowsData: T[];
347
- indexRow: number;
348
- rowId?: string;
349
- field: string | undefined;
350
- indexCol: any;
351
- sumValue?: any[];
352
- };
353
- export type IOnPastedProps = {
354
- data: any[];
355
- copyRows: any[];
356
- pastedColumns: string[];
357
- pasteData: any[];
358
- type: 'onPaste' | 'onChange' | 'onCellPaste';
359
- };
360
- export interface ICellPasteModel<RecordType = AnyObject> {
361
- onPasted?: (args: IOnPastedProps, handleCallback: (callbackData: any[]) => void) => void;
362
- dataChange?: (data: RecordType[]) => void;
363
- getCallbackData?: (props: any) => void;
364
- maxRowsPaste?: number;
365
- }
366
- export type SourceFilter = {
367
- key: string;
368
- data: any[];
369
- loadOptions?: (search: string, callback: (newOptions: any[]) => void) => void;
370
- };
371
- export type RowSelection<RecordType> = Omit<TableRowSelection<RecordType>, 'type' | 'columnWidth' | 'hideSelectAll' | 'defaultSelectedRowKeys'>;
372
- export type SelectionSettings = Omit<TableRowSelection, 'type' | 'onChange' | 'onSelect' | 'onSelectAll' | 'onSelectNone' | 'onSelectMultiple'> & {
373
- mode?: 'checkbox' | 'radio';
374
- type?: 'single' | 'multiple';
375
- checkboxOnly?: boolean;
376
- };
377
- export type RecordDoubleClickEventArgs<RecordType> = {
378
- rowData: RecordType;
379
- rowIndex: number | undefined;
380
- e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
381
- };
382
- export type ContextInfo<RecordType> = {
383
- rowInfo: {
384
- rowData: RecordType | null;
385
- };
386
- event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
387
- item: ItemType;
388
- };
389
- export type IFormat = {
390
- thousandSeparator?: string;
391
- decimalSeparator?: string;
392
- decimalScale?: number | undefined;
393
- allowNegative?: boolean;
394
- prefix?: string | undefined;
395
- suffix?: string | undefined;
396
- fixedDecimalScale?: boolean;
397
- dateFormat?: string;
398
- datetimeFormat?: string;
399
- timeFormat?: string;
400
- weekFormat?: string;
401
- monthFormat?: string;
402
- yearFormat?: string;
403
- };
404
- export type GetRowKey<RecordType> = (record: RecordType, index?: number) => Key;
405
- export type Presets = Required<ColorPickerProps>['presets'][number];
406
- export type CommandSettings = {
407
- client?: boolean;
408
- confirmDialog?: boolean;
409
- };
410
- export type IWrapMode = 'Header' | 'Both' | 'Content';
411
- export type IWrapSettings = {
412
- wrapMode?: IWrapMode;
413
- };
414
- export {};