ywana-core8 0.0.940 → 0.0.941
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 +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +5 -0
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +5 -0
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +3 -2
package/dist/index.cjs
CHANGED
@@ -7466,6 +7466,9 @@ var CollectionPage$1 = function CollectionPage(props) {
|
|
7466
7466
|
onReload: reloadSelection,
|
7467
7467
|
patch: patch,
|
7468
7468
|
onChange: onChange,
|
7469
|
+
onClose: function onClose() {
|
7470
|
+
return onSelect(null);
|
7471
|
+
},
|
7469
7472
|
actions: editorActions,
|
7470
7473
|
title: editorTitle,
|
7471
7474
|
validator: editValidator
|
@@ -7826,6 +7829,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
|
|
7826
7829
|
canDelete = props.canDelete,
|
7827
7830
|
onReload = props.onReload,
|
7828
7831
|
onChange = props.onChange,
|
7832
|
+
onClose = props.onClose,
|
7829
7833
|
_props$patch2 = props.patch,
|
7830
7834
|
patch = _props$patch2 === void 0 ? false : _props$patch2,
|
7831
7835
|
actions = props.actions,
|
@@ -7848,6 +7852,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
|
|
7848
7852
|
function clear() {
|
7849
7853
|
pageContext.clear();
|
7850
7854
|
setPageContext(Object.assign({}, pageContext));
|
7855
|
+
if (onClose) onClose();
|
7851
7856
|
}
|
7852
7857
|
function change(next) {
|
7853
7858
|
setForm(next);
|