@luminati-io/uikit 6.2.10-beta.0 → 6.2.11-beta.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -34878,7 +34878,9 @@ var Drawer = function Drawer(_ref) {
|
|
34878
34878
|
cancelProps = _ref.cancelProps,
|
34879
34879
|
_ref$footerVariant = _ref.footerVariant,
|
34880
34880
|
footerVariant = _ref$footerVariant === void 0 ? 'horizontal' : _ref$footerVariant,
|
34881
|
-
afterOpenChange = _ref.afterOpenChange
|
34881
|
+
afterOpenChange = _ref.afterOpenChange,
|
34882
|
+
_ref$mask = _ref.mask,
|
34883
|
+
mask = _ref$mask === void 0 ? false : _ref$mask;
|
34882
34884
|
var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)();
|
34883
34885
|
var renderCancel = !footer && !!(onCancel && cancelLabel);
|
34884
34886
|
var renderOk = !footer && !!(onOk && okLabel);
|
@@ -34915,6 +34917,7 @@ var Drawer = function Drawer(_ref) {
|
|
34915
34917
|
zIndex: _constants__WEBPACK_IMPORTED_MODULE_4__.Z_INDEX.drawer,
|
34916
34918
|
maskClosable: closable,
|
34917
34919
|
afterOpenChange: afterOpenChange,
|
34920
|
+
mask: mask,
|
34918
34921
|
maskMotion: maskMotion,
|
34919
34922
|
motion: motion
|
34920
34923
|
}, closable && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_6__.IconButton, {
|
@@ -34961,7 +34964,8 @@ Drawer.propTypes = {
|
|
34961
34964
|
onCancel: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
34962
34965
|
cancelProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
34963
34966
|
footerVariant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['vertical', 'horizontal', 'horizontal_full']),
|
34964
|
-
afterOpenChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
34967
|
+
afterOpenChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
34968
|
+
mask: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
34965
34969
|
};
|
34966
34970
|
var DrawerStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.createGlobalStyle)([".", "{inset:0;position:fixed;pointer-events:none;&-inline{position:absolute;}&-mask{inset:0;position:absolute;background-color:", ";background-color:", ";filter:alpha(opacity=70);pointer-events:auto;}&-content-wrapper{position:absolute;overflow:hidden;&-hidden{display:none;}}&-left &-content-wrapper{top:0;bottom:0;left:0;}&-right &-content-wrapper{top:0;right:0;bottom:0;}&-content{position:relative;display:flex;flex-direction:column;width:100%;height:100%;background:", ";pointer-events:auto;}&-left &-content{border-right:1px solid ", ";}&-right &-content{border-left:1px solid ", ";}&-close{position:absolute;margin-top:16px;inset-inline-end:16px;z-index:1;background:transparent;}&-header{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";}&-body{flex:1;overflow:auto;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";color:", ";", "}&-footer{padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";border-top:1px solid ", ";}&-mask-motion{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0;}}}&-panel-motion{&-left,&-right{&-enter,&-appear,&-leave{&-start{transition:none;}&-active{transition:all 0.3s;}}&-enter,&-appear{opacity:0.7;&-active{opacity:1;}}&-leave{opacity:1;&-active{opacity:0.7;}}}&-left{&-enter,&-appear{transform:translateX(-100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(-100%);}}}&-right{&-enter,&-appear{transform:translateX(100%);&-active{transform:none;}}&-leave{transform:none;&-active{transform:translateX(100%);}}}}}"], function (_ref2) {
|
34967
34971
|
var $prefixCls = _ref2.$prefixCls;
|
@@ -47883,7 +47887,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
47883
47887
|
|
47884
47888
|
|
47885
47889
|
/*jslint react:true*/
|
47890
|
+
var _excluded = ["isMenuCell"];
|
47886
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; }
|
47887
47894
|
|
47888
47895
|
|
47889
47896
|
|
@@ -47918,16 +47925,18 @@ var TableCell = function TableCell(props) {
|
|
47918
47925
|
var doneEditing = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {
|
47919
47926
|
columnDoneEditing(columnId, rowId);
|
47920
47927
|
}, [columnDoneEditing, columnId, rowId]);
|
47921
|
-
var
|
47928
|
+
var _cell$getCellProps = cell.getCellProps([getColumnProps(column), getCellProps(cell)]),
|
47929
|
+
isMenuCell = _cell$getCellProps.isMenuCell,
|
47930
|
+
cellProps = _objectWithoutProperties(_cell$getCellProps, _excluded);
|
47922
47931
|
var onClick = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (evt) {
|
47923
|
-
if (isEditable ||
|
47932
|
+
if (isEditable || isMenuCell) {
|
47924
47933
|
evt.stopPropagation();
|
47925
47934
|
onStartEdit === null || onStartEdit === void 0 || onStartEdit(cell, {
|
47926
47935
|
startEditing: startEditing,
|
47927
47936
|
doneEditing: doneEditing
|
47928
47937
|
});
|
47929
47938
|
}
|
47930
|
-
}, [isEditable, onStartEdit, startEditing, doneEditing,
|
47939
|
+
}, [isEditable, onStartEdit, startEditing, doneEditing, isMenuCell]);
|
47931
47940
|
cellProps.className = (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(null, null, (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(column.className, {
|
47932
47941
|
cell: true
|
47933
47942
|
}), (0,_util__WEBPACK_IMPORTED_MODULE_2__.classNames)(className, {
|