neo.mjs 5.3.0 → 5.3.1
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/apps/ServiceWorker.mjs
CHANGED
@@ -13,6 +13,17 @@ class FormContainerController extends Component {
|
|
13
13
|
className: 'Form.view.FormContainerController'
|
14
14
|
}
|
15
15
|
|
16
|
+
/**
|
17
|
+
*
|
18
|
+
*/
|
19
|
+
onComponentConstructed() {
|
20
|
+
super.onComponentConstructed();
|
21
|
+
|
22
|
+
this.component.on('fieldFocusLeave', data => {
|
23
|
+
console.log('fieldFocusLeave', data);
|
24
|
+
})
|
25
|
+
}
|
26
|
+
|
16
27
|
/**
|
17
28
|
* @param {Object} data
|
18
29
|
*/
|
package/package.json
CHANGED
package/src/DefaultConfig.mjs
CHANGED
@@ -237,12 +237,12 @@ const DefaultConfig = {
|
|
237
237
|
useVdomWorker: true,
|
238
238
|
/**
|
239
239
|
* buildScripts/injectPackageVersion.mjs will update this value
|
240
|
-
* @default '5.3.
|
240
|
+
* @default '5.3.1'
|
241
241
|
* @memberOf! module:Neo
|
242
242
|
* @name config.version
|
243
243
|
* @type String
|
244
244
|
*/
|
245
|
-
version: '5.3.
|
245
|
+
version: '5.3.1'
|
246
246
|
};
|
247
247
|
|
248
248
|
Object.assign(DefaultConfig, {
|
package/src/form/field/Base.mjs
CHANGED
@@ -102,6 +102,24 @@ class Base extends Component {
|
|
102
102
|
return true;
|
103
103
|
}
|
104
104
|
|
105
|
+
/**
|
106
|
+
* @param {Object} data
|
107
|
+
* @param {Object[]} data.oldPath
|
108
|
+
* @protected
|
109
|
+
*/
|
110
|
+
onFocusLeave(data) {
|
111
|
+
super.onFocusLeave?.(data);
|
112
|
+
|
113
|
+
ComponentManager.getParents(this).forEach(parent => {
|
114
|
+
if (parent instanceof Neo.form.Container) {
|
115
|
+
parent.fire('fieldFocusLeave', {
|
116
|
+
...data,
|
117
|
+
field: this
|
118
|
+
})
|
119
|
+
}
|
120
|
+
})
|
121
|
+
}
|
122
|
+
|
105
123
|
/**
|
106
124
|
* Resets the field to a new value or null
|
107
125
|
* @param {*} value=null
|