es-grid-template 1.8.24 → 1.8.26

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 (37) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +1 -1
  3. package/assets/index.css +3 -3
  4. package/es/grid-component/ContextMenu.js +1 -1
  5. package/es/grid-component/hooks/constant.js +6 -6
  6. package/es/grid-component/hooks/utils.d.ts +1 -1
  7. package/es/grid-component/styles.scss +1437 -1437
  8. package/es/table-component/TableContainer.js +0 -2
  9. package/es/table-component/TableContainerEdit.js +1 -1
  10. package/es/table-component/body/TableBodyCell.js +54 -11
  11. package/es/table-component/body/TableBodyRow.js +2 -2
  12. package/es/table-component/header/TableHeadCell2.js +1 -1
  13. package/es/table-component/hook/constant.js +6 -6
  14. package/es/table-component/hook/useColumns.js +5 -2
  15. package/es/table-component/hook/utils.d.ts +1 -1
  16. package/es/table-component/hook/utils.js +42 -7
  17. package/es/table-component/style.scss +1220 -1220
  18. package/es/table-component/table/Grid.js +4 -0
  19. package/es/table-component/type.d.ts +2 -0
  20. package/lib/grid-component/ContextMenu.js +3 -3
  21. package/lib/grid-component/hooks/constant.js +6 -6
  22. package/lib/grid-component/hooks/utils.d.ts +1 -1
  23. package/lib/grid-component/styles.scss +1437 -1437
  24. package/lib/table-component/TableContainer.js +0 -2
  25. package/lib/table-component/TableContainerEdit.js +1 -1
  26. package/lib/table-component/body/TableBodyCell.js +54 -11
  27. package/lib/table-component/body/TableBodyRow.js +2 -2
  28. package/lib/table-component/header/TableHeadCell2.js +1 -1
  29. package/lib/table-component/hook/constant.js +6 -6
  30. package/lib/table-component/hook/useColumns.js +5 -2
  31. package/lib/table-component/hook/utils.d.ts +1 -1
  32. package/lib/table-component/hook/utils.js +42 -7
  33. package/lib/table-component/style.scss +1220 -1220
  34. package/lib/table-component/table/Grid.js +4 -0
  35. package/lib/table-component/type.d.ts +2 -0
  36. package/package.json +116 -116
  37. package/CHANGELOG.md +0 -6
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 taonv
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 taonv
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1 +1 @@
1
- # es-grid-template
1
+ # es-grid-template
package/assets/index.css CHANGED
@@ -631,9 +631,6 @@
631
631
  margin: 0;
632
632
  }
633
633
 
634
- .ui-rc-table-wrapper .ui-rc-table .ui-rc-pagination {
635
- border-bottom: 1px solid #e0e0e0;
636
- }
637
634
  .ui-rc-table-wrapper .ui-rc-table .ui-rc-pagination::before {
638
635
  content: "";
639
636
  position: absolute;
@@ -659,6 +656,9 @@
659
656
  .ui-rc-table-wrapper .ui-rc-table .ui-rc-pagination.top-pagination .ui-rc-pagination-total-text {
660
657
  margin-left: auto;
661
658
  }
659
+ .ui-rc-table-wrapper .ui-rc-table .ui-rc-pagination {
660
+ border-bottom: 1px solid #e0e0e0;
661
+ }
662
662
 
663
663
  .ui-rc-pagination .ui-rc-pagination-total-text {
664
664
  white-space: nowrap;
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  // import type { MenuProps } from "antd";
3
- import { Dropdown, Menu } from "antd";
3
+ import { Dropdown, Menu } from "rc-master-ui";
4
4
  export const findItemByKey = (array, key, value) => {
5
5
  for (let i = 0; i < array.length; i++) {
6
6
  const item = array[i];
@@ -213,16 +213,16 @@ export const optionFontSize = [{
213
213
  label: '48'
214
214
  }];
215
215
 
216
- /**
217
- * Sort order for BaseTable
216
+ /**
217
+ * Sort order for BaseTable
218
218
  */
219
219
  const SortOrder = {
220
- /**
221
- * Sort data in ascending order
220
+ /**
221
+ * Sort data in ascending order
222
222
  */
223
223
  ascend: 'Ascending',
224
- /**
225
- * Sort data in descending order
224
+ /**
225
+ * Sort data in descending order
226
226
  */
227
227
  descend: 'Descending'
228
228
  };
@@ -53,7 +53,7 @@ export declare const getTemplate: (template: any, column?: ColumnTable) => React
53
53
  export declare const totalFixedWidth: <T>(columns: ColumnsTable<T>, type: 'left' | 'right', selectionSettings?: SelectionSettings) => number;
54
54
  export declare const isObjEmpty: (obj: any) => boolean;
55
55
  export declare const getColumnsVisible: <T>(columns: ColumnsTable<T>, index: number) => ColumnTable<T>[];
56
- export declare const updateData: <Record_1 = AnyObject>(initData: Record_1[], rows: Record_1[], key: keyof Record_1) => Record_1[];
56
+ export declare const updateData: <Record = AnyObject>(initData: Record[], rows: Record[], key: keyof Record) => Record[];
57
57
  export declare const parseBooleanToValue: (value: boolean, type: 'boolean' | 'number') => number | boolean;
58
58
  export declare const genPresets: (presets?: import("@ant-design/colors").PalettesProps) => import("antd/es/color-picker/interface").PresetsItem[];
59
59
  export declare function findAllChildrenKeys<RecordType>(data: readonly RecordType[], getRowKey: GetRowKey<RecordType>, childrenColumnName: string): Key[];