@genesislcap/foundation-header 14.143.0 → 14.143.2

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.
Files changed (50) hide show
  1. package/dist/custom-elements.json +31 -561
  2. package/dist/dts/components/components.d.ts +9 -0
  3. package/dist/dts/components/components.d.ts.map +1 -0
  4. package/dist/dts/components/index.d.ts +2 -0
  5. package/dist/dts/components/index.d.ts.map +1 -0
  6. package/dist/dts/config/index.d.ts +0 -2
  7. package/dist/dts/config/index.d.ts.map +1 -1
  8. package/dist/dts/main/index.d.ts +1 -1
  9. package/dist/dts/main/index.d.ts.map +1 -1
  10. package/dist/dts/main/main.d.ts +22 -64
  11. package/dist/dts/main/main.d.ts.map +1 -1
  12. package/dist/dts/main/main.styles.d.ts.map +1 -1
  13. package/dist/dts/main/main.template.d.ts.map +1 -1
  14. package/dist/esm/components/components.js +42 -0
  15. package/dist/esm/components/index.js +1 -0
  16. package/dist/esm/config/index.js +0 -2
  17. package/dist/esm/main/index.js +1 -1
  18. package/dist/esm/main/main.js +22 -57
  19. package/dist/esm/main/main.styles.js +133 -56
  20. package/dist/esm/main/main.template.js +28 -32
  21. package/dist/foundation-header.api.json +0 -219
  22. package/dist/foundation-header.d.ts +24 -200
  23. package/docs/api/foundation-header.md +0 -14
  24. package/docs/api/foundation-header.navigation.md +0 -1
  25. package/docs/api-report.md +2 -46
  26. package/package.json +13 -14
  27. package/dist/dts/components/zero-components.d.ts +0 -6
  28. package/dist/dts/components/zero-components.d.ts.map +0 -1
  29. package/dist/dts/config/config.d.ts +0 -33
  30. package/dist/dts/config/config.d.ts.map +0 -1
  31. package/dist/dts/config/configure.d.ts +0 -27
  32. package/dist/dts/config/configure.d.ts.map +0 -1
  33. package/dist/dts/config/templates.d.ts +0 -34
  34. package/dist/dts/config/templates.d.ts.map +0 -1
  35. package/dist/dts/tags/index.d.ts +0 -2
  36. package/dist/dts/tags/index.d.ts.map +0 -1
  37. package/dist/dts/tags/tags.d.ts +0 -36
  38. package/dist/dts/tags/tags.d.ts.map +0 -1
  39. package/dist/esm/components/zero-components.js +0 -48
  40. package/dist/esm/config/config.js +0 -18
  41. package/dist/esm/config/configure.js +0 -56
  42. package/dist/esm/config/templates.js +0 -14
  43. package/dist/esm/tags/index.js +0 -1
  44. package/dist/esm/tags/tags.js +0 -39
  45. package/docs/api/foundation-header.configure.md +0 -46
  46. package/docs/api/foundation-header.defaultheaderconfig.md +0 -13
  47. package/docs/api/foundation-header.foundationheader.md +0 -39
  48. package/docs/api/foundation-header.headerconfig.md +0 -21
  49. package/docs/api/foundation-header.headerconfig.templateoptions.md +0 -18
  50. package/docs/api/foundation-header.navigation.headerconfig.md +0 -11
@@ -6,59 +6,8 @@ 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';
13
9
  import { ViewTemplate } from '@microsoft/fast-element';
14
10
 
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
-
62
11
  /**
63
12
  * Package element integration targets.
64
13
  *
@@ -66,68 +15,6 @@ export declare const DynamicTemplate: ViewTemplate<Navigation>;
66
15
  */
67
16
  export declare type ElementTargetId = HeaderTargetId | NavTargetId | SideNavTargetId;
68
17
 
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
-
104
- /**
105
- * Do not reference any ../main files here. We must avoid ../tags being referenced and therefore setup pre-configuration.
106
- */
107
- /**
108
- * HeaderConfig DI interface.
109
- *
110
- * @public
111
- */
112
- export declare interface HeaderConfig extends PartialFASTElementDefinition {
113
- /**
114
- * Template options.
115
- *
116
- * @remarks
117
- * Used by host applications to assign MF template options and subcomponent tags to align with the host design system.
118
- */
119
- templateOptions: TemplateOptions;
120
- }
121
-
122
- /**
123
- * HeaderConfig DI key.
124
- *
125
- * @internal
126
- * @privateRemarks
127
- * Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
128
- */
129
- export declare const HeaderConfig: InterfaceSymbol<HeaderConfig>;
130
-
131
18
  /**
132
19
  * Header integration targets.
133
20
  *
@@ -144,21 +31,6 @@ export declare type LanguageOptions = {
144
31
  selectedLanguage: string;
145
32
  };
146
33
 
147
- /**
148
- * Loading template for the Navigation class
149
- *
150
- * @remarks
151
- *
152
- * Template used to indicate loading to the user
153
- *
154
- * @typeParam Navigation - Navigation class
155
- *
156
- * @returns ViewTemplate instance of the Loading html
157
- *
158
- * @internal
159
- */
160
- export declare const LoadingTemplate: ViewTemplate<Navigation>;
161
-
162
34
  /**
163
35
  * Base styles for the foundation-header
164
36
  *
@@ -168,21 +40,6 @@ export declare const LoadingTemplate: ViewTemplate<Navigation>;
168
40
  */
169
41
  export declare const MainStyles: ElementStyles;
170
42
 
171
- /**
172
- * Render template for the Navigation class
173
- *
174
- * @remarks
175
- *
176
- * Template used when the class has finished loading
177
- *
178
- * @typeParam Navigation - Navigation class
179
- *
180
- * @returns ViewTemplate instance of the Main html
181
- *
182
- * @internal
183
- */
184
- export declare const MainTemplate: ViewTemplate<Navigation>;
185
-
186
43
  /**
187
44
  * Events dispatched by the navigation control buttons
188
45
  * @public
@@ -231,7 +88,6 @@ export declare class Navigation extends Navigation_base {
231
88
  auth: Auth;
232
89
  credentialManager: CredentialManager;
233
90
  i18next: I18next;
234
- headerConfig: HeaderConfig;
235
91
  ready: boolean;
236
92
  /**
237
93
  * Username of the logged in user
@@ -324,6 +180,16 @@ export declare class Navigation extends Navigation_base {
324
180
  * If present the defined {@link @genesislcap/foundation-ui#FoundationRouteNavItem | FoundationRouteNavItems} will be rendered in the header 'routes' slot
325
181
  */
326
182
  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>;
327
193
  selectTemplate(): ViewTemplate<Navigation, any>;
328
194
  /**
329
195
  * Logs the user out of their session
@@ -444,7 +310,9 @@ declare const Navigation_base: abstract new (...args: any[]) => {
444
310
  readonly classList: DOMTokenList;
445
311
  className: string;
446
312
  readonly clientHeight: number;
447
- readonly clientLeft: number;
313
+ readonly clientLeft: number; /**
314
+ * Username of the logged in user
315
+ */
448
316
  readonly clientTop: number;
449
317
  readonly clientWidth: number;
450
318
  id: string;
@@ -458,14 +326,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
458
326
  readonly prefix: string;
459
327
  readonly scrollHeight: number;
460
328
  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
- */
469
329
  scrollTop: number;
470
330
  readonly scrollWidth: number;
471
331
  readonly shadowRoot: ShadowRoot;
@@ -573,16 +433,7 @@ declare const Navigation_base: abstract new (...args: any[]) => {
573
433
  ariaColIndexText: string;
574
434
  ariaColSpan: string;
575
435
  ariaCurrent: string;
576
- ariaDisabled: string; /**
577
- * Emits the event corresponding to the luminance icon being clicked
578
- *
579
- * @remarks
580
- *
581
- * Activated when the user clicks on the moon icon on the navigation
582
- * bar right hand side
583
- *
584
- * @internal
585
- */
436
+ ariaDisabled: string;
586
437
  ariaExpanded: string;
587
438
  ariaHasPopup: string;
588
439
  ariaHidden: string;
@@ -605,16 +456,6 @@ declare const Navigation_base: abstract new (...args: any[]) => {
605
456
  ariaRowIndex: string;
606
457
  ariaRowIndexText: string;
607
458
  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
- */
618
459
  ariaSelected: string;
619
460
  ariaSetSize: string;
620
461
  ariaSort: string;
@@ -622,7 +463,16 @@ declare const Navigation_base: abstract new (...args: any[]) => {
622
463
  ariaValueMin: string;
623
464
  ariaValueNow: string;
624
465
  ariaValueText: string;
625
- role: 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
+ */
626
476
  animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
627
477
  getAnimations(options?: GetAnimationsOptions): Animation[];
628
478
  after(...nodes: (string | Node)[]): void;
@@ -793,30 +643,4 @@ export declare type SideNavTargetId = 'side-nav-start' | 'side-nav' | 'side-nav-
793
643
  */
794
644
  export declare type StyleTargetId = 'header';
795
645
 
796
- /**
797
- * TemplateComponents.
798
- * @public
799
- */
800
- declare type TemplateComponents = {
801
- icon: TemplateElementDependency;
802
- button: TemplateElementDependency;
803
- connectionIndicator: TemplateElementDependency;
804
- select: TemplateElementDependency;
805
- option: TemplateElementDependency;
806
- flyout: TemplateElementDependency;
807
- };
808
-
809
- /**
810
- * TemplateOptions.
811
- * @public
812
- */
813
- declare type TemplateOptions = Partial<TemplateComponents> & {
814
- /**
815
- * @remarks
816
- * Just for reference that template options may be more than tags.
817
- * @internal
818
- */
819
- somePartial?: string | SyntheticViewTemplate;
820
- };
821
-
822
646
  export { }
@@ -8,26 +8,12 @@
8
8
 
9
9
  | Class | Description |
10
10
  | --- | --- |
11
- | [FoundationHeader](./foundation-header.foundationheader.md) | FoundationHeader is a zero version of the header micro-frontend. |
12
11
  | [Navigation](./foundation-header.navigation.md) | Navigation micro-frontend includes navigation bar and flyout menu |
13
12
 
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. |
25
-
26
13
  ## Variables
27
14
 
28
15
  | Variable | Description |
29
16
  | --- | --- |
30
- | [defaultHeaderConfig](./foundation-header.defaultheaderconfig.md) | Default HeaderConfig DI implementation. |
31
17
  | [MainStyles](./foundation-header.mainstyles.md) | Base styles for the foundation-header |
32
18
  | [NavTemplate](./foundation-header.navtemplate.md) | Template for Navigation class |
33
19
 
@@ -23,7 +23,6 @@ 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) | |
27
26
  | [hideSideBar](./foundation-header.navigation.hidesidebar.md) | | boolean | Boolean attribute which controls whether to include the sideNav component Control via<code>hide-side-bar</code> |
28
27
  | [i18next](./foundation-header.navigation.i18next.md) | | I18next | |
29
28
  | [languageOptions](./foundation-header.navigation.languageoptions.md) | | [LanguageOptions](./foundation-header.languageoptions.md) | |
@@ -12,45 +12,11 @@ import { EmitOptions } from '@genesislcap/foundation-events';
12
12
  import { EmitReturn } from '@genesislcap/foundation-events';
13
13
  import type { FoundationRouteNavItem } from '@genesislcap/foundation-ui';
14
14
  import { I18next } from '@genesislcap/foundation-i18n';
15
- import { InterfaceSymbol } from '@microsoft/fast-foundation';
16
- import { PartialFASTElementDefinition } from '@microsoft/fast-element';
17
- import { SyntheticViewTemplate } from '@microsoft/fast-element';
18
- import { TemplateElementDependency } from '@genesislcap/foundation-ui';
19
15
  import { ViewTemplate } from '@microsoft/fast-element';
20
16
 
21
- // @public
22
- export function configure(config: Partial<HeaderConfig>): Promise<Navigation>;
23
-
24
- // @public
25
- export const defaultHeaderConfig: HeaderConfig;
26
-
27
- // Warning: (ae-internal-missing-underscore) The name "DynamicTemplate" should be prefixed with an underscore because the declaration is marked as @internal
28
- //
29
- // @internal
30
- export const DynamicTemplate: ViewTemplate<Navigation>;
31
-
32
17
  // @public
33
18
  export type ElementTargetId = HeaderTargetId | NavTargetId | SideNavTargetId;
34
19
 
35
- // @public
36
- export class FoundationHeader extends Navigation {
37
- // @internal (undocumented)
38
- connectedCallback(): Promise<void>;
39
- // @internal (undocumented)
40
- loadRemotes(): Promise<void>;
41
- }
42
-
43
- // Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "HeaderConfig" because one of its declarations is marked as @internal
44
- //
45
- // @public
46
- export interface HeaderConfig extends PartialFASTElementDefinition {
47
- // Warning: (ae-forgotten-export) The symbol "TemplateOptions" needs to be exported by the entry point index.d.ts
48
- templateOptions: TemplateOptions;
49
- }
50
-
51
- // @internal
52
- export const HeaderConfig: InterfaceSymbol<HeaderConfig>;
53
-
54
20
  // @public
55
21
  export type HeaderTargetId = 'header-start' | 'header' | 'header-end';
56
22
 
@@ -60,19 +26,9 @@ export type LanguageOptions = {
60
26
  selectedLanguage: string;
61
27
  };
62
28
 
63
- // Warning: (ae-internal-missing-underscore) The name "LoadingTemplate" should be prefixed with an underscore because the declaration is marked as @internal
64
- //
65
- // @internal
66
- export const LoadingTemplate: ViewTemplate<Navigation>;
67
-
68
29
  // @public
69
30
  export const MainStyles: ElementStyles;
70
31
 
71
- // Warning: (ae-internal-missing-underscore) The name "MainTemplate" should be prefixed with an underscore because the declaration is marked as @internal
72
- //
73
- // @internal
74
- export const MainTemplate: ViewTemplate<Navigation>;
75
-
76
32
  // @public
77
33
  export type NavEventDetailMap = {
78
34
  'luminance-icon-clicked': void;
@@ -92,13 +48,13 @@ export class Navigation extends Navigation_base {
92
48
  connectedCallback(): Promise<void>;
93
49
  // (undocumented)
94
50
  credentialManager: CredentialManager;
95
- // (undocumented)
96
- headerConfig: HeaderConfig;
97
51
  hideSideBar: boolean;
98
52
  // (undocumented)
99
53
  i18next: I18next;
100
54
  // (undocumented)
101
55
  languageOptions: LanguageOptions;
56
+ // @internal
57
+ loadRemotes(): Promise<void>;
102
58
  logoSrc: any;
103
59
  logout(): Promise<void>;
104
60
  // @internal
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.143.0",
4
+ "version": "14.143.2",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-header.d.ts",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "./config": {
30
30
  "types": "./dist/dts/config/index.d.ts",
31
- "default": "./dist/esm/config/index.js"
31
+ "default": "./dist/esm/esm/config/index.js"
32
32
  },
33
33
  "./e2e": {
34
34
  "default": "./test/e2e/index.ts"
@@ -68,23 +68,22 @@
68
68
  "test:debug": "genx test --debug"
69
69
  },
70
70
  "devDependencies": {
71
- "@genesislcap/foundation-testing": "14.143.0",
72
- "@genesislcap/genx": "14.143.0",
71
+ "@genesislcap/foundation-testing": "14.143.2",
72
+ "@genesislcap/genx": "14.143.2",
73
73
  "rimraf": "^3.0.2"
74
74
  },
75
75
  "dependencies": {
76
- "@genesislcap/foundation-comms": "14.143.0",
77
- "@genesislcap/foundation-events": "14.143.0",
78
- "@genesislcap/foundation-i18n": "14.143.0",
79
- "@genesislcap/foundation-logger": "14.143.0",
80
- "@genesislcap/foundation-shell": "14.143.0",
81
- "@genesislcap/foundation-ui": "14.143.0",
82
- "@genesislcap/foundation-utils": "14.143.0",
83
- "@genesislcap/foundation-zero": "14.143.0",
76
+ "@genesislcap/foundation-comms": "14.143.2",
77
+ "@genesislcap/foundation-events": "14.143.2",
78
+ "@genesislcap/foundation-i18n": "14.143.2",
79
+ "@genesislcap/foundation-logger": "14.143.2",
80
+ "@genesislcap/foundation-shell": "14.143.2",
81
+ "@genesislcap/foundation-ui": "14.143.2",
82
+ "@genesislcap/foundation-utils": "14.143.2",
83
+ "@genesislcap/foundation-zero": "14.143.2",
84
84
  "@microsoft/fast-colors": "^5.3.1",
85
85
  "@microsoft/fast-components": "^2.30.6",
86
86
  "@microsoft/fast-element": "^1.12.0",
87
- "@microsoft/fast-foundation": "^2.49.4",
88
87
  "@microsoft/fast-router": "^0.4.8",
89
88
  "tslib": "^2.3.1"
90
89
  },
@@ -97,5 +96,5 @@
97
96
  "access": "public"
98
97
  },
99
98
  "customElements": "dist/custom-elements.json",
100
- "gitHead": "b04aa3adb04068dd8e5de4cb903c0eeebf0737f5"
99
+ "gitHead": "126575303f48e0bcf0254498a0341d39fd1c8400"
101
100
  }
@@ -1,6 +0,0 @@
1
- /**
2
- * registerCommonZeroComponents.
3
- * @public
4
- */
5
- export declare const registerCommonZeroComponents: () => Promise<void>;
6
- //# sourceMappingURL=zero-components.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zero-components.d.ts","sourceRoot":"","sources":["../../../src/components/zero-components.ts"],"names":[],"mappings":"AAsCA;;;GAGG;AACH,eAAO,MAAM,4BAA4B,qBAyBxC,CAAC"}
@@ -1,33 +0,0 @@
1
- import { PartialFASTElementDefinition } from '@microsoft/fast-element';
2
- import { TemplateOptions } from './templates';
3
- /**
4
- * Do not reference any ../main files here. We must avoid ../tags being referenced and therefore setup pre-configuration.
5
- */
6
- /**
7
- * HeaderConfig DI interface.
8
- *
9
- * @public
10
- */
11
- export interface HeaderConfig extends PartialFASTElementDefinition {
12
- /**
13
- * Template options.
14
- *
15
- * @remarks
16
- * Used by host applications to assign MF template options and subcomponent tags to align with the host design system.
17
- */
18
- templateOptions: TemplateOptions;
19
- }
20
- /**
21
- * Default HeaderConfig DI implementation.
22
- * @public
23
- */
24
- export declare const defaultHeaderConfig: HeaderConfig;
25
- /**
26
- * HeaderConfig DI key.
27
- *
28
- * @internal
29
- * @privateRemarks
30
- * Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
31
- */
32
- export declare const HeaderConfig: import("@microsoft/fast-foundation").InterfaceSymbol<HeaderConfig>;
33
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEvE,OAAO,EAA0B,eAAe,EAAE,MAAM,aAAa,CAAC;AAEtE;;GAEG;AAEH;;;;GAIG;AACH,MAAM,WAAW,YAAa,SAAQ,4BAA4B;IAChE;;;;;OAKG;IACH,eAAe,EAAE,eAAe,CAAC;CAClC;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,YAGjC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,oEAExB,CAAC"}
@@ -1,27 +0,0 @@
1
- import { HeaderConfig } from './config';
2
- /**
3
- * A function that allows configuring the header micro-frontend with name and templateOptions.
4
- *
5
- * @remarks
6
- * Configure the Header micro frontend for host app integration.
7
- *
8
- * @example Providing template options to align to your host application.
9
- * ```ts
10
-
11
- * const { configure } = await import('@genesislcap/foundation-header/config'); // < import from the subpath
12
- * return configure({
13
- * name: `nexus-app-header`,
14
- * // These will be merged with the packages `defaultTemplateOptions`. You will need to have these components registered in your application.
15
- * templateOptions: {
16
- * button: 'nexus-button',
17
- * icon: 'nexus-icon-next',
18
- * },
19
- * });
20
- * },
21
- * ```
22
- *
23
- * @param config - A partial HeaderConfig.
24
- * @public
25
- */
26
- export declare function configure(config: Partial<HeaderConfig>): Promise<typeof import("../main").Navigation>;
27
- //# sourceMappingURL=configure.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../../../src/config/configure.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAuB,MAAM,UAAU,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,gDA+B5D"}
@@ -1,34 +0,0 @@
1
- import { TemplateElementDependency } from '@genesislcap/foundation-ui';
2
- import { SyntheticViewTemplate } from '@microsoft/fast-element';
3
- /**
4
- * TemplateComponents.
5
- * @public
6
- */
7
- export type TemplateComponents = {
8
- icon: TemplateElementDependency;
9
- button: TemplateElementDependency;
10
- connectionIndicator: TemplateElementDependency;
11
- select: TemplateElementDependency;
12
- option: TemplateElementDependency;
13
- flyout: TemplateElementDependency;
14
- };
15
- /**
16
- * TemplateOptions.
17
- * @public
18
- */
19
- export type TemplateOptions = Partial<TemplateComponents> & {
20
- /**
21
- * @remarks
22
- * Just for reference that template options may be more than tags.
23
- * @internal
24
- */
25
- somePartial?: string | SyntheticViewTemplate;
26
- };
27
- /**
28
- * defaultTemplateOptions.
29
- * @remarks
30
- * The default template options this MF has been created with.
31
- * @public
32
- */
33
- export declare const defaultTemplateOptions: TemplateOptions;
34
- //# sourceMappingURL=templates.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/config/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,yBAAyB,CAAC;IAChC,MAAM,EAAE,yBAAyB,CAAC;IAClC,mBAAmB,EAAE,yBAAyB,CAAC;IAC/C,MAAM,EAAE,yBAAyB,CAAC;IAClC,MAAM,EAAE,yBAAyB,CAAC;IAClC,MAAM,EAAE,yBAAyB,CAAC;CACnC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC,GAAG;IAC1D;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,qBAAqB,CAAC;CAC9C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAAE,eAOpC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './tags';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tags/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -1,36 +0,0 @@
1
- /**
2
- * It's important this file isn't referenced ahead of a `configure` call, otherwise these values may remain fixed at
3
- * their defaults. Consumers must use the `/config` subpath to help avoid this. Files with references to tags should be
4
- * lazily loaded. There is an alternative `getTags` utility at the end which could offer another approach, but direct
5
- * tag exports and inline template references feel cleaner than having to convert all component `template` and `styles`
6
- * exports to functions to call `getTags` on execution.
7
- */
8
- /**
9
- * @internal
10
- */
11
- export declare const templateOptions: import("../config/templates").TemplateOptions;
12
- /**
13
- * @internal
14
- */
15
- export declare const iconTag: string;
16
- /**
17
- * @internal
18
- */
19
- export declare const buttonTag: string;
20
- /**
21
- * @internal
22
- */
23
- export declare const connectionIndicatorTag: string;
24
- /**
25
- * @internal
26
- */
27
- export declare const selectTag: string;
28
- /**
29
- * @internal
30
- */
31
- export declare const optionTag: string;
32
- /**
33
- * @internal
34
- */
35
- export declare const flyoutTag: string;
36
- //# sourceMappingURL=tags.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../src/tags/tags.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AAEH;;GAEG;AACH,eAAO,MAAQ,eAAe,+CACkB,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,OAAO,QAA+B,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,SAAS,QAAiC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAA8C,CAAC;AAElF;;GAEG;AACH,eAAO,MAAM,SAAS,QAAiC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,SAAS,QAAiC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,SAAS,QAAiC,CAAC"}