@genesislcap/foundation-header 14.238.2 → 14.240.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.
@@ -557,6 +557,10 @@
557
557
  {
558
558
  "description": "Dispatched when the user changes the language in the language selector.",
559
559
  "name": "language-changed"
560
+ },
561
+ {
562
+ "description": "Dispatched when the user clicks logout button.",
563
+ "name": "logout-clicked"
560
564
  }
561
565
  ],
562
566
  "attributes": [
@@ -1118,6 +1122,14 @@
1118
1122
  "name": "Navigation",
1119
1123
  "module": "src/main/main.ts"
1120
1124
  }
1125
+ },
1126
+ {
1127
+ "description": "Dispatched when the user clicks logout button.",
1128
+ "name": "logout-clicked",
1129
+ "inheritedFrom": {
1130
+ "name": "Navigation",
1131
+ "module": "src/main/main.ts"
1132
+ }
1121
1133
  }
1122
1134
  ]
1123
1135
  },
@@ -1587,6 +1599,14 @@
1587
1599
  "name": "Navigation",
1588
1600
  "module": "src/main/main.ts"
1589
1601
  }
1602
+ },
1603
+ {
1604
+ "description": "Dispatched when the user clicks logout button.",
1605
+ "name": "logout-clicked",
1606
+ "inheritedFrom": {
1607
+ "name": "Navigation",
1608
+ "module": "src/main/main.ts"
1609
+ }
1590
1610
  }
1591
1611
  ]
1592
1612
  },
@@ -2055,6 +2075,14 @@
2055
2075
  "name": "Navigation",
2056
2076
  "module": "src/main/main.ts"
2057
2077
  }
2078
+ },
2079
+ {
2080
+ "description": "Dispatched when the user clicks logout button.",
2081
+ "name": "logout-clicked",
2082
+ "inheritedFrom": {
2083
+ "name": "Navigation",
2084
+ "module": "src/main/main.ts"
2085
+ }
2058
2086
  }
2059
2087
  ]
2060
2088
  }
@@ -12,6 +12,7 @@ import { HeaderConfig } from '../config/config';
12
12
  */
13
13
  export type NavEventDetailMap = {
14
14
  'luminance-icon-clicked': void;
15
+ 'logout-clicked': void;
15
16
  'misc-icon-clicked': void;
16
17
  'notification-icon-clicked': void;
17
18
  'language-changed': void;
@@ -25,7 +26,7 @@ export type LanguageOptions = {
25
26
  selectedLanguage: string;
26
27
  };
27
28
  declare const Navigation_base: abstract new (...args: any[]) => {
28
- $emit<K extends "luminance-icon-clicked" | "misc-icon-clicked" | "notification-icon-clicked" | "language-changed">(...args: NavEventDetailMap[K] extends void ? [type: K, options?: import("@genesislcap/foundation-events").EmitOptions] : [type: K, detail: NavEventDetailMap[K], options?: import("@genesislcap/foundation-events").EmitOptions]): import("@genesislcap/foundation-events").EmitReturn;
29
+ $emit<K extends "luminance-icon-clicked" | "logout-clicked" | "misc-icon-clicked" | "notification-icon-clicked" | "language-changed">(...args: NavEventDetailMap[K] extends void ? [type: K, options?: import("@genesislcap/foundation-events").EmitOptions] : [type: K, detail: NavEventDetailMap[K], options?: import("@genesislcap/foundation-events").EmitOptions]): import("@genesislcap/foundation-events").EmitReturn;
29
30
  accessKey: string;
30
31
  readonly accessKeyLabel: string;
31
32
  autocapitalize: string;
@@ -72,11 +73,17 @@ declare const Navigation_base: abstract new (...args: any[]) => {
72
73
  readonly scrollWidth: number;
73
74
  readonly shadowRoot: ShadowRoot;
74
75
  slot: string;
75
- readonly tagName: string;
76
+ readonly tagName: string; /**
77
+ * @internal
78
+ * Flag to indicate if the component is ready
79
+ */
76
80
  attachShadow(init: ShadowRootInit): ShadowRoot;
77
81
  closest<K_3 extends keyof HTMLElementTagNameMap>(selector: K_3): HTMLElementTagNameMap[K_3];
78
82
  closest<K_4 extends keyof SVGElementTagNameMap>(selector: K_4): SVGElementTagNameMap[K_4];
79
83
  closest<E extends Element = Element>(selectors: string): E;
84
+ /**
85
+ * Called when the component is connected to the DOM
86
+ */
80
87
  getAttribute(qualifiedName: string): string;
81
88
  getAttributeNS(namespace: string, localName: string): string;
82
89
  getAttributeNames(): string[];
@@ -128,7 +135,9 @@ declare const Navigation_base: abstract new (...args: any[]) => {
128
135
  readonly nodeName: string;
129
136
  readonly nodeType: number;
130
137
  nodeValue: string;
131
- readonly parentElement: HTMLElement;
138
+ readonly parentElement: HTMLElement; /**
139
+ * Object which defines the language options to be displayed in the language selector
140
+ */
132
141
  readonly parentNode: ParentNode;
133
142
  readonly previousSibling: ChildNode;
134
143
  textContent: string;
@@ -171,10 +180,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
171
180
  ariaBusy: string;
172
181
  ariaChecked: string;
173
182
  ariaColCount: string;
174
- /**
175
- * Selects the appropriate template based on the component's state
176
- * @returns \{ViewTemplate<Navigation>\}
177
- */
178
183
  ariaColIndex: string;
179
184
  ariaColIndexText: string;
180
185
  ariaColSpan: string;
@@ -184,11 +189,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
184
189
  ariaHasPopup: string;
185
190
  ariaHidden: string;
186
191
  ariaInvalid: string;
187
- /**
188
- * Logs the user out of their session
189
- *
190
- * @public
191
- */
192
192
  ariaKeyShortcuts: string;
193
193
  ariaLabel: string;
194
194
  ariaLevel: string;
@@ -201,17 +201,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
201
201
  ariaPosInSet: string;
202
202
  ariaPressed: string;
203
203
  ariaReadOnly: string;
204
- /**
205
- * Changes the route of the current page
206
- *
207
- * @remarks
208
- *
209
- * Requires setup of the Router and usage of the Router
210
- *
211
- * @param path - string representing the new route to move to
212
- *
213
- * @public
214
- */
215
204
  ariaRequired: string;
216
205
  ariaRoleDescription: string;
217
206
  ariaRowCount: string;
@@ -244,9 +233,36 @@ declare const Navigation_base: abstract new (...args: any[]) => {
244
233
  querySelector<K_7 extends keyof HTMLElementTagNameMap>(selectors: K_7): HTMLElementTagNameMap[K_7];
245
234
  querySelector<K_8 extends keyof SVGElementTagNameMap>(selectors: K_8): SVGElementTagNameMap[K_8];
246
235
  querySelector<E_1 extends Element = Element>(selectors: string): E_1;
247
- querySelectorAll<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): NodeListOf<HTMLElementTagNameMap[K_9]>;
248
- querySelectorAll<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): NodeListOf<SVGElementTagNameMap[K_10]>;
249
- querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
236
+ querySelectorAll<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): NodeListOf<HTMLElementTagNameMap[K_9]>; /**
237
+ * Emits the event corresponding to the luminance icon being clicked
238
+ *
239
+ * @remarks
240
+ *
241
+ * Activated when the user clicks on the moon icon on the navigation
242
+ * bar right hand side
243
+ *
244
+ * @internal
245
+ */
246
+ querySelectorAll<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): NodeListOf<SVGElementTagNameMap[K_10]>; /**
247
+ * Emits the event corresponding to the luminance icon being clicked
248
+ *
249
+ * @remarks
250
+ *
251
+ * Activated when the user clicks on the moon icon on the navigation
252
+ * bar right hand side
253
+ *
254
+ * @internal
255
+ */
256
+ querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>; /**
257
+ * Emits the event corresponding to the luminance icon being clicked
258
+ *
259
+ * @remarks
260
+ *
261
+ * Activated when the user clicks on the moon icon on the navigation
262
+ * bar right hand side
263
+ *
264
+ * @internal
265
+ */
250
266
  replaceChildren(...nodes: (string | Node)[]): void;
251
267
  readonly assignedSlot: HTMLSlotElement;
252
268
  oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
@@ -257,15 +273,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
257
273
  enterKeyHint: string;
258
274
  inputMode: string;
259
275
  readonly isContentEditable: boolean;
260
- onabort: (this: GlobalEventHandlers, ev: UIEvent) => any; /**
261
- * Changes the language of the application
262
- *
263
- * @remarks
264
- *
265
- * Activated when the user selects a language from the language selector that uses the I18next service.
266
- *
267
- * @experimental
268
- */
276
+ onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
269
277
  onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
270
278
  onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
271
279
  onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
@@ -292,6 +300,13 @@ declare const Navigation_base: abstract new (...args: any[]) => {
292
300
  ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
293
301
  onemptied: (this: GlobalEventHandlers, ev: Event) => any;
294
302
  onended: (this: GlobalEventHandlers, ev: Event) => any;
303
+ /**
304
+ * ZeroHeader is a zero version of the header micro-frontend.
305
+ *
306
+ * @deprecated - Use RapidHeader instead.
307
+ *
308
+ * @internal
309
+ */
295
310
  onerror: OnErrorEventHandlerNonNull;
296
311
  onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
297
312
  onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
@@ -399,6 +414,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
399
414
  * @fires misc-icon-clicked - Dispatched when the user clicks on the miscellaneous behaviour icon in the navigation bar.
400
415
  * @fires notification-icon-clicked - Dispatched when the user clicks on the notification icon in the navigation bar.
401
416
  * @fires language-changed - Dispatched when the user changes the language in the language selector.
417
+ * @fires logout-clicked - Dispatched when the user clicks logout button.
402
418
  *
403
419
  */
404
420
  export declare class Navigation extends Navigation_base {
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAe,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAG1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAmD,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACnG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMhD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,wBAAw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IACH,cAAc,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI;IAKpC;;;;;;;;OAQG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAKtC;AAED;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IACxC,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;CAGnC;AAED;;;;;;GAMG;AACH,qBAKa,UAAW,SAAQ,UAAU;CAAG;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAKa,WAAY,SAAQ,UAAU;IACzC;;;;;;;;OAQG;IACG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAMlC,cAAc,IAAI,YAAY,CAAC,UAAU,CAAC;CAG3C"}
@@ -45,6 +45,7 @@ import { dynamicTemplate as template, LoadingTemplate, mainTemplate } from './ma
45
45
  * @fires misc-icon-clicked - Dispatched when the user clicks on the miscellaneous behaviour icon in the navigation bar.
46
46
  * @fires notification-icon-clicked - Dispatched when the user clicks on the notification icon in the navigation bar.
47
47
  * @fires language-changed - Dispatched when the user changes the language in the language selector.
48
+ * @fires logout-clicked - Dispatched when the user clicks logout button.
48
49
  *
49
50
  */
50
51
  let Navigation = class Navigation extends EventEmitter(GenesisElement) {
@@ -172,6 +173,7 @@ let Navigation = class Navigation extends EventEmitter(GenesisElement) {
172
173
  */
173
174
  logout() {
174
175
  return __awaiter(this, void 0, void 0, function* () {
176
+ this.$emit('logout-clicked');
175
177
  if (this.container.has(AuthConfig, true)) {
176
178
  this.authRouting.navigateTo('logout');
177
179
  }
@@ -545,7 +545,7 @@
545
545
  },
546
546
  {
547
547
  "kind": "Content",
548
- "text": "{\n 'luminance-icon-clicked': void;\n 'misc-icon-clicked': void;\n 'notification-icon-clicked': void;\n 'language-changed': void;\n}"
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}"
549
549
  },
550
550
  {
551
551
  "kind": "Content",
@@ -563,7 +563,7 @@
563
563
  {
564
564
  "kind": "Class",
565
565
  "canonicalReference": "@genesislcap/foundation-header!Navigation:class",
566
- "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 logo - alt-text -Descriptive logo text.\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",
566
+ "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 logo - alt-text -Descriptive logo text.\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 * @fires\n *\n * logout-clicked - Dispatched when the user clicks logout button.\n *\n * @public\n */\n",
567
567
  "excerptTokens": [
568
568
  {
569
569
  "kind": "Content",
@@ -189,6 +189,7 @@ export declare const mainTemplate: ViewTemplate<Navigation, any>;
189
189
  */
190
190
  export declare type NavEventDetailMap = {
191
191
  'luminance-icon-clicked': void;
192
+ 'logout-clicked': void;
192
193
  'misc-icon-clicked': void;
193
194
  'notification-icon-clicked': void;
194
195
  'language-changed': void;
@@ -226,6 +227,7 @@ export declare type NavEventDetailMap = {
226
227
  * @fires misc-icon-clicked - Dispatched when the user clicks on the miscellaneous behaviour icon in the navigation bar.
227
228
  * @fires notification-icon-clicked - Dispatched when the user clicks on the notification icon in the navigation bar.
228
229
  * @fires language-changed - Dispatched when the user changes the language in the language selector.
230
+ * @fires logout-clicked - Dispatched when the user clicks logout button.
229
231
  *
230
232
  */
231
233
  export declare class Navigation extends Navigation_base {
@@ -466,7 +468,7 @@ export declare class Navigation extends Navigation_base {
466
468
  }
467
469
 
468
470
  declare const Navigation_base: abstract new (...args: any[]) => {
469
- $emit<K extends "luminance-icon-clicked" | "misc-icon-clicked" | "notification-icon-clicked" | "language-changed">(...args: NavEventDetailMap[K] extends void ? [type: K, options?: EmitOptions] : [type: K, detail: NavEventDetailMap[K], options?: EmitOptions]): EmitReturn;
471
+ $emit<K extends "luminance-icon-clicked" | "logout-clicked" | "misc-icon-clicked" | "notification-icon-clicked" | "language-changed">(...args: NavEventDetailMap[K] extends void ? [type: K, options?: EmitOptions] : [type: K, detail: NavEventDetailMap[K], options?: EmitOptions]): EmitReturn;
470
472
  accessKey: string;
471
473
  readonly accessKeyLabel: string;
472
474
  autocapitalize: string;
@@ -513,11 +515,17 @@ declare const Navigation_base: abstract new (...args: any[]) => {
513
515
  readonly scrollWidth: number;
514
516
  readonly shadowRoot: ShadowRoot;
515
517
  slot: string;
516
- readonly tagName: string;
518
+ readonly tagName: string; /**
519
+ * @internal
520
+ * Flag to indicate if the component is ready
521
+ */
517
522
  attachShadow(init: ShadowRootInit): ShadowRoot;
518
523
  closest<K_3 extends keyof HTMLElementTagNameMap>(selector: K_3): HTMLElementTagNameMap[K_3];
519
524
  closest<K_4 extends keyof SVGElementTagNameMap>(selector: K_4): SVGElementTagNameMap[K_4];
520
525
  closest<E extends Element = Element>(selectors: string): E;
526
+ /**
527
+ * Called when the component is connected to the DOM
528
+ */
521
529
  getAttribute(qualifiedName: string): string;
522
530
  getAttributeNS(namespace: string, localName: string): string;
523
531
  getAttributeNames(): string[];
@@ -569,7 +577,9 @@ declare const Navigation_base: abstract new (...args: any[]) => {
569
577
  readonly nodeName: string;
570
578
  readonly nodeType: number;
571
579
  nodeValue: string;
572
- readonly parentElement: HTMLElement;
580
+ readonly parentElement: HTMLElement; /**
581
+ * Object which defines the language options to be displayed in the language selector
582
+ */
573
583
  readonly parentNode: ParentNode;
574
584
  readonly previousSibling: ChildNode;
575
585
  textContent: string;
@@ -612,10 +622,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
612
622
  ariaBusy: string;
613
623
  ariaChecked: string;
614
624
  ariaColCount: string;
615
- /**
616
- * Selects the appropriate template based on the component's state
617
- * @returns \{ViewTemplate<Navigation>\}
618
- */
619
625
  ariaColIndex: string;
620
626
  ariaColIndexText: string;
621
627
  ariaColSpan: string;
@@ -625,11 +631,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
625
631
  ariaHasPopup: string;
626
632
  ariaHidden: string;
627
633
  ariaInvalid: string;
628
- /**
629
- * Logs the user out of their session
630
- *
631
- * @public
632
- */
633
634
  ariaKeyShortcuts: string;
634
635
  ariaLabel: string;
635
636
  ariaLevel: string;
@@ -642,17 +643,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
642
643
  ariaPosInSet: string;
643
644
  ariaPressed: string;
644
645
  ariaReadOnly: string;
645
- /**
646
- * Changes the route of the current page
647
- *
648
- * @remarks
649
- *
650
- * Requires setup of the Router and usage of the Router
651
- *
652
- * @param path - string representing the new route to move to
653
- *
654
- * @public
655
- */
656
646
  ariaRequired: string;
657
647
  ariaRoleDescription: string;
658
648
  ariaRowCount: string;
@@ -685,9 +675,36 @@ declare const Navigation_base: abstract new (...args: any[]) => {
685
675
  querySelector<K_7 extends keyof HTMLElementTagNameMap>(selectors: K_7): HTMLElementTagNameMap[K_7];
686
676
  querySelector<K_8 extends keyof SVGElementTagNameMap>(selectors: K_8): SVGElementTagNameMap[K_8];
687
677
  querySelector<E_1 extends Element = Element>(selectors: string): E_1;
688
- querySelectorAll<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): NodeListOf<HTMLElementTagNameMap[K_9]>;
689
- querySelectorAll<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): NodeListOf<SVGElementTagNameMap[K_10]>;
690
- querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
678
+ querySelectorAll<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): NodeListOf<HTMLElementTagNameMap[K_9]>; /**
679
+ * Emits the event corresponding to the luminance icon being clicked
680
+ *
681
+ * @remarks
682
+ *
683
+ * Activated when the user clicks on the moon icon on the navigation
684
+ * bar right hand side
685
+ *
686
+ * @internal
687
+ */
688
+ querySelectorAll<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): NodeListOf<SVGElementTagNameMap[K_10]>; /**
689
+ * Emits the event corresponding to the luminance icon being clicked
690
+ *
691
+ * @remarks
692
+ *
693
+ * Activated when the user clicks on the moon icon on the navigation
694
+ * bar right hand side
695
+ *
696
+ * @internal
697
+ */
698
+ querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>; /**
699
+ * Emits the event corresponding to the luminance icon being clicked
700
+ *
701
+ * @remarks
702
+ *
703
+ * Activated when the user clicks on the moon icon on the navigation
704
+ * bar right hand side
705
+ *
706
+ * @internal
707
+ */
691
708
  replaceChildren(...nodes: (string | Node)[]): void;
692
709
  readonly assignedSlot: HTMLSlotElement;
693
710
  oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
@@ -698,15 +715,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
698
715
  enterKeyHint: string;
699
716
  inputMode: string;
700
717
  readonly isContentEditable: boolean;
701
- onabort: (this: GlobalEventHandlers, ev: UIEvent) => any; /**
702
- * Changes the language of the application
703
- *
704
- * @remarks
705
- *
706
- * Activated when the user selects a language from the language selector that uses the I18next service.
707
- *
708
- * @experimental
709
- */
718
+ onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
710
719
  onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
711
720
  onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
712
721
  onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
@@ -733,6 +742,13 @@ declare const Navigation_base: abstract new (...args: any[]) => {
733
742
  ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
734
743
  onemptied: (this: GlobalEventHandlers, ev: Event) => any;
735
744
  onended: (this: GlobalEventHandlers, ev: Event) => any;
745
+ /**
746
+ * ZeroHeader is a zero version of the header micro-frontend.
747
+ *
748
+ * @deprecated - Use RapidHeader instead.
749
+ *
750
+ * @internal
751
+ */
736
752
  onerror: OnErrorEventHandlerNonNull;
737
753
  onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
738
754
  onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
@@ -11,6 +11,7 @@ Events dispatched by the navigation control buttons
11
11
  ```typescript
12
12
  export type NavEventDetailMap = {
13
13
  'luminance-icon-clicked': void;
14
+ 'logout-clicked': void;
14
15
  'misc-icon-clicked': void;
15
16
  'notification-icon-clicked': void;
16
17
  'language-changed': void;
@@ -81,6 +81,7 @@ export const mainTemplate: ViewTemplate<Navigation, any>;
81
81
  // @public
82
82
  export type NavEventDetailMap = {
83
83
  'luminance-icon-clicked': void;
84
+ 'logout-clicked': void;
84
85
  'misc-icon-clicked': void;
85
86
  'notification-icon-clicked': void;
86
87
  'language-changed': void;
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.238.2",
4
+ "version": "14.240.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-header.d.ts",
@@ -77,29 +77,29 @@
77
77
  }
78
78
  },
79
79
  "devDependencies": {
80
- "@genesislcap/foundation-testing": "14.238.2",
81
- "@genesislcap/genx": "14.238.2",
82
- "@genesislcap/rollup-builder": "14.238.2",
83
- "@genesislcap/ts-builder": "14.238.2",
84
- "@genesislcap/uvu-playwright-builder": "14.238.2",
85
- "@genesislcap/vite-builder": "14.238.2",
86
- "@genesislcap/webpack-builder": "14.238.2",
80
+ "@genesislcap/foundation-testing": "14.240.0",
81
+ "@genesislcap/genx": "14.240.0",
82
+ "@genesislcap/rollup-builder": "14.240.0",
83
+ "@genesislcap/ts-builder": "14.240.0",
84
+ "@genesislcap/uvu-playwright-builder": "14.240.0",
85
+ "@genesislcap/vite-builder": "14.240.0",
86
+ "@genesislcap/webpack-builder": "14.240.0",
87
87
  "rimraf": "^5.0.0"
88
88
  },
89
89
  "dependencies": {
90
- "@genesislcap/foundation-auth": "14.238.2",
91
- "@genesislcap/foundation-comms": "14.238.2",
92
- "@genesislcap/foundation-events": "14.238.2",
93
- "@genesislcap/foundation-i18n": "14.238.2",
94
- "@genesislcap/foundation-logger": "14.238.2",
95
- "@genesislcap/foundation-login": "14.238.2",
96
- "@genesislcap/foundation-shell": "14.238.2",
97
- "@genesislcap/foundation-ui": "14.238.2",
98
- "@genesislcap/foundation-user": "14.238.2",
99
- "@genesislcap/foundation-utils": "14.238.2",
100
- "@genesislcap/foundation-zero": "14.238.2",
101
- "@genesislcap/rapid-design-system": "14.238.2",
102
- "@genesislcap/web-core": "14.238.2",
90
+ "@genesislcap/foundation-auth": "14.240.0",
91
+ "@genesislcap/foundation-comms": "14.240.0",
92
+ "@genesislcap/foundation-events": "14.240.0",
93
+ "@genesislcap/foundation-i18n": "14.240.0",
94
+ "@genesislcap/foundation-logger": "14.240.0",
95
+ "@genesislcap/foundation-login": "14.240.0",
96
+ "@genesislcap/foundation-shell": "14.240.0",
97
+ "@genesislcap/foundation-ui": "14.240.0",
98
+ "@genesislcap/foundation-user": "14.240.0",
99
+ "@genesislcap/foundation-utils": "14.240.0",
100
+ "@genesislcap/foundation-zero": "14.240.0",
101
+ "@genesislcap/rapid-design-system": "14.240.0",
102
+ "@genesislcap/web-core": "14.240.0",
103
103
  "tslib": "^2.3.1"
104
104
  },
105
105
  "repository": {
@@ -111,5 +111,5 @@
111
111
  "access": "public"
112
112
  },
113
113
  "customElements": "dist/custom-elements.json",
114
- "gitHead": "44e2630e58af14a1db9f26950b01ca389031f7cf"
114
+ "gitHead": "dbcec460d84de3d38117feee93e80ca04fcec4e6"
115
115
  }