@ngx-smz/layout 19.2.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 +63 -0
- package/fesm2022/ngx-smz-layout.mjs +1641 -0
- package/fesm2022/ngx-smz-layout.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/config/config.d.ts +23 -0
- package/lib/config/index.d.ts +2 -0
- package/lib/config/provide.d.ts +4 -0
- package/lib/errors/access.d.ts +6 -0
- package/lib/errors/error.d.ts +6 -0
- package/lib/errors/errors-pages-service.d.ts +41 -0
- package/lib/errors/errors.routes.d.ts +2 -0
- package/lib/errors/notfound.d.ts +6 -0
- package/lib/layout/component/app.configurator.d.ts +97 -0
- package/lib/layout/component/app.floatingconfigurator.d.ts +9 -0
- package/lib/layout/component/app.footer.d.ts +21 -0
- package/lib/layout/component/app.layout.d.ts +31 -0
- package/lib/layout/component/app.menu.d.ts +8 -0
- package/lib/layout/component/app.menuitem.d.ts +26 -0
- package/lib/layout/component/app.sidebar.d.ts +8 -0
- package/lib/layout/component/app.topbar.d.ts +41 -0
- package/lib/layout/service/layout.service.d.ts +54 -0
- package/lib/shared/component-injector/directives/component-injector.directive.d.ts +20 -0
- package/lib/shared/component-injector/interfaces/inject-content.d.ts +8 -0
- package/lib/shared/component-injector/interfaces/injectable.d.ts +35 -0
- package/lib/shared/component-injector/services/inject-component.service.d.ts +12 -0
- package/package.json +26 -0
- package/public-api.d.ts +12 -0
- package/resources/layout/_core.scss +24 -0
- package/resources/layout/_footer.scss +8 -0
- package/resources/layout/_main.scss +13 -0
- package/resources/layout/_menu.scss +160 -0
- package/resources/layout/_mixins.scss +15 -0
- package/resources/layout/_preloading.scss +47 -0
- package/resources/layout/_responsive.scss +110 -0
- package/resources/layout/_topbar.scss +164 -0
- package/resources/layout/_typography.scss +68 -0
- package/resources/layout/_utils.scss +25 -0
- package/resources/layout/layout.scss +13 -0
- package/resources/layout/variables/_common.scss +20 -0
- package/resources/layout/variables/_dark.scss +5 -0
- package/resources/layout/variables/_light.scss +5 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
@use 'mixins' as *;
|
|
2
|
+
|
|
3
|
+
.layout-topbar {
|
|
4
|
+
position: fixed;
|
|
5
|
+
height: 4rem;
|
|
6
|
+
z-index: 997;
|
|
7
|
+
left: 0;
|
|
8
|
+
top: 0;
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: 0 2rem;
|
|
11
|
+
background-color: var(--surface-card);
|
|
12
|
+
transition: left var(--layout-section-transition-duration);
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
|
|
16
|
+
.layout-topbar-logo-container {
|
|
17
|
+
width: 20rem;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.layout-topbar-logo {
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
font-size: 1.5rem;
|
|
26
|
+
border-radius: var(--content-border-radius);
|
|
27
|
+
color: var(--text-color);
|
|
28
|
+
font-weight: 500;
|
|
29
|
+
gap: 0.5rem;
|
|
30
|
+
|
|
31
|
+
svg {
|
|
32
|
+
width: 3rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:focus-visible {
|
|
36
|
+
@include focused();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.layout-topbar-action {
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
align-items: center;
|
|
44
|
+
color: var(--text-color-secondary);
|
|
45
|
+
border-radius: 50%;
|
|
46
|
+
width: 2.5rem;
|
|
47
|
+
height: 2.5rem;
|
|
48
|
+
color: var(--text-color);
|
|
49
|
+
transition: background-color var(--element-transition-duration);
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
|
|
52
|
+
&:hover {
|
|
53
|
+
background-color: var(--surface-hover);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:focus-visible {
|
|
57
|
+
@include focused();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
i {
|
|
61
|
+
font-size: 1.25rem;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
span {
|
|
65
|
+
font-size: 1rem;
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.layout-topbar-action-highlight {
|
|
70
|
+
background-color: var(--primary-color);
|
|
71
|
+
color: var(--primary-contrast-color);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.layout-menu-button {
|
|
76
|
+
margin-right: 0.5rem;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.layout-topbar-menu-button {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.layout-topbar-actions {
|
|
84
|
+
margin-left: auto;
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
gap: 1rem;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.layout-topbar-menu-content {
|
|
91
|
+
display: flex;
|
|
92
|
+
gap: 1rem;
|
|
93
|
+
align-items: center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.layout-config-menu {
|
|
97
|
+
display: flex;
|
|
98
|
+
gap: 0.5rem;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@media (max-width: 991px) {
|
|
103
|
+
.layout-topbar {
|
|
104
|
+
padding: 0 2rem;
|
|
105
|
+
|
|
106
|
+
.layout-topbar-logo-container {
|
|
107
|
+
width: auto;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.layout-menu-button {
|
|
111
|
+
margin-left: 0;
|
|
112
|
+
margin-right: 0.5rem;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.layout-topbar-menu-button {
|
|
116
|
+
display: inline-flex;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.layout-topbar-menu {
|
|
120
|
+
position: absolute;
|
|
121
|
+
background-color: var(--surface-overlay);
|
|
122
|
+
transform-origin: top;
|
|
123
|
+
box-shadow:
|
|
124
|
+
0px 3px 5px rgba(0, 0, 0, 0.02),
|
|
125
|
+
0px 0px 2px rgba(0, 0, 0, 0.05),
|
|
126
|
+
0px 1px 4px rgba(0, 0, 0, 0.08);
|
|
127
|
+
border-radius: var(--content-border-radius);
|
|
128
|
+
padding: 1rem;
|
|
129
|
+
right: 2rem;
|
|
130
|
+
top: 4rem;
|
|
131
|
+
min-width: 15rem;
|
|
132
|
+
border: 1px solid var(--surface-border);
|
|
133
|
+
|
|
134
|
+
.layout-topbar-menu-content {
|
|
135
|
+
gap: 0.5rem;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.layout-topbar-action {
|
|
139
|
+
display: flex;
|
|
140
|
+
width: 100%;
|
|
141
|
+
height: auto;
|
|
142
|
+
justify-content: flex-start;
|
|
143
|
+
border-radius: var(--content-border-radius);
|
|
144
|
+
padding: 0.5rem 1rem;
|
|
145
|
+
margin-top: auto;
|
|
146
|
+
margin-bottom: auto;
|
|
147
|
+
|
|
148
|
+
i {
|
|
149
|
+
font-size: 1rem;
|
|
150
|
+
margin-right: 0.5rem;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
span {
|
|
154
|
+
font-weight: medium;
|
|
155
|
+
display: block;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.layout-topbar-menu-content {
|
|
161
|
+
flex-direction: column;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
h1,
|
|
2
|
+
h2,
|
|
3
|
+
h3,
|
|
4
|
+
h4,
|
|
5
|
+
h5,
|
|
6
|
+
h6 {
|
|
7
|
+
margin: 1.5rem 0 1rem 0;
|
|
8
|
+
font-family: inherit;
|
|
9
|
+
font-weight: 700;
|
|
10
|
+
line-height: 1.5;
|
|
11
|
+
color: var(--text-color);
|
|
12
|
+
|
|
13
|
+
&:first-child {
|
|
14
|
+
margin-top: 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
h1 {
|
|
19
|
+
font-size: 2.5rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
h2 {
|
|
23
|
+
font-size: 2rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
h3 {
|
|
27
|
+
font-size: 1.75rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
h4 {
|
|
31
|
+
font-size: 1.5rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
h5 {
|
|
35
|
+
font-size: 1.25rem;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
h6 {
|
|
39
|
+
font-size: 1rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
mark {
|
|
43
|
+
background: #fff8e1;
|
|
44
|
+
padding: 0.25rem 0.4rem;
|
|
45
|
+
border-radius: var(--content-border-radius);
|
|
46
|
+
font-family: monospace;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
blockquote {
|
|
50
|
+
margin: 1rem 0;
|
|
51
|
+
padding: 0 2rem;
|
|
52
|
+
border-left: 4px solid #90a4ae;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
hr {
|
|
56
|
+
border-top: solid var(--surface-border);
|
|
57
|
+
border-width: 1px 0 0 0;
|
|
58
|
+
margin: 1rem 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
p {
|
|
62
|
+
margin: 0 0 1rem 0;
|
|
63
|
+
line-height: 1.5;
|
|
64
|
+
|
|
65
|
+
&:last-child {
|
|
66
|
+
margin-bottom: 0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* Utils */
|
|
2
|
+
.clearfix:after {
|
|
3
|
+
content: ' ';
|
|
4
|
+
display: block;
|
|
5
|
+
clear: both;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.card {
|
|
9
|
+
background: var(--surface-card);
|
|
10
|
+
padding: 2rem;
|
|
11
|
+
margin-bottom: 2rem;
|
|
12
|
+
border-radius: var(--content-border-radius);
|
|
13
|
+
|
|
14
|
+
&:last-child {
|
|
15
|
+
margin-bottom: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.p-toast {
|
|
20
|
+
&.p-toast-top-right,
|
|
21
|
+
&.p-toast-top-left,
|
|
22
|
+
&.p-toast-top-center {
|
|
23
|
+
top: 100px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@use './variables/_common';
|
|
2
|
+
@use './variables/_light';
|
|
3
|
+
@use './variables/_dark';
|
|
4
|
+
@use './_mixins';
|
|
5
|
+
@use './_preloading';
|
|
6
|
+
@use './_core';
|
|
7
|
+
@use './_main';
|
|
8
|
+
@use './_topbar';
|
|
9
|
+
@use './_menu';
|
|
10
|
+
@use './_footer';
|
|
11
|
+
@use './_responsive';
|
|
12
|
+
@use './_utils';
|
|
13
|
+
@use './_typography';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--primary-color: var(--p-primary-color);
|
|
3
|
+
--primary-contrast-color: var(--p-primary-contrast-color);
|
|
4
|
+
--text-color: var(--p-text-color);
|
|
5
|
+
--text-color-secondary: var(--p-text-muted-color);
|
|
6
|
+
--surface-border: var(--p-content-border-color);
|
|
7
|
+
--surface-card: var(--p-content-background);
|
|
8
|
+
--surface-hover: var(--p-content-hover-background);
|
|
9
|
+
--surface-overlay: var(--p-overlay-popover-background);
|
|
10
|
+
--transition-duration: var(--p-transition-duration);
|
|
11
|
+
--maskbg: var(--p-mask-background);
|
|
12
|
+
--content-border-radius: var(--p-content-border-radius);
|
|
13
|
+
--layout-section-transition-duration: 0.2s;
|
|
14
|
+
--element-transition-duration: var(--p-transition-duration);
|
|
15
|
+
--focus-ring-width: var(--p-focus-ring-width);
|
|
16
|
+
--focus-ring-style: var(--p-focus-ring-style);
|
|
17
|
+
--focus-ring-color: var(--p-focus-ring-color);
|
|
18
|
+
--focus-ring-offset: var(--p-focus-ring-offset);
|
|
19
|
+
--focus-ring-shadow: var(--p-focus-ring-shadow);
|
|
20
|
+
}
|