es-grid-template 1.8.53 → 1.8.54

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.
@@ -190,7 +190,7 @@ const TableContainer = props => {
190
190
  alignItems: 'center',
191
191
  gap: '.75rem'
192
192
  }
193
- }, toolbarItems && toolbarItems?.length > 0 && /*#__PURE__*/React.createElement("div", {
193
+ }, /*#__PURE__*/React.createElement("div", {
194
194
  style: {
195
195
  flex: 1,
196
196
  overflow: 'hidden'
@@ -198,20 +198,6 @@ const TableContainer = props => {
198
198
  }, /*#__PURE__*/React.createElement(Toolbar, {
199
199
  items: (toolbarItems ?? []).filter(it => it.position !== 'Bottom'),
200
200
  mode: 'scroll'
201
- })), fullScreen !== false && (isFullScreen ? /*#__PURE__*/React.createElement(Minimize, {
202
- fontSize: 16,
203
- onClick: () => {
204
- setIsFullScreen(!isFullScreen);
205
- },
206
- "data-tooltip-id": `${id}-tooltip-content`,
207
- "data-tooltip-content": t ? t('Minimized') : 'Minimized'
208
- }) : /*#__PURE__*/React.createElement(Maximize, {
209
- fontSize: 16,
210
- onClick: () => {
211
- setIsFullScreen(!isFullScreen);
212
- },
213
- "data-tooltip-id": `${id}-tooltip-content`,
214
- "data-tooltip-content": t ? t('Full screen') : 'Full screen'
215
201
  })), /*#__PURE__*/React.createElement("div", {
216
202
  style: {
217
203
  display: 'flex',
@@ -227,7 +213,21 @@ const TableContainer = props => {
227
213
  showTotal: (totalItems, range) =>
228
214
  // @ts-ignore
229
215
  `${range[0]}-${range[1]} / ${totalItems} ${t ? t(pagination?.locale?.items ?? 'items') : 'items'}`
230
- }, pagination)), typeof actionTemplate === 'function' ? actionTemplate() : actionTemplate, showColumnChoose && /*#__PURE__*/React.createElement(ColumnsChoose, {
216
+ }, pagination)), typeof actionTemplate === 'function' ? actionTemplate() : actionTemplate, fullScreen !== false && (isFullScreen ? /*#__PURE__*/React.createElement(Minimize, {
217
+ fontSize: 16,
218
+ onClick: () => {
219
+ setIsFullScreen(!isFullScreen);
220
+ },
221
+ "data-tooltip-id": `${id}-tooltip-content`,
222
+ "data-tooltip-content": t ? t('Minimized') : 'Minimized'
223
+ }) : /*#__PURE__*/React.createElement(Maximize, {
224
+ fontSize: 16,
225
+ onClick: () => {
226
+ setIsFullScreen(!isFullScreen);
227
+ },
228
+ "data-tooltip-id": `${id}-tooltip-content`,
229
+ "data-tooltip-content": t ? t('Full screen') : 'Full screen'
230
+ })), showColumnChoose && /*#__PURE__*/React.createElement(ColumnsChoose, {
231
231
  columnHidden: columnHidden,
232
232
  columns: columns,
233
233
  originColumns: propsColumns,
@@ -200,7 +200,7 @@ const TableContainer = props => {
200
200
  alignItems: 'center',
201
201
  gap: '.75rem'
202
202
  }
203
- }, toolbarItems && toolbarItems?.length > 0 && /*#__PURE__*/_react.default.createElement("div", {
203
+ }, /*#__PURE__*/_react.default.createElement("div", {
204
204
  style: {
205
205
  flex: 1,
206
206
  overflow: 'hidden'
@@ -208,20 +208,6 @@ const TableContainer = props => {
208
208
  }, /*#__PURE__*/_react.default.createElement(_rcMasterUi.Toolbar, {
209
209
  items: (toolbarItems ?? []).filter(it => it.position !== 'Bottom'),
210
210
  mode: 'scroll'
211
- })), fullScreen !== false && (isFullScreen ? /*#__PURE__*/_react.default.createElement(_becoxyIcons.Minimize, {
212
- fontSize: 16,
213
- onClick: () => {
214
- setIsFullScreen(!isFullScreen);
215
- },
216
- "data-tooltip-id": `${id}-tooltip-content`,
217
- "data-tooltip-content": t ? t('Minimized') : 'Minimized'
218
- }) : /*#__PURE__*/_react.default.createElement(_becoxyIcons.Maximize, {
219
- fontSize: 16,
220
- onClick: () => {
221
- setIsFullScreen(!isFullScreen);
222
- },
223
- "data-tooltip-id": `${id}-tooltip-content`,
224
- "data-tooltip-content": t ? t('Full screen') : 'Full screen'
225
211
  })), /*#__PURE__*/_react.default.createElement("div", {
226
212
  style: {
227
213
  display: 'flex',
@@ -237,7 +223,21 @@ const TableContainer = props => {
237
223
  showTotal: (totalItems, range) =>
238
224
  // @ts-ignore
239
225
  `${range[0]}-${range[1]} / ${totalItems} ${t ? t(pagination?.locale?.items ?? 'items') : 'items'}`
240
- }, pagination)), typeof actionTemplate === 'function' ? actionTemplate() : actionTemplate, showColumnChoose && /*#__PURE__*/_react.default.createElement(_ColumnsChoose.ColumnsChoose, {
226
+ }, pagination)), typeof actionTemplate === 'function' ? actionTemplate() : actionTemplate, fullScreen !== false && (isFullScreen ? /*#__PURE__*/_react.default.createElement(_becoxyIcons.Minimize, {
227
+ fontSize: 16,
228
+ onClick: () => {
229
+ setIsFullScreen(!isFullScreen);
230
+ },
231
+ "data-tooltip-id": `${id}-tooltip-content`,
232
+ "data-tooltip-content": t ? t('Minimized') : 'Minimized'
233
+ }) : /*#__PURE__*/_react.default.createElement(_becoxyIcons.Maximize, {
234
+ fontSize: 16,
235
+ onClick: () => {
236
+ setIsFullScreen(!isFullScreen);
237
+ },
238
+ "data-tooltip-id": `${id}-tooltip-content`,
239
+ "data-tooltip-content": t ? t('Full screen') : 'Full screen'
240
+ })), showColumnChoose && /*#__PURE__*/_react.default.createElement(_ColumnsChoose.ColumnsChoose, {
241
241
  columnHidden: columnHidden,
242
242
  columns: columns,
243
243
  originColumns: propsColumns,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-grid-template",
3
- "version": "1.8.53",
3
+ "version": "1.8.54",
4
4
  "description": "es-grid-template",
5
5
  "keywords": [
6
6
  "react",