@main-class/template 1.19.3 → 2.0.4

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 (40) hide show
  1. package/acesso/acesso.component.d.ts +3 -0
  2. package/base/base.component.d.ts +3 -0
  3. package/base/base.service.d.ts +3 -0
  4. package/esm2020/acesso/acesso.component.mjs +21 -0
  5. package/esm2020/base/base.component.mjs +138 -0
  6. package/esm2020/base/base.service.mjs +22 -0
  7. package/esm2020/footer/footer.component.mjs +21 -0
  8. package/esm2020/header/header.component.mjs +34 -0
  9. package/esm2020/menu/menu.component.mjs +50 -0
  10. package/esm2020/menu/menu.service.mjs +25 -0
  11. package/esm2020/template.module.mjs +137 -0
  12. package/fesm2015/main-class-template.mjs +414 -0
  13. package/fesm2015/main-class-template.mjs.map +1 -0
  14. package/fesm2020/main-class-template.mjs +419 -0
  15. package/fesm2020/main-class-template.mjs.map +1 -0
  16. package/footer/footer.component.d.ts +3 -0
  17. package/header/header.component.d.ts +3 -0
  18. package/{main-class-template.d.ts → index.d.ts} +1 -0
  19. package/menu/menu.component.d.ts +3 -0
  20. package/menu/menu.service.d.ts +3 -0
  21. package/package.json +20 -8
  22. package/template.module.d.ts +21 -0
  23. package/theming.scss +16 -16
  24. package/bundles/main-class-template.umd.js +0 -780
  25. package/bundles/main-class-template.umd.js.map +0 -1
  26. package/bundles/main-class-template.umd.min.js +0 -16
  27. package/bundles/main-class-template.umd.min.js.map +0 -1
  28. package/esm2015/acesso/acesso.component.js +0 -23
  29. package/esm2015/base/base.component.js +0 -142
  30. package/esm2015/base/base.service.js +0 -21
  31. package/esm2015/footer/footer.component.js +0 -23
  32. package/esm2015/header/header.component.js +0 -40
  33. package/esm2015/menu/menu.component.js +0 -45
  34. package/esm2015/menu/menu.service.js +0 -24
  35. package/esm2015/template.module.js +0 -101
  36. package/fesm2015/main-class-template.js +0 -403
  37. package/fesm2015/main-class-template.js.map +0 -1
  38. package/main-class-template.metadata.json +0 -1
  39. /package/{esm2015/main-class-template.js → esm2020/main-class-template.mjs} +0 -0
  40. /package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
@@ -1,5 +1,23 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
2
  import { RouterModule, Routes } from '@angular/router';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "./base/base.component";
5
+ import * as i2 from "./menu/menu.component";
6
+ import * as i3 from "./header/header.component";
7
+ import * as i4 from "./footer/footer.component";
8
+ import * as i5 from "./acesso/acesso.component";
9
+ import * as i6 from "@angular/common";
10
+ import * as i7 from "@angular/router";
11
+ import * as i8 from "@angular/material/sidenav";
12
+ import * as i9 from "@angular/material/button";
13
+ import * as i10 from "@angular/material/icon";
14
+ import * as i11 from "@angular/material/badge";
15
+ import * as i12 from "@angular/material/tabs";
16
+ import * as i13 from "@angular/material/menu";
17
+ import * as i14 from "@angular/material/divider";
18
+ import * as i15 from "@angular/material/chips";
19
+ import * as i16 from "@angular/material/tooltip";
20
+ import * as i17 from "@ngx-translate/core";
3
21
  export declare class TemplateModule {
4
22
  static forRoot(): ModuleWithProviders<TemplateModule>;
5
23
  static forCrud(config: {
@@ -16,4 +34,7 @@ export declare class TemplateModule {
16
34
  edicaoExtraData?: any;
17
35
  extraRoutes?: Routes;
18
36
  }): ModuleWithProviders<RouterModule>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<TemplateModule, never>;
38
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TemplateModule, [typeof i1.BaseComponent, typeof i2.MenuComponent, typeof i3.HeaderComponent, typeof i4.FooterComponent, typeof i5.AcessoComponent], [typeof i6.CommonModule, typeof i7.RouterModule, typeof i8.MatSidenavModule, typeof i9.MatButtonModule, typeof i10.MatIconModule, typeof i11.MatBadgeModule, typeof i12.MatTabsModule, typeof i13.MatMenuModule, typeof i14.MatDividerModule, typeof i15.MatChipsModule, typeof i16.MatTooltipModule, typeof i17.TranslateModule], [typeof i1.BaseComponent, typeof i5.AcessoComponent]>;
39
+ static ɵinj: i0.ɵɵInjectorDeclaration<TemplateModule>;
19
40
  }
package/theming.scss CHANGED
@@ -1,11 +1,11 @@
1
- @import '~@angular/material/theming';
1
+ @use '@angular/material' as mat;
2
2
 
3
3
  @mixin mcl-menu($theme) {
4
4
  $accent: map-get($theme, accent);
5
5
 
6
6
  mcl-menu .menu button.active {
7
- background-color: rgba(mat-color($accent), .12) !important;
8
- color: mat-color($accent) !important;
7
+ background-color: rgba(mat.get-color-from-palette($accent), .12) !important;
8
+ color: mat.get-color-from-palette($accent) !important;
9
9
  }
10
10
  }
11
11
 
@@ -14,10 +14,10 @@
14
14
  $accent: map-get($config, accent);
15
15
 
16
16
  mcl-acesso {
17
- background-color: rgba(mat-color($accent), .05) !important;
17
+ background-color: rgba(mat.get-color-from-palette($accent), .05) !important;
18
18
 
19
19
  .form h2 {
20
- color: mat-color($accent);
20
+ color: mat.get-color-from-palette($accent);
21
21
  }
22
22
  }
23
23
  }
@@ -27,7 +27,7 @@
27
27
  $primary: map-get($config, primary);
28
28
 
29
29
  mcl-footer {
30
- background-color: mat-color($primary) !important;
30
+ background-color: mat.get-color-from-palette($primary) !important;
31
31
  }
32
32
  }
33
33
 
@@ -36,16 +36,16 @@
36
36
  $accent: map-get($config, accent);
37
37
 
38
38
  mcl-header {
39
- border-bottom: 5px solid mat-color($accent) !important;
39
+ border-bottom: 5px solid mat.get-color-from-palette($accent) !important;
40
40
  }
41
41
  }
42
42
 
43
43
  @mixin mcl-theming($theme) {
44
44
  $accent: map-get($theme, accent);
45
45
 
46
- @include mat-core();
46
+ @include mat.core();
47
47
 
48
- @include angular-material-theme($theme);
48
+ @include mat.all-component-themes($theme);
49
49
 
50
50
  @include mcl-menu($theme);
51
51
  @include mcl-acesso($theme);
@@ -82,7 +82,7 @@
82
82
  font-size: 20px;
83
83
  line-height: 24px;
84
84
  letter-spacing: 0.15px;
85
- color: mat-color($accent);
85
+ color: mat.get-color-from-palette($accent);
86
86
  margin-bottom: 40px;
87
87
  }
88
88
 
@@ -117,14 +117,14 @@
117
117
  }
118
118
 
119
119
  th {
120
- border-top: 2px solid mat-color($accent);
121
- border-bottom: 2px solid mat-color($accent);
120
+ border-top: 2px solid mat.get-color-from-palette($accent);
121
+ border-bottom: 2px solid mat.get-color-from-palette($accent);
122
122
  }
123
123
 
124
124
  &:hover td {
125
- background-color: mat-color($accent);
125
+ background-color: mat.get-color-from-palette($accent);
126
126
  color: #fff;
127
- border-color: mat-color($accent);
127
+ border-color: mat.get-color-from-palette($accent);
128
128
 
129
129
  &[routerLink], &[click] {
130
130
  cursor: pointer;
@@ -225,13 +225,13 @@
225
225
  }
226
226
 
227
227
  a, a:active {
228
- color: mat-color($accent, 200);
228
+ color: mat.get-color-from-palette($accent, 200);
229
229
  transition: 300ms;
230
230
  text-decoration: none;
231
231
  }
232
232
 
233
233
  a:hover, a:hover:active {
234
- color: mat-color($accent, 900);
234
+ color: mat.get-color-from-palette($accent, 900);
235
235
  text-decoration: underline;
236
236
  }
237
237
  }