@luminati-io/uikit 6.3.60 → 6.3.61
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.
@@ -51414,7 +51414,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
51414
51414
|
|
51415
51415
|
|
51416
51416
|
/*jslint react:true*/
|
51417
|
-
var _excluded = ["className", "classNamePrefix", "closeOnOutsideClick", "zIndex", "show", "afterClose", "closable", "onClose", "onConfirm", "okLabel", "cancelLabel", "okProps", "cancelProps", "size", "content", "title"];
|
51417
|
+
var _excluded = ["className", "classNamePrefix", "closeOnOutsideClick", "zIndex", "show", "afterClose", "closable", "onClose", "returnAction", "onConfirm", "okLabel", "cancelLabel", "okProps", "cancelProps", "size", "content", "title"];
|
51418
51418
|
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); }
|
51419
51419
|
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); }
|
51420
51420
|
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; }
|
@@ -51438,6 +51438,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
51438
51438
|
|
51439
51439
|
|
51440
51440
|
|
51441
|
+
var ACTION = {
|
51442
|
+
CONFIRMED: 'confirmed',
|
51443
|
+
CANCELED: 'canceled',
|
51444
|
+
CLOSED: 'closed'
|
51445
|
+
};
|
51441
51446
|
var destroyFns = [];
|
51442
51447
|
var withWarn = function withWarn(props) {
|
51443
51448
|
return _objectSpread(_objectSpread({}, props), {}, {
|
@@ -51537,6 +51542,8 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
51537
51542
|
_ref$closable = _ref.closable,
|
51538
51543
|
closable = _ref$closable === void 0 ? false : _ref$closable,
|
51539
51544
|
_onClose = _ref.onClose,
|
51545
|
+
_ref$returnAction = _ref.returnAction,
|
51546
|
+
returnAction = _ref$returnAction === void 0 ? false : _ref$returnAction,
|
51540
51547
|
onConfirm = _ref.onConfirm,
|
51541
51548
|
okLabel = _ref.okLabel,
|
51542
51549
|
cancelLabel = _ref.cancelLabel,
|
@@ -51557,7 +51564,7 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
51557
51564
|
_onClose === null || _onClose === void 0 || _onClose({
|
51558
51565
|
triggerCancel: true
|
51559
51566
|
});
|
51560
|
-
onConfirm === null || onConfirm === void 0 || onConfirm(false);
|
51567
|
+
onConfirm === null || onConfirm === void 0 || onConfirm(returnAction ? ACTION.CLOSED : false);
|
51561
51568
|
},
|
51562
51569
|
show: show,
|
51563
51570
|
title: title,
|
@@ -51573,11 +51580,11 @@ var ConfirmModal = function ConfirmModal(_ref) {
|
|
51573
51580
|
_onClose === null || _onClose === void 0 || _onClose({
|
51574
51581
|
triggerCancel: true
|
51575
51582
|
});
|
51576
|
-
onConfirm === null || onConfirm === void 0 || onConfirm(true);
|
51583
|
+
onConfirm === null || onConfirm === void 0 || onConfirm(returnAction ? ACTION.CONFIRMED : true);
|
51577
51584
|
},
|
51578
51585
|
onCancel: function onCancel() {
|
51579
51586
|
_onClose === null || _onClose === void 0 || _onClose();
|
51580
|
-
onConfirm === null || onConfirm === void 0 || onConfirm(false);
|
51587
|
+
onConfirm === null || onConfirm === void 0 || onConfirm(returnAction ? ACTION.CANCELED : false);
|
51581
51588
|
},
|
51582
51589
|
okProps: okProps,
|
51583
51590
|
cancelProps: cancelProps
|