es-grid-template 1.8.60 → 1.8.62

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.
@@ -13,7 +13,7 @@ import 'dayjs/locale/vi';
13
13
  // import GridEdit from "./table/GridEdit"
14
14
  // import InfiniteTable from "./table/InfiniteTable";
15
15
 
16
- import Grid from "./table/Grid";
16
+ // import Grid from "./table/Grid"
17
17
  import en from "rc-master-ui/es/date-picker/locale/en_US";
18
18
  import vi from "rc-master-ui/es/date-picker/locale/vi_VN";
19
19
  import enDr from "rc-master-ui/es/locales/en_US";
@@ -33,7 +33,7 @@ import classNames from "classnames";
33
33
  import HeaderContent from "./hooks/content/HeaderContent";
34
34
  import { ArrowDown, ArrowUp, FilterFill, SortCancel } from "becoxy-icons";
35
35
  import { Select } from "rc-master-ui";
36
- import { Button, Space } from "antd";
36
+ import { Button, Space, Modal } from "antd";
37
37
  import { SearchOutlined } from "@ant-design/icons";
38
38
  import { restrictToHorizontalAxis } from "@dnd-kit/modifiers";
39
39
  import { closestCenter, DndContext, DragOverlay, PointerSensor, useSensor, useSensors } from "@dnd-kit/core";
@@ -42,7 +42,6 @@ import { arrayMove, horizontalListSortingStrategy, SortableContext, useSortable
42
42
  import { Resizable } from "react-resizable";
43
43
  import { faker } from "@faker-js/faker";
44
44
  import useMergedState from "rc-util/es/hooks/useMergedState";
45
- import Modal from 'antd/es/modal/Modal';
46
45
  dayjs.extend(customParseFormat);
47
46
  const MySwal = withReactContent(Swal);
48
47
  const ASCEND = 'ascend';
@@ -61,9 +60,7 @@ const dragActiveStyle = (dragState, id) => {
61
60
  backgroundColor: '#c0c0c0',
62
61
  opacity: 0.3
63
62
  };
64
- }
65
- // dragover dashed style
66
- else if (over && id === over && active !== over) {
63
+ } else if (over && id === over && active !== over) {
67
64
  style = direction === 'right' ? {
68
65
  borderRight: '1px dashed gray'
69
66
  } : {
@@ -88,6 +85,7 @@ const ResizableTitle = props => {
88
85
 
89
86
  const style = {
90
87
  ...props.style,
88
+ borderBottom: '1px solid #e0e0e0',
91
89
  // cursor: 'move',
92
90
  // ...(isDragging ? { position: 'relative', zIndex: 9999, userSelect: 'none' } : {}),
93
91
  ...dragActiveStyle(dragState, props.id)
@@ -116,15 +114,12 @@ const ResizableTitle = props => {
116
114
  })))
117
115
  );
118
116
  };
119
- const TableBodyCell = props => {
120
- const dragState = useContext(DragIndexContext);
121
- return /*#__PURE__*/React.createElement("div", _extends({}, props, {
122
- style: {
123
- ...props.style,
124
- ...dragActiveStyle(dragState, props.id)
125
- }
126
- }));
127
- };
117
+
118
+ // const TableBodyCell = (props: any) => {
119
+ // const dragState = useContext<DragIndexState>(DragIndexContext)
120
+ // return <div {...props} style={{ ...props.style, ...dragActiveStyle(dragState, props.id) }} />
121
+ // }
122
+
128
123
  const SortableHeaderCell = ({
129
124
  children,
130
125
  columnKey
@@ -161,12 +156,11 @@ const InternalTable = props => {
161
156
  lang,
162
157
  locale,
163
158
  dataSource,
164
- allowResizing,
165
159
  dataSourceFilter: propDataSourceFilter,
166
160
  // onFilterClick,
167
161
  // onFilter,
168
162
  editAble,
169
- rowKey: propRowKey,
163
+ // rowKey: propRowKey,
170
164
  format,
171
165
  onDataChange,
172
166
  sortMultiple,
@@ -174,7 +168,7 @@ const InternalTable = props => {
174
168
  // @ts-ignore
175
169
  onCellPaste,
176
170
  clickHeaderToSort = true,
177
- components,
171
+ // components,
178
172
  onChooseColumns,
179
173
  groupAble,
180
174
  groupSetting,
@@ -184,14 +178,17 @@ const InternalTable = props => {
184
178
  pagination,
185
179
  height: propsHeight,
186
180
  summary,
187
- infiniteScroll,
181
+ // infiniteScroll,
188
182
  wrapSettings,
189
183
  onFilter,
190
184
  onSorter,
191
- defaultSorter,
185
+ // defaultSorter,
192
186
  toolbarItems,
187
+ allowSortering,
188
+ allowFiltering,
193
189
  ...rest
194
190
  } = props;
191
+ const theadRef = React.useRef(null);
195
192
  const id = React.useMemo(() => {
196
193
  return tableId ?? faker.string.alpha(20);
197
194
  // return tableId ?? newGuid()
@@ -266,15 +263,14 @@ const InternalTable = props => {
266
263
  if (totalHeight) {
267
264
  const table = document.querySelector(`#${id}`);
268
265
  const title = table?.querySelector(`.ui-rc-table-title`);
269
- const header = table?.querySelector(`.ui-rc-table-header`);
270
266
  const paginationE = table?.querySelector(`.ui-rc-pagination`);
271
267
  const toolbar = table?.querySelector(`.ui-rc-toolbar-bottom`);
272
268
  const summaryE = table?.querySelector(`.ui-rc-table-summary`);
273
- const scrollbar = table?.querySelector(`.ui-rc-table-tbody-virtual-scrollbar.ui-rc-table-tbody-virtual-scrollbar-horizontal`);
274
- const hhh = (totalHeight ?? 0) - (title ? title.offsetHeight : 0) - (header ? header.offsetHeight : 0) - (paginationE ? paginationE.offsetHeight : 0) - (toolbar ? toolbar.offsetHeight : 0) - (summaryE ? summaryE.offsetHeight : 0) - (scrollbar ? scrollbar.offsetHeight : 0);
269
+ const tableScrollRight = table?.querySelector(`.ui-rc-table-ping-right`);
270
+ const hhh = (totalHeight ?? 0) - (title ? title.offsetHeight : 0) - (theadRef ? theadRef.current.clientHeight : 0) - (paginationE ? paginationE.offsetHeight : 0) - (toolbar ? toolbar.offsetHeight : 0) - (summaryE ? 40 : 0) - (tableScrollRight ? 10 : 0);
275
271
  setHeight(hhh > 0 ? hhh : 0);
276
272
  }
277
- }, [id, propsHeight, columns, editAble]);
273
+ }, [id, propsHeight, summary, theadRef, columns]);
278
274
  React.useEffect(() => {
279
275
  // const totalHeight = isFullScreen ? windowSize.innerHeight - 50 : propsHeight
280
276
  const totalHeight = windowSize.innerHeight - 60;
@@ -497,17 +493,17 @@ const InternalTable = props => {
497
493
  }
498
494
  return {
499
495
  ...transformedColumn,
500
- ...(transformedColumn.allowFiltering === false ? {} : {
496
+ ...(transformedColumn.allowFiltering === false || allowFiltering === false ? {} : {
501
497
  ...getColumnSearchProps(column)
502
498
  }),
503
- // sorter: (column.sorter === false ? undefined : {
504
- // // @ts-ignore
505
- // compare: (a: any, b: any) => onSorter ? a : a[column.field] - b[column.field],
506
- // multiple: sortMultiple ? colIndex : undefined
507
-
508
- // }),
499
+ sorter: column.sorter === false || allowSortering === false ? undefined : {
500
+ // @ts-ignore
501
+ compare: (a, b) => onSorter ? a : a[column.field] - b[column.field],
502
+ multiple: sortMultiple ? colIndex : undefined
503
+ },
509
504
  // @ts-ignore
510
- sorter: (a, b) => a[column.field] - b[column.field],
505
+ // sorter: (a, b) => a[column.field] - b[column.field],
506
+
511
507
  sortIcon: args => {
512
508
  const {
513
509
  sortOrder
@@ -560,7 +556,7 @@ const InternalTable = props => {
560
556
  }) : column.tooltipDescription : column.template && typeof column.template !== 'function' ? column.template : data[column.field ?? ''];
561
557
  return {
562
558
  id: `${column.field}`,
563
- colSpan: groupColumns && data.children && column.field === firstNonGroupColumn?.field ? 2 : groupColumns && data.children && nonGroupColumns[1].field === column.field ? 0 : 1,
559
+ colSpan: groupColumns && data.children && column.field === firstNonGroupColumn?.field ? 3 : groupColumns && data.children && nonGroupColumns[1].field === column.field ? 0 : 1,
564
560
  // 'z-index': data?.children && column.field === firstNonGroupColumn?.field ? 11 : undefined,
565
561
  ...transformedColumn?.onCell?.(data, index),
566
562
  className: classNames(transformedColumn?.onCell?.(data, index).className ?? '', {
@@ -931,6 +927,14 @@ const InternalTable = props => {
931
927
  const handleFullScreen = () => {
932
928
  setIsFullScreen(!isFullScreen);
933
929
  };
930
+ const CustomThead = theadProps => {
931
+ const {
932
+ children
933
+ } = theadProps;
934
+ return /*#__PURE__*/React.createElement("thead", {
935
+ ref: theadRef
936
+ }, children);
937
+ };
934
938
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(DndContext, {
935
939
  sensors: sensors,
936
940
  modifiers: [restrictToHorizontalAxis],
@@ -978,13 +982,14 @@ const InternalTable = props => {
978
982
  } // scroll height auto, không quá 600
979
983
  ,
980
984
  height: propsHeight,
981
- scrollHeight: scrollHeight
982
- // components={{
983
- // header: { cell: ResizableTitle },
984
- // body: { cell: TableBodyCell }
985
- // }}
986
- ,
987
-
985
+ scrollHeight: scrollHeight,
986
+ toolbarItems: toolbarItems,
987
+ components: {
988
+ header: {
989
+ cell: ResizableTitle,
990
+ wrapper: CustomThead
991
+ }
992
+ },
988
993
  onFilter: val => {
989
994
  handleOnFilter(val);
990
995
  },
@@ -1045,7 +1050,7 @@ const InternalTable = props => {
1045
1050
  strategy: horizontalListSortingStrategy
1046
1051
  }, /*#__PURE__*/React.createElement(DragIndexContext.Provider, {
1047
1052
  value: dragIndex
1048
- }, /*#__PURE__*/React.createElement(Grid, _extends({}, rest, {
1053
+ }, /*#__PURE__*/React.createElement(Group, _extends({}, rest, {
1049
1054
  t: t,
1050
1055
  id: faker.string.alpha(20),
1051
1056
  locale: locale,
@@ -1087,10 +1092,8 @@ const InternalTable = props => {
1087
1092
  components: {
1088
1093
  header: {
1089
1094
  cell: ResizableTitle
1090
- },
1091
- body: {
1092
- cell: TableBodyCell
1093
1095
  }
1096
+ // body: { cell: TableBodyCell }
1094
1097
  }
1095
1098
  // setTooltipContent={setTooltipContent}
1096
1099
  ,
@@ -15,7 +15,5 @@ interface UseColumnsConfig<RecordType> {
15
15
  rowKey?: any;
16
16
  onMouseHover?: any;
17
17
  }
18
- declare const useColumns: <RecordType extends AnyObject = AnyObject>(config: UseColumnsConfig<RecordType>) => readonly [
19
- any
20
- ];
18
+ declare const useColumns: <RecordType extends AnyObject = AnyObject>(config: UseColumnsConfig<RecordType>) => readonly [any];
21
19
  export default useColumns;
@@ -155,6 +155,7 @@ export function convertToTanStackColumns({
155
155
  enableColumnFilter: allowFiltering !== false
156
156
  };
157
157
  if (children) {
158
+ newCol.size = undefined;
158
159
  // @ts-ignore
159
160
  newCol.columns = convertToTanStackColumns({
160
161
  columns: children,
@@ -14,7 +14,6 @@ var _server = _interopRequireDefault(require("react-dom/server"));
14
14
  var _dayjs = _interopRequireDefault(require("dayjs"));
15
15
  require("dayjs/locale/es");
16
16
  require("dayjs/locale/vi");
17
- var _Grid = _interopRequireDefault(require("./table/Grid"));
18
17
  var _en_US = _interopRequireDefault(require("rc-master-ui/es/date-picker/locale/en_US"));
19
18
  var _vi_VN = _interopRequireDefault(require("rc-master-ui/es/date-picker/locale/vi_VN"));
20
19
  var _en_US2 = _interopRequireDefault(require("rc-master-ui/es/locales/en_US"));
@@ -37,12 +36,13 @@ var _sortable = require("@dnd-kit/sortable");
37
36
  var _reactResizable = require("react-resizable");
38
37
  var _faker = require("@faker-js/faker");
39
38
  var _useMergedState = _interopRequireDefault(require("rc-util/lib/hooks/useMergedState"));
40
- var _Modal = _interopRequireDefault(require("antd/es/modal/Modal"));
41
39
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
42
40
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
43
41
  // import GridEdit from "./table/GridEdit"
44
42
  // import InfiniteTable from "./table/InfiniteTable";
45
43
 
44
+ // import Grid from "./table/Grid"
45
+
46
46
  // import useColumns from "./hooks/useColumns";
47
47
 
48
48
  // import 'rc-master-ui/es/date-range-picker/styles/index.less'
@@ -68,9 +68,7 @@ const dragActiveStyle = (dragState, id) => {
68
68
  backgroundColor: '#c0c0c0',
69
69
  opacity: 0.3
70
70
  };
71
- }
72
- // dragover dashed style
73
- else if (over && id === over && active !== over) {
71
+ } else if (over && id === over && active !== over) {
74
72
  style = direction === 'right' ? {
75
73
  borderRight: '1px dashed gray'
76
74
  } : {
@@ -95,6 +93,7 @@ const ResizableTitle = props => {
95
93
 
96
94
  const style = {
97
95
  ...props.style,
96
+ borderBottom: '1px solid #e0e0e0',
98
97
  // cursor: 'move',
99
98
  // ...(isDragging ? { position: 'relative', zIndex: 9999, userSelect: 'none' } : {}),
100
99
  ...dragActiveStyle(dragState, props.id)
@@ -123,15 +122,12 @@ const ResizableTitle = props => {
123
122
  })))
124
123
  );
125
124
  };
126
- const TableBodyCell = props => {
127
- const dragState = (0, _react.useContext)(DragIndexContext);
128
- return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, props, {
129
- style: {
130
- ...props.style,
131
- ...dragActiveStyle(dragState, props.id)
132
- }
133
- }));
134
- };
125
+
126
+ // const TableBodyCell = (props: any) => {
127
+ // const dragState = useContext<DragIndexState>(DragIndexContext)
128
+ // return <div {...props} style={{ ...props.style, ...dragActiveStyle(dragState, props.id) }} />
129
+ // }
130
+
135
131
  const SortableHeaderCell = ({
136
132
  children,
137
133
  columnKey
@@ -168,12 +164,11 @@ const InternalTable = props => {
168
164
  lang,
169
165
  locale,
170
166
  dataSource,
171
- allowResizing,
172
167
  dataSourceFilter: propDataSourceFilter,
173
168
  // onFilterClick,
174
169
  // onFilter,
175
170
  editAble,
176
- rowKey: propRowKey,
171
+ // rowKey: propRowKey,
177
172
  format,
178
173
  onDataChange,
179
174
  sortMultiple,
@@ -181,7 +176,7 @@ const InternalTable = props => {
181
176
  // @ts-ignore
182
177
  onCellPaste,
183
178
  clickHeaderToSort = true,
184
- components,
179
+ // components,
185
180
  onChooseColumns,
186
181
  groupAble,
187
182
  groupSetting,
@@ -191,14 +186,17 @@ const InternalTable = props => {
191
186
  pagination,
192
187
  height: propsHeight,
193
188
  summary,
194
- infiniteScroll,
189
+ // infiniteScroll,
195
190
  wrapSettings,
196
191
  onFilter,
197
192
  onSorter,
198
- defaultSorter,
193
+ // defaultSorter,
199
194
  toolbarItems,
195
+ allowSortering,
196
+ allowFiltering,
200
197
  ...rest
201
198
  } = props;
199
+ const theadRef = _react.default.useRef(null);
202
200
  const id = _react.default.useMemo(() => {
203
201
  return tableId ?? _faker.faker.string.alpha(20);
204
202
  // return tableId ?? newGuid()
@@ -273,15 +271,14 @@ const InternalTable = props => {
273
271
  if (totalHeight) {
274
272
  const table = document.querySelector(`#${id}`);
275
273
  const title = table?.querySelector(`.ui-rc-table-title`);
276
- const header = table?.querySelector(`.ui-rc-table-header`);
277
274
  const paginationE = table?.querySelector(`.ui-rc-pagination`);
278
275
  const toolbar = table?.querySelector(`.ui-rc-toolbar-bottom`);
279
276
  const summaryE = table?.querySelector(`.ui-rc-table-summary`);
280
- const scrollbar = table?.querySelector(`.ui-rc-table-tbody-virtual-scrollbar.ui-rc-table-tbody-virtual-scrollbar-horizontal`);
281
- const hhh = (totalHeight ?? 0) - (title ? title.offsetHeight : 0) - (header ? header.offsetHeight : 0) - (paginationE ? paginationE.offsetHeight : 0) - (toolbar ? toolbar.offsetHeight : 0) - (summaryE ? summaryE.offsetHeight : 0) - (scrollbar ? scrollbar.offsetHeight : 0);
277
+ const tableScrollRight = table?.querySelector(`.ui-rc-table-ping-right`);
278
+ const hhh = (totalHeight ?? 0) - (title ? title.offsetHeight : 0) - (theadRef ? theadRef.current.clientHeight : 0) - (paginationE ? paginationE.offsetHeight : 0) - (toolbar ? toolbar.offsetHeight : 0) - (summaryE ? 40 : 0) - (tableScrollRight ? 10 : 0);
282
279
  setHeight(hhh > 0 ? hhh : 0);
283
280
  }
284
- }, [id, propsHeight, columns, editAble]);
281
+ }, [id, propsHeight, summary, theadRef, columns]);
285
282
  _react.default.useEffect(() => {
286
283
  // const totalHeight = isFullScreen ? windowSize.innerHeight - 50 : propsHeight
287
284
  const totalHeight = windowSize.innerHeight - 60;
@@ -504,17 +501,17 @@ const InternalTable = props => {
504
501
  }
505
502
  return {
506
503
  ...transformedColumn,
507
- ...(transformedColumn.allowFiltering === false ? {} : {
504
+ ...(transformedColumn.allowFiltering === false || allowFiltering === false ? {} : {
508
505
  ...getColumnSearchProps(column)
509
506
  }),
510
- // sorter: (column.sorter === false ? undefined : {
511
- // // @ts-ignore
512
- // compare: (a: any, b: any) => onSorter ? a : a[column.field] - b[column.field],
513
- // multiple: sortMultiple ? colIndex : undefined
514
-
515
- // }),
507
+ sorter: column.sorter === false || allowSortering === false ? undefined : {
508
+ // @ts-ignore
509
+ compare: (a, b) => onSorter ? a : a[column.field] - b[column.field],
510
+ multiple: sortMultiple ? colIndex : undefined
511
+ },
516
512
  // @ts-ignore
517
- sorter: (a, b) => a[column.field] - b[column.field],
513
+ // sorter: (a, b) => a[column.field] - b[column.field],
514
+
518
515
  sortIcon: args => {
519
516
  const {
520
517
  sortOrder
@@ -567,7 +564,7 @@ const InternalTable = props => {
567
564
  }) : column.tooltipDescription : column.template && typeof column.template !== 'function' ? column.template : data[column.field ?? ''];
568
565
  return {
569
566
  id: `${column.field}`,
570
- colSpan: groupColumns && data.children && column.field === firstNonGroupColumn?.field ? 2 : groupColumns && data.children && nonGroupColumns[1].field === column.field ? 0 : 1,
567
+ colSpan: groupColumns && data.children && column.field === firstNonGroupColumn?.field ? 3 : groupColumns && data.children && nonGroupColumns[1].field === column.field ? 0 : 1,
571
568
  // 'z-index': data?.children && column.field === firstNonGroupColumn?.field ? 11 : undefined,
572
569
  ...transformedColumn?.onCell?.(data, index),
573
570
  className: (0, _classnames.default)(transformedColumn?.onCell?.(data, index).className ?? '', {
@@ -938,6 +935,14 @@ const InternalTable = props => {
938
935
  const handleFullScreen = () => {
939
936
  setIsFullScreen(!isFullScreen);
940
937
  };
938
+ const CustomThead = theadProps => {
939
+ const {
940
+ children
941
+ } = theadProps;
942
+ return /*#__PURE__*/_react.default.createElement("thead", {
943
+ ref: theadRef
944
+ }, children);
945
+ };
941
946
  return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_core.DndContext, {
942
947
  sensors: sensors,
943
948
  modifiers: [_modifiers.restrictToHorizontalAxis],
@@ -985,13 +990,14 @@ const InternalTable = props => {
985
990
  } // scroll height auto, không quá 600
986
991
  ,
987
992
  height: propsHeight,
988
- scrollHeight: scrollHeight
989
- // components={{
990
- // header: { cell: ResizableTitle },
991
- // body: { cell: TableBodyCell }
992
- // }}
993
- ,
994
-
993
+ scrollHeight: scrollHeight,
994
+ toolbarItems: toolbarItems,
995
+ components: {
996
+ header: {
997
+ cell: ResizableTitle,
998
+ wrapper: CustomThead
999
+ }
1000
+ },
995
1001
  onFilter: val => {
996
1002
  handleOnFilter(val);
997
1003
  },
@@ -1013,7 +1019,7 @@ const InternalTable = props => {
1013
1019
  borderRadius: 6,
1014
1020
  fontWeight: 500
1015
1021
  }
1016
- }, columns[columns.findIndex(i => i.field === dragIndex.active)]?.headerText))), /*#__PURE__*/_react.default.createElement(_Modal.default, {
1022
+ }, columns[columns.findIndex(i => i.field === dragIndex.active)]?.headerText))), /*#__PURE__*/_react.default.createElement(_antd.Modal, {
1017
1023
  open: isFullScreen,
1018
1024
  footer: null,
1019
1025
  centered: true,
@@ -1052,7 +1058,7 @@ const InternalTable = props => {
1052
1058
  strategy: _sortable.horizontalListSortingStrategy
1053
1059
  }, /*#__PURE__*/_react.default.createElement(DragIndexContext.Provider, {
1054
1060
  value: dragIndex
1055
- }, /*#__PURE__*/_react.default.createElement(_Grid.default, (0, _extends2.default)({}, rest, {
1061
+ }, /*#__PURE__*/_react.default.createElement(_Group.default, (0, _extends2.default)({}, rest, {
1056
1062
  t: t,
1057
1063
  id: _faker.faker.string.alpha(20),
1058
1064
  locale: locale,
@@ -1094,10 +1100,8 @@ const InternalTable = props => {
1094
1100
  components: {
1095
1101
  header: {
1096
1102
  cell: ResizableTitle
1097
- },
1098
- body: {
1099
- cell: TableBodyCell
1100
1103
  }
1104
+ // body: { cell: TableBodyCell }
1101
1105
  }
1102
1106
  // setTooltipContent={setTooltipContent}
1103
1107
  ,
@@ -166,6 +166,7 @@ function convertToTanStackColumns({
166
166
  enableColumnFilter: allowFiltering !== false
167
167
  };
168
168
  if (children) {
169
+ newCol.size = undefined;
169
170
  // @ts-ignore
170
171
  newCol.columns = convertToTanStackColumns({
171
172
  columns: children,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-grid-template",
3
- "version": "1.8.60",
3
+ "version": "1.8.62",
4
4
  "description": "es-grid-template",
5
5
  "keywords": [
6
6
  "react",