@main-class/template 2.2.1 → 3.0.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.
- package/README.md +49 -10
- package/acesso/acesso.component.d.ts +1 -1
- package/base/base.component.d.ts +7 -5
- package/base/base.service.d.ts +1 -1
- package/fesm2022/main-class-template.mjs +328 -0
- package/fesm2022/main-class-template.mjs.map +1 -0
- package/footer/footer.component.d.ts +1 -1
- package/header/header.component.d.ts +1 -1
- package/menu/menu-config.d.ts +18 -0
- package/menu/menu.component.d.ts +7 -24
- package/menu/menu.service.d.ts +1 -1
- package/package.json +10 -18
- package/public-api.d.ts +3 -3
- package/esm2020/acesso/acesso.component.mjs +0 -21
- package/esm2020/base/base.component.mjs +0 -138
- package/esm2020/base/base.service.mjs +0 -22
- package/esm2020/footer/footer.component.mjs +0 -21
- package/esm2020/header/header.component.mjs +0 -34
- package/esm2020/main-class-template.mjs +0 -5
- package/esm2020/menu/menu.component.mjs +0 -50
- package/esm2020/menu/menu.service.mjs +0 -25
- package/esm2020/public-api.mjs +0 -12
- package/esm2020/template.module.mjs +0 -137
- package/fesm2015/main-class-template.mjs +0 -414
- package/fesm2015/main-class-template.mjs.map +0 -1
- package/fesm2020/main-class-template.mjs +0 -419
- package/fesm2020/main-class-template.mjs.map +0 -1
- package/template.module.d.ts +0 -40
- package/theming.scss +0 -238
package/template.module.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
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";
|
|
21
|
-
export declare class TemplateModule {
|
|
22
|
-
static forRoot(): ModuleWithProviders<TemplateModule>;
|
|
23
|
-
static forCrud(config: {
|
|
24
|
-
consultaComponent: any;
|
|
25
|
-
edicaoComponent: any;
|
|
26
|
-
cadastroComponent?: any;
|
|
27
|
-
routeBase: string;
|
|
28
|
-
consultaLabel?: string;
|
|
29
|
-
cadastroLabel?: string;
|
|
30
|
-
cadastroPath?: string;
|
|
31
|
-
edicaoLabel?: string;
|
|
32
|
-
consultaExtraData?: any;
|
|
33
|
-
cadastroExtraData?: any;
|
|
34
|
-
edicaoExtraData?: any;
|
|
35
|
-
extraRoutes?: Routes;
|
|
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>;
|
|
40
|
-
}
|
package/theming.scss
DELETED
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@mixin mcl-menu($theme) {
|
|
4
|
-
$accent: map-get($theme, accent);
|
|
5
|
-
|
|
6
|
-
mcl-menu .menu button.active {
|
|
7
|
-
background-color: rgba(mat.get-color-from-palette($accent), .12) !important;
|
|
8
|
-
color: mat.get-color-from-palette($accent) !important;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@mixin mcl-acesso($config-or-theme) {
|
|
13
|
-
$config: mat.get-color-config($config-or-theme);
|
|
14
|
-
$accent: map-get($config, accent);
|
|
15
|
-
|
|
16
|
-
mcl-acesso {
|
|
17
|
-
background-color: rgba(mat.get-color-from-palette($accent), .05) !important;
|
|
18
|
-
|
|
19
|
-
.form h2 {
|
|
20
|
-
color: mat.get-color-from-palette($accent);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@mixin mcl-footer($config-or-theme) {
|
|
26
|
-
$config: mat.get-color-config($config-or-theme);
|
|
27
|
-
$primary: map-get($config, primary);
|
|
28
|
-
|
|
29
|
-
mcl-footer {
|
|
30
|
-
background-color: mat.get-color-from-palette($primary) !important;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@mixin mcl-header($config-or-theme) {
|
|
35
|
-
$config: mat.get-color-config($config-or-theme);
|
|
36
|
-
$accent: map-get($config, accent);
|
|
37
|
-
|
|
38
|
-
mcl-header {
|
|
39
|
-
border-bottom: 5px solid mat.get-color-from-palette($accent) !important;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@mixin mcl-theming($theme) {
|
|
44
|
-
$accent: map-get($theme, accent);
|
|
45
|
-
|
|
46
|
-
@include mat.core();
|
|
47
|
-
|
|
48
|
-
@include mat.all-component-themes($theme);
|
|
49
|
-
|
|
50
|
-
@include mcl-menu($theme);
|
|
51
|
-
@include mcl-acesso($theme);
|
|
52
|
-
@include mcl-footer($theme);
|
|
53
|
-
@include mcl-header($theme);
|
|
54
|
-
|
|
55
|
-
html, body {
|
|
56
|
-
height: 100%;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
body {
|
|
60
|
-
height: 100%;
|
|
61
|
-
margin: 0;
|
|
62
|
-
font-family: Asap, "Roboto", sans-serif;
|
|
63
|
-
font-size: 12px;
|
|
64
|
-
|
|
65
|
-
mat-sidenav-container.dialog mat-sidenav-content {
|
|
66
|
-
.mat-mdc-card:not([class*=mat-elevation-z]) {
|
|
67
|
-
border-radius: 8px;
|
|
68
|
-
padding: 30px;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.mat-mdc-card:not([class*=mat-elevation-z]) {
|
|
73
|
-
box-shadow: none;
|
|
74
|
-
border: none;
|
|
75
|
-
border-top-left-radius: 8px;
|
|
76
|
-
border-bottom-left-radius: 8px;
|
|
77
|
-
margin-bottom: 30px;
|
|
78
|
-
padding: 30px 80px 30px 30px;
|
|
79
|
-
|
|
80
|
-
h2 {
|
|
81
|
-
font-weight: 500;
|
|
82
|
-
font-size: 20px;
|
|
83
|
-
line-height: 24px;
|
|
84
|
-
letter-spacing: 0.15px;
|
|
85
|
-
color: mat.get-color-from-palette($accent);
|
|
86
|
-
margin-bottom: 40px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
table {
|
|
90
|
-
border-bottom: 1px solid #E0E0E0;
|
|
91
|
-
|
|
92
|
-
tr {
|
|
93
|
-
color: #333;
|
|
94
|
-
|
|
95
|
-
.mat-cell, .mat-footer {
|
|
96
|
-
font-size: 12px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
th {
|
|
100
|
-
padding-left: 10px;
|
|
101
|
-
padding-right: 10px;
|
|
102
|
-
font-weight: bold;
|
|
103
|
-
font-size: 12px;
|
|
104
|
-
line-height: 14px;
|
|
105
|
-
letter-spacing: 0.25px;
|
|
106
|
-
text-transform: uppercase;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
td {
|
|
110
|
-
padding-left: 10px;
|
|
111
|
-
padding-right: 10px;
|
|
112
|
-
transition: 50ms;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
th:not(:last-child), td:not(:last-child) {
|
|
116
|
-
border-right: 1px solid #E0E0E0;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
th {
|
|
120
|
-
border-top: 2px solid mat.get-color-from-palette($accent);
|
|
121
|
-
border-bottom: 2px solid mat.get-color-from-palette($accent);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&:hover td {
|
|
125
|
-
background-color: mat.get-color-from-palette($accent);
|
|
126
|
-
color: #fff;
|
|
127
|
-
border-color: mat.get-color-from-palette($accent);
|
|
128
|
-
|
|
129
|
-
&[routerLink], &[click] {
|
|
130
|
-
cursor: pointer;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
mat-form-field {
|
|
139
|
-
display: block;
|
|
140
|
-
width: 100%;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
mat-icon {
|
|
144
|
-
vertical-align: middle;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
table td.principal {
|
|
148
|
-
font-weight: 500;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.text-center {
|
|
153
|
-
text-align: center
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.text-right {
|
|
157
|
-
text-align: right
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.text-left {
|
|
161
|
-
text-align: left
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.component-loading {
|
|
165
|
-
position: relative;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.iframe-dialog .mat-mdc-dialog-container .mat-mdc-dialog-content {
|
|
169
|
-
margin: 0;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.mat-mdc-dialog-container {
|
|
173
|
-
border-radius: 8px;
|
|
174
|
-
padding: 0;
|
|
175
|
-
|
|
176
|
-
.mat-mdc-dialog-content {
|
|
177
|
-
max-width: 800px;
|
|
178
|
-
width: 95vw;
|
|
179
|
-
min-width: auto;
|
|
180
|
-
padding: 0;
|
|
181
|
-
margin: 10px 50px;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.mat-mdc-dialog-title {
|
|
185
|
-
font-weight: bold;
|
|
186
|
-
font-size: 30px;
|
|
187
|
-
line-height: 24px;
|
|
188
|
-
letter-spacing: 0.25px;
|
|
189
|
-
color: #333333;
|
|
190
|
-
padding: 0;
|
|
191
|
-
margin: 50px 50px 30px 50px;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.mat-mdc-dialog-actions {
|
|
195
|
-
padding: 0;
|
|
196
|
-
margin: 30px 50px 50px 50px;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.mat-mdc-dialog-actions, .acoes {
|
|
201
|
-
margin-top: 60px;
|
|
202
|
-
display: flex;
|
|
203
|
-
flex-direction: row-reverse;
|
|
204
|
-
gap: 20px;
|
|
205
|
-
|
|
206
|
-
.spacer {
|
|
207
|
-
flex: 1 1 auto;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
@media(max-width: 750px) {
|
|
212
|
-
|
|
213
|
-
.spacer {
|
|
214
|
-
flex: 1;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
@media (max-width: 1200px) {
|
|
220
|
-
body {
|
|
221
|
-
.mat-mdc-card:not([class*=mat-elevation-z]) {
|
|
222
|
-
padding: 30px;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
a, a:active {
|
|
228
|
-
color: mat.get-color-from-palette($accent, 200);
|
|
229
|
-
transition: 300ms;
|
|
230
|
-
text-decoration: none;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
a:hover, a:hover:active {
|
|
234
|
-
color: mat.get-color-from-palette($accent, 900);
|
|
235
|
-
text-decoration: underline;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|