@genesislcap/foundation-header 14.218.0 → 14.218.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.
- package/dist/custom-elements.json +191 -191
- package/dist/dts/main/main.d.ts +6 -55
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/esm/main/main.js +12 -30
- package/dist/foundation-header.api.json +37 -37
- package/dist/foundation-header.d.ts +6 -56
- package/docs/api/{foundation-header.navigation.credentialmanager.md → foundation-header.navigation.authrouting.md} +3 -3
- package/docs/api/foundation-header.navigation.logout.md +0 -4
- package/docs/api/foundation-header.navigation.md +2 -2
- package/docs/api/{foundation-header.navigation.auth.md → foundation-header.navigation.user.md} +3 -3
- package/docs/api-report.md +5 -5
- package/package.json +19 -17
- package/docs/.gitattributes +0 -2
- package/docs/img/foundation-header-replaced-img.png +0 -0
- package/docs/img/foundation-header-sidebar.png +0 -0
- package/docs/img/foundation-header-standard.png +0 -0
|
@@ -31,6 +31,27 @@
|
|
|
31
31
|
}
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
|
+
{
|
|
35
|
+
"kind": "javascript-module",
|
|
36
|
+
"path": "src/components/zero-components.ts",
|
|
37
|
+
"declarations": [
|
|
38
|
+
{
|
|
39
|
+
"kind": "function",
|
|
40
|
+
"name": "registerCommonZeroComponents",
|
|
41
|
+
"privacy": "public"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"exports": [
|
|
45
|
+
{
|
|
46
|
+
"kind": "js",
|
|
47
|
+
"name": "registerCommonZeroComponents",
|
|
48
|
+
"declaration": {
|
|
49
|
+
"name": "registerCommonZeroComponents",
|
|
50
|
+
"module": "src/components/zero-components.ts"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
34
55
|
{
|
|
35
56
|
"kind": "javascript-module",
|
|
36
57
|
"path": "src/config/config.ts",
|
|
@@ -153,21 +174,161 @@
|
|
|
153
174
|
},
|
|
154
175
|
{
|
|
155
176
|
"kind": "javascript-module",
|
|
156
|
-
"path": "src/
|
|
177
|
+
"path": "src/styles/colors.ts",
|
|
157
178
|
"declarations": [
|
|
158
179
|
{
|
|
159
180
|
"kind": "function",
|
|
160
|
-
"name": "
|
|
161
|
-
"
|
|
181
|
+
"name": "getWebRGBA",
|
|
182
|
+
"parameters": [
|
|
183
|
+
{
|
|
184
|
+
"name": "rgb",
|
|
185
|
+
"type": {
|
|
186
|
+
"text": "ColorRGBA64"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "alpha",
|
|
191
|
+
"default": "1.0",
|
|
192
|
+
"type": {
|
|
193
|
+
"text": "number"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"kind": "variable",
|
|
200
|
+
"name": "defaultBackgroundHover"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"kind": "variable",
|
|
204
|
+
"name": "defaultBackgroundItem"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"kind": "variable",
|
|
208
|
+
"name": "backgroundNavOption"
|
|
162
209
|
}
|
|
163
210
|
],
|
|
164
211
|
"exports": [
|
|
165
212
|
{
|
|
166
213
|
"kind": "js",
|
|
167
|
-
"name": "
|
|
214
|
+
"name": "getWebRGBA",
|
|
168
215
|
"declaration": {
|
|
169
|
-
"name": "
|
|
170
|
-
"module": "src/
|
|
216
|
+
"name": "getWebRGBA",
|
|
217
|
+
"module": "src/styles/colors.ts"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"kind": "js",
|
|
222
|
+
"name": "defaultBackgroundHover",
|
|
223
|
+
"declaration": {
|
|
224
|
+
"name": "defaultBackgroundHover",
|
|
225
|
+
"module": "src/styles/colors.ts"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"kind": "js",
|
|
230
|
+
"name": "defaultBackgroundItem",
|
|
231
|
+
"declaration": {
|
|
232
|
+
"name": "defaultBackgroundItem",
|
|
233
|
+
"module": "src/styles/colors.ts"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"kind": "js",
|
|
238
|
+
"name": "backgroundNavOption",
|
|
239
|
+
"declaration": {
|
|
240
|
+
"name": "backgroundNavOption",
|
|
241
|
+
"module": "src/styles/colors.ts"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"kind": "javascript-module",
|
|
248
|
+
"path": "src/styles/index.ts",
|
|
249
|
+
"declarations": [],
|
|
250
|
+
"exports": [
|
|
251
|
+
{
|
|
252
|
+
"kind": "js",
|
|
253
|
+
"name": "*",
|
|
254
|
+
"declaration": {
|
|
255
|
+
"name": "*",
|
|
256
|
+
"package": "./colors"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"kind": "js",
|
|
261
|
+
"name": "*",
|
|
262
|
+
"declaration": {
|
|
263
|
+
"name": "*",
|
|
264
|
+
"package": "./styles"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"kind": "javascript-module",
|
|
271
|
+
"path": "src/styles/styles.ts",
|
|
272
|
+
"declarations": [
|
|
273
|
+
{
|
|
274
|
+
"kind": "function",
|
|
275
|
+
"name": "mixinScreen",
|
|
276
|
+
"parameters": [
|
|
277
|
+
{
|
|
278
|
+
"name": "display",
|
|
279
|
+
"default": "'block'",
|
|
280
|
+
"type": {
|
|
281
|
+
"text": "string"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
"description": "TODO: Bring all the style and typography mixins into the design system package"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"kind": "function",
|
|
289
|
+
"name": "genesisLogo",
|
|
290
|
+
"parameters": [
|
|
291
|
+
{
|
|
292
|
+
"name": "slot",
|
|
293
|
+
"default": "'start'"
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"description": "TODO"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"kind": "function",
|
|
300
|
+
"name": "settingsIcon",
|
|
301
|
+
"parameters": [
|
|
302
|
+
{
|
|
303
|
+
"name": "slot",
|
|
304
|
+
"default": "'start'"
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"exports": [
|
|
310
|
+
{
|
|
311
|
+
"kind": "js",
|
|
312
|
+
"name": "mixinScreen",
|
|
313
|
+
"declaration": {
|
|
314
|
+
"name": "mixinScreen",
|
|
315
|
+
"module": "src/styles/styles.ts"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"kind": "js",
|
|
320
|
+
"name": "genesisLogo",
|
|
321
|
+
"declaration": {
|
|
322
|
+
"name": "genesisLogo",
|
|
323
|
+
"module": "src/styles/styles.ts"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"kind": "js",
|
|
328
|
+
"name": "settingsIcon",
|
|
329
|
+
"declaration": {
|
|
330
|
+
"name": "settingsIcon",
|
|
331
|
+
"module": "src/styles/styles.ts"
|
|
171
332
|
}
|
|
172
333
|
}
|
|
173
334
|
]
|
|
@@ -269,30 +430,30 @@
|
|
|
269
430
|
"members": [
|
|
270
431
|
{
|
|
271
432
|
"kind": "field",
|
|
272
|
-
"name": "
|
|
433
|
+
"name": "i18next",
|
|
273
434
|
"type": {
|
|
274
|
-
"text": "
|
|
435
|
+
"text": "I18next"
|
|
275
436
|
}
|
|
276
437
|
},
|
|
277
438
|
{
|
|
278
439
|
"kind": "field",
|
|
279
|
-
"name": "
|
|
440
|
+
"name": "headerConfig",
|
|
280
441
|
"type": {
|
|
281
|
-
"text": "
|
|
442
|
+
"text": "HeaderConfig"
|
|
282
443
|
}
|
|
283
444
|
},
|
|
284
445
|
{
|
|
285
446
|
"kind": "field",
|
|
286
|
-
"name": "
|
|
447
|
+
"name": "authRouting",
|
|
287
448
|
"type": {
|
|
288
|
-
"text": "
|
|
449
|
+
"text": "AuthRouting"
|
|
289
450
|
}
|
|
290
451
|
},
|
|
291
452
|
{
|
|
292
453
|
"kind": "field",
|
|
293
|
-
"name": "
|
|
454
|
+
"name": "user",
|
|
294
455
|
"type": {
|
|
295
|
-
"text": "
|
|
456
|
+
"text": "User"
|
|
296
457
|
}
|
|
297
458
|
},
|
|
298
459
|
{
|
|
@@ -585,9 +746,9 @@
|
|
|
585
746
|
},
|
|
586
747
|
{
|
|
587
748
|
"kind": "field",
|
|
588
|
-
"name": "
|
|
749
|
+
"name": "i18next",
|
|
589
750
|
"type": {
|
|
590
|
-
"text": "
|
|
751
|
+
"text": "I18next"
|
|
591
752
|
},
|
|
592
753
|
"inheritedFrom": {
|
|
593
754
|
"name": "Navigation",
|
|
@@ -596,9 +757,9 @@
|
|
|
596
757
|
},
|
|
597
758
|
{
|
|
598
759
|
"kind": "field",
|
|
599
|
-
"name": "
|
|
760
|
+
"name": "headerConfig",
|
|
600
761
|
"type": {
|
|
601
|
-
"text": "
|
|
762
|
+
"text": "HeaderConfig"
|
|
602
763
|
},
|
|
603
764
|
"inheritedFrom": {
|
|
604
765
|
"name": "Navigation",
|
|
@@ -607,9 +768,9 @@
|
|
|
607
768
|
},
|
|
608
769
|
{
|
|
609
770
|
"kind": "field",
|
|
610
|
-
"name": "
|
|
771
|
+
"name": "authRouting",
|
|
611
772
|
"type": {
|
|
612
|
-
"text": "
|
|
773
|
+
"text": "AuthRouting"
|
|
613
774
|
},
|
|
614
775
|
"inheritedFrom": {
|
|
615
776
|
"name": "Navigation",
|
|
@@ -618,9 +779,9 @@
|
|
|
618
779
|
},
|
|
619
780
|
{
|
|
620
781
|
"kind": "field",
|
|
621
|
-
"name": "
|
|
782
|
+
"name": "user",
|
|
622
783
|
"type": {
|
|
623
|
-
"text": "
|
|
784
|
+
"text": "User"
|
|
624
785
|
},
|
|
625
786
|
"inheritedFrom": {
|
|
626
787
|
"name": "Navigation",
|
|
@@ -1140,9 +1301,9 @@
|
|
|
1140
1301
|
"members": [
|
|
1141
1302
|
{
|
|
1142
1303
|
"kind": "field",
|
|
1143
|
-
"name": "
|
|
1304
|
+
"name": "i18next",
|
|
1144
1305
|
"type": {
|
|
1145
|
-
"text": "
|
|
1306
|
+
"text": "I18next"
|
|
1146
1307
|
},
|
|
1147
1308
|
"inheritedFrom": {
|
|
1148
1309
|
"name": "Navigation",
|
|
@@ -1151,9 +1312,9 @@
|
|
|
1151
1312
|
},
|
|
1152
1313
|
{
|
|
1153
1314
|
"kind": "field",
|
|
1154
|
-
"name": "
|
|
1315
|
+
"name": "headerConfig",
|
|
1155
1316
|
"type": {
|
|
1156
|
-
"text": "
|
|
1317
|
+
"text": "HeaderConfig"
|
|
1157
1318
|
},
|
|
1158
1319
|
"inheritedFrom": {
|
|
1159
1320
|
"name": "Navigation",
|
|
@@ -1162,9 +1323,9 @@
|
|
|
1162
1323
|
},
|
|
1163
1324
|
{
|
|
1164
1325
|
"kind": "field",
|
|
1165
|
-
"name": "
|
|
1326
|
+
"name": "authRouting",
|
|
1166
1327
|
"type": {
|
|
1167
|
-
"text": "
|
|
1328
|
+
"text": "AuthRouting"
|
|
1168
1329
|
},
|
|
1169
1330
|
"inheritedFrom": {
|
|
1170
1331
|
"name": "Navigation",
|
|
@@ -1173,9 +1334,9 @@
|
|
|
1173
1334
|
},
|
|
1174
1335
|
{
|
|
1175
1336
|
"kind": "field",
|
|
1176
|
-
"name": "
|
|
1337
|
+
"name": "user",
|
|
1177
1338
|
"type": {
|
|
1178
|
-
"text": "
|
|
1339
|
+
"text": "User"
|
|
1179
1340
|
},
|
|
1180
1341
|
"inheritedFrom": {
|
|
1181
1342
|
"name": "Navigation",
|
|
@@ -1512,167 +1673,6 @@
|
|
|
1512
1673
|
}
|
|
1513
1674
|
]
|
|
1514
1675
|
},
|
|
1515
|
-
{
|
|
1516
|
-
"kind": "javascript-module",
|
|
1517
|
-
"path": "src/styles/colors.ts",
|
|
1518
|
-
"declarations": [
|
|
1519
|
-
{
|
|
1520
|
-
"kind": "function",
|
|
1521
|
-
"name": "getWebRGBA",
|
|
1522
|
-
"parameters": [
|
|
1523
|
-
{
|
|
1524
|
-
"name": "rgb",
|
|
1525
|
-
"type": {
|
|
1526
|
-
"text": "ColorRGBA64"
|
|
1527
|
-
}
|
|
1528
|
-
},
|
|
1529
|
-
{
|
|
1530
|
-
"name": "alpha",
|
|
1531
|
-
"default": "1.0",
|
|
1532
|
-
"type": {
|
|
1533
|
-
"text": "number"
|
|
1534
|
-
}
|
|
1535
|
-
}
|
|
1536
|
-
]
|
|
1537
|
-
},
|
|
1538
|
-
{
|
|
1539
|
-
"kind": "variable",
|
|
1540
|
-
"name": "defaultBackgroundHover"
|
|
1541
|
-
},
|
|
1542
|
-
{
|
|
1543
|
-
"kind": "variable",
|
|
1544
|
-
"name": "defaultBackgroundItem"
|
|
1545
|
-
},
|
|
1546
|
-
{
|
|
1547
|
-
"kind": "variable",
|
|
1548
|
-
"name": "backgroundNavOption"
|
|
1549
|
-
}
|
|
1550
|
-
],
|
|
1551
|
-
"exports": [
|
|
1552
|
-
{
|
|
1553
|
-
"kind": "js",
|
|
1554
|
-
"name": "getWebRGBA",
|
|
1555
|
-
"declaration": {
|
|
1556
|
-
"name": "getWebRGBA",
|
|
1557
|
-
"module": "src/styles/colors.ts"
|
|
1558
|
-
}
|
|
1559
|
-
},
|
|
1560
|
-
{
|
|
1561
|
-
"kind": "js",
|
|
1562
|
-
"name": "defaultBackgroundHover",
|
|
1563
|
-
"declaration": {
|
|
1564
|
-
"name": "defaultBackgroundHover",
|
|
1565
|
-
"module": "src/styles/colors.ts"
|
|
1566
|
-
}
|
|
1567
|
-
},
|
|
1568
|
-
{
|
|
1569
|
-
"kind": "js",
|
|
1570
|
-
"name": "defaultBackgroundItem",
|
|
1571
|
-
"declaration": {
|
|
1572
|
-
"name": "defaultBackgroundItem",
|
|
1573
|
-
"module": "src/styles/colors.ts"
|
|
1574
|
-
}
|
|
1575
|
-
},
|
|
1576
|
-
{
|
|
1577
|
-
"kind": "js",
|
|
1578
|
-
"name": "backgroundNavOption",
|
|
1579
|
-
"declaration": {
|
|
1580
|
-
"name": "backgroundNavOption",
|
|
1581
|
-
"module": "src/styles/colors.ts"
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1584
|
-
]
|
|
1585
|
-
},
|
|
1586
|
-
{
|
|
1587
|
-
"kind": "javascript-module",
|
|
1588
|
-
"path": "src/styles/index.ts",
|
|
1589
|
-
"declarations": [],
|
|
1590
|
-
"exports": [
|
|
1591
|
-
{
|
|
1592
|
-
"kind": "js",
|
|
1593
|
-
"name": "*",
|
|
1594
|
-
"declaration": {
|
|
1595
|
-
"name": "*",
|
|
1596
|
-
"package": "./colors"
|
|
1597
|
-
}
|
|
1598
|
-
},
|
|
1599
|
-
{
|
|
1600
|
-
"kind": "js",
|
|
1601
|
-
"name": "*",
|
|
1602
|
-
"declaration": {
|
|
1603
|
-
"name": "*",
|
|
1604
|
-
"package": "./styles"
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
]
|
|
1608
|
-
},
|
|
1609
|
-
{
|
|
1610
|
-
"kind": "javascript-module",
|
|
1611
|
-
"path": "src/styles/styles.ts",
|
|
1612
|
-
"declarations": [
|
|
1613
|
-
{
|
|
1614
|
-
"kind": "function",
|
|
1615
|
-
"name": "mixinScreen",
|
|
1616
|
-
"parameters": [
|
|
1617
|
-
{
|
|
1618
|
-
"name": "display",
|
|
1619
|
-
"default": "'block'",
|
|
1620
|
-
"type": {
|
|
1621
|
-
"text": "string"
|
|
1622
|
-
}
|
|
1623
|
-
}
|
|
1624
|
-
],
|
|
1625
|
-
"description": "TODO: Bring all the style and typography mixins into the design system package"
|
|
1626
|
-
},
|
|
1627
|
-
{
|
|
1628
|
-
"kind": "function",
|
|
1629
|
-
"name": "genesisLogo",
|
|
1630
|
-
"parameters": [
|
|
1631
|
-
{
|
|
1632
|
-
"name": "slot",
|
|
1633
|
-
"default": "'start'"
|
|
1634
|
-
}
|
|
1635
|
-
],
|
|
1636
|
-
"description": "TODO"
|
|
1637
|
-
},
|
|
1638
|
-
{
|
|
1639
|
-
"kind": "function",
|
|
1640
|
-
"name": "settingsIcon",
|
|
1641
|
-
"parameters": [
|
|
1642
|
-
{
|
|
1643
|
-
"name": "slot",
|
|
1644
|
-
"default": "'start'"
|
|
1645
|
-
}
|
|
1646
|
-
]
|
|
1647
|
-
}
|
|
1648
|
-
],
|
|
1649
|
-
"exports": [
|
|
1650
|
-
{
|
|
1651
|
-
"kind": "js",
|
|
1652
|
-
"name": "mixinScreen",
|
|
1653
|
-
"declaration": {
|
|
1654
|
-
"name": "mixinScreen",
|
|
1655
|
-
"module": "src/styles/styles.ts"
|
|
1656
|
-
}
|
|
1657
|
-
},
|
|
1658
|
-
{
|
|
1659
|
-
"kind": "js",
|
|
1660
|
-
"name": "genesisLogo",
|
|
1661
|
-
"declaration": {
|
|
1662
|
-
"name": "genesisLogo",
|
|
1663
|
-
"module": "src/styles/styles.ts"
|
|
1664
|
-
}
|
|
1665
|
-
},
|
|
1666
|
-
{
|
|
1667
|
-
"kind": "js",
|
|
1668
|
-
"name": "settingsIcon",
|
|
1669
|
-
"declaration": {
|
|
1670
|
-
"name": "settingsIcon",
|
|
1671
|
-
"module": "src/styles/styles.ts"
|
|
1672
|
-
}
|
|
1673
|
-
}
|
|
1674
|
-
]
|
|
1675
|
-
},
|
|
1676
1676
|
{
|
|
1677
1677
|
"kind": "javascript-module",
|
|
1678
1678
|
"path": "src/tags/index.ts",
|
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthRouting } from '@genesislcap/foundation-auth/routing';
|
|
2
2
|
import { I18next } from '@genesislcap/foundation-i18n';
|
|
3
3
|
import type { FoundationRouteNavItem } from '@genesislcap/foundation-ui';
|
|
4
|
+
import { User } from '@genesislcap/foundation-user';
|
|
4
5
|
import { HeaderConfig } from '../config/config';
|
|
5
6
|
/**
|
|
6
7
|
* Events dispatched by the navigation control buttons
|
|
@@ -65,14 +66,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
65
66
|
readonly scrollHeight: number;
|
|
66
67
|
scrollLeft: number;
|
|
67
68
|
scrollTop: number;
|
|
68
|
-
readonly scrollWidth: number;
|
|
69
|
-
* Optional attribute which controls the icon to show on the navigation bar and flyout
|
|
70
|
-
* Control via `logo-src`
|
|
71
|
-
*
|
|
72
|
-
* @remarks
|
|
73
|
-
*
|
|
74
|
-
* If this attribute is not set then the Genesis logo is shown instead
|
|
75
|
-
*/
|
|
69
|
+
readonly scrollWidth: number;
|
|
76
70
|
readonly shadowRoot: ShadowRoot;
|
|
77
71
|
slot: string;
|
|
78
72
|
readonly tagName: string;
|
|
@@ -138,9 +132,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
138
132
|
appendChild<T extends Node>(node: T): T;
|
|
139
133
|
cloneNode(deep?: boolean): Node;
|
|
140
134
|
compareDocumentPosition(other: Node): number;
|
|
141
|
-
contains(other: Node): boolean;
|
|
142
|
-
* If present the defined {@link @genesislcap/foundation-ui#FoundationRouteNavItem | FoundationRouteNavItems} will be rendered in the header 'routes' slot
|
|
143
|
-
*/
|
|
135
|
+
contains(other: Node): boolean;
|
|
144
136
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
145
137
|
hasChildNodes(): boolean;
|
|
146
138
|
insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1;
|
|
@@ -197,16 +189,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
197
189
|
ariaPosInSet: string;
|
|
198
190
|
ariaPressed: string;
|
|
199
191
|
ariaReadOnly: string;
|
|
200
|
-
/**
|
|
201
|
-
* Opens the flyout menu on the left hand side
|
|
202
|
-
*
|
|
203
|
-
* @remarks
|
|
204
|
-
*
|
|
205
|
-
* Activated when the user clicks on the menu button on the navigation
|
|
206
|
-
* bar left hand side
|
|
207
|
-
*
|
|
208
|
-
* @internal
|
|
209
|
-
*/
|
|
210
192
|
ariaRequired: string;
|
|
211
193
|
ariaRoleDescription: string;
|
|
212
194
|
ariaRowCount: string;
|
|
@@ -232,16 +214,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
232
214
|
readonly previousElementSibling: Element;
|
|
233
215
|
readonly childElementCount: number;
|
|
234
216
|
readonly children: HTMLCollection;
|
|
235
|
-
/**
|
|
236
|
-
* Emits the event corresponding to the miscellaneous icon being clicked
|
|
237
|
-
*
|
|
238
|
-
* @remarks
|
|
239
|
-
*
|
|
240
|
-
* Activated when the user clicks on the menu icon on the navigation
|
|
241
|
-
* bar right hand side
|
|
242
|
-
*
|
|
243
|
-
* @internal
|
|
244
|
-
*/
|
|
245
217
|
readonly firstElementChild: Element;
|
|
246
218
|
readonly lastElementChild: Element;
|
|
247
219
|
append(...nodes: (string | Node)[]): void;
|
|
@@ -264,22 +236,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
264
236
|
readonly isContentEditable: boolean;
|
|
265
237
|
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
266
238
|
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
267
|
-
/**
|
|
268
|
-
* FoundationHeader.
|
|
269
|
-
*
|
|
270
|
-
* @remarks
|
|
271
|
-
* Base MF export used by host application `configure` calls. It does not set up a design system or components. Both are
|
|
272
|
-
* expected to be registered in the host application, which should provide the details of which to the MF via
|
|
273
|
-
* TemplateOptions.
|
|
274
|
-
*
|
|
275
|
-
* See the {@link configure} hook for more information on how to set up and use this micro frontend in your application.
|
|
276
|
-
*
|
|
277
|
-
* @privateRemarks
|
|
278
|
-
* We will override loadRemotes to remove zero. This setup is the inverse of FoundationAuth.
|
|
279
|
-
* We're doing this to avoid a breaking change, so consumers can continue to use Navigation which bundles zero.
|
|
280
|
-
*
|
|
281
|
-
* @public
|
|
282
|
-
*/
|
|
283
239
|
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
284
240
|
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
285
241
|
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
@@ -415,10 +371,10 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
415
371
|
*
|
|
416
372
|
*/
|
|
417
373
|
export declare class Navigation extends Navigation_base {
|
|
418
|
-
auth: Auth;
|
|
419
|
-
credentialManager: CredentialManager;
|
|
420
374
|
i18next: I18next;
|
|
421
375
|
headerConfig: HeaderConfig;
|
|
376
|
+
authRouting: AuthRouting;
|
|
377
|
+
user: User;
|
|
422
378
|
ready: boolean;
|
|
423
379
|
/**
|
|
424
380
|
* Username of the logged in user
|
|
@@ -526,11 +482,6 @@ export declare class Navigation extends Navigation_base {
|
|
|
526
482
|
/**
|
|
527
483
|
* Logs the user out of their session
|
|
528
484
|
*
|
|
529
|
-
* @remarks
|
|
530
|
-
*
|
|
531
|
-
* Activated when the user clicks on the logout button on the right hand side of the navigation bar. Requires
|
|
532
|
-
* the usage of the auth functionality from {@link @genesislcap/foundation-comms#Auth}.
|
|
533
|
-
*
|
|
534
485
|
* @public
|
|
535
486
|
*/
|
|
536
487
|
logout(): Promise<void>;
|
|
@@ -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":"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"}
|
package/dist/esm/main/main.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { AuthRouting } from '@genesislcap/foundation-auth/routing';
|
|
3
3
|
import { EventEmitter } from '@genesislcap/foundation-events';
|
|
4
4
|
import { I18next } from '@genesislcap/foundation-i18n';
|
|
5
|
+
import { User } from '@genesislcap/foundation-user';
|
|
5
6
|
import { FASTElement, customElement, observable, attr } from '@microsoft/fast-element';
|
|
6
7
|
import { Route } from '@microsoft/fast-router';
|
|
7
8
|
import logo from '../assets/logo.svg';
|
|
@@ -84,13 +85,12 @@ let Navigation = class Navigation extends EventEmitter(FASTElement) {
|
|
|
84
85
|
const _super = Object.create(null, {
|
|
85
86
|
connectedCallback: { get: () => super.connectedCallback }
|
|
86
87
|
});
|
|
88
|
+
var _a;
|
|
87
89
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
90
|
_super.connectedCallback.call(this);
|
|
89
91
|
logger.debug(`foundation-header is now connected to the DOM`);
|
|
90
92
|
yield this.loadRemotes();
|
|
91
|
-
this.userName = this.
|
|
92
|
-
? this.auth.loggedUserResult.username
|
|
93
|
-
: 'Genesis User';
|
|
93
|
+
this.userName = (_a = this.user.userName) !== null && _a !== void 0 ? _a : 'Genesis User';
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
@@ -140,29 +140,11 @@ let Navigation = class Navigation extends EventEmitter(FASTElement) {
|
|
|
140
140
|
/**
|
|
141
141
|
* Logs the user out of their session
|
|
142
142
|
*
|
|
143
|
-
* @remarks
|
|
144
|
-
*
|
|
145
|
-
* Activated when the user clicks on the logout button on the right hand side of the navigation bar. Requires
|
|
146
|
-
* the usage of the auth functionality from {@link @genesislcap/foundation-comms#Auth}.
|
|
147
|
-
*
|
|
148
143
|
* @public
|
|
149
144
|
*/
|
|
150
145
|
logout() {
|
|
151
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
152
|
-
|
|
153
|
-
try {
|
|
154
|
-
const result = yield this.auth.logout();
|
|
155
|
-
if (!result.success) {
|
|
156
|
-
logger.error(`Couldn't log out`, result);
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
logger.debug('logged out', result);
|
|
160
|
-
yield this.credentialManager.preventSilentAccess();
|
|
161
|
-
this.navigateTo('/');
|
|
162
|
-
}
|
|
163
|
-
catch (err) {
|
|
164
|
-
logger.error(`Error: ${err.message}`);
|
|
165
|
-
}
|
|
147
|
+
this.authRouting.navigateTo('logout');
|
|
166
148
|
});
|
|
167
149
|
}
|
|
168
150
|
/**
|
|
@@ -192,7 +174,7 @@ let Navigation = class Navigation extends EventEmitter(FASTElement) {
|
|
|
192
174
|
* @internal
|
|
193
175
|
*/
|
|
194
176
|
isUserPermitted(permission) {
|
|
195
|
-
return this.
|
|
177
|
+
return this.user.hasPermission(permission);
|
|
196
178
|
}
|
|
197
179
|
/**
|
|
198
180
|
* Opens the flyout menu on the left hand side
|
|
@@ -286,18 +268,18 @@ let Navigation = class Navigation extends EventEmitter(FASTElement) {
|
|
|
286
268
|
: text;
|
|
287
269
|
}
|
|
288
270
|
};
|
|
289
|
-
__decorate([
|
|
290
|
-
Auth
|
|
291
|
-
], Navigation.prototype, "auth", void 0);
|
|
292
|
-
__decorate([
|
|
293
|
-
CredentialManager
|
|
294
|
-
], Navigation.prototype, "credentialManager", void 0);
|
|
295
271
|
__decorate([
|
|
296
272
|
I18next
|
|
297
273
|
], Navigation.prototype, "i18next", void 0);
|
|
298
274
|
__decorate([
|
|
299
275
|
HeaderConfig
|
|
300
276
|
], Navigation.prototype, "headerConfig", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
AuthRouting
|
|
279
|
+
], Navigation.prototype, "authRouting", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
User
|
|
282
|
+
], Navigation.prototype, "user", void 0);
|
|
301
283
|
__decorate([
|
|
302
284
|
observable
|
|
303
285
|
], Navigation.prototype, "ready", void 0);
|
|
@@ -587,17 +587,17 @@
|
|
|
587
587
|
"members": [
|
|
588
588
|
{
|
|
589
589
|
"kind": "Property",
|
|
590
|
-
"canonicalReference": "@genesislcap/foundation-header!Navigation#
|
|
590
|
+
"canonicalReference": "@genesislcap/foundation-header!Navigation#authRouting:member",
|
|
591
591
|
"docComment": "",
|
|
592
592
|
"excerptTokens": [
|
|
593
593
|
{
|
|
594
594
|
"kind": "Content",
|
|
595
|
-
"text": "
|
|
595
|
+
"text": "authRouting: "
|
|
596
596
|
},
|
|
597
597
|
{
|
|
598
598
|
"kind": "Reference",
|
|
599
|
-
"text": "
|
|
600
|
-
"canonicalReference": "@genesislcap/foundation-
|
|
599
|
+
"text": "AuthRouting",
|
|
600
|
+
"canonicalReference": "@genesislcap/foundation-auth!AuthRouting:interface"
|
|
601
601
|
},
|
|
602
602
|
{
|
|
603
603
|
"kind": "Content",
|
|
@@ -607,7 +607,7 @@
|
|
|
607
607
|
"isReadonly": false,
|
|
608
608
|
"isOptional": false,
|
|
609
609
|
"releaseTag": "Public",
|
|
610
|
-
"name": "
|
|
610
|
+
"name": "authRouting",
|
|
611
611
|
"propertyTypeTokenRange": {
|
|
612
612
|
"startIndex": 1,
|
|
613
613
|
"endIndex": 2
|
|
@@ -701,37 +701,6 @@
|
|
|
701
701
|
"isAbstract": false,
|
|
702
702
|
"name": "connectedCallback"
|
|
703
703
|
},
|
|
704
|
-
{
|
|
705
|
-
"kind": "Property",
|
|
706
|
-
"canonicalReference": "@genesislcap/foundation-header!Navigation#credentialManager:member",
|
|
707
|
-
"docComment": "",
|
|
708
|
-
"excerptTokens": [
|
|
709
|
-
{
|
|
710
|
-
"kind": "Content",
|
|
711
|
-
"text": "credentialManager: "
|
|
712
|
-
},
|
|
713
|
-
{
|
|
714
|
-
"kind": "Reference",
|
|
715
|
-
"text": "CredentialManager",
|
|
716
|
-
"canonicalReference": "@genesislcap/foundation-comms!CredentialManager:interface"
|
|
717
|
-
},
|
|
718
|
-
{
|
|
719
|
-
"kind": "Content",
|
|
720
|
-
"text": ";"
|
|
721
|
-
}
|
|
722
|
-
],
|
|
723
|
-
"isReadonly": false,
|
|
724
|
-
"isOptional": false,
|
|
725
|
-
"releaseTag": "Public",
|
|
726
|
-
"name": "credentialManager",
|
|
727
|
-
"propertyTypeTokenRange": {
|
|
728
|
-
"startIndex": 1,
|
|
729
|
-
"endIndex": 2
|
|
730
|
-
},
|
|
731
|
-
"isStatic": false,
|
|
732
|
-
"isProtected": false,
|
|
733
|
-
"isAbstract": false
|
|
734
|
-
},
|
|
735
704
|
{
|
|
736
705
|
"kind": "Property",
|
|
737
706
|
"canonicalReference": "@genesislcap/foundation-header!Navigation#headerConfig:member",
|
|
@@ -918,7 +887,7 @@
|
|
|
918
887
|
{
|
|
919
888
|
"kind": "Method",
|
|
920
889
|
"canonicalReference": "@genesislcap/foundation-header!Navigation#logout:member(1)",
|
|
921
|
-
"docComment": "/**\n * Logs the user out of their session\n *\n * @
|
|
890
|
+
"docComment": "/**\n * Logs the user out of their session\n *\n * @public\n */\n",
|
|
922
891
|
"excerptTokens": [
|
|
923
892
|
{
|
|
924
893
|
"kind": "Content",
|
|
@@ -1376,6 +1345,37 @@
|
|
|
1376
1345
|
"isAbstract": false,
|
|
1377
1346
|
"name": "toLocalisedText"
|
|
1378
1347
|
},
|
|
1348
|
+
{
|
|
1349
|
+
"kind": "Property",
|
|
1350
|
+
"canonicalReference": "@genesislcap/foundation-header!Navigation#user:member",
|
|
1351
|
+
"docComment": "",
|
|
1352
|
+
"excerptTokens": [
|
|
1353
|
+
{
|
|
1354
|
+
"kind": "Content",
|
|
1355
|
+
"text": "user: "
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
"kind": "Reference",
|
|
1359
|
+
"text": "User",
|
|
1360
|
+
"canonicalReference": "@genesislcap/foundation-user!User:interface"
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"kind": "Content",
|
|
1364
|
+
"text": ";"
|
|
1365
|
+
}
|
|
1366
|
+
],
|
|
1367
|
+
"isReadonly": false,
|
|
1368
|
+
"isOptional": false,
|
|
1369
|
+
"releaseTag": "Public",
|
|
1370
|
+
"name": "user",
|
|
1371
|
+
"propertyTypeTokenRange": {
|
|
1372
|
+
"startIndex": 1,
|
|
1373
|
+
"endIndex": 2
|
|
1374
|
+
},
|
|
1375
|
+
"isStatic": false,
|
|
1376
|
+
"isProtected": false,
|
|
1377
|
+
"isAbstract": false
|
|
1378
|
+
},
|
|
1379
1379
|
{
|
|
1380
1380
|
"kind": "Property",
|
|
1381
1381
|
"canonicalReference": "@genesislcap/foundation-header!Navigation#userName:member",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthRouting } from '@genesislcap/foundation-auth/routing';
|
|
2
2
|
import { Controller } from '@microsoft/fast-element';
|
|
3
|
-
import { CredentialManager } from '@genesislcap/foundation-comms';
|
|
4
3
|
import { ElementStyles } from '@microsoft/fast-element';
|
|
5
4
|
import { EmitOptions } from '@genesislcap/foundation-events';
|
|
6
5
|
import { EmitReturn } from '@genesislcap/foundation-events';
|
|
@@ -10,6 +9,7 @@ import { InterfaceSymbol } from '@microsoft/fast-foundation';
|
|
|
10
9
|
import { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
11
10
|
import { SyntheticViewTemplate } from '@microsoft/fast-element';
|
|
12
11
|
import { TemplateElementDependency } from '@genesislcap/foundation-ui';
|
|
12
|
+
import { User } from '@genesislcap/foundation-user';
|
|
13
13
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -213,10 +213,10 @@ export declare type NavEventDetailMap = {
|
|
|
213
213
|
*
|
|
214
214
|
*/
|
|
215
215
|
export declare class Navigation extends Navigation_base {
|
|
216
|
-
auth: Auth;
|
|
217
|
-
credentialManager: CredentialManager;
|
|
218
216
|
i18next: I18next;
|
|
219
217
|
headerConfig: HeaderConfig;
|
|
218
|
+
authRouting: AuthRouting;
|
|
219
|
+
user: User;
|
|
220
220
|
ready: boolean;
|
|
221
221
|
/**
|
|
222
222
|
* Username of the logged in user
|
|
@@ -324,11 +324,6 @@ export declare class Navigation extends Navigation_base {
|
|
|
324
324
|
/**
|
|
325
325
|
* Logs the user out of their session
|
|
326
326
|
*
|
|
327
|
-
* @remarks
|
|
328
|
-
*
|
|
329
|
-
* Activated when the user clicks on the logout button on the right hand side of the navigation bar. Requires
|
|
330
|
-
* the usage of the auth functionality from {@link @genesislcap/foundation-comms#Auth}.
|
|
331
|
-
*
|
|
332
327
|
* @public
|
|
333
328
|
*/
|
|
334
329
|
logout(): Promise<void>;
|
|
@@ -472,14 +467,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
472
467
|
readonly scrollHeight: number;
|
|
473
468
|
scrollLeft: number;
|
|
474
469
|
scrollTop: number;
|
|
475
|
-
readonly scrollWidth: number;
|
|
476
|
-
* Optional attribute which controls the icon to show on the navigation bar and flyout
|
|
477
|
-
* Control via `logo-src`
|
|
478
|
-
*
|
|
479
|
-
* @remarks
|
|
480
|
-
*
|
|
481
|
-
* If this attribute is not set then the Genesis logo is shown instead
|
|
482
|
-
*/
|
|
470
|
+
readonly scrollWidth: number;
|
|
483
471
|
readonly shadowRoot: ShadowRoot;
|
|
484
472
|
slot: string;
|
|
485
473
|
readonly tagName: string;
|
|
@@ -545,9 +533,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
545
533
|
appendChild<T extends Node>(node: T): T;
|
|
546
534
|
cloneNode(deep?: boolean): Node;
|
|
547
535
|
compareDocumentPosition(other: Node): number;
|
|
548
|
-
contains(other: Node): boolean;
|
|
549
|
-
* If present the defined {@link @genesislcap/foundation-ui#FoundationRouteNavItem | FoundationRouteNavItems} will be rendered in the header 'routes' slot
|
|
550
|
-
*/
|
|
536
|
+
contains(other: Node): boolean;
|
|
551
537
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
552
538
|
hasChildNodes(): boolean;
|
|
553
539
|
insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1;
|
|
@@ -604,16 +590,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
604
590
|
ariaPosInSet: string;
|
|
605
591
|
ariaPressed: string;
|
|
606
592
|
ariaReadOnly: string;
|
|
607
|
-
/**
|
|
608
|
-
* Opens the flyout menu on the left hand side
|
|
609
|
-
*
|
|
610
|
-
* @remarks
|
|
611
|
-
*
|
|
612
|
-
* Activated when the user clicks on the menu button on the navigation
|
|
613
|
-
* bar left hand side
|
|
614
|
-
*
|
|
615
|
-
* @internal
|
|
616
|
-
*/
|
|
617
593
|
ariaRequired: string;
|
|
618
594
|
ariaRoleDescription: string;
|
|
619
595
|
ariaRowCount: string;
|
|
@@ -639,16 +615,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
639
615
|
readonly previousElementSibling: Element;
|
|
640
616
|
readonly childElementCount: number;
|
|
641
617
|
readonly children: HTMLCollection;
|
|
642
|
-
/**
|
|
643
|
-
* Emits the event corresponding to the miscellaneous icon being clicked
|
|
644
|
-
*
|
|
645
|
-
* @remarks
|
|
646
|
-
*
|
|
647
|
-
* Activated when the user clicks on the menu icon on the navigation
|
|
648
|
-
* bar right hand side
|
|
649
|
-
*
|
|
650
|
-
* @internal
|
|
651
|
-
*/
|
|
652
618
|
readonly firstElementChild: Element;
|
|
653
619
|
readonly lastElementChild: Element;
|
|
654
620
|
append(...nodes: (string | Node)[]): void;
|
|
@@ -671,22 +637,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
671
637
|
readonly isContentEditable: boolean;
|
|
672
638
|
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
673
639
|
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
674
|
-
/**
|
|
675
|
-
* FoundationHeader.
|
|
676
|
-
*
|
|
677
|
-
* @remarks
|
|
678
|
-
* Base MF export used by host application `configure` calls. It does not set up a design system or components. Both are
|
|
679
|
-
* expected to be registered in the host application, which should provide the details of which to the MF via
|
|
680
|
-
* TemplateOptions.
|
|
681
|
-
*
|
|
682
|
-
* See the {@link configure} hook for more information on how to set up and use this micro frontend in your application.
|
|
683
|
-
*
|
|
684
|
-
* @privateRemarks
|
|
685
|
-
* We will override loadRemotes to remove zero. This setup is the inverse of FoundationAuth.
|
|
686
|
-
* We're doing this to avoid a breaking change, so consumers can continue to use Navigation which bundles zero.
|
|
687
|
-
*
|
|
688
|
-
* @public
|
|
689
|
-
*/
|
|
690
640
|
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
691
641
|
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
692
642
|
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
@@ -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
|
```
|
|
@@ -21,8 +21,7 @@ export declare class Navigation extends Navigation_base
|
|
|
21
21
|
|
|
22
22
|
| Property | Modifiers | Type | Description |
|
|
23
23
|
| --- | --- | --- | --- |
|
|
24
|
-
| [
|
|
25
|
-
| [credentialManager](./foundation-header.navigation.credentialmanager.md) | | CredentialManager | |
|
|
24
|
+
| [authRouting](./foundation-header.navigation.authrouting.md) | | AuthRouting | |
|
|
26
25
|
| [headerConfig](./foundation-header.navigation.headerconfig.md) | | [HeaderConfig](./foundation-header.headerconfig.md) | |
|
|
27
26
|
| [hideSideBar](./foundation-header.navigation.hidesidebar.md) | | boolean | Boolean attribute which controls whether to include the sideNav component Control via<code>hide-side-bar</code> |
|
|
28
27
|
| [i18next](./foundation-header.navigation.i18next.md) | | I18next | |
|
|
@@ -38,6 +37,7 @@ export declare class Navigation extends Navigation_base
|
|
|
38
37
|
| [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> |
|
|
39
38
|
| [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> |
|
|
40
39
|
| [sideNavOpen](./foundation-header.navigation.sidenavopen.md) | | boolean | |
|
|
40
|
+
| [user](./foundation-header.navigation.user.md) | | User | |
|
|
41
41
|
| [userName](./foundation-header.navigation.username.md) | | string | Username of the logged in user |
|
|
42
42
|
|
|
43
43
|
## Methods
|
package/docs/api/{foundation-header.navigation.auth.md → foundation-header.navigation.user.md}
RENAMED
|
@@ -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) > [user](./foundation-header.navigation.user.md)
|
|
4
4
|
|
|
5
|
-
## Navigation.
|
|
5
|
+
## Navigation.user property
|
|
6
6
|
|
|
7
7
|
**Signature:**
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
|
|
10
|
+
user: User;
|
|
11
11
|
```
|
package/docs/api-report.md
CHANGED
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { AuthRouting } from '@genesislcap/foundation-auth/routing';
|
|
8
8
|
import { Controller } from '@microsoft/fast-element';
|
|
9
|
-
import { CredentialManager } from '@genesislcap/foundation-comms';
|
|
10
9
|
import { ElementStyles } from '@microsoft/fast-element';
|
|
11
10
|
import { EmitOptions } from '@genesislcap/foundation-events';
|
|
12
11
|
import { EmitReturn } from '@genesislcap/foundation-events';
|
|
@@ -16,6 +15,7 @@ import { InterfaceSymbol } from '@microsoft/fast-foundation';
|
|
|
16
15
|
import { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
17
16
|
import { SyntheticViewTemplate } from '@microsoft/fast-element';
|
|
18
17
|
import { TemplateElementDependency } from '@genesislcap/foundation-ui';
|
|
18
|
+
import { User } from '@genesislcap/foundation-user';
|
|
19
19
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
20
20
|
|
|
21
21
|
// @public
|
|
@@ -84,15 +84,13 @@ export type NavEventDetailMap = {
|
|
|
84
84
|
// @public
|
|
85
85
|
export class Navigation extends Navigation_base {
|
|
86
86
|
// (undocumented)
|
|
87
|
-
|
|
87
|
+
authRouting: AuthRouting;
|
|
88
88
|
changeLanguage(e: CustomEvent): void;
|
|
89
89
|
// @internal
|
|
90
90
|
closeNav(): void;
|
|
91
91
|
// (undocumented)
|
|
92
92
|
connectedCallback(): Promise<void>;
|
|
93
93
|
// (undocumented)
|
|
94
|
-
credentialManager: CredentialManager;
|
|
95
|
-
// (undocumented)
|
|
96
94
|
headerConfig: HeaderConfig;
|
|
97
95
|
hideSideBar: boolean;
|
|
98
96
|
// (undocumented)
|
|
@@ -142,6 +140,8 @@ export class Navigation extends Navigation_base {
|
|
|
142
140
|
// @internal
|
|
143
141
|
toggleNavVisibility(): void;
|
|
144
142
|
toLocalisedText(text: string): string;
|
|
143
|
+
// (undocumented)
|
|
144
|
+
user: User;
|
|
145
145
|
userName: string;
|
|
146
146
|
}
|
|
147
147
|
|
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.218.
|
|
4
|
+
"version": "14.218.1",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-header.d.ts",
|
|
@@ -76,24 +76,26 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@genesislcap/foundation-testing": "14.218.
|
|
80
|
-
"@genesislcap/genx": "14.218.
|
|
81
|
-
"@genesislcap/rollup-builder": "14.218.
|
|
82
|
-
"@genesislcap/ts-builder": "14.218.
|
|
83
|
-
"@genesislcap/uvu-playwright-builder": "14.218.
|
|
84
|
-
"@genesislcap/vite-builder": "14.218.
|
|
85
|
-
"@genesislcap/webpack-builder": "14.218.
|
|
79
|
+
"@genesislcap/foundation-testing": "14.218.1",
|
|
80
|
+
"@genesislcap/genx": "14.218.1",
|
|
81
|
+
"@genesislcap/rollup-builder": "14.218.1",
|
|
82
|
+
"@genesislcap/ts-builder": "14.218.1",
|
|
83
|
+
"@genesislcap/uvu-playwright-builder": "14.218.1",
|
|
84
|
+
"@genesislcap/vite-builder": "14.218.1",
|
|
85
|
+
"@genesislcap/webpack-builder": "14.218.1",
|
|
86
86
|
"rimraf": "^5.0.0"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@genesislcap/foundation-
|
|
90
|
-
"@genesislcap/foundation-
|
|
91
|
-
"@genesislcap/foundation-
|
|
92
|
-
"@genesislcap/foundation-
|
|
93
|
-
"@genesislcap/foundation-
|
|
94
|
-
"@genesislcap/foundation-
|
|
95
|
-
"@genesislcap/foundation-
|
|
96
|
-
"@genesislcap/foundation-
|
|
89
|
+
"@genesislcap/foundation-auth": "14.218.1",
|
|
90
|
+
"@genesislcap/foundation-comms": "14.218.1",
|
|
91
|
+
"@genesislcap/foundation-events": "14.218.1",
|
|
92
|
+
"@genesislcap/foundation-i18n": "14.218.1",
|
|
93
|
+
"@genesislcap/foundation-logger": "14.218.1",
|
|
94
|
+
"@genesislcap/foundation-shell": "14.218.1",
|
|
95
|
+
"@genesislcap/foundation-ui": "14.218.1",
|
|
96
|
+
"@genesislcap/foundation-user": "14.218.1",
|
|
97
|
+
"@genesislcap/foundation-utils": "14.218.1",
|
|
98
|
+
"@genesislcap/foundation-zero": "14.218.1",
|
|
97
99
|
"@microsoft/fast-colors": "^5.3.1",
|
|
98
100
|
"@microsoft/fast-element": "^1.12.0",
|
|
99
101
|
"@microsoft/fast-foundation": "2.49.6",
|
|
@@ -109,5 +111,5 @@
|
|
|
109
111
|
"access": "public"
|
|
110
112
|
},
|
|
111
113
|
"customElements": "dist/custom-elements.json",
|
|
112
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "3f2914c46bf26912a59d05c82097542cef8d899e"
|
|
113
115
|
}
|
package/docs/.gitattributes
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|