@genesislcap/foundation-header 14.51.0 → 14.52.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.
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
{
|
|
138
138
|
"kind": "variable",
|
|
139
139
|
"name": "NavTemplate",
|
|
140
|
-
"default": "html<Navigation>`\n ${when((x) => !x.hideSideBar, sideNavTemplate)}\n <div class=\"nav-listbox\" data-test-id=\"nav-bar\">\n <div class=\"nav-leftside\">\n ${when(\n (x) => !x.hideSideBar,\n html<Navigation>`\n <div\n class=\"bars-container\"\n @click=${(x) => x.toggleNavVisibility()}\n data-test-id=\"hamburger-menu\"\n >\n <zero-icon name=\"bars\" part=\"nav-visibility-icon\"></zero-icon>\n </div>\n `\n )}\n <div class=\"logo-container\" data-test-id=\"nav-bar-logo\">\n <img src=${(x) => x.logoSrc} class=\"logo\" part=\"logo\" />\n </div>\n <slot name=\"routes\" data-test-id=\"route-buttons\">\n ${(x) => (x.routeButtons ? routeButtonsTemplate : defaultRouteButtonsTemplate)}\n </slot>\n </div>\n <div class=\"nav-rightside\">\n ${when(\n (x) => x.showLuminanceToggleButton,\n html<Navigation>`\n <div
|
|
140
|
+
"default": "html<Navigation>`\n ${when((x) => !x.hideSideBar, sideNavTemplate)}\n <div class=\"nav-listbox\" data-test-id=\"nav-bar\">\n <div class=\"nav-leftside\">\n ${when(\n (x) => !x.hideSideBar,\n html<Navigation>`\n <div\n class=\"bars-container\"\n @click=${(x) => x.toggleNavVisibility()}\n data-test-id=\"hamburger-menu\"\n >\n <zero-icon name=\"bars\" part=\"nav-visibility-icon\"></zero-icon>\n </div>\n `\n )}\n <div class=\"logo-container\" data-test-id=\"nav-bar-logo\">\n <img src=${(x) => x.logoSrc} class=\"logo\" part=\"logo\" />\n </div>\n <slot name=\"routes\" data-test-id=\"route-buttons\">\n ${(x) => (x.routeButtons ? routeButtonsTemplate : defaultRouteButtonsTemplate)}\n </slot>\n </div>\n <div class=\"nav-rightside\">\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 >\n <zero-icon\n @click=${(x) => x.luminanceIconEvent()}\n variant=\"regular\"\n name=\"moon\"\n part=\"luminance-icon\"\n ></zero-icon>\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\">\n <zero-icon @click=${(x) => x.miscIconEvent()} name=\"th\" part=\"misc-icon\"></zero-icon>\n </div>\n `\n )}\n ${when(\n (x) => x.showNotificationsButton,\n html<Navigation>`\n <div\n class=\"icon-container\"\n data-test-id=\"notifications-button\"\n part=\"notifications-button\"\n >\n <zero-icon\n variant=\"regular\"\n @click=${(x) => x.notificationIconEvent()}\n name=\"bell\"\n part=\"notifications-icon\"\n ></zero-icon>\n <slot name=\"notifications-icon-end\"></slot>\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 <zero-connection-indicator show-label=\"false\"></zero-connection-indicator>\n </div>\n `\n )}\n <zero-button appearance=\"neutral-grey\" data-test-id=\"user-button\">\n <zero-icon name=\"user-circle\"></zero-icon>\n ${(x) => x.userName}\n </zero-button>\n </div>\n </div>\n`",
|
|
141
141
|
"description": "Template for Navigation class",
|
|
142
142
|
"return": {
|
|
143
143
|
"type": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAiEzC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,+
|
|
1
|
+
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAiEzC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,+BAiFvB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,UAAU,CAIpD,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,UAAU,CAEpD,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,UAAU,CAEjD,CAAC"}
|
|
@@ -91,7 +91,11 @@ export const NavTemplate = html `
|
|
|
91
91
|
</div>
|
|
92
92
|
<div class="nav-rightside">
|
|
93
93
|
${when((x) => x.showLuminanceToggleButton, html `
|
|
94
|
-
<div
|
|
94
|
+
<div
|
|
95
|
+
class="icon-container"
|
|
96
|
+
data-test-id="luminance-toggle-button"
|
|
97
|
+
part="luminance-button"
|
|
98
|
+
>
|
|
95
99
|
<zero-icon
|
|
96
100
|
@click=${(x) => x.luminanceIconEvent()}
|
|
97
101
|
variant="regular"
|
|
@@ -101,18 +105,23 @@ export const NavTemplate = html `
|
|
|
101
105
|
</div>
|
|
102
106
|
`)}
|
|
103
107
|
${when((x) => x.showMiscToggleButton, html `
|
|
104
|
-
<div class="icon-container" data-test-id="misc-toggle-button">
|
|
108
|
+
<div class="icon-container" data-test-id="misc-toggle-button" part="misc-button">
|
|
105
109
|
<zero-icon @click=${(x) => x.miscIconEvent()} name="th" part="misc-icon"></zero-icon>
|
|
106
110
|
</div>
|
|
107
111
|
`)}
|
|
108
112
|
${when((x) => x.showNotificationsButton, html `
|
|
109
|
-
<div
|
|
113
|
+
<div
|
|
114
|
+
class="icon-container"
|
|
115
|
+
data-test-id="notifications-button"
|
|
116
|
+
part="notifications-button"
|
|
117
|
+
>
|
|
110
118
|
<zero-icon
|
|
111
119
|
variant="regular"
|
|
112
120
|
@click=${(x) => x.notificationIconEvent()}
|
|
113
121
|
name="bell"
|
|
114
122
|
part="notifications-icon"
|
|
115
123
|
></zero-icon>
|
|
124
|
+
<slot name="notifications-icon-end"></slot>
|
|
116
125
|
</div>
|
|
117
126
|
`)}
|
|
118
127
|
${when((x) => x.showConnectionIndicator, html `
|
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.52.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-header.d.ts",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"test:debug": "genx test --debug"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@genesislcap/foundation-testing": "^14.
|
|
54
|
-
"@genesislcap/genx": "^14.
|
|
53
|
+
"@genesislcap/foundation-testing": "^14.52.0",
|
|
54
|
+
"@genesislcap/genx": "^14.52.0"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@genesislcap/foundation-comms": "^14.
|
|
58
|
-
"@genesislcap/foundation-events": "^14.
|
|
59
|
-
"@genesislcap/foundation-utils": "^14.
|
|
60
|
-
"@genesislcap/foundation-zero": "^14.
|
|
57
|
+
"@genesislcap/foundation-comms": "^14.52.0",
|
|
58
|
+
"@genesislcap/foundation-events": "^14.52.0",
|
|
59
|
+
"@genesislcap/foundation-utils": "^14.52.0",
|
|
60
|
+
"@genesislcap/foundation-zero": "^14.52.0",
|
|
61
61
|
"@microsoft/fast-colors": "^5.1.4",
|
|
62
62
|
"@microsoft/fast-components": "^2.21.3",
|
|
63
63
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
75
|
"customElements": "dist/custom-elements.json",
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "29ed8209142e157f7e025624479a60a71fea7f32"
|
|
77
77
|
}
|