@wavemaker-ai/angular-codegen 12.0.2-rc.647771 → 12.1.0-rc.349

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.
Files changed (41) hide show
  1. package/angular-app/build-scripts/ng-circle-progress-patch.mjs +38 -0
  2. package/angular-app/dependency-report.html +1 -1
  3. package/angular-app/npm-shrinkwrap.json +14860 -15752
  4. package/angular-app/package-lock.json +14860 -15752
  5. package/angular-app/package.json +43 -48
  6. package/angular-app/src/app/app-defaults.spec.ts +39 -0
  7. package/angular-app/src/app/prefabs/prefab-config.spec.ts +8 -0
  8. package/angular-app/src/assets/styles/css/wm-responsive.css +1 -1
  9. package/angular-app/src/assets/styles/css/wm-style.css +1 -1
  10. package/angular-app/src/framework/services/component-ref-providers.spec.ts +93 -0
  11. package/angular-app/src/framework/services/providers.spec.ts +63 -0
  12. package/angular-app/src/framework/util/lazy-module-routes.spec.ts +9 -0
  13. package/angular-app/src/framework/util/page-util.spec.ts +18 -0
  14. package/angular-app/src/polyfills.spec.ts +9 -0
  15. package/angular-app/src/setup-jest.js +4 -1
  16. package/angular-app/src/wm-namespace.spec.ts +29 -0
  17. package/angular-app/tsconfig.json +3 -0
  18. package/angular-app/tsconfig.web-app.json +3 -0
  19. package/dependencies/expression-parser.cjs.js +11441 -9850
  20. package/dependencies/pipe-provider.cjs.js +27146 -21371
  21. package/dependencies/transpilation-web.cjs.js +20627 -17714
  22. package/npm-shrinkwrap.json +2087 -2338
  23. package/package-lock.json +2087 -2338
  24. package/package.json +15 -10
  25. package/src/codegen-args-cli.js +1 -1
  26. package/src/expr-parser-utils.js +1 -1
  27. package/src/gen-app-override-css.js +1 -1
  28. package/src/gen-components.js +1 -1
  29. package/src/gen-index-html.js +1 -1
  30. package/src/gen-layouts.js +1 -1
  31. package/src/handlebar-helpers.js +1 -1
  32. package/src/pages-util.js +1 -1
  33. package/src/project-meta.js +1 -1
  34. package/src/update-angular-json.js +1 -1
  35. package/src/wm-utils.js +1 -1
  36. package/templates/app.config.ts.hbs +4 -3
  37. package/templates/customwidget/customwidget.component.ts.hbs +2 -1
  38. package/templates/layout/layout.component.ts.hbs +2 -1
  39. package/templates/page/page.component.ts.hbs +2 -1
  40. package/templates/partial/partial.component.ts.hbs +2 -1
  41. package/templates/prefab/prefab.component.ts.hbs +2 -1
@@ -0,0 +1,38 @@
1
+ /**
2
+ * ng-circle-progress patching for the UMD (JIT) bundle.
3
+ *
4
+ * ng-circle-progress 1.7.1 is compiled against Angular 14.2.12 and its partial declaration
5
+ * (ɵɵngDeclareComponent) has no `changeDetection` field. The UMD bundle is not run through the
6
+ * Angular linker, so the browser JIT-compiles that declaration — and Angular 22's JIT path
7
+ * (compileComponentDeclaration) defaults a missing `changeDetection` to OnPush regardless of the
8
+ * library's version (the AOT linker only does that for libraries built with Angular >= 22).
9
+ * As OnPush, <circle-progress> never re-renders when its rxjs animation timer assigns `svg`,
10
+ * so it renders as an empty `<circle-progress><!----></circle-progress>`.
11
+ *
12
+ * Fix: pin `changeDetection: Eager` in the declaration, matching the pre-22 behavior.
13
+ */
14
+
15
+ const DECLARATION = /(i0\.ɵɵngDeclareComponent\(\{[^}]*?type: CircleProgressComponent, )/;
16
+
17
+ export function ngCircleProgressPatchPlugin() {
18
+ return {
19
+ name: 'ng-circle-progress-patch',
20
+ transform(code, id) {
21
+ if (!id.includes('ng-circle-progress') || !code.includes('ɵɵngDeclareComponent')) {
22
+ return null;
23
+ }
24
+ if (/type: CircleProgressComponent, [^\n]*changeDetection:/.test(code)) {
25
+ return null;
26
+ }
27
+ if (!DECLARATION.test(code)) {
28
+ throw new Error('[ng-circle-progress-patch] CircleProgressComponent declaration not found — '
29
+ + 'ng-circle-progress output changed, re-check whether the Eager pin is still needed.');
30
+ }
31
+ console.log(' ✅ ng-circle-progress: pinned CircleProgressComponent changeDetection to Eager');
32
+ return {
33
+ code: code.replace(DECLARATION, '$1changeDetection: i0.ChangeDetectionStrategy.Eager, '),
34
+ map: null
35
+ };
36
+ }
37
+ };
38
+ }
@@ -69,7 +69,7 @@
69
69
  <body>
70
70
  <div class="header">
71
71
  <h1>Angular Project Dependencies Report</h1>
72
- <p class="timestamp">Generated on: 10/3/2026, 4:21:51 PM</p>
72
+ <p class="timestamp">Generated on: 10/27/2026, 11:03:39 PM</p>
73
73
  </div>
74
74
 
75
75
  <div class="section">