@net7/components 3.1.1 → 3.4.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/esm2020/lib/components/footer/footer.mjs +5 -4
- package/esm2020/lib/components/footer/footer.mock.mjs +11 -1
- package/esm2020/lib/components/header/header.mjs +5 -4
- package/esm2020/lib/components/header/header.mock.mjs +11 -1
- package/esm2020/lib/components/item-preview/item-preview.mock.mjs +2 -2
- package/esm2020/lib/components/text-viewer/text-viewer.mjs +13 -3
- package/esm2020/lib/components/text-viewer/text-viewer.mock.mjs +30 -26
- package/fesm2015/net7-components.mjs +85 -51
- package/fesm2015/net7-components.mjs.map +1 -1
- package/fesm2020/net7-components.mjs +85 -51
- package/fesm2020/net7-components.mjs.map +1 -1
- package/lib/components/footer/footer.d.ts +5 -0
- package/lib/components/header/header.d.ts +6 -0
- package/lib/components/text-viewer/text-viewer.d.ts +3 -0
- package/package.json +1 -1
- package/src/lib/styles/components/_footer.scss +39 -10
- package/src/lib/styles/components/_header.scss +33 -13
- package/src/lib/styles/components/_item-preview.scss +38 -17
- package/src/lib/styles/components/_text-viewer.scss +7 -1
- package/src/lib/styles/generic/_variables.scss +20 -51
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputSelectData } from '../input-select/input-select';
|
|
1
2
|
import { Anchor } from '../../shared-interfaces';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
@@ -75,6 +76,10 @@ export interface FooterColumn {
|
|
|
75
76
|
* column's images
|
|
76
77
|
*/
|
|
77
78
|
images?: FooterImage[];
|
|
79
|
+
/**
|
|
80
|
+
* HTMLSelect with some options
|
|
81
|
+
*/
|
|
82
|
+
selects?: InputSelectData[];
|
|
78
83
|
/**
|
|
79
84
|
* column's text
|
|
80
85
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputSelectData } from '../input-select/input-select';
|
|
1
2
|
import { Anchor } from '../../shared-interfaces';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
@@ -202,6 +203,11 @@ export interface HeaderData {
|
|
|
202
203
|
* buttons items
|
|
203
204
|
*/
|
|
204
205
|
buttons?: ButtonItem[];
|
|
206
|
+
/**
|
|
207
|
+
* Select elements with some options
|
|
208
|
+
* useful for the header's language selector
|
|
209
|
+
*/
|
|
210
|
+
selects?: InputSelectData[];
|
|
205
211
|
/**
|
|
206
212
|
* user parameters
|
|
207
213
|
*/
|
|
@@ -15,6 +15,7 @@ export interface TextViewerData {
|
|
|
15
15
|
view: string;
|
|
16
16
|
channel?: string;
|
|
17
17
|
translation?: boolean;
|
|
18
|
+
download?: string;
|
|
18
19
|
}[];
|
|
19
20
|
facsimile?: any;
|
|
20
21
|
/**
|
|
@@ -27,6 +28,8 @@ export declare class TextViewerComponent implements OnInit {
|
|
|
27
28
|
emit: any;
|
|
28
29
|
static _loaded: boolean;
|
|
29
30
|
ngOnInit(): void;
|
|
31
|
+
isDisplayed: boolean;
|
|
32
|
+
displayIndex(): void;
|
|
30
33
|
onScriptLoaded(): void;
|
|
31
34
|
onClick(payload: any): void;
|
|
32
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextViewerComponent, never>;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
max-width: $page-max-width;
|
|
16
16
|
margin-right: auto;
|
|
17
17
|
margin-left: auto;
|
|
18
|
-
padding: $space*
|
|
18
|
+
padding: $space * 4 0 $space * 2 0;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&__column {
|
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
&__column-nav {
|
|
35
|
+
margin-bottom: $space * 2;
|
|
36
|
+
}
|
|
37
|
+
|
|
34
38
|
&__column-nav-list {
|
|
35
39
|
padding-left: 0;
|
|
36
40
|
list-style: none;
|
|
@@ -41,27 +45,55 @@
|
|
|
41
45
|
margin-bottom: calc($space/2);
|
|
42
46
|
}
|
|
43
47
|
|
|
44
|
-
&__column-nav-
|
|
48
|
+
&__column-nav-list {
|
|
49
|
+
margin: 0;
|
|
45
50
|
text-decoration: underline;
|
|
46
51
|
cursor: pointer;
|
|
47
52
|
}
|
|
48
53
|
|
|
49
|
-
&__column-title
|
|
54
|
+
&__column-title {
|
|
55
|
+
margin-bottom: $space;
|
|
56
|
+
font-size: $font-size-s;
|
|
57
|
+
}
|
|
58
|
+
|
|
50
59
|
&__column-text {
|
|
60
|
+
margin-bottom: $space * 2;
|
|
51
61
|
font-size: $font-size-xs;
|
|
52
62
|
}
|
|
53
63
|
|
|
54
64
|
&__column-images {
|
|
55
|
-
|
|
56
|
-
|
|
65
|
+
margin-bottom: $space * 2;
|
|
66
|
+
|
|
57
67
|
img {
|
|
58
68
|
width: auto;
|
|
59
69
|
height: $footer-image-height;
|
|
60
70
|
margin-right: calc($space/2);
|
|
61
71
|
}
|
|
62
72
|
}
|
|
63
|
-
}
|
|
64
73
|
|
|
74
|
+
/* Select */
|
|
75
|
+
&__column-selects {
|
|
76
|
+
margin-bottom: $space * 2;
|
|
77
|
+
|
|
78
|
+
> * {
|
|
79
|
+
display: block;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
> *:not(:last-child) {
|
|
83
|
+
margin-bottom: $space;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
label {
|
|
87
|
+
display: block;
|
|
88
|
+
margin-bottom: $space * 0.5;
|
|
89
|
+
font-size: $font-size-s;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.n7-facet__input-select {
|
|
93
|
+
font-size: $font-size-s;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
65
97
|
|
|
66
98
|
/* ------------------------------------ *\
|
|
67
99
|
#MEDIA-QUERIES
|
|
@@ -69,7 +101,6 @@
|
|
|
69
101
|
@media all and (max-width: $footer-breakpoint-desktop) {
|
|
70
102
|
.n7-footer {
|
|
71
103
|
&__column {
|
|
72
|
-
|
|
73
104
|
&:first-of-type {
|
|
74
105
|
padding-left: calc($grid-gutter-h/2);
|
|
75
106
|
}
|
|
@@ -85,7 +116,6 @@
|
|
|
85
116
|
}
|
|
86
117
|
|
|
87
118
|
@media all and (max-width: $footer-breakpoint-mobile) {
|
|
88
|
-
|
|
89
119
|
.n7-footer {
|
|
90
120
|
&__content {
|
|
91
121
|
flex-flow: column nowrap;
|
|
@@ -93,7 +123,7 @@
|
|
|
93
123
|
|
|
94
124
|
&__column {
|
|
95
125
|
padding-bottom: calc($grid-gutter-h/2);
|
|
96
|
-
|
|
126
|
+
|
|
97
127
|
&:last-of-type {
|
|
98
128
|
padding-bottom: 0;
|
|
99
129
|
}
|
|
@@ -108,7 +138,6 @@
|
|
|
108
138
|
margin-top: 0;
|
|
109
139
|
}
|
|
110
140
|
}
|
|
111
|
-
|
|
112
141
|
}
|
|
113
142
|
|
|
114
143
|
/* Retina */
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
|
|
137
137
|
&__subnav-link {
|
|
138
138
|
display: block;
|
|
139
|
-
padding: $space*1.5;
|
|
139
|
+
padding: $space * 1.5;
|
|
140
140
|
border-bottom: 1px solid $color-border-light;
|
|
141
141
|
color: $color-text;
|
|
142
142
|
}
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
justify-content: flex-end;
|
|
159
159
|
height: 100%;
|
|
160
160
|
margin-left: auto;
|
|
161
|
-
padding: 0 0 0 $space*2;
|
|
161
|
+
padding: 0 0 0 $space * 2;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
/* Search */
|
|
@@ -235,6 +235,31 @@
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
+
/* Selects */
|
|
239
|
+
&__selects {
|
|
240
|
+
margin-left: $space;
|
|
241
|
+
flex-shrink: 0;
|
|
242
|
+
|
|
243
|
+
> *:not(:last-child) {
|
|
244
|
+
margin-right: $space;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.n7-input-select {
|
|
248
|
+
margin: 0;
|
|
249
|
+
|
|
250
|
+
label {
|
|
251
|
+
margin-right: $space * 0.5;
|
|
252
|
+
color: $color-text;
|
|
253
|
+
font-size: $font-size-s;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.n7-facet__input-select {
|
|
258
|
+
height: $button-normal-height;
|
|
259
|
+
font-size: $font-size-s;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
238
263
|
/* Buttons */
|
|
239
264
|
&__buttons {
|
|
240
265
|
flex-shrink: 0;
|
|
@@ -306,8 +331,8 @@
|
|
|
306
331
|
z-index: 2;
|
|
307
332
|
width: 30px;
|
|
308
333
|
height: 30px;
|
|
309
|
-
top: $space*3;
|
|
310
|
-
right: $space*3;
|
|
334
|
+
top: $space * 3;
|
|
335
|
+
right: $space * 3;
|
|
311
336
|
font-size: $font-size-xl;
|
|
312
337
|
color: $color-text;
|
|
313
338
|
cursor: pointer;
|
|
@@ -318,12 +343,10 @@
|
|
|
318
343
|
}
|
|
319
344
|
}
|
|
320
345
|
|
|
321
|
-
|
|
322
346
|
/* ------------------------------------ *\
|
|
323
347
|
#MEDIA-QUERIES
|
|
324
348
|
\* ------------------------------------ */
|
|
325
349
|
@media all and (max-width: $header-breakpoint-mobile) {
|
|
326
|
-
|
|
327
350
|
.n7-header {
|
|
328
351
|
&__nav-content {
|
|
329
352
|
display: none;
|
|
@@ -382,7 +405,7 @@
|
|
|
382
405
|
&__nav-item {
|
|
383
406
|
display: block;
|
|
384
407
|
height: auto;
|
|
385
|
-
padding: $space*2 0;
|
|
408
|
+
padding: $space * 2 0;
|
|
386
409
|
}
|
|
387
410
|
|
|
388
411
|
&__nav-link {
|
|
@@ -404,7 +427,7 @@
|
|
|
404
427
|
display: block;
|
|
405
428
|
position: relative;
|
|
406
429
|
left: auto;
|
|
407
|
-
margin-top: $space*2;
|
|
430
|
+
margin-top: $space * 2;
|
|
408
431
|
background-color: transparent;
|
|
409
432
|
text-align: center;
|
|
410
433
|
}
|
|
@@ -419,7 +442,7 @@
|
|
|
419
442
|
|
|
420
443
|
&__subnav-link {
|
|
421
444
|
border-bottom: 0;
|
|
422
|
-
padding: $space*2;
|
|
445
|
+
padding: $space * 2;
|
|
423
446
|
}
|
|
424
447
|
|
|
425
448
|
&__subnav-icon {
|
|
@@ -430,11 +453,9 @@
|
|
|
430
453
|
font-size: $font-size-l;
|
|
431
454
|
}
|
|
432
455
|
}
|
|
433
|
-
|
|
434
456
|
}
|
|
435
457
|
|
|
436
458
|
@media all and (max-width: $header-breakpoint-mobile-small) {
|
|
437
|
-
|
|
438
459
|
.n7-header {
|
|
439
460
|
height: $header-height-mobile;
|
|
440
461
|
|
|
@@ -470,5 +491,4 @@
|
|
|
470
491
|
height: $header-height-mobile;
|
|
471
492
|
}
|
|
472
493
|
}
|
|
473
|
-
|
|
474
|
-
}
|
|
494
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Component used to preview any kind of element with image, title, text, metadata and icons.
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
/* ------------------------------------ *\
|
|
8
8
|
#ITEM-PREVIEW
|
|
9
9
|
\* ------------------------------------ */
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
cursor: default;
|
|
14
14
|
position: relative;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
&__title {
|
|
18
18
|
margin-bottom: $space;
|
|
19
19
|
font-family: $font-family-headings;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
font-weight: $font-weight-normal;
|
|
30
30
|
color: $color-text;
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
/* Metadata */
|
|
34
34
|
&__metadata-group {
|
|
35
35
|
margin-bottom: $space;
|
|
@@ -69,7 +69,6 @@
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
|
|
73
72
|
/* ------------------------------------ *\
|
|
74
73
|
#HAS-IMAGE, #HAS-COLOR
|
|
75
74
|
\* ------------------------------------ */
|
|
@@ -79,10 +78,11 @@
|
|
|
79
78
|
display: flex;
|
|
80
79
|
}
|
|
81
80
|
|
|
82
|
-
.n7-item-preview__image {
|
|
81
|
+
.n7-item-preview__image {
|
|
82
|
+
/* Color background here */
|
|
83
83
|
width: $item-preview-image-width;
|
|
84
84
|
height: $item-preview-image-height;
|
|
85
|
-
margin-right: $space*1.5;
|
|
85
|
+
margin-right: $space * 1.5;
|
|
86
86
|
background-repeat: no-repeat;
|
|
87
87
|
background-size: cover;
|
|
88
88
|
background-position: center center;
|
|
@@ -93,7 +93,6 @@
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
|
|
97
96
|
/* ------------------------------------ *\
|
|
98
97
|
#IS-VERTICAL
|
|
99
98
|
\* ------------------------------------ */
|
|
@@ -102,8 +101,9 @@
|
|
|
102
101
|
.n7-item-preview__inner {
|
|
103
102
|
display: block;
|
|
104
103
|
}
|
|
105
|
-
|
|
106
|
-
.n7-item-preview__image {
|
|
104
|
+
|
|
105
|
+
.n7-item-preview__image {
|
|
106
|
+
/* Color background here */
|
|
107
107
|
width: 100%;
|
|
108
108
|
height: $item-preview-vertical-image-height;
|
|
109
109
|
margin-bottom: $space;
|
|
@@ -113,6 +113,26 @@
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
/* ------------------------------------ *\
|
|
117
|
+
#IS-FRONTPAGE
|
|
118
|
+
\* ------------------------------------ */
|
|
119
|
+
.n7-item-preview.is-frontpage.has-image,
|
|
120
|
+
.n7-item-preview.is-frontpage.has-color {
|
|
121
|
+
.n7-item-preview__inner {
|
|
122
|
+
display: block;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.n7-item-preview__image {
|
|
126
|
+
/* Color background here */
|
|
127
|
+
width: 100%;
|
|
128
|
+
height: auto;
|
|
129
|
+
aspect-ratio: $item-preview-frontpage-aspect-ratio;
|
|
130
|
+
margin-bottom: $space;
|
|
131
|
+
margin-right: 0;
|
|
132
|
+
background-repeat: no-repeat;
|
|
133
|
+
background-size: cover;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
116
136
|
|
|
117
137
|
/* ------------------------------------ *\
|
|
118
138
|
#IS-OVERLAY
|
|
@@ -123,8 +143,9 @@
|
|
|
123
143
|
display: block;
|
|
124
144
|
height: $item-preview-height;
|
|
125
145
|
}
|
|
126
|
-
|
|
127
|
-
.n7-item-preview__image {
|
|
146
|
+
|
|
147
|
+
.n7-item-preview__image {
|
|
148
|
+
/* Color background here */
|
|
128
149
|
position: absolute;
|
|
129
150
|
top: 0;
|
|
130
151
|
bottom: 0;
|
|
@@ -147,9 +168,9 @@
|
|
|
147
168
|
flex-direction: column;
|
|
148
169
|
align-items: center;
|
|
149
170
|
justify-content: center;
|
|
150
|
-
padding: $space*2;
|
|
171
|
+
padding: $space * 2;
|
|
151
172
|
}
|
|
152
|
-
|
|
173
|
+
|
|
153
174
|
.n7-item-preview__title,
|
|
154
175
|
.n7-item-preview__text,
|
|
155
176
|
.n7-item-preview__metadata-group-title {
|
|
@@ -170,7 +191,8 @@
|
|
|
170
191
|
|
|
171
192
|
/* Dark overlay behind the text only with image (not with color bg only) */
|
|
172
193
|
.n7-item-preview.is-overlay.has-image {
|
|
173
|
-
.n7-item-preview__image {
|
|
194
|
+
.n7-item-preview__image {
|
|
195
|
+
/* Color background here */
|
|
174
196
|
&:after {
|
|
175
197
|
content: " ";
|
|
176
198
|
position: absolute;
|
|
@@ -179,12 +201,11 @@
|
|
|
179
201
|
bottom: 0;
|
|
180
202
|
left: 0;
|
|
181
203
|
right: 0;
|
|
182
|
-
background-color: rgba(0,0,0,0.5);
|
|
204
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
183
205
|
}
|
|
184
206
|
}
|
|
185
207
|
}
|
|
186
208
|
|
|
187
|
-
|
|
188
209
|
/* ------------------------------------ *\
|
|
189
210
|
#HOVER
|
|
190
211
|
\* ------------------------------------ */
|
|
@@ -215,4 +236,4 @@
|
|
|
215
236
|
|
|
216
237
|
/* Retina */
|
|
217
238
|
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
218
|
-
}
|
|
239
|
+
}
|
|
@@ -55,6 +55,12 @@
|
|
|
55
55
|
font: var(--pb-base-font);
|
|
56
56
|
color: var(--pb-color-primary);
|
|
57
57
|
margin: 0;
|
|
58
|
+
|
|
59
|
+
main {
|
|
60
|
+
pb-view {
|
|
61
|
+
font-size: 16px;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
*:focus {
|
|
@@ -358,7 +364,7 @@
|
|
|
358
364
|
}
|
|
359
365
|
|
|
360
366
|
main {
|
|
361
|
-
height: 70vh;
|
|
367
|
+
height: 70vh; //70vh
|
|
362
368
|
overflow: auto;
|
|
363
369
|
display: flex;
|
|
364
370
|
justify-content: space-between;
|