@wavemaker/angular-codegen 11.7.5-rc.5793 → 11.7.6-rc.5925

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,12 @@
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",
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",
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",
13
15
  "lint": "./node_modules/.bin/ng lint",
14
16
  "e2e": "./node_modules/.bin/ng e2e",
15
17
  "optimizecss": "gulp --gulpfile build-scripts/optimize-css.gulpfile.js",
@@ -41,13 +43,13 @@
41
43
  "@awesome-cordova-plugins/network": "5.39.1",
42
44
  "@awesome-cordova-plugins/sqlite": "5.39.1",
43
45
  "@awesome-cordova-plugins/vibration": "5.39.1",
44
- "@babel/runtime": "7.14.8",
45
- "@metrichor/jmespath": "0.3.1",
46
- "@wavemaker/focus-trap": "1.0.0",
46
+ "@babel/runtime": "^7.14.8",
47
+ "@metrichor/jmespath": "^0.3.1",
48
+ "@wavemaker/focus-trap": "^1.0.0",
47
49
  "@wavemaker/nvd3": "1.8.11",
48
- "@wavemaker/variables": "11.7.5-rc.5793",
49
- "@ztree/ztree_v3": "3.5.48",
50
- "angular-imask": "^7.6.1",
50
+ "@wavemaker/variables": "11.7.6-rc.5925",
51
+ "@ztree/ztree_v3": "^3.5.48",
52
+ "angular-imask": "^7.6.0",
51
53
  "angular2-websocket": "0.9.7",
52
54
  "core-js": "3.35.1",
53
55
  "d3": "7.8.5",
@@ -58,7 +60,7 @@
58
60
  "jquery": "3.7.1",
59
61
  "jquery-ui": "1.13.2",
60
62
  "js-cookie": "2.2.0",
61
- "jssha": "3.1.2",
63
+ "jssha": "^3.1.2",
62
64
  "lodash": "4.17.21",
63
65
  "ng-circle-progress": "1.7.1",
64
66
  "ngx-bootstrap": "9.0.0",
@@ -67,11 +69,10 @@
67
69
  "rxjs": "6.6.0",
68
70
  "rxjs-compat": "6.4.0",
69
71
  "summernote": "0.8.18",
70
- "ts-jest": "29.1.1",
71
72
  "tslib": "2.4.1",
72
- "x2js": "3.4.4",
73
- "zone.js": "0.13.3",
74
- "@wavemaker/app-ng-runtime": "11.7.5-rc.5793"
73
+ "x2js": "^3.4.4",
74
+ "zone.js": "~0.13.3",
75
+ "@wavemaker/app-ng-runtime": "11.7.6-rc.5925"
75
76
  },
76
77
  "devDependencies": {
77
78
  "@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
@@ -86,7 +87,8 @@
86
87
  "@rollup/plugin-commonjs": "24.0.0",
87
88
  "@rollup/plugin-multi-entry": "6.0.0",
88
89
  "@rollup/plugin-node-resolve": "15.0.1",
89
- "@types/jest": "^29.5.12",
90
+ "@types/jasmine": "2.8.8",
91
+ "@types/jasminewd2": "2.0.3",
90
92
  "@types/jquery": "3.3.22",
91
93
  "@types/node": "12.11.1",
92
94
  "@types/sizzle": "^2.3.3",
@@ -97,8 +99,17 @@
97
99
  "core-js-builder": "2.5.7",
98
100
  "fs": "0.0.1-security",
99
101
  "fs-extra": "7.0.1",
100
- "jest": "^29.7.0",
101
- "jest-preset-angular": "^14.1.0",
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",
102
113
  "moment": "2.29.4",
103
114
  "moment-timezone": "^0.5.34",
104
115
  "ng-packagr": "16.2.3",
@@ -115,11 +126,6 @@
115
126
  "util": "0.11.1",
116
127
  "yargs": "^17.3.1"
117
128
  },
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
- },
123
129
  "engines": {
124
130
  "node": ">=18.16.1",
125
131
  "npm": ">=9.5.1"
@@ -2,18 +2,22 @@
2
2
  "compileOnSave": false,
3
3
  "compilerOptions": {
4
4
  "baseUrl": "./",
5
- "outDir": "./dist/out-tsc",
6
5
  "downlevelIteration": true,
7
- "declaration": false,
6
+ "outDir": "./dist/out-tsc",
8
7
  "sourceMap": true,
8
+ "declaration": false,
9
+ "target": "es2022",
10
+ "module": "es2020",
11
+ "moduleResolution": "node",
9
12
  "emitDecoratorMetadata": true,
10
13
  "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
+ ],
17
21
  "paths": {
18
22
  "rxjs/observable/throw": [
19
23
  "node_modules/rxjs-compat/_esm2015/observable/throw"
@@ -31,31 +35,31 @@
31
35
  "node_modules/@wavemaker/app-ng-runtime/mobile-build-task"
32
36
  ],
33
37
  "@wm/core": [
34
- "node_modules/@wavemaker/app-ng-runtime/core/index.d.ts"
38
+ "node_modules/@wavemaker/app-ng-runtime/core"
35
39
  ],
36
40
  "@wavemaker/variables": [
37
41
  "node_modules/@wavemaker/variables/"
38
42
  ],
39
43
  "@wm/components/base": [
40
- "node_modules/@wavemaker/app-ng-runtime/components/base/public_api.d.ts"
44
+ "node_modules/@wavemaker/app-ng-runtime/components/base"
41
45
  ],
42
46
  "@wm/components/basic": [
43
- "node_modules/@wavemaker/app-ng-runtime/components/basic/default/index.d.ts"
47
+ "node_modules/@wavemaker/app-ng-runtime/components/basic/default"
44
48
  ],
45
49
  "@wm/components/input": [
46
- "node_modules/@wavemaker/app-ng-runtime/components/input/default/index.d.ts"
50
+ "node_modules/@wavemaker/app-ng-runtime/components/input/default"
47
51
  ],
48
52
  "@wm/components/page": [
49
- "node_modules/@wavemaker/app-ng-runtime/components/page/default/index.d.ts"
53
+ "node_modules/@wavemaker/app-ng-runtime/components/page/default"
50
54
  ],
51
55
  "@wm/mobile/components/basic": [
52
- "node_modules/@wavemaker/app-ng-runtime/mobile/components/basic/default/index.d.ts"
56
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/basic/default"
53
57
  ],
54
58
  "@wm/mobile/components/page": [
55
- "node_modules/@wavemaker/app-ng-runtime/mobile/components/page/default/index.d.ts"
59
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components/page/default"
56
60
  ],
57
61
  "@wm/components/dialogs": [
58
- "node_modules/@wavemaker/app-ng-runtime/components/dialogs/default/index.d.ts"
62
+ "node_modules/@wavemaker/app-ng-runtime/components/dialogs/default"
59
63
  ],
60
64
  "@wm/mobile/components/*": [
61
65
  "node_modules/@wavemaker/app-ng-runtime/mobile/components/*"
@@ -64,67 +68,53 @@
64
68
  "node_modules/@wavemaker/app-ng-runtime/components/*"
65
69
  ],
66
70
  "@wm/transpiler": [
67
- "node_modules/@wavemaker/app-ng-runtime/transpiler/index.d.ts"
71
+ "node_modules/@wavemaker/app-ng-runtime/transpiler"
68
72
  ],
69
73
  "@wm/security": [
70
- "node_modules/@wavemaker/app-ng-runtime/security/index.d.ts"
74
+ "node_modules/@wavemaker/app-ng-runtime/security"
71
75
  ],
72
76
  "@swipey": [
73
- "node_modules/@wavemaker/app-ng-runtime/swipey/index.d.ts"
77
+ "node_modules/@wavemaker/app-ng-runtime/swipey"
74
78
  ],
75
79
  "@wm/http": [
76
- "node_modules/@wavemaker/app-ng-runtime/http/index.d.ts"
80
+ "node_modules/@wavemaker/app-ng-runtime/http"
77
81
  ],
78
82
  "@wm/oAuth": [
79
- "node_modules/@wavemaker/app-ng-runtime/oAuth/index.d.ts"
83
+ "node_modules/@wavemaker/app-ng-runtime/oAuth"
80
84
  ],
81
85
  "@wm/variables": [
82
- "node_modules/@wavemaker/app-ng-runtime/variables/index.d.ts"
86
+ "node_modules/@wavemaker/app-ng-runtime/variables"
83
87
  ],
84
88
  "@wm/mobile/core": [
85
- "node_modules/@wavemaker/app-ng-runtime/mobile/core/index.d.ts"
89
+ "node_modules/@wavemaker/app-ng-runtime/mobile/core"
86
90
  ],
87
91
  "@wm/mobile/components": [
88
- "node_modules/@wavemaker/app-ng-runtime/mobile/components/index.d.ts"
92
+ "node_modules/@wavemaker/app-ng-runtime/mobile/components"
89
93
  ],
90
94
  "@wm/mobile/offline": [
91
- "node_modules/@wavemaker/app-ng-runtime/mobile/offline/index.d.ts"
95
+ "node_modules/@wavemaker/app-ng-runtime/mobile/offline"
92
96
  ],
93
97
  "@wm/mobile/variables": [
94
- "node_modules/@wavemaker/app-ng-runtime/mobile/variables/index.d.ts"
98
+ "node_modules/@wavemaker/app-ng-runtime/mobile/variables"
95
99
  ],
96
100
  "@wm/runtime/base": [
97
- "node_modules/@wavemaker/app-ng-runtime/runtime/base/index.d.ts"
101
+ "node_modules/@wavemaker/app-ng-runtime/runtime/base"
98
102
  ],
99
103
  "@wm/runtime/dynamic": [
100
- "node_modules/@wavemaker/app-ng-runtime/runtime/dynamic/index.d.ts"
104
+ "node_modules/@wavemaker/app-ng-runtime/runtime/dynamic"
101
105
  ],
102
106
  "@wm/mobile/runtime": [
103
- "node_modules/@wavemaker/app-ng-runtime/mobile/runtime/index.d.ts"
107
+ "node_modules/@wavemaker/app-ng-runtime/mobile/runtime"
104
108
  ],
105
109
  "@wm/mobile/runtime/dynamic": [
106
- "node_modules/@wavemaker/app-ng-runtime/mobile/runtime-dynamic/index.d.ts"
110
+ "node_modules/@wavemaker/app-ng-runtime/mobile/runtime-dynamic"
107
111
  ]
108
112
  },
109
- "lib": [
110
- "es2020",
111
- "dom"
112
- ],
113
- "useDefineForClassFields": false,
114
- "resolveJsonModule": true
113
+ "useDefineForClassFields": false
115
114
  },
116
115
  "angularCompilerOptions": {
117
116
  "compilationMode": "full",
118
117
  "strictMetadataEmit": 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
118
+ "fullTemplateTypeCheck": false
129
119
  }
130
120
  }
@@ -21096,6 +21096,7 @@ var ExpressionType;
21096
21096
  })(ExpressionType || (ExpressionType = {}));
21097
21097
  function $parseExpr(expr, defOnly) {
21098
21098
  if (!pipeProvider) {
21099
+ console.log('set pipe provider');
21099
21100
  return noop;
21100
21101
  }
21101
21102
  if (typeof (expr) !== 'string') {
@@ -105001,6 +105001,7 @@ var ExpressionType$2;
105001
105001
  })(ExpressionType$2 || (ExpressionType$2 = {}));
105002
105002
  function $parseExpr$1(expr, defOnly) {
105003
105003
  {
105004
+ console.log('set pipe provider');
105004
105005
  return noop$1$1;
105005
105006
  }
105006
105007
  }
@@ -133865,6 +133866,7 @@ var ExpressionType;
133865
133866
  })(ExpressionType || (ExpressionType = {}));
133866
133867
  function $parseExpr(expr, defOnly) {
133867
133868
  {
133869
+ console.log('set pipe provider');
133868
133870
  return noop$1;
133869
133871
  }
133870
133872
  }
@@ -64092,6 +64092,7 @@ var ExpressionType;
64092
64092
  })(ExpressionType || (ExpressionType = {}));
64093
64093
  function $parseExpr(expr, defOnly) {
64094
64094
  {
64095
+ console.log('set pipe provider');
64095
64096
  return noop$1;
64096
64097
  }
64097
64098
  }
@@ -69455,19 +69456,7 @@ var breadcrumb_build$1 = /*#__PURE__*/Object.freeze({
69455
69456
  const tagName$u = 'div';
69456
69457
  register('wm-menu', () => {
69457
69458
  return {
69458
- pre: attrs => {
69459
- const menuWidth = attrs.get("width");
69460
- let styleBinding = '';
69461
- if (menuWidth) {
69462
- if (menuWidth.indexOf('%') > -1 || menuWidth.indexOf('px') > -1) {
69463
- styleBinding = `[ngStyle]="{'width': '${menuWidth}'}"`;
69464
- return `<${tagName$u} wmMenu dropdown ${getAttrMarkup(attrs)} ${styleBinding}>`;
69465
- }
69466
- }
69467
- else {
69468
- return `<${tagName$u} wmMenu dropdown ${getAttrMarkup(attrs)}>`;
69469
- }
69470
- },
69459
+ pre: attrs => `<${tagName$u} wmMenu dropdown ${getAttrMarkup(attrs)}>`,
69471
69460
  post: () => `</${tagName$u}>`
69472
69461
  };
69473
69462
  });
@@ -64092,6 +64092,7 @@ var ExpressionType;
64092
64092
  })(ExpressionType || (ExpressionType = {}));
64093
64093
  function $parseExpr(expr, defOnly) {
64094
64094
  {
64095
+ console.log('set pipe provider');
64095
64096
  return noop$1;
64096
64097
  }
64097
64098
  }
@@ -69455,19 +69456,7 @@ var breadcrumb_build$1 = /*#__PURE__*/Object.freeze({
69455
69456
  const tagName$u = 'div';
69456
69457
  register('wm-menu', () => {
69457
69458
  return {
69458
- pre: attrs => {
69459
- const menuWidth = attrs.get("width");
69460
- let styleBinding = '';
69461
- if (menuWidth) {
69462
- if (menuWidth.indexOf('%') > -1 || menuWidth.indexOf('px') > -1) {
69463
- styleBinding = `[ngStyle]="{'width': '${menuWidth}'}"`;
69464
- return `<${tagName$u} wmMenu dropdown ${getAttrMarkup(attrs)} ${styleBinding}>`;
69465
- }
69466
- }
69467
- else {
69468
- return `<${tagName$u} wmMenu dropdown ${getAttrMarkup(attrs)}>`;
69469
- }
69470
- },
69459
+ pre: attrs => `<${tagName$u} wmMenu dropdown ${getAttrMarkup(attrs)}>`,
69471
69460
  post: () => `</${tagName$u}>`
69472
69461
  };
69473
69462
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.7.5-rc.5793",
3
+ "version": "11.7.6-rc.5925",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,89 +0,0 @@
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
- });