@wavemaker/angular-app 11.15.6-1.647701 → 11.16.0-rc.269
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.
- package/build-scripts/build.js +18 -1
- package/build-scripts/ng-circle-progress-patch.mjs +38 -0
- package/build-scripts/ngx-bootstrap-patch.mjs +308 -0
- package/dependencies/custom-widgets-bundle.cjs.js +14 -37
- package/dependencies/expression-parser.cjs.js +81671 -27260
- package/dependencies/pipe-provider.cjs.js +206100 -196715
- package/dependencies/transpilation-web.cjs.js +60768 -80080
- package/dependency-report.html +1 -1
- package/npm-shrinkwrap.json +14530 -16101
- package/package-lock.json +14530 -16101
- package/package.json +41 -39
- package/src/framework/services/component-ref-provider.service.ts +8 -3
- package/src/framework/services/lazy-component-ref-provider.service.ts +5 -8
- package/src/setup-jest.js +26 -0
- package/tsconfig.json +5 -2
- package/tsconfig.web-app.json +11 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/angular-app",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.16.0-rc.269",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"ng": "ng",
|
|
6
6
|
"start": "./node_modules/.bin/ng serve",
|
|
@@ -14,33 +14,33 @@
|
|
|
14
14
|
"e2e": "./node_modules/.bin/ng e2e",
|
|
15
15
|
"generate-deps": "node generate-dependency-report.js",
|
|
16
16
|
"optimizecss": "gulp --gulpfile build-scripts/optimize-css.gulpfile.js",
|
|
17
|
-
"owasp": "
|
|
17
|
+
"owasp": "./dependency-check-bin/v13.0.0/dependency-check/bin/dependency-check.sh --project wavemaker-ng-runtime --scan . --format ALL --out ./dependency-check-reports"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
20
|
"**/*",
|
|
21
21
|
".npmrc"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@angular/animations": "
|
|
25
|
-
"@angular/common": "
|
|
26
|
-
"@angular/compiler": "
|
|
27
|
-
"@angular/core": "
|
|
28
|
-
"@angular/forms": "
|
|
29
|
-
"@angular/platform-browser": "
|
|
30
|
-
"@angular/platform-browser-dynamic": "
|
|
31
|
-
"@angular/router": "
|
|
32
|
-
"@angular/service-worker": "
|
|
24
|
+
"@angular/animations": "22.2.0",
|
|
25
|
+
"@angular/common": "22.2.0",
|
|
26
|
+
"@angular/compiler": "22.2.0",
|
|
27
|
+
"@angular/core": "22.2.0",
|
|
28
|
+
"@angular/forms": "22.2.0",
|
|
29
|
+
"@angular/platform-browser": "22.2.0",
|
|
30
|
+
"@angular/platform-browser-dynamic": "22.2.0",
|
|
31
|
+
"@angular/router": "22.2.0",
|
|
32
|
+
"@angular/service-worker": "22.2.0",
|
|
33
33
|
"@fullcalendar/core": "6.1.18",
|
|
34
34
|
"@fullcalendar/daygrid": "6.1.18",
|
|
35
35
|
"@fullcalendar/interaction": "6.1.18",
|
|
36
36
|
"@fullcalendar/list": "6.1.18",
|
|
37
37
|
"@fullcalendar/timegrid": "6.1.18",
|
|
38
38
|
"@metrichor/jmespath": "0.3.1",
|
|
39
|
-
"@wavemaker/custom-widgets-m3": "11.
|
|
39
|
+
"@wavemaker/custom-widgets-m3": "11.16.0-rc.269",
|
|
40
40
|
"@wavemaker/focus-trap": "1.0.1",
|
|
41
|
-
"@wavemaker/foundation-css": "11.
|
|
41
|
+
"@wavemaker/foundation-css": "11.16.0-rc.269",
|
|
42
42
|
"@wavemaker/nvd3": "1.8.16",
|
|
43
|
-
"@wavemaker/variables": "11.
|
|
43
|
+
"@wavemaker/variables": "11.16.0-rc.269",
|
|
44
44
|
"@ztree/ztree_v3": "3.5.48",
|
|
45
45
|
"acorn": "^8.15.0",
|
|
46
46
|
"angular-imask": "7.6.1",
|
|
@@ -51,32 +51,32 @@
|
|
|
51
51
|
"jquery-ui": "1.14.1",
|
|
52
52
|
"jssha": "3.3.1",
|
|
53
53
|
"lodash-es": "4.18.1",
|
|
54
|
-
"moment": "2.
|
|
54
|
+
"moment": "2.31.0",
|
|
55
55
|
"moment-timezone": "^0.6.0",
|
|
56
56
|
"ng-circle-progress": "1.7.1",
|
|
57
|
-
"ngx-bootstrap": "
|
|
57
|
+
"ngx-bootstrap": "22.0.0",
|
|
58
58
|
"ngx-color-picker": "20.1.1",
|
|
59
|
-
"ngx-toastr": "
|
|
59
|
+
"ngx-toastr": "20.0.5",
|
|
60
60
|
"rxjs": "7.8.2",
|
|
61
61
|
"summernote": "0.9.1",
|
|
62
62
|
"tslib": "2.8.1",
|
|
63
63
|
"x2js": "3.4.4",
|
|
64
64
|
"zone.js": "0.15.1",
|
|
65
|
-
"@wavemaker/app-ng-runtime": "11.
|
|
65
|
+
"@wavemaker/app-ng-runtime": "11.16.0-rc.269"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
|
|
69
|
-
"@angular-builders/custom-webpack": "
|
|
70
|
-
"@angular-devkit/build-angular": "
|
|
71
|
-
"@angular-eslint/builder": "
|
|
72
|
-
"@angular-eslint/eslint-plugin": "
|
|
73
|
-
"@angular-eslint/eslint-plugin-template": "
|
|
74
|
-
"@angular-eslint/schematics": "
|
|
75
|
-
"@angular-eslint/template-parser": "
|
|
76
|
-
"@angular/cli": "
|
|
77
|
-
"@angular/compiler-cli": "
|
|
78
|
-
"@angular/language-service": "
|
|
79
|
-
"@compodoc/compodoc": "
|
|
69
|
+
"@angular-builders/custom-webpack": "22.0.1",
|
|
70
|
+
"@angular-devkit/build-angular": "22.2.0",
|
|
71
|
+
"@angular-eslint/builder": "22.5.0",
|
|
72
|
+
"@angular-eslint/eslint-plugin": "22.5.0",
|
|
73
|
+
"@angular-eslint/eslint-plugin-template": "22.5.0",
|
|
74
|
+
"@angular-eslint/schematics": "22.5.0",
|
|
75
|
+
"@angular-eslint/template-parser": "22.5.0",
|
|
76
|
+
"@angular/cli": "22.2.0",
|
|
77
|
+
"@angular/compiler-cli": "22.2.0",
|
|
78
|
+
"@angular/language-service": "22.2.0",
|
|
79
|
+
"@compodoc/compodoc": "2.0.0",
|
|
80
80
|
"@rollup/plugin-alias": "5.1.1",
|
|
81
81
|
"@rollup/plugin-commonjs": "28.0.6",
|
|
82
82
|
"@rollup/plugin-multi-entry": "6.0.1",
|
|
@@ -86,27 +86,26 @@
|
|
|
86
86
|
"@types/jquery": "^3.5.32",
|
|
87
87
|
"@types/lodash-es": "4.17.12",
|
|
88
88
|
"@types/node": "^24.2.0",
|
|
89
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
90
|
-
"@typescript-eslint/parser": "8.
|
|
89
|
+
"@typescript-eslint/eslint-plugin": "8.70.1",
|
|
90
|
+
"@typescript-eslint/parser": "8.70.1",
|
|
91
91
|
"cheerio": "1.1.2",
|
|
92
92
|
"compression-webpack-plugin": "11.1.0",
|
|
93
93
|
"core-js": "3.45.0",
|
|
94
|
-
"eslint": "^
|
|
94
|
+
"eslint": "^9.39.5",
|
|
95
95
|
"fs": "0.0.1-security",
|
|
96
96
|
"fs-extra": "11.3.1",
|
|
97
97
|
"jest": "^30.0.5",
|
|
98
98
|
"jest-canvas-mock": "^2.5.2",
|
|
99
99
|
"jest-environment-jsdom": "^30.0.5",
|
|
100
|
-
"jest-preset-angular": "^
|
|
100
|
+
"jest-preset-angular": "^17.0.0",
|
|
101
101
|
"license-checker": "25.0.1",
|
|
102
102
|
"moment-locales-webpack-plugin": "^1.2.0",
|
|
103
|
-
"ng-packagr": "
|
|
104
|
-
"owasp-dependency-check": "1.0.1",
|
|
103
|
+
"ng-packagr": "22.2.1",
|
|
105
104
|
"rimraf": "6.0.1",
|
|
106
105
|
"rollup": "4.60.1",
|
|
107
106
|
"sonarqube-scanner": "3.5.0",
|
|
108
107
|
"terser": "^5.43.1",
|
|
109
|
-
"typescript": "
|
|
108
|
+
"typescript": "6.0.3",
|
|
110
109
|
"util": "0.12.5",
|
|
111
110
|
"yargs": "^18.0.0"
|
|
112
111
|
},
|
|
@@ -117,15 +116,18 @@
|
|
|
117
116
|
"@rollup/rollup-win32-x64": "4.60.1"
|
|
118
117
|
},
|
|
119
118
|
"engines": {
|
|
120
|
-
"node": "22.
|
|
121
|
-
"npm": "10.9.
|
|
119
|
+
"node": "22.22.3",
|
|
120
|
+
"npm": "10.9.8"
|
|
122
121
|
},
|
|
123
122
|
"overrides": {
|
|
123
|
+
"adm-zip": "0.6.1",
|
|
124
124
|
"ng-packagr": {
|
|
125
125
|
"@rollup/wasm-node": "4.40.2"
|
|
126
126
|
},
|
|
127
127
|
"rollup": "4.60.1",
|
|
128
|
-
"
|
|
128
|
+
"serialize-javascript": "7.1.2",
|
|
129
|
+
"undici": "7.30.0",
|
|
130
|
+
"uuid": "14.0.0"
|
|
129
131
|
},
|
|
130
132
|
"engineStrict": true
|
|
131
133
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Injectable, Inject } from '@angular/core';
|
|
2
2
|
|
|
3
3
|
import { ComponentRefProvider, ComponentType } from '@wm/runtime/base';
|
|
4
4
|
import { LazyComponentRefProviderService } from './lazy-component-ref-provider.service';
|
|
@@ -16,7 +16,7 @@ export class ComponentRefProviderService extends ComponentRefProvider {
|
|
|
16
16
|
componentRefCache.get(type).set(name, {ref: ref, componentFactory: componentFactory});
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
constructor(
|
|
19
|
+
constructor(@Inject(LazyComponentRefProviderService) private lazyComponentRef) {
|
|
20
20
|
super();
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -36,8 +36,13 @@ export class ComponentRefProviderService extends ComponentRefProvider {
|
|
|
36
36
|
if (!value) {
|
|
37
37
|
return Promise.resolve(null);
|
|
38
38
|
}
|
|
39
|
+
// Angular 22 removed ComponentFactoryResolver / ComponentFactory-based createComponent()
|
|
40
|
+
// entirely — value.ref is already a component class (registered via
|
|
41
|
+
// ComponentRefProviderService.registerComponentRef), which the new
|
|
42
|
+
// ViewContainerRef.createComponent(Type, options) API accepts directly. No factory
|
|
43
|
+
// resolution step needed at all anymore.
|
|
39
44
|
if (!value.componentFactory) {
|
|
40
|
-
value.componentFactory =
|
|
45
|
+
value.componentFactory = value.ref;
|
|
41
46
|
}
|
|
42
47
|
return Promise.resolve(value.componentFactory);
|
|
43
48
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Injectable
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
2
|
import { PartialRefProvider } from '@wm/core';
|
|
3
3
|
import { ComponentType } from '@wm/runtime/base';
|
|
4
4
|
import { partialLazyModules, prefabLazyModules, prefabPartialLazyModules } from '../util/lazy-module-routes';
|
|
@@ -11,11 +11,6 @@ type Options = {
|
|
|
11
11
|
providedIn: 'root'
|
|
12
12
|
})
|
|
13
13
|
export class LazyComponentRefProviderService extends PartialRefProvider {
|
|
14
|
-
constructor(
|
|
15
|
-
private componentFactoryResolver: ComponentFactoryResolver
|
|
16
|
-
) {
|
|
17
|
-
super();
|
|
18
|
-
}
|
|
19
14
|
|
|
20
15
|
private getLazyModule(componentName: string, componentType: ComponentType, options?: Options) {
|
|
21
16
|
if (componentType === ComponentType.PARTIAL && options && options.prefab) {
|
|
@@ -46,8 +41,10 @@ export class LazyComponentRefProviderService extends PartialRefProvider {
|
|
|
46
41
|
return null;
|
|
47
42
|
}
|
|
48
43
|
|
|
49
|
-
//
|
|
50
|
-
|
|
44
|
+
// Angular 22 removed ComponentFactoryResolver / ComponentFactory-based createComponent()
|
|
45
|
+
// entirely — loadedComponent is already a component class, which the new
|
|
46
|
+
// ViewContainerRef.createComponent(Type, options) API accepts directly.
|
|
47
|
+
return loadedComponent;
|
|
51
48
|
} catch (e) {
|
|
52
49
|
console.error('Error in getComponentFactoryRef:', e);
|
|
53
50
|
return null;
|
package/src/setup-jest.js
CHANGED
|
@@ -118,4 +118,30 @@ Object.defineProperty(global.HTMLMediaElement.prototype, 'addTextTrack', {
|
|
|
118
118
|
value: jest.fn(),
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
+
// jsdom has no layout engine: Element.prototype.getClientRects() always returns an
|
|
122
|
+
// empty list, regardless of the element's actual content/attachment. tabbable@6+'s
|
|
123
|
+
// default displayCheck: 'full' treats "zero client rects" as hidden, so under jsdom
|
|
124
|
+
// every element looks invisible and @wavemaker/focus-trap's activate() always throws
|
|
125
|
+
// "must have at least one tabbable node" for any real container (e.g. ngx-bootstrap's
|
|
126
|
+
// bs-datepicker-container). This is a jsdom/tabbable interaction, not app behavior --
|
|
127
|
+
// stub a non-empty rect so tabbable's own attribute-based checks (tabindex, disabled,
|
|
128
|
+
// etc.) decide tabbability instead, matching real-browser behavior for elements that
|
|
129
|
+
// are actually attached and not display:none.
|
|
130
|
+
if (!global.Element.prototype.getClientRects || !global.Element.prototype.getClientRects.__wmStub) {
|
|
131
|
+
const originalGetClientRects = global.Element.prototype.getClientRects;
|
|
132
|
+
const stubGetClientRects = function () {
|
|
133
|
+
const real = originalGetClientRects ? originalGetClientRects.call(this) : [];
|
|
134
|
+
if (real && real.length) {
|
|
135
|
+
return real;
|
|
136
|
+
}
|
|
137
|
+
const style = global.getComputedStyle(this);
|
|
138
|
+
if (style.display === 'none' || style.visibility === 'hidden') {
|
|
139
|
+
return [];
|
|
140
|
+
}
|
|
141
|
+
return [{ width: 1, height: 1, top: 0, left: 0, right: 1, bottom: 1, x: 0, y: 0 }];
|
|
142
|
+
};
|
|
143
|
+
stubGetClientRects.__wmStub = true;
|
|
144
|
+
global.Element.prototype.getClientRects = stubGetClientRects;
|
|
145
|
+
}
|
|
146
|
+
|
|
121
147
|
|
package/tsconfig.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compileOnSave": false,
|
|
3
3
|
"compilerOptions": {
|
|
4
|
+
"ignoreDeprecations": "6.0",
|
|
5
|
+
"strict": false,
|
|
4
6
|
"baseUrl": "./",
|
|
5
7
|
"downlevelIteration": true,
|
|
6
8
|
"outDir": "./dist/out-tsc",
|
|
@@ -8,7 +10,7 @@
|
|
|
8
10
|
"declaration": false,
|
|
9
11
|
"target": "es2022",
|
|
10
12
|
"module": "es2022",
|
|
11
|
-
"moduleResolution": "
|
|
13
|
+
"moduleResolution": "bundler",
|
|
12
14
|
"esModuleInterop": true,
|
|
13
15
|
"emitDecoratorMetadata": true,
|
|
14
16
|
"experimentalDecorators": true,
|
|
@@ -89,6 +91,7 @@
|
|
|
89
91
|
"angularCompilerOptions": {
|
|
90
92
|
"compilationMode": "full",
|
|
91
93
|
"strictMetadataEmit": false,
|
|
92
|
-
"fullTemplateTypeCheck": false
|
|
94
|
+
"fullTemplateTypeCheck": false,
|
|
95
|
+
"strictTemplates": false
|
|
93
96
|
}
|
|
94
97
|
}
|
package/tsconfig.web-app.json
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compileOnSave": false,
|
|
3
3
|
"compilerOptions": {
|
|
4
|
+
"ignoreDeprecations": "6.0",
|
|
5
|
+
"strict": false,
|
|
4
6
|
"baseUrl": "./",
|
|
5
7
|
"downlevelIteration": true,
|
|
6
8
|
"outDir": "./dist/out-tsc",
|
|
7
9
|
"sourceMap": true,
|
|
8
10
|
"declaration": false,
|
|
9
11
|
"target": "es2022",
|
|
10
|
-
"module": "
|
|
11
|
-
"moduleResolution": "
|
|
12
|
+
"module": "es2022",
|
|
13
|
+
"moduleResolution": "bundler",
|
|
14
|
+
"esModuleInterop": true,
|
|
12
15
|
"emitDecoratorMetadata": true,
|
|
13
16
|
"experimentalDecorators": true,
|
|
14
17
|
"typeRoots": [
|
|
15
18
|
"node_modules/@types"
|
|
16
19
|
],
|
|
17
20
|
"lib": [
|
|
18
|
-
"
|
|
21
|
+
"es2022",
|
|
19
22
|
"dom"
|
|
20
23
|
],
|
|
21
24
|
"paths": {
|
|
@@ -73,9 +76,12 @@
|
|
|
73
76
|
"@wm/runtime/dynamic": [
|
|
74
77
|
"node_modules/@wavemaker/app-ng-runtime/runtime/dynamic"
|
|
75
78
|
]
|
|
76
|
-
}
|
|
79
|
+
},
|
|
80
|
+
"useDefineForClassFields": false
|
|
77
81
|
},
|
|
78
82
|
"angularCompilerOptions": {
|
|
79
|
-
"compilationMode": "full"
|
|
83
|
+
"compilationMode": "full",
|
|
84
|
+
"fullTemplateTypeCheck": false,
|
|
85
|
+
"strictTemplates": false
|
|
80
86
|
}
|
|
81
87
|
}
|