@true-engineering/true-react-common-ui-kit 3.0.0-alpha.18 → 3.0.0-alpha.19

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.
@@ -22448,55 +22448,53 @@
22448
22448
  })
22449
22449
  })
22450
22450
  }),
22451
- /* @__PURE__ */ jsxs("tbody", {
22452
- children: [
22453
- !trueReactPlatformHelpers.isArrayNotEmpty(content) && nothingFoundContent !== void 0 && !(infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.isLoading) && ((infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.isLastPage) === void 0 || infinityScrollConfig.isLastPage) && /* @__PURE__ */ jsx("tr", {
22454
- children: /* @__PURE__ */ jsx("td", {
22455
- colSpan: showedColumns.length,
22456
- children: nothingFoundContent
22451
+ /* @__PURE__ */ jsx("tbody", {
22452
+ children: isLoading ? trueReactPlatformHelpers.indexMap(6, function(i) {
22453
+ return /* @__PURE__ */ jsx("tr", {
22454
+ children: showedColumns.map(function(_, j) {
22455
+ return /* @__PURE__ */ jsx("td", {
22456
+ className: classes.skeleton,
22457
+ children: /* @__PURE__ */ jsx(Skeleton, {})
22458
+ }, j);
22457
22459
  })
22458
- }),
22459
- isLoading ? trueReactPlatformHelpers.indexMap(6, function(i) {
22460
- return /* @__PURE__ */ jsx("tr", {
22461
- children: showedColumns.map(function(_, j) {
22462
- return /* @__PURE__ */ jsx("td", {
22463
- className: classes.skeleton,
22464
- children: /* @__PURE__ */ jsx(Skeleton, {})
22465
- }, j);
22460
+ }, i);
22461
+ }) : /* @__PURE__ */ jsxs(Fragment, {
22462
+ children: [
22463
+ !trueReactPlatformHelpers.isArrayNotEmpty(content) && nothingFoundContent !== void 0 && !(infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.isLoading) && ((infinityScrollConfig === null || infinityScrollConfig === void 0 ? void 0 : infinityScrollConfig.isLastPage) === void 0 || infinityScrollConfig.isLastPage) && /* @__PURE__ */ jsx("tr", {
22464
+ children: /* @__PURE__ */ jsx("td", {
22465
+ colSpan: showedColumns.length,
22466
+ children: nothingFoundContent
22466
22467
  })
22467
- }, i);
22468
- }) : /* @__PURE__ */ jsxs(Fragment, {
22469
- children: [
22470
- content.map(function(item, i) {
22471
- return jsx(FlexibleTableRow, {
22472
- item,
22473
- uniqueField,
22474
- isActive: (_activeRows_includes = activeRows === null || activeRows === void 0 ? void 0 : activeRows.includes(i)) !== null && _activeRows_includes !== void 0 ? _activeRows_includes : false,
22475
- isFirstColumnSticky,
22476
- onRowClick,
22477
- onRowHover,
22478
- enabledColumns,
22479
- config,
22480
- rowAttributes,
22481
- tweakStyles: tweakTableRowStyles,
22482
- expandableRowComponent
22483
- }, trueReactPlatformHelpers.isNotEmpty(uniqueField) ? item[uniqueField] : i);
22484
- }),
22485
- infinityScrollConfig !== void 0 && !infinityScrollConfig.isLastPage && /* @__PURE__ */ jsx("tr", {
22486
- children: /* @__PURE__ */ jsx("td", {
22487
- colSpan: showedColumns.length,
22488
- children: /* @__PURE__ */ jsx("div", {
22489
- ref: initIntersectionObserver,
22490
- className: classes.loader,
22491
- children: /* @__PURE__ */ jsx(ThemedPreloader, {
22492
- type: "dots"
22493
- })
22468
+ }),
22469
+ content.map(function(item, i) {
22470
+ return jsx(FlexibleTableRow, {
22471
+ item,
22472
+ uniqueField,
22473
+ isActive: (_activeRows_includes = activeRows === null || activeRows === void 0 ? void 0 : activeRows.includes(i)) !== null && _activeRows_includes !== void 0 ? _activeRows_includes : false,
22474
+ isFirstColumnSticky,
22475
+ onRowClick,
22476
+ onRowHover,
22477
+ enabledColumns,
22478
+ config,
22479
+ rowAttributes,
22480
+ tweakStyles: tweakTableRowStyles,
22481
+ expandableRowComponent
22482
+ }, trueReactPlatformHelpers.isNotEmpty(uniqueField) ? item[uniqueField] : i);
22483
+ }),
22484
+ infinityScrollConfig !== void 0 && !infinityScrollConfig.isLastPage && /* @__PURE__ */ jsx("tr", {
22485
+ children: /* @__PURE__ */ jsx("td", {
22486
+ colSpan: showedColumns.length,
22487
+ children: /* @__PURE__ */ jsx("div", {
22488
+ ref: initIntersectionObserver,
22489
+ className: classes.loader,
22490
+ children: /* @__PURE__ */ jsx(ThemedPreloader, {
22491
+ type: "dots"
22494
22492
  })
22495
22493
  })
22496
22494
  })
22497
- ]
22498
- })
22499
- ]
22495
+ })
22496
+ ]
22497
+ })
22500
22498
  })
22501
22499
  ]
22502
22500
  }))