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