@itcenteratunihelsinki/huds-lib 0.11.0 → 0.11.1
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-person-profile.js +4 -4
- package/dist/cjs/hy-person-profile.cjs.entry.js +4 -4
- package/dist/collection/components/hy-person-profile/person-profile.js +4 -4
- package/dist/esm/hy-person-profile.entry.js +4 -4
- package/dist/huds-lib/hy-person-profile.entry.js +1 -1
- package/package.json +2 -2
|
@@ -62,13 +62,13 @@ const PersonProfile = /*@__PURE__*/ proxyCustomElement(class PersonProfile exten
|
|
|
62
62
|
item.id, target: "_blank" }, item.name[organization_units.lang])))));
|
|
63
63
|
}))))), Object.keys(research_organizations.items).length > 0 && (h("section", { key: '2ddc88c5f06ff3ac277c9712d53ab23767c3b1d5', class: "hy-profile-page__organization-units-section" }, h("h3", { key: '4113522bef5f2efc055faaa535cf4407569705e7' }, research_organizations.label), h("ul", { key: '8866f531865c226734e0b7610ce8901d4a4c5556', class: "hy-profile-page__research-organizations" }, Object.values(research_organizations.items).map(([...item]) => (h("li", null, item.map((item, index) => {
|
|
64
64
|
return (h(Fragment, null, index > 1 && (h("ul", null, h("li", null, h("span", null, h("hy-icon", { icon: "hy-icon-caret-right", size: 10 }), h("span", null, h("a", { href: organization_units.people_finder_path[organization_units.lang] +
|
|
65
|
-
"?
|
|
65
|
+
"?hrOrganizations.id[]=" +
|
|
66
66
|
item.id, target: "_blank" }, item.name[organization_units.lang])))))), index == 1 && (h("span", null, h("a", { href: organization_units.people_finder_path[organization_units.lang] +
|
|
67
|
-
"?
|
|
67
|
+
"?hrOrganizations.id[]=" +
|
|
68
68
|
item.id, target: "_blank" }, item.name[organization_units.lang])))));
|
|
69
|
-
}))))))))), about && aboutDescriptionLength !== 0 && (h("section", { key: '
|
|
69
|
+
}))))))))), about && aboutDescriptionLength !== 0 && (h("section", { key: '0ac309494200f33ca94df8186de9844efba623cd', class: "hy-profile-page__section" }, about.description && (h(Fragment, { key: 'fb36486a018a3d50436605fb8455d2882f7bd37c' }, h("h2", { key: '52f499c2dd834a41d71ebce84d92148b15aae535' }, about.label), h("div", { key: '90af304c5f3f0350682dc2622285e8c409c89bbb', class: "hy-profile-page__person-about-text", innerHTML: !this.isFullAboutTextHidden && aboutDescriptionLength > 650
|
|
70
70
|
? trimmedAboutDescription
|
|
71
|
-
: about.description }))), aboutDescriptionLength > 650 && (h("button", { key: '
|
|
71
|
+
: about.description }))), aboutDescriptionLength > 650 && (h("button", { key: '2c738cf52c332647c741b3c884e9d85d71d9b08a', class: "hy-profile-page__person-about-text-toggle", onClick: () => this.toggleShowFullAboutText(), "aria-expanded": `${this.isFullAboutTextHidden ? "true" : "false"}` }, this.isFullAboutTextHidden ? this.hideFullAboutText : this.showFullAboutText)))), ((research && research.items.length > 0) || (person_content && person_content.research_url.length > 0)) && (h("section", { key: '0f276980904a2fb6f7f38634ba54d167c80098c8', class: "hy-profile-page__section" }, h("div", { key: '9fa071898ff9181f8440571fbf41ec512930c1dd', class: "hy-profile-page__section__research_title" }, research.label && h("h2", { key: '9f412798a8c02b9089424935959e22396c489e36' }, research.label), research.label && person_content.research_url.length > 0 && (h("hy-cta-button", { key: '390e5ed574412d899ac010ad6eb511fb8a6fdb78', "link-content": research_portal_title, "sc-label": research_portal_title, url: person_content.research_url, "is-external": "true", variant: CtaLinkButtonVariants.onWhiteBkgd }))), research.items && (h("hy-person-profile-listing", { key: 'bceb172e8f1b65900855eb6d26c4331534912cca', items: research.items, col: "col-1", textSpacingTight: true, "is-research": true, inline: true })), person_content.research_url.length > 0 && (h("div", { key: '41e5641420252352fc628e1d1bfb3f9909869199', class: "hy-profile-page__loader", role: "presentation" }, h("div", { key: '175fcade298a6724fa050e5844c79e64b070db9e' }), h("div", { key: '46e80f3f18952c6b0a9589bfc866af456461a911' }), h("div", { key: '5c6b19a344c8ba95fea4523df9f775e2e868bfb2' }), h("div", { key: '1e4fd4e37b437f0168b7665c8274c1532c0b3304' }))), person_content.research_url.length > 0 && this.viewportSize < 768 && (h("div", { key: '6a43cf02bd166d9e36adc8588fc68c45f911c668', class: "hy-profile-page__person-content-container" }, h("div", { key: 'a7ecd5f88eaba693e195c557b75e23202713436a', id: "accordion-container-person-content" }, person_content.publications && (h("ds-accordion", { key: 'aa8b834f98cd821e5b86cdd6105b6ece763e110f', "ds-heading-level": "3", "data-accordion-id": "publications" }, h("div", { key: 'f80ec4f79d5fdfb6aada5ae21e6249b455011f65', slot: "header" }, person_content.publications.label), h("div", { key: '5aa8d4f61af42f829e0704a0e73f240f5b13a9af', slot: "content", class: "accordion-content" }))), person_content.projects && (h("ds-accordion", { key: 'f611ed7d784b7f92d4a74c71b05c84182e53cd8d', "ds-heading-level": "3", "data-accordion-id": "projects" }, h("div", { key: 'b41e9e664e3ec2cc17a2fb8689d3fb31307689f2', slot: "header" }, person_content.projects.label), h("div", { key: '66705c1fcd371b3e7c7ad04ef599cd4c50816420', slot: "content", class: "accordion-content" }))), person_content.activities && (h("ds-accordion", { key: '20007a9ad3f90f519ce8b05121bb7e8ee720eac7', "ds-heading-level": "3", "data-accordion-id": "activities" }, h("div", { key: 'ace6fe67a0ac404faac9f26238758f118be25db4', slot: "header" }, person_content.activities.label), h("div", { key: '3c3f5299d07591f67ff3712e5bbe71dbd60ca752', slot: "content", class: "accordion-content" })))))), person_content.research_url.length > 0 && this.viewportSize >= 768 && (h("div", { key: '4c65d595043eb7d87c0d810f15455d58afac57fb', class: "hy-profile-page__person-content-container" }, h("hy-tabs", { key: '682063d4d3da86d0d63064d3db3294ac38224a56', "tab-id": "tabs-container-person-content" }, person_content.publications && (h("hy-tabs-item", { key: '6293c88c5e4e0c74bca596faddb6e087802f1673', "data-tab-id": "publications", "tab-title": person_content.publications.label })), person_content.projects && (h("hy-tabs-item", { key: 'fc2ae0b5fd2afd8d9a5ed7ceddecdf04394a6cf6', "data-tab-id": "projects", "tab-title": person_content.projects.label })), person_content.activities && (h("hy-tabs-item", { key: '74c3308a23ee8f2c7ba4ed480cd8b26174f58d86', "data-tab-id": "activities", "tab-title": person_content.activities.label }))))))))));
|
|
72
72
|
}
|
|
73
73
|
static get style() { return HyPersonProfileStyle0; }
|
|
74
74
|
}, [0, "hy-person-profile", {
|
|
@@ -59,13 +59,13 @@ const PersonProfile = class {
|
|
|
59
59
|
item.id, target: "_blank" }, item.name[organization_units.lang])))));
|
|
60
60
|
}))))), Object.keys(research_organizations.items).length > 0 && (index.h("section", { key: '2ddc88c5f06ff3ac277c9712d53ab23767c3b1d5', class: "hy-profile-page__organization-units-section" }, index.h("h3", { key: '4113522bef5f2efc055faaa535cf4407569705e7' }, research_organizations.label), index.h("ul", { key: '8866f531865c226734e0b7610ce8901d4a4c5556', class: "hy-profile-page__research-organizations" }, Object.values(research_organizations.items).map(([...item]) => (index.h("li", null, item.map((item, index$1) => {
|
|
61
61
|
return (index.h(index.Fragment, null, index$1 > 1 && (index.h("ul", null, index.h("li", null, index.h("span", null, index.h("hy-icon", { icon: "hy-icon-caret-right", size: 10 }), index.h("span", null, index.h("a", { href: organization_units.people_finder_path[organization_units.lang] +
|
|
62
|
-
"?
|
|
62
|
+
"?hrOrganizations.id[]=" +
|
|
63
63
|
item.id, target: "_blank" }, item.name[organization_units.lang])))))), index$1 == 1 && (index.h("span", null, index.h("a", { href: organization_units.people_finder_path[organization_units.lang] +
|
|
64
|
-
"?
|
|
64
|
+
"?hrOrganizations.id[]=" +
|
|
65
65
|
item.id, target: "_blank" }, item.name[organization_units.lang])))));
|
|
66
|
-
}))))))))), about && aboutDescriptionLength !== 0 && (index.h("section", { key: '
|
|
66
|
+
}))))))))), about && aboutDescriptionLength !== 0 && (index.h("section", { key: '0ac309494200f33ca94df8186de9844efba623cd', class: "hy-profile-page__section" }, about.description && (index.h(index.Fragment, { key: 'fb36486a018a3d50436605fb8455d2882f7bd37c' }, index.h("h2", { key: '52f499c2dd834a41d71ebce84d92148b15aae535' }, about.label), index.h("div", { key: '90af304c5f3f0350682dc2622285e8c409c89bbb', class: "hy-profile-page__person-about-text", innerHTML: !this.isFullAboutTextHidden && aboutDescriptionLength > 650
|
|
67
67
|
? trimmedAboutDescription
|
|
68
|
-
: about.description }))), aboutDescriptionLength > 650 && (index.h("button", { key: '
|
|
68
|
+
: about.description }))), aboutDescriptionLength > 650 && (index.h("button", { key: '2c738cf52c332647c741b3c884e9d85d71d9b08a', class: "hy-profile-page__person-about-text-toggle", onClick: () => this.toggleShowFullAboutText(), "aria-expanded": `${this.isFullAboutTextHidden ? "true" : "false"}` }, this.isFullAboutTextHidden ? this.hideFullAboutText : this.showFullAboutText)))), ((research && research.items.length > 0) || (person_content && person_content.research_url.length > 0)) && (index.h("section", { key: '0f276980904a2fb6f7f38634ba54d167c80098c8', class: "hy-profile-page__section" }, index.h("div", { key: '9fa071898ff9181f8440571fbf41ec512930c1dd', class: "hy-profile-page__section__research_title" }, research.label && index.h("h2", { key: '9f412798a8c02b9089424935959e22396c489e36' }, research.label), research.label && person_content.research_url.length > 0 && (index.h("hy-cta-button", { key: '390e5ed574412d899ac010ad6eb511fb8a6fdb78', "link-content": research_portal_title, "sc-label": research_portal_title, url: person_content.research_url, "is-external": "true", variant: utils.CtaLinkButtonVariants.onWhiteBkgd }))), research.items && (index.h("hy-person-profile-listing", { key: 'bceb172e8f1b65900855eb6d26c4331534912cca', items: research.items, col: "col-1", textSpacingTight: true, "is-research": true, inline: true })), person_content.research_url.length > 0 && (index.h("div", { key: '41e5641420252352fc628e1d1bfb3f9909869199', class: "hy-profile-page__loader", role: "presentation" }, index.h("div", { key: '175fcade298a6724fa050e5844c79e64b070db9e' }), index.h("div", { key: '46e80f3f18952c6b0a9589bfc866af456461a911' }), index.h("div", { key: '5c6b19a344c8ba95fea4523df9f775e2e868bfb2' }), index.h("div", { key: '1e4fd4e37b437f0168b7665c8274c1532c0b3304' }))), person_content.research_url.length > 0 && this.viewportSize < 768 && (index.h("div", { key: '6a43cf02bd166d9e36adc8588fc68c45f911c668', class: "hy-profile-page__person-content-container" }, index.h("div", { key: 'a7ecd5f88eaba693e195c557b75e23202713436a', id: "accordion-container-person-content" }, person_content.publications && (index.h("ds-accordion", { key: 'aa8b834f98cd821e5b86cdd6105b6ece763e110f', "ds-heading-level": "3", "data-accordion-id": "publications" }, index.h("div", { key: 'f80ec4f79d5fdfb6aada5ae21e6249b455011f65', slot: "header" }, person_content.publications.label), index.h("div", { key: '5aa8d4f61af42f829e0704a0e73f240f5b13a9af', slot: "content", class: "accordion-content" }))), person_content.projects && (index.h("ds-accordion", { key: 'f611ed7d784b7f92d4a74c71b05c84182e53cd8d', "ds-heading-level": "3", "data-accordion-id": "projects" }, index.h("div", { key: 'b41e9e664e3ec2cc17a2fb8689d3fb31307689f2', slot: "header" }, person_content.projects.label), index.h("div", { key: '66705c1fcd371b3e7c7ad04ef599cd4c50816420', slot: "content", class: "accordion-content" }))), person_content.activities && (index.h("ds-accordion", { key: '20007a9ad3f90f519ce8b05121bb7e8ee720eac7', "ds-heading-level": "3", "data-accordion-id": "activities" }, index.h("div", { key: 'ace6fe67a0ac404faac9f26238758f118be25db4', slot: "header" }, person_content.activities.label), index.h("div", { key: '3c3f5299d07591f67ff3712e5bbe71dbd60ca752', slot: "content", class: "accordion-content" })))))), person_content.research_url.length > 0 && this.viewportSize >= 768 && (index.h("div", { key: '4c65d595043eb7d87c0d810f15455d58afac57fb', class: "hy-profile-page__person-content-container" }, index.h("hy-tabs", { key: '682063d4d3da86d0d63064d3db3294ac38224a56', "tab-id": "tabs-container-person-content" }, person_content.publications && (index.h("hy-tabs-item", { key: '6293c88c5e4e0c74bca596faddb6e087802f1673', "data-tab-id": "publications", "tab-title": person_content.publications.label })), person_content.projects && (index.h("hy-tabs-item", { key: 'fc2ae0b5fd2afd8d9a5ed7ceddecdf04394a6cf6', "data-tab-id": "projects", "tab-title": person_content.projects.label })), person_content.activities && (index.h("hy-tabs-item", { key: '74c3308a23ee8f2c7ba4ed480cd8b26174f58d86', "data-tab-id": "activities", "tab-title": person_content.activities.label }))))))))));
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
PersonProfile.style = HyPersonProfileStyle0;
|
|
@@ -50,13 +50,13 @@ export class PersonProfile {
|
|
|
50
50
|
item.id, target: "_blank" }, item.name[organization_units.lang])))));
|
|
51
51
|
}))))), Object.keys(research_organizations.items).length > 0 && (h("section", { key: '2ddc88c5f06ff3ac277c9712d53ab23767c3b1d5', class: "hy-profile-page__organization-units-section" }, h("h3", { key: '4113522bef5f2efc055faaa535cf4407569705e7' }, research_organizations.label), h("ul", { key: '8866f531865c226734e0b7610ce8901d4a4c5556', class: "hy-profile-page__research-organizations" }, Object.values(research_organizations.items).map(([...item]) => (h("li", null, item.map((item, index) => {
|
|
52
52
|
return (h(Fragment, null, index > 1 && (h("ul", null, h("li", null, h("span", null, h("hy-icon", { icon: "hy-icon-caret-right", size: 10 }), h("span", null, h("a", { href: organization_units.people_finder_path[organization_units.lang] +
|
|
53
|
-
"?
|
|
53
|
+
"?hrOrganizations.id[]=" +
|
|
54
54
|
item.id, target: "_blank" }, item.name[organization_units.lang])))))), index == 1 && (h("span", null, h("a", { href: organization_units.people_finder_path[organization_units.lang] +
|
|
55
|
-
"?
|
|
55
|
+
"?hrOrganizations.id[]=" +
|
|
56
56
|
item.id, target: "_blank" }, item.name[organization_units.lang])))));
|
|
57
|
-
}))))))))), about && aboutDescriptionLength !== 0 && (h("section", { key: '
|
|
57
|
+
}))))))))), about && aboutDescriptionLength !== 0 && (h("section", { key: '0ac309494200f33ca94df8186de9844efba623cd', class: "hy-profile-page__section" }, about.description && (h(Fragment, { key: 'fb36486a018a3d50436605fb8455d2882f7bd37c' }, h("h2", { key: '52f499c2dd834a41d71ebce84d92148b15aae535' }, about.label), h("div", { key: '90af304c5f3f0350682dc2622285e8c409c89bbb', class: "hy-profile-page__person-about-text", innerHTML: !this.isFullAboutTextHidden && aboutDescriptionLength > 650
|
|
58
58
|
? trimmedAboutDescription
|
|
59
|
-
: about.description }))), aboutDescriptionLength > 650 && (h("button", { key: '
|
|
59
|
+
: about.description }))), aboutDescriptionLength > 650 && (h("button", { key: '2c738cf52c332647c741b3c884e9d85d71d9b08a', class: "hy-profile-page__person-about-text-toggle", onClick: () => this.toggleShowFullAboutText(), "aria-expanded": `${this.isFullAboutTextHidden ? "true" : "false"}` }, this.isFullAboutTextHidden ? this.hideFullAboutText : this.showFullAboutText)))), ((research && research.items.length > 0) || (person_content && person_content.research_url.length > 0)) && (h("section", { key: '0f276980904a2fb6f7f38634ba54d167c80098c8', class: "hy-profile-page__section" }, h("div", { key: '9fa071898ff9181f8440571fbf41ec512930c1dd', class: "hy-profile-page__section__research_title" }, research.label && h("h2", { key: '9f412798a8c02b9089424935959e22396c489e36' }, research.label), research.label && person_content.research_url.length > 0 && (h("hy-cta-button", { key: '390e5ed574412d899ac010ad6eb511fb8a6fdb78', "link-content": research_portal_title, "sc-label": research_portal_title, url: person_content.research_url, "is-external": "true", variant: CtaLinkButtonVariants.onWhiteBkgd }))), research.items && (h("hy-person-profile-listing", { key: 'bceb172e8f1b65900855eb6d26c4331534912cca', items: research.items, col: "col-1", textSpacingTight: true, "is-research": true, inline: true })), person_content.research_url.length > 0 && (h("div", { key: '41e5641420252352fc628e1d1bfb3f9909869199', class: "hy-profile-page__loader", role: "presentation" }, h("div", { key: '175fcade298a6724fa050e5844c79e64b070db9e' }), h("div", { key: '46e80f3f18952c6b0a9589bfc866af456461a911' }), h("div", { key: '5c6b19a344c8ba95fea4523df9f775e2e868bfb2' }), h("div", { key: '1e4fd4e37b437f0168b7665c8274c1532c0b3304' }))), person_content.research_url.length > 0 && this.viewportSize < 768 && (h("div", { key: '6a43cf02bd166d9e36adc8588fc68c45f911c668', class: "hy-profile-page__person-content-container" }, h("div", { key: 'a7ecd5f88eaba693e195c557b75e23202713436a', id: "accordion-container-person-content" }, person_content.publications && (h("ds-accordion", { key: 'aa8b834f98cd821e5b86cdd6105b6ece763e110f', "ds-heading-level": "3", "data-accordion-id": "publications" }, h("div", { key: 'f80ec4f79d5fdfb6aada5ae21e6249b455011f65', slot: "header" }, person_content.publications.label), h("div", { key: '5aa8d4f61af42f829e0704a0e73f240f5b13a9af', slot: "content", class: "accordion-content" }))), person_content.projects && (h("ds-accordion", { key: 'f611ed7d784b7f92d4a74c71b05c84182e53cd8d', "ds-heading-level": "3", "data-accordion-id": "projects" }, h("div", { key: 'b41e9e664e3ec2cc17a2fb8689d3fb31307689f2', slot: "header" }, person_content.projects.label), h("div", { key: '66705c1fcd371b3e7c7ad04ef599cd4c50816420', slot: "content", class: "accordion-content" }))), person_content.activities && (h("ds-accordion", { key: '20007a9ad3f90f519ce8b05121bb7e8ee720eac7', "ds-heading-level": "3", "data-accordion-id": "activities" }, h("div", { key: 'ace6fe67a0ac404faac9f26238758f118be25db4', slot: "header" }, person_content.activities.label), h("div", { key: '3c3f5299d07591f67ff3712e5bbe71dbd60ca752', slot: "content", class: "accordion-content" })))))), person_content.research_url.length > 0 && this.viewportSize >= 768 && (h("div", { key: '4c65d595043eb7d87c0d810f15455d58afac57fb', class: "hy-profile-page__person-content-container" }, h("hy-tabs", { key: '682063d4d3da86d0d63064d3db3294ac38224a56', "tab-id": "tabs-container-person-content" }, person_content.publications && (h("hy-tabs-item", { key: '6293c88c5e4e0c74bca596faddb6e087802f1673', "data-tab-id": "publications", "tab-title": person_content.publications.label })), person_content.projects && (h("hy-tabs-item", { key: 'fc2ae0b5fd2afd8d9a5ed7ceddecdf04394a6cf6', "data-tab-id": "projects", "tab-title": person_content.projects.label })), person_content.activities && (h("hy-tabs-item", { key: '74c3308a23ee8f2c7ba4ed480cd8b26174f58d86', "data-tab-id": "activities", "tab-title": person_content.activities.label }))))))))));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "hy-person-profile"; }
|
|
62
62
|
static get originalStyleUrls() {
|
|
@@ -55,13 +55,13 @@ const PersonProfile = class {
|
|
|
55
55
|
item.id, target: "_blank" }, item.name[organization_units.lang])))));
|
|
56
56
|
}))))), Object.keys(research_organizations.items).length > 0 && (h("section", { key: '2ddc88c5f06ff3ac277c9712d53ab23767c3b1d5', class: "hy-profile-page__organization-units-section" }, h("h3", { key: '4113522bef5f2efc055faaa535cf4407569705e7' }, research_organizations.label), h("ul", { key: '8866f531865c226734e0b7610ce8901d4a4c5556', class: "hy-profile-page__research-organizations" }, Object.values(research_organizations.items).map(([...item]) => (h("li", null, item.map((item, index) => {
|
|
57
57
|
return (h(Fragment, null, index > 1 && (h("ul", null, h("li", null, h("span", null, h("hy-icon", { icon: "hy-icon-caret-right", size: 10 }), h("span", null, h("a", { href: organization_units.people_finder_path[organization_units.lang] +
|
|
58
|
-
"?
|
|
58
|
+
"?hrOrganizations.id[]=" +
|
|
59
59
|
item.id, target: "_blank" }, item.name[organization_units.lang])))))), index == 1 && (h("span", null, h("a", { href: organization_units.people_finder_path[organization_units.lang] +
|
|
60
|
-
"?
|
|
60
|
+
"?hrOrganizations.id[]=" +
|
|
61
61
|
item.id, target: "_blank" }, item.name[organization_units.lang])))));
|
|
62
|
-
}))))))))), about && aboutDescriptionLength !== 0 && (h("section", { key: '
|
|
62
|
+
}))))))))), about && aboutDescriptionLength !== 0 && (h("section", { key: '0ac309494200f33ca94df8186de9844efba623cd', class: "hy-profile-page__section" }, about.description && (h(Fragment, { key: 'fb36486a018a3d50436605fb8455d2882f7bd37c' }, h("h2", { key: '52f499c2dd834a41d71ebce84d92148b15aae535' }, about.label), h("div", { key: '90af304c5f3f0350682dc2622285e8c409c89bbb', class: "hy-profile-page__person-about-text", innerHTML: !this.isFullAboutTextHidden && aboutDescriptionLength > 650
|
|
63
63
|
? trimmedAboutDescription
|
|
64
|
-
: about.description }))), aboutDescriptionLength > 650 && (h("button", { key: '
|
|
64
|
+
: about.description }))), aboutDescriptionLength > 650 && (h("button", { key: '2c738cf52c332647c741b3c884e9d85d71d9b08a', class: "hy-profile-page__person-about-text-toggle", onClick: () => this.toggleShowFullAboutText(), "aria-expanded": `${this.isFullAboutTextHidden ? "true" : "false"}` }, this.isFullAboutTextHidden ? this.hideFullAboutText : this.showFullAboutText)))), ((research && research.items.length > 0) || (person_content && person_content.research_url.length > 0)) && (h("section", { key: '0f276980904a2fb6f7f38634ba54d167c80098c8', class: "hy-profile-page__section" }, h("div", { key: '9fa071898ff9181f8440571fbf41ec512930c1dd', class: "hy-profile-page__section__research_title" }, research.label && h("h2", { key: '9f412798a8c02b9089424935959e22396c489e36' }, research.label), research.label && person_content.research_url.length > 0 && (h("hy-cta-button", { key: '390e5ed574412d899ac010ad6eb511fb8a6fdb78', "link-content": research_portal_title, "sc-label": research_portal_title, url: person_content.research_url, "is-external": "true", variant: CtaLinkButtonVariants.onWhiteBkgd }))), research.items && (h("hy-person-profile-listing", { key: 'bceb172e8f1b65900855eb6d26c4331534912cca', items: research.items, col: "col-1", textSpacingTight: true, "is-research": true, inline: true })), person_content.research_url.length > 0 && (h("div", { key: '41e5641420252352fc628e1d1bfb3f9909869199', class: "hy-profile-page__loader", role: "presentation" }, h("div", { key: '175fcade298a6724fa050e5844c79e64b070db9e' }), h("div", { key: '46e80f3f18952c6b0a9589bfc866af456461a911' }), h("div", { key: '5c6b19a344c8ba95fea4523df9f775e2e868bfb2' }), h("div", { key: '1e4fd4e37b437f0168b7665c8274c1532c0b3304' }))), person_content.research_url.length > 0 && this.viewportSize < 768 && (h("div", { key: '6a43cf02bd166d9e36adc8588fc68c45f911c668', class: "hy-profile-page__person-content-container" }, h("div", { key: 'a7ecd5f88eaba693e195c557b75e23202713436a', id: "accordion-container-person-content" }, person_content.publications && (h("ds-accordion", { key: 'aa8b834f98cd821e5b86cdd6105b6ece763e110f', "ds-heading-level": "3", "data-accordion-id": "publications" }, h("div", { key: 'f80ec4f79d5fdfb6aada5ae21e6249b455011f65', slot: "header" }, person_content.publications.label), h("div", { key: '5aa8d4f61af42f829e0704a0e73f240f5b13a9af', slot: "content", class: "accordion-content" }))), person_content.projects && (h("ds-accordion", { key: 'f611ed7d784b7f92d4a74c71b05c84182e53cd8d', "ds-heading-level": "3", "data-accordion-id": "projects" }, h("div", { key: 'b41e9e664e3ec2cc17a2fb8689d3fb31307689f2', slot: "header" }, person_content.projects.label), h("div", { key: '66705c1fcd371b3e7c7ad04ef599cd4c50816420', slot: "content", class: "accordion-content" }))), person_content.activities && (h("ds-accordion", { key: '20007a9ad3f90f519ce8b05121bb7e8ee720eac7', "ds-heading-level": "3", "data-accordion-id": "activities" }, h("div", { key: 'ace6fe67a0ac404faac9f26238758f118be25db4', slot: "header" }, person_content.activities.label), h("div", { key: '3c3f5299d07591f67ff3712e5bbe71dbd60ca752', slot: "content", class: "accordion-content" })))))), person_content.research_url.length > 0 && this.viewportSize >= 768 && (h("div", { key: '4c65d595043eb7d87c0d810f15455d58afac57fb', class: "hy-profile-page__person-content-container" }, h("hy-tabs", { key: '682063d4d3da86d0d63064d3db3294ac38224a56', "tab-id": "tabs-container-person-content" }, person_content.publications && (h("hy-tabs-item", { key: '6293c88c5e4e0c74bca596faddb6e087802f1673', "data-tab-id": "publications", "tab-title": person_content.publications.label })), person_content.projects && (h("hy-tabs-item", { key: 'fc2ae0b5fd2afd8d9a5ed7ceddecdf04394a6cf6', "data-tab-id": "projects", "tab-title": person_content.projects.label })), person_content.activities && (h("hy-tabs-item", { key: '74c3308a23ee8f2c7ba4ed480cd8b26174f58d86', "data-tab-id": "activities", "tab-title": person_content.activities.label }))))))))));
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
PersonProfile.style = HyPersonProfileStyle0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as i,F as a,H as t}from"./index-2ffe17c9.js";import{d as n}from"./utils-1e7f5184.js";let o;const r=class{constructor(i){e(this,i),this.personDataJson=void 0,this.showFullAboutText=void 0,this.hideFullAboutText=void 0,this.organizationItemsLabelText=void 0,this.peopleFinderReturnLink=void 0,this.peopleFinderReturnLabel=void 0,this.isFullAboutTextHidden=!1,this.viewportSize=void 0}componentWillLoad(){this.viewportSize=window.innerWidth}toggleShowFullAboutText(){this.isFullAboutTextHidden=!this.isFullAboutTextHidden}disconnectedCallback(){clearTimeout(o)}render(){const{name:e,job_title:r,additional_information:l,image_url:c,contact_information:p,organization_units:s,about:f,research:d,person_content:h}=JSON.parse(this.personDataJson),{organizations:g,research_organizations:b}=s.items,y=f.description,m=y.length;let _="";m>650&&(_=this.isFullAboutTextHidden?y+"...":y.substring(0,650)+"..."),window.addEventListener("resize",(()=>{clearTimeout(o),o=setTimeout((()=>{this.viewportSize=window.innerWidth}),250)}));const x=`${d.research_portal_label}: ${e}`;return i(t,{key:"cc770d22acd4544377b926f4ae4e03f4922c2a88"},i("section",{key:"827f4770c90c4ff5af78d8fe38f68facf036b769",class:"hy-profile-page"},i("a",{key:"900785d01a9d220edc47aae5163818aafc8eeedc",href:this.peopleFinderReturnLink,class:"hy-profile-page__back-button"},i("hy-icon",{key:"208c6d35652cb9bf1415b846068c8db2e09ee06b",icon:"hy-icon-arrow-left",size:24}),i("span",{key:"46e5f17de38afa4c2847c659bd984b52dbd0bffb"},this.peopleFinderReturnLabel)),i("section",{key:"a7041ff6cceceea586b7829588b7e208beb345a0",class:"hy-profile-page__section"},i("div",{key:"0eee0046efbeca7ae903cd4ad86cd05f26c45e2f",class:"hy-profile-page__person-information"},i("div",{key:"23d994c1ebd7bd5e301297be70f89bbde45615fe"},i("h1",{key:"42a3028918193c9e993dd60e165036dc7913390f",class:"hy-profile-page__name"},e),r&&i("p",{key:"282c7d4c1a71e06102164037ab6680485c995740",class:"hy-profile-page__job-title"},r),l&&i("p",{key:"9bfb908a7ee1dd831ee22fb3ad85f319e9c3d940",class:"hy-profile-page__additional-information"},l)),c?i("img",{src:c,alt:"",class:"hy-profile-page__image"}):i("div",{class:"hy-profile-page__image","aria-hidden":"true"})),p&&i("div",{key:"fdb332e9db092b45a5879b7adaab11883f9a0706",class:"hy-profile-page__contact-information"},p.label&&i("h2",{key:"6115b3c6313e6482f11f3e5e2cc149de890f229b"},p.label),p.items&&i("hy-person-profile-listing",{key:"3e0a11a26bde8db05f140724845e7ad0f2d3aca7",items:p.items,col:"col-4",withoutIcons:!0,textSpacingTight:!0}))),(g.items.length>0||b.items.length>0)&&i("section",{key:"b38fdc87ba10351fccefb7140c5f234fe1f38287",class:"hy-profile-page__section"},s.label&&i("h2",{key:"cfb2aa73fa484f14ad62902a58c4e2c7b9aeaa41"},s.label),g.items.length>0&&i("section",{key:"1670b10f9517063fa6a377676dc56d3ba651214b",class:"hy-profile-page__organization-units-section"},i("h3",{key:"5d7964786f6dc0659995c796ead8c34b08d5c211"},g.label),i("ul",{key:"abb1a0621a54c31b5b379f22cca1dd33ae2540c7",class:"hy-profile-page__organizations"},i("li",{key:"f9ac2f19ed0c1ca3c671718c2a0b3e4828c2570d"},g.items.map(((e,a)=>i("span",null,a>1&&i("hy-icon",{icon:"hy-icon-caret-right",size:10}),0!==a&&i("span",null,i("a",{href:s.people_finder_path[s.lang]+"?hrOrganizations.id[]="+e.id,target:"_blank"},e.name[s.lang])))))))),Object.keys(b.items).length>0&&i("section",{key:"2ddc88c5f06ff3ac277c9712d53ab23767c3b1d5",class:"hy-profile-page__organization-units-section"},i("h3",{key:"4113522bef5f2efc055faaa535cf4407569705e7"},b.label),i("ul",{key:"8866f531865c226734e0b7610ce8901d4a4c5556",class:"hy-profile-page__research-organizations"},Object.values(b.items).map((([...e])=>i("li",null,e.map(((e,t)=>i(a,null,t>1&&i("ul",null,i("li",null,i("span",null,i("hy-icon",{icon:"hy-icon-caret-right",size:10}),i("span",null,i("a",{href:s.people_finder_path[s.lang]+"?researchOrganizations.id[]="+e.id,target:"_blank"},e.name[s.lang]))))),1==t&&i("span",null,i("a",{href:s.people_finder_path[s.lang]+"?researchOrganizations.id[]="+e.id,target:"_blank"},e.name[s.lang]))))))))))),f&&0!==m&&i("section",{key:"f252f4f5f32df0e3d044648a761e0cec27e381b4",class:"hy-profile-page__section"},f.description&&i(a,{key:"0677b685159259e0836278e15029e983c76394fd"},i("h2",{key:"25981c3e02998ef0d48208a30254f085eca7ed80"},f.label),i("div",{key:"878beb7d9ec82c14a7e396ac6409e73b9ad65e44",class:"hy-profile-page__person-about-text",innerHTML:!this.isFullAboutTextHidden&&m>650?_:f.description})),m>650&&i("button",{key:"8445a77a71b51881ccf9393006fd7cef246d3252",class:"hy-profile-page__person-about-text-toggle",onClick:()=>this.toggleShowFullAboutText(),"aria-expanded":this.isFullAboutTextHidden?"true":"false"},this.isFullAboutTextHidden?this.hideFullAboutText:this.showFullAboutText)),(d&&d.items.length>0||h&&h.research_url.length>0)&&i("section",{key:"7252032cbdd74efde66d97b61ea8abf3bebff702",class:"hy-profile-page__section"},i("div",{key:"5cc57d6911b7017d0d346cca9acff3ab698fdfa8",class:"hy-profile-page__section__research_title"},d.label&&i("h2",{key:"ce453d9ca22b73346c522fb5e9040fdd4c1e11a8"},d.label),d.label&&h.research_url.length>0&&i("hy-cta-button",{key:"36089f12f65b6aca5796d72f190d13bf30652199","link-content":x,"sc-label":x,url:h.research_url,"is-external":"true",variant:n.onWhiteBkgd})),d.items&&i("hy-person-profile-listing",{key:"50f2928afc1b61e4ca256cc271d68c82b803bc6b",items:d.items,col:"col-1",textSpacingTight:!0,"is-research":!0,inline:!0}),h.research_url.length>0&&i("div",{key:"ac652d1531b7cc1f18c4b929424dcb4d9799120e",class:"hy-profile-page__loader",role:"presentation"},i("div",{key:"37e5bc9a972ba6619c8880ec38e7b69eb88cc420"}),i("div",{key:"cbe4d189f349961963e4799bbaf4e80a35f8bf62"}),i("div",{key:"4fda88f8d8a1bd9189a539049b13d41aca3c70c2"}),i("div",{key:"3743c1325628992184cb871c4ea1451fd378ec9f"})),h.research_url.length>0&&this.viewportSize<768&&i("div",{key:"9d9725d190aeadcedca8b632e001c78963e36326",class:"hy-profile-page__person-content-container"},i("div",{key:"0fced962f959823554b67137755b35a8e69aa65d",id:"accordion-container-person-content"},h.publications&&i("ds-accordion",{key:"05dbe3f09df63dbbe7f3bd287da2e82600fc0d01","ds-heading-level":"3","data-accordion-id":"publications"},i("div",{key:"f20fe325df468024a8da83e9fb5fc15243b5f71d",slot:"header"},h.publications.label),i("div",{key:"e6e5e209ef1bf2a8c6bd07b7f84ed87acebdbc27",slot:"content",class:"accordion-content"})),h.projects&&i("ds-accordion",{key:"5c4b18287ad477e9cf974345c36f1f07008ca2b1","ds-heading-level":"3","data-accordion-id":"projects"},i("div",{key:"610b651c1f059d18084a170d7373d9bac0dbe2dc",slot:"header"},h.projects.label),i("div",{key:"95220a908d22dec6f7d7937ff5c8652d89d1a311",slot:"content",class:"accordion-content"})),h.activities&&i("ds-accordion",{key:"b35b56a4dae11d82ab533f136e032f0ba885c0ae","ds-heading-level":"3","data-accordion-id":"activities"},i("div",{key:"d4e3a05fea502a3cf7041d004311f07b63c2b4c7",slot:"header"},h.activities.label),i("div",{key:"56033a09035b95acca19170cae45b2e5e0b8b682",slot:"content",class:"accordion-content"})))),h.research_url.length>0&&this.viewportSize>=768&&i("div",{key:"4d3dc03c374cf8de10768c912434a2fc4b052f71",class:"hy-profile-page__person-content-container"},i("hy-tabs",{key:"37f51a03f1c8a1129b332dea3b70c01282616414","tab-id":"tabs-container-person-content"},h.publications&&i("hy-tabs-item",{key:"1adbe5ba24c0f479e9c658473fcc6ee57c2a34de","data-tab-id":"publications","tab-title":h.publications.label}),h.projects&&i("hy-tabs-item",{key:"308a9cd3147ab2c4b487e9445d42a92308ca110a","data-tab-id":"projects","tab-title":h.projects.label}),h.activities&&i("hy-tabs-item",{key:"cddaa85724e3663fb22b5505e37cb55f3e37886d","data-tab-id":"activities","tab-title":h.activities.label}))))))}};r.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-profile-page__back-button{font-size:1rem;line-height:20px;font-weight:600;font-family:var(--main-font-family);letter-spacing:-0.5px;color:var(--brand-main-light);padding:12px 10px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;text-decoration:none;margin-left:-10px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:16px}@media (min-width: 48rem){.hy-profile-page__back-button{margin-bottom:24px}}.hy-profile-page__back-button hy-icon{margin-right:16px}.hy-profile-page__back-button hy-icon svg{fill:var(--brand-main-light)}.hy-profile-page__section{padding:32px 0}.hy-profile-page__section:first-of-type{padding:0 0 32px}.hy-profile-page__section:not(:first-of-type){border-top:1px solid var(--grayscale-medium)}.hy-profile-page__section__research_title>h2,.hy-profile-page__section>h2{font-size:1.625rem;line-height:32px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.52px;color:var(--grayscale-black);margin:0 0 32px}@media (min-width: 48rem){.hy-profile-page__section__research_title>h2,.hy-profile-page__section>h2{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}.hy-profile-page__section__research_title{display:block;-webkit-box-align:center;-ms-flex-align:center;align-items:center}@media (min-width: 48rem){.hy-profile-page__section__research_title{display:-webkit-box;display:-ms-flexbox;display:flex}}.hy-profile-page__section__research_title>hy-cta-button{margin:0 0 32px 0}@media (min-width: 48rem){.hy-profile-page__section__research_title>hy-cta-button{margin:0 0 32px auto}}.hy-profile-page__organization-units-section{font-family:var(--main-font-family);padding:0;margin:0;list-style:none}.hy-profile-page__organization-units-section h3{font-size:0.9375rem;line-height:18px;font-weight:700;letter-spacing:-0.28px;color:var(--grayscale-black);margin:0 0 8px}@media (min-width: 48rem){.hy-profile-page__organization-units-section h3{font-size:1.0625rem;line-height:20px;letter-spacing:-0.32px}}.hy-profile-page__organization-units-section{margin-top:24px}@media (min-width: 48rem){.hy-profile-page__organization-units-section{margin-top:32px}}.hy-profile-page__organization-units-section a{text-decoration:none;color:var(--link-blue)}.hy-profile-page__organization-units-section a:hover{text-decoration:underline}.hy-profile-page__organizations,.hy-profile-page__organizations ul,.hy-profile-page__research-organizations,.hy-profile-page__research-organizations ul{-webkit-box-align:start;-ms-flex-align:start;align-items:start;list-style:none;margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px}.hy-profile-page__organizations li,.hy-profile-page__research-organizations li{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.hy-profile-page__organizations li span,.hy-profile-page__research-organizations li span{font-size:0.9375rem;line-height:22px;font-weight:400;color:var(--grayscale-black)}@media (min-width: 48rem){.hy-profile-page__organizations li span,.hy-profile-page__research-organizations li span{font-size:1.0625rem;line-height:26px}}.hy-profile-page__organizations li>span,.hy-profile-page__research-organizations li>span{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.hy-profile-page__organizations li hy-icon,.hy-profile-page__research-organizations li hy-icon{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:22px;width:28px}@media (min-width: 48rem){.hy-profile-page__organizations li hy-icon,.hy-profile-page__research-organizations li hy-icon{height:26px}}.hy-profile-page__person-about-text{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-black)}@media (min-width: 48rem){.hy-profile-page__person-about-text{font-size:1.0625rem;line-height:26px}}.hy-profile-page__person-about-text a{color:var(--link-blue);text-decoration:none}.hy-profile-page__person-about-text a:hover{text-decoration:underline}.hy-profile-page__person-about-text-toggle{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--link-blue);background-color:transparent;border:0;padding:0;margin:0}@media (min-width: 48rem){.hy-profile-page__person-about-text-toggle{font-size:1.0625rem;line-height:26px}}.hy-profile-page__person-about-text-toggle:hover{cursor:pointer}.hy-profile-page__person-information{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px;margin-bottom:24px}@media (min-width: 48rem){.hy-profile-page__person-information{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:40px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}}.hy-profile-page__image{aspect-ratio:328/425;width:100%;max-width:328px;-o-object-fit:cover;object-fit:cover;background-color:var(--grayscale-background-box)}@media (min-width: 48rem){.hy-profile-page__image{max-width:194px}}.hy-profile-page__contact-information>h2{font-size:1.625rem;line-height:32px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.52px;color:var(--grayscale-black);margin:0 0 32px}@media (min-width: 48rem){.hy-profile-page__contact-information>h2{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}.hy-profile-page__name{font-size:2rem;line-height:38px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.8px;color:var(--grayscale-black);margin:0 0 4px;text-transform:uppercase}@media (min-width: 60rem){.hy-profile-page__name{font-size:2.875rem;line-height:54px;letter-spacing:-1.15px;margin:0 0 8px}}@media (min-width: 120.0625rem){.hy-profile-page__name{font-size:3.25rem;line-height:60px;letter-spacing:-1.3px}}.hy-profile-page__job-title{font-size:1rem;line-height:20px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.32px;color:var(--grayscale-black);margin:0 0 4px;text-transform:capitalize}@media (min-width: 60rem){.hy-profile-page__job-title{font-size:1.125rem;line-height:24px;letter-spacing:-0.36px}}.hy-profile-page__additional-information{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark-text);margin:0}@media (min-width: 60rem){.hy-profile-page__additional-information{font-size:1.0625rem;line-height:26px}}.hy-profile-page__person-content-container{display:none;margin-top:32px}@media (min-width: 48rem){.hy-profile-page__person-content-container{margin-top:44px}}.hy-profile-page__person-content-listing{display:grid;gap:32px;list-style:none;padding:0;margin:0}.hy-profile-page__person-content>h2{margin:0 0 8px;line-height:24px}.hy-profile-page__person-content>h2 a{font-size:1.125rem;line-height:24px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.36px;color:var(--link-blue);text-decoration:none}@media (min-width: 48rem){.hy-profile-page__person-content>h2 a{font-size:1.375rem;line-height:28px;letter-spacing:-0.44px}}.hy-profile-page__person-content>span,.hy-profile-page__person-content>p{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark-text)}@media (min-width: 48rem){.hy-profile-page__person-content>span,.hy-profile-page__person-content>p{font-size:1.0625rem;line-height:26px;letter-spacing:-0.44px}}.hy-profile-page__person-content>p{margin:8px 0 0}.hy-profile-page__loader{display:inline-block;position:relative;width:80px;height:80px;margin-top:32px}.hy-profile-page__loader.visible{display:block}.hy-profile-page__loader.hidden{display:none}@media (min-width: 48rem){.hy-profile-page__loader{margin-top:44px}}.hy-profile-page__loader div{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:6px solid var(--grayscale-white);border-radius:50%;-webkit-animation:loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;animation:loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color:var(--brand-main-light) transparent transparent transparent}.hy-profile-page__loader div:nth-child(1){-webkit-animation-delay:-0.45s;animation-delay:-0.45s}.hy-profile-page__loader div:nth-child(2){-webkit-animation-delay:-0.3s;animation-delay:-0.3s}.hy-profile-page__loader div:nth-child(3){-webkit-animation-delay:-0.15s;animation-delay:-0.15s}@-webkit-keyframes loader-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loader-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.hidden{display:none;visibility:hidden}";export{r as hy_person_profile}
|
|
1
|
+
import{r as e,h as i,F as a,H as t}from"./index-2ffe17c9.js";import{d as n}from"./utils-1e7f5184.js";let o;const r=class{constructor(i){e(this,i),this.personDataJson=void 0,this.showFullAboutText=void 0,this.hideFullAboutText=void 0,this.organizationItemsLabelText=void 0,this.peopleFinderReturnLink=void 0,this.peopleFinderReturnLabel=void 0,this.isFullAboutTextHidden=!1,this.viewportSize=void 0}componentWillLoad(){this.viewportSize=window.innerWidth}toggleShowFullAboutText(){this.isFullAboutTextHidden=!this.isFullAboutTextHidden}disconnectedCallback(){clearTimeout(o)}render(){const{name:e,job_title:r,additional_information:l,image_url:c,contact_information:p,organization_units:s,about:f,research:d,person_content:h}=JSON.parse(this.personDataJson),{organizations:g,research_organizations:b}=s.items,y=f.description,m=y.length;let _="";m>650&&(_=this.isFullAboutTextHidden?y+"...":y.substring(0,650)+"..."),window.addEventListener("resize",(()=>{clearTimeout(o),o=setTimeout((()=>{this.viewportSize=window.innerWidth}),250)}));const x=`${d.research_portal_label}: ${e}`;return i(t,{key:"cc770d22acd4544377b926f4ae4e03f4922c2a88"},i("section",{key:"827f4770c90c4ff5af78d8fe38f68facf036b769",class:"hy-profile-page"},i("a",{key:"900785d01a9d220edc47aae5163818aafc8eeedc",href:this.peopleFinderReturnLink,class:"hy-profile-page__back-button"},i("hy-icon",{key:"208c6d35652cb9bf1415b846068c8db2e09ee06b",icon:"hy-icon-arrow-left",size:24}),i("span",{key:"46e5f17de38afa4c2847c659bd984b52dbd0bffb"},this.peopleFinderReturnLabel)),i("section",{key:"a7041ff6cceceea586b7829588b7e208beb345a0",class:"hy-profile-page__section"},i("div",{key:"0eee0046efbeca7ae903cd4ad86cd05f26c45e2f",class:"hy-profile-page__person-information"},i("div",{key:"23d994c1ebd7bd5e301297be70f89bbde45615fe"},i("h1",{key:"42a3028918193c9e993dd60e165036dc7913390f",class:"hy-profile-page__name"},e),r&&i("p",{key:"282c7d4c1a71e06102164037ab6680485c995740",class:"hy-profile-page__job-title"},r),l&&i("p",{key:"9bfb908a7ee1dd831ee22fb3ad85f319e9c3d940",class:"hy-profile-page__additional-information"},l)),c?i("img",{src:c,alt:"",class:"hy-profile-page__image"}):i("div",{class:"hy-profile-page__image","aria-hidden":"true"})),p&&i("div",{key:"fdb332e9db092b45a5879b7adaab11883f9a0706",class:"hy-profile-page__contact-information"},p.label&&i("h2",{key:"6115b3c6313e6482f11f3e5e2cc149de890f229b"},p.label),p.items&&i("hy-person-profile-listing",{key:"3e0a11a26bde8db05f140724845e7ad0f2d3aca7",items:p.items,col:"col-4",withoutIcons:!0,textSpacingTight:!0}))),(g.items.length>0||b.items.length>0)&&i("section",{key:"b38fdc87ba10351fccefb7140c5f234fe1f38287",class:"hy-profile-page__section"},s.label&&i("h2",{key:"cfb2aa73fa484f14ad62902a58c4e2c7b9aeaa41"},s.label),g.items.length>0&&i("section",{key:"1670b10f9517063fa6a377676dc56d3ba651214b",class:"hy-profile-page__organization-units-section"},i("h3",{key:"5d7964786f6dc0659995c796ead8c34b08d5c211"},g.label),i("ul",{key:"abb1a0621a54c31b5b379f22cca1dd33ae2540c7",class:"hy-profile-page__organizations"},i("li",{key:"f9ac2f19ed0c1ca3c671718c2a0b3e4828c2570d"},g.items.map(((e,a)=>i("span",null,a>1&&i("hy-icon",{icon:"hy-icon-caret-right",size:10}),0!==a&&i("span",null,i("a",{href:s.people_finder_path[s.lang]+"?hrOrganizations.id[]="+e.id,target:"_blank"},e.name[s.lang])))))))),Object.keys(b.items).length>0&&i("section",{key:"2ddc88c5f06ff3ac277c9712d53ab23767c3b1d5",class:"hy-profile-page__organization-units-section"},i("h3",{key:"4113522bef5f2efc055faaa535cf4407569705e7"},b.label),i("ul",{key:"8866f531865c226734e0b7610ce8901d4a4c5556",class:"hy-profile-page__research-organizations"},Object.values(b.items).map((([...e])=>i("li",null,e.map(((e,t)=>i(a,null,t>1&&i("ul",null,i("li",null,i("span",null,i("hy-icon",{icon:"hy-icon-caret-right",size:10}),i("span",null,i("a",{href:s.people_finder_path[s.lang]+"?hrOrganizations.id[]="+e.id,target:"_blank"},e.name[s.lang]))))),1==t&&i("span",null,i("a",{href:s.people_finder_path[s.lang]+"?hrOrganizations.id[]="+e.id,target:"_blank"},e.name[s.lang]))))))))))),f&&0!==m&&i("section",{key:"0ac309494200f33ca94df8186de9844efba623cd",class:"hy-profile-page__section"},f.description&&i(a,{key:"fb36486a018a3d50436605fb8455d2882f7bd37c"},i("h2",{key:"52f499c2dd834a41d71ebce84d92148b15aae535"},f.label),i("div",{key:"90af304c5f3f0350682dc2622285e8c409c89bbb",class:"hy-profile-page__person-about-text",innerHTML:!this.isFullAboutTextHidden&&m>650?_:f.description})),m>650&&i("button",{key:"2c738cf52c332647c741b3c884e9d85d71d9b08a",class:"hy-profile-page__person-about-text-toggle",onClick:()=>this.toggleShowFullAboutText(),"aria-expanded":this.isFullAboutTextHidden?"true":"false"},this.isFullAboutTextHidden?this.hideFullAboutText:this.showFullAboutText)),(d&&d.items.length>0||h&&h.research_url.length>0)&&i("section",{key:"0f276980904a2fb6f7f38634ba54d167c80098c8",class:"hy-profile-page__section"},i("div",{key:"9fa071898ff9181f8440571fbf41ec512930c1dd",class:"hy-profile-page__section__research_title"},d.label&&i("h2",{key:"9f412798a8c02b9089424935959e22396c489e36"},d.label),d.label&&h.research_url.length>0&&i("hy-cta-button",{key:"390e5ed574412d899ac010ad6eb511fb8a6fdb78","link-content":x,"sc-label":x,url:h.research_url,"is-external":"true",variant:n.onWhiteBkgd})),d.items&&i("hy-person-profile-listing",{key:"bceb172e8f1b65900855eb6d26c4331534912cca",items:d.items,col:"col-1",textSpacingTight:!0,"is-research":!0,inline:!0}),h.research_url.length>0&&i("div",{key:"41e5641420252352fc628e1d1bfb3f9909869199",class:"hy-profile-page__loader",role:"presentation"},i("div",{key:"175fcade298a6724fa050e5844c79e64b070db9e"}),i("div",{key:"46e80f3f18952c6b0a9589bfc866af456461a911"}),i("div",{key:"5c6b19a344c8ba95fea4523df9f775e2e868bfb2"}),i("div",{key:"1e4fd4e37b437f0168b7665c8274c1532c0b3304"})),h.research_url.length>0&&this.viewportSize<768&&i("div",{key:"6a43cf02bd166d9e36adc8588fc68c45f911c668",class:"hy-profile-page__person-content-container"},i("div",{key:"a7ecd5f88eaba693e195c557b75e23202713436a",id:"accordion-container-person-content"},h.publications&&i("ds-accordion",{key:"aa8b834f98cd821e5b86cdd6105b6ece763e110f","ds-heading-level":"3","data-accordion-id":"publications"},i("div",{key:"f80ec4f79d5fdfb6aada5ae21e6249b455011f65",slot:"header"},h.publications.label),i("div",{key:"5aa8d4f61af42f829e0704a0e73f240f5b13a9af",slot:"content",class:"accordion-content"})),h.projects&&i("ds-accordion",{key:"f611ed7d784b7f92d4a74c71b05c84182e53cd8d","ds-heading-level":"3","data-accordion-id":"projects"},i("div",{key:"b41e9e664e3ec2cc17a2fb8689d3fb31307689f2",slot:"header"},h.projects.label),i("div",{key:"66705c1fcd371b3e7c7ad04ef599cd4c50816420",slot:"content",class:"accordion-content"})),h.activities&&i("ds-accordion",{key:"20007a9ad3f90f519ce8b05121bb7e8ee720eac7","ds-heading-level":"3","data-accordion-id":"activities"},i("div",{key:"ace6fe67a0ac404faac9f26238758f118be25db4",slot:"header"},h.activities.label),i("div",{key:"3c3f5299d07591f67ff3712e5bbe71dbd60ca752",slot:"content",class:"accordion-content"})))),h.research_url.length>0&&this.viewportSize>=768&&i("div",{key:"4c65d595043eb7d87c0d810f15455d58afac57fb",class:"hy-profile-page__person-content-container"},i("hy-tabs",{key:"682063d4d3da86d0d63064d3db3294ac38224a56","tab-id":"tabs-container-person-content"},h.publications&&i("hy-tabs-item",{key:"6293c88c5e4e0c74bca596faddb6e087802f1673","data-tab-id":"publications","tab-title":h.publications.label}),h.projects&&i("hy-tabs-item",{key:"fc2ae0b5fd2afd8d9a5ed7ceddecdf04394a6cf6","data-tab-id":"projects","tab-title":h.projects.label}),h.activities&&i("hy-tabs-item",{key:"74c3308a23ee8f2c7ba4ed480cd8b26174f58d86","data-tab-id":"activities","tab-title":h.activities.label}))))))}};r.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-profile-page__back-button{font-size:1rem;line-height:20px;font-weight:600;font-family:var(--main-font-family);letter-spacing:-0.5px;color:var(--brand-main-light);padding:12px 10px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;text-decoration:none;margin-left:-10px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:16px}@media (min-width: 48rem){.hy-profile-page__back-button{margin-bottom:24px}}.hy-profile-page__back-button hy-icon{margin-right:16px}.hy-profile-page__back-button hy-icon svg{fill:var(--brand-main-light)}.hy-profile-page__section{padding:32px 0}.hy-profile-page__section:first-of-type{padding:0 0 32px}.hy-profile-page__section:not(:first-of-type){border-top:1px solid var(--grayscale-medium)}.hy-profile-page__section__research_title>h2,.hy-profile-page__section>h2{font-size:1.625rem;line-height:32px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.52px;color:var(--grayscale-black);margin:0 0 32px}@media (min-width: 48rem){.hy-profile-page__section__research_title>h2,.hy-profile-page__section>h2{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}.hy-profile-page__section__research_title{display:block;-webkit-box-align:center;-ms-flex-align:center;align-items:center}@media (min-width: 48rem){.hy-profile-page__section__research_title{display:-webkit-box;display:-ms-flexbox;display:flex}}.hy-profile-page__section__research_title>hy-cta-button{margin:0 0 32px 0}@media (min-width: 48rem){.hy-profile-page__section__research_title>hy-cta-button{margin:0 0 32px auto}}.hy-profile-page__organization-units-section{font-family:var(--main-font-family);padding:0;margin:0;list-style:none}.hy-profile-page__organization-units-section h3{font-size:0.9375rem;line-height:18px;font-weight:700;letter-spacing:-0.28px;color:var(--grayscale-black);margin:0 0 8px}@media (min-width: 48rem){.hy-profile-page__organization-units-section h3{font-size:1.0625rem;line-height:20px;letter-spacing:-0.32px}}.hy-profile-page__organization-units-section{margin-top:24px}@media (min-width: 48rem){.hy-profile-page__organization-units-section{margin-top:32px}}.hy-profile-page__organization-units-section a{text-decoration:none;color:var(--link-blue)}.hy-profile-page__organization-units-section a:hover{text-decoration:underline}.hy-profile-page__organizations,.hy-profile-page__organizations ul,.hy-profile-page__research-organizations,.hy-profile-page__research-organizations ul{-webkit-box-align:start;-ms-flex-align:start;align-items:start;list-style:none;margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:8px}.hy-profile-page__organizations li,.hy-profile-page__research-organizations li{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.hy-profile-page__organizations li span,.hy-profile-page__research-organizations li span{font-size:0.9375rem;line-height:22px;font-weight:400;color:var(--grayscale-black)}@media (min-width: 48rem){.hy-profile-page__organizations li span,.hy-profile-page__research-organizations li span{font-size:1.0625rem;line-height:26px}}.hy-profile-page__organizations li>span,.hy-profile-page__research-organizations li>span{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.hy-profile-page__organizations li hy-icon,.hy-profile-page__research-organizations li hy-icon{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:22px;width:28px}@media (min-width: 48rem){.hy-profile-page__organizations li hy-icon,.hy-profile-page__research-organizations li hy-icon{height:26px}}.hy-profile-page__person-about-text{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-black)}@media (min-width: 48rem){.hy-profile-page__person-about-text{font-size:1.0625rem;line-height:26px}}.hy-profile-page__person-about-text a{color:var(--link-blue);text-decoration:none}.hy-profile-page__person-about-text a:hover{text-decoration:underline}.hy-profile-page__person-about-text-toggle{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--link-blue);background-color:transparent;border:0;padding:0;margin:0}@media (min-width: 48rem){.hy-profile-page__person-about-text-toggle{font-size:1.0625rem;line-height:26px}}.hy-profile-page__person-about-text-toggle:hover{cursor:pointer}.hy-profile-page__person-information{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:16px;margin-bottom:24px}@media (min-width: 48rem){.hy-profile-page__person-information{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:40px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}}.hy-profile-page__image{aspect-ratio:328/425;width:100%;max-width:328px;-o-object-fit:cover;object-fit:cover;background-color:var(--grayscale-background-box)}@media (min-width: 48rem){.hy-profile-page__image{max-width:194px}}.hy-profile-page__contact-information>h2{font-size:1.625rem;line-height:32px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.52px;color:var(--grayscale-black);margin:0 0 32px}@media (min-width: 48rem){.hy-profile-page__contact-information>h2{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}.hy-profile-page__name{font-size:2rem;line-height:38px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.8px;color:var(--grayscale-black);margin:0 0 4px;text-transform:uppercase}@media (min-width: 60rem){.hy-profile-page__name{font-size:2.875rem;line-height:54px;letter-spacing:-1.15px;margin:0 0 8px}}@media (min-width: 120.0625rem){.hy-profile-page__name{font-size:3.25rem;line-height:60px;letter-spacing:-1.3px}}.hy-profile-page__job-title{font-size:1rem;line-height:20px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.32px;color:var(--grayscale-black);margin:0 0 4px;text-transform:capitalize}@media (min-width: 60rem){.hy-profile-page__job-title{font-size:1.125rem;line-height:24px;letter-spacing:-0.36px}}.hy-profile-page__additional-information{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark-text);margin:0}@media (min-width: 60rem){.hy-profile-page__additional-information{font-size:1.0625rem;line-height:26px}}.hy-profile-page__person-content-container{display:none;margin-top:32px}@media (min-width: 48rem){.hy-profile-page__person-content-container{margin-top:44px}}.hy-profile-page__person-content-listing{display:grid;gap:32px;list-style:none;padding:0;margin:0}.hy-profile-page__person-content>h2{margin:0 0 8px;line-height:24px}.hy-profile-page__person-content>h2 a{font-size:1.125rem;line-height:24px;font-weight:700;font-family:var(--main-font-family);letter-spacing:-0.36px;color:var(--link-blue);text-decoration:none}@media (min-width: 48rem){.hy-profile-page__person-content>h2 a{font-size:1.375rem;line-height:28px;letter-spacing:-0.44px}}.hy-profile-page__person-content>span,.hy-profile-page__person-content>p{font-size:0.9375rem;line-height:22px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark-text)}@media (min-width: 48rem){.hy-profile-page__person-content>span,.hy-profile-page__person-content>p{font-size:1.0625rem;line-height:26px;letter-spacing:-0.44px}}.hy-profile-page__person-content>p{margin:8px 0 0}.hy-profile-page__loader{display:inline-block;position:relative;width:80px;height:80px;margin-top:32px}.hy-profile-page__loader.visible{display:block}.hy-profile-page__loader.hidden{display:none}@media (min-width: 48rem){.hy-profile-page__loader{margin-top:44px}}.hy-profile-page__loader div{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:6px solid var(--grayscale-white);border-radius:50%;-webkit-animation:loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;animation:loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color:var(--brand-main-light) transparent transparent transparent}.hy-profile-page__loader div:nth-child(1){-webkit-animation-delay:-0.45s;animation-delay:-0.45s}.hy-profile-page__loader div:nth-child(2){-webkit-animation-delay:-0.3s;animation-delay:-0.3s}.hy-profile-page__loader div:nth-child(3){-webkit-animation-delay:-0.15s;animation-delay:-0.15s}@-webkit-keyframes loader-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loader-ring{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.hidden{display:none;visibility:hidden}";export{r as hy_person_profile}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcenteratunihelsinki/huds-lib",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Helsinki University Design System library",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"pre-commit": "pretty-quick --staged"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "d67ce0732946302fe9ddf401ab0b2bf29616e1b4"
|
|
77
77
|
}
|