@ngx-smz/layout 21.10.0-next.28 → 21.10.0-next.29
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/fesm2022/ngx-smz-layout-layout-configurator.entry-Dm9Xx7YB.mjs +101 -0
- package/fesm2022/ngx-smz-layout-layout-configurator.entry-Dm9Xx7YB.mjs.map +1 -0
- package/fesm2022/{ngx-smz-layout-layout-errors.entry-Bpp0Hw8y.mjs → ngx-smz-layout-layout-errors.entry-CQuwiz8W.mjs} +3 -3
- package/fesm2022/{ngx-smz-layout-layout-errors.entry-Bpp0Hw8y.mjs.map → ngx-smz-layout-layout-errors.entry-CQuwiz8W.mjs.map} +1 -1
- package/fesm2022/ngx-smz-layout-layout-footer.entry-BmXVGvze.mjs +135 -0
- package/fesm2022/ngx-smz-layout-layout-footer.entry-BmXVGvze.mjs.map +1 -0
- package/fesm2022/{ngx-smz-layout-layout-gallery.fixtures-yel7nOYX.mjs → ngx-smz-layout-layout-gallery.fixtures-BgO9_ncI.mjs} +34 -7
- package/fesm2022/ngx-smz-layout-layout-gallery.fixtures-BgO9_ncI.mjs.map +1 -0
- package/fesm2022/ngx-smz-layout-layout-menu.entry-DdTLZvao.mjs +237 -0
- package/fesm2022/ngx-smz-layout-layout-menu.entry-DdTLZvao.mjs.map +1 -0
- package/fesm2022/ngx-smz-layout-layout-shell.entry-qgGO3ZqB.mjs +205 -0
- package/fesm2022/ngx-smz-layout-layout-shell.entry-qgGO3ZqB.mjs.map +1 -0
- package/fesm2022/{ngx-smz-layout-layout-topbar.entry-CfSpHt5E.mjs → ngx-smz-layout-layout-topbar.entry-Bg3BEgJa.mjs} +158 -7
- package/fesm2022/ngx-smz-layout-layout-topbar.entry-Bg3BEgJa.mjs.map +1 -0
- package/fesm2022/{ngx-smz-layout-ngx-smz-layout-BEHAEWgI.mjs → ngx-smz-layout-ngx-smz-layout-CvjM-0jw.mjs} +945 -309
- package/fesm2022/ngx-smz-layout-ngx-smz-layout-CvjM-0jw.mjs.map +1 -0
- package/fesm2022/ngx-smz-layout.mjs +1 -1
- package/package.json +1 -1
- package/resources/layout/_core.scss +90 -4
- package/resources/layout/_footer.scss +1 -1
- package/resources/layout/_main.scss +10 -2
- package/resources/layout/_menu.scss +203 -34
- package/resources/layout/_mixins.scss +9 -8
- package/resources/layout/_preloading.scss +167 -5
- package/resources/layout/_responsive.scss +51 -15
- package/resources/layout/_topbar.scss +72 -34
- package/resources/layout/_typography.scss +14 -14
- package/resources/layout/_utils.scss +2 -2
- package/resources/layout/gallery-stage.scss +1 -1
- package/resources/layout/variables/_common.scss +9 -5
- package/resources/layout/variables/_dark.scss +0 -2
- package/resources/layout/variables/_legacy-common.scss +10 -8
- package/resources/layout/variables/_light.scss +0 -2
- package/types/ngx-smz-layout.d.ts +381 -52
- package/fesm2022/ngx-smz-layout-layout-footer.entry-CbNgTe0l.mjs +0 -51
- package/fesm2022/ngx-smz-layout-layout-footer.entry-CbNgTe0l.mjs.map +0 -1
- package/fesm2022/ngx-smz-layout-layout-gallery.fixtures-yel7nOYX.mjs.map +0 -1
- package/fesm2022/ngx-smz-layout-layout-menu.entry-BAzglN_V.mjs +0 -99
- package/fesm2022/ngx-smz-layout-layout-menu.entry-BAzglN_V.mjs.map +0 -1
- package/fesm2022/ngx-smz-layout-layout-shell.entry-CWxnFneU.mjs +0 -78
- package/fesm2022/ngx-smz-layout-layout-shell.entry-CWxnFneU.mjs.map +0 -1
- package/fesm2022/ngx-smz-layout-layout-topbar.entry-CfSpHt5E.mjs.map +0 -1
- package/fesm2022/ngx-smz-layout-ngx-smz-layout-BEHAEWgI.mjs.map +0 -1
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
.layout-topbar {
|
|
4
4
|
position: fixed;
|
|
5
|
-
height: 4rem;
|
|
5
|
+
height: var(--smz-layout-topbar-height, 4rem);
|
|
6
6
|
z-index: 997;
|
|
7
7
|
left: 0;
|
|
8
8
|
top: 0;
|
|
9
9
|
width: 100%;
|
|
10
10
|
padding: 0 2rem;
|
|
11
|
-
background-color: var(--surface-
|
|
12
|
-
transition: left var(--layout-
|
|
11
|
+
background-color: var(--smz-layout-topbar-background, var(--smz-surface-1));
|
|
12
|
+
transition: left var(--smz-layout-duration, 0.2s);
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
|
15
15
|
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
.layout-topbar-logo {
|
|
24
24
|
display: inline-flex;
|
|
25
25
|
align-items: center;
|
|
26
|
-
font-size: 1.5rem;
|
|
27
|
-
border-radius: var(--
|
|
28
|
-
color: var(--
|
|
29
|
-
font-weight: 500;
|
|
26
|
+
font-size: var(--smz-layout-topbar-brand-font-size, 1.5rem);
|
|
27
|
+
border-radius: var(--smz-layout-topbar-brand-radius, var(--smz-radius-card));
|
|
28
|
+
color: var(--smz-layout-topbar-brand-color, var(--smz-fg));
|
|
29
|
+
font-weight: var(--smz-layout-topbar-brand-font-weight, 500);
|
|
30
30
|
gap: 0.5rem;
|
|
31
31
|
|
|
32
32
|
svg {
|
|
@@ -39,25 +39,24 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.layout-topbar-app-name {
|
|
42
|
-
font-size: 1.5rem;
|
|
43
|
-
color: var(--
|
|
44
|
-
font-weight: 500;
|
|
42
|
+
font-size: var(--smz-layout-topbar-brand-font-size, 1.5rem);
|
|
43
|
+
color: var(--smz-layout-topbar-brand-color, var(--smz-fg));
|
|
44
|
+
font-weight: var(--smz-layout-topbar-brand-font-weight, 500);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.layout-topbar-action {
|
|
48
48
|
display: inline-flex;
|
|
49
49
|
justify-content: center;
|
|
50
50
|
align-items: center;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
transition: background-color var(--element-transition-duration);
|
|
51
|
+
border-radius: var(--smz-layout-topbar-action-radius, 50%);
|
|
52
|
+
width: var(--smz-layout-topbar-action-size, 2.5rem);
|
|
53
|
+
height: var(--smz-layout-topbar-action-size, 2.5rem);
|
|
54
|
+
color: var(--smz-layout-topbar-action-color, var(--smz-fg));
|
|
55
|
+
transition: background-color var(--smz-layout-topbar-action-duration, var(--smz-duration));
|
|
57
56
|
cursor: pointer;
|
|
58
57
|
|
|
59
58
|
&:hover {
|
|
60
|
-
background-color: var(--surface-
|
|
59
|
+
background-color: var(--smz-layout-topbar-action-hover-background, var(--smz-surface-3));
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
&:focus-visible {
|
|
@@ -65,17 +64,17 @@
|
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
i {
|
|
68
|
-
font-size: 1.25rem;
|
|
67
|
+
font-size: var(--smz-layout-topbar-action-icon-font-size, 1.25rem);
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
span {
|
|
72
|
-
font-size: 1rem;
|
|
71
|
+
font-size: var(--smz-layout-topbar-action-label-font-size, 1rem);
|
|
73
72
|
display: none;
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
&.layout-topbar-action-highlight {
|
|
77
|
-
background-color: var(--primary
|
|
78
|
-
color: var(--
|
|
76
|
+
background-color: var(--smz-primary);
|
|
77
|
+
color: var(--smz-on-primary);
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
80
|
|
|
@@ -88,8 +87,9 @@
|
|
|
88
87
|
}
|
|
89
88
|
|
|
90
89
|
.layout-topbar-page-title {
|
|
91
|
-
font-size: 1.25rem;
|
|
92
|
-
font-weight: 500;
|
|
90
|
+
font-size: var(--smz-layout-topbar-title-font-size, 1.25rem);
|
|
91
|
+
font-weight: var(--smz-layout-topbar-title-font-weight, 500);
|
|
92
|
+
color: var(--smz-layout-topbar-title-color, var(--smz-fg));
|
|
93
93
|
margin-left: 0.5rem;
|
|
94
94
|
}
|
|
95
95
|
|
|
@@ -122,11 +122,48 @@
|
|
|
122
122
|
display: block;
|
|
123
123
|
width: 1px;
|
|
124
124
|
align-self: stretch;
|
|
125
|
-
border-left: 1px solid var(--
|
|
125
|
+
border-left: 1px solid var(--smz-layout-topbar-separator-border-color, var(--smz-line));
|
|
126
126
|
margin: 0 1rem;
|
|
127
127
|
}
|
|
128
|
+
|
|
129
|
+
/* Conteúdo extra projetado pelo app (`smzTemplate="headerExtras"`). */
|
|
130
|
+
.layout-topbar-extras {
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
justify-content: flex-end;
|
|
134
|
+
gap: 1rem;
|
|
135
|
+
min-width: 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Sino de notificações do core (`topbar.showNotifications`). */
|
|
139
|
+
.layout-topbar-notifications {
|
|
140
|
+
display: inline-flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
align-self: center;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Mensagem e nome do usuário ao lado do avatar ou do ícone de perfil. */
|
|
146
|
+
.layout-topbar-profile-text {
|
|
147
|
+
align-self: center;
|
|
148
|
+
max-width: 16rem;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
text-overflow: ellipsis;
|
|
151
|
+
white-space: nowrap;
|
|
152
|
+
font-size: var(--smz-layout-topbar-profile-font-size, var(--smz-text-md));
|
|
153
|
+
font-weight: var(--smz-layout-topbar-profile-font-weight, 500);
|
|
154
|
+
color: var(--smz-layout-topbar-profile-color, var(--smz-fg));
|
|
155
|
+
cursor: pointer;
|
|
156
|
+
|
|
157
|
+
&:focus-visible {
|
|
158
|
+
@include focused();
|
|
159
|
+
}
|
|
160
|
+
}
|
|
128
161
|
}
|
|
129
162
|
|
|
163
|
+
/*
|
|
164
|
+
* Menu móvel da topbar. O ponto de quebra é literal (uma media query não lê variável CSS) e, como a galeria não
|
|
165
|
+
* mostra o que depende da largura da viewport, estas regras leem semânticos e os tokens já usados acima.
|
|
166
|
+
*/
|
|
130
167
|
@media (max-width: 991px) {
|
|
131
168
|
.layout-topbar {
|
|
132
169
|
padding: 0 2rem;
|
|
@@ -146,18 +183,15 @@
|
|
|
146
183
|
|
|
147
184
|
.layout-topbar-menu {
|
|
148
185
|
position: absolute;
|
|
149
|
-
background-color: var(--surface-
|
|
186
|
+
background-color: var(--smz-surface-2);
|
|
150
187
|
transform-origin: top;
|
|
151
|
-
box-shadow:
|
|
152
|
-
|
|
153
|
-
0px 0px 2px rgba(0, 0, 0, 0.05),
|
|
154
|
-
0px 1px 4px rgba(0, 0, 0, 0.08);
|
|
155
|
-
border-radius: var(--content-border-radius);
|
|
188
|
+
box-shadow: var(--smz-layout-floating-shadow, 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08));
|
|
189
|
+
border-radius: var(--smz-radius-card);
|
|
156
190
|
padding: 1rem;
|
|
157
191
|
right: 2rem;
|
|
158
|
-
top: 4rem;
|
|
192
|
+
top: var(--smz-layout-topbar-height, 4rem);
|
|
159
193
|
min-width: 15rem;
|
|
160
|
-
border: 1px solid var(--
|
|
194
|
+
border: 1px solid var(--smz-line);
|
|
161
195
|
|
|
162
196
|
.layout-topbar-menu-content {
|
|
163
197
|
gap: 0.5rem;
|
|
@@ -168,13 +202,13 @@
|
|
|
168
202
|
width: 100%;
|
|
169
203
|
height: auto;
|
|
170
204
|
justify-content: flex-start;
|
|
171
|
-
border-radius: var(--
|
|
205
|
+
border-radius: var(--smz-radius-card);
|
|
172
206
|
padding: 0.5rem 1rem;
|
|
173
207
|
margin-top: auto;
|
|
174
208
|
margin-bottom: auto;
|
|
175
209
|
|
|
176
210
|
i {
|
|
177
|
-
font-size: 1rem;
|
|
211
|
+
font-size: var(--smz-layout-topbar-action-label-font-size, 1rem);
|
|
178
212
|
margin-right: 0.5rem;
|
|
179
213
|
}
|
|
180
214
|
|
|
@@ -200,5 +234,9 @@
|
|
|
200
234
|
.topbar-separator {
|
|
201
235
|
display: none;
|
|
202
236
|
}
|
|
237
|
+
|
|
238
|
+
.layout-topbar-profile-text {
|
|
239
|
+
display: none;
|
|
240
|
+
}
|
|
203
241
|
}
|
|
204
242
|
}
|
|
@@ -6,9 +6,9 @@ h5,
|
|
|
6
6
|
h6 {
|
|
7
7
|
margin: 1.5rem 0 1rem 0;
|
|
8
8
|
font-family: inherit;
|
|
9
|
-
font-weight: 700;
|
|
10
|
-
line-height:
|
|
11
|
-
color: var(--
|
|
9
|
+
font-weight: var(--smz-layout-heading-font-weight, 700);
|
|
10
|
+
line-height: var(--smz-leading);
|
|
11
|
+
color: var(--smz-layout-heading-color, var(--smz-fg));
|
|
12
12
|
|
|
13
13
|
&:first-child {
|
|
14
14
|
margin-top: 0;
|
|
@@ -16,51 +16,51 @@ h6 {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
h1 {
|
|
19
|
-
font-size: 2.5rem;
|
|
19
|
+
font-size: var(--smz-layout-heading-h1-font-size, 2.5rem);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
h2 {
|
|
23
|
-
font-size: 2rem;
|
|
23
|
+
font-size: var(--smz-layout-heading-h2-font-size, 2rem);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
h3 {
|
|
27
|
-
font-size: 1.75rem;
|
|
27
|
+
font-size: var(--smz-layout-heading-h3-font-size, 1.75rem);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
h4 {
|
|
31
|
-
font-size: 1.5rem;
|
|
31
|
+
font-size: var(--smz-layout-heading-h4-font-size, 1.5rem);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
h5 {
|
|
35
|
-
font-size: 1.25rem;
|
|
35
|
+
font-size: var(--smz-layout-heading-h5-font-size, 1.25rem);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
h6 {
|
|
39
|
-
font-size: 1rem;
|
|
39
|
+
font-size: var(--smz-layout-heading-h6-font-size, 1rem);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
mark {
|
|
43
|
-
background: #fff8e1;
|
|
43
|
+
background: var(--smz-layout-mark-background, #fff8e1);
|
|
44
44
|
padding: 0.25rem 0.4rem;
|
|
45
|
-
border-radius: var(--
|
|
45
|
+
border-radius: var(--smz-radius-card);
|
|
46
46
|
font-family: monospace;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
blockquote {
|
|
50
50
|
margin: 1rem 0;
|
|
51
51
|
padding: 0 2rem;
|
|
52
|
-
border-left: 4px solid #90a4ae;
|
|
52
|
+
border-left: 4px solid var(--smz-layout-blockquote-border-color, #90a4ae);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
hr {
|
|
56
|
-
border-top: solid var(--
|
|
56
|
+
border-top: solid var(--smz-line);
|
|
57
57
|
border-width: 1px 0 0 0;
|
|
58
58
|
margin: 1rem 0;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
p {
|
|
62
62
|
margin: 0 0 1rem 0;
|
|
63
|
-
line-height:
|
|
63
|
+
line-height: var(--smz-leading);
|
|
64
64
|
|
|
65
65
|
&:last-child {
|
|
66
66
|
margin-bottom: 0;
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.card {
|
|
9
|
-
background: var(--surface-
|
|
9
|
+
background: var(--smz-layout-card-background, var(--smz-surface-1));
|
|
10
10
|
padding: 2rem;
|
|
11
11
|
margin-bottom: 2rem;
|
|
12
|
-
border-radius: var(--
|
|
12
|
+
border-radius: var(--smz-layout-card-radius, var(--smz-radius-card));
|
|
13
13
|
|
|
14
14
|
&:last-child {
|
|
15
15
|
margin-bottom: 0;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
--focus-ring-shadow: none;
|
|
29
29
|
|
|
30
30
|
/* O que `body` recebe em um app com a casca. */
|
|
31
|
-
font-family: 'Lato', sans-serif;
|
|
31
|
+
font-family: var(--smz-layout-font-family, 'Lato', sans-serif);
|
|
32
32
|
color: var(--text-color);
|
|
33
33
|
background-color: var(--surface-ground);
|
|
34
34
|
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Variáveis herdadas, mantidas para o CSS dos apps que ainda as lê. A casca não as lê mais: `layout.scss` usa os
|
|
3
|
+
* tokens `--smz-layout-*` e os semânticos `--smz-*`. Redefinir uma delas no app não muda mais a casca.
|
|
4
|
+
*/
|
|
1
5
|
:root {
|
|
2
6
|
--primary-color: rgb(var(--smz-color-primary));
|
|
3
7
|
--primary-contrast-color: rgb(var(--smz-color-on-primary));
|
|
@@ -8,13 +12,13 @@
|
|
|
8
12
|
--surface-hover: rgb(var(--smz-color-surface-3));
|
|
9
13
|
--surface-overlay: rgb(var(--smz-color-surface-2));
|
|
10
14
|
--transition-duration: var(--smz-duration);
|
|
11
|
-
--maskbg: rgb(0 0 0 / 0.4);
|
|
15
|
+
--maskbg: var(--smz-layout-mask-background, rgb(0 0 0 / 0.4));
|
|
12
16
|
--content-border-radius: var(--smz-radius-card);
|
|
13
|
-
--layout-section-transition-duration: 0.2s;
|
|
17
|
+
--layout-section-transition-duration: var(--smz-layout-duration, 0.2s);
|
|
14
18
|
--element-transition-duration: var(--smz-duration);
|
|
15
|
-
--focus-ring-width: 2px;
|
|
19
|
+
--focus-ring-width: var(--smz-layout-focus-ring-width, 2px);
|
|
16
20
|
--focus-ring-style: solid;
|
|
17
|
-
--focus-ring-color:
|
|
21
|
+
--focus-ring-color: var(--smz-layout-focus-outline-color, var(--smz-focus));
|
|
18
22
|
--focus-ring-offset: 2px;
|
|
19
|
-
--focus-ring-shadow: none;
|
|
23
|
+
--focus-ring-shadow: var(--smz-layout-focus-shadow, none);
|
|
20
24
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* @deprecated Variáveis do vocabulário antigo (PrimeNG), mantidas para os layouts legados e para CSS de app que ainda as lê. Use os tokens `--smz-*` do tema. Saem na 22.0. */
|
|
1
2
|
:root {
|
|
2
3
|
--primary-color: rgb(var(--smz-color-primary));
|
|
3
4
|
--primary-contrast-color: rgb(var(--smz-color-on-primary));
|
|
@@ -18,12 +19,13 @@
|
|
|
18
19
|
--focus-ring-offset: 2px;
|
|
19
20
|
--focus-ring-shadow: none;
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
--surface-
|
|
23
|
-
--surface-
|
|
24
|
-
--surface-
|
|
25
|
-
--surface-
|
|
26
|
-
--surface-
|
|
22
|
+
/* Superfícies do vocabulário antigo: seguem o tema e o modo. As escalas `--surface-N` e `--gray-N` abaixo são fixas. */
|
|
23
|
+
--surface-a: rgb(var(--smz-color-surface-1));
|
|
24
|
+
--surface-b: rgb(var(--smz-color-surface-0));
|
|
25
|
+
--surface-c: rgb(var(--smz-color-surface-3));
|
|
26
|
+
--surface-d: rgb(var(--smz-color-line));
|
|
27
|
+
--surface-e: rgb(var(--smz-color-surface-2));
|
|
28
|
+
--surface-f: rgb(var(--smz-color-surface-2));
|
|
27
29
|
--primary-color-text: rgb(var(--smz-color-on-primary));
|
|
28
30
|
--surface-0: #ffffff;
|
|
29
31
|
--surface-50: #f8fafc;
|
|
@@ -49,7 +51,7 @@
|
|
|
49
51
|
--content-padding: 1.25rem;
|
|
50
52
|
--inline-spacing: 0.5rem;
|
|
51
53
|
--border-radius: 6px;
|
|
52
|
-
--surface-ground:
|
|
53
|
-
--surface-section:
|
|
54
|
+
--surface-ground: rgb(var(--smz-color-surface-0));
|
|
55
|
+
--surface-section: rgb(var(--smz-color-surface-1));
|
|
54
56
|
--focus-ring: 0 0 0 var(--focus-ring-width) var(--focus-ring-color);
|
|
55
57
|
}
|