@wavemaker/angular-codegen 11.7.1-next.141120 → 11.7.1-next.141125

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,12 +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": "./node_modules/.bin/ng test",
10
- "test_components": "./node_modules/.bin/ng t @wm/components/base",
11
- "test_mobile": "./node_modules/.bin/ng t @wm/mobile/components/basic",
12
- "test_variables": "./node_modules/.bin/ng t @wm/variables",
13
- "test-all": "npm run test_variables && npm run test_components",
14
- "test-prod": "npm run test-all > karma-test-report.txt; node combine-coverage.js >> karma-test-report.txt",
9
+ "test": "jest --no-cache",
10
+ "test:watch": "jest --watch",
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",
15
13
  "lint": "./node_modules/.bin/ng lint",
16
14
  "e2e": "./node_modules/.bin/ng e2e",
17
15
  "optimizecss": "gulp --gulpfile build-scripts/optimize-css.gulpfile.js",
@@ -19,15 +17,15 @@
19
17
  },
20
18
  "private": true,
21
19
  "dependencies": {
22
- "@angular/animations": "16.2.12",
23
- "@angular/common": "16.2.12",
24
- "@angular/compiler": "16.2.12",
25
- "@angular/core": "16.2.12",
26
- "@angular/forms": "16.2.12",
27
- "@angular/platform-browser": "16.2.12",
28
- "@angular/platform-browser-dynamic": "16.2.12",
29
- "@angular/router": "16.2.12",
30
- "@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",
31
29
  "@awesome-cordova-plugins/app-version": "5.39.1",
32
30
  "@awesome-cordova-plugins/barcode-scanner": "5.39.1",
33
31
  "@awesome-cordova-plugins/calendar": "5.39.1",
@@ -43,25 +41,24 @@
43
41
  "@awesome-cordova-plugins/network": "5.39.1",
44
42
  "@awesome-cordova-plugins/sqlite": "5.39.1",
45
43
  "@awesome-cordova-plugins/vibration": "5.39.1",
46
- "@babel/runtime": "^7.14.8",
47
- "@metrichor/jmespath": "^0.3.1",
48
- "@wavemaker/focus-trap": "^1.0.0",
44
+ "@babel/runtime": "7.14.8",
45
+ "@metrichor/jmespath": "0.3.1",
46
+ "@wavemaker/focus-trap": "1.0.1",
49
47
  "@wavemaker/nvd3": "1.8.11",
50
- "@wavemaker/variables": "11.7.1-next.141120",
51
- "@ztree/ztree_v3": "^3.5.48",
52
- "angular-imask": "^7.6.0",
48
+ "@wavemaker/variables": "11.7.1-next.141125",
49
+ "@ztree/ztree_v3": "3.5.48",
50
+ "angular-imask": "^7.6.1",
53
51
  "angular2-websocket": "0.9.7",
54
52
  "core-js": "3.35.1",
55
53
  "d3": "7.8.5",
56
54
  "fullcalendar": "5.3.1",
57
55
  "hammerjs": "2.0.8",
58
- "he": "1.2.0",
59
56
  "iscroll": "5.2.0",
60
57
  "jquery": "3.7.1",
61
- "jquery-ui": "1.13.2",
58
+ "jquery-ui": "1.13.3",
62
59
  "js-cookie": "2.2.0",
63
- "jssha": "^3.1.2",
64
- "lodash": "4.17.21",
60
+ "jssha": "3.1.2",
61
+ "lodash-es": "4.17.21",
65
62
  "ng-circle-progress": "1.7.1",
66
63
  "ngx-bootstrap": "9.0.0",
67
64
  "ngx-color-picker": "16.0.0",
@@ -69,27 +66,28 @@
69
66
  "rxjs": "6.6.0",
70
67
  "rxjs-compat": "6.4.0",
71
68
  "summernote": "0.8.18",
69
+ "ts-jest": "29.1.1",
72
70
  "tslib": "2.4.1",
73
- "x2js": "^3.4.4",
74
- "zone.js": "~0.13.3",
75
- "@wavemaker/app-ng-runtime": "11.7.1-next.141120"
71
+ "x2js": "3.4.4",
72
+ "zone.js": "0.14.7",
73
+ "@wavemaker/app-ng-runtime": "11.7.1-next.141125"
76
74
  },
77
75
  "devDependencies": {
78
76
  "@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
79
- "@angular-builders/custom-webpack": "16.0.1",
80
- "@angular-devkit/build-angular": "16.2.11",
81
- "@angular/cli": "16.2.11",
82
- "@angular/compiler-cli": "16.2.12",
83
- "@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",
84
82
  "@babel/plugin-transform-runtime": "^7.14.5",
85
83
  "@compodoc/compodoc": "^1.1.19",
86
84
  "@rollup/plugin-alias": "4.0.2",
87
85
  "@rollup/plugin-commonjs": "24.0.0",
88
86
  "@rollup/plugin-multi-entry": "6.0.0",
89
87
  "@rollup/plugin-node-resolve": "15.0.1",
90
- "@types/jasmine": "2.8.8",
91
- "@types/jasminewd2": "2.0.3",
88
+ "@types/jest": "^29.5.12",
92
89
  "@types/jquery": "3.3.22",
90
+ "@types/lodash-es": "4.17.12",
93
91
  "@types/node": "12.11.1",
94
92
  "@types/sizzle": "^2.3.3",
95
93
  "babel-loader": "^9.1.2",
@@ -99,20 +97,12 @@
99
97
  "core-js-builder": "2.5.7",
100
98
  "fs": "0.0.1-security",
101
99
  "fs-extra": "7.0.1",
102
- "istanbul-api": "1.2.2",
103
- "istanbul-reports": "1.1.4",
104
- "jasmine": "3.5.0",
105
- "jasmine-core": "~3.5.0",
106
- "jasmine-spec-reporter": "~5.0.0",
107
- "karma": "~6.3.15",
108
- "karma-chrome-launcher": "~3.1.0",
109
- "karma-coverage-istanbul-reporter": "~3.0.2",
110
- "karma-jasmine": "~4.0.0",
111
- "karma-jasmine-html-reporter": "^1.5.0",
112
- "karma-mocha-reporter": "2.2.5",
100
+ "jest": "^29.7.0",
101
+ "jest-canvas-mock": "^2.5.2",
102
+ "jest-preset-angular": "^14.1.0",
113
103
  "moment": "2.29.4",
114
104
  "moment-timezone": "^0.5.34",
115
- "ng-packagr": "16.2.3",
105
+ "ng-packagr": "17.3.0",
116
106
  "npm-run-all": "4.1.5",
117
107
  "owasp-dependency-check": "0.0.21",
118
108
  "rimraf": "2.6.3",
@@ -122,10 +112,15 @@
122
112
  "terser": "^5.15.1",
123
113
  "ts-node": "7.0.1",
124
114
  "tslint": "~6.1.0",
125
- "typescript": "4.9.5",
115
+ "typescript": "5.4.5",
126
116
  "util": "0.11.1",
127
117
  "yargs": "^17.3.1"
128
118
  },
119
+ "optionalDependencies": {
120
+ "@rollup/rollup-darwin-arm64": "4.9.5",
121
+ "@rollup/rollup-linux-x64-gnu": "4.9.5",
122
+ "@rollup/rollup-win32-x64": "4.9.5"
123
+ },
129
124
  "engines": {
130
125
  "node": ">=18.16.1",
131
126
  "npm": ">=9.5.1"
@@ -0,0 +1,120 @@
1
+ import "jest-preset-angular/setup-jest";
2
+ import { ToastrModule } from 'ngx-toastr';
3
+ import { TestBed } from '@angular/core/testing';
4
+ import _ from 'lodash-es';
5
+ import 'jest-canvas-mock';
6
+
7
+ // Mock global objects if necessary
8
+ global.jQuery = require("jquery");
9
+ global.$ = global.jQuery;
10
+ global._ = _;
11
+
12
+
13
+ global.moment = require("moment");
14
+
15
+ class IntersectionObserver {
16
+ constructor(callback, options) {
17
+
18
+ }
19
+
20
+ observe(element) {
21
+
22
+ }
23
+
24
+ unobserve() {
25
+ return null;
26
+ }
27
+
28
+ disconnect() {
29
+ return null;
30
+ }
31
+ }
32
+ global.IntersectionObserver = IntersectionObserver;
33
+ // jest.setup.js
34
+
35
+ // Mock MSCSSMatrix
36
+ class MockMSCSSMatrix {
37
+ constructor() {
38
+ // Initialize with default values or any necessary properties
39
+ }
40
+
41
+ // Add any methods that your tests might call
42
+ setMatrixValue(value) {
43
+ // Mock implementation of setMatrixValue
44
+ }
45
+
46
+ multiply(matrix) {
47
+ // Mock implementation of multiply
48
+ return this;
49
+ }
50
+
51
+ // Add other methods as needed
52
+ }
53
+
54
+ // Attach the mock to the global scope
55
+ global.MSCSSMatrix = MockMSCSSMatrix;
56
+
57
+ import "jquery-ui/ui/disable-selection.js";
58
+ import "jquery-ui/ui/version.js";
59
+ import "jquery-ui/ui/widget.js";
60
+ import "jquery-ui/ui/scroll-parent.js";
61
+ import "jquery-ui/ui/plugin.js";
62
+ import "jquery-ui/ui/data.js";
63
+ import "jquery-ui/ui/widgets/mouse.js";
64
+ import "jquery-ui/ui/widgets/resizable.js";
65
+ import "jquery-ui/ui/widgets/sortable.js";
66
+ import "jquery-ui/ui/widgets/draggable.js";
67
+ import "jquery-ui/ui/widgets/droppable.js";
68
+ import "libraries/scripts/jquery.ui.touch-punch/jquery.ui.touch-punch.min.js";
69
+ import "moment-timezone/builds/moment-timezone.min.js";
70
+ import "hammerjs/hammer.min.js";
71
+ import "iscroll/build/iscroll.js";
72
+ import "tabbable/dist/index.umd.min.js";
73
+ import "@wavemaker/focus-trap/dist/focus-trap.umd.min.js";
74
+
75
+
76
+
77
+ beforeEach(() => {
78
+ TestBed.configureTestingModule({
79
+ imports : [
80
+ ToastrModule.forRoot(),
81
+ ],
82
+ })
83
+ Object.defineProperties(window, {
84
+ location: {
85
+ writable: true,
86
+ value: {
87
+ reload: jest.fn(),
88
+ },
89
+ },
90
+ });
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
+ });
@@ -2,22 +2,19 @@
2
2
  "compileOnSave": false,
3
3
  "compilerOptions": {
4
4
  "baseUrl": "./",
5
- "downlevelIteration": true,
6
5
  "outDir": "./dist/out-tsc",
7
- "sourceMap": true,
6
+ "downlevelIteration": true,
8
7
  "declaration": false,
9
- "target": "es2022",
10
- "module": "es2020",
11
- "moduleResolution": "node",
8
+ "sourceMap": true,
12
9
  "emitDecoratorMetadata": true,
13
10
  "experimentalDecorators": true,
11
+ "esModuleInterop": true,
12
+ "moduleResolution": "node",
13
+ "target": "ES2022",
14
+ "module": "ES2022",
14
15
  "typeRoots": [
15
16
  "node_modules/@types"
16
17
  ],
17
- "lib": [
18
- "es2018",
19
- "dom"
20
- ],
21
18
  "paths": {
22
19
  "rxjs/observable/throw": [
23
20
  "node_modules/rxjs-compat/_esm2015/observable/throw"
@@ -35,31 +32,31 @@
35
32
  "node_modules/@wavemaker/app-ng-runtime/mobile-build-task"
36
33
  ],
37
34
  "@wm/core": [
38
- "node_modules/@wavemaker/app-ng-runtime/core"
35
+ "node_modules/@wavemaker/app-ng-runtime/core/index.d.ts"
39
36
  ],
40
37
  "@wavemaker/variables": [
41
38
  "node_modules/@wavemaker/variables/"
42
39
  ],
43
40
  "@wm/components/base": [
44
- "node_modules/@wavemaker/app-ng-runtime/components/base"
41
+ "node_modules/@wavemaker/app-ng-runtime/components/base/public_api.d.ts"
45
42
  ],
46
43
  "@wm/components/basic": [
47
- "node_modules/@wavemaker/app-ng-runtime/components/basic/default"
44
+ "node_modules/@wavemaker/app-ng-runtime/components/basic/default/index.d.ts"
48
45
  ],
49
46
  "@wm/components/input": [
50
- "node_modules/@wavemaker/app-ng-runtime/components/input/default"
47
+ "node_modules/@wavemaker/app-ng-runtime/components/input/default/index.d.ts"
51
48
  ],
52
49
  "@wm/components/page": [
53
- "node_modules/@wavemaker/app-ng-runtime/components/page/default"
50
+ "node_modules/@wavemaker/app-ng-runtime/components/page/default/index.d.ts"
54
51
  ],
55
52
  "@wm/mobile/components/basic": [
56
- "node_modules/@wavemaker/app-ng-runtime/mobile/components/basic/default"
53
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/basic/default/index.d.ts"
57
54
  ],
58
55
  "@wm/mobile/components/page": [
59
- "node_modules/@wavemaker/app-ng-runtime/mobile/components/page/default"
56
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/page/default/index.d.ts"
60
57
  ],
61
58
  "@wm/components/dialogs": [
62
- "node_modules/@wavemaker/app-ng-runtime/components/dialogs/default"
59
+ "node_modules/@wavemaker/app-ng-runtime/components/dialogs/default/index.d.ts"
63
60
  ],
64
61
  "@wm/mobile/components/*": [
65
62
  "node_modules/@wavemaker/app-ng-runtime/mobile/components/*"
@@ -68,53 +65,67 @@
68
65
  "node_modules/@wavemaker/app-ng-runtime/components/*"
69
66
  ],
70
67
  "@wm/transpiler": [
71
- "node_modules/@wavemaker/app-ng-runtime/transpiler"
68
+ "node_modules/@wavemaker/app-ng-runtime/transpiler/index.d.ts"
72
69
  ],
73
70
  "@wm/security": [
74
- "node_modules/@wavemaker/app-ng-runtime/security"
71
+ "node_modules/@wavemaker/app-ng-runtime/security/index.d.ts"
75
72
  ],
76
73
  "@swipey": [
77
- "node_modules/@wavemaker/app-ng-runtime/swipey"
74
+ "node_modules/@wavemaker/app-ng-runtime/swipey/index.d.ts"
78
75
  ],
79
76
  "@wm/http": [
80
- "node_modules/@wavemaker/app-ng-runtime/http"
77
+ "node_modules/@wavemaker/app-ng-runtime/http/index.d.ts"
81
78
  ],
82
79
  "@wm/oAuth": [
83
- "node_modules/@wavemaker/app-ng-runtime/oAuth"
80
+ "node_modules/@wavemaker/app-ng-runtime/oAuth/index.d.ts"
84
81
  ],
85
82
  "@wm/variables": [
86
- "node_modules/@wavemaker/app-ng-runtime/variables"
83
+ "node_modules/@wavemaker/app-ng-runtime/variables/index.d.ts"
87
84
  ],
88
85
  "@wm/mobile/core": [
89
- "node_modules/@wavemaker/app-ng-runtime/mobile/core"
86
+ "node_modules/@wavemaker/app-ng-runtime/mobile/core/index.d.ts"
90
87
  ],
91
88
  "@wm/mobile/components": [
92
- "node_modules/@wavemaker/app-ng-runtime/mobile/components"
89
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/index.d.ts"
93
90
  ],
94
91
  "@wm/mobile/offline": [
95
- "node_modules/@wavemaker/app-ng-runtime/mobile/offline"
92
+ "node_modules/@wavemaker/app-ng-runtime/mobile/offline/index.d.ts"
96
93
  ],
97
94
  "@wm/mobile/variables": [
98
- "node_modules/@wavemaker/app-ng-runtime/mobile/variables"
95
+ "node_modules/@wavemaker/app-ng-runtime/mobile/variables/index.d.ts"
99
96
  ],
100
97
  "@wm/runtime/base": [
101
- "node_modules/@wavemaker/app-ng-runtime/runtime/base"
98
+ "node_modules/@wavemaker/app-ng-runtime/runtime/base/index.d.ts"
102
99
  ],
103
100
  "@wm/runtime/dynamic": [
104
- "node_modules/@wavemaker/app-ng-runtime/runtime/dynamic"
101
+ "node_modules/@wavemaker/app-ng-runtime/runtime/dynamic/index.d.ts"
105
102
  ],
106
103
  "@wm/mobile/runtime": [
107
- "node_modules/@wavemaker/app-ng-runtime/mobile/runtime"
104
+ "node_modules/@wavemaker/app-ng-runtime/mobile/runtime/index.d.ts"
108
105
  ],
109
106
  "@wm/mobile/runtime/dynamic": [
110
- "node_modules/@wavemaker/app-ng-runtime/mobile/runtime-dynamic"
107
+ "node_modules/@wavemaker/app-ng-runtime/mobile/runtime-dynamic/index.d.ts"
111
108
  ]
112
109
  },
113
- "useDefineForClassFields": false
110
+ "lib": [
111
+ "es2020",
112
+ "dom"
113
+ ],
114
+ "useDefineForClassFields": false,
115
+ "resolveJsonModule": true
114
116
  },
115
117
  "angularCompilerOptions": {
116
118
  "compilationMode": "full",
117
119
  "strictMetadataEmit": false,
118
- "fullTemplateTypeCheck": false
120
+ "fullTemplateTypeCheck": false,
121
+ "extendedDiagnostics": {
122
+ "checks": {
123
+ "optionalChainNotNullable": "suppress"
124
+ }
125
+ },
126
+ "enableI18nLegacyMessageIdFormat": false,
127
+ "strictInjectionParameters": false,
128
+ "strictInputAccessModifiers": false,
129
+ "trace": true
119
130
  }
120
131
  }