@eui/ecl 17.0.1 → 17.0.2-snapshot-1701859601406

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 (36) hide show
  1. package/docs/components/EclAppComponent.html +13 -1
  2. package/docs/components/EclCarouselComponent.html +81 -7
  3. package/docs/components/EclMenuComponent.html +95 -25
  4. package/docs/components/EclMenuMegaComponent.html +70 -1
  5. package/docs/components/EclTabsComponent.html +14 -2
  6. package/docs/dependencies.html +2 -2
  7. package/docs/index.html +1 -1
  8. package/docs/injectables/EclRtlService.html +436 -0
  9. package/docs/js/menu-wc.js +3 -0
  10. package/docs/js/menu-wc_es5.js +1 -1
  11. package/docs/js/search/search_index.js +2 -2
  12. package/docs/properties.html +1 -1
  13. package/esm2022/lib/components/ecl-app/ecl-app.component.mjs +26 -8
  14. package/esm2022/lib/components/ecl-carousel/ecl-carousel.component.mjs +23 -11
  15. package/esm2022/lib/components/ecl-menu/ecl-menu/ecl-menu.component.mjs +79 -51
  16. package/esm2022/lib/components/ecl-menu/ecl-menu-mega/ecl-menu-mega.component.mjs +8 -3
  17. package/esm2022/lib/components/ecl-tabs/ecl-tabs.component.mjs +42 -16
  18. package/esm2022/lib/services/ecl-rtl.service.mjs +77 -0
  19. package/esm2022/lib/services/index.mjs +2 -1
  20. package/fesm2022/eui-ecl.mjs +223 -68
  21. package/fesm2022/eui-ecl.mjs.map +1 -1
  22. package/lib/components/ecl-app/ecl-app.component.d.ts +4 -1
  23. package/lib/components/ecl-app/ecl-app.component.d.ts.map +1 -1
  24. package/lib/components/ecl-carousel/ecl-carousel.component.d.ts +7 -2
  25. package/lib/components/ecl-carousel/ecl-carousel.component.d.ts.map +1 -1
  26. package/lib/components/ecl-menu/ecl-menu/ecl-menu.component.d.ts +14 -8
  27. package/lib/components/ecl-menu/ecl-menu/ecl-menu.component.d.ts.map +1 -1
  28. package/lib/components/ecl-menu/ecl-menu-mega/ecl-menu-mega.component.d.ts +4 -0
  29. package/lib/components/ecl-menu/ecl-menu-mega/ecl-menu-mega.component.d.ts.map +1 -1
  30. package/lib/components/ecl-tabs/ecl-tabs.component.d.ts +10 -1
  31. package/lib/components/ecl-tabs/ecl-tabs.component.d.ts.map +1 -1
  32. package/lib/services/ecl-rtl.service.d.ts +23 -0
  33. package/lib/services/ecl-rtl.service.d.ts.map +1 -0
  34. package/lib/services/index.d.ts +1 -0
  35. package/lib/services/index.d.ts.map +1 -1
  36. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Directive, Input, HostBinding, Injectable, Optional, Inject, Component, ViewChild, EventEmitter, ChangeDetectionStrategy, Output, NgModule, ContentChildren, forwardRef, Self, HostListener, ElementRef, ContentChild, ViewEncapsulation, ViewChildren, Pipe } from '@angular/core';
3
3
  import * as i1$1 from '@angular/common';
4
- import { CommonModule, formatDate } from '@angular/common';
4
+ import { DOCUMENT, CommonModule, formatDate } from '@angular/common';
5
5
  import * as i1$2 from '@ngx-translate/core';
6
6
  import { TranslateModule } from '@ngx-translate/core';
7
7
  import { __decorate } from 'tslib';
@@ -423,6 +423,76 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImpor
423
423
  args: [GLOBAL_CONFIG_TOKEN]
424
424
  }] }] });
425
425
 
426
+ class EclRtlService {
427
+ constructor(document, eclThemeService, eclLanguageService) {
428
+ this.document = document;
429
+ this.eclThemeService = eclThemeService;
430
+ this.eclLanguageService = eclLanguageService;
431
+ this.currentRtlState = new ReplaySubject();
432
+ this.destroy$ = new Subject();
433
+ this.currentRtlState$ = this.currentRtlState.asObservable();
434
+ this.handleRtlChangeStateOnLangChange();
435
+ }
436
+ changeRtlState(rtlState) {
437
+ this.manageRtlState(rtlState);
438
+ this.currentRtlState.next(rtlState);
439
+ }
440
+ ngOnDestroy() {
441
+ this.destroy$.next(true);
442
+ this.destroy$.unsubscribe();
443
+ }
444
+ handleRtlChangeStateOnLangChange() {
445
+ this.eclLanguageService.currentLanguage$.pipe(takeUntil(this.destroy$)).subscribe((lang) => {
446
+ this.changeRtlState(lang.isRtl);
447
+ });
448
+ }
449
+ manageRtlState(rtlState) {
450
+ if (rtlState) {
451
+ this.enableRTLCss();
452
+ }
453
+ else {
454
+ this.disableRtlCss();
455
+ }
456
+ }
457
+ enableRTLCss() {
458
+ const head = this.document.getElementsByTagName('head')[0];
459
+ const themeLink = this.document.getElementById('rtl-theme');
460
+ let styleSheet;
461
+ if (this.eclThemeService.getTheme() === ECLTheme.EC) {
462
+ styleSheet = 'assets/eui-ecl-ec-rtl.css';
463
+ }
464
+ else {
465
+ styleSheet = 'assets/eui-ecl-eu-rtl.css';
466
+ }
467
+ if (themeLink) {
468
+ themeLink.href = styleSheet;
469
+ themeLink.media = '';
470
+ }
471
+ else {
472
+ const style = this.document.createElement('link');
473
+ style.id = 'rtl-theme';
474
+ style.rel = 'stylesheet';
475
+ style.href = styleSheet;
476
+ head.appendChild(style);
477
+ }
478
+ }
479
+ disableRtlCss() {
480
+ const themeLink = this.document.getElementById('rtl-theme');
481
+ if (themeLink) {
482
+ themeLink.media = 'max-width: 1px';
483
+ }
484
+ }
485
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclRtlService, deps: [{ token: DOCUMENT }, { token: EclThemeService }, { token: EclDefaultLanguageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
486
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclRtlService, providedIn: 'root' }); }
487
+ }
488
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclRtlService, decorators: [{
489
+ type: Injectable,
490
+ args: [{ providedIn: 'root' }]
491
+ }], ctorParameters: () => [{ type: Document, decorators: [{
492
+ type: Inject,
493
+ args: [DOCUMENT]
494
+ }] }, { type: EclThemeService }, { type: EclDefaultLanguageService }] });
495
+
426
496
  class EclIconComponent extends ECLBaseDirective {
427
497
  constructor(el, eclThemeService) {
428
498
  super();
@@ -1932,14 +2002,16 @@ class EclAppLanguageDismissEvent extends EclBaseEvent {
1932
2002
  }
1933
2003
  }
1934
2004
  class EclAppComponent extends ECLBaseDirective {
1935
- constructor(eclLanguageService) {
2005
+ constructor(eclLanguageService, eclRtlService) {
1936
2006
  super();
1937
2007
  this.eclLanguageService = eclLanguageService;
2008
+ this.eclRtlService = eclRtlService;
1938
2009
  this.textDirection = 'ltr';
1939
2010
  this.languageDismiss = new EventEmitter();
1940
2011
  this.destroy$ = new Subject();
1941
2012
  }
1942
2013
  ngAfterViewInit() {
2014
+ this.handleRtlChangeState();
1943
2015
  this.handleInitialConfiguredLanguages();
1944
2016
  this.handleLanguageChangeState();
1945
2017
  this.handleUIEvents();
@@ -1951,18 +2023,33 @@ class EclAppComponent extends ECLBaseDirective {
1951
2023
  handleInitialConfiguredLanguages() {
1952
2024
  setTimeout(() => {
1953
2025
  const languages = this.eclLanguageService.getConfiguredLanguages();
1954
- this.eclSiteHeaderLanguage.languageCodes = languages?.map((lang) => lang.code);
2026
+ if (this.eclSiteHeaderLanguage) {
2027
+ this.eclSiteHeaderLanguage.languageCodes = languages?.map((lang) => lang.code);
2028
+ }
1955
2029
  });
1956
2030
  }
1957
2031
  handleLanguageChangeState() {
1958
2032
  this.eclLanguageService.currentLanguage$.pipe(takeUntil$1(this.destroy$)).subscribe((lang) => {
1959
2033
  setTimeout(() => {
1960
- this.textDirection = lang.isRtl ? 'rtl' : 'ltr';
1961
- this.eclSiteHeaderLanguage.languageCode = lang.code;
1962
- this.eclSiteHeader.languageCode = lang.code;
2034
+ if (this.eclSiteHeaderLanguage) {
2035
+ this.eclSiteHeaderLanguage.languageCode = lang.code;
2036
+ }
2037
+ if (this.eclSiteHeader) {
2038
+ this.eclSiteHeader.languageCode = lang.code;
2039
+ }
1963
2040
  });
1964
2041
  });
1965
2042
  }
2043
+ handleRtlChangeState() {
2044
+ this.eclRtlService.currentRtlState$.pipe(takeUntil$1(this.destroy$)).subscribe((rtlState) => {
2045
+ if (rtlState) {
2046
+ this.textDirection = 'rtl';
2047
+ }
2048
+ else {
2049
+ this.textDirection = 'ltr';
2050
+ }
2051
+ });
2052
+ }
1966
2053
  handleUIEvents() {
1967
2054
  this.eclSiteHeaderLanguage?.languageSelected
1968
2055
  .pipe(takeUntil$1(this.destroy$))
@@ -1971,13 +2058,13 @@ class EclAppComponent extends ECLBaseDirective {
1971
2058
  this.languageDismiss.next(new EclAppLanguageDismissEvent(evt.language));
1972
2059
  });
1973
2060
  }
1974
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclAppComponent, deps: [{ token: EclLanguageService }], target: i0.ɵɵFactoryTarget.Component }); }
2061
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclAppComponent, deps: [{ token: EclLanguageService }, { token: EclRtlService }], target: i0.ɵɵFactoryTarget.Component }); }
1975
2062
  /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: EclAppComponent, selector: "ecl-app", outputs: { languageDismiss: "languageDismiss" }, host: { properties: { "attr.dir": "this.textDirection" } }, queries: [{ propertyName: "eclSiteHeaderLanguage", first: true, predicate: EclSiteHeaderLanguageComponent, descendants: true }, { propertyName: "eclSiteHeader", first: true, predicate: EclSiteHeaderComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n" }); }
1976
2063
  }
1977
2064
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclAppComponent, decorators: [{
1978
2065
  type: Component,
1979
2066
  args: [{ selector: 'ecl-app', template: "<ng-content></ng-content>\n" }]
1980
- }], ctorParameters: () => [{ type: EclLanguageService }], propDecorators: { textDirection: [{
2067
+ }], ctorParameters: () => [{ type: EclLanguageService }, { type: EclRtlService }], propDecorators: { textDirection: [{
1981
2068
  type: HostBinding,
1982
2069
  args: ['attr.dir']
1983
2070
  }], eclSiteHeaderLanguage: [{
@@ -3064,11 +3151,12 @@ var KeyCode;
3064
3151
  })(KeyCode || (KeyCode = {}));
3065
3152
 
3066
3153
  class EclCarouselComponent extends ECLBaseDirective {
3067
- constructor(cdkBreakpointObserver, cd, renderer2) {
3154
+ constructor(cdkBreakpointObserver, cd, renderer2, eclRtlService) {
3068
3155
  super();
3069
3156
  this.cdkBreakpointObserver = cdkBreakpointObserver;
3070
3157
  this.cd = cd;
3071
3158
  this.renderer2 = renderer2;
3159
+ this.eclRtlService = eclRtlService;
3072
3160
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3073
3161
  this.isAutoplay = true;
3074
3162
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -3076,6 +3164,7 @@ class EclCarouselComponent extends ECLBaseDirective {
3076
3164
  this.slide = new EventEmitter();
3077
3165
  this.isPlaying = false;
3078
3166
  this.isPausedForced = false;
3167
+ this.isRtl = false;
3079
3168
  this.isTabletBreakpoint = false;
3080
3169
  this.isDesktopBreakpoint = false;
3081
3170
  this.isLargeDesktopBreakpoint = false;
@@ -3091,6 +3180,7 @@ class EclCarouselComponent extends ECLBaseDirective {
3091
3180
  }
3092
3181
  ngOnInit() {
3093
3182
  this.initAutoplay();
3183
+ this.handleRtlChangeState();
3094
3184
  }
3095
3185
  ngAfterContentInit() {
3096
3186
  this.observeBreakpointChanges();
@@ -3220,9 +3310,17 @@ class EclCarouselComponent extends ECLBaseDirective {
3220
3310
  getCarouselSlidesWidth() {
3221
3311
  return this.carouselContainerElement?.offsetWidth * this.getAllSlidesCount();
3222
3312
  }
3223
- getCarouselSlidesOffset() {
3313
+ getCarouselSlidesOffsetLeft() {
3314
+ return -1 * this.carouselContainerElement?.offsetWidth * this.getCurrentItemIndex();
3315
+ }
3316
+ getCarouselSlidesOffsetRight() {
3224
3317
  return -1 * this.carouselContainerElement?.offsetWidth * this.getCurrentItemIndex();
3225
3318
  }
3319
+ handleRtlChangeState() {
3320
+ this.eclRtlService.currentRtlState$.pipe(takeUntil(this.destroy$)).subscribe((rtlState) => {
3321
+ this.isRtl = rtlState;
3322
+ });
3323
+ }
3226
3324
  initAutoplay() {
3227
3325
  const start$ = this.playSubject.asObservable();
3228
3326
  const stop$ = this.stopSubject.asObservable();
@@ -3466,8 +3564,8 @@ class EclCarouselComponent extends ECLBaseDirective {
3466
3564
  this.cd.detectChanges();
3467
3565
  }).observe(this.carouselContainerElement);
3468
3566
  }
3469
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclCarouselComponent, deps: [{ token: i1$4.BreakpointObserver }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
3470
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: EclCarouselComponent, selector: "ecl-carousel", inputs: { isAutoplay: "isAutoplay", playInterval: "playInterval" }, outputs: { slide: "slide" }, host: { properties: { "class": "this.cssClasses" } }, queries: [{ propertyName: "slides", predicate: i0.forwardRef(() => EclCarouselItemComponent) }], viewQueries: [{ propertyName: "carouselContainerElement", first: true, predicate: ["carouselContainer"], descendants: true }, { propertyName: "playButton", first: true, predicate: ["playButton"], descendants: true }, { propertyName: "pauseButton", first: true, predicate: ["pauseButton"], descendants: true }, { propertyName: "prevButton", first: true, predicate: ["prevButton"], descendants: true }, { propertyName: "firstHiddenItem", first: true, predicate: ["firstHiddenItem"], descendants: true }, { propertyName: "lastHiddenItem", first: true, predicate: ["lastHiddenItem"], descendants: true }, { propertyName: "slidesContainer", first: true, predicate: ["slidesContainer"], descendants: true }, { propertyName: "navigationButtons", predicate: ["currButton"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div #carouselContainer class=\"ecl-carousel__container\" [class.ecl-carousel-container--padded]=\"isPadded()\">\n <div #slidesContainer\n (keyup)=\"onFirstCarouselElementPress($event)\"\n class=\"ecl-carousel__slides\"\n [style.width.px]=\"getCarouselSlidesWidth()\"\n [style.left.px]=\"getCarouselSlidesOffset()\"\n [style.transition-duration.s]=\"transitionDuration\"\n (mouseover)=\"onSlideHover()\"\n (mouseout)=\"onSlideHoverout()\">\n <ecl-carousel-item #firstHiddenItem *ngIf=\"hasControls()\" [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n <ng-content></ng-content>\n <ecl-carousel-item #lastHiddenItem *ngIf=\"hasControls()\" [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n </div>\n\n <button *ngIf=\"hasControls() && isLargeDesktopBreakpoint\" class=\"ecl-carousel__prev\" (click)=\"onPreviousSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-270\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <span class=\"ecl-u-sr-only\">{{ 'ecl.carousel.PREV-SLIDES' | translate }}</span>\n </button>\n\n <button *ngIf=\"hasControls() && isLargeDesktopBreakpoint\" class=\"ecl-carousel__next\" (click)=\"onNextSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-90\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.NEXT-SLIDES' | translate }}</div>\n </button>\n</div>\n\n<div *ngIf=\"hasControls()\" class=\"ecl-carousel__controls\">\n <div class=\"ecl-container\">\n <div class=\"ecl-carousel__autoplay\">\n <button\n #playButton\n class=\"ecl-carousel__play\"\n [style.display]=\"isPlaying ? 'none' : ''\"\n (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPlayClick()\">\n <ecl-icon icon=\"play\" size=\"l\" class=\"ecl-carousel__icon-default\" isInverted> </ecl-icon>\n <ecl-icon icon=\"play-filled\" size=\"l\" class=\"ecl-carousel__icon-active\" isInverted> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.AUTOPLAY' | translate }}</div>\n </button>\n <button\n #pauseButton\n class=\"ecl-carousel__pause\"\n [style.display]=\"isPlaying ? '' : 'none'\"\n (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPauseClick()\">\n <ecl-icon icon=\"pause\" size=\"l\" class=\"ecl-carousel__icon-default\" isInverted> </ecl-icon>\n <ecl-icon icon=\"pause-filled\" size=\"l\" class=\"ecl-carousel__icon-active\" isInverted> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.PAUSE' | translate }}</div>\n </button>\n </div>\n\n <div class=\"ecl-carousel__navigation\">\n <button\n *ngFor=\"let slide of slides; let i = index\"\n #currButton\n [attr.aria-current]=\"i === getCurrentSlideIndex()\"\n class=\"ecl-carousel__navigation-item\"\n (click)=\"onSlideControlClick(slide)\"\n (keydown)=\"onNavBtnKeyboardPress($event, i)\">\n <span class=\"ecl-u-sr-only\">{{ 'ecl.carousel.GO-TO-SLIDE' | translate }} {{ i + 1 }}</span>\n </button>\n </div>\n\n <button *ngIf=\"!isLargeDesktopBreakpoint\" #prevButton class=\"ecl-carousel__prev\" (click)=\"onPreviousSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-270\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <span class=\"ecl-u-sr-only\">{{ 'ecl.carousel.PREV-SLIDES' | translate }}</span>\n </button>\n\n <div class=\"ecl-carousel__pagination\">\n <span class=\"ecl-carousel__current\">{{ getCurrentSlideIndex() + 1 }}</span>\n {{ 'ecl.common.OF' | translate }}\n <span class=\"ecl-carousel__max\">{{ slides.length }}</span>\n </div>\n\n <button *ngIf=\"!isLargeDesktopBreakpoint\" class=\"ecl-carousel__next\" (click)=\"onNextSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-90\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.NEXT-SLIDES' | translate }}</div>\n </button>\n </div>\n</div>\n", styles: [":host{display:block}.ecl-carousel__container{width:100%}.ecl-carousel__slides{transition-duration:.4s}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "isInverted", "ariaHidden", "focusable"] }, { kind: "component", type: EclCarouselItemComponent, selector: "ecl-carousel-item", inputs: ["id", "isCurrent"], outputs: ["slideClick"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] }); }
3567
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclCarouselComponent, deps: [{ token: i1$4.BreakpointObserver }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: EclRtlService }], target: i0.ɵɵFactoryTarget.Component }); }
3568
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: EclCarouselComponent, selector: "ecl-carousel", inputs: { isAutoplay: "isAutoplay", playInterval: "playInterval" }, outputs: { slide: "slide" }, host: { properties: { "class": "this.cssClasses" } }, queries: [{ propertyName: "slides", predicate: i0.forwardRef(() => EclCarouselItemComponent) }], viewQueries: [{ propertyName: "carouselContainerElement", first: true, predicate: ["carouselContainer"], descendants: true }, { propertyName: "playButton", first: true, predicate: ["playButton"], descendants: true }, { propertyName: "pauseButton", first: true, predicate: ["pauseButton"], descendants: true }, { propertyName: "prevButton", first: true, predicate: ["prevButton"], descendants: true }, { propertyName: "firstHiddenItem", first: true, predicate: ["firstHiddenItem"], descendants: true }, { propertyName: "lastHiddenItem", first: true, predicate: ["lastHiddenItem"], descendants: true }, { propertyName: "slidesContainer", first: true, predicate: ["slidesContainer"], descendants: true }, { propertyName: "navigationButtons", predicate: ["currButton"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div #carouselContainer class=\"ecl-carousel__container\" [class.ecl-carousel-container--padded]=\"isPadded()\">\n <div #slidesContainer\n (keyup)=\"onFirstCarouselElementPress($event)\"\n class=\"ecl-carousel__slides\"\n [style.width.px]=\"getCarouselSlidesWidth()\"\n [style.left.px]=\"!isRtl ? getCarouselSlidesOffsetLeft() : null\"\n [style.right.px]=\"isRtl ? getCarouselSlidesOffsetRight() : null\"\n [style.transition-duration.s]=\"transitionDuration\"\n (mouseover)=\"onSlideHover()\"\n (mouseout)=\"onSlideHoverout()\">\n <ecl-carousel-item #firstHiddenItem *ngIf=\"hasControls()\" [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n <ng-content></ng-content>\n <ecl-carousel-item #lastHiddenItem *ngIf=\"hasControls()\" [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n </div>\n\n <button *ngIf=\"hasControls() && isLargeDesktopBreakpoint\" class=\"ecl-carousel__prev\" (click)=\"onPreviousSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-270\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <span class=\"ecl-u-sr-only\">{{ 'ecl.carousel.PREV-SLIDES' | translate }}</span>\n </button>\n\n <button *ngIf=\"hasControls() && isLargeDesktopBreakpoint\" class=\"ecl-carousel__next\" (click)=\"onNextSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-90\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.NEXT-SLIDES' | translate }}</div>\n </button>\n</div>\n\n<div *ngIf=\"hasControls()\" class=\"ecl-carousel__controls\">\n <div class=\"ecl-container\">\n <div class=\"ecl-carousel__autoplay\">\n <button\n #playButton\n class=\"ecl-carousel__play\"\n [style.display]=\"isPlaying ? 'none' : ''\"\n (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPlayClick()\">\n <ecl-icon icon=\"play\" size=\"l\" class=\"ecl-carousel__icon-default\" isInverted> </ecl-icon>\n <ecl-icon icon=\"play-filled\" size=\"l\" class=\"ecl-carousel__icon-active\" isInverted> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.AUTOPLAY' | translate }}</div>\n </button>\n <button\n #pauseButton\n class=\"ecl-carousel__pause\"\n [style.display]=\"isPlaying ? '' : 'none'\"\n (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPauseClick()\">\n <ecl-icon icon=\"pause\" size=\"l\" class=\"ecl-carousel__icon-default\" isInverted> </ecl-icon>\n <ecl-icon icon=\"pause-filled\" size=\"l\" class=\"ecl-carousel__icon-active\" isInverted> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.PAUSE' | translate }}</div>\n </button>\n </div>\n\n <div class=\"ecl-carousel__navigation\">\n <button\n *ngFor=\"let slide of slides; let i = index\"\n #currButton\n [attr.aria-current]=\"i === getCurrentSlideIndex()\"\n class=\"ecl-carousel__navigation-item\"\n (click)=\"onSlideControlClick(slide)\"\n (keydown)=\"onNavBtnKeyboardPress($event, i)\">\n <span class=\"ecl-u-sr-only\">{{ 'ecl.carousel.GO-TO-SLIDE' | translate }} {{ i + 1 }}</span>\n </button>\n </div>\n\n <button *ngIf=\"!isLargeDesktopBreakpoint\" #prevButton class=\"ecl-carousel__prev\" (click)=\"onPreviousSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-270\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <span class=\"ecl-u-sr-only\">{{ 'ecl.carousel.PREV-SLIDES' | translate }}</span>\n </button>\n\n <div class=\"ecl-carousel__pagination\">\n <span class=\"ecl-carousel__current\">{{ getCurrentSlideIndex() + 1 }}</span>\n {{ 'ecl.common.OF' | translate }}\n <span class=\"ecl-carousel__max\">{{ slides.length }}</span>\n </div>\n\n <button *ngIf=\"!isLargeDesktopBreakpoint\" class=\"ecl-carousel__next\" (click)=\"onNextSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-90\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.NEXT-SLIDES' | translate }}</div>\n </button>\n </div>\n</div>\n", styles: [":host{display:block}.ecl-carousel__container{width:100%}.ecl-carousel__slides{transition-duration:.4s}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "isInverted", "ariaHidden", "focusable"] }, { kind: "component", type: EclCarouselItemComponent, selector: "ecl-carousel-item", inputs: ["id", "isCurrent"], outputs: ["slideClick"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] }); }
3471
3569
  }
3472
3570
  __decorate([
3473
3571
  coerceBoolean
@@ -3483,8 +3581,8 @@ __decorate([
3483
3581
  ], EclCarouselComponent.prototype, "slidesContainer", void 0);
3484
3582
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclCarouselComponent, decorators: [{
3485
3583
  type: Component,
3486
- args: [{ selector: 'ecl-carousel', template: "<div #carouselContainer class=\"ecl-carousel__container\" [class.ecl-carousel-container--padded]=\"isPadded()\">\n <div #slidesContainer\n (keyup)=\"onFirstCarouselElementPress($event)\"\n class=\"ecl-carousel__slides\"\n [style.width.px]=\"getCarouselSlidesWidth()\"\n [style.left.px]=\"getCarouselSlidesOffset()\"\n [style.transition-duration.s]=\"transitionDuration\"\n (mouseover)=\"onSlideHover()\"\n (mouseout)=\"onSlideHoverout()\">\n <ecl-carousel-item #firstHiddenItem *ngIf=\"hasControls()\" [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n <ng-content></ng-content>\n <ecl-carousel-item #lastHiddenItem *ngIf=\"hasControls()\" [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n </div>\n\n <button *ngIf=\"hasControls() && isLargeDesktopBreakpoint\" class=\"ecl-carousel__prev\" (click)=\"onPreviousSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-270\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <span class=\"ecl-u-sr-only\">{{ 'ecl.carousel.PREV-SLIDES' | translate }}</span>\n </button>\n\n <button *ngIf=\"hasControls() && isLargeDesktopBreakpoint\" class=\"ecl-carousel__next\" (click)=\"onNextSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-90\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.NEXT-SLIDES' | translate }}</div>\n </button>\n</div>\n\n<div *ngIf=\"hasControls()\" class=\"ecl-carousel__controls\">\n <div class=\"ecl-container\">\n <div class=\"ecl-carousel__autoplay\">\n <button\n #playButton\n class=\"ecl-carousel__play\"\n [style.display]=\"isPlaying ? 'none' : ''\"\n (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPlayClick()\">\n <ecl-icon icon=\"play\" size=\"l\" class=\"ecl-carousel__icon-default\" isInverted> </ecl-icon>\n <ecl-icon icon=\"play-filled\" size=\"l\" class=\"ecl-carousel__icon-active\" isInverted> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.AUTOPLAY' | translate }}</div>\n </button>\n <button\n #pauseButton\n class=\"ecl-carousel__pause\"\n [style.display]=\"isPlaying ? '' : 'none'\"\n (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPauseClick()\">\n <ecl-icon icon=\"pause\" size=\"l\" class=\"ecl-carousel__icon-default\" isInverted> </ecl-icon>\n <ecl-icon icon=\"pause-filled\" size=\"l\" class=\"ecl-carousel__icon-active\" isInverted> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.PAUSE' | translate }}</div>\n </button>\n </div>\n\n <div class=\"ecl-carousel__navigation\">\n <button\n *ngFor=\"let slide of slides; let i = index\"\n #currButton\n [attr.aria-current]=\"i === getCurrentSlideIndex()\"\n class=\"ecl-carousel__navigation-item\"\n (click)=\"onSlideControlClick(slide)\"\n (keydown)=\"onNavBtnKeyboardPress($event, i)\">\n <span class=\"ecl-u-sr-only\">{{ 'ecl.carousel.GO-TO-SLIDE' | translate }} {{ i + 1 }}</span>\n </button>\n </div>\n\n <button *ngIf=\"!isLargeDesktopBreakpoint\" #prevButton class=\"ecl-carousel__prev\" (click)=\"onPreviousSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-270\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <span class=\"ecl-u-sr-only\">{{ 'ecl.carousel.PREV-SLIDES' | translate }}</span>\n </button>\n\n <div class=\"ecl-carousel__pagination\">\n <span class=\"ecl-carousel__current\">{{ getCurrentSlideIndex() + 1 }}</span>\n {{ 'ecl.common.OF' | translate }}\n <span class=\"ecl-carousel__max\">{{ slides.length }}</span>\n </div>\n\n <button *ngIf=\"!isLargeDesktopBreakpoint\" class=\"ecl-carousel__next\" (click)=\"onNextSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-90\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.NEXT-SLIDES' | translate }}</div>\n </button>\n </div>\n</div>\n", styles: [":host{display:block}.ecl-carousel__container{width:100%}.ecl-carousel__slides{transition-duration:.4s}\n"] }]
3487
- }], ctorParameters: () => [{ type: i1$4.BreakpointObserver }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }], propDecorators: { isAutoplay: [{
3584
+ args: [{ selector: 'ecl-carousel', template: "<div #carouselContainer class=\"ecl-carousel__container\" [class.ecl-carousel-container--padded]=\"isPadded()\">\n <div #slidesContainer\n (keyup)=\"onFirstCarouselElementPress($event)\"\n class=\"ecl-carousel__slides\"\n [style.width.px]=\"getCarouselSlidesWidth()\"\n [style.left.px]=\"!isRtl ? getCarouselSlidesOffsetLeft() : null\"\n [style.right.px]=\"isRtl ? getCarouselSlidesOffsetRight() : null\"\n [style.transition-duration.s]=\"transitionDuration\"\n (mouseover)=\"onSlideHover()\"\n (mouseout)=\"onSlideHoverout()\">\n <ecl-carousel-item #firstHiddenItem *ngIf=\"hasControls()\" [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n <ng-content></ng-content>\n <ecl-carousel-item #lastHiddenItem *ngIf=\"hasControls()\" [style.width.%]=\"slideWidth\"></ecl-carousel-item>\n </div>\n\n <button *ngIf=\"hasControls() && isLargeDesktopBreakpoint\" class=\"ecl-carousel__prev\" (click)=\"onPreviousSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-270\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <span class=\"ecl-u-sr-only\">{{ 'ecl.carousel.PREV-SLIDES' | translate }}</span>\n </button>\n\n <button *ngIf=\"hasControls() && isLargeDesktopBreakpoint\" class=\"ecl-carousel__next\" (click)=\"onNextSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-90\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.NEXT-SLIDES' | translate }}</div>\n </button>\n</div>\n\n<div *ngIf=\"hasControls()\" class=\"ecl-carousel__controls\">\n <div class=\"ecl-container\">\n <div class=\"ecl-carousel__autoplay\">\n <button\n #playButton\n class=\"ecl-carousel__play\"\n [style.display]=\"isPlaying ? 'none' : ''\"\n (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPlayClick()\">\n <ecl-icon icon=\"play\" size=\"l\" class=\"ecl-carousel__icon-default\" isInverted> </ecl-icon>\n <ecl-icon icon=\"play-filled\" size=\"l\" class=\"ecl-carousel__icon-active\" isInverted> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.AUTOPLAY' | translate }}</div>\n </button>\n <button\n #pauseButton\n class=\"ecl-carousel__pause\"\n [style.display]=\"isPlaying ? '' : 'none'\"\n (keydown)=\"onPlayKeyboardPress($event)\"\n (click)=\"onPauseClick()\">\n <ecl-icon icon=\"pause\" size=\"l\" class=\"ecl-carousel__icon-default\" isInverted> </ecl-icon>\n <ecl-icon icon=\"pause-filled\" size=\"l\" class=\"ecl-carousel__icon-active\" isInverted> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.PAUSE' | translate }}</div>\n </button>\n </div>\n\n <div class=\"ecl-carousel__navigation\">\n <button\n *ngFor=\"let slide of slides; let i = index\"\n #currButton\n [attr.aria-current]=\"i === getCurrentSlideIndex()\"\n class=\"ecl-carousel__navigation-item\"\n (click)=\"onSlideControlClick(slide)\"\n (keydown)=\"onNavBtnKeyboardPress($event, i)\">\n <span class=\"ecl-u-sr-only\">{{ 'ecl.carousel.GO-TO-SLIDE' | translate }} {{ i + 1 }}</span>\n </button>\n </div>\n\n <button *ngIf=\"!isLargeDesktopBreakpoint\" #prevButton class=\"ecl-carousel__prev\" (click)=\"onPreviousSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-270\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <span class=\"ecl-u-sr-only\">{{ 'ecl.carousel.PREV-SLIDES' | translate }}</span>\n </button>\n\n <div class=\"ecl-carousel__pagination\">\n <span class=\"ecl-carousel__current\">{{ getCurrentSlideIndex() + 1 }}</span>\n {{ 'ecl.common.OF' | translate }}\n <span class=\"ecl-carousel__max\">{{ slides.length }}</span>\n </div>\n\n <button *ngIf=\"!isLargeDesktopBreakpoint\" class=\"ecl-carousel__next\" (click)=\"onNextSlideClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"m\" transform=\"rotate-90\" isInverted class=\"ecl-carousel__icon-default\"> </ecl-icon>\n <div class=\"ecl-u-sr-only\">{{ 'ecl.carousel.NEXT-SLIDES' | translate }}</div>\n </button>\n </div>\n</div>\n", styles: [":host{display:block}.ecl-carousel__container{width:100%}.ecl-carousel__slides{transition-duration:.4s}\n"] }]
3585
+ }], ctorParameters: () => [{ type: i1$4.BreakpointObserver }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: EclRtlService }], propDecorators: { isAutoplay: [{
3488
3586
  type: Input
3489
3587
  }], playInterval: [{
3490
3588
  type: Input
@@ -6951,8 +7049,13 @@ class EclMenuMegaComponent extends ECLBaseDirective {
6951
7049
  super();
6952
7050
  this.differs = differs;
6953
7051
  this.el = el;
7052
+ /**
7053
+ * @deprecated To be removed in 18 version. No alternative, should not be used.
7054
+ */
6954
7055
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6955
7056
  this.isRtl = false;
7057
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
7058
+ this.isRtlDisplay = false;
6956
7059
  this.menuItemSelect = new EventEmitter();
6957
7060
  this.menuMegaItemParentFocus = new EventEmitter();
6958
7061
  this.destroy$ = new Subject();
@@ -7055,7 +7158,7 @@ class EclMenuMegaComponent extends ECLBaseDirective {
7055
7158
  return this.eclMenuMegaItems.toArray();
7056
7159
  }
7057
7160
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclMenuMegaComponent, deps: [{ token: i0.IterableDiffers }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
7058
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: EclMenuMegaComponent, selector: "ecl-menu-mega", inputs: { isRtl: "isRtl" }, outputs: { menuItemSelect: "menuItemSelect", menuMegaItemParentFocus: "menuMegaItemParentFocus" }, host: { properties: { "class.ecl-menu__mega--rtl": "this.isRtl", "style.left.px": "this.offsetLeft", "style.right.px": "this.offsetRight", "class": "this.cssClasses" } }, queries: [{ propertyName: "eclMenuMegaItems", predicate: EclMenuMegaItemComponent }], usesInheritance: true, ngImport: i0, template: "<ul class=\"ecl-menu__sublist\">\n <ng-content></ng-content>\n</ul>\n" }); }
7161
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: EclMenuMegaComponent, selector: "ecl-menu-mega", inputs: { isRtl: "isRtl" }, outputs: { menuItemSelect: "menuItemSelect", menuMegaItemParentFocus: "menuMegaItemParentFocus" }, host: { properties: { "class.ecl-menu__mega--rtl": "this.isRtlDisplay", "style.left.px": "this.offsetLeft", "style.right.px": "this.offsetRight", "class": "this.cssClasses" } }, queries: [{ propertyName: "eclMenuMegaItems", predicate: EclMenuMegaItemComponent }], usesInheritance: true, ngImport: i0, template: "<ul class=\"ecl-menu__sublist\">\n <ng-content></ng-content>\n</ul>\n" }); }
7059
7162
  }
7060
7163
  __decorate([
7061
7164
  coerceBoolean
@@ -7065,7 +7168,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImpor
7065
7168
  args: [{ selector: 'ecl-menu-mega', template: "<ul class=\"ecl-menu__sublist\">\n <ng-content></ng-content>\n</ul>\n" }]
7066
7169
  }], ctorParameters: () => [{ type: i0.IterableDiffers }, { type: i0.ElementRef }], propDecorators: { isRtl: [{
7067
7170
  type: Input
7068
- }, {
7171
+ }], isRtlDisplay: [{
7069
7172
  type: HostBinding,
7070
7173
  args: ['class.ecl-menu__mega--rtl']
7071
7174
  }], eclMenuMegaItems: [{
@@ -7440,12 +7543,13 @@ class EclMenuComponent extends ECLBaseDirective {
7440
7543
  get cssClasses() {
7441
7544
  return [super.getCssClasses('ecl-menu'), 'ecl-menu--transition', `ecl-menu--group${this.group}`].join(' ');
7442
7545
  }
7443
- constructor(el, differs, cdkBreakpointObserver, renderer) {
7546
+ constructor(el, differs, cdkBreakpointObserver, renderer, eclRtlService) {
7444
7547
  super();
7445
7548
  this.el = el;
7446
7549
  this.differs = differs;
7447
7550
  this.cdkBreakpointObserver = cdkBreakpointObserver;
7448
7551
  this.renderer = renderer;
7552
+ this.eclRtlService = eclRtlService;
7449
7553
  this.group = '1';
7450
7554
  this.maxLines = 0;
7451
7555
  this.menuItemSelect = new EventEmitter();
@@ -7456,11 +7560,13 @@ class EclMenuComponent extends ECLBaseDirective {
7456
7560
  this.hasOverflow = false;
7457
7561
  this.isShowPrevBtn = false;
7458
7562
  this.isShowNextBtn = false;
7459
- this.isCurrentItemVisible = false;
7563
+ this.isPrevBtnCurrentClass = false;
7564
+ this.menuListStyleRight = 'auto';
7565
+ this.menuListStyleLeft = 'auto';
7460
7566
  this.destroy$ = new Subject();
7567
+ this.isRtl = false;
7461
7568
  this.totalItemsWidth = 0;
7462
7569
  this.offsetLeft = 0;
7463
- this.direction = 'ltr';
7464
7570
  this.hammertime = new Hammer(document, { inputClass: Hammer.TouchInput });
7465
7571
  this.TIMEOUT_INTERVAL = 150;
7466
7572
  this.differ = this.differs.find([]).create();
@@ -7477,12 +7583,13 @@ class EclMenuComponent extends ECLBaseDirective {
7477
7583
  this.resizeTimer = setTimeout(() => {
7478
7584
  this.renderer.removeClass(this.el.nativeElement, 'ecl-menu--transition');
7479
7585
  this.totalItemsWidth = 0;
7480
- this.checkMenuItems();
7586
+ this.checkMenuItemsWidth();
7481
7587
  this.checkMenuOverflow();
7482
7588
  this.renderer.addClass(this.el.nativeElement, 'ecl-menu--transition');
7483
7589
  }, this.TIMEOUT_INTERVAL);
7484
7590
  }
7485
7591
  ngOnInit() {
7592
+ this.handleRtlChangeState();
7486
7593
  this.observeBreakpointChanges();
7487
7594
  this.observeSwipeGestures();
7488
7595
  }
@@ -7492,10 +7599,16 @@ class EclMenuComponent extends ECLBaseDirective {
7492
7599
  ngAfterViewInit() {
7493
7600
  clearTimeout(this.resizeTimer);
7494
7601
  this.resizeTimer = setTimeout(() => {
7495
- this.checkMenuItems();
7602
+ this.checkMenuItemsWidth();
7496
7603
  this.checkMenuOverflow();
7497
7604
  }, this.TIMEOUT_INTERVAL);
7498
7605
  }
7606
+ ngOnDestroy() {
7607
+ this.destroy$.next(true);
7608
+ this.destroy$.unsubscribe();
7609
+ this.hammertime.off('swipeleft');
7610
+ this.hammertime.off('swiperight');
7611
+ }
7499
7612
  onSwipeLeft() {
7500
7613
  if (this.isMobileBreakpoint) {
7501
7614
  this.openHamburgerMenu();
@@ -7522,30 +7635,14 @@ class EclMenuComponent extends ECLBaseDirective {
7522
7635
  this.closeRootMenu();
7523
7636
  evt.preventDefault();
7524
7637
  }
7525
- ngOnDestroy() {
7526
- this.destroy$.next(true);
7527
- this.destroy$.unsubscribe();
7528
- this.hammertime.off('swipeleft');
7529
- this.hammertime.off('swiperight');
7530
- }
7531
7638
  onPrevBtnClick() {
7532
- this.offsetLeft = 0;
7533
- if (this.direction === 'rtl') {
7534
- this.itemsList.nativeElement.style.right = '0';
7535
- this.itemsList.nativeElement.style.left = 'auto';
7536
- }
7537
- else {
7538
- this.itemsList.nativeElement.style.left = '0';
7539
- this.itemsList.nativeElement.style.right = 'auto';
7540
- }
7541
- this.isShowPrevBtn = false;
7542
- this.isShowNextBtn = true;
7639
+ this.slideMenuInitialState();
7543
7640
  this.refreshDisplay();
7544
7641
  }
7545
7642
  onNextBtnClick() {
7546
7643
  this.isShowPrevBtn = true;
7547
7644
  this.isShowNextBtn = false;
7548
- if (this.direction === 'rtl') {
7645
+ if (this.isRtl) {
7549
7646
  this.showNextSlideRtl();
7550
7647
  }
7551
7648
  else {
@@ -7553,14 +7650,27 @@ class EclMenuComponent extends ECLBaseDirective {
7553
7650
  }
7554
7651
  this.refreshDisplay();
7555
7652
  }
7653
+ slideMenuInitialState() {
7654
+ this.offsetLeft = 0;
7655
+ if (this.isRtl) {
7656
+ this.menuListStyleRight = '0px';
7657
+ this.menuListStyleLeft = 'auto';
7658
+ }
7659
+ else {
7660
+ this.menuListStyleLeft = '0px';
7661
+ this.menuListStyleRight = 'auto';
7662
+ }
7663
+ this.isShowPrevBtn = false;
7664
+ this.isShowNextBtn = true;
7665
+ }
7556
7666
  showNextSlideLtr() {
7557
7667
  const btnOffsetWidth = this.btnNext.el.nativeElement.offsetWidth;
7558
7668
  this.offsetLeft =
7559
7669
  this.lastVisibleItem.el.nativeElement.getBoundingClientRect().left -
7560
7670
  this.itemsList.nativeElement.getBoundingClientRect().left -
7561
7671
  btnOffsetWidth;
7562
- this.itemsList.nativeElement.style.left = `-${this.offsetLeft}px`;
7563
- this.itemsList.nativeElement.style.right = 'auto';
7672
+ this.menuListStyleLeft = `-${this.offsetLeft}px`;
7673
+ this.menuListStyleRight = 'auto';
7564
7674
  }
7565
7675
  showNextSlideRtl() {
7566
7676
  const btnOffsetWidth = this.btnNext.el.nativeElement.offsetWidth;
@@ -7568,8 +7678,8 @@ class EclMenuComponent extends ECLBaseDirective {
7568
7678
  this.itemsList.nativeElement.getBoundingClientRect().right -
7569
7679
  this.lastVisibleItem.el.nativeElement.getBoundingClientRect().right -
7570
7680
  btnOffsetWidth;
7571
- this.itemsList.nativeElement.style.right = `-${this.offsetLeft}px`;
7572
- this.itemsList.nativeElement.style.left = 'auto';
7681
+ this.menuListStyleRight = `-${this.offsetLeft}px`;
7682
+ this.menuListStyleLeft = 'auto';
7573
7683
  }
7574
7684
  refreshDisplay() {
7575
7685
  this.eclRootMenuItems.forEach((item) => {
@@ -7583,7 +7693,7 @@ class EclMenuComponent extends ECLBaseDirective {
7583
7693
  this.resetOverflowValues();
7584
7694
  return;
7585
7695
  }
7586
- this.checkCurrentItem();
7696
+ this.setClassForPrevNextButtons();
7587
7697
  this.resetVisibilityIndicator();
7588
7698
  if (this.offsetLeft === 0) {
7589
7699
  this.manageOverflowEnd();
@@ -7593,7 +7703,7 @@ class EclMenuComponent extends ECLBaseDirective {
7593
7703
  }
7594
7704
  }
7595
7705
  manageOverflowBeginning() {
7596
- if (this.direction === 'rtl') {
7706
+ if (this.isRtl) {
7597
7707
  this.eclRootMenuItems
7598
7708
  .filter((item) => item.el.nativeElement.getBoundingClientRect().right <=
7599
7709
  this.innerSection.nativeElement.getBoundingClientRect().right)
@@ -7607,7 +7717,7 @@ class EclMenuComponent extends ECLBaseDirective {
7607
7717
  }
7608
7718
  manageOverflowEnd() {
7609
7719
  this.isShowNextBtn = true;
7610
- if (this.direction === 'rtl') {
7720
+ if (this.isRtl) {
7611
7721
  for (const item of this.eclRootMenuItems) {
7612
7722
  if (item.el.nativeElement.getBoundingClientRect().left < this.itemsList.nativeElement.getBoundingClientRect().left) {
7613
7723
  this.lastVisibleItem = item;
@@ -7633,23 +7743,23 @@ class EclMenuComponent extends ECLBaseDirective {
7633
7743
  this.isShowPrevBtn = false;
7634
7744
  this.isShowNextBtn = false;
7635
7745
  this.hasOverflow = false;
7636
- this.itemsList.nativeElement.style.left = '0';
7746
+ this.menuListStyleLeft = '0px';
7637
7747
  this.offsetLeft = 0;
7638
7748
  this.totalItemsWidth = 0;
7639
7749
  this.lastVisibleItem = null;
7640
7750
  }
7641
- checkCurrentItem() {
7751
+ setClassForPrevNextButtons() {
7642
7752
  this.currentItem = this.eclRootMenuItems.find((item) => item.isCurrent);
7643
7753
  if (this.currentItem) {
7644
7754
  if (this.currentItem.isVisible) {
7645
- this.isCurrentItemVisible = true;
7755
+ this.isPrevBtnCurrentClass = true;
7646
7756
  }
7647
7757
  else {
7648
- this.isCurrentItemVisible = false;
7758
+ this.isPrevBtnCurrentClass = false;
7649
7759
  }
7650
7760
  }
7651
7761
  }
7652
- checkMenuItems() {
7762
+ checkMenuItemsWidth() {
7653
7763
  this.eclRootMenuItems.forEach((item) => {
7654
7764
  item.checkMenuItem(this.maxLines, this.isMobileBreakpoint);
7655
7765
  this.totalItemsWidth += item.el.nativeElement.offsetWidth;
@@ -7777,8 +7887,19 @@ class EclMenuComponent extends ECLBaseDirective {
7777
7887
  this.deselectAllSubmenusItems();
7778
7888
  this.selectMenuItem(requestedRootMenuItem);
7779
7889
  this.closeHamburgerMenu();
7890
+ if (this.hasOverflow) {
7891
+ this.managePrevNextButtonsClassOnItemSelected();
7892
+ }
7780
7893
  this.sendMenuItemSelectEvent(evt);
7781
7894
  }
7895
+ managePrevNextButtonsClassOnItemSelected() {
7896
+ if (this.isShowNextBtn) {
7897
+ this.isPrevBtnCurrentClass = true;
7898
+ }
7899
+ else {
7900
+ this.isPrevBtnCurrentClass = false;
7901
+ }
7902
+ }
7782
7903
  onRootMenuItemHovered(evt) {
7783
7904
  this.openSubmenu(evt.menuItem);
7784
7905
  }
@@ -7811,7 +7932,7 @@ class EclMenuComponent extends ECLBaseDirective {
7811
7932
  }
7812
7933
  checkMegaMenu(menuItem) {
7813
7934
  if (menuItem.isFull) {
7814
- if (menuItem.submenu.isRtl) {
7935
+ if (this.isRtl) {
7815
7936
  menuItem.submenu.offsetRight = this.offsetLeft;
7816
7937
  }
7817
7938
  else {
@@ -7829,10 +7950,10 @@ class EclMenuComponent extends ECLBaseDirective {
7829
7950
  const containerWidth = containerBounding.width;
7830
7951
  const menuItemPosition = menuItemBounding.left - containerBounding.left;
7831
7952
  if (menuItemPosition + megaWidth > containerWidth) {
7832
- menuItem.submenu.isRtl = true;
7953
+ menuItem.submenu.isRtlDisplay = true;
7833
7954
  }
7834
7955
  else {
7835
- menuItem.submenu.isRtl = false;
7956
+ menuItem.submenu.isRtlDisplay = false;
7836
7957
  }
7837
7958
  }
7838
7959
  onRootMenuItemHoveredOut(evt) {
@@ -7853,6 +7974,9 @@ class EclMenuComponent extends ECLBaseDirective {
7853
7974
  this.selectMenuItem(rootMenuItem);
7854
7975
  this.selectMenuItem(requestedSubmenuItem);
7855
7976
  this.closeHamburgerMenu();
7977
+ if (this.hasOverflow) {
7978
+ this.managePrevNextButtonsClassOnItemSelected();
7979
+ }
7856
7980
  this.sendMenuItemSelectEvent(evt);
7857
7981
  this.hideMenu();
7858
7982
  }
@@ -7893,9 +8017,15 @@ class EclMenuComponent extends ECLBaseDirective {
7893
8017
  it.isHovered = false;
7894
8018
  });
7895
8019
  }
7896
- removeHoverFromAllItems() {
7897
- this.eclRootMenuItems.forEach((it) => {
7898
- it.isHovered = false;
8020
+ handleRtlChangeState() {
8021
+ this.eclRtlService.currentRtlState$.pipe(takeUntil$1(this.destroy$)).subscribe((rtlState) => {
8022
+ if (rtlState !== undefined && this.isRtl !== rtlState) {
8023
+ this.isRtl = rtlState;
8024
+ if (this.hasOverflow) {
8025
+ this.slideMenuInitialState();
8026
+ setTimeout(() => this.checkMenuOverflow());
8027
+ }
8028
+ }
7899
8029
  });
7900
8030
  }
7901
8031
  toggleExpandedForMenuItem(item) {
@@ -7926,16 +8056,16 @@ class EclMenuComponent extends ECLBaseDirective {
7926
8056
  this.isMobileBreakpoint = result.matches;
7927
8057
  });
7928
8058
  }
7929
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclMenuComponent, deps: [{ token: i0.ElementRef }, { token: i0.IterableDiffers }, { token: i1$4.BreakpointObserver }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
7930
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: EclMenuComponent, selector: "ecl-menu", inputs: { group: "group", maxLines: "maxLines" }, outputs: { menuItemSelect: "menuItemSelect" }, host: { listeners: { "keydown": "keyEvent($event)", "window:resize": "onResize()" }, properties: { "class": "this.cssClasses", "attr.aria-expanded": "this.isHamburgerMenuOpened", "attr.role": "this.role", "class.ecl-menu--forced-mobile": "this.isMobileBreakpoint", "class.ecl-menu--forced-close": "this.isMenuHidden" } }, queries: [{ propertyName: "eclRootMenuItems", predicate: EclMenuItemComponent }], viewQueries: [{ propertyName: "innerSection", first: true, predicate: ["innerSection"], descendants: true }, { propertyName: "itemsList", first: true, predicate: ["itemsList"], descendants: true }, { propertyName: "btnPrevious", first: true, predicate: ["btnPrevious"], descendants: true }, { propertyName: "btnNext", first: true, predicate: ["btnNext"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ecl-menu__overlay\" (click)=\"onOverlayClick()\"></div>\n<div class=\"ecl-container ecl-menu__container\">\n <a eclLink href=\"#\" variant=\"standalone\" class=\"ecl-menu__open\" (click)=\"onMenuOpenClick($event)\">\n <ecl-icon icon=\"hamburger\" size=\"s\"></ecl-icon> {{ 'ecl.menu.MENU' | translate }}\n </a>\n\n <section\n class=\"ecl-menu__inner\"\n #innerSection\n [class.ecl-menu__inner--expanded]=\"isMenuExpandedInMobile\"\n [class.ecl-menu__inner--has-overflow]=\"hasOverflow\">\n <header class=\"ecl-menu__inner-header\">\n <button\n eclButton\n variant=\"text\"\n class=\"ecl-menu__close\"\n containerStyleClass=\"ecl-menu__close-container\"\n (click)=\"onMenuCloseClick($event)\">\n <ecl-icon icon=\"close-filled\" size=\"s\"></ecl-icon>\n <span eclButtonLabel>{{ 'ecl.common.CLOSE' | translate }}</span>\n </button>\n\n <div class=\"ecl-menu__title\">{{ 'ecl.menu.MENU' | translate }}</div>\n\n <button eclButton variant=\"text\" class=\"ecl-menu__back\" (click)=\"onMenuBackClick($event)\">\n <ecl-icon icon=\"corner-arrow\" size=\"s\" transform=\"rotate-270\"></ecl-icon>\n <span eclButtonLabel>{{ 'ecl.common.BACK' | translate }}</span>\n </button>\n </header>\n <button\n eclButton\n #btnPrevious\n tabindex=\"-1\"\n variant=\"ghost\"\n class=\"ecl-menu__item ecl-menu__items-previous\"\n [class.ecl-menu__item--current]=\"isCurrentItemVisible\"\n [style.display]=\"isShowPrevBtn ? 'block' : 'none'\"\n (click)=\"onPrevBtnClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"s\" transform=\"rotate-270\"></ecl-icon>\n <span eclButtonLabel class=\"ecl-u-sr-only\">{{ 'ecl.common.PREVIOUS' | translate }}</span>\n </button>\n <button\n eclButton\n #btnNext\n variant=\"ghost\"\n tabindex=\"-1\"\n class=\"ecl-menu__item ecl-menu__items-next\"\n [class.ecl-menu__item--current]=\"!isCurrentItemVisible\"\n [style.display]=\"isShowNextBtn ? 'block' : 'none'\"\n (click)=\"onNextBtnClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"s\" transform=\"rotate-90\"></ecl-icon>\n <span eclButtonLabel class=\"ecl-u-sr-only\">{{ 'ecl.common.NEXT' | translate }}</span>\n </button>\n <ul class=\"ecl-menu__list\" #itemsList>\n <ng-content></ng-content>\n </ul>\n </section>\n</div>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: EclButtonComponent, selector: "button[eclButton], button[ecl-button], a[eclButton]", inputs: ["variant", "containerStyleClass"] }, { kind: "directive", type: EclButtonLabelDirective, selector: "[eclButtonLabel]" }, { kind: "component", type: EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "isInverted", "ariaHidden", "focusable"] }, { kind: "directive", type: EclLinkDirective, selector: "[eclLink]", inputs: ["variant", "isNegative", "isNoVisited"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] }); }
8059
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclMenuComponent, deps: [{ token: i0.ElementRef }, { token: i0.IterableDiffers }, { token: i1$4.BreakpointObserver }, { token: i0.Renderer2 }, { token: EclRtlService }], target: i0.ɵɵFactoryTarget.Component }); }
8060
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: EclMenuComponent, selector: "ecl-menu", inputs: { group: "group", maxLines: "maxLines" }, outputs: { menuItemSelect: "menuItemSelect" }, host: { listeners: { "keydown": "keyEvent($event)", "window:resize": "onResize()" }, properties: { "class": "this.cssClasses", "attr.aria-expanded": "this.isHamburgerMenuOpened", "attr.role": "this.role", "class.ecl-menu--forced-mobile": "this.isMobileBreakpoint", "class.ecl-menu--forced-close": "this.isMenuHidden" } }, queries: [{ propertyName: "eclRootMenuItems", predicate: EclMenuItemComponent }], viewQueries: [{ propertyName: "innerSection", first: true, predicate: ["innerSection"], descendants: true }, { propertyName: "itemsList", first: true, predicate: ["itemsList"], descendants: true }, { propertyName: "btnPrevious", first: true, predicate: ["btnPrevious"], descendants: true }, { propertyName: "btnNext", first: true, predicate: ["btnNext"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ecl-menu__overlay\" (click)=\"onOverlayClick()\"></div>\n<div class=\"ecl-container ecl-menu__container\">\n <a eclLink href=\"#\" variant=\"standalone\" class=\"ecl-menu__open\" (click)=\"onMenuOpenClick($event)\">\n <ecl-icon icon=\"hamburger\" size=\"s\"></ecl-icon> {{ 'ecl.menu.MENU' | translate }}\n </a>\n\n <section\n class=\"ecl-menu__inner\"\n #innerSection\n [class.ecl-menu__inner--expanded]=\"isMenuExpandedInMobile\"\n [class.ecl-menu__inner--has-overflow]=\"hasOverflow\">\n <header class=\"ecl-menu__inner-header\">\n <button\n eclButton\n variant=\"text\"\n class=\"ecl-menu__close\"\n containerStyleClass=\"ecl-menu__close-container\"\n (click)=\"onMenuCloseClick($event)\">\n <ecl-icon icon=\"close-filled\" size=\"s\"></ecl-icon>\n <span eclButtonLabel>{{ 'ecl.common.CLOSE' | translate }}</span>\n </button>\n\n <div class=\"ecl-menu__title\">{{ 'ecl.menu.MENU' | translate }}</div>\n\n <button eclButton variant=\"text\" class=\"ecl-menu__back\" (click)=\"onMenuBackClick($event)\">\n <ecl-icon icon=\"corner-arrow\" size=\"s\" transform=\"rotate-270\"></ecl-icon>\n <span eclButtonLabel>{{ 'ecl.common.BACK' | translate }}</span>\n </button>\n </header>\n <button\n eclButton\n #btnPrevious\n tabindex=\"-1\"\n variant=\"ghost\"\n class=\"ecl-menu__item ecl-menu__items-previous\"\n [class.ecl-menu__item--current]=\"isPrevBtnCurrentClass\"\n [style.display]=\"isShowPrevBtn ? 'block' : 'none'\"\n (click)=\"onPrevBtnClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"s\" transform=\"rotate-270\"></ecl-icon>\n <span eclButtonLabel class=\"ecl-u-sr-only\">{{ 'ecl.common.PREVIOUS' | translate }}</span>\n </button>\n <button\n eclButton\n #btnNext\n variant=\"ghost\"\n tabindex=\"-1\"\n class=\"ecl-menu__item ecl-menu__items-next\"\n [class.ecl-menu__item--current]=\"!isPrevBtnCurrentClass\"\n [style.display]=\"isShowNextBtn ? 'block' : 'none'\"\n (click)=\"onNextBtnClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"s\" transform=\"rotate-90\"></ecl-icon>\n <span eclButtonLabel class=\"ecl-u-sr-only\">{{ 'ecl.common.NEXT' | translate }}</span>\n </button>\n <ul class=\"ecl-menu__list\" #itemsList [style.right]=\"menuListStyleRight\" [style.left]=\"menuListStyleLeft\">\n <ng-content></ng-content>\n </ul>\n </section>\n</div>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: EclButtonComponent, selector: "button[eclButton], button[ecl-button], a[eclButton]", inputs: ["variant", "containerStyleClass"] }, { kind: "directive", type: EclButtonLabelDirective, selector: "[eclButtonLabel]" }, { kind: "component", type: EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "isInverted", "ariaHidden", "focusable"] }, { kind: "directive", type: EclLinkDirective, selector: "[eclLink]", inputs: ["variant", "isNegative", "isNoVisited"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }] }); }
7931
8061
  }
7932
8062
  __decorate([
7933
8063
  coerceNumber
7934
8064
  ], EclMenuComponent.prototype, "maxLines", void 0);
7935
8065
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclMenuComponent, decorators: [{
7936
8066
  type: Component,
7937
- args: [{ selector: 'ecl-menu', template: "<div class=\"ecl-menu__overlay\" (click)=\"onOverlayClick()\"></div>\n<div class=\"ecl-container ecl-menu__container\">\n <a eclLink href=\"#\" variant=\"standalone\" class=\"ecl-menu__open\" (click)=\"onMenuOpenClick($event)\">\n <ecl-icon icon=\"hamburger\" size=\"s\"></ecl-icon> {{ 'ecl.menu.MENU' | translate }}\n </a>\n\n <section\n class=\"ecl-menu__inner\"\n #innerSection\n [class.ecl-menu__inner--expanded]=\"isMenuExpandedInMobile\"\n [class.ecl-menu__inner--has-overflow]=\"hasOverflow\">\n <header class=\"ecl-menu__inner-header\">\n <button\n eclButton\n variant=\"text\"\n class=\"ecl-menu__close\"\n containerStyleClass=\"ecl-menu__close-container\"\n (click)=\"onMenuCloseClick($event)\">\n <ecl-icon icon=\"close-filled\" size=\"s\"></ecl-icon>\n <span eclButtonLabel>{{ 'ecl.common.CLOSE' | translate }}</span>\n </button>\n\n <div class=\"ecl-menu__title\">{{ 'ecl.menu.MENU' | translate }}</div>\n\n <button eclButton variant=\"text\" class=\"ecl-menu__back\" (click)=\"onMenuBackClick($event)\">\n <ecl-icon icon=\"corner-arrow\" size=\"s\" transform=\"rotate-270\"></ecl-icon>\n <span eclButtonLabel>{{ 'ecl.common.BACK' | translate }}</span>\n </button>\n </header>\n <button\n eclButton\n #btnPrevious\n tabindex=\"-1\"\n variant=\"ghost\"\n class=\"ecl-menu__item ecl-menu__items-previous\"\n [class.ecl-menu__item--current]=\"isCurrentItemVisible\"\n [style.display]=\"isShowPrevBtn ? 'block' : 'none'\"\n (click)=\"onPrevBtnClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"s\" transform=\"rotate-270\"></ecl-icon>\n <span eclButtonLabel class=\"ecl-u-sr-only\">{{ 'ecl.common.PREVIOUS' | translate }}</span>\n </button>\n <button\n eclButton\n #btnNext\n variant=\"ghost\"\n tabindex=\"-1\"\n class=\"ecl-menu__item ecl-menu__items-next\"\n [class.ecl-menu__item--current]=\"!isCurrentItemVisible\"\n [style.display]=\"isShowNextBtn ? 'block' : 'none'\"\n (click)=\"onNextBtnClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"s\" transform=\"rotate-90\"></ecl-icon>\n <span eclButtonLabel class=\"ecl-u-sr-only\">{{ 'ecl.common.NEXT' | translate }}</span>\n </button>\n <ul class=\"ecl-menu__list\" #itemsList>\n <ng-content></ng-content>\n </ul>\n </section>\n</div>\n", styles: [":host{display:block}\n"] }]
7938
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.IterableDiffers }, { type: i1$4.BreakpointObserver }, { type: i0.Renderer2 }], propDecorators: { group: [{
8067
+ args: [{ selector: 'ecl-menu', template: "<div class=\"ecl-menu__overlay\" (click)=\"onOverlayClick()\"></div>\n<div class=\"ecl-container ecl-menu__container\">\n <a eclLink href=\"#\" variant=\"standalone\" class=\"ecl-menu__open\" (click)=\"onMenuOpenClick($event)\">\n <ecl-icon icon=\"hamburger\" size=\"s\"></ecl-icon> {{ 'ecl.menu.MENU' | translate }}\n </a>\n\n <section\n class=\"ecl-menu__inner\"\n #innerSection\n [class.ecl-menu__inner--expanded]=\"isMenuExpandedInMobile\"\n [class.ecl-menu__inner--has-overflow]=\"hasOverflow\">\n <header class=\"ecl-menu__inner-header\">\n <button\n eclButton\n variant=\"text\"\n class=\"ecl-menu__close\"\n containerStyleClass=\"ecl-menu__close-container\"\n (click)=\"onMenuCloseClick($event)\">\n <ecl-icon icon=\"close-filled\" size=\"s\"></ecl-icon>\n <span eclButtonLabel>{{ 'ecl.common.CLOSE' | translate }}</span>\n </button>\n\n <div class=\"ecl-menu__title\">{{ 'ecl.menu.MENU' | translate }}</div>\n\n <button eclButton variant=\"text\" class=\"ecl-menu__back\" (click)=\"onMenuBackClick($event)\">\n <ecl-icon icon=\"corner-arrow\" size=\"s\" transform=\"rotate-270\"></ecl-icon>\n <span eclButtonLabel>{{ 'ecl.common.BACK' | translate }}</span>\n </button>\n </header>\n <button\n eclButton\n #btnPrevious\n tabindex=\"-1\"\n variant=\"ghost\"\n class=\"ecl-menu__item ecl-menu__items-previous\"\n [class.ecl-menu__item--current]=\"isPrevBtnCurrentClass\"\n [style.display]=\"isShowPrevBtn ? 'block' : 'none'\"\n (click)=\"onPrevBtnClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"s\" transform=\"rotate-270\"></ecl-icon>\n <span eclButtonLabel class=\"ecl-u-sr-only\">{{ 'ecl.common.PREVIOUS' | translate }}</span>\n </button>\n <button\n eclButton\n #btnNext\n variant=\"ghost\"\n tabindex=\"-1\"\n class=\"ecl-menu__item ecl-menu__items-next\"\n [class.ecl-menu__item--current]=\"!isPrevBtnCurrentClass\"\n [style.display]=\"isShowNextBtn ? 'block' : 'none'\"\n (click)=\"onNextBtnClick()\">\n <ecl-icon icon=\"corner-arrow\" size=\"s\" transform=\"rotate-90\"></ecl-icon>\n <span eclButtonLabel class=\"ecl-u-sr-only\">{{ 'ecl.common.NEXT' | translate }}</span>\n </button>\n <ul class=\"ecl-menu__list\" #itemsList [style.right]=\"menuListStyleRight\" [style.left]=\"menuListStyleLeft\">\n <ng-content></ng-content>\n </ul>\n </section>\n</div>\n", styles: [":host{display:block}\n"] }]
8068
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.IterableDiffers }, { type: i1$4.BreakpointObserver }, { type: i0.Renderer2 }, { type: EclRtlService }], propDecorators: { group: [{
7939
8069
  type: Input
7940
8070
  }], maxLines: [{
7941
8071
  type: Input
@@ -12393,13 +12523,17 @@ var ShiftDirection;
12393
12523
  ShiftDirection["PREVIOUS"] = "prev";
12394
12524
  })(ShiftDirection || (ShiftDirection = {}));
12395
12525
  class EclTabsComponent extends ECLBaseDirective {
12396
- constructor(differs, cdkBreakpointObserver, cd, el) {
12526
+ constructor(differs, cdkBreakpointObserver, cd, el, eclRtlService) {
12397
12527
  super();
12398
12528
  this.differs = differs;
12399
12529
  this.cdkBreakpointObserver = cdkBreakpointObserver;
12400
12530
  this.cd = cd;
12401
12531
  this.el = el;
12532
+ this.eclRtlService = eclRtlService;
12402
12533
  this.bodyClass = 'ecl-u-mt-s';
12534
+ /**
12535
+ * @deprecated To be removed in 18 version. No alternative, should not be used.
12536
+ */
12403
12537
  this.direction = 'ltr';
12404
12538
  this.tabSelect = new EventEmitter();
12405
12539
  this.dropdownTabs = [];
@@ -12413,11 +12547,13 @@ class EclTabsComponent extends ECLBaseDirective {
12413
12547
  this.styleTransform = 'translate3d(0px, 0px, 0px)';
12414
12548
  this.destroy$ = new Subject();
12415
12549
  this.isFirstCall = true;
12550
+ this.isRtl = false;
12416
12551
  this.TIMEOUT_INTERVAL = 300;
12417
12552
  this.differ = this.differs.find([]).create();
12418
12553
  }
12419
12554
  ngOnInit() {
12420
12555
  this.observeBreakpointChanges();
12556
+ this.handleRtlChangeState();
12421
12557
  }
12422
12558
  ngAfterContentInit() {
12423
12559
  this.diff = this.differ.diff(this.tabs);
@@ -12514,8 +12650,8 @@ class EclTabsComponent extends ECLBaseDirective {
12514
12650
  this.isScrollNextBtnShow = this.index <= this.getTabsCount() - 1;
12515
12651
  const leftMargin = this.index === 0 ? 0 : this.btnPrev.nativeElement.getBoundingClientRect().width + 13;
12516
12652
  let newOffset = 0;
12517
- if (this.direction === 'rtl') {
12518
- newOffset = Math.ceil(this.getTabsAsArray()[this.index].hostElement.offsetWidth -
12653
+ if (this.isRtl) {
12654
+ newOffset = Math.ceil(this.tabsList.nativeElement.offsetWidth -
12519
12655
  this.getTabsAsArray()[this.index].hostElement.offsetLeft -
12520
12656
  this.getTabsAsArray()[this.index].hostElement.offsetWidth -
12521
12657
  leftMargin);
@@ -12528,7 +12664,7 @@ class EclTabsComponent extends ECLBaseDirective {
12528
12664
  this.isScrollNextBtnShow = false;
12529
12665
  newOffset = maxScroll;
12530
12666
  }
12531
- if (this.direction === 'rtl') {
12667
+ if (this.isRtl) {
12532
12668
  this.styleTransform = `translate3d(${newOffset}px, 0px, 0px)`;
12533
12669
  }
12534
12670
  else {
@@ -12787,13 +12923,32 @@ class EclTabsComponent extends ECLBaseDirective {
12787
12923
  this.isScrollPrevBtnShow = false;
12788
12924
  this.isScrollNextBtnShow = true;
12789
12925
  }
12790
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclTabsComponent, deps: [{ token: i0.IterableDiffers }, { token: i1$4.BreakpointObserver }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
12926
+ handleRtlChangeState() {
12927
+ const isRtlOld = this.isRtl;
12928
+ this.eclRtlService.currentRtlState$.pipe(takeUntil$1(this.destroy$)).subscribe((rtlState) => {
12929
+ setTimeout(() => {
12930
+ this.isRtl = rtlState;
12931
+ if (this.isMobileBreakpoint && this.hasRtlChanged(isRtlOld)) {
12932
+ this.handleRtlChange();
12933
+ }
12934
+ });
12935
+ });
12936
+ }
12937
+ hasRtlChanged(isRtlOld) {
12938
+ return isRtlOld !== this.isRtl;
12939
+ }
12940
+ handleRtlChange() {
12941
+ this.handleMobile();
12942
+ this.styleTransform = 'translate3d(0px, 0px, 0px)';
12943
+ this.index = 0;
12944
+ }
12945
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclTabsComponent, deps: [{ token: i0.IterableDiffers }, { token: i1$4.BreakpointObserver }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: EclRtlService }], target: i0.ɵɵFactoryTarget.Component }); }
12791
12946
  /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: EclTabsComponent, selector: "nav[eclTabs], ecl-tabs", inputs: { bodyClass: "bodyClass", direction: "direction" }, outputs: { tabSelect: "tabSelect" }, host: { listeners: { "document:click": "onClick($event.target)", "window:resize": "onWindowResize($event)" } }, queries: [{ propertyName: "tabs", predicate: i0.forwardRef(() => EclTabComponent) }], viewQueries: [{ propertyName: "tabsList", first: true, predicate: ["tabsList"], descendants: true }, { propertyName: "moreButton", first: true, predicate: ["moreButton"], descendants: true }, { propertyName: "btnPrev", first: true, predicate: ["btnPrev"], descendants: true }, { propertyName: "btnNext", first: true, predicate: ["btnNext"], descendants: true }, { propertyName: "dropdownList", first: true, predicate: ["dropdownList"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<nav class=\"ecl-tabs\">\n <div class=\"ecl-tabs__container\">\n <ul\n class=\"ecl-tabs__list\"\n role=\"tablist\"\n #tabsList\n [style.width]=\"getTabsWidthStyle()\"\n [style.transform]=\"styleTransform\"\n [style.transition-duration]=\"'0' || getTransitionDuration()\">\n <ng-content select=\"ecl-tab, li[eclTab]\"></ng-content>\n <ecl-tab-more [isHidden]=\"!isMoreButtonShow\">\n <button\n #moreButton\n eclButton\n class=\"ecl-tabs__toggle\"\n tabindex=\"-1\"\n variant=\"secondary\"\n [attr.aria-expanded]=\"isDropdownExpanded\"\n [class.ecl-tabs__toggle--active]=\"isMoreButtonActive\"\n (click)=\"onDropdownToggle()\">\n <span eclButtonLabel>\n {{ 'ecl.common.MORE' | translate }}\n ({{ getHiddenTabsCount() }})\n </span>\n <ecl-icon icon=\"corner-arrow\" transform=\"rotate-180\" size=\"fluid\"></ecl-icon>\n </button>\n <ul\n *ngIf=\"listTabs.length > 0\"\n class=\"ecl-tabs__dropdown\"\n [class.ecl-tabs__dropdown--show]=\"isDropdownExpanded\"\n #dropdownList>\n <ng-container *ngFor=\"let tab of listTabs; let i = index\">\n <ecl-tab\n [isActive]=\"tab.isActive\"\n [isHidden]=\"tab.isHidden\"\n (click)=\"onTabSelect(tab)\"\n (keydown.arrowRight)=\"onTabKeydownArrowRight(i)\"\n (keydown.arrowLeft)=\"onTabKeydownArrowLeft(i)\"\n (keydown.home)=\"onTabKeydownHome()\"\n (keydown.end)=\"onTabKeydownEnd()\"\n (keydown.enter)=\"onTabSelect(tab)\"\n (keydown.tab)=\"onTabBlur()\">\n <ecl-tab-label>{{ getTabLabel(i) }}</ecl-tab-label>\n </ecl-tab>\n </ng-container>\n </ul>\n </ecl-tab-more>\n </ul>\n </div>\n\n <div class=\"ecl-tabs__controls\">\n <button\n #btnPrev\n [attr.aria-hidden]=\"true\"\n class=\"ecl-tabs__prev\"\n [class.ecl-u-d-none]=\"!isScrollPrevBtnShow\"\n [class.ecl-u-d-block]=\"isScrollPrevBtnShow\"\n (click)=\"onScrollPrev()\">\n <ecl-icon isInverted icon=\"corner-arrow\" transform=\"rotate-270\" size=\"m\" class=\"ecl-u-d-block\"> </ecl-icon>\n <span class=\"ecl-u-sr-only\"></span>\n </button>\n <button\n #btnNext\n [attr.aria-hidden]=\"true\"\n class=\"ecl-tabs__next\"\n [class.ecl-u-d-none]=\"!isScrollNextBtnShow\"\n [class.ecl-u-d-block]=\"isScrollNextBtnShow\"\n (click)=\"onScrollNext()\">\n <ecl-icon isInverted icon=\"corner-arrow\" color=\"inverted\" transform=\"rotate-90\" size=\"m\" class=\"ecl-u-d-block\"> </ecl-icon>\n <span class=\"ecl-u-sr-only\"></span>\n </button>\n </div>\n</nav>\n\n<ng-container *ngFor=\"let tab of tabs.toArray()\">\n <div class=\"{{ bodyClass }}\" *ngIf=\"tab.isActive\">\n <ng-container *ngTemplateOutlet=\"tab.contentTemplate\"></ng-container>\n </div>\n</ng-container>\n<ng-container *ngFor=\"let tab of listTabs\">\n <div class=\"{{ bodyClass }}\" *ngIf=\"tab.isActive\">\n <ng-container *ngTemplateOutlet=\"tab.contentTemplate\"></ng-container>\n </div>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: EclButtonComponent, selector: "button[eclButton], button[ecl-button], a[eclButton]", inputs: ["variant", "containerStyleClass"] }, { kind: "directive", type: EclButtonLabelDirective, selector: "[eclButtonLabel]" }, { kind: "component", type: EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "isInverted", "ariaHidden", "focusable"] }, { kind: "component", type: EclTabComponent, selector: "ecl-tab, li[eclTab]", inputs: ["id", "isHidden", "isActive"], outputs: ["selectTab", "keydownTab"] }, { kind: "component", type: EclTabLabelComponent, selector: "ecl-tab-label" }, { kind: "component", type: EclTabMoreComponent, selector: "ecl-tab-more", inputs: ["isHidden"] }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }
12792
12947
  }
12793
12948
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EclTabsComponent, decorators: [{
12794
12949
  type: Component,
12795
12950
  args: [{ selector: 'nav[eclTabs], ecl-tabs', encapsulation: ViewEncapsulation.None, template: "<nav class=\"ecl-tabs\">\n <div class=\"ecl-tabs__container\">\n <ul\n class=\"ecl-tabs__list\"\n role=\"tablist\"\n #tabsList\n [style.width]=\"getTabsWidthStyle()\"\n [style.transform]=\"styleTransform\"\n [style.transition-duration]=\"'0' || getTransitionDuration()\">\n <ng-content select=\"ecl-tab, li[eclTab]\"></ng-content>\n <ecl-tab-more [isHidden]=\"!isMoreButtonShow\">\n <button\n #moreButton\n eclButton\n class=\"ecl-tabs__toggle\"\n tabindex=\"-1\"\n variant=\"secondary\"\n [attr.aria-expanded]=\"isDropdownExpanded\"\n [class.ecl-tabs__toggle--active]=\"isMoreButtonActive\"\n (click)=\"onDropdownToggle()\">\n <span eclButtonLabel>\n {{ 'ecl.common.MORE' | translate }}\n ({{ getHiddenTabsCount() }})\n </span>\n <ecl-icon icon=\"corner-arrow\" transform=\"rotate-180\" size=\"fluid\"></ecl-icon>\n </button>\n <ul\n *ngIf=\"listTabs.length > 0\"\n class=\"ecl-tabs__dropdown\"\n [class.ecl-tabs__dropdown--show]=\"isDropdownExpanded\"\n #dropdownList>\n <ng-container *ngFor=\"let tab of listTabs; let i = index\">\n <ecl-tab\n [isActive]=\"tab.isActive\"\n [isHidden]=\"tab.isHidden\"\n (click)=\"onTabSelect(tab)\"\n (keydown.arrowRight)=\"onTabKeydownArrowRight(i)\"\n (keydown.arrowLeft)=\"onTabKeydownArrowLeft(i)\"\n (keydown.home)=\"onTabKeydownHome()\"\n (keydown.end)=\"onTabKeydownEnd()\"\n (keydown.enter)=\"onTabSelect(tab)\"\n (keydown.tab)=\"onTabBlur()\">\n <ecl-tab-label>{{ getTabLabel(i) }}</ecl-tab-label>\n </ecl-tab>\n </ng-container>\n </ul>\n </ecl-tab-more>\n </ul>\n </div>\n\n <div class=\"ecl-tabs__controls\">\n <button\n #btnPrev\n [attr.aria-hidden]=\"true\"\n class=\"ecl-tabs__prev\"\n [class.ecl-u-d-none]=\"!isScrollPrevBtnShow\"\n [class.ecl-u-d-block]=\"isScrollPrevBtnShow\"\n (click)=\"onScrollPrev()\">\n <ecl-icon isInverted icon=\"corner-arrow\" transform=\"rotate-270\" size=\"m\" class=\"ecl-u-d-block\"> </ecl-icon>\n <span class=\"ecl-u-sr-only\"></span>\n </button>\n <button\n #btnNext\n [attr.aria-hidden]=\"true\"\n class=\"ecl-tabs__next\"\n [class.ecl-u-d-none]=\"!isScrollNextBtnShow\"\n [class.ecl-u-d-block]=\"isScrollNextBtnShow\"\n (click)=\"onScrollNext()\">\n <ecl-icon isInverted icon=\"corner-arrow\" color=\"inverted\" transform=\"rotate-90\" size=\"m\" class=\"ecl-u-d-block\"> </ecl-icon>\n <span class=\"ecl-u-sr-only\"></span>\n </button>\n </div>\n</nav>\n\n<ng-container *ngFor=\"let tab of tabs.toArray()\">\n <div class=\"{{ bodyClass }}\" *ngIf=\"tab.isActive\">\n <ng-container *ngTemplateOutlet=\"tab.contentTemplate\"></ng-container>\n </div>\n</ng-container>\n<ng-container *ngFor=\"let tab of listTabs\">\n <div class=\"{{ bodyClass }}\" *ngIf=\"tab.isActive\">\n <ng-container *ngTemplateOutlet=\"tab.contentTemplate\"></ng-container>\n </div>\n</ng-container>\n" }]
12796
- }], ctorParameters: () => [{ type: i0.IterableDiffers }, { type: i1$4.BreakpointObserver }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }], propDecorators: { bodyClass: [{
12951
+ }], ctorParameters: () => [{ type: i0.IterableDiffers }, { type: i1$4.BreakpointObserver }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: EclRtlService }], propDecorators: { bodyClass: [{
12797
12952
  type: Input
12798
12953
  }], direction: [{
12799
12954
  type: Input
@@ -13441,5 +13596,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImpor
13441
13596
  * Generated bundle index. Do not edit.
13442
13597
  */
13443
13598
 
13444
- export { ECLClickOutsideDirective, ECLTheme, ECL_DATE_PICKER_VALUE_ACCESSOR, ECL_RATINGFIELD_VALUE_ACCESSOR, ECL_SEARCH_FORM_VALUE_ACCESSOR, ECL_SITE_HEADER_SEARCH_VALUE_ACCESSOR, EclAccordionComponent, EclAccordionComponentModule, EclAccordionItemComponent, EclAccordionToggleEvent, EclAllModule, EclAppComponent, EclAppComponentModule, EclAppLanguageDismissEvent, EclBannerComponent, EclBannerComponentModule, EclBannerCreditDirective, EclBannerDescriptionDirective, EclBannerDescriptionTextDirective, EclBannerImageDirective, EclBannerPictureDirective, EclBannerTitleDirective, EclBannerTitleTextDirective, EclBaseEvent, EclBlockquoteComponent, EclBlockquoteComponentModule, EclBlockquoteImageDirective, EclBlockquotePictureDirective, EclBreadcrumbComponent, EclBreadcrumbComponentModule, EclBreadcrumbSegmentClickEvent, EclBreadcrumbSegmentComponent, EclButtonComponent, EclButtonComponentModule, EclButtonLabelDirective, EclCardBodyComponent, EclCardComponent, EclCardComponentModule, EclCardImageComponent, EclCardImageDirective, EclCardPictureDirective, EclCarouselComponent, EclCarouselComponentModule, EclCarouselItemComponent, EclCategoryFilterComponent, EclCategoryFilterItemComponent, EclCategoryFilterItemSelectEvent, EclCategoryFilterListComponent, EclCategoryFilterModule, EclCheckboxDirective, EclCheckboxHelpComponent, EclCheckboxInputDirective, EclCheckboxLabelComponent, EclCheckboxModule, EclContentBlockComponent, EclContentBlockComponentModule, EclContentBlockDescriptionDirective, EclContentBlockLabelDirective, EclContentBlockLabelsDirective, EclContentBlockLinkDirective, EclContentBlockLinksContainerDirective, EclContentBlockLinksDirective, EclContentBlockListContainerDirective, EclContentBlockListDirective, EclContentBlockPrimaryMetaDirective, EclContentBlockPrimaryMetasDirective, EclContentBlockSecondaryMetaDirective, EclContentBlockSecondaryMetaIconDirective, EclContentBlockSecondaryMetaLabelDirective, EclContentBlockSecondaryMetasDirective, EclContentBlockTagDirective, EclContentBlockTagsDirective, EclContentBlockTitleDirective, EclContentItemComponent, EclContentItemComponentModule, EclContentItemImageDirective, EclContentItemPictureDirective, EclDateBlockComponent, EclDateBlockComponentModule, EclDatePickerDatePickedEvent, EclDatePickerDirective, EclDatePickerDirectiveModule, EclDefaultLanguageService, EclDescriptionListDefinitionComponent, EclDescriptionListDefinitionItemDirective, EclDescriptionListDirective, EclDescriptionListTermDirective, EclDomEvent, EclExpandableComponent, EclExpandableComponentModule, EclExpandableToggleEvent, EclFactFiguresComponent, EclFactFiguresComponentModule, EclFactFiguresDescriptionComponent, EclFactFiguresItemComponent, EclFactFiguresTitleComponent, EclFactFiguresValueComponent, EclFactFiguresViewAllComponent, EclFeaturedComponent, EclFeaturedItemComponent, EclFeaturedItemDescriptionComponent, EclFeaturedItemLinkDirective, EclFeaturedModule, EclFeedbackMessageDirective, EclFeedbackMessageDirectiveModule, EclFileComponent, EclFileComponentModule, EclFileDownloadEvent, EclFileImageDirective, EclFileItemComponent, EclFileItemsComponent, EclFileItemsToggleEvent, EclFilePictureDirective, EclFileTaxonomyComponent, EclFileUploadDirective, EclFileUploadDirectiveModule, EclFileUploadFileSelectedEvent, EclFormGroupComponent, EclFormGroupComponentModule, EclFormLabelComponent, EclFormLabelComponentModule, EclGalleryComponent, EclGalleryComponentModule, EclGalleryDownloadEvent, EclGalleryFooterComponent, EclGalleryFullScreenEvent, EclGalleryHideEvent, EclGalleryItemClickEvent, EclGalleryItemComponent, EclGalleryItemEvent, EclGalleryMediaDirective, EclGalleryMediaSource, EclGalleryMediaTrack, EclGalleryPictureDirective, EclGalleryShareEvent, EclGalleryShowEvent, EclGalleryToggleItemsEvent, EclHelpBlockDirective, EclHelpBlockDirectiveModule, EclHiddenDirective, EclHiddenModule, EclIconComponent, EclIconComponentModule, EclInpageNavigationComponent, EclInpageNavigationComponentModule, EclInpageNavigationItemClickEvent, EclInpageNavigationItemComponent, EclInpageNavigationSectionEnterEvent, EclLabelDirective, EclLabelDirectiveModule, EclLanguageService, EclLinkDirective, EclLinkDirectiveModule, EclLinkLabelDirective, EclListDirectiveModule, EclListIllustrationComponent, EclListIllustrationComponentModule, EclListIllustrationIconDirective, EclListIllustrationImageComponent, EclListIllustrationImageDirective, EclListIllustrationItemComponent, EclListIllustrationPictureDirective, EclMediaContainerComponent, EclMediaContainerComponentModule, EclMediaContainerIframeDirective, EclMediaContainerItemDirective, EclMediaContainerPictureDirective, EclMenuComponent, EclMenuComponentModule, EclMenuItemCaretEvent, EclMenuItemComponent, EclMenuItemFocusEvent, EclMenuItemHoverEvent, EclMenuItemHoverOutEvent, EclMenuItemKeydownEvent, EclMenuItemParentFocusEvent, EclMenuItemSelectEvent, EclMenuMegaComponent, EclMenuMegaItemComponent, EclMessageCloseEvent, EclMessageComponent, EclMessageComponentModule, EclMessageTitleDirective, EclModalBodyComponent, EclModalCloseDirective, EclModalCloseEvent, EclModalComponent, EclModalComponentModule, EclModalFooterComponent, EclModalHeaderComponent, EclModalOpenEvent, EclModalTriggerDirective, EclMultiselectComponent, EclMultiselectComponentModule, EclMultiselectOptionDirective, EclNavigationListComponent, EclNavigationListComponentModule, EclNavigationListImageComponent, EclNavigationListImageDirective, EclNavigationListItemComponent, EclNavigationListPictureDirective, EclNewsTickerComponent, EclNewsTickerComponentModule, EclNewsTickerItemComponent, EclNewsTickerItemEvent, EclOrderedListDirective, EclOrderedListItemDirective, EclPageHeaderBackgroundImageDirective, EclPageHeaderBackgroundPictureDirective, EclPageHeaderComponent, EclPageHeaderComponentModule, EclPageHeaderDescriptionContainerComponent, EclPageHeaderDescriptionDirective, EclPageHeaderDescriptionPictureDirective, EclPageHeaderDescriptionThumbnailDirective, EclPageHeaderMetaDirective, EclPageHeaderMetaItemDirective, EclPageHeaderTitleDirective, EclPaginationComponent, EclPaginationComponentModule, EclPaginationEvent, EclPaginationItemClickEvent, EclPaginationItemComponent, EclPopoverComponent, EclPopoverComponentModule, EclPopoverContentDirective, EclPopoverItemDirective, EclPopoverLinkDirective, EclPopoverListDirective, EclPopoverToggleDirective, EclRadioDirective, EclRadioDirectiveModule, EclRadioHelpComponent, EclRadioInputDirective, EclRadioLabelComponent, EclRangeDirective, EclRangeDirectiveModule, EclRangeEvent, EclRangeValueComponent, EclRatingChangeEvent, EclRatingFieldComponent, EclRatingFieldComponentModule, EclSearchFormComponent, EclSearchFormComponentModule, EclSearchFormEvent, EclSelectContainerComponent, EclSelectDirective, EclSelectDirectiveModule, EclSiteFooterColumnDirective, EclSiteFooterComponent, EclSiteFooterComponentModule, EclSiteFooterContentDirective, EclSiteFooterDescriptionDirective, EclSiteFooterFixedContentECComponent, EclSiteFooterFixedContentEUComponent, EclSiteFooterLinkDirective, EclSiteFooterListDirective, EclSiteFooterListItemDirective, EclSiteFooterLogoDirective, EclSiteFooterLogoImageDesktopDirective, EclSiteFooterLogoImageDirective, EclSiteFooterLogoItemDirective, EclSiteFooterLogoLinkDirective, EclSiteFooterLogoListDirective, EclSiteFooterPictureDirective, EclSiteFooterRowDirective, EclSiteFooterSectionDirective, EclSiteFooterTitleDirective, EclSiteFooterTitleLinkDirective, EclSiteHeaderActionComponent, EclSiteHeaderBannerTopComponent, EclSiteHeaderComponent, EclSiteHeaderComponentModule, EclSiteHeaderCtaDirective, EclSiteHeaderEnvironmentComponent, EclSiteHeaderLanguageClickEvent, EclSiteHeaderLanguageCloseEvent, EclSiteHeaderLanguageComponent, EclSiteHeaderLanguagePopoverComponent, EclSiteHeaderLanguageSelectedEvent, EclSiteHeaderLoginBoxToggleEvent, EclSiteHeaderLoginComponent, EclSiteHeaderLoginDescriptionDirective, EclSiteHeaderLoginEvent, EclSiteHeaderLoginSeparatorDirective, EclSiteHeaderLogoClickEvent, EclSiteHeaderMessageComponent, EclSiteHeaderSearchComponent, EclSiteHeaderSearchEvent, EclSiteHeaderSearchToggleEvent, EclSlideEvent, EclSocialMediaFollowComponent, EclSocialMediaFollowComponentModule, EclSocialMediaFollowItemClickEvent, EclSocialMediaFollowItemComponent, EclSocialMediaFollowLinkDirective, EclSocialMediaShareComponent, EclSocialMediaShareComponentModule, EclSocialMediaShareItemClickEvent, EclSocialMediaShareItemComponent, EclSocialMediaShareLinkDirective, EclSortTableEvent, EclSpinnerComponent, EclSpinnerComponentModule, EclSpinnerLabelDirective, EclStickyContainerComponent, EclStickyContainerComponentModule, EclTabComponent, EclTabLabelComponent, EclTabMoreComponent, EclTabSelectEvent, EclTableBodyDirective, EclTableCellDirective, EclTableCellGroupDirective, EclTableDirective, EclTableDirectiveModule, EclTableHeadDirective, EclTableHeaderDirective, EclTableResponsiveDirective, EclTableRowDirective, EclTableSortButtonComponent, EclTabsComponent, EclTabsComponentModule, EclTagComponent, EclTagComponentModule, EclTagRemoveEvent, EclTextAreaDirective, EclTextAreaDirectiveModule, EclTextInputDirective, EclTextInputDirectiveModule, EclThemeService, EclTimelineComponent, EclTimelineComponentModule, EclTimelineItemComponent, EclTimelineItemLabelDirective, EclTimelineItemTitleDirective, EclTimelineItemToggleEvent, EclTimelineItemTogglerComponent, EclUnorderedListDirective, EclUnorderedListItemDirective, KeyCode, ShiftDirection, SortOrder, hasNextSiblingWithAttribute, hasPreviousSiblingWithAttribute };
13599
+ export { ECLClickOutsideDirective, ECLTheme, ECL_DATE_PICKER_VALUE_ACCESSOR, ECL_RATINGFIELD_VALUE_ACCESSOR, ECL_SEARCH_FORM_VALUE_ACCESSOR, ECL_SITE_HEADER_SEARCH_VALUE_ACCESSOR, EclAccordionComponent, EclAccordionComponentModule, EclAccordionItemComponent, EclAccordionToggleEvent, EclAllModule, EclAppComponent, EclAppComponentModule, EclAppLanguageDismissEvent, EclBannerComponent, EclBannerComponentModule, EclBannerCreditDirective, EclBannerDescriptionDirective, EclBannerDescriptionTextDirective, EclBannerImageDirective, EclBannerPictureDirective, EclBannerTitleDirective, EclBannerTitleTextDirective, EclBaseEvent, EclBlockquoteComponent, EclBlockquoteComponentModule, EclBlockquoteImageDirective, EclBlockquotePictureDirective, EclBreadcrumbComponent, EclBreadcrumbComponentModule, EclBreadcrumbSegmentClickEvent, EclBreadcrumbSegmentComponent, EclButtonComponent, EclButtonComponentModule, EclButtonLabelDirective, EclCardBodyComponent, EclCardComponent, EclCardComponentModule, EclCardImageComponent, EclCardImageDirective, EclCardPictureDirective, EclCarouselComponent, EclCarouselComponentModule, EclCarouselItemComponent, EclCategoryFilterComponent, EclCategoryFilterItemComponent, EclCategoryFilterItemSelectEvent, EclCategoryFilterListComponent, EclCategoryFilterModule, EclCheckboxDirective, EclCheckboxHelpComponent, EclCheckboxInputDirective, EclCheckboxLabelComponent, EclCheckboxModule, EclContentBlockComponent, EclContentBlockComponentModule, EclContentBlockDescriptionDirective, EclContentBlockLabelDirective, EclContentBlockLabelsDirective, EclContentBlockLinkDirective, EclContentBlockLinksContainerDirective, EclContentBlockLinksDirective, EclContentBlockListContainerDirective, EclContentBlockListDirective, EclContentBlockPrimaryMetaDirective, EclContentBlockPrimaryMetasDirective, EclContentBlockSecondaryMetaDirective, EclContentBlockSecondaryMetaIconDirective, EclContentBlockSecondaryMetaLabelDirective, EclContentBlockSecondaryMetasDirective, EclContentBlockTagDirective, EclContentBlockTagsDirective, EclContentBlockTitleDirective, EclContentItemComponent, EclContentItemComponentModule, EclContentItemImageDirective, EclContentItemPictureDirective, EclDateBlockComponent, EclDateBlockComponentModule, EclDatePickerDatePickedEvent, EclDatePickerDirective, EclDatePickerDirectiveModule, EclDefaultLanguageService, EclDescriptionListDefinitionComponent, EclDescriptionListDefinitionItemDirective, EclDescriptionListDirective, EclDescriptionListTermDirective, EclDomEvent, EclExpandableComponent, EclExpandableComponentModule, EclExpandableToggleEvent, EclFactFiguresComponent, EclFactFiguresComponentModule, EclFactFiguresDescriptionComponent, EclFactFiguresItemComponent, EclFactFiguresTitleComponent, EclFactFiguresValueComponent, EclFactFiguresViewAllComponent, EclFeaturedComponent, EclFeaturedItemComponent, EclFeaturedItemDescriptionComponent, EclFeaturedItemLinkDirective, EclFeaturedModule, EclFeedbackMessageDirective, EclFeedbackMessageDirectiveModule, EclFileComponent, EclFileComponentModule, EclFileDownloadEvent, EclFileImageDirective, EclFileItemComponent, EclFileItemsComponent, EclFileItemsToggleEvent, EclFilePictureDirective, EclFileTaxonomyComponent, EclFileUploadDirective, EclFileUploadDirectiveModule, EclFileUploadFileSelectedEvent, EclFormGroupComponent, EclFormGroupComponentModule, EclFormLabelComponent, EclFormLabelComponentModule, EclGalleryComponent, EclGalleryComponentModule, EclGalleryDownloadEvent, EclGalleryFooterComponent, EclGalleryFullScreenEvent, EclGalleryHideEvent, EclGalleryItemClickEvent, EclGalleryItemComponent, EclGalleryItemEvent, EclGalleryMediaDirective, EclGalleryMediaSource, EclGalleryMediaTrack, EclGalleryPictureDirective, EclGalleryShareEvent, EclGalleryShowEvent, EclGalleryToggleItemsEvent, EclHelpBlockDirective, EclHelpBlockDirectiveModule, EclHiddenDirective, EclHiddenModule, EclIconComponent, EclIconComponentModule, EclInpageNavigationComponent, EclInpageNavigationComponentModule, EclInpageNavigationItemClickEvent, EclInpageNavigationItemComponent, EclInpageNavigationSectionEnterEvent, EclLabelDirective, EclLabelDirectiveModule, EclLanguageService, EclLinkDirective, EclLinkDirectiveModule, EclLinkLabelDirective, EclListDirectiveModule, EclListIllustrationComponent, EclListIllustrationComponentModule, EclListIllustrationIconDirective, EclListIllustrationImageComponent, EclListIllustrationImageDirective, EclListIllustrationItemComponent, EclListIllustrationPictureDirective, EclMediaContainerComponent, EclMediaContainerComponentModule, EclMediaContainerIframeDirective, EclMediaContainerItemDirective, EclMediaContainerPictureDirective, EclMenuComponent, EclMenuComponentModule, EclMenuItemCaretEvent, EclMenuItemComponent, EclMenuItemFocusEvent, EclMenuItemHoverEvent, EclMenuItemHoverOutEvent, EclMenuItemKeydownEvent, EclMenuItemParentFocusEvent, EclMenuItemSelectEvent, EclMenuMegaComponent, EclMenuMegaItemComponent, EclMessageCloseEvent, EclMessageComponent, EclMessageComponentModule, EclMessageTitleDirective, EclModalBodyComponent, EclModalCloseDirective, EclModalCloseEvent, EclModalComponent, EclModalComponentModule, EclModalFooterComponent, EclModalHeaderComponent, EclModalOpenEvent, EclModalTriggerDirective, EclMultiselectComponent, EclMultiselectComponentModule, EclMultiselectOptionDirective, EclNavigationListComponent, EclNavigationListComponentModule, EclNavigationListImageComponent, EclNavigationListImageDirective, EclNavigationListItemComponent, EclNavigationListPictureDirective, EclNewsTickerComponent, EclNewsTickerComponentModule, EclNewsTickerItemComponent, EclNewsTickerItemEvent, EclOrderedListDirective, EclOrderedListItemDirective, EclPageHeaderBackgroundImageDirective, EclPageHeaderBackgroundPictureDirective, EclPageHeaderComponent, EclPageHeaderComponentModule, EclPageHeaderDescriptionContainerComponent, EclPageHeaderDescriptionDirective, EclPageHeaderDescriptionPictureDirective, EclPageHeaderDescriptionThumbnailDirective, EclPageHeaderMetaDirective, EclPageHeaderMetaItemDirective, EclPageHeaderTitleDirective, EclPaginationComponent, EclPaginationComponentModule, EclPaginationEvent, EclPaginationItemClickEvent, EclPaginationItemComponent, EclPopoverComponent, EclPopoverComponentModule, EclPopoverContentDirective, EclPopoverItemDirective, EclPopoverLinkDirective, EclPopoverListDirective, EclPopoverToggleDirective, EclRadioDirective, EclRadioDirectiveModule, EclRadioHelpComponent, EclRadioInputDirective, EclRadioLabelComponent, EclRangeDirective, EclRangeDirectiveModule, EclRangeEvent, EclRangeValueComponent, EclRatingChangeEvent, EclRatingFieldComponent, EclRatingFieldComponentModule, EclRtlService, EclSearchFormComponent, EclSearchFormComponentModule, EclSearchFormEvent, EclSelectContainerComponent, EclSelectDirective, EclSelectDirectiveModule, EclSiteFooterColumnDirective, EclSiteFooterComponent, EclSiteFooterComponentModule, EclSiteFooterContentDirective, EclSiteFooterDescriptionDirective, EclSiteFooterFixedContentECComponent, EclSiteFooterFixedContentEUComponent, EclSiteFooterLinkDirective, EclSiteFooterListDirective, EclSiteFooterListItemDirective, EclSiteFooterLogoDirective, EclSiteFooterLogoImageDesktopDirective, EclSiteFooterLogoImageDirective, EclSiteFooterLogoItemDirective, EclSiteFooterLogoLinkDirective, EclSiteFooterLogoListDirective, EclSiteFooterPictureDirective, EclSiteFooterRowDirective, EclSiteFooterSectionDirective, EclSiteFooterTitleDirective, EclSiteFooterTitleLinkDirective, EclSiteHeaderActionComponent, EclSiteHeaderBannerTopComponent, EclSiteHeaderComponent, EclSiteHeaderComponentModule, EclSiteHeaderCtaDirective, EclSiteHeaderEnvironmentComponent, EclSiteHeaderLanguageClickEvent, EclSiteHeaderLanguageCloseEvent, EclSiteHeaderLanguageComponent, EclSiteHeaderLanguagePopoverComponent, EclSiteHeaderLanguageSelectedEvent, EclSiteHeaderLoginBoxToggleEvent, EclSiteHeaderLoginComponent, EclSiteHeaderLoginDescriptionDirective, EclSiteHeaderLoginEvent, EclSiteHeaderLoginSeparatorDirective, EclSiteHeaderLogoClickEvent, EclSiteHeaderMessageComponent, EclSiteHeaderSearchComponent, EclSiteHeaderSearchEvent, EclSiteHeaderSearchToggleEvent, EclSlideEvent, EclSocialMediaFollowComponent, EclSocialMediaFollowComponentModule, EclSocialMediaFollowItemClickEvent, EclSocialMediaFollowItemComponent, EclSocialMediaFollowLinkDirective, EclSocialMediaShareComponent, EclSocialMediaShareComponentModule, EclSocialMediaShareItemClickEvent, EclSocialMediaShareItemComponent, EclSocialMediaShareLinkDirective, EclSortTableEvent, EclSpinnerComponent, EclSpinnerComponentModule, EclSpinnerLabelDirective, EclStickyContainerComponent, EclStickyContainerComponentModule, EclTabComponent, EclTabLabelComponent, EclTabMoreComponent, EclTabSelectEvent, EclTableBodyDirective, EclTableCellDirective, EclTableCellGroupDirective, EclTableDirective, EclTableDirectiveModule, EclTableHeadDirective, EclTableHeaderDirective, EclTableResponsiveDirective, EclTableRowDirective, EclTableSortButtonComponent, EclTabsComponent, EclTabsComponentModule, EclTagComponent, EclTagComponentModule, EclTagRemoveEvent, EclTextAreaDirective, EclTextAreaDirectiveModule, EclTextInputDirective, EclTextInputDirectiveModule, EclThemeService, EclTimelineComponent, EclTimelineComponentModule, EclTimelineItemComponent, EclTimelineItemLabelDirective, EclTimelineItemTitleDirective, EclTimelineItemToggleEvent, EclTimelineItemTogglerComponent, EclUnorderedListDirective, EclUnorderedListItemDirective, KeyCode, ShiftDirection, SortOrder, hasNextSiblingWithAttribute, hasPreviousSiblingWithAttribute };
13445
13600
  //# sourceMappingURL=eui-ecl.mjs.map