es-grid-template 1.8.66 → 1.8.68

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 (177) hide show
  1. package/es/grid-component/hooks/constant.d.ts +1 -0
  2. package/es/grid-component/hooks/constant.js +2 -1
  3. package/es/grid-component/hooks/useLazyKVMap.d.ts +1 -1
  4. package/es/grid-component/hooks/utils.d.ts +1 -1
  5. package/es/grid-component/index.d.ts +1 -1
  6. package/es/grid-component/type.d.ts +567 -0
  7. package/es/grid-component/type.js +1 -490
  8. package/es/table-component/ColumnsChoose.d.ts +1 -1
  9. package/es/table-component/ColumnsChoose.js +0 -2
  10. package/es/table-component/ContextMenu.d.ts +1 -2
  11. package/es/table-component/ContextMenu.js +0 -1
  12. package/es/table-component/InternalTable.d.ts +1 -2
  13. package/es/table-component/InternalTable.js +1 -32
  14. package/es/table-component/TableContainer.d.ts +1 -1
  15. package/es/table-component/TableContainer.js +4 -2
  16. package/es/table-component/TableContainerEdit.d.ts +1 -1
  17. package/es/table-component/TableContainerEdit.js +6 -129
  18. package/es/table-component/body/EditableCell.d.ts +1 -1
  19. package/es/table-component/body/EditableCell.js +1 -18
  20. package/es/table-component/body/TableBody.d.ts +1 -1
  21. package/es/table-component/body/TableBodyCell.d.ts +1 -1
  22. package/es/table-component/body/TableBodyCellEdit.d.ts +1 -1
  23. package/es/table-component/body/TableBodyCellEdit.js +2 -9
  24. package/es/table-component/body/TableBodyRow.d.ts +1 -1
  25. package/es/table-component/components/ControlCheckbox.d.ts +1 -1
  26. package/es/table-component/components/EditForm/EditForm.js +0 -1
  27. package/es/table-component/components/InputControl/InputControl.js +0 -3
  28. package/es/table-component/components/async-select/index.d.ts +1 -1
  29. package/es/table-component/components/async-select/index.js +0 -3
  30. package/es/table-component/components/async-table-select/index.d.ts +1 -1
  31. package/es/table-component/components/async-table-select/index.js +0 -4
  32. package/es/table-component/components/checkbox-filter/CheckboxFilter.js +6 -2
  33. package/es/table-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
  34. package/es/table-component/components/checkbox-filter/FilterSearch.js +1 -1
  35. package/es/table-component/components/command/Command.d.ts +1 -1
  36. package/es/table-component/components/number/index.d.ts +3 -2
  37. package/es/table-component/components/number/index.js +0 -8
  38. package/es/table-component/components/number-range/index.d.ts +3 -2
  39. package/es/table-component/components/number-range/index.js +0 -3
  40. package/es/table-component/footer/TableFooterRow.js +1 -22
  41. package/es/table-component/header/TableHead.js +0 -20
  42. package/es/table-component/header/TableHeadCell.js +1 -15
  43. package/es/table-component/header/TableHeadCell2.js +5 -3
  44. package/es/table-component/header/TableHeadGroupCell.js +0 -23
  45. package/es/table-component/header/renderFilter.d.ts +1 -1
  46. package/es/table-component/hook/useColumns.d.ts +1 -1
  47. package/es/table-component/hook/useFilterOperator.d.ts +2 -2
  48. package/es/table-component/hook/utils.d.ts +1 -1
  49. package/es/table-component/hook/utils.js +0 -3
  50. package/es/table-component/index.d.ts +1 -1
  51. package/es/table-component/index.js +0 -3
  52. package/es/table-component/table/Grid.d.ts +1 -1
  53. package/es/table-component/table/Grid.js +0 -5
  54. package/es/table-component/table/TableWrapper.d.ts +1 -1
  55. package/es/table-component/useContext.d.ts +2 -1
  56. package/es/table-virtuoso/InternalTable.d.ts +1 -1
  57. package/es/table-virtuoso/InternalTable.js +2 -1
  58. package/es/table-virtuoso/body/TableBodyCell.d.ts +1 -1
  59. package/es/table-virtuoso/body/TableBodyCell.js +1 -1
  60. package/es/table-virtuoso/body/TableBodyRow.d.ts +2 -2
  61. package/es/table-virtuoso/body/TableBodyRow.js +3 -1
  62. package/es/table-virtuoso/header/TableHeadCell.js +1 -3
  63. package/es/table-virtuoso/header/renderFilter.d.ts +1 -1
  64. package/es/table-virtuoso/header/renderFilter.js +0 -4
  65. package/es/table-virtuoso/hook/utils.d.ts +1 -1
  66. package/es/table-virtuoso/style.js +1 -1
  67. package/es/table-virtuoso/table/Grid.d.ts +1 -1
  68. package/es/table-virtuoso/table/Grid.js +0 -24
  69. package/es/table-virtuoso/table/TableContainer.d.ts +1 -1
  70. package/es/table-virtuoso/table/TableContainer.js +0 -2
  71. package/es/table-virtuoso/table/TableWrapper.d.ts +1 -1
  72. package/es/table-virtuoso/table/TableWrapper.js +3 -19
  73. package/es/table-virtuoso/useContext.d.ts +1 -1
  74. package/lib/grid-component/hooks/constant.d.ts +1 -0
  75. package/lib/grid-component/hooks/constant.js +3 -2
  76. package/lib/grid-component/hooks/useLazyKVMap.d.ts +1 -1
  77. package/lib/grid-component/hooks/utils.d.ts +1 -1
  78. package/lib/grid-component/index.d.ts +1 -1
  79. package/lib/grid-component/type.d.ts +567 -0
  80. package/lib/grid-component/type.js +4 -490
  81. package/lib/table-component/ColumnsChoose.d.ts +1 -1
  82. package/lib/table-component/ColumnsChoose.js +0 -2
  83. package/lib/table-component/ContextMenu.d.ts +1 -2
  84. package/lib/table-component/ContextMenu.js +0 -2
  85. package/lib/table-component/InternalTable.d.ts +1 -2
  86. package/lib/table-component/InternalTable.js +1 -28
  87. package/lib/table-component/TableContainer.d.ts +1 -1
  88. package/lib/table-component/TableContainer.js +4 -2
  89. package/lib/table-component/TableContainerEdit.d.ts +1 -1
  90. package/lib/table-component/TableContainerEdit.js +5 -128
  91. package/lib/table-component/body/EditableCell.d.ts +1 -1
  92. package/lib/table-component/body/EditableCell.js +0 -10
  93. package/lib/table-component/body/TableBody.d.ts +1 -1
  94. package/lib/table-component/body/TableBodyCell.d.ts +1 -1
  95. package/lib/table-component/body/TableBodyCellEdit.d.ts +1 -1
  96. package/lib/table-component/body/TableBodyCellEdit.js +5 -11
  97. package/lib/table-component/body/TableBodyRow.d.ts +1 -1
  98. package/lib/table-component/components/ControlCheckbox.d.ts +1 -1
  99. package/lib/table-component/components/EditForm/EditForm.js +0 -2
  100. package/lib/table-component/components/InputControl/InputControl.js +0 -4
  101. package/lib/table-component/components/async-select/index.d.ts +1 -1
  102. package/lib/table-component/components/async-select/index.js +0 -2
  103. package/lib/table-component/components/async-table-select/index.d.ts +1 -1
  104. package/lib/table-component/components/async-table-select/index.js +0 -4
  105. package/lib/table-component/components/checkbox-filter/CheckboxFilter.js +6 -2
  106. package/lib/table-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
  107. package/lib/table-component/components/checkbox-filter/FilterSearch.js +1 -1
  108. package/lib/table-component/components/command/Command.d.ts +1 -1
  109. package/lib/table-component/components/number/index.d.ts +3 -2
  110. package/lib/table-component/components/number/index.js +0 -8
  111. package/lib/table-component/components/number-range/index.d.ts +3 -2
  112. package/lib/table-component/components/number-range/index.js +0 -3
  113. package/lib/table-component/footer/TableFooterRow.js +1 -23
  114. package/lib/table-component/header/TableHead.js +0 -21
  115. package/lib/table-component/header/TableHeadCell.js +4 -18
  116. package/lib/table-component/header/TableHeadCell2.js +8 -6
  117. package/lib/table-component/header/TableHeadGroupCell.js +0 -23
  118. package/lib/table-component/header/renderFilter.d.ts +1 -1
  119. package/lib/table-component/hook/useColumns.d.ts +1 -1
  120. package/lib/table-component/hook/useFilterOperator.d.ts +2 -2
  121. package/lib/table-component/hook/utils.d.ts +1 -1
  122. package/lib/table-component/hook/utils.js +0 -4
  123. package/lib/table-component/index.d.ts +1 -1
  124. package/lib/table-component/index.js +0 -1
  125. package/lib/table-component/table/Grid.d.ts +1 -1
  126. package/lib/table-component/table/Grid.js +0 -4
  127. package/lib/table-component/table/TableWrapper.d.ts +1 -1
  128. package/lib/table-component/useContext.d.ts +2 -1
  129. package/lib/table-virtuoso/InternalTable.d.ts +1 -1
  130. package/lib/table-virtuoso/InternalTable.js +3 -1
  131. package/lib/table-virtuoso/body/TableBodyCell.d.ts +1 -1
  132. package/lib/table-virtuoso/body/TableBodyCell.js +1 -1
  133. package/lib/table-virtuoso/body/TableBodyRow.d.ts +2 -2
  134. package/lib/table-virtuoso/body/TableBodyRow.js +3 -1
  135. package/lib/table-virtuoso/header/TableHeadCell.js +4 -6
  136. package/lib/table-virtuoso/header/renderFilter.d.ts +1 -1
  137. package/lib/table-virtuoso/header/renderFilter.js +0 -4
  138. package/lib/table-virtuoso/hook/utils.d.ts +1 -1
  139. package/lib/table-virtuoso/style.js +1 -1
  140. package/lib/table-virtuoso/table/Grid.d.ts +1 -1
  141. package/lib/table-virtuoso/table/Grid.js +0 -24
  142. package/lib/table-virtuoso/table/TableContainer.d.ts +1 -1
  143. package/lib/table-virtuoso/table/TableContainer.js +0 -2
  144. package/lib/table-virtuoso/table/TableWrapper.d.ts +1 -1
  145. package/lib/table-virtuoso/table/TableWrapper.js +3 -19
  146. package/lib/table-virtuoso/useContext.d.ts +1 -1
  147. package/package.json +1 -1
  148. package/es/table-component/hook/constant.d.ts +0 -73
  149. package/es/table-component/hook/constant.js +0 -240
  150. package/es/table-component/type.d.ts +0 -567
  151. package/es/table-component/type.js +0 -1
  152. package/es/table-virtuoso/hook/constant.d.ts +0 -73
  153. package/es/table-virtuoso/hook/constant.js +0 -240
  154. package/es/table-virtuoso/hook/convert.d.ts +0 -1
  155. package/es/table-virtuoso/hook/convert.js +0 -28
  156. package/es/table-virtuoso/hook/useColumns.d.ts +0 -28
  157. package/es/table-virtuoso/hook/useColumns.js +0 -302
  158. package/es/table-virtuoso/hook/useFilterOperator.d.ts +0 -7
  159. package/es/table-virtuoso/hook/useFilterOperator.js +0 -33
  160. package/es/table-virtuoso/style.scss +0 -1441
  161. package/es/table-virtuoso/type.d.ts +0 -0
  162. package/es/table-virtuoso/type.js +0 -785
  163. package/lib/table-component/hook/constant.d.ts +0 -73
  164. package/lib/table-component/hook/constant.js +0 -247
  165. package/lib/table-component/type.d.ts +0 -567
  166. package/lib/table-component/type.js +0 -5
  167. package/lib/table-virtuoso/hook/constant.d.ts +0 -73
  168. package/lib/table-virtuoso/hook/constant.js +0 -247
  169. package/lib/table-virtuoso/hook/convert.d.ts +0 -1
  170. package/lib/table-virtuoso/hook/convert.js +0 -34
  171. package/lib/table-virtuoso/hook/useColumns.d.ts +0 -28
  172. package/lib/table-virtuoso/hook/useColumns.js +0 -315
  173. package/lib/table-virtuoso/hook/useFilterOperator.d.ts +0 -7
  174. package/lib/table-virtuoso/hook/useFilterOperator.js +0 -40
  175. package/lib/table-virtuoso/style.scss +0 -1441
  176. package/lib/table-virtuoso/type.d.ts +0 -0
  177. package/lib/table-virtuoso/type.js +0 -786
@@ -1,786 +0,0 @@
1
- // import type { CheckboxProps, TablePaginationConfig } from 'rc-master-ui'
2
- // import type { ItemType } from 'rc-master-ui/es/menu/interface'
3
-
4
- // import type { Cell, Header, OnChangeFn, Row } from '@tanstack/react-table'
5
- // import type { ReactElement, ReactNode } from 'react'
6
- // import type { IOperator } from './hook/constant'
7
- // import type { ColorPickerProps } from 'antd'
8
- // import type { TableLocale } from "rc-master-ui/lib/table/interface";
9
-
10
- // // export type FilterOperator = 'contains' | 'equals' | 'startsWith' | 'endsWith'
11
-
12
- // declare module "@tanstack/table-core" {
13
- // // @ts-expect-error
14
- // // eslint-disable-next-line @typescript-eslint/no-unused-vars
15
- // interface ColumnMeta<any, any> extends ColumnTable {
16
- // rowSpan?: number;
17
- // }
18
- // }
19
-
20
- // export type ExtendedColumnFilter = {
21
- // id: string
22
- // value: string
23
- // operator?: FilterOperator
24
- // }
25
- // // ------- custom feature --------
26
-
27
- // export type OpetorState = ColumnOperator[]
28
-
29
- // export interface OpetorTableState {
30
- // operator: OpetorState
31
- // }
32
-
33
- // export interface ColumnOperator {
34
- // id: string
35
- // operator: string
36
- // }
37
-
38
- // // define types for our new feature's table options
39
- // export interface DensityOptions {
40
- // enableOperator?: boolean
41
- // onOperatorChange?: OnChangeFn<OpetorState>
42
- // }
43
-
44
- // // ------- custom feature --------
45
-
46
- // export type Key = React.Key
47
-
48
- // export type PaginationConfig = TablePaginationConfig & {
49
- // currentPage?: number
50
- // }
51
-
52
- // export type AnyObject = Record<PropertyKey, any>
53
-
54
- // export type IFormat = {
55
- // thousandSeparator?: string
56
- // decimalSeparator?: string
57
- // decimalScale?: number | undefined // bao nhiêu số sau số thập phân
58
- // allowNegative?: boolean // check nhập số âm
59
- // prefix?: string | undefined
60
- // suffix?: string | undefined
61
- // fixedDecimalScale?: boolean // mặc định thêm số 0 sau số thập phân
62
- // dateFormat?: string
63
- // datetimeFormat?: string
64
- // timeFormat?: string
65
- // weekFormat?: string
66
- // monthFormat?: string
67
- // yearFormat?: string
68
- // }
69
-
70
- // export type RowSelectMethod = 'all' | 'none' | 'invert' | 'single' | 'multiple'
71
-
72
- // export type EditType =
73
- // | 'text'
74
- // | 'numeric'
75
- // | 'asyncSelect'
76
- // | 'date'
77
- // | 'datetime'
78
- // | 'time'
79
- // | 'week'
80
- // | 'month'
81
- // | 'quarter'
82
- // | 'year'
83
- // | 'select'
84
- // | 'checkbox'
85
- // | 'currency'
86
- // | 'image'
87
- // | 'selectTable'
88
- // | 'customSelect'
89
- // | 'form'
90
- // | 'color'
91
- // | 'treeSelect'
92
- // | 'file'
93
- // export type ITextAlign = 'center' | 'left' | 'right'
94
- // export type TypeFilter =
95
- // | 'Text'
96
- // | 'Date'
97
- // | 'Time'
98
- // | 'Datetime'
99
- // | 'DateRange'
100
- // | 'Month'
101
- // | 'Quarter'
102
- // | 'Year'
103
- // | 'Week'
104
- // | 'Number'
105
- // | 'NumberRange'
106
- // | 'Dropdown'
107
- // | 'DropTree'
108
- // | 'Checkbox'
109
- // | 'CheckboxTree'
110
- // | 'CheckboxDropdown'
111
- // export type IColumnType =
112
- // | 'number'
113
- // | 'time'
114
- // | 'date'
115
- // | 'week'
116
- // | 'month'
117
- // | 'file'
118
- // | 'quarter'
119
- // | 'year'
120
- // | 'datetime'
121
- // | 'string'
122
- // | 'boolean'
123
- // | 'checkbox'
124
- // | 'color'
125
- // | null
126
- // | undefined
127
- // export type FilterOperator =
128
- // | 'equal'
129
- // | 'notEqual'
130
- // | 'greaterThan'
131
- // | 'greaterThanOrEqual'
132
- // | 'lessThan'
133
- // | 'lessThanOrEqual'
134
- // | 'startsWith'
135
- // | 'endsWith'
136
- // | 'contains'
137
- // export type FixedType = 'left' | 'right' | boolean
138
- // export type SelectMode = 'checkbox' | 'radio' | undefined
139
- // type IGrid =
140
- // | 1
141
- // | 2
142
- // | 3
143
- // | 4
144
- // | 5
145
- // | 6
146
- // | 7
147
- // | 8
148
- // | 9
149
- // | 10
150
- // | 11
151
- // | 12
152
- // | 13
153
- // | 14
154
- // | 15
155
- // | 16
156
- // | 17
157
- // | 18
158
- // | 19
159
- // | 20
160
- // | 21
161
- // | 22
162
- // | 23
163
- // | 24
164
-
165
- // export interface FieldNames {
166
- // value?: string
167
- // label?: string
168
- // groupLabel?: string
169
- // options?: string
170
- // }
171
-
172
- // export interface CommandItem {
173
- // id: string
174
- // type?: string
175
- // visible?: boolean | ((record: any) => boolean)
176
- // title: string
177
- // color?:
178
- // | 'blue'
179
- // | 'purple'
180
- // | 'cyan'
181
- // | 'green'
182
- // | 'magenta'
183
- // | 'pink'
184
- // | 'red'
185
- // | 'orange'
186
- // | 'yellow'
187
- // | 'volcano'
188
- // | 'geekblue'
189
- // | 'lime'
190
- // | 'gold'
191
- // tooltip?: string
192
- // icon?: ReactNode | ReactElement | (() => ReactNode | ReactElement)
193
- // template?: ReactNode | ReactElement | ((record: any) => ReactNode | ReactElement)
194
- // client?: boolean
195
- // confirmDialog?: boolean
196
- // }
197
-
198
- // export type ColumnTemplate<RecordType> = {
199
- // value: any
200
- // rowData: RecordType
201
- // index: number
202
- // field: string
203
- // }
204
-
205
- // export type ColumnTable<RecordType = AnyObject> = {
206
- // field: string
207
- // // key?: any,
208
-
209
- // width?: number
210
- // maxWidth?: number
211
- // minWidth?: number
212
-
213
- // type?: IColumnType
214
- // haveSum?: boolean
215
- // isSummary?: boolean
216
- // summaryTemplate?: (data: number, key: string) => ReactElement | ReactNode
217
-
218
- // format?: IFormat | ((rowData: any) => IFormat)
219
- // allowFiltering?: boolean
220
- // /**
221
- // * @deprecated Please use `allowSortering` instead.
222
- // * @since 1.7.25
223
- // */
224
- // sorter?: boolean
225
- // allowSortering?: boolean
226
- // operator?: FilterOperator
227
- // hideOperator?: boolean
228
- // placeholder?: string
229
- // showInColumnChoose?: boolean
230
- // typeFilter?: TypeFilter
231
- // source?: any[]
232
- // showFilterSearch?: boolean
233
- // headerText?: string
234
- // /**
235
- // * @deprecated Please use `visible` instead.
236
- // * @since 1.7.33
237
- // */
238
- // hidden?: boolean
239
- // visible?: boolean
240
- // headerTooltip?: boolean | string | (() => ReactNode | ReactElement)
241
- // columnGroupText?: string
242
- // /**
243
- // * @deprecated Please use `textAlign` instead.
244
- // * @since 1.7.34
245
- // */
246
- // align?: ITextAlign
247
- // textAlign?: ITextAlign
248
- // headerTextAlign?: ITextAlign
249
- // // template?: ReactNode | ReactElement | ((value: any, record: RecordType, index: number) => ReactNode | ReactElement)
250
- // template?: ReactNode | ReactElement | ((args: ColumnTemplate<RecordType>) => ReactNode | ReactElement)
251
- // showTooltip?: boolean
252
- // tooltipDescription?: string | ((args: { value: any, record: RecordType }) => ReactNode | ReactElement)
253
- // headerTemplate?:
254
- // | React.ReactNode
255
- // | React.ReactElement
256
- // | ((column: ColumnTable<RecordType>) => React.ReactNode | React.ReactElement)
257
- // commandItems?: CommandItem[]
258
-
259
- // children?: ColumnTable<RecordType>[]
260
-
261
- // editType?: EditType | ((rowData?: RecordType) => EditType)
262
- // disable?: boolean | ((rowData: any) => boolean)
263
- // editEnable?: boolean | ((rowData: any) => boolean)
264
- // isClearable?: boolean
265
- // maxDate?: any
266
- // minDate?: any
267
- // maxTime?: any
268
- // minTime?: any
269
- // max?: number
270
- // min?: number
271
- // editSelectSettings?: IEditSelectSettings
272
- // editFromSettings?: IEditFromSettings
273
- // /**
274
- // * @deprecated Please use `fixed` instead.
275
- // * @since 1.7.25
276
- // */
277
- // fixedType?: FixedType
278
- // fixed?: FixedType
279
- // /**
280
- // * @deprecated Please use `wrapSettings` instead.
281
- // * @since 1.7.34
282
- // */
283
- // headerTextWrap?: boolean
284
-
285
- // ellipsis?: boolean
286
- // allowResizing?: boolean
287
-
288
- // allowSelection?: boolean | ((rowData: RecordType) => boolean)
289
-
290
- // 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'>)
291
- // onCellHeaderStyles?: Omit<React.CSSProperties, 'display' | 'width' | 'minWidth' | 'left' | 'right' | 'position'> | ((cell: Header<RecordType, unknown>) => Omit<React.CSSProperties, 'display' | 'width' | 'minWidth' | 'left' | 'right' | 'position'>)
292
- // 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'>)
293
-
294
- // }
295
-
296
- // export type Locale = TableLocale & {
297
- // ok_btn?: string
298
- // cancel_btn?: string
299
- // add_rows?: string
300
- // add_rows_before?: string
301
- // add_rows_after?: string
302
- // add_1?: string
303
- // add_10?: string
304
- // add_50?: string
305
- // add_100?: string
306
- // add_children?: string
307
- // delete_content?: string
308
- // delete_rows?: string
309
- // custom?: string
310
-
311
- // filterTitle: string
312
- // filterConfirm: string
313
- // filterEmptyText: string
314
- // filterCheckall: string
315
- // filterSearchPlaceholder: string
316
- // emptyText: string
317
- // selectAll: string
318
- // selectInvert: string
319
- // selectNone: string
320
- // selectionAll: string
321
- // sortTitle: string
322
- // expand: string
323
- // collapse: string
324
- // triggerDesc: string
325
- // triggerAsc: string
326
- // cancelSort: string
327
- // }
328
-
329
- // export type ColumnsTable<RecordType = AnyObject> = ColumnTable<RecordType>[]
330
-
331
- // export type TableProps<RecordType = AnyObject> = {
332
- // theme?: {
333
- // theme?: 'dark' | 'light',
334
- // backgroundColor?: string
335
- // color?: string
336
- // }
337
- // title?: ReactNode | ((data: RecordType) => ReactNode)
338
- // editAble?: boolean
339
- // // rowEditable?: (record) => boolean | undefined
340
- // infiniteScroll?: boolean
341
- // next?: () => void
342
- // locale?: Locale
343
- // groupAble?: boolean
344
- // groupColumns?: string[]
345
- // groupSetting?: IGroupSetting
346
- // onChooseColumns?: (props: IOnChooseColumns) => void
347
- // pagination?: false | PaginationConfig
348
- // showCustomTooltip?: boolean
349
-
350
- // sortMultiple?: boolean
351
- // dataSource: RecordType[]
352
- // columns: ColumnsTable<RecordType>
353
- // height?: number
354
- // minHeight?: number
355
- // format?: IFormat
356
- // t?: any
357
- // lang?: string
358
- // contextMenuItems?: ContextMenuItem[]
359
- // showDefaultContext?: boolean
360
- // contextMenuHidden?: string[] | ((args?: Omit<ContextInfo<RecordType>, 'item' | 'event'>) => string[])
361
- // contextMenuOpen?: (args: Omit<ContextInfo<RecordType>, 'item'>) => void
362
- // contextMenuClick?: (args: ContextInfo<RecordType>) => void
363
- // recordDoubleClick?: (args: RecordDoubleClickEventArgs<RecordType>) => void
364
- // toolbarItems?: ToolbarItem[]
365
- // showColumnChoose?: boolean
366
- // showAdvanceFilter?: boolean
367
-
368
- // allowFiltering?: boolean
369
- // onFilter?: (query: { field: string; key: string; operator: IOperator; predicate: 'and' | 'or'; value: any }[]) => void
370
- // allowSortering?: boolean
371
- // onSorter?: (args: Sorter[]) => void
372
-
373
- // selectionSettings?: SelectionSettings
374
-
375
- // rowSelection?: RowSelection<RecordType>
376
- // rowSelected?: (args: { type: string; rowData: RecordType; selected: RecordType | RecordType[] }) => void
377
-
378
- // dataSourceFilter?: SourceFilter[]
379
- // onFilterClick?: (column: ColumnTable<RecordType>, callback: (key: string, data: any) => void) => void
380
- // loading?: boolean
381
- // allowResizing?: boolean
382
- // showToolbar?: boolean
383
- // onDataChange?: (data: RecordType[]) => void
384
- // defaultValue?: AnyObject | (() => AnyObject)
385
-
386
- // // summary?: boolean | ((data: readonly RecordType[]) => React.ReactNode)
387
- // summary?: boolean
388
- // showEmptyText?: boolean
389
- // commandSettings?: CommandSettings
390
-
391
- // rowClassName?: string | RowClassName<RecordType>;
392
-
393
- // // columns: ColumnsTable<RecordType>
394
- // onCellPaste?: ICellPasteModel<RecordType>
395
- // onCellChange?: (
396
- // args: CellChangeArgs<RecordType>,
397
- // handleCallback: (rowData: any, index: any, value?: any) => void
398
- // ) => void
399
- // onCellClick?: (args: ICellClick, callback?: any) => void
400
- // rowEditable?: (rowData: RecordType) => boolean
401
- // validate?: any
402
- // onBlur?: (data: RecordType[]) => void
403
-
404
- // onExpandClick?: (args: { expandedKeys: string[]; key: string; rowData: any }) => void
405
-
406
- // wrapSettings?: IWrapSettings
407
-
408
- // actionTemplate?: ReactNode | ReactElement | (() => ReactNode | ReactElement)
409
-
410
- // commandClick?: (args: CommandClick<RecordType>) => void
411
-
412
- // expandable?: ExpandableConfig<RecordType>;
413
-
414
- // fullScreen?: boolean
415
-
416
- // onRowStyles?: Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'> | ((data: RecordType, row: Row<RecordType>) => Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'>)
417
- // onRowHeaderStyles?: Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'> | (() => Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'>)
418
- // onRowFooterStyles?: Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'> | (() => Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'>)
419
-
420
- // }
421
-
422
- // export type ExpandableConfig<RecordType> = {
423
- // expandedRowKeys?: readonly Key[];
424
- // defaultExpandedRowKeys?: readonly Key[];
425
- // expandedRowRender?: ExpandedRowRender<RecordType>;
426
- // columnTitle?: React.ReactNode;
427
- // expandRowByClick?: boolean;
428
- // expandIcon?: RenderExpandIcon<RecordType>;
429
- // onExpand?: (expanded: boolean, record: RecordType) => void;
430
- // onExpandedRowsChange?: (expandedKeys: readonly Key[]) => void;
431
- // defaultExpandAllRows?: boolean;
432
- // indentSize?: number;
433
- // // /** @deprecated Please use `EXPAND_COLUMN` in `columns` directly */
434
- // expandIconColumnIndex?: number;
435
- // showExpandColumn?: boolean;
436
- // expandedRowClassName?: string | RowClassName<RecordType>;
437
- // childrenColumnName?: string;
438
- // rowExpandable?: (record: RecordType) => boolean;
439
- // columnWidth?: number | string;
440
- // fixed?: FixedType;
441
- // }
442
-
443
- // export type RenderExpandIcon<RecordType> = (props: RenderExpandIconProps<RecordType>) => React.ReactNode;
444
- // export interface RenderExpandIconProps<RecordType> {
445
- // prefixCls: string;
446
- // expanded: boolean;
447
- // record: RecordType;
448
- // expandable: boolean;
449
- // onExpand: TriggerEventHandler<RecordType>;
450
- // }
451
-
452
- // export type TriggerEventHandler<RecordType> = (record: RecordType, event: React.MouseEvent<HTMLElement>) => void;
453
- // export type RowClassName<RecordType> = (record: RecordType, index: number, indent: number) => string;
454
- // export type ExpandedRowRender<ValueType> = (record: ValueType, index: number, indent: number, expanded: boolean) => React.ReactNode;
455
-
456
- // export type CommandClick<T> = {
457
- // id: string
458
- // rowId: string
459
- // rowData: any
460
- // index: number
461
- // rows: T[]
462
- // }
463
-
464
- // export type IEditSelectSettings = {
465
- // fieldKey?: string
466
- // options: any[] | ((rowData: any, field: string) => any[])
467
- // /** get value form other field **/
468
- // fieldValue?: string
469
- // /** get label form other field **/
470
- // fieldLabel?: string
471
- // /** cho phép nhập giá trị - onBlur: giá trị search được set thành value **/
472
- // searchTextAsValue?: boolean
473
-
474
- // /**
475
- // * @deprecated Please use `allowSorter` instead.
476
- // * @since 1.7.25
477
- // */
478
- // inputKey?: string
479
- // // label?: string
480
-
481
- // filterKey?: string[]
482
- // selectMode?: SelectMode
483
-
484
- // // eslint-disable-next-line no-unused-vars
485
- // getPasteValue?: (value: any) => Record<string, any> | null
486
- // // eslint-disable-next-line no-unused-vars
487
- // validateOption?: (rowData: any, field: string) => any[]
488
-
489
- // defaultOptions?: any[]
490
- // // eslint-disable-next-line no-unused-vars
491
- // defaultValue?: (
492
- // value: any,
493
- // rowData: any
494
- // ) => {
495
- // value: any
496
- // label: string
497
- // [key: string]: string
498
- // } | null
499
-
500
- // formatOptionLabel?: (option: any) => ReactNode | ReactElement
501
- // // loadOptions?: (search: string, callback: (newOptions: any[]) => void) => void
502
- // loadOptions?: (search: string, callback: (newOptions: any[]) => void, args?: LoadOptionsArgs) => void
503
- // isMulti?: boolean
504
- // closeMenuOnSelect?: boolean
505
- // menuWidth?: number
506
- // menuHeight?: number
507
-
508
- // columns?: ColumnSelectTable[]
509
- // toolbarItems?: ToolbarItem[]
510
- // // eslint-disable-next-line no-unused-vars
511
- // toolbarClick?: (props: ToolbarClick) => void
512
- // toolbarHeight?: number
513
- // hideSelectedOptions?: boolean
514
- // showItems?: number
515
- // isLengthSelected?: boolean
516
- // fieldNames?: FieldNames
517
- // filterOption?: boolean | FilterFunc<any>
518
- // }
519
-
520
- // export type IEditFromSettings = {
521
- // fieldKey: string
522
- // // eslint-disable-next-line no-unused-vars
523
- // formOpen?: (props: IFormOpen) => void
524
- // // eslint-disable-next-line no-unused-vars
525
- // formClose?: (props: IFormOpen) => void
526
- // // eslint-disable-next-line no-unused-vars
527
- // formatLabel?: (value: any) => string
528
- // menuWidth?: number
529
- // menuHeight?: number
530
- // labelWith?: number
531
- // items: any[]
532
- // layout?: {
533
- // xl?: IGrid
534
- // lg?: IGrid
535
- // md?: IGrid
536
- // sm?: IGrid
537
- // xs?: IGrid
538
- // }
539
-
540
- // defaultValues?: Record<string, any>
541
-
542
- // schema?: any
543
- // }
544
-
545
- // export type IFormOpen = {
546
- // value?: any
547
- // setValue?: any
548
- // getValues?: any
549
- // reset?: any
550
- // rowData?: any
551
- // }
552
-
553
- // export type FilterFunc<OptionType> = (inputValue: string, option?: OptionType) => boolean
554
-
555
- // export type ToolbarClick = {
556
- // item: any
557
- // column: any
558
- // }
559
-
560
- // export type ColumnSelectTable = {
561
- // field: string
562
- // dataIndex?: string
563
- // type?: IColumnType
564
- // headerText?: string
565
- // fixedType?: 'left' | 'right' | undefined
566
- // width?: number | undefined
567
- // minWidth?: number
568
- // maxWidth?: number
569
- // visible?: boolean
570
- // textAlign?: ITextAlign
571
- // headerTextAlign?: ITextAlign
572
- // // eslint-disable-next-line no-unused-vars
573
- // template?: (props: ITemplateColumn) => ReactNode | ReactElement
574
- // headerTemplate?: any
575
- // ellipsis?: boolean | undefined
576
- // format?: IFormat
577
- // // eslint-disable-next-line no-unused-vars
578
- // tooltipDescription?: string | ((rowData: any) => string | ReactNode)
579
- // // tooltipDescription?: string | ((rowData: any) => string | React.FC<any> | ReactNode)
580
- // showTooltip?: boolean
581
- // showTooltipHeader?: boolean
582
- // }
583
-
584
- // export type ITemplateColumn = {
585
- // value: any
586
- // column: any
587
- // rowData: any
588
- // field: number | string
589
- // index: number
590
- // // [key: string]: any
591
- // }
592
-
593
- // export type RawValueType = string | number
594
-
595
- // export type ToolbarItem = {
596
- // position?: 'Top' | 'Bottom'
597
- // align?: ITextAlign
598
- // onClick?: (args: any) => void
599
- // key?: React.Key
600
- // value?: RawValueType
601
- // label?: React.ReactNode
602
- // template?: React.ReactNode | React.ReactElement | (() => React.ReactNode | React.ReactElement)
603
- // title?: React.ReactNode
604
- // disabled?: boolean
605
- // [key: string]: any
606
- // }
607
-
608
- // export type LoadOptionsArgs = {
609
- // rowData?: any
610
- // }
611
-
612
- // export type GroupTemplate = {
613
- // rowData: any
614
- // value: any
615
- // column: ColumnTable
616
- // }
617
-
618
- // export type IGroupSetting = {
619
- // client?: boolean
620
- // onGroup?: (props: IOnGroup) => void
621
- // hiddenColumnGroup?: boolean
622
- // showHeaderColumn?: boolean
623
- // groupColumnSpan?: number
624
- // showGroupIcon?: boolean
625
- // unClearableLevel?: 1 | 2 | 3 | undefined
626
- // sumGroup?: boolean
627
- // groupTemplate?: React.ReactNode | React.ReactElement | ((args: GroupTemplate) => React.ReactNode | React.ReactElement)
628
- // }
629
-
630
- // type IOnGroup = {
631
- // columnGrouped: string[]
632
- // columns: ColumnsTable
633
- // flattenColumns: ColumnsTable
634
- // }
635
-
636
- // export type IOnChooseColumns = {
637
- // columns: ColumnsTable
638
- // showColumns: ColumnsTable
639
- // flattenColumns: ColumnsTable
640
- // }
641
-
642
- // export type ContextMenuItem = ItemType
643
-
644
- // export type CommandSettings = {
645
- // client?: boolean
646
- // confirmDialog?: boolean
647
- // }
648
-
649
- // export interface ICellPasteModel<RecordType = AnyObject> {
650
- // onPasted?: (args: IOnPastedProps, handleCallback: (callbackData: any[]) => void) => void
651
-
652
- // dataChange?: (data: RecordType[]) => void
653
- // getCallbackData?: (props: any) => void
654
- // maxRowsPaste?: number
655
- // }
656
-
657
- // export type IOnPastedProps = {
658
- // data: any[]
659
- // copyRows: any[]
660
- // pastedColumns: string[]
661
- // pasteData: any[]
662
- // type: 'onPaste' | 'onChange' | 'onCellPaste'
663
- // }
664
-
665
- // export type ICellClick = {
666
- // index: number
667
- // indexCol?: number
668
- // rowId: string | number
669
- // type: 'Editing' | 'Default'
670
- // field: string
671
- // cellValue: any
672
- // rowData: any
673
- // }
674
-
675
- // export type CellChangeArgs<T> = {
676
- // type: 'onPaste' | 'onChange' | 'onCellPaste'
677
- // value: any
678
- // option: AnyObject
679
- // rowData: T
680
- // rowsData: T[]
681
- // indexRow: number
682
- // rowId?: string
683
- // field: string | undefined
684
- // indexCol: any
685
- // sumValue?: any[]
686
- // }
687
- // export type IWrapMode = 'Header' | 'Both' | 'Content'
688
-
689
- // export type IWrapSettings = {
690
- // wrapMode?: IWrapMode
691
- // }
692
-
693
- // export type SelectionSettings<T = AnyObject> = {
694
- // mode?: 'checkbox' | 'radio'
695
- // type?: 'single' | 'multiple'
696
- // checkboxOnly?: boolean
697
- // checkStrictly?: boolean
698
- // columnWidth?: number
699
- // hideSelectAll?: boolean
700
- // selectedRowKeys?: Key[];
701
- // defaultSelectedRowKeys?: Key[];
702
- // getCheckboxProps?: (record: T) => Partial<Omit<CheckboxProps, 'checked' | 'defaultChecked'>>;
703
- // }
704
-
705
- // export type SelectionSelectFn<T = AnyObject> = (
706
- // record: T,
707
- // selected: boolean,
708
- // selectedRows: T[],
709
- // nativeEvent: Event
710
- // ) => void
711
-
712
- // export type RowSelection<T> = {
713
- // preserveSelectedRowKeys?: boolean
714
- // selectedRowKeys?: Key[]
715
- // defaultSelectedRowKeys?: Key[]
716
- // onChange?: (
717
- // selectedRowKeys: Key[],
718
- // selectedRows: T[],
719
- // info: {
720
- // type: RowSelectMethod
721
- // },
722
- // selectedRow: T
723
- // ) => void
724
- // getCheckboxProps?: (record: T) => Partial<Omit<CheckboxProps, 'checked' | 'defaultChecked'>>
725
- // onSelect?: SelectionSelectFn<T>
726
- // /** @deprecated This function is deprecated and should use `onChange` instead */
727
- // onSelectMultiple?: (selected: boolean, selectedRows: T[], changeRows: T[]) => void
728
- // /** @deprecated This function is deprecated and should use `onChange` instead */
729
- // onSelectAll?: (selected: boolean, selectedRows: T[], changeRows: T[]) => void
730
- // /** @deprecated This function is deprecated and should use `onChange` instead */
731
- // onSelectInvert?: (selectedRowKeys: Key[]) => void
732
- // /** @deprecated This function is deprecated and should use `onChange` instead */
733
- // onSelectNone?: () => void
734
-
735
- // // selections?: INTERNAL_SELECTION_ITEM[] | boolean;
736
-
737
- // // hideSelectAll?: boolean;
738
- // fixed?: FixedType
739
- // // columnWidth?: string | number;
740
- // columnTitle?: React.ReactNode | ((checkboxNode: React.ReactNode) => React.ReactNode)
741
- // checkStrictly?: boolean
742
- // // renderCell?: (value: boolean, record: T, index: number, originNode: React.ReactNode) => React.ReactNode | RcRenderedCell<T>;
743
- // // onCell?: GetComponentProps<T>;
744
- // checkboxOnly?: boolean
745
- // arrowKey?: boolean
746
- // }
747
-
748
- // export type RecordDoubleClickEventArgs<RecordType> = {
749
- // rowData: RecordType
750
- // rowIndex: number | undefined
751
- // e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>
752
- // }
753
-
754
- // export type SourceFilter = {
755
- // key: string
756
- // data: any[]
757
- // loadOptions?: (search: string, callback: (newOptions: any[]) => void) => void
758
- // }
759
-
760
- // export type ContextInfo<RecordType> = {
761
- // rowInfo: {
762
- // rowData: RecordType | null
763
- // }
764
- // event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>
765
- // item: ItemType
766
- // }
767
-
768
- // export type Presets = Required<ColorPickerProps>['presets'][number];
769
-
770
- // export type RangeState = {
771
- // rowRange: string[],
772
- // colRange: string[],
773
- // startRowIndex: number | undefined,
774
- // endRowIndex: number | undefined,
775
- // startColIndex: number | undefined,
776
- // endColIndex: number | undefined,
777
- // rowIds: string[],
778
- // colIds: string[]
779
- // }
780
-
781
- // export type Sorter = {
782
- // columnKey: string
783
- // field: string
784
- // order: 'ascend' | 'descend'
785
- // }
786
- "use strict";