@genesislcap/foundation-header 14.293.0 → 14.293.1

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.
@@ -359,6 +359,14 @@
359
359
  "text": "User"
360
360
  }
361
361
  },
362
+ {
363
+ "kind": "field",
364
+ "name": "luminanceToggle",
365
+ "type": {
366
+ "text": "boolean"
367
+ },
368
+ "default": "false"
369
+ },
362
370
  {
363
371
  "kind": "field",
364
372
  "name": "userName",
@@ -368,6 +376,10 @@
368
376
  "privacy": "public",
369
377
  "description": "Username of the logged in user"
370
378
  },
379
+ {
380
+ "kind": "method",
381
+ "name": "setLuminance"
382
+ },
371
383
  {
372
384
  "kind": "field",
373
385
  "name": "logoSrc",
@@ -816,6 +828,18 @@
816
828
  "module": "src/main/main.ts"
817
829
  }
818
830
  },
831
+ {
832
+ "kind": "field",
833
+ "name": "luminanceToggle",
834
+ "type": {
835
+ "text": "boolean"
836
+ },
837
+ "default": "false",
838
+ "inheritedFrom": {
839
+ "name": "Navigation",
840
+ "module": "src/main/main.ts"
841
+ }
842
+ },
819
843
  {
820
844
  "kind": "field",
821
845
  "name": "userName",
@@ -829,6 +853,14 @@
829
853
  "module": "src/main/main.ts"
830
854
  }
831
855
  },
856
+ {
857
+ "kind": "method",
858
+ "name": "setLuminance",
859
+ "inheritedFrom": {
860
+ "name": "Navigation",
861
+ "module": "src/main/main.ts"
862
+ }
863
+ },
832
864
  {
833
865
  "kind": "field",
834
866
  "name": "logoSrc",
@@ -1564,6 +1596,18 @@
1564
1596
  "module": "src/main/main.ts"
1565
1597
  }
1566
1598
  },
1599
+ {
1600
+ "kind": "field",
1601
+ "name": "luminanceToggle",
1602
+ "type": {
1603
+ "text": "boolean"
1604
+ },
1605
+ "default": "false",
1606
+ "inheritedFrom": {
1607
+ "name": "Navigation",
1608
+ "module": "src/main/main.ts"
1609
+ }
1610
+ },
1567
1611
  {
1568
1612
  "kind": "field",
1569
1613
  "name": "userName",
@@ -1577,6 +1621,14 @@
1577
1621
  "module": "src/main/main.ts"
1578
1622
  }
1579
1623
  },
1624
+ {
1625
+ "kind": "method",
1626
+ "name": "setLuminance",
1627
+ "inheritedFrom": {
1628
+ "name": "Navigation",
1629
+ "module": "src/main/main.ts"
1630
+ }
1631
+ },
1580
1632
  {
1581
1633
  "kind": "field",
1582
1634
  "name": "logoSrc",
@@ -2025,6 +2077,18 @@
2025
2077
  "module": "src/main/main.ts"
2026
2078
  }
2027
2079
  },
2080
+ {
2081
+ "kind": "field",
2082
+ "name": "luminanceToggle",
2083
+ "type": {
2084
+ "text": "boolean"
2085
+ },
2086
+ "default": "false",
2087
+ "inheritedFrom": {
2088
+ "name": "Navigation",
2089
+ "module": "src/main/main.ts"
2090
+ }
2091
+ },
2028
2092
  {
2029
2093
  "kind": "field",
2030
2094
  "name": "userName",
@@ -2038,6 +2102,14 @@
2038
2102
  "module": "src/main/main.ts"
2039
2103
  }
2040
2104
  },
2105
+ {
2106
+ "kind": "method",
2107
+ "name": "setLuminance",
2108
+ "inheritedFrom": {
2109
+ "name": "Navigation",
2110
+ "module": "src/main/main.ts"
2111
+ }
2112
+ },
2041
2113
  {
2042
2114
  "kind": "field",
2043
2115
  "name": "logoSrc",
@@ -2590,6 +2662,33 @@
2590
2662
  }
2591
2663
  ]
2592
2664
  },
2665
+ {
2666
+ "kind": "javascript-module",
2667
+ "path": "src/tags/index.ts",
2668
+ "declarations": [],
2669
+ "exports": [
2670
+ {
2671
+ "kind": "js",
2672
+ "name": "*",
2673
+ "declaration": {
2674
+ "name": "*",
2675
+ "package": "./tags"
2676
+ }
2677
+ }
2678
+ ]
2679
+ },
2680
+ {
2681
+ "kind": "javascript-module",
2682
+ "path": "src/tags/tags.ts",
2683
+ "declarations": [],
2684
+ "exports": []
2685
+ },
2686
+ {
2687
+ "kind": "javascript-module",
2688
+ "path": "src/templates/rapid.template.ts",
2689
+ "declarations": [],
2690
+ "exports": []
2691
+ },
2593
2692
  {
2594
2693
  "kind": "javascript-module",
2595
2694
  "path": "src/styles/colors.ts",
@@ -2751,33 +2850,6 @@
2751
2850
  }
2752
2851
  ]
2753
2852
  },
2754
- {
2755
- "kind": "javascript-module",
2756
- "path": "src/templates/rapid.template.ts",
2757
- "declarations": [],
2758
- "exports": []
2759
- },
2760
- {
2761
- "kind": "javascript-module",
2762
- "path": "src/tags/index.ts",
2763
- "declarations": [],
2764
- "exports": [
2765
- {
2766
- "kind": "js",
2767
- "name": "*",
2768
- "declaration": {
2769
- "name": "*",
2770
- "package": "./tags"
2771
- }
2772
- }
2773
- ]
2774
- },
2775
- {
2776
- "kind": "javascript-module",
2777
- "path": "src/tags/tags.ts",
2778
- "declarations": [],
2779
- "exports": []
2780
- },
2781
2853
  {
2782
2854
  "kind": "javascript-module",
2783
2855
  "path": "src/utils/index.ts",
@@ -88,7 +88,9 @@ declare const Navigation_base: abstract new (...args: any[]) => {
88
88
  getAttributeNode(qualifiedName: string): Attr;
89
89
  getAttributeNodeNS(namespace: string, localName: string): Attr;
90
90
  getBoundingClientRect(): DOMRect;
91
- getClientRects(): DOMRectList;
91
+ getClientRects(): DOMRectList; /**
92
+ * Username of the logged in user
93
+ */
92
94
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
93
95
  getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
94
96
  getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
@@ -101,7 +103,9 @@ declare const Navigation_base: abstract new (...args: any[]) => {
101
103
  hasAttributes(): boolean;
102
104
  hasPointerCapture(pointerId: number): boolean;
103
105
  insertAdjacentElement(where: InsertPosition, element: Element): Element;
104
- /**
106
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
107
+ insertAdjacentText(where: InsertPosition, data: string): void;
108
+ matches(selectors: string): boolean; /**
105
109
  * Boolean attribute which controls whether to show the luminance (moon) icon on the navigation bar
106
110
  * Control via`show-luminance-toggle-button`
107
111
  *
@@ -109,9 +113,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
109
113
  *
110
114
  * If the user clicks the icon when shown then this class will emit the 'luminance-icon-clicked' event
111
115
  */
112
- insertAdjacentHTML(position: InsertPosition, text: string): void;
113
- insertAdjacentText(where: InsertPosition, data: string): void;
114
- matches(selectors: string): boolean;
115
116
  releasePointerCapture(pointerId: number): void;
116
117
  removeAttribute(qualifiedName: string): void;
117
118
  removeAttributeNS(namespace: string, localName: string): void;
@@ -151,15 +152,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
151
152
  contains(other: Node): boolean;
152
153
  getRootNode(options?: GetRootNodeOptions): Node;
153
154
  hasChildNodes(): boolean;
154
- insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1; /**
155
- * Boolean attribute which controls whether to show the language selector on the navigation bar
156
- * Control via `show-language-selector`
157
- *
158
- * @experimental
159
- * @remarks
160
- *
161
- * Requires `i18nextOptions` to be set
162
- */
155
+ insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1;
163
156
  isDefaultNamespace(namespace: string): boolean;
164
157
  isEqualNode(otherNode: Node): boolean;
165
158
  isSameNode(otherNode: Node): boolean;
@@ -177,14 +170,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
177
170
  readonly DOCUMENT_POSITION_CONTAINS: number;
178
171
  readonly DOCUMENT_POSITION_DISCONNECTED: number;
179
172
  readonly DOCUMENT_POSITION_FOLLOWING: number;
180
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number; /**
181
- * String attribute which controls the position of the logout button in the header
182
- * Control via `logout-button-position`
183
- *
184
- * @remarks
185
- *
186
- * If this attribute is not set then the logout button is shown in the side nav
187
- */
173
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
188
174
  readonly DOCUMENT_POSITION_PRECEDING: number;
189
175
  readonly DOCUMENT_TYPE_NODE: number;
190
176
  readonly ELEMENT_NODE: number;
@@ -200,7 +186,11 @@ declare const Navigation_base: abstract new (...args: any[]) => {
200
186
  ariaChecked: string;
201
187
  ariaColCount: string;
202
188
  ariaColIndex: string;
203
- ariaColIndexText: string;
189
+ ariaColIndexText: string; /**
190
+ * If present the defined route buttons will be rendered in the header 'routes' slot
191
+ *
192
+ * @deprecated - Use `routeNavItems` instead.
193
+ */
204
194
  ariaColSpan: string;
205
195
  ariaCurrent: string;
206
196
  ariaDisabled: string;
@@ -233,13 +223,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
233
223
  ariaValueMin: string;
234
224
  ariaValueNow: string;
235
225
  ariaValueText: string;
236
- role: string; /**
237
- * Boolean attribute which controls whether to show the account menu on the navigation bar
238
- * Control via `show-account-menu`
239
- *
240
- * @remarks
241
- * If this attribute is not set then the account menu is not shown
242
- */
226
+ role: string;
243
227
  animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
244
228
  getAnimations(options?: GetAnimationsOptions): Animation[];
245
229
  after(...nodes: (string | Node)[]): void;
@@ -304,7 +288,15 @@ declare const Navigation_base: abstract new (...args: any[]) => {
304
288
  ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
305
289
  oninput: (this: GlobalEventHandlers, ev: Event) => any;
306
290
  oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
307
- onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
291
+ onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any; /**
292
+ * Changes the language of the application
293
+ *
294
+ * @remarks
295
+ *
296
+ * Activated when the user selects a language from the language selector that uses the I18next service.
297
+ *
298
+ * @experimental
299
+ */
308
300
  onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
309
301
  onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
310
302
  onload: (this: GlobalEventHandlers, ev: Event) => any;
@@ -419,6 +411,7 @@ export declare class Navigation extends Navigation_base {
419
411
  authRouting: AuthRouting;
420
412
  loginRouting: LoginRouting;
421
413
  user: User;
414
+ luminanceToggle: boolean;
422
415
  /**
423
416
  * @internal
424
417
  * Flag to indicate if the component is ready
@@ -437,6 +430,7 @@ export declare class Navigation extends Navigation_base {
437
430
  * Called when the component is connected to the DOM
438
431
  */
439
432
  connectedCallback(): Promise<void>;
433
+ setLuminance(): void;
440
434
  /**
441
435
  * Optional attribute which controls the icon to show on the navigation bar and flyout
442
436
  * Control via `logo-src`
@@ -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;AAE1E,OAAO,EAAsB,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAQ,SAAS,EAA6C,MAAM,uBAAuB,CAAC;AAEnG,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMhD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,wBAAwB,EAAE,IAAI,CAAC;IAC/B,gBAAgB,EAAE,IAAI,CAAC;IACvB,mBAAmB,EAAE,IAAI,CAAC;IAC1B,2BAA2B,EAAE,IAAI,CAAC;IAClC,kBAAkB,EAAE,IAAI,CAAC;IACzB,oBAAoB,EAAE;QAAE,IAAI,EAAE,sBAAsB,CAAC;QAAC,OAAO,EAAE,GAAG,CAAA;KAAE,CAAC;CACtE,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC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;;;;;;;OAUG;IACI,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAUrC;;;;;OAKG;IACH,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAI5C;;;;;;;;;OASG;IACH,mBAAmB,IAAI,IAAI;IAI3B;;;;;;;;OAQG;IACH,QAAQ,IAAI,IAAI;IAIhB;;;;;;;;;OASG;IACH,kBAAkB,IAAI,IAAI;IAM1B;;;;;;;;;OASG;IACH,aAAa,IAAI,IAAI;IAIrB;;;;;;;;;OASG;IACH,qBAAqB,IAAI,IAAI;IAI7B;;;;;;;;OAQG;IACH,cAAc,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI;IAKpC;;;;;;;;OAQG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAMrC;;;OAGG;IACH,oBAAoB,CAAC,YAAY,EAAE,sBAAsB,GAAG,IAAI;CASjE;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"}
@@ -56,6 +56,7 @@ let Navigation = class Navigation extends EventEmitter(GenesisElement) {
56
56
  constructor() {
57
57
  var _a;
58
58
  super(...arguments);
59
+ this.luminanceToggle = false;
59
60
  /**
60
61
  * @internal
61
62
  * Flag to indicate if the component is ready
@@ -140,10 +141,14 @@ let Navigation = class Navigation extends EventEmitter(GenesisElement) {
140
141
  return __awaiter(this, void 0, void 0, function* () {
141
142
  _super.connectedCallback.call(this);
142
143
  logger.debug(`foundation-header is now connected to the DOM`);
144
+ this.setLuminance();
143
145
  yield this.loadRemotes();
144
146
  this.userName = (_a = this.user.userName) !== null && _a !== void 0 ? _a : 'Genesis User';
145
147
  });
146
148
  }
149
+ setLuminance() {
150
+ localStorage.setItem('luminance', this.luminanceToggle ? 'light' : 'dark');
151
+ }
147
152
  /**
148
153
  * @internal
149
154
  */
@@ -284,6 +289,8 @@ let Navigation = class Navigation extends EventEmitter(GenesisElement) {
284
289
  */
285
290
  luminanceIconEvent() {
286
291
  this.$emit('luminance-icon-clicked');
292
+ this.luminanceToggle = !this.luminanceToggle;
293
+ this.setLuminance();
287
294
  }
288
295
  /**
289
296
  * Emits the event corresponding to the miscellaneous icon being clicked
@@ -370,6 +377,9 @@ __decorate([
370
377
  __decorate([
371
378
  User
372
379
  ], Navigation.prototype, "user", void 0);
380
+ __decorate([
381
+ observable
382
+ ], Navigation.prototype, "luminanceToggle", void 0);
373
383
  __decorate([
374
384
  observable
375
385
  ], Navigation.prototype, "ready", void 0);
@@ -1070,6 +1070,36 @@
1070
1070
  "isProtected": false,
1071
1071
  "isAbstract": false
1072
1072
  },
1073
+ {
1074
+ "kind": "Property",
1075
+ "canonicalReference": "@genesislcap/foundation-header!Navigation#luminanceToggle:member",
1076
+ "docComment": "",
1077
+ "excerptTokens": [
1078
+ {
1079
+ "kind": "Content",
1080
+ "text": "luminanceToggle: "
1081
+ },
1082
+ {
1083
+ "kind": "Content",
1084
+ "text": "boolean"
1085
+ },
1086
+ {
1087
+ "kind": "Content",
1088
+ "text": ";"
1089
+ }
1090
+ ],
1091
+ "isReadonly": false,
1092
+ "isOptional": false,
1093
+ "releaseTag": "Public",
1094
+ "name": "luminanceToggle",
1095
+ "propertyTypeTokenRange": {
1096
+ "startIndex": 1,
1097
+ "endIndex": 2
1098
+ },
1099
+ "isStatic": false,
1100
+ "isProtected": false,
1101
+ "isAbstract": false
1102
+ },
1073
1103
  {
1074
1104
  "kind": "Method",
1075
1105
  "canonicalReference": "@genesislcap/foundation-header!Navigation#navigateTo:member(1)",
@@ -1233,6 +1263,37 @@
1233
1263
  "isAbstract": false,
1234
1264
  "name": "selectTemplate"
1235
1265
  },
1266
+ {
1267
+ "kind": "Method",
1268
+ "canonicalReference": "@genesislcap/foundation-header!Navigation#setLuminance:member(1)",
1269
+ "docComment": "",
1270
+ "excerptTokens": [
1271
+ {
1272
+ "kind": "Content",
1273
+ "text": "setLuminance(): "
1274
+ },
1275
+ {
1276
+ "kind": "Content",
1277
+ "text": "void"
1278
+ },
1279
+ {
1280
+ "kind": "Content",
1281
+ "text": ";"
1282
+ }
1283
+ ],
1284
+ "isStatic": false,
1285
+ "returnTypeTokenRange": {
1286
+ "startIndex": 1,
1287
+ "endIndex": 2
1288
+ },
1289
+ "releaseTag": "Public",
1290
+ "isProtected": false,
1291
+ "overloadIndex": 1,
1292
+ "parameters": [],
1293
+ "isOptional": false,
1294
+ "isAbstract": false,
1295
+ "name": "setLuminance"
1296
+ },
1236
1297
  {
1237
1298
  "kind": "Property",
1238
1299
  "canonicalReference": "@genesislcap/foundation-header!Navigation#shouldShowAccountMenu:member",
@@ -245,6 +245,7 @@ export declare class Navigation extends Navigation_base {
245
245
  authRouting: AuthRouting;
246
246
  loginRouting: LoginRouting;
247
247
  user: User;
248
+ luminanceToggle: boolean;
248
249
  /**
249
250
  * @internal
250
251
  * Flag to indicate if the component is ready
@@ -263,6 +264,7 @@ export declare class Navigation extends Navigation_base {
263
264
  * Called when the component is connected to the DOM
264
265
  */
265
266
  connectedCallback(): Promise<void>;
267
+ setLuminance(): void;
266
268
  /**
267
269
  * Optional attribute which controls the icon to show on the navigation bar and flyout
268
270
  * Control via `logo-src`
@@ -568,7 +570,9 @@ declare const Navigation_base: abstract new (...args: any[]) => {
568
570
  getAttributeNode(qualifiedName: string): Attr;
569
571
  getAttributeNodeNS(namespace: string, localName: string): Attr;
570
572
  getBoundingClientRect(): DOMRect;
571
- getClientRects(): DOMRectList;
573
+ getClientRects(): DOMRectList; /**
574
+ * Username of the logged in user
575
+ */
572
576
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
573
577
  getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
574
578
  getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
@@ -581,17 +585,16 @@ declare const Navigation_base: abstract new (...args: any[]) => {
581
585
  hasAttributes(): boolean;
582
586
  hasPointerCapture(pointerId: number): boolean;
583
587
  insertAdjacentElement(where: InsertPosition, element: Element): Element;
584
- /**
585
- * Boolean attribute which controls whether to show the luminance (moon) icon on the navigation bar
586
- * Control via`show-luminance-toggle-button`
587
- *
588
- * @remarks
589
- *
590
- * If the user clicks the icon when shown then this class will emit the 'luminance-icon-clicked' event
591
- */
592
588
  insertAdjacentHTML(position: InsertPosition, text: string): void;
593
589
  insertAdjacentText(where: InsertPosition, data: string): void;
594
- matches(selectors: string): boolean;
590
+ matches(selectors: string): boolean; /**
591
+ * Boolean attribute which controls whether to show the luminance (moon) icon on the navigation bar
592
+ * Control via`show-luminance-toggle-button`
593
+ *
594
+ * @remarks
595
+ *
596
+ * If the user clicks the icon when shown then this class will emit the 'luminance-icon-clicked' event
597
+ */
595
598
  releasePointerCapture(pointerId: number): void;
596
599
  removeAttribute(qualifiedName: string): void;
597
600
  removeAttributeNS(namespace: string, localName: string): void;
@@ -631,15 +634,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
631
634
  contains(other: Node): boolean;
632
635
  getRootNode(options?: GetRootNodeOptions): Node;
633
636
  hasChildNodes(): boolean;
634
- insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1; /**
635
- * Boolean attribute which controls whether to show the language selector on the navigation bar
636
- * Control via `show-language-selector`
637
- *
638
- * @experimental
639
- * @remarks
640
- *
641
- * Requires `i18nextOptions` to be set
642
- */
637
+ insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1;
643
638
  isDefaultNamespace(namespace: string): boolean;
644
639
  isEqualNode(otherNode: Node): boolean;
645
640
  isSameNode(otherNode: Node): boolean;
@@ -657,14 +652,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
657
652
  readonly DOCUMENT_POSITION_CONTAINS: number;
658
653
  readonly DOCUMENT_POSITION_DISCONNECTED: number;
659
654
  readonly DOCUMENT_POSITION_FOLLOWING: number;
660
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number; /**
661
- * String attribute which controls the position of the logout button in the header
662
- * Control via `logout-button-position`
663
- *
664
- * @remarks
665
- *
666
- * If this attribute is not set then the logout button is shown in the side nav
667
- */
655
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
668
656
  readonly DOCUMENT_POSITION_PRECEDING: number;
669
657
  readonly DOCUMENT_TYPE_NODE: number;
670
658
  readonly ELEMENT_NODE: number;
@@ -680,7 +668,11 @@ declare const Navigation_base: abstract new (...args: any[]) => {
680
668
  ariaChecked: string;
681
669
  ariaColCount: string;
682
670
  ariaColIndex: string;
683
- ariaColIndexText: string;
671
+ ariaColIndexText: string; /**
672
+ * If present the defined route buttons will be rendered in the header 'routes' slot
673
+ *
674
+ * @deprecated - Use `routeNavItems` instead.
675
+ */
684
676
  ariaColSpan: string;
685
677
  ariaCurrent: string;
686
678
  ariaDisabled: string;
@@ -713,13 +705,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
713
705
  ariaValueMin: string;
714
706
  ariaValueNow: string;
715
707
  ariaValueText: string;
716
- role: string; /**
717
- * Boolean attribute which controls whether to show the account menu on the navigation bar
718
- * Control via `show-account-menu`
719
- *
720
- * @remarks
721
- * If this attribute is not set then the account menu is not shown
722
- */
708
+ role: string;
723
709
  animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
724
710
  getAnimations(options?: GetAnimationsOptions): Animation[];
725
711
  after(...nodes: (string | Node)[]): void;
@@ -784,7 +770,15 @@ declare const Navigation_base: abstract new (...args: any[]) => {
784
770
  ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
785
771
  oninput: (this: GlobalEventHandlers, ev: Event) => any;
786
772
  oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
787
- onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
773
+ onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any; /**
774
+ * Changes the language of the application
775
+ *
776
+ * @remarks
777
+ *
778
+ * Activated when the user selects a language from the language selector that uses the I18next service.
779
+ *
780
+ * @experimental
781
+ */
788
782
  onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
789
783
  onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
790
784
  onload: (this: GlobalEventHandlers, ev: Event) => any;
@@ -0,0 +1,11 @@
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; [luminanceToggle](./foundation-header.navigation.luminancetoggle.md)
4
+
5
+ ## Navigation.luminanceToggle property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ luminanceToggle: boolean;
11
+ ```
@@ -31,6 +31,7 @@ export declare class Navigation extends Navigation_base
31
31
  | [logoAltText](./foundation-header.navigation.logoalttext.md) | | string | Optional attribute which controls the alt text of the logo Control via <code>logo-alt-text</code> |
32
32
  | [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> |
33
33
  | [logoutButtonPosition](./foundation-header.navigation.logoutbuttonposition.md) | | 'side-nav' \| 'account-menu' \| 'none' | String attribute which controls the position of the logout button in the header Control via <code>logout-button-position</code> |
34
+ | [luminanceToggle](./foundation-header.navigation.luminancetoggle.md) | | boolean | |
34
35
  | [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 |
35
36
  | [routeNavItems](./foundation-header.navigation.routenavitems.md) | | FoundationRouteNavItem\[\] | If present the defined will be rendered in the header 'routes' slot |
36
37
  | [shouldShowAccountMenu](./foundation-header.navigation.shouldshowaccountmenu.md) | <code>readonly</code> | boolean | Computed property that determines if the account menu should be shown |
@@ -54,5 +55,6 @@ export declare class Navigation extends Navigation_base
54
55
  | [logout()](./foundation-header.navigation.logout.md) | | Logs the user out of their session |
55
56
  | [navigateTo(path)](./foundation-header.navigation.navigateto.md) | | Changes the route of the current page |
56
57
  | [selectTemplate()](./foundation-header.navigation.selecttemplate.md) | | Selects the appropriate template based on the component's state |
58
+ | [setLuminance()](./foundation-header.navigation.setluminance.md) | | |
57
59
  | [toLocalisedText(text)](./foundation-header.navigation.tolocalisedtext.md) | | To localised text |
58
60
 
@@ -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; [Navigation](./foundation-header.navigation.md) &gt; [setLuminance](./foundation-header.navigation.setluminance.md)
4
+
5
+ ## Navigation.setLuminance() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ setLuminance(): void;
11
+ ```
12
+ **Returns:**
13
+
14
+ void
15
+
@@ -122,6 +122,8 @@ export class Navigation extends Navigation_base {
122
122
  logoutButtonPosition: 'side-nav' | 'account-menu' | 'none';
123
123
  // @internal
124
124
  luminanceIconEvent(): void;
125
+ // (undocumented)
126
+ luminanceToggle: boolean;
125
127
  // @internal
126
128
  miscIconEvent(): void;
127
129
  navigateTo(path: string): void;
@@ -141,6 +143,8 @@ export class Navigation extends Navigation_base {
141
143
  routeButtonsChanged(): void;
142
144
  routeNavItems: FoundationRouteNavItem[];
143
145
  selectTemplate(): ViewTemplate<Navigation>;
146
+ // (undocumented)
147
+ setLuminance(): void;
144
148
  get shouldShowAccountMenu(): boolean;
145
149
  showAccountMenu: boolean;
146
150
  showConnectionIndicator: boolean;
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.293.0",
4
+ "version": "14.293.1",
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.293.0",
81
- "@genesislcap/genx": "14.293.0",
82
- "@genesislcap/rollup-builder": "14.293.0",
83
- "@genesislcap/ts-builder": "14.293.0",
84
- "@genesislcap/uvu-playwright-builder": "14.293.0",
85
- "@genesislcap/vite-builder": "14.293.0",
86
- "@genesislcap/webpack-builder": "14.293.0",
80
+ "@genesislcap/foundation-testing": "14.293.1",
81
+ "@genesislcap/genx": "14.293.1",
82
+ "@genesislcap/rollup-builder": "14.293.1",
83
+ "@genesislcap/ts-builder": "14.293.1",
84
+ "@genesislcap/uvu-playwright-builder": "14.293.1",
85
+ "@genesislcap/vite-builder": "14.293.1",
86
+ "@genesislcap/webpack-builder": "14.293.1",
87
87
  "rimraf": "^5.0.0"
88
88
  },
89
89
  "dependencies": {
90
- "@genesislcap/foundation-auth": "14.293.0",
91
- "@genesislcap/foundation-comms": "14.293.0",
92
- "@genesislcap/foundation-events": "14.293.0",
93
- "@genesislcap/foundation-i18n": "14.293.0",
94
- "@genesislcap/foundation-logger": "14.293.0",
95
- "@genesislcap/foundation-login": "14.293.0",
96
- "@genesislcap/foundation-shell": "14.293.0",
97
- "@genesislcap/foundation-ui": "14.293.0",
98
- "@genesislcap/foundation-user": "14.293.0",
99
- "@genesislcap/foundation-utils": "14.293.0",
100
- "@genesislcap/foundation-zero": "14.293.0",
101
- "@genesislcap/rapid-design-system": "14.293.0",
102
- "@genesislcap/web-core": "14.293.0",
90
+ "@genesislcap/foundation-auth": "14.293.1",
91
+ "@genesislcap/foundation-comms": "14.293.1",
92
+ "@genesislcap/foundation-events": "14.293.1",
93
+ "@genesislcap/foundation-i18n": "14.293.1",
94
+ "@genesislcap/foundation-logger": "14.293.1",
95
+ "@genesislcap/foundation-login": "14.293.1",
96
+ "@genesislcap/foundation-shell": "14.293.1",
97
+ "@genesislcap/foundation-ui": "14.293.1",
98
+ "@genesislcap/foundation-user": "14.293.1",
99
+ "@genesislcap/foundation-utils": "14.293.1",
100
+ "@genesislcap/foundation-zero": "14.293.1",
101
+ "@genesislcap/rapid-design-system": "14.293.1",
102
+ "@genesislcap/web-core": "14.293.1",
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": "0e7819599e7be45c7ab25a916124a47278707c12"
114
+ "gitHead": "79f870205c14e857233724904d5eb8e034d2a72e"
115
115
  }