ywana-core8 0.0.667 → 0.0.668
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 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +5 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +5 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +4 -3
package/dist/index.cjs
CHANGED
@@ -5661,6 +5661,7 @@ var CollectionPage = function CollectionPage(props) {
|
|
5661
5661
|
_props$actions = props.actions,
|
5662
5662
|
actions = _props$actions === void 0 ? [] : _props$actions,
|
5663
5663
|
onSelect = props.onSelect,
|
5664
|
+
onChange = props.onChange,
|
5664
5665
|
_props$canFilter = props.canFilter,
|
5665
5666
|
canFilter = _props$canFilter === void 0 ? false : _props$canFilter,
|
5666
5667
|
_props$canAdd = props.canAdd,
|
@@ -5774,7 +5775,8 @@ var CollectionPage = function CollectionPage(props) {
|
|
5774
5775
|
delay: delay,
|
5775
5776
|
canDelete: canDelete,
|
5776
5777
|
onReload: reloadSelection,
|
5777
|
-
patch: patch
|
5778
|
+
patch: patch,
|
5779
|
+
onChange: onChange
|
5778
5780
|
}), children ? /*#__PURE__*/React__default["default"].createElement("article", null, children) : null, /*#__PURE__*/React__default["default"].createElement("footer", null, footer)));
|
5779
5781
|
};
|
5780
5782
|
var CollectionFilters = function CollectionFilters(props) {
|
@@ -6080,6 +6082,7 @@ var CollectionEditor = function CollectionEditor(props) {
|
|
6080
6082
|
var save = function save() {
|
6081
6083
|
try {
|
6082
6084
|
var _temp3 = function _temp3() {
|
6085
|
+
if (onChange) onChange(form);
|
6083
6086
|
setPageContext(Object.assign({}, pageContext));
|
6084
6087
|
};
|
6085
6088
|
|
@@ -6122,6 +6125,7 @@ var CollectionEditor = function CollectionEditor(props) {
|
|
6122
6125
|
delay = _props$delay2 === void 0 ? 1000 : _props$delay2,
|
6123
6126
|
canDelete = props.canDelete,
|
6124
6127
|
onReload = props.onReload,
|
6128
|
+
onChange = props.onChange,
|
6125
6129
|
_props$patch2 = props.patch,
|
6126
6130
|
patch = _props$patch2 === void 0 ? false : _props$patch2;
|
6127
6131
|
var timer = React.useRef(null);
|