@uoguelph/web-components 1.9.0-rc.11 → 1.9.0-rc.2
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/bundle-mjs-BpzLJ4dA.js +17 -0
- package/dist/uofg-web-components/{bundle-mjs-BDxvNl4x.js → font-awesome-icon-DIJ3TSNu.js} +768 -778
- package/dist/uofg-web-components/legacy-CLcTMzH8.js +43 -0
- package/dist/uofg-web-components/{slot-DDCVqxeF.js → slot-DFka9TcB.js} +1 -1
- package/dist/uofg-web-components/uofg-alert.esm.js +30 -30
- package/dist/uofg-web-components/uofg-back-to-top.esm.js +11 -10
- package/dist/uofg-web-components/uofg-footer.esm.js +151 -231
- package/dist/uofg-web-components/uofg-header.esm.js +663 -648
- package/dist/uofg-web-components/uofg-modal.esm.js +39 -38
- package/dist/uofg-web-components/{window-B5VNuvDD.js → window-BQcu1KRp.js} +1 -1
- package/package.json +1 -1
- package/dist/uofg-web-components/legacy-CiXHZGcB.js +0 -53
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
1
|
+
import { z as q, A as D, B as F, C as T, S as z, l as j, c as R, p as U, a as l, D as _, E as y, F as G, b as J, d as K, e as L, f as M, j as O, G as N, h as o, i as Y, k as H, t as v, s as I, u as P, w as Q, x as V, r as x } from "./font-awesome-icon-DIJ3TSNu.js";
|
|
2
|
+
import { a as W } from "./slot-DFka9TcB.js";
|
|
3
|
+
import { t as X } from "./bundle-mjs-BpzLJ4dA.js";
|
|
3
4
|
function E(a, t) {
|
|
4
|
-
return a === t || (a == null ? void 0 : a[
|
|
5
|
+
return a === t || (a == null ? void 0 : a[z]) === t;
|
|
5
6
|
}
|
|
6
7
|
function B(a = {}, t, s, c) {
|
|
7
|
-
return
|
|
8
|
-
var i,
|
|
8
|
+
return q(() => {
|
|
9
|
+
var i, r;
|
|
9
10
|
return D(() => {
|
|
10
|
-
i =
|
|
11
|
-
a !== s(...
|
|
11
|
+
i = r, r = [], F(() => {
|
|
12
|
+
a !== s(...r) && (t(a, ...r), i && E(s(...i), a) && t(null, ...i));
|
|
12
13
|
});
|
|
13
14
|
}), () => {
|
|
14
15
|
T(() => {
|
|
15
|
-
|
|
16
|
+
r && E(s(...r), a) && t(null, ...r);
|
|
16
17
|
});
|
|
17
18
|
};
|
|
18
19
|
}), a;
|
|
@@ -22,18 +23,18 @@ const Z = (a) => Array.from(a.querySelectorAll('a[href], area[href], input:not([
|
|
|
22
23
|
}, ee = (a, t) => {
|
|
23
24
|
a.key === "Escape" && t(!1);
|
|
24
25
|
}, te = (a, t, s, c, i) => {
|
|
25
|
-
var
|
|
26
|
+
var r;
|
|
26
27
|
if (t() && !s().contains(a.relatedTarget) && !c().contains(a.relatedTarget))
|
|
27
28
|
if (a.preventDefault(), a.target === i()) {
|
|
28
29
|
const d = Z(c());
|
|
29
|
-
(
|
|
30
|
+
(r = d[d.length - 1]) == null || r.focus();
|
|
30
31
|
} else
|
|
31
32
|
i().focus();
|
|
32
33
|
};
|
|
33
|
-
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
|
|
34
|
-
function
|
|
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-black hover:bg-red focus:bg-red rounded-full p-2" aria-label="Close modal"><!></button> <!></div></div>');
|
|
35
|
+
function ne(a, t) {
|
|
35
36
|
U(t, !0);
|
|
36
|
-
let s =
|
|
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), k = l(t, "staticBackdrop", 7), m = l(t, "dismissButton", 7), f = l(t, "container", 7), b = l(t, "el", 7), p = l(t, "inertElements", 7);
|
|
37
38
|
_(() => {
|
|
38
39
|
i() && s(!0);
|
|
39
40
|
}), _(() => {
|
|
@@ -68,89 +69,89 @@ function re(a, t) {
|
|
|
68
69
|
}
|
|
69
70
|
document.body.style.overflow = s() ? "hidden" : "";
|
|
70
71
|
});
|
|
71
|
-
var
|
|
72
|
-
y(
|
|
72
|
+
var n = se();
|
|
73
|
+
y(n, "tabindex", -1), n.__click = [$, k, s], n.__keyup = [ee, s], n.__focusout = [
|
|
73
74
|
te,
|
|
74
75
|
s,
|
|
75
76
|
f,
|
|
76
77
|
b,
|
|
77
78
|
m
|
|
78
79
|
];
|
|
79
|
-
var w =
|
|
80
|
-
const A = Q(() => V(
|
|
81
|
-
var g =
|
|
80
|
+
var w = 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-[-50px]", !s() && c() && "translate-y-[calc(-50%_-_50px)] top-1/2", s() && c() && "translate-y-[-50%] top-1/2")));
|
|
82
|
+
var g = O(w);
|
|
82
83
|
g.__click = [ae, s];
|
|
83
|
-
var
|
|
84
|
-
G(
|
|
85
|
-
var
|
|
86
|
-
return
|
|
87
|
-
y(
|
|
88
|
-
}), K(a,
|
|
84
|
+
var C = O(g);
|
|
85
|
+
G(C, { icon: N }), x(g), B(g, (e) => m(e), () => m());
|
|
86
|
+
var S = H(g, 2);
|
|
87
|
+
return W(S, t, "default", {}), x(w), 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(w, P(A));
|
|
89
|
+
}), K(a, n), L({
|
|
89
90
|
get isOpen() {
|
|
90
91
|
return s();
|
|
91
92
|
},
|
|
92
93
|
set isOpen(e) {
|
|
93
|
-
s(e),
|
|
94
|
+
s(e), o();
|
|
94
95
|
},
|
|
95
96
|
get centered() {
|
|
96
97
|
return c();
|
|
97
98
|
},
|
|
98
99
|
set centered(e) {
|
|
99
|
-
c(e),
|
|
100
|
+
c(e), o();
|
|
100
101
|
},
|
|
101
102
|
get autoOpen() {
|
|
102
103
|
return i();
|
|
103
104
|
},
|
|
104
105
|
set autoOpen(e) {
|
|
105
|
-
i(e),
|
|
106
|
+
i(e), o();
|
|
106
107
|
},
|
|
107
108
|
get label() {
|
|
108
|
-
return
|
|
109
|
+
return r();
|
|
109
110
|
},
|
|
110
111
|
set label(e) {
|
|
111
|
-
|
|
112
|
+
r(e), o();
|
|
112
113
|
},
|
|
113
114
|
get alertDialog() {
|
|
114
115
|
return d();
|
|
115
116
|
},
|
|
116
117
|
set alertDialog(e) {
|
|
117
|
-
d(e),
|
|
118
|
+
d(e), o();
|
|
118
119
|
},
|
|
119
120
|
get staticBackdrop() {
|
|
120
121
|
return k();
|
|
121
122
|
},
|
|
122
123
|
set staticBackdrop(e) {
|
|
123
|
-
k(e),
|
|
124
|
+
k(e), o();
|
|
124
125
|
},
|
|
125
126
|
get dismissButton() {
|
|
126
127
|
return m();
|
|
127
128
|
},
|
|
128
129
|
set dismissButton(e) {
|
|
129
|
-
m(e),
|
|
130
|
+
m(e), o();
|
|
130
131
|
},
|
|
131
132
|
get container() {
|
|
132
133
|
return f();
|
|
133
134
|
},
|
|
134
135
|
set container(e) {
|
|
135
|
-
f(e),
|
|
136
|
+
f(e), o();
|
|
136
137
|
},
|
|
137
138
|
get el() {
|
|
138
139
|
return b();
|
|
139
140
|
},
|
|
140
141
|
set el(e) {
|
|
141
|
-
b(e),
|
|
142
|
+
b(e), o();
|
|
142
143
|
},
|
|
143
144
|
get inertElements() {
|
|
144
145
|
return p();
|
|
145
146
|
},
|
|
146
147
|
set inertElements(e) {
|
|
147
|
-
p(e),
|
|
148
|
+
p(e), o();
|
|
148
149
|
}
|
|
149
150
|
});
|
|
150
151
|
}
|
|
151
|
-
|
|
152
|
+
j(["click", "keyup", "focusout"]);
|
|
152
153
|
customElements.define("uofg-modal", R(
|
|
153
|
-
|
|
154
|
+
ne,
|
|
154
155
|
{
|
|
155
156
|
label: {
|
|
156
157
|
attribute: "label",
|
|
@@ -216,5 +217,5 @@ customElements.define("uofg-modal", R(
|
|
|
216
217
|
}
|
|
217
218
|
));
|
|
218
219
|
export {
|
|
219
|
-
|
|
220
|
+
ne as default
|
|
220
221
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as w, z as d, aC as f, aD as v, aE as n } from "./font-awesome-icon-DIJ3TSNu.js";
|
|
2
2
|
function m(a, e, c = e) {
|
|
3
3
|
var u = a === "x", s = () => n(() => {
|
|
4
4
|
r = !0, clearTimeout(t), t = setTimeout(l, 100), c(window[u ? "scrollX" : "scrollY"]);
|
package/package.json
CHANGED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { _ as d, $ as g, a0 as b, ai as h, a8 as m, H as v, a4 as y, aG as k, u as c, C as E, aH as l, l as u, an as T, aI as x, aJ as A, m as C, aK as F } from "./bundle-mjs-BDxvNl4x.js";
|
|
2
|
-
function N(t, s, ...a) {
|
|
3
|
-
var r = t, n = h, e;
|
|
4
|
-
d(() => {
|
|
5
|
-
n !== (n = s()) && (e && (m(e), e = null), e = b(() => (
|
|
6
|
-
/** @type {SnippetFn} */
|
|
7
|
-
n(r, ...a)
|
|
8
|
-
)));
|
|
9
|
-
}, g), v && (r = y);
|
|
10
|
-
}
|
|
11
|
-
function R(t = !1) {
|
|
12
|
-
const s = (
|
|
13
|
-
/** @type {ComponentContextLegacy} */
|
|
14
|
-
T
|
|
15
|
-
), a = s.l.u;
|
|
16
|
-
if (!a) return;
|
|
17
|
-
let r = () => A(s.s);
|
|
18
|
-
if (t) {
|
|
19
|
-
let n = 0, e = (
|
|
20
|
-
/** @type {Record<string, any>} */
|
|
21
|
-
{}
|
|
22
|
-
);
|
|
23
|
-
const _ = C(() => {
|
|
24
|
-
let i = !1;
|
|
25
|
-
const o = s.s;
|
|
26
|
-
for (const f in o)
|
|
27
|
-
o[f] !== e[f] && (e[f] = o[f], i = !0);
|
|
28
|
-
return i && n++, n;
|
|
29
|
-
});
|
|
30
|
-
r = () => u(_);
|
|
31
|
-
}
|
|
32
|
-
a.b.length && k(() => {
|
|
33
|
-
p(s, r), l(a.b);
|
|
34
|
-
}), c(() => {
|
|
35
|
-
const n = E(() => a.m.map(x));
|
|
36
|
-
return () => {
|
|
37
|
-
for (const e of n)
|
|
38
|
-
typeof e == "function" && e();
|
|
39
|
-
};
|
|
40
|
-
}), a.a.length && c(() => {
|
|
41
|
-
p(s, r), l(a.a);
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
function p(t, s) {
|
|
45
|
-
if (t.l.s)
|
|
46
|
-
for (const a of t.l.s) u(a);
|
|
47
|
-
s();
|
|
48
|
-
}
|
|
49
|
-
F();
|
|
50
|
-
export {
|
|
51
|
-
R as i,
|
|
52
|
-
N as s
|
|
53
|
-
};
|