@ethlete/cdk 5.0.0-next.32 → 5.0.0-next.33
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/CHANGELOG.md +6 -0
- package/fesm2022/ethlete-cdk.mjs +26 -26
- package/fesm2022/ethlete-cdk.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/fesm2022/ethlete-cdk.mjs
CHANGED
|
@@ -5885,10 +5885,10 @@ class DecoratedInputBase extends InputBase {
|
|
|
5885
5885
|
'et-input--has-suffix': toSignal(this.hasSuffix$),
|
|
5886
5886
|
});
|
|
5887
5887
|
this.hasPrefix$
|
|
5888
|
-
.pipe(
|
|
5888
|
+
.pipe(tap((hasPrefix) => this._formFieldStateService.hasPrefix$.next(hasPrefix)), takeUntilDestroyed())
|
|
5889
5889
|
.subscribe();
|
|
5890
5890
|
this.hasSuffix$
|
|
5891
|
-
.pipe(
|
|
5891
|
+
.pipe(tap((hasSuffix) => this._formFieldStateService.hasSuffix$.next(hasSuffix)), takeUntilDestroyed())
|
|
5892
5892
|
.subscribe();
|
|
5893
5893
|
}
|
|
5894
5894
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: DecoratedInputBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
@@ -8447,19 +8447,19 @@ const createOverlayHandler = (rootConfig) => {
|
|
|
8447
8447
|
if (afterClosedFn) {
|
|
8448
8448
|
ref
|
|
8449
8449
|
.afterClosed()
|
|
8450
|
-
.pipe(
|
|
8450
|
+
.pipe(tap((r) => afterClosedFn(r ?? null)), takeUntilDestroyed(destroyRef))
|
|
8451
8451
|
.subscribe();
|
|
8452
8452
|
}
|
|
8453
8453
|
if (beforeClosedFn) {
|
|
8454
8454
|
ref
|
|
8455
8455
|
.beforeClosed()
|
|
8456
|
-
.pipe(
|
|
8456
|
+
.pipe(tap((r) => beforeClosedFn(r ?? null)), takeUntilDestroyed(destroyRef))
|
|
8457
8457
|
.subscribe();
|
|
8458
8458
|
}
|
|
8459
8459
|
if (afterOpenedFn) {
|
|
8460
8460
|
ref
|
|
8461
8461
|
.afterOpened()
|
|
8462
|
-
.pipe(
|
|
8462
|
+
.pipe(tap(() => afterOpenedFn()), takeUntilDestroyed(destroyRef))
|
|
8463
8463
|
.subscribe();
|
|
8464
8464
|
}
|
|
8465
8465
|
return ref;
|
|
@@ -8539,7 +8539,7 @@ const createOverlayHandlerWithQueryParamLifecycle = (config) => {
|
|
|
8539
8539
|
currentOverlayRef = overlayHandler.open();
|
|
8540
8540
|
currentOverlayRef
|
|
8541
8541
|
.beforeClosed()
|
|
8542
|
-
.pipe(
|
|
8542
|
+
.pipe(tap(() => cleanup()), takeUntilDestroyed(destroyRef))
|
|
8543
8543
|
.subscribe();
|
|
8544
8544
|
const inputSignal = getQueryParamInput();
|
|
8545
8545
|
if (inputSignal) {
|
|
@@ -10113,14 +10113,14 @@ class OverlayCloseBlockerDirective {
|
|
|
10113
10113
|
if (!this._animatedOverlay || !this._nearestOverlayRef)
|
|
10114
10114
|
return;
|
|
10115
10115
|
combineLatest([this._animatedOverlay.isMounted$, this._animatedOverlay.isHidden$])
|
|
10116
|
-
.pipe(
|
|
10116
|
+
.pipe(tap(([mounted, hidden]) => {
|
|
10117
10117
|
if (mounted && !hidden) {
|
|
10118
10118
|
this._nearestOverlayRef?._addInternalBackdropCloseInitiator(this._id);
|
|
10119
10119
|
}
|
|
10120
10120
|
else {
|
|
10121
10121
|
this._nearestOverlayRef?._removeInternalBackdropCloseInitiator(this._id);
|
|
10122
10122
|
}
|
|
10123
|
-
}))
|
|
10123
|
+
}), takeUntilDestroyed())
|
|
10124
10124
|
.subscribe();
|
|
10125
10125
|
}
|
|
10126
10126
|
ngOnDestroy() {
|
|
@@ -10845,7 +10845,7 @@ class ScrollableComponent {
|
|
|
10845
10845
|
threshold: ELEMENT_INTERSECTION_THRESHOLD,
|
|
10846
10846
|
});
|
|
10847
10847
|
this.scrollableContentIntersections$ = toObservable(this.scrollableContentIntersections);
|
|
10848
|
-
this.maxVisibleItemCount = toSignal(this.scrollableContentIntersections$.pipe(
|
|
10848
|
+
this.maxVisibleItemCount = toSignal(this.scrollableContentIntersections$.pipe(debounceTime(150), map((entries) => entries.filter((i) => i.intersectionRatio > 0).length), takeUntilDestroyed()), { initialValue: 0 });
|
|
10849
10849
|
this.nonScrollableIntersections = computed(() => {
|
|
10850
10850
|
const allIntersections = this.scrollableContentIntersections();
|
|
10851
10851
|
return allIntersections.filter((i) => i.intersectionRatio !== 1).map((i) => i.target);
|
|
@@ -10907,12 +10907,12 @@ class ScrollableComponent {
|
|
|
10907
10907
|
return gap;
|
|
10908
10908
|
}, /* @ts-ignore */
|
|
10909
10909
|
...(ngDevMode ? [{ debugName: "gapValue" }] : /* istanbul ignore next */ []));
|
|
10910
|
-
this.intersectionChange = outputFromObservable(toObservable(this.scrollableContentIntersections).pipe(
|
|
10910
|
+
this.intersectionChange = outputFromObservable(toObservable(this.scrollableContentIntersections).pipe(debounceTime(50), map((entries) => entries.map((i, index) => ({
|
|
10911
10911
|
index,
|
|
10912
10912
|
element: i.target,
|
|
10913
10913
|
intersectionRatio: i.intersectionRatio,
|
|
10914
10914
|
isIntersecting: i.isIntersecting,
|
|
10915
|
-
})))));
|
|
10915
|
+
}))), takeUntilDestroyed()));
|
|
10916
10916
|
this.scrollStateChange = outputFromObservable(toObservable(computed(() => ({
|
|
10917
10917
|
canScroll: this.canScroll(),
|
|
10918
10918
|
isAtEnd: this.isAtEnd(),
|
|
@@ -10955,7 +10955,7 @@ class ScrollableComponent {
|
|
|
10955
10955
|
const isDragging$ = toObservable(this.cursorDragScrollState.isDragging);
|
|
10956
10956
|
const scrollable$ = toObservable(this.scrollable);
|
|
10957
10957
|
toObservable(this.snap)
|
|
10958
|
-
.pipe(
|
|
10958
|
+
.pipe(switchMap((enabled) => {
|
|
10959
10959
|
if (!enabled)
|
|
10960
10960
|
return EMPTY;
|
|
10961
10961
|
return combineLatest([this.scrollableContentIntersections$, isDragging$]).pipe(filter(([, isDragging]) => !isDragging), map(([intersections]) => intersections), debounceTime(150), tap((allIntersections) => {
|
|
@@ -10970,14 +10970,14 @@ class ScrollableComponent {
|
|
|
10970
10970
|
this.scrollToElement({ element: target.element, origin: target.origin, ignoreForcedOrigin: true });
|
|
10971
10971
|
}
|
|
10972
10972
|
}));
|
|
10973
|
-
}))
|
|
10973
|
+
}), takeUntilDestroyed())
|
|
10974
10974
|
.subscribe();
|
|
10975
10975
|
toObservable(this.manualActiveNavigationIndex)
|
|
10976
|
-
.pipe(
|
|
10976
|
+
.pipe(filter((i) => i !== null), switchMap(() => scrollable$.pipe(switchMap((ref) => {
|
|
10977
10977
|
if (!ref)
|
|
10978
10978
|
return EMPTY;
|
|
10979
10979
|
return fromEvent(ref.nativeElement, 'scroll');
|
|
10980
|
-
}))), debounceTime(50), tap(() => this.manualActiveNavigationIndex.set(null)))
|
|
10980
|
+
}))), debounceTime(50), tap(() => this.manualActiveNavigationIndex.set(null)), takeUntilDestroyed())
|
|
10981
10981
|
.subscribe();
|
|
10982
10982
|
}
|
|
10983
10983
|
getNavigationDotsContainerTranslate(navigationDotCount, activeIndex) {
|
|
@@ -11288,10 +11288,10 @@ class MenuComponent {
|
|
|
11288
11288
|
this.elementsIfIsCurrentFocusTarget = this.focusRegistry.currentFocusTarget(this.id);
|
|
11289
11289
|
this._trigger._connectWithMenu(this);
|
|
11290
11290
|
fromEvent(this.elementRef.nativeElement, 'focus')
|
|
11291
|
-
.pipe(
|
|
11291
|
+
.pipe(tap(() => this.focusFirstItem()), takeUntilDestroyed())
|
|
11292
11292
|
.subscribe();
|
|
11293
11293
|
fromEvent(this.elementRef.nativeElement, 'keydown')
|
|
11294
|
-
.pipe(
|
|
11294
|
+
.pipe(tap((e) => this._handleKeydown(e)), takeUntilDestroyed())
|
|
11295
11295
|
.subscribe();
|
|
11296
11296
|
const initialFocusEffectRef = effect(() => {
|
|
11297
11297
|
const items = this.menuItemList();
|
|
@@ -12731,7 +12731,7 @@ class CarouselNextButtonDirective {
|
|
|
12731
12731
|
'aria-disabled': computed(() => !this.canGoNext()),
|
|
12732
12732
|
});
|
|
12733
12733
|
fromEvent(injectHostElement(), 'click')
|
|
12734
|
-
.pipe(
|
|
12734
|
+
.pipe(filter(() => this.canGoNext()), tap(() => this.carousel.next()), takeUntilDestroyed())
|
|
12735
12735
|
.subscribe();
|
|
12736
12736
|
}
|
|
12737
12737
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: CarouselNextButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
@@ -12776,7 +12776,7 @@ class CarouselPreviousButtonDirective {
|
|
|
12776
12776
|
'aria-disabled': computed(() => !this.canGoPrevious()),
|
|
12777
12777
|
});
|
|
12778
12778
|
fromEvent(injectHostElement(), 'click')
|
|
12779
|
-
.pipe(
|
|
12779
|
+
.pipe(filter(() => this.canGoPrevious()), tap(() => this.carousel.prev()), takeUntilDestroyed())
|
|
12780
12780
|
.subscribe();
|
|
12781
12781
|
}
|
|
12782
12782
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: CarouselPreviousButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
@@ -12818,7 +12818,7 @@ class CarouselToggleAutoPlayButtonDirective {
|
|
|
12818
12818
|
'et-carousel-toggle-auto-play-button--paused': computed(() => this.carousel.isAutoPlayPaused()),
|
|
12819
12819
|
});
|
|
12820
12820
|
fromEvent(injectHostElement(), 'click')
|
|
12821
|
-
.pipe(
|
|
12821
|
+
.pipe(tap(() => (this.carousel.isAutoPlayPaused() ? this.carousel.resumeAutoPlay() : this.carousel.stopAutoPlay())), takeUntilDestroyed())
|
|
12822
12822
|
.subscribe();
|
|
12823
12823
|
}
|
|
12824
12824
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: CarouselToggleAutoPlayButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
@@ -14184,7 +14184,7 @@ class IfSupportsShowPickerDirective {
|
|
|
14184
14184
|
this.viewContainerRef = inject(ViewContainerRef);
|
|
14185
14185
|
this.didCreateView = false;
|
|
14186
14186
|
this.input.nativeInputRef$
|
|
14187
|
-
.pipe(
|
|
14187
|
+
.pipe(distinctUntilChanged(), tap((value) => {
|
|
14188
14188
|
const inputElement = value?.element.nativeElement;
|
|
14189
14189
|
if (inputElement && 'type' in inputElement) {
|
|
14190
14190
|
const type = inputElement.type;
|
|
@@ -14197,7 +14197,7 @@ class IfSupportsShowPickerDirective {
|
|
|
14197
14197
|
this.didCreateView = false;
|
|
14198
14198
|
}
|
|
14199
14199
|
}
|
|
14200
|
-
}))
|
|
14200
|
+
}), takeUntilDestroyed())
|
|
14201
14201
|
.subscribe();
|
|
14202
14202
|
}
|
|
14203
14203
|
getShowPickerSupportPlatformKey() {
|
|
@@ -15973,11 +15973,11 @@ class ComboboxDirective {
|
|
|
15973
15973
|
setInputSignal(this._animatedOverlay.fallbackPlacements, ['bottom', 'top']);
|
|
15974
15974
|
setInputSignal(this._animatedOverlay.autoResize, true);
|
|
15975
15975
|
this._selectionModel.allowMultiple$
|
|
15976
|
-
.pipe(
|
|
15976
|
+
.pipe(tap((allowMultiple) => {
|
|
15977
15977
|
if (allowMultiple) {
|
|
15978
15978
|
this._updateFilter('');
|
|
15979
15979
|
}
|
|
15980
|
-
}))
|
|
15980
|
+
}), takeUntilDestroyed())
|
|
15981
15981
|
.subscribe();
|
|
15982
15982
|
this._input._setEmptyHelper(this._currentFilter$);
|
|
15983
15983
|
}
|
|
@@ -16531,7 +16531,7 @@ class ComboboxBodyComponent {
|
|
|
16531
16531
|
this._customErrorComponentInputs = toSignal(combineLatest([this.combobox.error$, toObservable(this.combobox.bodyErrorComponentInputs)]).pipe(map(([error, inputs]) => ({ error, ...inputs }))));
|
|
16532
16532
|
this._bodyTemplate = null;
|
|
16533
16533
|
outputToObservable(this.clickOutside.didClickOutside)
|
|
16534
|
-
.pipe(
|
|
16534
|
+
.pipe(tap(() => this.combobox.close()), takeUntilDestroyed())
|
|
16535
16535
|
.subscribe();
|
|
16536
16536
|
}
|
|
16537
16537
|
setColorFromProvider(provider) {
|
|
@@ -17232,7 +17232,7 @@ class SelectBodyDirective {
|
|
|
17232
17232
|
'aria-labelledby': toSignal(this._select.input.labelId$),
|
|
17233
17233
|
});
|
|
17234
17234
|
outputToObservable(this._clickOutside.didClickOutside)
|
|
17235
|
-
.pipe(
|
|
17235
|
+
.pipe(tap(() => this._select.close()), takeUntilDestroyed())
|
|
17236
17236
|
.subscribe();
|
|
17237
17237
|
}
|
|
17238
17238
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: SelectBodyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|