@eui/ecl 22.0.0-alpha.2 → 22.0.0-alpha.21
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/docs/changelog.html +618 -0
- package/docs/components/EclDateBlockComponent.html +0 -9
- package/docs/components/EclDescriptionListDefinitionComponent.html +6 -44
- package/docs/components/EclIconComponent.html +1 -1
- package/docs/components/EclListIllustrationComponent.html +0 -171
- package/docs/components/EclListIllustrationItemComponent.html +77 -83
- package/docs/components/EclLoadingIndicatorComponent.html +4 -91
- package/docs/components/EclMegaMenuComponent.html +5 -203
- package/docs/components/EclMegaMenuFeaturedComponent.html +10 -126
- package/docs/components/EclMegaMenuInfoComponent.html +0 -91
- package/docs/components/EclMegaMenuItemComponent.html +38 -115
- package/docs/components/EclMegaMenuSubitemComponent.html +4 -68
- package/docs/components/EclMenuItemComponent.html +46 -0
- package/docs/components/EclModalBodyComponent.html +4 -45
- package/docs/components/EclModalComponent.html +5 -178
- package/docs/components/EclModalFooterComponent.html +4 -45
- package/docs/components/EclModalHeaderComponent.html +9 -76
- package/docs/components/EclSiteFooterRowCommonComponent.html +1 -1
- package/docs/components/EclSiteHeaderLanguageComponent.html +5 -627
- package/docs/components/EclSiteHeaderLanguagePopoverComponent.html +99 -440
- package/docs/components/EclSiteHeaderLoginComponent.html +9 -453
- package/docs/components/EclSiteHeaderSearchComponent.html +18 -470
- package/docs/components/EclSocialMediaFollowComponent.html +28 -39
- package/docs/components/EclSocialMediaFollowItemComponent.html +26 -129
- package/docs/components/EclStoryCardComponent.html +1 -1
- package/docs/directives/ECLClickOutsideDirective.html +3 -0
- package/docs/directives/EclDescriptionListDefinitionItemDirective.html +6 -47
- package/docs/directives/EclDescriptionListDefinitionListDirective.html +0 -116
- package/docs/directives/EclDividerDirective.html +0 -116
- package/docs/directives/EclFileUploadDirective.html +2 -390
- package/docs/directives/EclLabelDirective.html +0 -46
- package/docs/directives/EclLinkDirective.html +0 -39
- package/docs/directives/EclLoadingIndicatorLabelDirective.html +0 -61
- package/docs/directives/EclLoadingIndicatorOverlayDirective.html +0 -45
- package/docs/directives/EclMediaContainerCaptionDirective.html +0 -39
- package/docs/directives/EclMediaContainerCreditDirective.html +0 -39
- package/docs/directives/EclMediaContainerIframeDirective.html +13 -19
- package/docs/directives/EclMediaContainerItemAudioDescriptionDirective.html +0 -39
- package/docs/directives/EclMediaContainerItemDirective.html +0 -39
- package/docs/directives/EclMediaContainerPictureDirective.html +0 -39
- package/docs/directives/EclMegaMenuContainerDirective.html +0 -104
- package/docs/directives/EclMegaMenuFeaturedImageDirective.html +0 -104
- package/docs/directives/EclMegaMenuFeaturedListDirective.html +0 -104
- package/docs/directives/EclMegaMenuFeaturedListItemDescriptionDirective.html +0 -104
- package/docs/directives/EclMegaMenuFeaturedListItemDirective.html +0 -104
- package/docs/directives/EclMegaMenuFeaturedPictureDirective.html +0 -39
- package/docs/directives/EclMegaMenuListDirective.html +0 -104
- package/docs/directives/EclMegaMenuSpacerDirective.html +0 -104
- package/docs/directives/EclMegaMenuSublistDirective.html +0 -165
- package/docs/directives/EclModalBodyFixedContentDirective.html +0 -61
- package/docs/directives/EclModalCloseDirective.html +1 -90
- package/docs/directives/EclModalTriggerDirective.html +1 -90
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/EclIconComponent.md +1 -1
- package/docs/json/EclMediaContainerIframeDirective.md +0 -1
- package/docs/json/EclSiteHeaderLanguagePopoverComponent.md +6 -6
- package/docs/json/EclSiteHeaderSearchComponent.md +1 -0
- package/docs/json/EclSocialMediaFollowComponent.md +1 -0
- package/docs/json/documentation.json +1261 -2880
- package/docs/llms.txt +31 -84
- package/docs/miscellaneous/variables.html +222 -41
- package/docs/properties.html +1 -1
- package/fesm2022/eui-ecl-components-ecl-date-block.mjs +2 -2
- package/fesm2022/eui-ecl-components-ecl-date-block.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-divider.mjs +6 -13
- package/fesm2022/eui-ecl-components-ecl-divider.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-file-upload.mjs +13 -27
- package/fesm2022/eui-ecl-components-ecl-file-upload.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-icon.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-inpage-navigation.mjs +55 -9
- package/fesm2022/eui-ecl-components-ecl-inpage-navigation.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-label.mjs +6 -6
- package/fesm2022/eui-ecl-components-ecl-label.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-link.mjs +10 -13
- package/fesm2022/eui-ecl-components-ecl-link.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-list-illustration.mjs +19 -30
- package/fesm2022/eui-ecl-components-ecl-list-illustration.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-list.mjs +44 -41
- package/fesm2022/eui-ecl-components-ecl-list.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-loading-indicator.mjs +17 -20
- package/fesm2022/eui-ecl-components-ecl-loading-indicator.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-media-container.mjs +36 -33
- package/fesm2022/eui-ecl-components-ecl-media-container.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-mega-menu.mjs +100 -159
- package/fesm2022/eui-ecl-components-ecl-mega-menu.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-menu.mjs +16 -3
- package/fesm2022/eui-ecl-components-ecl-menu.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-modal.mjs +94 -88
- package/fesm2022/eui-ecl-components-ecl-modal.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-site-footer.mjs +2 -2
- package/fesm2022/eui-ecl-components-ecl-site-footer.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-site-header.mjs +326 -261
- package/fesm2022/eui-ecl-components-ecl-site-header.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-social-media-follow.mjs +17 -17
- package/fesm2022/eui-ecl-components-ecl-social-media-follow.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-story-card.mjs +2 -2
- package/fesm2022/eui-ecl-components-ecl-story-card.mjs.map +1 -1
- package/package.json +1 -1
- package/types/eui-ecl-components-ecl-date-block.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-divider.d.ts +0 -4
- package/types/eui-ecl-components-ecl-divider.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-file-upload.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-inpage-navigation.d.ts +25 -0
- package/types/eui-ecl-components-ecl-inpage-navigation.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-label.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-link.d.ts +2 -4
- package/types/eui-ecl-components-ecl-link.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-list-illustration.d.ts +3 -3
- package/types/eui-ecl-components-ecl-list-illustration.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-list.d.ts +9 -12
- package/types/eui-ecl-components-ecl-list.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-loading-indicator.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-media-container.d.ts +7 -2
- package/types/eui-ecl-components-ecl-media-container.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-mega-menu.d.ts +12 -22
- package/types/eui-ecl-components-ecl-mega-menu.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-menu.d.ts +12 -1
- package/types/eui-ecl-components-ecl-menu.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-modal.d.ts +20 -10
- package/types/eui-ecl-components-ecl-modal.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-site-header.d.ts +240 -216
- package/types/eui-ecl-components-ecl-site-header.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-social-media-follow.d.ts +5 -3
- package/types/eui-ecl-components-ecl-social-media-follow.d.ts.map +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i1 from '@eui/ecl/core';
|
|
2
2
|
import { ECLBaseDirective, EclBaseEvent, EclThemeService } from '@eui/ecl/core';
|
|
3
|
-
import * as
|
|
4
|
-
import { OnInit, AfterContentInit, EventEmitter, OnDestroy,
|
|
3
|
+
import * as _angular_core from '@angular/core';
|
|
4
|
+
import { OnInit, AfterContentInit, EventEmitter, OnDestroy, AfterViewInit, ElementRef, OnChanges, SimpleChanges, Provider } from '@angular/core';
|
|
5
5
|
import { EclIconComponent } from '@eui/ecl/components/ecl-icon';
|
|
6
6
|
import * as _eui_base from '@eui/base';
|
|
7
7
|
import { EuiLanguage as EuiLanguage$1 } from '@eui/base';
|
|
@@ -17,8 +17,8 @@ import { EclSearchFormEvent } from '@eui/ecl/components/ecl-search-form';
|
|
|
17
17
|
*/
|
|
18
18
|
declare class EclSiteHeaderActionComponent extends ECLBaseDirective {
|
|
19
19
|
class: string;
|
|
20
|
-
static ɵfac:
|
|
21
|
-
static ɵcmp:
|
|
20
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderActionComponent, never>;
|
|
21
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclSiteHeaderActionComponent, "ecl-site-header-action", never, {}, {}, never, ["[eclSiteHeaderCustomAction]", "ecl-site-header-login", "ecl-site-header-language", "ecl-site-header-search"], true, never>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -30,8 +30,8 @@ declare class EclSiteHeaderBannerTopComponent extends ECLBaseDirective implement
|
|
|
30
30
|
className: boolean;
|
|
31
31
|
private platformId;
|
|
32
32
|
ngOnInit(): void;
|
|
33
|
-
static ɵfac:
|
|
34
|
-
static ɵcmp:
|
|
33
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderBannerTopComponent, never>;
|
|
34
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclSiteHeaderBannerTopComponent, "ecl-site-header-banner-top", never, {}, {}, never, ["*"], true, never>;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -40,8 +40,8 @@ declare class EclSiteHeaderBannerTopComponent extends ECLBaseDirective implement
|
|
|
40
40
|
*/
|
|
41
41
|
declare class EclSiteHeaderCtaDirective extends ECLBaseDirective {
|
|
42
42
|
className: boolean;
|
|
43
|
-
static ɵfac:
|
|
44
|
-
static ɵdir:
|
|
43
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderCtaDirective, never>;
|
|
44
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EclSiteHeaderCtaDirective, "[eclSiteHeaderCta]", never, {}, {}, never, never, true, never>;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
declare class EclSiteHeaderCustomActionLinkDirective extends ECLBaseDirective implements AfterContentInit {
|
|
@@ -51,25 +51,25 @@ declare class EclSiteHeaderCustomActionLinkDirective extends ECLBaseDirective im
|
|
|
51
51
|
href: string;
|
|
52
52
|
routerLink: string;
|
|
53
53
|
customActionOverlayToggle: EventEmitter<boolean>;
|
|
54
|
-
eclIconComponent:
|
|
54
|
+
eclIconComponent: _angular_core.Signal<EclIconComponent>;
|
|
55
55
|
private readonly ARIA_CONTROLS;
|
|
56
56
|
private platformId;
|
|
57
57
|
ngAfterContentInit(): void;
|
|
58
58
|
onClick(evt: Event): void;
|
|
59
59
|
hasLink(): boolean;
|
|
60
|
-
static ɵfac:
|
|
61
|
-
static ɵdir:
|
|
60
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderCustomActionLinkDirective, never>;
|
|
61
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EclSiteHeaderCustomActionLinkDirective, "a[eclSiteHeaderCustomActionLink]", never, { "href": { "alias": "href"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; }, { "customActionOverlayToggle": "customActionOverlayToggle"; }, ["eclIconComponent"], never, true, never>;
|
|
62
62
|
}
|
|
63
63
|
declare class EclSiteHeaderCustomActionContentDirective extends ECLBaseDirective {
|
|
64
64
|
className: boolean;
|
|
65
|
-
static ɵfac:
|
|
66
|
-
static ɵdir:
|
|
65
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderCustomActionContentDirective, never>;
|
|
66
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EclSiteHeaderCustomActionContentDirective, "div[eclSiteHeaderCustomActionContent]", never, {}, {}, never, never, true, never>;
|
|
67
67
|
}
|
|
68
68
|
declare class EclSiteHeaderCustomActionTitleDirective extends ECLBaseDirective {
|
|
69
69
|
className: boolean;
|
|
70
70
|
id: string;
|
|
71
|
-
static ɵfac:
|
|
72
|
-
static ɵdir:
|
|
71
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderCustomActionTitleDirective, never>;
|
|
72
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EclSiteHeaderCustomActionTitleDirective, "div[eclSiteHeaderCustomActionTitle]", never, { "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/**
|
|
@@ -78,8 +78,8 @@ declare class EclSiteHeaderCustomActionTitleDirective extends ECLBaseDirective {
|
|
|
78
78
|
*/
|
|
79
79
|
declare class EclSiteHeaderCustomActionComponent extends ECLBaseDirective implements AfterContentInit, OnDestroy {
|
|
80
80
|
class: string;
|
|
81
|
-
readonly title:
|
|
82
|
-
readonly eclSiteHeaderCustomActionLink:
|
|
81
|
+
readonly title: _angular_core.Signal<EclSiteHeaderCustomActionTitleDirective>;
|
|
82
|
+
readonly eclSiteHeaderCustomActionLink: _angular_core.Signal<EclSiteHeaderCustomActionLinkDirective>;
|
|
83
83
|
/**
|
|
84
84
|
* Used to expand/collapse the dropdown, if any.
|
|
85
85
|
*/
|
|
@@ -100,8 +100,8 @@ declare class EclSiteHeaderCustomActionComponent extends ECLBaseDirective implem
|
|
|
100
100
|
* Close the overlay with ESC key.
|
|
101
101
|
*/
|
|
102
102
|
onEscapeKeydownHandler(): void;
|
|
103
|
-
static ɵfac:
|
|
104
|
-
static ɵcmp:
|
|
103
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderCustomActionComponent, never>;
|
|
104
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclSiteHeaderCustomActionComponent, "div[eclSiteHeaderCustomAction]", never, {}, {}, ["title", "eclSiteHeaderCustomActionLink"], ["[eclSiteHeaderCustomActionLink]", "[eclSiteHeaderCustomActionTitle]", "[eclSiteHeaderCustomActionContent]"], true, [{ directive: typeof i1.ECLClickOutsideDirective; inputs: {}; outputs: { "eclClickOutside": "eclClickOutside"; }; }]>;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
/**
|
|
@@ -121,8 +121,8 @@ declare class EclSiteHeaderEnvironmentComponent extends ECLBaseDirective impleme
|
|
|
121
121
|
private observeBreakpointChanges;
|
|
122
122
|
private manageMobile;
|
|
123
123
|
private manageDesktop;
|
|
124
|
-
static ɵfac:
|
|
125
|
-
static ɵcmp:
|
|
124
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderEnvironmentComponent, never>;
|
|
125
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclSiteHeaderEnvironmentComponent, "[eclSiteHeaderEnvironment]", never, {}, {}, never, ["*"], true, never>;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
declare class EclSiteHeaderLoginEvent extends EclBaseEvent {
|
|
@@ -153,94 +153,6 @@ declare class EclSiteHeaderSearchToggleEvent extends EclBaseEvent {
|
|
|
153
153
|
constructor(isOpen: boolean);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
/**
|
|
157
|
-
* This component is a popover, that appears after the user clicks on language link. It contains all the available languages,
|
|
158
|
-
* configured for the current site. Adds styling and functionality for the dialog.
|
|
159
|
-
* Emits events when language is selected and when dialog is closed.
|
|
160
|
-
*/
|
|
161
|
-
declare class EclSiteHeaderLanguagePopoverComponent extends ECLBaseDirective implements OnDestroy {
|
|
162
|
-
el: ElementRef<any>;
|
|
163
|
-
protected eclThemeService: EclThemeService;
|
|
164
|
-
/**
|
|
165
|
-
* The div, that wraps all the languages.
|
|
166
|
-
*/
|
|
167
|
-
readonly languageContent: i0.Signal<ElementRef<any>>;
|
|
168
|
-
/**
|
|
169
|
-
* Current language
|
|
170
|
-
*/
|
|
171
|
-
languageCode: string;
|
|
172
|
-
euLanguages: EuiLanguage$1[];
|
|
173
|
-
nonEuLanguages: EuiLanguage$1[];
|
|
174
|
-
/**
|
|
175
|
-
* Number of columns for eu languages. Calculated by the parent component 'ecl-site-header-language'.
|
|
176
|
-
*/
|
|
177
|
-
readonly euColumnsCount: i0.InputSignal<number>;
|
|
178
|
-
/**
|
|
179
|
-
* Number of columns for non-eu languages. Calculated by the parent component 'ecl-site-header-language'.
|
|
180
|
-
*/
|
|
181
|
-
readonly nonEuColumnsCount: i0.InputSignal<number>;
|
|
182
|
-
/**
|
|
183
|
-
* Property to show/hide the dialog.
|
|
184
|
-
*/
|
|
185
|
-
readonly isHidden: i0.InputSignalWithTransform<boolean, unknown>;
|
|
186
|
-
/**
|
|
187
|
-
* Property to position the dialog correctly. Calculated by the parent component 'ecl-site-header-language'.
|
|
188
|
-
*/
|
|
189
|
-
readonly isPushRight: i0.InputSignalWithTransform<boolean, unknown>;
|
|
190
|
-
/**
|
|
191
|
-
* Property to position the dialog correctly. Calculated by the parent component 'ecl-site-header-language'.
|
|
192
|
-
*/
|
|
193
|
-
readonly isPushLeft: i0.InputSignalWithTransform<boolean, unknown>;
|
|
194
|
-
/**
|
|
195
|
-
* Property to position the dialog correctly. Calculated by the parent component 'ecl-site-header-language'.
|
|
196
|
-
*/
|
|
197
|
-
readonly isStack: i0.InputSignalWithTransform<boolean, unknown>;
|
|
198
|
-
/**
|
|
199
|
-
* Property to position the dialog correctly. Calculated by the parent component 'ecl-site-header-language'.
|
|
200
|
-
*/
|
|
201
|
-
readonly isFull: i0.InputSignalWithTransform<boolean, unknown>;
|
|
202
|
-
/**
|
|
203
|
-
* Property to position the dialog correctly. Calculated by the parent component 'ecl-site-header-language'.
|
|
204
|
-
*/
|
|
205
|
-
rightPosition: number;
|
|
206
|
-
/**
|
|
207
|
-
* Property to position the dialog correctly. Calculated by the parent component 'ecl-site-header-language'.
|
|
208
|
-
*/
|
|
209
|
-
leftPosition: number;
|
|
210
|
-
/**
|
|
211
|
-
* Property to position the arrow of the dialog correctly. Calculated by the parent component 'ecl-site-header-language'.
|
|
212
|
-
*/
|
|
213
|
-
languageArrowPosition: string;
|
|
214
|
-
readonly languageClosed: i0.OutputEmitterRef<EclSiteHeaderLanguageCloseEvent>;
|
|
215
|
-
readonly languageSelected: i0.OutputEmitterRef<EclSiteHeaderLanguageSelectedEvent>;
|
|
216
|
-
/**
|
|
217
|
-
* The role of the dialog is 'dialog'. Should not be changed.
|
|
218
|
-
*/
|
|
219
|
-
role: string;
|
|
220
|
-
labelledBy: string;
|
|
221
|
-
get display(): string;
|
|
222
|
-
languageContentMaxHeight: number;
|
|
223
|
-
private destroy$;
|
|
224
|
-
private scrollDispatcher;
|
|
225
|
-
private zone;
|
|
226
|
-
private readonly document;
|
|
227
|
-
private readonly window;
|
|
228
|
-
constructor();
|
|
229
|
-
get cssClasses(): string;
|
|
230
|
-
get isModal(): boolean | undefined;
|
|
231
|
-
get isDropdownHidden(): boolean | undefined;
|
|
232
|
-
ngOnDestroy(): void;
|
|
233
|
-
onCloseClick(): void;
|
|
234
|
-
onLanguageClick(language: EuiLanguage$1, evt: MouseEvent): void;
|
|
235
|
-
/**
|
|
236
|
-
* Set the max-height property of the component. It is calculated depending on the viewport.
|
|
237
|
-
*/
|
|
238
|
-
setLanguageContentMaxHeight(): void;
|
|
239
|
-
private subscribeToCDKScrollEvent;
|
|
240
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EclSiteHeaderLanguagePopoverComponent, never>;
|
|
241
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EclSiteHeaderLanguagePopoverComponent, "ecl-site-header-language-popover", never, { "languageCode": { "alias": "languageCode"; "required": false; }; "euLanguages": { "alias": "euLanguages"; "required": false; }; "nonEuLanguages": { "alias": "nonEuLanguages"; "required": false; }; "euColumnsCount": { "alias": "euColumnsCount"; "required": false; "isSignal": true; }; "nonEuColumnsCount": { "alias": "nonEuColumnsCount"; "required": false; "isSignal": true; }; "isHidden": { "alias": "isHidden"; "required": false; "isSignal": true; }; "isPushRight": { "alias": "isPushRight"; "required": false; "isSignal": true; }; "isPushLeft": { "alias": "isPushLeft"; "required": false; "isSignal": true; }; "isStack": { "alias": "isStack"; "required": false; "isSignal": true; }; "isFull": { "alias": "isFull"; "required": false; "isSignal": true; }; "rightPosition": { "alias": "rightPosition"; "required": false; }; "leftPosition": { "alias": "leftPosition"; "required": false; }; "languageArrowPosition": { "alias": "languageArrowPosition"; "required": false; }; }, { "languageClosed": "languageClosed"; "languageSelected": "languageSelected"; }, never, never, true, never>;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
156
|
/**
|
|
245
157
|
* This component is used to switch between the languages of the application. Shows the current language, when clicked,
|
|
246
158
|
* opens a language selector.
|
|
@@ -249,14 +161,6 @@ declare class EclSiteHeaderLanguageComponent extends ECLBaseDirective implements
|
|
|
249
161
|
protected eclThemeService: EclThemeService;
|
|
250
162
|
protected config: GlobalConfig<any>;
|
|
251
163
|
protected i18nService: I18nService<_eui_base.I18nState>;
|
|
252
|
-
/**
|
|
253
|
-
* The language popover, that shows all available languages (configured in the config file of the current site).
|
|
254
|
-
*/
|
|
255
|
-
readonly languagePopover: i0.Signal<EclSiteHeaderLanguagePopoverComponent>;
|
|
256
|
-
/**
|
|
257
|
-
* The link to open the popover dialog.
|
|
258
|
-
*/
|
|
259
|
-
readonly languageLinkElement: i0.Signal<ElementRef<any>>;
|
|
260
164
|
/**
|
|
261
165
|
* Thie event is emited, when language link, showing the current language is clicked.
|
|
262
166
|
*/
|
|
@@ -265,8 +169,6 @@ declare class EclSiteHeaderLanguageComponent extends ECLBaseDirective implements
|
|
|
265
169
|
* Thie event is emited, when user selects a new language from the dropdown.
|
|
266
170
|
*/
|
|
267
171
|
languageSelected: EventEmitter<EclSiteHeaderLanguageSelectedEvent>;
|
|
268
|
-
readonly MOBILE_BREAKPOINT = 768;
|
|
269
|
-
readonly LANGUAGE_MAX_COLUMNS = 8;
|
|
270
172
|
isLanguagesDropdownVisible: boolean;
|
|
271
173
|
/**
|
|
272
174
|
* This property is used for dropdown positioning on the screen.
|
|
@@ -301,50 +203,157 @@ declare class EclSiteHeaderLanguageComponent extends ECLBaseDirective implements
|
|
|
301
203
|
nonEuLanguages: EuiLanguage$1[];
|
|
302
204
|
euColumnsCount: number;
|
|
303
205
|
nonEuColumnsCount: number;
|
|
206
|
+
/**
|
|
207
|
+
* The language popover, that shows all available languages (configured in the config file of the current site).
|
|
208
|
+
*/
|
|
209
|
+
private readonly languagePopover;
|
|
210
|
+
/**
|
|
211
|
+
* The link to open the popover dialog.
|
|
212
|
+
*/
|
|
213
|
+
private readonly languageLinkElement;
|
|
214
|
+
private readonly MOBILE_BREAKPOINT;
|
|
215
|
+
private readonly LANGUAGE_MAX_COLUMNS;
|
|
216
|
+
private readonly RESIZE_DEBOUNCE;
|
|
304
217
|
private destroy$;
|
|
305
218
|
private _languages;
|
|
306
|
-
private parentHeaderWidth;
|
|
307
219
|
private isRtl;
|
|
308
|
-
private
|
|
309
|
-
private
|
|
220
|
+
private readonly eclRtlService;
|
|
221
|
+
private readonly el;
|
|
310
222
|
private readonly document;
|
|
311
223
|
private readonly window;
|
|
312
|
-
get cssClasses(): string;
|
|
224
|
+
protected get cssClasses(): string;
|
|
313
225
|
ngOnInit(): void;
|
|
314
226
|
/**
|
|
315
|
-
* After view is initialized ->
|
|
227
|
+
* After view is initialized -> set up resize repositioning and initialize languages, that are configured in the config file
|
|
316
228
|
* of the current site.
|
|
317
229
|
*/
|
|
318
230
|
ngAfterViewInit(): void;
|
|
319
231
|
ngOnDestroy(): void;
|
|
320
|
-
getLanguageLabel(): string;
|
|
232
|
+
protected getLanguageLabel(): string;
|
|
321
233
|
/**
|
|
322
234
|
* Toggle the language dropdown when clicking the link, showing the current language.
|
|
323
235
|
* @param evt
|
|
324
236
|
*/
|
|
325
|
-
onLanguageClick(evt: Event): void;
|
|
326
|
-
onLanguageClosed(evt: EclSiteHeaderLanguageCloseEvent): void;
|
|
327
|
-
onLanguageSelected(evt: EclSiteHeaderLanguageSelectedEvent): void;
|
|
237
|
+
protected onLanguageClick(evt: Event): void;
|
|
238
|
+
protected onLanguageClosed(evt: EclSiteHeaderLanguageCloseEvent): void;
|
|
239
|
+
protected onLanguageSelected(evt: EclSiteHeaderLanguageSelectedEvent): void;
|
|
328
240
|
/**
|
|
329
241
|
* Close the dropdown, when clicking outside of the component.
|
|
330
242
|
*/
|
|
331
|
-
onClickOutside(): void;
|
|
243
|
+
protected onClickOutside(): void;
|
|
332
244
|
/**
|
|
333
245
|
* Close the dropdown, when pressing ESC key.
|
|
334
246
|
*/
|
|
335
|
-
onEscapeKeydownHandler(): void;
|
|
247
|
+
protected onEscapeKeydownHandler(): void;
|
|
336
248
|
hasLanguageCodes(): boolean;
|
|
337
249
|
private handleRtlChangeState;
|
|
338
250
|
/**
|
|
339
251
|
* Calculate the number of columns for EU and non-EU languages, depending on languages' count.
|
|
340
252
|
*/
|
|
341
253
|
private updateLanguages;
|
|
254
|
+
/**
|
|
255
|
+
* Clears every positioning flag/offset so a fresh calculation (or a close) starts from a known state.
|
|
256
|
+
*/
|
|
257
|
+
private resetPositioning;
|
|
258
|
+
/**
|
|
259
|
+
* Positions the language popover and its arrow, matching ECL's updateOverlayPosition.
|
|
260
|
+
* The container is the site-header top area (ECL's '[data-ecl-site-header-top]'), resolved from
|
|
261
|
+
* the DOM rather than a shared service so the measurement is taken at the right time (on open/resize).
|
|
262
|
+
*/
|
|
342
263
|
private calculatePopoverPosition;
|
|
264
|
+
/**
|
|
265
|
+
* On window resize -> reposition the popover, but only while it is open.
|
|
266
|
+
* Debounced for performance, matching ECL's handleResize.
|
|
267
|
+
*/
|
|
268
|
+
private handleResize;
|
|
343
269
|
private getConfiguredLanguages;
|
|
344
270
|
private updateCurrentLanguage;
|
|
345
271
|
private handleInitialConfiguredLanguages;
|
|
346
|
-
static ɵfac:
|
|
347
|
-
static ɵcmp:
|
|
272
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderLanguageComponent, never>;
|
|
273
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclSiteHeaderLanguageComponent, "ecl-site-header-language", never, {}, { "languageClick": "languageClick"; "languageSelected": "languageSelected"; }, never, never, true, [{ directive: typeof i1.ECLClickOutsideDirective; inputs: {}; outputs: { "eclClickOutside": "eclClickOutside"; }; }]>;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* This component is a popover, that appears after the user clicks on language link. It contains all the available languages,
|
|
278
|
+
* configured for the current site. Adds styling and functionality for the dialog.
|
|
279
|
+
* Emits events when language is selected and when dialog is closed.
|
|
280
|
+
*/
|
|
281
|
+
declare class EclSiteHeaderLanguagePopoverComponent extends ECLBaseDirective implements OnDestroy {
|
|
282
|
+
el: ElementRef<any>;
|
|
283
|
+
protected eclThemeService: EclThemeService;
|
|
284
|
+
/**
|
|
285
|
+
* The div, that wraps all the languages.
|
|
286
|
+
*/
|
|
287
|
+
readonly languageContent: _angular_core.Signal<ElementRef<any>>;
|
|
288
|
+
/**
|
|
289
|
+
* Current language
|
|
290
|
+
*/
|
|
291
|
+
readonly languageCode: _angular_core.InputSignal<string>;
|
|
292
|
+
readonly euLanguages: _angular_core.InputSignal<EuiLanguage$1[]>;
|
|
293
|
+
readonly nonEuLanguages: _angular_core.InputSignal<EuiLanguage$1[]>;
|
|
294
|
+
/**
|
|
295
|
+
* Number of columns for eu languages. Calculated by the parent component 'ecl-site-header-language'.
|
|
296
|
+
*/
|
|
297
|
+
readonly euColumnsCount: _angular_core.InputSignal<number>;
|
|
298
|
+
/**
|
|
299
|
+
* Number of columns for non-eu languages. Calculated by the parent component 'ecl-site-header-language'.
|
|
300
|
+
*/
|
|
301
|
+
readonly nonEuColumnsCount: _angular_core.InputSignal<number>;
|
|
302
|
+
/**
|
|
303
|
+
* Property to show/hide the dialog.
|
|
304
|
+
*/
|
|
305
|
+
readonly isHidden: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
306
|
+
/**
|
|
307
|
+
* Property to position the dialog correctly. Calculated by the parent component 'ecl-site-header-language'.
|
|
308
|
+
*/
|
|
309
|
+
readonly isPushRight: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
310
|
+
/**
|
|
311
|
+
* Property to position the dialog correctly. Calculated by the parent component 'ecl-site-header-language'.
|
|
312
|
+
*/
|
|
313
|
+
readonly isPushLeft: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
314
|
+
/**
|
|
315
|
+
* Property to position the dialog correctly. Calculated by the parent component 'ecl-site-header-language'.
|
|
316
|
+
*/
|
|
317
|
+
readonly isStack: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
318
|
+
/**
|
|
319
|
+
* Property to position the dialog correctly. Calculated by the parent component 'ecl-site-header-language'.
|
|
320
|
+
*/
|
|
321
|
+
readonly isFull: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
322
|
+
/**
|
|
323
|
+
* Property to position the dialog correctly. Calculated by the parent component 'ecl-site-header-language'.
|
|
324
|
+
*/
|
|
325
|
+
readonly rightPosition: _angular_core.InputSignal<number>;
|
|
326
|
+
/**
|
|
327
|
+
* Property to position the dialog correctly. Calculated by the parent component 'ecl-site-header-language'.
|
|
328
|
+
*/
|
|
329
|
+
readonly leftPosition: _angular_core.InputSignal<number>;
|
|
330
|
+
/**
|
|
331
|
+
* Property to position the arrow of the dialog correctly. Calculated by the parent component 'ecl-site-header-language'.
|
|
332
|
+
*/
|
|
333
|
+
readonly languageArrowPosition: _angular_core.InputSignal<string>;
|
|
334
|
+
readonly languageClosed: _angular_core.OutputEmitterRef<EclSiteHeaderLanguageCloseEvent>;
|
|
335
|
+
readonly languageSelected: _angular_core.OutputEmitterRef<EclSiteHeaderLanguageSelectedEvent>;
|
|
336
|
+
languageContentMaxHeight: number;
|
|
337
|
+
private destroy$;
|
|
338
|
+
private scrollDispatcher;
|
|
339
|
+
private zone;
|
|
340
|
+
private readonly document;
|
|
341
|
+
private readonly window;
|
|
342
|
+
constructor();
|
|
343
|
+
protected get cssClasses(): string;
|
|
344
|
+
protected get display(): string;
|
|
345
|
+
protected get isModal(): boolean | undefined;
|
|
346
|
+
protected get isDropdownHidden(): boolean | undefined;
|
|
347
|
+
ngOnDestroy(): void;
|
|
348
|
+
onCloseClick(): void;
|
|
349
|
+
onLanguageClick(language: EuiLanguage$1, evt: MouseEvent): void;
|
|
350
|
+
/**
|
|
351
|
+
* Set the max-height property of the component. It is calculated depending on the viewport.
|
|
352
|
+
*/
|
|
353
|
+
setLanguageContentMaxHeight(): void;
|
|
354
|
+
private subscribeToCDKScrollEvent;
|
|
355
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderLanguagePopoverComponent, never>;
|
|
356
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclSiteHeaderLanguagePopoverComponent, "ecl-site-header-language-popover", never, { "languageCode": { "alias": "languageCode"; "required": false; "isSignal": true; }; "euLanguages": { "alias": "euLanguages"; "required": false; "isSignal": true; }; "nonEuLanguages": { "alias": "nonEuLanguages"; "required": false; "isSignal": true; }; "euColumnsCount": { "alias": "euColumnsCount"; "required": false; "isSignal": true; }; "nonEuColumnsCount": { "alias": "nonEuColumnsCount"; "required": false; "isSignal": true; }; "isHidden": { "alias": "isHidden"; "required": false; "isSignal": true; }; "isPushRight": { "alias": "isPushRight"; "required": false; "isSignal": true; }; "isPushLeft": { "alias": "isPushLeft"; "required": false; "isSignal": true; }; "isStack": { "alias": "isStack"; "required": false; "isSignal": true; }; "isFull": { "alias": "isFull"; "required": false; "isSignal": true; }; "rightPosition": { "alias": "rightPosition"; "required": false; "isSignal": true; }; "leftPosition": { "alias": "leftPosition"; "required": false; "isSignal": true; }; "languageArrowPosition": { "alias": "languageArrowPosition"; "required": false; "isSignal": true; }; }, { "languageClosed": "languageClosed"; "languageSelected": "languageSelected"; }, never, never, true, never>;
|
|
348
357
|
}
|
|
349
358
|
|
|
350
359
|
/**
|
|
@@ -352,47 +361,53 @@ declare class EclSiteHeaderLanguageComponent extends ECLBaseDirective implements
|
|
|
352
361
|
* login dropdown.
|
|
353
362
|
*/
|
|
354
363
|
declare class EclSiteHeaderLoginComponent extends ECLBaseDirective implements OnChanges, OnDestroy {
|
|
355
|
-
readonly isLoggedIn:
|
|
356
|
-
|
|
357
|
-
readonly loginLinkElement: i0.Signal<ElementRef<any>>;
|
|
358
|
-
readonly login: i0.OutputEmitterRef<EclSiteHeaderLoginEvent>;
|
|
364
|
+
readonly isLoggedIn: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
365
|
+
readonly login: _angular_core.OutputEmitterRef<EclSiteHeaderLoginEvent>;
|
|
359
366
|
loginBoxToggle: EventEmitter<EclSiteHeaderLoginBoxToggleEvent>;
|
|
360
367
|
/**
|
|
361
|
-
* If login popover is open (true) or closed (false).
|
|
368
|
+
* If login popover is open (true) or closed (false). Kept public because the parent
|
|
369
|
+
* `ecl-site-header` resets it directly when the search box opens.
|
|
362
370
|
*/
|
|
363
371
|
isLoginBoxActive: boolean;
|
|
364
372
|
/**
|
|
365
|
-
* The position of the arrow of the popover.
|
|
373
|
+
* The position of the arrow of the popover, when in mobile (full-width) mode.
|
|
366
374
|
*/
|
|
367
|
-
loginArrowPosition: string
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
private
|
|
372
|
-
|
|
373
|
-
|
|
375
|
+
protected readonly loginArrowPosition: _angular_core.WritableSignal<string>;
|
|
376
|
+
/**
|
|
377
|
+
* The login link element from the view, i.e. the login button (the toggle).
|
|
378
|
+
*/
|
|
379
|
+
private readonly loginLinkElement;
|
|
380
|
+
/**
|
|
381
|
+
* The login box element from the view, i.e. the dropdown the arrow points at.
|
|
382
|
+
*/
|
|
383
|
+
private readonly loginBoxElement;
|
|
384
|
+
private readonly destroy$;
|
|
385
|
+
private readonly eclRtlService;
|
|
386
|
+
private readonly document;
|
|
387
|
+
private readonly window;
|
|
374
388
|
constructor();
|
|
375
389
|
ngOnChanges(changes: SimpleChanges): void;
|
|
376
390
|
ngOnDestroy(): void;
|
|
377
391
|
/**
|
|
378
392
|
* Close the login popover on click outside.
|
|
379
393
|
*/
|
|
380
|
-
|
|
394
|
+
protected onClickOutside(): void;
|
|
381
395
|
/**
|
|
382
396
|
* @returns classes for the login popover.
|
|
383
397
|
*/
|
|
384
|
-
getLoginBoxCssClasses(): string;
|
|
385
|
-
onLoginClick(evt: MouseEvent): void;
|
|
386
|
-
onLoginBoxToggle(evt: MouseEvent): void;
|
|
398
|
+
protected getLoginBoxCssClasses(): string;
|
|
399
|
+
protected onLoginClick(evt: MouseEvent): void;
|
|
400
|
+
protected onLoginBoxToggle(evt: MouseEvent): void;
|
|
387
401
|
private onLoginBoxClose;
|
|
388
|
-
private handleRtlChangeState;
|
|
389
402
|
/**
|
|
390
|
-
*
|
|
403
|
+
* Position the dropdown arrow so it points at the toggle button.
|
|
404
|
+
* The arrow only exists on the mobile full-width dropdown, so the calculation is gated on the box
|
|
405
|
+
* spanning (almost) the full viewport width. The offset is relative to the box's own left edge.
|
|
406
|
+
* Mirrors ECL's 'setLoginArrow' in site-header.js.
|
|
391
407
|
*/
|
|
392
|
-
private
|
|
393
|
-
|
|
394
|
-
static
|
|
395
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EclSiteHeaderLoginComponent, "ecl-site-header-login", never, { "isLoggedIn": { "alias": "isLoggedIn"; "required": false; "isSignal": true; }; }, { "login": "login"; "loginBoxToggle": "loginBoxToggle"; }, never, ["*"], true, [{ directive: typeof i1.ECLBaseDirective; inputs: {}; outputs: {}; }, { directive: typeof i1.ECLClickOutsideDirective; inputs: {}; outputs: { "eclClickOutside": "eclClickOutside"; }; }]>;
|
|
408
|
+
private setLoginArrow;
|
|
409
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderLoginComponent, never>;
|
|
410
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclSiteHeaderLoginComponent, "ecl-site-header-login", never, { "isLoggedIn": { "alias": "isLoggedIn"; "required": false; "isSignal": true; }; }, { "login": "login"; "loginBoxToggle": "loginBoxToggle"; }, never, ["*"], true, [{ directive: typeof i1.ECLClickOutsideDirective; inputs: {}; outputs: { "eclClickOutside": "eclClickOutside"; }; }]>;
|
|
396
411
|
}
|
|
397
412
|
|
|
398
413
|
/**
|
|
@@ -400,8 +415,8 @@ declare class EclSiteHeaderLoginComponent extends ECLBaseDirective implements On
|
|
|
400
415
|
*/
|
|
401
416
|
declare class EclSiteHeaderLoginDescriptionDirective extends ECLBaseDirective {
|
|
402
417
|
className: string;
|
|
403
|
-
static ɵfac:
|
|
404
|
-
static ɵdir:
|
|
418
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderLoginDescriptionDirective, never>;
|
|
419
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EclSiteHeaderLoginDescriptionDirective, "[eclSiteHeaderLoginDescription]", never, {}, {}, never, never, true, never>;
|
|
405
420
|
}
|
|
406
421
|
/**
|
|
407
422
|
* This directive is used to add specific class for the horizontal line, that separates
|
|
@@ -409,8 +424,8 @@ declare class EclSiteHeaderLoginDescriptionDirective extends ECLBaseDirective {
|
|
|
409
424
|
*/
|
|
410
425
|
declare class EclSiteHeaderLoginSeparatorDirective extends ECLBaseDirective {
|
|
411
426
|
className: string;
|
|
412
|
-
static ɵfac:
|
|
413
|
-
static ɵdir:
|
|
427
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderLoginSeparatorDirective, never>;
|
|
428
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EclSiteHeaderLoginSeparatorDirective, "[eclSiteHeaderLoginSeparator]", never, {}, {}, never, never, true, never>;
|
|
414
429
|
}
|
|
415
430
|
|
|
416
431
|
/**
|
|
@@ -422,8 +437,8 @@ declare class EclSiteHeaderNotificationComponent extends ECLBaseDirective {
|
|
|
422
437
|
protected display: string;
|
|
423
438
|
onHide(): void;
|
|
424
439
|
onShow(): void;
|
|
425
|
-
static ɵfac:
|
|
426
|
-
static ɵcmp:
|
|
440
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderNotificationComponent, never>;
|
|
441
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclSiteHeaderNotificationComponent, "ecl-site-header-notification", never, {}, {}, never, ["*"], true, never>;
|
|
427
442
|
}
|
|
428
443
|
|
|
429
444
|
declare const ECL_SITE_HEADER_SEARCH_VALUE_ACCESSOR: Provider;
|
|
@@ -432,53 +447,62 @@ declare const ECL_SITE_HEADER_SEARCH_VALUE_ACCESSOR: Provider;
|
|
|
432
447
|
* events on search and search toggle.
|
|
433
448
|
*/
|
|
434
449
|
declare class EclSiteHeaderSearchComponent extends ECLBaseDirective implements ControlValueAccessor, AfterViewInit, OnDestroy {
|
|
435
|
-
|
|
450
|
+
searchInputText: string;
|
|
451
|
+
readonly searchInputPlaceholder: _angular_core.InputSignal<string>;
|
|
452
|
+
readonly searchButtonLabel: _angular_core.InputSignal<string>;
|
|
453
|
+
readonly searchEvent: _angular_core.OutputEmitterRef<EclSiteHeaderSearchEvent>;
|
|
454
|
+
searchToggle: EventEmitter<EclSiteHeaderSearchToggleEvent>;
|
|
436
455
|
/**
|
|
437
|
-
*
|
|
456
|
+
* Whether the search dropdown is open. Kept public because the parent
|
|
457
|
+
* `ecl-site-header` resets it directly when the login box opens.
|
|
438
458
|
*/
|
|
439
|
-
|
|
440
|
-
searchInputText: string;
|
|
441
|
-
readonly searchInputPlaceholder: i0.InputSignal<string>;
|
|
442
|
-
readonly searchButtonLabel: i0.InputSignal<string>;
|
|
459
|
+
isSearchBoxActive: boolean;
|
|
443
460
|
/**
|
|
444
|
-
* The
|
|
461
|
+
* The arrow position of the search dropdown, when in mobile (full-width) mode.
|
|
445
462
|
*/
|
|
446
|
-
readonly
|
|
447
|
-
readonly searchEvent: i0.OutputEmitterRef<EclSiteHeaderSearchEvent>;
|
|
448
|
-
searchToggle: EventEmitter<EclSiteHeaderSearchToggleEvent>;
|
|
463
|
+
protected readonly searchArrowPosition: _angular_core.WritableSignal<string>;
|
|
449
464
|
/**
|
|
450
|
-
* The
|
|
465
|
+
* The search link element from the view, i.e. the search button (the toggle).
|
|
451
466
|
*/
|
|
452
|
-
|
|
453
|
-
|
|
467
|
+
private readonly searchLinkElement;
|
|
468
|
+
/**
|
|
469
|
+
* The search form element from the view, i.e. the dropdown box the arrow points from.
|
|
470
|
+
*/
|
|
471
|
+
private readonly searchFormElement;
|
|
454
472
|
private onChange;
|
|
455
473
|
private onTouched;
|
|
456
474
|
private destroy$;
|
|
457
|
-
private
|
|
458
|
-
private
|
|
459
|
-
private
|
|
460
|
-
private
|
|
461
|
-
private platformId;
|
|
462
|
-
private ro?;
|
|
463
|
-
private document;
|
|
475
|
+
private readonly eclRtlService;
|
|
476
|
+
private readonly platformId;
|
|
477
|
+
private readonly document;
|
|
478
|
+
private readonly window;
|
|
464
479
|
ngAfterViewInit(): void;
|
|
465
480
|
ngOnDestroy(): void;
|
|
466
|
-
|
|
467
|
-
|
|
481
|
+
writeValue(value: any): void;
|
|
482
|
+
registerOnChange(fn: any): void;
|
|
483
|
+
registerOnTouched(fn: any): void;
|
|
484
|
+
/**
|
|
485
|
+
* Close the search dropdown on click outside, matching ECL's `handleClickGlobal`.
|
|
486
|
+
*/
|
|
487
|
+
protected onClickOutside(): void;
|
|
488
|
+
protected onSearch(evt: EclSearchFormEvent): boolean;
|
|
489
|
+
protected onSearchBoxToggle(evt: MouseEvent): void;
|
|
468
490
|
/**
|
|
469
491
|
*
|
|
470
492
|
* @returns The classes for the ecl search form.
|
|
471
493
|
*/
|
|
472
|
-
getSearchBoxCssClasses(): string;
|
|
473
|
-
onModelChange(newValue: string): void;
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
494
|
+
protected getSearchBoxCssClasses(): string;
|
|
495
|
+
protected onModelChange(newValue: string): void;
|
|
496
|
+
private closeSearchBox;
|
|
497
|
+
/**
|
|
498
|
+
* Positions the dropdown arrow so it points at the center of the search toggle button.
|
|
499
|
+
* Mirrors ECL's `setSearchArrow`: the arrow position is an offset relative to the
|
|
500
|
+
* search form's own left edge, and it only applies to the mobile full-width dropdown
|
|
501
|
+
* (`searchFormRect.width >= clientWidth - 1`, the `- 1` absorbing subpixel rounding).
|
|
502
|
+
*/
|
|
503
|
+
private setSearchArrow;
|
|
504
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderSearchComponent, never>;
|
|
505
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclSiteHeaderSearchComponent, "ecl-site-header-search", never, { "searchInputText": { "alias": "searchInputText"; "required": false; }; "searchInputPlaceholder": { "alias": "searchInputPlaceholder"; "required": false; "isSignal": true; }; "searchButtonLabel": { "alias": "searchButtonLabel"; "required": false; "isSignal": true; }; }, { "searchEvent": "searchEvent"; "searchToggle": "searchToggle"; }, never, never, true, [{ directive: typeof i1.ECLClickOutsideDirective; inputs: {}; outputs: { "eclClickOutside": "eclClickOutside"; }; }]>;
|
|
482
506
|
}
|
|
483
507
|
|
|
484
508
|
/**
|
|
@@ -501,28 +525,28 @@ declare class EclSiteHeaderComponent extends ECLBaseDirective implements AfterCo
|
|
|
501
525
|
/**
|
|
502
526
|
* The size of the logo, 's', 'm' or 'l', default to 'm'.
|
|
503
527
|
*/
|
|
504
|
-
readonly logoSize:
|
|
528
|
+
readonly logoSize: _angular_core.InputSignal<"s" | "m" | "l">;
|
|
505
529
|
/**
|
|
506
530
|
* Determines if the site name should be displayed only on mobile devices.
|
|
507
531
|
*/
|
|
508
|
-
readonly isSiteNameMobileOnly:
|
|
532
|
+
readonly isSiteNameMobileOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
509
533
|
/**
|
|
510
534
|
* Adds specific classes to the main element. Depending , logo size, menu and menu status, rtl status.
|
|
511
535
|
*/
|
|
512
536
|
get cssClasses(): string;
|
|
513
|
-
readonly logoClick:
|
|
514
|
-
readonly languageClick:
|
|
515
|
-
readonly topContainerElement:
|
|
516
|
-
readonly siteHeaderHeader:
|
|
517
|
-
readonly bannerHeader:
|
|
518
|
-
readonly eclLoginComponent:
|
|
519
|
-
readonly eclMenuComponent:
|
|
520
|
-
readonly eclMegaMenuComponent:
|
|
521
|
-
readonly eclSearchComponent:
|
|
522
|
-
readonly eclLanguageComponent:
|
|
523
|
-
readonly eclNotificationComponent:
|
|
524
|
-
readonly eclHeaderLink:
|
|
525
|
-
readonly eclHeaderImage:
|
|
537
|
+
readonly logoClick: _angular_core.OutputEmitterRef<EclSiteHeaderLogoClickEvent>;
|
|
538
|
+
readonly languageClick: _angular_core.OutputEmitterRef<EclSiteHeaderLanguageClickEvent>;
|
|
539
|
+
readonly topContainerElement: _angular_core.Signal<ElementRef<any>>;
|
|
540
|
+
readonly siteHeaderHeader: _angular_core.Signal<ElementRef<any>>;
|
|
541
|
+
readonly bannerHeader: _angular_core.Signal<ElementRef<any>>;
|
|
542
|
+
readonly eclLoginComponent: _angular_core.Signal<EclSiteHeaderLoginComponent>;
|
|
543
|
+
readonly eclMenuComponent: _angular_core.Signal<EclMenuComponent>;
|
|
544
|
+
readonly eclMegaMenuComponent: _angular_core.Signal<EclMegaMenuComponent>;
|
|
545
|
+
readonly eclSearchComponent: _angular_core.Signal<EclSiteHeaderSearchComponent>;
|
|
546
|
+
readonly eclLanguageComponent: _angular_core.Signal<EclSiteHeaderLanguageComponent>;
|
|
547
|
+
readonly eclNotificationComponent: _angular_core.Signal<EclSiteHeaderNotificationComponent>;
|
|
548
|
+
readonly eclHeaderLink: _angular_core.Signal<any>;
|
|
549
|
+
readonly eclHeaderImage: _angular_core.Signal<any>;
|
|
526
550
|
protected destroy$: Subject<boolean>;
|
|
527
551
|
private isEclMegaMenuOpen;
|
|
528
552
|
private isEclMegaMenuStart;
|
|
@@ -560,8 +584,8 @@ declare class EclSiteHeaderComponent extends ECLBaseDirective implements AfterCo
|
|
|
560
584
|
private observeBreakpointChanges;
|
|
561
585
|
private positionMenu;
|
|
562
586
|
private handleLanguageChangeState;
|
|
563
|
-
static ɵfac:
|
|
564
|
-
static ɵcmp:
|
|
587
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderComponent, never>;
|
|
588
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EclSiteHeaderComponent, "ecl-site-header", never, { "siteName": { "alias": "siteName"; "required": false; }; "languageCode": { "alias": "languageCode"; "required": false; }; "logoSize": { "alias": "logoSize"; "required": false; "isSignal": true; }; "isSiteNameMobileOnly": { "alias": "isSiteNameMobileOnly"; "required": false; "isSignal": true; }; }, { "logoClick": "logoClick"; "languageClick": "languageClick"; }, ["eclLoginComponent", "eclMenuComponent", "eclMegaMenuComponent", "eclSearchComponent", "eclLanguageComponent", "eclNotificationComponent", "eclHeaderLink", "eclHeaderImage"], ["[eclSiteHeaderLink]", "[eclSiteHeaderEnvironment]", "ecl-site-header-action", "ecl-site-header-notification", "ecl-site-header-banner-top", "[eclSiteHeaderCta]", "ecl-menu", "[eclMegaMenu]"], true, never>;
|
|
565
589
|
}
|
|
566
590
|
|
|
567
591
|
/**
|
|
@@ -569,8 +593,8 @@ declare class EclSiteHeaderComponent extends ECLBaseDirective implements AfterCo
|
|
|
569
593
|
*/
|
|
570
594
|
declare class EclSiteHeaderPictureDirective extends ECLBaseDirective {
|
|
571
595
|
className: string;
|
|
572
|
-
static ɵfac:
|
|
573
|
-
static ɵdir:
|
|
596
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderPictureDirective, never>;
|
|
597
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EclSiteHeaderPictureDirective, "[eclSiteHeaderPicture]", never, {}, {}, never, never, true, never>;
|
|
574
598
|
}
|
|
575
599
|
/**
|
|
576
600
|
* Adds some specific classes for <img> element, when used in the site header logo.
|
|
@@ -578,16 +602,16 @@ declare class EclSiteHeaderPictureDirective extends ECLBaseDirective {
|
|
|
578
602
|
declare class EclSiteHeaderImageDirective extends ECLBaseDirective {
|
|
579
603
|
logoSize: string;
|
|
580
604
|
get cssClasses(): string;
|
|
581
|
-
static ɵfac:
|
|
582
|
-
static ɵdir:
|
|
605
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderImageDirective, never>;
|
|
606
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EclSiteHeaderImageDirective, "[eclSiteHeaderImage]", never, {}, {}, never, never, true, never>;
|
|
583
607
|
}
|
|
584
608
|
/**
|
|
585
609
|
* Adds some specific classes for <a> element, when used in the site header logo.
|
|
586
610
|
*/
|
|
587
611
|
declare class EclSiteHeaderLinkDirective extends ECLBaseDirective {
|
|
588
612
|
className: string;
|
|
589
|
-
static ɵfac:
|
|
590
|
-
static ɵdir:
|
|
613
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EclSiteHeaderLinkDirective, never>;
|
|
614
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<EclSiteHeaderLinkDirective, "[eclSiteHeaderLink]", never, {}, {}, never, never, true, never>;
|
|
591
615
|
}
|
|
592
616
|
|
|
593
617
|
declare const EUI_ECL_SITE_HEADER: readonly [typeof EclSiteHeaderComponent, typeof EclSiteHeaderActionComponent, typeof EclSiteHeaderCustomActionComponent, typeof EclSiteHeaderCustomActionContentDirective, typeof EclSiteHeaderCustomActionLinkDirective, typeof EclSiteHeaderCustomActionTitleDirective, typeof EclSiteHeaderLoginComponent, typeof EclSiteHeaderLoginDescriptionDirective, typeof EclSiteHeaderLoginSeparatorDirective, typeof EclSiteHeaderLanguageComponent, typeof EclSiteHeaderLanguagePopoverComponent, typeof EclSiteHeaderSearchComponent, typeof EclSiteHeaderBannerTopComponent, typeof EclSiteHeaderEnvironmentComponent, typeof EclSiteHeaderNotificationComponent, typeof EclSiteHeaderCtaDirective, typeof EclSiteHeaderImageDirective, typeof EclSiteHeaderPictureDirective, typeof EclSiteHeaderLinkDirective];
|