@rxap/plugin-angular 16.1.1-dev.3 → 16.2.0-dev.0

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 (37) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +1 -1
  3. package/package.json +15 -14
  4. package/src/generators/fix-schematic/generator.js +10 -2
  5. package/src/generators/fix-schematic/generator.js.map +1 -1
  6. package/src/generators/init/generator.js +1 -1
  7. package/src/generators/init/generator.js.map +1 -1
  8. package/src/generators/init-application/files/styles/_custom.scss +19 -0
  9. package/src/generators/init-application/files/styles/_utilities.scss +4 -0
  10. package/src/generators/init-application/generate-monolithic.d.ts +3 -0
  11. package/src/generators/init-application/generate-monolithic.js +40 -0
  12. package/src/generators/init-application/generate-monolithic.js.map +1 -0
  13. package/src/generators/init-application/generator.js +66 -46
  14. package/src/generators/init-application/generator.js.map +1 -1
  15. package/src/generators/init-application/schema.d.ts +1 -0
  16. package/src/generators/init-application/schema.json +4 -2
  17. package/src/generators/init-feature/generator.js +19 -10
  18. package/src/generators/init-feature/generator.js.map +1 -1
  19. package/src/generators/init-library/generator.js +24 -5
  20. package/src/generators/init-library/generator.js.map +1 -1
  21. package/src/generators/schematic/generator.js +5 -14
  22. package/src/generators/schematic/generator.js.map +1 -1
  23. package/src/lib/skip-project.d.ts +3 -1
  24. package/src/lib/skip-project.js.map +1 -1
  25. package/src/generators/init-application/files/monolithic/app/app.navigation.ts.template +0 -11
  26. package/src/generators/init-application/files/monolithic/app/app.routes.ts.template +0 -14
  27. package/src/generators/init-application/files/monolithic/app/layout.routes.ts.template +0 -32
  28. package/src/generators/init-feature/files/feature/__name__/routes.ts.template +0 -10
  29. package/src/lib/add-route.d.ts +0 -3
  30. package/src/lib/add-route.js +0 -27
  31. package/src/lib/add-route.js.map +0 -1
  32. package/src/lib/build-route-object.d.ts +0 -7
  33. package/src/lib/build-route-object.js +0 -18
  34. package/src/lib/build-route-object.js.map +0 -1
  35. package/src/lib/find-parent-route.d.ts +0 -2
  36. package/src/lib/find-parent-route.js +0 -54
  37. package/src/lib/find-parent-route.js.map +0 -1
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FindParentRoute = void 0;
4
- const ts_morph_1 = require("ts-morph");
5
- function FindParentRoute(ale, path) {
6
- var _a;
7
- for (const e of ale.getElements()) {
8
- if (e instanceof ts_morph_1.ObjectLiteralExpression) {
9
- const pathProperty = e.getProperty('path');
10
- if (pathProperty && pathProperty instanceof ts_morph_1.PropertyAssignment) {
11
- const initializer = pathProperty.getInitializerIfKind(ts_morph_1.SyntaxKind.StringLiteral);
12
- if (initializer) {
13
- const fragment = path.pop();
14
- if (initializer.getLiteralText() === fragment) {
15
- const childrenProperty = (_a = e.getProperty('children')) !== null && _a !== void 0 ? _a : e.addProperty({
16
- name: 'children',
17
- initializer: '[]',
18
- kind: ts_morph_1.StructureKind.PropertyAssignment,
19
- });
20
- if (childrenProperty instanceof ts_morph_1.PropertyAssignment) {
21
- const children = childrenProperty.getInitializerIfKindOrThrow(ts_morph_1.SyntaxKind.ArrayLiteralExpression);
22
- if (path.length) {
23
- // console.log('Continue search for parent route');
24
- return FindParentRoute(children, path);
25
- }
26
- else {
27
- // console.log('Found parent route');
28
- return children;
29
- }
30
- }
31
- else {
32
- // console.log('Children property is not a PropertyAssignment');
33
- }
34
- }
35
- else {
36
- // console.log('Path property does not match', initializer.getLiteralText(), fragment);
37
- }
38
- }
39
- else {
40
- // console.log('Path property has no StringLiteral initializer');
41
- }
42
- }
43
- else {
44
- // console.log('Element has no path property');
45
- }
46
- }
47
- else {
48
- // console.log('Element is not an ObjectLiteralExpression');
49
- }
50
- }
51
- return null;
52
- }
53
- exports.FindParentRoute = FindParentRoute;
54
- //# sourceMappingURL=find-parent-route.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-parent-route.js","sourceRoot":"","sources":["../../../../../../packages/plugin/angular/src/lib/find-parent-route.ts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