@wavemaker/angular-codegen 11.14.1-rc.6310 → 11.14.2-1.245
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/angular-app/dependency-report.html +1 -1
- package/angular-app/npm-shrinkwrap.json +150 -211
- package/angular-app/package-lock.json +150 -211
- package/angular-app/package.json +6 -6
- package/angular-app/src/framework/services/component-ref-provider.service.ts +4 -0
- package/angular-app/src/main.ts +13 -4
- package/dependencies/custom-widgets-bundle.cjs.js +43 -37
- package/dependencies/pipe-provider.cjs.js +489 -108
- package/dependencies/transpilation-web.cjs.js +236 -48
- package/npm-shrinkwrap.json +105 -109
- package/package-lock.json +105 -109
- package/package.json +2 -2
- package/src/gen-app-override-css.js +1 -1
package/angular-app/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/angular-app",
|
|
3
|
-
"version": "11.14.1
|
|
3
|
+
"version": "11.14.2-1.245",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"ng": "ng",
|
|
6
6
|
"start": "./node_modules/.bin/ng serve",
|
|
@@ -36,11 +36,11 @@
|
|
|
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.14.1
|
|
39
|
+
"@wavemaker/custom-widgets-m3": "11.14.2-1.245",
|
|
40
40
|
"@wavemaker/focus-trap": "1.0.1",
|
|
41
|
-
"@wavemaker/foundation-css": "11.14.1
|
|
42
|
-
"@wavemaker/nvd3": "1.8.
|
|
43
|
-
"@wavemaker/variables": "11.14.1
|
|
41
|
+
"@wavemaker/foundation-css": "11.14.2-1.245",
|
|
42
|
+
"@wavemaker/nvd3": "1.8.16",
|
|
43
|
+
"@wavemaker/variables": "11.14.2-1.245",
|
|
44
44
|
"@ztree/ztree_v3": "3.5.48",
|
|
45
45
|
"acorn": "^8.15.0",
|
|
46
46
|
"angular-imask": "7.6.1",
|
|
@@ -62,7 +62,7 @@
|
|
|
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.14.1
|
|
65
|
+
"@wavemaker/app-ng-runtime": "11.14.2-1.245"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
|
|
@@ -32,6 +32,10 @@ export class ComponentRefProviderService extends ComponentRefProvider {
|
|
|
32
32
|
return Promise.resolve(partialRef);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
+
// Guard against undefined value
|
|
36
|
+
if (!value) {
|
|
37
|
+
return Promise.resolve(null);
|
|
38
|
+
}
|
|
35
39
|
if (!value.componentFactory) {
|
|
36
40
|
value.componentFactory = this.componentFactoryResolver.resolveComponentFactory(value.ref);
|
|
37
41
|
}
|
package/angular-app/src/main.ts
CHANGED
|
@@ -48,14 +48,23 @@ if (environment.production) {
|
|
|
48
48
|
enableProdMode();
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
// MEMORY LEAK FIX: Store event listener references for cleanup (though these are one-time bootstrap events)
|
|
52
|
+
const boundDOMContentLoadedHandler = () => {
|
|
52
53
|
new Promise<Event | void>(resolve => {
|
|
53
54
|
resolve();
|
|
54
55
|
}).then(() => bootstrapApplication(AppComponent, appConfig))
|
|
55
56
|
.then((appRef: ApplicationRef) => {
|
|
56
|
-
|
|
57
|
+
// MEMORY LEAK FIX: Store unload handler reference
|
|
58
|
+
const boundUnloadHandler = () => {
|
|
57
59
|
appRef.components.map(c => c?.destroy());
|
|
58
|
-
|
|
60
|
+
// MEMORY LEAK FIX: Remove unload listener after cleanup (though unload is typically final)
|
|
61
|
+
window.removeEventListener('unload', boundUnloadHandler);
|
|
62
|
+
};
|
|
63
|
+
window.addEventListener('unload', boundUnloadHandler);
|
|
59
64
|
})
|
|
60
65
|
.catch(err => console.error('Error bootstrapping app:', err));
|
|
61
|
-
|
|
66
|
+
// MEMORY LEAK FIX: Remove DOMContentLoaded listener after execution (one-time event)
|
|
67
|
+
document.removeEventListener('DOMContentLoaded', boundDOMContentLoadedHandler);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
document.addEventListener('DOMContentLoaded', boundDOMContentLoadedHandler);
|