weg-shared-layout 0.0.39 → 0.0.41
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/cjs/loader.cjs.js +1 -1
- package/dist/cjs/weg-footer_2.cjs.entry.js +191 -27
- package/dist/cjs/weg-shared-layout.cjs.js +1 -1
- package/dist/collection/components/weg-header/weg-header.css +26 -1
- package/dist/collection/components/weg-header/weg-header.js +86 -24
- package/dist/collection/styles/shared.css +1 -0
- package/dist/collection/utils/nav-active.js +121 -0
- package/dist/components/weg-footer.js +1 -1
- package/dist/components/weg-header.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/weg-footer_2.entry.js +191 -27
- package/dist/esm/weg-shared-layout.js +1 -1
- package/dist/types/components/weg-header/weg-header.d.ts +9 -0
- package/dist/types/components.d.ts +9 -0
- package/dist/types/utils/nav-active.d.ts +20 -0
- package/dist/weg-shared-layout/p-3362febf.entry.js +1 -0
- package/dist/weg-shared-layout/weg-shared-layout.esm.js +1 -1
- package/docs/README.md +2 -0
- package/docs/angular.md +77 -21
- package/docs/nextjs.md +20 -15
- package/docs/react.md +37 -12
- package/docs/vanilla.md +36 -6
- package/package.json +5 -5
- package/readme.md +15 -3
- package/dist/weg-shared-layout/p-18d9facc.entry.js +0 -1
|
@@ -95,7 +95,7 @@ function normalizeMenu(input) {
|
|
|
95
95
|
return result;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
const sharedCss$1 = () => `:host{--weg-breakpoint-sm:640px;--weg-breakpoint-md:960px;--weg-breakpoint-lg:1280px;--weg-breakpoint-xl:1440px}:root,:host{--weg-container-breakpoint-sm:40rem;--weg-container-breakpoint-md:48rem;--weg-container-breakpoint-lg:64rem;--weg-container-breakpoint-xl:80rem;--weg-container-breakpoint-2xl:86rem;--weg-container-max-vw:95vw;--weg-container-padding-inline:1rem}@media (width >= 48rem){:root,:host{--weg-container-padding-inline:2rem}}.container{width:100%;max-width:var(--weg-container-max-vw);margin-inline:auto;padding-inline:var(--weg-container-padding-inline)}@media (width >= 40rem){.container{max-width:min(var(--weg-container-breakpoint-sm), var(--weg-container-max-vw))}}@media (width >= 48rem){.container{max-width:min(var(--weg-container-breakpoint-md), var(--weg-container-max-vw))}}@media (width >= 64rem){.container{max-width:min(var(--weg-container-breakpoint-lg), var(--weg-container-max-vw))}}@media (width >= 80rem){.container{max-width:min(var(--weg-container-breakpoint-xl), var(--weg-container-max-vw))}}@media (width >= 86rem){.container{max-width:min(var(--weg-container-breakpoint-xl), var(--weg-container-max-vw))}}*,*::before,*::after{box-sizing:border-box}:host{display:block;--weg-font-family:ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';--weg-color-accent:#948eeb}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}`;
|
|
98
|
+
const sharedCss$1 = () => `:host{--weg-breakpoint-sm:640px;--weg-breakpoint-md:960px;--weg-breakpoint-lg:1280px;--weg-breakpoint-xl:1440px}:root,:host{--weg-container-breakpoint-sm:40rem;--weg-container-breakpoint-md:48rem;--weg-container-breakpoint-lg:64rem;--weg-container-breakpoint-xl:80rem;--weg-container-breakpoint-2xl:86rem;--weg-container-max-vw:95vw;--weg-container-padding-inline:1rem}@media (width >= 48rem){:root,:host{--weg-container-padding-inline:2rem}}.container{width:100%;max-width:var(--weg-container-max-vw);margin-inline:auto;padding-inline:var(--weg-container-padding-inline)}@media (width >= 40rem){.container{max-width:min(var(--weg-container-breakpoint-sm), var(--weg-container-max-vw))}}@media (width >= 48rem){.container{max-width:min(var(--weg-container-breakpoint-md), var(--weg-container-max-vw))}}@media (width >= 64rem){.container{max-width:min(var(--weg-container-breakpoint-lg), var(--weg-container-max-vw))}}@media (width >= 80rem){.container{max-width:min(var(--weg-container-breakpoint-xl), var(--weg-container-max-vw))}}@media (width >= 86rem){.container{max-width:min(var(--weg-container-breakpoint-xl), var(--weg-container-max-vw))}}*,*::before,*::after{box-sizing:border-box}:host{display:block;--weg-font-family:ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';--weg-color-accent:#948eeb;--weg-purple-200:#cdcff8}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}`;
|
|
99
99
|
|
|
100
100
|
const wegFooterCss = () => `:host{--weg-breakpoint-sm:640px;--weg-breakpoint-md:960px;--weg-breakpoint-lg:1280px;--weg-breakpoint-xl:1440px}.footer{background:#030712;color:#ffffff;font-family:var(--weg-font-family);font-weight:300}.footer__inner{display:flex;flex-direction:column;align-items:center;gap:1.25rem;padding-block:2rem;padding-inline:0}@media (width >= 960px){.footer__inner{gap:2.25rem;padding-block:3.5rem}}.social{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap}@media (width >= 960px){.social{gap:1.75rem}}.social__link{width:3rem;height:3rem;display:inline-flex;align-items:center;justify-content:center;border-radius:999rem;background:transparent;color:inherit;text-decoration:none;transition:opacity 150ms ease;outline:none}.social__link:hover{opacity:0.9}.social__link:focus-visible{outline:2px solid rgba(255, 255, 255, 0.9);outline-offset:4px}.social__icon{display:inline-flex;width:3rem;height:3rem}.footer-link{color:#ffffff;font-family:'Open Sans', var(--weg-font-family);font-size:1rem;font-style:normal;font-weight:300;line-height:1.5rem;display:block;width:100%;text-align:center;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;outline:none}@media (width >= 960px){.footer-link{display:inline;width:auto;text-align:left}}.footer-link:hover{opacity:0.9}.footer-link:focus-visible{outline:2px solid rgba(255, 255, 255, 0.9);outline-offset:4px}.legal{width:100%;max-width:860px;text-align:center;font-size:1rem;line-height:1.5rem}@media (width >= 960px){.legal{font-size:1.125rem;line-height:1.75rem}}.legal__p{margin:0}.standard{width:100%;display:flex;flex-direction:column;align-items:center;gap:2.25rem;text-align:center;font-size:1rem;line-height:1.5rem}@media (width >= 960px){.standard{font-size:1.125rem;line-height:1.75rem}}.columns{width:100%;display:grid;grid-template-columns:1fr;gap:0}.columns__col{display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0}.columns__col:not(:first-child){gap:2rem}.columns__divider{display:block;flex-shrink:0;width:100%;height:1px;margin-top:2rem;background:rgba(255, 255, 255, 0.35)}.columns__links{display:flex;flex-direction:column;align-items:stretch;gap:0.75rem;width:100%;min-width:0;text-align:center}@media (width >= 640px){.columns{grid-template-columns:repeat(3, minmax(0, 1fr));gap:1.5rem 3rem}.columns__col:not(:first-child){gap:0}.columns__col:nth-child(-n+3):not(:first-child) .columns__divider{display:none}.columns__col:nth-child(n+4) .columns__divider{display:block;width:100%;height:1px;margin:0 0 1.5rem}.footer-link{display:inline;width:auto;text-align:left}.columns__links{align-items:flex-start;text-align:left}}@media (width >= 960px){.columns{display:flex;flex-direction:row;align-items:stretch;justify-content:center;gap:0}.columns__col{flex:1 1 0;flex-direction:row;align-items:stretch}.columns__col:not(:first-child){gap:0}.columns__col:nth-child(-n+3):not(:first-child) .columns__divider,.columns__col:nth-child(n+4) .columns__divider{display:block;width:1px;height:auto;margin:0 1.5rem}.columns__links{flex:1;align-items:flex-start;text-align:left}}`;
|
|
101
101
|
|
|
@@ -248,16 +248,140 @@ const WEG_MD_MEDIA_QUERY = '(width >= 960px)';
|
|
|
248
248
|
/** Primary input can hover (excludes most touch-only profiles). */
|
|
249
249
|
const WEG_HOVER_CAPABLE_MEDIA_QUERY = '(hover: hover)';
|
|
250
250
|
|
|
251
|
+
function normalizeNavPath(path) {
|
|
252
|
+
if (!path?.trim())
|
|
253
|
+
return '/';
|
|
254
|
+
let value = path.trim().toLowerCase().split('#')[0];
|
|
255
|
+
if (value.startsWith('http://') || value.startsWith('https://')) {
|
|
256
|
+
try {
|
|
257
|
+
value = new URL(value).pathname;
|
|
258
|
+
}
|
|
259
|
+
catch {
|
|
260
|
+
return '/';
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
if (!value.startsWith('/')) {
|
|
264
|
+
value = `/${value}`;
|
|
265
|
+
}
|
|
266
|
+
if (value.length > 1 && value.endsWith('/')) {
|
|
267
|
+
value = value.slice(0, -1);
|
|
268
|
+
}
|
|
269
|
+
return value || '/';
|
|
270
|
+
}
|
|
271
|
+
function parseCurrentLocation(currentPath) {
|
|
272
|
+
const trimmed = currentPath.trim();
|
|
273
|
+
const queryIndex = trimmed.indexOf('?');
|
|
274
|
+
const pathPart = queryIndex === -1 ? trimmed : trimmed.slice(0, queryIndex);
|
|
275
|
+
const queryPart = queryIndex === -1 ? '' : trimmed.slice(queryIndex + 1).split('#')[0];
|
|
276
|
+
return {
|
|
277
|
+
pathname: normalizeNavPath(pathPart),
|
|
278
|
+
search: queryPart ? `?${queryPart.toLowerCase()}` : '',
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
function parseNavHref(href) {
|
|
282
|
+
const trimmed = href.trim();
|
|
283
|
+
if (!trimmed || trimmed === '#')
|
|
284
|
+
return null;
|
|
285
|
+
try {
|
|
286
|
+
const url = trimmed.startsWith('http://') || trimmed.startsWith('https://')
|
|
287
|
+
? new URL(trimmed)
|
|
288
|
+
: new URL(trimmed, 'http://local');
|
|
289
|
+
return {
|
|
290
|
+
pathname: normalizeNavPath(url.pathname),
|
|
291
|
+
search: url.search.toLowerCase(),
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
catch {
|
|
295
|
+
return null;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
function isNavLinkActive(currentPath, href, mode = 'prefix') {
|
|
299
|
+
if (!currentPath?.trim() || !href?.trim())
|
|
300
|
+
return false;
|
|
301
|
+
const parsedHref = parseNavHref(href);
|
|
302
|
+
if (!parsedHref)
|
|
303
|
+
return false;
|
|
304
|
+
const current = parseCurrentLocation(currentPath);
|
|
305
|
+
if (parsedHref.search) {
|
|
306
|
+
return current.pathname === parsedHref.pathname && current.search === parsedHref.search;
|
|
307
|
+
}
|
|
308
|
+
if (parsedHref.pathname === '/' || mode === 'exact') {
|
|
309
|
+
return current.pathname === parsedHref.pathname;
|
|
310
|
+
}
|
|
311
|
+
if (current.pathname === parsedHref.pathname)
|
|
312
|
+
return true;
|
|
313
|
+
return current.pathname.startsWith(`${parsedHref.pathname}/`);
|
|
314
|
+
}
|
|
315
|
+
function getNavLinkMatchScore(currentPath, href, mode = 'prefix') {
|
|
316
|
+
if (!isNavLinkActive(currentPath, href, mode))
|
|
317
|
+
return 0;
|
|
318
|
+
const parsedHref = parseNavHref(href);
|
|
319
|
+
if (!parsedHref)
|
|
320
|
+
return 0;
|
|
321
|
+
let score = parsedHref.pathname.length;
|
|
322
|
+
if (parsedHref.search)
|
|
323
|
+
score += 100;
|
|
324
|
+
if (mode === 'exact')
|
|
325
|
+
score += 50;
|
|
326
|
+
return score;
|
|
327
|
+
}
|
|
328
|
+
function getNavHrefKey(href) {
|
|
329
|
+
if (!href?.trim())
|
|
330
|
+
return null;
|
|
331
|
+
const parsed = parseNavHref(href);
|
|
332
|
+
if (!parsed)
|
|
333
|
+
return null;
|
|
334
|
+
return `${parsed.pathname}${parsed.search}`;
|
|
335
|
+
}
|
|
336
|
+
function resolveAriaCurrentNavKey(menu, currentPath, shouldExclude) {
|
|
337
|
+
const trimmedPath = currentPath.trim();
|
|
338
|
+
if (!trimmedPath)
|
|
339
|
+
return null;
|
|
340
|
+
let bestKey = null;
|
|
341
|
+
let bestScore = 0;
|
|
342
|
+
for (const item of menu) {
|
|
343
|
+
if (item.items?.length) {
|
|
344
|
+
for (const child of item.items) {
|
|
345
|
+
if (!child.href || shouldExclude?.(child))
|
|
346
|
+
continue;
|
|
347
|
+
const score = getNavLinkMatchScore(trimmedPath, child.href, 'exact');
|
|
348
|
+
const key = getNavHrefKey(child.href);
|
|
349
|
+
if (key && score > bestScore) {
|
|
350
|
+
bestScore = score;
|
|
351
|
+
bestKey = key;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
continue;
|
|
355
|
+
}
|
|
356
|
+
if (!item.href || shouldExclude?.(item))
|
|
357
|
+
continue;
|
|
358
|
+
const score = getNavLinkMatchScore(trimmedPath, item.href, 'prefix');
|
|
359
|
+
const key = getNavHrefKey(item.href);
|
|
360
|
+
if (key && score > bestScore) {
|
|
361
|
+
bestScore = score;
|
|
362
|
+
bestKey = key;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
return bestKey;
|
|
366
|
+
}
|
|
367
|
+
function isAriaCurrentNavHref(href, ariaCurrentKey) {
|
|
368
|
+
if (!ariaCurrentKey)
|
|
369
|
+
return false;
|
|
370
|
+
return getNavHrefKey(href) === ariaCurrentKey;
|
|
371
|
+
}
|
|
372
|
+
|
|
251
373
|
/** WEG logo — inlined from logo.svg (not configurable). */
|
|
252
374
|
const LOGO_SRC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA4QAAAFcCAYAAACQvHBQAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAPJRJREFUeNrs3b9yG0mCP/jq3vaX1sZFrDFo74yJaMgZV5B3HqknEOmdR/EJKD2BqCcQZN2dJeoJBHoX7TQ6YvxGGxtxsc5wzZ81Vyklp9nFzEIBqCpUAZ9PBEY9pARUJRKF/Fb+KwoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOvRd3y/4t7++mpR/zMrHT+VjWj4m8QGwiVV8LMvHr+Vj8fPfP64UCwDAwAJhDIHn5eM0hkCArkLibfl4LxwCAOw5EJZBcFb+cVk+zhQ10LNF+XhbBsOFogAA6DEQxh7Bd4IgMJBgeFUGw6WiAAD4s3/rIAy+Lv/4vwpDQ4FhmJSP//M//2P63X/9968LxQEA8IfWegjLIHhS/vGh0CsIDFfoJXzx898/3isKAICWA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AAAACIQAAAAIhAAAAAiEAAAACIQAAAAcSCBeKCgAA4DgDIcAxWSgCAEAg/MOdogKOyEoRAAAC4R+Wigo4Ir8qAgBAIPzDQlEBR8Q1DwAQCB/8/PeP94VeQuA4rMprnusdACAQVnxUXMARuFUEAIBAqJEEHCc3vwAAgbDq579/XJV/zBUZcMAWhosCAAJh3ltFBhww1zgAQCDM0UsIHLDQO7hQDACAQFgv3EG/V3TAgblSBADAsfm3Tf/Bf/33r/f/+R/T/1X+5/+h+IAD8fbnv3/8vxUDAHBsvtv2H/7tr68+lX+cKUJg5JZlGHymGACAY/T9Dv/2orBZPTBuYfj7C8UAAAiEG/r57x/vYyg0nxAYbRiM1zIAgKP03a5P8Le/vpqWf3wpHyeKExhZGDTKAQA4at/v+gSxQRWGXGlYAcIgAMCI/FsbT/Jf//3r//ef/zH9f8r//N/jA2CIQgh8FvdUBQA4et+1/YR/++ur1+Uf14UhpMCwhK0l3igGAIA//FvbT/hf//3r/xt7CyeF3kJg/xbl46V9BgEAnvquyyf/219fzco/Lgv7FQL7CYKhV3ChKAAA9hAIHwXDSfnHefk4LR9TxQ50ZFU+bsvHe/MEAQAGEggT4XBWPn6K4XASHwCbhr/wCAvF/Fo+FkIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/L/CzAAsfntQ+umIEwAAAAASUVORK5CYII=";
|
|
253
375
|
|
|
254
|
-
const sharedCss = () => `:host{--weg-breakpoint-sm:640px;--weg-breakpoint-md:960px;--weg-breakpoint-lg:1280px;--weg-breakpoint-xl:1440px}:root,:host{--weg-container-breakpoint-sm:40rem;--weg-container-breakpoint-md:48rem;--weg-container-breakpoint-lg:64rem;--weg-container-breakpoint-xl:80rem;--weg-container-breakpoint-2xl:86rem;--weg-container-max-vw:95vw;--weg-container-padding-inline:1rem}@media (width >= 48rem){:root,:host{--weg-container-padding-inline:2rem}}.container{width:100%;max-width:var(--weg-container-max-vw);margin-inline:auto;padding-inline:var(--weg-container-padding-inline)}@media (width >= 40rem){.container{max-width:min(var(--weg-container-breakpoint-sm), var(--weg-container-max-vw))}}@media (width >= 48rem){.container{max-width:min(var(--weg-container-breakpoint-md), var(--weg-container-max-vw))}}@media (width >= 64rem){.container{max-width:min(var(--weg-container-breakpoint-lg), var(--weg-container-max-vw))}}@media (width >= 80rem){.container{max-width:min(var(--weg-container-breakpoint-xl), var(--weg-container-max-vw))}}@media (width >= 86rem){.container{max-width:min(var(--weg-container-breakpoint-xl), var(--weg-container-max-vw))}}*,*::before,*::after{box-sizing:border-box}:host{display:block;--weg-font-family:ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';--weg-color-accent:#948eeb}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}`;
|
|
376
|
+
const sharedCss = () => `:host{--weg-breakpoint-sm:640px;--weg-breakpoint-md:960px;--weg-breakpoint-lg:1280px;--weg-breakpoint-xl:1440px}:root,:host{--weg-container-breakpoint-sm:40rem;--weg-container-breakpoint-md:48rem;--weg-container-breakpoint-lg:64rem;--weg-container-breakpoint-xl:80rem;--weg-container-breakpoint-2xl:86rem;--weg-container-max-vw:95vw;--weg-container-padding-inline:1rem}@media (width >= 48rem){:root,:host{--weg-container-padding-inline:2rem}}.container{width:100%;max-width:var(--weg-container-max-vw);margin-inline:auto;padding-inline:var(--weg-container-padding-inline)}@media (width >= 40rem){.container{max-width:min(var(--weg-container-breakpoint-sm), var(--weg-container-max-vw))}}@media (width >= 48rem){.container{max-width:min(var(--weg-container-breakpoint-md), var(--weg-container-max-vw))}}@media (width >= 64rem){.container{max-width:min(var(--weg-container-breakpoint-lg), var(--weg-container-max-vw))}}@media (width >= 80rem){.container{max-width:min(var(--weg-container-breakpoint-xl), var(--weg-container-max-vw))}}@media (width >= 86rem){.container{max-width:min(var(--weg-container-breakpoint-xl), var(--weg-container-max-vw))}}*,*::before,*::after{box-sizing:border-box}:host{display:block;--weg-font-family:ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';--weg-color-accent:#948eeb;--weg-purple-200:#cdcff8}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}`;
|
|
255
377
|
|
|
256
|
-
const wegHeaderCss = () => `:host{--weg-breakpoint-sm:640px;--weg-breakpoint-md:960px;--weg-breakpoint-lg:1280px;--weg-breakpoint-xl:1440px}.header{width:100%;border-bottom:2px solid var(--weg-color-accent);background:#ffffff;color:#0f172a;font-family:var(--weg-font-family)}@media (width >= 960px){.header{border-bottom-width:0.25rem}}:host{position:relative;z-index:20}.header--menu-open{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;overflow:hidden}.header--menu-open .header-inner{flex:1 1 auto;flex-wrap:wrap;align-content:flex-start;min-height:0}.header--menu-open .main-nav-panel{display:block;flex:1 1 100%;width:100%;min-height:0;overflow-y:auto;border-top:1px solid #d8d4f7}@media (width >= 960px){.header--menu-open{position:static;inset:auto;z-index:auto;display:block;overflow:visible}.header--menu-open .header-inner{flex:unset;flex-wrap:nowrap;align-content:unset;min-height:unset}}.logo-link{display:inline-flex;align-items:center;text-decoration:none;outline:none}.logo-link:focus-visible{outline:2px solid var(--weg-color-accent);outline-offset:4px;border-radius:4px}.logo{height:2.5rem;width:auto}@media (width >= 960px){.logo{height:3rem}}@media (width >= 1280px){.logo{height:5rem}}.header-inner{display:flex;width:100%;min-width:0;align-items:center;justify-content:space-between;gap:0.75rem;padding-block:0.75rem;padding-inline:var(--weg-container-padding-inline)}@media (width >= 960px){.header-inner{flex-wrap:nowrap;gap:1.5rem;padding-block:1.25rem}}@media (width >= 1440px){.header-inner{padding-block:1.75rem}}.header-inner .logo-link{flex:1 1 auto;min-width:0;justify-content:center}@media (width >= 960px){.header-inner .logo-link{flex:0 0 auto;justify-content:flex-start}}.header-inner .logo{max-width:100%}.header-actions{display:flex;align-items:center;flex-shrink:0}@media (width >= 960px){.header-actions{display:none}}.main-nav-panel{display:none;margin-inline:-0.5rem}@media (width >= 960px){.main-nav-panel{display:flex;flex:1 1 auto;width:auto;min-width:0;justify-content:flex-end;overflow:visible;border-top:none}}.main-nav{padding:0 1rem 1.5rem}@media (width >= 960px){.main-nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:1rem;padding:0}}.main-nav__list{list-style:none;margin:0;padding:0}@media (width >= 960px){.main-nav__list{display:flex;align-items:center;flex-wrap:wrap;gap:0.5rem}}@media (width >= 1280px){.main-nav__list{gap:1.5rem}}.main-nav__item{border-bottom:1px solid #d8d4f7}@media (width >= 960px){.main-nav__item{border-bottom:none}}.main-nav__item--dropdown{position:static}.nav-dropdown{position:relative}.nav-link{display:block;width:100%;padding:1rem 0;font-weight:600;color:inherit;text-decoration:none;outline:none}.nav-link:hover{opacity:0.85}.nav-link:focus-visible{outline:2px solid var(--weg-color-accent);outline-offset:2px;border-radius:4px}.nav-dropdown__trigger{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;width:100%;padding:1rem 0;border:none;background:transparent;font:inherit;font-weight:600;color:inherit;text-align:left;cursor:pointer;outline:none}.nav-dropdown__trigger:hover{opacity:0.85}.nav-dropdown__trigger:focus-visible{outline:2px solid var(--weg-color-accent);outline-offset:2px;border-radius:4px}.nav-dropdown__trigger--open{background:transparent}.toggle-icon{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;border-radius:999rem;background:#312e81;color:#ffffff;flex-shrink:0}.nav-dropdown__panel{padding:0 0 0.75rem}@media (width >= 960px){.nav-dropdown__panel{position:absolute;top:calc(100% + 0.5rem);left:0;z-index:500;min-width:17.5rem;padding:0.75rem 0 0.75rem 0.75rem;border:1px solid #e2e8f0;border-radius:0.5rem;background:#f8fafc;box-shadow:0 0.25rem 1rem rgba(15, 23, 42, 0.08)}.nav-dropdown__panel::before{content:'';position:absolute;top:-0.5rem;left:0;right:0;height:0.5rem}}.nav-dropdown__accent{border-left:0.25rem solid var(--weg-color-accent);padding-left:0.75rem}.nav-dropdown__links{display:flex;flex-direction:column;gap:0.25rem}.nav-dropdown__link{display:block;padding:0.625rem 0;font-weight:400;color:inherit;text-decoration:none;outline:none}.nav-dropdown__link:hover{opacity:0.85}.nav-dropdown__link:focus-visible{outline:0.125rem solid var(--weg-color-accent);outline-offset:0.125rem;border-radius:0.25rem}@media (width >= 960px){.nav-dropdown__link{padding:0.5rem;margin-right:0.75rem;border-radius:0.5rem;font-weight:600}.nav-dropdown__link:hover,.nav-dropdown__link:focus-visible{background
|
|
378
|
+
const wegHeaderCss = () => `:host{--weg-breakpoint-sm:640px;--weg-breakpoint-md:960px;--weg-breakpoint-lg:1280px;--weg-breakpoint-xl:1440px}.header{width:100%;border-bottom:2px solid var(--weg-color-accent);background:#ffffff;color:#0f172a;font-family:var(--weg-font-family)}@media (width >= 960px){.header{border-bottom-width:0.25rem}}:host{position:relative;z-index:20}.header--menu-open{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;overflow:hidden}.header--menu-open .header-inner{flex:1 1 auto;flex-wrap:wrap;align-content:flex-start;min-height:0}.header--menu-open .main-nav-panel{display:block;flex:1 1 100%;width:100%;min-height:0;overflow-y:auto;border-top:1px solid #d8d4f7}@media (width >= 960px){.header--menu-open{position:static;inset:auto;z-index:auto;display:block;overflow:visible}.header--menu-open .header-inner{flex:unset;flex-wrap:nowrap;align-content:unset;min-height:unset}}.logo-link{display:inline-flex;align-items:center;text-decoration:none;outline:none}.logo-link:focus-visible{outline:2px solid var(--weg-color-accent);outline-offset:4px;border-radius:4px}.logo{height:2.5rem;width:auto}@media (width >= 960px){.logo{height:3rem}}@media (width >= 1280px){.logo{height:5rem}}.header-inner{display:flex;width:100%;min-width:0;align-items:center;justify-content:space-between;gap:0.75rem;padding-block:0.75rem;padding-inline:var(--weg-container-padding-inline)}@media (width >= 960px){.header-inner{flex-wrap:nowrap;gap:1.5rem;padding-block:1.25rem}}@media (width >= 1440px){.header-inner{padding-block:1.75rem}}.header-inner .logo-link{flex:1 1 auto;min-width:0;justify-content:center}@media (width >= 960px){.header-inner .logo-link{flex:0 0 auto;justify-content:flex-start}}.header-inner .logo{max-width:100%}.header-actions{display:flex;align-items:center;flex-shrink:0}@media (width >= 960px){.header-actions{display:none}}.main-nav-panel{display:none;margin-inline:-0.5rem}@media (width >= 960px){.main-nav-panel{display:flex;flex:1 1 auto;width:auto;min-width:0;justify-content:flex-end;overflow:visible;border-top:none}}.main-nav{padding:0 1rem 1.5rem}@media (width >= 960px){.main-nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:1rem;padding:0}}.main-nav__list{list-style:none;margin:0;padding:0}@media (width >= 960px){.main-nav__list{display:flex;align-items:center;flex-wrap:wrap;gap:0.5rem}}@media (width >= 1280px){.main-nav__list{gap:1.5rem}}.main-nav__item{border-bottom:1px solid #d8d4f7}@media (width >= 960px){.main-nav__item{border-bottom:none}}.main-nav__item--dropdown{position:static}.nav-dropdown{position:relative}.nav-link{display:block;width:100%;padding:1rem 0;font-weight:600;color:inherit;text-decoration:none;outline:none}.nav-link:hover{opacity:0.85}.nav-link:focus-visible{outline:2px solid var(--weg-color-accent);outline-offset:2px;border-radius:4px}.nav-link--active{background:var(--weg-purple-200)}.nav-dropdown__trigger{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;width:100%;padding:1rem 0;border:none;background:transparent;font:inherit;font-weight:600;color:inherit;text-align:left;cursor:pointer;outline:none}.nav-dropdown__trigger:hover{opacity:0.85}.nav-dropdown__trigger:focus-visible{outline:2px solid var(--weg-color-accent);outline-offset:2px;border-radius:4px}.nav-dropdown__trigger--open{background:transparent}.nav-dropdown__trigger--active{background:var(--weg-purple-200)}.toggle-icon{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;border-radius:999rem;background:#312e81;color:#ffffff;flex-shrink:0}.nav-dropdown__panel{padding:0 0 0.75rem}@media (width >= 960px){.nav-dropdown__panel{position:absolute;top:calc(100% + 0.5rem);left:0;z-index:500;min-width:17.5rem;padding:0.75rem 0 0.75rem 0.75rem;border:1px solid #e2e8f0;border-radius:0.5rem;background:#f8fafc;box-shadow:0 0.25rem 1rem rgba(15, 23, 42, 0.08)}.nav-dropdown__panel::before{content:'';position:absolute;top:-0.5rem;left:0;right:0;height:0.5rem}}.nav-dropdown__accent{border-left:0.25rem solid var(--weg-color-accent);padding-left:0.75rem}.nav-dropdown__links{display:flex;flex-direction:column;gap:0.25rem}.nav-dropdown__link{display:block;padding:0.625rem 0;font-weight:400;color:inherit;text-decoration:none;outline:none}.nav-dropdown__link:hover{opacity:0.85}.nav-dropdown__link:focus-visible{outline:0.125rem solid var(--weg-color-accent);outline-offset:0.125rem;border-radius:0.25rem}.nav-dropdown__link--active{background:var(--weg-purple-200)}@media (width >= 960px){.nav-dropdown__link{padding:0.5rem;margin-right:0.75rem;border-radius:0.5rem;font-weight:600}.nav-dropdown__link:hover,.nav-dropdown__link:focus-visible{background:var(--weg-purple-200);opacity:1}.nav-dropdown__link--active{opacity:1}}@media (width >= 1280px){.nav-dropdown__link{padding:0.5rem 0.75rem}}.main-nav__item--auth>a{display:flex;align-items:center;gap:0.5rem;width:100%;padding:1rem 0}@media (width >= 960px){.nav-link,.nav-dropdown__trigger,.main-nav__item--auth>a{display:inline-flex;align-items:center;width:auto;padding:0.5rem;border-radius:0.5rem}.nav-link--active,.main-nav__item--auth>a.nav-link--active{background:var(--weg-purple-200)}.nav-dropdown__trigger{gap:0.5rem;cursor:pointer}.nav-dropdown__trigger--open{background:#f1f5f9}.nav-dropdown__trigger--active{background:var(--weg-purple-200)}}@media (width >= 1280px){.main-nav{font-size:1.25rem}.main-nav__item--auth>a{padding:0.5rem 0.75rem}}.sign-in-link,.sign-out-link,.auth-button{display:inline-flex;align-items:center;gap:0.5rem;font-weight:600;color:inherit;text-decoration:none;outline:none}.auth-button{padding:0;border:none;background:transparent;font:inherit;cursor:pointer}.sign-in-link:hover,.sign-out-link:hover,.auth-button:hover{opacity:0.85}.sign-in-link:focus-visible,.sign-out-link:focus-visible,.auth-button:focus-visible{outline:2px solid var(--weg-color-accent);outline-offset:4px;border-radius:4px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;padding:0;border:none;border-radius:0.5rem;background:transparent;color:inherit;cursor:pointer;text-decoration:none;outline:none}.icon-button:hover{background:#f1f5f9}.icon-button:focus-visible{outline:2px solid var(--weg-color-accent);outline-offset:2px}.menu-toggle{flex-shrink:0}@media (width >= 960px){.menu-toggle{display:none}}`;
|
|
257
379
|
|
|
258
380
|
const WEG_HOME = 'https://www.warwickemploymentgroup.com';
|
|
259
381
|
const DEFAULT_ACCOUNT_HOME = 'https://account.warwickemploymentgroup.com';
|
|
260
382
|
const DEFAULT_LOGO_HREF = `${WEG_HOME}/`;
|
|
383
|
+
/** Placeholder href — sign-out is handled via `wegAuthClick`, not navigation. */
|
|
384
|
+
const SIGN_OUT_HREF = '#';
|
|
261
385
|
function normalizeAccountBase(input) {
|
|
262
386
|
const base = input?.trim() || DEFAULT_ACCOUNT_HOME;
|
|
263
387
|
return base.replace(/\/$/, '');
|
|
@@ -271,7 +395,7 @@ function buildSignedInMenu(accountHome) {
|
|
|
271
395
|
{ label: 'Find a job', href: `${WEG_HOME}/find-a-job` },
|
|
272
396
|
{ label: 'Dashboard', href: accountPath(accountHome, '/dashboard') },
|
|
273
397
|
{ label: 'Manage Account', href: accountPath(accountHome, '/account/manage') },
|
|
274
|
-
{ label: 'Sign out', href:
|
|
398
|
+
{ label: 'Sign out', href: SIGN_OUT_HREF },
|
|
275
399
|
];
|
|
276
400
|
}
|
|
277
401
|
const EMPTY_HEADER = {
|
|
@@ -342,7 +466,7 @@ function ToggleIcon({ expanded }) {
|
|
|
342
466
|
return (h("span", { class: "toggle-icon", "aria-hidden": "true" }, expanded ? (h("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none" }, h("path", { d: "M6 12h12", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round" }))) : (h("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none" }, h("path", { d: "M12 6v12M6 12h12", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round" })))));
|
|
343
467
|
}
|
|
344
468
|
function Logo({ href, src }) {
|
|
345
|
-
return (h("a", { class: "logo-link", href: href, "aria-label": "Home" }, h("img", { class: "logo", src: src, alt: "
|
|
469
|
+
return (h("a", { class: "logo-link", href: href, "aria-label": "Home" }, h("img", { class: "logo", src: src, alt: "Warwick Employment Group logo", width: "225", height: "83" })));
|
|
346
470
|
}
|
|
347
471
|
const WegHeader = class {
|
|
348
472
|
constructor(hostRef) {
|
|
@@ -379,6 +503,11 @@ const WegHeader = class {
|
|
|
379
503
|
* Defaults to production when omitted.
|
|
380
504
|
*/
|
|
381
505
|
accountBaseUrl;
|
|
506
|
+
/**
|
|
507
|
+
* Current page path from the host application (e.g. `/career-advice/my-article`).
|
|
508
|
+
* Include a query string when matching dropdown links that use search params.
|
|
509
|
+
*/
|
|
510
|
+
currentPath;
|
|
382
511
|
/**
|
|
383
512
|
* Fired when the user clicks Sign in or Sign out.
|
|
384
513
|
* Call `event.preventDefault()` in the host to handle navigation/logout yourself.
|
|
@@ -589,25 +718,58 @@ const WegHeader = class {
|
|
|
589
718
|
const name = this.userName?.trim();
|
|
590
719
|
return name || 'Manage Account';
|
|
591
720
|
}
|
|
592
|
-
|
|
593
|
-
return (
|
|
721
|
+
shouldExcludeFromNavActive(item, accountHome) {
|
|
722
|
+
return isSignOutLink(item) || isSignInLink(item, accountHome);
|
|
594
723
|
}
|
|
595
|
-
|
|
596
|
-
return (
|
|
724
|
+
isNavItemActive(href, mode) {
|
|
725
|
+
return isNavLinkActive(this.currentPath ?? '', href, mode);
|
|
597
726
|
}
|
|
598
|
-
|
|
727
|
+
resolveAriaCurrentHref() {
|
|
728
|
+
const accountHome = this.getAccountHome();
|
|
729
|
+
return resolveAriaCurrentNavKey(this.getActiveMenu(), this.currentPath ?? '', (item) => this.shouldExcludeFromNavActive(item, accountHome));
|
|
730
|
+
}
|
|
731
|
+
isAriaCurrentHref(href, ariaCurrentKey) {
|
|
732
|
+
return isAriaCurrentNavHref(href, ariaCurrentKey);
|
|
733
|
+
}
|
|
734
|
+
renderIconNavLink(link, Icon, className, onNavigate, ariaCurrentHref = null) {
|
|
735
|
+
const active = this.isNavItemActive(link.href, 'prefix');
|
|
736
|
+
const ariaCurrent = this.isAriaCurrentHref(link.href, ariaCurrentHref);
|
|
737
|
+
return (h("li", { class: "main-nav__item main-nav__item--auth", key: link.label }, h("a", { class: {
|
|
738
|
+
'sign-in-link': true,
|
|
739
|
+
[className]: true,
|
|
740
|
+
'nav-link--active': active,
|
|
741
|
+
}, href: link.href, "aria-current": ariaCurrent ? 'page' : undefined, onClick: () => onNavigate?.() }, h(Icon, null), link.label)));
|
|
742
|
+
}
|
|
743
|
+
renderFlatNavLink(link, onNavigate, ariaCurrentHref = null) {
|
|
744
|
+
const active = this.isNavItemActive(link.href, 'prefix');
|
|
745
|
+
const ariaCurrent = this.isAriaCurrentHref(link.href, ariaCurrentHref);
|
|
746
|
+
return (h("li", { class: "main-nav__item", key: link.label }, h("a", { class: {
|
|
747
|
+
'nav-link': true,
|
|
748
|
+
'nav-link--active': active,
|
|
749
|
+
}, href: link.href, "aria-current": ariaCurrent ? 'page' : undefined, onClick: () => onNavigate?.() }, link.label)));
|
|
750
|
+
}
|
|
751
|
+
renderMenuGroup(item, onNavigate, ariaCurrentHref = null) {
|
|
599
752
|
const items = item.items ?? [];
|
|
600
753
|
const isOpen = this.openDropdown === item.label;
|
|
601
754
|
const panelId = this.getDropdownPanelId(item.label);
|
|
755
|
+
const groupActive = items.some((child) => this.isNavItemActive(child.href, 'exact'));
|
|
602
756
|
return (h("li", { class: "main-nav__item main-nav__item--dropdown", key: item.label }, h("div", { class: "nav-dropdown", onMouseEnter: () => this.handleDropdownPointerEnter(item.label), onMouseLeave: (event) => this.handleDropdownPointerLeave(event), onFocusout: (event) => this.handleDropdownFocusOut(event, item.label) }, h("button", { type: "button", class: {
|
|
603
757
|
'nav-dropdown__trigger': true,
|
|
604
758
|
'nav-dropdown__trigger--open': isOpen,
|
|
759
|
+
'nav-dropdown__trigger--active': groupActive,
|
|
605
760
|
}, "aria-expanded": isOpen ? 'true' : 'false', "aria-haspopup": "true", "aria-controls": panelId, id: `${panelId}-trigger`, onClick: (event) => this.handleDropdownTriggerClick(event, item.label), onKeyDown: (event) => {
|
|
606
761
|
const container = event.currentTarget.closest('.nav-dropdown');
|
|
607
762
|
this.handleDropdownTriggerKeyDown(event, item.label, container);
|
|
608
|
-
} }, h("span", { class: "nav-dropdown__label" }, item.label), h(ToggleIcon, { expanded: isOpen })), isOpen ? (h("div", { class: "nav-dropdown__panel", id: panelId, role: "region", "aria-labelledby": `${panelId}-trigger`, onMouseEnter: () => this.handleDropdownPanelPointerEnter(item.label), onMouseLeave: (event) => this.handleDropdownPanelPointerLeave(event) }, h("div", { class: "nav-dropdown__accent" }, h("div", { class: "nav-dropdown__links" }, items.map((child) =>
|
|
609
|
-
|
|
610
|
-
|
|
763
|
+
} }, h("span", { class: "nav-dropdown__label" }, item.label), h(ToggleIcon, { expanded: isOpen })), isOpen ? (h("div", { class: "nav-dropdown__panel", id: panelId, role: "region", "aria-labelledby": `${panelId}-trigger`, onMouseEnter: () => this.handleDropdownPanelPointerEnter(item.label), onMouseLeave: (event) => this.handleDropdownPanelPointerLeave(event) }, h("div", { class: "nav-dropdown__accent" }, h("div", { class: "nav-dropdown__links" }, items.map((child) => {
|
|
764
|
+
const childActive = this.isNavItemActive(child.href, 'exact');
|
|
765
|
+
const ariaCurrent = this.isAriaCurrentHref(child.href, ariaCurrentHref);
|
|
766
|
+
return (h("a", { class: {
|
|
767
|
+
'nav-dropdown__link': true,
|
|
768
|
+
'nav-dropdown__link--active': childActive,
|
|
769
|
+
}, href: child.href, key: `${item.label}:${child.label}`, "aria-current": ariaCurrent ? 'page' : undefined, onClick: () => onNavigate?.() }, child.label));
|
|
770
|
+
}))))) : null)));
|
|
771
|
+
}
|
|
772
|
+
handleAuthClick(event, action, _href, onNavigate) {
|
|
611
773
|
const emitted = this.wegAuthClick.emit({ action });
|
|
612
774
|
if (emitted.defaultPrevented) {
|
|
613
775
|
event.preventDefault();
|
|
@@ -616,9 +778,6 @@ const WegHeader = class {
|
|
|
616
778
|
}
|
|
617
779
|
if (action === 'sign-out') {
|
|
618
780
|
event.preventDefault();
|
|
619
|
-
if (href) {
|
|
620
|
-
window.location.assign(href);
|
|
621
|
-
}
|
|
622
781
|
onNavigate?.();
|
|
623
782
|
return;
|
|
624
783
|
}
|
|
@@ -634,18 +793,22 @@ const WegHeader = class {
|
|
|
634
793
|
[options.className || '']: !!options.className,
|
|
635
794
|
}, href: link.href, "aria-label": link.label, onClick: (event) => this.handleAuthClick(event, action, link.href, onNavigate) }, h(Icon, null), !iconOnly ? link.label : null, iconOnly ? h("span", { class: "sr-only" }, link.label) : null));
|
|
636
795
|
}
|
|
637
|
-
renderManageAccountAnchor(onNavigate, iconOnly = false) {
|
|
796
|
+
renderManageAccountAnchor(onNavigate, iconOnly = false, ariaCurrentHref = null) {
|
|
638
797
|
const label = this.getManageAccountLabel();
|
|
798
|
+
const href = accountPath(this.getAccountHome(), '/account/manage');
|
|
799
|
+
const active = this.isNavItemActive(href, 'prefix');
|
|
800
|
+
const ariaCurrent = this.isAriaCurrentHref(href, ariaCurrentHref);
|
|
639
801
|
return (h("a", { class: {
|
|
640
802
|
'sign-in-link': !iconOnly,
|
|
641
803
|
'manage-account-link': true,
|
|
642
804
|
'icon-button': iconOnly,
|
|
643
|
-
|
|
805
|
+
'nav-link--active': active,
|
|
806
|
+
}, href: href, "aria-label": label, "aria-current": ariaCurrent ? 'page' : undefined, onClick: () => onNavigate?.() }, h(SignInIcon, null), !iconOnly ? label : null, iconOnly ? h("span", { class: "sr-only" }, label) : null));
|
|
644
807
|
}
|
|
645
|
-
renderNavItem(item, onNavigate) {
|
|
808
|
+
renderNavItem(item, onNavigate, ariaCurrentHref = null) {
|
|
646
809
|
const accountHome = this.getAccountHome();
|
|
647
810
|
if (isMenuGroup(item)) {
|
|
648
|
-
return this.renderMenuGroup(item, onNavigate);
|
|
811
|
+
return this.renderMenuGroup(item, onNavigate, ariaCurrentHref);
|
|
649
812
|
}
|
|
650
813
|
if (isSignOutLink(item)) {
|
|
651
814
|
return (h("li", { class: "main-nav__item main-nav__item--auth", key: "sign-out" }, this.renderAuthControl({ link: item, action: 'sign-out', onNavigate })));
|
|
@@ -654,18 +817,19 @@ const WegHeader = class {
|
|
|
654
817
|
return (h("li", { class: "main-nav__item main-nav__item--auth", key: "sign-in" }, this.renderAuthControl({ link: item, action: 'sign-in', onNavigate })));
|
|
655
818
|
}
|
|
656
819
|
if (isManageAccountLink(item, accountHome)) {
|
|
657
|
-
return (h("li", { class: "main-nav__item main-nav__item--auth", key: "manage-account" }, this.renderManageAccountAnchor(onNavigate)));
|
|
820
|
+
return (h("li", { class: "main-nav__item main-nav__item--auth", key: "manage-account" }, this.renderManageAccountAnchor(onNavigate, false, ariaCurrentHref)));
|
|
658
821
|
}
|
|
659
822
|
if (this.signedIn && isFindJobLink(item)) {
|
|
660
|
-
return this.renderIconNavLink(item, FindJobIcon, 'find-a-job-link', onNavigate);
|
|
823
|
+
return this.renderIconNavLink(item, FindJobIcon, 'find-a-job-link', onNavigate, ariaCurrentHref);
|
|
661
824
|
}
|
|
662
825
|
if (this.signedIn && isDashboardLink(item, accountHome)) {
|
|
663
|
-
return this.renderIconNavLink(item, DashboardIcon, 'dashboard-link', onNavigate);
|
|
826
|
+
return this.renderIconNavLink(item, DashboardIcon, 'dashboard-link', onNavigate, ariaCurrentHref);
|
|
664
827
|
}
|
|
665
|
-
return this.renderFlatNavLink(item, onNavigate);
|
|
828
|
+
return this.renderFlatNavLink(item, onNavigate, ariaCurrentHref);
|
|
666
829
|
}
|
|
667
830
|
renderNav(onNavigate) {
|
|
668
|
-
|
|
831
|
+
const ariaCurrentHref = this.resolveAriaCurrentHref();
|
|
832
|
+
return (h("nav", { class: "main-nav", "aria-label": "Main" }, h("ul", { class: "main-nav__list" }, this.getActiveMenu().map((item) => this.renderNavItem(item, onNavigate, ariaCurrentHref)))));
|
|
669
833
|
}
|
|
670
834
|
renderCompactAuth(onNavigate) {
|
|
671
835
|
if (this.signedIn) {
|
|
@@ -686,10 +850,10 @@ const WegHeader = class {
|
|
|
686
850
|
const logoSrc = this.getLogoSrc();
|
|
687
851
|
const closeMenu = () => this.closeMenu();
|
|
688
852
|
const mobileMenuActive = this.isMobileMenuActive();
|
|
689
|
-
return (h("header", { key: '
|
|
853
|
+
return (h("header", { key: '6b932d0c3dc20b53292b61fa3403e26e35182d05', class: {
|
|
690
854
|
header: true,
|
|
691
855
|
'header--menu-open': mobileMenuActive,
|
|
692
|
-
} }, h("div", { key: '
|
|
856
|
+
} }, h("div", { key: '426395d6e1245188bc103c8a2f72ccfc3819ba7d', class: "header-inner" }, h("button", { key: 'fe6128407500f5b1a1899aa9e7fdd00222f177b3', type: "button", class: "menu-toggle icon-button", "aria-label": mobileMenuActive ? 'Close menu' : 'Open menu', "aria-expanded": mobileMenuActive ? 'true' : 'false', "aria-controls": "weg-header-main-nav", onClick: () => this.toggleMenu() }, mobileMenuActive ? h(CloseIcon, null) : h(HamburgerIcon, null)), h(Logo, { key: 'bb19f9430217686834c4aec615bd7306d276a969', href: logoHref, src: logoSrc }), h("div", { key: 'cebab248840b8412479a90a83c5fc3d0a601476b', class: "header-actions" }, this.renderCompactAuth(mobileMenuActive ? closeMenu : undefined)), h("div", { key: 'c029db0bcd71a9940d93bef5b32e59625f94b76c', class: "main-nav-panel", id: "weg-header-main-nav", role: mobileMenuActive ? 'dialog' : undefined, "aria-modal": mobileMenuActive ? 'true' : undefined, "aria-label": mobileMenuActive ? 'Menu' : undefined }, this.renderNav(mobileMenuActive ? closeMenu : undefined)))));
|
|
693
857
|
}
|
|
694
858
|
static get watchers() { return {
|
|
695
859
|
"layout": [{
|
|
@@ -17,5 +17,5 @@ var patchBrowser = () => {
|
|
|
17
17
|
|
|
18
18
|
patchBrowser().then(async (options) => {
|
|
19
19
|
await globalScripts();
|
|
20
|
-
return bootstrapLazy([["weg-footer_2",[[513,"weg-footer",{"layout":[1],"resolved":[32]},null,{"layout":[{"watchLayout":0}]}],[513,"weg-header",{"layout":[1],"signedIn":[516,"signed-in"],"userName":[1,"user-name"],"accountBaseUrl":[1,"account-base-url"],"resolved":[32],"menuOpen":[32],"openDropdown":[32]},[[8,"keydown","handleKeyDown"]],{"layout":[{"watchLayout":0}]}]]]], options);
|
|
20
|
+
return bootstrapLazy([["weg-footer_2",[[513,"weg-footer",{"layout":[1],"resolved":[32]},null,{"layout":[{"watchLayout":0}]}],[513,"weg-header",{"layout":[1],"signedIn":[516,"signed-in"],"userName":[1,"user-name"],"accountBaseUrl":[1,"account-base-url"],"currentPath":[1,"current-path"],"resolved":[32],"menuOpen":[32],"openDropdown":[32]},[[8,"keydown","handleKeyDown"]],{"layout":[{"watchLayout":0}]}]]]], options);
|
|
21
21
|
});
|
|
@@ -31,6 +31,11 @@ export declare class WegHeader {
|
|
|
31
31
|
* Defaults to production when omitted.
|
|
32
32
|
*/
|
|
33
33
|
accountBaseUrl?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Current page path from the host application (e.g. `/career-advice/my-article`).
|
|
36
|
+
* Include a query string when matching dropdown links that use search params.
|
|
37
|
+
*/
|
|
38
|
+
currentPath?: string;
|
|
34
39
|
/**
|
|
35
40
|
* Fired when the user clicks Sign in or Sign out.
|
|
36
41
|
* Call `event.preventDefault()` in the host to handle navigation/logout yourself.
|
|
@@ -87,6 +92,10 @@ export declare class WegHeader {
|
|
|
87
92
|
private getLogoHref;
|
|
88
93
|
private findSignInLink;
|
|
89
94
|
private getManageAccountLabel;
|
|
95
|
+
private shouldExcludeFromNavActive;
|
|
96
|
+
private isNavItemActive;
|
|
97
|
+
private resolveAriaCurrentHref;
|
|
98
|
+
private isAriaCurrentHref;
|
|
90
99
|
private renderIconNavLink;
|
|
91
100
|
private renderFlatNavLink;
|
|
92
101
|
private renderMenuGroup;
|
|
@@ -19,6 +19,10 @@ export namespace Components {
|
|
|
19
19
|
* Account portal origin for sign-in, register, dashboard, and manage-account links. Defaults to production when omitted.
|
|
20
20
|
*/
|
|
21
21
|
"accountBaseUrl"?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Current page path from the host application (e.g. `/career-advice/my-article`). Include a query string when matching dropdown links that use search params.
|
|
24
|
+
*/
|
|
25
|
+
"currentPath"?: string;
|
|
22
26
|
/**
|
|
23
27
|
* Layout payload, supplied by the host application. Expected shape: ```json { "header": { "menu": [ { "label": "Find a job", "items": [{ "label": "Graduates", "href": "..." }] }, { "label": "Career advice", "href": "/career-advice" }, { "label": "Sign in", "href": "/account/login" } ] } } ```
|
|
24
28
|
*/
|
|
@@ -79,6 +83,10 @@ declare namespace LocalJSX {
|
|
|
79
83
|
* Account portal origin for sign-in, register, dashboard, and manage-account links. Defaults to production when omitted.
|
|
80
84
|
*/
|
|
81
85
|
"accountBaseUrl"?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Current page path from the host application (e.g. `/career-advice/my-article`). Include a query string when matching dropdown links that use search params.
|
|
88
|
+
*/
|
|
89
|
+
"currentPath"?: string;
|
|
82
90
|
/**
|
|
83
91
|
* Layout payload, supplied by the host application. Expected shape: ```json { "header": { "menu": [ { "label": "Find a job", "items": [{ "label": "Graduates", "href": "..." }] }, { "label": "Career advice", "href": "/career-advice" }, { "label": "Sign in", "href": "/account/login" } ] } } ```
|
|
84
92
|
*/
|
|
@@ -106,6 +114,7 @@ declare namespace LocalJSX {
|
|
|
106
114
|
"signedIn": boolean;
|
|
107
115
|
"userName": string;
|
|
108
116
|
"accountBaseUrl": string;
|
|
117
|
+
"currentPath": string;
|
|
109
118
|
}
|
|
110
119
|
|
|
111
120
|
interface IntrinsicElements {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type NavActiveMode = 'exact' | 'prefix';
|
|
2
|
+
export declare function normalizeNavPath(path: string): string;
|
|
3
|
+
export declare function parseCurrentLocation(currentPath: string): {
|
|
4
|
+
pathname: string;
|
|
5
|
+
search: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function parseNavHref(href: string): {
|
|
8
|
+
pathname: string;
|
|
9
|
+
search: string;
|
|
10
|
+
} | null;
|
|
11
|
+
export declare function isNavLinkActive(currentPath: string, href: string | undefined, mode?: NavActiveMode): boolean;
|
|
12
|
+
export declare function getNavLinkMatchScore(currentPath: string, href: string | undefined, mode?: NavActiveMode): number;
|
|
13
|
+
export declare function getNavHrefKey(href: string | undefined): string | null;
|
|
14
|
+
export type NavMenuItem = {
|
|
15
|
+
label?: string;
|
|
16
|
+
href?: string;
|
|
17
|
+
items?: NavMenuItem[];
|
|
18
|
+
};
|
|
19
|
+
export declare function resolveAriaCurrentNavKey(menu: NavMenuItem[], currentPath: string, shouldExclude?: (item: NavMenuItem) => boolean): string | null;
|
|
20
|
+
export declare function isAriaCurrentNavHref(href: string | undefined, ariaCurrentKey: string | null): boolean;
|