@genesislcap/foundation-header 14.71.1-auth-mf.16 → 14.71.1-auth-mf.18
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 +175 -172
- package/dist/dts/main/main.d.ts +10 -7
- 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 +10 -7
- 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
|
@@ -71,6 +71,167 @@
|
|
|
71
71
|
}
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
|
+
{
|
|
75
|
+
"kind": "javascript-module",
|
|
76
|
+
"path": "src/styles/colors.ts",
|
|
77
|
+
"declarations": [
|
|
78
|
+
{
|
|
79
|
+
"kind": "function",
|
|
80
|
+
"name": "getWebRGBA",
|
|
81
|
+
"parameters": [
|
|
82
|
+
{
|
|
83
|
+
"name": "rgb",
|
|
84
|
+
"type": {
|
|
85
|
+
"text": "ColorRGBA64"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "alpha",
|
|
90
|
+
"default": "1.0",
|
|
91
|
+
"type": {
|
|
92
|
+
"text": "number"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"kind": "variable",
|
|
99
|
+
"name": "defaultBackgroundHover"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"kind": "variable",
|
|
103
|
+
"name": "defaultBackgroundItem"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"kind": "variable",
|
|
107
|
+
"name": "backgroundNavOption"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"exports": [
|
|
111
|
+
{
|
|
112
|
+
"kind": "js",
|
|
113
|
+
"name": "getWebRGBA",
|
|
114
|
+
"declaration": {
|
|
115
|
+
"name": "getWebRGBA",
|
|
116
|
+
"module": "src/styles/colors.ts"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"kind": "js",
|
|
121
|
+
"name": "defaultBackgroundHover",
|
|
122
|
+
"declaration": {
|
|
123
|
+
"name": "defaultBackgroundHover",
|
|
124
|
+
"module": "src/styles/colors.ts"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"kind": "js",
|
|
129
|
+
"name": "defaultBackgroundItem",
|
|
130
|
+
"declaration": {
|
|
131
|
+
"name": "defaultBackgroundItem",
|
|
132
|
+
"module": "src/styles/colors.ts"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"kind": "js",
|
|
137
|
+
"name": "backgroundNavOption",
|
|
138
|
+
"declaration": {
|
|
139
|
+
"name": "backgroundNavOption",
|
|
140
|
+
"module": "src/styles/colors.ts"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"kind": "javascript-module",
|
|
147
|
+
"path": "src/styles/index.ts",
|
|
148
|
+
"declarations": [],
|
|
149
|
+
"exports": [
|
|
150
|
+
{
|
|
151
|
+
"kind": "js",
|
|
152
|
+
"name": "*",
|
|
153
|
+
"declaration": {
|
|
154
|
+
"name": "*",
|
|
155
|
+
"package": "./colors"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"kind": "js",
|
|
160
|
+
"name": "*",
|
|
161
|
+
"declaration": {
|
|
162
|
+
"name": "*",
|
|
163
|
+
"package": "./styles"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"kind": "javascript-module",
|
|
170
|
+
"path": "src/styles/styles.ts",
|
|
171
|
+
"declarations": [
|
|
172
|
+
{
|
|
173
|
+
"kind": "function",
|
|
174
|
+
"name": "mixinScreen",
|
|
175
|
+
"parameters": [
|
|
176
|
+
{
|
|
177
|
+
"name": "display",
|
|
178
|
+
"default": "'block'",
|
|
179
|
+
"type": {
|
|
180
|
+
"text": "string"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"description": "TODO: Bring all the style and typography mixins into the design system package"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"kind": "function",
|
|
188
|
+
"name": "genesisLogo",
|
|
189
|
+
"parameters": [
|
|
190
|
+
{
|
|
191
|
+
"name": "slot",
|
|
192
|
+
"default": "'start'"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"description": "TODO"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"kind": "function",
|
|
199
|
+
"name": "settingsIcon",
|
|
200
|
+
"parameters": [
|
|
201
|
+
{
|
|
202
|
+
"name": "slot",
|
|
203
|
+
"default": "'start'"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"exports": [
|
|
209
|
+
{
|
|
210
|
+
"kind": "js",
|
|
211
|
+
"name": "mixinScreen",
|
|
212
|
+
"declaration": {
|
|
213
|
+
"name": "mixinScreen",
|
|
214
|
+
"module": "src/styles/styles.ts"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"kind": "js",
|
|
219
|
+
"name": "genesisLogo",
|
|
220
|
+
"declaration": {
|
|
221
|
+
"name": "genesisLogo",
|
|
222
|
+
"module": "src/styles/styles.ts"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"kind": "js",
|
|
227
|
+
"name": "settingsIcon",
|
|
228
|
+
"declaration": {
|
|
229
|
+
"name": "settingsIcon",
|
|
230
|
+
"module": "src/styles/styles.ts"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
},
|
|
74
235
|
{
|
|
75
236
|
"kind": "javascript-module",
|
|
76
237
|
"path": "src/main/index.ts",
|
|
@@ -169,9 +330,16 @@
|
|
|
169
330
|
"members": [
|
|
170
331
|
{
|
|
171
332
|
"kind": "field",
|
|
172
|
-
"name": "
|
|
333
|
+
"name": "authRouting",
|
|
334
|
+
"type": {
|
|
335
|
+
"text": "AuthRouting"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"kind": "field",
|
|
340
|
+
"name": "user",
|
|
173
341
|
"type": {
|
|
174
|
-
"text": "
|
|
342
|
+
"text": "User"
|
|
175
343
|
}
|
|
176
344
|
},
|
|
177
345
|
{
|
|
@@ -196,15 +364,6 @@
|
|
|
196
364
|
},
|
|
197
365
|
"default": "false"
|
|
198
366
|
},
|
|
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
367
|
{
|
|
209
368
|
"kind": "field",
|
|
210
369
|
"name": "sideNavOpen",
|
|
@@ -213,6 +372,11 @@
|
|
|
213
372
|
},
|
|
214
373
|
"default": "false"
|
|
215
374
|
},
|
|
375
|
+
{
|
|
376
|
+
"kind": "field",
|
|
377
|
+
"name": "userName",
|
|
378
|
+
"readonly": true
|
|
379
|
+
},
|
|
216
380
|
{
|
|
217
381
|
"kind": "field",
|
|
218
382
|
"name": "logoSrc",
|
|
@@ -399,167 +563,6 @@
|
|
|
399
563
|
}
|
|
400
564
|
]
|
|
401
565
|
},
|
|
402
|
-
{
|
|
403
|
-
"kind": "javascript-module",
|
|
404
|
-
"path": "src/styles/colors.ts",
|
|
405
|
-
"declarations": [
|
|
406
|
-
{
|
|
407
|
-
"kind": "function",
|
|
408
|
-
"name": "getWebRGBA",
|
|
409
|
-
"parameters": [
|
|
410
|
-
{
|
|
411
|
-
"name": "rgb",
|
|
412
|
-
"type": {
|
|
413
|
-
"text": "ColorRGBA64"
|
|
414
|
-
}
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
"name": "alpha",
|
|
418
|
-
"default": "1.0",
|
|
419
|
-
"type": {
|
|
420
|
-
"text": "number"
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
]
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
"kind": "variable",
|
|
427
|
-
"name": "defaultBackgroundHover"
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
"kind": "variable",
|
|
431
|
-
"name": "defaultBackgroundItem"
|
|
432
|
-
},
|
|
433
|
-
{
|
|
434
|
-
"kind": "variable",
|
|
435
|
-
"name": "backgroundNavOption"
|
|
436
|
-
}
|
|
437
|
-
],
|
|
438
|
-
"exports": [
|
|
439
|
-
{
|
|
440
|
-
"kind": "js",
|
|
441
|
-
"name": "getWebRGBA",
|
|
442
|
-
"declaration": {
|
|
443
|
-
"name": "getWebRGBA",
|
|
444
|
-
"module": "src/styles/colors.ts"
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
"kind": "js",
|
|
449
|
-
"name": "defaultBackgroundHover",
|
|
450
|
-
"declaration": {
|
|
451
|
-
"name": "defaultBackgroundHover",
|
|
452
|
-
"module": "src/styles/colors.ts"
|
|
453
|
-
}
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
"kind": "js",
|
|
457
|
-
"name": "defaultBackgroundItem",
|
|
458
|
-
"declaration": {
|
|
459
|
-
"name": "defaultBackgroundItem",
|
|
460
|
-
"module": "src/styles/colors.ts"
|
|
461
|
-
}
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
"kind": "js",
|
|
465
|
-
"name": "backgroundNavOption",
|
|
466
|
-
"declaration": {
|
|
467
|
-
"name": "backgroundNavOption",
|
|
468
|
-
"module": "src/styles/colors.ts"
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
]
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
"kind": "javascript-module",
|
|
475
|
-
"path": "src/styles/index.ts",
|
|
476
|
-
"declarations": [],
|
|
477
|
-
"exports": [
|
|
478
|
-
{
|
|
479
|
-
"kind": "js",
|
|
480
|
-
"name": "*",
|
|
481
|
-
"declaration": {
|
|
482
|
-
"name": "*",
|
|
483
|
-
"package": "./colors"
|
|
484
|
-
}
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
"kind": "js",
|
|
488
|
-
"name": "*",
|
|
489
|
-
"declaration": {
|
|
490
|
-
"name": "*",
|
|
491
|
-
"package": "./styles"
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
]
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
"kind": "javascript-module",
|
|
498
|
-
"path": "src/styles/styles.ts",
|
|
499
|
-
"declarations": [
|
|
500
|
-
{
|
|
501
|
-
"kind": "function",
|
|
502
|
-
"name": "mixinScreen",
|
|
503
|
-
"parameters": [
|
|
504
|
-
{
|
|
505
|
-
"name": "display",
|
|
506
|
-
"default": "'block'",
|
|
507
|
-
"type": {
|
|
508
|
-
"text": "string"
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
],
|
|
512
|
-
"description": "TODO: Bring all the style and typography mixins into the design system package"
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
"kind": "function",
|
|
516
|
-
"name": "genesisLogo",
|
|
517
|
-
"parameters": [
|
|
518
|
-
{
|
|
519
|
-
"name": "slot",
|
|
520
|
-
"default": "'start'"
|
|
521
|
-
}
|
|
522
|
-
],
|
|
523
|
-
"description": "TODO"
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
"kind": "function",
|
|
527
|
-
"name": "settingsIcon",
|
|
528
|
-
"parameters": [
|
|
529
|
-
{
|
|
530
|
-
"name": "slot",
|
|
531
|
-
"default": "'start'"
|
|
532
|
-
}
|
|
533
|
-
]
|
|
534
|
-
}
|
|
535
|
-
],
|
|
536
|
-
"exports": [
|
|
537
|
-
{
|
|
538
|
-
"kind": "js",
|
|
539
|
-
"name": "mixinScreen",
|
|
540
|
-
"declaration": {
|
|
541
|
-
"name": "mixinScreen",
|
|
542
|
-
"module": "src/styles/styles.ts"
|
|
543
|
-
}
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
"kind": "js",
|
|
547
|
-
"name": "genesisLogo",
|
|
548
|
-
"declaration": {
|
|
549
|
-
"name": "genesisLogo",
|
|
550
|
-
"module": "src/styles/styles.ts"
|
|
551
|
-
}
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
"kind": "js",
|
|
555
|
-
"name": "settingsIcon",
|
|
556
|
-
"declaration": {
|
|
557
|
-
"name": "settingsIcon",
|
|
558
|
-
"module": "src/styles/styles.ts"
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
]
|
|
562
|
-
},
|
|
563
566
|
{
|
|
564
567
|
"kind": "javascript-module",
|
|
565
568
|
"path": "src/utils/index.ts",
|
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthRouting } from '@genesislcap/foundation-auth';
|
|
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
|
|
@@ -56,7 +57,11 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
56
57
|
scrollTop: number;
|
|
57
58
|
readonly scrollWidth: number;
|
|
58
59
|
readonly shadowRoot: ShadowRoot;
|
|
59
|
-
slot: string;
|
|
60
|
+
slot: string; /**
|
|
61
|
+
* Boolean attribute which controls whether to show the connection indicator on the navigation bar
|
|
62
|
+
* Control via `show-connection-indicator`
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
60
65
|
readonly tagName: string;
|
|
61
66
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
62
67
|
closest<K_3 extends keyof HTMLElementTagNameMap>(selector: K_3): HTMLElementTagNameMap[K_3];
|
|
@@ -349,16 +354,14 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
349
354
|
*
|
|
350
355
|
*/
|
|
351
356
|
export declare class Navigation extends Navigation_base {
|
|
352
|
-
|
|
357
|
+
authRouting: AuthRouting;
|
|
358
|
+
user: User;
|
|
353
359
|
auth: Auth;
|
|
354
360
|
credentialManager: CredentialManager;
|
|
355
361
|
ready: boolean;
|
|
356
|
-
/**
|
|
357
|
-
* Username of the logged in user
|
|
358
|
-
*/
|
|
359
|
-
userName: string;
|
|
360
362
|
sideNavOpen: boolean;
|
|
361
363
|
connectedCallback(): Promise<void>;
|
|
364
|
+
get userName(): string;
|
|
362
365
|
/**
|
|
363
366
|
* Optional attribute which controls the icon to show on the navigation bar and flyout
|
|
364
367
|
* 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,8BAA8B,CAAC;AAC3D,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8FA;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA7FL;;;;;;;;;;;;;;;;;;;;;;;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';
|
|
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';
|
|
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`
|
|
@@ -244,7 +243,11 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
244
243
|
scrollTop: number;
|
|
245
244
|
readonly scrollWidth: number;
|
|
246
245
|
readonly shadowRoot: ShadowRoot;
|
|
247
|
-
slot: string;
|
|
246
|
+
slot: string; /**
|
|
247
|
+
* Boolean attribute which controls whether to show the connection indicator on the navigation bar
|
|
248
|
+
* Control via `show-connection-indicator`
|
|
249
|
+
*
|
|
250
|
+
*/
|
|
248
251
|
readonly tagName: string;
|
|
249
252
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
250
253
|
closest<K_3 extends keyof HTMLElementTagNameMap>(selector: K_3): HTMLElementTagNameMap[K_3];
|
|
@@ -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';
|
|
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.18",
|
|
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.18",
|
|
55
|
+
"@genesislcap/genx": "14.71.1-auth-mf.18",
|
|
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.18",
|
|
60
|
+
"@genesislcap/foundation-comms": "14.71.1-auth-mf.18",
|
|
61
|
+
"@genesislcap/foundation-events": "14.71.1-auth-mf.18",
|
|
62
|
+
"@genesislcap/foundation-utils": "14.71.1-auth-mf.18",
|
|
63
|
+
"@genesislcap/foundation-zero": "14.71.1-auth-mf.18",
|
|
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": "8960414748b4b3dd8d0584967127aecb968548b0"
|
|
80
80
|
}
|