@genesislcap/foundation-header 14.71.1-auth-mf.17 → 14.71.1-auth-mf.19
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 +49 -46
- package/dist/dts/main/main.d.ts +5 -6
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/esm/main/main.js +13 -11
- package/dist/foundation-header.api.json +65 -34
- package/dist/foundation-header.d.ts +5 -6
- package/docs/api/{foundation-header.navigation.logoututility.md → foundation-header.navigation.authrouting.md} +3 -3
- package/docs/api/foundation-header.navigation.md +3 -2
- package/docs/api/foundation-header.navigation.user.md +11 -0
- package/docs/api/foundation-header.navigation.username.md +1 -3
- package/docs/api-report.md +8 -4
- package/package.json +9 -9
|
@@ -169,9 +169,16 @@
|
|
|
169
169
|
"members": [
|
|
170
170
|
{
|
|
171
171
|
"kind": "field",
|
|
172
|
-
"name": "
|
|
172
|
+
"name": "authRouting",
|
|
173
173
|
"type": {
|
|
174
|
-
"text": "
|
|
174
|
+
"text": "AuthRouting"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"kind": "field",
|
|
179
|
+
"name": "user",
|
|
180
|
+
"type": {
|
|
181
|
+
"text": "User"
|
|
175
182
|
}
|
|
176
183
|
},
|
|
177
184
|
{
|
|
@@ -196,15 +203,6 @@
|
|
|
196
203
|
},
|
|
197
204
|
"default": "false"
|
|
198
205
|
},
|
|
199
|
-
{
|
|
200
|
-
"kind": "field",
|
|
201
|
-
"name": "userName",
|
|
202
|
-
"type": {
|
|
203
|
-
"text": "string"
|
|
204
|
-
},
|
|
205
|
-
"privacy": "public",
|
|
206
|
-
"description": "Username of the logged in user"
|
|
207
|
-
},
|
|
208
206
|
{
|
|
209
207
|
"kind": "field",
|
|
210
208
|
"name": "sideNavOpen",
|
|
@@ -213,6 +211,11 @@
|
|
|
213
211
|
},
|
|
214
212
|
"default": "false"
|
|
215
213
|
},
|
|
214
|
+
{
|
|
215
|
+
"kind": "field",
|
|
216
|
+
"name": "userName",
|
|
217
|
+
"readonly": true
|
|
218
|
+
},
|
|
216
219
|
{
|
|
217
220
|
"kind": "field",
|
|
218
221
|
"name": "logoSrc",
|
|
@@ -399,6 +402,41 @@
|
|
|
399
402
|
}
|
|
400
403
|
]
|
|
401
404
|
},
|
|
405
|
+
{
|
|
406
|
+
"kind": "javascript-module",
|
|
407
|
+
"path": "src/utils/index.ts",
|
|
408
|
+
"declarations": [],
|
|
409
|
+
"exports": [
|
|
410
|
+
{
|
|
411
|
+
"kind": "js",
|
|
412
|
+
"name": "*",
|
|
413
|
+
"declaration": {
|
|
414
|
+
"name": "*",
|
|
415
|
+
"package": "./logger"
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
]
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"kind": "javascript-module",
|
|
422
|
+
"path": "src/utils/logger.ts",
|
|
423
|
+
"declarations": [
|
|
424
|
+
{
|
|
425
|
+
"kind": "variable",
|
|
426
|
+
"name": "logger"
|
|
427
|
+
}
|
|
428
|
+
],
|
|
429
|
+
"exports": [
|
|
430
|
+
{
|
|
431
|
+
"kind": "js",
|
|
432
|
+
"name": "logger",
|
|
433
|
+
"declaration": {
|
|
434
|
+
"name": "logger",
|
|
435
|
+
"module": "src/utils/logger.ts"
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
]
|
|
439
|
+
},
|
|
402
440
|
{
|
|
403
441
|
"kind": "javascript-module",
|
|
404
442
|
"path": "src/styles/colors.ts",
|
|
@@ -559,41 +597,6 @@
|
|
|
559
597
|
}
|
|
560
598
|
}
|
|
561
599
|
]
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
"kind": "javascript-module",
|
|
565
|
-
"path": "src/utils/index.ts",
|
|
566
|
-
"declarations": [],
|
|
567
|
-
"exports": [
|
|
568
|
-
{
|
|
569
|
-
"kind": "js",
|
|
570
|
-
"name": "*",
|
|
571
|
-
"declaration": {
|
|
572
|
-
"name": "*",
|
|
573
|
-
"package": "./logger"
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
]
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
"kind": "javascript-module",
|
|
580
|
-
"path": "src/utils/logger.ts",
|
|
581
|
-
"declarations": [
|
|
582
|
-
{
|
|
583
|
-
"kind": "variable",
|
|
584
|
-
"name": "logger"
|
|
585
|
-
}
|
|
586
|
-
],
|
|
587
|
-
"exports": [
|
|
588
|
-
{
|
|
589
|
-
"kind": "js",
|
|
590
|
-
"name": "logger",
|
|
591
|
-
"declaration": {
|
|
592
|
-
"name": "logger",
|
|
593
|
-
"module": "src/utils/logger.ts"
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
]
|
|
597
600
|
}
|
|
598
601
|
]
|
|
599
602
|
}
|
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthRouting } from '@genesislcap/foundation-auth/routing';
|
|
2
|
+
import { User } from '@genesislcap/foundation-auth/user';
|
|
2
3
|
import { Auth, CredentialManager } from '@genesislcap/foundation-comms';
|
|
3
4
|
/**
|
|
4
5
|
* Events dispatched by the navigation control buttons
|
|
@@ -349,16 +350,14 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
349
350
|
*
|
|
350
351
|
*/
|
|
351
352
|
export declare class Navigation extends Navigation_base {
|
|
352
|
-
|
|
353
|
+
authRouting: AuthRouting;
|
|
354
|
+
user: User;
|
|
353
355
|
auth: Auth;
|
|
354
356
|
credentialManager: CredentialManager;
|
|
355
357
|
ready: boolean;
|
|
356
|
-
/**
|
|
357
|
-
* Username of the logged in user
|
|
358
|
-
*/
|
|
359
|
-
userName: string;
|
|
360
358
|
sideNavOpen: boolean;
|
|
361
359
|
connectedCallback(): Promise<void>;
|
|
360
|
+
get userName(): string;
|
|
362
361
|
/**
|
|
363
362
|
* Optional attribute which controls the icon to show on the navigation bar and flyout
|
|
364
363
|
* Control via `logo-src`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAUxE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,wBAAwB,EAAE,IAAI,CAAC;IAC/B,mBAAmB,EAAE,IAAI,CAAC;IAC1B,2BAA2B,EAAE,IAAI,CAAC;CACnC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAKa,UAAW,SAAQ,eAAmC;IACpD,WAAW,EAAG,WAAW,CAAC;IACjC,IAAI,EAAG,IAAI,CAAC;IACZ,IAAI,EAAG,IAAI,CAAC;IACC,iBAAiB,EAAG,iBAAiB,CAAC;IAC7C,KAAK,EAAE,OAAO,CAAS;IACvB,WAAW,UAAS;IAEnB,iBAAiB;IAM9B,IAAI,QAAQ,WAEX;IAED;;;;;;;OAOG;IAC8B,OAAO,EAAE,GAAG,CAAQ;IAErD;;;;;;;OAOG;IAEH,yBAAyB,EAAE,OAAO,CAAC;IAEnC;;;;;;;OAOG;IAC8D,oBAAoB,EAAE,OAAO,CAAC;IAE/F;;;;;;;OAOG;IAEH,uBAAuB,EAAE,OAAO,CAAC;IAEjC;;;;OAIG;IAEH,uBAAuB,EAAE,OAAO,CAAQ;IAExC;;;;OAIG;IAEH,WAAW,EAAE,OAAO,CAAC;IAErB;;OAEG;IACS,YAAY,EAAE,KAAK,CAAC;QAC9B,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;IAEH;;;;;;;;OAQG;IACG,WAAW;IAKjB,cAAc;IAId;;;;;;;OAOG;IACI,MAAM;IAKb;;;;;;;;;;OAUG;IACI,UAAU,CAAC,IAAI,EAAE,MAAM;IAS9B;;;;;;;;;OASG;IACH,mBAAmB;IAInB;;;;;;;;;OASG;IACH,kBAAkB;IAIlB;;;;;;;;;OASG;IACH,aAAa;IAIb;;;;;;;;;OASG;IACH,qBAAqB;CAGtB"}
|
package/dist/esm/main/main.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { AuthRouting } from '@genesislcap/foundation-auth/routing';
|
|
3
|
+
import { User } from '@genesislcap/foundation-auth/user';
|
|
3
4
|
import { Auth, CredentialManager } from '@genesislcap/foundation-comms';
|
|
4
5
|
import { EventEmitter } from '@genesislcap/foundation-events';
|
|
5
6
|
import { FASTElement, customElement, observable, attr } from '@microsoft/fast-element';
|
|
@@ -62,11 +63,12 @@ let Navigation = class Navigation extends EventEmitter(FASTElement) {
|
|
|
62
63
|
_super.connectedCallback.call(this);
|
|
63
64
|
logger.debug(`foundation-header is now connected to the DOM`);
|
|
64
65
|
yield this.loadRemotes();
|
|
65
|
-
this.userName = this.auth.loggedUserResult
|
|
66
|
-
? this.auth.loggedUserResult.username
|
|
67
|
-
: 'Genesis User';
|
|
68
66
|
});
|
|
69
67
|
}
|
|
68
|
+
get userName() {
|
|
69
|
+
var _a;
|
|
70
|
+
return (_a = this.user.userName) !== null && _a !== void 0 ? _a : 'Genesis User';
|
|
71
|
+
}
|
|
70
72
|
/**
|
|
71
73
|
* Load remote components
|
|
72
74
|
*
|
|
@@ -94,8 +96,8 @@ let Navigation = class Navigation extends EventEmitter(FASTElement) {
|
|
|
94
96
|
* @public
|
|
95
97
|
*/
|
|
96
98
|
logout() {
|
|
97
|
-
logger.debug('logout
|
|
98
|
-
this.
|
|
99
|
+
logger.debug('logout using authRouting.navigateTo');
|
|
100
|
+
this.authRouting.navigateTo('logout');
|
|
99
101
|
}
|
|
100
102
|
/**
|
|
101
103
|
* Changes the route of the current page
|
|
@@ -171,8 +173,11 @@ let Navigation = class Navigation extends EventEmitter(FASTElement) {
|
|
|
171
173
|
}
|
|
172
174
|
};
|
|
173
175
|
__decorate([
|
|
174
|
-
|
|
175
|
-
], Navigation.prototype, "
|
|
176
|
+
AuthRouting
|
|
177
|
+
], Navigation.prototype, "authRouting", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
User
|
|
180
|
+
], Navigation.prototype, "user", void 0);
|
|
176
181
|
__decorate([
|
|
177
182
|
Auth
|
|
178
183
|
], Navigation.prototype, "auth", void 0);
|
|
@@ -182,9 +187,6 @@ __decorate([
|
|
|
182
187
|
__decorate([
|
|
183
188
|
observable
|
|
184
189
|
], Navigation.prototype, "ready", void 0);
|
|
185
|
-
__decorate([
|
|
186
|
-
observable
|
|
187
|
-
], Navigation.prototype, "userName", void 0);
|
|
188
190
|
__decorate([
|
|
189
191
|
observable
|
|
190
192
|
], Navigation.prototype, "sideNavOpen", void 0);
|
|
@@ -294,6 +294,37 @@
|
|
|
294
294
|
"isProtected": false,
|
|
295
295
|
"isAbstract": false
|
|
296
296
|
},
|
|
297
|
+
{
|
|
298
|
+
"kind": "Property",
|
|
299
|
+
"canonicalReference": "@genesislcap/foundation-header!Navigation#authRouting:member",
|
|
300
|
+
"docComment": "",
|
|
301
|
+
"excerptTokens": [
|
|
302
|
+
{
|
|
303
|
+
"kind": "Content",
|
|
304
|
+
"text": "authRouting: "
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"kind": "Reference",
|
|
308
|
+
"text": "AuthRouting",
|
|
309
|
+
"canonicalReference": "@genesislcap/foundation-auth!AuthRouting:interface"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"kind": "Content",
|
|
313
|
+
"text": ";"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"isReadonly": false,
|
|
317
|
+
"isOptional": false,
|
|
318
|
+
"releaseTag": "Public",
|
|
319
|
+
"name": "authRouting",
|
|
320
|
+
"propertyTypeTokenRange": {
|
|
321
|
+
"startIndex": 1,
|
|
322
|
+
"endIndex": 2
|
|
323
|
+
},
|
|
324
|
+
"isStatic": false,
|
|
325
|
+
"isProtected": false,
|
|
326
|
+
"isAbstract": false
|
|
327
|
+
},
|
|
297
328
|
{
|
|
298
329
|
"kind": "Method",
|
|
299
330
|
"canonicalReference": "@genesislcap/foundation-header!Navigation#connectedCallback:member(1)",
|
|
@@ -452,37 +483,6 @@
|
|
|
452
483
|
"isAbstract": false,
|
|
453
484
|
"name": "logout"
|
|
454
485
|
},
|
|
455
|
-
{
|
|
456
|
-
"kind": "Property",
|
|
457
|
-
"canonicalReference": "@genesislcap/foundation-header!Navigation#logoutUtility:member",
|
|
458
|
-
"docComment": "",
|
|
459
|
-
"excerptTokens": [
|
|
460
|
-
{
|
|
461
|
-
"kind": "Content",
|
|
462
|
-
"text": "logoutUtility: "
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
"kind": "Reference",
|
|
466
|
-
"text": "LogoutUtility",
|
|
467
|
-
"canonicalReference": "@genesislcap/foundation-auth!LogoutUtility:interface"
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
"kind": "Content",
|
|
471
|
-
"text": ";"
|
|
472
|
-
}
|
|
473
|
-
],
|
|
474
|
-
"isReadonly": false,
|
|
475
|
-
"isOptional": false,
|
|
476
|
-
"releaseTag": "Public",
|
|
477
|
-
"name": "logoutUtility",
|
|
478
|
-
"propertyTypeTokenRange": {
|
|
479
|
-
"startIndex": 1,
|
|
480
|
-
"endIndex": 2
|
|
481
|
-
},
|
|
482
|
-
"isStatic": false,
|
|
483
|
-
"isProtected": false,
|
|
484
|
-
"isAbstract": false
|
|
485
|
-
},
|
|
486
486
|
{
|
|
487
487
|
"kind": "Method",
|
|
488
488
|
"canonicalReference": "@genesislcap/foundation-header!Navigation#navigateTo:member(1)",
|
|
@@ -795,14 +795,45 @@
|
|
|
795
795
|
"isProtected": false,
|
|
796
796
|
"isAbstract": false
|
|
797
797
|
},
|
|
798
|
+
{
|
|
799
|
+
"kind": "Property",
|
|
800
|
+
"canonicalReference": "@genesislcap/foundation-header!Navigation#user:member",
|
|
801
|
+
"docComment": "",
|
|
802
|
+
"excerptTokens": [
|
|
803
|
+
{
|
|
804
|
+
"kind": "Content",
|
|
805
|
+
"text": "user: "
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"kind": "Reference",
|
|
809
|
+
"text": "User",
|
|
810
|
+
"canonicalReference": "@genesislcap/foundation-auth!User:interface"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"kind": "Content",
|
|
814
|
+
"text": ";"
|
|
815
|
+
}
|
|
816
|
+
],
|
|
817
|
+
"isReadonly": false,
|
|
818
|
+
"isOptional": false,
|
|
819
|
+
"releaseTag": "Public",
|
|
820
|
+
"name": "user",
|
|
821
|
+
"propertyTypeTokenRange": {
|
|
822
|
+
"startIndex": 1,
|
|
823
|
+
"endIndex": 2
|
|
824
|
+
},
|
|
825
|
+
"isStatic": false,
|
|
826
|
+
"isProtected": false,
|
|
827
|
+
"isAbstract": false
|
|
828
|
+
},
|
|
798
829
|
{
|
|
799
830
|
"kind": "Property",
|
|
800
831
|
"canonicalReference": "@genesislcap/foundation-header!Navigation#userName:member",
|
|
801
|
-
"docComment": "
|
|
832
|
+
"docComment": "",
|
|
802
833
|
"excerptTokens": [
|
|
803
834
|
{
|
|
804
835
|
"kind": "Content",
|
|
805
|
-
"text": "userName: "
|
|
836
|
+
"text": "get userName(): "
|
|
806
837
|
},
|
|
807
838
|
{
|
|
808
839
|
"kind": "Content",
|
|
@@ -813,7 +844,7 @@
|
|
|
813
844
|
"text": ";"
|
|
814
845
|
}
|
|
815
846
|
],
|
|
816
|
-
"isReadonly":
|
|
847
|
+
"isReadonly": true,
|
|
817
848
|
"isOptional": false,
|
|
818
849
|
"releaseTag": "Public",
|
|
819
850
|
"name": "userName",
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Auth } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { AuthRouting } from '@genesislcap/foundation-auth/routing';
|
|
2
3
|
import { Controller } from '@microsoft/fast-element';
|
|
3
4
|
import { CredentialManager } from '@genesislcap/foundation-comms';
|
|
4
5
|
import { ElementStyles } from '@microsoft/fast-element';
|
|
5
6
|
import { EmitOptions } from '@genesislcap/foundation-events';
|
|
6
7
|
import { EmitReturn } from '@genesislcap/foundation-events';
|
|
7
|
-
import {
|
|
8
|
+
import { User } from '@genesislcap/foundation-auth/user';
|
|
8
9
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -51,16 +52,14 @@ export declare type NavEventDetailMap = {
|
|
|
51
52
|
*
|
|
52
53
|
*/
|
|
53
54
|
export declare class Navigation extends Navigation_base {
|
|
54
|
-
|
|
55
|
+
authRouting: AuthRouting;
|
|
56
|
+
user: User;
|
|
55
57
|
auth: Auth;
|
|
56
58
|
credentialManager: CredentialManager;
|
|
57
59
|
ready: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Username of the logged in user
|
|
60
|
-
*/
|
|
61
|
-
userName: string;
|
|
62
60
|
sideNavOpen: boolean;
|
|
63
61
|
connectedCallback(): Promise<void>;
|
|
62
|
+
get userName(): string;
|
|
64
63
|
/**
|
|
65
64
|
* Optional attribute which controls the icon to show on the navigation bar and flyout
|
|
66
65
|
* Control via `logo-src`
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
2
|
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-header](./foundation-header.md) > [Navigation](./foundation-header.navigation.md) > [
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-header](./foundation-header.md) > [Navigation](./foundation-header.navigation.md) > [authRouting](./foundation-header.navigation.authrouting.md)
|
|
4
4
|
|
|
5
|
-
## Navigation.
|
|
5
|
+
## Navigation.authRouting property
|
|
6
6
|
|
|
7
7
|
**Signature:**
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
|
|
10
|
+
authRouting: AuthRouting;
|
|
11
11
|
```
|
|
@@ -22,10 +22,10 @@ export declare class Navigation extends Navigation_base
|
|
|
22
22
|
| Property | Modifiers | Type | Description |
|
|
23
23
|
| --- | --- | --- | --- |
|
|
24
24
|
| [auth](./foundation-header.navigation.auth.md) | | Auth | |
|
|
25
|
+
| [authRouting](./foundation-header.navigation.authrouting.md) | | AuthRouting | |
|
|
25
26
|
| [credentialManager](./foundation-header.navigation.credentialmanager.md) | | CredentialManager | |
|
|
26
27
|
| [hideSideBar](./foundation-header.navigation.hidesidebar.md) | | boolean | Boolean attribute which controls whether to include the sideNav component Control via<code>hide-side-bar</code> |
|
|
27
28
|
| [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> |
|
|
28
|
-
| [logoutUtility](./foundation-header.navigation.logoututility.md) | | LogoutUtility | |
|
|
29
29
|
| [ready](./foundation-header.navigation.ready.md) | | boolean | |
|
|
30
30
|
| [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 |
|
|
31
31
|
| [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,7 +33,8 @@ export declare class Navigation extends Navigation_base
|
|
|
33
33
|
| [showMiscToggleButton](./foundation-header.navigation.showmisctogglebutton.md) | | boolean | Boolean attribute which controls whether to show the miscellaneous (menu) icon on the navigation bar Control via <code>show-luminance-toggle-button</code> |
|
|
34
34
|
| [showNotificationsButton](./foundation-header.navigation.shownotificationsbutton.md) | | boolean | Boolean attribute which controls whether to show the notification (bell) icon on the navigation bar Control via <code>show-notification-button</code> |
|
|
35
35
|
| [sideNavOpen](./foundation-header.navigation.sidenavopen.md) | | boolean | |
|
|
36
|
-
| [
|
|
36
|
+
| [user](./foundation-header.navigation.user.md) | | User | |
|
|
37
|
+
| [userName](./foundation-header.navigation.username.md) | <code>readonly</code> | string | |
|
|
37
38
|
|
|
38
39
|
## Methods
|
|
39
40
|
|
|
@@ -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) > [user](./foundation-header.navigation.user.md)
|
|
4
|
+
|
|
5
|
+
## Navigation.user property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
user: User;
|
|
11
|
+
```
|
package/docs/api-report.md
CHANGED
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
7
|
import { Auth } from '@genesislcap/foundation-comms';
|
|
8
|
+
import { AuthRouting } from '@genesislcap/foundation-auth/routing';
|
|
8
9
|
import { Controller } from '@microsoft/fast-element';
|
|
9
10
|
import { CredentialManager } from '@genesislcap/foundation-comms';
|
|
10
11
|
import { ElementStyles } from '@microsoft/fast-element';
|
|
11
12
|
import { EmitOptions } from '@genesislcap/foundation-events';
|
|
12
13
|
import { EmitReturn } from '@genesislcap/foundation-events';
|
|
13
|
-
import {
|
|
14
|
+
import { User } from '@genesislcap/foundation-auth/user';
|
|
14
15
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
15
16
|
|
|
16
17
|
// @public
|
|
@@ -30,6 +31,8 @@ export class Navigation extends Navigation_base {
|
|
|
30
31
|
// (undocumented)
|
|
31
32
|
auth: Auth;
|
|
32
33
|
// (undocumented)
|
|
34
|
+
authRouting: AuthRouting;
|
|
35
|
+
// (undocumented)
|
|
33
36
|
connectedCallback(): Promise<void>;
|
|
34
37
|
// (undocumented)
|
|
35
38
|
credentialManager: CredentialManager;
|
|
@@ -38,8 +41,6 @@ export class Navigation extends Navigation_base {
|
|
|
38
41
|
loadRemotes(): Promise<void>;
|
|
39
42
|
logoSrc: any;
|
|
40
43
|
logout(): void;
|
|
41
|
-
// (undocumented)
|
|
42
|
-
logoutUtility: LogoutUtility;
|
|
43
44
|
// @internal
|
|
44
45
|
luminanceIconEvent(): void;
|
|
45
46
|
// @internal
|
|
@@ -66,7 +67,10 @@ export class Navigation extends Navigation_base {
|
|
|
66
67
|
sideNavOpen: boolean;
|
|
67
68
|
// @internal
|
|
68
69
|
toggleNavVisibility(): void;
|
|
69
|
-
|
|
70
|
+
// (undocumented)
|
|
71
|
+
user: User;
|
|
72
|
+
// (undocumented)
|
|
73
|
+
get userName(): string;
|
|
70
74
|
}
|
|
71
75
|
|
|
72
76
|
// @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-header",
|
|
3
3
|
"description": "Genesis Foundation Header",
|
|
4
|
-
"version": "14.71.1-auth-mf.
|
|
4
|
+
"version": "14.71.1-auth-mf.19",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-header.d.ts",
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
"test:debug": "genx test --debug"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@genesislcap/foundation-testing": "14.71.1-auth-mf.
|
|
55
|
-
"@genesislcap/genx": "14.71.1-auth-mf.
|
|
54
|
+
"@genesislcap/foundation-testing": "14.71.1-auth-mf.19",
|
|
55
|
+
"@genesislcap/genx": "14.71.1-auth-mf.19",
|
|
56
56
|
"rimraf": "^3.0.2"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@genesislcap/foundation-auth": "14.71.1-auth-mf.
|
|
60
|
-
"@genesislcap/foundation-comms": "14.71.1-auth-mf.
|
|
61
|
-
"@genesislcap/foundation-events": "14.71.1-auth-mf.
|
|
62
|
-
"@genesislcap/foundation-utils": "14.71.1-auth-mf.
|
|
63
|
-
"@genesislcap/foundation-zero": "14.71.1-auth-mf.
|
|
59
|
+
"@genesislcap/foundation-auth": "14.71.1-auth-mf.19",
|
|
60
|
+
"@genesislcap/foundation-comms": "14.71.1-auth-mf.19",
|
|
61
|
+
"@genesislcap/foundation-events": "14.71.1-auth-mf.19",
|
|
62
|
+
"@genesislcap/foundation-utils": "14.71.1-auth-mf.19",
|
|
63
|
+
"@genesislcap/foundation-zero": "14.71.1-auth-mf.19",
|
|
64
64
|
"@microsoft/fast-colors": "^5.1.4",
|
|
65
65
|
"@microsoft/fast-components": "^2.21.3",
|
|
66
66
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
78
|
"customElements": "dist/custom-elements.json",
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "d7ad1f72865d86daa6d656075225cdae4537d5bf"
|
|
80
80
|
}
|