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

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 (89) hide show
  1. package/CHANGELOG.md +249 -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 +102 -0
  57. package/src/generators/init-application/files/styles/_variables.scss +63 -0
  58. package/src/generators/init-application/files/styles/fonts/_material-icons.scss +20 -0
  59. package/src/generators/init-application/files/styles/fonts/material-icons.ttf +0 -0
  60. package/src/generators/init-application/generator.js +439 -80
  61. package/src/generators/init-application/generator.js.map +1 -1
  62. package/src/generators/init-application/index.d.ts +2 -0
  63. package/src/generators/init-application/index.js +7 -0
  64. package/src/generators/init-application/index.js.map +1 -0
  65. package/src/generators/init-application/schema.d.ts +8 -0
  66. package/src/generators/init-application/schema.json +54 -8
  67. package/src/generators/init-feature/files/feature/__name__/routes.ts.template +10 -0
  68. package/src/generators/init-feature/generator.d.ts +11 -0
  69. package/src/generators/init-feature/generator.js +106 -0
  70. package/src/generators/init-feature/generator.js.map +1 -0
  71. package/src/generators/init-feature/index.d.ts +2 -0
  72. package/src/generators/init-feature/index.js +7 -0
  73. package/src/generators/init-feature/index.js.map +1 -0
  74. package/src/generators/init-feature/schema.d.ts +4 -0
  75. package/src/generators/init-feature/schema.json +20 -0
  76. package/src/generators/init-library/generator.js +73 -50
  77. package/src/generators/init-library/generator.js.map +1 -1
  78. package/src/generators/init-library/index.d.ts +2 -0
  79. package/src/generators/init-library/index.js +7 -0
  80. package/src/generators/init-library/index.js.map +1 -0
  81. package/src/generators/init-library/schema.d.ts +2 -0
  82. package/src/generators/init-library/schema.json +10 -0
  83. package/src/generators/schematic/index.d.ts +2 -0
  84. package/src/generators/schematic/index.js +7 -0
  85. package/src/generators/schematic/index.js.map +1 -0
  86. package/src/generators/init-application/files/shared/assets/Dockerfile +0 -5
  87. package/src/generators/init-application/files/shared/assets/nginx.conf +0 -74
  88. package/src/generators/init-application/files/shared/i18n.index.html.hbs +0 -40
  89. /package/src/generators/init-application/files/{shared → assets}/.gitkeep +0 -0
@@ -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
+ }