@uoguelph/web-components 2.0.8 → 2.0.9-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/uofg-web-components/index-vFAkOjrl.js +8800 -0
- package/dist/uofg-web-components/uofg-footer.esm.js +232 -250
- package/dist/uofg-web-components/uofg-header.esm.js +851 -825
- package/dist/uofg-web-components/uofg-web-components.css +1 -1
- package/dist/uofg-web-components/uofg-web-components.esm.js +3 -4
- package/package.json +1 -1
- package/dist/uofg-web-components/index-C6ZIYhZ_.js +0 -139
- package/dist/uofg-web-components/index-CEFM1xyC.js +0 -7830
- package/dist/uofg-web-components/index-client-Cf3Y5mtB.js +0 -20
- package/dist/uofg-web-components/legacy-eE7eSuBp.js +0 -101
- package/dist/uofg-web-components/slot-DaIvQlrl.js +0 -18
- package/dist/uofg-web-components/uofg-alert.esm.js +0 -90
- package/dist/uofg-web-components/uofg-back-to-top.esm.js +0 -39
- package/dist/uofg-web-components/uofg-modal.esm.js +0 -267
- package/dist/uofg-web-components/window-BAHesVQ-.js +0 -25
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { aB as t, aI as a, aJ as o, A as c, y as u } from "./index-CEFM1xyC.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,101 +0,0 @@
|
|
|
1
|
-
import { ap as E, a0 as R, aq as k, a6 as w, ar as A, D as u, as as p, t as T, E as h, $ as C, at as D, au as F, av as N, aw as $, ax as v, ay as H, az as O, aA as d, aB as q, aC as z, A as m, y as B, aD as G, aE as g, m as b, aF as I, aG as P, aH as S } from "./index-CEFM1xyC.js";
|
|
2
|
-
function j(f, t, ...a) {
|
|
3
|
-
var n = f, r = w, e;
|
|
4
|
-
E(() => {
|
|
5
|
-
r !== (r = t()) && (e && (A(e), e = null), e = k(() => (
|
|
6
|
-
/** @type {SnippetFn} */
|
|
7
|
-
r(n, ...a)
|
|
8
|
-
)));
|
|
9
|
-
}, R), u && (n = p);
|
|
10
|
-
}
|
|
11
|
-
function J(f, t, a = !1, n = !1, r = !1) {
|
|
12
|
-
var e = f, _ = "";
|
|
13
|
-
T(() => {
|
|
14
|
-
var o = (
|
|
15
|
-
/** @type {Effect} */
|
|
16
|
-
C
|
|
17
|
-
);
|
|
18
|
-
if (_ === (_ = t() ?? "")) {
|
|
19
|
-
u && h();
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
if (o.nodes_start !== null && (D(
|
|
23
|
-
o.nodes_start,
|
|
24
|
-
/** @type {TemplateNode} */
|
|
25
|
-
o.nodes_end
|
|
26
|
-
), o.nodes_start = o.nodes_end = null), _ !== "") {
|
|
27
|
-
if (u) {
|
|
28
|
-
p.data;
|
|
29
|
-
for (var s = h(), i = s; s !== null && (s.nodeType !== 8 || /** @type {Comment} */
|
|
30
|
-
s.data !== ""); )
|
|
31
|
-
i = s, s = /** @type {TemplateNode} */
|
|
32
|
-
F(s);
|
|
33
|
-
if (s === null)
|
|
34
|
-
throw N(), $;
|
|
35
|
-
v(p, i), e = H(s);
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
var c = _ + "";
|
|
39
|
-
a ? c = `<svg>${c}</svg>` : n && (c = `<math>${c}</math>`);
|
|
40
|
-
var l = O(c);
|
|
41
|
-
if ((a || n) && (l = /** @type {Element} */
|
|
42
|
-
d(l)), v(
|
|
43
|
-
/** @type {TemplateNode} */
|
|
44
|
-
d(l),
|
|
45
|
-
/** @type {TemplateNode} */
|
|
46
|
-
l.lastChild
|
|
47
|
-
), a || n)
|
|
48
|
-
for (; d(l); )
|
|
49
|
-
e.before(
|
|
50
|
-
/** @type {Node} */
|
|
51
|
-
d(l)
|
|
52
|
-
);
|
|
53
|
-
else
|
|
54
|
-
e.before(l);
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function K(f = !1) {
|
|
59
|
-
const t = (
|
|
60
|
-
/** @type {ComponentContextLegacy} */
|
|
61
|
-
q
|
|
62
|
-
), a = t.l.u;
|
|
63
|
-
if (!a) return;
|
|
64
|
-
let n = () => I(t.s);
|
|
65
|
-
if (f) {
|
|
66
|
-
let r = 0, e = (
|
|
67
|
-
/** @type {Record<string, any>} */
|
|
68
|
-
{}
|
|
69
|
-
);
|
|
70
|
-
const _ = P(() => {
|
|
71
|
-
let o = !1;
|
|
72
|
-
const s = t.s;
|
|
73
|
-
for (const i in s)
|
|
74
|
-
s[i] !== e[i] && (e[i] = s[i], o = !0);
|
|
75
|
-
return o && r++, r;
|
|
76
|
-
});
|
|
77
|
-
n = () => b(_);
|
|
78
|
-
}
|
|
79
|
-
a.b.length && z(() => {
|
|
80
|
-
y(t, n), g(a.b);
|
|
81
|
-
}), m(() => {
|
|
82
|
-
const r = B(() => a.m.map(G));
|
|
83
|
-
return () => {
|
|
84
|
-
for (const e of r)
|
|
85
|
-
typeof e == "function" && e();
|
|
86
|
-
};
|
|
87
|
-
}), a.a.length && m(() => {
|
|
88
|
-
y(t, n), g(a.a);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
function y(f, t) {
|
|
92
|
-
if (f.l.s)
|
|
93
|
-
for (const a of f.l.s) b(a);
|
|
94
|
-
t();
|
|
95
|
-
}
|
|
96
|
-
S();
|
|
97
|
-
export {
|
|
98
|
-
J as h,
|
|
99
|
-
K as i,
|
|
100
|
-
j as s
|
|
101
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { D as r, E as l } from "./index-CEFM1xyC.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,90 +0,0 @@
|
|
|
1
|
-
import { c as q, p as A, a as B, b as p, f as D, F as G, d as H, s as c, e as o, t as I, g as s, h as a, i as J, j as K, k as L, r as l } from "./index-CEFM1xyC.js";
|
|
2
|
-
import { o as N } from "./index-client-Cf3Y5mtB.js";
|
|
3
|
-
import { s as O, a as d } from "./slot-DaIvQlrl.js";
|
|
4
|
-
import { c as P } from "./index-C6ZIYhZ_.js";
|
|
5
|
-
var Q = D("<div><div><!> <!></div> <div><!> <span><!></span></div> <div><!></div></div>");
|
|
6
|
-
function V(m, t) {
|
|
7
|
-
const e = O(t);
|
|
8
|
-
A(t, !0);
|
|
9
|
-
let g = B(t, "color", 7, "red");
|
|
10
|
-
N(() => {
|
|
11
|
-
p(t.$$host.shadowRoot);
|
|
12
|
-
});
|
|
13
|
-
const y = P({
|
|
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 r = Q(), n = o(r), v = o(n);
|
|
31
|
-
G(v, {
|
|
32
|
-
get icon() {
|
|
33
|
-
return H;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
var j = c(v, 2);
|
|
37
|
-
d(j, t, "title", {}), l(n);
|
|
38
|
-
var i = c(n, 2);
|
|
39
|
-
let x;
|
|
40
|
-
var h = o(i);
|
|
41
|
-
d(h, t, "subtitle", {});
|
|
42
|
-
var u = c(h, 2), k = o(u);
|
|
43
|
-
d(k, t, "message", {}), l(u), l(i);
|
|
44
|
-
var b = c(i, 2);
|
|
45
|
-
let _;
|
|
46
|
-
var z = o(b);
|
|
47
|
-
return d(z, t, "footer", {}), l(b), l(r), I(
|
|
48
|
-
(f, C, M, T, U) => {
|
|
49
|
-
a(r, 1, f), a(n, 1, C), x = a(i, 1, M, null, x, { "border-b": !(e != null && e.footer) }), a(u, 1, T), _ = a(b, 1, U, null, _, {
|
|
50
|
-
"px-4": e == null ? void 0 : e.footer,
|
|
51
|
-
"py-2": e == null ? void 0 : e.footer
|
|
52
|
-
});
|
|
53
|
-
},
|
|
54
|
-
[
|
|
55
|
-
() => s(w()),
|
|
56
|
-
() => s(E()),
|
|
57
|
-
() => s(F()),
|
|
58
|
-
() => s(R()),
|
|
59
|
-
() => s(S())
|
|
60
|
-
]
|
|
61
|
-
), J(m, r), K({
|
|
62
|
-
get color() {
|
|
63
|
-
return g();
|
|
64
|
-
},
|
|
65
|
-
set color(f = "red") {
|
|
66
|
-
g(f), L();
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
customElements.define("uofg-alert", q(
|
|
71
|
-
V,
|
|
72
|
-
{
|
|
73
|
-
color: {
|
|
74
|
-
attribute: "color",
|
|
75
|
-
reflect: !0,
|
|
76
|
-
type: "String"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
["title", "subtitle", "message", "footer"],
|
|
80
|
-
[],
|
|
81
|
-
!0,
|
|
82
|
-
(m) => class extends m {
|
|
83
|
-
constructor() {
|
|
84
|
-
super(), p(this.shadowRoot);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
));
|
|
88
|
-
export {
|
|
89
|
-
V as default
|
|
90
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { l as d, c as u, p as f, f as m, F as h, t as v, m as a, i as _, j as g, n as x, g as w, u as k, h as y, o as T, q as j, e as c, r as i, v as F, b as U } from "./index-CEFM1xyC.js";
|
|
2
|
-
import { b as q } from "./window-BAHesVQ-.js";
|
|
3
|
-
import { c as z } from "./index-C6ZIYhZ_.js";
|
|
4
|
-
const B = () => {
|
|
5
|
-
window.scroll({ top: 0, left: 0, behavior: "smooth" });
|
|
6
|
-
};
|
|
7
|
-
var C = m('<button><span aria-hidden="true"><!></span> <span class="sr-only">Back to top of page</span></button>');
|
|
8
|
-
function E(e, n) {
|
|
9
|
-
f(n, !0);
|
|
10
|
-
let s = j(0), l = k(() => a(s) > 50);
|
|
11
|
-
const p = z({
|
|
12
|
-
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",
|
|
13
|
-
variants: {
|
|
14
|
-
visible: {
|
|
15
|
-
true: "visible opacity-100",
|
|
16
|
-
false: "invisible opacity-0"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
var t = C();
|
|
21
|
-
t.__click = [B];
|
|
22
|
-
var r = c(t), b = c(r);
|
|
23
|
-
h(b, {
|
|
24
|
-
get icon() {
|
|
25
|
-
return x;
|
|
26
|
-
}
|
|
27
|
-
}), i(r), F(2), i(t), v((o) => y(t, 1, o), [
|
|
28
|
-
() => w(p({ visible: a(l) }))
|
|
29
|
-
]), q("y", () => a(s), (o) => T(s, o, !0)), _(e, t), g();
|
|
30
|
-
}
|
|
31
|
-
d(["click"]);
|
|
32
|
-
customElements.define("uofg-back-to-top", u(E, {}, [], [], !0, (e) => class extends e {
|
|
33
|
-
constructor() {
|
|
34
|
-
super(), U(this.shadowRoot);
|
|
35
|
-
}
|
|
36
|
-
}));
|
|
37
|
-
export {
|
|
38
|
-
E as default
|
|
39
|
-
};
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
import { w as z, x as j, y as R, z as U, S as K, l as L, c as M, p as N, a as o, A as E, f as V, B as y, e as k, F as Y, C as G, s as H, t as I, g as w, h as x, i as J, j as P, k as l, r as _, b as Q } from "./index-CEFM1xyC.js";
|
|
2
|
-
import { a as W } from "./slot-DaIvQlrl.js";
|
|
3
|
-
function B(n, t) {
|
|
4
|
-
return n === t || (n == null ? void 0 : n[K]) === t;
|
|
5
|
-
}
|
|
6
|
-
function A(n = {}, t, s, u) {
|
|
7
|
-
return z(() => {
|
|
8
|
-
var i, a;
|
|
9
|
-
return j(() => {
|
|
10
|
-
i = a, a = [], R(() => {
|
|
11
|
-
n !== s(...a) && (t(n, ...a), i && B(s(...i), n) && t(null, ...i));
|
|
12
|
-
});
|
|
13
|
-
}), () => {
|
|
14
|
-
U(() => {
|
|
15
|
-
a && B(s(...a), n) && t(null, ...a);
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
}), n;
|
|
19
|
-
}
|
|
20
|
-
const X = (n) => Array.from(n.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"])')), Z = (n, t, s) => {
|
|
21
|
-
!t() && n.target === n.currentTarget && s(!1);
|
|
22
|
-
}, $ = (n, t) => {
|
|
23
|
-
n.key === "Escape" && t(!1);
|
|
24
|
-
}, ee = (n, t, s, u, i) => {
|
|
25
|
-
var a;
|
|
26
|
-
if (t() && !s().contains(n.relatedTarget) && !u().contains(n.relatedTarget))
|
|
27
|
-
if (n.preventDefault(), n.target === i()) {
|
|
28
|
-
const d = X(u());
|
|
29
|
-
(a = d[d.length - 1]) == null || a.focus();
|
|
30
|
-
} else
|
|
31
|
-
i().focus();
|
|
32
|
-
};
|
|
33
|
-
var te = (n, t) => t(!1), ne = V('<div><div part="content"><button aria-label="Close modal"><!></button> <!></div></div>');
|
|
34
|
-
function se(n, t) {
|
|
35
|
-
N(t, !0);
|
|
36
|
-
let s = o(t, "isOpen", 15), u = o(t, "centered", 7), i = o(t, "autoOpen", 7), a = o(t, "label", 7), d = o(t, "alertDialog", 7), v = o(t, "staticBackdrop", 7), g = o(t, "dismissButton", 7), f = o(t, "container", 7), b = o(t, "el", 7), h = o(t, "inertElements", 7);
|
|
37
|
-
E(() => {
|
|
38
|
-
i() && s(!0);
|
|
39
|
-
}), E(() => {
|
|
40
|
-
if (s()) {
|
|
41
|
-
window.requestAnimationFrame(() => {
|
|
42
|
-
window.requestAnimationFrame(() => {
|
|
43
|
-
window.requestAnimationFrame(() => {
|
|
44
|
-
f().focus();
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
let e = b();
|
|
49
|
-
for (; e !== null && e !== document.body; ) {
|
|
50
|
-
const m = e.parentElement;
|
|
51
|
-
if (m === null) {
|
|
52
|
-
const c = e.getRootNode();
|
|
53
|
-
if (c instanceof ShadowRoot) {
|
|
54
|
-
e = c.host;
|
|
55
|
-
continue;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
if (m !== null)
|
|
59
|
-
for (const c of m.children)
|
|
60
|
-
c !== e && !c.inert && (c.inert = !0, h().push(c));
|
|
61
|
-
e = m;
|
|
62
|
-
}
|
|
63
|
-
b().dispatchEvent(new CustomEvent("opened", { bubbles: !0, composed: !0 }));
|
|
64
|
-
} else {
|
|
65
|
-
for (const e of h())
|
|
66
|
-
e.removeAttribute("inert");
|
|
67
|
-
h([]), b().dispatchEvent(new CustomEvent("closed", { bubbles: !0, composed: !0 }));
|
|
68
|
-
}
|
|
69
|
-
document.body.style.overflow = s() ? "hidden" : "";
|
|
70
|
-
});
|
|
71
|
-
const S = tv({
|
|
72
|
-
slots: {
|
|
73
|
-
base: "bg-opacity-50 fixed top-0 left-0 z-[1000] flex h-screen w-screen bg-black transition-[opacity,visibility]",
|
|
74
|
-
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",
|
|
75
|
-
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"
|
|
76
|
-
},
|
|
77
|
-
variants: {
|
|
78
|
-
isOpen: {
|
|
79
|
-
true: {
|
|
80
|
-
base: "visible opacity-100",
|
|
81
|
-
content: "visible opacity-100"
|
|
82
|
-
},
|
|
83
|
-
false: {
|
|
84
|
-
base: "invisible opacity-0",
|
|
85
|
-
content: "invisible opacity-0"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
centered: { true: "" }
|
|
89
|
-
},
|
|
90
|
-
compoundVariants: [
|
|
91
|
-
{
|
|
92
|
-
isOpen: !0,
|
|
93
|
-
centered: !0,
|
|
94
|
-
class: { content: "top-1/2 translate-y-[-50%]" }
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
isOpen: !1,
|
|
98
|
-
centered: !1,
|
|
99
|
-
class: { content: "translate-y-[-50px]" }
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
isOpen: !1,
|
|
103
|
-
centered: !0,
|
|
104
|
-
class: {
|
|
105
|
-
content: "top-1/2 translate-y-[calc(-50%_-_50px)]"
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
}), { base: q, content: F, button: T } = S({
|
|
110
|
-
isOpen: s(),
|
|
111
|
-
centered: u()
|
|
112
|
-
});
|
|
113
|
-
var r = ne();
|
|
114
|
-
y(r, "tabindex", -1), r.__click = [Z, v, s], r.__keyup = [$, s], r.__focusout = [
|
|
115
|
-
ee,
|
|
116
|
-
s,
|
|
117
|
-
f,
|
|
118
|
-
b,
|
|
119
|
-
g
|
|
120
|
-
];
|
|
121
|
-
var O = k(r), p = k(O);
|
|
122
|
-
p.__click = [te, s];
|
|
123
|
-
var C = k(p);
|
|
124
|
-
Y(C, {
|
|
125
|
-
get icon() {
|
|
126
|
-
return G;
|
|
127
|
-
}
|
|
128
|
-
}), _(p), A(p, (e) => g(e), () => g());
|
|
129
|
-
var D = H(p, 2);
|
|
130
|
-
return W(D, t, "default", {}), _(O), _(r), A(r, (e) => f(e), () => f()), I(
|
|
131
|
-
(e, m, c) => {
|
|
132
|
-
x(r, 1, e), y(r, "role", d() ? "alertdialog" : "dialog"), y(r, "aria-modal", s() ? "true" : ""), y(r, "aria-label", a()), x(O, 1, m), x(p, 1, c);
|
|
133
|
-
},
|
|
134
|
-
[
|
|
135
|
-
() => w(q()),
|
|
136
|
-
() => w(F()),
|
|
137
|
-
() => w(T())
|
|
138
|
-
]
|
|
139
|
-
), J(n, r), P({
|
|
140
|
-
get isOpen() {
|
|
141
|
-
return s();
|
|
142
|
-
},
|
|
143
|
-
set isOpen(e) {
|
|
144
|
-
s(e), l();
|
|
145
|
-
},
|
|
146
|
-
get centered() {
|
|
147
|
-
return u();
|
|
148
|
-
},
|
|
149
|
-
set centered(e) {
|
|
150
|
-
u(e), l();
|
|
151
|
-
},
|
|
152
|
-
get autoOpen() {
|
|
153
|
-
return i();
|
|
154
|
-
},
|
|
155
|
-
set autoOpen(e) {
|
|
156
|
-
i(e), l();
|
|
157
|
-
},
|
|
158
|
-
get label() {
|
|
159
|
-
return a();
|
|
160
|
-
},
|
|
161
|
-
set label(e) {
|
|
162
|
-
a(e), l();
|
|
163
|
-
},
|
|
164
|
-
get alertDialog() {
|
|
165
|
-
return d();
|
|
166
|
-
},
|
|
167
|
-
set alertDialog(e) {
|
|
168
|
-
d(e), l();
|
|
169
|
-
},
|
|
170
|
-
get staticBackdrop() {
|
|
171
|
-
return v();
|
|
172
|
-
},
|
|
173
|
-
set staticBackdrop(e) {
|
|
174
|
-
v(e), l();
|
|
175
|
-
},
|
|
176
|
-
get dismissButton() {
|
|
177
|
-
return g();
|
|
178
|
-
},
|
|
179
|
-
set dismissButton(e) {
|
|
180
|
-
g(e), l();
|
|
181
|
-
},
|
|
182
|
-
get container() {
|
|
183
|
-
return f();
|
|
184
|
-
},
|
|
185
|
-
set container(e) {
|
|
186
|
-
f(e), l();
|
|
187
|
-
},
|
|
188
|
-
get el() {
|
|
189
|
-
return b();
|
|
190
|
-
},
|
|
191
|
-
set el(e) {
|
|
192
|
-
b(e), l();
|
|
193
|
-
},
|
|
194
|
-
get inertElements() {
|
|
195
|
-
return h();
|
|
196
|
-
},
|
|
197
|
-
set inertElements(e) {
|
|
198
|
-
h(e), l();
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
L(["click", "keyup", "focusout"]);
|
|
203
|
-
customElements.define("uofg-modal", M(
|
|
204
|
-
se,
|
|
205
|
-
{
|
|
206
|
-
label: {
|
|
207
|
-
attribute: "label",
|
|
208
|
-
reflect: !0,
|
|
209
|
-
type: "String"
|
|
210
|
-
},
|
|
211
|
-
alertDialog: {
|
|
212
|
-
attribute: "alert-dialog",
|
|
213
|
-
reflect: !0,
|
|
214
|
-
type: "String"
|
|
215
|
-
},
|
|
216
|
-
centered: {
|
|
217
|
-
attribute: "centered",
|
|
218
|
-
reflect: !0,
|
|
219
|
-
type: "Boolean"
|
|
220
|
-
},
|
|
221
|
-
autoOpen: {
|
|
222
|
-
attribute: "auto-open",
|
|
223
|
-
reflect: !0,
|
|
224
|
-
type: "Boolean"
|
|
225
|
-
},
|
|
226
|
-
staticBackdrop: {
|
|
227
|
-
attribute: "static-backdrop",
|
|
228
|
-
reflect: !0,
|
|
229
|
-
type: "Boolean"
|
|
230
|
-
},
|
|
231
|
-
isOpen: {},
|
|
232
|
-
dismissButton: {},
|
|
233
|
-
container: {},
|
|
234
|
-
el: {},
|
|
235
|
-
inertElements: {}
|
|
236
|
-
},
|
|
237
|
-
["default"],
|
|
238
|
-
[],
|
|
239
|
-
!0,
|
|
240
|
-
(n) => class extends n {
|
|
241
|
-
constructor() {
|
|
242
|
-
super(), Q(this.shadowRoot), this.el = this, this.inertElements = [], this.isOpen = !1;
|
|
243
|
-
}
|
|
244
|
-
disconnectedCallback() {
|
|
245
|
-
for (const t of this.inertElements)
|
|
246
|
-
t.removeAttribute("inert");
|
|
247
|
-
}
|
|
248
|
-
getState() {
|
|
249
|
-
return this.isOpen;
|
|
250
|
-
}
|
|
251
|
-
setState(t) {
|
|
252
|
-
this.isOpen = t;
|
|
253
|
-
}
|
|
254
|
-
toggle() {
|
|
255
|
-
return this.isOpen = !this.isOpen, this.isOpen;
|
|
256
|
-
}
|
|
257
|
-
close() {
|
|
258
|
-
this.isOpen = !1;
|
|
259
|
-
}
|
|
260
|
-
open() {
|
|
261
|
-
this.isOpen = !0;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
));
|
|
265
|
-
export {
|
|
266
|
-
se as default
|
|
267
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { a4 as n, x as u, w as d, an as f, ao as v } from "./index-CEFM1xyC.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
|
-
}, o = !0;
|
|
12
|
-
u(() => {
|
|
13
|
-
var i = e();
|
|
14
|
-
o ? o = !1 : !r && i != null && (r = !0, clearTimeout(t), scrollTo(window.scrollX, i), 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
|
-
};
|