neo.mjs 5.3.1 → 5.3.3
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 +2 -2
- package/apps/form/view/FormContainerController.mjs +4 -0
- package/examples/ServiceWorker.mjs +2 -2
- package/package.json +1 -1
- package/src/DefaultConfig.mjs +2 -2
- package/src/form/field/Base.mjs +15 -3
- package/src/form/field/CheckBox.mjs +1 -5
- package/src/form/field/Select.mjs +18 -5
package/apps/ServiceWorker.mjs
CHANGED
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.3'
|
241
241
|
* @memberOf! module:Neo
|
242
242
|
* @name config.version
|
243
243
|
* @type String
|
244
244
|
*/
|
245
|
-
version: '5.3.
|
245
|
+
version: '5.3.3'
|
246
246
|
};
|
247
247
|
|
248
248
|
Object.assign(DefaultConfig, {
|
package/src/form/field/Base.mjs
CHANGED
@@ -81,11 +81,23 @@ class Base extends Component {
|
|
81
81
|
* @param {*} oldValue
|
82
82
|
*/
|
83
83
|
fireChangeEvent(value, oldValue) {
|
84
|
-
this
|
85
|
-
|
84
|
+
let me = this;
|
85
|
+
|
86
|
+
me.fire('change', {
|
87
|
+
component: me,
|
86
88
|
oldValue,
|
87
89
|
value
|
88
90
|
});
|
91
|
+
|
92
|
+
ComponentManager.getParents(me).forEach(parent => {
|
93
|
+
if (parent instanceof Neo.form.Container) {
|
94
|
+
parent.fire('fieldChange', {
|
95
|
+
component: me,
|
96
|
+
oldValue,
|
97
|
+
value
|
98
|
+
})
|
99
|
+
}
|
100
|
+
})
|
89
101
|
}
|
90
102
|
|
91
103
|
/**
|
@@ -114,7 +126,7 @@ class Base extends Component {
|
|
114
126
|
if (parent instanceof Neo.form.Container) {
|
115
127
|
parent.fire('fieldFocusLeave', {
|
116
128
|
...data,
|
117
|
-
|
129
|
+
component: this
|
118
130
|
})
|
119
131
|
}
|
120
132
|
})
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import ClassSystemUtil
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
1
|
+
import ClassSystemUtil from '../../util/ClassSystem.mjs';
|
2
|
+
import ComponentManager from '../../manager/Component.mjs';
|
3
|
+
import List from '../../list/Base.mjs';
|
4
|
+
import Picker from './Picker.mjs';
|
5
|
+
import Store from '../../data/Store.mjs';
|
6
|
+
import VDomUtil from '../../util/VDom.mjs';
|
6
7
|
|
7
8
|
/**
|
8
9
|
* Provides a dropdown list to select one or multiple items
|
@@ -306,6 +307,18 @@ class Select extends Picker {
|
|
306
307
|
oldValue,
|
307
308
|
record,
|
308
309
|
value
|
310
|
+
});
|
311
|
+
|
312
|
+
ComponentManager.getParents(me).forEach(parent => {
|
313
|
+
if (parent instanceof Neo.form.Container) {
|
314
|
+
parent.fire('fieldChange', {
|
315
|
+
component: me,
|
316
|
+
oldRecord,
|
317
|
+
oldValue,
|
318
|
+
record,
|
319
|
+
value
|
320
|
+
})
|
321
|
+
}
|
309
322
|
})
|
310
323
|
}
|
311
324
|
}
|