@rxap/plugin-angular 16.1.0-dev.9 → 16.1.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 (102) hide show
  1. package/CHANGELOG.md +479 -0
  2. package/README.md +15 -1
  3. package/generators.json +10 -0
  4. package/package.json +61 -48
  5. package/src/generators/init/generator.js +14 -7
  6. package/src/generators/init/generator.js.map +1 -1
  7. package/src/generators/init/schema.d.ts +2 -0
  8. package/src/generators/init/schema.json +10 -0
  9. package/src/generators/init-application/files/app/app.navigation.ts.template +11 -0
  10. package/src/generators/init-application/files/app/app.routes.ts.template +14 -0
  11. package/src/generators/init-application/files/app/layout.routes.ts.template +33 -0
  12. package/src/generators/init-application/files/assets/icons/create-pwa-icons.sh +11 -0
  13. package/src/generators/init-application/files/assets/icons/icon-114x114.png +0 -0
  14. package/src/generators/init-application/files/assets/icons/icon-120x120.png +0 -0
  15. package/src/generators/init-application/files/assets/icons/icon-128x128.png +0 -0
  16. package/src/generators/init-application/files/assets/icons/icon-144x144.png +0 -0
  17. package/src/generators/init-application/files/assets/icons/icon-152x152.png +0 -0
  18. package/src/generators/init-application/files/assets/icons/icon-16x16.png +0 -0
  19. package/src/generators/init-application/files/assets/icons/icon-180x180.png +0 -0
  20. package/src/generators/init-application/files/assets/icons/icon-192x192.png +0 -0
  21. package/src/generators/init-application/files/assets/icons/icon-32x32.png +0 -0
  22. package/src/generators/init-application/files/assets/icons/icon-384x384.png +0 -0
  23. package/src/generators/init-application/files/assets/icons/icon-512x512.png +0 -0
  24. package/src/generators/init-application/files/assets/icons/icon-57x57.png +0 -0
  25. package/src/generators/init-application/files/assets/icons/icon-60x60.png +0 -0
  26. package/src/generators/init-application/files/assets/icons/icon-72x72.png +0 -0
  27. package/src/generators/init-application/files/assets/icons/icon-76x76.png +0 -0
  28. package/src/generators/init-application/files/assets/icons/icon-96x96.png +0 -0
  29. package/src/generators/init-application/files/assets/icons/icon.png +0 -0
  30. package/src/generators/init-application/files/assets/icons/icon.svg +43 -0
  31. package/src/generators/init-application/files/assets/logo.png +0 -0
  32. package/src/generators/init-application/files/assets/logo.svg +63 -0
  33. package/src/generators/init-application/files/{shared → i18n}/i18n.index.html.hbs +1 -1
  34. package/src/generators/init-application/files/monolithic/app/app.navigation.ts.template +11 -0
  35. package/src/generators/init-application/files/monolithic/app/app.routes.ts.template +14 -0
  36. package/src/generators/init-application/files/monolithic/app/layout.routes.ts.template +32 -0
  37. package/src/generators/init-application/files/monolithic/index.html.template +165 -0
  38. package/src/generators/init-application/files/monolithic/styles.scss.template +3 -0
  39. package/src/generators/init-application/files/oauth/silent-refresh.html +42 -0
  40. package/src/generators/init-application/files/service-worker/manifest.webmanifest +52 -0
  41. package/src/generators/init-application/files/shared/Dockerfile +29 -0
  42. package/src/generators/init-application/files/shared/assets/build.json +1 -0
  43. package/src/generators/init-application/files/shared/ngsw-config.json +2 -14
  44. package/src/generators/init-application/files/styles/_fonts.scss +9 -0
  45. package/src/generators/init-application/files/styles/_index.scss +10 -0
  46. package/src/generators/init-application/files/styles/_loading-animation.scss +200 -0
  47. package/src/generators/init-application/files/styles/_palette.scss +98 -0
  48. package/src/generators/init-application/files/styles/_table.scss +45 -0
  49. package/src/generators/init-application/files/styles/_theme.scss +14 -0
  50. package/src/generators/init-application/files/styles/_utilities.scss +112 -0
  51. package/src/generators/init-application/files/styles/_variables.scss +77 -0
  52. package/src/generators/init-application/files/styles/fonts/_croissant-one.scss +7 -0
  53. package/src/generators/init-application/files/styles/fonts/_fuggles.scss +7 -0
  54. package/src/generators/init-application/files/styles/fonts/_inclusive-sans.scss +7 -0
  55. package/src/generators/init-application/files/styles/fonts/_material-icons.scss +20 -0
  56. package/src/generators/init-application/files/styles/fonts/_mooli.scss +7 -0
  57. package/src/generators/init-application/files/styles/fonts/_pixelify-sans.scss +7 -0
  58. package/src/generators/init-application/files/styles/fonts/_roboto-mono.scss +7 -0
  59. package/src/generators/init-application/files/styles/fonts/_roboto.scss +95 -0
  60. package/src/generators/init-application/files/styles/fonts/_young-serif.scss +7 -0
  61. package/src/generators/init-application/files/styles/fonts/croissant-one.ttf +0 -0
  62. package/src/generators/init-application/files/styles/fonts/fuggles.ttf +0 -0
  63. package/src/generators/init-application/files/styles/fonts/inclusive-sans.ttf +0 -0
  64. package/src/generators/init-application/files/styles/fonts/material-icons.ttf +0 -0
  65. package/src/generators/init-application/files/styles/fonts/molli.ttf +0 -0
  66. package/src/generators/init-application/files/styles/fonts/pixelify-sans.ttf +0 -0
  67. package/src/generators/init-application/files/styles/fonts/roboto-mono.ttf +0 -0
  68. package/src/generators/init-application/files/styles/fonts/young-serif.ttf +0 -0
  69. package/src/generators/init-application/generator.js +558 -89
  70. package/src/generators/init-application/generator.js.map +1 -1
  71. package/src/generators/init-application/schema.d.ts +9 -0
  72. package/src/generators/init-application/schema.json +59 -8
  73. package/src/generators/init-feature/files/feature/__name__/routes.ts.template +10 -0
  74. package/src/generators/init-feature/generator.d.ts +4 -0
  75. package/src/generators/init-feature/generator.js +26 -0
  76. package/src/generators/init-feature/generator.js.map +1 -0
  77. package/src/generators/init-feature/index.d.ts +2 -0
  78. package/src/generators/init-feature/index.js +7 -0
  79. package/src/generators/init-feature/index.js.map +1 -0
  80. package/src/generators/init-feature/schema.d.ts +4 -0
  81. package/src/generators/init-feature/schema.json +20 -0
  82. package/src/generators/init-library/generator.js +106 -14
  83. package/src/generators/init-library/generator.js.map +1 -1
  84. package/src/generators/init-library/schema.d.ts +3 -0
  85. package/src/generators/init-library/schema.json +14 -0
  86. package/src/lib/add-route.d.ts +3 -0
  87. package/src/lib/add-route.js +27 -0
  88. package/src/lib/add-route.js.map +1 -0
  89. package/src/lib/build-route-object.d.ts +7 -0
  90. package/src/lib/build-route-object.js +18 -0
  91. package/src/lib/build-route-object.js.map +1 -0
  92. package/src/lib/coerce-cypress-component-testing.d.ts +2 -0
  93. package/src/lib/coerce-cypress-component-testing.js +79 -0
  94. package/src/lib/coerce-cypress-component-testing.js.map +1 -0
  95. package/src/lib/find-parent-route.d.ts +2 -0
  96. package/src/lib/find-parent-route.js +54 -0
  97. package/src/lib/find-parent-route.js.map +1 -0
  98. package/src/lib/skip-project.js +3 -3
  99. package/src/lib/skip-project.js.map +1 -1
  100. package/src/generators/init-application/files/shared/angular.Dockerfile +0 -3
  101. package/src/generators/init-application/files/shared/configuration/.gitkeep +0 -0
  102. /package/src/generators/init-application/files/{shared → assets}/.gitkeep +0 -0
@@ -0,0 +1,14 @@
1
+ @use "variables";
2
+ @use '@angular/material' as mat;
3
+ @use 'palette' as palette;
4
+
5
+ @import "fonts";
6
+ @import 'utilities';
7
+
8
+ @tailwind base;
9
+ @tailwind components;
10
+ @tailwind utilities;
11
+
12
+ @include mat.core();
13
+
14
+ @include init-theme();
@@ -0,0 +1,112 @@
1
+ @use '@angular/material' as mat;
2
+ @use 'palette' as palette;
3
+
4
+ @import "table";
5
+ @import 'loading-animation';
6
+
7
+ @mixin colors($theme) {
8
+ $background: mat.get-color-from-palette(map-get($theme, background), background);
9
+ $foreground: mat.get-color-from-palette(map-get($theme, foreground), text);
10
+
11
+ --background-color: #{$background};
12
+ --foreground-color: #{$foreground};
13
+
14
+ --accept-color: rgb(115, 190, 105);
15
+ --decline-color: rgb(204, 73, 51);
16
+
17
+ @include mat.all-component-colors($theme);
18
+
19
+ @include table-theme($theme);
20
+ @include loadingAnimation($background);
21
+ }
22
+
23
+ @mixin density($theme) {
24
+ @include mat.all-component-densities($theme);
25
+ }
26
+
27
+ @mixin typography($theme) {
28
+ @include mat.all-component-typographies($theme);
29
+ }
30
+
31
+ @mixin base-theme() {
32
+ $theme: mat.define-light-theme((
33
+ color: (
34
+ primary: mat.$blue-palette,
35
+ accent: mat.$cyan-palette,
36
+ warn: mat.$red-palette
37
+ ),
38
+ typography: mat.define-typography-config(
39
+ $font-family: var(--font-family)
40
+ ),
41
+ ));
42
+ @include mat.core-theme($theme);
43
+ @include density($theme);
44
+ @include typography($theme);
45
+
46
+ body {
47
+ background-color: var(--background-color);
48
+ color: var(--foreground-color);
49
+
50
+ @for $i from -3 through -1 {
51
+ &.density#{$i} {
52
+ @include density(mat.define-light-theme((
53
+ // https://m2.material.io/design/layout/applying-density.html#usage
54
+ // between -3 and 0
55
+ // density < -1 -> form field label not visible
56
+ density: $i,
57
+ )));
58
+ --density: #{$i};
59
+ }
60
+ }
61
+ }
62
+
63
+ }
64
+
65
+ @mixin body-theme($theme) {
66
+ @include colors($theme);
67
+ }
68
+
69
+ @mixin init-theme(
70
+ $theme-primary: mat.define-palette(palette.$primary-pat),
71
+ $theme-accent: mat.define-palette(palette.$accent-pat),
72
+ $theme-warn: mat.define-palette(palette.$warn-pat),
73
+ $scope: null
74
+ ) {
75
+
76
+ $light-theme: mat.define-light-theme((
77
+ color: (
78
+ primary: $theme-primary,
79
+ accent: $theme-accent,
80
+ warn: $theme-warn
81
+ ),
82
+ ));
83
+
84
+ $dark-theme: mat.define-dark-theme((
85
+ color: (
86
+ primary: $theme-primary,
87
+ accent: $theme-accent,
88
+ warn: $theme-warn
89
+ ),
90
+ ));
91
+
92
+ // generate the base theme independent of the preferred color scheme
93
+ @include base-theme();
94
+
95
+ @if $scope {
96
+ body.#{$scope} {
97
+ @include body-theme($light-theme);
98
+
99
+ &.dark, &.dark-theme {
100
+ @include body-theme($dark-theme);
101
+ }
102
+ }
103
+ } @else {
104
+ body {
105
+ @include body-theme($light-theme);
106
+
107
+ &.dark, &.dark-theme {
108
+ @include body-theme($dark-theme);
109
+ }
110
+ }
111
+ }
112
+ }
@@ -0,0 +1,77 @@
1
+ :root {
2
+ --primary-50: #fff8e1;
3
+ --primary-100: #ffecb3;
4
+ --primary-200: #ffe082;
5
+ --primary-300: #ffd54f;
6
+ --primary-400: #ffca28;
7
+ --primary-500: #ffc107;
8
+ --primary-600: #ffb300;
9
+ --primary-700: #ffa000;
10
+ --primary-800: #ff8f00;
11
+ --primary-900: #ff6f00;
12
+ --primary-a100: #ffe57f;
13
+ --primary-a200: #ffd740;
14
+ --primary-a400: #ffc400;
15
+ --primary-a700: #ffab00;
16
+
17
+ --accent-50: #e3f2fd;
18
+ --accent-100: #bbdefb;
19
+ --accent-200: #90caf9;
20
+ --accent-300: #64b5f6;
21
+ --accent-400: #42a5f5;
22
+ --accent-500: #28166f;
23
+ --accent-600: #1e88e5;
24
+ --accent-700: #1976d2;
25
+ --accent-800: #1565c0;
26
+ --accent-900: #0d47a1;
27
+ --accent-a100: #82b1ff;
28
+ --accent-a200: #448aff;
29
+ --accent-a400: #2979ff;
30
+ --accent-a700: #2962ff;
31
+
32
+ --warn-50: #fce7eb;
33
+ --warn-100: #f8c3cd;
34
+ --warn-200: #f39bab;
35
+ --warn-300: #ee7389;
36
+ --warn-400: #ea5570;
37
+ --warn-500: #e63757;
38
+ --warn-600: #e3314f;
39
+ --warn-700: #df2a46;
40
+ --warn-800: #db233c;
41
+ --warn-900: #d5162c;
42
+ --warn-a100: #ffffff;
43
+ --warn-a200: #ffd3d7;
44
+ --warn-a400: #ffa0a8;
45
+ --warn-a700: #ff8691;
46
+
47
+ --contrast-50: rgba(black, 0.87);
48
+ --contrast-100: rgba(black, 0.87);
49
+ --contrast-200: rgba(black, 0.87);
50
+ --contrast-300: rgba(black, 0.87);
51
+ --contrast-400: white;
52
+ --contrast-500: white;
53
+ --contrast-600: white;
54
+ --contrast-700: white;
55
+ --contrast-800: white;
56
+ --contrast-900: white;
57
+ --contrast-a100: rgba(black, 0.87);
58
+ --contrast-a200: rgba(black, 0.87);
59
+ --contrast-a400: rgba(black, 0.87);
60
+ --contrast-a700: rgba(black, 0.87);
61
+
62
+ --font-family-sans: 'ui-sans-serif', 'system-ui', '-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', '"Noto Sans"', 'sans-serif', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"', '"Noto Color Emoji"';
63
+ --font-family-serif: 'ui-serif', 'Georgia', 'Cambria', '"Times New Roman"', 'Times', 'serif';
64
+ --font-family-mono: 'ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', '"Liberation Mono"', '"Courier New"', 'monospace';
65
+ --font-family-default: 'Roboto', 'sans-serif';
66
+ --font-family-mooli: 'Mooli', 'sans-serif';
67
+ --font-family-inclusive-sans: 'Inclusive Sans', 'sans-serif';
68
+ --font-family-fuggles: 'Fuggles', 'sans-serif';
69
+ --font-family-pixelify-sans: 'Pixelify Sans', 'sans-serif';
70
+ --font-family-roboto-mono: 'Roboto Mono', 'sans-serif';
71
+ --font-family-croissant-one: 'Croissant One', 'sans-serif';
72
+ --font-family-young-serif: 'Young Serif', 'sans-serif';
73
+ --font-family: var(--font-family-default);
74
+ --density: 0;
75
+
76
+ }
77
+
@@ -0,0 +1,7 @@
1
+ @font-face {
2
+ font-family: 'Croissant One';
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ font-display: swap;
6
+ src: url(./croissant-one.ttf) format('truetype');
7
+ }
@@ -0,0 +1,7 @@
1
+ @font-face {
2
+ font-family: 'Fuggles';
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ font-display: swap;
6
+ src: url(./fuggles.ttf) format('truetype');
7
+ }
@@ -0,0 +1,7 @@
1
+ @font-face {
2
+ font-family: 'Inclusive Sans';
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ font-display: swap;
6
+ src: url(./inclusive-sans.ttf) format('truetype');
7
+ }
@@ -0,0 +1,20 @@
1
+ @font-face {
2
+ font-family: 'Material Icons';
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ src: url(./material-icons.ttf) format('truetype');
6
+ }
7
+
8
+ .material-icons {
9
+ font-family: 'Material Icons';
10
+ font-weight: normal;
11
+ font-style: normal;
12
+ font-size: 24px;
13
+ line-height: 1;
14
+ letter-spacing: normal;
15
+ text-transform: none;
16
+ display: inline-block;
17
+ white-space: nowrap;
18
+ word-wrap: normal;
19
+ direction: ltr;
20
+ }
@@ -0,0 +1,7 @@
1
+ @font-face {
2
+ font-family: 'Mooli';
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ font-display: swap;
6
+ src: url(./molli.ttf) format('truetype');
7
+ }
@@ -0,0 +1,7 @@
1
+ @font-face {
2
+ font-family: 'Pixelify Sans';
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ font-display: swap;
6
+ src: url(./pixelify-sans.ttf) format('truetype');
7
+ }
@@ -0,0 +1,7 @@
1
+ @font-face {
2
+ font-family: 'Roboto Mono';
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ font-display: swap;
6
+ src: url(./roboto-mono.ttf) format('truetype');
7
+ }
@@ -0,0 +1,95 @@
1
+ @font-face {
2
+ font-family: 'Roboto';
3
+ font-style: italic;
4
+ font-weight: 100;
5
+ font-display: swap;
6
+ src: url(https://fonts.gstatic.com/s/roboto/v30/KFOiCnqEu92Fr1Mu51QrIzc.ttf) format('truetype');
7
+ }
8
+
9
+ @font-face {
10
+ font-family: 'Roboto';
11
+ font-style: italic;
12
+ font-weight: 300;
13
+ font-display: swap;
14
+ src: url(https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TjARc9.ttf) format('truetype');
15
+ }
16
+
17
+ @font-face {
18
+ font-family: 'Roboto';
19
+ font-style: italic;
20
+ font-weight: 400;
21
+ font-display: swap;
22
+ src: url(https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1Mu52xP.ttf) format('truetype');
23
+ }
24
+
25
+ @font-face {
26
+ font-family: 'Roboto';
27
+ font-style: italic;
28
+ font-weight: 500;
29
+ font-display: swap;
30
+ src: url(https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51S7ABc9.ttf) format('truetype');
31
+ }
32
+
33
+ @font-face {
34
+ font-family: 'Roboto';
35
+ font-style: italic;
36
+ font-weight: 700;
37
+ font-display: swap;
38
+ src: url(https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TzBhc9.ttf) format('truetype');
39
+ }
40
+
41
+ @font-face {
42
+ font-family: 'Roboto';
43
+ font-style: italic;
44
+ font-weight: 900;
45
+ font-display: swap;
46
+ src: url(https://fonts.gstatic.com/s/roboto/v30/KFOjCnqEu92Fr1Mu51TLBBc9.ttf) format('truetype');
47
+ }
48
+
49
+ @font-face {
50
+ font-family: 'Roboto';
51
+ font-style: normal;
52
+ font-weight: 100;
53
+ font-display: swap;
54
+ src: url(https://fonts.gstatic.com/s/roboto/v30/KFOkCnqEu92Fr1MmgWxP.ttf) format('truetype');
55
+ }
56
+
57
+ @font-face {
58
+ font-family: 'Roboto';
59
+ font-style: normal;
60
+ font-weight: 300;
61
+ font-display: swap;
62
+ src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmSU5vAw.ttf) format('truetype');
63
+ }
64
+
65
+ @font-face {
66
+ font-family: 'Roboto';
67
+ font-style: normal;
68
+ font-weight: 400;
69
+ font-display: swap;
70
+ src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Me5Q.ttf) format('truetype');
71
+ }
72
+
73
+ @font-face {
74
+ font-family: 'Roboto';
75
+ font-style: normal;
76
+ font-weight: 500;
77
+ font-display: swap;
78
+ src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmEU9vAw.ttf) format('truetype');
79
+ }
80
+
81
+ @font-face {
82
+ font-family: 'Roboto';
83
+ font-style: normal;
84
+ font-weight: 700;
85
+ font-display: swap;
86
+ src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlvAw.ttf) format('truetype');
87
+ }
88
+
89
+ @font-face {
90
+ font-family: 'Roboto';
91
+ font-style: normal;
92
+ font-weight: 900;
93
+ font-display: swap;
94
+ src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtvAw.ttf) format('truetype');
95
+ }
@@ -0,0 +1,7 @@
1
+ @font-face {
2
+ font-family: 'Young Serif';
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ font-display: swap;
6
+ src: url(./young-serif.ttf) format('truetype');
7
+ }