es-grid-template 0.0.8 → 0.1.0

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 (116) hide show
  1. package/CHANGELOG.md +6 -6
  2. package/LICENSE +21 -19
  3. package/README.md +1 -1
  4. package/es/{CheckboxFilter.js → grid-component/CheckboxFilter.js} +0 -1
  5. package/es/{ColumnsChoose.js → grid-component/ColumnsChoose.js} +1 -1
  6. package/es/grid-component/EditableCell.d.ts +19 -0
  7. package/es/grid-component/EditableCell.js +842 -0
  8. package/es/{FilterSearch.js → grid-component/FilterSearch.js} +1 -1
  9. package/es/grid-component/GridStyle.d.ts +4 -0
  10. package/es/grid-component/GridStyle.js +5 -0
  11. package/es/grid-component/InternalTable.js +284 -0
  12. package/es/{LoadingSpinner.js → grid-component/LoadingSpinner.js} +1 -1
  13. package/es/grid-component/Message/Message.d.ts +2 -0
  14. package/es/grid-component/Message/Message.js +16 -0
  15. package/es/grid-component/Message/index.d.ts +1 -0
  16. package/es/grid-component/Message/index.js +1 -0
  17. package/{lib → es/grid-component}/TableGrid.d.ts +2 -2
  18. package/es/grid-component/TableGrid.js +375 -0
  19. package/es/grid-component/async-table-select/index.d.ts +9 -0
  20. package/es/grid-component/async-table-select/index.js +37 -0
  21. package/{lib → es/grid-component}/hooks/constant.d.ts +14 -0
  22. package/es/{hooks → grid-component/hooks}/constant.js +16 -1
  23. package/es/grid-component/hooks/useColumns/index.d.ts +6 -0
  24. package/es/grid-component/hooks/useColumns/index.js +422 -0
  25. package/es/grid-component/hooks/utils.d.ts +35 -0
  26. package/es/{hooks → grid-component/hooks}/utils.js +124 -16
  27. package/es/grid-component/index.d.ts +2 -0
  28. package/es/grid-component/index.js +2 -0
  29. package/es/grid-component/styles.scss +551 -0
  30. package/es/grid-component/table/Grid.d.ts +8 -0
  31. package/es/grid-component/table/Grid.js +99 -0
  32. package/es/grid-component/table/GridEdit.d.ts +9 -0
  33. package/es/grid-component/table/GridEdit.js +706 -0
  34. package/es/grid-component/type.d.ts +225 -0
  35. package/es/grid-component/useContext.d.ts +27 -0
  36. package/es/grid-component/useContext.js +4 -0
  37. package/es/index.d.ts +1 -2
  38. package/es/index.js +1 -2
  39. package/lib/{CheckboxFilter.js → grid-component/CheckboxFilter.js} +0 -1
  40. package/lib/{ColumnsChoose.js → grid-component/ColumnsChoose.js} +1 -1
  41. package/lib/grid-component/EditableCell.d.ts +19 -0
  42. package/lib/grid-component/EditableCell.js +844 -0
  43. package/lib/{FilterSearch.js → grid-component/FilterSearch.js} +1 -1
  44. package/lib/grid-component/GridStyle.d.ts +4 -0
  45. package/lib/grid-component/GridStyle.js +12 -0
  46. package/lib/grid-component/InternalTable.js +293 -0
  47. package/lib/{LoadingSpinner.js → grid-component/LoadingSpinner.js} +1 -1
  48. package/lib/grid-component/Message/Message.d.ts +2 -0
  49. package/lib/grid-component/Message/Message.js +25 -0
  50. package/lib/grid-component/Message/index.d.ts +1 -0
  51. package/lib/grid-component/Message/index.js +16 -0
  52. package/{es → lib/grid-component}/TableGrid.d.ts +2 -2
  53. package/lib/grid-component/TableGrid.js +382 -0
  54. package/lib/grid-component/async-table-select/index.d.ts +9 -0
  55. package/lib/grid-component/async-table-select/index.js +46 -0
  56. package/{es → lib/grid-component}/hooks/constant.d.ts +14 -0
  57. package/lib/{hooks → grid-component/hooks}/constant.js +17 -2
  58. package/lib/grid-component/hooks/useColumns/index.d.ts +6 -0
  59. package/lib/grid-component/hooks/useColumns/index.js +435 -0
  60. package/lib/grid-component/hooks/utils.d.ts +35 -0
  61. package/lib/{hooks → grid-component/hooks}/utils.js +140 -19
  62. package/lib/grid-component/index.d.ts +2 -0
  63. package/lib/grid-component/index.js +9 -0
  64. package/lib/grid-component/styles.scss +551 -0
  65. package/lib/grid-component/table/Grid.d.ts +8 -0
  66. package/lib/grid-component/table/Grid.js +108 -0
  67. package/lib/grid-component/table/GridEdit.d.ts +9 -0
  68. package/lib/grid-component/table/GridEdit.js +715 -0
  69. package/lib/grid-component/type.d.ts +225 -0
  70. package/lib/grid-component/useContext.d.ts +27 -0
  71. package/lib/grid-component/useContext.js +10 -0
  72. package/lib/index.d.ts +1 -2
  73. package/lib/index.js +7 -3
  74. package/package.json +112 -77
  75. package/es/InternalTable.js +0 -185
  76. package/es/TableGrid.js +0 -1055
  77. package/es/hooks/useColumns/index.d.ts +0 -2
  78. package/es/hooks/useColumns/index.js +0 -25
  79. package/es/hooks/utils.d.ts +0 -19
  80. package/es/styles.scss +0 -296
  81. package/es/type.d.ts +0 -100
  82. package/lib/InternalTable.js +0 -194
  83. package/lib/TableGrid.js +0 -1063
  84. package/lib/hooks/useColumns/index.d.ts +0 -2
  85. package/lib/hooks/useColumns/index.js +0 -31
  86. package/lib/hooks/utils.d.ts +0 -19
  87. package/lib/styles.scss +0 -296
  88. package/lib/type.d.ts +0 -100
  89. package/es/{CheckboxFilter.d.ts → grid-component/CheckboxFilter.d.ts} +0 -0
  90. package/es/{ColumnsChoose.d.ts → grid-component/ColumnsChoose.d.ts} +0 -0
  91. package/es/{ContextMenu.d.ts → grid-component/ContextMenu.d.ts} +0 -0
  92. package/es/{ContextMenu.js → grid-component/ContextMenu.js} +0 -0
  93. package/es/{FilterSearch.d.ts → grid-component/FilterSearch.d.ts} +0 -0
  94. package/es/{InternalTable.d.ts → grid-component/InternalTable.d.ts} +1 -1
  95. package/es/{LoadingSpinner.d.ts → grid-component/LoadingSpinner.d.ts} +0 -0
  96. package/es/{hooks → grid-component/hooks}/index.d.ts +0 -0
  97. package/es/{hooks → grid-component/hooks}/index.js +0 -0
  98. package/es/{hooks → grid-component/hooks}/useIsOverflow.d.ts +0 -0
  99. package/es/{hooks → grid-component/hooks}/useIsOverflow.js +0 -0
  100. package/es/{hooks → grid-component/hooks}/useOnClickOutside.d.ts +0 -0
  101. package/es/{hooks → grid-component/hooks}/useOnClickOutside.js +0 -0
  102. package/es/{type.js → grid-component/type.js} +0 -0
  103. package/lib/{CheckboxFilter.d.ts → grid-component/CheckboxFilter.d.ts} +0 -0
  104. package/lib/{ColumnsChoose.d.ts → grid-component/ColumnsChoose.d.ts} +0 -0
  105. package/lib/{ContextMenu.d.ts → grid-component/ContextMenu.d.ts} +0 -0
  106. package/lib/{ContextMenu.js → grid-component/ContextMenu.js} +0 -0
  107. package/lib/{FilterSearch.d.ts → grid-component/FilterSearch.d.ts} +0 -0
  108. package/lib/{InternalTable.d.ts → grid-component/InternalTable.d.ts} +1 -1
  109. /package/lib/{LoadingSpinner.d.ts → grid-component/LoadingSpinner.d.ts} +0 -0
  110. /package/lib/{hooks → grid-component/hooks}/index.d.ts +0 -0
  111. /package/lib/{hooks → grid-component/hooks}/index.js +0 -0
  112. /package/lib/{hooks → grid-component/hooks}/useIsOverflow.d.ts +0 -0
  113. /package/lib/{hooks → grid-component/hooks}/useIsOverflow.js +0 -0
  114. /package/lib/{hooks → grid-component/hooks}/useOnClickOutside.d.ts +0 -0
  115. /package/lib/{hooks → grid-component/hooks}/useOnClickOutside.js +0 -0
  116. /package/lib/{type.js → grid-component/type.js} +0 -0
@@ -1,2 +0,0 @@
1
- import type { ColumnsType, ColumnType } from "../../type";
2
- export declare function flatColumns<RecordType>(columns: ColumnsType<RecordType>, parentKey?: string): ColumnType<RecordType>[];
@@ -1,31 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.flatColumns = flatColumns;
7
- // import * as React from 'react'
8
-
9
- function flatColumns(columns, parentKey = 'key') {
10
- // @ts-ignore
11
- return columns.filter(column => column && typeof column === 'object').reduce((list, column, index) => {
12
- const {
13
- fixed
14
- } = column;
15
- // Convert `fixed='true'` to `fixed='left'` instead
16
- const parsedFixed = fixed === true ? 'left' : fixed;
17
- const mergedKey = `${parentKey}-${index}`;
18
- const subColumns = column.children;
19
- if (subColumns && subColumns.length > 0) {
20
- return [...list, ...flatColumns(subColumns, mergedKey).map(subColum => ({
21
- fixed: parsedFixed,
22
- ...subColum
23
- }))];
24
- }
25
- return [...list, {
26
- key: mergedKey,
27
- ...column,
28
- fixed: parsedFixed
29
- }];
30
- }, []);
31
- }
@@ -1,19 +0,0 @@
1
- import dayjs from "dayjs";
2
- import type { EditType, IColumnType, TypeFilter } from "rc-master-ui";
3
- import type { ColumnType } from "../type";
4
- export declare const sumDataByField: (data: any[], field: string) => any;
5
- export declare const checkThousandSeparator: (thousandSeparator: string | undefined, decimalSeparator: string | undefined) => string;
6
- export declare const checkDecimalSeparator: (thousandSeparator: string | undefined, decimalSeparator: string | undefined) => string;
7
- export declare const isEmpty: (d: any) => boolean;
8
- export declare const isNullOrUndefined: (d: any) => boolean;
9
- export declare const convertDayjsToDate: (dateString: string, format: string) => Date;
10
- export declare const convertDateToDayjs: (date: Date | undefined, format: string) => dayjs.Dayjs;
11
- export declare const isNameColor: (strColor: string) => boolean;
12
- export declare const isColor: (value: string) => boolean;
13
- export declare const getAllVisibleKeys: (columns: any[]) => any[];
14
- export declare const getVisibleColumnKeys: (columns: any[]) => string[];
15
- export declare function getHiddenParentKeys(columns: any[], parentKeys?: string[]): string[];
16
- export declare const updateColumns: (columns: any[], includes: string[]) => any[];
17
- export declare const getDatepickerFormat: (type: EditType | TypeFilter | IColumnType, col: ColumnType<any>) => string;
18
- export declare const getTypeFilter: (col: ColumnType<any>) => TypeFilter;
19
- export declare const updateArrayByKey: (arr: any[], element: any, key: string) => any[];
package/lib/styles.scss DELETED
@@ -1,296 +0,0 @@
1
- $prefix: 'ui-rc' !default;
2
- $primary: #eb4619 !default;
3
- $rowHoverBg: #FBDED6 !default;
4
- $rowSelectedBg: #FEF2EF !default;
5
- $tableBorderColor: #e0e0e0 !default;
6
- //$rowSelectedHoverBg: 'ui-rc' !default;
7
-
8
-
9
- .popup-context-menu {
10
- min-width: 200px;
11
- }
12
-
13
- .react-resizable {
14
- position: relative;
15
- background-clip: padding-box;
16
- }
17
-
18
- .react-resizable-handle {
19
- position: absolute;
20
- right: -5px;
21
- bottom: 0;
22
- z-index: 1;
23
- width: 10px;
24
- height: 100%;
25
- cursor: col-resize;
26
- //transform: translateY(-50%);
27
- }
28
-
29
- // -------------- Table -------------
30
- .#{$prefix}-table-wrapper {
31
- &.table-none-column-select {
32
- .#{$prefix}-table-cell {
33
- &.#{$prefix}-table-selection-column {
34
- padding: 0 !important;
35
- overflow: hidden !important;
36
- border-inline-end: 0 !important;
37
- //flex: 0 0 0 !important;
38
- //width: 0 !important;
39
- }
40
- }
41
- }
42
-
43
- .#{$prefix}-table-tbody {
44
- .#{$prefix}-table-row {
45
- &.#{$prefix}-table-row-selected {
46
- >.#{$prefix}-table-cell {
47
- background: #FEF2EF;
48
- }
49
- }
50
- >.#{$prefix}-table-cell {
51
- &.#{$prefix}-table-cell-row-hover {
52
- background: #FBDED6;
53
- }
54
- }
55
- }
56
- }
57
-
58
- .#{$prefix}-table-tbody-virtual {
59
- .#{$prefix}-table-cell {
60
- border-bottom: 1px solid $tableBorderColor;
61
- }
62
- }
63
-
64
- .#{$prefix}-table-bordered {
65
-
66
- .#{$prefix}-table-tbody-virtual {
67
- .#{$prefix}-table-cell {
68
- border-inline-end: 1px solid $tableBorderColor;
69
- }
70
- }
71
-
72
- }
73
-
74
-
75
- .#{$prefix}-table {
76
- &.#{$prefix}-table-bordered {
77
- > .#{$prefix}-table-container {
78
-
79
- > .#{$prefix}-table-content,
80
- > .#{$prefix}-table-header,
81
- > .#{$prefix}-table-body,
82
- > .#{$prefix}-table-summary {
83
- > table {
84
- > thead {
85
- > tr:not(:last-child) {
86
- > th {
87
- border-bottom: 1px solid $tableBorderColor;
88
- }
89
- }
90
- }
91
- }
92
- }
93
-
94
- border-inline-start: 1px solid $tableBorderColor;
95
- border-top: 1px solid $tableBorderColor;
96
-
97
-
98
- > .#{$prefix}-table-content,
99
- > .#{$prefix}-table-header,
100
- > .#{$prefix}-table-body,
101
- > .#{$prefix}-table-summary {
102
- > table {
103
- > thead,
104
- > tbody,
105
- > tfoot {
106
- > tr {
107
- > th,
108
- > td {
109
- border-inline-end: 1px solid $tableBorderColor;
110
- }
111
- }
112
- }
113
- }
114
- }
115
-
116
- }
117
-
118
- >.#{$prefix}-table-title {
119
- border: 1px solid $tableBorderColor;
120
- border-bottom: 0;
121
- }
122
- }
123
- }
124
-
125
-
126
- .#{$prefix}-table-thead >tr>th,
127
- .#{$prefix}-table-thead >tr>td {
128
- background-color: #ffffff;
129
- }
130
-
131
- .#{$prefix}-table-thead {
132
- > tr {
133
- > th,
134
- > td {
135
- border-bottom: 1px solid $tableBorderColor;
136
- }
137
- }
138
- }
139
-
140
- .#{$prefix}-table-summary {
141
- .#{$prefix}-table-cell {
142
- background-color: #fafafa;
143
- }
144
-
145
- > tr > td {
146
- border-bottom: 1px solid $tableBorderColor;
147
- }
148
- }
149
-
150
- .#{$prefix}-table-bordered .#{$prefix}-table-tbody-virtual .#{$prefix}-table-cell.#{$prefix}-table-cell-fix-right-first:before {
151
- border-inline-start: 1px solid $tableBorderColor;
152
- }
153
-
154
- .#{$prefix}-table.#{$prefix}-table-bordered {
155
- > .#{$prefix}-table-container {
156
- > .#{$prefix}-table-header > table > thead > tr,
157
- > .#{$prefix}-table-summary > table > tfoot > tr {
158
- > .#{$prefix}-table-cell-fix-right-first::before {
159
- border-inline-start: 1px solid $tableBorderColor;
160
- content: "";
161
- position: absolute;
162
- inset-block: 0;
163
- inset-inline-start: -1px;
164
- }
165
- }
166
- }
167
- }
168
-
169
-
170
- .#{$prefix}-table.#{$prefix}-table-bordered {
171
- > .#{$prefix}-table-container {
172
- > .#{$prefix}-table-header > table > thead > tr,
173
- > .#{$prefix}-table-summary > table > tfoot > tr {
174
- > .#{$prefix}-table-cell-fix-right-first::after {
175
- border-inline-end: 0;
176
- }
177
- }
178
- }
179
- }
180
-
181
- .#{$prefix}-table-ping-left {
182
- .#{$prefix}-table-cell-fix-left-first::after,
183
- .#{$prefix}-table-cell-fix-left-last::after {
184
- box-shadow: inset 10px 0 8px -8px rgba(5, 5, 5, 0.2);
185
- }
186
- }
187
-
188
- .#{$prefix}-table-ping-right {
189
- .#{$prefix}-table-cell-fix-right-first::after,
190
- .#{$prefix}-table-cell-fix-right-last::after {
191
- box-shadow: inset -10px 0 8px -8px rgba(5, 5, 5, 0.2);
192
- }
193
- }
194
-
195
- .#{$prefix}-spin-nested-loading >div>.#{$prefix}-spin {
196
- max-height: 100%;
197
- }
198
-
199
-
200
- }
201
-
202
- // -------------- Checkbox ----------
203
-
204
- .#{$prefix}-checkbox-indeterminate {
205
- &:hover {
206
- .#{$prefix}-checkbox-inner {
207
- border-color: $primary !important; ;
208
- }
209
- }
210
- .#{$prefix}-checkbox-inner {
211
- &:after {
212
- background-color: $primary;
213
- }
214
- }
215
- }
216
-
217
- .#{$prefix}-checkbox {
218
- &.#{$prefix}-checkbox-checked {
219
- &:hover {
220
- .#{$prefix}-checkbox-inner {
221
- background-color: $primary;
222
- border-color: $primary;
223
- }
224
- }
225
- .#{$prefix}-checkbox-inner {
226
- background-color: $primary;
227
- border-color: $primary;
228
- }
229
- }
230
- }
231
-
232
- .#{$prefix}-checkbox:not(.#{$prefix}-checkbox-disabled):hover {
233
- .#{$prefix}-checkbox-inner {
234
- border-color: $primary;
235
- }
236
- }
237
-
238
- .#{$prefix}-checkbox-wrapper:not(.#{$prefix}-checkbox-wrapper-disabled):hover {
239
- .#{$prefix}-checkbox-inner {
240
- border-color: $primary;
241
- }
242
- .#{$prefix}-checkbox-checked:not(.#{$prefix}-checkbox-disabled) {
243
- .#{$prefix}-checkbox-inner {
244
- background-color: $primary;
245
- }
246
- }
247
- }
248
-
249
- // ------------ Tree ---------------
250
-
251
- .#{$prefix}-tree {
252
- .#{$prefix}-tree-checkbox-checked {
253
- .#{$prefix}-tree-checkbox-inner {
254
- background-color: $primary;
255
- border-color: $primary;
256
- }
257
- }
258
-
259
- .#{$prefix}-tree-checkbox-wrapper-checked:not(.#{$prefix}-tree-checkbox-wrapper-disabled):hover,
260
- .#{$prefix}-tree-checkbox-checked:not(.#{$prefix}-tree-checkbox-disabled):hover {
261
- .#{$prefix}-tree-checkbox-inner {
262
- background-color: $primary;
263
- }
264
- }
265
-
266
- .#{$prefix}-tree-checkbox-wrapper:not(.#{$prefix}-tree-checkbox-wrapper-disabled):hover,
267
- .#{$prefix}-tree-checkbox:not(.#{$prefix}-tree-checkbox-disabled):hover {
268
- .#{$prefix}-tree-checkbox-inner {
269
- border-color: $primary;
270
- }
271
- }
272
- }
273
-
274
-
275
-
276
-
277
- .#{$prefix}-pagination {
278
- &::before {
279
- content: "";
280
- position: absolute;
281
- border-left: 1px solid $tableBorderColor;
282
- height: 55px;
283
- bottom: 0;
284
- left: 0;
285
- }
286
- &::after {
287
- content: "";
288
- position: absolute;
289
- border-left: 1px solid $tableBorderColor;
290
- height: 55px;
291
- bottom: 0;
292
- visibility: visible;
293
- right: 0;
294
- }
295
- border-bottom: 1px solid $tableBorderColor;
296
- }
package/lib/type.d.ts DELETED
@@ -1,100 +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, TableColumnType as RcColumnType } from "rc-master-ui";
5
- import type { FilterOperator, TableRowSelection } from "rc-master-ui/es/table/interface";
6
- import type { ToolbarItem } from "rc-master-ui/es/toolbar";
7
- import type { ItemType } from "rc-master-ui/es/menu/interface";
8
- export type IColumnType = "number" | "time" | "date" | "week" | "month" | "file" | "quarter" | "year" | "datetime" | "string" | "boolean" | "checkbox" | "color" | null | undefined;
9
- export type AnyObject = Record<PropertyKey, any>;
10
- export interface ColumnGroupType<RecordType = AnyObject> extends Omit<ColumnType<RecordType>, 'dataIndex'> {
11
- children: ColumnsType<RecordType>;
12
- }
13
- export type ColumnType<RecordType> = RcColumnType<RecordType> & {
14
- type?: IColumnType;
15
- isSummary?: boolean;
16
- summaryTemplate?: (data: number, key: string) => ReactElement | ReactNode;
17
- maxWidth?: string | number;
18
- format?: IFormat;
19
- allowFiltering?: boolean;
20
- operator?: FilterOperator;
21
- placeholder?: string;
22
- showInColumnChoose?: boolean;
23
- typeFilter?: TypeFilter;
24
- children?: ColumnsType<RecordType>;
25
- headerText?: string;
26
- };
27
- export type ColumnsType<RecordType = AnyObject> = (ColumnGroupType<RecordType> | ColumnType<RecordType>)[];
28
- export interface GridTableProps<RecordType> extends Omit<TableProps<RecordType>, 'columns' | 'rowSelection' | 'loading'> {
29
- columns?: ColumnsType<RecordType>;
30
- format?: IFormat;
31
- t?: any;
32
- lang?: string;
33
- contextMenuItems?: any[];
34
- contextMenuHidden?: string[] | ((args?: Omit<ContextInfo<RecordType>, 'item' | 'event'>) => string[]);
35
- contextMenuOpen?: (args: Omit<ContextInfo<RecordType>, 'item'>) => void;
36
- contextMenuClick?: (args: ContextInfo<RecordType>) => void;
37
- recordDoubleClick?: (args: RecordDoubleClickEventArgs<RecordType>) => void;
38
- toolbarItems?: ToolbarItem[];
39
- showColumnChoose?: boolean;
40
- onFilter?: (query: {
41
- field: string;
42
- key: string;
43
- operator: IOperator;
44
- predicate: 'and' | 'or';
45
- value: any;
46
- }[]) => void;
47
- selectionSettings?: SelectionSettings;
48
- rowKey?: string;
49
- rowSelection?: RowSelection<RecordType>;
50
- rowSelected?: (args: {
51
- type: string;
52
- rowData: RecordType;
53
- selected: RecordType | RecordType[];
54
- }) => void;
55
- dataSourceFilter?: SourceFilter[];
56
- onFilterClick?: (column: ColumnType<RecordType>, callback: (key: string, data: any) => void) => void;
57
- loading?: boolean;
58
- allowResizing?: boolean;
59
- }
60
- export type SourceFilter = {
61
- key: string;
62
- data: any[];
63
- loadOptions?: (search: string, callback: (newOptions: any[]) => void) => void;
64
- };
65
- export type RowSelection<RecordType> = Omit<TableRowSelection<RecordType>, 'type' | 'columnWidth' | 'hideSelectAll' | 'defaultSelectedRowKeys'>;
66
- export type SelectionSettings = {
67
- mode?: 'checkbox' | 'radio';
68
- type?: 'single' | 'multiple';
69
- checkboxOnly?: boolean;
70
- hideSelectAll?: boolean;
71
- columnWidth?: number | string;
72
- defaultSelectedRowKeys?: Key[];
73
- };
74
- export type RecordDoubleClickEventArgs<RecordType> = {
75
- rowData: RecordType;
76
- rowIndex: number | undefined;
77
- e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
78
- };
79
- export type ContextInfo<RecordType> = {
80
- rowInfo: {
81
- rowData: RecordType | null;
82
- };
83
- event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
84
- item: ItemType;
85
- };
86
- export type IFormat = {
87
- thousandSeparator?: string;
88
- decimalSeparator?: string;
89
- decimalScale?: number | undefined;
90
- allowNegative?: boolean;
91
- prefix?: string | undefined;
92
- suffix?: string | undefined;
93
- fixedDecimalScale?: boolean;
94
- dateFormat?: string;
95
- datetimeFormat?: string;
96
- timeFormat?: string;
97
- weekFormat?: string;
98
- monthFormat?: string;
99
- yearFormat?: string;
100
- };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
+ import type { GridTableProps } from "./type";
2
3
  import 'dayjs/locale/es';
3
4
  import 'dayjs/locale/vi';
4
5
  import './styles.scss';
5
- import type { GridTableProps } from "./type";
6
6
  declare const InternalTable: <RecordType extends object>(props: GridTableProps<RecordType>) => React.JSX.Element;
7
7
  export default InternalTable;
File without changes
File without changes
File without changes
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
+ import type { GridTableProps } from "./type";
2
3
  import 'dayjs/locale/es';
3
4
  import 'dayjs/locale/vi';
4
5
  import './styles.scss';
5
- import type { GridTableProps } from "./type";
6
6
  declare const InternalTable: <RecordType extends object>(props: GridTableProps<RecordType>) => React.JSX.Element;
7
7
  export default InternalTable;
File without changes
File without changes
File without changes