@majoo-ui/react 1.58.20-rc.4 → 1.58.20-rc.5

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 (3) hide show
  1. package/index.esm.js +248 -243
  2. package/index.umd.js +336 -331
  3. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -22565,7 +22565,6 @@ const cssAfter = {
22565
22565
  pointerEvents: 'none',
22566
22566
  boxSizing: 'border'
22567
22567
  };
22568
-
22569
22568
  const stickyShadowStyling = (column, tableScrollPosition, scrollAreaWidth) => {
22570
22569
  if ((column === null || column === void 0 ? void 0 : column.sticky) && (column === null || column === void 0 ? void 0 : column.shadow)) {
22571
22570
  return column.sticky === 'left' ? {
@@ -22800,7 +22799,7 @@ function Table({
22800
22799
  onExpand,
22801
22800
  id = null
22802
22801
  }) {
22803
- var _a, _b, _c, _d, _e;
22802
+ var _a, _b, _c, _d;
22804
22803
  const [openMenu, setOpen] = useState(false);
22805
22804
  const [limit, setLimit] = useState(rowLimit);
22806
22805
  const [dataRow, setDataRow] = useState({});
@@ -23156,7 +23155,6 @@ function Table({
23156
23155
  const cssTableCell = {
23157
23156
  backgroundColor: 'white'
23158
23157
  };
23159
- const tableHeight = (_c = document.getElementById('table-container')) === null || _c === void 0 ? void 0 : _c.offsetHeight;
23160
23158
  return jsxs(Box, Object.assign({
23161
23159
  css: {
23162
23160
  position: 'relative',
@@ -23184,262 +23182,269 @@ function Table({
23184
23182
  children: "Loading .... "
23185
23183
  }), void 0)
23186
23184
  }), void 0), !isMobile || id ? jsxs(Fragment, {
23187
- children: [jsxs(TableContainer$3, Object.assign({
23188
- id: "table-container",
23189
- css: css,
23190
- ref: scrollerRef,
23191
- decoration: Boolean(decoration),
23192
- onScroll: e => {
23193
- const scrollPosition = e.currentTarget.scrollLeft;
23194
- if (scrollPosition < 3) {
23195
- setTableScrollPosition('start');
23196
- } else if (scrollPosition > scrollAreaWidth - 3) {
23197
- setTableScrollPosition('end');
23198
- } else {
23199
- setTableScrollPosition('between');
23200
- }
23185
+ children: [jsxs(Box, Object.assign({
23186
+ css: {
23187
+ position: 'relative'
23201
23188
  }
23202
23189
  }, {
23203
- children: [jsx(ConditionalWrapper, Object.assign({
23204
- condition: !decoration,
23205
- wrapper: child => renderInfiniteScrollWrapper(child)
23190
+ children: [jsxs(TableContainer$3, Object.assign({
23191
+ id: "table-container",
23192
+ css: css,
23193
+ ref: scrollerRef,
23194
+ decoration: Boolean(decoration),
23195
+ onScroll: e => {
23196
+ const scrollPosition = e.currentTarget.scrollLeft;
23197
+ if (scrollPosition < 3) {
23198
+ setTableScrollPosition('start');
23199
+ } else if (scrollPosition > scrollAreaWidth - 3) {
23200
+ setTableScrollPosition('end');
23201
+ } else {
23202
+ setTableScrollPosition('between');
23203
+ }
23204
+ }
23206
23205
  }, {
23207
- children: jsxs(TableContent$3, Object.assign({}, getTableProps(), {
23208
- children: [jsx(TableHead$3, Object.assign({
23209
- hiddenHeader: hideHeader,
23210
- css: headerCss,
23211
- isInfiniteScroll: isInfiniteScroll
23212
- }, {
23213
- children: headerGroups.map(headerGroup => {
23214
- let visibleHeaders = headerGroup.headers.filter(column => !column.isSubRow);
23215
- if (filterHeader.length > 0) {
23216
- visibleHeaders = visibleHeaders.filter(item => filterHeader.includes(item.id));
23217
- }
23218
- return jsx(TableHeadRow$3, Object.assign({
23219
- css: cssTableCell
23220
- }, headerGroup.getHeaderGroupProps(), {
23221
- children: visibleHeaders.map((column, index) => {
23222
- const headerRender = column.render('Header');
23223
- return jsx(TableHeadCell$3, Object.assign({}, column.getHeaderProps(props => [props, !column.unsortable ? column.getSortByToggleProps({
23224
- title: t('sortColumnTitle', 'Urutkan') || 'Urutkan'
23225
- }) : {
23226
- onClick: column.onToggle
23227
- }, {
23228
- style: {
23229
- width: column.colWidth,
23230
- maxWidth: column.colMaxWidth,
23231
- minWidth: column.colMinWidth
23232
- }
23233
- }]), {
23234
- css: Object.assign(Object.assign(Object.assign(Object.assign({}, cssTableCell), stickyPositionStyling(column)), stickyShadowStyling(column, tableScrollPosition, scrollAreaWidth)), column.headerCss)
23235
- }, {
23236
- children: typeof headerRender === 'string' ? jsx(TableHeaderCellContainer, Object.assign({
23237
- isSortedDesc: column.isSortedDesc,
23238
- unsortable: id ? true : column.unsortable,
23239
- isToggleable: !!column.onToggle,
23240
- isToggled: column.isToggled
23206
+ children: [jsx(ConditionalWrapper, Object.assign({
23207
+ condition: !decoration,
23208
+ wrapper: child => renderInfiniteScrollWrapper(child)
23209
+ }, {
23210
+ children: jsxs(TableContent$3, Object.assign({}, getTableProps(), {
23211
+ children: [jsx(TableHead$3, Object.assign({
23212
+ hiddenHeader: hideHeader,
23213
+ css: headerCss,
23214
+ isInfiniteScroll: isInfiniteScroll
23215
+ }, {
23216
+ children: headerGroups.map(headerGroup => {
23217
+ let visibleHeaders = headerGroup.headers.filter(column => !column.isSubRow);
23218
+ if (filterHeader.length > 0) {
23219
+ visibleHeaders = visibleHeaders.filter(item => filterHeader.includes(item.id));
23220
+ }
23221
+ return jsx(TableHeadRow$3, Object.assign({
23222
+ css: cssTableCell
23223
+ }, headerGroup.getHeaderGroupProps(), {
23224
+ children: visibleHeaders.map((column, index) => {
23225
+ const headerRender = column.render('Header');
23226
+ return jsx(TableHeadCell$3, Object.assign({}, column.getHeaderProps(props => [props, !column.unsortable ? column.getSortByToggleProps({
23227
+ title: t('sortColumnTitle', 'Urutkan') || 'Urutkan'
23228
+ }) : {
23229
+ onClick: column.onToggle
23230
+ }, {
23231
+ style: {
23232
+ width: column.colWidth,
23233
+ maxWidth: column.colMaxWidth,
23234
+ minWidth: column.colMinWidth
23235
+ }
23236
+ }]), {
23237
+ css: Object.assign(Object.assign(Object.assign(Object.assign({}, cssTableCell), stickyPositionStyling(column)), stickyShadowStyling(column, tableScrollPosition, scrollAreaWidth)), column.headerCss)
23241
23238
  }, {
23242
- children: jsx(TableHeadCellContent, Object.assign({
23243
- heading: "headerTable"
23239
+ children: typeof headerRender === 'string' ? jsx(TableHeaderCellContainer, Object.assign({
23240
+ isSortedDesc: column.isSortedDesc,
23241
+ unsortable: id ? true : column.unsortable,
23242
+ isToggleable: !!column.onToggle,
23243
+ isToggled: column.isToggled
23244
23244
  }, {
23245
- children: headerRender.toUpperCase()
23246
- }), void 0)
23247
- }), void 0) : headerRender
23248
- }), void 0);
23249
- })
23250
- }), void 0);
23251
- })
23252
- }), void 0), jsxs(TableBody$3, Object.assign({}, getTableBodyProps(), {
23253
- children: [isInfiniteScroll && paddingTop > 0 && jsx("tr", {
23254
- children: jsx("td", {
23255
- style: {
23256
- height: `${paddingTop}px`
23257
- }
23258
- }, void 0)
23259
- }, void 0), (_d = decoration === null || decoration === void 0 ? void 0 : decoration.headerRender) === null || _d === void 0 ? void 0 : _d.call(decoration), decoration && page.map((row, i) => {
23260
- var _a;
23261
- prepareRow(row);
23262
- const isContextMenu = (_a = row.cells.filter(cell => {
23263
- var _a, _b;
23264
- return (_b = (_a = cell.column) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.length;
23265
- })) === null || _a === void 0 ? void 0 : _a.length;
23266
- return i < 1 && renderRowDecorationReference(row, isContextMenu, i);
23267
- }), jsx(ConditionalWrapper, Object.assign({
23268
- condition: Boolean(decoration),
23269
- wrapper: child => jsx(TableRow$3, Object.assign({
23270
- css: {
23271
- '&:hover': {
23272
- backgroundColor: 'unset'
23245
+ children: jsx(TableHeadCellContent, Object.assign({
23246
+ heading: "headerTable"
23247
+ }, {
23248
+ children: headerRender.toUpperCase()
23249
+ }), void 0)
23250
+ }), void 0) : headerRender
23251
+ }), void 0);
23252
+ })
23253
+ }), void 0);
23254
+ })
23255
+ }), void 0), jsxs(TableBody$3, Object.assign({}, getTableBodyProps(), {
23256
+ children: [isInfiniteScroll && paddingTop > 0 && jsx("tr", {
23257
+ children: jsx("td", {
23258
+ style: {
23259
+ height: `${paddingTop}px`
23273
23260
  }
23274
- }
23275
- }, {
23276
- children: jsx(TableCell$3, Object.assign({
23277
- colSpan: (decoration === null || decoration === void 0 ? void 0 : decoration.colSpan) || 12
23278
- }, {
23279
- children: jsx(Box, Object.assign({
23280
- css: Object.assign({
23281
- height: 300,
23282
- overflow: 'auto'
23283
- }, decoration === null || decoration === void 0 ? void 0 : decoration.css)
23284
- }, {
23285
- children: renderInfiniteScrollWrapper(renderTableDecorationChild(child))
23286
- }), void 0)
23287
- }), void 0)
23288
- }), void 0)
23289
- }, {
23290
- children: tableRowData.map((dataRow, i) => {
23291
- var _a, _b, _c, _d;
23292
- const row = isInfiniteScroll ? page === null || page === void 0 ? void 0 : page[dataRow === null || dataRow === void 0 ? void 0 : dataRow.index] : dataRow;
23261
+ }, void 0)
23262
+ }, void 0), (_c = decoration === null || decoration === void 0 ? void 0 : decoration.headerRender) === null || _c === void 0 ? void 0 : _c.call(decoration), decoration && page.map((row, i) => {
23263
+ var _a;
23293
23264
  prepareRow(row);
23294
- const subRowCells = row.cells.filter(cell => cell.column.isSubRow);
23295
- const leftAddOnCells = (_a = row.cells.filter(cell => ['expander', 'multiple-expander', 'selection'].includes(cell.column.id))) !== null && _a !== void 0 ? _a : [];
23296
- const notNullHeaderColumns = visibleColumns.filter(column => typeof column.Header !== 'function' && column.Header !== null && !column.isSubRow);
23297
- let isContextMenu = Boolean((_b = row.cells.filter(cell => {
23265
+ const isContextMenu = (_a = row.cells.filter(cell => {
23298
23266
  var _a, _b;
23299
23267
  return (_b = (_a = cell.column) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.length;
23300
- })) === null || _b === void 0 ? void 0 : _b.length);
23301
- let customStyle = {};
23302
- let hideRowMenuColumn = false;
23303
- if (customRowsStyle && customRowsStyle(row.original).length) {
23304
- for (let _i2 = 0; _i2 < customRowsStyle(row.original).length; _i2++) {
23305
- if (customRowsStyle(row.original)[_i2].predicate) {
23306
- const customRowCss = (_c = customRowsStyle(row.original)[_i2]) === null || _c === void 0 ? void 0 : _c.css;
23307
- customStyle = customRowCss || {};
23308
- if ((_d = customRowsStyle(row.original)[_i2]) === null || _d === void 0 ? void 0 : _d.hideRowMenuColumn) {
23309
- isContextMenu = false;
23310
- hideRowMenuColumn = true;
23311
- }
23268
+ })) === null || _a === void 0 ? void 0 : _a.length;
23269
+ return i < 1 && renderRowDecorationReference(row, isContextMenu, i);
23270
+ }), jsx(ConditionalWrapper, Object.assign({
23271
+ condition: Boolean(decoration),
23272
+ wrapper: child => jsx(TableRow$3, Object.assign({
23273
+ css: {
23274
+ '&:hover': {
23275
+ backgroundColor: 'unset'
23312
23276
  }
23313
23277
  }
23314
- }
23315
- return jsxs(React.Fragment, {
23316
- children: [((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.showGroupingWhenSorted) || sortBy.length <= 0) && row.original['isTopChild'] && ((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.headerRender) ? rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.headerRender(row, {
23317
- getCellProps: cellProps => ({
23318
- css: Object.assign(Object.assign(Object.assign({}, stickyPositionStyling({
23319
- sticky: cellProps === null || cellProps === void 0 ? void 0 : cellProps.sticky,
23320
- stickyPosition: cellProps === null || cellProps === void 0 ? void 0 : cellProps.stickyPosition
23321
- })), stickyShadowStyling({
23322
- sticky: cellProps === null || cellProps === void 0 ? void 0 : cellProps.sticky,
23323
- shadow: cellProps === null || cellProps === void 0 ? void 0 : cellProps.shadow
23324
- }, tableScrollPosition, scrollAreaWidth)), cellProps === null || cellProps === void 0 ? void 0 : cellProps.css)
23325
- })
23326
- }) : jsx(Text$1, Object.assign({
23327
- variant: "contentButton"
23278
+ }, {
23279
+ children: jsx(TableCell$3, Object.assign({
23280
+ colSpan: (decoration === null || decoration === void 0 ? void 0 : decoration.colSpan) || 12
23328
23281
  }, {
23329
- children: row.cells[0].render('Cell')
23330
- }), void 0)), jsx(TableRow$3, Object.assign({
23331
- css: customStyle
23332
- }, row && row.getRowProps ? row.getRowProps() : {}, {
23333
- children: row.cells.filter(cell => filterHeader.length > 0 ? filterHeader.includes(cell.column.id) : cell).filter(cell => !cell.column.isSubRow).map((cell, index, row) => {
23334
- var _a, _b, _c;
23335
- let visibleHeaders = (_a = headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups[0]) === null || _a === void 0 ? void 0 : _a.headers.filter(column => !column.isSubRow);
23336
- if (filterHeader.length > 0) {
23337
- visibleHeaders = visibleHeaders.filter(item => filterHeader.includes(item.id));
23282
+ children: jsx(Box, Object.assign({
23283
+ css: Object.assign({
23284
+ height: 300,
23285
+ overflow: 'auto'
23286
+ }, decoration === null || decoration === void 0 ? void 0 : decoration.css)
23287
+ }, {
23288
+ children: renderInfiniteScrollWrapper(renderTableDecorationChild(child))
23289
+ }), void 0)
23290
+ }), void 0)
23291
+ }), void 0)
23292
+ }, {
23293
+ children: tableRowData.map((dataRow, i) => {
23294
+ var _a, _b, _c, _d;
23295
+ const row = isInfiniteScroll ? page === null || page === void 0 ? void 0 : page[dataRow === null || dataRow === void 0 ? void 0 : dataRow.index] : dataRow;
23296
+ prepareRow(row);
23297
+ const subRowCells = row.cells.filter(cell => cell.column.isSubRow);
23298
+ const leftAddOnCells = (_a = row.cells.filter(cell => ['expander', 'multiple-expander', 'selection'].includes(cell.column.id))) !== null && _a !== void 0 ? _a : [];
23299
+ const notNullHeaderColumns = visibleColumns.filter(column => typeof column.Header !== 'function' && column.Header !== null && !column.isSubRow);
23300
+ let isContextMenu = Boolean((_b = row.cells.filter(cell => {
23301
+ var _a, _b;
23302
+ return (_b = (_a = cell.column) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.length;
23303
+ })) === null || _b === void 0 ? void 0 : _b.length);
23304
+ let customStyle = {};
23305
+ let hideRowMenuColumn = false;
23306
+ if (customRowsStyle && customRowsStyle(row.original).length) {
23307
+ for (let _i2 = 0; _i2 < customRowsStyle(row.original).length; _i2++) {
23308
+ if (customRowsStyle(row.original)[_i2].predicate) {
23309
+ const customRowCss = (_c = customRowsStyle(row.original)[_i2]) === null || _c === void 0 ? void 0 : _c.css;
23310
+ customStyle = customRowCss || {};
23311
+ if ((_d = customRowsStyle(row.original)[_i2]) === null || _d === void 0 ? void 0 : _d.hideRowMenuColumn) {
23312
+ isContextMenu = false;
23313
+ hideRowMenuColumn = true;
23314
+ }
23338
23315
  }
23339
- const collId = (_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.id;
23340
- const exceptionId = (_c = ['expander', 'multiple-expander', 'selection', 'menu', 'eye'].concat(additionalExceptionIds)) === null || _c === void 0 ? void 0 : _c.includes(collId);
23341
- return jsx(TableCell$3, Object.assign({}, cell.getCellProps(addOnCellStyle(cell.column.id)), {
23342
- css: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, cssTableCell), {
23343
- padding: !isContextMenu || exceptionId ? collId === 'expander' || collId === 'multiple-expander' ? '20px 4px' : '20px 8px' : '',
23344
- verticalAlign: cell.column.accessor ? cellAlign : 'center',
23345
- cursor: onRowClick ? 'pointer' : 'unset'
23346
- }), stickyPositionStyling(cell.column)), stickyShadowStyling(cell.column, tableScrollPosition, scrollAreaWidth)), {
23347
- paddingRight: row.length === index + 1 ? 30 : null
23348
- }),
23349
- onClick: () => {
23350
- if (!exceptionId) {
23351
- handleRowClick(row, i);
23352
- }
23316
+ }
23317
+ }
23318
+ return jsxs(React.Fragment, {
23319
+ children: [((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.showGroupingWhenSorted) || sortBy.length <= 0) && row.original['isTopChild'] && ((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.headerRender) ? rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.headerRender(row, {
23320
+ getCellProps: cellProps => ({
23321
+ css: Object.assign(Object.assign(Object.assign({}, stickyPositionStyling({
23322
+ sticky: cellProps === null || cellProps === void 0 ? void 0 : cellProps.sticky,
23323
+ stickyPosition: cellProps === null || cellProps === void 0 ? void 0 : cellProps.stickyPosition
23324
+ })), stickyShadowStyling({
23325
+ sticky: cellProps === null || cellProps === void 0 ? void 0 : cellProps.sticky,
23326
+ shadow: cellProps === null || cellProps === void 0 ? void 0 : cellProps.shadow
23327
+ }, tableScrollPosition, scrollAreaWidth)), cellProps === null || cellProps === void 0 ? void 0 : cellProps.css)
23328
+ })
23329
+ }) : jsx(Text$1, Object.assign({
23330
+ variant: "contentButton"
23331
+ }, {
23332
+ children: row.cells[0].render('Cell')
23333
+ }), void 0)), jsx(TableRow$3, Object.assign({
23334
+ css: customStyle
23335
+ }, row && row.getRowProps ? row.getRowProps() : {}, {
23336
+ children: row.cells.filter(cell => filterHeader.length > 0 ? filterHeader.includes(cell.column.id) : cell).filter(cell => !cell.column.isSubRow).map((cell, index, row) => {
23337
+ var _a, _b, _c;
23338
+ let visibleHeaders = (_a = headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups[0]) === null || _a === void 0 ? void 0 : _a.headers.filter(column => !column.isSubRow);
23339
+ if (filterHeader.length > 0) {
23340
+ visibleHeaders = visibleHeaders.filter(item => filterHeader.includes(item.id));
23353
23341
  }
23354
- }, {
23355
- children: jsx(ConditionalWrapper, Object.assign({
23356
- condition: isContextMenu && !exceptionId,
23357
- wrapper: children => jsx(ContextMenuTrigger, Object.assign({
23358
- id: "context-menu-table",
23359
- triggerSide: "left"
23342
+ const collId = (_b = cell === null || cell === void 0 ? void 0 : cell.column) === null || _b === void 0 ? void 0 : _b.id;
23343
+ const exceptionId = (_c = ['expander', 'multiple-expander', 'selection', 'menu', 'eye'].concat(additionalExceptionIds)) === null || _c === void 0 ? void 0 : _c.includes(collId);
23344
+ return jsx(TableCell$3, Object.assign({}, cell.getCellProps(addOnCellStyle(cell.column.id)), {
23345
+ css: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, cssTableCell), {
23346
+ padding: !isContextMenu || exceptionId ? collId === 'expander' || collId === 'multiple-expander' ? '20px 4px' : '20px 8px' : '',
23347
+ verticalAlign: cell.column.accessor ? cellAlign : 'center',
23348
+ cursor: onRowClick ? 'pointer' : 'unset'
23349
+ }), stickyPositionStyling(cell.column)), stickyShadowStyling(cell.column, tableScrollPosition, scrollAreaWidth)), {
23350
+ paddingRight: index + 1 === row.length ? 30 : null,
23351
+ paddingLeft: index + 1 === row.length ? 30 : null
23352
+ }),
23353
+ onClick: () => {
23354
+ if (!exceptionId) {
23355
+ handleRowClick(row, i);
23356
+ }
23357
+ }
23358
+ }, {
23359
+ children: jsx(ConditionalWrapper, Object.assign({
23360
+ condition: isContextMenu && !exceptionId,
23361
+ wrapper: children => jsx(ContextMenuTrigger, Object.assign({
23362
+ id: "context-menu-table",
23363
+ triggerSide: "left"
23364
+ }, {
23365
+ children: jsx(Box, Object.assign({
23366
+ css: {
23367
+ cursor: 'pointer',
23368
+ padding: cell.column.accessor ? '20px 8px' : '20px 20px'
23369
+ },
23370
+ onClick: () => handleRowClick(row, i)
23371
+ }, {
23372
+ children: children
23373
+ }), void 0)
23374
+ }), void 0)
23360
23375
  }, {
23361
23376
  children: jsx(Box, Object.assign({
23362
23377
  css: {
23363
- cursor: 'pointer',
23364
- padding: cell.column.accessor ? '20px 8px' : '20px 20px'
23365
- },
23366
- onClick: () => handleRowClick(row, i)
23378
+ visibility: hideRowMenuColumn && collId === 'menu' ? 'hidden' : 'visible'
23379
+ }
23367
23380
  }, {
23368
- children: children
23381
+ children: cell.render('Cell')
23369
23382
  }), void 0)
23370
23383
  }), void 0)
23384
+ }), void 0);
23385
+ })
23386
+ }), void 0), row.isExpanded ? subRowCells.map((cell, index) => jsxs(TableRow$3, Object.assign({
23387
+ subRow: true
23388
+ }, {
23389
+ children: [leftAddOnCells.map((_, index) => jsx("td", {
23390
+ style: {
23391
+ backgroundColor: colors$8.bgGray
23392
+ }
23393
+ }, index)), jsxs(React.Fragment, {
23394
+ children: [jsx(TableCell$3, Object.assign({
23395
+ subCell: true,
23396
+ colSpan: notNullHeaderColumns.length > 5 ? 2 : 1,
23397
+ headerSubCell: true,
23398
+ css: Object.assign(Object.assign({
23399
+ paddingTop: `${index === 0 ? '24px' : '13px'} !important`,
23400
+ paddingBottom: `${index === subRowCells.length - 1 ? '24px' : '13px'} !important`,
23401
+ backgroundColor: '$bgGray'
23402
+ }, stickyPositionStyling(cell.column)), cell.column.headerCss)
23371
23403
  }, {
23372
- children: jsx(Box, Object.assign({
23373
- css: {
23374
- visibility: hideRowMenuColumn && collId === 'menu' ? 'hidden' : 'visible'
23375
- }
23404
+ children: jsx(Paragraph, Object.assign({
23405
+ paragraph: "shortContentBold"
23376
23406
  }, {
23377
- children: cell.render('Cell')
23407
+ children: cell.column.Header
23378
23408
  }), void 0)
23379
- }), void 0)
23380
- }), void 0);
23381
- })
23382
- }), void 0), row.isExpanded ? subRowCells.map((cell, index) => jsxs(TableRow$3, Object.assign({
23383
- subRow: true
23384
- }, {
23385
- children: [leftAddOnCells.map((_, index) => jsx("td", {
23386
- style: {
23387
- backgroundColor: colors$8.bgGray
23388
- }
23389
- }, index)), jsxs(React.Fragment, {
23390
- children: [jsx(TableCell$3, Object.assign({
23391
- subCell: true,
23392
- colSpan: notNullHeaderColumns.length > 5 ? 2 : 1,
23393
- headerSubCell: true,
23394
- css: Object.assign(Object.assign({
23395
- paddingTop: `${index === 0 ? '24px' : '13px'} !important`,
23396
- paddingBottom: `${index === subRowCells.length - 1 ? '24px' : '13px'} !important`,
23397
- backgroundColor: '$bgGray'
23398
- }, stickyPositionStyling(cell.column)), cell.column.headerCss)
23399
- }, {
23400
- children: jsx(Paragraph, Object.assign({
23401
- paragraph: "shortContentBold"
23402
- }, {
23403
- children: cell.column.Header
23404
- }), void 0)
23405
- }), void 0), jsx(TableCell$3, Object.assign({
23406
- subCell: true,
23407
- colSpan: visibleColumns.length - subRowCells.length,
23408
- css: {
23409
- paddingTop: `${index === 0 ? '24px' : '13px'} !important`,
23410
- paddingBottom: `${index === subRowCells.length - 1 ? '24px' : '13px'} !important`
23411
- }
23412
- }, {
23413
- children: jsx(Paragraph, Object.assign({
23414
- paragraph: "shortContentRegular"
23409
+ }), void 0), jsx(TableCell$3, Object.assign({
23410
+ subCell: true,
23411
+ colSpan: visibleColumns.length - subRowCells.length,
23412
+ css: {
23413
+ paddingTop: `${index === 0 ? '24px' : '13px'} !important`,
23414
+ paddingBottom: `${index === subRowCells.length - 1 ? '24px' : '13px'} !important`
23415
+ }
23415
23416
  }, {
23416
- children: cell.render('Cell')
23417
- }), void 0)
23418
- }), void 0)]
23419
- }, cell.column.id)]
23420
- }), cell.column.id)) : null, ((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.showGroupingWhenSorted) || sortBy.length <= 0) && row.original['isBottomChild'] && !!(rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender) && (rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender(row, {
23421
- getCellProps: cellProps => ({
23422
- css: Object.assign(Object.assign(Object.assign({}, stickyPositionStyling({
23423
- sticky: cellProps === null || cellProps === void 0 ? void 0 : cellProps.sticky,
23424
- stickyPosition: cellProps === null || cellProps === void 0 ? void 0 : cellProps.stickyPosition
23425
- })), stickyShadowStyling({
23426
- sticky: cellProps === null || cellProps === void 0 ? void 0 : cellProps.sticky,
23427
- shadow: cellProps === null || cellProps === void 0 ? void 0 : cellProps.shadow
23428
- }, tableScrollPosition, scrollAreaWidth)), cellProps === null || cellProps === void 0 ? void 0 : cellProps.css)
23429
- })
23430
- }))]
23431
- }, row.id);
23432
- })
23433
- }), void 0), (_e = decoration === null || decoration === void 0 ? void 0 : decoration.footerRender) === null || _e === void 0 ? void 0 : _e.call(decoration), isInfiniteScroll && paddingBottom > 0 && jsx("tr", {
23434
- children: jsx("td", {
23435
- style: {
23436
- height: `${paddingBottom}px`
23437
- }
23438
- }, void 0)
23439
- }, void 0)]
23440
- }), void 0)]
23441
- }), void 0)
23442
- }), void 0), renderContextMenu(), id && jsxs(Fragment, {
23417
+ children: jsx(Paragraph, Object.assign({
23418
+ paragraph: "shortContentRegular"
23419
+ }, {
23420
+ children: cell.render('Cell')
23421
+ }), void 0)
23422
+ }), void 0)]
23423
+ }, cell.column.id)]
23424
+ }), cell.column.id)) : null, ((rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.showGroupingWhenSorted) || sortBy.length <= 0) && row.original['isBottomChild'] && !!(rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender) && (rowGroup === null || rowGroup === void 0 ? void 0 : rowGroup.footerRender(row, {
23425
+ getCellProps: cellProps => ({
23426
+ css: Object.assign(Object.assign(Object.assign({}, stickyPositionStyling({
23427
+ sticky: cellProps === null || cellProps === void 0 ? void 0 : cellProps.sticky,
23428
+ stickyPosition: cellProps === null || cellProps === void 0 ? void 0 : cellProps.stickyPosition
23429
+ })), stickyShadowStyling({
23430
+ sticky: cellProps === null || cellProps === void 0 ? void 0 : cellProps.sticky,
23431
+ shadow: cellProps === null || cellProps === void 0 ? void 0 : cellProps.shadow
23432
+ }, tableScrollPosition, scrollAreaWidth)), cellProps === null || cellProps === void 0 ? void 0 : cellProps.css)
23433
+ })
23434
+ }))]
23435
+ }, row.id);
23436
+ })
23437
+ }), void 0), (_d = decoration === null || decoration === void 0 ? void 0 : decoration.footerRender) === null || _d === void 0 ? void 0 : _d.call(decoration), isInfiniteScroll && paddingBottom > 0 && jsx("tr", {
23438
+ children: jsx("td", {
23439
+ style: {
23440
+ height: `${paddingBottom}px`
23441
+ }
23442
+ }, void 0)
23443
+ }, void 0)]
23444
+ }), void 0)]
23445
+ }), void 0)
23446
+ }), void 0), renderContextMenu()]
23447
+ }), void 0), id && jsxs(Fragment, {
23443
23448
  children: [jsx(HeaderMenuOption, Object.assign({
23444
23449
  rowData: tableRowData,
23445
23450
  open: openMenu,
@@ -23454,11 +23459,11 @@ function Table({
23454
23459
  children: jsx(IconButton, Object.assign({
23455
23460
  css: {
23456
23461
  zIndex: '$docked',
23457
- position: 'fixed',
23458
- top: 20,
23459
- right: 10,
23462
+ position: 'absolute',
23463
+ top: '20px',
23464
+ right: '10px',
23460
23465
  '&:hover': {
23461
- backgroundColor: 'unset'
23466
+ backgroundColor: '#585f5f'
23462
23467
  },
23463
23468
  backgroundColor: '#c0c4c4',
23464
23469
  padding: 0,
@@ -23473,13 +23478,13 @@ function Table({
23473
23478
  }), void 0)
23474
23479
  }), void 0), jsx(Box, {
23475
23480
  css: {
23476
- backgroundColor: 'white',
23477
- position: 'fixed',
23481
+ position: 'absolute',
23478
23482
  top: 0,
23479
- height: tableHeight - 1,
23480
23483
  right: 0,
23481
23484
  width: 20,
23482
- boxShadow: ' -2px 0px 5px 0px #00000026'
23485
+ height: '100%',
23486
+ boxShadow: '-5px 0px 5px -3px #00000026',
23487
+ backgroundColor: 'white'
23483
23488
  }
23484
23489
  }, void 0)]
23485
23490
  }, void 0)]