@uoguelph/web-components 1.5.0 → 1.5.1-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.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as pe, S as de, i as ge, s as ve, y as re, h, j as H, k as n, z as A, p as F, A as xe, a as _e, B as M, F as O, C as ke, e as u, g as m, d as q, m as j, t as x, D as oe, o as _, q as I, E, G as Ce, H as $e, I as ae, J as ye, K as Ve, L as Me, M as He, N as Fe, O as ze, P as le, Q as Se, R as Ze } from "./index-DQJjz5Bq.js";
|
|
1
|
+
import { c as pe, S as de, i as ge, s as ve, y as re, h as f, j as H, k as n, z as A, p as F, A as xe, a as _e, B as M, F as O, C as ke, e as u, g as m, d as q, m as j, t as x, D as oe, o as _, q as I, E, G as Ce, H as $e, I as ae, J as ye, K as Ve, L as Me, M as He, N as Fe, O as ze, P as le, Q as Se, R as Ze } from "./index-DQJjz5Bq.js";
|
|
2
2
|
function Le(s) {
|
|
3
3
|
let e, r;
|
|
4
4
|
return {
|
|
5
5
|
c() {
|
|
6
|
-
e = re("svg"), r = re("path"),
|
|
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-.9.2-.9.8l.5 6.3c.1.7.3.8 1.1.8v.4h-4v-.4c1.1 0 1.3-.3 1.2-1.8l-.4-5.1-3.2 7.3h-.5L8.4 4.7l-.3 5.1c-.1 1.5.2 1.5 1.1 1.6v.4H6.1ZM19.2 11.4c1 0 1.2-.2 1.2-1.5v-5c0-1.4-.2-1.5-1.3-1.5v-.3h1.4a14.4 14.4 0 0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.2 2.1-1.6h.4l-.2 2.2h-7.6ZM72.2 11.8v-.5c1.5 0 1.8-.1 1.8-1.6V2.1C74 .8 73.9.4 72.2.5V0h6.2v.5c-2 0-2.3.1-2.3 1.5v8c0 .8.2.9 1 .9H79c1.6 0 1.7-.1 3.1-2h.6l-1.5 2.9ZM83.2 3.1h3.9v.4c-.9 0-1.2.2-1.2 1.2v5.4c0 1 .2 1.3 1.2 1.3v.4h-3.9v-.4c1.1 0 1.1-.4 1.1-1.2V4.5c0-.8-.2-1.1-1.1-1ZM90.7 10c0 1.1.2 1.3 1.2 1.3v.4H88v-.4c.9 0 1.1-.3 1.1-1.1V4.5c0-.8-.3-1-1.1-1v-.4h6.6v1.7h-.4c-.1-.9-.3-1.1-1.4-1.1h-2.2v3.1h2.2c.9 0 1-.1 1.1-.9h.4v2.6H94c-.1-.9-.3-1-1.2-1h-2.1ZM95.3 11.8v-.4c1.1 0 1.4-.2 1.4-1v-6c0-.9-.5-.9-1.4-.9v-.4h7.1l.1 2.1h-.4l-.1-.3c-.3-1.1-.5-1.2-1.4-1.2h-2.5V7h2.2c.8 0 1-.1 1-1.1h.4v2.8h-.4c-.1-1-.3-1.1-1-1.1h-2.2v2.5c0 .9.1 1 .8 1h1.5c1.4 0 1.7-.2 2.1-1.6h.4l-.2 2.2h-7.4ZM107.4 10.9c0 .7-.5 1.1-1.3 1.1s-1.3-.4-1.3-1.1a1.2 1.2 0 0 1 1.3-1.2 1.2 1.2 0 0 1 1.3 1.2Z"), f(e, "xmlns", "http://www.w3.org/2000/svg"), f(e, "fill", "#fff"), f(e, "viewBox", "0 0 107.4 12");
|
|
7
7
|
},
|
|
8
8
|
m(t, c) {
|
|
9
9
|
H(t, e, c), n(e, r);
|
|
@@ -65,13 +65,13 @@ function ie(s) {
|
|
|
65
65
|
s[0]
|
|
66
66
|
), t = [];
|
|
67
67
|
for (let c = 0; c < r.length; c += 1)
|
|
68
|
-
t[c] =
|
|
68
|
+
t[c] = fe(ne(s, r, c));
|
|
69
69
|
return {
|
|
70
70
|
c() {
|
|
71
71
|
e = u("ul");
|
|
72
72
|
for (let c = 0; c < t.length; c += 1)
|
|
73
73
|
t[c].c();
|
|
74
|
-
|
|
74
|
+
f(e, "class", "flex flex-wrap items-center justify-center bg-white p-6 px-[max(calc((100%-1320px)/2),2rem)]");
|
|
75
75
|
},
|
|
76
76
|
m(c, i) {
|
|
77
77
|
H(c, e, i);
|
|
@@ -88,7 +88,7 @@ function ie(s) {
|
|
|
88
88
|
let a;
|
|
89
89
|
for (a = 0; a < r.length; a += 1) {
|
|
90
90
|
const p = ne(c, r, a);
|
|
91
|
-
t[a] ? t[a].p(p, i) : (t[a] =
|
|
91
|
+
t[a] ? t[a].p(p, i) : (t[a] = fe(p), t[a].c(), t[a].m(e, null));
|
|
92
92
|
}
|
|
93
93
|
for (; a < t.length; a += 1)
|
|
94
94
|
t[a].d(1);
|
|
@@ -100,15 +100,15 @@ function ie(s) {
|
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function fe(s) {
|
|
104
104
|
let e, r, t = (
|
|
105
105
|
/*text*/
|
|
106
106
|
s[6] + ""
|
|
107
107
|
), c, i, a;
|
|
108
108
|
return {
|
|
109
109
|
c() {
|
|
110
|
-
e = u("li"), r = u("a"), c = Ce(t), a = m(),
|
|
111
|
-
s[3]),
|
|
110
|
+
e = u("li"), r = u("a"), c = Ce(t), a = m(), f(r, "class", "transition-all decoration-transparent text-[#2e74bb] hover:text-[#1a4168] focus:text-[#1a4168] hover:underline focus:underline hover:decoration-current focus:decoration-current"), f(r, "href", i = /*href*/
|
|
111
|
+
s[3]), f(e, "class", "p-6");
|
|
112
112
|
},
|
|
113
113
|
m(p, v) {
|
|
114
114
|
H(p, e, v), n(e, r), n(r, c), n(e, a);
|
|
@@ -118,31 +118,31 @@ function he(s) {
|
|
|
118
118
|
1 && t !== (t = /*text*/
|
|
119
119
|
p[6] + "") && $e(c, t), v & /*subFooter*/
|
|
120
120
|
1 && i !== (i = /*href*/
|
|
121
|
-
p[3]) &&
|
|
121
|
+
p[3]) && f(r, "href", i);
|
|
122
122
|
},
|
|
123
123
|
d(p) {
|
|
124
124
|
p && F(e);
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function he(s) {
|
|
129
129
|
let e, r, t, c, i;
|
|
130
130
|
return t = new O({ props: { icon: (
|
|
131
131
|
/*icon*/
|
|
132
132
|
s[5]
|
|
133
133
|
) } }), {
|
|
134
134
|
c() {
|
|
135
|
-
e = u("li"), r = u("a"), q(t.$$.fragment), c = m(),
|
|
135
|
+
e = u("li"), r = u("a"), q(t.$$.fragment), c = m(), f(
|
|
136
136
|
r,
|
|
137
137
|
"href",
|
|
138
138
|
/*href*/
|
|
139
139
|
s[3]
|
|
140
|
-
),
|
|
140
|
+
), f(
|
|
141
141
|
r,
|
|
142
142
|
"aria-label",
|
|
143
143
|
/*text*/
|
|
144
144
|
s[6]
|
|
145
|
-
),
|
|
145
|
+
), f(r, "class", `transition-colors ${/*classes*/
|
|
146
146
|
s[9]}`);
|
|
147
147
|
},
|
|
148
148
|
m(a, p) {
|
|
@@ -168,17 +168,17 @@ function ue(s) {
|
|
|
168
168
|
) } }), {
|
|
169
169
|
c() {
|
|
170
170
|
e = u("li"), r = u("a"), q(t.$$.fragment), c = m(), i = u("span"), i.textContent = `${/*text*/
|
|
171
|
-
s[6]}`, a = m(),
|
|
171
|
+
s[6]}`, a = m(), f(
|
|
172
172
|
r,
|
|
173
173
|
"href",
|
|
174
174
|
/*href*/
|
|
175
175
|
s[3]
|
|
176
|
-
),
|
|
176
|
+
), f(
|
|
177
177
|
r,
|
|
178
178
|
"title",
|
|
179
179
|
/*title*/
|
|
180
180
|
s[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
184
|
H(v, e, k), n(e, r), j(t, r, null), n(r, c), n(r, i), n(e, a), p = !0;
|
|
@@ -200,15 +200,15 @@ function Ue(s) {
|
|
|
200
200
|
/*subFooter*/
|
|
201
201
|
s[0]
|
|
202
202
|
) && /*subFooter*/
|
|
203
|
-
s[0].length > 0, t, c, i, a, p, v, k, R, z, Y, S, K, N, Z, W,
|
|
203
|
+
s[0].length > 0, t, c, i, a, p, v, k, R, z, Y, S, K, N, Z, W, w, T, X, U, J, P, Q, B, ee, C, V, te, D, G, b = r && ie(s);
|
|
204
204
|
p = new me({});
|
|
205
205
|
let $ = M(
|
|
206
206
|
/*socials*/
|
|
207
207
|
s[1]
|
|
208
208
|
), d = [];
|
|
209
209
|
for (let o = 0; o < $.length; o += 1)
|
|
210
|
-
d[o] =
|
|
211
|
-
const
|
|
210
|
+
d[o] = he(se(s, $, o));
|
|
211
|
+
const be = (o) => _(d[o], 1, 1, () => {
|
|
212
212
|
d[o] = null;
|
|
213
213
|
});
|
|
214
214
|
let y = M(
|
|
@@ -217,35 +217,35 @@ function Ue(s) {
|
|
|
217
217
|
), g = [];
|
|
218
218
|
for (let o = 0; o < y.length; o += 1)
|
|
219
219
|
g[o] = ue(ce(s, y, o));
|
|
220
|
-
const
|
|
220
|
+
const we = (o) => _(g[o], 1, 1, () => {
|
|
221
221
|
g[o] = null;
|
|
222
222
|
});
|
|
223
223
|
return V = new O({ props: { icon: ke } }), {
|
|
224
224
|
c() {
|
|
225
|
-
e = u("footer"),
|
|
225
|
+
e = u("footer"), b && b.c(), t = m(), c = u("div"), i = u("div"), a = u("a"), q(p.$$.fragment), v = m(), k = u("ul");
|
|
226
226
|
for (let o = 0; o < d.length; o += 1)
|
|
227
227
|
d[o].c();
|
|
228
228
|
R = m(), z = u("a"), z.textContent = "Social Media Directory", Y = m(), S = u("a"), S.textContent = `© ${(/* @__PURE__ */ new Date()).getFullYear()} University of Guelph`, K = m(), N = u("div"), Z = u("ul");
|
|
229
229
|
for (let o = 0; o < g.length; o += 1)
|
|
230
230
|
g[o].c();
|
|
231
|
-
W = m(),
|
|
231
|
+
W = m(), w = u("address"), T = u("strong"), T.textContent = "University of Guelph", X = m(), U = u("span"), U.textContent = "50 Stone Road East,", J = m(), P = u("span"), P.textContent = "Guelph, Ontario, Canada", Q = m(), B = u("span"), B.textContent = "N1G 2W1", ee = m(), C = u("a"), q(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(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/socialmedia/"), 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/"), 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(c, "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
232
|
},
|
|
233
|
-
m(o,
|
|
234
|
-
H(o, e,
|
|
233
|
+
m(o, h) {
|
|
234
|
+
H(o, e, h), b && b.m(e, null), n(e, t), n(e, c), n(c, i), n(i, a), j(p, a, null), n(i, v), n(i, k);
|
|
235
235
|
for (let l = 0; l < d.length; l += 1)
|
|
236
236
|
d[l] && d[l].m(k, null);
|
|
237
237
|
n(i, R), n(i, z), n(i, Y), n(i, S), n(c, K), n(c, N), n(N, Z);
|
|
238
238
|
for (let l = 0; l < g.length; l += 1)
|
|
239
239
|
g[l] && g[l].m(Z, null);
|
|
240
|
-
n(c, W), n(c,
|
|
240
|
+
n(c, W), n(c, w), n(w, T), n(w, X), n(w, U), n(w, J), n(w, P), n(w, Q), n(w, B), n(w, ee), n(w, C), j(V, C, null), n(C, te), n(C, D), G = !0;
|
|
241
241
|
},
|
|
242
|
-
p(o, [
|
|
243
|
-
if (
|
|
242
|
+
p(o, [h]) {
|
|
243
|
+
if (h & /*subFooter*/
|
|
244
244
|
1 && (r = Array.isArray(
|
|
245
245
|
/*subFooter*/
|
|
246
246
|
o[0]
|
|
247
247
|
) && /*subFooter*/
|
|
248
|
-
o[0].length > 0), r ?
|
|
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*/
|
|
249
249
|
2) {
|
|
250
250
|
$ = M(
|
|
251
251
|
/*socials*/
|
|
@@ -254,13 +254,13 @@ function Ue(s) {
|
|
|
254
254
|
let l;
|
|
255
255
|
for (l = 0; l < $.length; l += 1) {
|
|
256
256
|
const L = se(o, $, l);
|
|
257
|
-
d[l] ? (d[l].p(L,
|
|
257
|
+
d[l] ? (d[l].p(L, h), x(d[l], 1)) : (d[l] = he(L), d[l].c(), x(d[l], 1), d[l].m(k, null));
|
|
258
258
|
}
|
|
259
259
|
for (ae(), l = $.length; l < d.length; l += 1)
|
|
260
|
-
|
|
260
|
+
be(l);
|
|
261
261
|
oe();
|
|
262
262
|
}
|
|
263
|
-
if (
|
|
263
|
+
if (h & /*links*/
|
|
264
264
|
4) {
|
|
265
265
|
y = M(
|
|
266
266
|
/*links*/
|
|
@@ -269,34 +269,34 @@ function Ue(s) {
|
|
|
269
269
|
let l;
|
|
270
270
|
for (l = 0; l < y.length; l += 1) {
|
|
271
271
|
const L = ce(o, y, l);
|
|
272
|
-
g[l] ? (g[l].p(L,
|
|
272
|
+
g[l] ? (g[l].p(L, h), x(g[l], 1)) : (g[l] = ue(L), g[l].c(), x(g[l], 1), g[l].m(Z, null));
|
|
273
273
|
}
|
|
274
274
|
for (ae(), l = y.length; l < g.length; l += 1)
|
|
275
|
-
|
|
275
|
+
we(l);
|
|
276
276
|
oe();
|
|
277
277
|
}
|
|
278
278
|
},
|
|
279
279
|
i(o) {
|
|
280
280
|
if (!G) {
|
|
281
281
|
x(p.$$.fragment, o);
|
|
282
|
-
for (let
|
|
283
|
-
x(d[
|
|
284
|
-
for (let
|
|
285
|
-
x(g[
|
|
282
|
+
for (let h = 0; h < $.length; h += 1)
|
|
283
|
+
x(d[h]);
|
|
284
|
+
for (let h = 0; h < y.length; h += 1)
|
|
285
|
+
x(g[h]);
|
|
286
286
|
x(V.$$.fragment, o), G = !0;
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
289
|
o(o) {
|
|
290
290
|
_(p.$$.fragment, o), d = d.filter(Boolean);
|
|
291
|
-
for (let
|
|
292
|
-
_(d[
|
|
291
|
+
for (let h = 0; h < d.length; h += 1)
|
|
292
|
+
_(d[h]);
|
|
293
293
|
g = g.filter(Boolean);
|
|
294
|
-
for (let
|
|
295
|
-
_(g[
|
|
294
|
+
for (let h = 0; h < g.length; h += 1)
|
|
295
|
+
_(g[h]);
|
|
296
296
|
_(V.$$.fragment, o), G = !1;
|
|
297
297
|
},
|
|
298
298
|
d(o) {
|
|
299
|
-
o && F(e),
|
|
299
|
+
o && F(e), b && b.d(), I(p), E(d, o), E(g, o), I(V);
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
302
|
}
|
|
@@ -368,7 +368,7 @@ function Pe(s, e, r) {
|
|
|
368
368
|
{
|
|
369
369
|
text: "Careers",
|
|
370
370
|
icon: ze,
|
|
371
|
-
href: "https://
|
|
371
|
+
href: "https://careers.uoguelph.ca/"
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
374
|
text: "Undergraduate Calendar",
|
package/package.json
CHANGED