@ethlete/core 2.1.0 → 2.2.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/esm2022/lib/components/structured-data/structured-data.component.mjs +3 -3
- package/esm2022/lib/directives/animatable/animatable.directive.mjs +3 -3
- package/esm2022/lib/directives/animated-lifecycle/animated-lifecycle.directive.mjs +3 -3
- package/esm2022/lib/directives/animated-overlay/animated-overlay.directive.mjs +41 -8
- package/esm2022/lib/directives/click-outside/click-outside.directive.mjs +3 -3
- package/esm2022/lib/directives/cursor-drag-scroll/cursor-drag-scroll.directive.mjs +3 -3
- package/esm2022/lib/directives/delayable/delayable.directive.mjs +3 -3
- package/esm2022/lib/directives/is-active-element/is-active-element.directive.mjs +3 -3
- package/esm2022/lib/directives/let/let.directive.mjs +3 -3
- package/esm2022/lib/directives/observe-content/observe-content.directive.mjs +3 -3
- package/esm2022/lib/directives/observe-resize/index.mjs +2 -0
- package/esm2022/lib/directives/observe-resize/observe-resize.directive.mjs +3 -3
- package/esm2022/lib/directives/observe-scroll-state/observe-scroll-state.directive.mjs +3 -3
- package/esm2022/lib/directives/repeat/repeat.directive.mjs +3 -3
- package/esm2022/lib/directives/scroll-observer-first-element/scroll-observer-first-element.directive.mjs +3 -3
- package/esm2022/lib/directives/scroll-observer-ignore-target/scroll-observer-ignore-target.directive.mjs +3 -3
- package/esm2022/lib/directives/scroll-observer-last-element/scroll-observer-last-element.directive.mjs +3 -3
- package/esm2022/lib/directives/seo/seo.directive.mjs +3 -3
- package/esm2022/lib/pipes/normalize-game-result-type/normalize-game-result-type.pipe.mjs +3 -3
- package/esm2022/lib/pipes/normalize-match-participants/normalize-match-participants.pipe.mjs +3 -3
- package/esm2022/lib/pipes/normalize-match-score/normalize-match-score.pipe.mjs +3 -3
- package/esm2022/lib/pipes/normalize-match-state/normalize-match-state.pipe.mjs +3 -3
- package/esm2022/lib/pipes/normalize-match-type/normalize-match-type.pipe.mjs +3 -3
- package/esm2022/lib/pipes/to-array/to-array.pipe.mjs +3 -3
- package/esm2022/lib/services/click-observer.service.mjs +6 -6
- package/esm2022/lib/services/content-observer.service.mjs +6 -6
- package/esm2022/lib/services/focus-visible.service.mjs +3 -3
- package/esm2022/lib/services/resize-observer.service.mjs +6 -6
- package/esm2022/lib/services/router-state.service.mjs +62 -5
- package/esm2022/lib/services/viewport.service.mjs +3 -3
- package/fesm2022/ethlete-core.mjs +416 -328
- package/fesm2022/ethlete-core.mjs.map +1 -1
- package/lib/directives/animated-overlay/animated-overlay.directive.d.ts +11 -4
- package/lib/directives/observe-resize/index.d.ts +1 -0
- package/lib/services/router-state.service.d.ts +22 -0
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, HostBinding, InjectionToken, assertInInjectionContext, DestroyRef, ElementRef, isDevMode, Directive,
|
|
2
|
+
import { inject, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, HostBinding, InjectionToken, assertInInjectionContext, DestroyRef, ElementRef, isDevMode, Directive, Injectable, Inject, Optional, NgZone, EventEmitter, Output, Injector, ViewContainerRef, Pipe, QueryList } from '@angular/core';
|
|
3
3
|
import { DomSanitizer, Meta, Title } from '@angular/platform-browser';
|
|
4
4
|
import { Observable, combineLatest, Subject, startWith, map, takeUntil, distinctUntilChanged, BehaviorSubject, skip, take, tap, debounceTime, merge, fromEvent, filter, switchMap, pairwise, shareReplay } from 'rxjs';
|
|
5
5
|
import { coerceCssPixelValue, coerceElement, coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
|
@@ -25,10 +25,10 @@ class StructuredDataComponent {
|
|
|
25
25
|
const html = `<script type="application/ld+json">${json}</script>`;
|
|
26
26
|
return this._sanitizer.bypassSecurityTrustHtml(html);
|
|
27
27
|
}
|
|
28
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
29
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.
|
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StructuredDataComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
29
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: StructuredDataComponent, isStandalone: true, selector: "et-structured-data", inputs: { data: "data" }, host: { properties: { "innerHTML": "this.jsonLD" }, styleAttribute: "display: none" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
30
30
|
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: StructuredDataComponent, decorators: [{
|
|
32
32
|
type: Component,
|
|
33
33
|
args: [{
|
|
34
34
|
selector: 'et-structured-data',
|
|
@@ -850,15 +850,15 @@ class AnimatableDirective {
|
|
|
850
850
|
.subscribe();
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
854
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.
|
|
853
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: AnimatableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
854
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: AnimatableDirective, isStandalone: true, selector: "[etAnimatable]", inputs: { animatedElement: ["etAnimatable", "animatedElement"] }, providers: [
|
|
855
855
|
{
|
|
856
856
|
provide: ANIMATABLE_TOKEN,
|
|
857
857
|
useExisting: AnimatableDirective,
|
|
858
858
|
},
|
|
859
859
|
], exportAs: ["etAnimatable"], ngImport: i0 }); }
|
|
860
860
|
}
|
|
861
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
861
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: AnimatableDirective, decorators: [{
|
|
862
862
|
type: Directive,
|
|
863
863
|
args: [{
|
|
864
864
|
selector: '[etAnimatable]',
|
|
@@ -958,15 +958,15 @@ class AnimatedLifecycleDirective {
|
|
|
958
958
|
}), takeUntil(this._destroy$), take(1))
|
|
959
959
|
.subscribe();
|
|
960
960
|
}
|
|
961
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
962
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.
|
|
961
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: AnimatedLifecycleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
962
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: AnimatedLifecycleDirective, isStandalone: true, selector: "[etAnimatedLifecycle]", providers: [
|
|
963
963
|
{
|
|
964
964
|
provide: ANIMATED_LIFECYCLE_TOKEN,
|
|
965
965
|
useExisting: AnimatedLifecycleDirective,
|
|
966
966
|
},
|
|
967
967
|
], exportAs: ["etAnimatedLifecycle"], hostDirectives: [{ directive: AnimatableDirective }], ngImport: i0 }); }
|
|
968
968
|
}
|
|
969
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
969
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: AnimatedLifecycleDirective, decorators: [{
|
|
970
970
|
type: Directive,
|
|
971
971
|
args: [{
|
|
972
972
|
selector: '[etAnimatedLifecycle]',
|
|
@@ -982,188 +982,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
|
982
982
|
}]
|
|
983
983
|
}] });
|
|
984
984
|
|
|
985
|
-
class AnimatedOverlayDirective {
|
|
986
|
-
constructor() {
|
|
987
|
-
this._destroy$ = createDestroy();
|
|
988
|
-
this._overlayService = inject(Overlay);
|
|
989
|
-
this._injector = inject(Injector);
|
|
990
|
-
this._viewContainerRef = inject(ViewContainerRef);
|
|
991
|
-
this._zone = inject(NgZone);
|
|
992
|
-
this._elementRef = inject(ElementRef);
|
|
993
|
-
this._portal = null;
|
|
994
|
-
this._overlayRef = null;
|
|
995
|
-
this._componentRef = null;
|
|
996
|
-
this._popper = null;
|
|
997
|
-
this._beforeOpened = null;
|
|
998
|
-
this._afterOpened = null;
|
|
999
|
-
this._beforeClosed = null;
|
|
1000
|
-
this._afterClosed = null;
|
|
1001
|
-
/**
|
|
1002
|
-
* The placement of the tooltip.
|
|
1003
|
-
* @default 'auto'
|
|
1004
|
-
*/
|
|
1005
|
-
this.placement = 'auto';
|
|
1006
|
-
/**
|
|
1007
|
-
* The offset of the tooltip.
|
|
1008
|
-
* @see https://popper.js.org/docs/v2/modifiers/offset/#offset-1
|
|
1009
|
-
*/
|
|
1010
|
-
this.offset = null;
|
|
1011
|
-
/**
|
|
1012
|
-
* The arrow padding.
|
|
1013
|
-
* @see https://popper.js.org/docs/v2/modifiers/arrow/#padding
|
|
1014
|
-
* @default 4
|
|
1015
|
-
*/
|
|
1016
|
-
this.arrowPadding = null;
|
|
1017
|
-
}
|
|
1018
|
-
get isMounted() {
|
|
1019
|
-
return !!this._componentRef;
|
|
1020
|
-
}
|
|
1021
|
-
get portal() {
|
|
1022
|
-
return this._portal;
|
|
1023
|
-
}
|
|
1024
|
-
get overlayRef() {
|
|
1025
|
-
return this._overlayRef;
|
|
1026
|
-
}
|
|
1027
|
-
get componentRef() {
|
|
1028
|
-
return this._componentRef;
|
|
1029
|
-
}
|
|
1030
|
-
get popper() {
|
|
1031
|
-
return this._popper;
|
|
1032
|
-
}
|
|
1033
|
-
mount(config) {
|
|
1034
|
-
const { component, providers, data } = config;
|
|
1035
|
-
this._beforeOpened?.next();
|
|
1036
|
-
const injector = Injector.create({
|
|
1037
|
-
parent: this._injector,
|
|
1038
|
-
providers: providers ?? [],
|
|
1039
|
-
});
|
|
1040
|
-
this._overlayRef = this._overlayService.create();
|
|
1041
|
-
this._portal = this._portal ?? new ComponentPortal(component, this._viewContainerRef, injector);
|
|
1042
|
-
this._componentRef = this._overlayRef.attach(this._portal);
|
|
1043
|
-
if (data) {
|
|
1044
|
-
Object.assign(this._componentRef.instance, data);
|
|
1045
|
-
}
|
|
1046
|
-
this._componentRef.instance._markForCheck?.();
|
|
1047
|
-
this._zone.runOutsideAngular(() => {
|
|
1048
|
-
if (!this._componentRef) {
|
|
1049
|
-
return;
|
|
1050
|
-
}
|
|
1051
|
-
this._popper = createPopper(this._elementRef.nativeElement, this._componentRef.location.nativeElement, {
|
|
1052
|
-
placement: this.placement,
|
|
1053
|
-
modifiers: [
|
|
1054
|
-
...(this.offset
|
|
1055
|
-
? [
|
|
1056
|
-
{
|
|
1057
|
-
name: 'offset',
|
|
1058
|
-
options: {
|
|
1059
|
-
offset: this.offset,
|
|
1060
|
-
},
|
|
1061
|
-
},
|
|
1062
|
-
]
|
|
1063
|
-
: []),
|
|
1064
|
-
...(this.arrowPadding
|
|
1065
|
-
? [
|
|
1066
|
-
{
|
|
1067
|
-
name: 'arrow',
|
|
1068
|
-
options: {
|
|
1069
|
-
padding: this.arrowPadding,
|
|
1070
|
-
},
|
|
1071
|
-
},
|
|
1072
|
-
]
|
|
1073
|
-
: []),
|
|
1074
|
-
],
|
|
1075
|
-
});
|
|
1076
|
-
// We need to wait for the tooltip content to be rendered
|
|
1077
|
-
nextFrame(() => {
|
|
1078
|
-
if (!this._componentRef) {
|
|
1079
|
-
return;
|
|
1080
|
-
}
|
|
1081
|
-
this._popper?.update();
|
|
1082
|
-
this._componentRef.instance._animatedLifecycle?.enter();
|
|
1083
|
-
this._componentRef.instance._animatedLifecycle?.state$
|
|
1084
|
-
.pipe(tap((s) => {
|
|
1085
|
-
if (s === 'entered') {
|
|
1086
|
-
this._afterOpened?.next();
|
|
1087
|
-
}
|
|
1088
|
-
}), take(1), takeUntil(this._destroy$))
|
|
1089
|
-
.subscribe();
|
|
1090
|
-
});
|
|
1091
|
-
});
|
|
1092
|
-
}
|
|
1093
|
-
unmount() {
|
|
1094
|
-
if (!this._componentRef) {
|
|
1095
|
-
return;
|
|
1096
|
-
}
|
|
1097
|
-
this._beforeClosed?.next();
|
|
1098
|
-
this._componentRef.instance._animatedLifecycle?.leave();
|
|
1099
|
-
this._componentRef.instance._animatedLifecycle?.state$
|
|
1100
|
-
.pipe(filter((s) => s === 'left'), take(1))
|
|
1101
|
-
.subscribe(() => this._destroy());
|
|
1102
|
-
}
|
|
1103
|
-
beforeOpened() {
|
|
1104
|
-
if (!this._beforeOpened) {
|
|
1105
|
-
this._beforeOpened = new Subject();
|
|
1106
|
-
}
|
|
1107
|
-
return this._beforeOpened;
|
|
1108
|
-
}
|
|
1109
|
-
afterOpened() {
|
|
1110
|
-
if (!this._afterOpened) {
|
|
1111
|
-
this._afterOpened = new Subject();
|
|
1112
|
-
}
|
|
1113
|
-
return this._afterOpened;
|
|
1114
|
-
}
|
|
1115
|
-
beforeClosed() {
|
|
1116
|
-
if (!this._beforeClosed) {
|
|
1117
|
-
this._beforeClosed = new Subject();
|
|
1118
|
-
}
|
|
1119
|
-
return this._beforeClosed;
|
|
1120
|
-
}
|
|
1121
|
-
afterClosed() {
|
|
1122
|
-
if (!this._afterClosed) {
|
|
1123
|
-
this._afterClosed = new Subject();
|
|
1124
|
-
}
|
|
1125
|
-
return this._afterClosed;
|
|
1126
|
-
}
|
|
1127
|
-
_destroy() {
|
|
1128
|
-
this._zone.runOutsideAngular(() => {
|
|
1129
|
-
this._popper?.destroy();
|
|
1130
|
-
this._popper = null;
|
|
1131
|
-
});
|
|
1132
|
-
if (this._overlayRef) {
|
|
1133
|
-
this._overlayRef.dispose();
|
|
1134
|
-
this._overlayRef = null;
|
|
1135
|
-
}
|
|
1136
|
-
if (this._componentRef) {
|
|
1137
|
-
this._componentRef.destroy();
|
|
1138
|
-
this._componentRef = null;
|
|
1139
|
-
}
|
|
1140
|
-
this._afterClosed?.next();
|
|
1141
|
-
}
|
|
1142
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AnimatedOverlayDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1143
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: AnimatedOverlayDirective, isStandalone: true, inputs: { placement: "placement", offset: "offset", arrowPadding: "arrowPadding" }, ngImport: i0 }); }
|
|
1144
|
-
}
|
|
1145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AnimatedOverlayDirective, decorators: [{
|
|
1146
|
-
type: Directive,
|
|
1147
|
-
args: [{
|
|
1148
|
-
standalone: true,
|
|
1149
|
-
}]
|
|
1150
|
-
}], propDecorators: { placement: [{
|
|
1151
|
-
type: Input
|
|
1152
|
-
}], offset: [{
|
|
1153
|
-
type: Input
|
|
1154
|
-
}], arrowPadding: [{
|
|
1155
|
-
type: Input
|
|
1156
|
-
}] } });
|
|
1157
|
-
|
|
1158
985
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
1159
986
|
class ClickObserverFactory {
|
|
1160
987
|
create() {
|
|
1161
988
|
return fromEvent(document, 'click');
|
|
1162
989
|
}
|
|
1163
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
1164
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
990
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ClickObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
991
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ClickObserverFactory, providedIn: 'root' }); }
|
|
1165
992
|
}
|
|
1166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
993
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ClickObserverFactory, decorators: [{
|
|
1167
994
|
type: Injectable,
|
|
1168
995
|
args: [{ providedIn: 'root' }]
|
|
1169
996
|
}] });
|
|
@@ -1216,10 +1043,10 @@ class ClickObserverService {
|
|
|
1216
1043
|
this._observedElements.delete(element);
|
|
1217
1044
|
}
|
|
1218
1045
|
}
|
|
1219
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
1220
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
1046
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ClickObserverService, deps: [{ token: ClickObserverFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1047
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ClickObserverService, providedIn: 'root' }); }
|
|
1221
1048
|
}
|
|
1222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
1049
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ClickObserverService, decorators: [{
|
|
1223
1050
|
type: Injectable,
|
|
1224
1051
|
args: [{ providedIn: 'root' }]
|
|
1225
1052
|
}], ctorParameters: function () { return [{ type: ClickObserverFactory }]; } });
|
|
@@ -1229,10 +1056,10 @@ class MutationObserverFactory {
|
|
|
1229
1056
|
create(callback) {
|
|
1230
1057
|
return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);
|
|
1231
1058
|
}
|
|
1232
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
1233
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
1059
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MutationObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1060
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MutationObserverFactory, providedIn: 'root' }); }
|
|
1234
1061
|
}
|
|
1235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
1062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MutationObserverFactory, decorators: [{
|
|
1236
1063
|
type: Injectable,
|
|
1237
1064
|
args: [{ providedIn: 'root' }]
|
|
1238
1065
|
}] });
|
|
@@ -1291,10 +1118,10 @@ class ContentObserverService {
|
|
|
1291
1118
|
this._observedElements.delete(element);
|
|
1292
1119
|
}
|
|
1293
1120
|
}
|
|
1294
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
1295
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
1121
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContentObserverService, deps: [{ token: MutationObserverFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1122
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContentObserverService, providedIn: 'root' }); }
|
|
1296
1123
|
}
|
|
1297
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
1124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContentObserverService, decorators: [{
|
|
1298
1125
|
type: Injectable,
|
|
1299
1126
|
args: [{ providedIn: 'root' }]
|
|
1300
1127
|
}], ctorParameters: function () { return [{ type: MutationObserverFactory }]; } });
|
|
@@ -1320,10 +1147,10 @@ class FocusVisibleService {
|
|
|
1320
1147
|
onPointerDown() {
|
|
1321
1148
|
this._hadKeyboardEvent = false;
|
|
1322
1149
|
}
|
|
1323
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
1324
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
1150
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FocusVisibleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1151
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FocusVisibleService, providedIn: 'root' }); }
|
|
1325
1152
|
}
|
|
1326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
1153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FocusVisibleService, decorators: [{
|
|
1327
1154
|
type: Injectable,
|
|
1328
1155
|
args: [{
|
|
1329
1156
|
providedIn: 'root',
|
|
@@ -1335,10 +1162,10 @@ class ResizeObserverFactory {
|
|
|
1335
1162
|
create(callback) {
|
|
1336
1163
|
return typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(callback);
|
|
1337
1164
|
}
|
|
1338
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
1339
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
1165
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ResizeObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1166
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ResizeObserverFactory, providedIn: 'root' }); }
|
|
1340
1167
|
}
|
|
1341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
1168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ResizeObserverFactory, decorators: [{
|
|
1342
1169
|
type: Injectable,
|
|
1343
1170
|
args: [{ providedIn: 'root' }]
|
|
1344
1171
|
}] });
|
|
@@ -1393,10 +1220,10 @@ class ResizeObserverService {
|
|
|
1393
1220
|
this._observedElements.delete(element);
|
|
1394
1221
|
}
|
|
1395
1222
|
}
|
|
1396
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
1397
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
1223
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ResizeObserverService, deps: [{ token: ResizeObserverFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1224
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ResizeObserverService, providedIn: 'root' }); }
|
|
1398
1225
|
}
|
|
1399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
1226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ResizeObserverService, decorators: [{
|
|
1400
1227
|
type: Injectable,
|
|
1401
1228
|
args: [{ providedIn: 'root' }]
|
|
1402
1229
|
}], ctorParameters: function () { return [{ type: ResizeObserverFactory }]; } });
|
|
@@ -1411,6 +1238,7 @@ const routerDisableScrollTop = (config = {}) => {
|
|
|
1411
1238
|
disableScrollTopAsReturnRoute: true,
|
|
1412
1239
|
};
|
|
1413
1240
|
};
|
|
1241
|
+
const ET_PROPERTY_REMOVED = Symbol('ET_PROPERTY_REMOVED');
|
|
1414
1242
|
class RouterStateService {
|
|
1415
1243
|
get route$() {
|
|
1416
1244
|
return this._route$.asObservable().pipe(distinctUntilChanged());
|
|
@@ -1418,6 +1246,48 @@ class RouterStateService {
|
|
|
1418
1246
|
get state$() {
|
|
1419
1247
|
return this._state$.asObservable();
|
|
1420
1248
|
}
|
|
1249
|
+
get state() {
|
|
1250
|
+
return this._state$.getValue();
|
|
1251
|
+
}
|
|
1252
|
+
get data$() {
|
|
1253
|
+
return this._state$.pipe(map((state) => state.data), distinctUntilChanged((a, b) => equal(a, b)));
|
|
1254
|
+
}
|
|
1255
|
+
get data() {
|
|
1256
|
+
return this._state$.getValue().data;
|
|
1257
|
+
}
|
|
1258
|
+
get pathParams$() {
|
|
1259
|
+
return this._state$.pipe(map((state) => state.pathParams), distinctUntilChanged((a, b) => equal(a, b)));
|
|
1260
|
+
}
|
|
1261
|
+
get pathParams() {
|
|
1262
|
+
return this._state$.getValue().pathParams;
|
|
1263
|
+
}
|
|
1264
|
+
get queryParams$() {
|
|
1265
|
+
return this._state$.pipe(map((state) => state.queryParams), distinctUntilChanged((a, b) => equal(a, b)));
|
|
1266
|
+
}
|
|
1267
|
+
get queryParams() {
|
|
1268
|
+
return this._state$.getValue().queryParams;
|
|
1269
|
+
}
|
|
1270
|
+
get title$() {
|
|
1271
|
+
return this._state$.pipe(map((state) => state.title), distinctUntilChanged());
|
|
1272
|
+
}
|
|
1273
|
+
get title() {
|
|
1274
|
+
return this._state$.getValue().title;
|
|
1275
|
+
}
|
|
1276
|
+
get fragment$() {
|
|
1277
|
+
return this._state$.pipe(map((state) => state.fragment), distinctUntilChanged());
|
|
1278
|
+
}
|
|
1279
|
+
get fragment() {
|
|
1280
|
+
return this._state$.getValue().fragment;
|
|
1281
|
+
}
|
|
1282
|
+
get dataChanges$() {
|
|
1283
|
+
return this.data$.pipe(pairwise(), map((v) => this._findChanges(v)), shareReplay({ bufferSize: 1, refCount: true }));
|
|
1284
|
+
}
|
|
1285
|
+
get queryParamChanges$() {
|
|
1286
|
+
return this.queryParams$.pipe(pairwise(), map((v) => this._findChanges(v)), shareReplay({ bufferSize: 1, refCount: true }));
|
|
1287
|
+
}
|
|
1288
|
+
get pathParamChanges$() {
|
|
1289
|
+
return this.pathParams$.pipe(pairwise(), map((v) => this._findChanges(v)), shareReplay({ bufferSize: 1, refCount: true }));
|
|
1290
|
+
}
|
|
1421
1291
|
constructor() {
|
|
1422
1292
|
this._isScrollTopOnNavigationEnabled = false;
|
|
1423
1293
|
this._router = inject(Router);
|
|
@@ -1501,10 +1371,24 @@ class RouterStateService {
|
|
|
1501
1371
|
selectData(key) {
|
|
1502
1372
|
return this._state$.pipe(map((state) => state.data[key]), distinctUntilChanged((a, b) => equal(a, b)));
|
|
1503
1373
|
}
|
|
1504
|
-
|
|
1505
|
-
|
|
1374
|
+
_findChanges([previous, current,]) {
|
|
1375
|
+
const changes = {};
|
|
1376
|
+
const allKeys = new Set([
|
|
1377
|
+
...Object.keys(previous),
|
|
1378
|
+
...Object.keys(current),
|
|
1379
|
+
]);
|
|
1380
|
+
for (const key of allKeys) {
|
|
1381
|
+
if (!equal(previous[key], current[key])) {
|
|
1382
|
+
const val = current[key] === undefined ? ET_PROPERTY_REMOVED : current[key];
|
|
1383
|
+
changes[key] = val;
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
return changes;
|
|
1387
|
+
}
|
|
1388
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RouterStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1389
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RouterStateService, providedIn: 'root' }); }
|
|
1506
1390
|
}
|
|
1507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
1391
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RouterStateService, decorators: [{
|
|
1508
1392
|
type: Injectable,
|
|
1509
1393
|
args: [{
|
|
1510
1394
|
providedIn: 'root',
|
|
@@ -1640,8 +1524,8 @@ class ViewportService {
|
|
|
1640
1524
|
}
|
|
1641
1525
|
return 'xs';
|
|
1642
1526
|
}
|
|
1643
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
1644
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
1527
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ViewportService, deps: [{ token: VIEWPORT_CONFIG, optional: true }, { token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1528
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ViewportService, providedIn: 'root' }); }
|
|
1645
1529
|
}
|
|
1646
1530
|
__decorate([
|
|
1647
1531
|
Memo(),
|
|
@@ -1659,7 +1543,7 @@ __decorate([
|
|
|
1659
1543
|
__metadata("design:paramtypes", [Object]),
|
|
1660
1544
|
__metadata("design:returntype", void 0)
|
|
1661
1545
|
], ViewportService.prototype, "_buildMediaQuery", null);
|
|
1662
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
1546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ViewportService, decorators: [{
|
|
1663
1547
|
type: Injectable,
|
|
1664
1548
|
args: [{
|
|
1665
1549
|
providedIn: 'root',
|
|
@@ -1671,6 +1555,273 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
|
1671
1555
|
type: Optional
|
|
1672
1556
|
}] }, { type: i1.BreakpointObserver }]; }, propDecorators: { _getViewportSize: [], _buildMediaQuery: [] } });
|
|
1673
1557
|
|
|
1558
|
+
class ObserveResizeDirective {
|
|
1559
|
+
constructor() {
|
|
1560
|
+
this._resizeObserver = inject(ResizeObserverService);
|
|
1561
|
+
this._elementRef = inject(ElementRef);
|
|
1562
|
+
this._ngZone = inject(NgZone);
|
|
1563
|
+
this.valueChange = new EventEmitter();
|
|
1564
|
+
this._disabled = false;
|
|
1565
|
+
this._debounce = null;
|
|
1566
|
+
this._currentSubscription = null;
|
|
1567
|
+
}
|
|
1568
|
+
get disabled() {
|
|
1569
|
+
return this._disabled;
|
|
1570
|
+
}
|
|
1571
|
+
set disabled(value) {
|
|
1572
|
+
this._disabled = coerceBooleanProperty(value);
|
|
1573
|
+
this._disabled ? this._unsubscribe() : this._subscribe();
|
|
1574
|
+
}
|
|
1575
|
+
get debounce() {
|
|
1576
|
+
return this._debounce;
|
|
1577
|
+
}
|
|
1578
|
+
set debounce(value) {
|
|
1579
|
+
this._debounce = coerceNumberProperty(value);
|
|
1580
|
+
this._subscribe();
|
|
1581
|
+
}
|
|
1582
|
+
ngAfterContentInit() {
|
|
1583
|
+
if (!this._currentSubscription && !this.disabled) {
|
|
1584
|
+
this._subscribe();
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
ngOnDestroy() {
|
|
1588
|
+
this._unsubscribe();
|
|
1589
|
+
}
|
|
1590
|
+
_subscribe() {
|
|
1591
|
+
this._unsubscribe();
|
|
1592
|
+
const stream = this._resizeObserver.observe(this._elementRef);
|
|
1593
|
+
this._ngZone.runOutsideAngular(() => {
|
|
1594
|
+
this._currentSubscription = (this.debounce ? stream.pipe(debounceTime(this.debounce)) : stream).subscribe(this.valueChange);
|
|
1595
|
+
});
|
|
1596
|
+
}
|
|
1597
|
+
_unsubscribe() {
|
|
1598
|
+
this._currentSubscription?.unsubscribe();
|
|
1599
|
+
}
|
|
1600
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ObserveResizeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1601
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ObserveResizeDirective, isStandalone: true, selector: "[etObserveResize]", inputs: { disabled: ["etObserveResizeDisabled", "disabled"], debounce: ["etObserveResizeDebounce", "debounce"] }, outputs: { valueChange: "etObserveResize" }, exportAs: ["etObserveResize"], ngImport: i0 }); }
|
|
1602
|
+
}
|
|
1603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ObserveResizeDirective, decorators: [{
|
|
1604
|
+
type: Directive,
|
|
1605
|
+
args: [{
|
|
1606
|
+
selector: '[etObserveResize]',
|
|
1607
|
+
exportAs: 'etObserveResize',
|
|
1608
|
+
standalone: true,
|
|
1609
|
+
}]
|
|
1610
|
+
}], propDecorators: { valueChange: [{
|
|
1611
|
+
type: Output,
|
|
1612
|
+
args: ['etObserveResize']
|
|
1613
|
+
}], disabled: [{
|
|
1614
|
+
type: Input,
|
|
1615
|
+
args: ['etObserveResizeDisabled']
|
|
1616
|
+
}], debounce: [{
|
|
1617
|
+
type: Input,
|
|
1618
|
+
args: ['etObserveResizeDebounce']
|
|
1619
|
+
}] } });
|
|
1620
|
+
|
|
1621
|
+
class AnimatedOverlayDirective {
|
|
1622
|
+
constructor() {
|
|
1623
|
+
this._destroy$ = createDestroy();
|
|
1624
|
+
this._overlayService = inject(Overlay);
|
|
1625
|
+
this._injector = inject(Injector);
|
|
1626
|
+
this._viewContainerRef = inject(ViewContainerRef);
|
|
1627
|
+
this._zone = inject(NgZone);
|
|
1628
|
+
this._elementRef = inject(ElementRef);
|
|
1629
|
+
this._observeResize = inject(ObserveResizeDirective);
|
|
1630
|
+
this._portal = null;
|
|
1631
|
+
this._overlayRef = null;
|
|
1632
|
+
this._componentRef = null;
|
|
1633
|
+
this._popper = null;
|
|
1634
|
+
this._beforeOpened = null;
|
|
1635
|
+
this._afterOpened = null;
|
|
1636
|
+
this._beforeClosed = null;
|
|
1637
|
+
this._afterClosed = null;
|
|
1638
|
+
this._isMounted$ = new BehaviorSubject(false);
|
|
1639
|
+
/**
|
|
1640
|
+
* The placement of the tooltip.
|
|
1641
|
+
* @default 'auto'
|
|
1642
|
+
*/
|
|
1643
|
+
this.placement = 'auto';
|
|
1644
|
+
/**
|
|
1645
|
+
* The offset of the tooltip.
|
|
1646
|
+
* @see https://popper.js.org/docs/v2/modifiers/offset/#offset-1
|
|
1647
|
+
*/
|
|
1648
|
+
this.offset = null;
|
|
1649
|
+
/**
|
|
1650
|
+
* The arrow padding.
|
|
1651
|
+
* @see https://popper.js.org/docs/v2/modifiers/arrow/#padding
|
|
1652
|
+
* @default 4
|
|
1653
|
+
*/
|
|
1654
|
+
this.arrowPadding = null;
|
|
1655
|
+
}
|
|
1656
|
+
get isMounted() {
|
|
1657
|
+
return this._isMounted$.value;
|
|
1658
|
+
}
|
|
1659
|
+
get isMounted$() {
|
|
1660
|
+
return this._isMounted$.asObservable();
|
|
1661
|
+
}
|
|
1662
|
+
get portal() {
|
|
1663
|
+
return this._portal;
|
|
1664
|
+
}
|
|
1665
|
+
get overlayRef() {
|
|
1666
|
+
return this._overlayRef;
|
|
1667
|
+
}
|
|
1668
|
+
get componentRef() {
|
|
1669
|
+
return this._componentRef;
|
|
1670
|
+
}
|
|
1671
|
+
get popper() {
|
|
1672
|
+
return this._popper;
|
|
1673
|
+
}
|
|
1674
|
+
mount(config) {
|
|
1675
|
+
if (this.isMounted) {
|
|
1676
|
+
if (isDevMode()) {
|
|
1677
|
+
console.warn('AnimatedOverlayDirective: There is already a component mounted. Please call `unmount` before calling `mount` again.');
|
|
1678
|
+
}
|
|
1679
|
+
return;
|
|
1680
|
+
}
|
|
1681
|
+
const { component, providers, data, mirrorWidth } = config;
|
|
1682
|
+
this._beforeOpened?.next();
|
|
1683
|
+
const injector = Injector.create({
|
|
1684
|
+
parent: this._injector,
|
|
1685
|
+
providers: providers ?? [],
|
|
1686
|
+
});
|
|
1687
|
+
this._overlayRef = this._overlayService.create();
|
|
1688
|
+
this._portal = this._portal ?? new ComponentPortal(component, this._viewContainerRef, injector);
|
|
1689
|
+
this._componentRef = this._overlayRef.attach(this._portal);
|
|
1690
|
+
if (data) {
|
|
1691
|
+
Object.assign(this._componentRef.instance, data);
|
|
1692
|
+
}
|
|
1693
|
+
this._componentRef.instance._markForCheck?.();
|
|
1694
|
+
if (mirrorWidth) {
|
|
1695
|
+
this._overlayRef.updateSize({
|
|
1696
|
+
width: this._elementRef.nativeElement.offsetWidth,
|
|
1697
|
+
});
|
|
1698
|
+
this._observeResize.valueChange
|
|
1699
|
+
.pipe(tap(() => {
|
|
1700
|
+
this._overlayRef?.updateSize({
|
|
1701
|
+
width: this._elementRef.nativeElement.offsetWidth,
|
|
1702
|
+
});
|
|
1703
|
+
this._popper?.update();
|
|
1704
|
+
}), takeUntil(this._destroy$), takeUntil(this.afterClosed()))
|
|
1705
|
+
.subscribe();
|
|
1706
|
+
}
|
|
1707
|
+
this._zone.runOutsideAngular(() => {
|
|
1708
|
+
if (!this._componentRef) {
|
|
1709
|
+
return;
|
|
1710
|
+
}
|
|
1711
|
+
this._popper = createPopper(this._elementRef.nativeElement, this._componentRef.location.nativeElement, {
|
|
1712
|
+
placement: this.placement,
|
|
1713
|
+
modifiers: [
|
|
1714
|
+
...(this.offset
|
|
1715
|
+
? [
|
|
1716
|
+
{
|
|
1717
|
+
name: 'offset',
|
|
1718
|
+
options: {
|
|
1719
|
+
offset: this.offset,
|
|
1720
|
+
},
|
|
1721
|
+
},
|
|
1722
|
+
]
|
|
1723
|
+
: []),
|
|
1724
|
+
...(this.arrowPadding
|
|
1725
|
+
? [
|
|
1726
|
+
{
|
|
1727
|
+
name: 'arrow',
|
|
1728
|
+
options: {
|
|
1729
|
+
padding: this.arrowPadding,
|
|
1730
|
+
},
|
|
1731
|
+
},
|
|
1732
|
+
]
|
|
1733
|
+
: []),
|
|
1734
|
+
],
|
|
1735
|
+
});
|
|
1736
|
+
// We need to wait for the tooltip content to be rendered
|
|
1737
|
+
nextFrame(() => {
|
|
1738
|
+
if (!this._componentRef) {
|
|
1739
|
+
return;
|
|
1740
|
+
}
|
|
1741
|
+
this._popper?.update();
|
|
1742
|
+
this._componentRef.instance._animatedLifecycle?.enter();
|
|
1743
|
+
this._componentRef.instance._animatedLifecycle?.state$
|
|
1744
|
+
.pipe(tap((s) => {
|
|
1745
|
+
if (s === 'entered') {
|
|
1746
|
+
this._afterOpened?.next();
|
|
1747
|
+
}
|
|
1748
|
+
}), take(1), takeUntil(this._destroy$))
|
|
1749
|
+
.subscribe();
|
|
1750
|
+
this._isMounted$.next(true);
|
|
1751
|
+
});
|
|
1752
|
+
});
|
|
1753
|
+
return this._componentRef.instance;
|
|
1754
|
+
}
|
|
1755
|
+
unmount() {
|
|
1756
|
+
if (!this._componentRef) {
|
|
1757
|
+
return;
|
|
1758
|
+
}
|
|
1759
|
+
this._beforeClosed?.next();
|
|
1760
|
+
this._componentRef.instance._animatedLifecycle?.leave();
|
|
1761
|
+
this._componentRef.instance._animatedLifecycle?.state$
|
|
1762
|
+
.pipe(filter((s) => s === 'left'), take(1))
|
|
1763
|
+
.subscribe(() => this._destroy());
|
|
1764
|
+
}
|
|
1765
|
+
beforeOpened() {
|
|
1766
|
+
if (!this._beforeOpened) {
|
|
1767
|
+
this._beforeOpened = new Subject();
|
|
1768
|
+
}
|
|
1769
|
+
return this._beforeOpened;
|
|
1770
|
+
}
|
|
1771
|
+
afterOpened() {
|
|
1772
|
+
if (!this._afterOpened) {
|
|
1773
|
+
this._afterOpened = new Subject();
|
|
1774
|
+
}
|
|
1775
|
+
return this._afterOpened;
|
|
1776
|
+
}
|
|
1777
|
+
beforeClosed() {
|
|
1778
|
+
if (!this._beforeClosed) {
|
|
1779
|
+
this._beforeClosed = new Subject();
|
|
1780
|
+
}
|
|
1781
|
+
return this._beforeClosed;
|
|
1782
|
+
}
|
|
1783
|
+
afterClosed() {
|
|
1784
|
+
if (!this._afterClosed) {
|
|
1785
|
+
this._afterClosed = new Subject();
|
|
1786
|
+
}
|
|
1787
|
+
return this._afterClosed;
|
|
1788
|
+
}
|
|
1789
|
+
_destroy() {
|
|
1790
|
+
this._zone.runOutsideAngular(() => {
|
|
1791
|
+
this._popper?.destroy();
|
|
1792
|
+
this._popper = null;
|
|
1793
|
+
});
|
|
1794
|
+
if (this._overlayRef) {
|
|
1795
|
+
this._overlayRef.dispose();
|
|
1796
|
+
this._overlayRef = null;
|
|
1797
|
+
}
|
|
1798
|
+
if (this._componentRef) {
|
|
1799
|
+
this._componentRef.destroy();
|
|
1800
|
+
this._componentRef = null;
|
|
1801
|
+
}
|
|
1802
|
+
this._isMounted$.next(false);
|
|
1803
|
+
this._afterClosed?.next();
|
|
1804
|
+
}
|
|
1805
|
+
_reposition() {
|
|
1806
|
+
this._popper?.update();
|
|
1807
|
+
}
|
|
1808
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: AnimatedOverlayDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1809
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: AnimatedOverlayDirective, isStandalone: true, inputs: { placement: "placement", offset: "offset", arrowPadding: "arrowPadding" }, hostDirectives: [{ directive: ObserveResizeDirective }], ngImport: i0 }); }
|
|
1810
|
+
}
|
|
1811
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: AnimatedOverlayDirective, decorators: [{
|
|
1812
|
+
type: Directive,
|
|
1813
|
+
args: [{
|
|
1814
|
+
standalone: true,
|
|
1815
|
+
hostDirectives: [ObserveResizeDirective],
|
|
1816
|
+
}]
|
|
1817
|
+
}], propDecorators: { placement: [{
|
|
1818
|
+
type: Input
|
|
1819
|
+
}], offset: [{
|
|
1820
|
+
type: Input
|
|
1821
|
+
}], arrowPadding: [{
|
|
1822
|
+
type: Input
|
|
1823
|
+
}] } });
|
|
1824
|
+
|
|
1674
1825
|
class ClickOutsideDirective {
|
|
1675
1826
|
constructor() {
|
|
1676
1827
|
this._elementRef = inject(ElementRef);
|
|
@@ -1692,10 +1843,10 @@ class ClickOutsideDirective {
|
|
|
1692
1843
|
ngOnDestroy() {
|
|
1693
1844
|
this._subscription?.unsubscribe();
|
|
1694
1845
|
}
|
|
1695
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
1696
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.
|
|
1846
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ClickOutsideDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1847
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ClickOutsideDirective, isStandalone: true, selector: "[etClickOutside]", outputs: { etClickOutside: "etClickOutside" }, ngImport: i0 }); }
|
|
1697
1848
|
}
|
|
1698
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
1849
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ClickOutsideDirective, decorators: [{
|
|
1699
1850
|
type: Directive,
|
|
1700
1851
|
args: [{
|
|
1701
1852
|
selector: '[etClickOutside]',
|
|
@@ -1832,10 +1983,10 @@ class CursorDragScrollDirective {
|
|
|
1832
1983
|
this._elementRef.nativeElement.style.cursor = 'default';
|
|
1833
1984
|
}
|
|
1834
1985
|
}
|
|
1835
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
1836
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.
|
|
1986
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CursorDragScrollDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1987
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: CursorDragScrollDirective, isStandalone: true, selector: "[etCursorDragScroll]", inputs: { enabled: ["etCursorDragScroll", "enabled"] }, exportAs: ["etCursorDragScroll"], ngImport: i0 }); }
|
|
1837
1988
|
}
|
|
1838
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
1989
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CursorDragScrollDirective, decorators: [{
|
|
1839
1990
|
type: Directive,
|
|
1840
1991
|
args: [{
|
|
1841
1992
|
selector: '[etCursorDragScroll]',
|
|
@@ -1876,15 +2027,15 @@ class DelayableDirective {
|
|
|
1876
2027
|
}
|
|
1877
2028
|
this._isDelayed$.next(val);
|
|
1878
2029
|
}
|
|
1879
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
1880
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.
|
|
2030
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DelayableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2031
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: DelayableDirective, isStandalone: true, selector: "[etDelayable]", providers: [
|
|
1881
2032
|
{
|
|
1882
2033
|
provide: DELAYABLE_TOKEN,
|
|
1883
2034
|
useExisting: DelayableDirective,
|
|
1884
2035
|
},
|
|
1885
2036
|
], exportAs: ["etDelayable"], ngImport: i0 }); }
|
|
1886
2037
|
}
|
|
1887
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DelayableDirective, decorators: [{
|
|
1888
2039
|
type: Directive,
|
|
1889
2040
|
args: [{
|
|
1890
2041
|
selector: '[etDelayable]',
|
|
@@ -1911,15 +2062,15 @@ class IsActiveElementDirective {
|
|
|
1911
2062
|
set isActiveElement(value) {
|
|
1912
2063
|
this._isActiveElement = coerceBooleanProperty(value);
|
|
1913
2064
|
}
|
|
1914
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
1915
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.
|
|
2065
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IsActiveElementDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2066
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: IsActiveElementDirective, isStandalone: true, selector: "[etIsActiveElement]", inputs: { isActiveElement: ["etIsActiveElement", "isActiveElement"] }, providers: [
|
|
1916
2067
|
{
|
|
1917
2068
|
provide: IS_ACTIVE_ELEMENT,
|
|
1918
2069
|
useExisting: IsActiveElementDirective,
|
|
1919
2070
|
},
|
|
1920
2071
|
], ngImport: i0 }); }
|
|
1921
2072
|
}
|
|
1922
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2073
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IsActiveElementDirective, decorators: [{
|
|
1923
2074
|
type: Directive,
|
|
1924
2075
|
args: [{
|
|
1925
2076
|
selector: '[etIsActiveElement]',
|
|
@@ -1969,10 +2120,10 @@ class LetDirective {
|
|
|
1969
2120
|
}
|
|
1970
2121
|
}
|
|
1971
2122
|
}
|
|
1972
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
1973
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.
|
|
2123
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: LetDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2124
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: LetDirective, isStandalone: true, selector: "[etLet]", inputs: { etLet: "etLet" }, ngImport: i0 }); }
|
|
1974
2125
|
}
|
|
1975
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: LetDirective, decorators: [{
|
|
1976
2127
|
type: Directive,
|
|
1977
2128
|
args: [{
|
|
1978
2129
|
selector: '[etLet]',
|
|
@@ -2024,10 +2175,10 @@ class ObserveContentDirective {
|
|
|
2024
2175
|
_unsubscribe() {
|
|
2025
2176
|
this._currentSubscription?.unsubscribe();
|
|
2026
2177
|
}
|
|
2027
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2028
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.
|
|
2178
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ObserveContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2179
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ObserveContentDirective, isStandalone: true, selector: "[etObserveContent]", inputs: { disabled: ["etObserveContentDisabled", "disabled"], debounce: ["etObserveContentDebounce", "debounce"] }, outputs: { valueChange: "etObserveContent" }, exportAs: ["etObserveContent"], ngImport: i0 }); }
|
|
2029
2180
|
}
|
|
2030
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ObserveContentDirective, decorators: [{
|
|
2031
2182
|
type: Directive,
|
|
2032
2183
|
args: [{
|
|
2033
2184
|
selector: '[etObserveContent]',
|
|
@@ -2045,69 +2196,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
|
2045
2196
|
args: ['etObserveContentDebounce']
|
|
2046
2197
|
}] } });
|
|
2047
2198
|
|
|
2048
|
-
class ObserveResizeDirective {
|
|
2049
|
-
constructor() {
|
|
2050
|
-
this._resizeObserver = inject(ResizeObserverService);
|
|
2051
|
-
this._elementRef = inject(ElementRef);
|
|
2052
|
-
this._ngZone = inject(NgZone);
|
|
2053
|
-
this.valueChange = new EventEmitter();
|
|
2054
|
-
this._disabled = false;
|
|
2055
|
-
this._debounce = null;
|
|
2056
|
-
this._currentSubscription = null;
|
|
2057
|
-
}
|
|
2058
|
-
get disabled() {
|
|
2059
|
-
return this._disabled;
|
|
2060
|
-
}
|
|
2061
|
-
set disabled(value) {
|
|
2062
|
-
this._disabled = coerceBooleanProperty(value);
|
|
2063
|
-
this._disabled ? this._unsubscribe() : this._subscribe();
|
|
2064
|
-
}
|
|
2065
|
-
get debounce() {
|
|
2066
|
-
return this._debounce;
|
|
2067
|
-
}
|
|
2068
|
-
set debounce(value) {
|
|
2069
|
-
this._debounce = coerceNumberProperty(value);
|
|
2070
|
-
this._subscribe();
|
|
2071
|
-
}
|
|
2072
|
-
ngAfterContentInit() {
|
|
2073
|
-
if (!this._currentSubscription && !this.disabled) {
|
|
2074
|
-
this._subscribe();
|
|
2075
|
-
}
|
|
2076
|
-
}
|
|
2077
|
-
ngOnDestroy() {
|
|
2078
|
-
this._unsubscribe();
|
|
2079
|
-
}
|
|
2080
|
-
_subscribe() {
|
|
2081
|
-
this._unsubscribe();
|
|
2082
|
-
const stream = this._resizeObserver.observe(this._elementRef);
|
|
2083
|
-
this._ngZone.runOutsideAngular(() => {
|
|
2084
|
-
this._currentSubscription = (this.debounce ? stream.pipe(debounceTime(this.debounce)) : stream).subscribe(this.valueChange);
|
|
2085
|
-
});
|
|
2086
|
-
}
|
|
2087
|
-
_unsubscribe() {
|
|
2088
|
-
this._currentSubscription?.unsubscribe();
|
|
2089
|
-
}
|
|
2090
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: ObserveResizeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2091
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: ObserveResizeDirective, isStandalone: true, selector: "[etObserveResize]", inputs: { disabled: ["etObserveResizeDisabled", "disabled"], debounce: ["etObserveResizeDebounce", "debounce"] }, outputs: { valueChange: "etObserveResize" }, exportAs: ["etObserveResize"], ngImport: i0 }); }
|
|
2092
|
-
}
|
|
2093
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: ObserveResizeDirective, decorators: [{
|
|
2094
|
-
type: Directive,
|
|
2095
|
-
args: [{
|
|
2096
|
-
selector: '[etObserveResize]',
|
|
2097
|
-
exportAs: 'etObserveResize',
|
|
2098
|
-
standalone: true,
|
|
2099
|
-
}]
|
|
2100
|
-
}], propDecorators: { valueChange: [{
|
|
2101
|
-
type: Output,
|
|
2102
|
-
args: ['etObserveResize']
|
|
2103
|
-
}], disabled: [{
|
|
2104
|
-
type: Input,
|
|
2105
|
-
args: ['etObserveResizeDisabled']
|
|
2106
|
-
}], debounce: [{
|
|
2107
|
-
type: Input,
|
|
2108
|
-
args: ['etObserveResizeDebounce']
|
|
2109
|
-
}] } });
|
|
2110
|
-
|
|
2111
2199
|
const SCROLL_OBSERVER_FIRST_ELEMENT_CLASS = 'et-scroll-observer-first-element';
|
|
2112
2200
|
class ScrollObserverFirstElementDirective {
|
|
2113
2201
|
constructor() {
|
|
@@ -2119,10 +2207,10 @@ class ScrollObserverFirstElementDirective {
|
|
|
2119
2207
|
set isFirstElement(value) {
|
|
2120
2208
|
this._isFirstElement = coerceBooleanProperty(value);
|
|
2121
2209
|
}
|
|
2122
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2123
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.
|
|
2210
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ScrollObserverFirstElementDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2211
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ScrollObserverFirstElementDirective, isStandalone: true, selector: "[etScrollObserverFirstElement]", inputs: { isFirstElement: ["etScrollObserverFirstElement", "isFirstElement"] }, host: { properties: { "class.et-scroll-observer-first-element": "this.isFirstElement" } }, ngImport: i0 }); }
|
|
2124
2212
|
}
|
|
2125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ScrollObserverFirstElementDirective, decorators: [{
|
|
2126
2214
|
type: Directive,
|
|
2127
2215
|
args: [{
|
|
2128
2216
|
selector: '[etScrollObserverFirstElement]',
|
|
@@ -2138,10 +2226,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
|
2138
2226
|
|
|
2139
2227
|
const SCROLL_OBSERVER_IGNORE_TARGET_CLASS = 'et-scroll-observer-ignore-target';
|
|
2140
2228
|
class ScrollObserverIgnoreTargetDirective {
|
|
2141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2142
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.
|
|
2229
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ScrollObserverIgnoreTargetDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2230
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ScrollObserverIgnoreTargetDirective, isStandalone: true, selector: "[etScrollObserverIgnoreTarget]", host: { classAttribute: "et-scroll-observer-ignore-target" }, ngImport: i0 }); }
|
|
2143
2231
|
}
|
|
2144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ScrollObserverIgnoreTargetDirective, decorators: [{
|
|
2145
2233
|
type: Directive,
|
|
2146
2234
|
args: [{
|
|
2147
2235
|
selector: '[etScrollObserverIgnoreTarget]',
|
|
@@ -2163,10 +2251,10 @@ class ScrollObserverLastElementDirective {
|
|
|
2163
2251
|
set isLastElement(value) {
|
|
2164
2252
|
this._isLastElement = coerceBooleanProperty(value);
|
|
2165
2253
|
}
|
|
2166
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2167
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.
|
|
2254
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ScrollObserverLastElementDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2255
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ScrollObserverLastElementDirective, isStandalone: true, selector: "[etScrollObserverLastElement]", inputs: { isLastElement: ["etScrollObserverLastElement", "isLastElement"] }, host: { properties: { "class.et-scroll-observer-last-element": "this.isLastElement" }, classAttribute: "et-scroll-observer-last-element" }, ngImport: i0 }); }
|
|
2168
2256
|
}
|
|
2169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ScrollObserverLastElementDirective, decorators: [{
|
|
2170
2258
|
type: Directive,
|
|
2171
2259
|
args: [{
|
|
2172
2260
|
selector: '[etScrollObserverLastElement]',
|
|
@@ -2319,15 +2407,15 @@ class ObserveScrollStateDirective {
|
|
|
2319
2407
|
}
|
|
2320
2408
|
return element;
|
|
2321
2409
|
}
|
|
2322
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2323
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.
|
|
2410
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ObserveScrollStateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2411
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: ObserveScrollStateDirective, isStandalone: true, selector: "[etObserveScrollState]", inputs: { observerRootMargin: "observerRootMargin", observerThreshold: "observerThreshold" }, outputs: { valueChange: "etObserveScrollState" }, providers: [
|
|
2324
2412
|
{
|
|
2325
2413
|
provide: OBSERVE_SCROLL_STATE,
|
|
2326
2414
|
useExisting: ObserveScrollStateDirective,
|
|
2327
2415
|
},
|
|
2328
2416
|
], exportAs: ["etObserveScrollState"], ngImport: i0 }); }
|
|
2329
2417
|
}
|
|
2330
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ObserveScrollStateDirective, decorators: [{
|
|
2331
2419
|
type: Directive,
|
|
2332
2420
|
args: [{
|
|
2333
2421
|
selector: '[etObserveScrollState]',
|
|
@@ -2368,10 +2456,10 @@ class RepeatDirective {
|
|
|
2368
2456
|
this._viewContainerRef.createEmbeddedView(this._mainTemplateRef);
|
|
2369
2457
|
}
|
|
2370
2458
|
}
|
|
2371
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2372
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.
|
|
2459
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RepeatDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2460
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: RepeatDirective, isStandalone: true, selector: "[etRepeat]", inputs: { repeatCount: ["etRepeat", "repeatCount"] }, ngImport: i0 }); }
|
|
2373
2461
|
}
|
|
2374
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2462
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RepeatDirective, decorators: [{
|
|
2375
2463
|
type: Directive,
|
|
2376
2464
|
args: [{
|
|
2377
2465
|
selector: '[etRepeat]',
|
|
@@ -2540,10 +2628,10 @@ class SeoDirective {
|
|
|
2540
2628
|
}
|
|
2541
2629
|
}
|
|
2542
2630
|
}
|
|
2543
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2544
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.
|
|
2631
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SeoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2632
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: SeoDirective, isStandalone: true, providers: [{ provide: SEO_DIRECTIVE_TOKEN, useExisting: SeoDirective }], ngImport: i0 }); }
|
|
2545
2633
|
}
|
|
2546
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2634
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SeoDirective, decorators: [{
|
|
2547
2635
|
type: Directive,
|
|
2548
2636
|
args: [{
|
|
2549
2637
|
standalone: true,
|
|
@@ -2589,10 +2677,10 @@ class NormalizeGameResultTypePipe {
|
|
|
2589
2677
|
constructor() {
|
|
2590
2678
|
this.transform = normalizeGameResultType;
|
|
2591
2679
|
}
|
|
2592
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2593
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.
|
|
2680
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NormalizeGameResultTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2681
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: NormalizeGameResultTypePipe, isStandalone: true, name: "etNormalizeGameResultType" }); }
|
|
2594
2682
|
}
|
|
2595
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NormalizeGameResultTypePipe, decorators: [{
|
|
2596
2684
|
type: Pipe,
|
|
2597
2685
|
args: [{ name: 'etNormalizeGameResultType', standalone: true }]
|
|
2598
2686
|
}] });
|
|
@@ -2620,10 +2708,10 @@ class NormalizeMatchStatePipe {
|
|
|
2620
2708
|
constructor() {
|
|
2621
2709
|
this.transform = normalizeMatchState;
|
|
2622
2710
|
}
|
|
2623
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2624
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.
|
|
2711
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NormalizeMatchStatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2712
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: NormalizeMatchStatePipe, isStandalone: true, name: "etNormalizeMatchState" }); }
|
|
2625
2713
|
}
|
|
2626
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2714
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NormalizeMatchStatePipe, decorators: [{
|
|
2627
2715
|
type: Pipe,
|
|
2628
2716
|
args: [{ name: 'etNormalizeMatchState', standalone: true }]
|
|
2629
2717
|
}] });
|
|
@@ -2678,10 +2766,10 @@ class NormalizeMatchParticipantsPipe {
|
|
|
2678
2766
|
constructor() {
|
|
2679
2767
|
this.transform = normalizeMatchParticipants;
|
|
2680
2768
|
}
|
|
2681
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2682
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.
|
|
2769
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NormalizeMatchParticipantsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2770
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: NormalizeMatchParticipantsPipe, isStandalone: true, name: "etNormalizeMatchParticipants" }); }
|
|
2683
2771
|
}
|
|
2684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2772
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NormalizeMatchParticipantsPipe, decorators: [{
|
|
2685
2773
|
type: Pipe,
|
|
2686
2774
|
args: [{ name: 'etNormalizeMatchParticipants', standalone: true }]
|
|
2687
2775
|
}] });
|
|
@@ -2815,10 +2903,10 @@ class NormalizeMatchScorePipe {
|
|
|
2815
2903
|
constructor() {
|
|
2816
2904
|
this.transform = normalizeMatchScore;
|
|
2817
2905
|
}
|
|
2818
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2819
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.
|
|
2906
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NormalizeMatchScorePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2907
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: NormalizeMatchScorePipe, isStandalone: true, name: "etNormalizeMatchScore" }); }
|
|
2820
2908
|
}
|
|
2821
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2909
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NormalizeMatchScorePipe, decorators: [{
|
|
2822
2910
|
type: Pipe,
|
|
2823
2911
|
args: [{ name: 'etNormalizeMatchScore', standalone: true }]
|
|
2824
2912
|
}] });
|
|
@@ -2865,10 +2953,10 @@ class NormalizeMatchTypePipe {
|
|
|
2865
2953
|
constructor() {
|
|
2866
2954
|
this.transform = normalizeMatchType;
|
|
2867
2955
|
}
|
|
2868
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2869
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.
|
|
2956
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NormalizeMatchTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2957
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: NormalizeMatchTypePipe, isStandalone: true, name: "etNormalizeMatchType" }); }
|
|
2870
2958
|
}
|
|
2871
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2959
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NormalizeMatchTypePipe, decorators: [{
|
|
2872
2960
|
type: Pipe,
|
|
2873
2961
|
args: [{ name: 'etNormalizeMatchType', standalone: true }]
|
|
2874
2962
|
}] });
|
|
@@ -2882,10 +2970,10 @@ class ToArrayPipe {
|
|
|
2882
2970
|
constructor() {
|
|
2883
2971
|
this.transform = toArray;
|
|
2884
2972
|
}
|
|
2885
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2886
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.
|
|
2973
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ToArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2974
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ToArrayPipe, isStandalone: true, name: "toArray" }); }
|
|
2887
2975
|
}
|
|
2888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2976
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ToArrayPipe, decorators: [{
|
|
2889
2977
|
type: Pipe,
|
|
2890
2978
|
args: [{ name: 'toArray', standalone: true }]
|
|
2891
2979
|
}] });
|
|
@@ -2952,5 +3040,5 @@ const Validators = {
|
|
|
2952
3040
|
* Generated bundle index. Do not edit.
|
|
2953
3041
|
*/
|
|
2954
3042
|
|
|
2955
|
-
export { ANIMATABLE_TOKEN, ANIMATED_LIFECYCLE_TOKEN, AnimatableDirective, AnimatedLifecycleDirective, AnimatedOverlayDirective, BehaviorSubjectWithSubscriberCount, ClickObserverFactory, ClickObserverService, ClickOutsideDirective, ContentObserverService, CursorDragScrollDirective, DEFAULT_VIEWPORT_CONFIG, DELAYABLE_TOKEN, DelayableDirective, FocusVisibleService, IS_ACTIVE_ELEMENT, IS_ARRAY_NOT_EMPTY, IS_EMAIL, IsActiveElementDirective, IsArrayNotEmpty, IsEmail, LetContext, LetDirective, MUST_MATCH, Memo, MustMatch, MutationObserverFactory, NormalizeGameResultTypePipe, NormalizeMatchParticipantsPipe, NormalizeMatchScorePipe, NormalizeMatchStatePipe, NormalizeMatchTypePipe, OBSERVE_SCROLL_STATE, ObserveContentDirective, ObserveResizeDirective, ObserveScrollStateDirective, RepeatDirective, ResizeObserverFactory, ResizeObserverService, RouterStateService, SCROLL_OBSERVER_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_IGNORE_TARGET_CLASS, SCROLL_OBSERVER_LAST_ELEMENT_CLASS, SEO_DIRECTIVE_TOKEN, ScrollObserverFirstElementDirective, ScrollObserverIgnoreTargetDirective, ScrollObserverLastElementDirective, SeoDirective, SmartBlockScrollStrategy, StructuredDataComponent, ToArrayPipe, TypedQueryList, VIEWPORT_CONFIG, Validators, ViewportService, clamp, clone, createDestroy, createFlipAnimation, createFlipAnimationGroup, createMediaQueryObservable, createReactiveBindings, deleteCookie, elementCanScroll, equal, forceReflow, fromNextFrame, getCookie, getDomain, getGroupMatchPoints, getGroupMatchScore, getKnockoutMatchScore, getMatchScoreSubLine, hasCookie, isElementVisible, isGroupMatch, isKnockoutMatch, mergeSeoConfig, nextFrame, normalizeGameResultType, normalizeMatchParticipant, normalizeMatchParticipants, normalizeMatchScore, normalizeMatchState, normalizeMatchType, provideViewportConfig, routerDisableScrollTop, scrollToElement, setCookie, toArray, toArrayTrackByFn };
|
|
3043
|
+
export { ANIMATABLE_TOKEN, ANIMATED_LIFECYCLE_TOKEN, AnimatableDirective, AnimatedLifecycleDirective, AnimatedOverlayDirective, BehaviorSubjectWithSubscriberCount, ClickObserverFactory, ClickObserverService, ClickOutsideDirective, ContentObserverService, CursorDragScrollDirective, DEFAULT_VIEWPORT_CONFIG, DELAYABLE_TOKEN, DelayableDirective, ET_PROPERTY_REMOVED, FocusVisibleService, IS_ACTIVE_ELEMENT, IS_ARRAY_NOT_EMPTY, IS_EMAIL, IsActiveElementDirective, IsArrayNotEmpty, IsEmail, LetContext, LetDirective, MUST_MATCH, Memo, MustMatch, MutationObserverFactory, NormalizeGameResultTypePipe, NormalizeMatchParticipantsPipe, NormalizeMatchScorePipe, NormalizeMatchStatePipe, NormalizeMatchTypePipe, OBSERVE_SCROLL_STATE, ObserveContentDirective, ObserveResizeDirective, ObserveScrollStateDirective, RepeatDirective, ResizeObserverFactory, ResizeObserverService, RouterStateService, SCROLL_OBSERVER_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_IGNORE_TARGET_CLASS, SCROLL_OBSERVER_LAST_ELEMENT_CLASS, SEO_DIRECTIVE_TOKEN, ScrollObserverFirstElementDirective, ScrollObserverIgnoreTargetDirective, ScrollObserverLastElementDirective, SeoDirective, SmartBlockScrollStrategy, StructuredDataComponent, ToArrayPipe, TypedQueryList, VIEWPORT_CONFIG, Validators, ViewportService, clamp, clone, createDestroy, createFlipAnimation, createFlipAnimationGroup, createMediaQueryObservable, createReactiveBindings, deleteCookie, elementCanScroll, equal, forceReflow, fromNextFrame, getCookie, getDomain, getGroupMatchPoints, getGroupMatchScore, getKnockoutMatchScore, getMatchScoreSubLine, hasCookie, isElementVisible, isGroupMatch, isKnockoutMatch, mergeSeoConfig, nextFrame, normalizeGameResultType, normalizeMatchParticipant, normalizeMatchParticipants, normalizeMatchScore, normalizeMatchState, normalizeMatchType, provideViewportConfig, routerDisableScrollTop, scrollToElement, setCookie, toArray, toArrayTrackByFn };
|
|
2956
3044
|
//# sourceMappingURL=ethlete-core.mjs.map
|