@genesislcap/foundation-header 14.22.0 → 14.22.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.
|
@@ -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\"></zero-icon>\n </div>\n `\n )}\n <div class=\"logo-container\">\n <img src=${(x) => x.logoSrc} class=\"logo\" part=\"logo\" data-test-id=\"nav-bar-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 class=\"icon-container\" data-test-id=\"luminance-toggle-button\">\n <zero-icon\n @click=${(x) => x.luminanceIconEvent()}\n variant=\"regular\"\n name=\"moon\"\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\">\n <zero-icon @click=${(x) => x.miscIconEvent()} name=\"th\"></zero-icon>\n </div>\n `\n )}\n ${when(\n (x) => x.showNotificationsButton,\n html<Navigation>`\n <div class=\"icon-container\" data-test-id=\"notifications-button\">\n <zero-icon\n variant=\"regular\"\n @click=${(x) => x.notificationIconEvent()}\n name=\"bell\"\n ></zero-icon>\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`",
|
|
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\">\n <img src=${(x) => x.logoSrc} class=\"logo\" part=\"logo\" data-test-id=\"nav-bar-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 class=\"icon-container\" data-test-id=\"luminance-toggle-button\">\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\">\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 class=\"icon-container\" data-test-id=\"notifications-button\">\n <zero-icon\n variant=\"regular\"\n @click=${(x) => x.notificationIconEvent()}\n name=\"bell\"\n part=\"notifications-icon\"\n ></zero-icon>\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,+BAwEvB,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"}
|
|
@@ -79,7 +79,7 @@ export const NavTemplate = html `
|
|
|
79
79
|
@click=${(x) => x.toggleNavVisibility()}
|
|
80
80
|
data-test-id="hamburger-menu"
|
|
81
81
|
>
|
|
82
|
-
<zero-icon name="bars"></zero-icon>
|
|
82
|
+
<zero-icon name="bars" part="nav-visibility-icon"></zero-icon>
|
|
83
83
|
</div>
|
|
84
84
|
`)}
|
|
85
85
|
<div class="logo-container">
|
|
@@ -96,12 +96,13 @@ export const NavTemplate = html `
|
|
|
96
96
|
@click=${(x) => x.luminanceIconEvent()}
|
|
97
97
|
variant="regular"
|
|
98
98
|
name="moon"
|
|
99
|
+
part="luminance-icon"
|
|
99
100
|
></zero-icon>
|
|
100
101
|
</div>
|
|
101
102
|
`)}
|
|
102
103
|
${when((x) => x.showMiscToggleButton, html `
|
|
103
104
|
<div class="icon-container" data-test-id="misc-toggle-button">
|
|
104
|
-
<zero-icon @click=${(x) => x.miscIconEvent()} name="th"></zero-icon>
|
|
105
|
+
<zero-icon @click=${(x) => x.miscIconEvent()} name="th" part="misc-icon"></zero-icon>
|
|
105
106
|
</div>
|
|
106
107
|
`)}
|
|
107
108
|
${when((x) => x.showNotificationsButton, html `
|
|
@@ -110,6 +111,7 @@ export const NavTemplate = html `
|
|
|
110
111
|
variant="regular"
|
|
111
112
|
@click=${(x) => x.notificationIconEvent()}
|
|
112
113
|
name="bell"
|
|
114
|
+
part="notifications-icon"
|
|
113
115
|
></zero-icon>
|
|
114
116
|
</div>
|
|
115
117
|
`)}
|
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.22.
|
|
4
|
+
"version": "14.22.1",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-header.d.ts",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@custom-elements-manifest/analyzer": "^0.8.2",
|
|
55
|
-
"@genesislcap/foundation-testing": "^14.22.
|
|
56
|
-
"@genesislcap/genx": "^14.22.
|
|
55
|
+
"@genesislcap/foundation-testing": "^14.22.1",
|
|
56
|
+
"@genesislcap/genx": "^14.22.1",
|
|
57
57
|
"@microsoft/api-documenter": "^7.19.13",
|
|
58
58
|
"@microsoft/api-extractor": "^7.31.1",
|
|
59
59
|
"@playwright/test": "^1.18.1",
|
|
@@ -93,10 +93,10 @@
|
|
|
93
93
|
"webpack-merge": "^5.7.3"
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@genesislcap/foundation-comms": "^14.22.
|
|
97
|
-
"@genesislcap/foundation-events": "^14.22.
|
|
98
|
-
"@genesislcap/foundation-utils": "^14.22.
|
|
99
|
-
"@genesislcap/foundation-zero": "^14.22.
|
|
96
|
+
"@genesislcap/foundation-comms": "^14.22.1",
|
|
97
|
+
"@genesislcap/foundation-events": "^14.22.1",
|
|
98
|
+
"@genesislcap/foundation-utils": "^14.22.1",
|
|
99
|
+
"@genesislcap/foundation-zero": "^14.22.1",
|
|
100
100
|
"@microsoft/fast-colors": "^5.1.4",
|
|
101
101
|
"@microsoft/fast-components": "^2.21.3",
|
|
102
102
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"access": "public"
|
|
109
109
|
},
|
|
110
110
|
"customElements": "dist/custom-elements.json",
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "92229d8fa1d4a867a0fb888e541e0a5ea258436e"
|
|
112
112
|
}
|