@genesislcap/foundation-header 14.285.1 → 14.285.2-alpha-a57a535.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 +139 -43
- package/dist/dts/main/main.d.ts +40 -19
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/esm/main/main.js +9 -0
- package/dist/esm/main/main.template.js +3 -0
- package/dist/foundation-header.api.json +31 -1
- package/dist/foundation-header.d.ts +40 -19
- package/docs/api/foundation-header.navigation.md +1 -0
- package/docs/api/foundation-header.navigation.showenvironmentindicator.md +13 -0
- package/docs/api-report.md +1 -0
- package/package.json +22 -22
|
@@ -25,48 +25,6 @@
|
|
|
25
25
|
}
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
|
-
{
|
|
29
|
-
"kind": "javascript-module",
|
|
30
|
-
"path": "src/components/rapid-components.ts",
|
|
31
|
-
"declarations": [
|
|
32
|
-
{
|
|
33
|
-
"kind": "function",
|
|
34
|
-
"name": "registerCommonRapidComponents",
|
|
35
|
-
"privacy": "public"
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
"exports": [
|
|
39
|
-
{
|
|
40
|
-
"kind": "js",
|
|
41
|
-
"name": "registerCommonRapidComponents",
|
|
42
|
-
"declaration": {
|
|
43
|
-
"name": "registerCommonRapidComponents",
|
|
44
|
-
"module": "src/components/rapid-components.ts"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"kind": "javascript-module",
|
|
51
|
-
"path": "src/components/zero-components.ts",
|
|
52
|
-
"declarations": [
|
|
53
|
-
{
|
|
54
|
-
"kind": "function",
|
|
55
|
-
"name": "registerCommonZeroComponents",
|
|
56
|
-
"privacy": "public"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"exports": [
|
|
60
|
-
{
|
|
61
|
-
"kind": "js",
|
|
62
|
-
"name": "registerCommonZeroComponents",
|
|
63
|
-
"declaration": {
|
|
64
|
-
"name": "registerCommonZeroComponents",
|
|
65
|
-
"module": "src/components/zero-components.ts"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
28
|
{
|
|
71
29
|
"kind": "javascript-module",
|
|
72
30
|
"path": "src/config/config.ts",
|
|
@@ -222,6 +180,48 @@
|
|
|
222
180
|
}
|
|
223
181
|
]
|
|
224
182
|
},
|
|
183
|
+
{
|
|
184
|
+
"kind": "javascript-module",
|
|
185
|
+
"path": "src/components/rapid-components.ts",
|
|
186
|
+
"declarations": [
|
|
187
|
+
{
|
|
188
|
+
"kind": "function",
|
|
189
|
+
"name": "registerCommonRapidComponents",
|
|
190
|
+
"privacy": "public"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"exports": [
|
|
194
|
+
{
|
|
195
|
+
"kind": "js",
|
|
196
|
+
"name": "registerCommonRapidComponents",
|
|
197
|
+
"declaration": {
|
|
198
|
+
"name": "registerCommonRapidComponents",
|
|
199
|
+
"module": "src/components/rapid-components.ts"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"kind": "javascript-module",
|
|
206
|
+
"path": "src/components/zero-components.ts",
|
|
207
|
+
"declarations": [
|
|
208
|
+
{
|
|
209
|
+
"kind": "function",
|
|
210
|
+
"name": "registerCommonZeroComponents",
|
|
211
|
+
"privacy": "public"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"exports": [
|
|
215
|
+
{
|
|
216
|
+
"kind": "js",
|
|
217
|
+
"name": "registerCommonZeroComponents",
|
|
218
|
+
"declaration": {
|
|
219
|
+
"name": "registerCommonZeroComponents",
|
|
220
|
+
"module": "src/components/zero-components.ts"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
225
|
{
|
|
226
226
|
"kind": "javascript-module",
|
|
227
227
|
"path": "src/main/index.ts",
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
{
|
|
288
288
|
"kind": "variable",
|
|
289
289
|
"name": "navTemplate",
|
|
290
|
-
"default": "html<Navigation>`\n ${when((x) => !x.hideSideBar, sideNavTemplate)}\n <div class=\"nav-listbox\" data-test-id=\"nav-bar\" role=\"navigation\" aria-label=\"Main menu\">\n ${app.registerElementsTarget<HeaderTargetId>('header-start')}\n <div class=\"nav-leftside\">\n ${app.registerElementsTarget<NavTargetId>('nav-start')}\n ${when(\n (x) => !x.hideSideBar,\n html<Navigation>`\n <${buttonTag}\n class=\"bars-container\"\n @click=${(x) => x.toggleNavVisibility()}\n data-test-id=\"hamburger-menu\"\n aria-label=\"Toggle side menu\"\n aria-controls=\"side-nav\"\n aria-expanded=${(x) => x.sideNavOpen}\n appearance=\"stealth\"\n @focusin=${(x) => x.closeNav()}\n >\n <${iconTag}\n name=\"bars\"\n part=\"nav-visibility-icon\"\n class=\"nav-visibility-icon\"\n >\n </${iconTag}>\n </${buttonTag}>\n `,\n )}\n <div class=\"logo-container\" data-test-id=\"nav-bar-logo\">\n <img\n src=${(x) => x.logoSrc}\n class=\"logo\"\n part=\"logo\"\n data-test-id=\"logo\"\n alt=\"${(x) => x.logoAltText}\"\n />\n </div>\n <slot name=\"routes\" data-test-id=\"route-buttons\">\n ${(x) => (x.routeNavItems ? routeNavItemsTemplate('header') : defaultRouteNavItemsTemplate)}\n </slot>\n ${app.registerElementsTarget<NavTargetId>('nav')}\n </div>\n <div class=\"nav-rightside\">\n ${app.registerElementsTarget<NavTargetId>('nav-end')}\n <slot name=\"routes-end\" data-test-id=\"route-end-buttons\"></slot>\n ${when(\n (x) => x.showLuminanceToggleButton,\n html<Navigation>`\n <div\n class=\"icon-container\"\n data-test-id=\"luminance-toggle-button\"\n part=\"luminance-button\"\n aria-label=\"Luminance toggle\"\n >\n <${iconTag}\n @click=${(x) => x.luminanceIconEvent()}\n variant=\"regular\"\n name=\"moon\"\n part=\"luminance-icon\"\n ></${iconTag}>\n </div>\n `,\n )}\n ${when(\n (x) => x.showMiscToggleButton,\n html<Navigation>`\n <div class=\"icon-container\" data-test-id=\"misc-toggle-button\" part=\"misc-button\" aria-label=\"Misc icon\">\n <${iconTag} @click=${(x) => x.miscIconEvent()} name=\"th\" part=\"misc-icon\">\n </${iconTag}>\n </div>\n `,\n )}\n ${when(\n (x) => x.showConnectionIndicator,\n html<Navigation>`\n <div class=\"connection-indicator-container\" data-test-id=\"connection-indicator\">\n <${connectionIndicatorTag} show-label=\"false\">\n </${connectionIndicatorTag}>\n </div>\n `,\n )}\n ${when(\n (x) => x.showLanguageSelector && x.languageOptions,\n html<Navigation>`\n <${selectTag}\n class=\"language-selector\"\n position=\"below\"\n data-test-id=\"language-selector\"\n part=\"language-selector\"\n @change=\"${(x, c) => x.changeLanguage(c.event as CustomEvent)}\"\n aria-label=\"Language selector\"\n >\n ${repeat(\n (x) => x.languageOptions.availableLanguages,\n html`\n <${optionTag}\n value=\"${(x) => x}\"\n ?selected=\"${(x, c) => x === c.parent.languageOptions.selectedLanguage}\"\n >\n ${(x) => x.toUpperCase()}\n </${optionTag}>\n `,\n )}\n </${selectTag}>\n `,\n )}\n ${() => accountMenuTemplate}\n </div>\n ${app.registerElementsTarget<HeaderTargetId>(['header', 'header-end'])}\n </div>\n`",
|
|
290
|
+
"default": "html<Navigation>`\n ${when((x) => !x.hideSideBar, sideNavTemplate)}\n <div class=\"nav-listbox\" data-test-id=\"nav-bar\" role=\"navigation\" aria-label=\"Main menu\">\n ${app.registerElementsTarget<HeaderTargetId>('header-start')}\n <div class=\"nav-leftside\">\n ${app.registerElementsTarget<NavTargetId>('nav-start')}\n ${when(\n (x) => !x.hideSideBar,\n html<Navigation>`\n <${buttonTag}\n class=\"bars-container\"\n @click=${(x) => x.toggleNavVisibility()}\n data-test-id=\"hamburger-menu\"\n aria-label=\"Toggle side menu\"\n aria-controls=\"side-nav\"\n aria-expanded=${(x) => x.sideNavOpen}\n appearance=\"stealth\"\n @focusin=${(x) => x.closeNav()}\n >\n <${iconTag}\n name=\"bars\"\n part=\"nav-visibility-icon\"\n class=\"nav-visibility-icon\"\n >\n </${iconTag}>\n </${buttonTag}>\n `,\n )}\n <div class=\"logo-container\" data-test-id=\"nav-bar-logo\">\n <img\n src=${(x) => x.logoSrc}\n class=\"logo\"\n part=\"logo\"\n data-test-id=\"logo\"\n alt=\"${(x) => x.logoAltText}\"\n />\n </div>\n <slot name=\"routes\" data-test-id=\"route-buttons\">\n ${(x) => (x.routeNavItems ? routeNavItemsTemplate('header') : defaultRouteNavItemsTemplate)}\n </slot>\n ${app.registerElementsTarget<NavTargetId>('nav')}\n </div>\n <div class=\"nav-rightside\">\n ${when(\n (x) => x.showEnvironmentIndicator,\n html<Navigation>`\n <zero-environment-indicator class=\"environment-indicator\"></zero-environment-indicator>\n `,\n )}\n ${app.registerElementsTarget<NavTargetId>('nav-end')}\n <slot name=\"routes-end\" data-test-id=\"route-end-buttons\"></slot>\n ${when(\n (x) => x.showLuminanceToggleButton,\n html<Navigation>`\n <div\n class=\"icon-container\"\n data-test-id=\"luminance-toggle-button\"\n part=\"luminance-button\"\n aria-label=\"Luminance toggle\"\n >\n <${iconTag}\n @click=${(x) => x.luminanceIconEvent()}\n variant=\"regular\"\n name=\"moon\"\n part=\"luminance-icon\"\n ></${iconTag}>\n </div>\n `,\n )}\n ${when(\n (x) => x.showMiscToggleButton,\n html<Navigation>`\n <div class=\"icon-container\" data-test-id=\"misc-toggle-button\" part=\"misc-button\" aria-label=\"Misc icon\">\n <${iconTag} @click=${(x) => x.miscIconEvent()} name=\"th\" part=\"misc-icon\">\n </${iconTag}>\n </div>\n `,\n )}\n ${when(\n (x) => x.showConnectionIndicator,\n html<Navigation>`\n <div class=\"connection-indicator-container\" data-test-id=\"connection-indicator\">\n <${connectionIndicatorTag} show-label=\"false\">\n </${connectionIndicatorTag}>\n </div>\n `,\n )}\n ${when(\n (x) => x.showLanguageSelector && x.languageOptions,\n html<Navigation>`\n <${selectTag}\n class=\"language-selector\"\n position=\"below\"\n data-test-id=\"language-selector\"\n part=\"language-selector\"\n @change=\"${(x, c) => x.changeLanguage(c.event as CustomEvent)}\"\n aria-label=\"Language selector\"\n >\n ${repeat(\n (x) => x.languageOptions.availableLanguages,\n html`\n <${optionTag}\n value=\"${(x) => x}\"\n ?selected=\"${(x, c) => x === c.parent.languageOptions.selectedLanguage}\"\n >\n ${(x) => x.toUpperCase()}\n </${optionTag}>\n `,\n )}\n </${selectTag}>\n `,\n )}\n ${() => accountMenuTemplate}\n </div>\n ${app.registerElementsTarget<HeaderTargetId>(['header', 'header-end'])}\n </div>\n`",
|
|
291
291
|
"description": "Template for Navigation class",
|
|
292
292
|
"return": {
|
|
293
293
|
"type": {
|
|
@@ -420,6 +420,15 @@
|
|
|
420
420
|
"default": "true",
|
|
421
421
|
"description": "Boolean attribute which controls whether to show the connection indicator on the navigation bar\nControl via `show-connection-indicator`"
|
|
422
422
|
},
|
|
423
|
+
{
|
|
424
|
+
"kind": "field",
|
|
425
|
+
"name": "showEnvironmentIndicator",
|
|
426
|
+
"type": {
|
|
427
|
+
"text": "boolean"
|
|
428
|
+
},
|
|
429
|
+
"default": "false",
|
|
430
|
+
"description": "Boolean attribute which controls whether to show the environment indicator on the navigation bar\nControl via `show-environment-indicator`"
|
|
431
|
+
},
|
|
423
432
|
{
|
|
424
433
|
"kind": "field",
|
|
425
434
|
"name": "showLanguageSelector",
|
|
@@ -669,6 +678,15 @@
|
|
|
669
678
|
"description": "Boolean attribute which controls whether to show the connection indicator on the navigation bar\nControl via `show-connection-indicator`",
|
|
670
679
|
"fieldName": "showConnectionIndicator"
|
|
671
680
|
},
|
|
681
|
+
{
|
|
682
|
+
"name": "show-environment-indicator",
|
|
683
|
+
"type": {
|
|
684
|
+
"text": "boolean"
|
|
685
|
+
},
|
|
686
|
+
"default": "false",
|
|
687
|
+
"description": "Boolean attribute which controls whether to show the environment indicator on the navigation bar\nControl via `show-environment-indicator`",
|
|
688
|
+
"fieldName": "showEnvironmentIndicator"
|
|
689
|
+
},
|
|
672
690
|
{
|
|
673
691
|
"name": "show-language-selector",
|
|
674
692
|
"type": {
|
|
@@ -887,6 +905,19 @@
|
|
|
887
905
|
"module": "src/main/main.ts"
|
|
888
906
|
}
|
|
889
907
|
},
|
|
908
|
+
{
|
|
909
|
+
"kind": "field",
|
|
910
|
+
"name": "showEnvironmentIndicator",
|
|
911
|
+
"type": {
|
|
912
|
+
"text": "boolean"
|
|
913
|
+
},
|
|
914
|
+
"default": "false",
|
|
915
|
+
"description": "Boolean attribute which controls whether to show the environment indicator on the navigation bar\nControl via `show-environment-indicator`",
|
|
916
|
+
"inheritedFrom": {
|
|
917
|
+
"name": "Navigation",
|
|
918
|
+
"module": "src/main/main.ts"
|
|
919
|
+
}
|
|
920
|
+
},
|
|
890
921
|
{
|
|
891
922
|
"kind": "field",
|
|
892
923
|
"name": "showLanguageSelector",
|
|
@@ -1194,6 +1225,19 @@
|
|
|
1194
1225
|
"module": "src/main/main.ts"
|
|
1195
1226
|
}
|
|
1196
1227
|
},
|
|
1228
|
+
{
|
|
1229
|
+
"name": "show-environment-indicator",
|
|
1230
|
+
"type": {
|
|
1231
|
+
"text": "boolean"
|
|
1232
|
+
},
|
|
1233
|
+
"default": "false",
|
|
1234
|
+
"description": "Boolean attribute which controls whether to show the environment indicator on the navigation bar\nControl via `show-environment-indicator`",
|
|
1235
|
+
"fieldName": "showEnvironmentIndicator",
|
|
1236
|
+
"inheritedFrom": {
|
|
1237
|
+
"name": "Navigation",
|
|
1238
|
+
"module": "src/main/main.ts"
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1197
1241
|
{
|
|
1198
1242
|
"name": "show-language-selector",
|
|
1199
1243
|
"type": {
|
|
@@ -1388,6 +1432,19 @@
|
|
|
1388
1432
|
"module": "src/main/main.ts"
|
|
1389
1433
|
}
|
|
1390
1434
|
},
|
|
1435
|
+
{
|
|
1436
|
+
"name": "show-environment-indicator",
|
|
1437
|
+
"type": {
|
|
1438
|
+
"text": "boolean"
|
|
1439
|
+
},
|
|
1440
|
+
"default": "false",
|
|
1441
|
+
"description": "Boolean attribute which controls whether to show the environment indicator on the navigation bar\nControl via `show-environment-indicator`",
|
|
1442
|
+
"fieldName": "showEnvironmentIndicator",
|
|
1443
|
+
"inheritedFrom": {
|
|
1444
|
+
"name": "Navigation",
|
|
1445
|
+
"module": "src/main/main.ts"
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1391
1448
|
{
|
|
1392
1449
|
"name": "show-language-selector",
|
|
1393
1450
|
"type": {
|
|
@@ -1596,6 +1653,19 @@
|
|
|
1596
1653
|
"module": "src/main/main.ts"
|
|
1597
1654
|
}
|
|
1598
1655
|
},
|
|
1656
|
+
{
|
|
1657
|
+
"kind": "field",
|
|
1658
|
+
"name": "showEnvironmentIndicator",
|
|
1659
|
+
"type": {
|
|
1660
|
+
"text": "boolean"
|
|
1661
|
+
},
|
|
1662
|
+
"default": "false",
|
|
1663
|
+
"description": "Boolean attribute which controls whether to show the environment indicator on the navigation bar\nControl via `show-environment-indicator`",
|
|
1664
|
+
"inheritedFrom": {
|
|
1665
|
+
"name": "Navigation",
|
|
1666
|
+
"module": "src/main/main.ts"
|
|
1667
|
+
}
|
|
1668
|
+
},
|
|
1599
1669
|
{
|
|
1600
1670
|
"kind": "field",
|
|
1601
1671
|
"name": "showLanguageSelector",
|
|
@@ -2044,6 +2114,19 @@
|
|
|
2044
2114
|
"module": "src/main/main.ts"
|
|
2045
2115
|
}
|
|
2046
2116
|
},
|
|
2117
|
+
{
|
|
2118
|
+
"kind": "field",
|
|
2119
|
+
"name": "showEnvironmentIndicator",
|
|
2120
|
+
"type": {
|
|
2121
|
+
"text": "boolean"
|
|
2122
|
+
},
|
|
2123
|
+
"default": "false",
|
|
2124
|
+
"description": "Boolean attribute which controls whether to show the environment indicator on the navigation bar\nControl via `show-environment-indicator`",
|
|
2125
|
+
"inheritedFrom": {
|
|
2126
|
+
"name": "Navigation",
|
|
2127
|
+
"module": "src/main/main.ts"
|
|
2128
|
+
}
|
|
2129
|
+
},
|
|
2047
2130
|
{
|
|
2048
2131
|
"kind": "field",
|
|
2049
2132
|
"name": "showLanguageSelector",
|
|
@@ -2339,6 +2422,19 @@
|
|
|
2339
2422
|
"module": "src/main/main.ts"
|
|
2340
2423
|
}
|
|
2341
2424
|
},
|
|
2425
|
+
{
|
|
2426
|
+
"name": "show-environment-indicator",
|
|
2427
|
+
"type": {
|
|
2428
|
+
"text": "boolean"
|
|
2429
|
+
},
|
|
2430
|
+
"default": "false",
|
|
2431
|
+
"description": "Boolean attribute which controls whether to show the environment indicator on the navigation bar\nControl via `show-environment-indicator`",
|
|
2432
|
+
"fieldName": "showEnvironmentIndicator",
|
|
2433
|
+
"inheritedFrom": {
|
|
2434
|
+
"name": "Navigation",
|
|
2435
|
+
"module": "src/main/main.ts"
|
|
2436
|
+
}
|
|
2437
|
+
},
|
|
2342
2438
|
{
|
|
2343
2439
|
"name": "show-language-selector",
|
|
2344
2440
|
"type": {
|
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -101,6 +101,14 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
101
101
|
hasAttributes(): boolean;
|
|
102
102
|
hasPointerCapture(pointerId: number): boolean;
|
|
103
103
|
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
104
|
+
/**
|
|
105
|
+
* Boolean attribute which controls whether to show the luminance (moon) icon on the navigation bar
|
|
106
|
+
* Control via`show-luminance-toggle-button`
|
|
107
|
+
*
|
|
108
|
+
* @remarks
|
|
109
|
+
*
|
|
110
|
+
* If the user clicks the icon when shown then this class will emit the 'luminance-icon-clicked' event
|
|
111
|
+
*/
|
|
104
112
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
105
113
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
106
114
|
matches(selectors: string): boolean;
|
|
@@ -143,7 +151,15 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
143
151
|
contains(other: Node): boolean;
|
|
144
152
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
145
153
|
hasChildNodes(): boolean;
|
|
146
|
-
insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1;
|
|
154
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1; /**
|
|
155
|
+
* Boolean attribute which controls whether to show the language selector on the navigation bar
|
|
156
|
+
* Control via `show-language-selector`
|
|
157
|
+
*
|
|
158
|
+
* @experimental
|
|
159
|
+
* @remarks
|
|
160
|
+
*
|
|
161
|
+
* Requires `i18nextOptions` to be set
|
|
162
|
+
*/
|
|
147
163
|
isDefaultNamespace(namespace: string): boolean;
|
|
148
164
|
isEqualNode(otherNode: Node): boolean;
|
|
149
165
|
isSameNode(otherNode: Node): boolean;
|
|
@@ -161,7 +177,14 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
161
177
|
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
162
178
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
163
179
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
164
|
-
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
180
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number; /**
|
|
181
|
+
* String attribute which controls the position of the logout button in the header
|
|
182
|
+
* Control via `logout-button-position`
|
|
183
|
+
*
|
|
184
|
+
* @remarks
|
|
185
|
+
*
|
|
186
|
+
* If this attribute is not set then the logout button is shown in the side nav
|
|
187
|
+
*/
|
|
165
188
|
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
166
189
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
167
190
|
readonly ELEMENT_NODE: number;
|
|
@@ -194,13 +217,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
194
217
|
ariaMultiSelectable: string;
|
|
195
218
|
ariaOrientation: string;
|
|
196
219
|
ariaPlaceholder: string;
|
|
197
|
-
ariaPosInSet: string;
|
|
198
|
-
* Boolean attribute which controls whether to show the account menu on the navigation bar
|
|
199
|
-
* Control via `show-account-menu`
|
|
200
|
-
*
|
|
201
|
-
* @remarks
|
|
202
|
-
* If this attribute is not set then the account menu is not shown
|
|
203
|
-
*/
|
|
220
|
+
ariaPosInSet: string;
|
|
204
221
|
ariaPressed: string;
|
|
205
222
|
ariaReadOnly: string;
|
|
206
223
|
ariaRequired: string;
|
|
@@ -216,7 +233,13 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
216
233
|
ariaValueMin: string;
|
|
217
234
|
ariaValueNow: string;
|
|
218
235
|
ariaValueText: string;
|
|
219
|
-
role: string;
|
|
236
|
+
role: string; /**
|
|
237
|
+
* Boolean attribute which controls whether to show the account menu on the navigation bar
|
|
238
|
+
* Control via `show-account-menu`
|
|
239
|
+
*
|
|
240
|
+
* @remarks
|
|
241
|
+
* If this attribute is not set then the account menu is not shown
|
|
242
|
+
*/
|
|
220
243
|
animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
|
|
221
244
|
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
222
245
|
after(...nodes: (string | Node)[]): void;
|
|
@@ -320,15 +343,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
320
343
|
onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
321
344
|
onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
322
345
|
onstalled: (this: GlobalEventHandlers, ev: Event) => any;
|
|
323
|
-
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
324
|
-
* Load remote components
|
|
325
|
-
*
|
|
326
|
-
* @remarks
|
|
327
|
-
*
|
|
328
|
-
* With regards to module federation
|
|
329
|
-
*
|
|
330
|
-
* @internal
|
|
331
|
-
*/
|
|
346
|
+
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
332
347
|
onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
333
348
|
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
|
|
334
349
|
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -376,6 +391,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
376
391
|
* @param show-misc-toggle-button - Boolean attribute which controls whether the navigation bar will display the miscellaneous behaviour icon.
|
|
377
392
|
* @param notification-icon-clicked - Boolean attribute which controls whether the navigation bar will display the show notification icon.
|
|
378
393
|
* @param show-connection-indicator - Boolean attribute which controls whether the navigation bar will display the connection indicator.
|
|
394
|
+
* @param show-environment-indicator - Boolean attribute which controls whether the navigation bar will display the environment indicator.
|
|
379
395
|
* @param show-language-selector - Boolean attribute which controls whether the navigation bar will display the language selector.
|
|
380
396
|
* @param hide-side-bar - Boolean attribute which controls whether the navigation bar will display the side bar.
|
|
381
397
|
* @param show-account-menu - Boolean attribute which controls whether the navigation bar will display the account menu.
|
|
@@ -477,6 +493,11 @@ export declare class Navigation extends Navigation_base {
|
|
|
477
493
|
*
|
|
478
494
|
*/
|
|
479
495
|
showConnectionIndicator: boolean;
|
|
496
|
+
/**
|
|
497
|
+
* Boolean attribute which controls whether to show the environment indicator on the navigation bar
|
|
498
|
+
* Control via `show-environment-indicator`
|
|
499
|
+
*/
|
|
500
|
+
showEnvironmentIndicator: boolean;
|
|
480
501
|
/**
|
|
481
502
|
* Boolean attribute which controls whether to show the language selector on the navigation bar
|
|
482
503
|
* Control via `show-language-selector`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAe,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE1E,OAAO,EAAsB,sB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AYG;AACH,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,UAAU,CAIpD,CAAC;AA8KF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,+
|
|
1
|
+
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAa1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAIzC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,UAAU,CAIpD,CAAC;AA8KF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,+BAoHvB,CAAC;AAiDF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,yCAI/B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,UAAU,CAEpD,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY,+BAAc,CAAC"}
|
package/dist/esm/main/main.js
CHANGED
|
@@ -31,6 +31,7 @@ import { LoadingTemplate, mainTemplate, dynamicTemplate as template } from './ma
|
|
|
31
31
|
* @param show-misc-toggle-button - Boolean attribute which controls whether the navigation bar will display the miscellaneous behaviour icon.
|
|
32
32
|
* @param notification-icon-clicked - Boolean attribute which controls whether the navigation bar will display the show notification icon.
|
|
33
33
|
* @param show-connection-indicator - Boolean attribute which controls whether the navigation bar will display the connection indicator.
|
|
34
|
+
* @param show-environment-indicator - Boolean attribute which controls whether the navigation bar will display the environment indicator.
|
|
34
35
|
* @param show-language-selector - Boolean attribute which controls whether the navigation bar will display the language selector.
|
|
35
36
|
* @param hide-side-bar - Boolean attribute which controls whether the navigation bar will display the side bar.
|
|
36
37
|
* @param show-account-menu - Boolean attribute which controls whether the navigation bar will display the account menu.
|
|
@@ -88,6 +89,11 @@ let Navigation = class Navigation extends EventEmitter(GenesisElement) {
|
|
|
88
89
|
*
|
|
89
90
|
*/
|
|
90
91
|
this.showConnectionIndicator = true;
|
|
92
|
+
/**
|
|
93
|
+
* Boolean attribute which controls whether to show the environment indicator on the navigation bar
|
|
94
|
+
* Control via `show-environment-indicator`
|
|
95
|
+
*/
|
|
96
|
+
this.showEnvironmentIndicator = false;
|
|
91
97
|
/**
|
|
92
98
|
* Boolean attribute which controls whether to show the language selector on the navigation bar
|
|
93
99
|
* Control via `show-language-selector`
|
|
@@ -391,6 +397,9 @@ __decorate([
|
|
|
391
397
|
__decorate([
|
|
392
398
|
attr({ mode: 'boolean', attribute: 'show-connection-indicator' })
|
|
393
399
|
], Navigation.prototype, "showConnectionIndicator", void 0);
|
|
400
|
+
__decorate([
|
|
401
|
+
attr({ mode: 'boolean', attribute: 'show-environment-indicator' })
|
|
402
|
+
], Navigation.prototype, "showEnvironmentIndicator", void 0);
|
|
394
403
|
__decorate([
|
|
395
404
|
attr({ mode: 'boolean', attribute: 'show-language-selector' })
|
|
396
405
|
], Navigation.prototype, "showLanguageSelector", void 0);
|
|
@@ -216,6 +216,9 @@ export const navTemplate = html `
|
|
|
216
216
|
${app.registerElementsTarget('nav')}
|
|
217
217
|
</div>
|
|
218
218
|
<div class="nav-rightside">
|
|
219
|
+
${when((x) => x.showEnvironmentIndicator, html `
|
|
220
|
+
<zero-environment-indicator class="environment-indicator"></zero-environment-indicator>
|
|
221
|
+
`)}
|
|
219
222
|
${app.registerElementsTarget('nav-end')}
|
|
220
223
|
<slot name="routes-end" data-test-id="route-end-buttons"></slot>
|
|
221
224
|
${when((x) => x.showLuminanceToggleButton, html `
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
{
|
|
573
573
|
"kind": "Class",
|
|
574
574
|
"canonicalReference": "@genesislcap/foundation-header!Navigation:class",
|
|
575
|
-
"docComment": "/**\n * Navigation micro-frontend includes navigation bar and flyout menu\n *\n * @remarks\n *\n * `foundation-header` micro-frontend can be added to the project to include a navigation bar and flyout menu. There are multiple ways that the behaviour of the component can be configured - the icon shown on the navigation bar and flyout menu (this shows the Genesis logo by default). - navigation links at the left-hand side of the navigation bar. - the control buttons on the right-hand side of the navigation bar can be shown or hidden, and their behaviour controlled via event listeners - The contents of the flyout menu.\n *\n * @param logo - src - Option attribute which sets the source of the image in the navigation bar and flyout menu. The Genesis logo will be shown if this attribute is not provided.\n *\n * @param logo - alt-text -Descriptive logo text.\n *\n * @param show - luminance-toggle-button - Boolean attribute which controls whether the navigation bar will display the luminance toggle icon.\n *\n * @param show - misc-toggle-button - Boolean attribute which controls whether the navigation bar will display the miscellaneous behaviour icon.\n *\n * @param notification - icon-clicked - Boolean attribute which controls whether the navigation bar will display the show notification icon.\n *\n * @param show - connection-indicator - Boolean attribute which controls whether the navigation bar will display the connection indicator.\n *\n * @param show - language-selector - Boolean attribute which controls whether the navigation bar will display the language selector.\n *\n * @param hide - side-bar - Boolean attribute which controls whether the navigation bar will display the side bar.\n *\n * @param show - account-menu - Boolean attribute which controls whether the navigation bar will display the account menu.\n *\n * @param logout - button-position - String attribute which controls the position of the logout button in the header.\n *\n * @param userName - String which defines the username to be displayed in the navigation bar.\n *\n * @param routeButtons - Array of objects which define the route buttons to be displayed in the navigation bar.\n *\n * @param routeNavItems - Array of {@link @genesislcap/foundation-ui#FoundationRouteNavItem | FoundationRouteNavItems} which define the route buttons to be displayed in the navigation bar.\n *\n * @param languageOptions - Object which defines the language options to be displayed in the language selector.\n *\n * @fires\n *\n * luminance-icon-clicked - Dispatched when the user clicks on the luminance toggle icon in the navigation bar.\n *\n * @fires\n *\n * misc-icon-clicked - Dispatched when the user clicks on the miscellaneous behaviour icon in the navigation bar.\n *\n * @fires\n *\n * notification-icon-clicked - Dispatched when the user clicks on the notification icon in the navigation bar.\n *\n * @fires\n *\n * language-changed - Dispatched when the user changes the language in the language selector.\n *\n * @fires\n *\n * logout-clicked - Dispatched when the user clicks logout button.\n *\n * @fires\n *\n * nav-button-clicked - Dispatched when the user clicks a navigation button.\n *\n * @public\n */\n",
|
|
575
|
+
"docComment": "/**\n * Navigation micro-frontend includes navigation bar and flyout menu\n *\n * @remarks\n *\n * `foundation-header` micro-frontend can be added to the project to include a navigation bar and flyout menu. There are multiple ways that the behaviour of the component can be configured - the icon shown on the navigation bar and flyout menu (this shows the Genesis logo by default). - navigation links at the left-hand side of the navigation bar. - the control buttons on the right-hand side of the navigation bar can be shown or hidden, and their behaviour controlled via event listeners - The contents of the flyout menu.\n *\n * @param logo - src - Option attribute which sets the source of the image in the navigation bar and flyout menu. The Genesis logo will be shown if this attribute is not provided.\n *\n * @param logo - alt-text -Descriptive logo text.\n *\n * @param show - luminance-toggle-button - Boolean attribute which controls whether the navigation bar will display the luminance toggle icon.\n *\n * @param show - misc-toggle-button - Boolean attribute which controls whether the navigation bar will display the miscellaneous behaviour icon.\n *\n * @param notification - icon-clicked - Boolean attribute which controls whether the navigation bar will display the show notification icon.\n *\n * @param show - connection-indicator - Boolean attribute which controls whether the navigation bar will display the connection indicator.\n *\n * @param show - environment-indicator - Boolean attribute which controls whether the navigation bar will display the environment indicator.\n *\n * @param show - language-selector - Boolean attribute which controls whether the navigation bar will display the language selector.\n *\n * @param hide - side-bar - Boolean attribute which controls whether the navigation bar will display the side bar.\n *\n * @param show - account-menu - Boolean attribute which controls whether the navigation bar will display the account menu.\n *\n * @param logout - button-position - String attribute which controls the position of the logout button in the header.\n *\n * @param userName - String which defines the username to be displayed in the navigation bar.\n *\n * @param routeButtons - Array of objects which define the route buttons to be displayed in the navigation bar.\n *\n * @param routeNavItems - Array of {@link @genesislcap/foundation-ui#FoundationRouteNavItem | FoundationRouteNavItems} which define the route buttons to be displayed in the navigation bar.\n *\n * @param languageOptions - Object which defines the language options to be displayed in the language selector.\n *\n * @fires\n *\n * luminance-icon-clicked - Dispatched when the user clicks on the luminance toggle icon in the navigation bar.\n *\n * @fires\n *\n * misc-icon-clicked - Dispatched when the user clicks on the miscellaneous behaviour icon in the navigation bar.\n *\n * @fires\n *\n * notification-icon-clicked - Dispatched when the user clicks on the notification icon in the navigation bar.\n *\n * @fires\n *\n * language-changed - Dispatched when the user changes the language in the language selector.\n *\n * @fires\n *\n * logout-clicked - Dispatched when the user clicks logout button.\n *\n * @fires\n *\n * nav-button-clicked - Dispatched when the user clicks a navigation button.\n *\n * @public\n */\n",
|
|
576
576
|
"excerptTokens": [
|
|
577
577
|
{
|
|
578
578
|
"kind": "Content",
|
|
@@ -1323,6 +1323,36 @@
|
|
|
1323
1323
|
"isProtected": false,
|
|
1324
1324
|
"isAbstract": false
|
|
1325
1325
|
},
|
|
1326
|
+
{
|
|
1327
|
+
"kind": "Property",
|
|
1328
|
+
"canonicalReference": "@genesislcap/foundation-header!Navigation#showEnvironmentIndicator:member",
|
|
1329
|
+
"docComment": "/**\n * Boolean attribute which controls whether to show the environment indicator on the navigation bar Control via `show-environment-indicator`\n */\n",
|
|
1330
|
+
"excerptTokens": [
|
|
1331
|
+
{
|
|
1332
|
+
"kind": "Content",
|
|
1333
|
+
"text": "showEnvironmentIndicator: "
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"kind": "Content",
|
|
1337
|
+
"text": "boolean"
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
"kind": "Content",
|
|
1341
|
+
"text": ";"
|
|
1342
|
+
}
|
|
1343
|
+
],
|
|
1344
|
+
"isReadonly": false,
|
|
1345
|
+
"isOptional": false,
|
|
1346
|
+
"releaseTag": "Public",
|
|
1347
|
+
"name": "showEnvironmentIndicator",
|
|
1348
|
+
"propertyTypeTokenRange": {
|
|
1349
|
+
"startIndex": 1,
|
|
1350
|
+
"endIndex": 2
|
|
1351
|
+
},
|
|
1352
|
+
"isStatic": false,
|
|
1353
|
+
"isProtected": false,
|
|
1354
|
+
"isAbstract": false
|
|
1355
|
+
},
|
|
1326
1356
|
{
|
|
1327
1357
|
"kind": "Property",
|
|
1328
1358
|
"canonicalReference": "@genesislcap/foundation-header!Navigation#showLanguageSelector:member",
|
|
@@ -217,6 +217,7 @@ export declare type NavEventDetailMap = {
|
|
|
217
217
|
* @param show-misc-toggle-button - Boolean attribute which controls whether the navigation bar will display the miscellaneous behaviour icon.
|
|
218
218
|
* @param notification-icon-clicked - Boolean attribute which controls whether the navigation bar will display the show notification icon.
|
|
219
219
|
* @param show-connection-indicator - Boolean attribute which controls whether the navigation bar will display the connection indicator.
|
|
220
|
+
* @param show-environment-indicator - Boolean attribute which controls whether the navigation bar will display the environment indicator.
|
|
220
221
|
* @param show-language-selector - Boolean attribute which controls whether the navigation bar will display the language selector.
|
|
221
222
|
* @param hide-side-bar - Boolean attribute which controls whether the navigation bar will display the side bar.
|
|
222
223
|
* @param show-account-menu - Boolean attribute which controls whether the navigation bar will display the account menu.
|
|
@@ -318,6 +319,11 @@ export declare class Navigation extends Navigation_base {
|
|
|
318
319
|
*
|
|
319
320
|
*/
|
|
320
321
|
showConnectionIndicator: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* Boolean attribute which controls whether to show the environment indicator on the navigation bar
|
|
324
|
+
* Control via `show-environment-indicator`
|
|
325
|
+
*/
|
|
326
|
+
showEnvironmentIndicator: boolean;
|
|
321
327
|
/**
|
|
322
328
|
* Boolean attribute which controls whether to show the language selector on the navigation bar
|
|
323
329
|
* Control via `show-language-selector`
|
|
@@ -575,6 +581,14 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
575
581
|
hasAttributes(): boolean;
|
|
576
582
|
hasPointerCapture(pointerId: number): boolean;
|
|
577
583
|
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
584
|
+
/**
|
|
585
|
+
* Boolean attribute which controls whether to show the luminance (moon) icon on the navigation bar
|
|
586
|
+
* Control via`show-luminance-toggle-button`
|
|
587
|
+
*
|
|
588
|
+
* @remarks
|
|
589
|
+
*
|
|
590
|
+
* If the user clicks the icon when shown then this class will emit the 'luminance-icon-clicked' event
|
|
591
|
+
*/
|
|
578
592
|
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
579
593
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
580
594
|
matches(selectors: string): boolean;
|
|
@@ -617,7 +631,15 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
617
631
|
contains(other: Node): boolean;
|
|
618
632
|
getRootNode(options?: GetRootNodeOptions): Node;
|
|
619
633
|
hasChildNodes(): boolean;
|
|
620
|
-
insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1;
|
|
634
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1; /**
|
|
635
|
+
* Boolean attribute which controls whether to show the language selector on the navigation bar
|
|
636
|
+
* Control via `show-language-selector`
|
|
637
|
+
*
|
|
638
|
+
* @experimental
|
|
639
|
+
* @remarks
|
|
640
|
+
*
|
|
641
|
+
* Requires `i18nextOptions` to be set
|
|
642
|
+
*/
|
|
621
643
|
isDefaultNamespace(namespace: string): boolean;
|
|
622
644
|
isEqualNode(otherNode: Node): boolean;
|
|
623
645
|
isSameNode(otherNode: Node): boolean;
|
|
@@ -635,7 +657,14 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
635
657
|
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
636
658
|
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
637
659
|
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
638
|
-
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
660
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number; /**
|
|
661
|
+
* String attribute which controls the position of the logout button in the header
|
|
662
|
+
* Control via `logout-button-position`
|
|
663
|
+
*
|
|
664
|
+
* @remarks
|
|
665
|
+
*
|
|
666
|
+
* If this attribute is not set then the logout button is shown in the side nav
|
|
667
|
+
*/
|
|
639
668
|
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
640
669
|
readonly DOCUMENT_TYPE_NODE: number;
|
|
641
670
|
readonly ELEMENT_NODE: number;
|
|
@@ -668,13 +697,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
668
697
|
ariaMultiSelectable: string;
|
|
669
698
|
ariaOrientation: string;
|
|
670
699
|
ariaPlaceholder: string;
|
|
671
|
-
ariaPosInSet: string;
|
|
672
|
-
* Boolean attribute which controls whether to show the account menu on the navigation bar
|
|
673
|
-
* Control via `show-account-menu`
|
|
674
|
-
*
|
|
675
|
-
* @remarks
|
|
676
|
-
* If this attribute is not set then the account menu is not shown
|
|
677
|
-
*/
|
|
700
|
+
ariaPosInSet: string;
|
|
678
701
|
ariaPressed: string;
|
|
679
702
|
ariaReadOnly: string;
|
|
680
703
|
ariaRequired: string;
|
|
@@ -690,7 +713,13 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
690
713
|
ariaValueMin: string;
|
|
691
714
|
ariaValueNow: string;
|
|
692
715
|
ariaValueText: string;
|
|
693
|
-
role: string;
|
|
716
|
+
role: string; /**
|
|
717
|
+
* Boolean attribute which controls whether to show the account menu on the navigation bar
|
|
718
|
+
* Control via `show-account-menu`
|
|
719
|
+
*
|
|
720
|
+
* @remarks
|
|
721
|
+
* If this attribute is not set then the account menu is not shown
|
|
722
|
+
*/
|
|
694
723
|
animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
|
|
695
724
|
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
696
725
|
after(...nodes: (string | Node)[]): void;
|
|
@@ -794,15 +823,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
794
823
|
onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
795
824
|
onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
796
825
|
onstalled: (this: GlobalEventHandlers, ev: Event) => any;
|
|
797
|
-
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
798
|
-
* Load remote components
|
|
799
|
-
*
|
|
800
|
-
* @remarks
|
|
801
|
-
*
|
|
802
|
-
* With regards to module federation
|
|
803
|
-
*
|
|
804
|
-
* @internal
|
|
805
|
-
*/
|
|
826
|
+
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
806
827
|
onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
807
828
|
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
|
|
808
829
|
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
@@ -36,6 +36,7 @@ export declare class Navigation extends Navigation_base
|
|
|
36
36
|
| [shouldShowAccountMenu](./foundation-header.navigation.shouldshowaccountmenu.md) | <code>readonly</code> | boolean | Computed property that determines if the account menu should be shown |
|
|
37
37
|
| [showAccountMenu](./foundation-header.navigation.showaccountmenu.md) | | boolean | Boolean attribute which controls whether to show the account menu on the navigation bar Control via <code>show-account-menu</code> |
|
|
38
38
|
| [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> |
|
|
39
|
+
| [showEnvironmentIndicator](./foundation-header.navigation.showenvironmentindicator.md) | | boolean | Boolean attribute which controls whether to show the environment indicator on the navigation bar Control via <code>show-environment-indicator</code> |
|
|
39
40
|
| [showLanguageSelector](./foundation-header.navigation.showlanguageselector.md) | | boolean | Boolean attribute which controls whether to show the language selector on the navigation bar Control via <code>show-language-selector</code> |
|
|
40
41
|
| [showLuminanceToggleButton](./foundation-header.navigation.showluminancetogglebutton.md) | | boolean | Boolean attribute which controls whether to show the luminance (moon) icon on the navigation bar Control via<code>show-luminance-toggle-button</code> |
|
|
41
42
|
| [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> |
|
|
@@ -0,0 +1,13 @@
|
|
|
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) > [showEnvironmentIndicator](./foundation-header.navigation.showenvironmentindicator.md)
|
|
4
|
+
|
|
5
|
+
## Navigation.showEnvironmentIndicator property
|
|
6
|
+
|
|
7
|
+
Boolean attribute which controls whether to show the environment indicator on the navigation bar Control via `show-environment-indicator`
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
showEnvironmentIndicator: boolean;
|
|
13
|
+
```
|
package/docs/api-report.md
CHANGED
|
@@ -144,6 +144,7 @@ export class Navigation extends Navigation_base {
|
|
|
144
144
|
get shouldShowAccountMenu(): boolean;
|
|
145
145
|
showAccountMenu: boolean;
|
|
146
146
|
showConnectionIndicator: boolean;
|
|
147
|
+
showEnvironmentIndicator: boolean;
|
|
147
148
|
showLanguageSelector: boolean;
|
|
148
149
|
showLuminanceToggleButton: boolean;
|
|
149
150
|
showMiscToggleButton: boolean;
|
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.285.
|
|
4
|
+
"version": "14.285.2-alpha-a57a535.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-header.d.ts",
|
|
@@ -77,29 +77,29 @@
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@genesislcap/foundation-testing": "14.285.
|
|
81
|
-
"@genesislcap/genx": "14.285.
|
|
82
|
-
"@genesislcap/rollup-builder": "14.285.
|
|
83
|
-
"@genesislcap/ts-builder": "14.285.
|
|
84
|
-
"@genesislcap/uvu-playwright-builder": "14.285.
|
|
85
|
-
"@genesislcap/vite-builder": "14.285.
|
|
86
|
-
"@genesislcap/webpack-builder": "14.285.
|
|
80
|
+
"@genesislcap/foundation-testing": "14.285.2-alpha-a57a535.0",
|
|
81
|
+
"@genesislcap/genx": "14.285.2-alpha-a57a535.0",
|
|
82
|
+
"@genesislcap/rollup-builder": "14.285.2-alpha-a57a535.0",
|
|
83
|
+
"@genesislcap/ts-builder": "14.285.2-alpha-a57a535.0",
|
|
84
|
+
"@genesislcap/uvu-playwright-builder": "14.285.2-alpha-a57a535.0",
|
|
85
|
+
"@genesislcap/vite-builder": "14.285.2-alpha-a57a535.0",
|
|
86
|
+
"@genesislcap/webpack-builder": "14.285.2-alpha-a57a535.0",
|
|
87
87
|
"rimraf": "^5.0.0"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@genesislcap/foundation-auth": "14.285.
|
|
91
|
-
"@genesislcap/foundation-comms": "14.285.
|
|
92
|
-
"@genesislcap/foundation-events": "14.285.
|
|
93
|
-
"@genesislcap/foundation-i18n": "14.285.
|
|
94
|
-
"@genesislcap/foundation-logger": "14.285.
|
|
95
|
-
"@genesislcap/foundation-login": "14.285.
|
|
96
|
-
"@genesislcap/foundation-shell": "14.285.
|
|
97
|
-
"@genesislcap/foundation-ui": "14.285.
|
|
98
|
-
"@genesislcap/foundation-user": "14.285.
|
|
99
|
-
"@genesislcap/foundation-utils": "14.285.
|
|
100
|
-
"@genesislcap/foundation-zero": "14.285.
|
|
101
|
-
"@genesislcap/rapid-design-system": "14.285.
|
|
102
|
-
"@genesislcap/web-core": "14.285.
|
|
90
|
+
"@genesislcap/foundation-auth": "14.285.2-alpha-a57a535.0",
|
|
91
|
+
"@genesislcap/foundation-comms": "14.285.2-alpha-a57a535.0",
|
|
92
|
+
"@genesislcap/foundation-events": "14.285.2-alpha-a57a535.0",
|
|
93
|
+
"@genesislcap/foundation-i18n": "14.285.2-alpha-a57a535.0",
|
|
94
|
+
"@genesislcap/foundation-logger": "14.285.2-alpha-a57a535.0",
|
|
95
|
+
"@genesislcap/foundation-login": "14.285.2-alpha-a57a535.0",
|
|
96
|
+
"@genesislcap/foundation-shell": "14.285.2-alpha-a57a535.0",
|
|
97
|
+
"@genesislcap/foundation-ui": "14.285.2-alpha-a57a535.0",
|
|
98
|
+
"@genesislcap/foundation-user": "14.285.2-alpha-a57a535.0",
|
|
99
|
+
"@genesislcap/foundation-utils": "14.285.2-alpha-a57a535.0",
|
|
100
|
+
"@genesislcap/foundation-zero": "14.285.2-alpha-a57a535.0",
|
|
101
|
+
"@genesislcap/rapid-design-system": "14.285.2-alpha-a57a535.0",
|
|
102
|
+
"@genesislcap/web-core": "14.285.2-alpha-a57a535.0",
|
|
103
103
|
"tslib": "^2.3.1"
|
|
104
104
|
},
|
|
105
105
|
"repository": {
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"access": "public"
|
|
112
112
|
},
|
|
113
113
|
"customElements": "dist/custom-elements.json",
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "fde8ace8951fac4bb34cdad920272c5750f3e1af"
|
|
115
115
|
}
|