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.modern.js
CHANGED
@@ -7457,6 +7457,9 @@ var CollectionPage$1 = function CollectionPage(props) {
|
|
7457
7457
|
onReload: reloadSelection,
|
7458
7458
|
patch: patch,
|
7459
7459
|
onChange: onChange,
|
7460
|
+
onClose: function onClose() {
|
7461
|
+
return onSelect(null);
|
7462
|
+
},
|
7460
7463
|
actions: editorActions,
|
7461
7464
|
title: editorTitle,
|
7462
7465
|
validator: editValidator
|
@@ -7817,6 +7820,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
|
|
7817
7820
|
canDelete = props.canDelete,
|
7818
7821
|
onReload = props.onReload,
|
7819
7822
|
onChange = props.onChange,
|
7823
|
+
onClose = props.onClose,
|
7820
7824
|
_props$patch2 = props.patch,
|
7821
7825
|
patch = _props$patch2 === void 0 ? false : _props$patch2,
|
7822
7826
|
actions = props.actions,
|
@@ -7839,6 +7843,7 @@ var CollectionEditor$1 = function CollectionEditor(props) {
|
|
7839
7843
|
function clear() {
|
7840
7844
|
pageContext.clear();
|
7841
7845
|
setPageContext(Object.assign({}, pageContext));
|
7846
|
+
if (onClose) onClose();
|
7842
7847
|
}
|
7843
7848
|
function change(next) {
|
7844
7849
|
setForm(next);
|