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