@wavemaker/angular-codegen 11.7.5-rc.5532 → 11.8.0-next.24864

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 --detectOpenHandles",
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",
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",
@@ -43,13 +41,13 @@
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.0",
49
47
  "@wavemaker/nvd3": "1.8.11",
50
- "@wavemaker/variables": "11.7.5-rc.5532",
51
- "@ztree/ztree_v3": "^3.5.48",
52
- "angular-imask": "7.4.0",
48
+ "@wavemaker/variables": "11.8.0-next.24864",
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",
@@ -60,7 +58,7 @@
60
58
  "jquery": "3.7.1",
61
59
  "jquery-ui": "1.13.2",
62
60
  "js-cookie": "2.2.0",
63
- "jssha": "^3.1.2",
61
+ "jssha": "3.1.2",
64
62
  "lodash": "4.17.21",
65
63
  "ng-circle-progress": "1.7.1",
66
64
  "ngx-bootstrap": "9.0.0",
@@ -69,10 +67,11 @@
69
67
  "rxjs": "6.6.0",
70
68
  "rxjs-compat": "6.4.0",
71
69
  "summernote": "0.8.18",
70
+ "ts-jest": "29.1.1",
72
71
  "tslib": "2.4.1",
73
- "x2js": "^3.4.4",
74
- "zone.js": "~0.13.3",
75
- "@wavemaker/app-ng-runtime": "11.7.5-rc.5532"
72
+ "x2js": "3.4.4",
73
+ "zone.js": "0.13.3",
74
+ "@wavemaker/app-ng-runtime": "11.8.0-next.24864"
76
75
  },
77
76
  "devDependencies": {
78
77
  "@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
@@ -87,8 +86,7 @@
87
86
  "@rollup/plugin-commonjs": "24.0.0",
88
87
  "@rollup/plugin-multi-entry": "6.0.0",
89
88
  "@rollup/plugin-node-resolve": "15.0.1",
90
- "@types/jasmine": "2.8.8",
91
- "@types/jasminewd2": "2.0.3",
89
+ "@types/jest": "^29.5.12",
92
90
  "@types/jquery": "3.3.22",
93
91
  "@types/node": "12.11.1",
94
92
  "@types/sizzle": "^2.3.3",
@@ -99,17 +97,8 @@
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-preset-angular": "^14.1.0",
113
102
  "moment": "2.29.4",
114
103
  "moment-timezone": "^0.5.34",
115
104
  "ng-packagr": "16.2.3",
@@ -126,6 +115,11 @@
126
115
  "util": "0.11.1",
127
116
  "yargs": "^17.3.1"
128
117
  },
118
+ "optionalDependencies": {
119
+ "@rollup/rollup-darwin-arm64": "4.9.5",
120
+ "@rollup/rollup-linux-x64-gnu": "4.9.5",
121
+ "@rollup/rollup-win32-x64": "4.9.5"
122
+ },
129
123
  "engines": {
130
124
  "node": ">=18.16.1",
131
125
  "npm": ">=9.5.1"
@@ -0,0 +1,89 @@
1
+ import "jest-preset-angular/setup-jest";
2
+ import { ToastrModule } from 'ngx-toastr';
3
+ import { TestBed } from '@angular/core/testing';
4
+
5
+ // Mock global objects if necessary
6
+ global.jQuery = require("jquery");
7
+ global.$ = global.jQuery;
8
+
9
+
10
+
11
+ global._ = require("lodash");
12
+ global.moment = require("moment");
13
+ class IntersectionObserver {
14
+ constructor(callback, options) {
15
+
16
+ }
17
+
18
+ observe(element) {
19
+
20
+ }
21
+
22
+ unobserve() {
23
+ return null;
24
+ }
25
+
26
+ disconnect() {
27
+ return null;
28
+ }
29
+ }
30
+ global.IntersectionObserver = IntersectionObserver;
31
+ // jest.setup.js
32
+
33
+ // Mock MSCSSMatrix
34
+ class MockMSCSSMatrix {
35
+ constructor() {
36
+ // Initialize with default values or any necessary properties
37
+ }
38
+
39
+ // Add any methods that your tests might call
40
+ setMatrixValue(value) {
41
+ // Mock implementation of setMatrixValue
42
+ }
43
+
44
+ multiply(matrix) {
45
+ // Mock implementation of multiply
46
+ return this;
47
+ }
48
+
49
+ // Add other methods as needed
50
+ }
51
+
52
+ // Attach the mock to the global scope
53
+ global.MSCSSMatrix = MockMSCSSMatrix;
54
+
55
+ import "jquery-ui/ui/disable-selection.js";
56
+ import "jquery-ui/ui/version.js";
57
+ import "jquery-ui/ui/widget.js";
58
+ import "jquery-ui/ui/scroll-parent.js";
59
+ import "jquery-ui/ui/plugin.js";
60
+ import "jquery-ui/ui/data.js";
61
+ import "jquery-ui/ui/widgets/mouse.js";
62
+ import "jquery-ui/ui/widgets/resizable.js";
63
+ import "jquery-ui/ui/widgets/sortable.js";
64
+ import "jquery-ui/ui/widgets/draggable.js";
65
+ import "jquery-ui/ui/widgets/droppable.js";
66
+ import "libraries/scripts/jquery.ui.touch-punch/jquery.ui.touch-punch.min.js";
67
+ import "moment-timezone/builds/moment-timezone.min.js";
68
+ import "hammerjs/hammer.min.js";
69
+ import "iscroll/build/iscroll.js";
70
+ import "tabbable/dist/index.umd.min.js";
71
+ import "@wavemaker/focus-trap/dist/focus-trap.umd.min.js";
72
+
73
+
74
+
75
+ beforeEach(() => {
76
+ TestBed.configureTestingModule({
77
+ imports : [
78
+ ToastrModule.forRoot(),
79
+ ],
80
+ })
81
+ Object.defineProperties(window, {
82
+ location: {
83
+ writable: true,
84
+ value: {
85
+ reload: jest.fn(),
86
+ },
87
+ },
88
+ });
89
+ });
@@ -2,22 +2,18 @@
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
+ "moduleResolution": "node",
12
+ "target": "ES2022",
13
+ "module": "ES2022",
14
14
  "typeRoots": [
15
15
  "node_modules/@types"
16
16
  ],
17
- "lib": [
18
- "es2018",
19
- "dom"
20
- ],
21
17
  "paths": {
22
18
  "rxjs/observable/throw": [
23
19
  "node_modules/rxjs-compat/_esm2015/observable/throw"
@@ -35,31 +31,31 @@
35
31
  "node_modules/@wavemaker/app-ng-runtime/mobile-build-task"
36
32
  ],
37
33
  "@wm/core": [
38
- "node_modules/@wavemaker/app-ng-runtime/core"
34
+ "node_modules/@wavemaker/app-ng-runtime/core/index.d.ts"
39
35
  ],
40
36
  "@wavemaker/variables": [
41
37
  "node_modules/@wavemaker/variables/"
42
38
  ],
43
39
  "@wm/components/base": [
44
- "node_modules/@wavemaker/app-ng-runtime/components/base"
40
+ "node_modules/@wavemaker/app-ng-runtime/components/base/public_api.d.ts"
45
41
  ],
46
42
  "@wm/components/basic": [
47
- "node_modules/@wavemaker/app-ng-runtime/components/basic/default"
43
+ "node_modules/@wavemaker/app-ng-runtime/components/basic/default/index.d.ts"
48
44
  ],
49
45
  "@wm/components/input": [
50
- "node_modules/@wavemaker/app-ng-runtime/components/input/default"
46
+ "node_modules/@wavemaker/app-ng-runtime/components/input/default/index.d.ts"
51
47
  ],
52
48
  "@wm/components/page": [
53
- "node_modules/@wavemaker/app-ng-runtime/components/page/default"
49
+ "node_modules/@wavemaker/app-ng-runtime/components/page/default/index.d.ts"
54
50
  ],
55
51
  "@wm/mobile/components/basic": [
56
- "node_modules/@wavemaker/app-ng-runtime/mobile/components/basic/default"
52
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/basic/default/index.d.ts"
57
53
  ],
58
54
  "@wm/mobile/components/page": [
59
- "node_modules/@wavemaker/app-ng-runtime/mobile/components/page/default"
55
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/page/default/index.d.ts"
60
56
  ],
61
57
  "@wm/components/dialogs": [
62
- "node_modules/@wavemaker/app-ng-runtime/components/dialogs/default"
58
+ "node_modules/@wavemaker/app-ng-runtime/components/dialogs/default/index.d.ts"
63
59
  ],
64
60
  "@wm/mobile/components/*": [
65
61
  "node_modules/@wavemaker/app-ng-runtime/mobile/components/*"
@@ -68,53 +64,67 @@
68
64
  "node_modules/@wavemaker/app-ng-runtime/components/*"
69
65
  ],
70
66
  "@wm/transpiler": [
71
- "node_modules/@wavemaker/app-ng-runtime/transpiler"
67
+ "node_modules/@wavemaker/app-ng-runtime/transpiler/index.d.ts"
72
68
  ],
73
69
  "@wm/security": [
74
- "node_modules/@wavemaker/app-ng-runtime/security"
70
+ "node_modules/@wavemaker/app-ng-runtime/security/index.d.ts"
75
71
  ],
76
72
  "@swipey": [
77
- "node_modules/@wavemaker/app-ng-runtime/swipey"
73
+ "node_modules/@wavemaker/app-ng-runtime/swipey/index.d.ts"
78
74
  ],
79
75
  "@wm/http": [
80
- "node_modules/@wavemaker/app-ng-runtime/http"
76
+ "node_modules/@wavemaker/app-ng-runtime/http/index.d.ts"
81
77
  ],
82
78
  "@wm/oAuth": [
83
- "node_modules/@wavemaker/app-ng-runtime/oAuth"
79
+ "node_modules/@wavemaker/app-ng-runtime/oAuth/index.d.ts"
84
80
  ],
85
81
  "@wm/variables": [
86
- "node_modules/@wavemaker/app-ng-runtime/variables"
82
+ "node_modules/@wavemaker/app-ng-runtime/variables/index.d.ts"
87
83
  ],
88
84
  "@wm/mobile/core": [
89
- "node_modules/@wavemaker/app-ng-runtime/mobile/core"
85
+ "node_modules/@wavemaker/app-ng-runtime/mobile/core/index.d.ts"
90
86
  ],
91
87
  "@wm/mobile/components": [
92
- "node_modules/@wavemaker/app-ng-runtime/mobile/components"
88
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/index.d.ts"
93
89
  ],
94
90
  "@wm/mobile/offline": [
95
- "node_modules/@wavemaker/app-ng-runtime/mobile/offline"
91
+ "node_modules/@wavemaker/app-ng-runtime/mobile/offline/index.d.ts"
96
92
  ],
97
93
  "@wm/mobile/variables": [
98
- "node_modules/@wavemaker/app-ng-runtime/mobile/variables"
94
+ "node_modules/@wavemaker/app-ng-runtime/mobile/variables/index.d.ts"
99
95
  ],
100
96
  "@wm/runtime/base": [
101
- "node_modules/@wavemaker/app-ng-runtime/runtime/base"
97
+ "node_modules/@wavemaker/app-ng-runtime/runtime/base/index.d.ts"
102
98
  ],
103
99
  "@wm/runtime/dynamic": [
104
- "node_modules/@wavemaker/app-ng-runtime/runtime/dynamic"
100
+ "node_modules/@wavemaker/app-ng-runtime/runtime/dynamic/index.d.ts"
105
101
  ],
106
102
  "@wm/mobile/runtime": [
107
- "node_modules/@wavemaker/app-ng-runtime/mobile/runtime"
103
+ "node_modules/@wavemaker/app-ng-runtime/mobile/runtime/index.d.ts"
108
104
  ],
109
105
  "@wm/mobile/runtime/dynamic": [
110
- "node_modules/@wavemaker/app-ng-runtime/mobile/runtime-dynamic"
106
+ "node_modules/@wavemaker/app-ng-runtime/mobile/runtime-dynamic/index.d.ts"
111
107
  ]
112
108
  },
113
- "useDefineForClassFields": false
109
+ "lib": [
110
+ "es2020",
111
+ "dom"
112
+ ],
113
+ "useDefineForClassFields": false,
114
+ "resolveJsonModule": true
114
115
  },
115
116
  "angularCompilerOptions": {
116
117
  "compilationMode": "full",
117
118
  "strictMetadataEmit": false,
118
- "fullTemplateTypeCheck": false
119
+ "fullTemplateTypeCheck": false,
120
+ "extendedDiagnostics": {
121
+ "checks": {
122
+ "optionalChainNotNullable": "suppress"
123
+ }
124
+ },
125
+ "enableI18nLegacyMessageIdFormat": false,
126
+ "strictInjectionParameters": false,
127
+ "strictInputAccessModifiers": false,
128
+ "trace": true
119
129
  }
120
130
  }
@@ -21096,7 +21096,6 @@ var ExpressionType;
21096
21096
  })(ExpressionType || (ExpressionType = {}));
21097
21097
  function $parseExpr(expr, defOnly) {
21098
21098
  if (!pipeProvider) {
21099
- console.log('set pipe provider');
21100
21099
  return noop;
21101
21100
  }
21102
21101
  if (typeof (expr) !== 'string') {
@@ -105001,7 +105001,6 @@ var ExpressionType$2;
105001
105001
  })(ExpressionType$2 || (ExpressionType$2 = {}));
105002
105002
  function $parseExpr$1(expr, defOnly) {
105003
105003
  {
105004
- console.log('set pipe provider');
105005
105004
  return noop$1$1;
105006
105005
  }
105007
105006
  }
@@ -133866,7 +133865,6 @@ var ExpressionType;
133866
133865
  })(ExpressionType || (ExpressionType = {}));
133867
133866
  function $parseExpr(expr, defOnly) {
133868
133867
  {
133869
- console.log('set pipe provider');
133870
133868
  return noop$1;
133871
133869
  }
133872
133870
  }
@@ -64092,7 +64092,6 @@ var ExpressionType;
64092
64092
  })(ExpressionType || (ExpressionType = {}));
64093
64093
  function $parseExpr(expr, defOnly) {
64094
64094
  {
64095
- console.log('set pipe provider');
64096
64095
  return noop$1;
64097
64096
  }
64098
64097
  }
@@ -64092,7 +64092,6 @@ var ExpressionType;
64092
64092
  })(ExpressionType || (ExpressionType = {}));
64093
64093
  function $parseExpr(expr, defOnly) {
64094
64094
  {
64095
- console.log('set pipe provider');
64096
64095
  return noop$1;
64097
64096
  }
64098
64097
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.7.5-rc.5532",
3
+ "version": "11.8.0-next.24864",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {