@genesislcap/foundation-header 14.278.3 → 14.281.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 +399 -43
- package/dist/dts/main/main.d.ts +59 -51
- 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/dts/templates/rapid.template.d.ts.map +1 -1
- package/dist/esm/main/main.js +50 -2
- package/dist/esm/main/main.styles.js +151 -1
- package/dist/esm/main/main.template.js +100 -32
- package/dist/esm/templates/rapid.template.js +50 -17
- package/dist/foundation-header.api.json +151 -3
- package/dist/foundation-header.d.ts +58 -50
- package/docs/api/foundation-header.naveventdetailmap.md +4 -0
- package/docs/api/foundation-header.navigation.handlenavbuttonclick.md +24 -0
- package/docs/api/foundation-header.navigation.logoutbuttonposition.md +18 -0
- package/docs/api/foundation-header.navigation.md +4 -0
- package/docs/api/foundation-header.navigation.shouldshowaccountmenu.md +18 -0
- package/docs/api/foundation-header.navigation.showaccountmenu.md +18 -0
- package/docs/api-report.md +8 -0
- package/package.json +22 -22
|
@@ -25,6 +25,48 @@
|
|
|
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
|
+
},
|
|
28
70
|
{
|
|
29
71
|
"kind": "javascript-module",
|
|
30
72
|
"path": "src/config/config.ts",
|
|
@@ -180,48 +222,6 @@
|
|
|
180
222
|
}
|
|
181
223
|
]
|
|
182
224
|
},
|
|
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
|
|
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`",
|
|
291
291
|
"description": "Template for Navigation class",
|
|
292
292
|
"return": {
|
|
293
293
|
"type": {
|
|
@@ -446,6 +446,15 @@
|
|
|
446
446
|
},
|
|
447
447
|
"description": "Boolean attribute which controls whether to include the sideNav component\nControl via`hide-side-bar`"
|
|
448
448
|
},
|
|
449
|
+
{
|
|
450
|
+
"kind": "field",
|
|
451
|
+
"name": "logoutButtonPosition",
|
|
452
|
+
"type": {
|
|
453
|
+
"text": "'side-nav' | 'account-menu' | 'none'"
|
|
454
|
+
},
|
|
455
|
+
"default": "'side-nav'",
|
|
456
|
+
"description": "String attribute which controls the position of the logout button in the header\nControl via `logout-button-position`"
|
|
457
|
+
},
|
|
449
458
|
{
|
|
450
459
|
"kind": "field",
|
|
451
460
|
"name": "routeButtons",
|
|
@@ -463,6 +472,24 @@
|
|
|
463
472
|
},
|
|
464
473
|
"description": "If present the defined @genesislcap/foundation-ui#FoundationRouteNavItem | FoundationRouteNavItems will be rendered in the header 'routes' slot"
|
|
465
474
|
},
|
|
475
|
+
{
|
|
476
|
+
"kind": "field",
|
|
477
|
+
"name": "showAccountMenu",
|
|
478
|
+
"type": {
|
|
479
|
+
"text": "boolean"
|
|
480
|
+
},
|
|
481
|
+
"default": "false",
|
|
482
|
+
"description": "Boolean attribute which controls whether to show the account menu on the navigation bar\nControl via `show-account-menu`"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"kind": "field",
|
|
486
|
+
"name": "shouldShowAccountMenu",
|
|
487
|
+
"type": {
|
|
488
|
+
"text": "boolean"
|
|
489
|
+
},
|
|
490
|
+
"description": "Computed property that determines if the account menu should be shown",
|
|
491
|
+
"readonly": true
|
|
492
|
+
},
|
|
466
493
|
{
|
|
467
494
|
"kind": "method",
|
|
468
495
|
"name": "selectTemplate",
|
|
@@ -539,6 +566,25 @@
|
|
|
539
566
|
}
|
|
540
567
|
],
|
|
541
568
|
"description": "To localised text"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"kind": "method",
|
|
572
|
+
"name": "handleNavButtonClick",
|
|
573
|
+
"return": {
|
|
574
|
+
"type": {
|
|
575
|
+
"text": "void"
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
"parameters": [
|
|
579
|
+
{
|
|
580
|
+
"name": "routeNavItem",
|
|
581
|
+
"type": {
|
|
582
|
+
"text": "FoundationRouteNavItem"
|
|
583
|
+
},
|
|
584
|
+
"description": "The navigation item that was clicked"
|
|
585
|
+
}
|
|
586
|
+
],
|
|
587
|
+
"description": "Handles the click event for a navigation button"
|
|
542
588
|
}
|
|
543
589
|
],
|
|
544
590
|
"events": [
|
|
@@ -561,6 +607,10 @@
|
|
|
561
607
|
{
|
|
562
608
|
"description": "Dispatched when the user clicks logout button.",
|
|
563
609
|
"name": "logout-clicked"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"description": "Dispatched when the user clicks a navigation button.",
|
|
613
|
+
"name": "nav-button-clicked"
|
|
564
614
|
}
|
|
565
615
|
],
|
|
566
616
|
"attributes": [
|
|
@@ -635,6 +685,24 @@
|
|
|
635
685
|
},
|
|
636
686
|
"description": "Boolean attribute which controls whether to include the sideNav component\nControl via`hide-side-bar`",
|
|
637
687
|
"fieldName": "hideSideBar"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"name": "logout-button-position",
|
|
691
|
+
"type": {
|
|
692
|
+
"text": "'side-nav' | 'account-menu' | 'none'"
|
|
693
|
+
},
|
|
694
|
+
"default": "'side-nav'",
|
|
695
|
+
"description": "String attribute which controls the position of the logout button in the header\nControl via `logout-button-position`",
|
|
696
|
+
"fieldName": "logoutButtonPosition"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"name": "show-account-menu",
|
|
700
|
+
"type": {
|
|
701
|
+
"text": "boolean"
|
|
702
|
+
},
|
|
703
|
+
"default": "false",
|
|
704
|
+
"description": "Boolean attribute which controls whether to show the account menu on the navigation bar\nControl via `show-account-menu`",
|
|
705
|
+
"fieldName": "showAccountMenu"
|
|
638
706
|
}
|
|
639
707
|
],
|
|
640
708
|
"mixins": [
|
|
@@ -857,6 +925,19 @@
|
|
|
857
925
|
"module": "src/main/main.ts"
|
|
858
926
|
}
|
|
859
927
|
},
|
|
928
|
+
{
|
|
929
|
+
"kind": "field",
|
|
930
|
+
"name": "logoutButtonPosition",
|
|
931
|
+
"type": {
|
|
932
|
+
"text": "'side-nav' | 'account-menu' | 'none'"
|
|
933
|
+
},
|
|
934
|
+
"default": "'side-nav'",
|
|
935
|
+
"description": "String attribute which controls the position of the logout button in the header\nControl via `logout-button-position`",
|
|
936
|
+
"inheritedFrom": {
|
|
937
|
+
"name": "Navigation",
|
|
938
|
+
"module": "src/main/main.ts"
|
|
939
|
+
}
|
|
940
|
+
},
|
|
860
941
|
{
|
|
861
942
|
"kind": "field",
|
|
862
943
|
"name": "routeButtons",
|
|
@@ -882,6 +963,32 @@
|
|
|
882
963
|
"module": "src/main/main.ts"
|
|
883
964
|
}
|
|
884
965
|
},
|
|
966
|
+
{
|
|
967
|
+
"kind": "field",
|
|
968
|
+
"name": "showAccountMenu",
|
|
969
|
+
"type": {
|
|
970
|
+
"text": "boolean"
|
|
971
|
+
},
|
|
972
|
+
"default": "false",
|
|
973
|
+
"description": "Boolean attribute which controls whether to show the account menu on the navigation bar\nControl via `show-account-menu`",
|
|
974
|
+
"inheritedFrom": {
|
|
975
|
+
"name": "Navigation",
|
|
976
|
+
"module": "src/main/main.ts"
|
|
977
|
+
}
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"kind": "field",
|
|
981
|
+
"name": "shouldShowAccountMenu",
|
|
982
|
+
"type": {
|
|
983
|
+
"text": "boolean"
|
|
984
|
+
},
|
|
985
|
+
"description": "Computed property that determines if the account menu should be shown",
|
|
986
|
+
"readonly": true,
|
|
987
|
+
"inheritedFrom": {
|
|
988
|
+
"name": "Navigation",
|
|
989
|
+
"module": "src/main/main.ts"
|
|
990
|
+
}
|
|
991
|
+
},
|
|
885
992
|
{
|
|
886
993
|
"kind": "method",
|
|
887
994
|
"name": "selectTemplate",
|
|
@@ -978,6 +1085,29 @@
|
|
|
978
1085
|
"name": "Navigation",
|
|
979
1086
|
"module": "src/main/main.ts"
|
|
980
1087
|
}
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"kind": "method",
|
|
1091
|
+
"name": "handleNavButtonClick",
|
|
1092
|
+
"return": {
|
|
1093
|
+
"type": {
|
|
1094
|
+
"text": "void"
|
|
1095
|
+
}
|
|
1096
|
+
},
|
|
1097
|
+
"parameters": [
|
|
1098
|
+
{
|
|
1099
|
+
"name": "routeNavItem",
|
|
1100
|
+
"type": {
|
|
1101
|
+
"text": "FoundationRouteNavItem"
|
|
1102
|
+
},
|
|
1103
|
+
"description": "The navigation item that was clicked"
|
|
1104
|
+
}
|
|
1105
|
+
],
|
|
1106
|
+
"description": "Handles the click event for a navigation button",
|
|
1107
|
+
"inheritedFrom": {
|
|
1108
|
+
"name": "Navigation",
|
|
1109
|
+
"module": "src/main/main.ts"
|
|
1110
|
+
}
|
|
981
1111
|
}
|
|
982
1112
|
],
|
|
983
1113
|
"superclass": {
|
|
@@ -1088,6 +1218,32 @@
|
|
|
1088
1218
|
"name": "Navigation",
|
|
1089
1219
|
"module": "src/main/main.ts"
|
|
1090
1220
|
}
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"name": "logout-button-position",
|
|
1224
|
+
"type": {
|
|
1225
|
+
"text": "'side-nav' | 'account-menu' | 'none'"
|
|
1226
|
+
},
|
|
1227
|
+
"default": "'side-nav'",
|
|
1228
|
+
"description": "String attribute which controls the position of the logout button in the header\nControl via `logout-button-position`",
|
|
1229
|
+
"fieldName": "logoutButtonPosition",
|
|
1230
|
+
"inheritedFrom": {
|
|
1231
|
+
"name": "Navigation",
|
|
1232
|
+
"module": "src/main/main.ts"
|
|
1233
|
+
}
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
"name": "show-account-menu",
|
|
1237
|
+
"type": {
|
|
1238
|
+
"text": "boolean"
|
|
1239
|
+
},
|
|
1240
|
+
"default": "false",
|
|
1241
|
+
"description": "Boolean attribute which controls whether to show the account menu on the navigation bar\nControl via `show-account-menu`",
|
|
1242
|
+
"fieldName": "showAccountMenu",
|
|
1243
|
+
"inheritedFrom": {
|
|
1244
|
+
"name": "Navigation",
|
|
1245
|
+
"module": "src/main/main.ts"
|
|
1246
|
+
}
|
|
1091
1247
|
}
|
|
1092
1248
|
],
|
|
1093
1249
|
"events": [
|
|
@@ -1130,6 +1286,14 @@
|
|
|
1130
1286
|
"name": "Navigation",
|
|
1131
1287
|
"module": "src/main/main.ts"
|
|
1132
1288
|
}
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"description": "Dispatched when the user clicks a navigation button.",
|
|
1292
|
+
"name": "nav-button-clicked",
|
|
1293
|
+
"inheritedFrom": {
|
|
1294
|
+
"name": "Navigation",
|
|
1295
|
+
"module": "src/main/main.ts"
|
|
1296
|
+
}
|
|
1133
1297
|
}
|
|
1134
1298
|
]
|
|
1135
1299
|
},
|
|
@@ -1248,6 +1412,32 @@
|
|
|
1248
1412
|
"name": "Navigation",
|
|
1249
1413
|
"module": "src/main/main.ts"
|
|
1250
1414
|
}
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
"name": "logout-button-position",
|
|
1418
|
+
"type": {
|
|
1419
|
+
"text": "'side-nav' | 'account-menu' | 'none'"
|
|
1420
|
+
},
|
|
1421
|
+
"default": "'side-nav'",
|
|
1422
|
+
"description": "String attribute which controls the position of the logout button in the header\nControl via `logout-button-position`",
|
|
1423
|
+
"fieldName": "logoutButtonPosition",
|
|
1424
|
+
"inheritedFrom": {
|
|
1425
|
+
"name": "Navigation",
|
|
1426
|
+
"module": "src/main/main.ts"
|
|
1427
|
+
}
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
"name": "show-account-menu",
|
|
1431
|
+
"type": {
|
|
1432
|
+
"text": "boolean"
|
|
1433
|
+
},
|
|
1434
|
+
"default": "false",
|
|
1435
|
+
"description": "Boolean attribute which controls whether to show the account menu on the navigation bar\nControl via `show-account-menu`",
|
|
1436
|
+
"fieldName": "showAccountMenu",
|
|
1437
|
+
"inheritedFrom": {
|
|
1438
|
+
"name": "Navigation",
|
|
1439
|
+
"module": "src/main/main.ts"
|
|
1440
|
+
}
|
|
1251
1441
|
}
|
|
1252
1442
|
],
|
|
1253
1443
|
"members": [
|
|
@@ -1444,6 +1634,19 @@
|
|
|
1444
1634
|
"module": "src/main/main.ts"
|
|
1445
1635
|
}
|
|
1446
1636
|
},
|
|
1637
|
+
{
|
|
1638
|
+
"kind": "field",
|
|
1639
|
+
"name": "logoutButtonPosition",
|
|
1640
|
+
"type": {
|
|
1641
|
+
"text": "'side-nav' | 'account-menu' | 'none'"
|
|
1642
|
+
},
|
|
1643
|
+
"default": "'side-nav'",
|
|
1644
|
+
"description": "String attribute which controls the position of the logout button in the header\nControl via `logout-button-position`",
|
|
1645
|
+
"inheritedFrom": {
|
|
1646
|
+
"name": "Navigation",
|
|
1647
|
+
"module": "src/main/main.ts"
|
|
1648
|
+
}
|
|
1649
|
+
},
|
|
1447
1650
|
{
|
|
1448
1651
|
"kind": "field",
|
|
1449
1652
|
"name": "routeButtons",
|
|
@@ -1469,6 +1672,32 @@
|
|
|
1469
1672
|
"module": "src/main/main.ts"
|
|
1470
1673
|
}
|
|
1471
1674
|
},
|
|
1675
|
+
{
|
|
1676
|
+
"kind": "field",
|
|
1677
|
+
"name": "showAccountMenu",
|
|
1678
|
+
"type": {
|
|
1679
|
+
"text": "boolean"
|
|
1680
|
+
},
|
|
1681
|
+
"default": "false",
|
|
1682
|
+
"description": "Boolean attribute which controls whether to show the account menu on the navigation bar\nControl via `show-account-menu`",
|
|
1683
|
+
"inheritedFrom": {
|
|
1684
|
+
"name": "Navigation",
|
|
1685
|
+
"module": "src/main/main.ts"
|
|
1686
|
+
}
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
"kind": "field",
|
|
1690
|
+
"name": "shouldShowAccountMenu",
|
|
1691
|
+
"type": {
|
|
1692
|
+
"text": "boolean"
|
|
1693
|
+
},
|
|
1694
|
+
"description": "Computed property that determines if the account menu should be shown",
|
|
1695
|
+
"readonly": true,
|
|
1696
|
+
"inheritedFrom": {
|
|
1697
|
+
"name": "Navigation",
|
|
1698
|
+
"module": "src/main/main.ts"
|
|
1699
|
+
}
|
|
1700
|
+
},
|
|
1472
1701
|
{
|
|
1473
1702
|
"kind": "method",
|
|
1474
1703
|
"name": "selectTemplate",
|
|
@@ -1565,6 +1794,29 @@
|
|
|
1565
1794
|
"name": "Navigation",
|
|
1566
1795
|
"module": "src/main/main.ts"
|
|
1567
1796
|
}
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
"kind": "method",
|
|
1800
|
+
"name": "handleNavButtonClick",
|
|
1801
|
+
"return": {
|
|
1802
|
+
"type": {
|
|
1803
|
+
"text": "void"
|
|
1804
|
+
}
|
|
1805
|
+
},
|
|
1806
|
+
"parameters": [
|
|
1807
|
+
{
|
|
1808
|
+
"name": "routeNavItem",
|
|
1809
|
+
"type": {
|
|
1810
|
+
"text": "FoundationRouteNavItem"
|
|
1811
|
+
},
|
|
1812
|
+
"description": "The navigation item that was clicked"
|
|
1813
|
+
}
|
|
1814
|
+
],
|
|
1815
|
+
"description": "Handles the click event for a navigation button",
|
|
1816
|
+
"inheritedFrom": {
|
|
1817
|
+
"name": "Navigation",
|
|
1818
|
+
"module": "src/main/main.ts"
|
|
1819
|
+
}
|
|
1568
1820
|
}
|
|
1569
1821
|
],
|
|
1570
1822
|
"events": [
|
|
@@ -1607,6 +1859,14 @@
|
|
|
1607
1859
|
"name": "Navigation",
|
|
1608
1860
|
"module": "src/main/main.ts"
|
|
1609
1861
|
}
|
|
1862
|
+
},
|
|
1863
|
+
{
|
|
1864
|
+
"description": "Dispatched when the user clicks a navigation button.",
|
|
1865
|
+
"name": "nav-button-clicked",
|
|
1866
|
+
"inheritedFrom": {
|
|
1867
|
+
"name": "Navigation",
|
|
1868
|
+
"module": "src/main/main.ts"
|
|
1869
|
+
}
|
|
1610
1870
|
}
|
|
1611
1871
|
]
|
|
1612
1872
|
},
|
|
@@ -1822,6 +2082,19 @@
|
|
|
1822
2082
|
"module": "src/main/main.ts"
|
|
1823
2083
|
}
|
|
1824
2084
|
},
|
|
2085
|
+
{
|
|
2086
|
+
"kind": "field",
|
|
2087
|
+
"name": "logoutButtonPosition",
|
|
2088
|
+
"type": {
|
|
2089
|
+
"text": "'side-nav' | 'account-menu' | 'none'"
|
|
2090
|
+
},
|
|
2091
|
+
"default": "'side-nav'",
|
|
2092
|
+
"description": "String attribute which controls the position of the logout button in the header\nControl via `logout-button-position`",
|
|
2093
|
+
"inheritedFrom": {
|
|
2094
|
+
"name": "Navigation",
|
|
2095
|
+
"module": "src/main/main.ts"
|
|
2096
|
+
}
|
|
2097
|
+
},
|
|
1825
2098
|
{
|
|
1826
2099
|
"kind": "field",
|
|
1827
2100
|
"name": "routeButtons",
|
|
@@ -1847,6 +2120,32 @@
|
|
|
1847
2120
|
"module": "src/main/main.ts"
|
|
1848
2121
|
}
|
|
1849
2122
|
},
|
|
2123
|
+
{
|
|
2124
|
+
"kind": "field",
|
|
2125
|
+
"name": "showAccountMenu",
|
|
2126
|
+
"type": {
|
|
2127
|
+
"text": "boolean"
|
|
2128
|
+
},
|
|
2129
|
+
"default": "false",
|
|
2130
|
+
"description": "Boolean attribute which controls whether to show the account menu on the navigation bar\nControl via `show-account-menu`",
|
|
2131
|
+
"inheritedFrom": {
|
|
2132
|
+
"name": "Navigation",
|
|
2133
|
+
"module": "src/main/main.ts"
|
|
2134
|
+
}
|
|
2135
|
+
},
|
|
2136
|
+
{
|
|
2137
|
+
"kind": "field",
|
|
2138
|
+
"name": "shouldShowAccountMenu",
|
|
2139
|
+
"type": {
|
|
2140
|
+
"text": "boolean"
|
|
2141
|
+
},
|
|
2142
|
+
"description": "Computed property that determines if the account menu should be shown",
|
|
2143
|
+
"readonly": true,
|
|
2144
|
+
"inheritedFrom": {
|
|
2145
|
+
"name": "Navigation",
|
|
2146
|
+
"module": "src/main/main.ts"
|
|
2147
|
+
}
|
|
2148
|
+
},
|
|
1850
2149
|
{
|
|
1851
2150
|
"kind": "method",
|
|
1852
2151
|
"name": "logout",
|
|
@@ -1929,6 +2228,29 @@
|
|
|
1929
2228
|
"name": "Navigation",
|
|
1930
2229
|
"module": "src/main/main.ts"
|
|
1931
2230
|
}
|
|
2231
|
+
},
|
|
2232
|
+
{
|
|
2233
|
+
"kind": "method",
|
|
2234
|
+
"name": "handleNavButtonClick",
|
|
2235
|
+
"return": {
|
|
2236
|
+
"type": {
|
|
2237
|
+
"text": "void"
|
|
2238
|
+
}
|
|
2239
|
+
},
|
|
2240
|
+
"parameters": [
|
|
2241
|
+
{
|
|
2242
|
+
"name": "routeNavItem",
|
|
2243
|
+
"type": {
|
|
2244
|
+
"text": "FoundationRouteNavItem"
|
|
2245
|
+
},
|
|
2246
|
+
"description": "The navigation item that was clicked"
|
|
2247
|
+
}
|
|
2248
|
+
],
|
|
2249
|
+
"description": "Handles the click event for a navigation button",
|
|
2250
|
+
"inheritedFrom": {
|
|
2251
|
+
"name": "Navigation",
|
|
2252
|
+
"module": "src/main/main.ts"
|
|
2253
|
+
}
|
|
1932
2254
|
}
|
|
1933
2255
|
],
|
|
1934
2256
|
"superclass": {
|
|
@@ -2041,6 +2363,32 @@
|
|
|
2041
2363
|
"name": "Navigation",
|
|
2042
2364
|
"module": "src/main/main.ts"
|
|
2043
2365
|
}
|
|
2366
|
+
},
|
|
2367
|
+
{
|
|
2368
|
+
"name": "logout-button-position",
|
|
2369
|
+
"type": {
|
|
2370
|
+
"text": "'side-nav' | 'account-menu' | 'none'"
|
|
2371
|
+
},
|
|
2372
|
+
"default": "'side-nav'",
|
|
2373
|
+
"description": "String attribute which controls the position of the logout button in the header\nControl via `logout-button-position`",
|
|
2374
|
+
"fieldName": "logoutButtonPosition",
|
|
2375
|
+
"inheritedFrom": {
|
|
2376
|
+
"name": "Navigation",
|
|
2377
|
+
"module": "src/main/main.ts"
|
|
2378
|
+
}
|
|
2379
|
+
},
|
|
2380
|
+
{
|
|
2381
|
+
"name": "show-account-menu",
|
|
2382
|
+
"type": {
|
|
2383
|
+
"text": "boolean"
|
|
2384
|
+
},
|
|
2385
|
+
"default": "false",
|
|
2386
|
+
"description": "Boolean attribute which controls whether to show the account menu on the navigation bar\nControl via `show-account-menu`",
|
|
2387
|
+
"fieldName": "showAccountMenu",
|
|
2388
|
+
"inheritedFrom": {
|
|
2389
|
+
"name": "Navigation",
|
|
2390
|
+
"module": "src/main/main.ts"
|
|
2391
|
+
}
|
|
2044
2392
|
}
|
|
2045
2393
|
],
|
|
2046
2394
|
"events": [
|
|
@@ -2083,6 +2431,14 @@
|
|
|
2083
2431
|
"name": "Navigation",
|
|
2084
2432
|
"module": "src/main/main.ts"
|
|
2085
2433
|
}
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
"description": "Dispatched when the user clicks a navigation button.",
|
|
2437
|
+
"name": "nav-button-clicked",
|
|
2438
|
+
"inheritedFrom": {
|
|
2439
|
+
"name": "Navigation",
|
|
2440
|
+
"module": "src/main/main.ts"
|
|
2441
|
+
}
|
|
2086
2442
|
}
|
|
2087
2443
|
]
|
|
2088
2444
|
}
|