@rxap/plugin-angular 16.1.0-dev.3 → 16.1.0-dev.30

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 (69) hide show
  1. package/CHANGELOG.md +190 -0
  2. package/LICENSE.md +621 -0
  3. package/README.md +64 -1
  4. package/executors.json +5 -0
  5. package/generators.json +37 -0
  6. package/package.json +58 -45
  7. package/src/executors/check-ng-package/executor.d.ts +5 -0
  8. package/src/executors/check-ng-package/executor.js +30 -0
  9. package/src/executors/check-ng-package/executor.js.map +1 -0
  10. package/src/executors/check-ng-package/schema.d.ts +1 -0
  11. package/src/executors/check-ng-package/schema.json +9 -0
  12. package/src/generators/fix-schematic/index.d.ts +2 -0
  13. package/src/generators/fix-schematic/index.js +7 -0
  14. package/src/generators/fix-schematic/index.js.map +1 -0
  15. package/src/generators/init/index.d.ts +2 -0
  16. package/src/generators/init/index.js +7 -0
  17. package/src/generators/init/index.js.map +1 -0
  18. package/src/generators/init/schema.d.ts +1 -0
  19. package/src/generators/init/schema.json +5 -0
  20. package/src/generators/init-application/files/app/app.navigation.ts.template +11 -0
  21. package/src/generators/init-application/files/app/app.routes.ts.template +14 -0
  22. package/src/generators/init-application/files/app/layout.routes.ts.template +33 -0
  23. package/src/generators/init-application/files/monolithic/app/app.config.ts.template +35 -0
  24. package/src/generators/init-application/files/monolithic/app/app.navigation.ts.template +11 -0
  25. package/src/generators/init-application/files/monolithic/app/app.routes.ts.template +14 -0
  26. package/src/generators/init-application/files/monolithic/app/layout.routes.ts.template +32 -0
  27. package/src/generators/init-application/files/monolithic/styles.scss.template +3 -0
  28. package/src/generators/init-application/files/shared/Dockerfile +3 -0
  29. package/src/generators/init-application/files/shared/configuration/.gitkeep +0 -0
  30. package/src/generators/init-application/files/shared/ngsw-config.json +0 -12
  31. package/src/generators/init-application/files/styles/_fonts.scss +1 -0
  32. package/src/generators/init-application/files/styles/_index.scss +10 -0
  33. package/src/generators/init-application/files/styles/_loading-animation.scss +200 -0
  34. package/src/generators/init-application/files/styles/_palette.scss +98 -0
  35. package/src/generators/init-application/files/styles/_table.scss +45 -0
  36. package/src/generators/init-application/files/styles/_theme.scss +102 -0
  37. package/src/generators/init-application/files/styles/_variables.scss +63 -0
  38. package/src/generators/init-application/files/styles/fonts/_material-icons.scss +20 -0
  39. package/src/generators/init-application/files/styles/fonts/material-icons.ttf +0 -0
  40. package/src/generators/init-application/generator.js +278 -61
  41. package/src/generators/init-application/generator.js.map +1 -1
  42. package/src/generators/init-application/index.d.ts +2 -0
  43. package/src/generators/init-application/index.js +7 -0
  44. package/src/generators/init-application/index.js.map +1 -0
  45. package/src/generators/init-application/schema.d.ts +4 -0
  46. package/src/generators/init-application/schema.json +35 -8
  47. package/src/generators/init-feature/files/feature/__name__/routes.ts.template +10 -0
  48. package/src/generators/init-feature/generator.d.ts +11 -0
  49. package/src/generators/init-feature/generator.js +106 -0
  50. package/src/generators/init-feature/generator.js.map +1 -0
  51. package/src/generators/init-feature/index.d.ts +2 -0
  52. package/src/generators/init-feature/index.js +7 -0
  53. package/src/generators/init-feature/index.js.map +1 -0
  54. package/src/generators/init-feature/schema.d.ts +4 -0
  55. package/src/generators/init-feature/schema.json +20 -0
  56. package/src/generators/init-library/generator.js +68 -40
  57. package/src/generators/init-library/generator.js.map +1 -1
  58. package/src/generators/init-library/index.d.ts +2 -0
  59. package/src/generators/init-library/index.js +7 -0
  60. package/src/generators/init-library/index.js.map +1 -0
  61. package/src/generators/init-library/schema.d.ts +1 -0
  62. package/src/generators/init-library/schema.json +5 -0
  63. package/src/generators/schematic/index.d.ts +2 -0
  64. package/src/generators/schematic/index.js +7 -0
  65. package/src/generators/schematic/index.js.map +1 -0
  66. package/src/generators/init-application/files/shared/assets/Dockerfile +0 -5
  67. package/src/generators/init-application/files/shared/assets/nginx.conf +0 -74
  68. package/src/generators/init-application/files/shared/i18n.index.html.hbs +0 -40
  69. /package/src/generators/init-application/files/shared/{.gitkeep → changelog/.gitkeep} +0 -0
@@ -0,0 +1,200 @@
1
+ @mixin centre($axis: "both") {
2
+ position: absolute;
3
+ @if $axis == "y" {
4
+ top: 50%;
5
+ -webkit-transform: translateY(-50%);
6
+ -moz-transform: translateY(-50%);
7
+ -ms-transform: translateY(-50%);
8
+ -o-transform: translateY(-50%);
9
+ transform: translateY(-50%);
10
+ }
11
+ @if $axis == "x" {
12
+ left: 50%;
13
+ -webkit-transform: translateX(-50%);
14
+ -moz-transform: translateX(-50%);
15
+ -ms-transform: translateX(-50%);
16
+ -o-transform: translateX(-50%);
17
+ transform: translateX(-50%);
18
+ }
19
+ @if $axis == "both" {
20
+ top: 50%;
21
+ left: 50%;
22
+ -webkit-transform: translate(-51%, -50%);
23
+ -moz-transform: translate(-51%, -50%);
24
+ -ms-transform: translate(-51%, -50%);
25
+ -o-transform: translate(-51%, -50%);
26
+ transform: translate(-51%, -50%);
27
+ }
28
+ }
29
+
30
+ @mixin font-size($sizeValue: 1.6, $lineHeight: 2.4) {
31
+ font-size: ($sizeValue * 10) + px;
32
+ font-size: $sizeValue + rem;
33
+ line-height: ($lineHeight * 10) + px;
34
+ }
35
+
36
+ @mixin animation($animate...) {
37
+ $max: length($animate);
38
+ $animations: '';
39
+
40
+ @for $i from 1 through $max {
41
+ $animations: #{$animations + nth($animate, $i)};
42
+
43
+ @if $i < $max {
44
+ $animations: #{$animations + ", "};
45
+ }
46
+ }
47
+ -webkit-animation: $animations;
48
+ -moz-animation: $animations;
49
+ -o-animation: $animations;
50
+ animation: $animations;
51
+ }
52
+
53
+ @mixin keyframes($animationName) {
54
+ @-webkit-keyframes #{$animationName} {
55
+ @content;
56
+ }
57
+ @-moz-keyframes #{$animationName} {
58
+ @content;
59
+ }
60
+ @-o-keyframes #{$animationName} {
61
+ @content;
62
+ }
63
+ @keyframes #{$animationName} {
64
+ @content;
65
+ }
66
+ }
67
+
68
+ @mixin loadingAnimation($background) {
69
+
70
+ $f-title: 'Roboto', sans-serif;
71
+ $f-body: 'Open Sans', sans-serif;
72
+
73
+ @include keyframes(outerRotate1) {
74
+ 0% {
75
+ transform: translate(-50%, -50%) rotate(0)
76
+ }
77
+ 100% {
78
+ transform: translate(-50%, -50%) rotate(360deg)
79
+ }
80
+ }
81
+ @include keyframes(outerRotate2) {
82
+ 0% {
83
+ transform: translate(-50%, -50%) rotate(0)
84
+ }
85
+ 100% {
86
+ transform: translate(-50%, -50%) rotate(-360deg)
87
+ }
88
+ }
89
+
90
+ @include keyframes(textColour) {
91
+ 0% {
92
+ color: #fff;
93
+ }
94
+ 100% {
95
+ color: #3BB2D0;
96
+ }
97
+ }
98
+
99
+ .e-loadholder {
100
+ @include centre();
101
+ width: 240px;
102
+ height: 240px;
103
+ border: 5px solid #1B5F70;
104
+ border-radius: 120px;
105
+ box-sizing: border-box;
106
+
107
+
108
+ &:after {
109
+ @include centre;
110
+ content: " ";
111
+ display: block;
112
+ background: $background;
113
+ transform-origin: center;
114
+ z-index: 0;
115
+ }
116
+
117
+ &:after {
118
+ width: 100px;
119
+ height: 200%;
120
+ @include animation('outerRotate2 30s infinite linear');
121
+ }
122
+
123
+ .m-loader {
124
+ @include centre();
125
+ width: 200px;
126
+ height: 200px;
127
+ color: #888;
128
+ text-align: center;
129
+ border: 5px solid lighten(#1B5F70, 15%);
130
+ border-radius: 100px;
131
+ box-sizing: border-box;
132
+ z-index: 20;
133
+ text-transform: uppercase;
134
+
135
+ &:after {
136
+ @include centre;
137
+ content: " ";
138
+ display: block;
139
+ background: $background;
140
+ transform-origin: center;
141
+ z-index: -1;
142
+ }
143
+
144
+ &:after {
145
+ width: 100px;
146
+ height: 106%;
147
+ @include animation('outerRotate1 15s infinite linear');
148
+ }
149
+
150
+ .e-text {
151
+ @include font-size(1.4, 13);
152
+ @include centre();
153
+ @include animation('textColour 1s alternate linear infinite');
154
+ display: block;
155
+ width: 140px;
156
+ height: 140px;
157
+ text-align: center;
158
+ border: 5px solid lighten(#1B5F70, 25%);
159
+ border-radius: 70px;
160
+ box-sizing: border-box;
161
+ z-index: 20;
162
+
163
+ &:before, &:after {
164
+ @include centre;
165
+ content: " ";
166
+ display: block;
167
+ background: $background;
168
+ transform-origin: center;
169
+ z-index: -1;
170
+ }
171
+
172
+ &:before {
173
+ width: 110%;
174
+ height: 40px;
175
+ @include animation('outerRotate2 3.5s infinite linear');
176
+ }
177
+
178
+ &:after {
179
+ width: 40px;
180
+ height: 110%;
181
+ @include animation('outerRotate1 8s infinite linear');
182
+ }
183
+ }
184
+ }
185
+ }
186
+
187
+ #particleCanvas-White {
188
+ @include centre();
189
+ width: 100%;
190
+ height: 50%;
191
+ opacity: 0.1;
192
+ }
193
+
194
+ #particleCanvas-Blue {
195
+ @include centre();
196
+ width: 300px;
197
+ height: 300px;
198
+ }
199
+
200
+ }
@@ -0,0 +1,98 @@
1
+ $primary-pat: (
2
+ 50: var(--primary-50),
3
+ 100: var(--primary-100),
4
+ 200: var(--primary-200),
5
+ 300: var(--primary-300),
6
+ 400: var(--primary-400),
7
+ 500: var(--primary-500),
8
+ 600: var(--primary-600),
9
+ 700: var(--primary-700),
10
+ 800: var(--primary-800),
11
+ 900: var(--primary-900),
12
+ A100: var(--primary-a100),
13
+ A200: var(--primary-a200),
14
+ A400: var(--primary-a400),
15
+ A700: var(--primary-a700),
16
+ contrast: (
17
+ 50: var(--contrast-50),
18
+ 100: var(--contrast-100),
19
+ 200: var(--contrast-200),
20
+ 300: var(--contrast-300),
21
+ 400: var(--contrast-400),
22
+ 500: var(--contrast-500),
23
+ 600: var(--contrast-600),
24
+ 700: var(--contrast-700),
25
+ 800: var(--contrast-800),
26
+ 900: var(--contrast-900),
27
+ A100: var(--contrast-a100),
28
+ A200: var(--contrast-a200),
29
+ A400: var(--contrast-a400),
30
+ A700: var(--contrast-a700),
31
+ ),
32
+ );
33
+
34
+ $accent-pat: (
35
+ 50: var(--accent-50),
36
+ 100: var(--accent-100),
37
+ 200: var(--accent-200),
38
+ 300: var(--accent-300),
39
+ 400: var(--accent-400),
40
+ 500: var(--accent-500),
41
+ 600: var(--accent-600),
42
+ 700: var(--accent-700),
43
+ 800: var(--accent-800),
44
+ 900: var(--accent-900),
45
+ A100: var(--accent-a100),
46
+ A200: var(--accent-a200),
47
+ A400: var(--accent-a400),
48
+ A700: var(--accent-a700),
49
+ contrast: (
50
+ 50: var(--contrast-50),
51
+ 100: var(--contrast-100),
52
+ 200: var(--contrast-200),
53
+ 300: var(--contrast-300),
54
+ 400: var(--contrast-400),
55
+ 500: var(--contrast-500),
56
+ 600: var(--contrast-600),
57
+ 700: var(--contrast-700),
58
+ 800: var(--contrast-800),
59
+ 900: var(--contrast-900),
60
+ A100: var(--contrast-a100),
61
+ A200: var(--contrast-a200),
62
+ A400: var(--contrast-a400),
63
+ A700: var(--contrast-a700),
64
+ ),
65
+ );
66
+
67
+ $warn-pat: (
68
+ 50: var(--warn-50),
69
+ 100: var(--warn-100),
70
+ 200: var(--warn-200),
71
+ 300: var(--warn-300),
72
+ 400: var(--warn-400),
73
+ 500: var(--warn-500),
74
+ 600: var(--warn-600),
75
+ 700: var(--warn-700),
76
+ 800: var(--warn-800),
77
+ 900: var(--warn-900),
78
+ A100: var(--warn-a100),
79
+ A200: var(--warn-a200),
80
+ A400: var(--warn-a400),
81
+ A700: var(--warn-a700),
82
+ contrast: (
83
+ 50: var(--contrast-50),
84
+ 100: var(--contrast-100),
85
+ 200: var(--contrast-200),
86
+ 300: var(--contrast-300),
87
+ 400: var(--contrast-400),
88
+ 500: var(--contrast-500),
89
+ 600: var(--contrast-600),
90
+ 700: var(--contrast-700),
91
+ 800: var(--contrast-800),
92
+ 900: var(--contrast-900),
93
+ A100: var(--contrast-a100),
94
+ A200: var(--contrast-a200),
95
+ A400: var(--contrast-a400),
96
+ A700: var(--contrast-a700),
97
+ ),
98
+ );
@@ -0,0 +1,45 @@
1
+ @use '@angular/material' as mat;
2
+
3
+ @mixin table-theme($theme) {
4
+ $background: map-get($theme, background);
5
+ $accent: map-get($theme, accent);
6
+ $isDark: map-get($theme, is-dark);
7
+
8
+ .table-scroll-container {
9
+ // region scrollbar
10
+
11
+ &::-webkit-scrollbar {
12
+ height: 6px;
13
+ }
14
+
15
+ &::-webkit-scrollbar-track {
16
+ border-radius: 2px;
17
+ }
18
+
19
+ &::-webkit-scrollbar-thumb {
20
+ border-radius: 10px;
21
+ background: mat.get-color-from-palette($accent, 100);
22
+
23
+ &:hover {
24
+ background: mat.get-color-from-palette($accent, 300);
25
+ }
26
+ }
27
+
28
+ // endregion
29
+ }
30
+
31
+ .dark {
32
+
33
+ .table-scroll-container {
34
+ &::-webkit-scrollbar-thumb {
35
+ background: mat.get-color-from-palette($accent, 900) !important;
36
+
37
+ &:hover {
38
+ background: mat.get-color-from-palette($accent, 700) !important;
39
+ }
40
+ }
41
+ }
42
+
43
+ }
44
+
45
+ }
@@ -0,0 +1,102 @@
1
+ @use "variables";
2
+ @use "fonts";
3
+ @use '@angular/material' as mat;
4
+ @use 'palette' as palette;
5
+
6
+ @import "table";
7
+ @import 'loading-animation';
8
+
9
+ @tailwind base;
10
+ @tailwind components;
11
+ @tailwind utilities;
12
+
13
+ @include mat.core();
14
+
15
+ $theme-primary: mat.define-palette(palette.$primary-pat);
16
+ $theme-accent: mat.define-palette(palette.$accent-pat, A200, A100, A400);
17
+ $theme-warn: mat.define-palette(palette.$warn-pat);
18
+ $theme-typography: mat.define-typography-config(
19
+ $font-family: theme("fontFamily.mono")
20
+ );
21
+
22
+
23
+ $light-theme: mat.define-light-theme((
24
+ color: (
25
+ primary: $theme-primary,
26
+ accent: $theme-accent,
27
+ warn: $theme-warn
28
+ ),
29
+ // Only include `typography` and `density` in the default theme.
30
+ typography: $theme-typography,
31
+ // https://m2.material.io/design/layout/applying-density.html#usage
32
+ // between -3 and 0
33
+ // density < -1 -> form field label not visible
34
+ density: 0,
35
+ ));
36
+
37
+ $dark-theme: mat.define-dark-theme((
38
+ color: (
39
+ primary: $theme-primary,
40
+ accent: $theme-accent,
41
+ warn: $theme-warn
42
+ ),
43
+ ));
44
+
45
+ // Emit theme-dependent styles for common features used across multiple components.
46
+ @include mat.core-theme($light-theme);
47
+
48
+ // Emit styles for MatButton based on `$light-theme`. Because the configuration
49
+ // passed to `define-light-theme` omits typography, `button-theme` will not
50
+ // emit any typography styles.
51
+ @include mat.all-component-themes($light-theme);
52
+ @include table-theme($light-theme);
53
+
54
+ @mixin define-utility-variables($theme) {
55
+ $foreground: map-get($theme, foreground);
56
+ $background: map-get($theme, background);
57
+ $primary: map-get($theme, primary);
58
+ $accent: map-get($theme, accent);
59
+ $warn: map-get($theme, warn);
60
+ $isDark: map-get($theme, is-dark);
61
+
62
+ --background-color: #{map-get($background, background)};
63
+ --primary-color: #{mat.get-color-from-palette($primary)};
64
+ --accent-color: #{mat.get-color-from-palette($accent)};
65
+ --warn-color: #{mat.get-color-from-palette($warn)};
66
+
67
+ --hint-text-color: #{mat.get-color-from-palette($foreground, hint-text)};
68
+ --foreground-color: #{mat.get-color-from-palette($foreground, base)};
69
+
70
+ --accept-color: rgb(115, 190, 105);
71
+ --decline-color: rgb(204, 73, 51);
72
+
73
+ }
74
+
75
+ @mixin body-theme($theme) {
76
+
77
+ $background: mat.get-color-from-palette(map-get($theme, background), background);
78
+ background-color: $background;
79
+ color: mat.get-color-from-palette(map-get($theme, foreground), text);
80
+ @include loadingAnimation($background);
81
+
82
+ }
83
+
84
+ :root {
85
+ @include define-utility-variables($light-theme);
86
+ }
87
+
88
+ body.dark {
89
+ @include mat.core-color($dark-theme);
90
+ @include mat.all-component-colors($dark-theme);
91
+ @include table-theme($dark-theme);
92
+ @include define-utility-variables($dark-theme);
93
+ }
94
+
95
+ body {
96
+ @include body-theme($light-theme);
97
+
98
+ &.dark, &.dark-theme {
99
+ @include body-theme($dark-theme);
100
+ }
101
+
102
+ }
@@ -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
+ }