@uoguelph/web-components 1.7.5-rc.0 → 1.7.6-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/font-awesome-icon-G0qfxDx-.js +2477 -0
- package/dist/uofg-web-components/legacy-DEy5AMhA.js +2 -0
- package/dist/uofg-web-components/lifecycle-CyB2FXck.js +42 -0
- package/dist/uofg-web-components/slot-CsZns-iM.js +10 -0
- package/dist/uofg-web-components/uofg-alert.esm.js +20 -148
- package/dist/uofg-web-components/uofg-back-to-top.esm.js +22 -78
- package/dist/uofg-web-components/uofg-footer.esm.js +154 -449
- package/dist/uofg-web-components/uofg-header.esm.js +1111 -2926
- package/dist/uofg-web-components/uofg-modal.esm.js +205 -324
- package/dist/uofg-web-components/uofg-web-components.css +1 -1
- package/dist/uofg-web-components/window-SgJU2JpL.js +25 -0
- package/package.json +7 -7
- package/dist/uofg-web-components/font-awesome-icon-DNx_vc4u.js +0 -1042
|
@@ -1,340 +1,221 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
b = new N({ props: { icon: G } });
|
|
7
|
-
const f = (
|
|
8
|
-
/*#slots*/
|
|
9
|
-
n[14].default
|
|
10
|
-
), a = H(
|
|
11
|
-
f,
|
|
12
|
-
n,
|
|
13
|
-
/*$$scope*/
|
|
14
|
-
n[13],
|
|
15
|
-
null
|
|
16
|
-
);
|
|
17
|
-
return {
|
|
18
|
-
c() {
|
|
19
|
-
e = B("div"), i = B("div"), c = B("button"), I(b.$$.fragment), u = L(), a && a.c(), r(c, "class", "absolute right-8 top-8 z-[2] flex h-12 w-12 items-center justify-center border-0 bg-transparent text-3xl p-2 text-[var(--uofg-modal-dismiss-color,white)]"), r(c, "part", "dismiss-button"), r(c, "aria-label", "Close modal"), r(i, "part", "content"), r(i, "class", p = q(
|
|
20
|
-
"z-1 absolute left-1/2 h-fit max-h-full max-w-full -translate-x-1/2 overflow-auto w-full sm:w-fit sm:p-8 transition-transform motion-reduce:transition-none",
|
|
21
|
-
/*isOpen*/
|
|
22
|
-
n[0] && "visible opacity-100",
|
|
23
|
-
/*isOpen*/
|
|
24
|
-
n[0] && /*centered*/
|
|
25
|
-
n[3] && "translate-y-[calc(-50%_-_50px)]",
|
|
26
|
-
(!/*isOpen*/
|
|
27
|
-
n[0] && !/*centered*/
|
|
28
|
-
n[3] || /*isOpen*/
|
|
29
|
-
n[0] && /*centered*/
|
|
30
|
-
n[3]) && "translate-y-[-50px]"
|
|
31
|
-
)), r(e, "class", "fixed left-0 top-0 z-[1000] flex h-screen w-screen bg-black bg-opacity-50 transition-[opacity,visibility]"), r(e, "role", g = /*alertDialog*/
|
|
32
|
-
n[5] ? "alertdialog" : "dialog"), r(e, "aria-modal", w = /*isOpen*/
|
|
33
|
-
n[0] ? "true" : ""), r(
|
|
34
|
-
e,
|
|
35
|
-
"aria-label",
|
|
36
|
-
/*label*/
|
|
37
|
-
n[4]
|
|
38
|
-
), r(e, "tabindex", -1), _(
|
|
39
|
-
e,
|
|
40
|
-
"visible",
|
|
41
|
-
/*isOpen*/
|
|
42
|
-
n[0]
|
|
43
|
-
), _(
|
|
44
|
-
e,
|
|
45
|
-
"opacity-100",
|
|
46
|
-
/*isOpen*/
|
|
47
|
-
n[0]
|
|
48
|
-
), _(e, "invisible", !/*isOpen*/
|
|
49
|
-
n[0]), _(e, "opacity-0", !/*isOpen*/
|
|
50
|
-
n[0]);
|
|
51
|
-
},
|
|
52
|
-
m(s, o) {
|
|
53
|
-
M(s, e, o), E(e, i), E(i, c), P(b, c, null), n[15](c), E(i, u), a && a.m(i, null), n[17](e), l = !0, y || (h = [
|
|
54
|
-
k(
|
|
55
|
-
c,
|
|
56
|
-
"click",
|
|
57
|
-
/*click_handler*/
|
|
58
|
-
n[16]
|
|
59
|
-
),
|
|
60
|
-
k(
|
|
61
|
-
e,
|
|
62
|
-
"click",
|
|
63
|
-
/*handleOnClick*/
|
|
64
|
-
n[6]
|
|
65
|
-
),
|
|
66
|
-
k(
|
|
67
|
-
e,
|
|
68
|
-
"keyup",
|
|
69
|
-
/*handleKeyUp*/
|
|
70
|
-
n[7]
|
|
71
|
-
),
|
|
72
|
-
k(
|
|
73
|
-
e,
|
|
74
|
-
"focusout",
|
|
75
|
-
/*handleFocusOut*/
|
|
76
|
-
n[8]
|
|
77
|
-
)
|
|
78
|
-
], y = !0);
|
|
79
|
-
},
|
|
80
|
-
p(s, [o]) {
|
|
81
|
-
a && a.p && (!l || o & /*$$scope*/
|
|
82
|
-
8192) && Q(
|
|
83
|
-
a,
|
|
84
|
-
f,
|
|
85
|
-
s,
|
|
86
|
-
/*$$scope*/
|
|
87
|
-
s[13],
|
|
88
|
-
l ? W(
|
|
89
|
-
f,
|
|
90
|
-
/*$$scope*/
|
|
91
|
-
s[13],
|
|
92
|
-
o,
|
|
93
|
-
null
|
|
94
|
-
) : V(
|
|
95
|
-
/*$$scope*/
|
|
96
|
-
s[13]
|
|
97
|
-
),
|
|
98
|
-
null
|
|
99
|
-
), (!l || o & /*isOpen, centered*/
|
|
100
|
-
9 && p !== (p = q(
|
|
101
|
-
"z-1 absolute left-1/2 h-fit max-h-full max-w-full -translate-x-1/2 overflow-auto w-full sm:w-fit sm:p-8 transition-transform motion-reduce:transition-none",
|
|
102
|
-
/*isOpen*/
|
|
103
|
-
s[0] && "visible opacity-100",
|
|
104
|
-
/*isOpen*/
|
|
105
|
-
s[0] && /*centered*/
|
|
106
|
-
s[3] && "translate-y-[calc(-50%_-_50px)]",
|
|
107
|
-
(!/*isOpen*/
|
|
108
|
-
s[0] && !/*centered*/
|
|
109
|
-
s[3] || /*isOpen*/
|
|
110
|
-
s[0] && /*centered*/
|
|
111
|
-
s[3]) && "translate-y-[-50px]"
|
|
112
|
-
))) && r(i, "class", p), (!l || o & /*alertDialog*/
|
|
113
|
-
32 && g !== (g = /*alertDialog*/
|
|
114
|
-
s[5] ? "alertdialog" : "dialog")) && r(e, "role", g), (!l || o & /*isOpen*/
|
|
115
|
-
1 && w !== (w = /*isOpen*/
|
|
116
|
-
s[0] ? "true" : "")) && r(e, "aria-modal", w), (!l || o & /*label*/
|
|
117
|
-
16) && r(
|
|
118
|
-
e,
|
|
119
|
-
"aria-label",
|
|
120
|
-
/*label*/
|
|
121
|
-
s[4]
|
|
122
|
-
), (!l || o & /*isOpen*/
|
|
123
|
-
1) && _(
|
|
124
|
-
e,
|
|
125
|
-
"visible",
|
|
126
|
-
/*isOpen*/
|
|
127
|
-
s[0]
|
|
128
|
-
), (!l || o & /*isOpen*/
|
|
129
|
-
1) && _(
|
|
130
|
-
e,
|
|
131
|
-
"opacity-100",
|
|
132
|
-
/*isOpen*/
|
|
133
|
-
s[0]
|
|
134
|
-
), (!l || o & /*isOpen*/
|
|
135
|
-
1) && _(e, "invisible", !/*isOpen*/
|
|
136
|
-
s[0]), (!l || o & /*isOpen*/
|
|
137
|
-
1) && _(e, "opacity-0", !/*isOpen*/
|
|
138
|
-
s[0]);
|
|
139
|
-
},
|
|
140
|
-
i(s) {
|
|
141
|
-
l || (v(b.$$.fragment, s), v(a, s), l = !0);
|
|
142
|
-
},
|
|
143
|
-
o(s) {
|
|
144
|
-
A(b.$$.fragment, s), A(a, s), l = !1;
|
|
145
|
-
},
|
|
146
|
-
d(s) {
|
|
147
|
-
s && X(e), Y(b), n[15](null), a && a.d(s), n[17](null), y = !1, Z(h);
|
|
148
|
-
}
|
|
149
|
-
};
|
|
1
|
+
import { w as S, x as D, y as F, z as T, S as z, g as j, c as R, p as U, A as l, B as _, C as y, F as G, i as J, a as K, j as L, t as M, d as O, D as N, E as o, b as Y, e as H, G as v, s as I, n as P, q as Q, u as V, r as x } from "./font-awesome-icon-G0qfxDx-.js";
|
|
2
|
+
import { s as W } from "./slot-CsZns-iM.js";
|
|
3
|
+
import { t as X } from "./bundle-mjs-BpzLJ4dA.js";
|
|
4
|
+
function E(a, t) {
|
|
5
|
+
return a === t || (a == null ? void 0 : a[z]) === t;
|
|
150
6
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
7
|
+
function B(a = {}, t, s, c) {
|
|
8
|
+
return S(() => {
|
|
9
|
+
var i, r;
|
|
10
|
+
return D(() => {
|
|
11
|
+
i = r, r = [], F(() => {
|
|
12
|
+
a !== s(...r) && (t(a, ...r), i && E(s(...i), a) && t(null, ...i));
|
|
13
|
+
});
|
|
14
|
+
}), () => {
|
|
15
|
+
T(() => {
|
|
16
|
+
r && E(s(...r), a) && t(null, ...r);
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
}), a;
|
|
20
|
+
}
|
|
21
|
+
const Z = (a) => Array.from(a.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [contenteditable], audio[controls], video[controls], details, summary, [tabindex]:not([tabindex="-1"])')), $ = (a, t, s) => {
|
|
22
|
+
t() && a.target === a.currentTarget && s(!1);
|
|
23
|
+
}, ee = (a, t) => {
|
|
24
|
+
a.key === "Escape" && t(!1);
|
|
25
|
+
}, te = (a, t, s, c, i) => {
|
|
26
|
+
var r;
|
|
27
|
+
if (t() && !s().contains(a.relatedTarget) && !c().contains(a.relatedTarget))
|
|
28
|
+
if (a.preventDefault(), a.target === i()) {
|
|
29
|
+
const d = Z(c());
|
|
30
|
+
(r = d[d.length - 1]) == null || r.focus();
|
|
31
|
+
} else
|
|
32
|
+
i().focus();
|
|
33
|
+
};
|
|
34
|
+
var ae = (a, t) => t(!1), se = M('<div class="fixed left-0 top-0 z-[1000] flex h-screen w-screen bg-black bg-opacity-50 transition-[opacity,visibility]"><div part="content"><button class="absolute right-0 top-0 -translate-x-1/2 translate-y-1/2 z-[2] flex aspect-square w-8 items-center justify-center text-white text-lg transition-colors bg-dark-grey hover:bg-red focus:bg-red rounded-full p-2" aria-label="Close modal"><!></button> <!></div></div>');
|
|
35
|
+
function ne(a, t) {
|
|
36
|
+
U(t, !0);
|
|
37
|
+
let s = l(t, "isOpen", 15), c = l(t, "centered", 7), i = l(t, "autoOpen", 7), r = l(t, "label", 7), d = l(t, "alertDialog", 7), w = l(t, "staticBackdrop", 7), m = l(t, "dismissButton", 7), f = l(t, "container", 7), b = l(t, "el", 7), p = l(t, "inertElements", 7);
|
|
38
|
+
_(() => {
|
|
39
|
+
i() && s(!0);
|
|
40
|
+
}), _(() => {
|
|
41
|
+
if (s()) {
|
|
42
|
+
window.requestAnimationFrame(() => {
|
|
184
43
|
window.requestAnimationFrame(() => {
|
|
185
44
|
window.requestAnimationFrame(() => {
|
|
186
|
-
|
|
187
|
-
f.focus();
|
|
188
|
-
});
|
|
45
|
+
f().focus();
|
|
189
46
|
});
|
|
190
47
|
});
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
48
|
+
});
|
|
49
|
+
let e = b();
|
|
50
|
+
for (; e !== null && e !== document.body; ) {
|
|
51
|
+
const h = e.parentElement;
|
|
52
|
+
if (h === null) {
|
|
53
|
+
const u = e.getRootNode();
|
|
54
|
+
if (u instanceof ShadowRoot) {
|
|
55
|
+
e = u.host;
|
|
56
|
+
continue;
|
|
200
57
|
}
|
|
201
|
-
if (O !== null)
|
|
202
|
-
for (const d of O.children)
|
|
203
|
-
d !== t && !d.inert && (d.inert = !0, s.push(d));
|
|
204
|
-
t = O, a.dispatchEvent(new CustomEvent("opened", { bubbles: !0, composed: !0 }));
|
|
205
58
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
59
|
+
if (h !== null)
|
|
60
|
+
for (const u of h.children)
|
|
61
|
+
u !== e && !u.inert && (u.inert = !0, p().push(u));
|
|
62
|
+
e = h;
|
|
210
63
|
}
|
|
211
|
-
|
|
64
|
+
b().dispatchEvent(new CustomEvent("opened", { bubbles: !0, composed: !0 }));
|
|
65
|
+
} else {
|
|
66
|
+
for (const e of p())
|
|
67
|
+
e.removeAttribute("inert");
|
|
68
|
+
p([]), b().dispatchEvent(new CustomEvent("closed", { bubbles: !0, composed: !0 }));
|
|
212
69
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
w,
|
|
219
|
-
l,
|
|
220
|
-
o,
|
|
221
|
-
D,
|
|
222
|
-
S,
|
|
70
|
+
document.body.style.overflow = s() ? "hidden" : "";
|
|
71
|
+
});
|
|
72
|
+
var n = se();
|
|
73
|
+
y(n, "tabindex", -1), n.__click = [$, w, s], n.__keyup = [ee, s], n.__focusout = [
|
|
74
|
+
te,
|
|
223
75
|
s,
|
|
224
|
-
|
|
225
|
-
y,
|
|
226
|
-
a,
|
|
76
|
+
f,
|
|
227
77
|
b,
|
|
228
|
-
|
|
229
|
-
F,
|
|
230
|
-
z,
|
|
231
|
-
T
|
|
78
|
+
m
|
|
232
79
|
];
|
|
80
|
+
var k = O(n);
|
|
81
|
+
const A = Q(() => V(X("z-1 absolute left-1/2 h-fit max-h-full max-w-full -translate-x-1/2 overflow-auto w-full sm:w-fit sm:p-8 transition-transform motion-reduce:transition-none", s() && "visible opacity-100", s() && c() && "translate-y-[calc(-50%_-_50px)]", (!s() && !c() || s() && c()) && "translate-y-[-50px]")));
|
|
82
|
+
var g = O(k);
|
|
83
|
+
g.__click = [ae, s];
|
|
84
|
+
var q = O(g);
|
|
85
|
+
G(q, { icon: N }), x(g), B(g, (e) => m(e), () => m());
|
|
86
|
+
var C = H(g, 2);
|
|
87
|
+
return W(C, t, "default", {}), x(k), x(n), B(n, (e) => f(e), () => f()), J(() => {
|
|
88
|
+
y(n, "role", d() ? "alertdialog" : "dialog"), y(n, "aria-modal", s() ? "true" : ""), y(n, "aria-label", r()), v(n, "visible", s()), v(n, "opacity-100", s()), v(n, "invisible", !s()), v(n, "opacity-0", !s()), I(k, P(A));
|
|
89
|
+
}), K(a, n), L({
|
|
90
|
+
get isOpen() {
|
|
91
|
+
return s();
|
|
92
|
+
},
|
|
93
|
+
set isOpen(e) {
|
|
94
|
+
s(e), o();
|
|
95
|
+
},
|
|
96
|
+
get centered() {
|
|
97
|
+
return c();
|
|
98
|
+
},
|
|
99
|
+
set centered(e) {
|
|
100
|
+
c(e), o();
|
|
101
|
+
},
|
|
102
|
+
get autoOpen() {
|
|
103
|
+
return i();
|
|
104
|
+
},
|
|
105
|
+
set autoOpen(e) {
|
|
106
|
+
i(e), o();
|
|
107
|
+
},
|
|
108
|
+
get label() {
|
|
109
|
+
return r();
|
|
110
|
+
},
|
|
111
|
+
set label(e) {
|
|
112
|
+
r(e), o();
|
|
113
|
+
},
|
|
114
|
+
get alertDialog() {
|
|
115
|
+
return d();
|
|
116
|
+
},
|
|
117
|
+
set alertDialog(e) {
|
|
118
|
+
d(e), o();
|
|
119
|
+
},
|
|
120
|
+
get staticBackdrop() {
|
|
121
|
+
return w();
|
|
122
|
+
},
|
|
123
|
+
set staticBackdrop(e) {
|
|
124
|
+
w(e), o();
|
|
125
|
+
},
|
|
126
|
+
get dismissButton() {
|
|
127
|
+
return m();
|
|
128
|
+
},
|
|
129
|
+
set dismissButton(e) {
|
|
130
|
+
m(e), o();
|
|
131
|
+
},
|
|
132
|
+
get container() {
|
|
133
|
+
return f();
|
|
134
|
+
},
|
|
135
|
+
set container(e) {
|
|
136
|
+
f(e), o();
|
|
137
|
+
},
|
|
138
|
+
get el() {
|
|
139
|
+
return b();
|
|
140
|
+
},
|
|
141
|
+
set el(e) {
|
|
142
|
+
b(e), o();
|
|
143
|
+
},
|
|
144
|
+
get inertElements() {
|
|
145
|
+
return p();
|
|
146
|
+
},
|
|
147
|
+
set inertElements(e) {
|
|
148
|
+
p(e), o();
|
|
149
|
+
}
|
|
150
|
+
});
|
|
233
151
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}
|
|
300
|
-
set el(e) {
|
|
301
|
-
this.$$set({ el: e }), m();
|
|
302
|
-
}
|
|
303
|
-
get inertElements() {
|
|
304
|
-
return this.$$.ctx[9];
|
|
305
|
-
}
|
|
306
|
-
set inertElements(e) {
|
|
307
|
-
this.$$set({ inertElements: e }), m();
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
customElements.define("uofg-modal", j(te, { isOpen: {}, centered: { reflect: !0, type: "Boolean", attribute: "centered" }, autoOpen: { reflect: !0, type: "Boolean", attribute: "auto-open" }, label: { reflect: !0, type: "String", attribute: "label" }, alertDialog: { reflect: !0, type: "String", attribute: "alert-dialog" }, staticBackdrop: { reflect: !0, type: "Boolean", attribute: "static-backdrop" }, dismissButton: {}, container: {}, el: {}, inertElements: {} }, ["default"], [], !0, (n) => class extends n {
|
|
311
|
-
constructor() {
|
|
312
|
-
super(), J(this.shadowRoot), this.el = this, this.inertElements = [];
|
|
313
|
-
}
|
|
314
|
-
connectedCallback() {
|
|
315
|
-
super.connectedCallback();
|
|
316
|
-
}
|
|
317
|
-
disconnectedCallback() {
|
|
318
|
-
super.disconnectedCallback();
|
|
319
|
-
for (const e of this.inertElements)
|
|
320
|
-
e.removeAttribute("inert");
|
|
321
|
-
}
|
|
322
|
-
getState() {
|
|
323
|
-
return this.isOpen;
|
|
324
|
-
}
|
|
325
|
-
setState(e) {
|
|
326
|
-
this.isOpen = e;
|
|
327
|
-
}
|
|
328
|
-
toggle() {
|
|
329
|
-
return this.isOpen = !this.isOpen, this.isOpen;
|
|
330
|
-
}
|
|
331
|
-
close() {
|
|
332
|
-
this.isOpen = !1;
|
|
333
|
-
}
|
|
334
|
-
open() {
|
|
335
|
-
this.isOpen = !0;
|
|
152
|
+
j(["click", "keyup", "focusout"]);
|
|
153
|
+
customElements.define("uofg-modal", R(
|
|
154
|
+
ne,
|
|
155
|
+
{
|
|
156
|
+
label: {
|
|
157
|
+
attribute: "label",
|
|
158
|
+
reflect: !0,
|
|
159
|
+
type: "String"
|
|
160
|
+
},
|
|
161
|
+
alertDialog: {
|
|
162
|
+
attribute: "alert-dialog",
|
|
163
|
+
reflect: !0,
|
|
164
|
+
type: "String"
|
|
165
|
+
},
|
|
166
|
+
centered: {
|
|
167
|
+
attribute: "centered",
|
|
168
|
+
reflect: !0,
|
|
169
|
+
type: "Boolean"
|
|
170
|
+
},
|
|
171
|
+
autoOpen: {
|
|
172
|
+
attribute: "auto-open",
|
|
173
|
+
reflect: !0,
|
|
174
|
+
type: "Boolean"
|
|
175
|
+
},
|
|
176
|
+
staticBackdrop: {
|
|
177
|
+
attribute: "static-backdrop",
|
|
178
|
+
reflect: !0,
|
|
179
|
+
type: "Boolean"
|
|
180
|
+
},
|
|
181
|
+
isOpen: {},
|
|
182
|
+
dismissButton: {},
|
|
183
|
+
container: {},
|
|
184
|
+
el: {},
|
|
185
|
+
inertElements: {}
|
|
186
|
+
},
|
|
187
|
+
["default"],
|
|
188
|
+
[],
|
|
189
|
+
!0,
|
|
190
|
+
(a) => class extends a {
|
|
191
|
+
constructor() {
|
|
192
|
+
super(), Y(this.shadowRoot), this.el = this, this.inertElements = [];
|
|
193
|
+
}
|
|
194
|
+
connectedCallback() {
|
|
195
|
+
super.connectedCallback();
|
|
196
|
+
}
|
|
197
|
+
disconnectedCallback() {
|
|
198
|
+
super.disconnectedCallback();
|
|
199
|
+
for (const t of this.inertElements)
|
|
200
|
+
t.removeAttribute("inert");
|
|
201
|
+
}
|
|
202
|
+
getState() {
|
|
203
|
+
return this.isOpen;
|
|
204
|
+
}
|
|
205
|
+
setState(t) {
|
|
206
|
+
this.isOpen = t;
|
|
207
|
+
}
|
|
208
|
+
toggle() {
|
|
209
|
+
return this.isOpen = !this.isOpen, this.isOpen;
|
|
210
|
+
}
|
|
211
|
+
close() {
|
|
212
|
+
this.isOpen = !1;
|
|
213
|
+
}
|
|
214
|
+
open() {
|
|
215
|
+
this.isOpen = !0;
|
|
216
|
+
}
|
|
336
217
|
}
|
|
337
|
-
|
|
218
|
+
));
|
|
338
219
|
export {
|
|
339
|
-
|
|
220
|
+
ne as default
|
|
340
221
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{font-size:62.5%}body{font-size:1.6rem;
|
|
1
|
+
:root{font-size:62.5%}body{font-size:1.6rem;margin:0;padding:0}uofg-header{display:block;width:100%}uofg-header *{display:none}uofg-header:defined{height:-moz-fit-content!important;height:fit-content!important}uofg-header:not(:defined){height:5rem!important;background-color:#000}@media screen and (min-width: 1024px){uofg-header:not(:defined){height:14rem!important}}uofg-header:not(:defined):has(*),uofg-header:not(:defined)[page-title]{height:10rem!important}@media screen and (min-width: 1024px){uofg-header:not(:defined):has(*),uofg-header:not(:defined)[page-title]{height:18rem!important}}uofg-header:not(:defined):has(*)[variant=dual-brand],uofg-header:not(:defined)[page-title][variant=dual-brand]{height:11.5rem!important}@media screen and (min-width: 1024px){uofg-header:not(:defined):has(*)[variant=dual-brand],uofg-header:not(:defined)[page-title][variant=dual-brand]{height:14rem!important}}uofg-footer{display:block}uofg-modal{display:block;position:fixed;visibility:hidden;z-index:1000}uofg-alert{display:block;max-width:100rem}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { x as u, w as d, aD as f, aE as v, aF as n } from "./font-awesome-icon-G0qfxDx-.js";
|
|
2
|
+
function m(a, e, c = e) {
|
|
3
|
+
var w = a === "x", s = () => n(() => {
|
|
4
|
+
r = !0, clearTimeout(t), t = setTimeout(l, 100), c(window[w ? "scrollX" : "scrollY"]);
|
|
5
|
+
});
|
|
6
|
+
addEventListener("scroll", s, {
|
|
7
|
+
passive: !0
|
|
8
|
+
});
|
|
9
|
+
var r = !1, t, l = () => {
|
|
10
|
+
r = !1;
|
|
11
|
+
}, i = !0;
|
|
12
|
+
u(() => {
|
|
13
|
+
var o = e();
|
|
14
|
+
i ? i = !1 : !r && o != null && (r = !0, clearTimeout(t), scrollTo(window.scrollX, o), t = setTimeout(l, 100));
|
|
15
|
+
}), d(s), f(() => {
|
|
16
|
+
removeEventListener("scroll", s);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function x(a, e) {
|
|
20
|
+
v(window, ["resize"], () => n(() => e(window[a])));
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
x as a,
|
|
24
|
+
m as b
|
|
25
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uoguelph/web-components",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.6-rc.0",
|
|
4
4
|
"description": "University of Guelph Web Components Library",
|
|
5
5
|
"module": "dist/uofg-web-components/uofg-web-components.esm.js",
|
|
6
6
|
"type": "module",
|
|
@@ -18,20 +18,20 @@
|
|
|
18
18
|
"@fortawesome/free-brands-svg-icons": "^6.4.0",
|
|
19
19
|
"@fortawesome/free-regular-svg-icons": "^6.4.0",
|
|
20
20
|
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
21
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
21
|
+
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
|
22
22
|
"autoprefixer": "^10.4.18",
|
|
23
23
|
"eslint": "^8.57.0",
|
|
24
|
-
"eslint-plugin-svelte": "^2.
|
|
24
|
+
"eslint-plugin-svelte": "^2.45.1",
|
|
25
25
|
"npmignore": "^0.3.1",
|
|
26
26
|
"postcss": "^8.4.35",
|
|
27
27
|
"prettier": "^3.3.2",
|
|
28
|
-
"prettier-plugin-svelte": "^3.2.
|
|
28
|
+
"prettier-plugin-svelte": "^3.2.6",
|
|
29
29
|
"prettier-plugin-tailwindcss": "^0.5.12",
|
|
30
|
-
"svelte": "^
|
|
31
|
-
"svelte-check": "^
|
|
30
|
+
"svelte": "^5.0.0",
|
|
31
|
+
"svelte-check": "^4.0.0",
|
|
32
32
|
"tailwind-merge": "^2.3.0",
|
|
33
33
|
"tailwindcss": "^3.4.1",
|
|
34
|
-
"vite": "^5.
|
|
34
|
+
"vite": "^5.4.4",
|
|
35
35
|
"vite-plugin-full-reload": "^1.1.0"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|