@uoguelph/web-components 1.1.3 → 1.2.0-rc.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/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/{index-469a8261.js → index-06b58d35.js} +5 -5
- package/dist/cjs/{index-4e3091d0.js → index-cdb046b4.js} +134 -40
- package/dist/cjs/loader.cjs.js +5 -3
- package/dist/cjs/uofg-alert.cjs.entry.js +11 -10
- package/dist/cjs/uofg-back-to-top_5.cjs.entry.js +1374 -0
- package/dist/cjs/uofg-modal.cjs.entry.js +152 -142
- package/dist/cjs/uofg-web-components.cjs.js +6 -4
- package/dist/cjs/utils-3d4b7e2e.js +16 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/uofg-alert/uofg-alert.css +1 -75
- package/dist/collection/components/uofg-alert/uofg-alert.js +15 -15
- package/dist/collection/components/uofg-back-to-top/uofg-back-to-top.css +1 -40
- package/dist/collection/components/uofg-back-to-top/uofg-back-to-top.js +66 -63
- package/dist/collection/components/uofg-card/uofg-card.css +1 -95
- package/dist/collection/components/uofg-card/uofg-card.js +42 -40
- package/dist/collection/components/uofg-footer/uofg-footer.css +1 -249
- package/dist/collection/components/uofg-footer/uofg-footer.js +132 -40
- package/dist/collection/components/uofg-header/uofg-header.css +1 -542
- package/dist/collection/components/uofg-header/uofg-header.js +238 -157
- package/dist/collection/components/uofg-menu/uofg-menu.js +414 -410
- package/dist/collection/components/uofg-modal/uofg-modal.css +1 -113
- package/dist/collection/components/uofg-modal/uofg-modal.js +393 -386
- package/dist/collection/utils/font-awesome-icon.js +4 -4
- package/dist/collection/utils/utils.js +5 -5
- package/dist/components/font-awesome-icon.js +4 -4
- package/dist/components/uofg-alert.d.ts +2 -2
- package/dist/components/uofg-alert.js +22 -21
- package/dist/components/uofg-back-to-top.d.ts +2 -2
- package/dist/components/uofg-back-to-top.js +38 -34
- package/dist/components/uofg-card.d.ts +2 -2
- package/dist/components/uofg-card.js +28 -25
- package/dist/components/uofg-footer.d.ts +2 -2
- package/dist/components/uofg-footer.js +243 -115
- package/dist/components/uofg-header.d.ts +2 -2
- package/dist/components/uofg-header.js +234 -143
- package/dist/components/uofg-menu.d.ts +2 -2
- package/dist/components/uofg-menu2.js +245 -239
- package/dist/components/uofg-modal.d.ts +2 -2
- package/dist/components/uofg-modal.js +176 -166
- package/dist/components/utils.js +4 -4
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/{index-f644a780.js → index-0b0002d2.js} +134 -40
- package/dist/esm/{index-26c6582e.js → index-e685921a.js} +5 -5
- package/dist/esm/loader.js +6 -4
- package/dist/esm/uofg-alert.entry.js +11 -10
- package/dist/esm/uofg-back-to-top_5.entry.js +1366 -0
- package/dist/esm/uofg-modal.entry.js +152 -142
- package/dist/esm/uofg-web-components.js +7 -5
- package/dist/esm/utils-379bb71a.js +12 -0
- package/dist/types/components/uofg-alert/uofg-alert.d.ts +1 -1
- package/dist/types/components/uofg-back-to-top/uofg-back-to-top.d.ts +8 -8
- package/dist/types/components/uofg-card/uofg-card.d.ts +5 -5
- package/dist/types/components/uofg-footer/uofg-footer.d.ts +6 -6
- package/dist/types/components/uofg-header/uofg-header.d.ts +30 -29
- package/dist/types/components/uofg-menu/uofg-menu.d.ts +65 -65
- package/dist/types/components/uofg-modal/uofg-modal.d.ts +70 -70
- package/dist/types/components.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +8 -0
- package/dist/types/utils/font-awesome-icon.d.ts +1 -1
- package/dist/uofg-web-components/{p-afff1fb0.js → p-6fa0f8f6.js} +1 -1
- package/dist/uofg-web-components/p-7569d8f2.entry.js +1 -0
- package/dist/uofg-web-components/p-c0449c39.entry.js +1 -0
- package/dist/uofg-web-components/p-e1255160.js +1 -0
- package/dist/uofg-web-components/p-ee27db22.js +2 -0
- package/dist/uofg-web-components/p-fde6370b.entry.js +1 -0
- package/dist/uofg-web-components/uofg-web-components.css +1 -1
- package/dist/uofg-web-components/uofg-web-components.esm.js +1 -1
- package/package.json +10 -5
- package/dist/cjs/uofg-back-to-top_4.cjs.entry.js +0 -1139
- package/dist/cjs/uofg-card.cjs.entry.js +0 -21
- package/dist/cjs/utils-582c8cb9.js +0 -16
- package/dist/components/_commonjsHelpers.js +0 -15
- package/dist/esm/uofg-back-to-top_4.entry.js +0 -1132
- package/dist/esm/uofg-card.entry.js +0 -17
- package/dist/esm/utils-cfa32fa2.js +0 -12
- package/dist/uofg-web-components/p-579599fd.js +0 -2
- package/dist/uofg-web-components/p-5f29369c.entry.js +0 -1
- package/dist/uofg-web-components/p-b55cb256.entry.js +0 -1
- package/dist/uofg-web-components/p-b81838c7.entry.js +0 -1
- package/dist/uofg-web-components/p-f42ff310.entry.js +0 -1
- /package/dist/uofg-web-components/{p-826dc478.js → p-fec87f9d.js} +0 -0
|
@@ -17,45 +17,137 @@ import { faLinkedin } from "@fortawesome/free-brands-svg-icons/faLinkedin";
|
|
|
17
17
|
import { faTiktok } from "@fortawesome/free-brands-svg-icons/faTiktok";
|
|
18
18
|
import { faTwitterSquare } from "@fortawesome/free-brands-svg-icons/faTwitterSquare";
|
|
19
19
|
import { faYoutube } from "@fortawesome/free-brands-svg-icons/faYoutube";
|
|
20
|
-
const
|
|
21
|
-
|
|
20
|
+
const socials = [
|
|
21
|
+
{
|
|
22
|
+
text: 'Twitter',
|
|
23
|
+
icon: faTwitterSquare,
|
|
24
|
+
href: 'https://twitter.com/uofg',
|
|
25
|
+
class: 'hocus:tw-text-[#1da1f2]',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
text: 'Facebook',
|
|
29
|
+
icon: faFacebookSquare,
|
|
30
|
+
href: 'https://www.facebook.com/uofguelph',
|
|
31
|
+
class: 'hocus:tw-text-[#4267b2]',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
text: 'Instagram',
|
|
35
|
+
icon: faInstagram,
|
|
36
|
+
href: 'https://www.instagram.com/uofguelph/',
|
|
37
|
+
class: 'hocus:tw-text-[#e1306c]',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
text: 'Youtube',
|
|
41
|
+
icon: faYoutube,
|
|
42
|
+
href: 'https://www.youtube.com/user/uofguelph',
|
|
43
|
+
class: 'hocus:tw-text-[#f00]',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
text: 'LinkedIn',
|
|
47
|
+
icon: faLinkedin,
|
|
48
|
+
href: 'https://www.linkedin.com/school/university-of-guelph/',
|
|
49
|
+
class: 'hocus:tw-text-[#0077b5]',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
text: 'TikTok',
|
|
53
|
+
icon: faTiktok,
|
|
54
|
+
href: 'https://www.tiktok.com/@uofguelph',
|
|
55
|
+
class: 'hocus:tw-text-[#f00]',
|
|
56
|
+
},
|
|
57
|
+
];
|
|
58
|
+
const links = [
|
|
59
|
+
{
|
|
60
|
+
text: 'Accessibility',
|
|
61
|
+
icon: faUniversalAccess,
|
|
62
|
+
href: 'https://www.uoguelph.ca/diversity-human-rights/accessibility-u-g',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
text: 'Privacy',
|
|
66
|
+
icon: faKey,
|
|
67
|
+
href: 'https://www.uoguelph.ca/web/privacy/',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
text: 'Site Map',
|
|
71
|
+
icon: faSitemap,
|
|
72
|
+
href: 'https://www.uoguelph.ca/sitemap',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
text: 'Status Page',
|
|
76
|
+
icon: faCircleCheck,
|
|
77
|
+
href: 'https://uoguelph.statuspage.io/',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
text: 'Land Acknowledgement',
|
|
81
|
+
icon: faTree,
|
|
82
|
+
href: 'https://www.uoguelph.ca/land-acknowledgement/',
|
|
83
|
+
title: 'The University of Guelph resides on the treaty lands and territory of the Mississaugas of the Credit. We recognize that today this gathering place is home to many First Nations, Inuit and Métis peoples and acknowledging them reminds us of our collective responsibility to the land where we learn and work.',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
text: 'Careers',
|
|
87
|
+
icon: faBriefcase,
|
|
88
|
+
href: 'https://www.uoguelph.ca/hr/careers-guelph/current-opportunities',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
text: 'Undergraduate Calendar',
|
|
92
|
+
icon: faCalendar,
|
|
93
|
+
href: 'https://www.uoguelph.ca/registrar/calendars/undergraduate/current/',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
text: 'Graduate Calendar',
|
|
97
|
+
icon: faCalendar,
|
|
98
|
+
href: 'https://www.uoguelph.ca/registrar/calendars/graduate/current/',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
text: 'Program Plans',
|
|
102
|
+
icon: faList,
|
|
103
|
+
href: 'https://admission.uoguelph.ca/programs',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
text: 'Give to U of G',
|
|
107
|
+
icon: faHandHoldingHeart,
|
|
108
|
+
href: 'https://www.alumni.uoguelph.ca/give-to-guelph/how-to-give',
|
|
109
|
+
},
|
|
110
|
+
];
|
|
22
111
|
export class UofgFooter {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
112
|
+
constructor() {
|
|
113
|
+
this.extraLinks = [];
|
|
114
|
+
}
|
|
115
|
+
connectedCallback() {
|
|
116
|
+
var _a;
|
|
117
|
+
this.updateExtraLinks();
|
|
118
|
+
(_a = this.observer) !== null && _a !== void 0 ? _a : (this.observer = new MutationObserver(() => {
|
|
119
|
+
this.updateExtraLinks();
|
|
120
|
+
}));
|
|
121
|
+
this.observer.observe(this.el, { childList: true, subtree: true });
|
|
122
|
+
}
|
|
123
|
+
updateExtraLinks() {
|
|
124
|
+
var _a;
|
|
125
|
+
this.extraLinks = Array.from((_a = this.el) === null || _a === void 0 ? void 0 : _a.children)
|
|
126
|
+
.filter(child => child.tagName === 'A')
|
|
127
|
+
.map(child => ({ text: child.textContent, href: child.getAttribute('href') }));
|
|
128
|
+
}
|
|
129
|
+
render() {
|
|
130
|
+
return (h("footer", { key: '7e1c2c333b0690bdf48a0c8646e4bc1660cafc74' }, this.extraLinks.length > 0 && (h("ul", { class: "tw-flex tw-flex-wrap tw-items-center tw-justify-center tw-bg-uofg-blue-50 tw-p-6 tw-px-[max(calc((100%-1320px)/2),2rem)]" }, this.extraLinks.map(link => (h("li", { class: "tw-border-0 tw-border-r-2 tw-border-solid tw-border-uofg-blue-100 tw-p-2 first:tw-border-l-2" }, h("a", { class: "tw-text-uofg-blue-500 tw-transition-colors hocus:tw-text-uofg-blue-950", href: link.href }, link.text)))))), h("div", { key: '2a7bc3b10735ecba41c936895b12857e02be8b39', class: "tw-flex tw-flex-col tw-content-center tw-gap-8 tw-bg-black tw-px-[max(calc((100%-1320px)/2),2rem)] tw-py-8 tw-text-white md:tw-grid md:tw-grid-cols-2 lg:tw-grid-cols-4" }, h("div", { key: 'e4ad770842e3d6afe36b94805d5b593c110a8abe', class: "tw-flex tw-flex-col tw-justify-between tw-gap-4" }, h("a", { key: '8f3c64e2b3bc247c286389182b2923ffae62eb79', href: "https://www.uoguelph.ca/improve-life", "aria-label": "Improve Life", class: "tw-flex tw-transition-opacity hocus:tw-opacity-75 [&>svg]:tw-h-[1.6em]", innerHTML: improveLifeLogo }), h("ul", { key: '52cc20ceea75b7688ea8084dd8a68604e8721141', class: "tw-flex tw-gap-3 tw-text-4xl [&>li]:tw-contents" }, socials.map(item => (h("li", null, h("a", { href: item.href, "aria-label": item.text, class: `tw-transition-colors [&>svg]:tw-h-[1em] [&>svg]:tw-fill-current ${item.class}` }, h(FontAwesomeIcon, { icon: item.icon })))))), h("a", { key: '02593d4e251af9dcc45ea58cc9fde9a48e94e8d7', class: "tw-w-fit tw-border-0 tw-border-b-2 tw-border-dotted tw-border-transparent tw-transition-colors hocus:tw-border-white", href: "https://www.uoguelph.ca/web/socialmedia/" }, "Social Media Directory"), h("a", { key: 'cb4965e8d0aefbe2051c990ed664b4dbba3c1df1', class: "tw-w-fit tw-border-0 tw-border-b-2 tw-border-dotted tw-border-transparent tw-transition-colors hocus:tw-border-white", href: "https://www.uoguelph.ca/web/" }, "\u00A9 ", new Date().getFullYear(), " University of Guelph")), h("div", { key: '5d76bcee6f7080194c062c35a545220333c1e2f4', class: "md:tw-col-span-2 md:tw-row-start-2 lg:tw-row-auto" }, h("ul", { key: 'e6d48fdac5a3c2aa5481bd3aaa6521815ab2977e', class: "tw-flex tw-flex-col tw-gap-4 md:tw-grid md:tw-grid-cols-2 [&>li]:tw-contents" }, links.map(item => {
|
|
131
|
+
var _a;
|
|
132
|
+
return (h("li", null, h("a", { href: item.href, title: (_a = item === null || item === void 0 ? void 0 : item.title) !== null && _a !== void 0 ? _a : '', class: "tw-flex tw-w-fit tw-gap-3 tw-border-0 tw-border-b-2 tw-border-dotted tw-border-transparent tw-transition-colors hocus:tw-border-white [&>svg]:tw-h-[1em] [&>svg]:tw-fill-uofg-yellow" }, h(FontAwesomeIcon, { icon: item.icon }), h("span", null, item.text))));
|
|
133
|
+
}))), h("address", { key: 'e5941955d0f8b8a534980396efeaa1c9c49a919a', class: "tw-flex tw-flex-col tw-justify-between tw-gap-4 tw-not-italic" }, h("strong", { key: '4a147a383479b0fea78c31ee83e852e298d73a49' }, "University of Guelph"), h("span", { key: 'c75566a010994dbd4e38afaa8c7b1ce2eedaa4b4' }, "50 Stone Road East,"), h("span", { key: 'e56462b21cf183eb66c85d17f4f74275947ca260' }, "Guelph, Ontario, Canada"), h("span", { key: '05ce006f06502c2b824914ab22b3a1e601f512e5' }, "N1G 2W1"), h("a", { key: '01d4b036db7d9fe71c4a24c5e4714c66d0ef596f', href: "tel:1-519-824-4120", class: "tw-flex tw-w-fit tw-gap-2 tw-border-0 tw-border-b-2 tw-border-dotted tw-border-transparent tw-text-uofg-blue tw-transition-colors hocus:tw-border-current [&>svg]:tw-h-[1em] [&>svg]:tw-fill-current" }, h(FontAwesomeIcon, { key: '22427c9cc0bb50f48a77b8c6bce3d474029c8c79', icon: faPhoneFlip }), h("span", { key: '340eea2c61160970cdea49ab53123cbdb2b462c4' }, "519-824-4120"))))));
|
|
134
|
+
}
|
|
135
|
+
static get is() { return "uofg-footer"; }
|
|
136
|
+
static get encapsulation() { return "shadow"; }
|
|
137
|
+
static get originalStyleUrls() {
|
|
138
|
+
return {
|
|
139
|
+
"$": ["uofg-footer.css"]
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
static get styleUrls() {
|
|
143
|
+
return {
|
|
144
|
+
"$": ["uofg-footer.css"]
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
static get states() {
|
|
148
|
+
return {
|
|
149
|
+
"extraLinks": {}
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
static get elementRef() { return "el"; }
|
|
61
153
|
}
|