@itcenteratunihelsinki/huds-lib 0.5.22 → 0.5.23

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.
Files changed (57) hide show
  1. package/dist/cjs/huds-lib.cjs.js +1 -1
  2. package/dist/cjs/hy-accordion-container_5.cjs.entry.js +578 -0
  3. package/dist/cjs/{hy-menu-language_2.cjs.entry.js → hy-menu-language.cjs.entry.js} +0 -19
  4. package/dist/cjs/hy-menu-mobile-breadcrumb.cjs.entry.js +25 -0
  5. package/dist/cjs/hy-menu.cjs.entry.js +2 -2
  6. package/dist/cjs/hy-paragraph-text.cjs.entry.js +1 -1
  7. package/dist/cjs/hy-person-profile.cjs.entry.js +61 -0
  8. package/dist/cjs/hy-site-header_3.cjs.entry.js +4 -3
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/collection/collection-manifest.json +2 -0
  11. package/dist/collection/components/accordion-item/accordion-item.css +5 -4
  12. package/dist/collection/components/accordion-item/accordion-item.js +20 -20
  13. package/dist/collection/components/navigation/menu/menu.js +23 -8
  14. package/dist/collection/components/paragraph-text/paragraph-text.css +9 -7
  15. package/dist/collection/components/person-profile/person-profile-listing/person-profile-listing.css +188 -0
  16. package/dist/collection/components/person-profile/person-profile-listing/person-profile.listing.js +124 -0
  17. package/dist/collection/components/person-profile/person-profile.css +506 -0
  18. package/dist/collection/components/person-profile/person-profile.js +199 -0
  19. package/dist/collection/components/site-header/site-header.css +12 -0
  20. package/dist/collection/components/site-header/site-header.js +21 -2
  21. package/dist/esm/huds-lib.js +1 -1
  22. package/dist/esm/hy-accordion-container_5.entry.js +570 -0
  23. package/dist/esm/{hy-menu-language_2.entry.js → hy-menu-language.entry.js} +1 -19
  24. package/dist/esm/hy-menu-mobile-breadcrumb.entry.js +21 -0
  25. package/dist/esm/hy-menu.entry.js +2 -2
  26. package/dist/esm/hy-paragraph-text.entry.js +1 -1
  27. package/dist/esm/hy-person-profile.entry.js +57 -0
  28. package/dist/esm/hy-site-header_3.entry.js +4 -3
  29. package/dist/esm/loader.js +1 -1
  30. package/dist/huds-lib/huds-lib.esm.js +1 -1
  31. package/dist/huds-lib/p-0b2e3057.entry.js +1 -0
  32. package/dist/huds-lib/p-3d35d226.entry.js +1 -0
  33. package/dist/huds-lib/{p-b526249a.entry.js → p-4252e76e.entry.js} +1 -1
  34. package/dist/huds-lib/p-45c60364.entry.js +1 -0
  35. package/dist/huds-lib/p-4c56d8d7.entry.js +1 -0
  36. package/dist/huds-lib/{p-bf84b857.entry.js → p-557d5e62.entry.js} +1 -1
  37. package/dist/huds-lib/p-ac362729.entry.js +1 -0
  38. package/dist/types/components/navigation/menu/menu.d.ts +2 -1
  39. package/dist/types/components/person-profile/person-profile-listing/person-profile.listing.d.ts +14 -0
  40. package/dist/types/components/person-profile/person-profile.d.ts +12 -0
  41. package/dist/types/components/site-header/site-header.d.ts +1 -0
  42. package/dist/types/components.d.ts +51 -0
  43. package/package.json +1 -1
  44. package/dist/cjs/hy-accordion-container.cjs.entry.js +0 -29
  45. package/dist/cjs/hy-accordion-item.cjs.entry.js +0 -216
  46. package/dist/cjs/hy-tabs-item.cjs.entry.js +0 -20
  47. package/dist/cjs/hy-tabs.cjs.entry.js +0 -308
  48. package/dist/esm/hy-accordion-container.entry.js +0 -25
  49. package/dist/esm/hy-accordion-item.entry.js +0 -212
  50. package/dist/esm/hy-tabs-item.entry.js +0 -16
  51. package/dist/esm/hy-tabs.entry.js +0 -304
  52. package/dist/huds-lib/p-0a3ee940.entry.js +0 -1
  53. package/dist/huds-lib/p-63334950.entry.js +0 -1
  54. package/dist/huds-lib/p-8eb879d5.entry.js +0 -1
  55. package/dist/huds-lib/p-9c2f38a6.entry.js +0 -1
  56. package/dist/huds-lib/p-d4a8d85f.entry.js +0 -1
  57. package/dist/huds-lib/p-df368663.entry.js +0 -1
@@ -0,0 +1,506 @@
1
+ :root {
2
+ --brand-main: #0e688b;
3
+ --brand-main-soft: #b1e7ff;
4
+ --brand-main-bright: #48c5f8;
5
+ --brand-main-light: #107eab;
6
+ --brand-main-active: #005379;
7
+ --brand-main-dark: #003146;
8
+ --brand-main-nearly-black: #000222;
9
+ --link-blue: #0479a4;
10
+ --link-disabled: #767676;
11
+ --grayscale-white: #fff;
12
+ --grayscale-slightly-gray: #fefefe;
13
+ --grayscale-light: #f8f8f8;
14
+ --grayscale-medium: #d2d2d2;
15
+ --grayscale-background-box: #f5f5f5;
16
+ --grayscale-tabs-border: #e6e6e6;
17
+ --grayscale-background-arrow: #dfdfdf;
18
+ --grayscale-medium-dark: #979797;
19
+ --grayscale-dark: #555555;
20
+ --grayscale-dark-text: #222222;
21
+ --grayscale-black: #000000;
22
+ --additional-red-light: #e5053a;
23
+ --additional-red-dark: #a31621;
24
+ --additional-purple-light: #420039;
25
+ --additional-yellow: #f9a21a;
26
+ --additional-skyblue: #48c5f8;
27
+ --additional-orange: #d14600;
28
+ --additional-green-light: #96ba3c;
29
+ --additional-green-dark: #006400;
30
+ --hover-gray: #eaeaea;
31
+ }
32
+
33
+ * {
34
+ -webkit-box-sizing: border-box;
35
+ box-sizing: border-box;
36
+ }
37
+
38
+ :root {
39
+ --gutter-mobile: 16px;
40
+ --gutter-narrow: 24px;
41
+ --gutter-medium: 24px;
42
+ --gutter-wide: 24px;
43
+ --gutter-extrawide: 32px;
44
+ }
45
+
46
+ /**
47
+ * Mixin for fluid type.
48
+ * Example usage: @include fluid-type(font-size, 320px, 1600px, 32px, 80px);
49
+ */
50
+
51
+ :root {
52
+ --breakpoint-extrawide: 75.0625rem;
53
+ --breakpoint-max-width: 75.0625rem;
54
+ --breakpoint-medium: 48rem;
55
+ --breakpoint-narrow: 30rem;
56
+ --breakpoint-wide: 60rem;
57
+ }
58
+
59
+ .hy-profile-page__back-button {
60
+ font-size: 1rem;
61
+ line-height: 20px;
62
+ font-weight: 600;
63
+ font-family: var(--main-font-family);
64
+ letter-spacing: -0.5px;
65
+ color: var(--brand-main-light);
66
+ padding: 12px 10px;
67
+ display: -webkit-inline-box;
68
+ display: -ms-inline-flexbox;
69
+ display: inline-flex;
70
+ text-decoration: none;
71
+ margin-left: -10px;
72
+ -webkit-box-align: center;
73
+ -ms-flex-align: center;
74
+ align-items: center;
75
+ margin-bottom: 16px;
76
+ }
77
+
78
+ @media (min-width: 48rem) {
79
+ .hy-profile-page__back-button {
80
+ margin-bottom: 24px;
81
+ }
82
+ }
83
+
84
+ .hy-profile-page__back-button hy-icon {
85
+ margin-right: 16px;
86
+ }
87
+
88
+ .hy-profile-page__back-button hy-icon svg {
89
+ fill: var(--brand-main-light);
90
+ }
91
+
92
+ .hy-profile-page__section {
93
+ padding: 32px 0;
94
+ }
95
+
96
+ .hy-profile-page__section:first-of-type {
97
+ padding: 0 0 32px;
98
+ }
99
+
100
+ .hy-profile-page__section:not(:first-of-type) {
101
+ border-top: 1px solid var(--grayscale-medium);
102
+ }
103
+
104
+ .hy-profile-page__section > h2 {
105
+ font-size: 1.625rem;
106
+ line-height: 32px;
107
+ font-weight: 700;
108
+ font-family: var(--main-font-family);
109
+ letter-spacing: -0.52px;
110
+ color: var(--grayscale-black);
111
+ margin: 0 0 32px;
112
+ }
113
+
114
+ @media (min-width: 48rem) {
115
+ .hy-profile-page__section > h2 {
116
+ font-size: 2.125rem;
117
+ line-height: 40px;
118
+ letter-spacing: -0.68px;
119
+ }
120
+ }
121
+
122
+ .hy-profile-page__organization-units-section {
123
+ font-family: var(--main-font-family);
124
+ padding: 0;
125
+ margin: 0;
126
+ list-style: none;
127
+ }
128
+
129
+ .hy-profile-page__organization-units-section h3 {
130
+ font-size: 0.9375rem;
131
+ line-height: 18px;
132
+ font-weight: 700;
133
+ letter-spacing: -0.28px;
134
+ color: var(--grayscale-black);
135
+ margin: 0 0 8px;
136
+ }
137
+
138
+ @media (min-width: 48rem) {
139
+ .hy-profile-page__organization-units-section h3 {
140
+ font-size: 1.0625rem;
141
+ line-height: 20px;
142
+ letter-spacing: -0.32px;
143
+ }
144
+ }
145
+
146
+ .hy-profile-page__organization-units-section {
147
+ margin-top: 24px;
148
+ }
149
+
150
+ @media (min-width: 48rem) {
151
+ .hy-profile-page__organization-units-section {
152
+ margin-top: 32px;
153
+ }
154
+ }
155
+
156
+ .hy-profile-page__organizations,
157
+ .hy-profile-page__organizations ul,
158
+ .hy-profile-page__research-organizations,
159
+ .hy-profile-page__research-organizations ul {
160
+ list-style: none;
161
+ margin: 0;
162
+ padding: 0;
163
+ display: grid;
164
+ gap: 8px;
165
+ }
166
+
167
+ .hy-profile-page__organizations li,
168
+ .hy-profile-page__research-organizations li {
169
+ display: -webkit-inline-box;
170
+ display: -ms-inline-flexbox;
171
+ display: inline-flex;
172
+ -ms-flex-wrap: wrap;
173
+ flex-wrap: wrap;
174
+ }
175
+
176
+ .hy-profile-page__organizations li span,
177
+ .hy-profile-page__research-organizations li span {
178
+ font-size: 0.9375rem;
179
+ line-height: 22px;
180
+ font-weight: 400;
181
+ color: var(--grayscale-black);
182
+ }
183
+
184
+ @media (min-width: 48rem) {
185
+ .hy-profile-page__organizations li span,
186
+ .hy-profile-page__research-organizations li span {
187
+ font-size: 1.0625rem;
188
+ line-height: 26px;
189
+ }
190
+ }
191
+
192
+ .hy-profile-page__organizations li > span,
193
+ .hy-profile-page__research-organizations li > span {
194
+ display: -webkit-inline-box;
195
+ display: -ms-inline-flexbox;
196
+ display: inline-flex;
197
+ }
198
+
199
+ .hy-profile-page__organizations li hy-icon,
200
+ .hy-profile-page__research-organizations li hy-icon {
201
+ -webkit-box-pack: center;
202
+ -ms-flex-pack: center;
203
+ justify-content: center;
204
+ -webkit-box-align: center;
205
+ -ms-flex-align: center;
206
+ align-items: center;
207
+ height: 22px;
208
+ width: 28px;
209
+ }
210
+
211
+ @media (min-width: 48rem) {
212
+ .hy-profile-page__organizations li hy-icon,
213
+ .hy-profile-page__research-organizations li hy-icon {
214
+ height: 26px;
215
+ }
216
+ }
217
+
218
+ .hy-profile-page__person-about-text {
219
+ font-size: 0.9375rem;
220
+ line-height: 22px;
221
+ font-weight: 400;
222
+ font-family: var(--main-font-family);
223
+ color: var(--grayscale-black);
224
+ }
225
+
226
+ @media (min-width: 48rem) {
227
+ .hy-profile-page__person-about-text {
228
+ font-size: 1.0625rem;
229
+ line-height: 26px;
230
+ }
231
+ }
232
+
233
+ .hy-profile-page__person-about-text-toggle {
234
+ font-size: 0.9375rem;
235
+ line-height: 22px;
236
+ font-weight: 400;
237
+ font-family: var(--main-font-family);
238
+ color: var(--link-blue);
239
+ background-color: transparent;
240
+ border: 0;
241
+ padding: 0;
242
+ margin: 0;
243
+ }
244
+
245
+ @media (min-width: 48rem) {
246
+ .hy-profile-page__person-about-text-toggle {
247
+ font-size: 1.0625rem;
248
+ line-height: 26px;
249
+ }
250
+ }
251
+
252
+ .hy-profile-page__person-about-text-toggle:hover {
253
+ cursor: pointer;
254
+ }
255
+
256
+ .hy-profile-page__person-information {
257
+ display: -webkit-box;
258
+ display: -ms-flexbox;
259
+ display: flex;
260
+ -webkit-box-orient: vertical;
261
+ -webkit-box-direction: normal;
262
+ -ms-flex-direction: column;
263
+ flex-direction: column;
264
+ gap: 16px;
265
+ margin-bottom: 24px;
266
+ }
267
+
268
+ @media (min-width: 48rem) {
269
+ .hy-profile-page__person-information {
270
+ -webkit-box-orient: horizontal;
271
+ -webkit-box-direction: reverse;
272
+ -ms-flex-direction: row-reverse;
273
+ flex-direction: row-reverse;
274
+ -webkit-box-align: center;
275
+ -ms-flex-align: center;
276
+ align-items: center;
277
+ margin-bottom: 40px;
278
+ -webkit-box-pack: end;
279
+ -ms-flex-pack: end;
280
+ justify-content: flex-end;
281
+ }
282
+ }
283
+
284
+ .hy-profile-page__image {
285
+ aspect-ratio: 328/425;
286
+ width: 100%;
287
+ max-width: 328px;
288
+ -o-object-fit: cover;
289
+ object-fit: cover;
290
+ background-color: var(--grayscale-background-box);
291
+ }
292
+
293
+ @media (min-width: 48rem) {
294
+ .hy-profile-page__image {
295
+ max-width: 194px;
296
+ }
297
+ }
298
+
299
+ .hy-profile-page__contact-information > h2 {
300
+ font-size: 1.625rem;
301
+ line-height: 32px;
302
+ font-weight: 700;
303
+ font-family: var(--main-font-family);
304
+ letter-spacing: -0.52px;
305
+ color: var(--grayscale-black);
306
+ margin: 0 0 32px;
307
+ }
308
+
309
+ @media (min-width: 48rem) {
310
+ .hy-profile-page__contact-information > h2 {
311
+ font-size: 2.125rem;
312
+ line-height: 40px;
313
+ letter-spacing: -0.68px;
314
+ }
315
+ }
316
+
317
+ .hy-profile-page__name {
318
+ font-size: 2rem;
319
+ line-height: 38px;
320
+ font-weight: 700;
321
+ font-family: var(--main-font-family);
322
+ letter-spacing: -0.8px;
323
+ color: var(--grayscale-black);
324
+ margin: 0 0 4px;
325
+ text-transform: uppercase;
326
+ }
327
+
328
+ @media (min-width: 60rem) {
329
+ .hy-profile-page__name {
330
+ font-size: 2.875rem;
331
+ line-height: 54px;
332
+ letter-spacing: -1.15px;
333
+ margin: 0 0 8px;
334
+ }
335
+ }
336
+
337
+ @media (min-width: 120.0625rem) {
338
+ .hy-profile-page__name {
339
+ font-size: 3.25rem;
340
+ line-height: 60px;
341
+ letter-spacing: -1.3px;
342
+ }
343
+ }
344
+
345
+ .hy-profile-page__job-title {
346
+ font-size: 1rem;
347
+ line-height: 20px;
348
+ font-weight: 700;
349
+ font-family: var(--main-font-family);
350
+ letter-spacing: -0.32px;
351
+ color: var(--grayscale-black);
352
+ margin: 0 0 4px;
353
+ }
354
+
355
+ @media (min-width: 60rem) {
356
+ .hy-profile-page__job-title {
357
+ font-size: 1.125rem;
358
+ line-height: 24px;
359
+ letter-spacing: -0.36px;
360
+ }
361
+ }
362
+
363
+ .hy-profile-page__additional-information {
364
+ font-size: 0.9375rem;
365
+ line-height: 22px;
366
+ font-weight: 400;
367
+ font-family: var(--main-font-family);
368
+ color: var(--grayscale-dark-text);
369
+ margin: 0;
370
+ }
371
+
372
+ @media (min-width: 60rem) {
373
+ .hy-profile-page__additional-information {
374
+ font-size: 1.0625rem;
375
+ line-height: 26px;
376
+ }
377
+ }
378
+
379
+ .hy-profile-page__person-content-container {
380
+ display: none;
381
+ margin-top: 32px;
382
+ }
383
+
384
+ @media (min-width: 48rem) {
385
+ .hy-profile-page__person-content-container {
386
+ margin-top: 44px;
387
+ }
388
+ }
389
+
390
+ .hy-profile-page__person-content-listing {
391
+ display: grid;
392
+ gap: 32px;
393
+ list-style: none;
394
+ padding: 0;
395
+ margin: 0;
396
+ }
397
+
398
+ .hy-profile-page__person-content > h2 {
399
+ margin: 0 0 8px;
400
+ }
401
+
402
+ .hy-profile-page__person-content > h2 a {
403
+ font-size: 1.125rem;
404
+ line-height: 24px;
405
+ font-weight: 700;
406
+ font-family: var(--main-font-family);
407
+ letter-spacing: -0.36px;
408
+ color: var(--link-blue);
409
+ text-decoration: none;
410
+ }
411
+
412
+ @media (min-width: 48rem) {
413
+ .hy-profile-page__person-content > h2 a {
414
+ font-size: 1.375rem;
415
+ line-height: 28px;
416
+ letter-spacing: -0.44px;
417
+ }
418
+ }
419
+
420
+ .hy-profile-page__person-content > span,
421
+ .hy-profile-page__person-content > p {
422
+ font-size: 0.9375rem;
423
+ line-height: 22px;
424
+ font-weight: 400;
425
+ font-family: var(--main-font-family);
426
+ color: var(--grayscale-dark-text);
427
+ }
428
+
429
+ @media (min-width: 48rem) {
430
+ .hy-profile-page__person-content > span,
431
+ .hy-profile-page__person-content > p {
432
+ font-size: 1.0625rem;
433
+ line-height: 26px;
434
+ letter-spacing: -0.44px;
435
+ }
436
+ }
437
+
438
+ .hy-profile-page__person-content > p {
439
+ margin: 8px 0 0;
440
+ }
441
+
442
+ .hy-profile-page__loader {
443
+ display: inline-block;
444
+ position: relative;
445
+ width: 80px;
446
+ height: 80px;
447
+ margin-top: 32px;
448
+ }
449
+
450
+ @media (min-width: 48rem) {
451
+ .hy-profile-page__loader {
452
+ margin-top: 44px;
453
+ }
454
+ }
455
+
456
+ .hy-profile-page__loader div {
457
+ -webkit-box-sizing: border-box;
458
+ box-sizing: border-box;
459
+ display: block;
460
+ position: absolute;
461
+ width: 64px;
462
+ height: 64px;
463
+ margin: 8px;
464
+ border: 6px solid #fff;
465
+ border-radius: 50%;
466
+ -webkit-animation: loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
467
+ animation: loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
468
+ border-color: var(--brand-main-light) transparent transparent transparent;
469
+ }
470
+
471
+ .hy-profile-page__loader div:nth-child(1) {
472
+ -webkit-animation-delay: -0.45s;
473
+ animation-delay: -0.45s;
474
+ }
475
+
476
+ .hy-profile-page__loader div:nth-child(2) {
477
+ -webkit-animation-delay: -0.3s;
478
+ animation-delay: -0.3s;
479
+ }
480
+
481
+ .hy-profile-page__loader div:nth-child(3) {
482
+ -webkit-animation-delay: -0.15s;
483
+ animation-delay: -0.15s;
484
+ }
485
+
486
+ @-webkit-keyframes loader-ring {
487
+ 0% {
488
+ -webkit-transform: rotate(0deg);
489
+ transform: rotate(0deg);
490
+ }
491
+ 100% {
492
+ -webkit-transform: rotate(360deg);
493
+ transform: rotate(360deg);
494
+ }
495
+ }
496
+
497
+ @keyframes loader-ring {
498
+ 0% {
499
+ -webkit-transform: rotate(0deg);
500
+ transform: rotate(0deg);
501
+ }
502
+ 100% {
503
+ -webkit-transform: rotate(360deg);
504
+ transform: rotate(360deg);
505
+ }
506
+ }
@@ -0,0 +1,199 @@
1
+ import { Component, Host, h, Prop, State, Fragment } from '@stencil/core';
2
+ export class PersonProfile {
3
+ constructor() {
4
+ this.isFullAboutTextHidden = false;
5
+ }
6
+ componentWillLoad() {
7
+ this.viewportSize = window.innerWidth;
8
+ }
9
+ toggleShowFullAboutText() {
10
+ this.isFullAboutTextHidden = !this.isFullAboutTextHidden;
11
+ }
12
+ render() {
13
+ const { name, job_title, additional_information, image_url, contact_information, organization_units, about, research, person_content, } = JSON.parse(this.personDataJson);
14
+ const { organizations, research_organizations } = organization_units.items;
15
+ const aboutDescriptionTextDestructured = about.description
16
+ .split('\n')
17
+ .filter((n) => n)
18
+ .map((item) => item.replace(/(<([^>]+)>)/gi, ''));
19
+ const aboutDescriptionLength = aboutDescriptionTextDestructured.join(' ').length;
20
+ let trimmedAboutDescription = '';
21
+ if (aboutDescriptionLength > 650) {
22
+ if (this.isFullAboutTextHidden) {
23
+ const ellipsisTextArray = (aboutDescriptionTextDestructured.join('\n') + '...').split('\n');
24
+ trimmedAboutDescription = ellipsisTextArray
25
+ .map((item) => {
26
+ return `<p>${item}</p>`;
27
+ })
28
+ .join('');
29
+ }
30
+ else {
31
+ const ellipsisTextArray = (aboutDescriptionTextDestructured.join('\n').substring(0, 647) + '...').split('\n');
32
+ trimmedAboutDescription = ellipsisTextArray
33
+ .map((item) => {
34
+ return `<p>${item}</p>`;
35
+ })
36
+ .join('');
37
+ }
38
+ }
39
+ window.addEventListener('resize', () => {
40
+ this.viewportSize = window.innerWidth;
41
+ });
42
+ return (h(Host, null,
43
+ h("section", { class: "hy-profile-page" },
44
+ h("a", { href: this.peopleFinderReturnLink, class: "hy-profile-page__back-button" },
45
+ h("hy-icon", { icon: 'hy-icon-arrow-left', size: 24 }),
46
+ h("span", null, "Back to people finder")),
47
+ h("section", { class: "hy-profile-page__section" },
48
+ h("div", { class: "hy-profile-page__person-information" },
49
+ h("div", null,
50
+ h("h1", { class: "hy-profile-page__name" }, name),
51
+ job_title && h("p", { class: "hy-profile-page__job-title" }, job_title),
52
+ additional_information && (h("p", { class: "hy-profile-page__additional-information" }, additional_information))),
53
+ image_url ? (h("img", { src: image_url, alt: "", class: "hy-profile-page__image" })) : (h("div", { class: "hy-profile-page__image", "aria-hidden": "true" }))),
54
+ contact_information && (h("div", { class: "hy-profile-page__contact-information" },
55
+ contact_information.label && h("h2", null, contact_information.label),
56
+ contact_information.items && (h("hy-person-profile-listing", { items: contact_information.items, col: "col-4", withoutIcons: true, textSpacingTight: true }))))),
57
+ (organizations.items.length > 0 || Object.keys(research_organizations.items).length > 0) && (h("section", { class: "hy-profile-page__section" },
58
+ organization_units.label && h("h2", null, organization_units.label),
59
+ organizations.items.length > 0 && (h("section", { class: "hy-profile-page__organization-units-section" },
60
+ h("h3", null, organizations.label),
61
+ h("ul", { class: "hy-profile-page__organizations" },
62
+ h("li", null, organizations.items.map(({ name }, index) => {
63
+ return (h("span", null,
64
+ index !== 0 && h("hy-icon", { icon: 'hy-icon-caret-right', size: 10 }),
65
+ h("span", null, name[organization_units.lang])));
66
+ }))))),
67
+ Object.keys(research_organizations.items).length > 0 && (h("section", { class: "hy-profile-page__organization-units-section" },
68
+ h("h3", null, research_organizations.label),
69
+ h("ul", { class: "hy-profile-page__research-organizations" }, Object.values(research_organizations.items).map(([...item]) => (h("li", null, item.map(({ name }, index) => {
70
+ return (h(Fragment, null, index !== 0 ? (h("ul", null,
71
+ h("li", null,
72
+ h("span", null,
73
+ h("hy-icon", { icon: 'hy-icon-caret-right', size: 10 }),
74
+ h("span", null, name[organization_units.lang]))))) : (h("span", null, name[organization_units.lang]))));
75
+ }))))))))),
76
+ about && aboutDescriptionLength !== 0 && (h("section", { class: "hy-profile-page__section" },
77
+ h("h2", null, about.label),
78
+ about.description && (h("div", { class: "hy-profile-page__person-about-text", innerHTML: !this.isFullAboutTextHidden && aboutDescriptionLength > 650
79
+ ? trimmedAboutDescription
80
+ : about.description })),
81
+ aboutDescriptionLength > 650 && (h("button", { class: "hy-profile-page__person-about-text-toggle", onClick: () => this.toggleShowFullAboutText(), "aria-expanded": `${this.isFullAboutTextHidden ? 'true' : 'false'}` }, this.isFullAboutTextHidden ? this.hideFullAboutText : this.showFullAboutText)))),
82
+ (research || person_content) && (h("section", { class: "hy-profile-page__section" },
83
+ research.label && h("h2", null, research.label),
84
+ research.items && (h("hy-person-profile-listing", { items: research.items, col: "col-1", inline: true })),
85
+ h("div", { class: "hy-profile-page__loader", role: "presentation" },
86
+ h("div", null),
87
+ h("div", null),
88
+ h("div", null),
89
+ h("div", null)),
90
+ this.viewportSize < 768 ? (h("div", { class: "hy-profile-page__person-content-container" },
91
+ h("hy-accordion-container", { accordionid: "accordion-container-person-content" },
92
+ person_content.publications && (h("hy-accordion-item", { accordiontitle: person_content.publications.label })),
93
+ person_content.projects && (h("hy-accordion-item", { accordiontitle: person_content.projects.label })),
94
+ person_content.activities && (h("hy-accordion-item", { accordiontitle: person_content.activities.label }))))) : (h("div", { class: "hy-profile-page__person-content-container" },
95
+ h("hy-tabs", { "tab-id": "tabs-container-person-content" },
96
+ person_content.publications && (h("hy-tabs-item", { "tab-title": person_content.publications.label })),
97
+ person_content.projects && h("hy-tabs-item", { "tab-title": person_content.projects.label }),
98
+ person_content.activities && (h("hy-tabs-item", { "tab-title": person_content.activities.label }))))))))));
99
+ }
100
+ static get is() { return "hy-person-profile"; }
101
+ static get encapsulation() { return "shadow"; }
102
+ static get originalStyleUrls() { return {
103
+ "$": ["person-profile.scss"]
104
+ }; }
105
+ static get styleUrls() { return {
106
+ "$": ["person-profile.css"]
107
+ }; }
108
+ static get properties() { return {
109
+ "personDataJson": {
110
+ "type": "string",
111
+ "mutable": false,
112
+ "complexType": {
113
+ "original": "string",
114
+ "resolved": "string",
115
+ "references": {}
116
+ },
117
+ "required": false,
118
+ "optional": false,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": ""
122
+ },
123
+ "attribute": "person-data-json",
124
+ "reflect": false
125
+ },
126
+ "showFullAboutText": {
127
+ "type": "string",
128
+ "mutable": false,
129
+ "complexType": {
130
+ "original": "string",
131
+ "resolved": "string",
132
+ "references": {}
133
+ },
134
+ "required": false,
135
+ "optional": false,
136
+ "docs": {
137
+ "tags": [],
138
+ "text": ""
139
+ },
140
+ "attribute": "show-full-about-text",
141
+ "reflect": false
142
+ },
143
+ "hideFullAboutText": {
144
+ "type": "string",
145
+ "mutable": false,
146
+ "complexType": {
147
+ "original": "string",
148
+ "resolved": "string",
149
+ "references": {}
150
+ },
151
+ "required": false,
152
+ "optional": false,
153
+ "docs": {
154
+ "tags": [],
155
+ "text": ""
156
+ },
157
+ "attribute": "hide-full-about-text",
158
+ "reflect": false
159
+ },
160
+ "organizationItemsLabelText": {
161
+ "type": "string",
162
+ "mutable": false,
163
+ "complexType": {
164
+ "original": "string",
165
+ "resolved": "string",
166
+ "references": {}
167
+ },
168
+ "required": false,
169
+ "optional": false,
170
+ "docs": {
171
+ "tags": [],
172
+ "text": ""
173
+ },
174
+ "attribute": "organization-items-label-text",
175
+ "reflect": false
176
+ },
177
+ "peopleFinderReturnLink": {
178
+ "type": "string",
179
+ "mutable": false,
180
+ "complexType": {
181
+ "original": "string",
182
+ "resolved": "string",
183
+ "references": {}
184
+ },
185
+ "required": false,
186
+ "optional": false,
187
+ "docs": {
188
+ "tags": [],
189
+ "text": ""
190
+ },
191
+ "attribute": "people-finder-return-link",
192
+ "reflect": false
193
+ }
194
+ }; }
195
+ static get states() { return {
196
+ "isFullAboutTextHidden": {},
197
+ "viewportSize": {}
198
+ }; }
199
+ }