@eui/ecl 15.0.0-next.19 → 15.0.0-rc.1
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/fesm2015/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
|
}
|
|
@@ -775,7 +780,7 @@ class EclDefaultLanguageService {
|
|
|
775
780
|
];
|
|
776
781
|
}
|
|
777
782
|
handleActiveLanguageChangeState() {
|
|
778
|
-
this.i18nService.getState().subscribe(state => {
|
|
783
|
+
this.i18nService.getState().pipe(takeUntil(this.destroy$)).subscribe(state => {
|
|
779
784
|
this.currentLanguage = this.getLanguageByCode(state.activeLang) || this.FALLBACK_LANGUAGE;
|
|
780
785
|
this.currentLanguage$.next(this.currentLanguage);
|
|
781
786
|
});
|
|
@@ -891,7 +896,7 @@ class EclLanguageListComponent extends ECLBaseDirective {
|
|
|
891
896
|
item.isActive = true;
|
|
892
897
|
}
|
|
893
898
|
item.itemClick
|
|
894
|
-
.pipe(takeUntil(this.destroy$))
|
|
899
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
895
900
|
.subscribe(() => {
|
|
896
901
|
this.eclLanguageListItems.forEach(it => {
|
|
897
902
|
it.isActive = false;
|
|
@@ -1425,13 +1430,13 @@ class EclSiteHeaderComponent extends ECLBaseDirective {
|
|
|
1425
1430
|
if (this.eclLoginComponent && this.eclSearchComponent) {
|
|
1426
1431
|
this.eclLoginComponent
|
|
1427
1432
|
.loginBoxToggle
|
|
1428
|
-
.pipe(takeUntil
|
|
1433
|
+
.pipe(takeUntil(this.destroy$))
|
|
1429
1434
|
.subscribe(evt => {
|
|
1430
1435
|
this.eclSearchComponent.isSearchBoxActive = false;
|
|
1431
1436
|
});
|
|
1432
1437
|
this.eclSearchComponent
|
|
1433
1438
|
.searchToggle
|
|
1434
|
-
.pipe(takeUntil
|
|
1439
|
+
.pipe(takeUntil(this.destroy$))
|
|
1435
1440
|
.subscribe(evt => {
|
|
1436
1441
|
this.eclLoginComponent.isLoginBoxActive = false;
|
|
1437
1442
|
});
|
|
@@ -1439,7 +1444,7 @@ class EclSiteHeaderComponent extends ECLBaseDirective {
|
|
|
1439
1444
|
if (this.eclLanguageComponent) {
|
|
1440
1445
|
this.eclLanguageComponent
|
|
1441
1446
|
.languageClick
|
|
1442
|
-
.pipe(takeUntil
|
|
1447
|
+
.pipe(takeUntil(this.destroy$))
|
|
1443
1448
|
.subscribe(evt => {
|
|
1444
1449
|
this.languageClick.next(new EclSiteHeaderLanguageClickEvent());
|
|
1445
1450
|
});
|
|
@@ -1459,7 +1464,7 @@ class EclSiteHeaderComponent extends ECLBaseDirective {
|
|
|
1459
1464
|
handlei18nEvents() {
|
|
1460
1465
|
this.languageCode = this.getEULanguageCode(this.translateService.currentLang);
|
|
1461
1466
|
this.translateService.onLangChange
|
|
1462
|
-
.pipe(takeUntil
|
|
1467
|
+
.pipe(takeUntil(this.destroy$))
|
|
1463
1468
|
.subscribe((langChangeEvent) => {
|
|
1464
1469
|
this.languageCode = this.getEULanguageCode(langChangeEvent.lang);
|
|
1465
1470
|
});
|
|
@@ -1521,13 +1526,13 @@ class EclSiteHeaderComponentBase extends ECLBaseDirective {
|
|
|
1521
1526
|
if (this.eclLoginComponent && this.eclSearchComponent) {
|
|
1522
1527
|
this.eclLoginComponent
|
|
1523
1528
|
.loginBoxToggle
|
|
1524
|
-
.pipe(takeUntil
|
|
1529
|
+
.pipe(takeUntil(this.destroy$))
|
|
1525
1530
|
.subscribe(evt => {
|
|
1526
1531
|
this.eclSearchComponent.isSearchBoxActive = false;
|
|
1527
1532
|
});
|
|
1528
1533
|
this.eclSearchComponent
|
|
1529
1534
|
.searchToggle
|
|
1530
|
-
.pipe(takeUntil
|
|
1535
|
+
.pipe(takeUntil(this.destroy$))
|
|
1531
1536
|
.subscribe(evt => {
|
|
1532
1537
|
this.eclLoginComponent.isLoginBoxActive = false;
|
|
1533
1538
|
});
|
|
@@ -1535,7 +1540,7 @@ class EclSiteHeaderComponentBase extends ECLBaseDirective {
|
|
|
1535
1540
|
if (this.eclLanguageComponent) {
|
|
1536
1541
|
this.eclLanguageComponent
|
|
1537
1542
|
.languageClick
|
|
1538
|
-
.pipe(takeUntil
|
|
1543
|
+
.pipe(takeUntil(this.destroy$))
|
|
1539
1544
|
.subscribe(evt => {
|
|
1540
1545
|
this.languageClick.next(new EclSiteHeaderLanguageClickEvent());
|
|
1541
1546
|
});
|
|
@@ -1558,7 +1563,7 @@ class EclSiteHeaderComponentBase extends ECLBaseDirective {
|
|
|
1558
1563
|
handlei18nEvents() {
|
|
1559
1564
|
this.languageCode = this.getEULanguageCode(this.translateService.currentLang);
|
|
1560
1565
|
this.translateService.onLangChange
|
|
1561
|
-
.pipe(takeUntil
|
|
1566
|
+
.pipe(takeUntil(this.destroy$))
|
|
1562
1567
|
.subscribe((langChangeEvent) => {
|
|
1563
1568
|
this.languageCode = this.getEULanguageCode(langChangeEvent.lang);
|
|
1564
1569
|
});
|
|
@@ -2713,24 +2718,24 @@ class EclAppComponent extends ECLBaseDirective {
|
|
|
2713
2718
|
this.cd.detectChanges();
|
|
2714
2719
|
}
|
|
2715
2720
|
handleActiveLanguageChangeState() {
|
|
2716
|
-
this.eclLanguageService.currentLanguage$.subscribe(lang => {
|
|
2721
|
+
this.eclLanguageService.currentLanguage$.pipe(takeUntil$1(this.destroy$)).subscribe(lang => {
|
|
2717
2722
|
this.syncLanguageDataWithUI(lang);
|
|
2718
2723
|
this.hideLanguageListUI();
|
|
2719
2724
|
});
|
|
2720
2725
|
}
|
|
2721
2726
|
handleSiteHeaderUIEvents() {
|
|
2722
2727
|
if (this.eclSiteHeader && this.eclSiteHeader.eclLanguageComponent) {
|
|
2723
|
-
this.eclSiteHeader.eclLanguageComponent.languageClick.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
2728
|
+
this.eclSiteHeader.eclLanguageComponent.languageClick.pipe(takeUntil$1(this.destroy$)).subscribe(() => {
|
|
2724
2729
|
this.showLanguageListUI();
|
|
2725
2730
|
});
|
|
2726
2731
|
}
|
|
2727
2732
|
}
|
|
2728
2733
|
handleLanguageListUIEvents() {
|
|
2729
|
-
this.eclLanguageList.close.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
2734
|
+
this.eclLanguageList.close.pipe(takeUntil$1(this.destroy$)).subscribe(() => {
|
|
2730
2735
|
this.hideLanguageListUI();
|
|
2731
2736
|
this.languageDismiss.next(new EclAppLanguageDismissEvent());
|
|
2732
2737
|
});
|
|
2733
|
-
this.eclLanguageList.languageSelected.pipe(takeUntil(this.destroy$)).subscribe((evt) => {
|
|
2738
|
+
this.eclLanguageList.languageSelected.pipe(takeUntil$1(this.destroy$)).subscribe((evt) => {
|
|
2734
2739
|
this.eclLanguageService.updateCurrentLanguage(evt.language);
|
|
2735
2740
|
this.languageDismiss.next(new EclAppLanguageDismissEvent(evt.language));
|
|
2736
2741
|
this.cd.detectChanges();
|
|
@@ -2812,17 +2817,17 @@ class EclAppComponentBase {
|
|
|
2812
2817
|
}
|
|
2813
2818
|
handleSiteHeaderUIEvents() {
|
|
2814
2819
|
if (this.eclSiteHeader && this.eclSiteHeader.eclLanguageComponent) {
|
|
2815
|
-
this.eclSiteHeader.eclLanguageComponent.languageClick.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
2820
|
+
this.eclSiteHeader.eclLanguageComponent.languageClick.pipe(takeUntil$1(this.destroy$)).subscribe(() => {
|
|
2816
2821
|
this.showLanguageListUI();
|
|
2817
2822
|
});
|
|
2818
2823
|
}
|
|
2819
2824
|
}
|
|
2820
2825
|
handleLanguageListUIEvents() {
|
|
2821
|
-
this.eclLanguageList.close.pipe(takeUntil(this.destroy$)).subscribe(() => {
|
|
2826
|
+
this.eclLanguageList.close.pipe(takeUntil$1(this.destroy$)).subscribe(() => {
|
|
2822
2827
|
this.hideLanguageListUI();
|
|
2823
2828
|
this.languageDismiss.next(new EclAppLanguageDismissEvent());
|
|
2824
2829
|
});
|
|
2825
|
-
this.eclLanguageList.languageSelected.pipe(takeUntil(this.destroy$)).subscribe((evt) => {
|
|
2830
|
+
this.eclLanguageList.languageSelected.pipe(takeUntil$1(this.destroy$)).subscribe((evt) => {
|
|
2826
2831
|
const lang = evt.language;
|
|
2827
2832
|
this.i18nService.updateState({
|
|
2828
2833
|
activeLang: lang.code
|
|
@@ -3151,7 +3156,7 @@ class EclBreadcrumbComponentBase extends ECLBaseDirective {
|
|
|
3151
3156
|
}
|
|
3152
3157
|
ngOnInit() {
|
|
3153
3158
|
this.translate.stream('ecl.breadcrumb.YOU-ARE-HERE')
|
|
3154
|
-
.pipe(takeUntil
|
|
3159
|
+
.pipe(takeUntil(this.destroy$)).subscribe(text => {
|
|
3155
3160
|
this.ariaLabel = text;
|
|
3156
3161
|
});
|
|
3157
3162
|
}
|
|
@@ -3639,7 +3644,7 @@ class EclBreadcrumbComponent extends ECLBaseDirective {
|
|
|
3639
3644
|
}
|
|
3640
3645
|
ngOnInit() {
|
|
3641
3646
|
this.translate.stream('ecl.breadcrumb.YOU-ARE-HERE')
|
|
3642
|
-
.pipe(takeUntil
|
|
3647
|
+
.pipe(takeUntil(this.destroy$)).subscribe(text => {
|
|
3643
3648
|
this.ariaLabel = text;
|
|
3644
3649
|
});
|
|
3645
3650
|
}
|
|
@@ -4116,7 +4121,7 @@ class EclCategoryFilterComponent extends ECLBaseDirective {
|
|
|
4116
4121
|
}
|
|
4117
4122
|
connectCategoryfilterItemEvents(item) {
|
|
4118
4123
|
item.itemSelect
|
|
4119
|
-
.pipe(takeUntil
|
|
4124
|
+
.pipe(takeUntil(this.destroy$))
|
|
4120
4125
|
.subscribe((evt) => { this.onItemSelected(evt); });
|
|
4121
4126
|
}
|
|
4122
4127
|
onItemSelected(evt) {
|
|
@@ -5148,7 +5153,7 @@ class EclDatePickerDirective extends ECLBaseDirective {
|
|
|
5148
5153
|
}
|
|
5149
5154
|
handlei18nEvents() {
|
|
5150
5155
|
this.translateService.onLangChange
|
|
5151
|
-
.pipe(takeUntil
|
|
5156
|
+
.pipe(takeUntil(this.destroy$))
|
|
5152
5157
|
.subscribe((langChangeEvent) => {
|
|
5153
5158
|
this.initPikaday();
|
|
5154
5159
|
});
|
|
@@ -5780,7 +5785,7 @@ class EclFileUploadDirective extends ECLBaseDirective {
|
|
|
5780
5785
|
let uploadButtonLabelKey = this.geti18nUploadButtonLabelKey();
|
|
5781
5786
|
this.translate
|
|
5782
5787
|
.stream(uploadButtonLabelKey)
|
|
5783
|
-
.pipe(takeUntil(this.destroy$)).subscribe((translation) => {
|
|
5788
|
+
.pipe(takeUntil$1(this.destroy$)).subscribe((translation) => {
|
|
5784
5789
|
if (this.buttonEl) {
|
|
5785
5790
|
this.buttonEl.textContent = translation;
|
|
5786
5791
|
}
|
|
@@ -6423,7 +6428,7 @@ class EclGalleryComponent extends ECLBaseDirective {
|
|
|
6423
6428
|
this.itemsCount = this.galleryItems.length;
|
|
6424
6429
|
this.galleryItems.forEach(item => {
|
|
6425
6430
|
item.itemClick
|
|
6426
|
-
.pipe(takeUntil(this.destroy$))
|
|
6431
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
6427
6432
|
.subscribe(_ => {
|
|
6428
6433
|
this.isDialogVisible = true;
|
|
6429
6434
|
this.item = item;
|
|
@@ -6517,7 +6522,7 @@ class EclGalleryComponent extends ECLBaseDirective {
|
|
|
6517
6522
|
}
|
|
6518
6523
|
observeBreakpointChanges() {
|
|
6519
6524
|
this.cdkBreakpointObserver.observe([Breakpoints.Handset, Breakpoints.Tablet])
|
|
6520
|
-
.pipe(takeUntil(this.destroy$), delay(this.BREAKPOINT_CHANGES_TIMEOUT))
|
|
6525
|
+
.pipe(takeUntil$1(this.destroy$), delay(this.BREAKPOINT_CHANGES_TIMEOUT))
|
|
6521
6526
|
.subscribe(result => {
|
|
6522
6527
|
this.isMobile = result.matches;
|
|
6523
6528
|
this.hideItems();
|
|
@@ -6878,10 +6883,10 @@ class EclStickyContainerComponent extends ECLBaseDirective {
|
|
|
6878
6883
|
!this.isEnabled ? 'ecl-sticky-container--disabled' : ''
|
|
6879
6884
|
].join(' ').trim();
|
|
6880
6885
|
}
|
|
6881
|
-
top() {
|
|
6886
|
+
get top() {
|
|
6882
6887
|
return this.marginTop || null;
|
|
6883
6888
|
}
|
|
6884
|
-
bottom() {
|
|
6889
|
+
get bottom() {
|
|
6885
6890
|
return this.marginBottom || null;
|
|
6886
6891
|
}
|
|
6887
6892
|
}
|
|
@@ -6958,14 +6963,14 @@ class EclInpageNavigationComponent extends ECLBaseDirective {
|
|
|
6958
6963
|
handleNavigationItemsScroll() {
|
|
6959
6964
|
const scrollableContainer = window;
|
|
6960
6965
|
const sectionElementIds = this.eclNavigationLinkItems.map(item => item.sectionId);
|
|
6961
|
-
fromEvent(scrollableContainer, 'scroll').pipe(takeUntil(this.destroy$)).subscribe((event) => {
|
|
6966
|
+
fromEvent(scrollableContainer, 'scroll').pipe(takeUntil$1(this.destroy$)).subscribe((event) => {
|
|
6962
6967
|
const sectionElements = sectionElementIds.map(id => document.querySelector(`#${id}`));
|
|
6963
6968
|
this.handleNavigationLinksHighlight(sectionElements);
|
|
6964
6969
|
});
|
|
6965
6970
|
}
|
|
6966
6971
|
handleNavigationItemsClick() {
|
|
6967
6972
|
this.eclNavigationLinkItems.forEach(item => {
|
|
6968
|
-
item.itemClick.pipe(takeUntil(this.destroy$)).subscribe((evt) => {
|
|
6973
|
+
item.itemClick.pipe(takeUntil$1(this.destroy$)).subscribe((evt) => {
|
|
6969
6974
|
this.selectNavigationItem(this.eclNavigationLinkItems, item.sectionElement);
|
|
6970
6975
|
if (item.sectionElement) {
|
|
6971
6976
|
item.sectionElement.scrollIntoView();
|
|
@@ -7013,12 +7018,16 @@ class EclInpageNavigationComponent extends ECLBaseDirective {
|
|
|
7013
7018
|
}
|
|
7014
7019
|
}
|
|
7015
7020
|
/** @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 });
|
|
7016
|
-
/** @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" }] });
|
|
7021
|
+
/** @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" }] });
|
|
7017
7022
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0-next.4", ngImport: i0, type: EclInpageNavigationComponent, decorators: [{
|
|
7018
7023
|
type: Component,
|
|
7019
|
-
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"] }]
|
|
7024
|
+
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"] }]
|
|
7020
7025
|
}], propDecorators: { eclTitle: [{
|
|
7021
7026
|
type: Input
|
|
7027
|
+
}], marginTop: [{
|
|
7028
|
+
type: Input
|
|
7029
|
+
}], marginBottom: [{
|
|
7030
|
+
type: Input
|
|
7022
7031
|
}], sectionEnter: [{
|
|
7023
7032
|
type: Output
|
|
7024
7033
|
}], eclNavigationLinkItems: [{
|
|
@@ -7544,7 +7553,7 @@ class EclMenuMegaComponent extends ECLBaseDirective {
|
|
|
7544
7553
|
this.destroy$.unsubscribe();
|
|
7545
7554
|
}
|
|
7546
7555
|
createContentChildrenMenuObservable() {
|
|
7547
|
-
return of(this.eclMenuMegaItems).pipe(mergeWith(this.eclMenuMegaItems.changes), takeUntil(this.destroy$));
|
|
7556
|
+
return of(this.eclMenuMegaItems).pipe(mergeWith(this.eclMenuMegaItems.changes), takeUntil$1(this.destroy$));
|
|
7548
7557
|
}
|
|
7549
7558
|
onMenuItemChanges() {
|
|
7550
7559
|
this.diff = this.differ.diff(this.eclMenuMegaItems);
|
|
@@ -7561,7 +7570,7 @@ class EclMenuMegaComponent extends ECLBaseDirective {
|
|
|
7561
7570
|
}
|
|
7562
7571
|
connectMenuItemEvents(item) {
|
|
7563
7572
|
item.menuItemSelect
|
|
7564
|
-
.pipe(takeUntil(this.destroy$))
|
|
7573
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7565
7574
|
.subscribe((evt) => {
|
|
7566
7575
|
this.onMenuItemSelected(item, evt);
|
|
7567
7576
|
});
|
|
@@ -7664,7 +7673,7 @@ class EclMenuItemComponent extends ECLBaseDirective {
|
|
|
7664
7673
|
ngAfterContentInit() {
|
|
7665
7674
|
if (this.submenu) {
|
|
7666
7675
|
this.submenu.menuItemSelect
|
|
7667
|
-
.pipe(takeUntil(this.destroy$))
|
|
7676
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7668
7677
|
.subscribe((it) => {
|
|
7669
7678
|
this.menuMegaItemSelect.next(new EclMenuItemSelectEvent(it.menuItem, it.domEvent));
|
|
7670
7679
|
});
|
|
@@ -7845,7 +7854,7 @@ class EclMenuComponent extends ECLBaseDirective {
|
|
|
7845
7854
|
return this.eclRootMenuItems.some(item => item.isExpanded);
|
|
7846
7855
|
}
|
|
7847
7856
|
createRootMenuItemsChangesObservable() {
|
|
7848
|
-
return of(this.eclRootMenuItems).pipe(mergeWith(this.eclRootMenuItems.changes), takeUntil(this.destroy$));
|
|
7857
|
+
return of(this.eclRootMenuItems).pipe(mergeWith(this.eclRootMenuItems.changes), takeUntil$1(this.destroy$));
|
|
7849
7858
|
}
|
|
7850
7859
|
onMenuItemChanges() {
|
|
7851
7860
|
this.diff = this.differ.diff(this.eclRootMenuItems);
|
|
@@ -7862,19 +7871,19 @@ class EclMenuComponent extends ECLBaseDirective {
|
|
|
7862
7871
|
}
|
|
7863
7872
|
connectMenuItemEvents(item) {
|
|
7864
7873
|
item.menuItemSelect
|
|
7865
|
-
.pipe(takeUntil(this.destroy$))
|
|
7874
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7866
7875
|
.subscribe((evt) => { this.onRootMenuItemSelected(evt); });
|
|
7867
7876
|
item.menuItemHover
|
|
7868
|
-
.pipe(takeUntil(this.destroy$))
|
|
7877
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7869
7878
|
.subscribe((evt) => { this.onRootMenuItemHovered(evt); });
|
|
7870
7879
|
item.menuItemHoverOut
|
|
7871
|
-
.pipe(takeUntil(this.destroy$))
|
|
7880
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7872
7881
|
.subscribe((evt) => { this.onRootMenuItemHoveredOut(evt); });
|
|
7873
7882
|
item.menuMegaItemSelect
|
|
7874
|
-
.pipe(takeUntil(this.destroy$))
|
|
7883
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7875
7884
|
.subscribe((evt) => { this.onMenuMegaItemSelected(item, evt); });
|
|
7876
7885
|
item.menuItemFocus
|
|
7877
|
-
.pipe(takeUntil(this.destroy$))
|
|
7886
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
7878
7887
|
.subscribe((evt) => { this.onRootMenuItemFocused(item, evt); });
|
|
7879
7888
|
}
|
|
7880
7889
|
onRootMenuItemFocused(item, evt) {
|
|
@@ -7997,7 +8006,7 @@ class EclMenuComponent extends ECLBaseDirective {
|
|
|
7997
8006
|
observeRootMenuItemsChanges() {
|
|
7998
8007
|
this.diff = this.differ.diff(this.eclRootMenuItems);
|
|
7999
8008
|
this.createRootMenuItemsChangesObservable()
|
|
8000
|
-
.pipe(takeUntil(this.destroy$))
|
|
8009
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
8001
8010
|
.subscribe(this.onMenuItemChanges.bind(this));
|
|
8002
8011
|
}
|
|
8003
8012
|
observeSwipeGestures() {
|
|
@@ -8006,7 +8015,7 @@ class EclMenuComponent extends ECLBaseDirective {
|
|
|
8006
8015
|
}
|
|
8007
8016
|
observeBreakpointChanges() {
|
|
8008
8017
|
this.cdkBreakpointObserver.observe([Breakpoints.Handset, Breakpoints.Tablet, Breakpoints.Small])
|
|
8009
|
-
.pipe(takeUntil(this.destroy$))
|
|
8018
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
8010
8019
|
.subscribe(result => {
|
|
8011
8020
|
this.isMobileBreakpoint = result.matches;
|
|
8012
8021
|
});
|
|
@@ -8400,7 +8409,7 @@ class EclMultiselectComponent extends ECLBaseDirective {
|
|
|
8400
8409
|
}
|
|
8401
8410
|
}
|
|
8402
8411
|
onOptionsChange() {
|
|
8403
|
-
this.eclOptionItems.forEach(i => i.changes.pipe(takeUntil
|
|
8412
|
+
this.eclOptionItems.forEach(i => i.changes.pipe(takeUntil(this.destroy$)).subscribe(e => {
|
|
8404
8413
|
setTimeout(() => {
|
|
8405
8414
|
this.multiselectWrapper.removeChild(this.multiDropdown);
|
|
8406
8415
|
this.multiDropdown.remove();
|
|
@@ -8642,7 +8651,7 @@ class EclMultiselectComponent extends ECLBaseDirective {
|
|
|
8642
8651
|
handleTranslations() {
|
|
8643
8652
|
this.translate
|
|
8644
8653
|
.stream('ecl.multiselect.SELECT-ALL')
|
|
8645
|
-
.pipe(takeUntil
|
|
8654
|
+
.pipe(takeUntil(this.destroy$)).subscribe((translation) => {
|
|
8646
8655
|
if (this.checkboxLabel) {
|
|
8647
8656
|
this.checkboxLabel.textContent = translation;
|
|
8648
8657
|
}
|
|
@@ -12447,7 +12456,7 @@ class EclTableDirective extends ECLBaseDirective {
|
|
|
12447
12456
|
const diff = this.differ.diff(this.eclTableHeaders);
|
|
12448
12457
|
if (diff) {
|
|
12449
12458
|
diff.forEachAddedItem(change => {
|
|
12450
|
-
change.item.sort.pipe(takeUntil(this.destroy$))
|
|
12459
|
+
change.item.sort.pipe(takeUntil$1(this.destroy$))
|
|
12451
12460
|
.subscribe((evt) => {
|
|
12452
12461
|
this.sort.emit(evt);
|
|
12453
12462
|
});
|
|
@@ -12499,7 +12508,7 @@ class EclTableHeadDirective extends ECLBaseDirective {
|
|
|
12499
12508
|
const diff = this.differ.diff(this.eclTableHeaders);
|
|
12500
12509
|
if (diff) {
|
|
12501
12510
|
diff.forEachAddedItem(change => {
|
|
12502
|
-
change.item.sort.pipe(takeUntil(this.destroy$))
|
|
12511
|
+
change.item.sort.pipe(takeUntil$1(this.destroy$))
|
|
12503
12512
|
.subscribe((evt) => {
|
|
12504
12513
|
this.eclTableHeaders.forEach(th => {
|
|
12505
12514
|
th.removeAriaSort();
|
|
@@ -12869,11 +12878,11 @@ class EclTabsComponent extends ECLBaseDirective {
|
|
|
12869
12878
|
observeTabsChanges() {
|
|
12870
12879
|
this.diff = this.differ.diff(this.tabs);
|
|
12871
12880
|
this.createTabsChangesObservable()
|
|
12872
|
-
.pipe(takeUntil(this.destroy$))
|
|
12881
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
12873
12882
|
.subscribe(this.onTabsChanges.bind(this));
|
|
12874
12883
|
}
|
|
12875
12884
|
createTabsChangesObservable() {
|
|
12876
|
-
return of(this.tabs).pipe(mergeWith(this.tabs.changes), takeUntil(this.destroy$));
|
|
12885
|
+
return of(this.tabs).pipe(mergeWith(this.tabs.changes), takeUntil$1(this.destroy$));
|
|
12877
12886
|
}
|
|
12878
12887
|
onTabsChanges() {
|
|
12879
12888
|
this.diff = this.differ.diff(this.tabs);
|
|
@@ -12890,7 +12899,7 @@ class EclTabsComponent extends ECLBaseDirective {
|
|
|
12890
12899
|
}
|
|
12891
12900
|
connectTabEvents(tab) {
|
|
12892
12901
|
tab.select
|
|
12893
|
-
.pipe(takeUntil(this.destroy$))
|
|
12902
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
12894
12903
|
.subscribe(() => {
|
|
12895
12904
|
this.deactivateAllTabs(this.tabs.toArray());
|
|
12896
12905
|
this.activateTab(tab);
|
|
@@ -13198,7 +13207,7 @@ class EclTimelineItemComponent extends ECLBaseDirective {
|
|
|
13198
13207
|
ngAfterContentInit() {
|
|
13199
13208
|
if (this.timelineItemToggler) {
|
|
13200
13209
|
this.timelineItemToggler.toggle
|
|
13201
|
-
.pipe(takeUntil(this.destroy$))
|
|
13210
|
+
.pipe(takeUntil$1(this.destroy$))
|
|
13202
13211
|
.subscribe(() => {
|
|
13203
13212
|
this.handleToggler();
|
|
13204
13213
|
});
|
|
@@ -13277,7 +13286,7 @@ class EclTimelineComponent extends ECLBaseDirective {
|
|
|
13277
13286
|
this.timelineItems
|
|
13278
13287
|
.filter(item => item.isToggler)
|
|
13279
13288
|
.forEach(it => {
|
|
13280
|
-
it.toggle.pipe(takeUntil(this.destroy$)).subscribe((evt) => {
|
|
13289
|
+
it.toggle.pipe(takeUntil$1(this.destroy$)).subscribe((evt) => {
|
|
13281
13290
|
if (this.timelineItems && !evt.defaultPrevented) {
|
|
13282
13291
|
this.timelineItems
|
|
13283
13292
|
.filter(item => item.toggleGroup === evt.toggleGroup)
|