ywana-core8 0.0.787 → 0.0.789
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.
- package/dist/index.cjs +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +12 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +12 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets/upload/UploadDialog.js +7 -3
package/dist/index.umd.js
CHANGED
@@ -4346,7 +4346,10 @@
|
|
4346
4346
|
onClose = _ref.onClose,
|
4347
4347
|
children = _ref.children,
|
4348
4348
|
className = _ref.className,
|
4349
|
-
disabled = _ref.disabled
|
4349
|
+
disabled = _ref.disabled,
|
4350
|
+
onCanClose = _ref.onCanClose,
|
4351
|
+
_ref$overlayCanClose = _ref.overlayCanClose,
|
4352
|
+
overlayCanClose = _ref$overlayCanClose === void 0 ? true : _ref$overlayCanClose;
|
4350
4353
|
var site = React.useContext(SiteContext);
|
4351
4354
|
|
4352
4355
|
function success(file, message) {
|
@@ -4364,11 +4367,16 @@
|
|
4364
4367
|
}
|
4365
4368
|
}
|
4366
4369
|
|
4370
|
+
function canClose() {
|
4371
|
+
return onCanClose ? onCanClose() : true;
|
4372
|
+
}
|
4373
|
+
|
4367
4374
|
var actions = /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, /*#__PURE__*/React__default["default"].createElement(Button, {
|
4368
4375
|
label: "CERRAR",
|
4369
4376
|
action: function action() {
|
4370
4377
|
return onAction("CLOSE");
|
4371
|
-
}
|
4378
|
+
},
|
4379
|
+
disabled: canClose()
|
4372
4380
|
}));
|
4373
4381
|
var title = /*#__PURE__*/React__default["default"].createElement(Text, {
|
4374
4382
|
use: "headline6"
|
@@ -4378,7 +4386,8 @@
|
|
4378
4386
|
open: true,
|
4379
4387
|
onAction: onAction,
|
4380
4388
|
actions: actions,
|
4381
|
-
className: className
|
4389
|
+
className: className,
|
4390
|
+
overlayCanClose: overlayCanClose
|
4382
4391
|
}, disabled ? "" : /*#__PURE__*/React__default["default"].createElement(Uploader, {
|
4383
4392
|
label: label,
|
4384
4393
|
accept: accept,
|