@onehat/ui 0.3.42 → 0.3.43
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/package.json
CHANGED
|
@@ -30,6 +30,7 @@ export default function withEditor(WrappedComponent, isTree = false) {
|
|
|
30
30
|
return 'record' + (selection[0].displayValue ? ' "' + selection[0].displayValue + '"' : '') + '?';
|
|
31
31
|
},
|
|
32
32
|
record,
|
|
33
|
+
onChange,
|
|
33
34
|
|
|
34
35
|
// withComponent
|
|
35
36
|
self,
|
|
@@ -123,6 +124,9 @@ export default function withEditor(WrappedComponent, isTree = false) {
|
|
|
123
124
|
if (getListeners().onAfterAdd) {
|
|
124
125
|
await getListeners().onAfterAdd(entity);
|
|
125
126
|
}
|
|
127
|
+
if (onChange) {
|
|
128
|
+
onChange();
|
|
129
|
+
}
|
|
126
130
|
},
|
|
127
131
|
onEdit = async () => {
|
|
128
132
|
if (_.isEmpty(selection) || (_.isArray(selection) && (selection.length > 1 || selection[0]?.isDestroyed))) {
|
|
@@ -206,6 +210,9 @@ export default function withEditor(WrappedComponent, isTree = false) {
|
|
|
206
210
|
if (cb) {
|
|
207
211
|
cb();
|
|
208
212
|
}
|
|
213
|
+
if (onChange) {
|
|
214
|
+
onChange();
|
|
215
|
+
}
|
|
209
216
|
},
|
|
210
217
|
onView = async () => {
|
|
211
218
|
if (!userCanView) {
|
|
@@ -312,6 +319,9 @@ export default function withEditor(WrappedComponent, isTree = false) {
|
|
|
312
319
|
if (getListeners().onAfterEdit) {
|
|
313
320
|
await getListeners().onAfterEdit(what);
|
|
314
321
|
}
|
|
322
|
+
if (onChange) {
|
|
323
|
+
onChange();
|
|
324
|
+
}
|
|
315
325
|
|
|
316
326
|
return true;
|
|
317
327
|
},
|