es-grid-template 1.9.62 → 1.9.64

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 (47) hide show
  1. package/es/ali-table/Grid.js +6 -3
  2. package/es/ali-table/InternalTable.js +500 -49
  3. package/es/ali-table/base-table/calculations.js +1 -1
  4. package/es/ali-table/base-table/cell/EditCell.js +14 -6
  5. package/es/ali-table/base-table/renderFilter.js +1 -1
  6. package/es/ali-table/base-table/styles.js +1 -1
  7. package/es/ali-table/interfaces.d.ts +2 -2
  8. package/es/ali-table/pipeline/features/columnCustom.d.ts +5 -2
  9. package/es/ali-table/pipeline/features/columnCustom.js +172 -102
  10. package/es/ali-table/utils/constants.d.ts +1 -0
  11. package/es/ali-table/utils/constants.js +1 -0
  12. package/es/ali-table/utils/convertColumnsChoose.d.ts +2 -2
  13. package/es/ali-table/utils/convertColumnsChoose.js +1 -2
  14. package/es/ali-table/utils/utility.d.ts +16 -1
  15. package/es/ali-table/utils/utility.js +442 -2
  16. package/es/grid-component/type.d.ts +2 -2
  17. package/es/table-component/TableContainerEdit.js +148 -98
  18. package/es/table-component/body/EditableCell.js +9 -5
  19. package/es/table-component/body/TableBodyCellEdit.js +14 -8
  20. package/es/table-component/header/renderFilter.js +1 -1
  21. package/es/table-component/hook/utils.d.ts +1 -1
  22. package/es/table-component/hook/utils.js +2 -6
  23. package/es/table-component/useContext.d.ts +1 -1
  24. package/lib/ali-table/Grid.js +6 -3
  25. package/lib/ali-table/InternalTable.js +491 -45
  26. package/lib/ali-table/base-table/calculations.js +1 -1
  27. package/lib/ali-table/base-table/cell/EditCell.js +14 -6
  28. package/lib/ali-table/base-table/renderFilter.js +1 -1
  29. package/lib/ali-table/base-table/styles.js +1 -1
  30. package/lib/ali-table/interfaces.d.ts +2 -2
  31. package/lib/ali-table/pipeline/features/columnCustom.d.ts +5 -2
  32. package/lib/ali-table/pipeline/features/columnCustom.js +166 -100
  33. package/lib/ali-table/utils/constants.d.ts +1 -0
  34. package/lib/ali-table/utils/constants.js +2 -1
  35. package/lib/ali-table/utils/convertColumnsChoose.d.ts +2 -2
  36. package/lib/ali-table/utils/convertColumnsChoose.js +1 -2
  37. package/lib/ali-table/utils/utility.d.ts +16 -1
  38. package/lib/ali-table/utils/utility.js +454 -2
  39. package/lib/grid-component/type.d.ts +2 -2
  40. package/lib/table-component/TableContainerEdit.js +148 -98
  41. package/lib/table-component/body/EditableCell.js +9 -5
  42. package/lib/table-component/body/TableBodyCellEdit.js +11 -7
  43. package/lib/table-component/header/renderFilter.js +1 -1
  44. package/lib/table-component/hook/utils.d.ts +1 -1
  45. package/lib/table-component/hook/utils.js +2 -6
  46. package/lib/table-component/useContext.d.ts +1 -1
  47. package/package.json +1 -1
@@ -18,6 +18,7 @@ import { TableContext } from "./useContext";
18
18
  import { StyleTableContainer } from "./base-table/styles";
19
19
  import { ColumnsConfig } from "../table-component/ColumnsConfig";
20
20
  import { convertFlatColumn1 } from "../table-component/hook/utils";
21
+ import { getVisibleColumnFields } from "./utils/utility";
21
22
  // import { StyleTableContainer } from "./base-table/styles";
22
23
 
23
24
  const Grid = /*#__PURE__*/React.forwardRef((props, ref) => {
@@ -55,7 +56,7 @@ const Grid = /*#__PURE__*/React.forwardRef((props, ref) => {
55
56
  originColumns,
56
57
  // columns,
57
58
  groupColumns,
58
- // setVisibleKeys,
59
+ setVisibleKeys,
59
60
  footerDataSource,
60
61
  loading,
61
62
  useVirtual,
@@ -157,12 +158,14 @@ const Grid = /*#__PURE__*/React.forwardRef((props, ref) => {
157
158
  };
158
159
  }, []);
159
160
  const triggerChangeColumns = (cols, keys, type) => {
161
+ const abc = getVisibleColumnFields(cols);
162
+ setVisibleKeys(abc);
160
163
  if (type === 'cellClick') {
161
164
 
162
165
  // setColumns(cols)
163
166
  } else {
164
167
  // setColumns(cols)
165
- pipeline.columns(cols);
168
+ // pipeline.columns(cols)
166
169
 
167
170
  // const aa = flatColumns2(columns).map((it) => it.field)
168
171
 
@@ -368,7 +371,7 @@ const Grid = /*#__PURE__*/React.forwardRef((props, ref) => {
368
371
  theme: theme,
369
372
  dataRowIds: dataRowIds,
370
373
  footerDataSource: footerDataSource
371
- })), (bottom || pagination && !infiniteScroll) && /*#__PURE__*/React.createElement("div", {
374
+ })), (bottom || toolbarItemsBottom && toolbarItemsBottom.length > 0 || pagination && !infiniteScroll) && /*#__PURE__*/React.createElement("div", {
372
375
  className: classNames(`${prefix}-grid-bottom`, {})
373
376
  }, bottom, toolbarItemsBottom && toolbarItemsBottom.length > 0 && /*#__PURE__*/React.createElement("div", {
374
377
  className: classNames('ui-rc-toolbar-bottom', {