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