@luminati-io/uikit 6.2.10 → 6.2.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -47887,7 +47887,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
47887
47887
|
|
47888
47888
|
|
47889
47889
|
/*jslint react:true*/
|
47890
|
+
var _excluded = ["isMenuCell"];
|
47890
47891
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
47892
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
47893
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
47891
47894
|
|
47892
47895
|
|
47893
47896
|
|
@@ -47922,16 +47925,18 @@ var TableCell = function TableCell(props) {
|
|
47922
47925
|
var doneEditing = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
|
47923
47926
|
columnDoneEditing(columnId, rowId);
|
47924
47927
|
}, [columnDoneEditing, columnId, rowId]);
|
47925
|
-
var
|
47928
|
+
var _cell$getCellProps = cell.getCellProps([getColumnProps(column), getCellProps(cell)]),
|
47929
|
+
isMenuCell = _cell$getCellProps.isMenuCell,
|
47930
|
+
cellProps = _objectWithoutProperties(_cell$getCellProps, _excluded);
|
47926
47931
|
var onClick = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
|
47927
|
-
if (isEditable ||
|
47932
|
+
if (isEditable || isMenuCell) {
|
47928
47933
|
evt.stopPropagation();
|
47929
47934
|
onStartEdit === null || onStartEdit === void 0 || onStartEdit(cell, {
|
47930
47935
|
startEditing: startEditing,
|
47931
47936
|
doneEditing: doneEditing
|
47932
47937
|
});
|
47933
47938
|
}
|
47934
|
-
}, [isEditable, onStartEdit, startEditing, doneEditing,
|
47939
|
+
}, [isEditable, onStartEdit, startEditing, doneEditing, isMenuCell]);
|
47935
47940
|
cellProps.className = (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(null, null, (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(column.className, {
|
47936
47941
|
cell: true
|
47937
47942
|
}), (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(className, {
|