@eui/ecl 15.0.0-next.19 → 15.0.0-next.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/components/EclInpageNavigationComponent.html +39 -1
- package/docs/components/EclStickyContainerComponent.html +40 -82
- package/docs/dependencies.html +2 -2
- package/docs/injectables/EclDefaultLanguageService.html +34 -0
- package/docs/js/search/search_index.js +2 -2
- package/esm2020/lib/components/ecl-app/ecl-app.component.mjs +2 -2
- package/esm2020/lib/components/ecl-inpage-navigation/ecl-inpage-navigation.component.mjs +7 -3
- package/esm2020/lib/components/ecl-sticky-container/ecl-sticky-container.component.mjs +3 -3
- package/esm2020/lib/services/ecl-default-language.service.mjs +8 -3
- package/fesm2015/eui-ecl.mjs +61 -52
- package/fesm2015/eui-ecl.mjs.map +1 -1
- package/fesm2020/eui-ecl.mjs +61 -52
- package/fesm2020/eui-ecl.mjs.map +1 -1
- package/lib/components/ecl-app/ecl-app.component.d.ts.map +1 -1
- package/lib/components/ecl-inpage-navigation/ecl-inpage-navigation.component.d.ts +3 -1
- package/lib/components/ecl-inpage-navigation/ecl-inpage-navigation.component.d.ts.map +1 -1
- package/lib/components/ecl-sticky-container/ecl-sticky-container.component.d.ts +2 -2
- package/lib/components/ecl-sticky-container/ecl-sticky-container.component.d.ts.map +1 -1
- package/lib/services/ecl-default-language.service.d.ts +4 -1
- package/lib/services/ecl-default-language.service.d.ts.map +1 -1
- package/package.json +1 -1
package/fesm2020/eui-ecl.mjs
CHANGED
|
@@ -8,8 +8,8 @@ import { __decorate } from 'tslib';
|
|
|
8
8
|
import { coerceBoolean, coerceElement, coerceArray, coerceNumber, DefaultConfig, EuiPagination } from '@eui/base';
|
|
9
9
|
import * as i2$1 from '@eui/core';
|
|
10
10
|
import { GLOBAL_CONFIG_TOKEN } from '@eui/core';
|
|
11
|
-
import { Subject, takeUntil
|
|
12
|
-
import { takeUntil, mergeWith } from 'rxjs/operators';
|
|
11
|
+
import { Subject, takeUntil, delay, fromEvent, of } from 'rxjs';
|
|
12
|
+
import { takeUntil as takeUntil$1, mergeWith } from 'rxjs/operators';
|
|
13
13
|
import * as i1$1 from '@angular/forms';
|
|
14
14
|
import { NG_VALUE_ACCESSOR, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
15
15
|
import * as i2$2 from '@angular/router';
|
|
@@ -548,8 +548,13 @@ class EclDefaultLanguageService {
|
|
|
548
548
|
this.i18nService = i18nService;
|
|
549
549
|
this.currentLanguage$ = new Subject();
|
|
550
550
|
this.FALLBACK_LANGUAGE = { code: 'en', label: 'English' };
|
|
551
|
+
this.destroy$ = new Subject();
|
|
551
552
|
this.handleActiveLanguageChangeState();
|
|
552
553
|
}
|
|
554
|
+
ngOnDestroy() {
|
|
555
|
+
this.destroy$.next(true);
|
|
556
|
+
this.destroy$.unsubscribe();
|
|
557
|
+
}
|
|
553
558
|
getCurrentLanguage() {
|
|
554
559
|
return this.currentLanguage;
|
|
555
560
|
}
|
|
@@ -774,7 +779,7 @@ class EclDefaultLanguageService {
|
|
|
774
779
|
];
|
|
775
780
|
}
|
|
776
781
|
handleActiveLanguageChangeState() {
|
|
777
|
-
this.i18nService.getState().subscribe(state => {
|
|
782
|
+
this.i18nService.getState().pipe(takeUntil(this.destroy$)).subscribe(state => {
|
|
778
783
|
this.currentLanguage = this.getLanguageByCode(state.activeLang) || this.FALLBACK_LANGUAGE;
|
|
779
784
|
this.currentLanguage$.next(this.currentLanguage);
|
|
780
785
|
});
|
|
@@ -888,7 +893,7 @@ class EclLanguageListComponent extends ECLBaseDirective {
|
|
|
888
893
|
item.isActive = true;
|
|
889
894
|
}
|
|
890
895
|
item.itemClick
|
|
891
|
-
.pipe(takeUntil(this.destroy$))
|
|
896
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
892
897
|
.subscribe(() => {
|
|
893
898
|
this.eclLanguageListItems.forEach(it => {
|
|
894
899
|
it.isActive = false;
|
|
@@ -1420,13 +1425,13 @@ class EclSiteHeaderComponent extends ECLBaseDirective {
|
|
|
1420
1425
|
if (this.eclLoginComponent && this.eclSearchComponent) {
|
|
1421
1426
|
this.eclLoginComponent
|
|
1422
1427
|
.loginBoxToggle
|
|
1423
|
-
.pipe(takeUntil
|
|
1428
|
+
.pipe(takeUntil(this.destroy$))
|
|
1424
1429
|
.subscribe(evt => {
|
|
1425
1430
|
this.eclSearchComponent.isSearchBoxActive = false;
|
|
1426
1431
|
});
|
|
1427
1432
|
this.eclSearchComponent
|
|
1428
1433
|
.searchToggle
|
|
1429
|
-
.pipe(takeUntil
|
|
1434
|
+
.pipe(takeUntil(this.destroy$))
|
|
1430
1435
|
.subscribe(evt => {
|
|
1431
1436
|
this.eclLoginComponent.isLoginBoxActive = false;
|
|
1432
1437
|
});
|
|
@@ -1434,7 +1439,7 @@ class EclSiteHeaderComponent extends ECLBaseDirective {
|
|
|
1434
1439
|
if (this.eclLanguageComponent) {
|
|
1435
1440
|
this.eclLanguageComponent
|
|
1436
1441
|
.languageClick
|
|
1437
|
-
.pipe(takeUntil
|
|
1442
|
+
.pipe(takeUntil(this.destroy$))
|
|
1438
1443
|
.subscribe(evt => {
|
|
1439
1444
|
this.languageClick.next(new EclSiteHeaderLanguageClickEvent());
|
|
1440
1445
|
});
|
|
@@ -1454,7 +1459,7 @@ class EclSiteHeaderComponent extends ECLBaseDirective {
|
|
|
1454
1459
|
handlei18nEvents() {
|
|
1455
1460
|
this.languageCode = this.getEULanguageCode(this.translateService.currentLang);
|
|
1456
1461
|
this.translateService.onLangChange
|
|
1457
|
-
.pipe(takeUntil
|
|
1462
|
+
.pipe(takeUntil(this.destroy$))
|
|
1458
1463
|
.subscribe((langChangeEvent) => {
|
|
1459
1464
|
this.languageCode = this.getEULanguageCode(langChangeEvent.lang);
|
|
1460
1465
|
});
|
|
@@ -1516,13 +1521,13 @@ class EclSiteHeaderComponentBase extends ECLBaseDirective {
|
|
|
1516
1521
|
if (this.eclLoginComponent && this.eclSearchComponent) {
|
|
1517
1522
|
this.eclLoginComponent
|
|
1518
1523
|
.loginBoxToggle
|
|
1519
|
-
.pipe(takeUntil
|
|
1524
|
+
.pipe(takeUntil(this.destroy$))
|
|
1520
1525
|
.subscribe(evt => {
|
|
1521
1526
|
this.eclSearchComponent.isSearchBoxActive = false;
|
|
1522
1527
|
});
|
|
1523
1528
|
this.eclSearchComponent
|
|
1524
1529
|
.searchToggle
|
|
1525
|
-
.pipe(takeUntil
|
|
1530
|
+
.pipe(takeUntil(this.destroy$))
|
|
1526
1531
|
.subscribe(evt => {
|
|
1527
1532
|
this.eclLoginComponent.isLoginBoxActive = false;
|
|
1528
1533
|
});
|
|
@@ -1530,7 +1535,7 @@ class EclSiteHeaderComponentBase extends ECLBaseDirective {
|
|
|
1530
1535
|
if (this.eclLanguageComponent) {
|
|
1531
1536
|
this.eclLanguageComponent
|
|
1532
1537
|
.languageClick
|
|
1533
|
-
.pipe(takeUntil
|
|
1538
|
+
.pipe(takeUntil(this.destroy$))
|
|
1534
1539
|
.subscribe(evt => {
|
|
1535
1540
|
this.languageClick.next(new EclSiteHeaderLanguageClickEvent());
|
|
1536
1541
|
});
|
|
@@ -1553,7 +1558,7 @@ class EclSiteHeaderComponentBase extends ECLBaseDirective {
|
|
|
1553
1558
|
handlei18nEvents() {
|
|
1554
1559
|
this.languageCode = this.getEULanguageCode(this.translateService.currentLang);
|
|
1555
1560
|
this.translateService.onLangChange
|
|
1556
|
-
.pipe(takeUntil
|
|
1561
|
+
.pipe(takeUntil(this.destroy$))
|
|
1557
1562
|
.subscribe((langChangeEvent) => {
|
|
1558
1563
|
this.languageCode = this.getEULanguageCode(langChangeEvent.lang);
|
|
1559
1564
|
});
|
|
@@ -2708,24 +2713,24 @@ class EclAppComponent extends ECLBaseDirective {
|
|
|
2708
2713
|
this.cd.detectChanges();
|
|
2709
2714
|
}
|
|
2710
2715
|
handleActiveLanguageChangeState() {
|
|
2711
|
-
this.eclLanguageService.currentLanguage$.subscribe(lang => {
|
|
2716
|
+
this.eclLanguageService.currentLanguage$.pipe(takeUntil$1(this.destroy$)).subscribe(lang => {
|
|
2712
2717
|
this.syncLanguageDataWithUI(lang);
|
|
2713
2718
|
this.hideLanguageListUI();
|
|
2714
2719
|
});
|
|
2715
2720
|
}
|
|
2716
2721
|
handleSiteHeaderUIEvents() {
|
|
2717
2722
|
if (this.eclSiteHeader && this.eclSiteHeader.eclLanguageComponent) {
|
|
2718
|
-
this.eclSiteHeader.eclLanguageComponent.languageClick.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
2723
|
+
this.eclSiteHeader.eclLanguageComponent.languageClick.pipe(takeUntil$1(this.destroy$)).subscribe(() => {
|
|
2719
2724
|
this.showLanguageListUI();
|
|
2720
2725
|
});
|
|
2721
2726
|
}
|
|
2722
2727
|
}
|
|
2723
2728
|
handleLanguageListUIEvents() {
|
|
2724
|
-
this.eclLanguageList.close.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
2729
|
+
this.eclLanguageList.close.pipe(takeUntil$1(this.destroy$)).subscribe(() => {
|
|
2725
2730
|
this.hideLanguageListUI();
|
|
2726
2731
|
this.languageDismiss.next(new EclAppLanguageDismissEvent());
|
|
2727
2732
|
});
|
|
2728
|
-
this.eclLanguageList.languageSelected.pipe(takeUntil(this.destroy$)).subscribe((evt) => {
|
|
2733
|
+
this.eclLanguageList.languageSelected.pipe(takeUntil$1(this.destroy$)).subscribe((evt) => {
|
|
2729
2734
|
this.eclLanguageService.updateCurrentLanguage(evt.language);
|
|
2730
2735
|
this.languageDismiss.next(new EclAppLanguageDismissEvent(evt.language));
|
|
2731
2736
|
this.cd.detectChanges();
|
|
@@ -2806,17 +2811,17 @@ class EclAppComponentBase {
|
|
|
2806
2811
|
}
|
|
2807
2812
|
handleSiteHeaderUIEvents() {
|
|
2808
2813
|
if (this.eclSiteHeader && this.eclSiteHeader.eclLanguageComponent) {
|
|
2809
|
-
this.eclSiteHeader.eclLanguageComponent.languageClick.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
2814
|
+
this.eclSiteHeader.eclLanguageComponent.languageClick.pipe(takeUntil$1(this.destroy$)).subscribe(() => {
|
|
2810
2815
|
this.showLanguageListUI();
|
|
2811
2816
|
});
|
|
2812
2817
|
}
|
|
2813
2818
|
}
|
|
2814
2819
|
handleLanguageListUIEvents() {
|
|
2815
|
-
this.eclLanguageList.close.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
2820
|
+
this.eclLanguageList.close.pipe(takeUntil$1(this.destroy$)).subscribe(() => {
|
|
2816
2821
|
this.hideLanguageListUI();
|
|
2817
2822
|
this.languageDismiss.next(new EclAppLanguageDismissEvent());
|
|
2818
2823
|
});
|
|
2819
|
-
this.eclLanguageList.languageSelected.pipe(takeUntil(this.destroy$)).subscribe((evt) => {
|
|
2824
|
+
this.eclLanguageList.languageSelected.pipe(takeUntil$1(this.destroy$)).subscribe((evt) => {
|
|
2820
2825
|
const lang = evt.language;
|
|
2821
2826
|
this.i18nService.updateState({
|
|
2822
2827
|
activeLang: lang.code
|
|
@@ -3137,7 +3142,7 @@ class EclBreadcrumbComponentBase extends ECLBaseDirective {
|
|
|
3137
3142
|
}
|
|
3138
3143
|
ngOnInit() {
|
|
3139
3144
|
this.translate.stream('ecl.breadcrumb.YOU-ARE-HERE')
|
|
3140
|
-
.pipe(takeUntil
|
|
3145
|
+
.pipe(takeUntil(this.destroy$)).subscribe(text => {
|
|
3141
3146
|
this.ariaLabel = text;
|
|
3142
3147
|
});
|
|
3143
3148
|
}
|
|
@@ -3625,7 +3630,7 @@ class EclBreadcrumbComponent extends ECLBaseDirective {
|
|
|
3625
3630
|
}
|
|
3626
3631
|
ngOnInit() {
|
|
3627
3632
|
this.translate.stream('ecl.breadcrumb.YOU-ARE-HERE')
|
|
3628
|
-
.pipe(takeUntil
|
|
3633
|
+
.pipe(takeUntil(this.destroy$)).subscribe(text => {
|
|
3629
3634
|
this.ariaLabel = text;
|
|
3630
3635
|
});
|
|
3631
3636
|
}
|
|
@@ -4102,7 +4107,7 @@ class EclCategoryFilterComponent extends ECLBaseDirective {
|
|
|
4102
4107
|
}
|
|
4103
4108
|
connectCategoryfilterItemEvents(item) {
|
|
4104
4109
|
item.itemSelect
|
|
4105
|
-
.pipe(takeUntil
|
|
4110
|
+
.pipe(takeUntil(this.destroy$))
|
|
4106
4111
|
.subscribe((evt) => { this.onItemSelected(evt); });
|
|
4107
4112
|
}
|
|
4108
4113
|
onItemSelected(evt) {
|
|
@@ -5132,7 +5137,7 @@ class EclDatePickerDirective extends ECLBaseDirective {
|
|
|
5132
5137
|
}
|
|
5133
5138
|
handlei18nEvents() {
|
|
5134
5139
|
this.translateService.onLangChange
|
|
5135
|
-
.pipe(takeUntil
|
|
5140
|
+
.pipe(takeUntil(this.destroy$))
|
|
5136
5141
|
.subscribe((langChangeEvent) => {
|
|
5137
5142
|
this.initPikaday();
|
|
5138
5143
|
});
|
|
@@ -5764,7 +5769,7 @@ class EclFileUploadDirective extends ECLBaseDirective {
|
|
|
5764
5769
|
let uploadButtonLabelKey = this.geti18nUploadButtonLabelKey();
|
|
5765
5770
|
this.translate
|
|
5766
5771
|
.stream(uploadButtonLabelKey)
|
|
5767
|
-
.pipe(takeUntil(this.destroy$)).subscribe((translation) => {
|
|
5772
|
+
.pipe(takeUntil$1(this.destroy$)).subscribe((translation) => {
|
|
5768
5773
|
if (this.buttonEl) {
|
|
5769
5774
|
this.buttonEl.textContent = translation;
|
|
5770
5775
|
}
|
|
@@ -6405,7 +6410,7 @@ class EclGalleryComponent extends ECLBaseDirective {
|
|
|
6405
6410
|
this.itemsCount = this.galleryItems.length;
|
|
6406
6411
|
this.galleryItems.forEach(item => {
|
|
6407
6412
|
item.itemClick
|
|
6408
|
-
.pipe(takeUntil(this.destroy$))
|
|
6413
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
6409
6414
|
.subscribe(_ => {
|
|
6410
6415
|
this.isDialogVisible = true;
|
|
6411
6416
|
this.item = item;
|
|
@@ -6497,7 +6502,7 @@ class EclGalleryComponent extends ECLBaseDirective {
|
|
|
6497
6502
|
}
|
|
6498
6503
|
observeBreakpointChanges() {
|
|
6499
6504
|
this.cdkBreakpointObserver.observe([Breakpoints.Handset, Breakpoints.Tablet])
|
|
6500
|
-
.pipe(takeUntil(this.destroy$), delay(this.BREAKPOINT_CHANGES_TIMEOUT))
|
|
6505
|
+
.pipe(takeUntil$1(this.destroy$), delay(this.BREAKPOINT_CHANGES_TIMEOUT))
|
|
6501
6506
|
.subscribe(result => {
|
|
6502
6507
|
this.isMobile = result.matches;
|
|
6503
6508
|
this.hideItems();
|
|
@@ -6858,10 +6863,10 @@ class EclStickyContainerComponent extends ECLBaseDirective {
|
|
|
6858
6863
|
!this.isEnabled ? 'ecl-sticky-container--disabled' : ''
|
|
6859
6864
|
].join(' ').trim();
|
|
6860
6865
|
}
|
|
6861
|
-
top() {
|
|
6866
|
+
get top() {
|
|
6862
6867
|
return this.marginTop || null;
|
|
6863
6868
|
}
|
|
6864
|
-
bottom() {
|
|
6869
|
+
get bottom() {
|
|
6865
6870
|
return this.marginBottom || null;
|
|
6866
6871
|
}
|
|
6867
6872
|
}
|
|
@@ -6938,14 +6943,14 @@ class EclInpageNavigationComponent extends ECLBaseDirective {
|
|
|
6938
6943
|
handleNavigationItemsScroll() {
|
|
6939
6944
|
const scrollableContainer = window;
|
|
6940
6945
|
const sectionElementIds = this.eclNavigationLinkItems.map(item => item.sectionId);
|
|
6941
|
-
fromEvent(scrollableContainer, 'scroll').pipe(takeUntil(this.destroy$)).subscribe((event) => {
|
|
6946
|
+
fromEvent(scrollableContainer, 'scroll').pipe(takeUntil$1(this.destroy$)).subscribe((event) => {
|
|
6942
6947
|
const sectionElements = sectionElementIds.map(id => document.querySelector(`#${id}`));
|
|
6943
6948
|
this.handleNavigationLinksHighlight(sectionElements);
|
|
6944
6949
|
});
|
|
6945
6950
|
}
|
|
6946
6951
|
handleNavigationItemsClick() {
|
|
6947
6952
|
this.eclNavigationLinkItems.forEach(item => {
|
|
6948
|
-
item.itemClick.pipe(takeUntil(this.destroy$)).subscribe((evt) => {
|
|
6953
|
+
item.itemClick.pipe(takeUntil$1(this.destroy$)).subscribe((evt) => {
|
|
6949
6954
|
this.selectNavigationItem(this.eclNavigationLinkItems, item.sectionElement);
|
|
6950
6955
|
if (item.sectionElement) {
|
|
6951
6956
|
item.sectionElement.scrollIntoView();
|
|
@@ -6992,12 +6997,16 @@ class EclInpageNavigationComponent extends ECLBaseDirective {
|
|
|
6992
6997
|
}
|
|
6993
6998
|
}
|
|
6994
6999
|
/** @nocollapse */ EclInpageNavigationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0-next.4", ngImport: i0, type: EclInpageNavigationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
6995
|
-
/** @nocollapse */ EclInpageNavigationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0-next.4", type: EclInpageNavigationComponent, selector: "ecl-inpage-navigation", inputs: { eclTitle: "eclTitle" }, outputs: { sectionEnter: "sectionEnter" }, queries: [{ propertyName: "eclNavigationLinkItems", predicate: EclInpageNavigationItemComponent }], usesInheritance: true, ngImport: i0, template: "<ecl-sticky-container>\n <nav class=\"ecl-inpage-navigation\"\n [class.ecl-inpage-navigation--visible]=\"currentSectionElement\">\n <div class=\"ecl-inpage-navigation__title\">\n {{ eclTitle || 'ecl.inpage-navigation.PAGE-CONTENTS' | translate }}\n </div>\n <div class=\"ecl-inpage-navigation__body\">\n <button\n type=\"button\"\n class=\"ecl-inpage-navigation__trigger\"\n aria-controls=\"ecl-inpage-navigation-list\"\n [attr.aria-expanded]=\"isButtonExpanded\"\n (click)=\"onExpandButtonClick($event)\">\n <span class=\"ecl-inpage-navigation__trigger-current\">\n {{ currentNavigationLinkItem?.label }}\n </span>\n <ecl-icon \n icon=\"corner-arrow\" \n size=\"s\" \n transform=\"rotate-180\" \n class=\"ecl-inpage-navigation__trigger-icon\">\n </ecl-icon>\n </button>\n <ul class=\"ecl-inpage-navigation__list\"\n [class.ecl-inpage-navigation__list--visible]=\"isButtonExpanded\"\n [attr.aria-expanded]=\"isButtonExpanded\"\n aria-labelledby=\"ecl-inpage-navigation-trigger\">\n <ng-content></ng-content>\n </ul>\n </div>\n </nav>\n</ecl-sticky-container>\n", styles: ["@media (min-width: 996px){.ecl-inpage-navigation__list{display:block!important}}\n"], dependencies: [{ kind: "component", type: EclStickyContainerComponent, selector: "ecl-sticky-container", inputs: ["isEnabled", "marginTop", "marginBottom"] }, { kind: "component", type: EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "isInverted", "ariaHidden", "focusable"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
7000
|
+
/** @nocollapse */ EclInpageNavigationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0-next.4", type: EclInpageNavigationComponent, selector: "ecl-inpage-navigation", inputs: { eclTitle: "eclTitle", marginTop: "marginTop", marginBottom: "marginBottom" }, outputs: { sectionEnter: "sectionEnter" }, queries: [{ propertyName: "eclNavigationLinkItems", predicate: EclInpageNavigationItemComponent }], usesInheritance: true, ngImport: i0, template: "<ecl-sticky-container [marginTop]=\"marginTop\" [marginBottom]=\"marginBottom\">\n <nav class=\"ecl-inpage-navigation\"\n [class.ecl-inpage-navigation--visible]=\"currentSectionElement\">\n <div class=\"ecl-inpage-navigation__title\">\n {{ eclTitle || 'ecl.inpage-navigation.PAGE-CONTENTS' | translate }}\n </div>\n <div class=\"ecl-inpage-navigation__body\">\n <button\n type=\"button\"\n class=\"ecl-inpage-navigation__trigger\"\n aria-controls=\"ecl-inpage-navigation-list\"\n [attr.aria-expanded]=\"isButtonExpanded\"\n (click)=\"onExpandButtonClick($event)\">\n <span class=\"ecl-inpage-navigation__trigger-current\">\n {{ currentNavigationLinkItem?.label }}\n </span>\n <ecl-icon \n icon=\"corner-arrow\" \n size=\"s\" \n transform=\"rotate-180\" \n class=\"ecl-inpage-navigation__trigger-icon\">\n </ecl-icon>\n </button>\n <ul class=\"ecl-inpage-navigation__list\"\n [class.ecl-inpage-navigation__list--visible]=\"isButtonExpanded\"\n [attr.aria-expanded]=\"isButtonExpanded\"\n aria-labelledby=\"ecl-inpage-navigation-trigger\">\n <ng-content></ng-content>\n </ul>\n </div>\n </nav>\n</ecl-sticky-container>\n", styles: ["@media (min-width: 996px){.ecl-inpage-navigation__list{display:block!important}}\n"], dependencies: [{ kind: "component", type: EclStickyContainerComponent, selector: "ecl-sticky-container", inputs: ["isEnabled", "marginTop", "marginBottom"] }, { kind: "component", type: EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "isInverted", "ariaHidden", "focusable"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
|
|
6996
7001
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0-next.4", ngImport: i0, type: EclInpageNavigationComponent, decorators: [{
|
|
6997
7002
|
type: Component,
|
|
6998
|
-
args: [{ selector: 'ecl-inpage-navigation', template: "<ecl-sticky-container>\n <nav class=\"ecl-inpage-navigation\"\n [class.ecl-inpage-navigation--visible]=\"currentSectionElement\">\n <div class=\"ecl-inpage-navigation__title\">\n {{ eclTitle || 'ecl.inpage-navigation.PAGE-CONTENTS' | translate }}\n </div>\n <div class=\"ecl-inpage-navigation__body\">\n <button\n type=\"button\"\n class=\"ecl-inpage-navigation__trigger\"\n aria-controls=\"ecl-inpage-navigation-list\"\n [attr.aria-expanded]=\"isButtonExpanded\"\n (click)=\"onExpandButtonClick($event)\">\n <span class=\"ecl-inpage-navigation__trigger-current\">\n {{ currentNavigationLinkItem?.label }}\n </span>\n <ecl-icon \n icon=\"corner-arrow\" \n size=\"s\" \n transform=\"rotate-180\" \n class=\"ecl-inpage-navigation__trigger-icon\">\n </ecl-icon>\n </button>\n <ul class=\"ecl-inpage-navigation__list\"\n [class.ecl-inpage-navigation__list--visible]=\"isButtonExpanded\"\n [attr.aria-expanded]=\"isButtonExpanded\"\n aria-labelledby=\"ecl-inpage-navigation-trigger\">\n <ng-content></ng-content>\n </ul>\n </div>\n </nav>\n</ecl-sticky-container>\n", styles: ["@media (min-width: 996px){.ecl-inpage-navigation__list{display:block!important}}\n"] }]
|
|
7003
|
+
args: [{ selector: 'ecl-inpage-navigation', template: "<ecl-sticky-container [marginTop]=\"marginTop\" [marginBottom]=\"marginBottom\">\n <nav class=\"ecl-inpage-navigation\"\n [class.ecl-inpage-navigation--visible]=\"currentSectionElement\">\n <div class=\"ecl-inpage-navigation__title\">\n {{ eclTitle || 'ecl.inpage-navigation.PAGE-CONTENTS' | translate }}\n </div>\n <div class=\"ecl-inpage-navigation__body\">\n <button\n type=\"button\"\n class=\"ecl-inpage-navigation__trigger\"\n aria-controls=\"ecl-inpage-navigation-list\"\n [attr.aria-expanded]=\"isButtonExpanded\"\n (click)=\"onExpandButtonClick($event)\">\n <span class=\"ecl-inpage-navigation__trigger-current\">\n {{ currentNavigationLinkItem?.label }}\n </span>\n <ecl-icon \n icon=\"corner-arrow\" \n size=\"s\" \n transform=\"rotate-180\" \n class=\"ecl-inpage-navigation__trigger-icon\">\n </ecl-icon>\n </button>\n <ul class=\"ecl-inpage-navigation__list\"\n [class.ecl-inpage-navigation__list--visible]=\"isButtonExpanded\"\n [attr.aria-expanded]=\"isButtonExpanded\"\n aria-labelledby=\"ecl-inpage-navigation-trigger\">\n <ng-content></ng-content>\n </ul>\n </div>\n </nav>\n</ecl-sticky-container>\n", styles: ["@media (min-width: 996px){.ecl-inpage-navigation__list{display:block!important}}\n"] }]
|
|
6999
7004
|
}], propDecorators: { eclTitle: [{
|
|
7000
7005
|
type: Input
|
|
7006
|
+
}], marginTop: [{
|
|
7007
|
+
type: Input
|
|
7008
|
+
}], marginBottom: [{
|
|
7009
|
+
type: Input
|
|
7001
7010
|
}], sectionEnter: [{
|
|
7002
7011
|
type: Output
|
|
7003
7012
|
}], eclNavigationLinkItems: [{
|
|
@@ -7523,7 +7532,7 @@ class EclMenuMegaComponent extends ECLBaseDirective {
|
|
|
7523
7532
|
this.destroy$.unsubscribe();
|
|
7524
7533
|
}
|
|
7525
7534
|
createContentChildrenMenuObservable() {
|
|
7526
|
-
return of(this.eclMenuMegaItems).pipe(mergeWith(this.eclMenuMegaItems.changes), takeUntil(this.destroy$));
|
|
7535
|
+
return of(this.eclMenuMegaItems).pipe(mergeWith(this.eclMenuMegaItems.changes), takeUntil$1(this.destroy$));
|
|
7527
7536
|
}
|
|
7528
7537
|
onMenuItemChanges() {
|
|
7529
7538
|
this.diff = this.differ.diff(this.eclMenuMegaItems);
|
|
@@ -7540,7 +7549,7 @@ class EclMenuMegaComponent extends ECLBaseDirective {
|
|
|
7540
7549
|
}
|
|
7541
7550
|
connectMenuItemEvents(item) {
|
|
7542
7551
|
item.menuItemSelect
|
|
7543
|
-
.pipe(takeUntil(this.destroy$))
|
|
7552
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7544
7553
|
.subscribe((evt) => {
|
|
7545
7554
|
this.onMenuItemSelected(item, evt);
|
|
7546
7555
|
});
|
|
@@ -7643,7 +7652,7 @@ class EclMenuItemComponent extends ECLBaseDirective {
|
|
|
7643
7652
|
ngAfterContentInit() {
|
|
7644
7653
|
if (this.submenu) {
|
|
7645
7654
|
this.submenu.menuItemSelect
|
|
7646
|
-
.pipe(takeUntil(this.destroy$))
|
|
7655
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7647
7656
|
.subscribe((it) => {
|
|
7648
7657
|
this.menuMegaItemSelect.next(new EclMenuItemSelectEvent(it.menuItem, it.domEvent));
|
|
7649
7658
|
});
|
|
@@ -7824,7 +7833,7 @@ class EclMenuComponent extends ECLBaseDirective {
|
|
|
7824
7833
|
return this.eclRootMenuItems.some(item => item.isExpanded);
|
|
7825
7834
|
}
|
|
7826
7835
|
createRootMenuItemsChangesObservable() {
|
|
7827
|
-
return of(this.eclRootMenuItems).pipe(mergeWith(this.eclRootMenuItems.changes), takeUntil(this.destroy$));
|
|
7836
|
+
return of(this.eclRootMenuItems).pipe(mergeWith(this.eclRootMenuItems.changes), takeUntil$1(this.destroy$));
|
|
7828
7837
|
}
|
|
7829
7838
|
onMenuItemChanges() {
|
|
7830
7839
|
this.diff = this.differ.diff(this.eclRootMenuItems);
|
|
@@ -7841,19 +7850,19 @@ class EclMenuComponent extends ECLBaseDirective {
|
|
|
7841
7850
|
}
|
|
7842
7851
|
connectMenuItemEvents(item) {
|
|
7843
7852
|
item.menuItemSelect
|
|
7844
|
-
.pipe(takeUntil(this.destroy$))
|
|
7853
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7845
7854
|
.subscribe((evt) => { this.onRootMenuItemSelected(evt); });
|
|
7846
7855
|
item.menuItemHover
|
|
7847
|
-
.pipe(takeUntil(this.destroy$))
|
|
7856
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7848
7857
|
.subscribe((evt) => { this.onRootMenuItemHovered(evt); });
|
|
7849
7858
|
item.menuItemHoverOut
|
|
7850
|
-
.pipe(takeUntil(this.destroy$))
|
|
7859
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7851
7860
|
.subscribe((evt) => { this.onRootMenuItemHoveredOut(evt); });
|
|
7852
7861
|
item.menuMegaItemSelect
|
|
7853
|
-
.pipe(takeUntil(this.destroy$))
|
|
7862
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7854
7863
|
.subscribe((evt) => { this.onMenuMegaItemSelected(item, evt); });
|
|
7855
7864
|
item.menuItemFocus
|
|
7856
|
-
.pipe(takeUntil(this.destroy$))
|
|
7865
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7857
7866
|
.subscribe((evt) => { this.onRootMenuItemFocused(item, evt); });
|
|
7858
7867
|
}
|
|
7859
7868
|
onRootMenuItemFocused(item, evt) {
|
|
@@ -7976,7 +7985,7 @@ class EclMenuComponent extends ECLBaseDirective {
|
|
|
7976
7985
|
observeRootMenuItemsChanges() {
|
|
7977
7986
|
this.diff = this.differ.diff(this.eclRootMenuItems);
|
|
7978
7987
|
this.createRootMenuItemsChangesObservable()
|
|
7979
|
-
.pipe(takeUntil(this.destroy$))
|
|
7988
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7980
7989
|
.subscribe(this.onMenuItemChanges.bind(this));
|
|
7981
7990
|
}
|
|
7982
7991
|
observeSwipeGestures() {
|
|
@@ -7985,7 +7994,7 @@ class EclMenuComponent extends ECLBaseDirective {
|
|
|
7985
7994
|
}
|
|
7986
7995
|
observeBreakpointChanges() {
|
|
7987
7996
|
this.cdkBreakpointObserver.observe([Breakpoints.Handset, Breakpoints.Tablet, Breakpoints.Small])
|
|
7988
|
-
.pipe(takeUntil(this.destroy$))
|
|
7997
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7989
7998
|
.subscribe(result => {
|
|
7990
7999
|
this.isMobileBreakpoint = result.matches;
|
|
7991
8000
|
});
|
|
@@ -8379,7 +8388,7 @@ class EclMultiselectComponent extends ECLBaseDirective {
|
|
|
8379
8388
|
}
|
|
8380
8389
|
}
|
|
8381
8390
|
onOptionsChange() {
|
|
8382
|
-
this.eclOptionItems.forEach(i => i.changes.pipe(takeUntil
|
|
8391
|
+
this.eclOptionItems.forEach(i => i.changes.pipe(takeUntil(this.destroy$)).subscribe(e => {
|
|
8383
8392
|
setTimeout(() => {
|
|
8384
8393
|
this.multiselectWrapper.removeChild(this.multiDropdown);
|
|
8385
8394
|
this.multiDropdown.remove();
|
|
@@ -8621,7 +8630,7 @@ class EclMultiselectComponent extends ECLBaseDirective {
|
|
|
8621
8630
|
handleTranslations() {
|
|
8622
8631
|
this.translate
|
|
8623
8632
|
.stream('ecl.multiselect.SELECT-ALL')
|
|
8624
|
-
.pipe(takeUntil
|
|
8633
|
+
.pipe(takeUntil(this.destroy$)).subscribe((translation) => {
|
|
8625
8634
|
if (this.checkboxLabel) {
|
|
8626
8635
|
this.checkboxLabel.textContent = translation;
|
|
8627
8636
|
}
|
|
@@ -12420,7 +12429,7 @@ class EclTableDirective extends ECLBaseDirective {
|
|
|
12420
12429
|
const diff = this.differ.diff(this.eclTableHeaders);
|
|
12421
12430
|
if (diff) {
|
|
12422
12431
|
diff.forEachAddedItem(change => {
|
|
12423
|
-
change.item.sort.pipe(takeUntil(this.destroy$))
|
|
12432
|
+
change.item.sort.pipe(takeUntil$1(this.destroy$))
|
|
12424
12433
|
.subscribe((evt) => {
|
|
12425
12434
|
this.sort.emit(evt);
|
|
12426
12435
|
});
|
|
@@ -12472,7 +12481,7 @@ class EclTableHeadDirective extends ECLBaseDirective {
|
|
|
12472
12481
|
const diff = this.differ.diff(this.eclTableHeaders);
|
|
12473
12482
|
if (diff) {
|
|
12474
12483
|
diff.forEachAddedItem(change => {
|
|
12475
|
-
change.item.sort.pipe(takeUntil(this.destroy$))
|
|
12484
|
+
change.item.sort.pipe(takeUntil$1(this.destroy$))
|
|
12476
12485
|
.subscribe((evt) => {
|
|
12477
12486
|
this.eclTableHeaders.forEach(th => {
|
|
12478
12487
|
th.removeAriaSort();
|
|
@@ -12842,11 +12851,11 @@ class EclTabsComponent extends ECLBaseDirective {
|
|
|
12842
12851
|
observeTabsChanges() {
|
|
12843
12852
|
this.diff = this.differ.diff(this.tabs);
|
|
12844
12853
|
this.createTabsChangesObservable()
|
|
12845
|
-
.pipe(takeUntil(this.destroy$))
|
|
12854
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
12846
12855
|
.subscribe(this.onTabsChanges.bind(this));
|
|
12847
12856
|
}
|
|
12848
12857
|
createTabsChangesObservable() {
|
|
12849
|
-
return of(this.tabs).pipe(mergeWith(this.tabs.changes), takeUntil(this.destroy$));
|
|
12858
|
+
return of(this.tabs).pipe(mergeWith(this.tabs.changes), takeUntil$1(this.destroy$));
|
|
12850
12859
|
}
|
|
12851
12860
|
onTabsChanges() {
|
|
12852
12861
|
this.diff = this.differ.diff(this.tabs);
|
|
@@ -12863,7 +12872,7 @@ class EclTabsComponent extends ECLBaseDirective {
|
|
|
12863
12872
|
}
|
|
12864
12873
|
connectTabEvents(tab) {
|
|
12865
12874
|
tab.select
|
|
12866
|
-
.pipe(takeUntil(this.destroy$))
|
|
12875
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
12867
12876
|
.subscribe(() => {
|
|
12868
12877
|
this.deactivateAllTabs(this.tabs.toArray());
|
|
12869
12878
|
this.activateTab(tab);
|
|
@@ -13169,7 +13178,7 @@ class EclTimelineItemComponent extends ECLBaseDirective {
|
|
|
13169
13178
|
ngAfterContentInit() {
|
|
13170
13179
|
if (this.timelineItemToggler) {
|
|
13171
13180
|
this.timelineItemToggler.toggle
|
|
13172
|
-
.pipe(takeUntil(this.destroy$))
|
|
13181
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
13173
13182
|
.subscribe(() => {
|
|
13174
13183
|
this.handleToggler();
|
|
13175
13184
|
});
|
|
@@ -13248,7 +13257,7 @@ class EclTimelineComponent extends ECLBaseDirective {
|
|
|
13248
13257
|
this.timelineItems
|
|
13249
13258
|
.filter(item => item.isToggler)
|
|
13250
13259
|
.forEach(it => {
|
|
13251
|
-
it.toggle.pipe(takeUntil(this.destroy$)).subscribe((evt) => {
|
|
13260
|
+
it.toggle.pipe(takeUntil$1(this.destroy$)).subscribe((evt) => {
|
|
13252
13261
|
if (this.timelineItems && !evt.defaultPrevented) {
|
|
13253
13262
|
this.timelineItems
|
|
13254
13263
|
.filter(item => item.toggleGroup === evt.toggleGroup)
|