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