es-grid-template 1.9.31 → 1.9.33

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 (204) hide show
  1. package/assets/index.css +3 -3
  2. package/es/ali-table/InternalTable.d.ts +2 -2
  3. package/es/ali-table/base-table/colgroup.d.ts +2 -2
  4. package/es/ali-table/base-table/empty.d.ts +1 -1
  5. package/es/ali-table/base-table/header.d.ts +2 -2
  6. package/es/ali-table/base-table/html-table.d.ts +2 -2
  7. package/es/ali-table/base-table/loading.d.ts +1 -1
  8. package/es/ali-table/base-table/renderFilter.d.ts +2 -2
  9. package/es/ali-table/base-table/table.d.ts +1 -1
  10. package/es/ali-table/common-views.d.ts +5 -5
  11. package/es/ali-table/pipeline/features/ColumnsChoose.d.ts +2 -2
  12. package/es/ali-table/utils/convertColumnsChoose.d.ts +2 -2
  13. package/es/global.d.ts +3 -0
  14. package/es/grid-component/LoadingSpinner.d.ts +2 -2
  15. package/es/grid-component/TempTable.d.ts +2 -2
  16. package/es/grid-component/control/InputControl/InputControl.d.ts +1 -2
  17. package/es/group-component/ColumnsChoose.d.ts +2 -2
  18. package/es/group-component/ColumnsGroup/ColumnsGroup.d.ts +2 -2
  19. package/es/group-component/InternalTable.d.ts +2 -2
  20. package/es/group-component/TableContainer.d.ts +1 -2
  21. package/es/group-component/TableContainerEdit.d.ts +1 -2
  22. package/es/group-component/body/EditableCell.d.ts +1 -1
  23. package/es/group-component/body/TableBody.d.ts +2 -2
  24. package/es/group-component/body/TableBody.js +2 -0
  25. package/es/group-component/body/TableBodyCell.d.ts +2 -2
  26. package/es/group-component/body/TableBodyCellEdit.d.ts +2 -2
  27. package/es/group-component/body/TableBodyCellEmpty.d.ts +2 -2
  28. package/es/group-component/body/TableBodyCellEmpty.js +16 -9
  29. package/es/group-component/body/TableBodyRow.d.ts +3 -3
  30. package/es/group-component/body/TableBodyRowGroupCell.d.ts +2 -2
  31. package/es/group-component/components/ControlCheckbox.d.ts +2 -2
  32. package/es/group-component/components/EditForm/EditForm.d.ts +1 -1
  33. package/es/group-component/components/InputControl/InputControl.d.ts +1 -2
  34. package/es/group-component/components/async-select/index.d.ts +2 -2
  35. package/es/group-component/components/async-table-select/index.d.ts +2 -2
  36. package/es/group-component/components/checkbox-control/index.d.ts +2 -2
  37. package/es/group-component/components/checkbox-filter/CheckboxFilter.d.ts +2 -2
  38. package/es/group-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
  39. package/es/group-component/components/command/Command.d.ts +2 -2
  40. package/es/group-component/components/number/index.d.ts +1 -2
  41. package/es/group-component/components/number-range/index.d.ts +1 -2
  42. package/es/group-component/footer/TableFooter.d.ts +2 -2
  43. package/es/group-component/footer/TableFooterCell.d.ts +2 -2
  44. package/es/group-component/footer/TableFooterRow.d.ts +2 -2
  45. package/es/group-component/header/TableHead.d.ts +3 -3
  46. package/es/group-component/header/TableHeadCell.d.ts +3 -3
  47. package/es/group-component/header/TableHeadCell2.d.ts +3 -3
  48. package/es/group-component/header/TableHeadGroupCell.d.ts +3 -3
  49. package/es/group-component/header/TableHeadRow.d.ts +3 -3
  50. package/es/group-component/header/renderFilter.d.ts +2 -2
  51. package/es/group-component/hook/utils.d.ts +5 -5
  52. package/es/group-component/table/Grid.d.ts +1 -2
  53. package/es/group-component/table/TableWrapper.d.ts +2 -2
  54. package/es/table-component/ColumnsChoose.d.ts +2 -2
  55. package/es/table-component/ContextMenu.d.ts +2 -2
  56. package/es/table-component/InternalTable.d.ts +2 -2
  57. package/es/table-component/InternalTable.js +6 -0
  58. package/es/table-component/TableContainer.d.ts +1 -2
  59. package/es/table-component/TableContainerEdit.d.ts +1 -2
  60. package/es/table-component/body/EditableCell.d.ts +1 -1
  61. package/es/table-component/body/EditableCell.js +2 -2
  62. package/es/table-component/body/TableBody.d.ts +2 -2
  63. package/es/table-component/body/TableBody.js +0 -2
  64. package/es/table-component/body/TableBodyCell.d.ts +2 -2
  65. package/es/table-component/body/TableBodyCellEdit.d.ts +2 -2
  66. package/es/table-component/body/TableBodyRow.d.ts +3 -3
  67. package/es/table-component/components/ControlCheckbox.d.ts +2 -2
  68. package/es/table-component/components/EditForm/EditForm.d.ts +1 -1
  69. package/es/table-component/components/InputControl/InputControl.d.ts +1 -2
  70. package/es/table-component/components/async-select/index.d.ts +2 -2
  71. package/es/table-component/components/async-table-select/index.d.ts +2 -2
  72. package/es/table-component/components/checkbox-control/index.d.ts +2 -2
  73. package/es/table-component/components/checkbox-filter/CheckboxFilter.d.ts +2 -2
  74. package/es/table-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
  75. package/es/table-component/components/command/Command.d.ts +2 -2
  76. package/es/table-component/components/number/index.d.ts +1 -2
  77. package/es/table-component/components/number-range/index.d.ts +1 -2
  78. package/es/table-component/footer/TableFooter.d.ts +2 -2
  79. package/es/table-component/footer/TableFooterCell.d.ts +2 -2
  80. package/es/table-component/footer/TableFooterRow.d.ts +2 -2
  81. package/es/table-component/header/TableHead.d.ts +3 -3
  82. package/es/table-component/header/TableHeadCell.d.ts +3 -3
  83. package/es/table-component/header/TableHeadCell2.d.ts +3 -3
  84. package/es/table-component/header/TableHeadGroupCell.d.ts +3 -3
  85. package/es/table-component/header/TableHeadRow.d.ts +3 -3
  86. package/es/table-component/header/renderFilter.d.ts +2 -2
  87. package/es/table-component/hook/utils.d.ts +2 -2
  88. package/es/table-component/style.scss +8 -0
  89. package/es/table-component/table/Grid.d.ts +1 -2
  90. package/es/table-component/table/TableWrapper.d.ts +2 -2
  91. package/es/table-virtuoso/ColumnsGroup/ColumnsGroup.d.ts +2 -2
  92. package/es/table-virtuoso/InternalTable.d.ts +2 -2
  93. package/es/table-virtuoso/body/TableBodyCell.d.ts +2 -2
  94. package/es/table-virtuoso/body/TableBodyCellRowGroup.d.ts +2 -2
  95. package/es/table-virtuoso/body/TableBodyRow.d.ts +3 -3
  96. package/es/table-virtuoso/footer/TableFooterCell.d.ts +2 -2
  97. package/es/table-virtuoso/header/TableHeadCell.d.ts +3 -3
  98. package/es/table-virtuoso/header/renderFilter.d.ts +2 -2
  99. package/es/table-virtuoso/hook/utils.d.ts +2 -2
  100. package/es/table-virtuoso/table/Grid.d.ts +1 -2
  101. package/es/table-virtuoso/table/TableContainer.d.ts +1 -2
  102. package/es/table-virtuoso/table/TableWrapper.d.ts +1 -1
  103. package/lib/ali-table/InternalTable.d.ts +2 -2
  104. package/lib/ali-table/base-table/colgroup.d.ts +2 -2
  105. package/lib/ali-table/base-table/empty.d.ts +1 -1
  106. package/lib/ali-table/base-table/header.d.ts +2 -2
  107. package/lib/ali-table/base-table/html-table.d.ts +2 -2
  108. package/lib/ali-table/base-table/loading.d.ts +1 -1
  109. package/lib/ali-table/base-table/renderFilter.d.ts +2 -2
  110. package/lib/ali-table/base-table/table.d.ts +1 -1
  111. package/lib/ali-table/common-views.d.ts +5 -5
  112. package/lib/ali-table/pipeline/features/ColumnsChoose.d.ts +2 -2
  113. package/lib/ali-table/utils/convertColumnsChoose.d.ts +2 -2
  114. package/lib/global.d.ts +3 -0
  115. package/lib/grid-component/LoadingSpinner.d.ts +2 -2
  116. package/lib/grid-component/TempTable.d.ts +2 -2
  117. package/lib/grid-component/control/InputControl/InputControl.d.ts +1 -2
  118. package/lib/group-component/ColumnsChoose.d.ts +2 -2
  119. package/lib/group-component/ColumnsGroup/ColumnsGroup.d.ts +2 -2
  120. package/lib/group-component/InternalTable.d.ts +2 -2
  121. package/lib/group-component/TableContainer.d.ts +1 -2
  122. package/lib/group-component/TableContainerEdit.d.ts +1 -2
  123. package/lib/group-component/body/EditableCell.d.ts +1 -1
  124. package/lib/group-component/body/TableBody.d.ts +2 -2
  125. package/lib/group-component/body/TableBody.js +2 -0
  126. package/lib/group-component/body/TableBodyCell.d.ts +2 -2
  127. package/lib/group-component/body/TableBodyCellEdit.d.ts +2 -2
  128. package/lib/group-component/body/TableBodyCellEmpty.d.ts +2 -2
  129. package/lib/group-component/body/TableBodyCellEmpty.js +16 -9
  130. package/lib/group-component/body/TableBodyRow.d.ts +3 -3
  131. package/lib/group-component/body/TableBodyRowGroupCell.d.ts +2 -2
  132. package/lib/group-component/components/ControlCheckbox.d.ts +2 -2
  133. package/lib/group-component/components/EditForm/EditForm.d.ts +1 -1
  134. package/lib/group-component/components/InputControl/InputControl.d.ts +1 -2
  135. package/lib/group-component/components/async-select/index.d.ts +2 -2
  136. package/lib/group-component/components/async-table-select/index.d.ts +2 -2
  137. package/lib/group-component/components/checkbox-control/index.d.ts +2 -2
  138. package/lib/group-component/components/checkbox-filter/CheckboxFilter.d.ts +2 -2
  139. package/lib/group-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
  140. package/lib/group-component/components/command/Command.d.ts +2 -2
  141. package/lib/group-component/components/number/index.d.ts +1 -2
  142. package/lib/group-component/components/number-range/index.d.ts +1 -2
  143. package/lib/group-component/footer/TableFooter.d.ts +2 -2
  144. package/lib/group-component/footer/TableFooterCell.d.ts +2 -2
  145. package/lib/group-component/footer/TableFooterRow.d.ts +2 -2
  146. package/lib/group-component/header/TableHead.d.ts +3 -3
  147. package/lib/group-component/header/TableHeadCell.d.ts +3 -3
  148. package/lib/group-component/header/TableHeadCell2.d.ts +3 -3
  149. package/lib/group-component/header/TableHeadGroupCell.d.ts +3 -3
  150. package/lib/group-component/header/TableHeadRow.d.ts +3 -3
  151. package/lib/group-component/header/renderFilter.d.ts +2 -2
  152. package/lib/group-component/hook/utils.d.ts +10 -10
  153. package/lib/group-component/table/Grid.d.ts +1 -2
  154. package/lib/group-component/table/TableWrapper.d.ts +2 -2
  155. package/lib/table-component/ColumnsChoose.d.ts +2 -2
  156. package/lib/table-component/ContextMenu.d.ts +2 -2
  157. package/lib/table-component/InternalTable.d.ts +2 -2
  158. package/lib/table-component/InternalTable.js +6 -0
  159. package/lib/table-component/TableContainer.d.ts +1 -2
  160. package/lib/table-component/TableContainerEdit.d.ts +1 -2
  161. package/lib/table-component/body/EditableCell.d.ts +1 -1
  162. package/lib/table-component/body/EditableCell.js +1 -1
  163. package/lib/table-component/body/TableBody.d.ts +2 -2
  164. package/lib/table-component/body/TableBody.js +0 -4
  165. package/lib/table-component/body/TableBodyCell.d.ts +2 -2
  166. package/lib/table-component/body/TableBodyCellEdit.d.ts +2 -2
  167. package/lib/table-component/body/TableBodyRow.d.ts +3 -3
  168. package/lib/table-component/components/ControlCheckbox.d.ts +2 -2
  169. package/lib/table-component/components/EditForm/EditForm.d.ts +1 -1
  170. package/lib/table-component/components/InputControl/InputControl.d.ts +1 -2
  171. package/lib/table-component/components/async-select/index.d.ts +2 -2
  172. package/lib/table-component/components/async-table-select/index.d.ts +2 -2
  173. package/lib/table-component/components/checkbox-control/index.d.ts +2 -2
  174. package/lib/table-component/components/checkbox-filter/CheckboxFilter.d.ts +2 -2
  175. package/lib/table-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
  176. package/lib/table-component/components/command/Command.d.ts +2 -2
  177. package/lib/table-component/components/number/index.d.ts +1 -2
  178. package/lib/table-component/components/number-range/index.d.ts +1 -2
  179. package/lib/table-component/footer/TableFooter.d.ts +2 -2
  180. package/lib/table-component/footer/TableFooterCell.d.ts +2 -2
  181. package/lib/table-component/footer/TableFooterRow.d.ts +2 -2
  182. package/lib/table-component/header/TableHead.d.ts +3 -3
  183. package/lib/table-component/header/TableHeadCell.d.ts +3 -3
  184. package/lib/table-component/header/TableHeadCell2.d.ts +3 -3
  185. package/lib/table-component/header/TableHeadGroupCell.d.ts +3 -3
  186. package/lib/table-component/header/TableHeadRow.d.ts +3 -3
  187. package/lib/table-component/header/renderFilter.d.ts +2 -2
  188. package/lib/table-component/hook/utils.d.ts +2 -2
  189. package/lib/table-component/style.scss +8 -0
  190. package/lib/table-component/table/Grid.d.ts +1 -2
  191. package/lib/table-component/table/TableWrapper.d.ts +2 -2
  192. package/lib/table-virtuoso/ColumnsGroup/ColumnsGroup.d.ts +2 -2
  193. package/lib/table-virtuoso/InternalTable.d.ts +2 -2
  194. package/lib/table-virtuoso/body/TableBodyCell.d.ts +2 -2
  195. package/lib/table-virtuoso/body/TableBodyCellRowGroup.d.ts +2 -2
  196. package/lib/table-virtuoso/body/TableBodyRow.d.ts +3 -3
  197. package/lib/table-virtuoso/footer/TableFooterCell.d.ts +2 -2
  198. package/lib/table-virtuoso/header/TableHeadCell.d.ts +3 -3
  199. package/lib/table-virtuoso/header/renderFilter.d.ts +2 -2
  200. package/lib/table-virtuoso/hook/utils.d.ts +2 -2
  201. package/lib/table-virtuoso/table/Grid.d.ts +1 -2
  202. package/lib/table-virtuoso/table/TableContainer.d.ts +1 -2
  203. package/lib/table-virtuoso/table/TableWrapper.d.ts +1 -1
  204. package/package.json +66 -64
@@ -1,5 +1,4 @@
1
1
  import type { KeyboardEventHandler } from "react";
2
- import React from "react";
3
2
  import type { IFormat } from "../../../grid-component/type";
4
3
  type Props = {
5
4
  t?: any;
@@ -8,5 +7,5 @@ type Props = {
8
7
  onChange?: (values: any[]) => void;
9
8
  onPressEnter?: KeyboardEventHandler<HTMLInputElement>;
10
9
  };
11
- declare const NumberInput: (props: Props) => React.JSX.Element;
10
+ declare const NumberInput: (props: Props) => JSX.Element;
12
11
  export default NumberInput;
@@ -1,5 +1,4 @@
1
1
  import type { KeyboardEventHandler } from "react";
2
- import React from "react";
3
2
  import type { IFormat } from "../../../grid-component/type";
4
3
  type Props = {
5
4
  t?: any;
@@ -9,5 +8,5 @@ type Props = {
9
8
  onChange?: (values: any[]) => void;
10
9
  onPressEnter?: KeyboardEventHandler<HTMLInputElement>;
11
10
  };
12
- declare const NumberRange: (props: Props) => React.JSX.Element;
11
+ declare const NumberRange: (props: Props) => JSX.Element;
13
12
  export default NumberRange;
@@ -1,7 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import type { Table } from "@tanstack/react-table";
2
- import React from "react";
3
3
  interface TableFooterProps<T> {
4
4
  table: Table<T>;
5
5
  }
6
- declare const TableFooter: <RecordType extends object>({ table, }: TableFooterProps<RecordType>) => React.JSX.Element;
6
+ declare const TableFooter: <RecordType extends object>({ table, }: TableFooterProps<RecordType>) => JSX.Element;
7
7
  export default TableFooter;
@@ -1,7 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import type { Column } from "@tanstack/react-table";
2
- import React from "react";
3
3
  interface TableFooterCellProps<T> {
4
4
  column: Column<T, any>;
5
5
  }
6
- declare const TableFooterCell: <RecordType extends object>({ column }: TableFooterCellProps<RecordType>) => React.JSX.Element;
6
+ declare const TableFooterCell: <RecordType extends object>({ column }: TableFooterCellProps<RecordType>) => JSX.Element;
7
7
  export default TableFooterCell;
@@ -1,8 +1,8 @@
1
+ /// <reference types="react" />
1
2
  import type { HeaderGroup, Table } from "@tanstack/react-table";
2
- import React from "react";
3
3
  interface TableFooterRowProps<T> {
4
4
  table: Table<T>;
5
5
  headerGroup: HeaderGroup<T>;
6
6
  }
7
- declare const TableFooterRow: <RecordType extends object>({ table, headerGroup, }: TableFooterRowProps<RecordType>) => React.JSX.Element;
7
+ declare const TableFooterRow: <RecordType extends object>({ table, headerGroup, }: TableFooterRowProps<RecordType>) => JSX.Element;
8
8
  export default TableFooterRow;
@@ -1,6 +1,6 @@
1
1
  import type { Column } from '@tanstack/react-table';
2
- import { type Table } from '@tanstack/react-table';
3
- import { type Virtualizer } from '@tanstack/react-virtual';
2
+ import type { Table } from '@tanstack/react-table';
3
+ import type { Virtualizer } from '@tanstack/react-virtual';
4
4
  import React from 'react';
5
5
  interface TableHeadProps<T> {
6
6
  tableContainerRef: React.RefObject<HTMLDivElement>;
@@ -11,5 +11,5 @@ interface TableHeadProps<T> {
11
11
  fixedLeftColumns: Column<T, unknown>[];
12
12
  fixedRightColumns: Column<T, unknown>[];
13
13
  }
14
- declare const TableHead: <RecordType extends object>({ columnVirtualizer, table, }: TableHeadProps<RecordType>) => React.JSX.Element;
14
+ declare const TableHead: <RecordType extends object>({ columnVirtualizer, table, }: TableHeadProps<RecordType>) => JSX.Element;
15
15
  export default TableHead;
@@ -1,6 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import type { Table } from '@tanstack/react-table';
2
- import { type Header } from '@tanstack/react-table';
3
- import React from 'react';
3
+ import type { Header } from '@tanstack/react-table';
4
4
  import type { Virtualizer } from '@tanstack/react-virtual';
5
5
  interface TableHeadCellProps<T> {
6
6
  t?: any;
@@ -11,5 +11,5 @@ interface TableHeadCellProps<T> {
11
11
  colSpan: any;
12
12
  rowSpan: any;
13
13
  }
14
- declare const TableHeadCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) => React.JSX.Element;
14
+ declare const TableHeadCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) => JSX.Element;
15
15
  export default TableHeadCell;
@@ -1,6 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import type { Table } from '@tanstack/react-table';
2
- import { type Header } from '@tanstack/react-table';
3
- import React from 'react';
3
+ import type { Header } from '@tanstack/react-table';
4
4
  import type { Virtualizer } from '@tanstack/react-virtual';
5
5
  interface TableHeadCellProps<T> {
6
6
  t?: any;
@@ -13,5 +13,5 @@ interface TableHeadCellProps<T> {
13
13
  rowSpan: number;
14
14
  depth: number;
15
15
  }
16
- declare const TableHeadCell2: <RecordType extends object>(props: TableHeadCellProps<RecordType>) => React.JSX.Element;
16
+ declare const TableHeadCell2: <RecordType extends object>(props: TableHeadCellProps<RecordType>) => JSX.Element;
17
17
  export default TableHeadCell2;
@@ -1,6 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import type { Table } from '@tanstack/react-table';
2
- import { type Header } from '@tanstack/react-table';
3
- import React from 'react';
3
+ import type { Header } from '@tanstack/react-table';
4
4
  import type { Virtualizer } from '@tanstack/react-virtual';
5
5
  interface TableHeadCellProps<T> {
6
6
  t?: any;
@@ -13,5 +13,5 @@ interface TableHeadCellProps<T> {
13
13
  rowSpan: number;
14
14
  depth: number;
15
15
  }
16
- declare const TableHeadGroupCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) => React.JSX.Element;
16
+ declare const TableHeadGroupCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) => JSX.Element;
17
17
  export default TableHeadGroupCell;
@@ -1,6 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import type { Column } from '@tanstack/react-table';
2
- import { type HeaderGroup, type Table } from '@tanstack/react-table';
3
- import React from 'react';
3
+ import type { HeaderGroup, Table } from '@tanstack/react-table';
4
4
  import type { Virtualizer } from '@tanstack/react-virtual';
5
5
  interface TableHeadRowProps<T> {
6
6
  headerGroup: HeaderGroup<T>;
@@ -11,5 +11,5 @@ interface TableHeadRowProps<T> {
11
11
  fixedLeftColumns: Column<T, unknown>[];
12
12
  fixedRightColumns: Column<T, unknown>[];
13
13
  }
14
- declare const TableHeadRow: ({ table, headerGroup, columnVirtualizer, }: TableHeadRowProps<any>) => React.JSX.Element;
14
+ declare const TableHeadRow: ({ table, headerGroup, columnVirtualizer, }: TableHeadRowProps<any>) => JSX.Element;
15
15
  export default TableHeadRow;
@@ -1,5 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import type { ColumnDef } from "@tanstack/react-table";
2
- import React from "react";
3
3
  import type { IFormat } from "../../grid-component/type";
4
4
  type RenderFilterProps<RecordType> = {
5
5
  column: ColumnDef<RecordType, unknown>;
@@ -19,5 +19,5 @@ type RenderFilterProps<RecordType> = {
19
19
  prevFilterValue?: string[];
20
20
  triggerVisible?: (visible: boolean) => void;
21
21
  };
22
- export declare const renderFilter: <RecordType>(args: RenderFilterProps<RecordType>) => React.JSX.Element;
22
+ export declare const renderFilter: <RecordType>(args: RenderFilterProps<RecordType>) => JSX.Element;
23
23
  export {};
@@ -1,9 +1,9 @@
1
1
  import type { Row, Table } from "@tanstack/react-table";
2
- import { type Column } from "@tanstack/react-table";
2
+ import type { Column } from "@tanstack/react-table";
3
3
  import type { VirtualItem } from "@tanstack/react-virtual";
4
4
  import type { AnyObject, ColumnsTable, ColumnTable, EditType, FilterItem, FilterOperator, IColumnType, IFormat, RangeState, Sorter, TypeFilter } from "./../../grid-component/type";
5
5
  import type { Key } from "react";
6
- import { type CSSProperties } from "react";
6
+ import type { CSSProperties } from "react";
7
7
  import dayjs from "dayjs";
8
8
  import type { IPositionCell } from "../useContext";
9
9
  import type { ColumnDef } from "@tanstack/react-table";
@@ -335,6 +335,14 @@ $cell-index-focus-bg-Dark: #E6EFFD !default;
335
335
  }
336
336
  }
337
337
 
338
+ .ui-rc-color-picker-trigger {
339
+ width: 100%;
340
+ border-radius: 0;
341
+ .ui-rc-color-picker-color-block {
342
+ width: 100%;
343
+ }
344
+ }
345
+
338
346
  textarea.ant-input {
339
347
  line-height: 1.8;
340
348
  }
@@ -1,7 +1,6 @@
1
1
  import type { ColumnDef, ColumnPinningState, ExpandedState, VisibilityState } from '@tanstack/react-table';
2
2
  import type { ColumnsTable, Sorter, TableProps } from '../../grid-component/type';
3
3
  import type { Dispatch, Key, SetStateAction } from 'react';
4
- import React from 'react';
5
4
  type Props<T> = Omit<TableProps<T>, 'columns'> & {
6
5
  id: string;
7
6
  rowKey: string;
@@ -27,5 +26,5 @@ type Props<T> = Omit<TableProps<T>, 'columns'> & {
27
26
  isDataTree: boolean;
28
27
  mergedSelectedKeys: Key[];
29
28
  };
30
- declare const Grid: <RecordType extends object>(props: Props<RecordType>) => React.JSX.Element;
29
+ declare const Grid: <RecordType extends object>(props: Props<RecordType>) => JSX.Element;
31
30
  export default Grid;
@@ -1,4 +1,4 @@
1
- import { type Table } from "@tanstack/react-table";
1
+ import type { Table } from "@tanstack/react-table";
2
2
  import type { CommandClick, ContextInfo, ContextMenuItem, PaginationConfig } from "../../grid-component/type";
3
3
  import React from "react";
4
4
  import type { Virtualizer } from "@tanstack/react-virtual";
@@ -31,5 +31,5 @@ type Props<T> = {
31
31
  fixedLeftColumns: Column<T, unknown>[];
32
32
  fixedRightColumns: Column<T, unknown>[];
33
33
  };
34
- declare const TableWrapper: <RecordType extends object>(props: Props<RecordType>) => React.JSX.Element;
34
+ declare const TableWrapper: <RecordType extends object>(props: Props<RecordType>) => JSX.Element;
35
35
  export default TableWrapper;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ /// <reference types="react" />
2
2
  type IColumnsGroup = {
3
3
  columns: any[];
4
4
  dataSource?: string[];
@@ -9,5 +9,5 @@ type IColumnsGroup = {
9
9
  defaultGroupColumns?: string[];
10
10
  id: any;
11
11
  };
12
- export declare const ColumnsGroup: (props: IColumnsGroup) => React.JSX.Element;
12
+ export declare const ColumnsGroup: (props: IColumnsGroup) => JSX.Element;
13
13
  export {};
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import 'react-resizable/css/styles.css';
3
3
  import 'dayjs/locale/es';
4
4
  import 'dayjs/locale/vi';
5
5
  import type { TableProps } from '../grid-component/type';
6
6
  export declare const SELECTION_COLUMN: {};
7
- declare const InternalTable: <RecordType extends object>(props: TableProps<RecordType>) => React.JSX.Element;
7
+ declare const InternalTable: <RecordType extends object>(props: TableProps<RecordType>) => JSX.Element;
8
8
  export default InternalTable;
@@ -1,6 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import type { Cell, Table } from "@tanstack/react-table";
2
3
  import type { CommandClick } from "../../grid-component/type";
3
- import React from "react";
4
4
  import type { VirtualItem } from "@tanstack/react-virtual";
5
5
  interface TableBodyCellProps<T> {
6
6
  table: Table<T>;
@@ -10,5 +10,5 @@ interface TableBodyCellProps<T> {
10
10
  virtualRow: VirtualItem;
11
11
  [key: string]: any;
12
12
  }
13
- declare const TableBodyCell: <RecordType extends object>(props: TableBodyCellProps<RecordType>) => React.JSX.Element;
13
+ declare const TableBodyCell: <RecordType extends object>(props: TableBodyCellProps<RecordType>) => JSX.Element;
14
14
  export default TableBodyCell;
@@ -1,6 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import type { Cell, Table } from "@tanstack/react-table";
2
3
  import type { CommandClick } from "../../grid-component/type";
3
- import React from "react";
4
4
  import type { VirtualItem } from "@tanstack/react-virtual";
5
5
  interface TableBodyCellProps<T> {
6
6
  table: Table<T>;
@@ -10,5 +10,5 @@ interface TableBodyCellProps<T> {
10
10
  virtualRow: VirtualItem;
11
11
  [key: string]: any;
12
12
  }
13
- declare const TableBodyCellRowGroup: <RecordType extends object>(props: TableBodyCellProps<RecordType>) => React.JSX.Element;
13
+ declare const TableBodyCellRowGroup: <RecordType extends object>(props: TableBodyCellProps<RecordType>) => JSX.Element;
14
14
  export default TableBodyCellRowGroup;
@@ -1,6 +1,6 @@
1
- import { type Row, type Table } from "@tanstack/react-table";
1
+ /// <reference types="react" />
2
+ import type { Row, Table } from "@tanstack/react-table";
2
3
  import type { CommandClick } from "../../grid-component/type";
3
- import React from "react";
4
4
  interface TableBodyRowProps<T> {
5
5
  tableId: string;
6
6
  table: Table<T>;
@@ -9,5 +9,5 @@ interface TableBodyRowProps<T> {
9
9
  editAble?: boolean;
10
10
  [key: string]: any;
11
11
  }
12
- declare const TableBodyRow: <RecordType extends object>({ tableId, table, row, virtualRow, commandClick, contextMenuItems, onContextMenu, rowheight, editAble, isEditing, isRowEditable, ...rest }: TableBodyRowProps<RecordType>) => React.JSX.Element;
12
+ declare const TableBodyRow: <RecordType extends object>({ tableId, table, row, virtualRow, commandClick, contextMenuItems, onContextMenu, rowheight, editAble, isEditing, isRowEditable, ...rest }: TableBodyRowProps<RecordType>) => JSX.Element;
13
13
  export default TableBodyRow;
@@ -1,7 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import type { Column } from "@tanstack/react-table";
2
- import React from "react";
3
3
  interface TableFooterCellProps<T> {
4
4
  column: Column<T, any>;
5
5
  }
6
- declare const TableFooterCell: <RecordType extends object>({ column }: TableFooterCellProps<RecordType>) => React.JSX.Element;
6
+ declare const TableFooterCell: <RecordType extends object>({ column }: TableFooterCellProps<RecordType>) => JSX.Element;
7
7
  export default TableFooterCell;
@@ -1,6 +1,6 @@
1
+ /// <reference types="react" />
1
2
  import type { Table } from '@tanstack/react-table';
2
- import { type Header } from '@tanstack/react-table';
3
- import React from 'react';
3
+ import type { Header } from '@tanstack/react-table';
4
4
  interface TableHeadCellProps<T> {
5
5
  t?: any;
6
6
  table: Table<T>;
@@ -10,5 +10,5 @@ interface TableHeadCellProps<T> {
10
10
  rowSpan: any;
11
11
  rowIndex: number;
12
12
  }
13
- declare const TableHeadCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) => React.JSX.Element;
13
+ declare const TableHeadCell: <RecordType extends object>(props: TableHeadCellProps<RecordType>) => JSX.Element;
14
14
  export default TableHeadCell;
@@ -1,5 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import type { ColumnDef } from "@tanstack/react-table";
2
- import React from "react";
3
3
  import type { IFormat } from "../../grid-component/type";
4
4
  type RenderFilterProps<RecordType> = {
5
5
  column: ColumnDef<RecordType, unknown>;
@@ -16,5 +16,5 @@ type RenderFilterProps<RecordType> = {
16
16
  dateRangeLocale?: any;
17
17
  doFilter?: (type: boolean) => void;
18
18
  };
19
- export declare const renderFilter: <RecordType>(args: RenderFilterProps<RecordType>) => React.JSX.Element;
19
+ export declare const renderFilter: <RecordType>(args: RenderFilterProps<RecordType>) => JSX.Element;
20
20
  export {};
@@ -1,9 +1,9 @@
1
1
  import type { Row, Table } from "@tanstack/react-table";
2
- import { type Column } from "@tanstack/react-table";
2
+ import type { Column } from "@tanstack/react-table";
3
3
  import type { VirtualItem } from "@tanstack/react-virtual";
4
4
  import type { AnyObject, ColumnsTable, ColumnTable, EditType, FilterOperator, IColumnType, IFormat, RangeState, Sorter, TypeFilter } from "../../grid-component/type";
5
5
  import type { Key } from "react";
6
- import { type CSSProperties } from "react";
6
+ import type { CSSProperties } from "react";
7
7
  import dayjs from "dayjs";
8
8
  import type { ColumnDef } from "@tanstack/react-table";
9
9
  import type { TreeDataNode } from "antd";
@@ -1,7 +1,6 @@
1
1
  import type { ColumnDef, ColumnFiltersState, ColumnPinningState, ColumnSizingInfoState, ColumnSizingState, ExpandedState, Table, VisibilityState } from '@tanstack/react-table';
2
2
  import type { ColumnsTable, Sorter, TableProps } from '../../grid-component/type';
3
3
  import type { Dispatch, Key, SetStateAction } from 'react';
4
- import React from 'react';
5
4
  type Props<T> = Omit<TableProps<T>, 'columns'> & {
6
5
  id: string;
7
6
  table: Table<T>;
@@ -33,5 +32,5 @@ type Props<T> = Omit<TableProps<T>, 'columns'> & {
33
32
  columnFilters: ColumnFiltersState;
34
33
  setColumnOrder?: Dispatch<SetStateAction<string[]>>;
35
34
  };
36
- declare const Grid: <RecordType extends object>(props: Props<RecordType>) => React.JSX.Element;
35
+ declare const Grid: <RecordType extends object>(props: Props<RecordType>) => JSX.Element;
37
36
  export default Grid;
@@ -1,5 +1,4 @@
1
1
  import type { Dispatch, SetStateAction } from 'react';
2
- import React from 'react';
3
2
  import type { ColumnDef, ColumnSizingInfoState, ColumnSizingState, Table } from '@tanstack/react-table';
4
3
  import type { ColumnsTable, TableProps } from '../../grid-component/type';
5
4
  type TableContainerProps<T> = Omit<TableProps<T>, 'columns'> & {
@@ -45,5 +44,5 @@ type TableContainerProps<T> = Omit<TableProps<T>, 'columns'> & {
45
44
  columnSizing: ColumnSizingState;
46
45
  triggerGroupColumns?: (groupedColumns: string[]) => void;
47
46
  };
48
- declare const TableContainer: <RecordType extends object>(props: TableContainerProps<RecordType>) => React.JSX.Element;
47
+ declare const TableContainer: <RecordType extends object>(props: TableContainerProps<RecordType>) => JSX.Element;
49
48
  export default TableContainer;
@@ -24,5 +24,5 @@ type Props<T> = {
24
24
  pagination?: false | PaginationConfig;
25
25
  infiniteScroll?: boolean;
26
26
  };
27
- declare const TableWrapper: <RecordType extends object>(props: Props<RecordType>) => React.JSX.Element;
27
+ declare const TableWrapper: <RecordType extends object>(props: Props<RecordType>) => JSX.Element;
28
28
  export default TableWrapper;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-grid-template",
3
- "version": "1.9.31",
3
+ "version": "1.9.33",
4
4
  "description": "es-grid-template",
5
5
  "keywords": [
6
6
  "react",
@@ -35,82 +35,84 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@alifd/next": "^1.20.28",
38
- "@ant-design/colors": "^8.0.0",
39
- "@ant-design/icons": "^5.5.2",
40
- "@babel/runtime": "^7.11.2",
41
- "@core-rc/rc-select": "^0.1.3",
42
- "@dnd-kit/core": "^6.3.1",
43
- "@dnd-kit/modifiers": "^9.0.0",
44
- "@dnd-kit/sortable": "^10.0.0",
45
- "@faker-js/faker": "^9.5.0",
46
- "@floating-ui/react": "^0.27.5",
38
+ "@ant-design/colors": "8.0.0",
39
+ "@ant-design/icons": "5.5.2",
40
+ "@babel/runtime": "7.11.2",
41
+ "@core-rc/rc-select": "0.1.3",
42
+ "@dnd-kit/core": "6.3.1",
43
+ "@dnd-kit/modifiers": "9.0.0",
44
+ "@dnd-kit/sortable": "10.0.0",
45
+ "@faker-js/faker": "9.5.0",
46
+ "@floating-ui/react": "0.27.5",
47
47
  "@hookform/resolvers": "5.0.1",
48
- "@popperjs/core": "^2.11.8",
49
- "@rc-component/color-picker": "^2.0.1",
48
+ "@popperjs/core": "2.11.8",
49
+ "@rc-component/color-picker": "2.0.1",
50
50
  "@rc-component/father-plugin": "^2.0.1",
51
- "@rc-component/trigger": "^2.0.0",
52
- "@rc-component/util": "^1.0.1",
53
- "@tanstack/react-table": "^8.21.3",
54
- "@tanstack/react-virtual": "^3.13.12",
55
- "@types/react-resizable": "^3.0.8",
56
- "@types/styled-components": "^5.1.34",
57
- "@vitest/coverage-v8": "^2.0.5",
51
+ "@rc-component/trigger": "2.0.0",
52
+ "@rc-component/util": "1.0.1",
53
+ "@tanstack/react-table": "8.21.3",
54
+ "@tanstack/react-virtual": "3.13.12",
55
+ "@types/react-resizable": "3.0.8",
56
+ "@types/styled-components": "5.1.34",
57
+ "@vitest/coverage-v8": "2.0.5",
58
58
  "antd": "5.24.1",
59
- "antd-style": "^3.7.1",
60
- "becoxy-icons": "^2.0.1",
61
- "classnames": "^2.3.1",
62
- "dayjs": "^1.11.13",
63
- "lodash": "^4.17.21",
64
- "moment": "^2.30.1",
65
- "postcss": "^8.4.35",
66
- "rc-checkbox": "^3.5.0",
67
- "rc-dropdown": "^4.2.1",
68
- "rc-field-form": "^2.6.0",
59
+ "antd-style": "3.7.1",
60
+ "becoxy-icons": "2.0.1",
61
+ "classnames": "2.3.1",
62
+ "dayjs": "1.11.13",
63
+ "lodash": "4.17.21",
64
+ "moment": "2.30.1",
65
+ "postcss": "8.4.35",
66
+ "prettier": "^3.8.4",
67
+ "rc-checkbox": "3.5.0",
68
+ "rc-dropdown": "4.2.1",
69
+ "rc-field-form": "2.6.0",
69
70
  "rc-master-ui": "1.1.59",
70
- "rc-select": "^14.16.3",
71
- "rc-tooltip": "^6.3.0",
72
- "rc-tree": "^5.10.1",
73
- "rc-tree-select": "^5.24.5",
74
- "react-full-screen": "^1.1.1",
71
+ "rc-select": "14.16.3",
72
+ "rc-tooltip": "6.3.0",
73
+ "rc-tree": "5.10.1",
74
+ "rc-tree-select": "5.24.5",
75
+ "react-full-screen": "1.1.1",
75
76
  "react-hook-form": "7.54.2",
76
- "react-hot-toast": "^2.5.2",
77
- "react-numeric-component": "^1.0.7",
78
- "react-resizable": "^3.0.5",
79
- "react-tooltip": "^5.28.1",
80
- "react-virtuoso": "^4.17.0",
77
+ "react-hot-toast": "2.5.2",
78
+ "react-numeric-component": "1.0.7",
79
+ "react-resizable": "3.0.5",
80
+ "react-tooltip": "5.28.1",
81
+ "react-virtuoso": "4.17.0",
81
82
  "rimraf": "5.0.10",
82
- "rxjs": "^6.5.4",
83
- "sass": "^1.81.0",
84
- "styled-components": "^6.1.15",
85
- "sweetalert2": "^11.4.14",
86
- "sweetalert2-react-content": "^5.0.0",
87
- "throttle-debounce": "^5.0.2",
88
- "usehooks-ts": "^3.1.1",
89
- "vitest": "^2.0.5",
90
- "xlsx": "^0.18.5",
83
+ "rxjs": "6.5.4",
84
+ "sass": "1.64.0",
85
+ "styled-components": "6.1.15",
86
+ "sweetalert2": "11.4.14",
87
+ "sweetalert2-react-content": "5.0.0",
88
+ "throttle-debounce": "5.0.2",
89
+ "usehooks-ts": "3.1.1",
90
+ "uuid": "^11.1.0",
91
+ "vitest": "2.0.5",
92
+ "xlsx": "0.18.5",
91
93
  "yup": "1.6.1"
92
94
  },
93
95
  "devDependencies": {
94
- "@babel/cli": "^7.26.4",
95
- "@babel/preset-env": "^7.26.9",
96
- "@rc-component/np": "^1.0.3",
97
- "@testing-library/react": "^14.0.0",
98
- "@types/jest": "^29.4.0",
99
- "@types/react": "^18.0.26",
100
- "@types/react-dom": "^18.0.10",
101
- "@types/warning": "^3.0.0",
102
- "cross-env": "^7.0.0",
96
+ "@babel/cli": "7.26.4",
97
+ "@babel/preset-env": "7.26.9",
98
+ "@rc-component/np": "1.0.3",
99
+ "@testing-library/react": "14.0.0",
100
+ "@types/jest": "29.4.0",
101
+ "@types/react": "18.0.26",
102
+ "@types/react-dom": "18.0.10",
103
+ "@types/warning": "3.0.0",
104
+ "cross-env": "7.0.0",
103
105
  "dumi": "^2.2.13",
104
106
  "eslint": "^8.56.0",
105
107
  "eslint-plugin-unicorn": "^55.0.0",
106
108
  "father": "^4.0.0",
107
- "gh-pages": "^3.1.0",
108
- "less": "^4.1.1",
109
- "np": "^7.1.0",
110
- "rc-test": "^7.0.9",
111
- "react": "^18.2.0",
112
- "react-dom": "^18.2.0",
113
- "typescript": "^4.0.5"
109
+ "gh-pages": "3.1.0",
110
+ "less": "4.1.1",
111
+ "np": "7.1.0",
112
+ "rc-test": "7.0.9",
113
+ "react": "18.2.0",
114
+ "react-dom": "18.2.0",
115
+ "typescript": "4.0.5"
114
116
  },
115
117
  "peerDependencies": {
116
118
  "react": ">=16.9.0",