@genesislcap/foundation-header 14.408.0 → 14.409.0-FUI-2495.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.
Files changed (71) hide show
  1. package/README.md +6 -633
  2. package/dist/custom-elements.json +280 -232
  3. package/dist/dts/main/main.d.ts +38 -5
  4. package/dist/dts/main/main.d.ts.map +1 -1
  5. package/dist/esm/main/main.js +20 -7
  6. package/dist/foundation-header.api.json +94 -6
  7. package/dist/foundation-header.d.ts +39 -5
  8. package/package.json +23 -23
  9. package/docs/api/foundation-header.configure.md +0 -75
  10. package/docs/api/foundation-header.defaultheaderconfig.md +0 -13
  11. package/docs/api/foundation-header.elementtargetid.md +0 -15
  12. package/docs/api/foundation-header.foundationheader.loadremotes.md +0 -15
  13. package/docs/api/foundation-header.foundationheader.md +0 -53
  14. package/docs/api/foundation-header.headerconfig.md +0 -59
  15. package/docs/api/foundation-header.headerconfig.templateoptions.md +0 -18
  16. package/docs/api/foundation-header.headertargetid.md +0 -13
  17. package/docs/api/foundation-header.languageoptions.md +0 -16
  18. package/docs/api/foundation-header.mainstyles.md +0 -13
  19. package/docs/api/foundation-header.md +0 -246
  20. package/docs/api/foundation-header.naveventdetailmap.md +0 -23
  21. package/docs/api/foundation-header.navigation.authrouting.md +0 -11
  22. package/docs/api/foundation-header.navigation.changelanguage.md +0 -56
  23. package/docs/api/foundation-header.navigation.connectedcallback.md +0 -17
  24. package/docs/api/foundation-header.navigation.container.md +0 -11
  25. package/docs/api/foundation-header.navigation.controlpanel.md +0 -11
  26. package/docs/api/foundation-header.navigation.disconnectedcallback.md +0 -17
  27. package/docs/api/foundation-header.navigation.enableinactivitymonitoring.md +0 -18
  28. package/docs/api/foundation-header.navigation.handlenavbuttonclick.md +0 -54
  29. package/docs/api/foundation-header.navigation.hasactivechild.md +0 -56
  30. package/docs/api/foundation-header.navigation.headerconfig.md +0 -11
  31. package/docs/api/foundation-header.navigation.hidesidebar.md +0 -13
  32. package/docs/api/foundation-header.navigation.i18next.md +0 -11
  33. package/docs/api/foundation-header.navigation.inactivitytimeoutminutes.md +0 -18
  34. package/docs/api/foundation-header.navigation.inactivitywarningminutes.md +0 -18
  35. package/docs/api/foundation-header.navigation.islayoutitemactive.md +0 -56
  36. package/docs/api/foundation-header.navigation.languageoptions.md +0 -13
  37. package/docs/api/foundation-header.navigation.layoutitemcheck.md +0 -30
  38. package/docs/api/foundation-header.navigation.loginrouting.md +0 -11
  39. package/docs/api/foundation-header.navigation.logoalttext.md +0 -18
  40. package/docs/api/foundation-header.navigation.logosrc.md +0 -18
  41. package/docs/api/foundation-header.navigation.logout.md +0 -17
  42. package/docs/api/foundation-header.navigation.logoutbuttonposition.md +0 -18
  43. package/docs/api/foundation-header.navigation.luminancetoggle.md +0 -11
  44. package/docs/api/foundation-header.navigation.md +0 -793
  45. package/docs/api/foundation-header.navigation.navigateto.md +0 -58
  46. package/docs/api/foundation-header.navigation.pathname.md +0 -13
  47. package/docs/api/foundation-header.navigation.routebuttons.md +0 -24
  48. package/docs/api/foundation-header.navigation.routenavitems.md +0 -13
  49. package/docs/api/foundation-header.navigation.selecttemplate.md +0 -19
  50. package/docs/api/foundation-header.navigation.setluminance.md +0 -15
  51. package/docs/api/foundation-header.navigation.shouldshowaccountmenu.md +0 -18
  52. package/docs/api/foundation-header.navigation.showaccountmenu.md +0 -18
  53. package/docs/api/foundation-header.navigation.showaiindicator.md +0 -13
  54. package/docs/api/foundation-header.navigation.showconnectionindicator.md +0 -13
  55. package/docs/api/foundation-header.navigation.showcontrolpanel.md +0 -13
  56. package/docs/api/foundation-header.navigation.showenvironmentindicator.md +0 -13
  57. package/docs/api/foundation-header.navigation.showlanguageselector.md +0 -18
  58. package/docs/api/foundation-header.navigation.showluminancetogglebutton.md +0 -18
  59. package/docs/api/foundation-header.navigation.showmisctogglebutton.md +0 -18
  60. package/docs/api/foundation-header.navigation.shownotificationsbutton.md +0 -23
  61. package/docs/api/foundation-header.navigation.tolocalisedtext.md +0 -56
  62. package/docs/api/foundation-header.navigation.user.md +0 -11
  63. package/docs/api/foundation-header.navigation.username.md +0 -18
  64. package/docs/api/foundation-header.navtargetid.md +0 -13
  65. package/docs/api/foundation-header.navtemplate.md +0 -18
  66. package/docs/api/foundation-header.rapidheader.md +0 -69
  67. package/docs/api/foundation-header.rapidheader.selecttemplate.md +0 -15
  68. package/docs/api/foundation-header.sidenavtargetid.md +0 -13
  69. package/docs/api/foundation-header.styletargetid.md +0 -13
  70. package/docs/api/index.md +0 -30
  71. package/docs/api-report.md.api.md +0 -260
@@ -454,13 +454,23 @@ let Navigation = class Navigation extends EventEmitter(GenesisElement) {
454
454
  * @param routeNavItem - The navigation item that was clicked
455
455
  */
456
456
  handleNavButtonClick(routeNavItem) {
457
- if (routeNavItem.onClick) {
458
- routeNavItem.onClick({ item: routeNavItem, context: this });
459
- }
460
- else if (routeNavItem.routePath) {
461
- this.navigateTo(routeNavItem.routePath);
462
- }
463
- this.$emit('nav-button-clicked', { item: routeNavItem, context: this });
457
+ return __awaiter(this, void 0, void 0, function* () {
458
+ var _a;
459
+ const detail = {
460
+ item: routeNavItem,
461
+ oldPath: this.pathName,
462
+ newPath: routeNavItem.routePath,
463
+ context: this,
464
+ };
465
+ yield ((_a = this.onBeforeNavButtonClick) === null || _a === void 0 ? void 0 : _a.call(this, detail));
466
+ if (routeNavItem.onClick) {
467
+ routeNavItem.onClick({ item: routeNavItem, context: this });
468
+ }
469
+ else if (routeNavItem.routePath) {
470
+ this.navigateTo(routeNavItem.routePath);
471
+ }
472
+ this.$emit('nav-button-clicked', detail);
473
+ });
464
474
  }
465
475
  /**
466
476
  * Current pathname for route highlighting
@@ -578,6 +588,9 @@ __decorate([
578
588
  __decorate([
579
589
  observable
580
590
  ], Navigation.prototype, "layoutItemCheck", void 0);
591
+ __decorate([
592
+ observable
593
+ ], Navigation.prototype, "onBeforeNavButtonClick", void 0);
581
594
  __decorate([
582
595
  attr({ mode: 'boolean', attribute: 'show-account-menu' })
583
596
  ], Navigation.prototype, "showAccountMenu", void 0);
@@ -534,6 +534,41 @@
534
534
  "endIndex": 3
535
535
  }
536
536
  },
537
+ {
538
+ "kind": "TypeAlias",
539
+ "canonicalReference": "@genesislcap/foundation-header!NavButtonClickDetail:type",
540
+ "docComment": "/**\n * Detail payload for nav button click events and callbacks\n *\n * @public\n */\n",
541
+ "excerptTokens": [
542
+ {
543
+ "kind": "Content",
544
+ "text": "export type NavButtonClickDetail = "
545
+ },
546
+ {
547
+ "kind": "Content",
548
+ "text": "{\n item: "
549
+ },
550
+ {
551
+ "kind": "Reference",
552
+ "text": "FoundationRouteNavItem",
553
+ "canonicalReference": "@genesislcap/foundation-ui!FoundationRouteNavItem:type"
554
+ },
555
+ {
556
+ "kind": "Content",
557
+ "text": ";\n oldPath: string;\n newPath: string | undefined;\n context: any;\n}"
558
+ },
559
+ {
560
+ "kind": "Content",
561
+ "text": ";"
562
+ }
563
+ ],
564
+ "fileUrlPath": "src/main/main.ts",
565
+ "releaseTag": "Public",
566
+ "name": "NavButtonClickDetail",
567
+ "typeTokenRange": {
568
+ "startIndex": 1,
569
+ "endIndex": 4
570
+ }
571
+ },
537
572
  {
538
573
  "kind": "TypeAlias",
539
574
  "canonicalReference": "@genesislcap/foundation-header!NavEventDetailMap:type",
@@ -545,16 +580,16 @@
545
580
  },
546
581
  {
547
582
  "kind": "Content",
548
- "text": "{\n 'luminance-icon-clicked': void;\n 'logout-clicked': void;\n 'misc-icon-clicked': void;\n 'notification-icon-clicked': void;\n 'language-changed': void;\n 'nav-button-clicked': {\n item: "
583
+ "text": "{\n 'luminance-icon-clicked': void;\n 'logout-clicked': void;\n 'misc-icon-clicked': void;\n 'notification-icon-clicked': void;\n 'language-changed': void;\n 'nav-button-clicked': "
549
584
  },
550
585
  {
551
586
  "kind": "Reference",
552
- "text": "FoundationRouteNavItem",
553
- "canonicalReference": "@genesislcap/foundation-ui!FoundationRouteNavItem:type"
587
+ "text": "NavButtonClickDetail",
588
+ "canonicalReference": "@genesislcap/foundation-header!NavButtonClickDetail:type"
554
589
  },
555
590
  {
556
591
  "kind": "Content",
557
- "text": ";\n context: any;\n };\n}"
592
+ "text": ";\n}"
558
593
  },
559
594
  {
560
595
  "kind": "Content",
@@ -851,9 +886,14 @@
851
886
  "kind": "Content",
852
887
  "text": "): "
853
888
  },
889
+ {
890
+ "kind": "Reference",
891
+ "text": "Promise",
892
+ "canonicalReference": "!Promise:interface"
893
+ },
854
894
  {
855
895
  "kind": "Content",
856
- "text": "void"
896
+ "text": "<void>"
857
897
  },
858
898
  {
859
899
  "kind": "Content",
@@ -863,7 +903,7 @@
863
903
  "isStatic": false,
864
904
  "returnTypeTokenRange": {
865
905
  "startIndex": 3,
866
- "endIndex": 4
906
+ "endIndex": 5
867
907
  },
868
908
  "releaseTag": "Public",
869
909
  "isProtected": false,
@@ -1428,6 +1468,54 @@
1428
1468
  "isAbstract": false,
1429
1469
  "name": "navigateTo"
1430
1470
  },
1471
+ {
1472
+ "kind": "Property",
1473
+ "canonicalReference": "@genesislcap/foundation-header!Navigation#onBeforeNavButtonClick:member",
1474
+ "docComment": "/**\n * Callback invoked before navigation occurs when a nav button is clicked. Awaited before the route changes, so async cleanup is supported.\n *\n * @remarks\n *\n * DOM events cannot be awaited, so this callback is the only way to guarantee execution before the route changes. The `nav-button-clicked` event fires after navigation and is suitable for informational use only.\n *\n * @example\n * ```ts\n * <foundation-header\n * :onBeforeNavButtonClick=${(x) => async (detail) => {\n * await x.cleanup();\n * console.log(`Navigating from ${detail.oldPath} to ${detail.newPath}`);\n * }}\n * />\n * ```\n *\n * @public\n */\n",
1475
+ "excerptTokens": [
1476
+ {
1477
+ "kind": "Content",
1478
+ "text": "onBeforeNavButtonClick?: "
1479
+ },
1480
+ {
1481
+ "kind": "Content",
1482
+ "text": "(detail: "
1483
+ },
1484
+ {
1485
+ "kind": "Reference",
1486
+ "text": "NavButtonClickDetail",
1487
+ "canonicalReference": "@genesislcap/foundation-header!NavButtonClickDetail:type"
1488
+ },
1489
+ {
1490
+ "kind": "Content",
1491
+ "text": ") => void | "
1492
+ },
1493
+ {
1494
+ "kind": "Reference",
1495
+ "text": "Promise",
1496
+ "canonicalReference": "!Promise:interface"
1497
+ },
1498
+ {
1499
+ "kind": "Content",
1500
+ "text": "<void>"
1501
+ },
1502
+ {
1503
+ "kind": "Content",
1504
+ "text": ";"
1505
+ }
1506
+ ],
1507
+ "isReadonly": false,
1508
+ "isOptional": true,
1509
+ "releaseTag": "Public",
1510
+ "name": "onBeforeNavButtonClick",
1511
+ "propertyTypeTokenRange": {
1512
+ "startIndex": 1,
1513
+ "endIndex": 6
1514
+ },
1515
+ "isStatic": false,
1516
+ "isProtected": false,
1517
+ "isAbstract": false
1518
+ },
1431
1519
  {
1432
1520
  "kind": "Property",
1433
1521
  "canonicalReference": "@genesislcap/foundation-header!Navigation#pathName:member",
@@ -287,6 +287,21 @@ export declare const MainStyles: ElementStyles;
287
287
  */
288
288
  export declare const mainTemplate: ViewTemplate<Navigation, any>;
289
289
 
290
+ /**
291
+ * Detail payload for nav button click events and callbacks
292
+ * @public
293
+ */
294
+ export declare type NavButtonClickDetail = {
295
+ /** The navigation item that was clicked */
296
+ item: FoundationRouteNavItem;
297
+ /** The pathname before navigation */
298
+ oldPath: string;
299
+ /** The destination path (`routeNavItem.routePath`). Undefined for items with a custom `onClick` that don't navigate. */
300
+ newPath: string | undefined;
301
+ /** The header component instance */
302
+ context: any;
303
+ };
304
+
290
305
  /**
291
306
  * Events dispatched by the navigation control buttons
292
307
  * @public
@@ -297,10 +312,7 @@ export declare type NavEventDetailMap = {
297
312
  'misc-icon-clicked': void;
298
313
  'notification-icon-clicked': void;
299
314
  'language-changed': void;
300
- 'nav-button-clicked': {
301
- item: FoundationRouteNavItem;
302
- context: any;
303
- };
315
+ 'nav-button-clicked': NavButtonClickDetail;
304
316
  };
305
317
 
306
318
  /**
@@ -557,6 +569,28 @@ export declare class Navigation extends Navigation_base {
557
569
  * @beta
558
570
  */
559
571
  layoutItemCheck?: (registration: string) => boolean;
572
+ /**
573
+ * Callback invoked before navigation occurs when a nav button is clicked.
574
+ * Awaited before the route changes, so async cleanup is supported.
575
+ *
576
+ * @remarks
577
+ * DOM events cannot be awaited, so this callback is the only way to guarantee
578
+ * execution before the route changes. The `nav-button-clicked` event fires after
579
+ * navigation and is suitable for informational use only.
580
+ *
581
+ * @example
582
+ * ```ts
583
+ * <foundation-header
584
+ * :onBeforeNavButtonClick=${(x) => async (detail) => {
585
+ * await x.cleanup();
586
+ * console.log(`Navigating from ${detail.oldPath} to ${detail.newPath}`);
587
+ * }}
588
+ * />
589
+ * ```
590
+ *
591
+ * @public
592
+ */
593
+ onBeforeNavButtonClick?: (detail: NavButtonClickDetail) => void | Promise<void>;
560
594
  /**
561
595
  * Check if a layout item is currently active in the layout
562
596
  * @param item - The navigation item to check
@@ -701,7 +735,7 @@ export declare class Navigation extends Navigation_base {
701
735
  * Handles the click event for a navigation button
702
736
  * @param routeNavItem - The navigation item that was clicked
703
737
  */
704
- handleNavButtonClick(routeNavItem: FoundationRouteNavItem): void;
738
+ handleNavButtonClick(routeNavItem: FoundationRouteNavItem): Promise<void>;
705
739
  /**
706
740
  * Current pathname for route highlighting
707
741
  * @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-header",
3
3
  "description": "Genesis Foundation Header",
4
- "version": "14.408.0",
4
+ "version": "14.409.0-FUI-2495.2",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-header.d.ts",
@@ -79,29 +79,29 @@
79
79
  }
80
80
  },
81
81
  "devDependencies": {
82
- "@genesislcap/foundation-testing": "14.408.0",
83
- "@genesislcap/genx": "14.408.0",
84
- "@genesislcap/rollup-builder": "14.408.0",
85
- "@genesislcap/ts-builder": "14.408.0",
86
- "@genesislcap/uvu-playwright-builder": "14.408.0",
87
- "@genesislcap/vite-builder": "14.408.0",
88
- "@genesislcap/webpack-builder": "14.408.0"
82
+ "@genesislcap/foundation-testing": "14.409.0-FUI-2495.2",
83
+ "@genesislcap/genx": "14.409.0-FUI-2495.2",
84
+ "@genesislcap/rollup-builder": "14.409.0-FUI-2495.2",
85
+ "@genesislcap/ts-builder": "14.409.0-FUI-2495.2",
86
+ "@genesislcap/uvu-playwright-builder": "14.409.0-FUI-2495.2",
87
+ "@genesislcap/vite-builder": "14.409.0-FUI-2495.2",
88
+ "@genesislcap/webpack-builder": "14.409.0-FUI-2495.2"
89
89
  },
90
90
  "dependencies": {
91
- "@genesislcap/foundation-ai": "14.408.0",
92
- "@genesislcap/foundation-auth": "14.408.0",
93
- "@genesislcap/foundation-comms": "14.408.0",
94
- "@genesislcap/foundation-events": "14.408.0",
95
- "@genesislcap/foundation-i18n": "14.408.0",
96
- "@genesislcap/foundation-logger": "14.408.0",
97
- "@genesislcap/foundation-login": "14.408.0",
98
- "@genesislcap/foundation-shell": "14.408.0",
99
- "@genesislcap/foundation-ui": "14.408.0",
100
- "@genesislcap/foundation-user": "14.408.0",
101
- "@genesislcap/foundation-utils": "14.408.0",
102
- "@genesislcap/foundation-zero": "14.408.0",
103
- "@genesislcap/rapid-design-system": "14.408.0",
104
- "@genesislcap/web-core": "14.408.0"
91
+ "@genesislcap/foundation-ai": "14.409.0-FUI-2495.2",
92
+ "@genesislcap/foundation-auth": "14.409.0-FUI-2495.2",
93
+ "@genesislcap/foundation-comms": "14.409.0-FUI-2495.2",
94
+ "@genesislcap/foundation-events": "14.409.0-FUI-2495.2",
95
+ "@genesislcap/foundation-i18n": "14.409.0-FUI-2495.2",
96
+ "@genesislcap/foundation-logger": "14.409.0-FUI-2495.2",
97
+ "@genesislcap/foundation-login": "14.409.0-FUI-2495.2",
98
+ "@genesislcap/foundation-shell": "14.409.0-FUI-2495.2",
99
+ "@genesislcap/foundation-ui": "14.409.0-FUI-2495.2",
100
+ "@genesislcap/foundation-user": "14.409.0-FUI-2495.2",
101
+ "@genesislcap/foundation-utils": "14.409.0-FUI-2495.2",
102
+ "@genesislcap/foundation-zero": "14.409.0-FUI-2495.2",
103
+ "@genesislcap/rapid-design-system": "14.409.0-FUI-2495.2",
104
+ "@genesislcap/web-core": "14.409.0-FUI-2495.2"
105
105
  },
106
106
  "repository": {
107
107
  "type": "git",
@@ -112,5 +112,5 @@
112
112
  "access": "public"
113
113
  },
114
114
  "customElements": "dist/custom-elements.json",
115
- "gitHead": "26b08831fd001b4ee95c8a0d3364a18c0ec4005b"
115
+ "gitHead": "1fcaf08e9b7559024b25dc6ccc27e3bc62f1512b"
116
116
  }
@@ -1,75 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [configure](./foundation-header.configure.md)
4
-
5
- ## configure() function
6
-
7
- A function that allows configuring the header micro-frontend with name and templateOptions.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export declare function configure(config: Partial<HeaderConfig>): Promise<typeof import("../main").Navigation>;
13
- ```
14
-
15
- ## Parameters
16
-
17
- <table><thead><tr><th>
18
-
19
- Parameter
20
-
21
-
22
- </th><th>
23
-
24
- Type
25
-
26
-
27
- </th><th>
28
-
29
- Description
30
-
31
-
32
- </th></tr></thead>
33
- <tbody><tr><td>
34
-
35
- config
36
-
37
-
38
- </td><td>
39
-
40
- Partial&lt;[HeaderConfig](./foundation-header.headerconfig.md)<!-- -->&gt;
41
-
42
-
43
- </td><td>
44
-
45
- A partial HeaderConfig.
46
-
47
-
48
- </td></tr>
49
- </tbody></table>
50
-
51
- **Returns:**
52
-
53
- Promise&lt;typeof import("../main").[Navigation](./foundation-header.navigation.md)<!-- -->&gt;
54
-
55
- ## Remarks
56
-
57
- Configure the Header micro frontend for host app integration.
58
-
59
- ## Example
60
-
61
- Providing template options to align to your host application.
62
-
63
- ```ts
64
- const { configure } = await import('@genesislcap/foundation-header/config'); // < import from the subpath
65
- return configure({
66
- name: `nexus-app-header`,
67
- // These will be merged with the packages `defaultTemplateOptions`. You will need to have these components registered in your application.
68
- templateOptions: {
69
- button: 'nexus-button',
70
- icon: 'nexus-icon-next',
71
- },
72
- });
73
- },
74
- ```
75
-
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [defaultHeaderConfig](./foundation-header.defaultheaderconfig.md)
4
-
5
- ## defaultHeaderConfig variable
6
-
7
- Default HeaderConfig DI implementation.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- defaultHeaderConfig: HeaderConfig
13
- ```
@@ -1,15 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [ElementTargetId](./foundation-header.elementtargetid.md)
4
-
5
- ## ElementTargetId type
6
-
7
- Package element integration targets.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export type ElementTargetId = HeaderTargetId | NavTargetId | SideNavTargetId;
13
- ```
14
- **References:** [HeaderTargetId](./foundation-header.headertargetid.md)<!-- -->, [NavTargetId](./foundation-header.navtargetid.md)<!-- -->, [SideNavTargetId](./foundation-header.sidenavtargetid.md)
15
-
@@ -1,15 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [FoundationHeader](./foundation-header.foundationheader.md) &gt; [loadRemotes](./foundation-header.foundationheader.loadremotes.md)
4
-
5
- ## FoundationHeader.loadRemotes() method
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- loadRemotes(): Promise<void>;
11
- ```
12
- **Returns:**
13
-
14
- Promise&lt;void&gt;
15
-
@@ -1,53 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [FoundationHeader](./foundation-header.foundationheader.md)
4
-
5
- ## FoundationHeader class
6
-
7
- FoundationHeader.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export declare class FoundationHeader extends Navigation
13
- ```
14
- **Extends:** [Navigation](./foundation-header.navigation.md)
15
-
16
- ## Remarks
17
-
18
- Base MF export used by host application `configure` calls. It does not set up a design system or components. Both are expected to be registered in the host application, which should provide the details of which to the MF via TemplateOptions.
19
-
20
- See the [configure()](./foundation-header.configure.md) hook for more information on how to set up and use this micro frontend in your application.
21
-
22
- ## Methods
23
-
24
- <table><thead><tr><th>
25
-
26
- Method
27
-
28
-
29
- </th><th>
30
-
31
- Modifiers
32
-
33
-
34
- </th><th>
35
-
36
- Description
37
-
38
-
39
- </th></tr></thead>
40
- <tbody><tr><td>
41
-
42
- [loadRemotes()](./foundation-header.foundationheader.loadremotes.md)
43
-
44
-
45
- </td><td>
46
-
47
-
48
- </td><td>
49
-
50
-
51
- </td></tr>
52
- </tbody></table>
53
-
@@ -1,59 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [HeaderConfig](./foundation-header.headerconfig.md)
4
-
5
- ## HeaderConfig interface
6
-
7
- HeaderConfig DI interface.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export interface HeaderConfig extends PartialGenesisElementDefinition
13
- ```
14
- **Extends:** PartialGenesisElementDefinition
15
-
16
- ## Properties
17
-
18
- <table><thead><tr><th>
19
-
20
- Property
21
-
22
-
23
- </th><th>
24
-
25
- Modifiers
26
-
27
-
28
- </th><th>
29
-
30
- Type
31
-
32
-
33
- </th><th>
34
-
35
- Description
36
-
37
-
38
- </th></tr></thead>
39
- <tbody><tr><td>
40
-
41
- [templateOptions](./foundation-header.headerconfig.templateoptions.md)
42
-
43
-
44
- </td><td>
45
-
46
-
47
- </td><td>
48
-
49
- TemplateOptions
50
-
51
-
52
- </td><td>
53
-
54
- Template options.
55
-
56
-
57
- </td></tr>
58
- </tbody></table>
59
-
@@ -1,18 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [HeaderConfig](./foundation-header.headerconfig.md) &gt; [templateOptions](./foundation-header.headerconfig.templateoptions.md)
4
-
5
- ## HeaderConfig.templateOptions property
6
-
7
- Template options.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- templateOptions: TemplateOptions;
13
- ```
14
-
15
- ## Remarks
16
-
17
- Used by host applications to assign MF template options and subcomponent tags to align with the host design system.
18
-
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [HeaderTargetId](./foundation-header.headertargetid.md)
4
-
5
- ## HeaderTargetId type
6
-
7
- Header integration targets.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export type HeaderTargetId = 'header-start' | 'header' | 'header-end';
13
- ```
@@ -1,16 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [LanguageOptions](./foundation-header.languageoptions.md)
4
-
5
- ## LanguageOptions type
6
-
7
- Options for the language selector
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export type LanguageOptions = {
13
- availableLanguages: string[];
14
- selectedLanguage: string;
15
- };
16
- ```
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-header](./foundation-header.md) &gt; [MainStyles](./foundation-header.mainstyles.md)
4
-
5
- ## MainStyles variable
6
-
7
- Base styles for the foundation-header
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- MainStyles: import("@microsoft/fast-element").ElementStyles
13
- ```