@luminati-io/uikit 3.5.11 → 3.5.13-beta.2
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.
|
@@ -38412,6 +38412,7 @@ Provider.defaultProps = {
|
|
|
38412
38412
|
getFooterProps: defaultPropGetter,
|
|
38413
38413
|
rowDensity: 'busy_bee',
|
|
38414
38414
|
canOrderColumns: false,
|
|
38415
|
+
enableIndentation: false,
|
|
38415
38416
|
isCellEditable: function isCellEditable(_ref) {
|
|
38416
38417
|
var column = _ref.column;
|
|
38417
38418
|
return column.canEdit;
|
|
@@ -38474,7 +38475,8 @@ Provider.propTypes = {
|
|
|
38474
38475
|
rowActions: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array),
|
|
38475
38476
|
scrollable: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
38476
38477
|
scrollHeight: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
38477
|
-
expandColumnId: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
38478
|
+
expandColumnId: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
38479
|
+
enableIndentation: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
|
|
38478
38480
|
};
|
|
38479
38481
|
var calcPageCount = function calcPageCount(totalCount, pageSize) {
|
|
38480
38482
|
return Math.ceil(totalCount / pageSize);
|
|
@@ -41191,7 +41193,8 @@ var TableCell = function TableCell(props) {
|
|
|
41191
41193
|
getCellProps = _useTableContext.getCellProps,
|
|
41192
41194
|
isCellEditable = _useTableContext.isCellEditable,
|
|
41193
41195
|
onStartEdit = _useTableContext.onStartEdit,
|
|
41194
|
-
expandColumnId = _useTableContext.expandColumnId
|
|
41196
|
+
expandColumnId = _useTableContext.expandColumnId,
|
|
41197
|
+
enableIndentation = _useTableContext.enableIndentation;
|
|
41195
41198
|
var isEditable = canEdit && isCellEditable(cell);
|
|
41196
41199
|
var startEditing = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
|
|
41197
41200
|
columnStartEditing(columnId, rowId);
|
|
@@ -41220,8 +41223,10 @@ var TableCell = function TableCell(props) {
|
|
|
41220
41223
|
}), cellProps.className);
|
|
41221
41224
|
var Wrapper = expandColumnId == columnId && (canExpand && isExpanded || depth > 0) ? ExpandedTableCellContent : TableCellContent;
|
|
41222
41225
|
var Content = isEditable ? EditableCellContent : CellContent;
|
|
41226
|
+
var indentation = enableIndentation && depth > 0 ? depth : 0;
|
|
41223
41227
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Wrapper, _extends({}, cellProps, {
|
|
41224
|
-
$isLastPinned: isLastPinned
|
|
41228
|
+
$isLastPinned: isLastPinned,
|
|
41229
|
+
$indentation: indentation
|
|
41225
41230
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Content, {
|
|
41226
41231
|
$type: type,
|
|
41227
41232
|
$isEditing: isEditing,
|
|
@@ -41242,7 +41247,9 @@ var TableCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
|
|
|
41242
41247
|
var ExpandedTableCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(TableCellContent).withConfig({
|
|
41243
41248
|
displayName: "ExpandedTableCellContent",
|
|
41244
41249
|
componentId: "sc-1gdt4qg-1"
|
|
41245
|
-
})(["position:relative
|
|
41250
|
+
})(["position:relative;", " &::before{content:'';position:absolute;left:0;top:0;height:calc(100% + 1px);border-left:4px solid ", ";}"], function (props) {
|
|
41251
|
+
return props.$indentation ? (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["padding-left:", "px;&::after{content:'';position:absolute;left ", "px;top:0;height:calc(100% + 1px);border-left:2px solid ", ";}"], props.$indentation * 15, props.$indentation * 15, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_6) : undefined;
|
|
41252
|
+
}, _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_6);
|
|
41246
41253
|
var CellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
|
41247
41254
|
displayName: "CellContent",
|
|
41248
41255
|
componentId: "sc-1gdt4qg-2"
|