@genesislcap/foundation-header 14.291.2-alpha-372cecd.0 → 14.291.2-alpha-e5017be.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.
- package/dist/custom-elements.json +44 -0
- package/dist/dts/main/main.d.ts +29 -17
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/esm/main/main.js +7 -0
- package/dist/foundation-header.api.json +30 -0
- package/dist/foundation-header.d.ts +29 -17
- package/docs/api/foundation-header.navigation.luminancetoggle.md +11 -0
- package/docs/api/foundation-header.navigation.md +1 -0
- package/docs/api-report.md +2 -0
- package/package.json +22 -22
|
@@ -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",
|
|
@@ -798,6 +806,18 @@
|
|
|
798
806
|
"module": "src/main/main.ts"
|
|
799
807
|
}
|
|
800
808
|
},
|
|
809
|
+
{
|
|
810
|
+
"kind": "field",
|
|
811
|
+
"name": "luminanceToggle",
|
|
812
|
+
"type": {
|
|
813
|
+
"text": "boolean"
|
|
814
|
+
},
|
|
815
|
+
"default": "false",
|
|
816
|
+
"inheritedFrom": {
|
|
817
|
+
"name": "Navigation",
|
|
818
|
+
"module": "src/main/main.ts"
|
|
819
|
+
}
|
|
820
|
+
},
|
|
801
821
|
{
|
|
802
822
|
"kind": "field",
|
|
803
823
|
"name": "userName",
|
|
@@ -1507,6 +1527,18 @@
|
|
|
1507
1527
|
"module": "src/main/main.ts"
|
|
1508
1528
|
}
|
|
1509
1529
|
},
|
|
1530
|
+
{
|
|
1531
|
+
"kind": "field",
|
|
1532
|
+
"name": "luminanceToggle",
|
|
1533
|
+
"type": {
|
|
1534
|
+
"text": "boolean"
|
|
1535
|
+
},
|
|
1536
|
+
"default": "false",
|
|
1537
|
+
"inheritedFrom": {
|
|
1538
|
+
"name": "Navigation",
|
|
1539
|
+
"module": "src/main/main.ts"
|
|
1540
|
+
}
|
|
1541
|
+
},
|
|
1510
1542
|
{
|
|
1511
1543
|
"kind": "field",
|
|
1512
1544
|
"name": "userName",
|
|
@@ -1955,6 +1987,18 @@
|
|
|
1955
1987
|
"module": "src/main/main.ts"
|
|
1956
1988
|
}
|
|
1957
1989
|
},
|
|
1990
|
+
{
|
|
1991
|
+
"kind": "field",
|
|
1992
|
+
"name": "luminanceToggle",
|
|
1993
|
+
"type": {
|
|
1994
|
+
"text": "boolean"
|
|
1995
|
+
},
|
|
1996
|
+
"default": "false",
|
|
1997
|
+
"inheritedFrom": {
|
|
1998
|
+
"name": "Navigation",
|
|
1999
|
+
"module": "src/main/main.ts"
|
|
2000
|
+
}
|
|
2001
|
+
},
|
|
1958
2002
|
{
|
|
1959
2003
|
"kind": "field",
|
|
1960
2004
|
"name": "userName",
|
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -86,6 +86,9 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
86
86
|
getAttributeNS(namespace: string, localName: string): string;
|
|
87
87
|
getAttributeNames(): string[];
|
|
88
88
|
getAttributeNode(qualifiedName: string): Attr;
|
|
89
|
+
/**
|
|
90
|
+
* Username of the logged in user
|
|
91
|
+
*/
|
|
89
92
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
90
93
|
getBoundingClientRect(): DOMRect;
|
|
91
94
|
getClientRects(): DOMRectList;
|
|
@@ -107,7 +110,14 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
107
110
|
releasePointerCapture(pointerId: number): void;
|
|
108
111
|
removeAttribute(qualifiedName: string): void;
|
|
109
112
|
removeAttributeNS(namespace: string, localName: string): void;
|
|
110
|
-
removeAttributeNode(attr: Attr): Attr;
|
|
113
|
+
removeAttributeNode(attr: Attr): Attr; /**
|
|
114
|
+
* Boolean attribute which controls whether to show the miscellaneous (menu) icon on the navigation bar
|
|
115
|
+
* Control via `show-luminance-toggle-button`
|
|
116
|
+
*
|
|
117
|
+
* @remarks
|
|
118
|
+
*
|
|
119
|
+
* If the user clicks the icon when shown then this class will emit the 'misc-icon-clicked' event
|
|
120
|
+
*/
|
|
111
121
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
112
122
|
requestPointerLock(): void;
|
|
113
123
|
scroll(options?: ScrollToOptions): void;
|
|
@@ -145,6 +155,9 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
145
155
|
hasChildNodes(): boolean;
|
|
146
156
|
insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1;
|
|
147
157
|
isDefaultNamespace(namespace: string): boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Object which defines the language options to be displayed in the language selector
|
|
160
|
+
*/
|
|
148
161
|
isEqualNode(otherNode: Node): boolean;
|
|
149
162
|
isSameNode(otherNode: Node): boolean;
|
|
150
163
|
lookupNamespaceURI(prefix: string): string;
|
|
@@ -194,13 +207,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
194
207
|
ariaMultiSelectable: string;
|
|
195
208
|
ariaOrientation: string;
|
|
196
209
|
ariaPlaceholder: string;
|
|
197
|
-
ariaPosInSet: string;
|
|
198
|
-
* Boolean attribute which controls whether to show the account menu on the navigation bar
|
|
199
|
-
* Control via `show-account-menu`
|
|
200
|
-
*
|
|
201
|
-
* @remarks
|
|
202
|
-
* If this attribute is not set then the account menu is not shown
|
|
203
|
-
*/
|
|
210
|
+
ariaPosInSet: string;
|
|
204
211
|
ariaPressed: string;
|
|
205
212
|
ariaReadOnly: string;
|
|
206
213
|
ariaRequired: string;
|
|
@@ -232,8 +239,20 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
232
239
|
readonly lastElementChild: Element;
|
|
233
240
|
append(...nodes: (string | Node)[]): void;
|
|
234
241
|
prepend(...nodes: (string | Node)[]): void;
|
|
242
|
+
/**
|
|
243
|
+
* Selects the appropriate template based on the component's state
|
|
244
|
+
* @returns \{ViewTemplate<Navigation>\}
|
|
245
|
+
*/
|
|
235
246
|
querySelector<K_7 extends keyof HTMLElementTagNameMap>(selectors: K_7): HTMLElementTagNameMap[K_7];
|
|
247
|
+
/**
|
|
248
|
+
* Selects the appropriate template based on the component's state
|
|
249
|
+
* @returns \{ViewTemplate<Navigation>\}
|
|
250
|
+
*/
|
|
236
251
|
querySelector<K_8 extends keyof SVGElementTagNameMap>(selectors: K_8): SVGElementTagNameMap[K_8];
|
|
252
|
+
/**
|
|
253
|
+
* Selects the appropriate template based on the component's state
|
|
254
|
+
* @returns \{ViewTemplate<Navigation>\}
|
|
255
|
+
*/
|
|
237
256
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
|
238
257
|
querySelectorAll<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): NodeListOf<HTMLElementTagNameMap[K_9]>;
|
|
239
258
|
querySelectorAll<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): NodeListOf<SVGElementTagNameMap[K_10]>;
|
|
@@ -320,15 +339,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
320
339
|
onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
321
340
|
onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
322
341
|
onstalled: (this: GlobalEventHandlers, ev: Event) => any;
|
|
323
|
-
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
324
|
-
* Load remote components
|
|
325
|
-
*
|
|
326
|
-
* @remarks
|
|
327
|
-
*
|
|
328
|
-
* With regards to module federation
|
|
329
|
-
*
|
|
330
|
-
* @internal
|
|
331
|
-
*/
|
|
342
|
+
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
332
343
|
onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
333
344
|
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
|
|
334
345
|
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -403,6 +414,7 @@ export declare class Navigation extends Navigation_base {
|
|
|
403
414
|
authRouting: AuthRouting;
|
|
404
415
|
loginRouting: LoginRouting;
|
|
405
416
|
user: User;
|
|
417
|
+
luminanceToggle: boolean;
|
|
406
418
|
/**
|
|
407
419
|
* @internal
|
|
408
420
|
* Flag to indicate if the component is ready
|
|
@@ -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,EAA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;;;;;;;;;;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"}
|
package/dist/esm/main/main.js
CHANGED
|
@@ -55,6 +55,7 @@ let Navigation = class Navigation extends EventEmitter(GenesisElement) {
|
|
|
55
55
|
constructor() {
|
|
56
56
|
var _a;
|
|
57
57
|
super(...arguments);
|
|
58
|
+
this.luminanceToggle = false;
|
|
58
59
|
/**
|
|
59
60
|
* @internal
|
|
60
61
|
* Flag to indicate if the component is ready
|
|
@@ -134,6 +135,7 @@ let Navigation = class Navigation extends EventEmitter(GenesisElement) {
|
|
|
134
135
|
return __awaiter(this, void 0, void 0, function* () {
|
|
135
136
|
_super.connectedCallback.call(this);
|
|
136
137
|
logger.debug(`foundation-header is now connected to the DOM`);
|
|
138
|
+
localStorage.setItem('luminanceToggle', this.luminanceToggle.toString());
|
|
137
139
|
yield this.loadRemotes();
|
|
138
140
|
this.userName = (_a = this.user.userName) !== null && _a !== void 0 ? _a : 'Genesis User';
|
|
139
141
|
});
|
|
@@ -278,6 +280,8 @@ let Navigation = class Navigation extends EventEmitter(GenesisElement) {
|
|
|
278
280
|
*/
|
|
279
281
|
luminanceIconEvent() {
|
|
280
282
|
this.$emit('luminance-icon-clicked');
|
|
283
|
+
this.luminanceToggle = !this.luminanceToggle;
|
|
284
|
+
localStorage.setItem('luminanceToggle', this.luminanceToggle.toString());
|
|
281
285
|
}
|
|
282
286
|
/**
|
|
283
287
|
* Emits the event corresponding to the miscellaneous icon being clicked
|
|
@@ -364,6 +368,9 @@ __decorate([
|
|
|
364
368
|
__decorate([
|
|
365
369
|
User
|
|
366
370
|
], Navigation.prototype, "user", void 0);
|
|
371
|
+
__decorate([
|
|
372
|
+
observable
|
|
373
|
+
], Navigation.prototype, "luminanceToggle", void 0);
|
|
367
374
|
__decorate([
|
|
368
375
|
observable
|
|
369
376
|
], 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)",
|
|
@@ -244,6 +244,7 @@ export declare class Navigation extends Navigation_base {
|
|
|
244
244
|
authRouting: AuthRouting;
|
|
245
245
|
loginRouting: LoginRouting;
|
|
246
246
|
user: User;
|
|
247
|
+
luminanceToggle: boolean;
|
|
247
248
|
/**
|
|
248
249
|
* @internal
|
|
249
250
|
* Flag to indicate if the component is ready
|
|
@@ -560,6 +561,9 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
560
561
|
getAttributeNS(namespace: string, localName: string): string;
|
|
561
562
|
getAttributeNames(): string[];
|
|
562
563
|
getAttributeNode(qualifiedName: string): Attr;
|
|
564
|
+
/**
|
|
565
|
+
* Username of the logged in user
|
|
566
|
+
*/
|
|
563
567
|
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
564
568
|
getBoundingClientRect(): DOMRect;
|
|
565
569
|
getClientRects(): DOMRectList;
|
|
@@ -581,7 +585,14 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
581
585
|
releasePointerCapture(pointerId: number): void;
|
|
582
586
|
removeAttribute(qualifiedName: string): void;
|
|
583
587
|
removeAttributeNS(namespace: string, localName: string): void;
|
|
584
|
-
removeAttributeNode(attr: Attr): Attr;
|
|
588
|
+
removeAttributeNode(attr: Attr): Attr; /**
|
|
589
|
+
* Boolean attribute which controls whether to show the miscellaneous (menu) icon on the navigation bar
|
|
590
|
+
* Control via `show-luminance-toggle-button`
|
|
591
|
+
*
|
|
592
|
+
* @remarks
|
|
593
|
+
*
|
|
594
|
+
* If the user clicks the icon when shown then this class will emit the 'misc-icon-clicked' event
|
|
595
|
+
*/
|
|
585
596
|
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
586
597
|
requestPointerLock(): void;
|
|
587
598
|
scroll(options?: ScrollToOptions): void;
|
|
@@ -619,6 +630,9 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
619
630
|
hasChildNodes(): boolean;
|
|
620
631
|
insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1;
|
|
621
632
|
isDefaultNamespace(namespace: string): boolean;
|
|
633
|
+
/**
|
|
634
|
+
* Object which defines the language options to be displayed in the language selector
|
|
635
|
+
*/
|
|
622
636
|
isEqualNode(otherNode: Node): boolean;
|
|
623
637
|
isSameNode(otherNode: Node): boolean;
|
|
624
638
|
lookupNamespaceURI(prefix: string): string;
|
|
@@ -668,13 +682,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
668
682
|
ariaMultiSelectable: string;
|
|
669
683
|
ariaOrientation: string;
|
|
670
684
|
ariaPlaceholder: string;
|
|
671
|
-
ariaPosInSet: string;
|
|
672
|
-
* Boolean attribute which controls whether to show the account menu on the navigation bar
|
|
673
|
-
* Control via `show-account-menu`
|
|
674
|
-
*
|
|
675
|
-
* @remarks
|
|
676
|
-
* If this attribute is not set then the account menu is not shown
|
|
677
|
-
*/
|
|
685
|
+
ariaPosInSet: string;
|
|
678
686
|
ariaPressed: string;
|
|
679
687
|
ariaReadOnly: string;
|
|
680
688
|
ariaRequired: string;
|
|
@@ -706,8 +714,20 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
706
714
|
readonly lastElementChild: Element;
|
|
707
715
|
append(...nodes: (string | Node)[]): void;
|
|
708
716
|
prepend(...nodes: (string | Node)[]): void;
|
|
717
|
+
/**
|
|
718
|
+
* Selects the appropriate template based on the component's state
|
|
719
|
+
* @returns \{ViewTemplate<Navigation>\}
|
|
720
|
+
*/
|
|
709
721
|
querySelector<K_7 extends keyof HTMLElementTagNameMap>(selectors: K_7): HTMLElementTagNameMap[K_7];
|
|
722
|
+
/**
|
|
723
|
+
* Selects the appropriate template based on the component's state
|
|
724
|
+
* @returns \{ViewTemplate<Navigation>\}
|
|
725
|
+
*/
|
|
710
726
|
querySelector<K_8 extends keyof SVGElementTagNameMap>(selectors: K_8): SVGElementTagNameMap[K_8];
|
|
727
|
+
/**
|
|
728
|
+
* Selects the appropriate template based on the component's state
|
|
729
|
+
* @returns \{ViewTemplate<Navigation>\}
|
|
730
|
+
*/
|
|
711
731
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
|
712
732
|
querySelectorAll<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): NodeListOf<HTMLElementTagNameMap[K_9]>;
|
|
713
733
|
querySelectorAll<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): NodeListOf<SVGElementTagNameMap[K_10]>;
|
|
@@ -794,15 +814,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
794
814
|
onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
795
815
|
onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
796
816
|
onstalled: (this: GlobalEventHandlers, ev: Event) => any;
|
|
797
|
-
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
798
|
-
* Load remote components
|
|
799
|
-
*
|
|
800
|
-
* @remarks
|
|
801
|
-
*
|
|
802
|
-
* With regards to module federation
|
|
803
|
-
*
|
|
804
|
-
* @internal
|
|
805
|
-
*/
|
|
817
|
+
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
806
818
|
onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
807
819
|
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
|
|
808
820
|
ontoggle: (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) > [@genesislcap/foundation-header](./foundation-header.md) > [Navigation](./foundation-header.navigation.md) > [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<{ index: number; path: string; title: string; icon: string; variant: string; }> | 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 |
|
package/docs/api-report.md
CHANGED
|
@@ -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;
|
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.291.2-alpha-
|
|
4
|
+
"version": "14.291.2-alpha-e5017be.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.291.2-alpha-
|
|
81
|
-
"@genesislcap/genx": "14.291.2-alpha-
|
|
82
|
-
"@genesislcap/rollup-builder": "14.291.2-alpha-
|
|
83
|
-
"@genesislcap/ts-builder": "14.291.2-alpha-
|
|
84
|
-
"@genesislcap/uvu-playwright-builder": "14.291.2-alpha-
|
|
85
|
-
"@genesislcap/vite-builder": "14.291.2-alpha-
|
|
86
|
-
"@genesislcap/webpack-builder": "14.291.2-alpha-
|
|
80
|
+
"@genesislcap/foundation-testing": "14.291.2-alpha-e5017be.0",
|
|
81
|
+
"@genesislcap/genx": "14.291.2-alpha-e5017be.0",
|
|
82
|
+
"@genesislcap/rollup-builder": "14.291.2-alpha-e5017be.0",
|
|
83
|
+
"@genesislcap/ts-builder": "14.291.2-alpha-e5017be.0",
|
|
84
|
+
"@genesislcap/uvu-playwright-builder": "14.291.2-alpha-e5017be.0",
|
|
85
|
+
"@genesislcap/vite-builder": "14.291.2-alpha-e5017be.0",
|
|
86
|
+
"@genesislcap/webpack-builder": "14.291.2-alpha-e5017be.0",
|
|
87
87
|
"rimraf": "^5.0.0"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@genesislcap/foundation-auth": "14.291.2-alpha-
|
|
91
|
-
"@genesislcap/foundation-comms": "14.291.2-alpha-
|
|
92
|
-
"@genesislcap/foundation-events": "14.291.2-alpha-
|
|
93
|
-
"@genesislcap/foundation-i18n": "14.291.2-alpha-
|
|
94
|
-
"@genesislcap/foundation-logger": "14.291.2-alpha-
|
|
95
|
-
"@genesislcap/foundation-login": "14.291.2-alpha-
|
|
96
|
-
"@genesislcap/foundation-shell": "14.291.2-alpha-
|
|
97
|
-
"@genesislcap/foundation-ui": "14.291.2-alpha-
|
|
98
|
-
"@genesislcap/foundation-user": "14.291.2-alpha-
|
|
99
|
-
"@genesislcap/foundation-utils": "14.291.2-alpha-
|
|
100
|
-
"@genesislcap/foundation-zero": "14.291.2-alpha-
|
|
101
|
-
"@genesislcap/rapid-design-system": "14.291.2-alpha-
|
|
102
|
-
"@genesislcap/web-core": "14.291.2-alpha-
|
|
90
|
+
"@genesislcap/foundation-auth": "14.291.2-alpha-e5017be.0",
|
|
91
|
+
"@genesislcap/foundation-comms": "14.291.2-alpha-e5017be.0",
|
|
92
|
+
"@genesislcap/foundation-events": "14.291.2-alpha-e5017be.0",
|
|
93
|
+
"@genesislcap/foundation-i18n": "14.291.2-alpha-e5017be.0",
|
|
94
|
+
"@genesislcap/foundation-logger": "14.291.2-alpha-e5017be.0",
|
|
95
|
+
"@genesislcap/foundation-login": "14.291.2-alpha-e5017be.0",
|
|
96
|
+
"@genesislcap/foundation-shell": "14.291.2-alpha-e5017be.0",
|
|
97
|
+
"@genesislcap/foundation-ui": "14.291.2-alpha-e5017be.0",
|
|
98
|
+
"@genesislcap/foundation-user": "14.291.2-alpha-e5017be.0",
|
|
99
|
+
"@genesislcap/foundation-utils": "14.291.2-alpha-e5017be.0",
|
|
100
|
+
"@genesislcap/foundation-zero": "14.291.2-alpha-e5017be.0",
|
|
101
|
+
"@genesislcap/rapid-design-system": "14.291.2-alpha-e5017be.0",
|
|
102
|
+
"@genesislcap/web-core": "14.291.2-alpha-e5017be.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": "
|
|
114
|
+
"gitHead": "edd78f3368fa1904594a2222e35b346f6fade173"
|
|
115
115
|
}
|