@uoguelph/web-components 2.0.9-rc.0 → 2.0.9
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/{index-BxiW26Pq.js → index-vFAkOjrl.js} +4977 -4905
- package/dist/uofg-web-components/uofg-footer.esm.js +100 -103
- package/dist/uofg-web-components/uofg-header.esm.js +787 -704
- package/dist/uofg-web-components/uofg-web-components.esm.js +3 -4
- package/package.json +1 -1
- package/dist/uofg-web-components/index-CsiSOAU0.js +0 -139
- package/dist/uofg-web-components/index-client-DG7fHzcC.js +0 -20
- package/dist/uofg-web-components/legacy-Bte-v9mf.js +0 -98
- package/dist/uofg-web-components/slot-DAai__2s.js +0 -18
- package/dist/uofg-web-components/uofg-alert.esm.js +0 -74
- package/dist/uofg-web-components/uofg-back-to-top.esm.js +0 -33
- package/dist/uofg-web-components/uofg-modal.esm.js +0 -231
- package/dist/uofg-web-components/window-Br-wveUj.js +0 -25
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import o from "./uofg-
|
|
2
|
-
import f from "./uofg-footer.esm.js";
|
|
1
|
+
import o from "./uofg-footer.esm.js";
|
|
3
2
|
import r from "./uofg-header.esm.js";
|
|
4
|
-
const
|
|
3
|
+
const t = { UofGHeader: r, UofGFooter: o };
|
|
5
4
|
export {
|
|
6
|
-
|
|
5
|
+
t as default
|
|
7
6
|
};
|
package/package.json
CHANGED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { aH as ne, aI as oe } from "./index-BxiW26Pq.js";
|
|
2
|
-
var D = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, d = (e) => !e || typeof e != "object" || Object.keys(e).length === 0, ie = (e, f) => JSON.stringify(e) === JSON.stringify(f);
|
|
3
|
-
function U(e, f) {
|
|
4
|
-
e.forEach(function(r) {
|
|
5
|
-
Array.isArray(r) ? U(r, f) : f.push(r);
|
|
6
|
-
});
|
|
7
|
-
}
|
|
8
|
-
function W(e) {
|
|
9
|
-
let f = [];
|
|
10
|
-
return U(e, f), f;
|
|
11
|
-
}
|
|
12
|
-
var _ = (...e) => W(e).filter(Boolean), $ = (e, f) => {
|
|
13
|
-
let r = {}, V = Object.keys(e), k = Object.keys(f);
|
|
14
|
-
for (let y of V) if (k.includes(y)) {
|
|
15
|
-
let g = e[y], h = f[y];
|
|
16
|
-
Array.isArray(g) || Array.isArray(h) ? r[y] = _(h, g) : typeof g == "object" && typeof h == "object" ? r[y] = $(g, h) : r[y] = h + " " + g;
|
|
17
|
-
} else r[y] = e[y];
|
|
18
|
-
for (let y of k) V.includes(y) || (r[y] = f[y]);
|
|
19
|
-
return r;
|
|
20
|
-
}, L = (e) => !e || typeof e != "string" ? e : e.replace(/\s+/g, " ").trim(), se = { twMerge: !0, twMergeConfig: {}, responsiveVariants: !1 }, F = (e) => e || void 0, x = (...e) => F(W(e).filter(Boolean).join(" ")), R = null, A = {}, B = !1, C = (...e) => (f) => f.twMerge ? ((!R || B) && (B = !1, R = d(A) ? ne : oe({ ...A, extend: { theme: A.theme, classGroups: A.classGroups, conflictingClassGroupModifiers: A.conflictingClassGroupModifiers, conflictingClassGroups: A.conflictingClassGroups, ...A.extend } })), F(R(x(e)))) : x(e), Q = (e, f) => {
|
|
21
|
-
for (let r in f) e.hasOwnProperty(r) ? e[r] = x(e[r], f[r]) : e[r] = f[r];
|
|
22
|
-
return e;
|
|
23
|
-
}, fe = (e, f) => {
|
|
24
|
-
let { extend: r = null, slots: V = {}, variants: k = {}, compoundVariants: y = [], compoundSlots: g = [], defaultVariants: h = {} } = e, v = { ...se, ...f }, T = r != null && r.base ? x(r.base, e == null ? void 0 : e.base) : e == null ? void 0 : e.base, b = r != null && r.variants && !d(r.variants) ? $(k, r.variants) : k, N = r != null && r.defaultVariants && !d(r.defaultVariants) ? { ...r.defaultVariants, ...h } : h;
|
|
25
|
-
!d(v.twMergeConfig) && !ie(v.twMergeConfig, A) && (B = !0, A = v.twMergeConfig);
|
|
26
|
-
let G = d(r == null ? void 0 : r.slots), E = d(V) ? {} : { base: x(e == null ? void 0 : e.base, G && (r == null ? void 0 : r.base)), ...V }, M = G ? E : Q({ ...r == null ? void 0 : r.slots }, d(E) ? { base: e == null ? void 0 : e.base } : E), w = d(r == null ? void 0 : r.compoundVariants) ? y : _(r == null ? void 0 : r.compoundVariants, y), m = (c) => {
|
|
27
|
-
if (d(b) && d(V) && G) return C(T, c == null ? void 0 : c.class, c == null ? void 0 : c.className)(v);
|
|
28
|
-
if (w && !Array.isArray(w)) throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof w}`);
|
|
29
|
-
if (g && !Array.isArray(g)) throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof g}`);
|
|
30
|
-
let Y = (t, n, l = [], i) => {
|
|
31
|
-
let o = l;
|
|
32
|
-
if (typeof n == "string") o = o.concat(L(n).split(" ").map((s) => `${t}:${s}`));
|
|
33
|
-
else if (Array.isArray(n)) o = o.concat(n.reduce((s, a) => s.concat(`${t}:${a}`), []));
|
|
34
|
-
else if (typeof n == "object" && typeof i == "string") {
|
|
35
|
-
for (let s in n) if (n.hasOwnProperty(s) && s === i) {
|
|
36
|
-
let a = n[s];
|
|
37
|
-
if (a && typeof a == "string") {
|
|
38
|
-
let u = L(a);
|
|
39
|
-
o[i] ? o[i] = o[i].concat(u.split(" ").map((p) => `${t}:${p}`)) : o[i] = u.split(" ").map((p) => `${t}:${p}`);
|
|
40
|
-
} else Array.isArray(a) && a.length > 0 && (o[i] = a.reduce((u, p) => u.concat(`${t}:${p}`), []));
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return o;
|
|
44
|
-
}, H = (t, n = b, l = null, i = null) => {
|
|
45
|
-
var o;
|
|
46
|
-
let s = n[t];
|
|
47
|
-
if (!s || d(s)) return null;
|
|
48
|
-
let a = (o = i == null ? void 0 : i[t]) != null ? o : c == null ? void 0 : c[t];
|
|
49
|
-
if (a === null) return null;
|
|
50
|
-
let u = D(a), p = Array.isArray(v.responsiveVariants) && v.responsiveVariants.length > 0 || v.responsiveVariants === !0, O = N == null ? void 0 : N[t], j = [];
|
|
51
|
-
if (typeof u == "object" && p) for (let [P, z] of Object.entries(u)) {
|
|
52
|
-
let le = s[z];
|
|
53
|
-
if (P === "initial") {
|
|
54
|
-
O = z;
|
|
55
|
-
continue;
|
|
56
|
-
}
|
|
57
|
-
Array.isArray(v.responsiveVariants) && !v.responsiveVariants.includes(P) || (j = Y(P, le, j, l));
|
|
58
|
-
}
|
|
59
|
-
let S = u != null && typeof u != "object" ? u : D(O), J = s[S || "false"];
|
|
60
|
-
return typeof j == "object" && typeof l == "string" && j[l] ? Q(j, J) : j.length > 0 ? (j.push(J), l === "base" ? j.join(" ") : j) : J;
|
|
61
|
-
}, Z = () => b ? Object.keys(b).map((t) => H(t, b)) : null, ee = (t, n) => {
|
|
62
|
-
if (!b || typeof b != "object") return null;
|
|
63
|
-
let l = new Array();
|
|
64
|
-
for (let i in b) {
|
|
65
|
-
let o = H(i, b, t, n), s = t === "base" && typeof o == "string" ? o : o && o[t];
|
|
66
|
-
s && (l[l.length] = s);
|
|
67
|
-
}
|
|
68
|
-
return l;
|
|
69
|
-
}, I = {};
|
|
70
|
-
for (let t in c) c[t] !== void 0 && (I[t] = c[t]);
|
|
71
|
-
let K = (t, n) => {
|
|
72
|
-
var l;
|
|
73
|
-
let i = typeof (c == null ? void 0 : c[t]) == "object" ? { [t]: (l = c[t]) == null ? void 0 : l.initial } : {};
|
|
74
|
-
return { ...N, ...I, ...i, ...n };
|
|
75
|
-
}, q = (t = [], n) => {
|
|
76
|
-
let l = [];
|
|
77
|
-
for (let { class: i, className: o, ...s } of t) {
|
|
78
|
-
let a = !0;
|
|
79
|
-
for (let [u, p] of Object.entries(s)) {
|
|
80
|
-
let O = K(u, n)[u];
|
|
81
|
-
if (Array.isArray(p)) {
|
|
82
|
-
if (!p.includes(O)) {
|
|
83
|
-
a = !1;
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
} else {
|
|
87
|
-
let j = (S) => S == null || S === !1;
|
|
88
|
-
if (j(p) && j(O)) continue;
|
|
89
|
-
if (O !== p) {
|
|
90
|
-
a = !1;
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
a && (i && l.push(i), o && l.push(o));
|
|
96
|
-
}
|
|
97
|
-
return l;
|
|
98
|
-
}, re = (t) => {
|
|
99
|
-
let n = q(w, t);
|
|
100
|
-
if (!Array.isArray(n)) return n;
|
|
101
|
-
let l = {};
|
|
102
|
-
for (let i of n) if (typeof i == "string" && (l.base = C(l.base, i)(v)), typeof i == "object") for (let [o, s] of Object.entries(i)) l[o] = C(l[o], s)(v);
|
|
103
|
-
return l;
|
|
104
|
-
}, te = (t) => {
|
|
105
|
-
if (g.length < 1) return null;
|
|
106
|
-
let n = {};
|
|
107
|
-
for (let { slots: l = [], class: i, className: o, ...s } of g) {
|
|
108
|
-
if (!d(s)) {
|
|
109
|
-
let a = !0;
|
|
110
|
-
for (let u of Object.keys(s)) {
|
|
111
|
-
let p = K(u, t)[u];
|
|
112
|
-
if (p === void 0 || (Array.isArray(s[u]) ? !s[u].includes(p) : s[u] !== p)) {
|
|
113
|
-
a = !1;
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
if (!a) continue;
|
|
118
|
-
}
|
|
119
|
-
for (let a of l) n[a] = n[a] || [], n[a].push([i, o]);
|
|
120
|
-
}
|
|
121
|
-
return n;
|
|
122
|
-
};
|
|
123
|
-
if (!d(V) || !G) {
|
|
124
|
-
let t = {};
|
|
125
|
-
if (typeof M == "object" && !d(M)) for (let n of Object.keys(M)) t[n] = (l) => {
|
|
126
|
-
var i, o;
|
|
127
|
-
return C(M[n], ee(n, l), ((i = re(l)) != null ? i : [])[n], ((o = te(l)) != null ? o : [])[n], l == null ? void 0 : l.class, l == null ? void 0 : l.className)(v);
|
|
128
|
-
};
|
|
129
|
-
return t;
|
|
130
|
-
}
|
|
131
|
-
return C(T, Z(), q(w), c == null ? void 0 : c.class, c == null ? void 0 : c.className)(v);
|
|
132
|
-
}, X = () => {
|
|
133
|
-
if (!(!b || typeof b != "object")) return Object.keys(b);
|
|
134
|
-
};
|
|
135
|
-
return m.variantKeys = X(), m.extend = r, m.base = T, m.slots = M, m.variants = b, m.defaultVariants = N, m.compoundSlots = g, m.compoundVariants = w, m;
|
|
136
|
-
};
|
|
137
|
-
export {
|
|
138
|
-
fe as c
|
|
139
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ay as t, aF as a, aG as o, A as c, y as u } from "./index-BxiW26Pq.js";
|
|
2
|
-
function f(e) {
|
|
3
|
-
t === null && a(), o && t.l !== null ? l(t).m.push(e) : c(() => {
|
|
4
|
-
const n = u(e);
|
|
5
|
-
if (typeof n == "function") return (
|
|
6
|
-
/** @type {() => void} */
|
|
7
|
-
n
|
|
8
|
-
);
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
function l(e) {
|
|
12
|
-
var n = (
|
|
13
|
-
/** @type {ComponentContextLegacy} */
|
|
14
|
-
e.l
|
|
15
|
-
);
|
|
16
|
-
return n.u ?? (n.u = { a: [], b: [], m: [] });
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
f as o
|
|
20
|
-
};
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { am as E, a0 as w, an as R, t as T, $ as k, ao as A, ap as N, aq as u, ar as d, D as h, E as p, as as m, at as C, au as D, av as O, aw as M, ax as $, ay as B, az as F, A as v, aA as g, y as q, aB as z, m as b, aC as H, aD as I, aE as P } from "./index-BxiW26Pq.js";
|
|
2
|
-
function Y(f, s, ...a) {
|
|
3
|
-
var t = new R(f);
|
|
4
|
-
E(() => {
|
|
5
|
-
const r = s() ?? null;
|
|
6
|
-
t.ensure(r, r && ((n) => r(n, ...a)));
|
|
7
|
-
}, w);
|
|
8
|
-
}
|
|
9
|
-
function j(f, s, a = !1, t = !1, r = !1) {
|
|
10
|
-
var n = f, c = "";
|
|
11
|
-
T(() => {
|
|
12
|
-
var o = (
|
|
13
|
-
/** @type {Effect} */
|
|
14
|
-
k
|
|
15
|
-
);
|
|
16
|
-
if (c === (c = s() ?? "")) {
|
|
17
|
-
h && p();
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
if (o.nodes !== null && (A(
|
|
21
|
-
o.nodes.start,
|
|
22
|
-
/** @type {TemplateNode} */
|
|
23
|
-
o.nodes.end
|
|
24
|
-
), o.nodes = null), c !== "") {
|
|
25
|
-
if (h) {
|
|
26
|
-
m.data;
|
|
27
|
-
for (var e = p(), i = e; e !== null && (e.nodeType !== C || /** @type {Comment} */
|
|
28
|
-
e.data !== ""); )
|
|
29
|
-
i = e, e = D(e);
|
|
30
|
-
if (e === null)
|
|
31
|
-
throw O(), M;
|
|
32
|
-
u(m, i), n = $(e);
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
var _ = c + "";
|
|
36
|
-
a ? _ = `<svg>${_}</svg>` : t && (_ = `<math>${_}</math>`);
|
|
37
|
-
var l = N(_);
|
|
38
|
-
if ((a || t) && (l = /** @type {Element} */
|
|
39
|
-
d(l)), u(
|
|
40
|
-
/** @type {TemplateNode} */
|
|
41
|
-
d(l),
|
|
42
|
-
/** @type {TemplateNode} */
|
|
43
|
-
l.lastChild
|
|
44
|
-
), a || t)
|
|
45
|
-
for (; d(l); )
|
|
46
|
-
n.before(
|
|
47
|
-
/** @type {TemplateNode} */
|
|
48
|
-
d(l)
|
|
49
|
-
);
|
|
50
|
-
else
|
|
51
|
-
n.before(l);
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function G(f = !1) {
|
|
56
|
-
const s = (
|
|
57
|
-
/** @type {ComponentContextLegacy} */
|
|
58
|
-
B
|
|
59
|
-
), a = s.l.u;
|
|
60
|
-
if (!a) return;
|
|
61
|
-
let t = () => H(s.s);
|
|
62
|
-
if (f) {
|
|
63
|
-
let r = 0, n = (
|
|
64
|
-
/** @type {Record<string, any>} */
|
|
65
|
-
{}
|
|
66
|
-
);
|
|
67
|
-
const c = I(() => {
|
|
68
|
-
let o = !1;
|
|
69
|
-
const e = s.s;
|
|
70
|
-
for (const i in e)
|
|
71
|
-
e[i] !== n[i] && (n[i] = e[i], o = !0);
|
|
72
|
-
return o && r++, r;
|
|
73
|
-
});
|
|
74
|
-
t = () => b(c);
|
|
75
|
-
}
|
|
76
|
-
a.b.length && F(() => {
|
|
77
|
-
y(s, t), g(a.b);
|
|
78
|
-
}), v(() => {
|
|
79
|
-
const r = q(() => a.m.map(z));
|
|
80
|
-
return () => {
|
|
81
|
-
for (const n of r)
|
|
82
|
-
typeof n == "function" && n();
|
|
83
|
-
};
|
|
84
|
-
}), a.a.length && v(() => {
|
|
85
|
-
y(s, t), g(a.a);
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
function y(f, s) {
|
|
89
|
-
if (f.l.s)
|
|
90
|
-
for (const a of f.l.s) b(a);
|
|
91
|
-
s();
|
|
92
|
-
}
|
|
93
|
-
P();
|
|
94
|
-
export {
|
|
95
|
-
j as h,
|
|
96
|
-
G as i,
|
|
97
|
-
Y as s
|
|
98
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { D as r, E as l } from "./index-BxiW26Pq.js";
|
|
2
|
-
function d(i, t, e, s, o) {
|
|
3
|
-
var a;
|
|
4
|
-
r && l();
|
|
5
|
-
var n = (a = t.$$slots) == null ? void 0 : a[e], f = !1;
|
|
6
|
-
n === !0 && (n = t[e === "default" ? "children" : e], f = !0), n === void 0 || n(i, f ? () => s : s);
|
|
7
|
-
}
|
|
8
|
-
function c(i) {
|
|
9
|
-
const t = {};
|
|
10
|
-
i.children && (t.default = !0);
|
|
11
|
-
for (const e in i.$$slots)
|
|
12
|
-
t[e] = !0;
|
|
13
|
-
return t;
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
d as a,
|
|
17
|
-
c as s
|
|
18
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { c as A, p as B, a as D, b as p, f as G, F as H, d as I, s as c, e as o, t as J, g as s, h as a, i as K, j as L, k as N, r } from "./index-BxiW26Pq.js";
|
|
2
|
-
import { o as O } from "./index-client-DG7fHzcC.js";
|
|
3
|
-
import { s as P, a as d } from "./slot-DAai__2s.js";
|
|
4
|
-
import { c as Q } from "./index-CsiSOAU0.js";
|
|
5
|
-
var V = G("<div><div><!> <!></div> <div><!> <span><!></span></div> <div><!></div></div>");
|
|
6
|
-
function W(m, t) {
|
|
7
|
-
const e = P(t);
|
|
8
|
-
B(t, !0);
|
|
9
|
-
let g = D(t, "color", 7, "red");
|
|
10
|
-
O(() => {
|
|
11
|
-
p(t.$$host.shadowRoot);
|
|
12
|
-
});
|
|
13
|
-
const y = Q({
|
|
14
|
-
slots: {
|
|
15
|
-
base: "flex flex-col",
|
|
16
|
-
title: "flex items-center p-4 text-lg [&>svg]:mr-4 [&>svg]:h-[1.5em] [&>svg]:fill-current",
|
|
17
|
-
content: 'border-grey-muted flex flex-col border border-t-0 bg-white px-6 py-3 [&>slot[name="subtitle"]::slotted(*)]:mb-4 [&>slot[name="subtitle"]::slotted(*)]:text-xl [&>slot[name="subtitle"]::slotted(*)]:font-bold',
|
|
18
|
-
message: '[&>slot[name="message"]::slotted(a)]:text-blue-text [&>slot[name="message"]::slotted(*)]:text-base [&>slot[name="message"]::slotted(a)]:px-1 [&>slot[name="message"]::slotted(a:hover)]:bg-blue [&>slot[name="message"]::slotted(a:hover)]:text-blue-contrast [&>slot[name="message"]::slotted(a:hover)]:decoration-transparent [&>slot[name="message"]::slotted(a:hover)]:transition-colors',
|
|
19
|
-
footer: "bg-grey-light text-grey-light-contrast flex"
|
|
20
|
-
},
|
|
21
|
-
variants: {
|
|
22
|
-
color: {
|
|
23
|
-
red: { title: "bg-red text-red-contrast" },
|
|
24
|
-
yellow: { title: "bg-yellow text-yellow-contrast" },
|
|
25
|
-
blue: { title: "bg-blue text-blue-contrast" },
|
|
26
|
-
green: { title: "bg-green text-green-contrast" }
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}), { base: w, title: E, content: F, message: R, footer: S } = y({ color: g() });
|
|
30
|
-
var j = {
|
|
31
|
-
get color() {
|
|
32
|
-
return g();
|
|
33
|
-
},
|
|
34
|
-
set color(b = "red") {
|
|
35
|
-
g(b), N();
|
|
36
|
-
}
|
|
37
|
-
}, l = V(), n = o(l), f = o(n);
|
|
38
|
-
H(f, {
|
|
39
|
-
get icon() {
|
|
40
|
-
return I;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
var k = c(f, 2);
|
|
44
|
-
d(k, t, "title", {}), r(n);
|
|
45
|
-
var i = c(n, 2);
|
|
46
|
-
let x;
|
|
47
|
-
var h = o(i);
|
|
48
|
-
d(h, t, "subtitle", {});
|
|
49
|
-
var u = c(h, 2), z = o(u);
|
|
50
|
-
d(z, t, "message", {}), r(u), r(i);
|
|
51
|
-
var v = c(i, 2);
|
|
52
|
-
let _;
|
|
53
|
-
var C = o(v);
|
|
54
|
-
return d(C, t, "footer", {}), r(v), r(l), J(
|
|
55
|
-
(b, M, T, U, q) => {
|
|
56
|
-
a(l, 1, b), a(n, 1, M), x = a(i, 1, T, null, x, { "border-b": !(e != null && e.footer) }), a(u, 1, U), _ = a(v, 1, q, null, _, { "px-4": e == null ? void 0 : e.footer, "py-2": e == null ? void 0 : e.footer });
|
|
57
|
-
},
|
|
58
|
-
[
|
|
59
|
-
() => s(w()),
|
|
60
|
-
() => s(E()),
|
|
61
|
-
() => s(F()),
|
|
62
|
-
() => s(R()),
|
|
63
|
-
() => s(S())
|
|
64
|
-
]
|
|
65
|
-
), K(m, l), L(j);
|
|
66
|
-
}
|
|
67
|
-
customElements.define("uofg-alert", A(W, { color: { attribute: "color", reflect: !0, type: "String" } }, ["title", "subtitle", "message", "footer"], [], !0, (m) => class extends m {
|
|
68
|
-
constructor() {
|
|
69
|
-
super(), p(this.shadowRoot);
|
|
70
|
-
}
|
|
71
|
-
}));
|
|
72
|
-
export {
|
|
73
|
-
W as default
|
|
74
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { l as u, c as f, f as m, F as h, t as v, m as a, i as _, j as g, p as x, n as w, g as k, u as y, h as T, o as j, q as F, e as c, r as i, v as U, b as q } from "./index-BxiW26Pq.js";
|
|
2
|
-
import { b as z } from "./window-Br-wveUj.js";
|
|
3
|
-
import { c as B } from "./index-CsiSOAU0.js";
|
|
4
|
-
var C = m('<button><span aria-hidden="true"><!></span> <span class="sr-only">Back to top of page</span></button>');
|
|
5
|
-
function E(e, n) {
|
|
6
|
-
x(n, !0);
|
|
7
|
-
let s = F(0), l = y(() => a(s) > 50);
|
|
8
|
-
const p = () => {
|
|
9
|
-
window.scroll({ top: 0, left: 0, behavior: "smooth" });
|
|
10
|
-
}, b = B({
|
|
11
|
-
base: "fixed right-8 bottom-8 z-10 flex h-10 w-10 items-center justify-center border border-white bg-black text-lg text-black-contrast transition hover:bg-red hover:text-red-contrast focus:bg-red focus:text-red-contrast",
|
|
12
|
-
variants: {
|
|
13
|
-
visible: { true: "visible opacity-100", false: "invisible opacity-0" }
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
var t = C();
|
|
17
|
-
t.__click = p;
|
|
18
|
-
var r = c(t), d = c(r);
|
|
19
|
-
h(d, {
|
|
20
|
-
get icon() {
|
|
21
|
-
return w;
|
|
22
|
-
}
|
|
23
|
-
}), i(r), U(2), i(t), v((o) => T(t, 1, o), [() => k(b({ visible: a(l) }))]), z("y", () => a(s), (o) => j(s, o, !0)), _(e, t), g();
|
|
24
|
-
}
|
|
25
|
-
u(["click"]);
|
|
26
|
-
customElements.define("uofg-back-to-top", f(E, {}, [], [], !0, (e) => class extends e {
|
|
27
|
-
constructor() {
|
|
28
|
-
super(), q(this.shadowRoot);
|
|
29
|
-
}
|
|
30
|
-
}));
|
|
31
|
-
export {
|
|
32
|
-
E as default
|
|
33
|
-
};
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { w as K, x as L, y as M, z as N, S as V, l as Y, c as G, p as H, a as o, A as _, f as I, B as h, e as x, F as J, C as P, s as Q, t as W, g as k, h as w, i as X, j as Z, k as l, r as E, b as $ } from "./index-BxiW26Pq.js";
|
|
2
|
-
import { a as ee } from "./slot-DAai__2s.js";
|
|
3
|
-
function B(s, t) {
|
|
4
|
-
return s === t || (s == null ? void 0 : s[V]) === t;
|
|
5
|
-
}
|
|
6
|
-
function A(s = {}, t, n, g) {
|
|
7
|
-
return K(() => {
|
|
8
|
-
var u, i;
|
|
9
|
-
return L(() => {
|
|
10
|
-
u = i, i = [], M(() => {
|
|
11
|
-
s !== n(...i) && (t(s, ...i), u && B(n(...u), s) && t(null, ...u));
|
|
12
|
-
});
|
|
13
|
-
}), () => {
|
|
14
|
-
N(() => {
|
|
15
|
-
i && B(n(...i), s) && t(null, ...i);
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
}), s;
|
|
19
|
-
}
|
|
20
|
-
const te = (s) => Array.from(s.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"])'));
|
|
21
|
-
var se = I('<div><div part="content"><button aria-label="Close modal"><!></button> <!></div></div>');
|
|
22
|
-
function ne(s, t) {
|
|
23
|
-
H(t, !0);
|
|
24
|
-
let n = o(t, "isOpen", 15), g = o(t, "centered", 7), u = o(t, "autoOpen", 7), i = o(t, "label", 7), y = o(t, "alertDialog", 7), v = o(t, "staticBackdrop", 7), f = o(t, "dismissButton", 7), b = o(t, "container", 7), d = o(t, "el", 7), m = o(t, "inertElements", 7);
|
|
25
|
-
const S = (e) => {
|
|
26
|
-
!v() && e.target === e.currentTarget && n(!1);
|
|
27
|
-
}, q = (e) => {
|
|
28
|
-
e.key === "Escape" && n(!1);
|
|
29
|
-
}, F = (e) => {
|
|
30
|
-
var c;
|
|
31
|
-
if (n() && !b().contains(e.relatedTarget) && !d().contains(e.relatedTarget))
|
|
32
|
-
if (e.preventDefault(), e.target === f()) {
|
|
33
|
-
const r = te(d());
|
|
34
|
-
(c = r[r.length - 1]) == null || c.focus();
|
|
35
|
-
} else
|
|
36
|
-
f().focus();
|
|
37
|
-
};
|
|
38
|
-
_(() => {
|
|
39
|
-
u() && n(!0);
|
|
40
|
-
}), _(() => {
|
|
41
|
-
if (n()) {
|
|
42
|
-
window.requestAnimationFrame(() => {
|
|
43
|
-
window.requestAnimationFrame(() => {
|
|
44
|
-
window.requestAnimationFrame(() => {
|
|
45
|
-
b().focus();
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
let e = d();
|
|
50
|
-
for (; e !== null && e !== document.body; ) {
|
|
51
|
-
const c = e.parentElement;
|
|
52
|
-
if (c === null) {
|
|
53
|
-
const r = e.getRootNode();
|
|
54
|
-
if (r instanceof ShadowRoot) {
|
|
55
|
-
e = r.host;
|
|
56
|
-
continue;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
if (c !== null)
|
|
60
|
-
for (const r of c.children)
|
|
61
|
-
r !== e && !r.inert && (r.inert = !0, m().push(r));
|
|
62
|
-
e = c;
|
|
63
|
-
}
|
|
64
|
-
d().dispatchEvent(new CustomEvent("opened", { bubbles: !0, composed: !0 }));
|
|
65
|
-
} else {
|
|
66
|
-
for (const e of m())
|
|
67
|
-
e.removeAttribute("inert");
|
|
68
|
-
m([]), d().dispatchEvent(new CustomEvent("closed", { bubbles: !0, composed: !0 }));
|
|
69
|
-
}
|
|
70
|
-
document.body.style.overflow = n() ? "hidden" : "";
|
|
71
|
-
});
|
|
72
|
-
const T = tv({
|
|
73
|
-
slots: {
|
|
74
|
-
base: "bg-opacity-50 fixed top-0 left-0 z-[1000] flex h-screen w-screen bg-black transition-[opacity,visibility]",
|
|
75
|
-
content: "absolute left-1/2 z-1 h-fit max-h-full w-full max-w-full -translate-x-1/2 overflow-auto transition-transform motion-reduce:transition-none sm:w-fit sm:p-8",
|
|
76
|
-
button: "absolute top-0 right-0 z-[2] flex aspect-square w-8 -translate-x-1/2 translate-y-1/2 items-center justify-center rounded-full border border-black/30 bg-black p-2 text-lg text-black-contrast transition-colors hover:bg-red hover:text-red-contrast focus:bg-red focus:text-red-contrast"
|
|
77
|
-
},
|
|
78
|
-
variants: {
|
|
79
|
-
isOpen: {
|
|
80
|
-
true: { base: "visible opacity-100", content: "visible opacity-100" },
|
|
81
|
-
false: { base: "invisible opacity-0", content: "invisible opacity-0" }
|
|
82
|
-
},
|
|
83
|
-
centered: { true: "" }
|
|
84
|
-
},
|
|
85
|
-
compoundVariants: [
|
|
86
|
-
{
|
|
87
|
-
isOpen: !0,
|
|
88
|
-
centered: !0,
|
|
89
|
-
class: { content: "top-1/2 translate-y-[-50%]" }
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
isOpen: !1,
|
|
93
|
-
centered: !1,
|
|
94
|
-
class: { content: "translate-y-[-50px]" }
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
isOpen: !1,
|
|
98
|
-
centered: !0,
|
|
99
|
-
class: { content: "top-1/2 translate-y-[calc(-50%_-_50px)]" }
|
|
100
|
-
}
|
|
101
|
-
]
|
|
102
|
-
}), { base: C, content: D, button: z } = T({ isOpen: n(), centered: g() });
|
|
103
|
-
var j = {
|
|
104
|
-
get isOpen() {
|
|
105
|
-
return n();
|
|
106
|
-
},
|
|
107
|
-
set isOpen(e) {
|
|
108
|
-
n(e), l();
|
|
109
|
-
},
|
|
110
|
-
get centered() {
|
|
111
|
-
return g();
|
|
112
|
-
},
|
|
113
|
-
set centered(e) {
|
|
114
|
-
g(e), l();
|
|
115
|
-
},
|
|
116
|
-
get autoOpen() {
|
|
117
|
-
return u();
|
|
118
|
-
},
|
|
119
|
-
set autoOpen(e) {
|
|
120
|
-
u(e), l();
|
|
121
|
-
},
|
|
122
|
-
get label() {
|
|
123
|
-
return i();
|
|
124
|
-
},
|
|
125
|
-
set label(e) {
|
|
126
|
-
i(e), l();
|
|
127
|
-
},
|
|
128
|
-
get alertDialog() {
|
|
129
|
-
return y();
|
|
130
|
-
},
|
|
131
|
-
set alertDialog(e) {
|
|
132
|
-
y(e), l();
|
|
133
|
-
},
|
|
134
|
-
get staticBackdrop() {
|
|
135
|
-
return v();
|
|
136
|
-
},
|
|
137
|
-
set staticBackdrop(e) {
|
|
138
|
-
v(e), l();
|
|
139
|
-
},
|
|
140
|
-
get dismissButton() {
|
|
141
|
-
return f();
|
|
142
|
-
},
|
|
143
|
-
set dismissButton(e) {
|
|
144
|
-
f(e), l();
|
|
145
|
-
},
|
|
146
|
-
get container() {
|
|
147
|
-
return b();
|
|
148
|
-
},
|
|
149
|
-
set container(e) {
|
|
150
|
-
b(e), l();
|
|
151
|
-
},
|
|
152
|
-
get el() {
|
|
153
|
-
return d();
|
|
154
|
-
},
|
|
155
|
-
set el(e) {
|
|
156
|
-
d(e), l();
|
|
157
|
-
},
|
|
158
|
-
get inertElements() {
|
|
159
|
-
return m();
|
|
160
|
-
},
|
|
161
|
-
set inertElements(e) {
|
|
162
|
-
m(e), l();
|
|
163
|
-
}
|
|
164
|
-
}, a = se();
|
|
165
|
-
h(a, "tabindex", -1), a.__click = S, a.__keyup = q, a.__focusout = F;
|
|
166
|
-
var O = x(a), p = x(O);
|
|
167
|
-
p.__click = () => n(!1);
|
|
168
|
-
var R = x(p);
|
|
169
|
-
J(R, {
|
|
170
|
-
get icon() {
|
|
171
|
-
return P;
|
|
172
|
-
}
|
|
173
|
-
}), E(p), A(p, (e) => f(e), () => f());
|
|
174
|
-
var U = Q(p, 2);
|
|
175
|
-
return ee(U, t, "default", {}), E(O), E(a), A(a, (e) => b(e), () => b()), W(
|
|
176
|
-
(e, c, r) => {
|
|
177
|
-
w(a, 1, e), h(a, "role", y() ? "alertdialog" : "dialog"), h(a, "aria-modal", n() ? "true" : ""), h(a, "aria-label", i()), w(O, 1, c), w(p, 1, r);
|
|
178
|
-
},
|
|
179
|
-
[
|
|
180
|
-
() => k(C()),
|
|
181
|
-
() => k(D()),
|
|
182
|
-
() => k(z())
|
|
183
|
-
]
|
|
184
|
-
), X(s, a), Z(j);
|
|
185
|
-
}
|
|
186
|
-
Y(["click", "keyup", "focusout"]);
|
|
187
|
-
customElements.define("uofg-modal", G(
|
|
188
|
-
ne,
|
|
189
|
-
{
|
|
190
|
-
label: { attribute: "label", reflect: !0, type: "String" },
|
|
191
|
-
alertDialog: { attribute: "alert-dialog", reflect: !0, type: "String" },
|
|
192
|
-
centered: { attribute: "centered", reflect: !0, type: "Boolean" },
|
|
193
|
-
autoOpen: { attribute: "auto-open", reflect: !0, type: "Boolean" },
|
|
194
|
-
staticBackdrop: { attribute: "static-backdrop", reflect: !0, type: "Boolean" },
|
|
195
|
-
isOpen: {},
|
|
196
|
-
dismissButton: {},
|
|
197
|
-
container: {},
|
|
198
|
-
el: {},
|
|
199
|
-
inertElements: {}
|
|
200
|
-
},
|
|
201
|
-
["default"],
|
|
202
|
-
[],
|
|
203
|
-
!0,
|
|
204
|
-
(s) => class extends s {
|
|
205
|
-
constructor() {
|
|
206
|
-
super(), $(this.shadowRoot), this.el = this, this.inertElements = [], this.isOpen = !1;
|
|
207
|
-
}
|
|
208
|
-
disconnectedCallback() {
|
|
209
|
-
for (const t of this.inertElements)
|
|
210
|
-
t.removeAttribute("inert");
|
|
211
|
-
}
|
|
212
|
-
getState() {
|
|
213
|
-
return this.isOpen;
|
|
214
|
-
}
|
|
215
|
-
setState(t) {
|
|
216
|
-
this.isOpen = t;
|
|
217
|
-
}
|
|
218
|
-
toggle() {
|
|
219
|
-
return this.isOpen = !this.isOpen, this.isOpen;
|
|
220
|
-
}
|
|
221
|
-
close() {
|
|
222
|
-
this.isOpen = !1;
|
|
223
|
-
}
|
|
224
|
-
open() {
|
|
225
|
-
this.isOpen = !0;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
));
|
|
229
|
-
export {
|
|
230
|
-
ne as default
|
|
231
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { a4 as n, x as u, w as d, ak as f, al as v } from "./index-BxiW26Pq.js";
|
|
2
|
-
function m(a, e, c = e) {
|
|
3
|
-
var w = a === "x", l = () => n(() => {
|
|
4
|
-
r = !0, clearTimeout(t), t = setTimeout(s, 100), c(window[w ? "scrollX" : "scrollY"]);
|
|
5
|
-
});
|
|
6
|
-
addEventListener("scroll", l, {
|
|
7
|
-
passive: !0
|
|
8
|
-
});
|
|
9
|
-
var r = !1, t, s = () => {
|
|
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(s, 100));
|
|
15
|
-
}), d(l), f(() => {
|
|
16
|
-
removeEventListener("scroll", l);
|
|
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
|
-
};
|