@genesislcap/foundation-header 14.141.0 → 14.141.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.
- package/dist/custom-elements.json +190 -190
- package/dist/dts/main/main.d.ts +29 -16
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/esm/main/main.js +12 -12
- package/dist/foundation-header.api.json +31 -31
- package/dist/foundation-header.d.ts +57 -44
- package/docs/api/foundation-header.foundationheader.md +39 -0
- package/docs/api/foundation-header.md +1 -1
- package/docs/api-report.md +8 -8
- package/package.json +12 -12
- package/docs/api/foundation-header.zeroheader.md +0 -39
|
@@ -31,6 +31,28 @@
|
|
|
31
31
|
}
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
|
+
{
|
|
35
|
+
"kind": "javascript-module",
|
|
36
|
+
"path": "src/components/zero-components.ts",
|
|
37
|
+
"declarations": [
|
|
38
|
+
{
|
|
39
|
+
"kind": "function",
|
|
40
|
+
"name": "registerCommonZeroComponents",
|
|
41
|
+
"description": "registerCommonZeroComponents.",
|
|
42
|
+
"privacy": "public"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"exports": [
|
|
46
|
+
{
|
|
47
|
+
"kind": "js",
|
|
48
|
+
"name": "registerCommonZeroComponents",
|
|
49
|
+
"declaration": {
|
|
50
|
+
"name": "registerCommonZeroComponents",
|
|
51
|
+
"module": "src/components/zero-components.ts"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
34
56
|
{
|
|
35
57
|
"kind": "javascript-module",
|
|
36
58
|
"path": "src/config/config.ts",
|
|
@@ -151,189 +173,6 @@
|
|
|
151
173
|
}
|
|
152
174
|
]
|
|
153
175
|
},
|
|
154
|
-
{
|
|
155
|
-
"kind": "javascript-module",
|
|
156
|
-
"path": "src/components/zero-components.ts",
|
|
157
|
-
"declarations": [
|
|
158
|
-
{
|
|
159
|
-
"kind": "function",
|
|
160
|
-
"name": "registerCommonZeroComponents",
|
|
161
|
-
"description": "registerCommonZeroComponents.",
|
|
162
|
-
"privacy": "public"
|
|
163
|
-
}
|
|
164
|
-
],
|
|
165
|
-
"exports": [
|
|
166
|
-
{
|
|
167
|
-
"kind": "js",
|
|
168
|
-
"name": "registerCommonZeroComponents",
|
|
169
|
-
"declaration": {
|
|
170
|
-
"name": "registerCommonZeroComponents",
|
|
171
|
-
"module": "src/components/zero-components.ts"
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
]
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"kind": "javascript-module",
|
|
178
|
-
"path": "src/styles/colors.ts",
|
|
179
|
-
"declarations": [
|
|
180
|
-
{
|
|
181
|
-
"kind": "function",
|
|
182
|
-
"name": "getWebRGBA",
|
|
183
|
-
"parameters": [
|
|
184
|
-
{
|
|
185
|
-
"name": "rgb",
|
|
186
|
-
"type": {
|
|
187
|
-
"text": "ColorRGBA64"
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"name": "alpha",
|
|
192
|
-
"default": "1.0",
|
|
193
|
-
"type": {
|
|
194
|
-
"text": "number"
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"kind": "variable",
|
|
201
|
-
"name": "defaultBackgroundHover"
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"kind": "variable",
|
|
205
|
-
"name": "defaultBackgroundItem"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"kind": "variable",
|
|
209
|
-
"name": "backgroundNavOption"
|
|
210
|
-
}
|
|
211
|
-
],
|
|
212
|
-
"exports": [
|
|
213
|
-
{
|
|
214
|
-
"kind": "js",
|
|
215
|
-
"name": "getWebRGBA",
|
|
216
|
-
"declaration": {
|
|
217
|
-
"name": "getWebRGBA",
|
|
218
|
-
"module": "src/styles/colors.ts"
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"kind": "js",
|
|
223
|
-
"name": "defaultBackgroundHover",
|
|
224
|
-
"declaration": {
|
|
225
|
-
"name": "defaultBackgroundHover",
|
|
226
|
-
"module": "src/styles/colors.ts"
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
"kind": "js",
|
|
231
|
-
"name": "defaultBackgroundItem",
|
|
232
|
-
"declaration": {
|
|
233
|
-
"name": "defaultBackgroundItem",
|
|
234
|
-
"module": "src/styles/colors.ts"
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"kind": "js",
|
|
239
|
-
"name": "backgroundNavOption",
|
|
240
|
-
"declaration": {
|
|
241
|
-
"name": "backgroundNavOption",
|
|
242
|
-
"module": "src/styles/colors.ts"
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
]
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"kind": "javascript-module",
|
|
249
|
-
"path": "src/styles/index.ts",
|
|
250
|
-
"declarations": [],
|
|
251
|
-
"exports": [
|
|
252
|
-
{
|
|
253
|
-
"kind": "js",
|
|
254
|
-
"name": "*",
|
|
255
|
-
"declaration": {
|
|
256
|
-
"name": "*",
|
|
257
|
-
"package": "./colors"
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"kind": "js",
|
|
262
|
-
"name": "*",
|
|
263
|
-
"declaration": {
|
|
264
|
-
"name": "*",
|
|
265
|
-
"package": "./styles"
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
]
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"kind": "javascript-module",
|
|
272
|
-
"path": "src/styles/styles.ts",
|
|
273
|
-
"declarations": [
|
|
274
|
-
{
|
|
275
|
-
"kind": "function",
|
|
276
|
-
"name": "mixinScreen",
|
|
277
|
-
"parameters": [
|
|
278
|
-
{
|
|
279
|
-
"name": "display",
|
|
280
|
-
"default": "'block'",
|
|
281
|
-
"type": {
|
|
282
|
-
"text": "string"
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
],
|
|
286
|
-
"description": "TODO: Bring all the style and typography mixins into the design system package"
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"kind": "function",
|
|
290
|
-
"name": "genesisLogo",
|
|
291
|
-
"parameters": [
|
|
292
|
-
{
|
|
293
|
-
"name": "slot",
|
|
294
|
-
"default": "'start'"
|
|
295
|
-
}
|
|
296
|
-
],
|
|
297
|
-
"description": "TODO"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"kind": "function",
|
|
301
|
-
"name": "settingsIcon",
|
|
302
|
-
"parameters": [
|
|
303
|
-
{
|
|
304
|
-
"name": "slot",
|
|
305
|
-
"default": "'start'"
|
|
306
|
-
}
|
|
307
|
-
]
|
|
308
|
-
}
|
|
309
|
-
],
|
|
310
|
-
"exports": [
|
|
311
|
-
{
|
|
312
|
-
"kind": "js",
|
|
313
|
-
"name": "mixinScreen",
|
|
314
|
-
"declaration": {
|
|
315
|
-
"name": "mixinScreen",
|
|
316
|
-
"module": "src/styles/styles.ts"
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"kind": "js",
|
|
321
|
-
"name": "genesisLogo",
|
|
322
|
-
"declaration": {
|
|
323
|
-
"name": "genesisLogo",
|
|
324
|
-
"module": "src/styles/styles.ts"
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"kind": "js",
|
|
329
|
-
"name": "settingsIcon",
|
|
330
|
-
"declaration": {
|
|
331
|
-
"name": "settingsIcon",
|
|
332
|
-
"module": "src/styles/styles.ts"
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
]
|
|
336
|
-
},
|
|
337
176
|
{
|
|
338
177
|
"kind": "javascript-module",
|
|
339
178
|
"path": "src/main/index.ts",
|
|
@@ -721,13 +560,13 @@
|
|
|
721
560
|
},
|
|
722
561
|
{
|
|
723
562
|
"kind": "class",
|
|
724
|
-
"description": "
|
|
725
|
-
"name": "
|
|
563
|
+
"description": "FoundationHeader is a zero version of the header micro-frontend.",
|
|
564
|
+
"name": "FoundationHeader",
|
|
726
565
|
"superclass": {
|
|
727
566
|
"name": "Navigation",
|
|
728
567
|
"module": "src/main/main.ts"
|
|
729
568
|
},
|
|
730
|
-
"tagName": "
|
|
569
|
+
"tagName": "foundation-header",
|
|
731
570
|
"customElement": true,
|
|
732
571
|
"attributes": [
|
|
733
572
|
{
|
|
@@ -1153,22 +992,183 @@
|
|
|
1153
992
|
},
|
|
1154
993
|
{
|
|
1155
994
|
"kind": "js",
|
|
1156
|
-
"name": "
|
|
995
|
+
"name": "FoundationHeader",
|
|
1157
996
|
"declaration": {
|
|
1158
|
-
"name": "
|
|
997
|
+
"name": "FoundationHeader",
|
|
1159
998
|
"module": "src/main/main.ts"
|
|
1160
999
|
}
|
|
1161
1000
|
},
|
|
1162
1001
|
{
|
|
1163
1002
|
"kind": "custom-element-definition",
|
|
1164
|
-
"name": "
|
|
1003
|
+
"name": "foundation-header",
|
|
1165
1004
|
"declaration": {
|
|
1166
|
-
"name": "
|
|
1005
|
+
"name": "FoundationHeader",
|
|
1167
1006
|
"module": "src/main/main.ts"
|
|
1168
1007
|
}
|
|
1169
1008
|
}
|
|
1170
1009
|
]
|
|
1171
1010
|
},
|
|
1011
|
+
{
|
|
1012
|
+
"kind": "javascript-module",
|
|
1013
|
+
"path": "src/styles/colors.ts",
|
|
1014
|
+
"declarations": [
|
|
1015
|
+
{
|
|
1016
|
+
"kind": "function",
|
|
1017
|
+
"name": "getWebRGBA",
|
|
1018
|
+
"parameters": [
|
|
1019
|
+
{
|
|
1020
|
+
"name": "rgb",
|
|
1021
|
+
"type": {
|
|
1022
|
+
"text": "ColorRGBA64"
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"name": "alpha",
|
|
1027
|
+
"default": "1.0",
|
|
1028
|
+
"type": {
|
|
1029
|
+
"text": "number"
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
]
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
"kind": "variable",
|
|
1036
|
+
"name": "defaultBackgroundHover"
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"kind": "variable",
|
|
1040
|
+
"name": "defaultBackgroundItem"
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"kind": "variable",
|
|
1044
|
+
"name": "backgroundNavOption"
|
|
1045
|
+
}
|
|
1046
|
+
],
|
|
1047
|
+
"exports": [
|
|
1048
|
+
{
|
|
1049
|
+
"kind": "js",
|
|
1050
|
+
"name": "getWebRGBA",
|
|
1051
|
+
"declaration": {
|
|
1052
|
+
"name": "getWebRGBA",
|
|
1053
|
+
"module": "src/styles/colors.ts"
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"kind": "js",
|
|
1058
|
+
"name": "defaultBackgroundHover",
|
|
1059
|
+
"declaration": {
|
|
1060
|
+
"name": "defaultBackgroundHover",
|
|
1061
|
+
"module": "src/styles/colors.ts"
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
"kind": "js",
|
|
1066
|
+
"name": "defaultBackgroundItem",
|
|
1067
|
+
"declaration": {
|
|
1068
|
+
"name": "defaultBackgroundItem",
|
|
1069
|
+
"module": "src/styles/colors.ts"
|
|
1070
|
+
}
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"kind": "js",
|
|
1074
|
+
"name": "backgroundNavOption",
|
|
1075
|
+
"declaration": {
|
|
1076
|
+
"name": "backgroundNavOption",
|
|
1077
|
+
"module": "src/styles/colors.ts"
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
]
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"kind": "javascript-module",
|
|
1084
|
+
"path": "src/styles/index.ts",
|
|
1085
|
+
"declarations": [],
|
|
1086
|
+
"exports": [
|
|
1087
|
+
{
|
|
1088
|
+
"kind": "js",
|
|
1089
|
+
"name": "*",
|
|
1090
|
+
"declaration": {
|
|
1091
|
+
"name": "*",
|
|
1092
|
+
"package": "./colors"
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"kind": "js",
|
|
1097
|
+
"name": "*",
|
|
1098
|
+
"declaration": {
|
|
1099
|
+
"name": "*",
|
|
1100
|
+
"package": "./styles"
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
]
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"kind": "javascript-module",
|
|
1107
|
+
"path": "src/styles/styles.ts",
|
|
1108
|
+
"declarations": [
|
|
1109
|
+
{
|
|
1110
|
+
"kind": "function",
|
|
1111
|
+
"name": "mixinScreen",
|
|
1112
|
+
"parameters": [
|
|
1113
|
+
{
|
|
1114
|
+
"name": "display",
|
|
1115
|
+
"default": "'block'",
|
|
1116
|
+
"type": {
|
|
1117
|
+
"text": "string"
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
],
|
|
1121
|
+
"description": "TODO: Bring all the style and typography mixins into the design system package"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"kind": "function",
|
|
1125
|
+
"name": "genesisLogo",
|
|
1126
|
+
"parameters": [
|
|
1127
|
+
{
|
|
1128
|
+
"name": "slot",
|
|
1129
|
+
"default": "'start'"
|
|
1130
|
+
}
|
|
1131
|
+
],
|
|
1132
|
+
"description": "TODO"
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"kind": "function",
|
|
1136
|
+
"name": "settingsIcon",
|
|
1137
|
+
"parameters": [
|
|
1138
|
+
{
|
|
1139
|
+
"name": "slot",
|
|
1140
|
+
"default": "'start'"
|
|
1141
|
+
}
|
|
1142
|
+
]
|
|
1143
|
+
}
|
|
1144
|
+
],
|
|
1145
|
+
"exports": [
|
|
1146
|
+
{
|
|
1147
|
+
"kind": "js",
|
|
1148
|
+
"name": "mixinScreen",
|
|
1149
|
+
"declaration": {
|
|
1150
|
+
"name": "mixinScreen",
|
|
1151
|
+
"module": "src/styles/styles.ts"
|
|
1152
|
+
}
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
"kind": "js",
|
|
1156
|
+
"name": "genesisLogo",
|
|
1157
|
+
"declaration": {
|
|
1158
|
+
"name": "genesisLogo",
|
|
1159
|
+
"module": "src/styles/styles.ts"
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"kind": "js",
|
|
1164
|
+
"name": "settingsIcon",
|
|
1165
|
+
"declaration": {
|
|
1166
|
+
"name": "settingsIcon",
|
|
1167
|
+
"module": "src/styles/styles.ts"
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
]
|
|
1171
|
+
},
|
|
1172
1172
|
{
|
|
1173
1173
|
"kind": "javascript-module",
|
|
1174
1174
|
"path": "src/tags/index.ts",
|
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -64,6 +64,14 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
64
64
|
readonly prefix: string;
|
|
65
65
|
readonly scrollHeight: number;
|
|
66
66
|
scrollLeft: number;
|
|
67
|
+
/**
|
|
68
|
+
* Optional attribute which controls the icon to show on the navigation bar and flyout
|
|
69
|
+
* Control via `logo-src`
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
*
|
|
73
|
+
* If this attribute is not set then the Genesis logo is shown instead
|
|
74
|
+
*/
|
|
67
75
|
scrollTop: number;
|
|
68
76
|
readonly scrollWidth: number;
|
|
69
77
|
readonly shadowRoot: ShadowRoot;
|
|
@@ -108,11 +116,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
108
116
|
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
109
117
|
scrollTo(options?: ScrollToOptions): void;
|
|
110
118
|
scrollTo(x: number, y: number): void;
|
|
111
|
-
/**
|
|
112
|
-
* If present the defined route buttons will be rendered in the header 'routes' slot
|
|
113
|
-
*
|
|
114
|
-
* @deprecated - Use `routeNavItems` instead.
|
|
115
|
-
*/
|
|
116
119
|
setAttribute(qualifiedName: string, value: string): void;
|
|
117
120
|
setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
|
|
118
121
|
setAttributeNode(attr: Attr): Attr;
|
|
@@ -173,7 +176,10 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
173
176
|
ariaChecked: string;
|
|
174
177
|
ariaColCount: string;
|
|
175
178
|
ariaColIndex: string;
|
|
176
|
-
ariaColIndexText: string;
|
|
179
|
+
ariaColIndexText: string;
|
|
180
|
+
ariaColSpan: string;
|
|
181
|
+
ariaCurrent: string;
|
|
182
|
+
ariaDisabled: string; /**
|
|
177
183
|
* Emits the event corresponding to the luminance icon being clicked
|
|
178
184
|
*
|
|
179
185
|
* @remarks
|
|
@@ -183,9 +189,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
183
189
|
*
|
|
184
190
|
* @internal
|
|
185
191
|
*/
|
|
186
|
-
ariaColSpan: string;
|
|
187
|
-
ariaCurrent: string;
|
|
188
|
-
ariaDisabled: string;
|
|
189
192
|
ariaExpanded: string;
|
|
190
193
|
ariaHasPopup: string;
|
|
191
194
|
ariaHidden: string;
|
|
@@ -208,6 +211,16 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
208
211
|
ariaRowIndex: string;
|
|
209
212
|
ariaRowIndexText: string;
|
|
210
213
|
ariaRowSpan: string;
|
|
214
|
+
/**
|
|
215
|
+
* Emits the event corresponding to the notification icon being clicked
|
|
216
|
+
*
|
|
217
|
+
* @remarks
|
|
218
|
+
*
|
|
219
|
+
* Activated when the user clicks on the bell icon on the navigation
|
|
220
|
+
* bar right hand side
|
|
221
|
+
*
|
|
222
|
+
* @internal
|
|
223
|
+
*/
|
|
211
224
|
ariaSelected: string;
|
|
212
225
|
ariaSetSize: string;
|
|
213
226
|
ariaSort: string;
|
|
@@ -569,30 +582,30 @@ export declare class Navigation extends Navigation_base {
|
|
|
569
582
|
toLocalisedText(text: string): string;
|
|
570
583
|
}
|
|
571
584
|
/**
|
|
572
|
-
*
|
|
585
|
+
* FoundationHeader is a zero version of the header micro-frontend.
|
|
573
586
|
*
|
|
574
587
|
* @remarks
|
|
575
|
-
* A
|
|
588
|
+
* A header version that pre-registers zero components and uses the zero design system. ZeroHeader and its components won't bloat the core bundle as
|
|
576
589
|
* these are only loaded on-demand when in use.
|
|
577
590
|
*
|
|
578
591
|
* @example
|
|
579
592
|
* ```ts
|
|
580
|
-
* import {
|
|
593
|
+
* import { FoundationHeader } from '@genesislcap/foundation-header';
|
|
581
594
|
* ...
|
|
582
|
-
*
|
|
595
|
+
* FoundationHeader
|
|
583
596
|
* ```
|
|
584
597
|
*
|
|
585
598
|
* @example Load the micro frontend on-demand
|
|
586
599
|
* ```ts
|
|
587
600
|
|
|
588
|
-
* const {
|
|
589
|
-
* return
|
|
601
|
+
* const { FoundationHeader } = await import('@genesislcap/foundation-header');
|
|
602
|
+
* return FoundationHeader;
|
|
590
603
|
* },
|
|
591
604
|
* ```
|
|
592
605
|
*
|
|
593
606
|
* @public
|
|
594
607
|
*/
|
|
595
|
-
export declare class
|
|
608
|
+
export declare class FoundationHeader extends Navigation {
|
|
596
609
|
/**
|
|
597
610
|
* @internal
|
|
598
611
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAgB,MAAM,+BAA+B,CAAC;AAEtF,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,KAAK,EAAE,sBAAsB,EAAuB,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"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"}
|
package/dist/esm/main/main.js
CHANGED
|
@@ -5,6 +5,7 @@ import { I18next } from '@genesislcap/foundation-i18n';
|
|
|
5
5
|
import { FASTElement, customElement, observable, attr } from '@microsoft/fast-element';
|
|
6
6
|
import { Route } from '@microsoft/fast-router';
|
|
7
7
|
import logo from '../assets/logo.svg';
|
|
8
|
+
import { registerCommonZeroComponents } from '../components/zero-components';
|
|
8
9
|
import { HeaderConfig } from '../config';
|
|
9
10
|
import { logger } from '../utils';
|
|
10
11
|
import { MainStyles as styles } from './main.styles';
|
|
@@ -299,30 +300,30 @@ __decorate([
|
|
|
299
300
|
observable
|
|
300
301
|
], Navigation.prototype, "routeNavItems", void 0);
|
|
301
302
|
/**
|
|
302
|
-
*
|
|
303
|
+
* FoundationHeader is a zero version of the header micro-frontend.
|
|
303
304
|
*
|
|
304
305
|
* @remarks
|
|
305
|
-
* A
|
|
306
|
+
* A header version that pre-registers zero components and uses the zero design system. ZeroHeader and its components won't bloat the core bundle as
|
|
306
307
|
* these are only loaded on-demand when in use.
|
|
307
308
|
*
|
|
308
309
|
* @example
|
|
309
310
|
* ```ts
|
|
310
|
-
* import {
|
|
311
|
+
* import { FoundationHeader } from '@genesislcap/foundation-header';
|
|
311
312
|
* ...
|
|
312
|
-
*
|
|
313
|
+
* FoundationHeader
|
|
313
314
|
* ```
|
|
314
315
|
*
|
|
315
316
|
* @example Load the micro frontend on-demand
|
|
316
317
|
* ```ts
|
|
317
318
|
|
|
318
|
-
* const {
|
|
319
|
-
* return
|
|
319
|
+
* const { FoundationHeader } = await import('@genesislcap/foundation-header');
|
|
320
|
+
* return FoundationHeader;
|
|
320
321
|
* },
|
|
321
322
|
* ```
|
|
322
323
|
*
|
|
323
324
|
* @public
|
|
324
325
|
*/
|
|
325
|
-
let
|
|
326
|
+
let FoundationHeader = class FoundationHeader extends Navigation {
|
|
326
327
|
/**
|
|
327
328
|
* @internal
|
|
328
329
|
*/
|
|
@@ -340,16 +341,15 @@ let ZeroHeader = class ZeroHeader extends Navigation {
|
|
|
340
341
|
*/
|
|
341
342
|
loadRemotes() {
|
|
342
343
|
return __awaiter(this, void 0, void 0, function* () {
|
|
343
|
-
const { registerCommonZeroComponents } = yield import('../components/zero-components');
|
|
344
344
|
yield registerCommonZeroComponents();
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
};
|
|
348
|
-
|
|
348
|
+
FoundationHeader = __decorate([
|
|
349
349
|
customElement({
|
|
350
|
-
name: '
|
|
350
|
+
name: 'foundation-header',
|
|
351
351
|
template,
|
|
352
352
|
styles,
|
|
353
353
|
})
|
|
354
|
-
],
|
|
355
|
-
export {
|
|
354
|
+
], FoundationHeader);
|
|
355
|
+
export { FoundationHeader };
|
|
@@ -326,6 +326,37 @@
|
|
|
326
326
|
"endIndex": 6
|
|
327
327
|
}
|
|
328
328
|
},
|
|
329
|
+
{
|
|
330
|
+
"kind": "Class",
|
|
331
|
+
"canonicalReference": "@genesislcap/foundation-header!FoundationHeader:class",
|
|
332
|
+
"docComment": "/**\n * FoundationHeader is a zero version of the header micro-frontend.\n *\n * @remarks\n *\n * A header version that pre-registers zero components and uses the zero design system. ZeroHeader and its components won't bloat the core bundle as these are only loaded on-demand when in use.\n *\n * @example\n * ```ts\n * import { FoundationHeader } from '@genesislcap/foundation-header';\n * ...\n * FoundationHeader\n * ```\n *\n * @example\n *\n * Load the micro frontend on-demand\n * ```ts\n *\n * const { FoundationHeader } = await import('@genesislcap/foundation-header');\n * return FoundationHeader;\n * },\n * ```\n *\n * @public\n */\n",
|
|
333
|
+
"excerptTokens": [
|
|
334
|
+
{
|
|
335
|
+
"kind": "Content",
|
|
336
|
+
"text": "export declare class FoundationHeader extends "
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"kind": "Reference",
|
|
340
|
+
"text": "Navigation",
|
|
341
|
+
"canonicalReference": "@genesislcap/foundation-header!Navigation:class"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"kind": "Content",
|
|
345
|
+
"text": " "
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
"fileUrlPath": "src/main/main.ts",
|
|
349
|
+
"releaseTag": "Public",
|
|
350
|
+
"isAbstract": false,
|
|
351
|
+
"name": "FoundationHeader",
|
|
352
|
+
"preserveMemberOrder": false,
|
|
353
|
+
"members": [],
|
|
354
|
+
"extendsTokenRange": {
|
|
355
|
+
"startIndex": 1,
|
|
356
|
+
"endIndex": 2
|
|
357
|
+
},
|
|
358
|
+
"implementsTokenRanges": []
|
|
359
|
+
},
|
|
329
360
|
{
|
|
330
361
|
"kind": "Interface",
|
|
331
362
|
"canonicalReference": "@genesislcap/foundation-header!HeaderConfig:interface",
|
|
@@ -1429,37 +1460,6 @@
|
|
|
1429
1460
|
"startIndex": 1,
|
|
1430
1461
|
"endIndex": 2
|
|
1431
1462
|
}
|
|
1432
|
-
},
|
|
1433
|
-
{
|
|
1434
|
-
"kind": "Class",
|
|
1435
|
-
"canonicalReference": "@genesislcap/foundation-header!ZeroHeader:class",
|
|
1436
|
-
"docComment": "/**\n * ZeroHeader is a zero version of the header micro-frontend.\n *\n * @remarks\n *\n * A zero version that pre-registers zero components and uses the zero design system. ZeroHeader and its components won't bloat the core bundle as these are only loaded on-demand when in use.\n *\n * @example\n * ```ts\n * import { ZeroHeader } from '@genesislcap/foundation-header';\n * ...\n * ZeroHeader\n * ```\n *\n * @example\n *\n * Load the micro frontend on-demand\n * ```ts\n *\n * const { ZeroHeader } = await import('@genesislcap/foundation-header');\n * return ZeroHeader;\n * },\n * ```\n *\n * @public\n */\n",
|
|
1437
|
-
"excerptTokens": [
|
|
1438
|
-
{
|
|
1439
|
-
"kind": "Content",
|
|
1440
|
-
"text": "export declare class ZeroHeader extends "
|
|
1441
|
-
},
|
|
1442
|
-
{
|
|
1443
|
-
"kind": "Reference",
|
|
1444
|
-
"text": "Navigation",
|
|
1445
|
-
"canonicalReference": "@genesislcap/foundation-header!Navigation:class"
|
|
1446
|
-
},
|
|
1447
|
-
{
|
|
1448
|
-
"kind": "Content",
|
|
1449
|
-
"text": " "
|
|
1450
|
-
}
|
|
1451
|
-
],
|
|
1452
|
-
"fileUrlPath": "src/main/main.ts",
|
|
1453
|
-
"releaseTag": "Public",
|
|
1454
|
-
"isAbstract": false,
|
|
1455
|
-
"name": "ZeroHeader",
|
|
1456
|
-
"preserveMemberOrder": false,
|
|
1457
|
-
"members": [],
|
|
1458
|
-
"extendsTokenRange": {
|
|
1459
|
-
"startIndex": 1,
|
|
1460
|
-
"endIndex": 2
|
|
1461
|
-
},
|
|
1462
|
-
"implementsTokenRanges": []
|
|
1463
1463
|
}
|
|
1464
1464
|
]
|
|
1465
1465
|
}
|
|
@@ -66,6 +66,41 @@ export declare const DynamicTemplate: ViewTemplate<Navigation>;
|
|
|
66
66
|
*/
|
|
67
67
|
export declare type ElementTargetId = HeaderTargetId | NavTargetId | SideNavTargetId;
|
|
68
68
|
|
|
69
|
+
/**
|
|
70
|
+
* FoundationHeader is a zero version of the header micro-frontend.
|
|
71
|
+
*
|
|
72
|
+
* @remarks
|
|
73
|
+
* A header version that pre-registers zero components and uses the zero design system. ZeroHeader and its components won't bloat the core bundle as
|
|
74
|
+
* these are only loaded on-demand when in use.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* import { FoundationHeader } from '@genesislcap/foundation-header';
|
|
79
|
+
* ...
|
|
80
|
+
* FoundationHeader
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @example Load the micro frontend on-demand
|
|
84
|
+
* ```ts
|
|
85
|
+
|
|
86
|
+
* const { FoundationHeader } = await import('@genesislcap/foundation-header');
|
|
87
|
+
* return FoundationHeader;
|
|
88
|
+
* },
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export declare class FoundationHeader extends Navigation {
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
connectedCallback(): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
loadRemotes(): Promise<void>;
|
|
102
|
+
}
|
|
103
|
+
|
|
69
104
|
/**
|
|
70
105
|
* Do not reference any ../main files here. We must avoid ../tags being referenced and therefore setup pre-configuration.
|
|
71
106
|
*/
|
|
@@ -423,6 +458,14 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
423
458
|
readonly prefix: string;
|
|
424
459
|
readonly scrollHeight: number;
|
|
425
460
|
scrollLeft: number;
|
|
461
|
+
/**
|
|
462
|
+
* Optional attribute which controls the icon to show on the navigation bar and flyout
|
|
463
|
+
* Control via `logo-src`
|
|
464
|
+
*
|
|
465
|
+
* @remarks
|
|
466
|
+
*
|
|
467
|
+
* If this attribute is not set then the Genesis logo is shown instead
|
|
468
|
+
*/
|
|
426
469
|
scrollTop: number;
|
|
427
470
|
readonly scrollWidth: number;
|
|
428
471
|
readonly shadowRoot: ShadowRoot;
|
|
@@ -467,11 +510,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
467
510
|
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
468
511
|
scrollTo(options?: ScrollToOptions): void;
|
|
469
512
|
scrollTo(x: number, y: number): void;
|
|
470
|
-
/**
|
|
471
|
-
* If present the defined route buttons will be rendered in the header 'routes' slot
|
|
472
|
-
*
|
|
473
|
-
* @deprecated - Use `routeNavItems` instead.
|
|
474
|
-
*/
|
|
475
513
|
setAttribute(qualifiedName: string, value: string): void;
|
|
476
514
|
setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
|
|
477
515
|
setAttributeNode(attr: Attr): Attr;
|
|
@@ -532,7 +570,10 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
532
570
|
ariaChecked: string;
|
|
533
571
|
ariaColCount: string;
|
|
534
572
|
ariaColIndex: string;
|
|
535
|
-
ariaColIndexText: string;
|
|
573
|
+
ariaColIndexText: string;
|
|
574
|
+
ariaColSpan: string;
|
|
575
|
+
ariaCurrent: string;
|
|
576
|
+
ariaDisabled: string; /**
|
|
536
577
|
* Emits the event corresponding to the luminance icon being clicked
|
|
537
578
|
*
|
|
538
579
|
* @remarks
|
|
@@ -542,9 +583,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
542
583
|
*
|
|
543
584
|
* @internal
|
|
544
585
|
*/
|
|
545
|
-
ariaColSpan: string;
|
|
546
|
-
ariaCurrent: string;
|
|
547
|
-
ariaDisabled: string;
|
|
548
586
|
ariaExpanded: string;
|
|
549
587
|
ariaHasPopup: string;
|
|
550
588
|
ariaHidden: string;
|
|
@@ -567,6 +605,16 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
567
605
|
ariaRowIndex: string;
|
|
568
606
|
ariaRowIndexText: string;
|
|
569
607
|
ariaRowSpan: string;
|
|
608
|
+
/**
|
|
609
|
+
* Emits the event corresponding to the notification icon being clicked
|
|
610
|
+
*
|
|
611
|
+
* @remarks
|
|
612
|
+
*
|
|
613
|
+
* Activated when the user clicks on the bell icon on the navigation
|
|
614
|
+
* bar right hand side
|
|
615
|
+
*
|
|
616
|
+
* @internal
|
|
617
|
+
*/
|
|
570
618
|
ariaSelected: string;
|
|
571
619
|
ariaSetSize: string;
|
|
572
620
|
ariaSort: string;
|
|
@@ -771,39 +819,4 @@ declare type TemplateOptions = Partial<TemplateComponents> & {
|
|
|
771
819
|
somePartial?: string | SyntheticViewTemplate;
|
|
772
820
|
};
|
|
773
821
|
|
|
774
|
-
/**
|
|
775
|
-
* ZeroHeader is a zero version of the header micro-frontend.
|
|
776
|
-
*
|
|
777
|
-
* @remarks
|
|
778
|
-
* A zero version that pre-registers zero components and uses the zero design system. ZeroHeader and its components won't bloat the core bundle as
|
|
779
|
-
* these are only loaded on-demand when in use.
|
|
780
|
-
*
|
|
781
|
-
* @example
|
|
782
|
-
* ```ts
|
|
783
|
-
* import { ZeroHeader } from '@genesislcap/foundation-header';
|
|
784
|
-
* ...
|
|
785
|
-
* ZeroHeader
|
|
786
|
-
* ```
|
|
787
|
-
*
|
|
788
|
-
* @example Load the micro frontend on-demand
|
|
789
|
-
* ```ts
|
|
790
|
-
|
|
791
|
-
* const { ZeroHeader } = await import('@genesislcap/foundation-header');
|
|
792
|
-
* return ZeroHeader;
|
|
793
|
-
* },
|
|
794
|
-
* ```
|
|
795
|
-
*
|
|
796
|
-
* @public
|
|
797
|
-
*/
|
|
798
|
-
export declare class ZeroHeader extends Navigation {
|
|
799
|
-
/**
|
|
800
|
-
* @internal
|
|
801
|
-
*/
|
|
802
|
-
connectedCallback(): Promise<void>;
|
|
803
|
-
/**
|
|
804
|
-
* @internal
|
|
805
|
-
*/
|
|
806
|
-
loadRemotes(): Promise<void>;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
822
|
export { }
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-header](./foundation-header.md) > [FoundationHeader](./foundation-header.foundationheader.md)
|
|
4
|
+
|
|
5
|
+
## FoundationHeader class
|
|
6
|
+
|
|
7
|
+
FoundationHeader is a zero version of the header micro-frontend.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare class FoundationHeader extends Navigation
|
|
13
|
+
```
|
|
14
|
+
**Extends:** [Navigation](./foundation-header.navigation.md)
|
|
15
|
+
|
|
16
|
+
## Remarks
|
|
17
|
+
|
|
18
|
+
A header version that pre-registers zero components and uses the zero design system. ZeroHeader and its components won't bloat the core bundle as these are only loaded on-demand when in use.
|
|
19
|
+
|
|
20
|
+
## Example 1
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import { FoundationHeader } from '@genesislcap/foundation-header';
|
|
25
|
+
...
|
|
26
|
+
FoundationHeader
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Example 2
|
|
30
|
+
|
|
31
|
+
Load the micro frontend on-demand
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
|
|
35
|
+
const { FoundationHeader } = await import('@genesislcap/foundation-header');
|
|
36
|
+
return FoundationHeader;
|
|
37
|
+
},
|
|
38
|
+
```
|
|
39
|
+
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
| Class | Description |
|
|
10
10
|
| --- | --- |
|
|
11
|
+
| [FoundationHeader](./foundation-header.foundationheader.md) | FoundationHeader is a zero version of the header micro-frontend. |
|
|
11
12
|
| [Navigation](./foundation-header.navigation.md) | Navigation micro-frontend includes navigation bar and flyout menu |
|
|
12
|
-
| [ZeroHeader](./foundation-header.zeroheader.md) | ZeroHeader is a zero version of the header micro-frontend. |
|
|
13
13
|
|
|
14
14
|
## Functions
|
|
15
15
|
|
package/docs/api-report.md
CHANGED
|
@@ -32,6 +32,14 @@ export const DynamicTemplate: ViewTemplate<Navigation>;
|
|
|
32
32
|
// @public
|
|
33
33
|
export type ElementTargetId = HeaderTargetId | NavTargetId | SideNavTargetId;
|
|
34
34
|
|
|
35
|
+
// @public
|
|
36
|
+
export class FoundationHeader extends Navigation {
|
|
37
|
+
// @internal (undocumented)
|
|
38
|
+
connectedCallback(): Promise<void>;
|
|
39
|
+
// @internal (undocumented)
|
|
40
|
+
loadRemotes(): Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
|
|
35
43
|
// Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "HeaderConfig" because one of its declarations is marked as @internal
|
|
36
44
|
//
|
|
37
45
|
// @public
|
|
@@ -143,14 +151,6 @@ export type SideNavTargetId = 'side-nav-start' | 'side-nav' | 'side-nav-end';
|
|
|
143
151
|
// @public
|
|
144
152
|
export type StyleTargetId = 'header';
|
|
145
153
|
|
|
146
|
-
// @public
|
|
147
|
-
export class ZeroHeader extends Navigation {
|
|
148
|
-
// @internal (undocumented)
|
|
149
|
-
connectedCallback(): Promise<void>;
|
|
150
|
-
// @internal (undocumented)
|
|
151
|
-
loadRemotes(): Promise<void>;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
154
|
// (No @packageDocumentation comment for this package)
|
|
155
155
|
|
|
156
156
|
```
|
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.141.
|
|
4
|
+
"version": "14.141.1",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-header.d.ts",
|
|
@@ -68,19 +68,19 @@
|
|
|
68
68
|
"test:debug": "genx test --debug"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@genesislcap/foundation-testing": "14.141.
|
|
72
|
-
"@genesislcap/genx": "14.141.
|
|
71
|
+
"@genesislcap/foundation-testing": "14.141.1",
|
|
72
|
+
"@genesislcap/genx": "14.141.1",
|
|
73
73
|
"rimraf": "^3.0.2"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@genesislcap/foundation-comms": "14.141.
|
|
77
|
-
"@genesislcap/foundation-events": "14.141.
|
|
78
|
-
"@genesislcap/foundation-i18n": "14.141.
|
|
79
|
-
"@genesislcap/foundation-logger": "14.141.
|
|
80
|
-
"@genesislcap/foundation-shell": "14.141.
|
|
81
|
-
"@genesislcap/foundation-ui": "14.141.
|
|
82
|
-
"@genesislcap/foundation-utils": "14.141.
|
|
83
|
-
"@genesislcap/foundation-zero": "14.141.
|
|
76
|
+
"@genesislcap/foundation-comms": "14.141.1",
|
|
77
|
+
"@genesislcap/foundation-events": "14.141.1",
|
|
78
|
+
"@genesislcap/foundation-i18n": "14.141.1",
|
|
79
|
+
"@genesislcap/foundation-logger": "14.141.1",
|
|
80
|
+
"@genesislcap/foundation-shell": "14.141.1",
|
|
81
|
+
"@genesislcap/foundation-ui": "14.141.1",
|
|
82
|
+
"@genesislcap/foundation-utils": "14.141.1",
|
|
83
|
+
"@genesislcap/foundation-zero": "14.141.1",
|
|
84
84
|
"@microsoft/fast-colors": "^5.3.1",
|
|
85
85
|
"@microsoft/fast-components": "^2.30.6",
|
|
86
86
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"access": "public"
|
|
98
98
|
},
|
|
99
99
|
"customElements": "dist/custom-elements.json",
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "25fd8b62107c27f17a668eaba2182a4a2176966b"
|
|
101
101
|
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-header](./foundation-header.md) > [ZeroHeader](./foundation-header.zeroheader.md)
|
|
4
|
-
|
|
5
|
-
## ZeroHeader class
|
|
6
|
-
|
|
7
|
-
ZeroHeader is a zero version of the header micro-frontend.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare class ZeroHeader extends Navigation
|
|
13
|
-
```
|
|
14
|
-
**Extends:** [Navigation](./foundation-header.navigation.md)
|
|
15
|
-
|
|
16
|
-
## Remarks
|
|
17
|
-
|
|
18
|
-
A zero version that pre-registers zero components and uses the zero design system. ZeroHeader and its components won't bloat the core bundle as these are only loaded on-demand when in use.
|
|
19
|
-
|
|
20
|
-
## Example 1
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
```ts
|
|
24
|
-
import { ZeroHeader } from '@genesislcap/foundation-header';
|
|
25
|
-
...
|
|
26
|
-
ZeroHeader
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Example 2
|
|
30
|
-
|
|
31
|
-
Load the micro frontend on-demand
|
|
32
|
-
|
|
33
|
-
```ts
|
|
34
|
-
|
|
35
|
-
const { ZeroHeader } = await import('@genesislcap/foundation-header');
|
|
36
|
-
return ZeroHeader;
|
|
37
|
-
},
|
|
38
|
-
```
|
|
39
|
-
|