@genesislcap/foundation-header 14.131.0 → 14.133.0

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 (32) hide show
  1. package/dist/custom-elements.json +64 -6
  2. package/dist/dts/config/index.d.ts +2 -0
  3. package/dist/dts/config/index.d.ts.map +1 -0
  4. package/dist/dts/config/targetId.d.ts +31 -0
  5. package/dist/dts/config/targetId.d.ts.map +1 -0
  6. package/dist/dts/index.d.ts +2 -1
  7. package/dist/dts/index.d.ts.map +1 -1
  8. package/dist/dts/main/main.d.ts +42 -23
  9. package/dist/dts/main/main.d.ts.map +1 -1
  10. package/dist/dts/main/main.styles.d.ts.map +1 -1
  11. package/dist/dts/main/main.template.d.ts.map +1 -1
  12. package/dist/esm/config/index.js +1 -0
  13. package/dist/esm/config/targetId.js +1 -0
  14. package/dist/esm/index.js +2 -1
  15. package/dist/esm/main/main.js +48 -0
  16. package/dist/esm/main/main.styles.js +2 -1
  17. package/dist/esm/main/main.template.js +23 -15
  18. package/dist/foundation-header.api.json +235 -3
  19. package/dist/foundation-header.d.ts +77 -23
  20. package/docs/api/foundation-header.elementtargetid.md +15 -0
  21. package/docs/api/foundation-header.headertargetid.md +13 -0
  22. package/docs/api/foundation-header.md +5 -0
  23. package/docs/api/foundation-header.navigation.md +2 -0
  24. package/docs/api/foundation-header.navigation.routebuttons.md +5 -0
  25. package/docs/api/foundation-header.navigation.routenavitems.md +13 -0
  26. package/docs/api/foundation-header.navigation.shownotificationsbutton.md +5 -0
  27. package/docs/api/foundation-header.navigation.tolocalisedtext.md +28 -0
  28. package/docs/api/foundation-header.navtargetid.md +13 -0
  29. package/docs/api/foundation-header.sidenavtargetid.md +13 -0
  30. package/docs/api/foundation-header.styletargetid.md +13 -0
  31. package/docs/api-report.md +24 -0
  32. package/package.json +19 -10
@@ -184,6 +184,77 @@
184
184
  "name": "",
185
185
  "preserveMemberOrder": false,
186
186
  "members": [
187
+ {
188
+ "kind": "TypeAlias",
189
+ "canonicalReference": "@genesislcap/foundation-header!ElementTargetId:type",
190
+ "docComment": "/**\n * Package element integration targets.\n *\n * @public\n */\n",
191
+ "excerptTokens": [
192
+ {
193
+ "kind": "Content",
194
+ "text": "export type ElementTargetId = "
195
+ },
196
+ {
197
+ "kind": "Reference",
198
+ "text": "HeaderTargetId",
199
+ "canonicalReference": "@genesislcap/foundation-header!HeaderTargetId:type"
200
+ },
201
+ {
202
+ "kind": "Content",
203
+ "text": " | "
204
+ },
205
+ {
206
+ "kind": "Reference",
207
+ "text": "NavTargetId",
208
+ "canonicalReference": "@genesislcap/foundation-header!NavTargetId:type"
209
+ },
210
+ {
211
+ "kind": "Content",
212
+ "text": " | "
213
+ },
214
+ {
215
+ "kind": "Reference",
216
+ "text": "SideNavTargetId",
217
+ "canonicalReference": "@genesislcap/foundation-header!SideNavTargetId:type"
218
+ },
219
+ {
220
+ "kind": "Content",
221
+ "text": ";"
222
+ }
223
+ ],
224
+ "fileUrlPath": "src/config/targetId.ts",
225
+ "releaseTag": "Public",
226
+ "name": "ElementTargetId",
227
+ "typeTokenRange": {
228
+ "startIndex": 1,
229
+ "endIndex": 6
230
+ }
231
+ },
232
+ {
233
+ "kind": "TypeAlias",
234
+ "canonicalReference": "@genesislcap/foundation-header!HeaderTargetId:type",
235
+ "docComment": "/**\n * Header integration targets.\n *\n * @public\n */\n",
236
+ "excerptTokens": [
237
+ {
238
+ "kind": "Content",
239
+ "text": "export type HeaderTargetId = "
240
+ },
241
+ {
242
+ "kind": "Content",
243
+ "text": "'header-start' | 'header' | 'header-end'"
244
+ },
245
+ {
246
+ "kind": "Content",
247
+ "text": ";"
248
+ }
249
+ ],
250
+ "fileUrlPath": "src/config/targetId.ts",
251
+ "releaseTag": "Public",
252
+ "name": "HeaderTargetId",
253
+ "typeTokenRange": {
254
+ "startIndex": 1,
255
+ "endIndex": 2
256
+ }
257
+ },
187
258
  {
188
259
  "kind": "TypeAlias",
189
260
  "canonicalReference": "@genesislcap/foundation-header!LanguageOptions:type",
@@ -267,7 +338,7 @@
267
338
  {
268
339
  "kind": "Class",
269
340
  "canonicalReference": "@genesislcap/foundation-header!Navigation:class",
270
- "docComment": "/**\n * Navigation micro-frontend includes navigation bar and flyout menu\n *\n * @remarks\n *\n * `foundation-header` micro-frontend can be added to the project to include a navigation bar and flyout menu. There are multiple ways that the behaviour of the component can be configured - the icon shown on the navigation bar and flyout menu (this shows the Genesis logo by default). - navigation links at the left-hand side of the navigation bar. - the control buttons on the right-hand side of the navigation bar can be shown or hidden, and their behaviour controlled via event listeners - The contents of the flyout menu.\n *\n * @param logo - src - Option attribute which sets the source of the image in the navigation bar and flyout menu. The Genesis logo will be shown if this attribute is not provided.\n *\n * @param show - luminance-toggle-button - Boolean attribute which controls whether the navigation bar will display the luminance toggle icon.\n *\n * @param show - misc-toggle-button - Boolean attribute which controls whether the navigation bar will display the miscellaneous behaviour icon.\n *\n * @param notification - icon-clicked - Boolean attribute which controls whether the navigation bar will display the show notification icon.\n *\n * @param show - connection-indicator - Boolean attribute which controls whether the navigation bar will display the connection indicator.\n *\n * @param show - language-selector - Boolean attribute which controls whether the navigation bar will display the language selector.\n *\n * @param hide - side-bar - Boolean attribute which controls whether the navigation bar will display the side bar.\n *\n * @param userName - String which defines the username to be displayed in the navigation bar.\n *\n * @param routeButtons - Array of objects which define the route buttons to be displayed in the navigation bar.\n *\n * @param languageOptions - Object which defines the language options to be displayed in the language selector.\n *\n * @fires\n *\n * luminance-icon-clicked - Dispatched when the user clicks on the luminance toggle icon in the navigation bar.\n *\n * @fires\n *\n * misc-icon-clicked - Dispatched when the user clicks on the miscellaneous behaviour icon in the navigation bar.\n *\n * @fires\n *\n * notification-icon-clicked - Dispatched when the user clicks on the notification icon in the navigation bar.\n *\n * @fires\n *\n * language-changed - Dispatched when the user changes the language in the language selector.\n *\n * @public\n */\n",
341
+ "docComment": "/**\n * Navigation micro-frontend includes navigation bar and flyout menu\n *\n * @remarks\n *\n * `foundation-header` micro-frontend can be added to the project to include a navigation bar and flyout menu. There are multiple ways that the behaviour of the component can be configured - the icon shown on the navigation bar and flyout menu (this shows the Genesis logo by default). - navigation links at the left-hand side of the navigation bar. - the control buttons on the right-hand side of the navigation bar can be shown or hidden, and their behaviour controlled via event listeners - The contents of the flyout menu.\n *\n * @param logo - src - Option attribute which sets the source of the image in the navigation bar and flyout menu. The Genesis logo will be shown if this attribute is not provided.\n *\n * @param show - luminance-toggle-button - Boolean attribute which controls whether the navigation bar will display the luminance toggle icon.\n *\n * @param show - misc-toggle-button - Boolean attribute which controls whether the navigation bar will display the miscellaneous behaviour icon.\n *\n * @param notification - icon-clicked - Boolean attribute which controls whether the navigation bar will display the show notification icon.\n *\n * @param show - connection-indicator - Boolean attribute which controls whether the navigation bar will display the connection indicator.\n *\n * @param show - language-selector - Boolean attribute which controls whether the navigation bar will display the language selector.\n *\n * @param hide - side-bar - Boolean attribute which controls whether the navigation bar will display the side bar.\n *\n * @param userName - String which defines the username to be displayed in the navigation bar.\n *\n * @param routeButtons - Array of objects which define the route buttons to be displayed in the navigation bar.\n *\n * @param routeNavItems - Array of {@link @genesislcap/foundation-ui#FoundationRouteNavItem | FoundationRouteNavItems} which define the route buttons to be displayed in the navigation bar.\n *\n * @param languageOptions - Object which defines the language options to be displayed in the language selector.\n *\n * @fires\n *\n * luminance-icon-clicked - Dispatched when the user clicks on the luminance toggle icon in the navigation bar.\n *\n * @fires\n *\n * misc-icon-clicked - Dispatched when the user clicks on the miscellaneous behaviour icon in the navigation bar.\n *\n * @fires\n *\n * notification-icon-clicked - Dispatched when the user clicks on the notification icon in the navigation bar.\n *\n * @fires\n *\n * language-changed - Dispatched when the user changes the language in the language selector.\n *\n * @public\n */\n",
271
342
  "excerptTokens": [
272
343
  {
273
344
  "kind": "Content",
@@ -675,7 +746,7 @@
675
746
  {
676
747
  "kind": "Property",
677
748
  "canonicalReference": "@genesislcap/foundation-header!Navigation#routeButtons:member",
678
- "docComment": "/**\n * If present the defined route buttons will be rendered in the header 'routes' slot\n */\n",
749
+ "docComment": "/**\n * If present the defined route buttons will be rendered in the header 'routes' slot\n *\n * @deprecated\n *\n * - Use `routeNavItems` instead.\n */\n",
679
750
  "excerptTokens": [
680
751
  {
681
752
  "kind": "Content",
@@ -707,6 +778,41 @@
707
778
  "isProtected": false,
708
779
  "isAbstract": false
709
780
  },
781
+ {
782
+ "kind": "Property",
783
+ "canonicalReference": "@genesislcap/foundation-header!Navigation#routeNavItems:member",
784
+ "docComment": "/**\n * If present the defined {@link @genesislcap/foundation-ui#FoundationRouteNavItem | FoundationRouteNavItems} will be rendered in the header 'routes' slot\n */\n",
785
+ "excerptTokens": [
786
+ {
787
+ "kind": "Content",
788
+ "text": "routeNavItems: "
789
+ },
790
+ {
791
+ "kind": "Reference",
792
+ "text": "FoundationRouteNavItem",
793
+ "canonicalReference": "@genesislcap/foundation-ui!FoundationRouteNavItem:type"
794
+ },
795
+ {
796
+ "kind": "Content",
797
+ "text": "[]"
798
+ },
799
+ {
800
+ "kind": "Content",
801
+ "text": ";"
802
+ }
803
+ ],
804
+ "isReadonly": false,
805
+ "isOptional": false,
806
+ "releaseTag": "Public",
807
+ "name": "routeNavItems",
808
+ "propertyTypeTokenRange": {
809
+ "startIndex": 1,
810
+ "endIndex": 3
811
+ },
812
+ "isStatic": false,
813
+ "isProtected": false,
814
+ "isAbstract": false
815
+ },
710
816
  {
711
817
  "kind": "Method",
712
818
  "canonicalReference": "@genesislcap/foundation-header!Navigation#selectTemplate:member(1)",
@@ -879,7 +985,7 @@
879
985
  {
880
986
  "kind": "Property",
881
987
  "canonicalReference": "@genesislcap/foundation-header!Navigation#showNotificationsButton:member",
882
- "docComment": "/**\n * Boolean attribute which controls whether to show the notification (bell) icon on the navigation bar Control via `show-notification-button`\n *\n * @remarks\n *\n * If the user clicks the icon when shown then this class will emit the 'notification-icon-clicked' event\n */\n",
988
+ "docComment": "/**\n * Boolean attribute which controls whether to show the notification (bell) icon on the navigation bar Control via `show-notification-button`\n *\n * @remarks\n *\n * If the user clicks the icon when shown then this class will emit the 'notification-icon-clicked' event\n *\n * @deprecated\n *\n * - Add/Remove PBC Notify via `genx` instead.\n */\n",
883
989
  "excerptTokens": [
884
990
  {
885
991
  "kind": "Content",
@@ -936,6 +1042,54 @@
936
1042
  "isProtected": false,
937
1043
  "isAbstract": false
938
1044
  },
1045
+ {
1046
+ "kind": "Method",
1047
+ "canonicalReference": "@genesislcap/foundation-header!Navigation#toLocalisedText:member(1)",
1048
+ "docComment": "/**\n * To localised text\n *\n * @remarks\n *\n * Returns localised version of the text if available.\n *\n * @experimental\n */\n",
1049
+ "excerptTokens": [
1050
+ {
1051
+ "kind": "Content",
1052
+ "text": "toLocalisedText(text: "
1053
+ },
1054
+ {
1055
+ "kind": "Content",
1056
+ "text": "string"
1057
+ },
1058
+ {
1059
+ "kind": "Content",
1060
+ "text": "): "
1061
+ },
1062
+ {
1063
+ "kind": "Content",
1064
+ "text": "string"
1065
+ },
1066
+ {
1067
+ "kind": "Content",
1068
+ "text": ";"
1069
+ }
1070
+ ],
1071
+ "isStatic": false,
1072
+ "returnTypeTokenRange": {
1073
+ "startIndex": 3,
1074
+ "endIndex": 4
1075
+ },
1076
+ "releaseTag": "Public",
1077
+ "isProtected": false,
1078
+ "overloadIndex": 1,
1079
+ "parameters": [
1080
+ {
1081
+ "parameterName": "text",
1082
+ "parameterTypeTokenRange": {
1083
+ "startIndex": 1,
1084
+ "endIndex": 2
1085
+ },
1086
+ "isOptional": false
1087
+ }
1088
+ ],
1089
+ "isOptional": false,
1090
+ "isAbstract": false,
1091
+ "name": "toLocalisedText"
1092
+ },
939
1093
  {
940
1094
  "kind": "Property",
941
1095
  "canonicalReference": "@genesislcap/foundation-header!Navigation#userName:member",
@@ -973,6 +1127,32 @@
973
1127
  },
974
1128
  "implementsTokenRanges": []
975
1129
  },
1130
+ {
1131
+ "kind": "TypeAlias",
1132
+ "canonicalReference": "@genesislcap/foundation-header!NavTargetId:type",
1133
+ "docComment": "/**\n * Nav integration targets.\n *\n * @public\n */\n",
1134
+ "excerptTokens": [
1135
+ {
1136
+ "kind": "Content",
1137
+ "text": "export type NavTargetId = "
1138
+ },
1139
+ {
1140
+ "kind": "Content",
1141
+ "text": "'nav-start' | 'nav' | 'nav-end'"
1142
+ },
1143
+ {
1144
+ "kind": "Content",
1145
+ "text": ";"
1146
+ }
1147
+ ],
1148
+ "fileUrlPath": "src/config/targetId.ts",
1149
+ "releaseTag": "Public",
1150
+ "name": "NavTargetId",
1151
+ "typeTokenRange": {
1152
+ "startIndex": 1,
1153
+ "endIndex": 2
1154
+ }
1155
+ },
976
1156
  {
977
1157
  "kind": "Variable",
978
1158
  "canonicalReference": "@genesislcap/foundation-header!NavTemplate:var",
@@ -1009,6 +1189,58 @@
1009
1189
  "startIndex": 1,
1010
1190
  "endIndex": 5
1011
1191
  }
1192
+ },
1193
+ {
1194
+ "kind": "TypeAlias",
1195
+ "canonicalReference": "@genesislcap/foundation-header!SideNavTargetId:type",
1196
+ "docComment": "/**\n * Side nav integration targets.\n *\n * @public\n */\n",
1197
+ "excerptTokens": [
1198
+ {
1199
+ "kind": "Content",
1200
+ "text": "export type SideNavTargetId = "
1201
+ },
1202
+ {
1203
+ "kind": "Content",
1204
+ "text": "'side-nav-start' | 'side-nav' | 'side-nav-end'"
1205
+ },
1206
+ {
1207
+ "kind": "Content",
1208
+ "text": ";"
1209
+ }
1210
+ ],
1211
+ "fileUrlPath": "src/config/targetId.ts",
1212
+ "releaseTag": "Public",
1213
+ "name": "SideNavTargetId",
1214
+ "typeTokenRange": {
1215
+ "startIndex": 1,
1216
+ "endIndex": 2
1217
+ }
1218
+ },
1219
+ {
1220
+ "kind": "TypeAlias",
1221
+ "canonicalReference": "@genesislcap/foundation-header!StyleTargetId:type",
1222
+ "docComment": "/**\n * Package style integration targets.\n *\n * @public\n */\n",
1223
+ "excerptTokens": [
1224
+ {
1225
+ "kind": "Content",
1226
+ "text": "export type StyleTargetId = "
1227
+ },
1228
+ {
1229
+ "kind": "Content",
1230
+ "text": "'header'"
1231
+ },
1232
+ {
1233
+ "kind": "Content",
1234
+ "text": ";"
1235
+ }
1236
+ ],
1237
+ "fileUrlPath": "src/config/targetId.ts",
1238
+ "releaseTag": "Public",
1239
+ "name": "StyleTargetId",
1240
+ "typeTokenRange": {
1241
+ "startIndex": 1,
1242
+ "endIndex": 2
1243
+ }
1012
1244
  }
1013
1245
  ]
1014
1246
  }
@@ -4,9 +4,24 @@ import { CredentialManager } from '@genesislcap/foundation-comms';
4
4
  import { ElementStyles } from '@microsoft/fast-element';
5
5
  import { EmitOptions } from '@genesislcap/foundation-events';
6
6
  import { EmitReturn } from '@genesislcap/foundation-events';
7
+ import type { FoundationRouteNavItem } from '@genesislcap/foundation-ui';
7
8
  import { I18next } from '@genesislcap/foundation-i18n';
8
9
  import { ViewTemplate } from '@microsoft/fast-element';
9
10
 
11
+ /**
12
+ * Package element integration targets.
13
+ *
14
+ * @public
15
+ */
16
+ export declare type ElementTargetId = HeaderTargetId | NavTargetId | SideNavTargetId;
17
+
18
+ /**
19
+ * Header integration targets.
20
+ *
21
+ * @public
22
+ */
23
+ export declare type HeaderTargetId = 'header-start' | 'header' | 'header-end';
24
+
10
25
  /**
11
26
  * Options for the language selector
12
27
  * @public
@@ -58,6 +73,7 @@ export declare type NavEventDetailMap = {
58
73
  *
59
74
  * @param userName - String which defines the username to be displayed in the navigation bar.
60
75
  * @param routeButtons - Array of objects which define the route buttons to be displayed in the navigation bar.
76
+ * @param routeNavItems - Array of {@link @genesislcap/foundation-ui#FoundationRouteNavItem | FoundationRouteNavItems} which define the route buttons to be displayed in the navigation bar.
61
77
  * @param languageOptions - Object which defines the language options to be displayed in the language selector.
62
78
  *
63
79
  * @public
@@ -113,8 +129,14 @@ export declare class Navigation extends Navigation_base {
113
129
  * @remarks
114
130
  *
115
131
  * If the user clicks the icon when shown then this class will emit the 'notification-icon-clicked' event
132
+ *
133
+ * @deprecated - Add/Remove PBC Notify via `genx` instead.
116
134
  */
117
135
  showNotificationsButton: boolean;
136
+ /**
137
+ * @internal
138
+ */
139
+ showNotificationsButtonChanged(): void;
118
140
  /**
119
141
  * Boolean attribute which controls whether to show the connection indicator on the navigation bar
120
142
  * Control via `show-connection-indicator`
@@ -140,6 +162,8 @@ export declare class Navigation extends Navigation_base {
140
162
  hideSideBar: boolean;
141
163
  /**
142
164
  * If present the defined route buttons will be rendered in the header 'routes' slot
165
+ *
166
+ * @deprecated - Use `routeNavItems` instead.
143
167
  */
144
168
  routeButtons: Array<{
145
169
  index: number;
@@ -148,6 +172,14 @@ export declare class Navigation extends Navigation_base {
148
172
  icon: string;
149
173
  variant: string;
150
174
  }>;
175
+ /**
176
+ * @internal
177
+ */
178
+ routeButtonsChanged(): void;
179
+ /**
180
+ * If present the defined {@link @genesislcap/foundation-ui#FoundationRouteNavItem | FoundationRouteNavItems} will be rendered in the header 'routes' slot
181
+ */
182
+ routeNavItems: FoundationRouteNavItem[];
151
183
  /**
152
184
  * Load remote components
153
185
  *
@@ -236,6 +268,16 @@ export declare class Navigation extends Navigation_base {
236
268
  * @experimental
237
269
  */
238
270
  changeLanguage(e: CustomEvent): void;
271
+ /**
272
+ * To localised text
273
+ * @remarks
274
+ * Returns localised version of the text if available.
275
+ * @experimental
276
+ * @privateRemarks
277
+ * Perhaps move things like showLanguageSelector into the config and just call i18next directly for translations.
278
+ * Is languageOptions needed.
279
+ */
280
+ toLocalisedText(text: string): string;
239
281
  }
240
282
 
241
283
  declare const Navigation_base: abstract new (...args: any[]) => {
@@ -268,7 +310,9 @@ declare const Navigation_base: abstract new (...args: any[]) => {
268
310
  readonly classList: DOMTokenList;
269
311
  className: string;
270
312
  readonly clientHeight: number;
271
- readonly clientLeft: number;
313
+ readonly clientLeft: number; /**
314
+ * Username of the logged in user
315
+ */
272
316
  readonly clientTop: number;
273
317
  readonly clientWidth: number;
274
318
  id: string;
@@ -340,17 +384,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
340
384
  readonly lastChild: ChildNode;
341
385
  readonly nextSibling: ChildNode;
342
386
  readonly nodeName: string;
343
- readonly nodeType: number; /**
344
- * Changes the route of the current page
345
- *
346
- * @remarks
347
- *
348
- * Requires setup of the Router and usage of the FAST Router
349
- *
350
- * @param path - string represeting the new route to move to
351
- *
352
- * @public
353
- */
387
+ readonly nodeType: number;
354
388
  nodeValue: string;
355
389
  readonly parentElement: HTMLElement;
356
390
  readonly parentNode: ParentNode;
@@ -362,16 +396,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
362
396
  contains(other: Node): boolean;
363
397
  getRootNode(options?: GetRootNodeOptions): Node;
364
398
  hasChildNodes(): boolean;
365
- /**
366
- * Opens the flyout menu on the left hand side
367
- *
368
- * @remarks
369
- *
370
- * Activated when the user clicks on the menu button on the navigation
371
- * bar left hand side
372
- *
373
- * @internal
374
- */
375
399
  insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1;
376
400
  isDefaultNamespace(namespace: string): boolean;
377
401
  isEqualNode(otherNode: Node): boolean;
@@ -439,7 +463,16 @@ declare const Navigation_base: abstract new (...args: any[]) => {
439
463
  ariaValueMin: string;
440
464
  ariaValueNow: string;
441
465
  ariaValueText: string;
442
- role: string;
466
+ role: string; /**
467
+ * Emits the event corresponding to the notification icon being clicked
468
+ *
469
+ * @remarks
470
+ *
471
+ * Activated when the user clicks on the bell icon on the navigation
472
+ * bar right hand side
473
+ *
474
+ * @internal
475
+ */
443
476
  animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
444
477
  getAnimations(options?: GetAnimationsOptions): Animation[];
445
478
  after(...nodes: (string | Node)[]): void;
@@ -574,6 +607,13 @@ declare const Navigation_base: abstract new (...args: any[]) => {
574
607
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
575
608
  };
576
609
 
610
+ /**
611
+ * Nav integration targets.
612
+ *
613
+ * @public
614
+ */
615
+ export declare type NavTargetId = 'nav-start' | 'nav' | 'nav-end';
616
+
577
617
  /**
578
618
  * Template for Navigation class
579
619
  *
@@ -589,4 +629,18 @@ declare const Navigation_base: abstract new (...args: any[]) => {
589
629
  */
590
630
  export declare const NavTemplate: ViewTemplate<Navigation, any>;
591
631
 
632
+ /**
633
+ * Side nav integration targets.
634
+ *
635
+ * @public
636
+ */
637
+ export declare type SideNavTargetId = 'side-nav-start' | 'side-nav' | 'side-nav-end';
638
+
639
+ /**
640
+ * Package style integration targets.
641
+ *
642
+ * @public
643
+ */
644
+ export declare type StyleTargetId = 'header';
645
+
592
646
  export { }
@@ -0,0 +1,15 @@
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
+
@@ -0,0 +1,13 @@
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
+ ```
@@ -21,6 +21,11 @@
21
21
 
22
22
  | Type Alias | Description |
23
23
  | --- | --- |
24
+ | [ElementTargetId](./foundation-header.elementtargetid.md) | Package element integration targets. |
25
+ | [HeaderTargetId](./foundation-header.headertargetid.md) | Header integration targets. |
24
26
  | [LanguageOptions](./foundation-header.languageoptions.md) | Options for the language selector |
25
27
  | [NavEventDetailMap](./foundation-header.naveventdetailmap.md) | Events dispatched by the navigation control buttons |
28
+ | [NavTargetId](./foundation-header.navtargetid.md) | Nav integration targets. |
29
+ | [SideNavTargetId](./foundation-header.sidenavtargetid.md) | Side nav integration targets. |
30
+ | [StyleTargetId](./foundation-header.styletargetid.md) | Package style integration targets. |
26
31
 
@@ -29,6 +29,7 @@ export declare class Navigation extends Navigation_base
29
29
  | [logoSrc](./foundation-header.navigation.logosrc.md) | | any | Optional attribute which controls the icon to show on the navigation bar and flyout Control via <code>logo-src</code> |
30
30
  | [ready](./foundation-header.navigation.ready.md) | | boolean | |
31
31
  | [routeButtons](./foundation-header.navigation.routebuttons.md) | | Array&lt;{ index: number; path: string; title: string; icon: string; variant: string; }&gt; | If present the defined route buttons will be rendered in the header 'routes' slot |
32
+ | [routeNavItems](./foundation-header.navigation.routenavitems.md) | | FoundationRouteNavItem\[\] | If present the defined will be rendered in the header 'routes' slot |
32
33
  | [showConnectionIndicator](./foundation-header.navigation.showconnectionindicator.md) | | boolean | Boolean attribute which controls whether to show the connection indicator on the navigation bar Control via <code>show-connection-indicator</code> |
33
34
  | [showLanguageSelector](./foundation-header.navigation.showlanguageselector.md) | | boolean | Boolean attribute which controls whether to show the language selector on the navigation bar Control via <code>show-language-selector</code> |
34
35
  | [showLuminanceToggleButton](./foundation-header.navigation.showluminancetogglebutton.md) | | boolean | Boolean attribute which controls whether to show the luminance (moon) icon on the navigation bar Control via<code>show-luminance-toggle-button</code> |
@@ -46,4 +47,5 @@ export declare class Navigation extends Navigation_base
46
47
  | [logout()](./foundation-header.navigation.logout.md) | | Logs the user out of their session |
47
48
  | [navigateTo(path)](./foundation-header.navigation.navigateto.md) | | Changes the route of the current page |
48
49
  | [selectTemplate()](./foundation-header.navigation.selecttemplate.md) | | |
50
+ | [toLocalisedText(text)](./foundation-header.navigation.tolocalisedtext.md) | | To localised text |
49
51
 
@@ -4,6 +4,11 @@
4
4
 
5
5
  ## Navigation.routeButtons property
6
6
 
7
+ > Warning: This API is now obsolete.
8
+ >
9
+ > - Use `routeNavItems` instead.
10
+ >
11
+
7
12
  If present the defined route buttons will be rendered in the header 'routes' slot
8
13
 
9
14
  **Signature:**
@@ -0,0 +1,13 @@
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; [Navigation](./foundation-header.navigation.md) &gt; [routeNavItems](./foundation-header.navigation.routenavitems.md)
4
+
5
+ ## Navigation.routeNavItems property
6
+
7
+ If present the defined will be rendered in the header 'routes' slot
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ routeNavItems: FoundationRouteNavItem[];
13
+ ```
@@ -4,6 +4,11 @@
4
4
 
5
5
  ## Navigation.showNotificationsButton property
6
6
 
7
+ > Warning: This API is now obsolete.
8
+ >
9
+ > - Add/Remove PBC Notify via `genx` instead.
10
+ >
11
+
7
12
  Boolean attribute which controls whether to show the notification (bell) icon on the navigation bar Control via `show-notification-button`
8
13
 
9
14
  **Signature:**
@@ -0,0 +1,28 @@
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; [Navigation](./foundation-header.navigation.md) &gt; [toLocalisedText](./foundation-header.navigation.tolocalisedtext.md)
4
+
5
+ ## Navigation.toLocalisedText() method
6
+
7
+ To localised text
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ toLocalisedText(text: string): string;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | text | string | |
20
+
21
+ **Returns:**
22
+
23
+ string
24
+
25
+ ## Remarks
26
+
27
+ Returns localised version of the text if available.
28
+
@@ -0,0 +1,13 @@
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; [NavTargetId](./foundation-header.navtargetid.md)
4
+
5
+ ## NavTargetId type
6
+
7
+ Nav integration targets.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export type NavTargetId = 'nav-start' | 'nav' | 'nav-end';
13
+ ```
@@ -0,0 +1,13 @@
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; [SideNavTargetId](./foundation-header.sidenavtargetid.md)
4
+
5
+ ## SideNavTargetId type
6
+
7
+ Side nav integration targets.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export type SideNavTargetId = 'side-nav-start' | 'side-nav' | 'side-nav-end';
13
+ ```
@@ -0,0 +1,13 @@
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; [StyleTargetId](./foundation-header.styletargetid.md)
4
+
5
+ ## StyleTargetId type
6
+
7
+ Package style integration targets.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export type StyleTargetId = 'header';
13
+ ```