@phila/phila-ui-app-header 0.3.0-beta.6 → 0.3.0-beta.8
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/AppHeader.vue.d.ts +1 -3
- package/dist/AppHeader.vue.d.ts.map +1 -1
- package/dist/components/NavBar/NavbarInfo.vue.d.ts +161 -2
- package/dist/components/NavBar/NavbarInfo.vue.d.ts.map +1 -1
- package/dist/components/NavBar/index.vue.d.ts +1 -1
- package/dist/components/NavBar/index.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +397 -388
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { FontAwesomeIcon as
|
|
3
|
-
import { useCollapse as Y,
|
|
1
|
+
import { defineComponent as y, useSlots as ue, computed as k, createElementBlock as u, openBlock as o, Fragment as N, createElementVNode as s, createCommentVNode as m, unref as n, createTextVNode as w, createVNode as p, renderSlot as f, createBlock as b, withCtx as v, resolveDynamicComponent as E, normalizeClass as z, renderList as F, toDisplayString as h, withKeys as fe, mergeProps as C, useTemplateRef as W, ref as B, watch as ve, onMounted as me, onUnmounted as q, normalizeStyle as X, createSlots as Z, useId as be, withModifiers as pe, normalizeProps as M, guardReactiveProps as T } from "vue";
|
|
2
|
+
import { FontAwesomeIcon as $ } from "@fortawesome/vue-fontawesome";
|
|
3
|
+
import { useCollapse as Y, debounce as he, Icon as ye, cn as I, BaseLink as J, ActionContent as S } from "@phila/phila-ui-core";
|
|
4
4
|
import { CollapsePanel as D } from "@phila/phila-ui-collapse-panel";
|
|
5
|
-
import { Logo as
|
|
6
|
-
import './index.css';var
|
|
5
|
+
import { Logo as ge } from "@phila/phila-ui-logo";
|
|
6
|
+
import './index.css';var ke = {
|
|
7
7
|
prefix: "fas",
|
|
8
8
|
iconName: "magnifying-glass",
|
|
9
9
|
icon: [512, 512, [128269, "search"], "f002", "M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]
|
|
10
|
-
},
|
|
10
|
+
}, _e = ke, xe = {
|
|
11
11
|
prefix: "fas",
|
|
12
12
|
iconName: "circle-exclamation",
|
|
13
13
|
icon: [512, 512, ["exclamation-circle"], "f06a", "M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-192a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.6 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]
|
|
14
|
-
},
|
|
14
|
+
}, P = {
|
|
15
15
|
prefix: "fas",
|
|
16
16
|
iconName: "xmark",
|
|
17
17
|
icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]
|
|
18
|
-
},
|
|
18
|
+
}, $e = P, ee = P, Ce = {
|
|
19
19
|
prefix: "fas",
|
|
20
20
|
iconName: "lock",
|
|
21
21
|
icon: [384, 512, [128274], "f023", "M128 96l0 64 128 0 0-64c0-35.3-28.7-64-64-64s-64 28.7-64 64zM64 160l0-64C64 25.3 121.3-32 192-32S320 25.3 320 96l0 64c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]
|
|
22
|
-
},
|
|
22
|
+
}, te = {
|
|
23
23
|
prefix: "fas",
|
|
24
24
|
iconName: "caret-up",
|
|
25
25
|
icon: [320, 512, [], "f0d8", "M140.3 135.2c12.6-10.3 31.1-9.5 42.8 2.2l128 128c9.2 9.2 11.9 22.9 6.9 34.9S301.4 320 288.5 320l-256 0c-12.9 0-24.6-7.8-29.6-19.8S.7 274.5 9.9 265.4l128-128 2.4-2.2z"]
|
|
26
|
-
},
|
|
26
|
+
}, ae = {
|
|
27
27
|
prefix: "fas",
|
|
28
28
|
iconName: "caret-down",
|
|
29
29
|
icon: [320, 512, [], "f0d7", "M140.3 376.8c12.6 10.2 31.1 9.5 42.8-2.2l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301.4 192 288.5 192l-256 0c-12.9 0-24.6 7.8-29.6 19.8S.7 237.5 9.9 246.6l128 128 2.4 2.2z"]
|
|
30
|
-
},
|
|
30
|
+
}, we = {
|
|
31
31
|
prefix: "fas",
|
|
32
32
|
iconName: "building-columns",
|
|
33
33
|
icon: [512, 512, ["bank", "institution", "museum", "university"], "f19c", "M271.9 20.2c-9.8-5.6-21.9-5.6-31.8 0l-224 128c-12.6 7.2-18.8 22-15.1 36S17.5 208 32 208l32 0 0 208 0 0-51.2 38.4C4.7 460.4 0 469.9 0 480 0 497.7 14.3 512 32 512l448 0c17.7 0 32-14.3 32-32 0-10.1-4.7-19.6-12.8-25.6l-51.2-38.4 0-208 32 0c14.5 0 27.2-9.8 30.9-23.8s-2.5-28.8-15.1-36l-224-128zM400 208l0 208-64 0 0-208 64 0zm-112 0l0 208-64 0 0-208 64 0zm-112 0l0 208-64 0 0-208 64 0zM256 96a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]
|
|
34
|
-
},
|
|
34
|
+
}, Be = {
|
|
35
35
|
prefix: "fas",
|
|
36
36
|
iconName: "bars",
|
|
37
37
|
icon: [448, 512, ["navicon"], "f0c9", "M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]
|
|
38
|
-
},
|
|
38
|
+
}, Ne = {
|
|
39
39
|
prefix: "fas",
|
|
40
40
|
iconName: "circle-info",
|
|
41
41
|
icon: [512, 512, ["info-circle"], "f05a", "M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]
|
|
42
|
-
},
|
|
43
|
-
const
|
|
42
|
+
}, ie = Ne;
|
|
43
|
+
const ze = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%200%2016%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='16'%20height='11'%20fill='url(%23pattern0_61022_1867)'/%3e%3cdefs%3e%3cpattern%20id='pattern0_61022_1867'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_61022_1867'%20transform='scale(0.0625%200.0909091)'/%3e%3c/pattern%3e%3cimage%20id='image0_61022_1867'%20width='16'%20height='11'%20preserveAspectRatio='none'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAMAAABBPP0LAAAAG1BMVEUdM7EeNLIeM7HgQCDaPh/bPh/bPx/////bPyBEby41AAAAUElEQVQI123MNw4CABDEwD3jC/9/MQ1BQrgeOSkIqYe2o2FZtthXgQLgbHVMZdlsfUQFQnHtjP1+8BUhBDKOqtmfot6ojqPzR7TjdU+f6vkED+IDPhTBcMAAAAAASUVORK5CYII='/%3e%3c/defs%3e%3c/svg%3e", Ae = {
|
|
44
44
|
id: "trusted-site",
|
|
45
45
|
class: "is-flex is-justify-space-between"
|
|
46
|
-
},
|
|
46
|
+
}, Le = { class: "trusted-wrap" }, Me = { class: "hidden-tablet trusted-toggle is-flex is-align-center" }, Te = ["src"], Se = ["aria-label", "aria-expanded"], Ee = {
|
|
47
47
|
class: "icon",
|
|
48
48
|
"aria-hidden": "true"
|
|
49
|
-
},
|
|
49
|
+
}, Ie = { class: "hidden-desktop trusted-toggle is-flex is-align-center" }, Oe = ["aria-label", "aria-expanded"], De = {
|
|
50
50
|
class: "icon",
|
|
51
51
|
"aria-hidden": "true"
|
|
52
|
-
},
|
|
52
|
+
}, Re = {
|
|
53
53
|
key: 0,
|
|
54
54
|
class: "trusted-translation is-flex is-align-center"
|
|
55
|
-
},
|
|
55
|
+
}, He = ["hidden"], Ue = { class: "trusted-site-info-content content has-text-body-small is-flex is-justify-space-between" }, Ge = { class: "info-item-wrap is-flex" }, je = { class: "info-item is-flex is-12-mobile is-align-flex-start is-flex-1 my-4" }, Fe = { class: "trusted-icon is-flex is-flex-column has-text-center" }, Ve = { class: "icon circle-icon p-3 mb-2" }, Qe = { class: "info-item is-flex is-12-mobile is-align-flex-start is-flex-1 my-4" }, Ke = { class: "trusted-icon is-flex is-flex-column has-text-center" }, We = { class: "icon circle-icon p-3 mb-2" }, qe = { class: "info-content-close mt-4" }, Xe = /* @__PURE__ */ y({
|
|
56
56
|
__name: "TrustedSite",
|
|
57
57
|
setup(t) {
|
|
58
|
-
const e =
|
|
58
|
+
const e = ue(), { isCollapsed: l, onClickToggle: a } = Y({
|
|
59
59
|
id: "trusted-site-info",
|
|
60
60
|
escapeKeyClose: !0
|
|
61
|
-
}), c = k(() =>
|
|
61
|
+
}), c = k(() => l("trusted-site-info"));
|
|
62
62
|
return (d, i) => (o(), u(N, null, [
|
|
63
|
-
s("div",
|
|
64
|
-
s("div",
|
|
65
|
-
s("div",
|
|
63
|
+
s("div", Ae, [
|
|
64
|
+
s("div", Le, [
|
|
65
|
+
s("div", Me, [
|
|
66
66
|
s("img", {
|
|
67
|
-
src: n(
|
|
67
|
+
src: n(ze),
|
|
68
68
|
alt: "",
|
|
69
69
|
class: "icon"
|
|
70
|
-
}, null, 8,
|
|
70
|
+
}, null, 8, Te),
|
|
71
71
|
i[4] || (i[4] = s("div", { class: "content mx-2" }, "An official website of the City of Philadelphia government", -1)),
|
|
72
72
|
s("button", {
|
|
73
73
|
class: "phila-button is-extra-small",
|
|
@@ -75,89 +75,89 @@ const Ne = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
75
75
|
"aria-controls": "trusted-site-info",
|
|
76
76
|
"aria-expanded": c.value,
|
|
77
77
|
onClick: i[0] || (i[0] = //@ts-ignore
|
|
78
|
-
(...
|
|
78
|
+
(...r) => n(a) && n(a)(...r))
|
|
79
79
|
}, [
|
|
80
80
|
i[3] || (i[3] = w(" Here's how you know ", -1)),
|
|
81
|
-
s("span",
|
|
82
|
-
p(n(
|
|
83
|
-
icon: c.value ? n(
|
|
81
|
+
s("span", Ee, [
|
|
82
|
+
p(n($), {
|
|
83
|
+
icon: c.value ? n(te) : n(ae)
|
|
84
84
|
}, null, 8, ["icon"])
|
|
85
85
|
])
|
|
86
|
-
], 8,
|
|
86
|
+
], 8, Se)
|
|
87
87
|
]),
|
|
88
|
-
s("div",
|
|
88
|
+
s("div", Ie, [
|
|
89
89
|
s("button", {
|
|
90
90
|
class: "phila-button is-extra-small",
|
|
91
91
|
"aria-label": `${c.value ? "Close" : "Open"} Trusted Site information panel`,
|
|
92
92
|
"aria-controls": "trusted-site-info",
|
|
93
93
|
"aria-expanded": c.value,
|
|
94
94
|
onClick: i[1] || (i[1] = //@ts-ignore
|
|
95
|
-
(...
|
|
95
|
+
(...r) => n(a) && n(a)(...r))
|
|
96
96
|
}, [
|
|
97
97
|
i[5] || (i[5] = w(" An official website ", -1)),
|
|
98
|
-
s("span",
|
|
99
|
-
p(n(
|
|
98
|
+
s("span", De, [
|
|
99
|
+
p(n($), { icon: n(ie) }, null, 8, ["icon"])
|
|
100
100
|
])
|
|
101
|
-
], 8,
|
|
101
|
+
], 8, Oe)
|
|
102
102
|
])
|
|
103
103
|
]),
|
|
104
|
-
n(e).translation ? (o(), u("div",
|
|
104
|
+
n(e).translation ? (o(), u("div", Re, [
|
|
105
105
|
f(d.$slots, "translation", {}, void 0, !0)
|
|
106
|
-
])) :
|
|
106
|
+
])) : m("", !0)
|
|
107
107
|
]),
|
|
108
108
|
s("div", {
|
|
109
109
|
id: "trusted-site-info",
|
|
110
110
|
class: "px-6",
|
|
111
111
|
hidden: !c.value
|
|
112
112
|
}, [
|
|
113
|
-
s("div",
|
|
114
|
-
s("div",
|
|
115
|
-
s("div",
|
|
116
|
-
s("div",
|
|
117
|
-
s("span",
|
|
118
|
-
p(n(
|
|
113
|
+
s("div", Ue, [
|
|
114
|
+
s("div", Ge, [
|
|
115
|
+
s("div", je, [
|
|
116
|
+
s("div", Fe, [
|
|
117
|
+
s("span", Ve, [
|
|
118
|
+
p(n($), { icon: n(we) }, null, 8, ["icon"])
|
|
119
119
|
]),
|
|
120
120
|
i[6] || (i[6] = s("span", { class: "has-text-bold" }, ".gov", -1))
|
|
121
121
|
]),
|
|
122
122
|
i[7] || (i[7] = s("div", { class: "trusted-text m-4" }, "Only government entities in the U.S. can end in .gov", -1))
|
|
123
123
|
]),
|
|
124
|
-
s("div",
|
|
125
|
-
s("div",
|
|
126
|
-
s("div",
|
|
127
|
-
p(n(
|
|
124
|
+
s("div", Qe, [
|
|
125
|
+
s("div", Ke, [
|
|
126
|
+
s("div", We, [
|
|
127
|
+
p(n($), { icon: n(Ce) }, null, 8, ["icon"])
|
|
128
128
|
]),
|
|
129
129
|
i[8] || (i[8] = s("span", { class: "has-text-bold" }, "https://", -1))
|
|
130
130
|
]),
|
|
131
131
|
i[9] || (i[9] = s("div", { class: "trusted-text m-4" }, " The https:// in the address bar means your information is encrypted and can not be accessed by anyone else ", -1))
|
|
132
132
|
])
|
|
133
133
|
]),
|
|
134
|
-
s("div",
|
|
134
|
+
s("div", qe, [
|
|
135
135
|
s("button", {
|
|
136
136
|
class: "phila-button phila-button--primary icon-button is-extra-small",
|
|
137
137
|
"aria-label": "Close Trusted Site information panel",
|
|
138
138
|
onClick: i[2] || (i[2] = //@ts-ignore
|
|
139
|
-
(...
|
|
139
|
+
(...r) => n(a) && n(a)(...r))
|
|
140
140
|
}, [
|
|
141
|
-
p(n(
|
|
141
|
+
p(n($), { icon: n($e) }, null, 8, ["icon"])
|
|
142
142
|
])
|
|
143
143
|
])
|
|
144
144
|
])
|
|
145
|
-
], 8,
|
|
145
|
+
], 8, He)
|
|
146
146
|
], 64));
|
|
147
147
|
}
|
|
148
|
-
}),
|
|
149
|
-
const
|
|
148
|
+
}), O = (t, e) => {
|
|
149
|
+
const l = t.__vccOpts || t;
|
|
150
150
|
for (const [a, c] of e)
|
|
151
|
-
|
|
152
|
-
return
|
|
153
|
-
},
|
|
151
|
+
l[a] = c;
|
|
152
|
+
return l;
|
|
153
|
+
}, Ze = /* @__PURE__ */ O(Xe, [["__scopeId", "data-v-3fc90bb2"]]), Ye = ["aria-controls", "aria-expanded", "aria-label", "onClick"], Je = { class: "icon" }, Pe = ["id", "hidden"], et = /* @__PURE__ */ y({
|
|
154
154
|
__name: "NavbarBurger",
|
|
155
155
|
props: {
|
|
156
156
|
mobileNav: {},
|
|
157
157
|
collapseGroup: {}
|
|
158
158
|
},
|
|
159
159
|
setup(t) {
|
|
160
|
-
return (e,
|
|
160
|
+
return (e, l) => (o(), b(n(D), {
|
|
161
161
|
id: "mobile-nav",
|
|
162
162
|
group: t.collapseGroup,
|
|
163
163
|
"outside-click-close": "",
|
|
@@ -173,12 +173,12 @@ const Ne = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
173
173
|
"aria-label": `${a.open ? "Close" : "Open"} mobile navigation panel`,
|
|
174
174
|
onClick: a.onClick
|
|
175
175
|
}, [
|
|
176
|
-
s("span",
|
|
177
|
-
p(n(
|
|
178
|
-
icon: a.open ? n(
|
|
176
|
+
s("span", Je, [
|
|
177
|
+
p(n($), {
|
|
178
|
+
icon: a.open ? n(ee) : n(Be)
|
|
179
179
|
}, null, 8, ["icon"])
|
|
180
180
|
])
|
|
181
|
-
], 10,
|
|
181
|
+
], 10, Ye)
|
|
182
182
|
]),
|
|
183
183
|
default: v((a) => [
|
|
184
184
|
s("div", {
|
|
@@ -187,31 +187,31 @@ const Ne = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
187
187
|
hidden: !a.open
|
|
188
188
|
}, [
|
|
189
189
|
f(e.$slots, "mobile-nav", {}, () => [
|
|
190
|
-
(o(),
|
|
190
|
+
(o(), b(E(t.mobileNav)))
|
|
191
191
|
])
|
|
192
|
-
], 8,
|
|
192
|
+
], 8, Pe)
|
|
193
193
|
]),
|
|
194
194
|
_: 3
|
|
195
195
|
}, 8, ["group"]));
|
|
196
196
|
}
|
|
197
|
-
}),
|
|
197
|
+
}), tt = ["href"], at = ["href", "aria-controls", "aria-expanded", "onKeypress", "onTouchend", "onClick"], it = ["id", "hidden"], nt = {
|
|
198
198
|
key: 0,
|
|
199
199
|
class: "content nav-flyout has-background-ghost-gray px-6 py-4",
|
|
200
200
|
tabindex: "-1"
|
|
201
|
-
},
|
|
201
|
+
}, st = {
|
|
202
202
|
class: "is-flex is-flex-column is-flex-wrap-wrap",
|
|
203
203
|
style: { gap: "var(--spacing-4xl)" }
|
|
204
|
-
},
|
|
204
|
+
}, ot = ["href"], lt = /* @__PURE__ */ y({
|
|
205
205
|
__name: "NavbarLinks",
|
|
206
206
|
props: {
|
|
207
207
|
links: {},
|
|
208
208
|
collapseGroup: {}
|
|
209
209
|
},
|
|
210
210
|
setup(t) {
|
|
211
|
-
const e = (a) => !!(a.subLinks || a.subNav),
|
|
212
|
-
return (a, c) => (o(!0), u(N, null,
|
|
213
|
-
e(d) ? (o(),
|
|
214
|
-
id:
|
|
211
|
+
const e = (a) => !!(a.subLinks || a.subNav), l = (a) => `main-nav-${a.text.split(" ").join("-").toLowerCase().replace(/[^a-z0-9-]/g, "")}`;
|
|
212
|
+
return (a, c) => (o(!0), u(N, null, F(t.links, (d, i) => (o(), u(N, null, [
|
|
213
|
+
e(d) ? (o(), b(n(D), {
|
|
214
|
+
id: l(d),
|
|
215
215
|
key: `collapse-${i}`,
|
|
216
216
|
group: t.collapseGroup,
|
|
217
217
|
"outside-click-close": "",
|
|
@@ -221,46 +221,46 @@ const Ne = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
221
221
|
"open-single": "",
|
|
222
222
|
class: "phila-navbar-link-list-item"
|
|
223
223
|
}, {
|
|
224
|
-
toggle: v((
|
|
224
|
+
toggle: v((r) => [
|
|
225
225
|
s("a", {
|
|
226
226
|
href: d.href,
|
|
227
|
-
class: z(["phila-navbar-link px-4", { "phila-navbar-item-flyout-active":
|
|
228
|
-
"aria-controls":
|
|
229
|
-
"aria-expanded":
|
|
227
|
+
class: z(["phila-navbar-link px-4", { "phila-navbar-item-flyout-active": r.open }]),
|
|
228
|
+
"aria-controls": r.ariaControls,
|
|
229
|
+
"aria-expanded": r.open,
|
|
230
230
|
tabindex: "0",
|
|
231
|
-
onKeypress:
|
|
232
|
-
onTouchend:
|
|
233
|
-
onClick:
|
|
231
|
+
onKeypress: fe(r.onClick, ["enter"]),
|
|
232
|
+
onTouchend: r.onClick,
|
|
233
|
+
onClick: r.onClick
|
|
234
234
|
}, [
|
|
235
|
-
w(
|
|
236
|
-
p(n(
|
|
235
|
+
w(h(d.text) + " ", 1),
|
|
236
|
+
p(n($), {
|
|
237
237
|
class: "ml-1",
|
|
238
|
-
icon:
|
|
238
|
+
icon: r.open ? n(te) : n(ae)
|
|
239
239
|
}, null, 8, ["icon"])
|
|
240
|
-
], 42,
|
|
240
|
+
], 42, at)
|
|
241
241
|
]),
|
|
242
|
-
default: v((
|
|
242
|
+
default: v((r) => [
|
|
243
243
|
(o(), u("div", {
|
|
244
|
-
id:
|
|
244
|
+
id: r.id,
|
|
245
245
|
key: d.text,
|
|
246
|
-
hidden: !
|
|
246
|
+
hidden: !r.open
|
|
247
247
|
}, [
|
|
248
|
-
d.subLinks ? (o(), u("div",
|
|
249
|
-
s("ul",
|
|
250
|
-
(o(!0), u(N, null,
|
|
251
|
-
key:
|
|
248
|
+
d.subLinks ? (o(), u("div", nt, [
|
|
249
|
+
s("ul", st, [
|
|
250
|
+
(o(!0), u(N, null, F(d.subLinks, (_) => (o(), u("li", {
|
|
251
|
+
key: _.text,
|
|
252
252
|
class: "sub-nav-link is-flex is-align-center",
|
|
253
253
|
style: { width: "150px" }
|
|
254
254
|
}, [
|
|
255
255
|
s("a", {
|
|
256
|
-
href:
|
|
256
|
+
href: _.href,
|
|
257
257
|
class: "has-text-link has-text-weight-medium",
|
|
258
258
|
tabindex: "0"
|
|
259
|
-
},
|
|
259
|
+
}, h(_.text), 9, ot)
|
|
260
260
|
]))), 128))
|
|
261
261
|
])
|
|
262
|
-
])) : (o(),
|
|
263
|
-
], 8,
|
|
262
|
+
])) : (o(), b(E(d.subNav), { key: 1 }))
|
|
263
|
+
], 8, it))
|
|
264
264
|
]),
|
|
265
265
|
_: 2
|
|
266
266
|
}, 1032, ["id", "group"])) : (o(), u("div", {
|
|
@@ -271,11 +271,11 @@ const Ne = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
271
271
|
href: d.href,
|
|
272
272
|
class: "phila-navbar-link px-4",
|
|
273
273
|
tabindex: "0"
|
|
274
|
-
},
|
|
274
|
+
}, h(d.text), 9, tt)
|
|
275
275
|
]))
|
|
276
276
|
], 64))), 256));
|
|
277
277
|
}
|
|
278
|
-
}),
|
|
278
|
+
}), rt = /* @__PURE__ */ y({
|
|
279
279
|
__name: "NavbarBrandLogo",
|
|
280
280
|
props: {
|
|
281
281
|
logo: {},
|
|
@@ -284,23 +284,23 @@ const Ne = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
284
284
|
altText: {}
|
|
285
285
|
},
|
|
286
286
|
setup(t) {
|
|
287
|
-
const e = t,
|
|
287
|
+
const e = t, l = k(() => ({
|
|
288
288
|
variant: "city",
|
|
289
289
|
layout: "stacked",
|
|
290
290
|
colorScheme: "on-primary",
|
|
291
291
|
href: e.href,
|
|
292
292
|
...e.logo
|
|
293
293
|
}));
|
|
294
|
-
return (a, c) => (o(),
|
|
294
|
+
return (a, c) => (o(), b(n(ge), C(l.value, { class: "phila-navbar-logo" }), null, 16));
|
|
295
295
|
}
|
|
296
|
-
}),
|
|
296
|
+
}), ct = /* @__PURE__ */ O(rt, [["__scopeId", "data-v-3011c249"]]), dt = { class: "pr-4" }, ut = ["aria-controls", "aria-expanded", "aria-label", "onClick"], ft = { class: "icon" }, vt = ["id", "hidden"], mt = /* @__PURE__ */ y({
|
|
297
297
|
__name: "NavbarSearch",
|
|
298
298
|
props: {
|
|
299
299
|
search: {},
|
|
300
300
|
collapseGroup: {}
|
|
301
301
|
},
|
|
302
302
|
setup(t) {
|
|
303
|
-
return (e,
|
|
303
|
+
return (e, l) => (o(), b(n(D), {
|
|
304
304
|
id: "navbar-search",
|
|
305
305
|
group: t.collapseGroup,
|
|
306
306
|
"outside-click-close": "",
|
|
@@ -309,7 +309,7 @@ const Ne = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
309
309
|
"open-single": ""
|
|
310
310
|
}, {
|
|
311
311
|
toggle: v((a) => [
|
|
312
|
-
s("div",
|
|
312
|
+
s("div", dt, [
|
|
313
313
|
s("button", {
|
|
314
314
|
class: z(["phila-button phila-button--primary icon-button is-small", { "phila-navbar-item-flyout-active": a.open }]),
|
|
315
315
|
"aria-controls": a.ariaControls,
|
|
@@ -317,12 +317,12 @@ const Ne = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
317
317
|
"aria-label": `${a.open ? "Close" : "Open"} search panel`,
|
|
318
318
|
onClick: a.onClick
|
|
319
319
|
}, [
|
|
320
|
-
s("span",
|
|
321
|
-
p(n(
|
|
322
|
-
icon: a.open ? n(
|
|
320
|
+
s("span", ft, [
|
|
321
|
+
p(n($), {
|
|
322
|
+
icon: a.open ? n(ee) : n(_e)
|
|
323
323
|
}, null, 8, ["icon"])
|
|
324
324
|
])
|
|
325
|
-
], 10,
|
|
325
|
+
], 10, ut)
|
|
326
326
|
])
|
|
327
327
|
]),
|
|
328
328
|
default: v((a) => [
|
|
@@ -332,14 +332,184 @@ const Ne = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
332
332
|
hidden: !a.open
|
|
333
333
|
}, [
|
|
334
334
|
f(e.$slots, "default", {}, () => [
|
|
335
|
-
t.search && a.open ? (o(),
|
|
335
|
+
t.search && a.open ? (o(), b(E(t.search), { key: 0 })) : m("", !0)
|
|
336
336
|
])
|
|
337
|
-
], 8,
|
|
337
|
+
], 8, vt)
|
|
338
338
|
]),
|
|
339
339
|
_: 3
|
|
340
340
|
}, 8, ["group"]));
|
|
341
341
|
}
|
|
342
|
-
}),
|
|
342
|
+
}), bt = { class: "phila-navbar-brand" }, pt = {
|
|
343
|
+
key: 0,
|
|
344
|
+
class: "phila-navbar-item phila-navbar-brand-link hidden-tablet"
|
|
345
|
+
}, ht = {
|
|
346
|
+
key: 0,
|
|
347
|
+
class: "content"
|
|
348
|
+
}, yt = ["href"], gt = { class: "phila-navbar-item phila-navbar-list is-flex is-align-center is-justify-space-between content has-text-label-default hidden-tablet" }, kt = { class: "phila-navbar-search" }, _t = {
|
|
349
|
+
key: 0,
|
|
350
|
+
class: "phila-navbar-end"
|
|
351
|
+
}, V = "5rem", xt = /* @__PURE__ */ y({
|
|
352
|
+
__name: "index",
|
|
353
|
+
props: {
|
|
354
|
+
id: {},
|
|
355
|
+
sticky: { type: Boolean },
|
|
356
|
+
navbarBrand: {},
|
|
357
|
+
mobileNav: {},
|
|
358
|
+
collapseGroup: {},
|
|
359
|
+
search: {},
|
|
360
|
+
links: { default: () => [{ text: "Home", href: "#" }] }
|
|
361
|
+
},
|
|
362
|
+
setup(t) {
|
|
363
|
+
const e = t, { state: l } = Y(), a = W("navBarElement"), c = B(V), d = B(0), i = he(() => {
|
|
364
|
+
const r = (a.value?.offsetTop || 0) + (a.value?.offsetHeight || 0), _ = typeof window < "u" ? window.innerWidth : 1024;
|
|
365
|
+
c.value = !e.sticky || _ < 1024 ? r + "px" : V, d.value = r;
|
|
366
|
+
}, 100);
|
|
367
|
+
return ve(() => l.value, i, { deep: !0, immediate: !0 }), me(() => {
|
|
368
|
+
window.addEventListener("resize", i);
|
|
369
|
+
}), q(() => {
|
|
370
|
+
window.removeEventListener("resize", i);
|
|
371
|
+
}), (r, _) => (o(), u("nav", {
|
|
372
|
+
ref_key: "navBarElement",
|
|
373
|
+
ref: a,
|
|
374
|
+
class: z(["phila-navbar has-links-on-primary", { "is-sticky-desktop": t.sticky }]),
|
|
375
|
+
"aria-label": "Main navigation",
|
|
376
|
+
style: X(`--nav-height:${c.value};--nav-bottom:${d.value}px`)
|
|
377
|
+
}, [
|
|
378
|
+
f(r.$slots, "navbar-burger", {}, () => [
|
|
379
|
+
t.mobileNav || r.$slots["mobile-nav"] ? (o(), b(et, {
|
|
380
|
+
key: 0,
|
|
381
|
+
"mobile-nav": t.mobileNav,
|
|
382
|
+
"collapse-group": t.id
|
|
383
|
+
}, Z({ _: 2 }, [
|
|
384
|
+
r.$slots["mobile-nav"] ? {
|
|
385
|
+
name: "mobile-nav",
|
|
386
|
+
fn: v(() => [
|
|
387
|
+
f(r.$slots, "mobile-nav", {}, void 0, !0)
|
|
388
|
+
]),
|
|
389
|
+
key: "0"
|
|
390
|
+
} : void 0
|
|
391
|
+
]), 1032, ["mobile-nav", "collapse-group"])) : m("", !0)
|
|
392
|
+
], !0),
|
|
393
|
+
s("div", bt, [
|
|
394
|
+
f(r.$slots, "navbar-logo", {}, () => [
|
|
395
|
+
t.navbarBrand?.brandingImage ? (o(), b(ct, C({ key: 0 }, t.navbarBrand.brandingImage, {
|
|
396
|
+
logo: t.navbarBrand?.logo
|
|
397
|
+
}), null, 16, ["logo"])) : m("", !0)
|
|
398
|
+
], !0),
|
|
399
|
+
r.$slots["navbar-brand-link"] || t.navbarBrand?.brandingLink ? (o(), u("div", pt, [
|
|
400
|
+
f(r.$slots, "navbar-brand-link", {}, () => [
|
|
401
|
+
t.navbarBrand?.brandingLink ? (o(), u("div", ht, [
|
|
402
|
+
s("a", {
|
|
403
|
+
tabindex: "0",
|
|
404
|
+
href: t.navbarBrand.brandingLink.href,
|
|
405
|
+
class: "has-text-underline"
|
|
406
|
+
}, h(t.navbarBrand.brandingLink.text), 9, yt)
|
|
407
|
+
])) : m("", !0)
|
|
408
|
+
], !0)
|
|
409
|
+
])) : m("", !0)
|
|
410
|
+
]),
|
|
411
|
+
s("div", gt, [
|
|
412
|
+
f(r.$slots, "navbar-links", {}, () => [
|
|
413
|
+
t.links ? (o(), b(lt, {
|
|
414
|
+
key: 0,
|
|
415
|
+
links: t.links,
|
|
416
|
+
"collapse-group": t.id
|
|
417
|
+
}, null, 8, ["links", "collapse-group"])) : m("", !0)
|
|
418
|
+
], !0)
|
|
419
|
+
]),
|
|
420
|
+
s("div", kt, [
|
|
421
|
+
f(r.$slots, "navbar-search", {}, () => [
|
|
422
|
+
t.search ? (o(), b(mt, {
|
|
423
|
+
key: 0,
|
|
424
|
+
search: t.search,
|
|
425
|
+
"collapse-group": t.id
|
|
426
|
+
}, null, 8, ["search", "collapse-group"])) : m("", !0)
|
|
427
|
+
], !0)
|
|
428
|
+
]),
|
|
429
|
+
r.$slots["navbar-end"] ? (o(), u("div", _t, [
|
|
430
|
+
f(r.$slots, "navbar-end", {}, void 0, !0)
|
|
431
|
+
])) : m("", !0)
|
|
432
|
+
], 6));
|
|
433
|
+
}
|
|
434
|
+
}), $t = /* @__PURE__ */ O(xt, [["__scopeId", "data-v-caf52a6d"]]), Ct = { class: "site-wide-alert content" }, wt = { class: "alert-content" }, Bt = { class: "content-text" }, Nt = { class: "title" }, zt = { class: "body" }, At = /* @__PURE__ */ y({
|
|
435
|
+
__name: "AlertBanner",
|
|
436
|
+
props: {
|
|
437
|
+
bannerTitle: {},
|
|
438
|
+
bannerMessage: {}
|
|
439
|
+
},
|
|
440
|
+
setup(t) {
|
|
441
|
+
const e = t;
|
|
442
|
+
return (l, a) => (o(), u("div", Ct, [
|
|
443
|
+
s("div", wt, [
|
|
444
|
+
p(n(ye), {
|
|
445
|
+
"icon-definition": n(xe),
|
|
446
|
+
size: "small",
|
|
447
|
+
decorative: !0
|
|
448
|
+
}, null, 8, ["icon-definition"]),
|
|
449
|
+
s("div", Bt, [
|
|
450
|
+
s("h6", Nt, h(e.bannerTitle), 1),
|
|
451
|
+
s("div", zt, h(e.bannerMessage), 1)
|
|
452
|
+
])
|
|
453
|
+
])
|
|
454
|
+
]));
|
|
455
|
+
}
|
|
456
|
+
}), Jt = /* @__PURE__ */ y({
|
|
457
|
+
__name: "AppHeader",
|
|
458
|
+
props: {
|
|
459
|
+
showTrustedSite: { type: Boolean, default: !0 },
|
|
460
|
+
translations: { default: void 0 },
|
|
461
|
+
className: {},
|
|
462
|
+
id: { default: "main-nav" },
|
|
463
|
+
sticky: { type: Boolean, default: !0 },
|
|
464
|
+
navbarBrand: { default: void 0 },
|
|
465
|
+
mobileNav: { default: void 0 },
|
|
466
|
+
collapseGroup: {},
|
|
467
|
+
search: { default: void 0 },
|
|
468
|
+
links: { default: void 0 },
|
|
469
|
+
bannerTitle: { default: void 0 },
|
|
470
|
+
bannerMessage: { default: void 0 }
|
|
471
|
+
},
|
|
472
|
+
setup(t) {
|
|
473
|
+
return (e, l) => (o(), u(N, null, [
|
|
474
|
+
t.showTrustedSite ? (o(), b(Ze, { key: 0 }, {
|
|
475
|
+
translation: v(() => [
|
|
476
|
+
f(e.$slots, "translations", {}, () => [
|
|
477
|
+
t.translations ? (o(), b(E(t.translations), { key: 0 })) : m("", !0)
|
|
478
|
+
])
|
|
479
|
+
]),
|
|
480
|
+
_: 3
|
|
481
|
+
})) : m("", !0),
|
|
482
|
+
p($t, {
|
|
483
|
+
id: t.id,
|
|
484
|
+
sticky: t.sticky,
|
|
485
|
+
"mobile-nav": t.mobileNav,
|
|
486
|
+
links: t.links,
|
|
487
|
+
"navbar-brand": t.navbarBrand,
|
|
488
|
+
search: t.search
|
|
489
|
+
}, Z({ _: 2 }, [
|
|
490
|
+
e.$slots["mobile-nav"] ? {
|
|
491
|
+
name: "mobile-nav",
|
|
492
|
+
fn: v(() => [
|
|
493
|
+
f(e.$slots, "mobile-nav")
|
|
494
|
+
]),
|
|
495
|
+
key: "0"
|
|
496
|
+
} : void 0,
|
|
497
|
+
e.$slots["navbar-end"] ? {
|
|
498
|
+
name: "navbar-end",
|
|
499
|
+
fn: v(() => [
|
|
500
|
+
f(e.$slots, "navbar-end")
|
|
501
|
+
]),
|
|
502
|
+
key: "1"
|
|
503
|
+
} : void 0
|
|
504
|
+
]), 1032, ["id", "sticky", "mobile-nav", "links", "navbar-brand", "search"]),
|
|
505
|
+
t.bannerTitle || t.bannerMessage ? (o(), b(At, {
|
|
506
|
+
key: 1,
|
|
507
|
+
"banner-title": t.bannerTitle,
|
|
508
|
+
"banner-message": t.bannerMessage
|
|
509
|
+
}, null, 8, ["banner-title", "banner-message"])) : m("", !0)
|
|
510
|
+
], 64));
|
|
511
|
+
}
|
|
512
|
+
}), Lt = ["disabled"], Q = /* @__PURE__ */ y({
|
|
343
513
|
inheritAttrs: !1,
|
|
344
514
|
__name: "PhlButton",
|
|
345
515
|
props: {
|
|
@@ -361,14 +531,14 @@ const Ne = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
361
531
|
svgRaw: {}
|
|
362
532
|
},
|
|
363
533
|
setup(t) {
|
|
364
|
-
const e = t,
|
|
534
|
+
const e = t, l = (i) => "href" in i && i.href !== void 0 || "to" in i && i.to !== void 0, a = k(() => I(
|
|
365
535
|
"phila-button",
|
|
366
536
|
`phila-button--${e.variant}`,
|
|
367
537
|
e.size && `is-${e.size}`,
|
|
368
538
|
e.iconOnly && "icon-button",
|
|
369
539
|
e.iconOnly && e.variant === "standard" && "icon-button--standard",
|
|
370
540
|
e.className
|
|
371
|
-
)), c = k(() =>
|
|
541
|
+
)), c = k(() => l(e) ? "to" in e && e.to !== void 0 ? {
|
|
372
542
|
to: e.to,
|
|
373
543
|
disabled: e.disabled,
|
|
374
544
|
className: a.value
|
|
@@ -389,51 +559,51 @@ const Ne = "data:image/svg+xml,%3csvg%20width='16'%20height='11'%20viewBox='0%20
|
|
|
389
559
|
size: e.size
|
|
390
560
|
})
|
|
391
561
|
);
|
|
392
|
-
return (i,
|
|
562
|
+
return (i, r) => l(e) ? (o(), b(n(J), C({ key: 0 }, { ...c.value, ...i.$attrs }, { role: "button" }), {
|
|
393
563
|
default: v(() => [
|
|
394
|
-
p(n(
|
|
564
|
+
p(n(S), M(T(d.value)), {
|
|
395
565
|
default: v(() => [
|
|
396
566
|
f(i.$slots, "default", {}, () => [
|
|
397
|
-
w(
|
|
567
|
+
w(h(e.text), 1)
|
|
398
568
|
])
|
|
399
569
|
]),
|
|
400
570
|
_: 3
|
|
401
571
|
}, 16)
|
|
402
572
|
]),
|
|
403
573
|
_: 3
|
|
404
|
-
}, 16)) : (o(), u("button",
|
|
574
|
+
}, 16)) : (o(), u("button", C({
|
|
405
575
|
key: 1,
|
|
406
576
|
type: "button",
|
|
407
577
|
disabled: e.disabled,
|
|
408
578
|
class: a.value
|
|
409
579
|
}, i.$attrs), [
|
|
410
|
-
p(n(
|
|
580
|
+
p(n(S), M(T(d.value)), {
|
|
411
581
|
default: v(() => [
|
|
412
582
|
f(i.$slots, "default", {}, () => [
|
|
413
|
-
w(
|
|
583
|
+
w(h(e.text), 1)
|
|
414
584
|
])
|
|
415
585
|
]),
|
|
416
586
|
_: 3
|
|
417
587
|
}, 16)
|
|
418
|
-
], 16,
|
|
588
|
+
], 16, Lt));
|
|
419
589
|
}
|
|
420
590
|
});
|
|
421
|
-
var
|
|
591
|
+
var K = {
|
|
422
592
|
prefix: "fas",
|
|
423
593
|
iconName: "xmark",
|
|
424
594
|
icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]
|
|
425
595
|
};
|
|
426
|
-
const
|
|
596
|
+
const Mt = ["id"], Tt = {
|
|
427
597
|
key: 0,
|
|
428
598
|
class: "tooltip__tail",
|
|
429
599
|
"aria-hidden": "true"
|
|
430
|
-
},
|
|
600
|
+
}, St = {
|
|
431
601
|
key: 1,
|
|
432
602
|
class: "tooltip__plain-row has-text-body-small"
|
|
433
|
-
},
|
|
603
|
+
}, Et = {
|
|
434
604
|
key: 0,
|
|
435
605
|
class: "tooltip__title-row"
|
|
436
|
-
},
|
|
606
|
+
}, It = { key: 0 }, Ot = /* @__PURE__ */ y({
|
|
437
607
|
__name: "TooltipBubble",
|
|
438
608
|
props: {
|
|
439
609
|
id: {},
|
|
@@ -447,8 +617,8 @@ const bt = ["id"], pt = {
|
|
|
447
617
|
},
|
|
448
618
|
emits: ["dismiss"],
|
|
449
619
|
setup(t) {
|
|
450
|
-
const e = t,
|
|
451
|
-
() =>
|
|
620
|
+
const e = t, l = k(
|
|
621
|
+
() => I(
|
|
452
622
|
"tooltip",
|
|
453
623
|
"content",
|
|
454
624
|
"resets-link-colors",
|
|
@@ -460,46 +630,46 @@ const bt = ["id"], pt = {
|
|
|
460
630
|
);
|
|
461
631
|
return (a, c) => (o(), u("div", {
|
|
462
632
|
id: t.id,
|
|
463
|
-
class: z(
|
|
633
|
+
class: z(l.value),
|
|
464
634
|
role: "tooltip"
|
|
465
635
|
}, [
|
|
466
|
-
t.tail ? (o(), u("div",
|
|
467
|
-
t.type === "plain" ? (o(), u("div",
|
|
636
|
+
t.tail ? (o(), u("div", Tt)) : m("", !0),
|
|
637
|
+
t.type === "plain" ? (o(), u("div", St, [
|
|
468
638
|
f(a.$slots, "default", {}, void 0, !0),
|
|
469
|
-
t.dismissable ? (o(),
|
|
639
|
+
t.dismissable ? (o(), b(n(Q), {
|
|
470
640
|
key: 0,
|
|
471
641
|
class: "tooltip__dismiss",
|
|
472
642
|
variant: "standard",
|
|
473
643
|
size: "extra-small",
|
|
474
644
|
"icon-only": !0,
|
|
475
|
-
"icon-definition": n(
|
|
645
|
+
"icon-definition": n(K),
|
|
476
646
|
"aria-label": "Dismiss tooltip",
|
|
477
647
|
onClick: c[0] || (c[0] = (d) => a.$emit("dismiss"))
|
|
478
|
-
}, null, 8, ["icon-definition"])) :
|
|
648
|
+
}, null, 8, ["icon-definition"])) : m("", !0)
|
|
479
649
|
])) : (o(), u(N, { key: 2 }, [
|
|
480
|
-
t.title || t.dismissable ? (o(), u("div",
|
|
481
|
-
t.title ? (o(), u("h6",
|
|
482
|
-
t.dismissable ? (o(),
|
|
650
|
+
t.title || t.dismissable ? (o(), u("div", Et, [
|
|
651
|
+
t.title ? (o(), u("h6", It, h(t.title), 1)) : m("", !0),
|
|
652
|
+
t.dismissable ? (o(), b(n(Q), {
|
|
483
653
|
key: 1,
|
|
484
654
|
class: "tooltip__dismiss",
|
|
485
655
|
variant: "standard",
|
|
486
656
|
size: "extra-small",
|
|
487
657
|
"icon-only": !0,
|
|
488
|
-
"icon-definition": n(
|
|
658
|
+
"icon-definition": n(K),
|
|
489
659
|
"aria-label": "Dismiss tooltip",
|
|
490
660
|
onClick: c[1] || (c[1] = (d) => a.$emit("dismiss"))
|
|
491
|
-
}, null, 8, ["icon-definition"])) :
|
|
492
|
-
])) :
|
|
661
|
+
}, null, 8, ["icon-definition"])) : m("", !0)
|
|
662
|
+
])) : m("", !0),
|
|
493
663
|
f(a.$slots, "default", {}, void 0, !0)
|
|
494
664
|
], 64))
|
|
495
|
-
], 10,
|
|
665
|
+
], 10, Mt));
|
|
496
666
|
}
|
|
497
|
-
}),
|
|
498
|
-
const
|
|
667
|
+
}), ne = (t, e) => {
|
|
668
|
+
const l = t.__vccOpts || t;
|
|
499
669
|
for (const [a, c] of e)
|
|
500
|
-
|
|
501
|
-
return
|
|
502
|
-
},
|
|
670
|
+
l[a] = c;
|
|
671
|
+
return l;
|
|
672
|
+
}, Dt = /* @__PURE__ */ ne(Ot, [["__scopeId", "data-v-0155bbdd"]]), Rt = /* @__PURE__ */ y({
|
|
503
673
|
__name: "Tooltip",
|
|
504
674
|
props: {
|
|
505
675
|
trigger: { default: "hover" },
|
|
@@ -511,65 +681,68 @@ const bt = ["id"], pt = {
|
|
|
511
681
|
dismissable: { type: Boolean },
|
|
512
682
|
className: {}
|
|
513
683
|
},
|
|
514
|
-
setup(t) {
|
|
515
|
-
const
|
|
516
|
-
const
|
|
517
|
-
if (!
|
|
518
|
-
const { innerWidth:
|
|
519
|
-
return `${
|
|
520
|
-
},
|
|
521
|
-
|
|
522
|
-
},
|
|
523
|
-
|
|
524
|
-
},
|
|
525
|
-
|
|
526
|
-
},
|
|
527
|
-
|
|
528
|
-
},
|
|
529
|
-
|
|
684
|
+
setup(t, { expose: e }) {
|
|
685
|
+
const l = t, a = be(), c = B(!1), d = B(null), i = B(null), r = B("top-center"), _ = () => {
|
|
686
|
+
const g = d.value?.getBoundingClientRect();
|
|
687
|
+
if (!g) return "top-center";
|
|
688
|
+
const { innerWidth: A, innerHeight: le } = window, U = g.top, re = le - g.bottom, G = i.value?.firstElementChild?.getBoundingClientRect().height ?? 0, ce = (G > 0 ? U >= G : U >= re) ? "top" : "bottom", j = g.left + g.width / 2, de = j < A / 3 ? "left" : j > A * 2 / 3 ? "right" : "center";
|
|
689
|
+
return `${ce}-${de}`;
|
|
690
|
+
}, R = (g) => {
|
|
691
|
+
g.key === "Escape" && x();
|
|
692
|
+
}, H = (g) => {
|
|
693
|
+
d.value && !d.value.contains(g.target) && x();
|
|
694
|
+
}, L = () => {
|
|
695
|
+
l.placement === "auto" ? r.value = _() : r.value = l.placement, c.value = !0, document.addEventListener("keydown", R), l.trigger === "click" && document.addEventListener("click", H);
|
|
696
|
+
}, x = () => {
|
|
697
|
+
c.value = !1, document.removeEventListener("keydown", R), document.removeEventListener("click", H);
|
|
698
|
+
}, se = () => {
|
|
699
|
+
c.value ? x() : L();
|
|
530
700
|
};
|
|
531
|
-
|
|
532
|
-
const
|
|
533
|
-
type:
|
|
534
|
-
color:
|
|
535
|
-
tail:
|
|
536
|
-
placement:
|
|
537
|
-
title:
|
|
538
|
-
dismissable:
|
|
701
|
+
q(x), e({ show: L, hide: x });
|
|
702
|
+
const oe = k(() => ({
|
|
703
|
+
type: l.type,
|
|
704
|
+
color: l.color,
|
|
705
|
+
tail: l.tail,
|
|
706
|
+
placement: r.value,
|
|
707
|
+
title: l.title,
|
|
708
|
+
dismissable: l.dismissable
|
|
539
709
|
}));
|
|
540
|
-
return (
|
|
710
|
+
return (g, A) => (o(), u("span", C(
|
|
541
711
|
{
|
|
542
712
|
ref_key: "wrapperEl",
|
|
543
|
-
ref:
|
|
544
|
-
class: n(
|
|
713
|
+
ref: d,
|
|
714
|
+
class: n(I)("tooltip-trigger", l.className)
|
|
545
715
|
},
|
|
546
|
-
t.trigger === "click" ? { onClick:
|
|
716
|
+
t.trigger === "click" ? { onClick: se } : { onMouseenter: L, onMouseleave: x, onFocusin: L, onFocusout: x }
|
|
547
717
|
), [
|
|
548
|
-
f(
|
|
718
|
+
f(g.$slots, "default", {
|
|
719
|
+
tooltipId: n(a),
|
|
720
|
+
isOpen: c.value
|
|
721
|
+
}, void 0, !0),
|
|
549
722
|
s("span", {
|
|
550
723
|
ref_key: "positionerEl",
|
|
551
|
-
ref:
|
|
552
|
-
class: z(["tooltip-trigger__positioner", `tooltip-trigger__positioner--${
|
|
553
|
-
style:
|
|
554
|
-
visibility:
|
|
724
|
+
ref: i,
|
|
725
|
+
class: z(["tooltip-trigger__positioner", `tooltip-trigger__positioner--${r.value}`]),
|
|
726
|
+
style: X({
|
|
727
|
+
visibility: c.value ? "visible" : "hidden",
|
|
555
728
|
"--positioner-gap": t.tail ? "var(--spacing-l)" : "0.5rem"
|
|
556
729
|
}),
|
|
557
|
-
onClick:
|
|
730
|
+
onClick: A[0] || (A[0] = pe(() => {
|
|
558
731
|
}, ["stop"]))
|
|
559
732
|
}, [
|
|
560
|
-
p(
|
|
561
|
-
id: n(
|
|
562
|
-
onDismiss:
|
|
733
|
+
p(Dt, C(oe.value, {
|
|
734
|
+
id: n(a),
|
|
735
|
+
onDismiss: x
|
|
563
736
|
}), {
|
|
564
737
|
default: v(() => [
|
|
565
|
-
f(
|
|
738
|
+
f(g.$slots, "body", {}, void 0, !0)
|
|
566
739
|
]),
|
|
567
740
|
_: 3
|
|
568
741
|
}, 16, ["id"])
|
|
569
742
|
], 6)
|
|
570
743
|
], 16));
|
|
571
744
|
}
|
|
572
|
-
}),
|
|
745
|
+
}), Ht = /* @__PURE__ */ ne(Rt, [["__scopeId", "data-v-bea2f168"]]), Ut = ["disabled"], Gt = /* @__PURE__ */ y({
|
|
573
746
|
inheritAttrs: !1,
|
|
574
747
|
__name: "PhlButton",
|
|
575
748
|
props: {
|
|
@@ -591,14 +764,14 @@ const bt = ["id"], pt = {
|
|
|
591
764
|
svgRaw: {}
|
|
592
765
|
},
|
|
593
766
|
setup(t) {
|
|
594
|
-
const e = t,
|
|
767
|
+
const e = t, l = (i) => "href" in i && i.href !== void 0 || "to" in i && i.to !== void 0, a = k(() => I(
|
|
595
768
|
"phila-button",
|
|
596
769
|
`phila-button--${e.variant}`,
|
|
597
770
|
e.size && `is-${e.size}`,
|
|
598
771
|
e.iconOnly && "icon-button",
|
|
599
772
|
e.iconOnly && e.variant === "standard" && "icon-button--standard",
|
|
600
773
|
e.className
|
|
601
|
-
)), c = k(() =>
|
|
774
|
+
)), c = k(() => l(e) ? "to" in e && e.to !== void 0 ? {
|
|
602
775
|
to: e.to,
|
|
603
776
|
disabled: e.disabled,
|
|
604
777
|
className: a.value
|
|
@@ -619,249 +792,85 @@ const bt = ["id"], pt = {
|
|
|
619
792
|
size: e.size
|
|
620
793
|
})
|
|
621
794
|
);
|
|
622
|
-
return (i,
|
|
795
|
+
return (i, r) => l(e) ? (o(), b(n(J), C({ key: 0 }, { ...c.value, ...i.$attrs }, { role: "button" }), {
|
|
623
796
|
default: v(() => [
|
|
624
|
-
p(n(
|
|
797
|
+
p(n(S), M(T(d.value)), {
|
|
625
798
|
default: v(() => [
|
|
626
799
|
f(i.$slots, "default", {}, () => [
|
|
627
|
-
w(
|
|
800
|
+
w(h(e.text), 1)
|
|
628
801
|
])
|
|
629
802
|
]),
|
|
630
803
|
_: 3
|
|
631
804
|
}, 16)
|
|
632
805
|
]),
|
|
633
806
|
_: 3
|
|
634
|
-
}, 16)) : (o(), u("button",
|
|
807
|
+
}, 16)) : (o(), u("button", C({
|
|
635
808
|
key: 1,
|
|
636
809
|
type: "button",
|
|
637
810
|
disabled: e.disabled,
|
|
638
811
|
class: a.value
|
|
639
812
|
}, i.$attrs), [
|
|
640
|
-
p(n(
|
|
813
|
+
p(n(S), M(T(d.value)), {
|
|
641
814
|
default: v(() => [
|
|
642
815
|
f(i.$slots, "default", {}, () => [
|
|
643
|
-
w(
|
|
816
|
+
w(h(e.text), 1)
|
|
644
817
|
])
|
|
645
818
|
]),
|
|
646
819
|
_: 3
|
|
647
820
|
}, 16)
|
|
648
|
-
], 16,
|
|
821
|
+
], 16, Ut));
|
|
649
822
|
}
|
|
650
|
-
}),
|
|
823
|
+
}), jt = { class: "navbar-info" }, Ft = { class: "navbar-info__group" }, Vt = {
|
|
824
|
+
key: 0,
|
|
825
|
+
class: "navbar-info__label has-text-body-default hidden-tablet",
|
|
826
|
+
"aria-hidden": "true"
|
|
827
|
+
}, Qt = { class: "has-text-body-small" }, Kt = /* @__PURE__ */ y({
|
|
651
828
|
__name: "NavbarInfo",
|
|
652
829
|
props: {
|
|
653
830
|
infoTitle: {},
|
|
654
|
-
infoMessage: {}
|
|
831
|
+
infoMessage: {},
|
|
832
|
+
label: {}
|
|
655
833
|
},
|
|
656
|
-
setup(t) {
|
|
657
|
-
|
|
658
|
-
|
|
834
|
+
setup(t, { expose: e }) {
|
|
835
|
+
const l = W("tooltip");
|
|
836
|
+
return e({
|
|
837
|
+
show: () => l.value?.show(),
|
|
838
|
+
hide: () => l.value?.hide()
|
|
839
|
+
}), (a, c) => (o(), u("div", jt, [
|
|
840
|
+
p(n(Ht), {
|
|
841
|
+
ref_key: "tooltip",
|
|
842
|
+
ref: l,
|
|
659
843
|
type: "rich",
|
|
660
844
|
title: t.infoTitle,
|
|
661
845
|
trigger: "click",
|
|
662
846
|
dismissable: !0
|
|
663
847
|
}, {
|
|
664
|
-
default: v(({ tooltipId:
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
848
|
+
default: v(({ tooltipId: d, isOpen: i }) => [
|
|
849
|
+
s("span", Ft, [
|
|
850
|
+
p(n(Gt), {
|
|
851
|
+
class: "navbar-info__trigger",
|
|
852
|
+
variant: "standard",
|
|
853
|
+
size: "small",
|
|
854
|
+
"icon-only": !0,
|
|
855
|
+
"icon-definition": n(ie),
|
|
856
|
+
"aria-label": "More information",
|
|
857
|
+
"aria-describedby": d,
|
|
858
|
+
"aria-pressed": i
|
|
859
|
+
}, null, 8, ["icon-definition", "aria-describedby", "aria-pressed"]),
|
|
860
|
+
t.label ? (o(), u("span", Vt, h(t.label), 1)) : m("", !0)
|
|
861
|
+
])
|
|
674
862
|
]),
|
|
675
863
|
body: v(() => [
|
|
676
|
-
f(
|
|
677
|
-
s("div",
|
|
864
|
+
f(a.$slots, "default", {}, () => [
|
|
865
|
+
s("div", Qt, h(t.infoMessage), 1)
|
|
678
866
|
], !0)
|
|
679
867
|
]),
|
|
680
868
|
_: 3
|
|
681
869
|
}, 8, ["title"])
|
|
682
870
|
]));
|
|
683
871
|
}
|
|
684
|
-
}),
|
|
685
|
-
key: 0,
|
|
686
|
-
class: "phila-navbar-item phila-navbar-brand-link hidden-tablet"
|
|
687
|
-
}, Tt = {
|
|
688
|
-
key: 0,
|
|
689
|
-
class: "content"
|
|
690
|
-
}, St = ["href"], Et = { class: "phila-navbar-item phila-navbar-list is-flex is-align-center is-justify-space-between content has-text-label-default hidden-tablet" }, It = { class: "phila-navbar-search" }, Q = "5rem", Ot = /* @__PURE__ */ h({
|
|
691
|
-
__name: "index",
|
|
692
|
-
props: {
|
|
693
|
-
id: {},
|
|
694
|
-
sticky: { type: Boolean },
|
|
695
|
-
navbarBrand: {},
|
|
696
|
-
mobileNav: {},
|
|
697
|
-
collapseGroup: {},
|
|
698
|
-
search: {},
|
|
699
|
-
links: { default: () => [{ text: "Home", href: "#" }] },
|
|
700
|
-
infoTitle: {},
|
|
701
|
-
infoMessage: {}
|
|
702
|
-
},
|
|
703
|
-
setup(t) {
|
|
704
|
-
const e = t, { state: r } = Y(), a = ve("navBarElement"), c = B(Q), d = B(0), i = pe(() => {
|
|
705
|
-
const l = (a.value?.offsetTop || 0) + (a.value?.offsetHeight || 0), x = typeof window < "u" ? window.innerWidth : 1024;
|
|
706
|
-
c.value = !e.sticky || x < 1024 ? l + "px" : Q, d.value = l;
|
|
707
|
-
}, 100);
|
|
708
|
-
return me(() => r.value, i, { deep: !0, immediate: !0 }), be(() => {
|
|
709
|
-
window.addEventListener("resize", i);
|
|
710
|
-
}), K(() => {
|
|
711
|
-
window.removeEventListener("resize", i);
|
|
712
|
-
}), (l, x) => (o(), u("nav", {
|
|
713
|
-
ref_key: "navBarElement",
|
|
714
|
-
ref: a,
|
|
715
|
-
class: z(["phila-navbar has-links-on-primary", { "is-sticky-desktop": t.sticky }]),
|
|
716
|
-
"aria-label": "Main navigation",
|
|
717
|
-
style: W(`--nav-height:${c.value};--nav-bottom:${d.value}px`)
|
|
718
|
-
}, [
|
|
719
|
-
f(l.$slots, "navbar-burger", {}, () => [
|
|
720
|
-
t.mobileNav || l.$slots["mobile-nav"] ? (o(), m(Pe, {
|
|
721
|
-
key: 0,
|
|
722
|
-
"mobile-nav": t.mobileNav,
|
|
723
|
-
"collapse-group": t.id
|
|
724
|
-
}, q({ _: 2 }, [
|
|
725
|
-
l.$slots["mobile-nav"] ? {
|
|
726
|
-
name: "mobile-nav",
|
|
727
|
-
fn: v(() => [
|
|
728
|
-
f(l.$slots, "mobile-nav", {}, void 0, !0)
|
|
729
|
-
]),
|
|
730
|
-
key: "0"
|
|
731
|
-
} : void 0
|
|
732
|
-
]), 1032, ["mobile-nav", "collapse-group"])) : b("", !0)
|
|
733
|
-
], !0),
|
|
734
|
-
s("div", At, [
|
|
735
|
-
f(l.$slots, "navbar-logo", {}, () => [
|
|
736
|
-
t.navbarBrand?.brandingImage ? (o(), m(rt, $({ key: 0 }, t.navbarBrand.brandingImage, {
|
|
737
|
-
logo: t.navbarBrand?.logo
|
|
738
|
-
}), null, 16, ["logo"])) : b("", !0)
|
|
739
|
-
], !0),
|
|
740
|
-
l.$slots["navbar-brand-link"] || t.navbarBrand?.brandingLink ? (o(), u("div", Lt, [
|
|
741
|
-
f(l.$slots, "navbar-brand-link", {}, () => [
|
|
742
|
-
t.navbarBrand?.brandingLink ? (o(), u("div", Tt, [
|
|
743
|
-
s("a", {
|
|
744
|
-
tabindex: "0",
|
|
745
|
-
href: t.navbarBrand.brandingLink.href,
|
|
746
|
-
class: "has-text-underline"
|
|
747
|
-
}, g(t.navbarBrand.brandingLink.text), 9, St)
|
|
748
|
-
])) : b("", !0)
|
|
749
|
-
], !0)
|
|
750
|
-
])) : b("", !0),
|
|
751
|
-
t.infoTitle || t.infoMessage || l.$slots["info-body"] ? (o(), m(Mt, {
|
|
752
|
-
key: 1,
|
|
753
|
-
"info-title": t.infoTitle,
|
|
754
|
-
"info-message": t.infoMessage
|
|
755
|
-
}, {
|
|
756
|
-
default: v(() => [
|
|
757
|
-
l.$slots["info-body"] ? f(l.$slots, "info-body", { key: 0 }, void 0, !0) : b("", !0)
|
|
758
|
-
]),
|
|
759
|
-
_: 3
|
|
760
|
-
}, 8, ["info-title", "info-message"])) : b("", !0)
|
|
761
|
-
]),
|
|
762
|
-
s("div", Et, [
|
|
763
|
-
f(l.$slots, "navbar-links", {}, () => [
|
|
764
|
-
t.links ? (o(), m(ot, {
|
|
765
|
-
key: 0,
|
|
766
|
-
links: t.links,
|
|
767
|
-
"collapse-group": t.id
|
|
768
|
-
}, null, 8, ["links", "collapse-group"])) : b("", !0)
|
|
769
|
-
], !0)
|
|
770
|
-
]),
|
|
771
|
-
s("div", It, [
|
|
772
|
-
f(l.$slots, "navbar-search", {}, () => [
|
|
773
|
-
t.search ? (o(), m(vt, {
|
|
774
|
-
key: 0,
|
|
775
|
-
search: t.search,
|
|
776
|
-
"collapse-group": t.id
|
|
777
|
-
}, null, 8, ["search", "collapse-group"])) : b("", !0)
|
|
778
|
-
], !0)
|
|
779
|
-
])
|
|
780
|
-
], 6));
|
|
781
|
-
}
|
|
782
|
-
}), Dt = /* @__PURE__ */ I(Ot, [["__scopeId", "data-v-9e862e20"]]), Rt = { class: "site-wide-alert content" }, Ht = { class: "alert-content" }, Ut = { class: "content-text" }, Gt = { class: "title" }, jt = { class: "body" }, Ft = /* @__PURE__ */ h({
|
|
783
|
-
__name: "AlertBanner",
|
|
784
|
-
props: {
|
|
785
|
-
bannerTitle: {},
|
|
786
|
-
bannerMessage: {}
|
|
787
|
-
},
|
|
788
|
-
setup(t) {
|
|
789
|
-
const e = t;
|
|
790
|
-
return (r, a) => (o(), u("div", Rt, [
|
|
791
|
-
s("div", Ht, [
|
|
792
|
-
p(n(he), {
|
|
793
|
-
"icon-definition": n(xe),
|
|
794
|
-
size: "small",
|
|
795
|
-
decorative: !0
|
|
796
|
-
}, null, 8, ["icon-definition"]),
|
|
797
|
-
s("div", Ut, [
|
|
798
|
-
s("h6", Gt, g(e.bannerTitle), 1),
|
|
799
|
-
s("div", jt, g(e.bannerMessage), 1)
|
|
800
|
-
])
|
|
801
|
-
])
|
|
802
|
-
]));
|
|
803
|
-
}
|
|
804
|
-
}), Yt = /* @__PURE__ */ h({
|
|
805
|
-
__name: "AppHeader",
|
|
806
|
-
props: {
|
|
807
|
-
showTrustedSite: { type: Boolean, default: !0 },
|
|
808
|
-
translations: { default: void 0 },
|
|
809
|
-
className: {},
|
|
810
|
-
id: { default: "main-nav" },
|
|
811
|
-
sticky: { type: Boolean, default: !0 },
|
|
812
|
-
navbarBrand: { default: void 0 },
|
|
813
|
-
mobileNav: { default: void 0 },
|
|
814
|
-
collapseGroup: {},
|
|
815
|
-
search: { default: void 0 },
|
|
816
|
-
links: { default: void 0 },
|
|
817
|
-
infoTitle: { default: void 0 },
|
|
818
|
-
infoMessage: { default: void 0 },
|
|
819
|
-
bannerTitle: { default: void 0 },
|
|
820
|
-
bannerMessage: { default: void 0 }
|
|
821
|
-
},
|
|
822
|
-
setup(t) {
|
|
823
|
-
return (e, r) => (o(), u(N, null, [
|
|
824
|
-
t.showTrustedSite ? (o(), m(Ye, { key: 0 }, {
|
|
825
|
-
translation: v(() => [
|
|
826
|
-
f(e.$slots, "translations", {}, () => [
|
|
827
|
-
t.translations ? (o(), m(S(t.translations), { key: 0 })) : b("", !0)
|
|
828
|
-
])
|
|
829
|
-
]),
|
|
830
|
-
_: 3
|
|
831
|
-
})) : b("", !0),
|
|
832
|
-
p(Dt, {
|
|
833
|
-
id: t.id,
|
|
834
|
-
sticky: t.sticky,
|
|
835
|
-
"mobile-nav": t.mobileNav,
|
|
836
|
-
links: t.links,
|
|
837
|
-
"navbar-brand": t.navbarBrand,
|
|
838
|
-
search: t.search,
|
|
839
|
-
"info-title": t.infoTitle,
|
|
840
|
-
"info-message": t.infoMessage
|
|
841
|
-
}, q({ _: 2 }, [
|
|
842
|
-
e.$slots["info-body"] ? {
|
|
843
|
-
name: "info-body",
|
|
844
|
-
fn: v(() => [
|
|
845
|
-
f(e.$slots, "info-body")
|
|
846
|
-
]),
|
|
847
|
-
key: "0"
|
|
848
|
-
} : void 0,
|
|
849
|
-
e.$slots["mobile-nav"] ? {
|
|
850
|
-
name: "mobile-nav",
|
|
851
|
-
fn: v(() => [
|
|
852
|
-
f(e.$slots, "mobile-nav")
|
|
853
|
-
]),
|
|
854
|
-
key: "1"
|
|
855
|
-
} : void 0
|
|
856
|
-
]), 1032, ["id", "sticky", "mobile-nav", "links", "navbar-brand", "search", "info-title", "info-message"]),
|
|
857
|
-
t.bannerTitle || t.bannerMessage ? (o(), m(Ft, {
|
|
858
|
-
key: 1,
|
|
859
|
-
"banner-title": t.bannerTitle,
|
|
860
|
-
"banner-message": t.bannerMessage
|
|
861
|
-
}, null, 8, ["banner-title", "banner-message"])) : b("", !0)
|
|
862
|
-
], 64));
|
|
863
|
-
}
|
|
864
|
-
});
|
|
872
|
+
}), Pt = /* @__PURE__ */ O(Kt, [["__scopeId", "data-v-c3989251"]]);
|
|
865
873
|
export {
|
|
866
|
-
|
|
874
|
+
Jt as AppHeader,
|
|
875
|
+
Pt as NavbarInfo
|
|
867
876
|
};
|