neo.mjs 4.6.12 → 4.7.0

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.
@@ -0,0 +1,13 @@
1
+ Neo.overrides = {
2
+ Neo: {
3
+ form: {
4
+ field: {
5
+ CheckBox: {
6
+ iconCls: ['fas', 'fa-rocket']
7
+ }
8
+ }
9
+ }
10
+ }
11
+ };
12
+
13
+ export default Neo.overrides;
@@ -1,3 +1,4 @@
1
+ import Overrides from './Overrides.mjs';
1
2
  import MainContainer from './MainContainer.mjs';
2
3
 
3
4
  export const onStart = () => Neo.app({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "4.6.12",
3
+ "version": "4.7.0",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
package/src/Neo.mjs CHANGED
@@ -52,7 +52,7 @@ Neo = globalThis.Neo = Object.assign({
52
52
  baseStaticCfg = null,
53
53
  proto = cls.prototype || cls,
54
54
  protos = [],
55
- config, ctor, staticConfig;
55
+ config, ctor, overrides, staticConfig;
56
56
 
57
57
  while (proto.__proto__) {
58
58
  ctor = proto.constructor;
@@ -127,6 +127,11 @@ Neo = globalThis.Neo = Object.assign({
127
127
  Object.assign(config, cfg);
128
128
  Object.assign(staticConfig, staticCfg);
129
129
 
130
+ if (Neo.overrides) {
131
+ overrides = Neo.ns(config.className, false, Neo.overrides);
132
+ overrides && Object.assign(config, overrides);
133
+ }
134
+
130
135
  Object.assign(ctor, {
131
136
  classConfigApplied: true,
132
137
  config : Neo.clone(config, true),