@wavemaker/angular-codegen 11.8.0-next.NULL → 11.8.0-rc.181

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.
@@ -6,10 +6,10 @@
6
6
  "start": "./node_modules/.bin/ng serve",
7
7
  "build": "node build-scripts/build.js",
8
8
  "post-build": "node build-scripts/post-build.js",
9
- "test": "jest --no-cache --detectOpenHandles",
9
+ "test": "jest --no-cache",
10
10
  "test:watch": "jest --watch",
11
- "test:coverage": "jest --coverage --detectOpenHandles",
12
- "test-prod": "jest --no-cache --no-color --detectOpenHandles --ci --silent 2>&1 | sed 's/\\x1b\\[[0-9;]*m//g' > karma-test-report.txt",
11
+ "test:coverage": "jest --coverage",
12
+ "test-prod": "jest --no-cache --no-color --ci --silent 2>&1 | sed 's/\\x1b\\[[0-9;]*m//g' > karma-test-report.txt",
13
13
  "lint": "./node_modules/.bin/ng lint",
14
14
  "e2e": "./node_modules/.bin/ng e2e",
15
15
  "optimizecss": "gulp --gulpfile build-scripts/optimize-css.gulpfile.js",
@@ -17,15 +17,15 @@
17
17
  },
18
18
  "private": true,
19
19
  "dependencies": {
20
- "@angular/animations": "16.2.12",
21
- "@angular/common": "16.2.12",
22
- "@angular/compiler": "16.2.12",
23
- "@angular/core": "16.2.12",
24
- "@angular/forms": "16.2.12",
25
- "@angular/platform-browser": "16.2.12",
26
- "@angular/platform-browser-dynamic": "16.2.12",
27
- "@angular/router": "16.2.12",
28
- "@angular/service-worker": "16.2.12",
20
+ "@angular/animations": "17.3.11",
21
+ "@angular/common": "17.3.11",
22
+ "@angular/compiler": "17.3.11",
23
+ "@angular/core": "17.3.11",
24
+ "@angular/forms": "17.3.11",
25
+ "@angular/platform-browser": "17.3.11",
26
+ "@angular/platform-browser-dynamic": "17.3.11",
27
+ "@angular/router": "17.3.11",
28
+ "@angular/service-worker": "17.3.11",
29
29
  "@awesome-cordova-plugins/app-version": "5.39.1",
30
30
  "@awesome-cordova-plugins/barcode-scanner": "5.39.1",
31
31
  "@awesome-cordova-plugins/calendar": "5.39.1",
@@ -43,23 +43,22 @@
43
43
  "@awesome-cordova-plugins/vibration": "5.39.1",
44
44
  "@babel/runtime": "7.14.8",
45
45
  "@metrichor/jmespath": "0.3.1",
46
- "@wavemaker/focus-trap": "1.0.0",
46
+ "@wavemaker/focus-trap": "1.0.1",
47
47
  "@wavemaker/nvd3": "1.8.11",
48
- "@wavemaker/variables": "11.8.0-next.NULL",
48
+ "@wavemaker/variables": "11.8.0-rc.181",
49
49
  "@ztree/ztree_v3": "3.5.48",
50
- "angular-imask": "7.6.0",
50
+ "angular-imask": "^7.6.1",
51
51
  "angular2-websocket": "0.9.7",
52
52
  "core-js": "3.35.1",
53
53
  "d3": "7.8.5",
54
54
  "fullcalendar": "5.3.1",
55
55
  "hammerjs": "2.0.8",
56
- "he": "1.2.0",
57
56
  "iscroll": "5.2.0",
58
57
  "jquery": "3.7.1",
59
- "jquery-ui": "1.13.2",
58
+ "jquery-ui": "1.13.3",
60
59
  "js-cookie": "2.2.0",
61
60
  "jssha": "3.1.2",
62
- "lodash": "4.17.21",
61
+ "lodash-es": "4.17.21",
63
62
  "ng-circle-progress": "1.7.1",
64
63
  "ngx-bootstrap": "9.0.0",
65
64
  "ngx-color-picker": "16.0.0",
@@ -70,16 +69,16 @@
70
69
  "ts-jest": "29.1.1",
71
70
  "tslib": "2.4.1",
72
71
  "x2js": "3.4.4",
73
- "zone.js": "0.13.3",
74
- "@wavemaker/app-ng-runtime": "11.8.0-next.NULL"
72
+ "zone.js": "0.14.7",
73
+ "@wavemaker/app-ng-runtime": "11.8.0-rc.181"
75
74
  },
76
75
  "devDependencies": {
77
76
  "@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
78
- "@angular-builders/custom-webpack": "16.0.1",
79
- "@angular-devkit/build-angular": "16.2.11",
80
- "@angular/cli": "16.2.11",
81
- "@angular/compiler-cli": "16.2.12",
82
- "@angular/language-service": "16.2.12",
77
+ "@angular-builders/custom-webpack": "17.0.2",
78
+ "@angular-devkit/build-angular": "17.3.8",
79
+ "@angular/cli": "17.3.8",
80
+ "@angular/compiler-cli": "17.3.11",
81
+ "@angular/language-service": "17.3.11",
83
82
  "@babel/plugin-transform-runtime": "^7.14.5",
84
83
  "@compodoc/compodoc": "^1.1.19",
85
84
  "@rollup/plugin-alias": "4.0.2",
@@ -87,7 +86,8 @@
87
86
  "@rollup/plugin-multi-entry": "6.0.0",
88
87
  "@rollup/plugin-node-resolve": "15.0.1",
89
88
  "@types/jest": "^29.5.12",
90
- "@types/jquery": "^3.5.16",
89
+ "@types/jquery": "3.3.22",
90
+ "@types/lodash-es": "4.17.12",
91
91
  "@types/node": "12.11.1",
92
92
  "@types/sizzle": "^2.3.3",
93
93
  "babel-loader": "^9.1.2",
@@ -98,10 +98,11 @@
98
98
  "fs": "0.0.1-security",
99
99
  "fs-extra": "7.0.1",
100
100
  "jest": "^29.7.0",
101
+ "jest-canvas-mock": "^2.5.2",
101
102
  "jest-preset-angular": "^14.1.0",
102
103
  "moment": "2.29.4",
103
104
  "moment-timezone": "^0.5.34",
104
- "ng-packagr": "16.2.3",
105
+ "ng-packagr": "17.3.0",
105
106
  "npm-run-all": "4.1.5",
106
107
  "owasp-dependency-check": "0.0.21",
107
108
  "rimraf": "2.6.3",
@@ -111,13 +112,13 @@
111
112
  "terser": "^5.15.1",
112
113
  "ts-node": "7.0.1",
113
114
  "tslint": "~6.1.0",
114
- "typescript": "4.9.5",
115
+ "typescript": "5.4.5",
115
116
  "util": "0.11.1",
116
117
  "yargs": "^17.3.1"
117
118
  },
118
119
  "optionalDependencies": {
119
- "@rollup/rollup-linux-x64-gnu": "4.9.5",
120
120
  "@rollup/rollup-darwin-arm64": "4.9.5",
121
+ "@rollup/rollup-linux-x64-gnu": "4.9.5",
121
122
  "@rollup/rollup-win32-x64": "4.9.5"
122
123
  },
123
124
  "engines": {
@@ -1,15 +1,17 @@
1
1
  import "jest-preset-angular/setup-jest";
2
2
  import { ToastrModule } from 'ngx-toastr';
3
3
  import { TestBed } from '@angular/core/testing';
4
+ import _ from 'lodash-es';
5
+ import 'jest-canvas-mock';
4
6
 
5
7
  // Mock global objects if necessary
6
8
  global.jQuery = require("jquery");
7
9
  global.$ = global.jQuery;
10
+ global._ = _;
8
11
 
9
12
 
10
-
11
- global._ = require("lodash");
12
13
  global.moment = require("moment");
14
+
13
15
  class IntersectionObserver {
14
16
  constructor(callback, options) {
15
17
 
@@ -87,3 +89,32 @@ beforeEach(() => {
87
89
  },
88
90
  });
89
91
  });
92
+
93
+ // jest.setup.js
94
+ Object.defineProperty(global.HTMLMediaElement.prototype, 'load', {
95
+ configurable: true,
96
+ enumerable: true,
97
+ writable: true,
98
+ value: jest.fn(),
99
+ });
100
+
101
+ Object.defineProperty(global.HTMLMediaElement.prototype, 'play', {
102
+ configurable: true,
103
+ enumerable: true,
104
+ writable: true,
105
+ value: jest.fn().mockResolvedValue(),
106
+ });
107
+
108
+ Object.defineProperty(global.HTMLMediaElement.prototype, 'pause', {
109
+ configurable: true,
110
+ enumerable: true,
111
+ writable: true,
112
+ value: jest.fn(),
113
+ });
114
+
115
+ Object.defineProperty(global.HTMLMediaElement.prototype, 'addTextTrack', {
116
+ configurable: true,
117
+ enumerable: true,
118
+ writable: true,
119
+ value: jest.fn(),
120
+ });
@@ -3,10 +3,18 @@
3
3
  "compilerOptions": {
4
4
  "baseUrl": "./",
5
5
  "outDir": "./dist/out-tsc",
6
+ "downlevelIteration": true,
7
+ "declaration": false,
8
+ "sourceMap": true,
9
+ "emitDecoratorMetadata": true,
6
10
  "experimentalDecorators": true,
11
+ "esModuleInterop": true,
7
12
  "moduleResolution": "node",
8
13
  "target": "ES2022",
9
14
  "module": "ES2022",
15
+ "typeRoots": [
16
+ "node_modules/@types"
17
+ ],
10
18
  "paths": {
11
19
  "rxjs/observable/throw": [
12
20
  "node_modules/rxjs-compat/_esm2015/observable/throw"
@@ -14,54 +22,102 @@
14
22
  "rxjs/observable/*": [
15
23
  "node_modules/rxjs-compat/_esm2015/observable/*"
16
24
  ],
17
- "rxjs/Observable": ["node_modules/rxjs-compat/_esm2015/Observable"],
18
- "@wm/build-task": ["libraries/build-task/"],
19
- "@wm/mobile-build-task": ["libraries/mobile-build-task"],
20
- "@wm/core": ["libraries/core/index.d.ts"],
21
- "@wavemaker/variables": ["node_modules/@wavemaker/variables/"],
22
- "@wm/components/base": ["libraries/components/base/public_api.d.ts"],
25
+ "rxjs/Observable": [
26
+ "node_modules/rxjs-compat/_esm2015/Observable"
27
+ ],
28
+ "@wm/build-task": [
29
+ "node_modules/@wavemaker/app-ng-runtime/build-task/"
30
+ ],
31
+ "@wm/mobile-build-task": [
32
+ "node_modules/@wavemaker/app-ng-runtime/mobile-build-task"
33
+ ],
34
+ "@wm/core": [
35
+ "node_modules/@wavemaker/app-ng-runtime/core/index.d.ts"
36
+ ],
37
+ "@wavemaker/variables": [
38
+ "node_modules/@wavemaker/variables/"
39
+ ],
40
+ "@wm/components/base": [
41
+ "node_modules/@wavemaker/app-ng-runtime/components/base/public_api.d.ts"
42
+ ],
23
43
  "@wm/components/basic": [
24
- "libraries/components/basic/default/index.d.ts"
44
+ "node_modules/@wavemaker/app-ng-runtime/components/basic/default/index.d.ts"
25
45
  ],
26
46
  "@wm/components/input": [
27
- "libraries/components/input/default/index.d.ts"
47
+ "node_modules/@wavemaker/app-ng-runtime/components/input/default/index.d.ts"
28
48
  ],
29
49
  "@wm/components/page": [
30
- "libraries/components/page/default/index.d.ts"
50
+ "node_modules/@wavemaker/app-ng-runtime/components/page/default/index.d.ts"
31
51
  ],
32
52
  "@wm/mobile/components/basic": [
33
- "libraries/mobile/components/basic/default/index.d.ts"
53
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/basic/default/index.d.ts"
34
54
  ],
35
55
  "@wm/mobile/components/page": [
36
- "libraries/mobile/components/page/default/index.d.ts"
56
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/page/default/index.d.ts"
37
57
  ],
38
58
  "@wm/components/dialogs": [
39
- "libraries/components/dialogs/default/index.d.ts"
40
- ],
41
- "@wm/mobile/components/*": ["libraries/mobile/components/*"],
42
- "@wm/components/*": ["libraries/components/*"],
43
- "@wm/transpiler": ["libraries/transpiler/index.d.ts"],
44
- "@wm/security": ["libraries/security/index.d.ts"],
45
- "@swipey": ["libraries/swipey/index.d.ts"],
46
- "@wm/http": ["libraries/http/index.d.ts"],
47
- "@wm/oAuth": ["libraries/oAuth/index.d.ts"],
48
- "@wm/variables": ["libraries/variables/index.d.ts"],
49
- "@wm/mobile/core": ["libraries/mobile/core/index.d.ts"],
50
- "@wm/mobile/components": ["libraries/mobile/components/index.d.ts"],
51
- "@wm/mobile/offline": ["libraries/mobile/offline/index.d.ts"],
52
- "@wm/mobile/variables": ["libraries/mobile/variables/index.d.ts"],
53
- "@wm/runtime/base": ["libraries/runtime/base/index.d.ts"],
54
- "@wm/runtime/dynamic": ["libraries/runtime/dynamic/index.d.ts"],
55
- "@wm/mobile/runtime": ["libraries/mobile/runtime/index.d.ts"],
59
+ "node_modules/@wavemaker/app-ng-runtime/components/dialogs/default/index.d.ts"
60
+ ],
61
+ "@wm/mobile/components/*": [
62
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/*"
63
+ ],
64
+ "@wm/components/*": [
65
+ "node_modules/@wavemaker/app-ng-runtime/components/*"
66
+ ],
67
+ "@wm/transpiler": [
68
+ "node_modules/@wavemaker/app-ng-runtime/transpiler/index.d.ts"
69
+ ],
70
+ "@wm/security": [
71
+ "node_modules/@wavemaker/app-ng-runtime/security/index.d.ts"
72
+ ],
73
+ "@swipey": [
74
+ "node_modules/@wavemaker/app-ng-runtime/swipey/index.d.ts"
75
+ ],
76
+ "@wm/http": [
77
+ "node_modules/@wavemaker/app-ng-runtime/http/index.d.ts"
78
+ ],
79
+ "@wm/oAuth": [
80
+ "node_modules/@wavemaker/app-ng-runtime/oAuth/index.d.ts"
81
+ ],
82
+ "@wm/variables": [
83
+ "node_modules/@wavemaker/app-ng-runtime/variables/index.d.ts"
84
+ ],
85
+ "@wm/mobile/core": [
86
+ "node_modules/@wavemaker/app-ng-runtime/mobile/core/index.d.ts"
87
+ ],
88
+ "@wm/mobile/components": [
89
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/index.d.ts"
90
+ ],
91
+ "@wm/mobile/offline": [
92
+ "node_modules/@wavemaker/app-ng-runtime/mobile/offline/index.d.ts"
93
+ ],
94
+ "@wm/mobile/variables": [
95
+ "node_modules/@wavemaker/app-ng-runtime/mobile/variables/index.d.ts"
96
+ ],
97
+ "@wm/runtime/base": [
98
+ "node_modules/@wavemaker/app-ng-runtime/runtime/base/index.d.ts"
99
+ ],
100
+ "@wm/runtime/dynamic": [
101
+ "node_modules/@wavemaker/app-ng-runtime/runtime/dynamic/index.d.ts"
102
+ ],
103
+ "@wm/mobile/runtime": [
104
+ "node_modules/@wavemaker/app-ng-runtime/mobile/runtime/index.d.ts"
105
+ ],
56
106
  "@wm/mobile/runtime/dynamic": [
57
- "libraries/mobile/runtime-dynamic/index.d.ts"
107
+ "node_modules/@wavemaker/app-ng-runtime/mobile/runtime-dynamic/index.d.ts"
58
108
  ]
59
109
  },
60
- "lib": ["es2020", "dom"],
110
+ "lib": [
111
+ "es2020",
112
+ "dom"
113
+ ],
61
114
  "useDefineForClassFields": false,
62
115
  "resolveJsonModule": true
63
116
  },
64
117
  "angularCompilerOptions": {
118
+ "compilationMode": "full",
119
+ "strictMetadataEmit": false,
120
+ "fullTemplateTypeCheck": false,
65
121
  "extendedDiagnostics": {
66
122
  "checks": {
67
123
  "optionalChainNotNullable": "suppress"
@@ -72,4 +128,4 @@
72
128
  "strictInputAccessModifiers": false,
73
129
  "trace": true
74
130
  }
75
- }
131
+ }
@@ -29,74 +29,74 @@
29
29
  "node_modules/rxjs-compat/_esm2015/Observable"
30
30
  ],
31
31
  "@wm/build-task": [
32
- "libraries/build-task/"
32
+ "node_modules/@wavemaker/app-ng-runtime/build-task/"
33
33
  ],
34
34
  "@wm/mobile-build-task": [
35
- "libraries/mobile-build-task"
35
+ "node_modules/@wavemaker/app-ng-runtime/mobile-build-task"
36
36
  ],
37
37
  "@wm/core": [
38
- "libraries/core"
38
+ "node_modules/@wavemaker/app-ng-runtime/core"
39
39
  ],
40
40
  "@wm/components/basic": [
41
- "libraries/components/basic/default"
41
+ "node_modules/@wavemaker/app-ng-runtime/components/basic/default"
42
42
  ],
43
43
  "@wm/components/input": [
44
- "libraries/components/input/default"
44
+ "node_modules/@wavemaker/app-ng-runtime/components/input/default"
45
45
  ],
46
46
  "@wm/components/page": [
47
- "libraries/components/page/default"
47
+ "node_modules/@wavemaker/app-ng-runtime/components/page/default"
48
48
  ],
49
49
  "@wm/components/dialogs": [
50
- "libraries/components/dialogs/default"
50
+ "node_modules/@wavemaker/app-ng-runtime/components/dialogs/default"
51
51
  ],
52
52
  "@wm/components/*": [
53
- "libraries/components/*"
53
+ "node_modules/@wavemaker/app-ng-runtime/components/*"
54
54
  ],
55
55
  "@wm/transpiler": [
56
- "libraries/transpiler"
56
+ "node_modules/@wavemaker/app-ng-runtime/transpiler"
57
57
  ],
58
58
  "@wm/security": [
59
- "libraries/security"
59
+ "node_modules/@wavemaker/app-ng-runtime/security"
60
60
  ],
61
61
  "@swipey": [
62
- "libraries/swipey"
62
+ "node_modules/@wavemaker/app-ng-runtime/swipey"
63
63
  ],
64
64
  "@wm/http": [
65
- "libraries/http"
65
+ "node_modules/@wavemaker/app-ng-runtime/http"
66
66
  ],
67
67
  "@wm/oAuth": [
68
- "libraries/oAuth"
68
+ "node_modules/@wavemaker/app-ng-runtime/oAuth"
69
69
  ],
70
70
  "@wm/variables": [
71
- "libraries/variables"
71
+ "node_modules/@wavemaker/app-ng-runtime/variables"
72
72
  ],
73
73
  "@wm/mobile/core": [
74
- "libraries/mobile/core"
74
+ "node_modules/@wavemaker/app-ng-runtime/mobile/core"
75
75
  ],
76
76
  "@wm/mobile/components": [
77
- "libraries/mobile/components"
77
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components"
78
78
  ],
79
79
  "@wm/mobile/offline": [
80
- "libraries/mobile/offline"
80
+ "node_modules/@wavemaker/app-ng-runtime/mobile/offline"
81
81
  ],
82
82
  "@wm/mobile/variables": [
83
- "libraries/mobile/variables"
83
+ "node_modules/@wavemaker/app-ng-runtime/mobile/variables"
84
84
  ],
85
85
  "@wm/runtime/base": [
86
- "libraries/runtime/base"
86
+ "node_modules/@wavemaker/app-ng-runtime/runtime/base"
87
87
  ],
88
88
  "@wm/runtime/dynamic": [
89
- "libraries/runtime/dynamic"
89
+ "node_modules/@wavemaker/app-ng-runtime/runtime/dynamic"
90
90
  ],
91
91
  "@wm/mobile/runtime": [
92
- "libraries/mobile/placeholder/runtime"
92
+ "node_modules/@wavemaker/app-ng-runtime/mobile/placeholder/runtime"
93
93
  ],
94
94
  "@wm/mobile/runtime-dynamic": [
95
- "libraries/mobile/placeholder/runtime/dynamic"
95
+ "node_modules/@wavemaker/app-ng-runtime/mobile/placeholder/runtime/dynamic"
96
96
  ]
97
97
  }
98
98
  },
99
- "angularCompilerOptions":{
99
+ "angularCompilerOptions": {
100
100
  "compilationMode": "full"
101
101
  }
102
- }
102
+ }