es-grid-template 1.7.23 → 1.7.25

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 (163) hide show
  1. package/es/index.d.ts +1 -0
  2. package/es/index.js +3 -1
  3. package/es/table-component/ColumnsChoose.d.ts +13 -0
  4. package/es/table-component/ColumnsChoose.js +206 -0
  5. package/es/table-component/ContextMenu.d.ts +20 -0
  6. package/es/table-component/ContextMenu.js +75 -0
  7. package/es/table-component/InternalTable.d.ts +9 -0
  8. package/es/table-component/InternalTable.js +308 -0
  9. package/es/table-component/TableContainer.d.ts +31 -0
  10. package/es/table-component/TableContainer.js +249 -0
  11. package/es/table-component/TableContainerEdit.d.ts +31 -0
  12. package/es/table-component/TableContainerEdit.js +1301 -0
  13. package/es/table-component/body/EditableCell.d.ts +16 -0
  14. package/es/table-component/body/EditableCell.js +1039 -0
  15. package/es/table-component/body/TableBody.d.ts +19 -0
  16. package/es/table-component/body/TableBody.js +64 -0
  17. package/es/table-component/body/TableBodyCell.d.ts +12 -0
  18. package/es/table-component/body/TableBodyCell.js +149 -0
  19. package/es/table-component/body/TableBodyCellEdit.d.ts +16 -0
  20. package/es/table-component/body/TableBodyCellEdit.js +931 -0
  21. package/es/table-component/body/TableBodyRow.d.ts +21 -0
  22. package/es/table-component/body/TableBodyRow.js +151 -0
  23. package/es/table-component/components/ControlCheckbox.d.ts +13 -0
  24. package/es/table-component/components/ControlCheckbox.js +84 -0
  25. package/es/table-component/components/EditForm/EditForm.d.ts +27 -0
  26. package/es/table-component/components/EditForm/EditForm.js +395 -0
  27. package/es/table-component/components/EditForm/index.d.ts +1 -0
  28. package/es/table-component/components/EditForm/index.js +1 -0
  29. package/es/table-component/components/InputControl/InputControl.d.ts +27 -0
  30. package/es/table-component/components/InputControl/InputControl.js +121 -0
  31. package/es/table-component/components/InputControl/index.d.ts +1 -0
  32. package/es/table-component/components/InputControl/index.js +1 -0
  33. package/es/table-component/components/async-select/index.d.ts +11 -0
  34. package/es/table-component/components/async-select/index.js +41 -0
  35. package/es/table-component/components/async-table-select/index.d.ts +11 -0
  36. package/es/table-component/components/async-table-select/index.js +44 -0
  37. package/es/table-component/components/checkbox-control/index.d.ts +13 -0
  38. package/es/table-component/components/checkbox-control/index.js +40 -0
  39. package/es/table-component/components/checkbox-filter/CheckboxFilter.d.ts +18 -0
  40. package/es/table-component/components/checkbox-filter/CheckboxFilter.js +240 -0
  41. package/es/table-component/components/checkbox-filter/FilterSearch.d.ts +12 -0
  42. package/es/table-component/components/checkbox-filter/FilterSearch.js +36 -0
  43. package/es/table-component/components/command/Command.d.ts +10 -0
  44. package/es/table-component/components/command/Command.js +33 -0
  45. package/es/table-component/components/number/index.d.ts +10 -0
  46. package/es/table-component/components/number/index.js +42 -0
  47. package/es/table-component/components/number-range/index.d.ts +11 -0
  48. package/es/table-component/components/number-range/index.js +66 -0
  49. package/es/table-component/features/operator.d.ts +24 -0
  50. package/es/table-component/features/operator.js +62 -0
  51. package/es/table-component/footer/TableFooter.d.ts +13 -0
  52. package/es/table-component/footer/TableFooter.js +33 -0
  53. package/es/table-component/footer/TableFooterCell.d.ts +10 -0
  54. package/es/table-component/footer/TableFooterCell.js +66 -0
  55. package/es/table-component/footer/TableFooterRow.d.ts +14 -0
  56. package/es/table-component/footer/TableFooterRow.js +73 -0
  57. package/es/table-component/header/TableHead.d.ts +14 -0
  58. package/es/table-component/header/TableHead.js +60 -0
  59. package/es/table-component/header/TableHeadCell.d.ts +14 -0
  60. package/es/table-component/header/TableHeadCell.js +343 -0
  61. package/es/table-component/header/TableHeadRow.d.ts +16 -0
  62. package/es/table-component/header/TableHeadRow.js +76 -0
  63. package/es/table-component/header/renderFilter.d.ts +20 -0
  64. package/es/table-component/header/renderFilter.js +281 -0
  65. package/es/table-component/hook/constant.d.ts +73 -0
  66. package/es/table-component/hook/constant.js +240 -0
  67. package/es/table-component/hook/useColumns.d.ts +9 -0
  68. package/es/table-component/hook/useColumns.js +169 -0
  69. package/es/table-component/hook/useFilterOperator.d.ts +7 -0
  70. package/es/table-component/hook/useFilterOperator.js +33 -0
  71. package/es/table-component/hook/utils.d.ts +133 -0
  72. package/es/table-component/hook/utils.js +1870 -0
  73. package/es/table-component/index.d.ts +5 -0
  74. package/es/table-component/index.js +2 -0
  75. package/es/table-component/style.scss +1129 -0
  76. package/es/table-component/table/Grid.d.ts +24 -0
  77. package/es/table-component/table/Grid.js +234 -0
  78. package/es/table-component/type.d.ts +513 -0
  79. package/es/table-component/type.js +1 -0
  80. package/es/table-component/useContext.d.ts +74 -0
  81. package/es/table-component/useContext.js +15 -0
  82. package/lib/index.d.ts +1 -0
  83. package/lib/index.js +8 -1
  84. package/lib/table-component/ColumnsChoose.d.ts +13 -0
  85. package/lib/table-component/ColumnsChoose.js +216 -0
  86. package/lib/table-component/ContextMenu.d.ts +20 -0
  87. package/lib/table-component/ContextMenu.js +85 -0
  88. package/lib/table-component/InternalTable.d.ts +9 -0
  89. package/lib/table-component/InternalTable.js +313 -0
  90. package/lib/table-component/TableContainer.d.ts +31 -0
  91. package/lib/table-component/TableContainer.js +257 -0
  92. package/lib/table-component/TableContainerEdit.d.ts +31 -0
  93. package/lib/table-component/TableContainerEdit.js +1310 -0
  94. package/lib/table-component/body/EditableCell.d.ts +16 -0
  95. package/lib/table-component/body/EditableCell.js +1041 -0
  96. package/lib/table-component/body/TableBody.d.ts +19 -0
  97. package/lib/table-component/body/TableBody.js +72 -0
  98. package/lib/table-component/body/TableBodyCell.d.ts +12 -0
  99. package/lib/table-component/body/TableBodyCell.js +158 -0
  100. package/lib/table-component/body/TableBodyCellEdit.d.ts +16 -0
  101. package/lib/table-component/body/TableBodyCellEdit.js +938 -0
  102. package/lib/table-component/body/TableBodyRow.d.ts +21 -0
  103. package/lib/table-component/body/TableBodyRow.js +158 -0
  104. package/lib/table-component/components/ControlCheckbox.d.ts +13 -0
  105. package/lib/table-component/components/ControlCheckbox.js +92 -0
  106. package/lib/table-component/components/EditForm/EditForm.d.ts +27 -0
  107. package/lib/table-component/components/EditForm/EditForm.js +406 -0
  108. package/lib/table-component/components/EditForm/index.d.ts +1 -0
  109. package/lib/table-component/components/EditForm/index.js +16 -0
  110. package/lib/table-component/components/InputControl/InputControl.d.ts +27 -0
  111. package/lib/table-component/components/InputControl/InputControl.js +131 -0
  112. package/lib/table-component/components/InputControl/index.d.ts +1 -0
  113. package/lib/table-component/components/InputControl/index.js +16 -0
  114. package/lib/table-component/components/async-select/index.d.ts +11 -0
  115. package/lib/table-component/components/async-select/index.js +49 -0
  116. package/lib/table-component/components/async-table-select/index.d.ts +11 -0
  117. package/lib/table-component/components/async-table-select/index.js +53 -0
  118. package/lib/table-component/components/checkbox-control/index.d.ts +13 -0
  119. package/lib/table-component/components/checkbox-control/index.js +48 -0
  120. package/lib/table-component/components/checkbox-filter/CheckboxFilter.d.ts +18 -0
  121. package/lib/table-component/components/checkbox-filter/CheckboxFilter.js +249 -0
  122. package/lib/table-component/components/checkbox-filter/FilterSearch.d.ts +12 -0
  123. package/lib/table-component/components/checkbox-filter/FilterSearch.js +44 -0
  124. package/lib/table-component/components/command/Command.d.ts +10 -0
  125. package/lib/table-component/components/command/Command.js +42 -0
  126. package/lib/table-component/components/number/index.d.ts +10 -0
  127. package/lib/table-component/components/number/index.js +50 -0
  128. package/lib/table-component/components/number-range/index.d.ts +11 -0
  129. package/lib/table-component/components/number-range/index.js +74 -0
  130. package/lib/table-component/features/operator.d.ts +24 -0
  131. package/lib/table-component/features/operator.js +67 -0
  132. package/lib/table-component/footer/TableFooter.d.ts +13 -0
  133. package/lib/table-component/footer/TableFooter.js +42 -0
  134. package/lib/table-component/footer/TableFooterCell.d.ts +10 -0
  135. package/lib/table-component/footer/TableFooterCell.js +76 -0
  136. package/lib/table-component/footer/TableFooterRow.d.ts +14 -0
  137. package/lib/table-component/footer/TableFooterRow.js +81 -0
  138. package/lib/table-component/header/TableHead.d.ts +14 -0
  139. package/lib/table-component/header/TableHead.js +69 -0
  140. package/lib/table-component/header/TableHeadCell.d.ts +14 -0
  141. package/lib/table-component/header/TableHeadCell.js +352 -0
  142. package/lib/table-component/header/TableHeadRow.d.ts +16 -0
  143. package/lib/table-component/header/TableHeadRow.js +84 -0
  144. package/lib/table-component/header/renderFilter.d.ts +20 -0
  145. package/lib/table-component/header/renderFilter.js +291 -0
  146. package/lib/table-component/hook/constant.d.ts +73 -0
  147. package/lib/table-component/hook/constant.js +247 -0
  148. package/lib/table-component/hook/useColumns.d.ts +9 -0
  149. package/lib/table-component/hook/useColumns.js +180 -0
  150. package/lib/table-component/hook/useFilterOperator.d.ts +7 -0
  151. package/lib/table-component/hook/useFilterOperator.js +40 -0
  152. package/lib/table-component/hook/utils.d.ts +133 -0
  153. package/lib/table-component/hook/utils.js +1969 -0
  154. package/lib/table-component/index.d.ts +5 -0
  155. package/lib/table-component/index.js +9 -0
  156. package/lib/table-component/style.scss +1129 -0
  157. package/lib/table-component/table/Grid.d.ts +24 -0
  158. package/lib/table-component/table/Grid.js +236 -0
  159. package/lib/table-component/type.d.ts +513 -0
  160. package/lib/table-component/type.js +5 -0
  161. package/lib/table-component/useContext.d.ts +74 -0
  162. package/lib/table-component/useContext.js +21 -0
  163. package/package.json +4 -2
@@ -0,0 +1,169 @@
1
+ import React, { Fragment } from 'react';
2
+ import ControlCheckbox from "../components/ControlCheckbox";
3
+ import { checkDecimalSeparator, checkThousandSeparator, getFormat, isColor, isEmpty, sortByType } from "./utils";
4
+ import { numericFormatter } from 'react-numeric-component';
5
+ import dayjs from 'dayjs';
6
+ import moment from 'moment';
7
+ export const renderValueCell = (column, value, record, rowIndex, colIndex, format, editAble) => {
8
+ switch (column?.type) {
9
+ case 'number':
10
+ const colFormat = typeof column.format === 'function' ? column.format(record) : column.format;
11
+ const cellFormat = getFormat(colFormat, format);
12
+ const thousandSeparator = cellFormat?.thousandSeparator;
13
+ const decimalSeparator = cellFormat?.decimalSeparator;
14
+ const dec = cellFormat?.decimalScale;
15
+
16
+ // const contentNumber = !isEmpty(value) ? ((dec || dec === 0) ? parseFloat(Number(value).toFixed(dec)).toString() : value.toString()) : '0'
17
+
18
+ const tmpval = typeof value === 'string' ? Number(value) : value;
19
+ const numericFormatProps = {
20
+ thousandSeparator: checkThousandSeparator(thousandSeparator, decimalSeparator),
21
+ decimalSeparator: checkDecimalSeparator(thousandSeparator, decimalSeparator),
22
+ allowNegative: cellFormat?.allowNegative ?? true,
23
+ prefix: cellFormat?.prefix,
24
+ suffix: cellFormat?.suffix,
25
+ decimalScale: dec,
26
+ fixedDecimalScale: cellFormat?.fixedDecimalScale ?? false
27
+ };
28
+
29
+ // if ( typeof value === "string") {
30
+ // const ttt = removeNumericFormat(value, undefined, numericFormatProps )
31
+ //
32
+ // }
33
+
34
+ const contentNumber = !isEmpty(value) ? dec || dec === 0 ? parseFloat(tmpval.toFixed(dec)).toString() : tmpval.toString() : '0';
35
+ // const contentNumber = !isEmpty(value) ? ((dec || dec === 0) ? tmpval.toString() : tmpval.toString()) : '0'
36
+
37
+ return !isEmpty(contentNumber) ? numericFormatter(contentNumber, numericFormatProps) : '';
38
+ case 'date':
39
+ return value ? dayjs(value).format(format?.dateFormat ?? 'DD/MM/YYYY') : '';
40
+ case 'time':
41
+ return value ? value : '';
42
+ case 'year':
43
+ const year = value ? moment(value).format('yyyy') : '';
44
+ return /*#__PURE__*/React.createElement(Fragment, null, year);
45
+ case 'datetime':
46
+ return value ? moment(value).format(format?.datetimeFormat ?? 'DD/MM/YYYY HH:mm') : '';
47
+ case 'boolean':
48
+ return value ? 'true' : 'false';
49
+ case 'color':
50
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
51
+ className: 'w-100 h-100',
52
+ style: {
53
+ backgroundColor: isColor(value) ? value : '#fff',
54
+ border: '1px solid #f0f0f0',
55
+ height: '100%',
56
+ minHeight: 20
57
+ }
58
+ }));
59
+ case 'checkbox':
60
+ return /*#__PURE__*/React.createElement(ControlCheckbox, {
61
+ column: column,
62
+ record: record,
63
+ rowIndex: rowIndex,
64
+ colIndex: colIndex,
65
+ checked: !!value,
66
+ checkValue: value,
67
+ editAble: editAble
68
+ });
69
+ case 'file':
70
+ const nameFile = typeof value === 'object' && !Array.isArray(value) ? value.name : Array.isArray(value) ? value.map(it => typeof it === 'object' ? it.name : it).filter(Boolean).join(", ") : '';
71
+ return value ? nameFile : '';
72
+ default:
73
+ if (Array.isArray(value)) {
74
+ return value.join(', ');
75
+ }
76
+ return value;
77
+ }
78
+ };
79
+ export function convertToTanStackColumns({
80
+ t,
81
+ columns,
82
+ // expanded,
83
+ // setExpanded,
84
+ // expandable,
85
+ format,
86
+ editAble
87
+ }) {
88
+ // const expandIconColumnIndex = expandable?.expandIconColumnIndex ?? 0
89
+
90
+ return sortByType(columns).map(col => {
91
+ const {
92
+ headerText,
93
+ headerTemplate,
94
+ field,
95
+ width,
96
+ allowResizing,
97
+ minWidth,
98
+ template,
99
+ allowSorter
100
+ } = col;
101
+ const {
102
+ children,
103
+ ...restProps
104
+ } = col;
105
+ const newCol = {
106
+ header: () => {
107
+ if (headerTemplate) {
108
+ if (typeof headerTemplate === 'function') {
109
+ return headerTemplate(col);
110
+ } else {
111
+ return headerTemplate;
112
+ }
113
+ } else {
114
+ return t ? t(headerText) : headerText;
115
+ }
116
+ },
117
+ cell: props => {
118
+ const {
119
+ getValue,
120
+ cell
121
+ } = props;
122
+ const cellValue = props.renderValue() ?? null;
123
+ const record = cell.row.original;
124
+ const colIndex = cell.column.getIndex();
125
+ const rowIndex = cell.row.index;
126
+ if (template) {
127
+ if (typeof template === 'function') {
128
+ return template({
129
+ field: field ?? '',
130
+ index: cell.row.index,
131
+ rowData: cell.row.original,
132
+ value: getValue()
133
+ });
134
+ } else {
135
+ return template;
136
+ }
137
+ } else {
138
+ return /*#__PURE__*/React.createElement(Fragment, null, renderValueCell(col, cellValue, record, rowIndex, colIndex, format, editAble));
139
+ }
140
+ },
141
+ enableResizing: allowResizing !== false,
142
+ enableHiding: false,
143
+ // enableResizing: true,
144
+ id: field,
145
+ size: width,
146
+ accessorKey: field ?? '',
147
+ sortDescFirst: false,
148
+ minSize: minWidth,
149
+ // maxSize: maxWidth,
150
+ enableSorting: allowSorter !== false || col.sorter !== false
151
+ };
152
+ if (children) {
153
+ // @ts-ignore
154
+ newCol.columns = convertToTanStackColumns({
155
+ columns: children,
156
+ editAble,
157
+ format,
158
+ t
159
+ });
160
+ }
161
+ const meta = {
162
+ ...restProps
163
+ };
164
+ if (Object.keys(meta).length > 0) {
165
+ newCol.meta = meta;
166
+ }
167
+ return newCol;
168
+ });
169
+ }
@@ -0,0 +1,7 @@
1
+ import { Table } from '@tanstack/react-table';
2
+ import type { FilterOperator } from '../type';
3
+ export declare function useFilterOperator(table: Table<any>): {
4
+ setFilterOperator: (columnId: string, operator: FilterOperator) => void;
5
+ getFilterOperator: (columnId: string) => FilterOperator;
6
+ };
7
+ export declare function customStringFilterFn(row: any, columnId: any, filterValue: any): boolean;
@@ -0,0 +1,33 @@
1
+ export function useFilterOperator(table) {
2
+ const setFilterOperator = (columnId, operator) => {
3
+ const filters = table.getState().columnFilters;
4
+ const next = filters.map(f => f.id === columnId ? {
5
+ ...f,
6
+ operator
7
+ } : f);
8
+ table.setColumnFilters(next);
9
+ };
10
+ const getFilterOperator = columnId => {
11
+ const filters = table.getState().columnFilters;
12
+ return filters.find(f => f.id === columnId)?.operator ?? 'contains';
13
+ };
14
+ return {
15
+ setFilterOperator,
16
+ getFilterOperator
17
+ };
18
+ }
19
+ export function customStringFilterFn(row, columnId, filterValue) {
20
+ const filters = row.table.getState().columnFilters;
21
+ const operator = filters.find(f => f.id === columnId)?.operator ?? 'contains';
22
+ const cellValue = String(row.getValue(columnId) ?? '');
23
+ switch (operator) {
24
+ case 'equal':
25
+ return cellValue === filterValue;
26
+ case 'startsWith':
27
+ return cellValue.toLowerCase().startsWith(filterValue.toLowerCase());
28
+ case 'endsWith':
29
+ return cellValue.toLowerCase().endsWith(filterValue.toLowerCase());
30
+ default:
31
+ return cellValue.toLowerCase().includes(filterValue.toLowerCase());
32
+ }
33
+ }
@@ -0,0 +1,133 @@
1
+ import type { Table } from "@tanstack/react-table";
2
+ import { type Column } from "@tanstack/react-table";
3
+ import type { VirtualItem } from "@tanstack/react-virtual";
4
+ import type { AnyObject, ColumnsTable, ColumnTable, EditType, FilterOperator, IColumnType, IFormat, RangeState, Sorter, TypeFilter } from "./../type";
5
+ import { type CSSProperties } from "react";
6
+ import dayjs from "dayjs";
7
+ import type { IPositionCell } from "../useContext";
8
+ import type { ColumnDef } from "@tanstack/react-table";
9
+ import type { TreeDataNode } from "antd";
10
+ export declare const newGuid: () => any;
11
+ export declare const convertDayjsToDate: (dateString: string, format?: string) => Date;
12
+ export declare const convertDateToDayjs: (date: Date | undefined, format?: string) => dayjs.Dayjs;
13
+ export declare const getCommonPinningStyles: (column: Column<any>) => CSSProperties;
14
+ export declare const sumSize: (items: any) => number;
15
+ export declare const appendIfNotExists: (a: VirtualItem[], b: VirtualItem[]) => VirtualItem[];
16
+ export declare const getNewItemsOnly: (a: VirtualItem[], b: VirtualItem[]) => VirtualItem[];
17
+ export declare const extendsObject: <T extends AnyObject = AnyObject>(...list: T[]) => AnyObject;
18
+ export declare const isEmpty: (d: any) => boolean;
19
+ export declare const getFormat: (colFormat?: IFormat, format?: IFormat) => {
20
+ thousandSeparator: string;
21
+ decimalSeparator: string;
22
+ decimalScale: number;
23
+ allowNegative: boolean;
24
+ prefix: string;
25
+ suffix: string;
26
+ fixedDecimalScale: boolean;
27
+ dateFormat: string;
28
+ datetimeFormat: string;
29
+ timeFormat: string;
30
+ weekFormat: string;
31
+ monthFormat: string;
32
+ yearFormat: string;
33
+ };
34
+ export declare function convertFormat(formatStr: string): string;
35
+ export declare const getDatepickerFormat: (type: EditType | TypeFilter | IColumnType, format?: IFormat) => string;
36
+ export declare const getDateRangeFormat: (type: EditType | TypeFilter | IColumnType, format?: IFormat) => string;
37
+ export declare const getTypeFilter: (col: any) => TypeFilter;
38
+ export declare const addRowIdArray: (inputArray: any[]) => any[];
39
+ export declare function groupArrayByColumns(arr: any[], columns: string[] | undefined): any;
40
+ export declare const flatColumns2: <RecordType>(columns: ColumnsTable<RecordType>) => ColumnsTable<RecordType>;
41
+ export declare const checkThousandSeparator: (thousandSeparator: string | undefined, decimalSeparator: string | undefined) => string;
42
+ export declare const checkDecimalSeparator: (thousandSeparator: string | undefined, decimalSeparator: string | undefined) => string;
43
+ export declare function getFixedFields(columns: ColumnTable[], type: 'left' | 'right'): string[];
44
+ export declare function areStringArraysEqual(a: string[], b: string[]): boolean;
45
+ export declare const getDefaultOperator: (col: ColumnTable) => FilterOperator;
46
+ export declare function isEqualSet(setA: any, setB: any): boolean;
47
+ export declare const getLastSelectCell: (selectCells: any) => {
48
+ row: number;
49
+ col: number;
50
+ };
51
+ export declare function getCellsByPosition(cellSet: any, position?: string): any[];
52
+ export declare const onAddBgSelectedCell: (selectedCells: any, id?: string, isFocusCellIndex?: boolean) => void;
53
+ export declare const onRemoveBgSelectedCell: (selectedCells: any, id?: string, rowsSelected?: any) => void;
54
+ export declare function getColIdsBetween(table: Table<any>, a: string, b: string): string[];
55
+ export declare function getRowIdsBetween(table: Table<any>, a: string, b: string): string[];
56
+ export declare const updateArrayByKey: (arr: any[], element: any, key: string) => any[];
57
+ export declare const unFlattenData: <RecordType extends AnyObject = AnyObject>(data: RecordType[]) => RecordType[];
58
+ export declare const flattenArray: <RecordType extends AnyObject = AnyObject>(arr: any[]) => RecordType[];
59
+ export declare function updateOrInsert(dataArray: any[], dataFilter: any[]): any[];
60
+ export declare const findItemByKey: (array: any, key: string | number, value: any) => any;
61
+ export declare const isFormattedNumber: (str: string) => boolean;
62
+ export declare const detectSeparators: (str: string) => {
63
+ thousandSeparator: string;
64
+ decimalSeparator: string;
65
+ };
66
+ export declare function isDateString(str: any): boolean;
67
+ export declare function compareDates(date1: any, date2: any): boolean;
68
+ export declare function compareDate(itemValue: any, value: any): boolean;
69
+ export declare const removeVietnameseTones: (str: any) => any;
70
+ export declare const shouldInclude: (item: any, queries: any[]) => any;
71
+ export declare function sortData(data: any[], sorter: Sorter[]): any[];
72
+ export declare function filterDataByColumns(data: any[], queries: any[], sorter: Sorter[], keysFilter: string[] | undefined): any[];
73
+ export declare const getAllRowKey: (data: any[]) => any[];
74
+ export declare const isEditable: <RecordType>(column: ColumnTable, rowData: RecordType) => boolean | ((rowData: any) => boolean);
75
+ export declare const checkFieldKey: (key: string | undefined) => string;
76
+ export declare const convertArrayWithIndent: (inputArray: any[], parentIndent?: number) => any[];
77
+ export declare const convertLabelToTitle: (data: any[]) => any[];
78
+ export declare const isNullOrUndefined: (d: any) => boolean;
79
+ export declare const isObjEmpty: (obj: any) => boolean;
80
+ export declare const isDisable: <T>(column: ColumnTable<T>, rowData?: any) => boolean;
81
+ export declare const customWeekStartEndFormat: (value: any, weekFormat: string) => string;
82
+ export declare const parseBooleanToValue: (value: boolean, type: 'boolean' | 'number') => number | boolean;
83
+ export declare const isNameColor: (strColor: string) => boolean;
84
+ export declare const isColor: (value: string) => boolean;
85
+ export declare const genPresets: (presets?: import("@ant-design/colors").PalettesProps) => import("antd/es/color-picker/interface").PresetsItem[];
86
+ export declare const getEditType: <T>(column: ColumnTable<T>, rowData?: any) => EditType;
87
+ export declare const getDefaultValue: (defaultValue: any) => AnyObject;
88
+ export declare const flattenData: <RecordType extends AnyObject = AnyObject>(childrenColumnName: string, data?: RecordType[]) => RecordType[];
89
+ export declare const getSelectedCellMatrix: (table: Table<any>, startCell: IPositionCell | undefined, endCell: IPositionCell | undefined) => RangeState;
90
+ export declare function addRowsDownWithCtrl(arr: any, n: number): {
91
+ combined: any;
92
+ addedRows: any[];
93
+ } | {
94
+ combined: any[];
95
+ addedRows: any[];
96
+ };
97
+ export declare function addRowsDown(arr: any, n: number): {
98
+ combined: any;
99
+ addedRows: any[];
100
+ } | {
101
+ combined: any[];
102
+ addedRows: any[];
103
+ };
104
+ export declare function addRowsUpWithCtrl(array: any, n: number): {
105
+ combined: any;
106
+ addedRows: any[];
107
+ } | {
108
+ combined: any[];
109
+ addedRows: any[];
110
+ };
111
+ export declare function addRowsUp(array: any, n: number): {
112
+ combined: any;
113
+ addedRows: any[];
114
+ } | {
115
+ combined: any[];
116
+ addedRows: any[];
117
+ };
118
+ export declare const convertFilters: (filters: any[]) => any[];
119
+ export declare function getInvisibleColumns(columns: ColumnTable[]): Record<string, boolean>;
120
+ export declare const getAllVisibleKeys: (columns: any[]) => any[];
121
+ export declare const getAllVisibleKeys1: (columns: ColumnTable[]) => any[];
122
+ export declare function getHiddenParentKeys(columns: any[], parentKeys?: string[]): string[];
123
+ export declare function getHiddenParentKeys1(columns: ColumnTable[], parentKeys?: string[]): string[];
124
+ export declare const getVisibleColumnKeys: (columns: any[]) => string[];
125
+ export declare const getVisibleColumnKeys1: (columns: any[]) => string[];
126
+ export declare function isObjEqual(obj1: any, obj2: any): boolean;
127
+ export declare const sortByType: <T>(arr: ColumnTable<T>[]) => ColumnTable<T>[];
128
+ export declare function convertColumnsToTreeData<T>(columns: ColumnDef<T, any>[], groupColumns?: string[]): TreeDataNode[];
129
+ export declare const updateColumns1: (columns: ColumnTable[], includes: string[]) => ColumnTable[];
130
+ export declare const convertToObj: (arr: any) => {
131
+ [k: string]: any;
132
+ };
133
+ export declare const getDiffent2Array: (a: any[], b: any[]) => any[];