ywana-core8 0.0.692 → 0.0.694
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 +17 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +17 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +17 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +11 -1
- package/src/site/dialog.js +2 -1
package/dist/index.modern.js
CHANGED
@@ -3953,9 +3953,12 @@ var Dialog = function Dialog(props) {
|
|
3953
3953
|
toolbar = props.toolbar,
|
3954
3954
|
children = props.children,
|
3955
3955
|
actions = props.actions,
|
3956
|
-
className = props.className
|
3956
|
+
className = props.className,
|
3957
|
+
onClose = props.onClose;
|
3957
3958
|
|
3958
3959
|
function close() {
|
3960
|
+
if (onClose) onClose();
|
3961
|
+
|
3959
3962
|
if (className === "prompt") {
|
3960
3963
|
site.closePromptDialog();
|
3961
3964
|
} else {
|
@@ -6318,6 +6321,18 @@ var CollectionEditor = function CollectionEditor(props) {
|
|
6318
6321
|
}
|
6319
6322
|
}
|
6320
6323
|
|
6324
|
+
function renderActions() {
|
6325
|
+
if (actions) {
|
6326
|
+
return actions.map(function (action) {
|
6327
|
+
// clone React action
|
6328
|
+
var action2 = React.cloneElement(action, {
|
6329
|
+
form: form
|
6330
|
+
});
|
6331
|
+
return action2;
|
6332
|
+
});
|
6333
|
+
}
|
6334
|
+
}
|
6335
|
+
|
6321
6336
|
function renderEditor() {
|
6322
6337
|
var content = new Content(schema, form);
|
6323
6338
|
|
@@ -6363,7 +6378,7 @@ var CollectionEditor = function CollectionEditor(props) {
|
|
6363
6378
|
raised: true,
|
6364
6379
|
disabled: !canSave(),
|
6365
6380
|
action: save
|
6366
|
-
}),
|
6381
|
+
}), renderActions()), renderEditor()) : null;
|
6367
6382
|
};
|
6368
6383
|
/**
|
6369
6384
|
* Collection Context
|