neo.mjs 4.0.55 → 4.0.58

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "4.0.55",
3
+ "version": "4.0.58",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -137,6 +137,18 @@ class Container extends BaseContainer {
137
137
  }
138
138
  });
139
139
  }
140
+
141
+ /**
142
+ * Updates the invalid state for all fields, which have updateValidationIndicators() implemented.
143
+ * This can be useful for create entity forms which show up "clean", when pressing a submit button.
144
+ */
145
+ updateValidationIndicators() {
146
+ let fields = this.getFields();
147
+
148
+ fields.forEach(item => {
149
+ item.updateValidationIndicators?.(false);
150
+ });
151
+ }
140
152
  }
141
153
 
142
154
  Neo.applyClassConfig(Container);
@@ -887,7 +887,7 @@ class Text extends Base {
887
887
 
888
888
  me.updateValidationIndicators();
889
889
 
890
- NeoArray.remove(me.cls, 'neo-focus');
890
+ NeoArray.remove(me._cls, 'neo-focus');
891
891
 
892
892
  if (centerBorderEl && me.isEmpty()) {
893
893
  delete centerBorderEl.width;