@genesislcap/foundation-header 14.139.2 → 14.141.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 +690 -160
- package/dist/dts/components/zero-components.d.ts +6 -0
- package/dist/dts/components/zero-components.d.ts.map +1 -0
- package/dist/dts/config/config.d.ts +33 -0
- package/dist/dts/config/config.d.ts.map +1 -0
- package/dist/dts/config/configure.d.ts +27 -0
- package/dist/dts/config/configure.d.ts.map +1 -0
- package/dist/dts/config/index.d.ts +2 -0
- package/dist/dts/config/index.d.ts.map +1 -1
- package/dist/dts/config/templates.d.ts +34 -0
- package/dist/dts/config/templates.d.ts.map +1 -0
- package/dist/dts/main/index.d.ts +1 -1
- package/dist/dts/main/index.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +53 -24
- 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/tags/index.d.ts +2 -0
- package/dist/dts/tags/index.d.ts.map +1 -0
- package/dist/dts/tags/tags.d.ts +36 -0
- package/dist/dts/tags/tags.d.ts.map +1 -0
- package/dist/esm/components/zero-components.js +48 -0
- package/dist/esm/config/config.js +18 -0
- package/dist/esm/config/configure.js +56 -0
- package/dist/esm/config/index.js +2 -0
- package/dist/esm/config/templates.js +14 -0
- package/dist/esm/main/index.js +1 -1
- package/dist/esm/main/main.js +58 -23
- package/dist/esm/main/main.styles.js +56 -133
- package/dist/esm/main/main.template.js +32 -28
- package/dist/esm/tags/index.js +1 -0
- package/dist/esm/tags/tags.js +39 -0
- package/dist/foundation-header.api.json +219 -0
- package/dist/foundation-header.d.ts +187 -24
- package/docs/api/foundation-header.configure.md +46 -0
- package/docs/api/foundation-header.defaultheaderconfig.md +13 -0
- package/docs/api/foundation-header.headerconfig.md +21 -0
- package/docs/api/foundation-header.headerconfig.templateoptions.md +18 -0
- package/docs/api/foundation-header.md +14 -0
- package/docs/api/foundation-header.navigation.headerconfig.md +11 -0
- package/docs/api/foundation-header.navigation.md +1 -0
- package/docs/api/foundation-header.zeroheader.md +39 -0
- package/docs/api-report.md +46 -2
- package/package.json +14 -12
- package/dist/dts/components/components.d.ts +0 -9
- package/dist/dts/components/components.d.ts.map +0 -1
- package/dist/dts/components/index.d.ts +0 -2
- package/dist/dts/components/index.d.ts.map +0 -1
- package/dist/esm/components/components.js +0 -42
- package/dist/esm/components/index.js +0 -1
|
@@ -184,6 +184,103 @@
|
|
|
184
184
|
"name": "",
|
|
185
185
|
"preserveMemberOrder": false,
|
|
186
186
|
"members": [
|
|
187
|
+
{
|
|
188
|
+
"kind": "Function",
|
|
189
|
+
"canonicalReference": "@genesislcap/foundation-header!configure:function(1)",
|
|
190
|
+
"docComment": "/**\n * A function that allows configuring the header micro-frontend with name and templateOptions.\n *\n * @remarks\n *\n * Configure the Header micro frontend for host app integration.\n *\n * @param config - A partial HeaderConfig.\n *\n * @example\n *\n * Providing template options to align to your host application.\n * ```ts\n *\n * const { configure } = await import('@genesislcap/foundation-header/config'); // < import from the subpath\n * return configure({\n * name: `nexus-app-header`,\n * // These will be merged with the packages `defaultTemplateOptions`. You will need to have these components registered in your application.\n * templateOptions: {\n * button: 'nexus-button',\n * icon: 'nexus-icon-next',\n * },\n * });\n * },\n * ```\n *\n * @public\n */\n",
|
|
191
|
+
"excerptTokens": [
|
|
192
|
+
{
|
|
193
|
+
"kind": "Content",
|
|
194
|
+
"text": "export declare function configure(config: "
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"kind": "Reference",
|
|
198
|
+
"text": "Partial",
|
|
199
|
+
"canonicalReference": "!Partial:type"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"kind": "Content",
|
|
203
|
+
"text": "<"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"kind": "Reference",
|
|
207
|
+
"text": "HeaderConfig",
|
|
208
|
+
"canonicalReference": "@genesislcap/foundation-header!HeaderConfig:interface"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"kind": "Content",
|
|
212
|
+
"text": ">"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"kind": "Content",
|
|
216
|
+
"text": "): "
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"kind": "Reference",
|
|
220
|
+
"text": "Promise",
|
|
221
|
+
"canonicalReference": "!Promise:interface"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"kind": "Content",
|
|
225
|
+
"text": "<typeof import(\"../main\")."
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"kind": "Reference",
|
|
229
|
+
"text": "Navigation",
|
|
230
|
+
"canonicalReference": "@genesislcap/foundation-header!Navigation:class"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"kind": "Content",
|
|
234
|
+
"text": ">"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"kind": "Content",
|
|
238
|
+
"text": ";"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"fileUrlPath": "src/config/configure.ts",
|
|
242
|
+
"returnTypeTokenRange": {
|
|
243
|
+
"startIndex": 6,
|
|
244
|
+
"endIndex": 10
|
|
245
|
+
},
|
|
246
|
+
"releaseTag": "Public",
|
|
247
|
+
"overloadIndex": 1,
|
|
248
|
+
"parameters": [
|
|
249
|
+
{
|
|
250
|
+
"parameterName": "config",
|
|
251
|
+
"parameterTypeTokenRange": {
|
|
252
|
+
"startIndex": 1,
|
|
253
|
+
"endIndex": 5
|
|
254
|
+
},
|
|
255
|
+
"isOptional": false
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"name": "configure"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"kind": "Variable",
|
|
262
|
+
"canonicalReference": "@genesislcap/foundation-header!defaultHeaderConfig:var",
|
|
263
|
+
"docComment": "/**\n * Default HeaderConfig DI implementation.\n *\n * @public\n */\n",
|
|
264
|
+
"excerptTokens": [
|
|
265
|
+
{
|
|
266
|
+
"kind": "Content",
|
|
267
|
+
"text": "defaultHeaderConfig: "
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"kind": "Reference",
|
|
271
|
+
"text": "HeaderConfig",
|
|
272
|
+
"canonicalReference": "@genesislcap/foundation-header!HeaderConfig:interface"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"fileUrlPath": "src/config/config.ts",
|
|
276
|
+
"isReadonly": true,
|
|
277
|
+
"releaseTag": "Public",
|
|
278
|
+
"name": "defaultHeaderConfig",
|
|
279
|
+
"variableTypeTokenRange": {
|
|
280
|
+
"startIndex": 1,
|
|
281
|
+
"endIndex": 2
|
|
282
|
+
}
|
|
283
|
+
},
|
|
187
284
|
{
|
|
188
285
|
"kind": "TypeAlias",
|
|
189
286
|
"canonicalReference": "@genesislcap/foundation-header!ElementTargetId:type",
|
|
@@ -229,6 +326,66 @@
|
|
|
229
326
|
"endIndex": 6
|
|
230
327
|
}
|
|
231
328
|
},
|
|
329
|
+
{
|
|
330
|
+
"kind": "Interface",
|
|
331
|
+
"canonicalReference": "@genesislcap/foundation-header!HeaderConfig:interface",
|
|
332
|
+
"docComment": "/**\n * HeaderConfig DI interface.\n *\n * @public\n */\n",
|
|
333
|
+
"excerptTokens": [
|
|
334
|
+
{
|
|
335
|
+
"kind": "Content",
|
|
336
|
+
"text": "export interface HeaderConfig extends "
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"kind": "Reference",
|
|
340
|
+
"text": "PartialFASTElementDefinition",
|
|
341
|
+
"canonicalReference": "@microsoft/fast-element!PartialFASTElementDefinition:interface"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"kind": "Content",
|
|
345
|
+
"text": " "
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
"fileUrlPath": "src/config/config.ts",
|
|
349
|
+
"releaseTag": "Public",
|
|
350
|
+
"name": "HeaderConfig",
|
|
351
|
+
"preserveMemberOrder": false,
|
|
352
|
+
"members": [
|
|
353
|
+
{
|
|
354
|
+
"kind": "PropertySignature",
|
|
355
|
+
"canonicalReference": "@genesislcap/foundation-header!HeaderConfig#templateOptions:member",
|
|
356
|
+
"docComment": "/**\n * Template options.\n *\n * @remarks\n *\n * Used by host applications to assign MF template options and subcomponent tags to align with the host design system.\n */\n",
|
|
357
|
+
"excerptTokens": [
|
|
358
|
+
{
|
|
359
|
+
"kind": "Content",
|
|
360
|
+
"text": "templateOptions: "
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"kind": "Reference",
|
|
364
|
+
"text": "TemplateOptions",
|
|
365
|
+
"canonicalReference": "@genesislcap/foundation-header!~TemplateOptions:type"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"kind": "Content",
|
|
369
|
+
"text": ";"
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"isReadonly": false,
|
|
373
|
+
"isOptional": false,
|
|
374
|
+
"releaseTag": "Public",
|
|
375
|
+
"name": "templateOptions",
|
|
376
|
+
"propertyTypeTokenRange": {
|
|
377
|
+
"startIndex": 1,
|
|
378
|
+
"endIndex": 2
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"extendsTokenRanges": [
|
|
383
|
+
{
|
|
384
|
+
"startIndex": 1,
|
|
385
|
+
"endIndex": 2
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
},
|
|
232
389
|
{
|
|
233
390
|
"kind": "TypeAlias",
|
|
234
391
|
"canonicalReference": "@genesislcap/foundation-header!HeaderTargetId:type",
|
|
@@ -507,6 +664,37 @@
|
|
|
507
664
|
"isProtected": false,
|
|
508
665
|
"isAbstract": false
|
|
509
666
|
},
|
|
667
|
+
{
|
|
668
|
+
"kind": "Property",
|
|
669
|
+
"canonicalReference": "@genesislcap/foundation-header!Navigation#headerConfig:member",
|
|
670
|
+
"docComment": "",
|
|
671
|
+
"excerptTokens": [
|
|
672
|
+
{
|
|
673
|
+
"kind": "Content",
|
|
674
|
+
"text": "headerConfig: "
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"kind": "Reference",
|
|
678
|
+
"text": "HeaderConfig",
|
|
679
|
+
"canonicalReference": "@genesislcap/foundation-header!HeaderConfig:interface"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"kind": "Content",
|
|
683
|
+
"text": ";"
|
|
684
|
+
}
|
|
685
|
+
],
|
|
686
|
+
"isReadonly": false,
|
|
687
|
+
"isOptional": false,
|
|
688
|
+
"releaseTag": "Public",
|
|
689
|
+
"name": "headerConfig",
|
|
690
|
+
"propertyTypeTokenRange": {
|
|
691
|
+
"startIndex": 1,
|
|
692
|
+
"endIndex": 2
|
|
693
|
+
},
|
|
694
|
+
"isStatic": false,
|
|
695
|
+
"isProtected": false,
|
|
696
|
+
"isAbstract": false
|
|
697
|
+
},
|
|
510
698
|
{
|
|
511
699
|
"kind": "Property",
|
|
512
700
|
"canonicalReference": "@genesislcap/foundation-header!Navigation#hideSideBar:member",
|
|
@@ -1241,6 +1429,37 @@
|
|
|
1241
1429
|
"startIndex": 1,
|
|
1242
1430
|
"endIndex": 2
|
|
1243
1431
|
}
|
|
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": []
|
|
1244
1463
|
}
|
|
1245
1464
|
]
|
|
1246
1465
|
}
|
|
@@ -6,8 +6,59 @@ import { EmitOptions } from '@genesislcap/foundation-events';
|
|
|
6
6
|
import { EmitReturn } from '@genesislcap/foundation-events';
|
|
7
7
|
import type { FoundationRouteNavItem } from '@genesislcap/foundation-ui';
|
|
8
8
|
import { I18next } from '@genesislcap/foundation-i18n';
|
|
9
|
+
import { InterfaceSymbol } from '@microsoft/fast-foundation';
|
|
10
|
+
import { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
11
|
+
import { SyntheticViewTemplate } from '@microsoft/fast-element';
|
|
12
|
+
import { TemplateElementDependency } from '@genesislcap/foundation-ui';
|
|
9
13
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
10
14
|
|
|
15
|
+
/**
|
|
16
|
+
* A function that allows configuring the header micro-frontend with name and templateOptions.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Configure the Header micro frontend for host app integration.
|
|
20
|
+
*
|
|
21
|
+
* @example Providing template options to align to your host application.
|
|
22
|
+
* ```ts
|
|
23
|
+
|
|
24
|
+
* const { configure } = await import('@genesislcap/foundation-header/config'); // < import from the subpath
|
|
25
|
+
* return configure({
|
|
26
|
+
* name: `nexus-app-header`,
|
|
27
|
+
* // These will be merged with the packages `defaultTemplateOptions`. You will need to have these components registered in your application.
|
|
28
|
+
* templateOptions: {
|
|
29
|
+
* button: 'nexus-button',
|
|
30
|
+
* icon: 'nexus-icon-next',
|
|
31
|
+
* },
|
|
32
|
+
* });
|
|
33
|
+
* },
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @param config - A partial HeaderConfig.
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export declare function configure(config: Partial<HeaderConfig>): Promise<Navigation>;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Default HeaderConfig DI implementation.
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
export declare const defaultHeaderConfig: HeaderConfig;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Top level template for Navigation class
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
*
|
|
52
|
+
* Dynamic template which wraps the code in a provider
|
|
53
|
+
*
|
|
54
|
+
* @typeParam Navigation - Navigation class
|
|
55
|
+
*
|
|
56
|
+
* @returns ViewTemplate instance of the Navigation html
|
|
57
|
+
*
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
export declare const DynamicTemplate: ViewTemplate<Navigation>;
|
|
61
|
+
|
|
11
62
|
/**
|
|
12
63
|
* Package element integration targets.
|
|
13
64
|
*
|
|
@@ -15,6 +66,33 @@ import { ViewTemplate } from '@microsoft/fast-element';
|
|
|
15
66
|
*/
|
|
16
67
|
export declare type ElementTargetId = HeaderTargetId | NavTargetId | SideNavTargetId;
|
|
17
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Do not reference any ../main files here. We must avoid ../tags being referenced and therefore setup pre-configuration.
|
|
71
|
+
*/
|
|
72
|
+
/**
|
|
73
|
+
* HeaderConfig DI interface.
|
|
74
|
+
*
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
export declare interface HeaderConfig extends PartialFASTElementDefinition {
|
|
78
|
+
/**
|
|
79
|
+
* Template options.
|
|
80
|
+
*
|
|
81
|
+
* @remarks
|
|
82
|
+
* Used by host applications to assign MF template options and subcomponent tags to align with the host design system.
|
|
83
|
+
*/
|
|
84
|
+
templateOptions: TemplateOptions;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* HeaderConfig DI key.
|
|
89
|
+
*
|
|
90
|
+
* @internal
|
|
91
|
+
* @privateRemarks
|
|
92
|
+
* Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
|
|
93
|
+
*/
|
|
94
|
+
export declare const HeaderConfig: InterfaceSymbol<HeaderConfig>;
|
|
95
|
+
|
|
18
96
|
/**
|
|
19
97
|
* Header integration targets.
|
|
20
98
|
*
|
|
@@ -31,6 +109,21 @@ export declare type LanguageOptions = {
|
|
|
31
109
|
selectedLanguage: string;
|
|
32
110
|
};
|
|
33
111
|
|
|
112
|
+
/**
|
|
113
|
+
* Loading template for the Navigation class
|
|
114
|
+
*
|
|
115
|
+
* @remarks
|
|
116
|
+
*
|
|
117
|
+
* Template used to indicate loading to the user
|
|
118
|
+
*
|
|
119
|
+
* @typeParam Navigation - Navigation class
|
|
120
|
+
*
|
|
121
|
+
* @returns ViewTemplate instance of the Loading html
|
|
122
|
+
*
|
|
123
|
+
* @internal
|
|
124
|
+
*/
|
|
125
|
+
export declare const LoadingTemplate: ViewTemplate<Navigation>;
|
|
126
|
+
|
|
34
127
|
/**
|
|
35
128
|
* Base styles for the foundation-header
|
|
36
129
|
*
|
|
@@ -40,6 +133,21 @@ export declare type LanguageOptions = {
|
|
|
40
133
|
*/
|
|
41
134
|
export declare const MainStyles: ElementStyles;
|
|
42
135
|
|
|
136
|
+
/**
|
|
137
|
+
* Render template for the Navigation class
|
|
138
|
+
*
|
|
139
|
+
* @remarks
|
|
140
|
+
*
|
|
141
|
+
* Template used when the class has finished loading
|
|
142
|
+
*
|
|
143
|
+
* @typeParam Navigation - Navigation class
|
|
144
|
+
*
|
|
145
|
+
* @returns ViewTemplate instance of the Main html
|
|
146
|
+
*
|
|
147
|
+
* @internal
|
|
148
|
+
*/
|
|
149
|
+
export declare const MainTemplate: ViewTemplate<Navigation>;
|
|
150
|
+
|
|
43
151
|
/**
|
|
44
152
|
* Events dispatched by the navigation control buttons
|
|
45
153
|
* @public
|
|
@@ -88,6 +196,7 @@ export declare class Navigation extends Navigation_base {
|
|
|
88
196
|
auth: Auth;
|
|
89
197
|
credentialManager: CredentialManager;
|
|
90
198
|
i18next: I18next;
|
|
199
|
+
headerConfig: HeaderConfig;
|
|
91
200
|
ready: boolean;
|
|
92
201
|
/**
|
|
93
202
|
* Username of the logged in user
|
|
@@ -180,16 +289,6 @@ export declare class Navigation extends Navigation_base {
|
|
|
180
289
|
* If present the defined {@link @genesislcap/foundation-ui#FoundationRouteNavItem | FoundationRouteNavItems} will be rendered in the header 'routes' slot
|
|
181
290
|
*/
|
|
182
291
|
routeNavItems: FoundationRouteNavItem[];
|
|
183
|
-
/**
|
|
184
|
-
* Load remote components
|
|
185
|
-
*
|
|
186
|
-
* @remarks
|
|
187
|
-
*
|
|
188
|
-
* With regards to module federation
|
|
189
|
-
*
|
|
190
|
-
* @internal
|
|
191
|
-
*/
|
|
192
|
-
loadRemotes(): Promise<void>;
|
|
193
292
|
selectTemplate(): ViewTemplate<Navigation, any>;
|
|
194
293
|
/**
|
|
195
294
|
* Logs the user out of their session
|
|
@@ -310,9 +409,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
310
409
|
readonly classList: DOMTokenList;
|
|
311
410
|
className: string;
|
|
312
411
|
readonly clientHeight: number;
|
|
313
|
-
readonly clientLeft: number;
|
|
314
|
-
* Username of the logged in user
|
|
315
|
-
*/
|
|
412
|
+
readonly clientLeft: number;
|
|
316
413
|
readonly clientTop: number;
|
|
317
414
|
readonly clientWidth: number;
|
|
318
415
|
id: string;
|
|
@@ -370,6 +467,11 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
370
467
|
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
371
468
|
scrollTo(options?: ScrollToOptions): void;
|
|
372
469
|
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
|
+
*/
|
|
373
475
|
setAttribute(qualifiedName: string, value: string): void;
|
|
374
476
|
setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
|
|
375
477
|
setAttributeNode(attr: Attr): Attr;
|
|
@@ -430,7 +532,16 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
430
532
|
ariaChecked: string;
|
|
431
533
|
ariaColCount: string;
|
|
432
534
|
ariaColIndex: string;
|
|
433
|
-
ariaColIndexText: string;
|
|
535
|
+
ariaColIndexText: string; /**
|
|
536
|
+
* Emits the event corresponding to the luminance icon being clicked
|
|
537
|
+
*
|
|
538
|
+
* @remarks
|
|
539
|
+
*
|
|
540
|
+
* Activated when the user clicks on the moon icon on the navigation
|
|
541
|
+
* bar right hand side
|
|
542
|
+
*
|
|
543
|
+
* @internal
|
|
544
|
+
*/
|
|
434
545
|
ariaColSpan: string;
|
|
435
546
|
ariaCurrent: string;
|
|
436
547
|
ariaDisabled: string;
|
|
@@ -463,16 +574,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
|
|
|
463
574
|
ariaValueMin: string;
|
|
464
575
|
ariaValueNow: string;
|
|
465
576
|
ariaValueText: string;
|
|
466
|
-
role: string;
|
|
467
|
-
* Emits the event corresponding to the notification icon being clicked
|
|
468
|
-
*
|
|
469
|
-
* @remarks
|
|
470
|
-
*
|
|
471
|
-
* Activated when the user clicks on the bell icon on the navigation
|
|
472
|
-
* bar right hand side
|
|
473
|
-
*
|
|
474
|
-
* @internal
|
|
475
|
-
*/
|
|
577
|
+
role: string;
|
|
476
578
|
animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
|
|
477
579
|
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
478
580
|
after(...nodes: (string | Node)[]): void;
|
|
@@ -643,4 +745,65 @@ export declare type SideNavTargetId = 'side-nav-start' | 'side-nav' | 'side-nav-
|
|
|
643
745
|
*/
|
|
644
746
|
export declare type StyleTargetId = 'header';
|
|
645
747
|
|
|
748
|
+
/**
|
|
749
|
+
* TemplateComponents.
|
|
750
|
+
* @public
|
|
751
|
+
*/
|
|
752
|
+
declare type TemplateComponents = {
|
|
753
|
+
icon: TemplateElementDependency;
|
|
754
|
+
button: TemplateElementDependency;
|
|
755
|
+
connectionIndicator: TemplateElementDependency;
|
|
756
|
+
select: TemplateElementDependency;
|
|
757
|
+
option: TemplateElementDependency;
|
|
758
|
+
flyout: TemplateElementDependency;
|
|
759
|
+
};
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* TemplateOptions.
|
|
763
|
+
* @public
|
|
764
|
+
*/
|
|
765
|
+
declare type TemplateOptions = Partial<TemplateComponents> & {
|
|
766
|
+
/**
|
|
767
|
+
* @remarks
|
|
768
|
+
* Just for reference that template options may be more than tags.
|
|
769
|
+
* @internal
|
|
770
|
+
*/
|
|
771
|
+
somePartial?: string | SyntheticViewTemplate;
|
|
772
|
+
};
|
|
773
|
+
|
|
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
|
+
|
|
646
809
|
export { }
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-header](./foundation-header.md) > [configure](./foundation-header.configure.md)
|
|
4
|
+
|
|
5
|
+
## configure() function
|
|
6
|
+
|
|
7
|
+
A function that allows configuring the header micro-frontend with name and templateOptions.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function configure(config: Partial<HeaderConfig>): Promise<typeof import("../main").Navigation>;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| config | Partial<[HeaderConfig](./foundation-header.headerconfig.md)<!-- -->> | A partial HeaderConfig. |
|
|
20
|
+
|
|
21
|
+
**Returns:**
|
|
22
|
+
|
|
23
|
+
Promise<typeof import("../main").[Navigation](./foundation-header.navigation.md)<!-- -->>
|
|
24
|
+
|
|
25
|
+
## Remarks
|
|
26
|
+
|
|
27
|
+
Configure the Header micro frontend for host app integration.
|
|
28
|
+
|
|
29
|
+
## Example
|
|
30
|
+
|
|
31
|
+
Providing template options to align to your host application.
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
|
|
35
|
+
const { configure } = await import('@genesislcap/foundation-header/config'); // < import from the subpath
|
|
36
|
+
return configure({
|
|
37
|
+
name: `nexus-app-header`,
|
|
38
|
+
// These will be merged with the packages `defaultTemplateOptions`. You will need to have these components registered in your application.
|
|
39
|
+
templateOptions: {
|
|
40
|
+
button: 'nexus-button',
|
|
41
|
+
icon: 'nexus-icon-next',
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
},
|
|
45
|
+
```
|
|
46
|
+
|
|
@@ -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) > [defaultHeaderConfig](./foundation-header.defaultheaderconfig.md)
|
|
4
|
+
|
|
5
|
+
## defaultHeaderConfig variable
|
|
6
|
+
|
|
7
|
+
Default HeaderConfig DI implementation.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
defaultHeaderConfig: HeaderConfig
|
|
13
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-header](./foundation-header.md) > [HeaderConfig](./foundation-header.headerconfig.md)
|
|
4
|
+
|
|
5
|
+
## HeaderConfig interface
|
|
6
|
+
|
|
7
|
+
HeaderConfig DI interface.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface HeaderConfig extends PartialFASTElementDefinition
|
|
13
|
+
```
|
|
14
|
+
**Extends:** PartialFASTElementDefinition
|
|
15
|
+
|
|
16
|
+
## Properties
|
|
17
|
+
|
|
18
|
+
| Property | Modifiers | Type | Description |
|
|
19
|
+
| --- | --- | --- | --- |
|
|
20
|
+
| [templateOptions](./foundation-header.headerconfig.templateoptions.md) | | TemplateOptions | Template options. |
|
|
21
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-header](./foundation-header.md) > [HeaderConfig](./foundation-header.headerconfig.md) > [templateOptions](./foundation-header.headerconfig.templateoptions.md)
|
|
4
|
+
|
|
5
|
+
## HeaderConfig.templateOptions property
|
|
6
|
+
|
|
7
|
+
Template options.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
templateOptions: TemplateOptions;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Remarks
|
|
16
|
+
|
|
17
|
+
Used by host applications to assign MF template options and subcomponent tags to align with the host design system.
|
|
18
|
+
|
|
@@ -9,11 +9,25 @@
|
|
|
9
9
|
| Class | Description |
|
|
10
10
|
| --- | --- |
|
|
11
11
|
| [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
|
+
|
|
14
|
+
## Functions
|
|
15
|
+
|
|
16
|
+
| Function | Description |
|
|
17
|
+
| --- | --- |
|
|
18
|
+
| [configure(config)](./foundation-header.configure.md) | A function that allows configuring the header micro-frontend with name and templateOptions. |
|
|
19
|
+
|
|
20
|
+
## Interfaces
|
|
21
|
+
|
|
22
|
+
| Interface | Description |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| [HeaderConfig](./foundation-header.headerconfig.md) | HeaderConfig DI interface. |
|
|
12
25
|
|
|
13
26
|
## Variables
|
|
14
27
|
|
|
15
28
|
| Variable | Description |
|
|
16
29
|
| --- | --- |
|
|
30
|
+
| [defaultHeaderConfig](./foundation-header.defaultheaderconfig.md) | Default HeaderConfig DI implementation. |
|
|
17
31
|
| [MainStyles](./foundation-header.mainstyles.md) | Base styles for the foundation-header |
|
|
18
32
|
| [NavTemplate](./foundation-header.navtemplate.md) | Template for Navigation class |
|
|
19
33
|
|
|
@@ -0,0 +1,11 @@
|
|
|
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) > [headerConfig](./foundation-header.navigation.headerconfig.md)
|
|
4
|
+
|
|
5
|
+
## Navigation.headerConfig property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
headerConfig: HeaderConfig;
|
|
11
|
+
```
|
|
@@ -23,6 +23,7 @@ export declare class Navigation extends Navigation_base
|
|
|
23
23
|
| --- | --- | --- | --- |
|
|
24
24
|
| [auth](./foundation-header.navigation.auth.md) | | Auth | |
|
|
25
25
|
| [credentialManager](./foundation-header.navigation.credentialmanager.md) | | CredentialManager | |
|
|
26
|
+
| [headerConfig](./foundation-header.navigation.headerconfig.md) | | [HeaderConfig](./foundation-header.headerconfig.md) | |
|
|
26
27
|
| [hideSideBar](./foundation-header.navigation.hidesidebar.md) | | boolean | Boolean attribute which controls whether to include the sideNav component Control via<code>hide-side-bar</code> |
|
|
27
28
|
| [i18next](./foundation-header.navigation.i18next.md) | | I18next | |
|
|
28
29
|
| [languageOptions](./foundation-header.navigation.languageoptions.md) | | [LanguageOptions](./foundation-header.languageoptions.md) | |
|