es-grid-template 1.7.2 → 1.7.21

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.
@@ -2,6 +2,7 @@
2
2
  interface GridProps {
3
3
  $heightTable?: number;
4
4
  $heightScroll?: number;
5
+ $isFullScreen?: boolean;
5
6
  }
6
7
  export declare const GridStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, GridProps>> & string;
7
8
  export {};
@@ -2,4 +2,4 @@ import styled from "styled-components";
2
2
  export const GridStyle = styled.div.withConfig({
3
3
  displayName: "GridStyle",
4
4
  componentId: "es-grid-template__sc-sueu2e-0"
5
- })(["height:", ";padding:12px;.ui-rc-table.ui-rc-table-virtual.ui-rc-table-scroll-horizontal{.ui-rc-table-container{&:has(.ui-rc-table-tbody-virtual-scrollbar-horizontal){padding-bottom:8px;border-bottom:1px solid #e0e0e0;}}}.ui-rc-table-container{.ui-rc-table-tbody-virtual.ui-rc-table-tbody{min-height:", ";}.ui-rc-table-body{&:has(.ui-rc-table-placeholder){height:", ";}table{height:100%;.ui-rc-table-placeholder{vertical-align:top;}}}.ui-rc-table-placeholder{}}.ui-rc-toolbar-bottom{position:relative;padding:.25rem 1rem;background-color:#ffffff;&::before{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;left:0;}&::after{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;visibility:visible;right:0;}.toolbar-button{border-radius:0;.ant-btn{border-radius:0;}}}.ui-rc-pagination{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0;margin:0;padding:.75rem 1rem;background-color:#ffffff;.ui-rc-pagination-total-text{order:2;margin-left:auto;}&::before{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:50px;bottom:0;left:0;}&::after{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:50px;bottom:0;visibility:visible;right:0;}&.pagination-template{position:relative;&::before{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;left:0;}&::after{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;visibility:visible;right:0;}}}.react-resizable{position:relative;background-clip:padding-box;}.rc-resizable-handle{position:absolute;right:0px;bottom:0;z-index:1;width:5px;height:100%;cursor:col-resize;&.none{cursor:auto;display:none;}}"], props => props.$heightTable ? `${props.$heightTable}px` : undefined, props => props.$heightScroll ? `${props.$heightScroll}px` : undefined, props => props.$heightScroll ? `${props.$heightScroll - 1}px` : undefined);
5
+ })(["height:", ";padding-top:", ";.ui-rc-table.ui-rc-table-virtual.ui-rc-table-scroll-horizontal{.ui-rc-table-container{&:has(.ui-rc-table-tbody-virtual-scrollbar-horizontal){padding-bottom:8px;border-bottom:1px solid #e0e0e0;}}}.ui-rc-table-container{.ui-rc-table-tbody-virtual.ui-rc-table-tbody{min-height:", ";}.ui-rc-table-body{&:has(.ui-rc-table-placeholder){height:", ";}table{height:100%;.ui-rc-table-placeholder{vertical-align:top;}}}.ui-rc-table-placeholder{}}.ui-rc-toolbar-bottom{position:relative;padding:.25rem 1rem;background-color:#ffffff;&::before{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;left:0;}&::after{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;visibility:visible;right:0;}.toolbar-button{border-radius:0;.ant-btn{border-radius:0;}}}.ui-rc-pagination{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0;margin:0;padding:.75rem 1rem;background-color:#ffffff;.ui-rc-pagination-total-text{order:2;margin-left:auto;}&::before{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:50px;bottom:0;left:0;}&::after{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:50px;bottom:0;visibility:visible;right:0;}&.pagination-template{position:relative;&::before{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;left:0;}&::after{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;visibility:visible;right:0;}}}.react-resizable{position:relative;background-clip:padding-box;}.rc-resizable-handle{position:absolute;right:0px;bottom:0;z-index:1;width:5px;height:100%;cursor:col-resize;&.none{cursor:auto;display:none;}}"], props => props.$heightTable ? `${props.$heightTable}px` : undefined, props => props.$isFullScreen ? `20px` : undefined, props => props.$heightScroll ? `${props.$heightScroll}px` : undefined, props => props.$heightScroll ? `${props.$heightScroll - 1}px` : undefined);
@@ -218,6 +218,7 @@ const InternalTable = props => {
218
218
  };
219
219
  }, []);
220
220
  const [scrollHeight, setHeight] = useState(0);
221
+ const [scrollHeight1, setHeight1] = useState(0);
221
222
 
222
223
  // const [isModalOpen, setIsModalOpen] = useState(false)
223
224
 
@@ -264,7 +265,6 @@ const InternalTable = props => {
264
265
 
265
266
  const [columns, setColumns] = React.useState([]);
266
267
  React.useEffect(() => {
267
- // const totalHeight = isFullScreen ? windowSize.innerHeight - 50 : propsHeight
268
268
  const totalHeight = propsHeight;
269
269
  if (totalHeight) {
270
270
  const table = document.querySelector(`#${id}`);
@@ -277,7 +277,22 @@ const InternalTable = props => {
277
277
  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);
278
278
  setHeight(hhh > 0 ? hhh : 0);
279
279
  }
280
- }, [id, propsHeight, columns, editAble, isFullScreen, windowSize.innerHeight]);
280
+ }, [id, propsHeight, columns, editAble]);
281
+ React.useEffect(() => {
282
+ // const totalHeight = isFullScreen ? windowSize.innerHeight - 50 : propsHeight
283
+ const totalHeight = windowSize.innerHeight - 60;
284
+ if (totalHeight && isFullScreen) {
285
+ const table = document.querySelector(`#${id}`);
286
+ const title = table?.querySelector(`.ui-rc-table-title`);
287
+ const header = table?.querySelector(`.ui-rc-table-header`);
288
+ const paginationE = table?.querySelector(`.ui-rc-pagination`);
289
+ const toolbar = table?.querySelector(`.ui-rc-toolbar-bottom`);
290
+ const summaryE = table?.querySelector(`.ui-rc-table-summary`);
291
+ const scrollbar = table?.querySelector(`.ui-rc-table-tbody-virtual-scrollbar.ui-rc-table-tbody-virtual-scrollbar-horizontal`);
292
+ 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);
293
+ setHeight1(hhh > 0 ? hhh : 0);
294
+ }
295
+ }, [id, isFullScreen, windowSize.innerHeight]);
281
296
  const tableRef = React.useRef(null);
282
297
  React.useEffect(() => {
283
298
  setColumns(propsColumns);
@@ -1013,6 +1028,9 @@ const InternalTable = props => {
1013
1028
  content: {
1014
1029
  height: '100vh',
1015
1030
  borderRadius: 0
1031
+ },
1032
+ wrapper: {
1033
+ zIndex: 1060
1016
1034
  }
1017
1035
  }
1018
1036
  }, /*#__PURE__*/React.createElement(DndContext, {
@@ -1054,20 +1072,16 @@ const InternalTable = props => {
1054
1072
  groupColumns: groupColumns,
1055
1073
  commandClick: triggerCommandClick,
1056
1074
  summary: summary,
1057
- pagination: pagination
1058
- // scroll={{ y: 300 - 41 - 7 }} // scroll height auto, không quá 600
1059
- // scroll={{ y: scrollHeight - (summary ? 0 : 7) }} // scroll height auto, không quá 600
1060
- ,
1061
-
1062
- scroll: scrollHeight - (summary ? 1 : 1) < 0 ? {
1075
+ pagination: pagination,
1076
+ scroll: scrollHeight1 - (summary ? 1 : 1) < 0 ? {
1063
1077
  y: 500
1064
1078
  } : {
1065
- y: windowSize.innerHeight - 50 - (propsHeight ?? 0) + scrollHeight - (summary ? 1 : 1)
1079
+ y: scrollHeight1 - (summary ? 1 : 1)
1066
1080
  } // scroll height auto, không quá 600
1067
1081
  ,
1068
1082
 
1069
- height: windowSize.innerHeight - 50,
1070
- scrollHeight: windowSize.innerHeight - (propsHeight ?? 0) + scrollHeight - 50,
1083
+ height: windowSize.innerHeight - 35,
1084
+ scrollHeight: scrollHeight1,
1071
1085
  components: {
1072
1086
  header: {
1073
1087
  cell: ResizableTitle
@@ -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;
@@ -13,11 +13,13 @@ const Grid = props => {
13
13
  height,
14
14
  scrollHeight,
15
15
  rowHoverable,
16
+ isFullScreen,
16
17
  ...rest
17
18
  } = props;
18
19
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(GridStyle, {
19
20
  $heightTable: height,
20
21
  $heightScroll: scrollHeight,
22
+ $isFullScreen: isFullScreen,
21
23
  style: {
22
24
  position: 'relative'
23
25
  },
@@ -37,6 +39,7 @@ const Grid = props => {
37
39
  }
38
40
  }
39
41
  }, /*#__PURE__*/React.createElement(TableGrid, _extends({}, rest, {
42
+ isFullScreen: isFullScreen,
40
43
  id: id
41
44
  // style={{...style, minHeight: height}}
42
45
  ,
@@ -255,6 +255,7 @@ const GridEdit = props => {
255
255
  mergedFilterKeys,
256
256
  setMergedFilterKeys,
257
257
  wrapSettings,
258
+ isFullScreen,
258
259
  ...rest
259
260
  } = props;
260
261
  const ref = useRef(null);
@@ -2552,6 +2553,7 @@ const GridEdit = props => {
2552
2553
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(GridStyle, {
2553
2554
  $heightTable: height,
2554
2555
  $heightScroll: scrollHeight,
2556
+ $isFullScreen: isFullScreen,
2555
2557
  style: {
2556
2558
  position: 'relative'
2557
2559
  },
@@ -2673,7 +2675,8 @@ const GridEdit = props => {
2673
2675
  if (rowsSelected && rowsSelected.current.size > 0) {
2674
2676
  addClassCellIndexSelected(rowsSelected.current, id);
2675
2677
  }
2676
- }
2678
+ },
2679
+ isFullScreen: isFullScreen
2677
2680
  })))))), /*#__PURE__*/React.createElement(Toaster, {
2678
2681
  position: toast,
2679
2682
  toastOptions: {
@@ -24,6 +24,7 @@ const Group = props => {
24
24
  groupColumns,
25
25
  triggerGroupColumns,
26
26
  onExpandClick,
27
+ isFullScreen,
27
28
  ...rest
28
29
  } = props;
29
30
  const {
@@ -107,6 +108,7 @@ const Group = props => {
107
108
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(GridStyle, {
108
109
  $heightTable: height,
109
110
  $heightScroll: scrollHeight,
111
+ $isFullScreen: isFullScreen,
110
112
  style: {
111
113
  position: 'relative'
112
114
  },
@@ -170,7 +172,8 @@ const Group = props => {
170
172
  ...expandable
171
173
  },
172
174
  groupToolbar: groupToolbar,
173
- groupColumns: groupColumns
175
+ groupColumns: groupColumns,
176
+ isFullScreen: isFullScreen
174
177
  }))));
175
178
  };
176
179
  export default Group;
@@ -26,6 +26,7 @@ const InfiniteTable = props => {
26
26
  rowHoverable,
27
27
  pagination,
28
28
  dataSource,
29
+ isFullScreen,
29
30
  ...rest
30
31
  } = props;
31
32
  const {
@@ -68,6 +69,7 @@ const InfiniteTable = props => {
68
69
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(GridStyle, {
69
70
  $heightTable: height,
70
71
  $heightScroll: scrollHeight,
72
+ $isFullScreen: isFullScreen,
71
73
  style: {
72
74
  position: 'relative'
73
75
  },
@@ -92,7 +94,8 @@ const InfiniteTable = props => {
92
94
  pagination: false,
93
95
  virtual: true,
94
96
  onScroll: handleScroll,
95
- loading: loading
97
+ loading: loading,
98
+ isFullScreen: isFullScreen
96
99
  })))));
97
100
  };
98
101
  export default InfiniteTable;
@@ -2,6 +2,7 @@
2
2
  interface GridProps {
3
3
  $heightTable?: number;
4
4
  $heightScroll?: number;
5
+ $isFullScreen?: boolean;
5
6
  }
6
7
  export declare const GridStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, GridProps>> & string;
7
8
  export {};
@@ -9,4 +9,4 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
  const GridStyle = exports.GridStyle = _styledComponents.default.div.withConfig({
10
10
  displayName: "GridStyle",
11
11
  componentId: "es-grid-template__sc-sueu2e-0"
12
- })(["height:", ";padding:12px;.ui-rc-table.ui-rc-table-virtual.ui-rc-table-scroll-horizontal{.ui-rc-table-container{&:has(.ui-rc-table-tbody-virtual-scrollbar-horizontal){padding-bottom:8px;border-bottom:1px solid #e0e0e0;}}}.ui-rc-table-container{.ui-rc-table-tbody-virtual.ui-rc-table-tbody{min-height:", ";}.ui-rc-table-body{&:has(.ui-rc-table-placeholder){height:", ";}table{height:100%;.ui-rc-table-placeholder{vertical-align:top;}}}.ui-rc-table-placeholder{}}.ui-rc-toolbar-bottom{position:relative;padding:.25rem 1rem;background-color:#ffffff;&::before{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;left:0;}&::after{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;visibility:visible;right:0;}.toolbar-button{border-radius:0;.ant-btn{border-radius:0;}}}.ui-rc-pagination{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0;margin:0;padding:.75rem 1rem;background-color:#ffffff;.ui-rc-pagination-total-text{order:2;margin-left:auto;}&::before{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:50px;bottom:0;left:0;}&::after{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:50px;bottom:0;visibility:visible;right:0;}&.pagination-template{position:relative;&::before{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;left:0;}&::after{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;visibility:visible;right:0;}}}.react-resizable{position:relative;background-clip:padding-box;}.rc-resizable-handle{position:absolute;right:0px;bottom:0;z-index:1;width:5px;height:100%;cursor:col-resize;&.none{cursor:auto;display:none;}}"], props => props.$heightTable ? `${props.$heightTable}px` : undefined, props => props.$heightScroll ? `${props.$heightScroll}px` : undefined, props => props.$heightScroll ? `${props.$heightScroll - 1}px` : undefined);
12
+ })(["height:", ";padding-top:", ";.ui-rc-table.ui-rc-table-virtual.ui-rc-table-scroll-horizontal{.ui-rc-table-container{&:has(.ui-rc-table-tbody-virtual-scrollbar-horizontal){padding-bottom:8px;border-bottom:1px solid #e0e0e0;}}}.ui-rc-table-container{.ui-rc-table-tbody-virtual.ui-rc-table-tbody{min-height:", ";}.ui-rc-table-body{&:has(.ui-rc-table-placeholder){height:", ";}table{height:100%;.ui-rc-table-placeholder{vertical-align:top;}}}.ui-rc-table-placeholder{}}.ui-rc-toolbar-bottom{position:relative;padding:.25rem 1rem;background-color:#ffffff;&::before{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;left:0;}&::after{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;visibility:visible;right:0;}.toolbar-button{border-radius:0;.ant-btn{border-radius:0;}}}.ui-rc-pagination{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0;margin:0;padding:.75rem 1rem;background-color:#ffffff;.ui-rc-pagination-total-text{order:2;margin-left:auto;}&::before{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:50px;bottom:0;left:0;}&::after{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:50px;bottom:0;visibility:visible;right:0;}&.pagination-template{position:relative;&::before{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;left:0;}&::after{content:\"\";position:absolute;border-left:1px solid #e0e0e0;height:100%;bottom:0;visibility:visible;right:0;}}}.react-resizable{position:relative;background-clip:padding-box;}.rc-resizable-handle{position:absolute;right:0px;bottom:0;z-index:1;width:5px;height:100%;cursor:col-resize;&.none{cursor:auto;display:none;}}"], props => props.$heightTable ? `${props.$heightTable}px` : undefined, props => props.$isFullScreen ? `20px` : undefined, props => props.$heightScroll ? `${props.$heightScroll}px` : undefined, props => props.$heightScroll ? `${props.$heightScroll - 1}px` : undefined);
@@ -226,6 +226,7 @@ const InternalTable = props => {
226
226
  };
227
227
  }, []);
228
228
  const [scrollHeight, setHeight] = (0, _react.useState)(0);
229
+ const [scrollHeight1, setHeight1] = (0, _react.useState)(0);
229
230
 
230
231
  // const [isModalOpen, setIsModalOpen] = useState(false)
231
232
 
@@ -272,7 +273,6 @@ const InternalTable = props => {
272
273
 
273
274
  const [columns, setColumns] = _react.default.useState([]);
274
275
  _react.default.useEffect(() => {
275
- // const totalHeight = isFullScreen ? windowSize.innerHeight - 50 : propsHeight
276
276
  const totalHeight = propsHeight;
277
277
  if (totalHeight) {
278
278
  const table = document.querySelector(`#${id}`);
@@ -285,7 +285,22 @@ const InternalTable = props => {
285
285
  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);
286
286
  setHeight(hhh > 0 ? hhh : 0);
287
287
  }
288
- }, [id, propsHeight, columns, editAble, isFullScreen, windowSize.innerHeight]);
288
+ }, [id, propsHeight, columns, editAble]);
289
+ _react.default.useEffect(() => {
290
+ // const totalHeight = isFullScreen ? windowSize.innerHeight - 50 : propsHeight
291
+ const totalHeight = windowSize.innerHeight - 60;
292
+ if (totalHeight && isFullScreen) {
293
+ const table = document.querySelector(`#${id}`);
294
+ const title = table?.querySelector(`.ui-rc-table-title`);
295
+ const header = table?.querySelector(`.ui-rc-table-header`);
296
+ const paginationE = table?.querySelector(`.ui-rc-pagination`);
297
+ const toolbar = table?.querySelector(`.ui-rc-toolbar-bottom`);
298
+ const summaryE = table?.querySelector(`.ui-rc-table-summary`);
299
+ const scrollbar = table?.querySelector(`.ui-rc-table-tbody-virtual-scrollbar.ui-rc-table-tbody-virtual-scrollbar-horizontal`);
300
+ 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);
301
+ setHeight1(hhh > 0 ? hhh : 0);
302
+ }
303
+ }, [id, isFullScreen, windowSize.innerHeight]);
289
304
  const tableRef = _react.default.useRef(null);
290
305
  _react.default.useEffect(() => {
291
306
  setColumns(propsColumns);
@@ -1021,6 +1036,9 @@ const InternalTable = props => {
1021
1036
  content: {
1022
1037
  height: '100vh',
1023
1038
  borderRadius: 0
1039
+ },
1040
+ wrapper: {
1041
+ zIndex: 1060
1024
1042
  }
1025
1043
  }
1026
1044
  }, /*#__PURE__*/_react.default.createElement(_core.DndContext, {
@@ -1062,20 +1080,16 @@ const InternalTable = props => {
1062
1080
  groupColumns: groupColumns,
1063
1081
  commandClick: triggerCommandClick,
1064
1082
  summary: summary,
1065
- pagination: pagination
1066
- // scroll={{ y: 300 - 41 - 7 }} // scroll height auto, không quá 600
1067
- // scroll={{ y: scrollHeight - (summary ? 0 : 7) }} // scroll height auto, không quá 600
1068
- ,
1069
-
1070
- scroll: scrollHeight - (summary ? 1 : 1) < 0 ? {
1083
+ pagination: pagination,
1084
+ scroll: scrollHeight1 - (summary ? 1 : 1) < 0 ? {
1071
1085
  y: 500
1072
1086
  } : {
1073
- y: windowSize.innerHeight - 50 - (propsHeight ?? 0) + scrollHeight - (summary ? 1 : 1)
1087
+ y: scrollHeight1 - (summary ? 1 : 1)
1074
1088
  } // scroll height auto, không quá 600
1075
1089
  ,
1076
1090
 
1077
- height: windowSize.innerHeight - 50,
1078
- scrollHeight: windowSize.innerHeight - (propsHeight ?? 0) + scrollHeight - 50,
1091
+ height: windowSize.innerHeight - 35,
1092
+ scrollHeight: scrollHeight1,
1079
1093
  components: {
1080
1094
  header: {
1081
1095
  cell: ResizableTitle
@@ -22,11 +22,13 @@ const Grid = props => {
22
22
  height,
23
23
  scrollHeight,
24
24
  rowHoverable,
25
+ isFullScreen,
25
26
  ...rest
26
27
  } = props;
27
28
  return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_GridStyle.GridStyle, {
28
29
  $heightTable: height,
29
30
  $heightScroll: scrollHeight,
31
+ $isFullScreen: isFullScreen,
30
32
  style: {
31
33
  position: 'relative'
32
34
  },
@@ -46,6 +48,7 @@ const Grid = props => {
46
48
  }
47
49
  }
48
50
  }, /*#__PURE__*/_react.default.createElement(_TableGrid.default, (0, _extends2.default)({}, rest, {
51
+ isFullScreen: isFullScreen,
49
52
  id: id
50
53
  // style={{...style, minHeight: height}}
51
54
  ,
@@ -252,6 +252,7 @@ const GridEdit = props => {
252
252
  mergedFilterKeys,
253
253
  setMergedFilterKeys,
254
254
  wrapSettings,
255
+ isFullScreen,
255
256
  ...rest
256
257
  } = props;
257
258
  const ref = (0, _react.useRef)(null);
@@ -2549,6 +2550,7 @@ const GridEdit = props => {
2549
2550
  return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_GridStyle.GridStyle, {
2550
2551
  $heightTable: height,
2551
2552
  $heightScroll: scrollHeight,
2553
+ $isFullScreen: isFullScreen,
2552
2554
  style: {
2553
2555
  position: 'relative'
2554
2556
  },
@@ -2670,7 +2672,8 @@ const GridEdit = props => {
2670
2672
  if (rowsSelected && rowsSelected.current.size > 0) {
2671
2673
  (0, _hooks.addClassCellIndexSelected)(rowsSelected.current, id);
2672
2674
  }
2673
- }
2675
+ },
2676
+ isFullScreen: isFullScreen
2674
2677
  })))))), /*#__PURE__*/_react.default.createElement(_reactHotToast.Toaster, {
2675
2678
  position: toast,
2676
2679
  toastOptions: {
@@ -33,6 +33,7 @@ const Group = props => {
33
33
  groupColumns,
34
34
  triggerGroupColumns,
35
35
  onExpandClick,
36
+ isFullScreen,
36
37
  ...rest
37
38
  } = props;
38
39
  const {
@@ -116,6 +117,7 @@ const Group = props => {
116
117
  return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_GridStyle.GridStyle, {
117
118
  $heightTable: height,
118
119
  $heightScroll: scrollHeight,
120
+ $isFullScreen: isFullScreen,
119
121
  style: {
120
122
  position: 'relative'
121
123
  },
@@ -179,7 +181,8 @@ const Group = props => {
179
181
  ...expandable
180
182
  },
181
183
  groupToolbar: groupToolbar,
182
- groupColumns: groupColumns
184
+ groupColumns: groupColumns,
185
+ isFullScreen: isFullScreen
183
186
  }))));
184
187
  };
185
188
  var _default = exports.default = Group;
@@ -34,6 +34,7 @@ const InfiniteTable = props => {
34
34
  rowHoverable,
35
35
  pagination,
36
36
  dataSource,
37
+ isFullScreen,
37
38
  ...rest
38
39
  } = props;
39
40
  const {
@@ -76,6 +77,7 @@ const InfiniteTable = props => {
76
77
  return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_GridStyle.GridStyle, {
77
78
  $heightTable: height,
78
79
  $heightScroll: scrollHeight,
80
+ $isFullScreen: isFullScreen,
79
81
  style: {
80
82
  position: 'relative'
81
83
  },
@@ -100,7 +102,8 @@ const InfiniteTable = props => {
100
102
  pagination: false,
101
103
  virtual: true,
102
104
  onScroll: handleScroll,
103
- loading: loading
105
+ loading: loading,
106
+ isFullScreen: isFullScreen
104
107
  })))));
105
108
  };
106
109
  var _default = exports.default = InfiniteTable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-grid-template",
3
- "version": "1.7.2",
3
+ "version": "1.7.21",
4
4
  "description": "es-grid-template",
5
5
  "keywords": [
6
6
  "react",