neo.mjs 3.0.6 → 3.1.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.
Files changed (37) hide show
  1. package/README.md +0 -2
  2. package/apps/covid/Util.mjs +3 -3
  3. package/apps/sharedcovid/Util.mjs +3 -3
  4. package/apps/sharedcovid/view/MainContainerController.mjs +1 -1
  5. package/apps/website/data/blog.json +26 -0
  6. package/buildScripts/buildAll.mjs +137 -0
  7. package/buildScripts/buildThemes.mjs +436 -0
  8. package/buildScripts/{copyFolder.js → copyFolder.mjs} +3 -5
  9. package/buildScripts/createApp.mjs +289 -0
  10. package/buildScripts/docs/{jsdocx.js → jsdocx.mjs} +32 -32
  11. package/buildScripts/webpack/buildMyApps.mjs +126 -0
  12. package/buildScripts/webpack/buildThreads.mjs +116 -0
  13. package/buildScripts/webpack/development/{webpack.config.appworker.js → webpack.config.appworker.mjs} +20 -22
  14. package/buildScripts/webpack/development/webpack.config.main.mjs +24 -0
  15. package/buildScripts/webpack/development/{webpack.config.myapps.js → webpack.config.myapps.mjs} +15 -15
  16. package/buildScripts/webpack/development/{webpack.config.worker.js → webpack.config.worker.mjs} +12 -9
  17. package/buildScripts/webpack/production/{webpack.config.appworker.js → webpack.config.appworker.mjs} +20 -22
  18. package/buildScripts/webpack/production/webpack.config.main.mjs +23 -0
  19. package/buildScripts/webpack/production/{webpack.config.myapps.js → webpack.config.myapps.mjs} +15 -15
  20. package/buildScripts/webpack/production/{webpack.config.worker.js → webpack.config.worker.mjs} +12 -9
  21. package/buildScripts/webpack/{webpack.server.config.js → webpack.server.config.mjs} +2 -2
  22. package/docs/app/view/classdetails/MembersList.mjs +7 -13
  23. package/package.json +14 -13
  24. package/src/DefaultConfig.mjs +1 -1
  25. package/src/Neo.mjs +13 -13
  26. package/src/core/Base.mjs +8 -6
  27. package/src/main/addon/AmCharts.mjs +2 -2
  28. package/src/manager/DomEvent.mjs +1 -1
  29. package/src/worker/Base.mjs +6 -5
  30. package/buildScripts/buildAll.js +0 -148
  31. package/buildScripts/buildThemes.js +0 -442
  32. package/buildScripts/createApp.js +0 -283
  33. package/buildScripts/webpack/buildMyApps.js +0 -125
  34. package/buildScripts/webpack/buildThreads.js +0 -112
  35. package/buildScripts/webpack/development/webpack.config.main.js +0 -21
  36. package/buildScripts/webpack/index.ejs +0 -25
  37. package/buildScripts/webpack/production/webpack.config.main.js +0 -20
@@ -1,28 +1,30 @@
1
+ import fs from 'fs-extra';
2
+ import path from 'path';
3
+ import webpack from 'webpack';
4
+ import WebpackHookPlugin from 'webpack-hook-plugin';
5
+
1
6
  const cwd = process.cwd(),
2
- fs = require('fs-extra'),
3
- path = require('path'),
4
- buildTarget = require('./buildTarget.json'),
5
- WebpackHookPlugin = require('webpack-hook-plugin'),
6
7
  configPath = path.resolve(cwd, 'buildScripts/myApps.json'),
7
- packageJson = require(path.resolve(cwd, 'package.json')),
8
+ requireJson = path => JSON.parse(fs.readFileSync((path))),
9
+ packageJson = requireJson(path.resolve(cwd, 'package.json')),
8
10
  neoPath = packageJson.name === 'neo.mjs' ? './' : './node_modules/neo.mjs/',
9
- filenameConfig = require(path.resolve(neoPath, 'buildScripts/webpack/json/build.json')),
11
+ buildTarget = requireJson(path.resolve(neoPath, 'buildScripts/webpack/development/buildTarget.json')),
12
+ filenameConfig = requireJson(path.resolve(neoPath, 'buildScripts/webpack/json/build.json')),
10
13
  plugins = [],
11
14
  regexIndexNodeModules = /node_modules/g,
12
- regexTopLevel = /\.\.\//g,
13
- webpack = require('webpack');
15
+ regexTopLevel = /\.\.\//g;
14
16
 
15
17
  let config, examplesPath;
16
18
 
17
19
  if (fs.existsSync(configPath)) {
18
- config = require(configPath);
20
+ config = requireJson(configPath);
19
21
  } else {
20
22
  const myAppsPath = path.resolve(neoPath, 'buildScripts/webpack/json/myApps.json');
21
23
 
22
24
  if (fs.existsSync(myAppsPath)) {
23
- config = require(myAppsPath);
25
+ config = requireJson(myAppsPath);
24
26
  } else {
25
- config = require(path.resolve(neoPath, 'buildScripts/webpack/json/myApps.template.json'));
27
+ config = requireJson(path.resolve(neoPath, 'buildScripts/webpack/json/myApps.template.json'));
26
28
  }
27
29
  }
28
30
 
@@ -30,7 +32,7 @@ if (!buildTarget.folder) {
30
32
  buildTarget.folder = 'dist/development';
31
33
  }
32
34
 
33
- module.exports = env => {
35
+ export default env => {
34
36
  let examples = [],
35
37
  insideNeo = env.insideNeo == 'true',
36
38
  content, inputPath, outputPath;
@@ -63,7 +65,7 @@ module.exports = env => {
63
65
  inputPath = path.resolve(cwd, folder, lAppName, 'neo-config.json');
64
66
  outputPath = path.resolve(cwd, buildTarget.folder, folder, lAppName, 'neo-config.json');
65
67
 
66
- content = require(inputPath);
68
+ content = requireJson(inputPath);
67
69
 
68
70
  content.appPath = content.appPath.replace(regexTopLevel, '');
69
71
 
@@ -85,9 +87,7 @@ module.exports = env => {
85
87
  fs.writeFileSync(outputPath, content);
86
88
  };
87
89
 
88
- const isFile = fileName => {
89
- return fs.lstatSync(fileName).isFile()
90
- };
90
+ const isFile = fileName => fs.lstatSync(fileName).isFile();
91
91
 
92
92
  const parseFolder = (folderPath, index, relativePath) => {
93
93
  let itemPath;
@@ -105,11 +105,9 @@ module.exports = env => {
105
105
  });
106
106
  };
107
107
 
108
- if (config.apps) {
109
- config.apps.forEach(key => {
110
- createStartingPoint(key, key === 'Docs' ? '' : 'apps');
111
- });
112
- }
108
+ config.apps?.forEach(key => {
109
+ createStartingPoint(key, key === 'Docs' ? '' : 'apps');
110
+ });
113
111
 
114
112
  examplesPath = path.join(cwd, 'examples');
115
113
 
@@ -138,7 +136,7 @@ module.exports = env => {
138
136
  }
139
137
  }),
140
138
  new WebpackHookPlugin({
141
- onBuildEnd: ['node '+path.resolve(neoPath, 'buildScripts/copyFolder.js')+' -s '+path.resolve(neoPath, 'docs/resources')+' -t '+path.resolve(cwd, buildTarget.folder, 'docs/resources')]
139
+ onBuildEnd: ['node '+path.resolve(neoPath, 'buildScripts/copyFolder.mjs')+' -s '+path.resolve(neoPath, 'docs/resources')+' -t '+path.resolve(cwd, buildTarget.folder, 'docs/resources')]
142
140
  }),
143
141
  ...plugins
144
142
  ],
@@ -0,0 +1,24 @@
1
+ import fs from 'fs-extra';
2
+ import path from 'path';
3
+
4
+ const cwd = process.cwd(),
5
+ requireJson = path => JSON.parse(fs.readFileSync((path))),
6
+ packageJson = requireJson(path.resolve(cwd, 'package.json')),
7
+ neoPath = packageJson.name === 'neo.mjs' ? './' : './node_modules/neo.mjs/',
8
+ buildTarget = requireJson(path.resolve(neoPath, 'buildScripts/webpack/development/buildTarget.json')),
9
+ filenameConfig = requireJson(path.resolve(neoPath, 'buildScripts/webpack/json/build.json')),
10
+ entry = {main: path.resolve(neoPath, filenameConfig.mainInput)};
11
+
12
+ export default {
13
+ mode : 'development',
14
+ devtool: 'inline-source-map',
15
+ entry,
16
+ target : 'web',
17
+
18
+ output: {
19
+ chunkFilename: 'chunks/main/[id].js',
20
+ filename : filenameConfig.mainOutput,
21
+ path : path.resolve(cwd, buildTarget.folder),
22
+ publicPath : ''
23
+ }
24
+ };
@@ -1,41 +1,41 @@
1
+ import fs from 'fs-extra';
2
+ import path from 'path';
3
+ import webpack from 'webpack';
4
+
1
5
  const cwd = process.cwd(),
2
- fs = require('fs-extra'),
3
- buildTarget = require('./buildTarget.json'),
4
- path = require('path'),
5
6
  configPath = path.resolve(cwd, 'buildScripts/myApps.json'),
6
- packageJson = require(path.resolve(cwd, 'package.json')),
7
+ requireJson = path => JSON.parse(fs.readFileSync((path))),
8
+ packageJson = requireJson(path.resolve(cwd, 'package.json')),
7
9
  neoPath = packageJson.name === 'neo.mjs' ? './' : './node_modules/neo.mjs/',
8
- filenameConfig = require(path.resolve(neoPath, 'buildScripts/webpack/json/build.json')),
10
+ buildTarget = requireJson(path.resolve(neoPath, 'buildScripts/webpack/development/buildTarget.json')),
11
+ filenameConfig = requireJson(path.resolve(neoPath, 'buildScripts/webpack/json/build.json')),
9
12
  plugins = [],
10
13
  regexIndexNodeModules = /node_modules/g,
11
- regexTopLevel = /\.\.\//g,
12
- webpack = require('webpack');
14
+ regexTopLevel = /\.\.\//g;
13
15
 
14
16
  let config;
15
17
 
16
18
  if (fs.existsSync(configPath)) {
17
- config = require(configPath);
19
+ config = requireJson(configPath);
18
20
  } else {
19
21
  const myAppsPath = path.resolve(neoPath, 'buildScripts/webpack/json/myApps.json');
20
22
 
21
23
  if (fs.existsSync(myAppsPath)) {
22
- config = require(myAppsPath);
24
+ config = requireJson(myAppsPath);
23
25
  } else {
24
- config = require(path.resolve(neoPath, 'buildScripts/webpack/json/myApps.template.json'));
26
+ config = requireJson(path.resolve(neoPath, 'buildScripts/webpack/json/myApps.template.json'));
25
27
  }
26
28
  }
27
29
 
28
30
  let index = config.apps.indexOf('Docs');
29
31
 
30
- if (index > -1) {
31
- config.apps.splice(index, 1);
32
- }
32
+ index > -1 && config.apps.splice(index, 1);
33
33
 
34
34
  if (!buildTarget.folder) {
35
35
  buildTarget.folder = 'dist/development';
36
36
  }
37
37
 
38
- module.exports = env => {
38
+ export default env => {
39
39
  let apps = env.apps.split(','),
40
40
  insideNeo = env.insideNeo == 'true',
41
41
  buildAll = apps.includes('all'),
@@ -75,7 +75,7 @@ module.exports = env => {
75
75
  inputPath = path.resolve(cwd, 'apps', lAppName, 'neo-config.json');
76
76
  outputPath = path.resolve(cwd, buildTarget.folder, 'apps', lAppName, 'neo-config.json');
77
77
 
78
- content = require(inputPath);
78
+ content = requireJson(inputPath);
79
79
 
80
80
  content.appPath = content.appPath.replace(regexTopLevel, '');
81
81
 
@@ -1,13 +1,16 @@
1
- const path = require('path'),
2
- buildTarget = require('./buildTarget.json'),
3
- processRoot = process.cwd(),
4
- packageJson = require(path.resolve(processRoot, 'package.json')),
1
+ import fs from 'fs-extra';
2
+ import path from 'path';
3
+ import webpack from 'webpack';
4
+
5
+ const cwd = process.cwd(),
6
+ requireJson = path => JSON.parse(fs.readFileSync((path))),
7
+ packageJson = requireJson(path.resolve(cwd, 'package.json')),
5
8
  neoPath = packageJson.name === 'neo.mjs' ? './' : './node_modules/neo.mjs/',
6
- filenameConfig = require(path.resolve(neoPath, 'buildScripts/webpack/json/build.json')),
7
- entry = {},
8
- webpack = require('webpack');
9
+ buildTarget = requireJson(path.resolve(neoPath, 'buildScripts/webpack/development/buildTarget.json')),
10
+ filenameConfig = requireJson(path.resolve(neoPath, 'buildScripts/webpack/json/build.json')),
11
+ entry = {};
9
12
 
10
- module.exports = env => {
13
+ export default env => {
11
14
  let insideNeo = env.insideNeo == 'true';
12
15
 
13
16
  if (filenameConfig.workers) {
@@ -43,7 +46,7 @@ module.exports = env => {
43
46
  }
44
47
  },
45
48
 
46
- path: path.resolve(processRoot, buildTarget.folder)
49
+ path: path.resolve(cwd, buildTarget.folder)
47
50
  }
48
51
  }
49
52
  };
@@ -1,31 +1,33 @@
1
+ import fs from 'fs-extra';
2
+ import path from 'path';
3
+ import webpack from 'webpack';
4
+ import WebpackHookPlugin from 'webpack-hook-plugin';
5
+
1
6
  const cwd = process.cwd(),
2
- fs = require('fs-extra'),
3
- path = require('path'),
4
- buildTarget = require('./buildTarget.json'),
5
- WebpackHookPlugin = require('webpack-hook-plugin'),
6
7
  configPath = path.resolve(cwd, 'buildScripts/myApps.json'),
7
- packageJson = require(path.resolve(cwd, 'package.json')),
8
+ requireJson = path => JSON.parse(fs.readFileSync((path))),
9
+ packageJson = requireJson(path.resolve(cwd, 'package.json')),
8
10
  neoPath = packageJson.name === 'neo.mjs' ? './' : './node_modules/neo.mjs/',
9
- filenameConfig = require(path.resolve(neoPath, 'buildScripts/webpack/json/build.json')),
11
+ buildTarget = requireJson(path.resolve(neoPath, 'buildScripts/webpack/production/buildTarget.json')),
12
+ filenameConfig = requireJson(path.resolve(neoPath, 'buildScripts/webpack/json/build.json')),
10
13
  plugins = [],
11
14
  regexIndexNodeModules = /node_modules/g,
12
15
  regexLineBreak = /(\r\n|\n|\r)/gm,
13
16
  regexTopLevel = /\.\.\//g,
14
17
  regexTrimEnd = /\s+$/gm,
15
- regexTrimStart = /^\s+/gm,
16
- webpack = require('webpack');
18
+ regexTrimStart = /^\s+/gm;
17
19
 
18
20
  let config, examplesPath;
19
21
 
20
22
  if (fs.existsSync(configPath)) {
21
- config = require(configPath);
23
+ config = requireJson(configPath);
22
24
  } else {
23
25
  const myAppsPath = path.resolve(neoPath, 'buildScripts/webpack/json/myApps.json');
24
26
 
25
27
  if (fs.existsSync(myAppsPath)) {
26
- config = require(myAppsPath);
28
+ config = requireJson(myAppsPath);
27
29
  } else {
28
- config = require(path.resolve(neoPath, 'buildScripts/webpack/json/myApps.template.json'));
30
+ config = requireJson(path.resolve(neoPath, 'buildScripts/webpack/json/myApps.template.json'));
29
31
  }
30
32
  }
31
33
 
@@ -33,7 +35,7 @@ if (!buildTarget.folder) {
33
35
  buildTarget.folder = 'dist/production';
34
36
  }
35
37
 
36
- module.exports = env => {
38
+ export default env => {
37
39
  let examples = [],
38
40
  insideNeo = env.insideNeo == 'true',
39
41
  content, inputPath, outputPath;
@@ -67,7 +69,7 @@ module.exports = env => {
67
69
  inputPath = path.resolve(cwd, folder, lAppName, 'neo-config.json');
68
70
  outputPath = path.resolve(cwd, buildTarget.folder, folder, lAppName, 'neo-config.json');
69
71
 
70
- content = require(inputPath);
72
+ content = requireJson(inputPath);
71
73
  delete content.environment;
72
74
 
73
75
  content.appPath = content.appPath.replace(regexTopLevel, '');
@@ -94,9 +96,7 @@ module.exports = env => {
94
96
  fs.writeFileSync(outputPath, content);
95
97
  };
96
98
 
97
- const isFile = fileName => {
98
- return fs.lstatSync(fileName).isFile()
99
- };
99
+ const isFile = fileName => fs.lstatSync(fileName).isFile();
100
100
 
101
101
  const parseFolder = (folderPath, index, relativePath) => {
102
102
  let itemPath;
@@ -114,11 +114,9 @@ module.exports = env => {
114
114
  });
115
115
  };
116
116
 
117
- if (config.apps) {
118
- config.apps.forEach(key => {
119
- createStartingPoint(key, key === 'Docs' ? '' : 'apps');
120
- });
121
- }
117
+ config.apps?.forEach(key => {
118
+ createStartingPoint(key, key === 'Docs' ? '' : 'apps');
119
+ });
122
120
 
123
121
  examplesPath = path.join(cwd, 'examples');
124
122
 
@@ -142,7 +140,7 @@ module.exports = env => {
142
140
  }
143
141
  }),
144
142
  new WebpackHookPlugin({
145
- onBuildEnd: ['node '+path.resolve(neoPath, 'buildScripts/copyFolder.js')+' -s '+path.resolve(neoPath, 'docs/resources')+' -t '+path.resolve(cwd, buildTarget.folder, 'docs/resources')]
143
+ onBuildEnd: ['node '+path.resolve(neoPath, 'buildScripts/copyFolder.mjs')+' -s '+path.resolve(neoPath, 'docs/resources')+' -t '+path.resolve(cwd, buildTarget.folder, 'docs/resources')]
146
144
  }),
147
145
  ...plugins
148
146
  ],
@@ -0,0 +1,23 @@
1
+ import fs from 'fs-extra';
2
+ import path from 'path';
3
+
4
+ const cwd = process.cwd(),
5
+ requireJson = path => JSON.parse(fs.readFileSync((path))),
6
+ packageJson = requireJson(path.resolve(cwd, 'package.json')),
7
+ neoPath = packageJson.name === 'neo.mjs' ? './' : './node_modules/neo.mjs/',
8
+ buildTarget = requireJson(path.resolve(neoPath, 'buildScripts/webpack/production/buildTarget.json')),
9
+ filenameConfig = requireJson(path.resolve(neoPath, 'buildScripts/webpack/json/build.json')),
10
+ entry = {main: path.resolve(neoPath, filenameConfig.mainInput)};
11
+
12
+ export default {
13
+ mode : 'production',
14
+ entry,
15
+ target: 'web',
16
+
17
+ output: {
18
+ chunkFilename: 'chunks/main/[id].js',
19
+ filename : filenameConfig.mainOutput,
20
+ path : path.resolve(cwd, buildTarget.folder),
21
+ publicPath : ''
22
+ }
23
+ };
@@ -1,44 +1,44 @@
1
+ import fs from 'fs-extra';
2
+ import path from 'path';
3
+ import webpack from 'webpack';
4
+
1
5
  const cwd = process.cwd(),
2
- fs = require('fs-extra'),
3
- path = require('path'),
4
- buildTarget = require('./buildTarget.json'),
5
6
  configPath = path.resolve(cwd, 'buildScripts/myApps.json'),
6
- packageJson = require(path.resolve(cwd, 'package.json')),
7
+ requireJson = path => JSON.parse(fs.readFileSync((path))),
8
+ packageJson = requireJson(path.resolve(cwd, 'package.json')),
7
9
  neoPath = packageJson.name === 'neo.mjs' ? './' : './node_modules/neo.mjs/',
8
- filenameConfig = require(path.resolve(neoPath, 'buildScripts/webpack/json/build.json')),
10
+ buildTarget = requireJson(path.resolve(neoPath, 'buildScripts/webpack/production/buildTarget.json')),
11
+ filenameConfig = requireJson(path.resolve(neoPath, 'buildScripts/webpack/json/build.json')),
9
12
  plugins = [],
10
13
  regexIndexNodeModules = /node_modules/g,
11
14
  regexLineBreak = /(\r\n|\n|\r)/gm,
12
15
  regexTopLevel = /\.\.\//g,
13
16
  regexTrimEnd = /\s+$/gm,
14
- regexTrimStart = /^\s+/gm,
15
- webpack = require('webpack');
17
+ regexTrimStart = /^\s+/gm;
16
18
 
17
19
  let config;
18
20
 
19
21
  if (fs.existsSync(configPath)) {
20
- config = require(configPath);
22
+ config = requireJson(configPath);
21
23
  } else {
22
24
  const myAppsPath = path.resolve(neoPath, 'buildScripts/webpack/json/myApps.json');
23
25
 
24
26
  if (fs.existsSync(myAppsPath)) {
25
- config = require(myAppsPath);
27
+ config = requireJson(myAppsPath);
26
28
  } else {
27
- config = require(path.resolve(neoPath, 'buildScripts/webpack/json/myApps.template.json'));
29
+ config = requireJson(path.resolve(neoPath, 'buildScripts/webpack/json/myApps.template.json'));
28
30
  }
29
31
  }
30
32
 
31
33
  let index = config.apps.indexOf('Docs');
32
34
 
33
- if (index > -1) {
34
- config.apps.splice(index, 1);
35
- }
35
+ index > -1 && config.apps.splice(index, 1);
36
36
 
37
37
  if (!buildTarget.folder) {
38
38
  buildTarget.folder = 'dist/production';
39
39
  }
40
40
 
41
- module.exports = env => {
41
+ export default env => {
42
42
  let apps = env.apps.split(','),
43
43
  insideNeo = env.insideNeo == 'true',
44
44
  buildAll = apps.includes('all'),
@@ -80,7 +80,7 @@ module.exports = env => {
80
80
  inputPath = path.resolve(cwd, 'apps', lAppName, 'neo-config.json');
81
81
  outputPath = path.resolve(cwd, buildTarget.folder, 'apps', lAppName, 'neo-config.json');
82
82
 
83
- content = require(inputPath);
83
+ content = requireJson(inputPath);
84
84
  delete content.environment;
85
85
 
86
86
  content.appPath = content.appPath.replace(regexTopLevel, '');
@@ -1,13 +1,16 @@
1
- const path = require('path'),
2
- buildTarget = require('./buildTarget.json'),
3
- processRoot = process.cwd(),
4
- packageJson = require(path.resolve(processRoot, 'package.json')),
1
+ import fs from 'fs-extra';
2
+ import path from 'path';
3
+ import webpack from 'webpack';
4
+
5
+ const cwd = process.cwd(),
6
+ requireJson = path => JSON.parse(fs.readFileSync((path))),
7
+ packageJson = requireJson(path.resolve(cwd, 'package.json')),
5
8
  neoPath = packageJson.name === 'neo.mjs' ? './' : './node_modules/neo.mjs/',
6
- filenameConfig = require(path.resolve(neoPath, 'buildScripts/webpack/json/build.json')),
7
- entry = {},
8
- webpack = require('webpack');
9
+ buildTarget = requireJson(path.resolve(neoPath, 'buildScripts/webpack/production/buildTarget.json')),
10
+ filenameConfig = requireJson(path.resolve(neoPath, 'buildScripts/webpack/json/build.json')),
11
+ entry = {};
9
12
 
10
- module.exports = env => {
13
+ export default env => {
11
14
  let insideNeo = env.insideNeo == 'true';
12
15
 
13
16
  if (filenameConfig.workers) {
@@ -42,7 +45,7 @@ module.exports = env => {
42
45
  }
43
46
  },
44
47
 
45
- path: path.resolve(processRoot, buildTarget.folder)
48
+ path: path.resolve(cwd, buildTarget.folder)
46
49
  }
47
50
  }
48
51
  };
@@ -1,7 +1,7 @@
1
- module.exports = {
1
+ export default {
2
2
  mode: 'production',
3
3
 
4
4
  devServer: {
5
5
  static: process.cwd()
6
6
  }
7
- };
7
+ };
@@ -83,9 +83,7 @@ class MembersList extends Base {
83
83
  * @protected
84
84
  */
85
85
  afterSetFilterMembersQuery(value, oldValue) {
86
- if (oldValue !== undefined) {
87
- this.onRefreshClassMembers();
88
- }
86
+ oldValue !== undefined && this.onRefreshClassMembers();
89
87
  }
90
88
 
91
89
  /**
@@ -95,9 +93,7 @@ class MembersList extends Base {
95
93
  * @protected
96
94
  */
97
95
  afterSetShowProtectedMembers(value, oldValue) {
98
- if (oldValue !== undefined) {
99
- this.onRefreshClassMembers();
100
- }
96
+ oldValue !== undefined && this.onRefreshClassMembers();
101
97
  }
102
98
 
103
99
  /**
@@ -107,9 +103,7 @@ class MembersList extends Base {
107
103
  * @protected
108
104
  */
109
105
  afterSetShowPrivateMembers(value, oldValue) {
110
- if (oldValue !== undefined) {
111
- this.onRefreshClassMembers();
112
- }
106
+ oldValue !== undefined && this.onRefreshClassMembers();
113
107
  }
114
108
 
115
109
  /**
@@ -119,9 +113,7 @@ class MembersList extends Base {
119
113
  * @protected
120
114
  */
121
115
  afterSetShowStaticMembers(value, oldValue) {
122
- if (oldValue !== undefined) {
123
- this.onRefreshClassMembers();
124
- }
116
+ oldValue !== undefined && this.onRefreshClassMembers();
125
117
  }
126
118
 
127
119
  /**
@@ -547,8 +539,10 @@ class MembersList extends Base {
547
539
 
548
540
  filters.push({
549
541
  scope : me,
550
- filterBy: function(item, filteredItems, allItems) {
542
+ filterBy: function(opts) {
551
543
  let me = this,
544
+ filteredItems = opts.filteredItems,
545
+ item = opts.item,
552
546
  targetClassName = me.targetClassName,
553
547
  filteredItem, i, len;
554
548
 
package/package.json CHANGED
@@ -1,20 +1,21 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "3.0.6",
3
+ "version": "3.1.3",
4
4
  "description": "The webworkers driven UI framework",
5
+ "type": "module",
5
6
  "repository": {
6
7
  "type": "git",
7
8
  "url": "https://github.com/neomjs/neo.git"
8
9
  },
9
10
  "scripts": {
10
- "build-all": "node ./buildScripts/buildAll.js -f -n",
11
- "build-all-questions": "node ./buildScripts/buildAll.js -f",
12
- "build-my-apps": "node ./buildScripts/webpack/buildMyApps.js -f",
13
- "build-themes": "node ./buildScripts/buildThemes.js -f",
14
- "build-threads": "node ./buildScripts/webpack/buildThreads.js -f",
15
- "create-app": "node ./buildScripts/createApp.js",
16
- "generate-docs-json": "node ./buildScripts/docs/jsdocx.js",
17
- "server-start": "webpack serve -c ./buildScripts/webpack/webpack.server.config.js --open",
11
+ "build-all": "node ./buildScripts/buildAll.mjs -f -n",
12
+ "build-all-questions": "node ./buildScripts/buildAll.mjs -f",
13
+ "build-my-apps": "node ./buildScripts/webpack/buildMyApps.mjs -f",
14
+ "build-themes": "node ./buildScripts/buildThemes.mjs -f",
15
+ "build-threads": "node ./buildScripts/webpack/buildThreads.mjs -f",
16
+ "create-app": "node ./buildScripts/createApp.mjs",
17
+ "generate-docs-json": "node ./buildScripts/docs/jsdocx.mjs",
18
+ "server-start": "webpack serve -c ./buildScripts/webpack/webpack.server.config.mjs --open",
18
19
  "test": "echo \"Error: no test specified\" && exit 1"
19
20
  },
20
21
  "keywords": [
@@ -37,7 +38,7 @@
37
38
  "@material/mwc-button": "^0.25.3",
38
39
  "@material/mwc-textfield": "^0.25.3",
39
40
  "autoprefixer": "^10.4.2",
40
- "chalk": "^4.1.2",
41
+ "chalk": "^5.0.0",
41
42
  "clean-webpack-plugin": "^4.0.0",
42
43
  "commander": "^8.3.0",
43
44
  "cssnano": "^5.0.15",
@@ -48,10 +49,10 @@
48
49
  "neo-jsdoc": "^1.0.1",
49
50
  "neo-jsdoc-x": "^1.0.4",
50
51
  "postcss": "^8.4.5",
51
- "sass": "^1.47.0",
52
- "webpack": "^5.65.0",
52
+ "sass": "^1.49.0",
53
+ "webpack": "^5.67.0",
53
54
  "webpack-cli": "^4.9.1",
54
- "webpack-dev-server": "4.7.2",
55
+ "webpack-dev-server": "4.7.3",
55
56
  "webpack-hook-plugin": "^1.0.7",
56
57
  "webpack-node-externals": "^3.0.0"
57
58
  },
@@ -1,4 +1,4 @@
1
- const Neo = self.Neo || {};
1
+ const Neo = globalThis.Neo || {};
2
2
 
3
3
  Neo.config = Neo.config || {};
4
4