@luminati-io/uikit 3.5.13 → 3.5.15
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,7 +38412,6 @@ Provider.defaultProps = {
|
|
|
38412
38412
|
getFooterProps: defaultPropGetter,
|
|
38413
38413
|
rowDensity: 'busy_bee',
|
|
38414
38414
|
canOrderColumns: false,
|
|
38415
|
-
enableIndentation: false,
|
|
38416
38415
|
isCellEditable: function isCellEditable(_ref) {
|
|
38417
38416
|
var column = _ref.column;
|
|
38418
38417
|
return column.canEdit;
|
|
@@ -38475,8 +38474,7 @@ Provider.propTypes = {
|
|
|
38475
38474
|
rowActions: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().array),
|
|
38476
38475
|
scrollable: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
38477
38476
|
scrollHeight: (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)
|
|
38477
|
+
expandColumnId: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
38480
38478
|
};
|
|
38481
38479
|
var calcPageCount = function calcPageCount(totalCount, pageSize) {
|
|
38482
38480
|
return Math.ceil(totalCount / pageSize);
|
|
@@ -40371,11 +40369,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40371
40369
|
|
|
40372
40370
|
/*jslint react:true*/
|
|
40373
40371
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
40372
|
+
var _excluded = ["onClick", "keepPopover"];
|
|
40374
40373
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40375
40374
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
40376
40375
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
40377
40376
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
40378
40377
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
40378
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
40379
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
40379
40380
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
40380
40381
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
40381
40382
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -40413,6 +40414,7 @@ var RowMenuCell = function RowMenuCell(_ref) {
|
|
|
40413
40414
|
RowMenuCell.displayName = 'RowMenuCell';
|
|
40414
40415
|
var RowMenuCellPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_2__.withPopover)(function (p) {
|
|
40415
40416
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_3__.IconButton, {
|
|
40417
|
+
"data-testid": "row-actions-toggle",
|
|
40416
40418
|
onClick: p.popover.toggle,
|
|
40417
40419
|
icon: "DotsHorizontal",
|
|
40418
40420
|
variant: "ghost",
|
|
@@ -40432,14 +40434,16 @@ var PopoverMenu = function PopoverMenu(props) {
|
|
|
40432
40434
|
row = props.row,
|
|
40433
40435
|
togglePopover = props.togglePopover;
|
|
40434
40436
|
var items = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
|
40435
|
-
return allActions.map(function (
|
|
40436
|
-
var
|
|
40437
|
-
|
|
40438
|
-
|
|
40439
|
-
|
|
40437
|
+
return allActions.map(function (_ref2) {
|
|
40438
|
+
var onClick = _ref2.onClick,
|
|
40439
|
+
keepPopover = _ref2.keepPopover,
|
|
40440
|
+
item = _objectWithoutProperties(_ref2, _excluded);
|
|
40441
|
+
var onItemClick = function onItemClick(evt) {
|
|
40442
|
+
if (!keepPopover) togglePopover();
|
|
40443
|
+
onClick === null || onClick === void 0 || onClick(row, evt);
|
|
40440
40444
|
};
|
|
40441
40445
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
40442
|
-
onClick:
|
|
40446
|
+
onClick: onItemClick
|
|
40443
40447
|
});
|
|
40444
40448
|
});
|
|
40445
40449
|
}, [allActions]);
|
|
@@ -40462,8 +40466,8 @@ var rowMenuStyle = {
|
|
|
40462
40466
|
right: 0,
|
|
40463
40467
|
overflow: 'visible'
|
|
40464
40468
|
};
|
|
40465
|
-
var getRowMenuCellProps = function getRowMenuCellProps(props,
|
|
40466
|
-
var cell =
|
|
40469
|
+
var getRowMenuCellProps = function getRowMenuCellProps(props, _ref3) {
|
|
40470
|
+
var cell = _ref3.cell;
|
|
40467
40471
|
if (cell.column.id == 'row_menu') return [props, {
|
|
40468
40472
|
style: rowMenuStyle
|
|
40469
40473
|
}];
|
|
@@ -41193,8 +41197,7 @@ var TableCell = function TableCell(props) {
|
|
|
41193
41197
|
getCellProps = _useTableContext.getCellProps,
|
|
41194
41198
|
isCellEditable = _useTableContext.isCellEditable,
|
|
41195
41199
|
onStartEdit = _useTableContext.onStartEdit,
|
|
41196
|
-
expandColumnId = _useTableContext.expandColumnId
|
|
41197
|
-
enableIndentation = _useTableContext.enableIndentation;
|
|
41200
|
+
expandColumnId = _useTableContext.expandColumnId;
|
|
41198
41201
|
var isEditable = canEdit && isCellEditable(cell);
|
|
41199
41202
|
var startEditing = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
|
|
41200
41203
|
columnStartEditing(columnId, rowId);
|
|
@@ -41223,10 +41226,8 @@ var TableCell = function TableCell(props) {
|
|
|
41223
41226
|
}), cellProps.className);
|
|
41224
41227
|
var Wrapper = expandColumnId == columnId && (canExpand && isExpanded || depth > 0) ? ExpandedTableCellContent : TableCellContent;
|
|
41225
41228
|
var Content = isEditable ? EditableCellContent : CellContent;
|
|
41226
|
-
var indentation = enableIndentation && depth > 0 ? depth : 0;
|
|
41227
41229
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Wrapper, _extends({}, cellProps, {
|
|
41228
|
-
$isLastPinned: isLastPinned
|
|
41229
|
-
$indentation: indentation
|
|
41230
|
+
$isLastPinned: isLastPinned
|
|
41230
41231
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Content, {
|
|
41231
41232
|
$type: type,
|
|
41232
41233
|
$isEditing: isEditing,
|
|
@@ -41247,9 +41248,7 @@ var TableCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
|
|
|
41247
41248
|
var ExpandedTableCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(TableCellContent).withConfig({
|
|
41248
41249
|
displayName: "ExpandedTableCellContent",
|
|
41249
41250
|
componentId: "sc-1gdt4qg-1"
|
|
41250
|
-
})(["position:relative
|
|
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);
|
|
41251
|
+
})(["position:relative;&::before{content:'';position:absolute;left:0;top:0;height:calc(100% + 1px);border-left:4px solid ", ";}"], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_6);
|
|
41253
41252
|
var CellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
|
41254
41253
|
displayName: "CellContent",
|
|
41255
41254
|
componentId: "sc-1gdt4qg-2"
|