@uoguelph/web-components 1.2.2-rc.3 → 1.3.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{uofg-web-components/uofg-footer.esm.js → uofg-footer.esm.js} +42 -44
- package/dist/{uofg-web-components/uofg-header.esm.js → uofg-header.esm.js} +444 -456
- package/dist/uofg-web-components.css +1 -0
- package/dist/uofg-web-components.esm.js +56 -0
- package/package.json +9 -3
- package/dist/uofg-web-components/uofg-web-components.css +0 -1
- package/dist/uofg-web-components/uofg-web-components.esm.js +0 -8
- /package/dist/{uofg-web-components/index-Bx5sKUFM.js → index-Bx5sKUFM.js} +0 -0
- /package/dist/{uofg-web-components/uofg-alert.esm.js → uofg-alert.esm.js} +0 -0
- /package/dist/{uofg-web-components/uofg-modal.esm.js → uofg-modal.esm.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as pe, S as de, i as ge, s as ve, r as re, h as f, j as H, k as
|
|
2
|
-
function Ae(
|
|
1
|
+
import { c as pe, S as de, i as ge, s as ve, r as re, h as f, j as H, k as s, v as q, p as F, w as xe, a as _e, x as M, F as Y, y as ke, e as u, g as m, d as L, m as T, t as x, z as oe, o as _, q as j, A as E, B as Ce, C as $e, D as ae, E as ye, G as Ve, H as Me, I as He, J as Fe, K as Se, L as ce, M as ze, N as Ze } from "./index-Bx5sKUFM.js";
|
|
2
|
+
function Ae(n) {
|
|
3
3
|
let e, r;
|
|
4
4
|
return {
|
|
5
5
|
c() {
|
|
6
6
|
e = re("svg"), r = re("path"), f(r, "d", "M0 0h5.3v.5C4 .5 3.6.8 3.6 2.1v7.3c0 1.4.3 1.8 1.6 1.8v.5H0v-.5c1.5 0 1.5-.5 1.5-1.6V1.9C1.5.9 1.3.5 0 .5ZM6.1 11.4c.9 0 1.1-.2 1.2-1.4l.3-5.1c.1-1.2-.1-1.4-.9-1.4v-.4h2.6l3 6.5 2.8-6.5h2.6v.4c-.8 0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0 107.4 12");
|
|
7
7
|
},
|
|
8
8
|
m(t, l) {
|
|
9
|
-
H(t, e, l),
|
|
9
|
+
H(t, e, l), s(e, r);
|
|
10
10
|
},
|
|
11
11
|
p: q,
|
|
12
12
|
i: q,
|
|
@@ -47,25 +47,25 @@ var qe = {
|
|
|
47
47
|
iconName: "youtube",
|
|
48
48
|
icon: [576, 512, [61802], "f167", "M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"]
|
|
49
49
|
};
|
|
50
|
-
function le(
|
|
51
|
-
const t =
|
|
50
|
+
function le(n, e, r) {
|
|
51
|
+
const t = n.slice();
|
|
52
52
|
return t[3] = e[r].href, t[4] = e[r].title, t[5] = e[r].icon, t[6] = e[r].text, t;
|
|
53
53
|
}
|
|
54
|
-
function se(
|
|
55
|
-
const t =
|
|
54
|
+
function se(n, e, r) {
|
|
55
|
+
const t = n.slice();
|
|
56
56
|
return t[3] = e[r].href, t[6] = e[r].text, t[5] = e[r].icon, t[9] = e[r].classes, t;
|
|
57
57
|
}
|
|
58
|
-
function ne(
|
|
59
|
-
const t =
|
|
58
|
+
function ne(n, e, r) {
|
|
59
|
+
const t = n.slice();
|
|
60
60
|
return t[6] = e[r].text, t[3] = e[r].href, t;
|
|
61
61
|
}
|
|
62
|
-
function ie(
|
|
62
|
+
function ie(n) {
|
|
63
63
|
let e, r = M(
|
|
64
64
|
/*subFooter*/
|
|
65
|
-
|
|
65
|
+
n[0]
|
|
66
66
|
), t = [];
|
|
67
67
|
for (let l = 0; l < r.length; l += 1)
|
|
68
|
-
t[l] = fe(ne(
|
|
68
|
+
t[l] = fe(ne(n, r, l));
|
|
69
69
|
return {
|
|
70
70
|
c() {
|
|
71
71
|
e = u("ul");
|
|
@@ -100,18 +100,18 @@ function ie(s) {
|
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
function fe(
|
|
103
|
+
function fe(n) {
|
|
104
104
|
let e, r, t = (
|
|
105
105
|
/*text*/
|
|
106
|
-
|
|
106
|
+
n[6] + ""
|
|
107
107
|
), l, i, a;
|
|
108
108
|
return {
|
|
109
109
|
c() {
|
|
110
110
|
e = u("li"), r = u("a"), l = Ce(t), a = m(), f(r, "class", "text-uofg-blue-500 transition-colors hover:text-uofg-blue-950 focus:text-uofg-blue-950"), f(r, "href", i = /*href*/
|
|
111
|
-
|
|
111
|
+
n[3]), f(e, "class", "border-0 border-r-2 border-solid border-uofg-blue-100 p-2 first:border-l-2");
|
|
112
112
|
},
|
|
113
113
|
m(p, v) {
|
|
114
|
-
H(p, e, v),
|
|
114
|
+
H(p, e, v), s(e, r), s(r, l), s(e, a);
|
|
115
115
|
},
|
|
116
116
|
p(p, v) {
|
|
117
117
|
v & /*subFooter*/
|
|
@@ -125,28 +125,28 @@ function fe(s) {
|
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
function he(
|
|
128
|
+
function he(n) {
|
|
129
129
|
let e, r, t, l, i;
|
|
130
130
|
return t = new Y({ props: { icon: (
|
|
131
131
|
/*icon*/
|
|
132
|
-
|
|
132
|
+
n[5]
|
|
133
133
|
) } }), {
|
|
134
134
|
c() {
|
|
135
135
|
e = u("li"), r = u("a"), L(t.$$.fragment), l = m(), f(
|
|
136
136
|
r,
|
|
137
137
|
"href",
|
|
138
138
|
/*href*/
|
|
139
|
-
|
|
139
|
+
n[3]
|
|
140
140
|
), f(
|
|
141
141
|
r,
|
|
142
142
|
"aria-label",
|
|
143
143
|
/*text*/
|
|
144
|
-
|
|
144
|
+
n[6]
|
|
145
145
|
), f(r, "class", `transition-colors ${/*classes*/
|
|
146
|
-
|
|
146
|
+
n[9]}`);
|
|
147
147
|
},
|
|
148
148
|
m(a, p) {
|
|
149
|
-
H(a, e, p),
|
|
149
|
+
H(a, e, p), s(e, r), T(t, r, null), s(e, l), i = !0;
|
|
150
150
|
},
|
|
151
151
|
p: q,
|
|
152
152
|
i(a) {
|
|
@@ -160,28 +160,28 @@ function he(s) {
|
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
|
-
function ue(
|
|
163
|
+
function ue(n) {
|
|
164
164
|
let e, r, t, l, i, a, p;
|
|
165
165
|
return t = new Y({ props: { icon: (
|
|
166
166
|
/*icon*/
|
|
167
|
-
|
|
167
|
+
n[5]
|
|
168
168
|
) } }), {
|
|
169
169
|
c() {
|
|
170
170
|
e = u("li"), r = u("a"), L(t.$$.fragment), l = m(), i = u("span"), i.textContent = `${/*text*/
|
|
171
|
-
|
|
171
|
+
n[6]}`, a = m(), f(
|
|
172
172
|
r,
|
|
173
173
|
"href",
|
|
174
174
|
/*href*/
|
|
175
|
-
|
|
175
|
+
n[3]
|
|
176
176
|
), f(
|
|
177
177
|
r,
|
|
178
178
|
"title",
|
|
179
179
|
/*title*/
|
|
180
|
-
|
|
180
|
+
n[4] ?? ""
|
|
181
181
|
), f(r, "class", "flex justify-center items-center w-fit gap-3 border-0 border-b-2 border-dotted border-transparent transition-colors focus:border-white hover:border-white [&>svg]:fill-uofg-yellow");
|
|
182
182
|
},
|
|
183
183
|
m(v, k) {
|
|
184
|
-
H(v, e, k),
|
|
184
|
+
H(v, e, k), s(e, r), T(t, r, null), s(r, l), s(r, i), s(e, a), p = !0;
|
|
185
185
|
},
|
|
186
186
|
p: q,
|
|
187
187
|
i(v) {
|
|
@@ -195,28 +195,27 @@ function ue(s) {
|
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
|
-
function Be(
|
|
198
|
+
function Be(n) {
|
|
199
199
|
let e, r = Array.isArray(
|
|
200
200
|
/*subFooter*/
|
|
201
|
-
|
|
202
|
-
) &&
|
|
203
|
-
s[0].length > 0, t, l, i, a, p, v, k, K, S, O, z, R, N, Z, W, w, I, J, U, Q, B, X, P, ee, C, V, te, D, G, b = r && ie(s);
|
|
201
|
+
n[0]
|
|
202
|
+
), t, l, i, a, p, v, k, K, S, O, z, R, N, Z, W, w, I, J, U, Q, B, X, P, ee, C, V, te, D, G, b = r && ie(n);
|
|
204
203
|
p = new me({});
|
|
205
204
|
let $ = M(
|
|
206
205
|
/*socials*/
|
|
207
|
-
|
|
206
|
+
n[1]
|
|
208
207
|
), d = [];
|
|
209
208
|
for (let o = 0; o < $.length; o += 1)
|
|
210
|
-
d[o] = he(se(
|
|
209
|
+
d[o] = he(se(n, $, o));
|
|
211
210
|
const be = (o) => _(d[o], 1, 1, () => {
|
|
212
211
|
d[o] = null;
|
|
213
212
|
});
|
|
214
213
|
let y = M(
|
|
215
214
|
/*links*/
|
|
216
|
-
|
|
215
|
+
n[2]
|
|
217
216
|
), g = [];
|
|
218
217
|
for (let o = 0; o < y.length; o += 1)
|
|
219
|
-
g[o] = ue(le(
|
|
218
|
+
g[o] = ue(le(n, y, o));
|
|
220
219
|
const we = (o) => _(g[o], 1, 1, () => {
|
|
221
220
|
g[o] = null;
|
|
222
221
|
});
|
|
@@ -231,21 +230,20 @@ function Be(s) {
|
|
|
231
230
|
W = m(), w = u("address"), I = u("strong"), I.textContent = "University of Guelph", J = m(), U = u("span"), U.textContent = "50 Stone Road East,", Q = m(), B = u("span"), B.textContent = "Guelph, Ontario, Canada", X = m(), P = u("span"), P.textContent = "N1G 2W1", ee = m(), C = u("a"), L(V.$$.fragment), te = m(), D = u("span"), D.textContent = "519-824-4120", f(a, "href", "https://www.uoguelph.ca/improve-life"), f(a, "aria-label", "Improve Life"), f(a, "class", "flex transition-opacity focus:opacity-75 hover:opacity-75 [&>svg]:block [&>svg]:h-[1.6em] [&>svg]:mb-4"), f(k, "class", "flex gap-3 text-4xl [&>li]:contents"), f(S, "class", "w-fit border-0 border-b-2 border-dotted border-transparent transition-colors focus:border-white hover:border-white"), f(S, "href", "https://www.uoguelph.ca/web/socialmedia/"), f(z, "class", "w-fit border-0 border-b-2 border-dotted border-transparent transition-colors focus:border-white hover:border-white"), f(z, "href", "https://www.uoguelph.ca/web/"), f(i, "class", "flex flex-col justify-between gap-2"), f(Z, "class", "w-full flex flex-col gap-2 md:grid md:grid-cols-2 [&>li]:contents"), f(N, "class", "flex justify-center md:col-span-2 md:row-start-2 lg:row-auto"), f(C, "href", "tel:1-519-824-4120"), f(C, "class", "flex justify-center items-center w-fit gap-2 border-0 border-b-2 border-dotted border-transparent text-uofg-blue transition-colors focus:border-current hover:border-current"), f(w, "class", "flex flex-col justify-between gap-4 not-italic"), f(l, "class", "flex flex-col content-center gap-8 bg-black px-[max(calc((100%-1320px)/2),2rem)] py-8 text-white md:grid md:grid-cols-2 lg:grid-cols-4");
|
|
232
231
|
},
|
|
233
232
|
m(o, h) {
|
|
234
|
-
H(o, e, h), b && b.m(e, null),
|
|
233
|
+
H(o, e, h), b && b.m(e, null), s(e, t), s(e, l), s(l, i), s(i, a), T(p, a, null), s(i, v), s(i, k);
|
|
235
234
|
for (let c = 0; c < d.length; c += 1)
|
|
236
235
|
d[c] && d[c].m(k, null);
|
|
237
|
-
|
|
236
|
+
s(i, K), s(i, S), s(i, O), s(i, z), s(l, R), s(l, N), s(N, Z);
|
|
238
237
|
for (let c = 0; c < g.length; c += 1)
|
|
239
238
|
g[c] && g[c].m(Z, null);
|
|
240
|
-
|
|
239
|
+
s(l, W), s(l, w), s(w, I), s(w, J), s(w, U), s(w, Q), s(w, B), s(w, X), s(w, P), s(w, ee), s(w, C), T(V, C, null), s(C, te), s(C, D), G = !0;
|
|
241
240
|
},
|
|
242
241
|
p(o, [h]) {
|
|
243
242
|
if (h & /*subFooter*/
|
|
244
243
|
1 && (r = Array.isArray(
|
|
245
244
|
/*subFooter*/
|
|
246
245
|
o[0]
|
|
247
|
-
) && /*
|
|
248
|
-
o[0].length > 0), r ? b ? b.p(o, h) : (b = ie(o), b.c(), b.m(e, t)) : b && (b.d(1), b = null), h & /*socials*/
|
|
246
|
+
)), r ? b ? b.p(o, h) : (b = ie(o), b.c(), b.m(e, t)) : b && (b.d(1), b = null), h & /*socials*/
|
|
249
247
|
2) {
|
|
250
248
|
$ = M(
|
|
251
249
|
/*socials*/
|
|
@@ -300,7 +298,7 @@ function Be(s) {
|
|
|
300
298
|
}
|
|
301
299
|
};
|
|
302
300
|
}
|
|
303
|
-
function Pe(
|
|
301
|
+
function Pe(n, e, r) {
|
|
304
302
|
const t = [
|
|
305
303
|
{
|
|
306
304
|
text: "Twitter",
|
|
@@ -392,7 +390,7 @@ function Pe(s, e, r) {
|
|
|
392
390
|
}
|
|
393
391
|
];
|
|
394
392
|
let { subFooter: i } = e;
|
|
395
|
-
return
|
|
393
|
+
return n.$$set = (a) => {
|
|
396
394
|
"subFooter" in a && r(0, i = a.subFooter);
|
|
397
395
|
}, [i, t, l];
|
|
398
396
|
}
|
|
@@ -407,7 +405,7 @@ class De extends de {
|
|
|
407
405
|
this.$$set({ subFooter: e }), xe();
|
|
408
406
|
}
|
|
409
407
|
}
|
|
410
|
-
customElements.define("uofg-footer", pe(De, { subFooter: {} }, [], [], !0, (
|
|
408
|
+
customElements.define("uofg-footer", pe(De, { subFooter: {} }, [], [], !0, (n) => class extends n {
|
|
411
409
|
constructor() {
|
|
412
410
|
super(), _e(this.shadowRoot);
|
|
413
411
|
}
|