@genesislcap/foundation-header 14.131.0 → 14.133.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +64 -6
- package/dist/dts/config/index.d.ts +2 -0
- package/dist/dts/config/index.d.ts.map +1 -0
- package/dist/dts/config/targetId.d.ts +31 -0
- package/dist/dts/config/targetId.d.ts.map +1 -0
- package/dist/dts/index.d.ts +2 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +42 -23
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.styles.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/esm/config/index.js +1 -0
- package/dist/esm/config/targetId.js +1 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/main/main.js +48 -0
- package/dist/esm/main/main.styles.js +2 -1
- package/dist/esm/main/main.template.js +23 -15
- package/dist/foundation-header.api.json +235 -3
- package/dist/foundation-header.d.ts +77 -23
- package/docs/api/foundation-header.elementtargetid.md +15 -0
- package/docs/api/foundation-header.headertargetid.md +13 -0
- package/docs/api/foundation-header.md +5 -0
- package/docs/api/foundation-header.navigation.md +2 -0
- package/docs/api/foundation-header.navigation.routebuttons.md +5 -0
- package/docs/api/foundation-header.navigation.routenavitems.md +13 -0
- package/docs/api/foundation-header.navigation.shownotificationsbutton.md +5 -0
- package/docs/api/foundation-header.navigation.tolocalisedtext.md +28 -0
- package/docs/api/foundation-header.navtargetid.md +13 -0
- package/docs/api/foundation-header.sidenavtargetid.md +13 -0
- package/docs/api/foundation-header.styletargetid.md +13 -0
- package/docs/api-report.md +24 -0
- package/package.json +19 -10
package/docs/api-report.md
CHANGED
|
@@ -10,9 +10,16 @@ import { CredentialManager } from '@genesislcap/foundation-comms';
|
|
|
10
10
|
import { ElementStyles } from '@microsoft/fast-element';
|
|
11
11
|
import { EmitOptions } from '@genesislcap/foundation-events';
|
|
12
12
|
import { EmitReturn } from '@genesislcap/foundation-events';
|
|
13
|
+
import type { FoundationRouteNavItem } from '@genesislcap/foundation-ui';
|
|
13
14
|
import { I18next } from '@genesislcap/foundation-i18n';
|
|
14
15
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
15
16
|
|
|
17
|
+
// @public
|
|
18
|
+
export type ElementTargetId = HeaderTargetId | NavTargetId | SideNavTargetId;
|
|
19
|
+
|
|
20
|
+
// @public
|
|
21
|
+
export type HeaderTargetId = 'header-start' | 'header' | 'header-end';
|
|
22
|
+
|
|
16
23
|
// @public
|
|
17
24
|
export type LanguageOptions = {
|
|
18
25
|
availableLanguages: string[];
|
|
@@ -59,6 +66,7 @@ export class Navigation extends Navigation_base {
|
|
|
59
66
|
notificationIconEvent(): void;
|
|
60
67
|
// (undocumented)
|
|
61
68
|
ready: boolean;
|
|
69
|
+
// @deprecated
|
|
62
70
|
routeButtons: Array<{
|
|
63
71
|
index: number;
|
|
64
72
|
path: string;
|
|
@@ -66,23 +74,39 @@ export class Navigation extends Navigation_base {
|
|
|
66
74
|
icon: string;
|
|
67
75
|
variant: string;
|
|
68
76
|
}>;
|
|
77
|
+
// @internal (undocumented)
|
|
78
|
+
routeButtonsChanged(): void;
|
|
79
|
+
routeNavItems: FoundationRouteNavItem[];
|
|
69
80
|
// (undocumented)
|
|
70
81
|
selectTemplate(): ViewTemplate<Navigation, any>;
|
|
71
82
|
showConnectionIndicator: boolean;
|
|
72
83
|
showLanguageSelector: boolean;
|
|
73
84
|
showLuminanceToggleButton: boolean;
|
|
74
85
|
showMiscToggleButton: boolean;
|
|
86
|
+
// @deprecated
|
|
75
87
|
showNotificationsButton: boolean;
|
|
88
|
+
// @internal (undocumented)
|
|
89
|
+
showNotificationsButtonChanged(): void;
|
|
76
90
|
// (undocumented)
|
|
77
91
|
sideNavOpen: boolean;
|
|
78
92
|
// @internal
|
|
79
93
|
toggleNavVisibility(): void;
|
|
94
|
+
toLocalisedText(text: string): string;
|
|
80
95
|
userName: string;
|
|
81
96
|
}
|
|
82
97
|
|
|
98
|
+
// @public
|
|
99
|
+
export type NavTargetId = 'nav-start' | 'nav' | 'nav-end';
|
|
100
|
+
|
|
83
101
|
// @public
|
|
84
102
|
export const NavTemplate: ViewTemplate<Navigation, any>;
|
|
85
103
|
|
|
104
|
+
// @public
|
|
105
|
+
export type SideNavTargetId = 'side-nav-start' | 'side-nav' | 'side-nav-end';
|
|
106
|
+
|
|
107
|
+
// @public
|
|
108
|
+
export type StyleTargetId = 'header';
|
|
109
|
+
|
|
86
110
|
// (No @packageDocumentation comment for this package)
|
|
87
111
|
|
|
88
112
|
```
|
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.
|
|
4
|
+
"version": "14.133.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-header.d.ts",
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"types": "./dist/foundation-header.d.ts",
|
|
27
27
|
"default": "./dist/esm/index.js"
|
|
28
28
|
},
|
|
29
|
+
"./config": {
|
|
30
|
+
"types": "./dist/dts/config/index.d.ts",
|
|
31
|
+
"default": "./dist/esm/esm/config/index.js"
|
|
32
|
+
},
|
|
29
33
|
"./e2e": {
|
|
30
34
|
"default": "./test/e2e/index.ts"
|
|
31
35
|
},
|
|
@@ -33,6 +37,9 @@
|
|
|
33
37
|
},
|
|
34
38
|
"typesVersions": {
|
|
35
39
|
"*": {
|
|
40
|
+
"config": [
|
|
41
|
+
"./dist/dts/config/index.d.ts"
|
|
42
|
+
],
|
|
36
43
|
"e2e": [
|
|
37
44
|
"./test/e2e/index.ts"
|
|
38
45
|
]
|
|
@@ -45,6 +52,7 @@
|
|
|
45
52
|
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
46
53
|
"dev": "npm run dev:webpack",
|
|
47
54
|
"dev:no-open": "genx dev --no-open -b webpack",
|
|
55
|
+
"dev:tsc": "genx dev -b ts",
|
|
48
56
|
"dev:webpack": "genx dev -b webpack",
|
|
49
57
|
"dev:webpack:https": "genx dev --https -b webpack",
|
|
50
58
|
"serve": "genx serve",
|
|
@@ -60,21 +68,22 @@
|
|
|
60
68
|
"test:debug": "genx test --debug"
|
|
61
69
|
},
|
|
62
70
|
"devDependencies": {
|
|
63
|
-
"@genesislcap/foundation-testing": "14.
|
|
64
|
-
"@genesislcap/genx": "14.
|
|
71
|
+
"@genesislcap/foundation-testing": "14.133.0",
|
|
72
|
+
"@genesislcap/genx": "14.133.0",
|
|
65
73
|
"rimraf": "^3.0.2"
|
|
66
74
|
},
|
|
67
75
|
"dependencies": {
|
|
68
|
-
"@genesislcap/foundation-comms": "14.
|
|
69
|
-
"@genesislcap/foundation-events": "14.
|
|
70
|
-
"@genesislcap/foundation-i18n": "14.
|
|
71
|
-
"@genesislcap/foundation-logger": "14.
|
|
72
|
-
"@genesislcap/foundation-
|
|
76
|
+
"@genesislcap/foundation-comms": "14.133.0",
|
|
77
|
+
"@genesislcap/foundation-events": "14.133.0",
|
|
78
|
+
"@genesislcap/foundation-i18n": "14.133.0",
|
|
79
|
+
"@genesislcap/foundation-logger": "14.133.0",
|
|
80
|
+
"@genesislcap/foundation-shell": "14.133.0",
|
|
81
|
+
"@genesislcap/foundation-ui": "14.133.0",
|
|
82
|
+
"@genesislcap/foundation-zero": "14.133.0",
|
|
73
83
|
"@microsoft/fast-colors": "^5.3.1",
|
|
74
84
|
"@microsoft/fast-components": "^2.30.6",
|
|
75
85
|
"@microsoft/fast-element": "^1.12.0",
|
|
76
86
|
"@microsoft/fast-router": "^0.4.8",
|
|
77
|
-
"change-case": "^4.1.2",
|
|
78
87
|
"tslib": "^2.3.1"
|
|
79
88
|
},
|
|
80
89
|
"repository": {
|
|
@@ -86,5 +95,5 @@
|
|
|
86
95
|
"access": "public"
|
|
87
96
|
},
|
|
88
97
|
"customElements": "dist/custom-elements.json",
|
|
89
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "75534e45567b7f439b5ed104151172fc4405a9c0"
|
|
90
99
|
}
|