@rxap/plugin-angular 16.1.0-dev.4 → 16.1.0-dev.41

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 (90) hide show
  1. package/CHANGELOG.md +255 -0
  2. package/LICENSE.md +621 -0
  3. package/README.md +50 -1
  4. package/generators.json +37 -0
  5. package/package.json +66 -45
  6. package/src/generators/fix-schematic/index.d.ts +2 -0
  7. package/src/generators/fix-schematic/index.js +7 -0
  8. package/src/generators/fix-schematic/index.js.map +1 -0
  9. package/src/generators/init/generator.js +7 -5
  10. package/src/generators/init/generator.js.map +1 -1
  11. package/src/generators/init/index.d.ts +2 -0
  12. package/src/generators/init/index.js +7 -0
  13. package/src/generators/init/index.js.map +1 -0
  14. package/src/generators/init/schema.d.ts +2 -0
  15. package/src/generators/init/schema.json +10 -0
  16. package/src/generators/init-application/files/app/app.navigation.ts.template +11 -0
  17. package/src/generators/init-application/files/app/app.routes.ts.template +14 -0
  18. package/src/generators/init-application/files/app/layout.routes.ts.template +33 -0
  19. package/src/generators/init-application/files/assets/icons/create-pwa-icons.sh +11 -0
  20. package/src/generators/init-application/files/assets/icons/icon-114x114.png +0 -0
  21. package/src/generators/init-application/files/assets/icons/icon-120x120.png +0 -0
  22. package/src/generators/init-application/files/assets/icons/icon-128x128.png +0 -0
  23. package/src/generators/init-application/files/assets/icons/icon-144x144.png +0 -0
  24. package/src/generators/init-application/files/assets/icons/icon-152x152.png +0 -0
  25. package/src/generators/init-application/files/assets/icons/icon-16x16.png +0 -0
  26. package/src/generators/init-application/files/assets/icons/icon-180x180.png +0 -0
  27. package/src/generators/init-application/files/assets/icons/icon-192x192.png +0 -0
  28. package/src/generators/init-application/files/assets/icons/icon-32x32.png +0 -0
  29. package/src/generators/init-application/files/assets/icons/icon-384x384.png +0 -0
  30. package/src/generators/init-application/files/assets/icons/icon-512x512.png +0 -0
  31. package/src/generators/init-application/files/assets/icons/icon-57x57.png +0 -0
  32. package/src/generators/init-application/files/assets/icons/icon-60x60.png +0 -0
  33. package/src/generators/init-application/files/assets/icons/icon-72x72.png +0 -0
  34. package/src/generators/init-application/files/assets/icons/icon-76x76.png +0 -0
  35. package/src/generators/init-application/files/assets/icons/icon-96x96.png +0 -0
  36. package/src/generators/init-application/files/assets/icons/icon.png +0 -0
  37. package/src/generators/init-application/files/assets/icons/icon.svg +43 -0
  38. package/src/generators/init-application/files/assets/logo.png +0 -0
  39. package/src/generators/init-application/files/assets/logo.svg +63 -0
  40. package/src/generators/init-application/files/monolithic/app/app.navigation.ts.template +11 -0
  41. package/src/generators/init-application/files/monolithic/app/app.routes.ts.template +14 -0
  42. package/src/generators/init-application/files/monolithic/app/layout.routes.ts.template +32 -0
  43. package/src/generators/init-application/files/monolithic/index.html.template +165 -0
  44. package/src/generators/init-application/files/monolithic/styles.scss.template +3 -0
  45. package/src/generators/init-application/files/oauth/silent-refresh.html +42 -0
  46. package/src/generators/init-application/files/service-worker/manifest.webmanifest +52 -0
  47. package/src/generators/init-application/files/shared/Dockerfile +3 -0
  48. package/src/generators/init-application/files/shared/assets/build.json +1 -0
  49. package/src/generators/init-application/files/shared/changelog/.gitkeep +0 -0
  50. package/src/generators/init-application/files/shared/ngsw-config.json +2 -14
  51. package/src/generators/init-application/files/styles/_fonts.scss +1 -0
  52. package/src/generators/init-application/files/styles/_index.scss +10 -0
  53. package/src/generators/init-application/files/styles/_loading-animation.scss +200 -0
  54. package/src/generators/init-application/files/styles/_palette.scss +98 -0
  55. package/src/generators/init-application/files/styles/_table.scss +45 -0
  56. package/src/generators/init-application/files/styles/_theme.scss +14 -0
  57. package/src/generators/init-application/files/styles/_utilities.scss +133 -0
  58. package/src/generators/init-application/files/styles/_variables.scss +63 -0
  59. package/src/generators/init-application/files/styles/fonts/_material-icons.scss +20 -0
  60. package/src/generators/init-application/files/styles/fonts/material-icons.ttf +0 -0
  61. package/src/generators/init-application/generator.js +439 -80
  62. package/src/generators/init-application/generator.js.map +1 -1
  63. package/src/generators/init-application/index.d.ts +2 -0
  64. package/src/generators/init-application/index.js +7 -0
  65. package/src/generators/init-application/index.js.map +1 -0
  66. package/src/generators/init-application/schema.d.ts +8 -0
  67. package/src/generators/init-application/schema.json +54 -8
  68. package/src/generators/init-feature/files/feature/__name__/routes.ts.template +10 -0
  69. package/src/generators/init-feature/generator.d.ts +11 -0
  70. package/src/generators/init-feature/generator.js +106 -0
  71. package/src/generators/init-feature/generator.js.map +1 -0
  72. package/src/generators/init-feature/index.d.ts +2 -0
  73. package/src/generators/init-feature/index.js +7 -0
  74. package/src/generators/init-feature/index.js.map +1 -0
  75. package/src/generators/init-feature/schema.d.ts +4 -0
  76. package/src/generators/init-feature/schema.json +20 -0
  77. package/src/generators/init-library/generator.js +73 -50
  78. package/src/generators/init-library/generator.js.map +1 -1
  79. package/src/generators/init-library/index.d.ts +2 -0
  80. package/src/generators/init-library/index.js +7 -0
  81. package/src/generators/init-library/index.js.map +1 -0
  82. package/src/generators/init-library/schema.d.ts +2 -0
  83. package/src/generators/init-library/schema.json +10 -0
  84. package/src/generators/schematic/index.d.ts +2 -0
  85. package/src/generators/schematic/index.js +7 -0
  86. package/src/generators/schematic/index.js.map +1 -0
  87. package/src/generators/init-application/files/shared/assets/Dockerfile +0 -5
  88. package/src/generators/init-application/files/shared/assets/nginx.conf +0 -74
  89. package/src/generators/init-application/files/shared/i18n.index.html.hbs +0 -40
  90. /package/src/generators/init-application/files/{shared → assets}/.gitkeep +0 -0
@@ -0,0 +1,133 @@
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
+ ));
39
+ @include mat.core-theme($theme);
40
+ @include density($theme);
41
+ @include typography($theme);
42
+
43
+ body {
44
+ background-color: var(--background-color);
45
+ color: var(--foreground-color);
46
+
47
+ @for $i from -3 through -1 {
48
+ &.density#{$i} {
49
+ @include density(mat.define-light-theme((
50
+ // https://m2.material.io/design/layout/applying-density.html#usage
51
+ // between -3 and 0
52
+ // density < -1 -> form field label not visible
53
+ density: $i,
54
+ )));
55
+ --density: #{$i};
56
+ }
57
+ &.typography-mono {
58
+ @include typography(mat.define-light-theme((
59
+ typography: mat.define-typography-config(
60
+ $font-family: theme("fontFamily.mono")
61
+ ),
62
+ )));
63
+ --typography: mono;
64
+ }
65
+ &.typography-serif {
66
+ @include typography(mat.define-light-theme((
67
+ typography: mat.define-typography-config(
68
+ $font-family: theme("fontFamily.serif")
69
+ ),
70
+ )));
71
+ --typography: serif;
72
+ }
73
+ &.typography-sans {
74
+ @include typography(mat.define-light-theme((
75
+ typography: mat.define-typography-config(
76
+ $font-family: theme("fontFamily.sans")
77
+ ),
78
+ )));
79
+ --typography: sans;
80
+ }
81
+ }
82
+ }
83
+
84
+ }
85
+
86
+ @mixin body-theme($theme) {
87
+ @include colors($theme);
88
+ }
89
+
90
+ @mixin init-theme(
91
+ $theme-primary: mat.define-palette(palette.$primary-pat),
92
+ $theme-accent: mat.define-palette(palette.$accent-pat),
93
+ $theme-warn: mat.define-palette(palette.$warn-pat),
94
+ $scope: null
95
+ ) {
96
+
97
+ $light-theme: mat.define-light-theme((
98
+ color: (
99
+ primary: $theme-primary,
100
+ accent: $theme-accent,
101
+ warn: $theme-warn
102
+ ),
103
+ ));
104
+
105
+ $dark-theme: mat.define-dark-theme((
106
+ color: (
107
+ primary: $theme-primary,
108
+ accent: $theme-accent,
109
+ warn: $theme-warn
110
+ ),
111
+ ));
112
+
113
+ // generate the base theme independent of the preferred color scheme
114
+ @include base-theme();
115
+
116
+ @if $scope {
117
+ body.#{$scope} {
118
+ @include body-theme($light-theme);
119
+
120
+ &.dark, &.dark-theme {
121
+ @include body-theme($dark-theme);
122
+ }
123
+ }
124
+ } @else {
125
+ body {
126
+ @include body-theme($light-theme);
127
+
128
+ &.dark, &.dark-theme {
129
+ @include body-theme($dark-theme);
130
+ }
131
+ }
132
+ }
133
+ }
@@ -0,0 +1,63 @@
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
+ }
63
+
@@ -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
+ }