@itcenteratunihelsinki/huds-lib 0.8.68 → 0.8.70
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/components/hy-dropdown.js +147 -46
- package/components/hy-dropdown.js.map +1 -1
- package/components/hy-footer-base.js +10 -4
- package/components/hy-footer-base.js.map +1 -1
- package/components/hy-footer-link-item2.js +1 -1
- package/components/hy-footer-link-item2.js.map +1 -1
- package/components/hy-hero-carousel.js +1 -1
- package/components/hy-hero-carousel.js.map +1 -1
- package/components/hy-video.js +1 -1
- package/components/hy-video.js.map +1 -1
- package/dist/cjs/huds-lib.cjs.js +1 -1
- package/dist/cjs/hy-breadcrumbs_15.cjs.entry.js +10 -5
- package/dist/cjs/hy-breadcrumbs_15.cjs.entry.js.map +1 -1
- package/dist/cjs/hy-dropdown.cjs.entry.js +226 -0
- package/dist/cjs/hy-dropdown.cjs.entry.js.map +1 -0
- package/dist/cjs/hy-hero-carousel.cjs.entry.js +1 -1
- package/dist/cjs/hy-hero-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/hy-video.cjs.entry.js +1 -1
- package/dist/cjs/hy-video.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +5 -9
- package/dist/collection/components/footer/hy-footer-base/hy-footer-base.css +152 -66
- package/dist/collection/components/footer/hy-footer-base/hy-footer-base.js +30 -3
- package/dist/collection/components/footer/hy-footer-base/hy-footer-base.js.map +1 -1
- package/dist/collection/components/footer/hy-footer-link-item/hy-footer-link-item.css +27 -9
- package/dist/collection/components/hy-dropdown/hy-dropdown.css +48 -33
- package/dist/collection/components/hy-dropdown/hy-dropdown.js +232 -35
- package/dist/collection/components/hy-dropdown/hy-dropdown.js.map +1 -1
- package/dist/collection/components/hy-hero-carousel/hy-hero-carousel.css +13 -3
- package/dist/collection/components/hy-video/hy-video.css +1 -14
- package/dist/esm/huds-lib.js +1 -1
- package/dist/esm/hy-breadcrumbs_15.entry.js +10 -5
- package/dist/esm/hy-breadcrumbs_15.entry.js.map +1 -1
- package/dist/esm/hy-dropdown.entry.js +222 -0
- package/dist/esm/hy-dropdown.entry.js.map +1 -0
- package/dist/esm/hy-hero-carousel.entry.js +1 -1
- package/dist/esm/hy-hero-carousel.entry.js.map +1 -1
- package/dist/esm/hy-video.entry.js +1 -1
- package/dist/esm/hy-video.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/huds-lib/huds-lib.esm.js +1 -1
- package/dist/huds-lib/huds-lib.esm.js.map +1 -1
- package/dist/huds-lib/hy-breadcrumbs_15.entry.js +1 -1
- package/dist/huds-lib/hy-breadcrumbs_15.entry.js.map +1 -1
- package/dist/huds-lib/hy-dropdown.entry.js +2 -0
- package/dist/huds-lib/hy-dropdown.entry.js.map +1 -0
- package/dist/huds-lib/hy-hero-carousel.entry.js +1 -1
- package/dist/huds-lib/hy-hero-carousel.entry.js.map +1 -1
- package/dist/huds-lib/hy-video.entry.js +1 -1
- package/dist/huds-lib/hy-video.entry.js.map +1 -1
- package/dist/types/components/footer/hy-footer-base/hy-footer-base.d.ts +10 -0
- package/dist/types/components/hy-dropdown/hy-dropdown.d.ts +17 -3
- package/dist/types/components.d.ts +20 -38
- package/package.json +2 -2
- package/components/hy-dropdown-panel-item.d.ts +0 -11
- package/components/hy-dropdown-panel-item.js +0 -8
- package/components/hy-dropdown-panel-item.js.map +0 -1
- package/components/hy-dropdown-panel.d.ts +0 -11
- package/components/hy-dropdown-panel.js +0 -8
- package/components/hy-dropdown-panel.js.map +0 -1
- package/components/hy-dropdown.panel.item.js +0 -43
- package/components/hy-dropdown.panel.item.js.map +0 -1
- package/components/hy-dropdown.panel.js +0 -31
- package/components/hy-dropdown.panel.js.map +0 -1
- package/dist/cjs/hy-dropdown_3.cjs.entry.js +0 -141
- package/dist/cjs/hy-dropdown_3.cjs.entry.js.map +0 -1
- package/dist/collection/components/hy-dropdown/hy-dropdown.panel.item.js +0 -87
- package/dist/collection/components/hy-dropdown/hy-dropdown.panel.item.js.map +0 -1
- package/dist/collection/components/hy-dropdown/hy-dropdown.panel.js +0 -32
- package/dist/collection/components/hy-dropdown/hy-dropdown.panel.js.map +0 -1
- package/dist/esm/hy-dropdown_3.entry.js +0 -135
- package/dist/esm/hy-dropdown_3.entry.js.map +0 -1
- package/dist/huds-lib/hy-dropdown_3.entry.js +0 -2
- package/dist/huds-lib/hy-dropdown_3.entry.js.map +0 -1
- package/dist/types/components/hy-dropdown/hy-dropdown.panel.d.ts +0 -4
- package/dist/types/components/hy-dropdown/hy-dropdown.panel.item.d.ts +0 -7
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
display: -ms-flexbox;
|
|
70
70
|
display: flex;
|
|
71
71
|
-webkit-box-orient: vertical;
|
|
72
|
-
-webkit-box-direction:
|
|
73
|
-
-ms-flex-direction: column
|
|
74
|
-
flex-direction: column
|
|
72
|
+
-webkit-box-direction: normal;
|
|
73
|
+
-ms-flex-direction: column;
|
|
74
|
+
flex-direction: column;
|
|
75
75
|
max-height: 100%;
|
|
76
|
-
padding: 32px 16px
|
|
76
|
+
padding: 32px 16px 0 16px;
|
|
77
77
|
place-content: center space-between;
|
|
78
78
|
position: relative;
|
|
79
79
|
width: 100%;
|
|
@@ -82,28 +82,27 @@
|
|
|
82
82
|
@media (min-width: 30rem) {
|
|
83
83
|
.hy-footer-base {
|
|
84
84
|
-webkit-box-orient: vertical;
|
|
85
|
-
-webkit-box-direction:
|
|
86
|
-
-ms-flex-direction: column
|
|
87
|
-
flex-direction: column
|
|
85
|
+
-webkit-box-direction: normal;
|
|
86
|
+
-ms-flex-direction: column;
|
|
87
|
+
flex-direction: column;
|
|
88
88
|
margin: 0 auto;
|
|
89
89
|
max-width: 120.0625rem;
|
|
90
|
-
padding: 32px 24px
|
|
90
|
+
padding: 32px 24px 0 24px;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
@media (min-width: 60rem) {
|
|
95
95
|
.hy-footer-base {
|
|
96
|
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
padding: 36px 32px 36px 32px;
|
|
96
|
+
display: grid;
|
|
97
|
+
grid-template-columns: repeat(3, 1fr);
|
|
98
|
+
grid-template-rows: repeat(2, auto);
|
|
99
|
+
padding: 36px 32px 0 32px;
|
|
101
100
|
}
|
|
102
101
|
}
|
|
103
102
|
|
|
104
103
|
@media (min-width: 75.0625rem) {
|
|
105
104
|
.hy-footer-base {
|
|
106
|
-
padding: 40px 32px
|
|
105
|
+
padding: 40px 32px 0 32px;
|
|
107
106
|
}
|
|
108
107
|
}
|
|
109
108
|
|
|
@@ -118,10 +117,13 @@
|
|
|
118
117
|
-webkit-box-direction: normal;
|
|
119
118
|
-ms-flex-direction: column;
|
|
120
119
|
flex-direction: column;
|
|
121
|
-
-webkit-box-pack:
|
|
122
|
-
-ms-flex-pack:
|
|
123
|
-
justify-content:
|
|
120
|
+
-webkit-box-pack: start;
|
|
121
|
+
-ms-flex-pack: start;
|
|
122
|
+
justify-content: flex-start;
|
|
124
123
|
margin-top: 24px;
|
|
124
|
+
-webkit-box-ordinal-group: 3;
|
|
125
|
+
-ms-flex-order: 2;
|
|
126
|
+
order: 2;
|
|
125
127
|
}
|
|
126
128
|
|
|
127
129
|
@media (min-width: 30rem) {
|
|
@@ -135,10 +137,12 @@
|
|
|
135
137
|
|
|
136
138
|
@media (min-width: 60rem) {
|
|
137
139
|
.hy-footer-base__left {
|
|
140
|
+
-webkit-box-ordinal-group: unset;
|
|
141
|
+
-ms-flex-order: unset;
|
|
142
|
+
order: unset;
|
|
138
143
|
-webkit-box-align: start;
|
|
139
144
|
-ms-flex-align: start;
|
|
140
145
|
align-items: flex-start;
|
|
141
|
-
width: 31.11%;
|
|
142
146
|
}
|
|
143
147
|
}
|
|
144
148
|
|
|
@@ -151,12 +155,12 @@
|
|
|
151
155
|
}
|
|
152
156
|
|
|
153
157
|
.hy-footer-base__logo .hy-site-logo__label {
|
|
154
|
-
min-width: -webkit-max-content;
|
|
155
|
-
min-width: -moz-max-content;
|
|
156
|
-
min-width: max-content;
|
|
157
158
|
max-width: -webkit-max-content;
|
|
158
159
|
max-width: -moz-max-content;
|
|
159
160
|
max-width: max-content;
|
|
161
|
+
min-width: -webkit-max-content;
|
|
162
|
+
min-width: -moz-max-content;
|
|
163
|
+
min-width: max-content;
|
|
160
164
|
}
|
|
161
165
|
|
|
162
166
|
.hy-footer-base__content {
|
|
@@ -167,25 +171,25 @@
|
|
|
167
171
|
font-style: normal;
|
|
168
172
|
font-weight: 600;
|
|
169
173
|
letter-spacing: -0.1px;
|
|
170
|
-
margin:
|
|
174
|
+
margin: 22px 0;
|
|
171
175
|
white-space: pre-line;
|
|
172
176
|
}
|
|
173
177
|
|
|
174
178
|
@media (min-width: 30rem) {
|
|
175
179
|
.hy-footer-base__content {
|
|
176
|
-
margin:
|
|
180
|
+
margin: 22px 0;
|
|
177
181
|
}
|
|
178
182
|
}
|
|
179
183
|
|
|
180
184
|
@media (min-width: 60rem) {
|
|
181
185
|
.hy-footer-base__content {
|
|
182
|
-
margin:
|
|
186
|
+
margin: 32px 0;
|
|
183
187
|
}
|
|
184
188
|
}
|
|
185
189
|
|
|
186
190
|
@media (min-width: 75.0625rem) {
|
|
187
191
|
.hy-footer-base__content {
|
|
188
|
-
margin:
|
|
192
|
+
margin: 44px 0;
|
|
189
193
|
}
|
|
190
194
|
}
|
|
191
195
|
|
|
@@ -212,10 +216,16 @@
|
|
|
212
216
|
-webkit-box-pack: center;
|
|
213
217
|
-ms-flex-pack: center;
|
|
214
218
|
justify-content: center;
|
|
215
|
-
margin-bottom:
|
|
219
|
+
margin-bottom: 0;
|
|
216
220
|
z-index: 2;
|
|
217
221
|
}
|
|
218
222
|
|
|
223
|
+
@media (min-width: 48rem) {
|
|
224
|
+
.hy-footer-base__some {
|
|
225
|
+
margin-bottom: 64px;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
219
229
|
@media (min-width: 60rem) {
|
|
220
230
|
.hy-footer-base__some {
|
|
221
231
|
-webkit-box-align: start;
|
|
@@ -295,72 +305,148 @@
|
|
|
295
305
|
display: -webkit-box;
|
|
296
306
|
display: -ms-flexbox;
|
|
297
307
|
display: flex;
|
|
298
|
-
-
|
|
299
|
-
flex-wrap: wrap;
|
|
300
|
-
-webkit-box-orient: horizontal;
|
|
308
|
+
-webkit-box-orient: vertical;
|
|
301
309
|
-webkit-box-direction: normal;
|
|
302
|
-
-ms-flex-direction:
|
|
303
|
-
flex-direction:
|
|
304
|
-
-
|
|
305
|
-
-
|
|
306
|
-
|
|
310
|
+
-ms-flex-direction: column;
|
|
311
|
+
flex-direction: column;
|
|
312
|
+
grid-column: 2/-1;
|
|
313
|
+
-webkit-box-pack: center;
|
|
314
|
+
-ms-flex-pack: center;
|
|
315
|
+
justify-content: center;
|
|
307
316
|
max-height: 100%;
|
|
317
|
+
-webkit-box-ordinal-group: 2;
|
|
318
|
+
-ms-flex-order: 1;
|
|
319
|
+
order: 1;
|
|
320
|
+
width: 100%;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.hy-footer-base__right hy-footer-link-item {
|
|
324
|
+
float: none;
|
|
308
325
|
width: 100%;
|
|
309
326
|
}
|
|
310
327
|
|
|
311
328
|
@media (min-width: 30rem) {
|
|
312
329
|
.hy-footer-base__right {
|
|
313
330
|
margin-bottom: 32px;
|
|
314
|
-
|
|
315
|
-
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
@media (min-width: 48rem) {
|
|
335
|
+
.hy-footer-base__right {
|
|
336
|
+
display: block;
|
|
337
|
+
-webkit-box-pack: start;
|
|
338
|
+
-ms-flex-pack: start;
|
|
339
|
+
justify-content: flex-start;
|
|
340
|
+
}
|
|
341
|
+
.hy-footer-base__right hy-footer-link-item {
|
|
342
|
+
clear: right;
|
|
343
|
+
float: left;
|
|
344
|
+
height: -webkit-max-content;
|
|
345
|
+
height: -moz-max-content;
|
|
346
|
+
height: max-content;
|
|
347
|
+
width: 50%;
|
|
348
|
+
margin-bottom: 1.5rem;
|
|
316
349
|
}
|
|
317
350
|
}
|
|
318
351
|
|
|
319
352
|
@media (min-width: 60rem) {
|
|
320
353
|
.hy-footer-base__right {
|
|
321
|
-
|
|
322
|
-
|
|
354
|
+
-webkit-box-ordinal-group: unset;
|
|
355
|
+
-ms-flex-order: unset;
|
|
356
|
+
order: unset;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.hy-footer-base__bottom {
|
|
361
|
+
border-top: 1px solid var(--grayscale-white);
|
|
362
|
+
display: -webkit-box;
|
|
363
|
+
display: -ms-flexbox;
|
|
364
|
+
display: flex;
|
|
365
|
+
-webkit-box-orient: vertical;
|
|
366
|
+
-webkit-box-direction: normal;
|
|
367
|
+
-ms-flex-direction: column;
|
|
368
|
+
flex-direction: column;
|
|
369
|
+
grid-column: 1/-1;
|
|
370
|
+
-webkit-box-pack: center;
|
|
371
|
+
-ms-flex-pack: center;
|
|
372
|
+
justify-content: center;
|
|
373
|
+
margin: 2.5rem 0 1rem;
|
|
374
|
+
-webkit-box-ordinal-group: 4;
|
|
375
|
+
-ms-flex-order: 3;
|
|
376
|
+
order: 3;
|
|
377
|
+
padding-top: 2.5rem;
|
|
378
|
+
width: 100%;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
@media (min-width: 48rem) {
|
|
382
|
+
.hy-footer-base__bottom {
|
|
383
|
+
-webkit-box-orient: horizontal;
|
|
384
|
+
-webkit-box-direction: normal;
|
|
385
|
+
-ms-flex-direction: row;
|
|
386
|
+
flex-direction: row;
|
|
387
|
+
-webkit-box-pack: justify;
|
|
388
|
+
-ms-flex-pack: justify;
|
|
389
|
+
justify-content: space-between;
|
|
390
|
+
padding-top: 1rem;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.hy-footer-base__bottom__links {
|
|
395
|
+
-webkit-box-align: start;
|
|
396
|
+
-ms-flex-align: start;
|
|
397
|
+
align-items: flex-start;
|
|
398
|
+
display: -webkit-box;
|
|
399
|
+
display: -ms-flexbox;
|
|
400
|
+
display: flex;
|
|
401
|
+
-ms-flex-wrap: wrap;
|
|
402
|
+
flex-wrap: wrap;
|
|
403
|
+
gap: 1.25rem;
|
|
404
|
+
-webkit-box-pack: center;
|
|
405
|
+
-ms-flex-pack: center;
|
|
406
|
+
justify-content: center;
|
|
407
|
+
padding: 0 1rem 1rem;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
@media (min-width: 48rem) {
|
|
411
|
+
.hy-footer-base__bottom__links {
|
|
412
|
+
padding: 0;
|
|
413
|
+
gap: 2rem;
|
|
323
414
|
}
|
|
324
415
|
}
|
|
325
416
|
|
|
417
|
+
.hy-footer-base__bottom__link {
|
|
418
|
+
color: var(--grayscale-white);
|
|
419
|
+
font-family: var(--main-font-family);
|
|
420
|
+
font-size: 14px;
|
|
421
|
+
font-weight: 600;
|
|
422
|
+
letter-spacing: -0.1;
|
|
423
|
+
line-height: 19.07px;
|
|
424
|
+
text-align: right;
|
|
425
|
+
text-decoration: underline;
|
|
426
|
+
text-decoration-thickness: auto;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.hy-footer-base__bottom__link:hover, .hy-footer-base__bottom__link:focus-within {
|
|
430
|
+
text-decoration-thickness: 2px;
|
|
431
|
+
}
|
|
432
|
+
|
|
326
433
|
.hy-footer-base__copy {
|
|
327
434
|
font-size: 1rem;
|
|
328
435
|
line-height: 24px;
|
|
329
|
-
|
|
436
|
+
-ms-flex-item-align: center;
|
|
437
|
+
align-self: center;
|
|
330
438
|
color: var(--grayscale-white);
|
|
331
|
-
display:
|
|
439
|
+
display: block;
|
|
332
440
|
font-family: var(--main-font-family);
|
|
333
441
|
font-weight: 600;
|
|
334
442
|
letter-spacing: -0.1px;
|
|
335
|
-
position: absolute;
|
|
336
|
-
right: 50%;
|
|
337
443
|
text-align: center;
|
|
338
|
-
-webkit-transform: translateX(50%);
|
|
339
|
-
transform: translateX(50%);
|
|
340
|
-
width: 100%;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
@media (min-width: 30rem) {
|
|
344
|
-
.hy-footer-base__copy {
|
|
345
|
-
bottom: 32px;
|
|
346
|
-
right: 50%;
|
|
347
|
-
-webkit-transform: translateX(50%);
|
|
348
|
-
transform: translateX(50%);
|
|
349
|
-
}
|
|
350
444
|
}
|
|
351
445
|
|
|
352
|
-
@media (min-width:
|
|
353
|
-
.hy-footer-base__copy {
|
|
354
|
-
bottom: 36px;
|
|
355
|
-
right: 32px;
|
|
356
|
-
text-align: right;
|
|
357
|
-
-webkit-transform: none;
|
|
358
|
-
transform: none;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
@media (min-width: 75.0625rem) {
|
|
446
|
+
@media (min-width: 48rem) {
|
|
363
447
|
.hy-footer-base__copy {
|
|
364
|
-
|
|
448
|
+
-ms-flex-item-align: end;
|
|
449
|
+
align-self: flex-end;
|
|
450
|
+
margin-left: 0.5rem;
|
|
365
451
|
}
|
|
366
452
|
}
|
|
@@ -10,24 +10,29 @@ export class HyFooterBase {
|
|
|
10
10
|
this.someLabel = undefined;
|
|
11
11
|
this.copyrightText = undefined;
|
|
12
12
|
this.dataFooterBaseLinks = undefined;
|
|
13
|
+
this.dataFooterPostSectionLinks = undefined;
|
|
13
14
|
this.dataFooterBaseSome = undefined;
|
|
14
15
|
}
|
|
15
16
|
async componentWillLoad() {
|
|
16
17
|
this._dataFooterBaseLinks = await jsonParserWorker(this.dataFooterBaseLinks);
|
|
17
18
|
this._dataFooterBaseSome = await jsonParserWorker(this.dataFooterBaseSome);
|
|
19
|
+
this._dataFooterPostSectionLinks = await jsonParserWorker(this.dataFooterPostSectionLinks);
|
|
18
20
|
}
|
|
19
21
|
render() {
|
|
20
22
|
const logoColor = ColorVariant.white;
|
|
21
23
|
const classAttributes = ["hy-footer-base--content-container"].join(" ");
|
|
22
24
|
const links = this._dataFooterBaseLinks;
|
|
25
|
+
const postSectionLinks = this._dataFooterPostSectionLinks;
|
|
23
26
|
const some = this._dataFooterBaseSome;
|
|
24
|
-
return (h(Host, { class: classAttributes }, h("div", { class: "hy-footer-base" }, h("div", { class: "hy-footer-base__left" }, h("div", { class: "hy-footer-base__logo" }, h("hy-site-logo", { type: FooterVariant.footer, color: logoColor, url: this.logoUrl, label: this.logoLabel })), h("div", { class: "hy-footer-base__content" }, h("slot", { name: "content" })), h("div", { class: "hy-footer-base__some" }, h("
|
|
27
|
+
return (h(Host, { class: classAttributes }, h("div", { class: "hy-footer-base" }, h("div", { class: "hy-footer-base__left" }, h("div", { class: "hy-footer-base__logo" }, h("hy-site-logo", { type: FooterVariant.footer, color: logoColor, url: this.logoUrl, label: this.logoLabel })), h("div", { class: "hy-footer-base__content" }, h("slot", { name: "content" })), h("div", { class: "hy-footer-base__some" }, h("div", { class: "hy-footer-base__some__items" }, some &&
|
|
25
28
|
some.map((s) => {
|
|
26
29
|
return (h("a", { "aria-label": s.label, href: s.url, class: `hy-footer-base__some__item`, title: s.label, target: "_blank" }, h("hy-icon", { icon: `hy-icon-some-${s.type}`, size: 36 })));
|
|
27
30
|
})))), h("div", { class: "hy-footer-base__right" }, links &&
|
|
28
31
|
links.map((link) => {
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
var _a;
|
|
33
|
+
return (h("hy-footer-link-item", { label: link.label, url: link.url, color: FooterLinkItemColor.white, mainLink: link.mainlink, items: (_a = link.items) !== null && _a !== void 0 ? _a : null }));
|
|
34
|
+
})), postSectionLinks && (h("div", { class: "hy-footer-base__bottom" }, h("div", { class: "hy-footer-base__bottom__links" }, postSectionLinks &&
|
|
35
|
+
postSectionLinks.map((item) => (h("a", { class: "hy-footer-base__bottom__link", href: item.url, target: item.external ? "_blank" : "_self" }, item.label)))), this.copyrightText && h("span", { class: "hy-footer-base__copy" }, this.copyrightText))))));
|
|
31
36
|
}
|
|
32
37
|
static get is() { return "hy-footer-base"; }
|
|
33
38
|
static get originalStyleUrls() {
|
|
@@ -178,6 +183,28 @@ export class HyFooterBase {
|
|
|
178
183
|
"attribute": "data-footer-base-links",
|
|
179
184
|
"reflect": false
|
|
180
185
|
},
|
|
186
|
+
"dataFooterPostSectionLinks": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"mutable": false,
|
|
189
|
+
"complexType": {
|
|
190
|
+
"original": "FooterPostSectionLinks[] | string",
|
|
191
|
+
"resolved": "FooterPostSectionLinks[] | string",
|
|
192
|
+
"references": {
|
|
193
|
+
"FooterPostSectionLinks": {
|
|
194
|
+
"location": "local",
|
|
195
|
+
"path": "/Users/tuukkaturu/hy/hy-ds/design-system-lib/core/src/components/footer/hy-footer-base/hy-footer-base.tsx"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"required": false,
|
|
200
|
+
"optional": false,
|
|
201
|
+
"docs": {
|
|
202
|
+
"tags": [],
|
|
203
|
+
"text": "Footer post section links"
|
|
204
|
+
},
|
|
205
|
+
"attribute": "data-footer-post-section-links",
|
|
206
|
+
"reflect": false
|
|
207
|
+
},
|
|
181
208
|
"dataFooterBaseSome": {
|
|
182
209
|
"type": "string",
|
|
183
210
|
"mutable": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hy-footer-base.js","sourceRoot":"","sources":["../../../../src/components/footer/hy-footer-base/hy-footer-base.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hy-footer-base.js","sourceRoot":"","sources":["../../../../src/components/footer/hy-footer-base/hy-footer-base.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAC,SAAS,EAAsB,IAAI,EAAE,IAAI,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAC,mBAAmB,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACpG,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAO9D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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["export interface FooterBaseLinks {\n label: string;\n url: string;\n isActive?: boolean;\n mainlink?: boolean;\n items: Array<FooterBaseLinks>;\n}\n\nexport interface FooterPostSectionLinks {\n label: string;\n url: string;\n external: boolean;\n}\n\nexport interface FooterBaseSome {\n label: string;\n url: string;\n type: string;\n}\n\nimport {Component, ComponentInterface, Host, Prop, h} from \"@stencil/core\";\nimport {FooterLinkItemColor, SiteLogoSize, ColorVariant, FooterVariant} from \"../../../utils/utils\";\nimport {jsonParserWorker} from \"../../../global/globalScript\";\n\n@Component({\n tag: \"hy-footer-base\",\n styleUrl: \"hy-footer-base.scss\",\n shadow: false,\n})\nexport class HyFooterBase implements ComponentInterface {\n /**\n * Link item color\n */\n @Prop() color: FooterLinkItemColor = FooterLinkItemColor.white;\n /**\n * Logo url\n */\n @Prop() logoUrl?: string;\n /**\n * Logo label\n */\n @Prop() logoLabel?: string;\n /**\n * Logo size\n */\n @Prop() size: SiteLogoSize = SiteLogoSize.big;\n /**\n * Label for some links\n */\n @Prop() someLabel?: string;\n /**\n * Copyright text\n */\n @Prop() copyrightText: string;\n\n private _dataFooterBaseLinks: FooterBaseLinks[];\n private _dataFooterBaseSome: FooterBaseSome[];\n private _dataFooterPostSectionLinks: FooterPostSectionLinks[];\n /**\n * Footer links to be displayed\n */\n @Prop() dataFooterBaseLinks: FooterBaseLinks[] | string;\n /**\n * Footer post section links\n */\n @Prop() dataFooterPostSectionLinks: FooterPostSectionLinks[] | string;\n /**\n * Footer some links\n */\n @Prop() dataFooterBaseSome: FooterBaseSome[] | string;\n\n async componentWillLoad() {\n this._dataFooterBaseLinks = await jsonParserWorker(this.dataFooterBaseLinks);\n this._dataFooterBaseSome = await jsonParserWorker(this.dataFooterBaseSome);\n this._dataFooterPostSectionLinks = await jsonParserWorker(this.dataFooterPostSectionLinks);\n }\n\n render() {\n const logoColor = ColorVariant.white;\n const classAttributes = [\"hy-footer-base--content-container\"].join(\" \");\n const links = this._dataFooterBaseLinks as Array<FooterBaseLinks>;\n const postSectionLinks = this._dataFooterPostSectionLinks as Array<FooterPostSectionLinks>;\n const some = this._dataFooterBaseSome as Array<FooterBaseSome>;\n\n return (\n <Host class={classAttributes}>\n <div class=\"hy-footer-base\">\n <div class=\"hy-footer-base__left\">\n <div class=\"hy-footer-base__logo\">\n <hy-site-logo type={FooterVariant.footer} color={logoColor} url={this.logoUrl} label={this.logoLabel} />\n </div>\n <div class=\"hy-footer-base__content\">\n <slot name=\"content\"></slot>\n </div>\n <div class=\"hy-footer-base__some\">\n <div class=\"hy-footer-base__some__items\">\n {some &&\n some.map((s) => {\n return (\n <a\n aria-label={s.label}\n href={s.url}\n class={`hy-footer-base__some__item`}\n title={s.label}\n target=\"_blank\"\n >\n <hy-icon icon={`hy-icon-some-${s.type}`} size={36} />\n </a>\n );\n })}\n </div>\n </div>\n </div>\n <div class=\"hy-footer-base__right\">\n {links &&\n links.map((link) => {\n return (\n <hy-footer-link-item\n label={link.label}\n url={link.url}\n color={FooterLinkItemColor.white}\n mainLink={link.mainlink}\n items={link.items ?? null}\n ></hy-footer-link-item>\n );\n })}\n </div>\n {postSectionLinks && (\n <div class=\"hy-footer-base__bottom\">\n <div class=\"hy-footer-base__bottom__links\">\n {postSectionLinks &&\n postSectionLinks.map((item) => (\n <a class=\"hy-footer-base__bottom__link\" href={item.url} target={item.external ? \"_blank\" : \"_self\"}>\n {item.label}\n </a>\n ))}\n </div>\n {this.copyrightText && <span class=\"hy-footer-base__copy\">{this.copyrightText}</span>}\n </div>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -65,7 +65,7 @@ hy-footer-link-item:not([main-link]) {
|
|
|
65
65
|
width: 100%;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
@media (min-width:
|
|
68
|
+
@media (min-width: 48rem) {
|
|
69
69
|
hy-footer-link-item:not([main-link]) {
|
|
70
70
|
width: 50%;
|
|
71
71
|
}
|
|
@@ -108,6 +108,12 @@ hy-footer-link-item.group[main-link]:not([is-luomus-group]) {
|
|
|
108
108
|
flex-direction: column;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
+
@media (min-width: 48rem) {
|
|
112
|
+
.hy-footer-link-item--container {
|
|
113
|
+
margin-bottom: 1rem;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
111
117
|
.hy-footer-link-item--container .hy-footer-link-item:last-child {
|
|
112
118
|
margin-bottom: 16px;
|
|
113
119
|
}
|
|
@@ -147,28 +153,36 @@ hy-footer-link-item.group[main-link]:not([is-luomus-group]) {
|
|
|
147
153
|
border: 0;
|
|
148
154
|
padding: 0;
|
|
149
155
|
margin-right: -32px;
|
|
156
|
+
width: -webkit-fit-content;
|
|
157
|
+
width: -moz-fit-content;
|
|
158
|
+
width: fit-content;
|
|
150
159
|
}
|
|
151
160
|
|
|
152
161
|
.hy-footer-link-item__main .hy-heading__container > h3.hy-heading {
|
|
153
|
-
font-size:
|
|
154
|
-
line-height:
|
|
162
|
+
font-size: 1rem;
|
|
163
|
+
line-height: 16px;
|
|
155
164
|
letter-spacing: -0.45px;
|
|
156
|
-
padding:
|
|
165
|
+
padding: 1.5rem 0 1px 0 !important;
|
|
166
|
+
text-transform: uppercase;
|
|
157
167
|
}
|
|
158
168
|
|
|
159
169
|
@media (min-width: 30rem) {
|
|
160
170
|
.hy-footer-link-item__main .hy-heading__container > h3.hy-heading {
|
|
161
|
-
font-size: 1.375rem;
|
|
162
|
-
line-height: 28px;
|
|
163
171
|
letter-spacing: -0.44px;
|
|
164
172
|
}
|
|
165
173
|
}
|
|
166
174
|
|
|
167
175
|
.hy-footer-link-item__main .hy-heading__container > h3.hy-heading .hy-footer-link-item__link {
|
|
168
|
-
color: var(--grayscale-
|
|
176
|
+
color: var(--grayscale-white);
|
|
169
177
|
font-family: var(--main-font-family);
|
|
170
178
|
text-decoration: none;
|
|
171
|
-
margin-bottom:
|
|
179
|
+
margin-bottom: 8px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@media (min-width: 48rem) {
|
|
183
|
+
.hy-footer-link-item__main .hy-heading__container > h3.hy-heading .hy-footer-link-item__link {
|
|
184
|
+
margin-bottom: 12px;
|
|
185
|
+
}
|
|
172
186
|
}
|
|
173
187
|
|
|
174
188
|
.hy-footer-link-item__color-black {
|
|
@@ -198,7 +212,7 @@ hy-footer-link-item.group[main-link]:not([is-luomus-group]) {
|
|
|
198
212
|
}
|
|
199
213
|
|
|
200
214
|
.hy-footer-link-item__color-white {
|
|
201
|
-
font-size: 0.
|
|
215
|
+
font-size: 0.9375rem;
|
|
202
216
|
line-height: 18px;
|
|
203
217
|
font-weight: 600;
|
|
204
218
|
border-bottom: 1px solid var(--grayscale-white);
|
|
@@ -207,6 +221,10 @@ hy-footer-link-item.group[main-link]:not([is-luomus-group]) {
|
|
|
207
221
|
padding: 15px 20px 15px 0;
|
|
208
222
|
}
|
|
209
223
|
|
|
224
|
+
.hy-footer-link-item__color-white:hover, .hy-footer-link-item__color-white:focus-within {
|
|
225
|
+
text-decoration: underline;
|
|
226
|
+
}
|
|
227
|
+
|
|
210
228
|
.hy-footer-link-item__color-white .hy-footer-link-item__icon svg {
|
|
211
229
|
fill: var(--grayscale-white);
|
|
212
230
|
}
|
|
@@ -93,6 +93,12 @@
|
|
|
93
93
|
min-width: 100%;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
.hy-dropdown .hy-dropdown__hidden-input {
|
|
97
|
+
display: none;
|
|
98
|
+
height: 0;
|
|
99
|
+
font-size: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
96
102
|
.hy-dropdown__toggle {
|
|
97
103
|
font-size: 0.875rem;
|
|
98
104
|
line-height: 24px;
|
|
@@ -238,14 +244,6 @@
|
|
|
238
244
|
}
|
|
239
245
|
|
|
240
246
|
.hy-dropdown__panel-item {
|
|
241
|
-
position: relative;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
.hy-dropdown__panel-item:not(.is-last) {
|
|
245
|
-
margin-bottom: 6px;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.hy-dropdown__label {
|
|
249
247
|
font-size: 0.875rem;
|
|
250
248
|
line-height: 24px;
|
|
251
249
|
-webkit-box-align: center;
|
|
@@ -265,18 +263,48 @@
|
|
|
265
263
|
-ms-flex-pack: justify;
|
|
266
264
|
justify-content: space-between;
|
|
267
265
|
letter-spacing: normal;
|
|
268
|
-
|
|
266
|
+
position: relative;
|
|
267
|
+
padding: 0;
|
|
269
268
|
text-align: left;
|
|
270
269
|
width: 100%;
|
|
271
270
|
}
|
|
272
271
|
|
|
273
272
|
@media (min-width: 30rem) {
|
|
274
|
-
.hy-
|
|
273
|
+
.hy-dropdown__panel-item {
|
|
275
274
|
font-size: 1rem;
|
|
276
275
|
line-height: 24px;
|
|
277
276
|
}
|
|
278
277
|
}
|
|
279
278
|
|
|
279
|
+
.hy-dropdown__panel-item:not(.is-last) {
|
|
280
|
+
margin-bottom: 6px;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.hy-dropdown__panel-item[aria-selected=true] .hy-dropdown__checkbox {
|
|
284
|
+
border-color: var(--grayscale-black);
|
|
285
|
+
border-style: solid inset solid solid;
|
|
286
|
+
border-width: 2px;
|
|
287
|
+
color: var(--grayscale-black);
|
|
288
|
+
outline: 0;
|
|
289
|
+
text-indent: -1px;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.hy-dropdown__panel-item[aria-selected=true] .hy-dropdown__checkbox .hy-dropdown__label-icon {
|
|
293
|
+
display: -webkit-inline-box !important;
|
|
294
|
+
display: -ms-inline-flexbox !important;
|
|
295
|
+
display: inline-flex !important;
|
|
296
|
+
visibility: visible;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.hy-dropdown__panel-item--focused {
|
|
300
|
+
cursor: pointer;
|
|
301
|
+
border-color: var(--brand-main-light);
|
|
302
|
+
border-style: solid inset solid solid;
|
|
303
|
+
border-width: 2px;
|
|
304
|
+
outline: 0;
|
|
305
|
+
text-indent: -1px;
|
|
306
|
+
}
|
|
307
|
+
|
|
280
308
|
.hy-dropdown__label-icon {
|
|
281
309
|
-webkit-box-align: center;
|
|
282
310
|
-ms-flex-align: center;
|
|
@@ -294,39 +322,26 @@
|
|
|
294
322
|
}
|
|
295
323
|
|
|
296
324
|
.hy-dropdown__checkbox {
|
|
325
|
+
display: -webkit-box;
|
|
326
|
+
display: -ms-flexbox;
|
|
327
|
+
display: flex;
|
|
328
|
+
-webkit-box-align: center;
|
|
329
|
+
-ms-flex-align: center;
|
|
330
|
+
align-items: center;
|
|
331
|
+
min-height: 40px;
|
|
297
332
|
height: 100%;
|
|
298
333
|
margin: 0;
|
|
299
|
-
|
|
300
|
-
position: absolute;
|
|
334
|
+
padding: 0 16px;
|
|
301
335
|
width: 100%;
|
|
302
336
|
z-index: 10;
|
|
303
337
|
}
|
|
304
338
|
|
|
305
|
-
.hy-dropdown__checkbox:checked + label {
|
|
306
|
-
border-color: var(--grayscale-black);
|
|
307
|
-
border-style: solid inset solid solid;
|
|
308
|
-
border-width: 2px;
|
|
309
|
-
color: var(--grayscale-black);
|
|
310
|
-
outline: 0;
|
|
311
|
-
text-indent: -1px;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.hy-dropdown__checkbox:checked + label .hy-dropdown__label-icon {
|
|
315
|
-
display: -webkit-inline-box !important;
|
|
316
|
-
display: -ms-inline-flexbox !important;
|
|
317
|
-
display: inline-flex !important;
|
|
318
|
-
visibility: visible;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
339
|
.hy-dropdown__checkbox:hover {
|
|
322
340
|
cursor: pointer;
|
|
341
|
+
border-color: var(--brand-main-active);
|
|
323
342
|
}
|
|
324
343
|
|
|
325
|
-
.hy-dropdown__checkbox:
|
|
326
|
-
border-color: var(--brand-main-light);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
.hy-dropdown__checkbox:focus + label {
|
|
344
|
+
.hy-dropdown__checkbox:focus-within {
|
|
330
345
|
border-color: var(--brand-main-light);
|
|
331
346
|
border-style: solid inset solid solid;
|
|
332
347
|
border-width: 2px;
|