@ethlete/core 4.14.0 → 4.16.0
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 +20 -0
- 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-if/animated-if.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 +3 -3
- 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/debug/debug.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/is-element/is-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/observe-resize.directive.mjs +3 -3
- package/esm2022/lib/directives/observe-scroll-state/observe-scroll-state.directive.mjs +3 -3
- package/esm2022/lib/directives/observe-visibility/observe-visibility.directive.mjs +3 -3
- package/esm2022/lib/directives/repeat/repeat.directive.mjs +3 -3
- package/esm2022/lib/directives/root-boundary/root-boundary.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/infer-mime-type/infer-mime-type.pipe.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/props/props.directive.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/intersection-observer.service.mjs +6 -6
- package/esm2022/lib/services/resize-observer.service.mjs +6 -6
- package/esm2022/lib/services/router-state.service.mjs +3 -3
- package/esm2022/lib/services/viewport.service.mjs +3 -3
- package/esm2022/lib/utils/scrollable.utils.mjs +17 -6
- package/esm2022/lib/utils/signal.utils.mjs +276 -85
- package/fesm2022/ethlete-core.mjs +412 -211
- package/fesm2022/ethlete-core.mjs.map +1 -1
- package/lib/utils/scrollable.utils.d.ts +1 -0
- package/lib/utils/signal.utils.d.ts +21 -7
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, HostBinding, InjectionToken, assertInInjectionContext, DestroyRef, ElementRef, TemplateRef, Injectable, isSignal, signal, QueryList, Injector, effect, untracked, runInInjectionContext, afterNextRender, NgZone, isDevMode,
|
|
2
|
+
import { inject, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, HostBinding, InjectionToken, assertInInjectionContext, DestroyRef, ElementRef, TemplateRef, Injectable, isSignal, signal, QueryList, computed, Injector, effect, untracked, runInInjectionContext, afterNextRender, Renderer2, RendererStyleFlags2, NgZone, isDevMode, Directive, model, EventEmitter, booleanAttribute, numberAttribute, Output, ViewContainerRef, Pipe, AfterRenderPhase, input } from '@angular/core';
|
|
3
3
|
import { DomSanitizer, Meta, Title } from '@angular/platform-browser';
|
|
4
4
|
import { Subject, BehaviorSubject, takeUntil, switchMap, of, tap, map, startWith, Observable, combineLatest, timer, distinctUntilChanged, shareReplay, filter, take, fromEvent, pairwise, debounceTime, finalize, merge, skip, takeWhile } from 'rxjs';
|
|
5
5
|
import { END, HOME, PAGE_DOWN, PAGE_UP, UP_ARROW, DOWN_ARROW } from '@angular/cdk/keycodes';
|
|
@@ -29,10 +29,10 @@ class StructuredDataComponent {
|
|
|
29
29
|
const html = `<script type="application/ld+json">${json}</script>`;
|
|
30
30
|
return this._sanitizer.bypassSecurityTrustHtml(html);
|
|
31
31
|
}
|
|
32
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
33
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.
|
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: StructuredDataComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
33
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.7", 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 }); }
|
|
34
34
|
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: StructuredDataComponent, decorators: [{
|
|
36
36
|
type: Component,
|
|
37
37
|
args: [{
|
|
38
38
|
selector: 'et-structured-data',
|
|
@@ -1031,16 +1031,24 @@ const isElementVisible = (options) => {
|
|
|
1031
1031
|
element,
|
|
1032
1032
|
};
|
|
1033
1033
|
};
|
|
1034
|
-
const
|
|
1034
|
+
const getElementScrollCoordinates = (options) => {
|
|
1035
1035
|
let { container } = options;
|
|
1036
1036
|
const { element, direction, behavior = 'smooth', origin = 'nearest', scrollBlockMargin = 0, scrollInlineMargin = 0, } = options;
|
|
1037
1037
|
if (!element || container === null) {
|
|
1038
|
-
return
|
|
1038
|
+
return {
|
|
1039
|
+
behavior,
|
|
1040
|
+
left: undefined,
|
|
1041
|
+
top: undefined,
|
|
1042
|
+
};
|
|
1039
1043
|
}
|
|
1040
1044
|
container ||= document.documentElement;
|
|
1041
1045
|
const canScroll = elementCanScroll(container);
|
|
1042
1046
|
if (!canScroll) {
|
|
1043
|
-
return
|
|
1047
|
+
return {
|
|
1048
|
+
behavior,
|
|
1049
|
+
left: undefined,
|
|
1050
|
+
top: undefined,
|
|
1051
|
+
};
|
|
1044
1052
|
}
|
|
1045
1053
|
const elementRect = element.getBoundingClientRect();
|
|
1046
1054
|
const containerRect = container.getBoundingClientRect();
|
|
@@ -1111,11 +1119,14 @@ const scrollToElement = (options) => {
|
|
|
1111
1119
|
scrollToElementNearest();
|
|
1112
1120
|
break;
|
|
1113
1121
|
}
|
|
1114
|
-
|
|
1122
|
+
return {
|
|
1115
1123
|
behavior,
|
|
1116
1124
|
left: shouldScrollLeft ? scrollLeftTo : undefined,
|
|
1117
1125
|
top: shouldScrollTop ? scrollTopTo : undefined,
|
|
1118
|
-
}
|
|
1126
|
+
};
|
|
1127
|
+
};
|
|
1128
|
+
const scrollToElement = (options) => {
|
|
1129
|
+
options.container?.scrollTo(getElementScrollCoordinates(options));
|
|
1119
1130
|
};
|
|
1120
1131
|
const getElementVisibleStates = (options) => {
|
|
1121
1132
|
let { container } = options;
|
|
@@ -1504,10 +1515,10 @@ class ClickObserverFactory {
|
|
|
1504
1515
|
create() {
|
|
1505
1516
|
return fromEvent(document, 'click');
|
|
1506
1517
|
}
|
|
1507
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1508
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
1518
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ClickObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1519
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ClickObserverFactory, providedIn: 'root' }); }
|
|
1509
1520
|
}
|
|
1510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ClickObserverFactory, decorators: [{
|
|
1511
1522
|
type: Injectable,
|
|
1512
1523
|
args: [{ providedIn: 'root' }]
|
|
1513
1524
|
}] });
|
|
@@ -1560,10 +1571,10 @@ class ClickObserverService {
|
|
|
1560
1571
|
this._observedElements.delete(element);
|
|
1561
1572
|
}
|
|
1562
1573
|
}
|
|
1563
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1564
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
1574
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ClickObserverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1575
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ClickObserverService, providedIn: 'root' }); }
|
|
1565
1576
|
}
|
|
1566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ClickObserverService, decorators: [{
|
|
1567
1578
|
type: Injectable,
|
|
1568
1579
|
args: [{ providedIn: 'root' }]
|
|
1569
1580
|
}] });
|
|
@@ -1573,10 +1584,10 @@ class MutationObserverFactory {
|
|
|
1573
1584
|
create(callback) {
|
|
1574
1585
|
return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);
|
|
1575
1586
|
}
|
|
1576
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1577
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
1587
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: MutationObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1588
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: MutationObserverFactory, providedIn: 'root' }); }
|
|
1578
1589
|
}
|
|
1579
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: MutationObserverFactory, decorators: [{
|
|
1580
1591
|
type: Injectable,
|
|
1581
1592
|
args: [{ providedIn: 'root' }]
|
|
1582
1593
|
}] });
|
|
@@ -1635,10 +1646,10 @@ class ContentObserverService {
|
|
|
1635
1646
|
this._observedElements.delete(element);
|
|
1636
1647
|
}
|
|
1637
1648
|
}
|
|
1638
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1639
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
1649
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ContentObserverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1650
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ContentObserverService, providedIn: 'root' }); }
|
|
1640
1651
|
}
|
|
1641
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ContentObserverService, decorators: [{
|
|
1642
1653
|
type: Injectable,
|
|
1643
1654
|
args: [{ providedIn: 'root' }]
|
|
1644
1655
|
}] });
|
|
@@ -1664,10 +1675,10 @@ class FocusVisibleService {
|
|
|
1664
1675
|
onPointerDown() {
|
|
1665
1676
|
this._hadKeyboardEvent = false;
|
|
1666
1677
|
}
|
|
1667
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1668
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
1678
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: FocusVisibleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1679
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: FocusVisibleService, providedIn: 'root' }); }
|
|
1669
1680
|
}
|
|
1670
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: FocusVisibleService, decorators: [{
|
|
1671
1682
|
type: Injectable,
|
|
1672
1683
|
args: [{
|
|
1673
1684
|
providedIn: 'root',
|
|
@@ -1679,10 +1690,10 @@ class IntersectionObserverFactory {
|
|
|
1679
1690
|
create(callback) {
|
|
1680
1691
|
return typeof IntersectionObserver === 'undefined' ? null : new IntersectionObserver(callback);
|
|
1681
1692
|
}
|
|
1682
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1683
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
1693
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: IntersectionObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1694
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: IntersectionObserverFactory, providedIn: 'root' }); }
|
|
1684
1695
|
}
|
|
1685
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1696
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: IntersectionObserverFactory, decorators: [{
|
|
1686
1697
|
type: Injectable,
|
|
1687
1698
|
args: [{ providedIn: 'root' }]
|
|
1688
1699
|
}] });
|
|
@@ -1737,10 +1748,10 @@ class IntersectionObserverService {
|
|
|
1737
1748
|
this._observedElements.delete(element);
|
|
1738
1749
|
}
|
|
1739
1750
|
}
|
|
1740
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1741
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
1751
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: IntersectionObserverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1752
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: IntersectionObserverService, providedIn: 'root' }); }
|
|
1742
1753
|
}
|
|
1743
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1754
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: IntersectionObserverService, decorators: [{
|
|
1744
1755
|
type: Injectable,
|
|
1745
1756
|
args: [{ providedIn: 'root' }]
|
|
1746
1757
|
}] });
|
|
@@ -1750,10 +1761,10 @@ class ResizeObserverFactory {
|
|
|
1750
1761
|
create(callback) {
|
|
1751
1762
|
return typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(callback);
|
|
1752
1763
|
}
|
|
1753
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1754
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
1764
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ResizeObserverFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1765
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ResizeObserverFactory, providedIn: 'root' }); }
|
|
1755
1766
|
}
|
|
1756
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1767
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ResizeObserverFactory, decorators: [{
|
|
1757
1768
|
type: Injectable,
|
|
1758
1769
|
args: [{ providedIn: 'root' }]
|
|
1759
1770
|
}] });
|
|
@@ -1808,10 +1819,10 @@ class ResizeObserverService {
|
|
|
1808
1819
|
this._observedElements.delete(element);
|
|
1809
1820
|
}
|
|
1810
1821
|
}
|
|
1811
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
1812
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
1822
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ResizeObserverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1823
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ResizeObserverService, providedIn: 'root' }); }
|
|
1813
1824
|
}
|
|
1814
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
1825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ResizeObserverService, decorators: [{
|
|
1815
1826
|
type: Injectable,
|
|
1816
1827
|
args: [{ providedIn: 'root' }]
|
|
1817
1828
|
}] });
|
|
@@ -2006,10 +2017,10 @@ class RouterStateService {
|
|
|
2006
2017
|
fragment,
|
|
2007
2018
|
};
|
|
2008
2019
|
}
|
|
2009
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
2010
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
2020
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: RouterStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2021
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: RouterStateService, providedIn: 'root' }); }
|
|
2011
2022
|
}
|
|
2012
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
2023
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: RouterStateService, decorators: [{
|
|
2013
2024
|
type: Injectable,
|
|
2014
2025
|
args: [{
|
|
2015
2026
|
providedIn: 'root',
|
|
@@ -2225,8 +2236,8 @@ class ViewportService {
|
|
|
2225
2236
|
}
|
|
2226
2237
|
return 'xs';
|
|
2227
2238
|
}
|
|
2228
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
2229
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.
|
|
2239
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ViewportService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2240
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ViewportService, providedIn: 'root' }); }
|
|
2230
2241
|
}
|
|
2231
2242
|
__decorate([
|
|
2232
2243
|
Memo(),
|
|
@@ -2244,7 +2255,7 @@ __decorate([
|
|
|
2244
2255
|
__metadata("design:paramtypes", [Object]),
|
|
2245
2256
|
__metadata("design:returntype", void 0)
|
|
2246
2257
|
], ViewportService.prototype, "_buildMediaQuery", null);
|
|
2247
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
2258
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ViewportService, decorators: [{
|
|
2248
2259
|
type: Injectable,
|
|
2249
2260
|
args: [{
|
|
2250
2261
|
providedIn: 'root',
|
|
@@ -2296,12 +2307,31 @@ const buildElementSignal = (el) => {
|
|
|
2296
2307
|
else {
|
|
2297
2308
|
mElSignal = signal([coerceElement(el)]);
|
|
2298
2309
|
}
|
|
2299
|
-
|
|
2310
|
+
const elSig = toSignal(toObservable(mElSignal).pipe(startWith(null), pairwise(), map(([previousElements, currentElements]) => ({
|
|
2300
2311
|
previousElements: previousElements ?? [],
|
|
2301
2312
|
currentElements: currentElements ?? [],
|
|
2302
2313
|
currentElement: currentElements?.[0] ?? null,
|
|
2303
2314
|
previousElement: previousElements?.[0] ?? null,
|
|
2304
2315
|
}))), { initialValue: { currentElement: null, previousElement: null, previousElements: [], currentElements: [] } });
|
|
2316
|
+
return computed(() => elSig(), {
|
|
2317
|
+
equal: (a, b) => a.currentElement === b.currentElement &&
|
|
2318
|
+
a.previousElement === b.previousElement &&
|
|
2319
|
+
a.currentElements.length === b.currentElements.length &&
|
|
2320
|
+
a.currentElements.every((v, i) => v === b.currentElements[i]) &&
|
|
2321
|
+
a.previousElements.length === b.previousElements.length &&
|
|
2322
|
+
a.previousElements.every((v, i) => v === b.previousElements[i]),
|
|
2323
|
+
});
|
|
2324
|
+
};
|
|
2325
|
+
const firstElementSignal = (el) => {
|
|
2326
|
+
return computed(() => {
|
|
2327
|
+
const current = el();
|
|
2328
|
+
if (current.currentElements.length > 1) {
|
|
2329
|
+
console.warn('More than one element is bound to the signal. Only the first element will be used.', current.currentElements);
|
|
2330
|
+
}
|
|
2331
|
+
const curr = current.currentElements[0] ?? null;
|
|
2332
|
+
const prev = current.previousElements[0] ?? null;
|
|
2333
|
+
return { currentElement: curr, previousElement: prev };
|
|
2334
|
+
}, { equal: (a, b) => a.currentElement === b.currentElement && a.previousElement === b.previousElement });
|
|
2305
2335
|
};
|
|
2306
2336
|
const buildSignalEffects = (el, config) => {
|
|
2307
2337
|
const elements = buildElementSignal(el);
|
|
@@ -2377,15 +2407,16 @@ const signalIsRendered = () => {
|
|
|
2377
2407
|
return isRendered.asReadonly();
|
|
2378
2408
|
};
|
|
2379
2409
|
const signalClasses = (el, classMap) => {
|
|
2410
|
+
const renderer = inject(Renderer2);
|
|
2380
2411
|
return buildSignalEffects(el, {
|
|
2381
2412
|
tokenMap: classMap,
|
|
2382
|
-
cleanupFn: (el, tokens) =>
|
|
2413
|
+
cleanupFn: (el, tokens) => tokens.forEach((token) => renderer.removeClass(el, token)),
|
|
2383
2414
|
updateFn: (el, tokens, condition) => {
|
|
2384
2415
|
if (!condition) {
|
|
2385
|
-
|
|
2416
|
+
tokens.forEach((token) => renderer.removeClass(el, token));
|
|
2386
2417
|
}
|
|
2387
2418
|
else {
|
|
2388
|
-
|
|
2419
|
+
tokens.forEach((token) => renderer.addClass(el, token));
|
|
2389
2420
|
}
|
|
2390
2421
|
},
|
|
2391
2422
|
});
|
|
@@ -2393,6 +2424,7 @@ const signalClasses = (el, classMap) => {
|
|
|
2393
2424
|
const signalHostClasses = (classMap) => signalClasses(inject(ElementRef), classMap);
|
|
2394
2425
|
const ALWAYS_TRUE_ATTRIBUTE_KEYS = ['disabled', 'readonly', 'required', 'checked', 'selected', 'hidden', 'inert'];
|
|
2395
2426
|
const signalAttributes = (el, attributeMap) => {
|
|
2427
|
+
const renderer = inject(Renderer2);
|
|
2396
2428
|
return buildSignalEffects(el, {
|
|
2397
2429
|
tokenMap: attributeMap,
|
|
2398
2430
|
cleanupFn: (el, tokens) => tokens.forEach((token) => el.removeAttribute(token)),
|
|
@@ -2400,18 +2432,18 @@ const signalAttributes = (el, attributeMap) => {
|
|
|
2400
2432
|
for (const token of tokens) {
|
|
2401
2433
|
if (ALWAYS_TRUE_ATTRIBUTE_KEYS.includes(token)) {
|
|
2402
2434
|
if (condition) {
|
|
2403
|
-
|
|
2435
|
+
renderer.setAttribute(el, token, '');
|
|
2404
2436
|
}
|
|
2405
2437
|
else {
|
|
2406
|
-
|
|
2438
|
+
renderer.removeAttribute(el, token);
|
|
2407
2439
|
}
|
|
2408
2440
|
continue;
|
|
2409
2441
|
}
|
|
2410
2442
|
if (condition === null || condition === undefined) {
|
|
2411
|
-
|
|
2443
|
+
renderer.removeAttribute(el, token);
|
|
2412
2444
|
}
|
|
2413
2445
|
else {
|
|
2414
|
-
|
|
2446
|
+
renderer.setAttribute(el, token, `${condition}`);
|
|
2415
2447
|
}
|
|
2416
2448
|
}
|
|
2417
2449
|
},
|
|
@@ -2419,16 +2451,17 @@ const signalAttributes = (el, attributeMap) => {
|
|
|
2419
2451
|
};
|
|
2420
2452
|
const signalHostAttributes = (attributeMap) => signalAttributes(inject(ElementRef), attributeMap);
|
|
2421
2453
|
const signalStyles = (el, styleMap) => {
|
|
2454
|
+
const renderer = inject(Renderer2);
|
|
2422
2455
|
return buildSignalEffects(el, {
|
|
2423
2456
|
tokenMap: styleMap,
|
|
2424
|
-
cleanupFn: (el, tokens) => tokens.forEach((token) =>
|
|
2457
|
+
cleanupFn: (el, tokens) => tokens.forEach((token) => renderer.removeStyle(el, token)),
|
|
2425
2458
|
updateFn: (el, tokens, condition) => {
|
|
2426
2459
|
for (const token of tokens) {
|
|
2427
2460
|
if (condition === null || condition === undefined) {
|
|
2428
|
-
|
|
2461
|
+
renderer.removeStyle(el, token);
|
|
2429
2462
|
}
|
|
2430
2463
|
else {
|
|
2431
|
-
|
|
2464
|
+
renderer.setStyle(el, token, `${condition}`, RendererStyleFlags2.DashCase);
|
|
2432
2465
|
}
|
|
2433
2466
|
}
|
|
2434
2467
|
},
|
|
@@ -2519,7 +2552,7 @@ const signalHostElementMutations = (options) => signalElementMutations(inject(El
|
|
|
2519
2552
|
const signalElementScrollState = (el, options) => {
|
|
2520
2553
|
const elements = buildElementSignal(el);
|
|
2521
2554
|
const elementDimensions = signalElementDimensions(elements);
|
|
2522
|
-
const elementMutations = signalElementMutations(elements, { childList: true, subtree: true });
|
|
2555
|
+
const elementMutations = signalElementMutations(elements, { childList: true, subtree: true, attributes: true });
|
|
2523
2556
|
const isRendered = signalIsRendered();
|
|
2524
2557
|
const initialScrollPosition = options?.initialScrollPosition;
|
|
2525
2558
|
if (initialScrollPosition) {
|
|
@@ -2529,8 +2562,10 @@ const signalElementScrollState = (el, options) => {
|
|
|
2529
2562
|
const scrollPosition = initialScrollPosition();
|
|
2530
2563
|
const element = elements().currentElement;
|
|
2531
2564
|
if (scrollPosition && element) {
|
|
2532
|
-
|
|
2533
|
-
|
|
2565
|
+
if (scrollPosition.left !== undefined)
|
|
2566
|
+
element.scrollLeft = scrollPosition.left;
|
|
2567
|
+
if (scrollPosition.top !== undefined)
|
|
2568
|
+
element.scrollTop = scrollPosition.top;
|
|
2534
2569
|
ref.destroy();
|
|
2535
2570
|
}
|
|
2536
2571
|
});
|
|
@@ -2569,86 +2604,103 @@ const signalHostElementScrollState = () => signalElementScrollState(inject(Eleme
|
|
|
2569
2604
|
const signalElementIntersection = (el, options) => {
|
|
2570
2605
|
const destroyRef = inject(DestroyRef);
|
|
2571
2606
|
const elements = buildElementSignal(el);
|
|
2572
|
-
const root = options?.root ? buildElementSignal(options?.root) : documentElementSignal();
|
|
2607
|
+
const root = firstElementSignal(options?.root ? buildElementSignal(options?.root) : documentElementSignal());
|
|
2573
2608
|
const zone = inject(NgZone);
|
|
2574
2609
|
const isRendered = signalIsRendered();
|
|
2575
2610
|
const isEnabled = options?.enabled ?? signal(true);
|
|
2576
2611
|
const elementIntersectionSignal = signal([]);
|
|
2577
2612
|
const observer = signal(null);
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
const
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
...currentValues.slice(0, existingEntryIndex),
|
|
2590
|
-
entry,
|
|
2591
|
-
...currentValues.slice(existingEntryIndex + 1),
|
|
2592
|
-
];
|
|
2593
|
-
}
|
|
2594
|
-
else {
|
|
2595
|
-
currentValues = [...currentValues, entry];
|
|
2596
|
-
}
|
|
2613
|
+
const currentlyObservedElements = new Set();
|
|
2614
|
+
const updateIntersections = (entries) => {
|
|
2615
|
+
let currentValues = [...elementIntersectionSignal()];
|
|
2616
|
+
for (const entry of entries) {
|
|
2617
|
+
const existingEntryIndex = currentValues.findIndex((v) => v.target === entry.target);
|
|
2618
|
+
if (existingEntryIndex !== -1) {
|
|
2619
|
+
currentValues = [
|
|
2620
|
+
...currentValues.slice(0, existingEntryIndex),
|
|
2621
|
+
entry,
|
|
2622
|
+
...currentValues.slice(existingEntryIndex + 1),
|
|
2623
|
+
];
|
|
2597
2624
|
}
|
|
2598
|
-
|
|
2599
|
-
|
|
2625
|
+
else {
|
|
2626
|
+
currentValues = [...currentValues, entry];
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
zone.run(() => elementIntersectionSignal.set(currentValues));
|
|
2630
|
+
};
|
|
2631
|
+
const updateIntersectionObserver = (rendered, enabled, rootEl) => {
|
|
2632
|
+
observer()?.disconnect();
|
|
2633
|
+
currentlyObservedElements.clear();
|
|
2634
|
+
if (!rendered || !enabled || !rootEl) {
|
|
2635
|
+
observer.set(null);
|
|
2636
|
+
return;
|
|
2637
|
+
}
|
|
2638
|
+
const newObserver = new IntersectionObserver((entries) => updateIntersections(entries), {
|
|
2639
|
+
...options,
|
|
2640
|
+
root: rootEl,
|
|
2641
|
+
});
|
|
2600
2642
|
observer.set(newObserver);
|
|
2601
|
-
}
|
|
2602
|
-
|
|
2603
|
-
const
|
|
2604
|
-
const
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
const
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
container: rootEl,
|
|
2643
|
+
};
|
|
2644
|
+
const updateObservedElements = (observer, elements) => {
|
|
2645
|
+
const rootEl = root().currentElement;
|
|
2646
|
+
const rootBounds = rootEl?.getBoundingClientRect();
|
|
2647
|
+
if (!observer || !rootEl)
|
|
2648
|
+
return;
|
|
2649
|
+
const newIntersectionValue = [...elementIntersectionSignal()];
|
|
2650
|
+
for (const el of elements.currentElements) {
|
|
2651
|
+
if (currentlyObservedElements.has(el))
|
|
2652
|
+
continue;
|
|
2653
|
+
const initialElementVisibility = isElementVisible({
|
|
2654
|
+
container: rootEl,
|
|
2655
|
+
element: el,
|
|
2656
|
+
});
|
|
2657
|
+
if (!initialElementVisibility) {
|
|
2658
|
+
console.error('No visibility data found for element.', {
|
|
2618
2659
|
element: el,
|
|
2660
|
+
container: rootEl,
|
|
2619
2661
|
});
|
|
2620
|
-
|
|
2621
|
-
console.error('No visibility data found for element.', {
|
|
2622
|
-
element: el,
|
|
2623
|
-
container: rootEl,
|
|
2624
|
-
});
|
|
2625
|
-
return null;
|
|
2626
|
-
}
|
|
2627
|
-
const inlineIntersectionRatio = visibility.inlineIntersection / 100;
|
|
2628
|
-
const blockIntersectionRatio = visibility.blockIntersection / 100;
|
|
2629
|
-
const isIntersecting = inlineIntersectionRatio > 0 && blockIntersectionRatio > 0;
|
|
2630
|
-
const intersectionRatio = Math.min(inlineIntersectionRatio, blockIntersectionRatio);
|
|
2631
|
-
const elBounds = el.getBoundingClientRect();
|
|
2632
|
-
const intersectionEntry = {
|
|
2633
|
-
boundingClientRect: elBounds,
|
|
2634
|
-
intersectionRatio,
|
|
2635
|
-
intersectionRect: elBounds,
|
|
2636
|
-
isIntersecting,
|
|
2637
|
-
rootBounds: rootBounds ?? null,
|
|
2638
|
-
target: el,
|
|
2639
|
-
time: performance.now(),
|
|
2640
|
-
};
|
|
2641
|
-
return intersectionEntry;
|
|
2642
|
-
})
|
|
2643
|
-
.filter((e) => e !== null);
|
|
2644
|
-
elementIntersectionSignal.set(entries);
|
|
2645
|
-
for (const el of els.currentElements) {
|
|
2646
|
-
obs?.observe(el);
|
|
2662
|
+
continue;
|
|
2647
2663
|
}
|
|
2664
|
+
const inlineIntersectionRatio = initialElementVisibility.inlineIntersection / 100;
|
|
2665
|
+
const blockIntersectionRatio = initialElementVisibility.blockIntersection / 100;
|
|
2666
|
+
const isIntersecting = inlineIntersectionRatio > 0 && blockIntersectionRatio > 0;
|
|
2667
|
+
const intersectionRatio = Math.min(inlineIntersectionRatio, blockIntersectionRatio);
|
|
2668
|
+
const elBounds = el.getBoundingClientRect();
|
|
2669
|
+
const intersectionEntry = {
|
|
2670
|
+
boundingClientRect: elBounds,
|
|
2671
|
+
intersectionRatio,
|
|
2672
|
+
intersectionRect: elBounds,
|
|
2673
|
+
isIntersecting,
|
|
2674
|
+
rootBounds: rootBounds ?? null,
|
|
2675
|
+
target: el,
|
|
2676
|
+
time: performance.now(),
|
|
2677
|
+
};
|
|
2678
|
+
newIntersectionValue.push(intersectionEntry);
|
|
2679
|
+
currentlyObservedElements.add(el);
|
|
2680
|
+
observer.observe(el);
|
|
2681
|
+
}
|
|
2682
|
+
for (const el of elements.previousElements) {
|
|
2683
|
+
if (elements.currentElements.includes(el))
|
|
2684
|
+
continue;
|
|
2685
|
+
observer.unobserve(el);
|
|
2686
|
+
currentlyObservedElements.delete(el);
|
|
2687
|
+
newIntersectionValue.splice(newIntersectionValue.findIndex((v) => v.target === el), 1);
|
|
2648
2688
|
}
|
|
2689
|
+
elementIntersectionSignal.set(newIntersectionValue);
|
|
2690
|
+
};
|
|
2691
|
+
effect(() => {
|
|
2692
|
+
const rootEl = root().currentElement;
|
|
2693
|
+
const rendered = isRendered();
|
|
2694
|
+
const enabled = isEnabled();
|
|
2695
|
+
untracked(() => updateIntersectionObserver(rendered, enabled, rootEl));
|
|
2649
2696
|
}, { allowSignalWrites: true });
|
|
2697
|
+
effect(() => {
|
|
2698
|
+
const els = elements();
|
|
2699
|
+
const obs = observer();
|
|
2700
|
+
untracked(() => updateObservedElements(obs, els));
|
|
2701
|
+
});
|
|
2650
2702
|
destroyRef.onDestroy(() => observer()?.disconnect());
|
|
2651
|
-
return elementIntersectionSignal;
|
|
2703
|
+
return elementIntersectionSignal.asReadonly();
|
|
2652
2704
|
};
|
|
2653
2705
|
const signalHostElementIntersection = (options) => signalElementIntersection(inject(ElementRef), options);
|
|
2654
2706
|
const signalElementChildren = (el) => {
|
|
@@ -2797,6 +2849,155 @@ const createCanAnimateSignal = () => {
|
|
|
2797
2849
|
state: value,
|
|
2798
2850
|
};
|
|
2799
2851
|
};
|
|
2852
|
+
const maybeSignalValue = (value) => {
|
|
2853
|
+
if (isSignal(value)) {
|
|
2854
|
+
return value();
|
|
2855
|
+
}
|
|
2856
|
+
return value;
|
|
2857
|
+
};
|
|
2858
|
+
/** The deadzone in pixels after which the cursor drag scroll will take effect. */
|
|
2859
|
+
const CURSOR_DRAG_SCROLL_DEADZONE = 5;
|
|
2860
|
+
/** The class that is added to the element when the cursor is being dragged. */
|
|
2861
|
+
const CURSOR_DRAG_SCROLLING_CLASS$1 = 'et-cursor-drag-scroll--scrolling';
|
|
2862
|
+
/** A function to apply cursor drag scroll behavior to an element. */
|
|
2863
|
+
const useCursorDragScroll = (el, options) => {
|
|
2864
|
+
const elements = buildElementSignal(el);
|
|
2865
|
+
const element = firstElementSignal(elements);
|
|
2866
|
+
const destroyRef = inject(DestroyRef);
|
|
2867
|
+
const { enabled = signal(true), allowedDirection = 'both' } = options ?? {};
|
|
2868
|
+
const scrollState = signalElementScrollState(elements);
|
|
2869
|
+
const renderer = inject(Renderer2);
|
|
2870
|
+
const isDragging = signal(false);
|
|
2871
|
+
const initialDragPosition = signal({ x: 0, y: 0 });
|
|
2872
|
+
const initialScrollPosition = signal({ x: 0, y: 0 });
|
|
2873
|
+
const dragAmount = signal({ x: 0, y: 0 });
|
|
2874
|
+
const document = inject(DOCUMENT);
|
|
2875
|
+
const canScroll = computed(() => {
|
|
2876
|
+
const currentScrollState = scrollState();
|
|
2877
|
+
const direction = maybeSignalValue(allowedDirection);
|
|
2878
|
+
switch (direction) {
|
|
2879
|
+
case 'both':
|
|
2880
|
+
return currentScrollState.canScrollHorizontally || currentScrollState.canScrollVertically;
|
|
2881
|
+
case 'horizontal':
|
|
2882
|
+
return currentScrollState.canScrollHorizontally;
|
|
2883
|
+
case 'vertical':
|
|
2884
|
+
return currentScrollState.canScrollVertically;
|
|
2885
|
+
}
|
|
2886
|
+
});
|
|
2887
|
+
// Cleanup if the element the cursor drag scroll is bound to gets changed
|
|
2888
|
+
effect(() => {
|
|
2889
|
+
const { previousElement } = element();
|
|
2890
|
+
if (previousElement) {
|
|
2891
|
+
renderer.removeStyle(previousElement, 'cursor');
|
|
2892
|
+
}
|
|
2893
|
+
});
|
|
2894
|
+
// Conditionally apply styles/classes to the element and the document
|
|
2895
|
+
effect(() => {
|
|
2896
|
+
const currCanScroll = canScroll();
|
|
2897
|
+
const isEnabled = enabled();
|
|
2898
|
+
const currIsDragging = isDragging();
|
|
2899
|
+
untracked(() => {
|
|
2900
|
+
const el = element().currentElement;
|
|
2901
|
+
if (!el)
|
|
2902
|
+
return;
|
|
2903
|
+
if (!currCanScroll || !isEnabled) {
|
|
2904
|
+
renderer.removeStyle(el, 'cursor');
|
|
2905
|
+
renderer.removeStyle(el, 'scrollSnapType');
|
|
2906
|
+
renderer.removeStyle(el, 'scrollBehavior');
|
|
2907
|
+
renderer.removeClass(el, CURSOR_DRAG_SCROLLING_CLASS$1);
|
|
2908
|
+
renderer.removeStyle(document.documentElement, 'cursor');
|
|
2909
|
+
return;
|
|
2910
|
+
}
|
|
2911
|
+
if (currIsDragging) {
|
|
2912
|
+
renderer.setStyle(el, 'cursor', 'grabbing');
|
|
2913
|
+
renderer.setStyle(el, 'scrollSnapType', 'none');
|
|
2914
|
+
renderer.setStyle(el, 'scrollBehavior', 'unset');
|
|
2915
|
+
renderer.addClass(el, CURSOR_DRAG_SCROLLING_CLASS$1);
|
|
2916
|
+
renderer.setStyle(document.documentElement, 'cursor', 'grabbing');
|
|
2917
|
+
}
|
|
2918
|
+
else {
|
|
2919
|
+
renderer.setStyle(el, 'cursor', 'grab');
|
|
2920
|
+
renderer.removeStyle(el, 'scrollSnapType');
|
|
2921
|
+
renderer.removeStyle(el, 'scrollBehavior');
|
|
2922
|
+
renderer.removeClass(el, CURSOR_DRAG_SCROLLING_CLASS$1);
|
|
2923
|
+
renderer.removeStyle(document.documentElement, 'cursor');
|
|
2924
|
+
}
|
|
2925
|
+
});
|
|
2926
|
+
});
|
|
2927
|
+
// Update the element's scroll position when the user drags
|
|
2928
|
+
effect(() => {
|
|
2929
|
+
const currDragAmount = dragAmount();
|
|
2930
|
+
untracked(() => {
|
|
2931
|
+
const currIsDragging = isDragging();
|
|
2932
|
+
const el = element().currentElement;
|
|
2933
|
+
const { x: dragX, y: dragY } = currDragAmount;
|
|
2934
|
+
const { x: scrollX, y: scrollY } = initialScrollPosition();
|
|
2935
|
+
const currAllowedDirection = maybeSignalValue(allowedDirection);
|
|
2936
|
+
if (!el || !currIsDragging)
|
|
2937
|
+
return;
|
|
2938
|
+
switch (currAllowedDirection) {
|
|
2939
|
+
case 'both':
|
|
2940
|
+
el.scroll({
|
|
2941
|
+
top: dragY + scrollY,
|
|
2942
|
+
left: dragX + scrollX,
|
|
2943
|
+
behavior: 'instant',
|
|
2944
|
+
});
|
|
2945
|
+
break;
|
|
2946
|
+
case 'horizontal':
|
|
2947
|
+
el.scroll({
|
|
2948
|
+
left: dragX + scrollX,
|
|
2949
|
+
behavior: 'instant',
|
|
2950
|
+
});
|
|
2951
|
+
break;
|
|
2952
|
+
case 'vertical':
|
|
2953
|
+
el.scroll({
|
|
2954
|
+
top: dragY + scrollY,
|
|
2955
|
+
behavior: 'instant',
|
|
2956
|
+
});
|
|
2957
|
+
break;
|
|
2958
|
+
}
|
|
2959
|
+
});
|
|
2960
|
+
});
|
|
2961
|
+
const updateDragging = (e) => {
|
|
2962
|
+
const el = element().currentElement;
|
|
2963
|
+
if (!el)
|
|
2964
|
+
return;
|
|
2965
|
+
const dx = (e.clientX - initialDragPosition().x) * -1;
|
|
2966
|
+
const dy = (e.clientY - initialDragPosition().y) * -1;
|
|
2967
|
+
dragAmount.set({ x: dx, y: dy });
|
|
2968
|
+
if (Math.abs(dx) > CURSOR_DRAG_SCROLL_DEADZONE || Math.abs(dy) > CURSOR_DRAG_SCROLL_DEADZONE) {
|
|
2969
|
+
isDragging.set(true);
|
|
2970
|
+
}
|
|
2971
|
+
};
|
|
2972
|
+
const updateDraggingEnd = () => {
|
|
2973
|
+
isDragging.set(false);
|
|
2974
|
+
initialDragPosition.set({ x: 0, y: 0 });
|
|
2975
|
+
initialScrollPosition.set({ x: 0, y: 0 });
|
|
2976
|
+
dragAmount.set({ x: 0, y: 0 });
|
|
2977
|
+
};
|
|
2978
|
+
const setupDragging = (e) => {
|
|
2979
|
+
const mouseUp = fromEvent(document, 'mouseup');
|
|
2980
|
+
const mouseMove = fromEvent(document, 'mousemove');
|
|
2981
|
+
const el = element().currentElement;
|
|
2982
|
+
if (!el)
|
|
2983
|
+
return;
|
|
2984
|
+
mouseMove
|
|
2985
|
+
.pipe(takeUntilDestroyed(destroyRef), takeUntil(mouseUp), tap((e) => updateDragging(e)))
|
|
2986
|
+
.subscribe();
|
|
2987
|
+
mouseUp
|
|
2988
|
+
.pipe(take(1), takeUntilDestroyed(destroyRef), tap(() => updateDraggingEnd()))
|
|
2989
|
+
.subscribe();
|
|
2990
|
+
initialDragPosition.set({ x: e.clientX, y: e.clientY });
|
|
2991
|
+
initialScrollPosition.set({ x: el.scrollLeft, y: el.scrollTop });
|
|
2992
|
+
};
|
|
2993
|
+
toObservable(element)
|
|
2994
|
+
.pipe(map((e) => e?.currentElement), switchMap((el) => (el ? fromEvent(el, 'mousedown') : of(null))), filter((e) => !!e), filter(() => enabled()), tap((e) => setupDragging(e)), takeUntilDestroyed())
|
|
2995
|
+
.subscribe();
|
|
2996
|
+
return {
|
|
2997
|
+
isDragging: isDragging.asReadonly(),
|
|
2998
|
+
currentDragAmount: dragAmount.asReadonly(),
|
|
2999
|
+
};
|
|
3000
|
+
};
|
|
2800
3001
|
|
|
2801
3002
|
const scrollBehaviorSupported = supportsScrollBehavior();
|
|
2802
3003
|
let _uniqueIdCounter = 0;
|
|
@@ -2998,15 +3199,15 @@ class AnimatableDirective {
|
|
|
2998
3199
|
.subscribe();
|
|
2999
3200
|
}
|
|
3000
3201
|
}
|
|
3001
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
3002
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
3202
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: AnimatableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3203
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: AnimatableDirective, isStandalone: true, selector: "[etAnimatable]", inputs: { animatedElement: ["etAnimatable", "animatedElement"] }, providers: [
|
|
3003
3204
|
{
|
|
3004
3205
|
provide: ANIMATABLE_TOKEN,
|
|
3005
3206
|
useExisting: AnimatableDirective,
|
|
3006
3207
|
},
|
|
3007
3208
|
], exportAs: ["etAnimatable"], ngImport: i0 }); }
|
|
3008
3209
|
}
|
|
3009
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
3210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: AnimatableDirective, decorators: [{
|
|
3010
3211
|
type: Directive,
|
|
3011
3212
|
args: [{
|
|
3012
3213
|
selector: '[etAnimatable]',
|
|
@@ -3129,15 +3330,15 @@ class AnimatedLifecycleDirective {
|
|
|
3129
3330
|
_forceState(state) {
|
|
3130
3331
|
this._state$.next(state);
|
|
3131
3332
|
}
|
|
3132
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
3133
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.3.
|
|
3333
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: AnimatedLifecycleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3334
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.3.7", type: AnimatedLifecycleDirective, isStandalone: true, selector: "[etAnimatedLifecycle]", inputs: { skipNextEnter: { classPropertyName: "skipNextEnter", publicName: "skipNextEnter", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { stateChange: "stateChange", skipNextEnter: "skipNextEnterChange" }, providers: [
|
|
3134
3335
|
{
|
|
3135
3336
|
provide: ANIMATED_LIFECYCLE_TOKEN,
|
|
3136
3337
|
useExisting: AnimatedLifecycleDirective,
|
|
3137
3338
|
},
|
|
3138
3339
|
], exportAs: ["etAnimatedLifecycle"], hostDirectives: [{ directive: AnimatableDirective }], ngImport: i0 }); }
|
|
3139
3340
|
}
|
|
3140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
3341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: AnimatedLifecycleDirective, decorators: [{
|
|
3141
3342
|
type: Directive,
|
|
3142
3343
|
args: [{
|
|
3143
3344
|
selector: '[etAnimatedLifecycle]',
|
|
@@ -3174,15 +3375,15 @@ class AnimatedIfDirective {
|
|
|
3174
3375
|
.subscribe();
|
|
3175
3376
|
}
|
|
3176
3377
|
}
|
|
3177
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
3178
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
3378
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: AnimatedIfDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3379
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: AnimatedIfDirective, isStandalone: true, selector: "[etAnimatedIf]", inputs: { shouldRender: ["etAnimatedIf", "shouldRender"] }, providers: [
|
|
3179
3380
|
{
|
|
3180
3381
|
provide: ANIMATED_IF_TOKEN,
|
|
3181
3382
|
useExisting: AnimatedIfDirective,
|
|
3182
3383
|
},
|
|
3183
3384
|
], hostDirectives: [{ directive: i1.NgIf }], ngImport: i0 }); }
|
|
3184
3385
|
}
|
|
3185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
3386
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: AnimatedIfDirective, decorators: [{
|
|
3186
3387
|
type: Directive,
|
|
3187
3388
|
args: [{
|
|
3188
3389
|
selector: '[etAnimatedIf]',
|
|
@@ -3242,10 +3443,10 @@ class ObserveResizeDirective {
|
|
|
3242
3443
|
_unsubscribe() {
|
|
3243
3444
|
this._currentSubscription?.unsubscribe();
|
|
3244
3445
|
}
|
|
3245
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
3246
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
3446
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ObserveResizeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3447
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: ObserveResizeDirective, isStandalone: true, selector: "[etObserveResize]", inputs: { disabled: ["etObserveResizeDisabled", "disabled"], debounce: ["etObserveResizeDebounce", "debounce"] }, outputs: { valueChange: "etObserveResize" }, exportAs: ["etObserveResize"], ngImport: i0 }); }
|
|
3247
3448
|
}
|
|
3248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
3449
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ObserveResizeDirective, decorators: [{
|
|
3249
3450
|
type: Directive,
|
|
3250
3451
|
args: [{
|
|
3251
3452
|
selector: '[etObserveResize]',
|
|
@@ -3275,15 +3476,15 @@ class RootBoundaryDirective {
|
|
|
3275
3476
|
set boundaryElement(v) {
|
|
3276
3477
|
this._boundaryElement = v;
|
|
3277
3478
|
}
|
|
3278
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
3279
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
3479
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: RootBoundaryDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3480
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: RootBoundaryDirective, isStandalone: true, selector: "[etRootBoundary]", providers: [
|
|
3280
3481
|
{
|
|
3281
3482
|
provide: ROOT_BOUNDARY_TOKEN,
|
|
3282
3483
|
useExisting: RootBoundaryDirective,
|
|
3283
3484
|
},
|
|
3284
3485
|
], ngImport: i0 }); }
|
|
3285
3486
|
}
|
|
3286
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
3487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: RootBoundaryDirective, decorators: [{
|
|
3287
3488
|
type: Directive,
|
|
3288
3489
|
args: [{
|
|
3289
3490
|
selector: '[etRootBoundary]',
|
|
@@ -3589,10 +3790,10 @@ class AnimatedOverlayDirective {
|
|
|
3589
3790
|
this._isUnmounting$.next(false);
|
|
3590
3791
|
this._afterClosed?.next();
|
|
3591
3792
|
}
|
|
3592
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
3593
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
3793
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: AnimatedOverlayDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3794
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: AnimatedOverlayDirective, isStandalone: true, inputs: { placement: "placement", fallbackPlacements: "fallbackPlacements", offset: "offset", arrowPadding: "arrowPadding", viewportPadding: "viewportPadding", autoResize: "autoResize", shift: "shift", autoHide: "autoHide", autoCloseIfReferenceHidden: "autoCloseIfReferenceHidden" }, host: { classAttribute: "et-animated-overlay" }, hostDirectives: [{ directive: ObserveResizeDirective }], ngImport: i0 }); }
|
|
3594
3795
|
}
|
|
3595
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
3796
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: AnimatedOverlayDirective, decorators: [{
|
|
3596
3797
|
type: Directive,
|
|
3597
3798
|
args: [{
|
|
3598
3799
|
standalone: true,
|
|
@@ -3642,10 +3843,10 @@ class ClickOutsideDirective {
|
|
|
3642
3843
|
ngOnDestroy() {
|
|
3643
3844
|
this._subscription?.unsubscribe();
|
|
3644
3845
|
}
|
|
3645
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
3646
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
3846
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ClickOutsideDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3847
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: ClickOutsideDirective, isStandalone: true, selector: "[etClickOutside]", outputs: { etClickOutside: "etClickOutside" }, ngImport: i0 }); }
|
|
3647
3848
|
}
|
|
3648
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
3849
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ClickOutsideDirective, decorators: [{
|
|
3649
3850
|
type: Directive,
|
|
3650
3851
|
args: [{
|
|
3651
3852
|
selector: '[etClickOutside]',
|
|
@@ -3799,10 +4000,10 @@ class CursorDragScrollDirective {
|
|
|
3799
4000
|
this._elementRef.nativeElement.style.cursor = 'default';
|
|
3800
4001
|
}
|
|
3801
4002
|
}
|
|
3802
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
3803
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
4003
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: CursorDragScrollDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4004
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: CursorDragScrollDirective, isStandalone: true, selector: "[etCursorDragScroll]", inputs: { enabled: ["etCursorDragScroll", "enabled"], allowedDirection: "allowedDirection" }, outputs: { cursorDragStart: "cursorDragStart", cursorDragMove: "cursorDragMove", cursorDragEnd: "cursorDragEnd" }, exportAs: ["etCursorDragScroll"], ngImport: i0 }); }
|
|
3804
4005
|
}
|
|
3805
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4006
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: CursorDragScrollDirective, decorators: [{
|
|
3806
4007
|
type: Directive,
|
|
3807
4008
|
args: [{
|
|
3808
4009
|
selector: '[etCursorDragScroll]',
|
|
@@ -3835,15 +4036,15 @@ class DebugDirective {
|
|
|
3835
4036
|
set sDebug(value) {
|
|
3836
4037
|
this._debug.set(value);
|
|
3837
4038
|
}
|
|
3838
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
3839
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.
|
|
4039
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: DebugDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4040
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: DebugDirective, isStandalone: true, selector: "[etDebug]", inputs: { sDebug: ["etDebug", "sDebug", booleanAttribute] }, providers: [
|
|
3840
4041
|
{
|
|
3841
4042
|
provide: DEBUG_TOKEN,
|
|
3842
4043
|
useExisting: DebugDirective,
|
|
3843
4044
|
},
|
|
3844
4045
|
], exportAs: ["etDebug"], ngImport: i0 }); }
|
|
3845
4046
|
}
|
|
3846
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4047
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: DebugDirective, decorators: [{
|
|
3847
4048
|
type: Directive,
|
|
3848
4049
|
args: [{
|
|
3849
4050
|
selector: '[etDebug]',
|
|
@@ -3890,15 +4091,15 @@ class DelayableDirective {
|
|
|
3890
4091
|
}
|
|
3891
4092
|
this._isDelayed$.next(val);
|
|
3892
4093
|
}
|
|
3893
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
3894
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
4094
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: DelayableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4095
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: DelayableDirective, isStandalone: true, selector: "[etDelayable]", providers: [
|
|
3895
4096
|
{
|
|
3896
4097
|
provide: DELAYABLE_TOKEN,
|
|
3897
4098
|
useExisting: DelayableDirective,
|
|
3898
4099
|
},
|
|
3899
4100
|
], exportAs: ["etDelayable"], ngImport: i0 }); }
|
|
3900
4101
|
}
|
|
3901
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: DelayableDirective, decorators: [{
|
|
3902
4103
|
type: Directive,
|
|
3903
4104
|
args: [{
|
|
3904
4105
|
selector: '[etDelayable]',
|
|
@@ -3919,15 +4120,15 @@ class IsActiveElementDirective {
|
|
|
3919
4120
|
this.elementRef = inject(ElementRef);
|
|
3920
4121
|
this.isActiveElement = false;
|
|
3921
4122
|
}
|
|
3922
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
3923
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.
|
|
4123
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: IsActiveElementDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4124
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: IsActiveElementDirective, isStandalone: true, selector: "[etIsActiveElement]", inputs: { isActiveElement: ["etIsActiveElement", "isActiveElement", booleanAttribute] }, providers: [
|
|
3924
4125
|
{
|
|
3925
4126
|
provide: IS_ACTIVE_ELEMENT,
|
|
3926
4127
|
useExisting: IsActiveElementDirective,
|
|
3927
4128
|
},
|
|
3928
4129
|
], ngImport: i0 }); }
|
|
3929
4130
|
}
|
|
3930
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: IsActiveElementDirective, decorators: [{
|
|
3931
4132
|
type: Directive,
|
|
3932
4133
|
args: [{
|
|
3933
4134
|
selector: '[etIsActiveElement]',
|
|
@@ -3950,15 +4151,15 @@ class IsElementDirective {
|
|
|
3950
4151
|
this.elementRef = inject(ElementRef);
|
|
3951
4152
|
this.isElement = false;
|
|
3952
4153
|
}
|
|
3953
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
3954
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.
|
|
4154
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: IsElementDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4155
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: IsElementDirective, isStandalone: true, selector: "[etIsElement]", inputs: { isElement: ["etIsElement", "isElement", booleanAttribute] }, providers: [
|
|
3955
4156
|
{
|
|
3956
4157
|
provide: IS_ELEMENT,
|
|
3957
4158
|
useExisting: IsElementDirective,
|
|
3958
4159
|
},
|
|
3959
4160
|
], ngImport: i0 }); }
|
|
3960
4161
|
}
|
|
3961
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: IsElementDirective, decorators: [{
|
|
3962
4163
|
type: Directive,
|
|
3963
4164
|
args: [{
|
|
3964
4165
|
selector: '[etIsElement]',
|
|
@@ -4007,10 +4208,10 @@ class LetDirective {
|
|
|
4007
4208
|
}
|
|
4008
4209
|
}
|
|
4009
4210
|
}
|
|
4010
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4011
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
4211
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: LetDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4212
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: LetDirective, isStandalone: true, selector: "[etLet]", inputs: { etLet: "etLet" }, ngImport: i0 }); }
|
|
4012
4213
|
}
|
|
4013
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: LetDirective, decorators: [{
|
|
4014
4215
|
type: Directive,
|
|
4015
4216
|
args: [{
|
|
4016
4217
|
selector: '[etLet]',
|
|
@@ -4062,10 +4263,10 @@ class ObserveContentDirective {
|
|
|
4062
4263
|
_unsubscribe() {
|
|
4063
4264
|
this._currentSubscription?.unsubscribe();
|
|
4064
4265
|
}
|
|
4065
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4066
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
4266
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ObserveContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4267
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: ObserveContentDirective, isStandalone: true, selector: "[etObserveContent]", inputs: { disabled: ["etObserveContentDisabled", "disabled"], debounce: ["etObserveContentDebounce", "debounce"] }, outputs: { valueChange: "etObserveContent" }, exportAs: ["etObserveContent"], ngImport: i0 }); }
|
|
4067
4268
|
}
|
|
4068
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ObserveContentDirective, decorators: [{
|
|
4069
4270
|
type: Directive,
|
|
4070
4271
|
args: [{
|
|
4071
4272
|
selector: '[etObserveContent]',
|
|
@@ -4090,10 +4291,10 @@ class ScrollObserverFirstElementDirective {
|
|
|
4090
4291
|
constructor() {
|
|
4091
4292
|
this.isFirstElement = false;
|
|
4092
4293
|
}
|
|
4093
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4094
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.
|
|
4294
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ScrollObserverFirstElementDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4295
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: ScrollObserverFirstElementDirective, isStandalone: true, selector: "[etScrollObserverFirstElement]", inputs: { isFirstElement: ["etScrollObserverFirstElement", "isFirstElement", booleanAttribute] }, host: { properties: { "class.et-scroll-observer-first-element": "this.isFirstElement" } }, ngImport: i0 }); }
|
|
4095
4296
|
}
|
|
4096
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ScrollObserverFirstElementDirective, decorators: [{
|
|
4097
4298
|
type: Directive,
|
|
4098
4299
|
args: [{
|
|
4099
4300
|
selector: '[etScrollObserverFirstElement]',
|
|
@@ -4109,10 +4310,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.6", ngImpor
|
|
|
4109
4310
|
|
|
4110
4311
|
const SCROLL_OBSERVER_IGNORE_TARGET_CLASS = 'et-scroll-observer-ignore-target';
|
|
4111
4312
|
class ScrollObserverIgnoreTargetDirective {
|
|
4112
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4113
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
4313
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ScrollObserverIgnoreTargetDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4314
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: ScrollObserverIgnoreTargetDirective, isStandalone: true, selector: "[etScrollObserverIgnoreTarget]", host: { classAttribute: "et-scroll-observer-ignore-target" }, ngImport: i0 }); }
|
|
4114
4315
|
}
|
|
4115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ScrollObserverIgnoreTargetDirective, decorators: [{
|
|
4116
4317
|
type: Directive,
|
|
4117
4318
|
args: [{
|
|
4118
4319
|
selector: '[etScrollObserverIgnoreTarget]',
|
|
@@ -4128,10 +4329,10 @@ class ScrollObserverLastElementDirective {
|
|
|
4128
4329
|
constructor() {
|
|
4129
4330
|
this.isLastElement = false;
|
|
4130
4331
|
}
|
|
4131
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4132
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.
|
|
4332
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ScrollObserverLastElementDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4333
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: ScrollObserverLastElementDirective, isStandalone: true, selector: "[etScrollObserverLastElement]", inputs: { isLastElement: ["etScrollObserverLastElement", "isLastElement", booleanAttribute] }, host: { properties: { "class.et-scroll-observer-last-element": "this.isLastElement" }, classAttribute: "et-scroll-observer-last-element" }, ngImport: i0 }); }
|
|
4133
4334
|
}
|
|
4134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ScrollObserverLastElementDirective, decorators: [{
|
|
4135
4336
|
type: Directive,
|
|
4136
4337
|
args: [{
|
|
4137
4338
|
selector: '[etScrollObserverLastElement]',
|
|
@@ -4288,15 +4489,15 @@ class ObserveScrollStateDirective {
|
|
|
4288
4489
|
}
|
|
4289
4490
|
return element;
|
|
4290
4491
|
}
|
|
4291
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4292
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.
|
|
4492
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ObserveScrollStateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4493
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.7", type: ObserveScrollStateDirective, isStandalone: true, selector: "[etObserveScrollState]", inputs: { rootMargin: ["rootMargin", "rootMargin", numberAttribute], observerThreshold: "observerThreshold" }, outputs: { valueChange: "etObserveScrollState" }, providers: [
|
|
4293
4494
|
{
|
|
4294
4495
|
provide: OBSERVE_SCROLL_STATE,
|
|
4295
4496
|
useExisting: ObserveScrollStateDirective,
|
|
4296
4497
|
},
|
|
4297
4498
|
], exportAs: ["etObserveScrollState"], ngImport: i0 }); }
|
|
4298
4499
|
}
|
|
4299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ObserveScrollStateDirective, decorators: [{
|
|
4300
4501
|
type: Directive,
|
|
4301
4502
|
args: [{
|
|
4302
4503
|
selector: '[etObserveScrollState]',
|
|
@@ -4366,15 +4567,15 @@ class ObserveVisibilityDirective {
|
|
|
4366
4567
|
}))
|
|
4367
4568
|
.subscribe();
|
|
4368
4569
|
}
|
|
4369
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4370
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
4570
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ObserveVisibilityDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4571
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: ObserveVisibilityDirective, isStandalone: true, selector: "[etObserveVisibility]", outputs: { etObserveVisibility: "etObserveVisibility" }, host: { classAttribute: "et-observe-visibility" }, providers: [
|
|
4371
4572
|
{
|
|
4372
4573
|
provide: OBSERVE_VISIBILITY_TOKEN,
|
|
4373
4574
|
useExisting: ObserveVisibilityDirective,
|
|
4374
4575
|
},
|
|
4375
4576
|
], ngImport: i0 }); }
|
|
4376
4577
|
}
|
|
4377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ObserveVisibilityDirective, decorators: [{
|
|
4378
4579
|
type: Directive,
|
|
4379
4580
|
args: [{
|
|
4380
4581
|
selector: '[etObserveVisibility]',
|
|
@@ -4412,10 +4613,10 @@ class RepeatDirective {
|
|
|
4412
4613
|
this._viewContainerRef.createEmbeddedView(this._mainTemplateRef);
|
|
4413
4614
|
}
|
|
4414
4615
|
}
|
|
4415
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4416
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
4616
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: RepeatDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4617
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: RepeatDirective, isStandalone: true, selector: "[etRepeat]", inputs: { repeatCount: ["etRepeat", "repeatCount"] }, ngImport: i0 }); }
|
|
4417
4618
|
}
|
|
4418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4619
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: RepeatDirective, decorators: [{
|
|
4419
4620
|
type: Directive,
|
|
4420
4621
|
args: [{
|
|
4421
4622
|
selector: '[etRepeat]',
|
|
@@ -4584,10 +4785,10 @@ class SeoDirective {
|
|
|
4584
4785
|
}
|
|
4585
4786
|
}
|
|
4586
4787
|
}
|
|
4587
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4588
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.
|
|
4788
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: SeoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4789
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.7", type: SeoDirective, isStandalone: true, providers: [{ provide: SEO_DIRECTIVE_TOKEN, useExisting: SeoDirective }], ngImport: i0 }); }
|
|
4589
4790
|
}
|
|
4590
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4791
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: SeoDirective, decorators: [{
|
|
4591
4792
|
type: Directive,
|
|
4592
4793
|
args: [{
|
|
4593
4794
|
standalone: true,
|
|
@@ -4763,10 +4964,10 @@ class InferMimeTypePipe {
|
|
|
4763
4964
|
constructor() {
|
|
4764
4965
|
this.transform = inferMimeType;
|
|
4765
4966
|
}
|
|
4766
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4767
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.
|
|
4967
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: InferMimeTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4968
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.7", ngImport: i0, type: InferMimeTypePipe, isStandalone: true, name: "inferMimeType" }); }
|
|
4768
4969
|
}
|
|
4769
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
4970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: InferMimeTypePipe, decorators: [{
|
|
4770
4971
|
type: Pipe,
|
|
4771
4972
|
args: [{
|
|
4772
4973
|
name: 'inferMimeType',
|
|
@@ -4812,10 +5013,10 @@ class NormalizeGameResultTypePipe {
|
|
|
4812
5013
|
constructor() {
|
|
4813
5014
|
this.transform = normalizeGameResultType;
|
|
4814
5015
|
}
|
|
4815
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4816
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.
|
|
5016
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: NormalizeGameResultTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5017
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.7", ngImport: i0, type: NormalizeGameResultTypePipe, isStandalone: true, name: "etNormalizeGameResultType" }); }
|
|
4817
5018
|
}
|
|
4818
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
5019
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: NormalizeGameResultTypePipe, decorators: [{
|
|
4819
5020
|
type: Pipe,
|
|
4820
5021
|
args: [{ name: 'etNormalizeGameResultType', standalone: true }]
|
|
4821
5022
|
}] });
|
|
@@ -4843,10 +5044,10 @@ class NormalizeMatchStatePipe {
|
|
|
4843
5044
|
constructor() {
|
|
4844
5045
|
this.transform = normalizeMatchState;
|
|
4845
5046
|
}
|
|
4846
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4847
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.
|
|
5047
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: NormalizeMatchStatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5048
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.7", ngImport: i0, type: NormalizeMatchStatePipe, isStandalone: true, name: "etNormalizeMatchState" }); }
|
|
4848
5049
|
}
|
|
4849
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
5050
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: NormalizeMatchStatePipe, decorators: [{
|
|
4850
5051
|
type: Pipe,
|
|
4851
5052
|
args: [{ name: 'etNormalizeMatchState', standalone: true }]
|
|
4852
5053
|
}] });
|
|
@@ -4901,10 +5102,10 @@ class NormalizeMatchParticipantsPipe {
|
|
|
4901
5102
|
constructor() {
|
|
4902
5103
|
this.transform = normalizeMatchParticipants;
|
|
4903
5104
|
}
|
|
4904
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
4905
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.
|
|
5105
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: NormalizeMatchParticipantsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5106
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.7", ngImport: i0, type: NormalizeMatchParticipantsPipe, isStandalone: true, name: "etNormalizeMatchParticipants" }); }
|
|
4906
5107
|
}
|
|
4907
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
5108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: NormalizeMatchParticipantsPipe, decorators: [{
|
|
4908
5109
|
type: Pipe,
|
|
4909
5110
|
args: [{ name: 'etNormalizeMatchParticipants', standalone: true }]
|
|
4910
5111
|
}] });
|
|
@@ -5038,10 +5239,10 @@ class NormalizeMatchScorePipe {
|
|
|
5038
5239
|
constructor() {
|
|
5039
5240
|
this.transform = normalizeMatchScore;
|
|
5040
5241
|
}
|
|
5041
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
5042
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.
|
|
5242
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: NormalizeMatchScorePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5243
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.7", ngImport: i0, type: NormalizeMatchScorePipe, isStandalone: true, name: "etNormalizeMatchScore" }); }
|
|
5043
5244
|
}
|
|
5044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
5245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: NormalizeMatchScorePipe, decorators: [{
|
|
5045
5246
|
type: Pipe,
|
|
5046
5247
|
args: [{ name: 'etNormalizeMatchScore', standalone: true }]
|
|
5047
5248
|
}] });
|
|
@@ -5088,10 +5289,10 @@ class NormalizeMatchTypePipe {
|
|
|
5088
5289
|
constructor() {
|
|
5089
5290
|
this.transform = normalizeMatchType;
|
|
5090
5291
|
}
|
|
5091
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
5092
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.
|
|
5292
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: NormalizeMatchTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5293
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.7", ngImport: i0, type: NormalizeMatchTypePipe, isStandalone: true, name: "etNormalizeMatchType" }); }
|
|
5093
5294
|
}
|
|
5094
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
5295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: NormalizeMatchTypePipe, decorators: [{
|
|
5095
5296
|
type: Pipe,
|
|
5096
5297
|
args: [{ name: 'etNormalizeMatchType', standalone: true }]
|
|
5097
5298
|
}] });
|
|
@@ -5105,10 +5306,10 @@ class ToArrayPipe {
|
|
|
5105
5306
|
constructor() {
|
|
5106
5307
|
this.transform = toArray;
|
|
5107
5308
|
}
|
|
5108
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
5109
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.
|
|
5309
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ToArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5310
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.7", ngImport: i0, type: ToArrayPipe, isStandalone: true, name: "toArray" }); }
|
|
5110
5311
|
}
|
|
5111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
5312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ToArrayPipe, decorators: [{
|
|
5112
5313
|
type: Pipe,
|
|
5113
5314
|
args: [{ name: 'toArray', standalone: true }]
|
|
5114
5315
|
}] });
|
|
@@ -5326,10 +5527,10 @@ class PropsDirective {
|
|
|
5326
5527
|
});
|
|
5327
5528
|
});
|
|
5328
5529
|
}
|
|
5329
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.
|
|
5330
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.3.
|
|
5530
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: PropsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5531
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "17.3.7", type: PropsDirective, isStandalone: true, selector: "[etProps]", inputs: { props: { classPropertyName: "props", publicName: "etProps", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
5331
5532
|
}
|
|
5332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.
|
|
5533
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: PropsDirective, decorators: [{
|
|
5333
5534
|
type: Directive,
|
|
5334
5535
|
args: [{
|
|
5335
5536
|
selector: '[etProps]',
|
|
@@ -5462,5 +5663,5 @@ const Validators = {
|
|
|
5462
5663
|
* Generated bundle index. Do not edit.
|
|
5463
5664
|
*/
|
|
5464
5665
|
|
|
5465
|
-
export { ANIMATABLE_TOKEN, ANIMATED_IF_TOKEN, ANIMATED_LIFECYCLE_TOKEN, AT_LEAST_ONE_REQUIRED, ActiveSelectionModel, AnimatableDirective, AnimatedIfDirective, AnimatedLifecycleDirective, AnimatedOverlayDirective, CURSOR_DRAG_SCROLLING_CLASS, CURSOR_DRAG_SCROLLING_PREPARED_CLASS, ClickObserverFactory, ClickObserverService, ClickOutsideDirective, ContentObserverService, CursorDragScrollDirective, DEBUG_TOKEN, DEFAULT_VIEWPORT_CONFIG, DELAYABLE_TOKEN, DebugDirective, DelayableDirective, ET_PROPERTY_REMOVED, FocusVisibleService, IS_ACTIVE_ELEMENT, IS_ARRAY_NOT_EMPTY, IS_ELEMENT, IS_EMAIL, InferMimeTypePipe, IntersectionObserverFactory, IntersectionObserverService, IsActiveElementDirective, IsArrayNotEmpty, IsElementDirective, IsEmail, KeyPressManager, LetContext, LetDirective, MUST_MATCH, Memo, MustMatch, MutationObserverFactory, NormalizeGameResultTypePipe, NormalizeMatchParticipantsPipe, NormalizeMatchScorePipe, NormalizeMatchStatePipe, NormalizeMatchTypePipe, OBSERVE_SCROLL_STATE, OBSERVE_VISIBILITY_TOKEN, ObserveContentDirective, ObserveResizeDirective, ObserveScrollStateDirective, ObserveVisibilityDirective, PropsDirective, ROOT_BOUNDARY_TOKEN, RUNTIME_ERROR_NO_DATA, RepeatDirective, ResizeObserverFactory, ResizeObserverService, RootBoundaryDirective, RouterStateService, RuntimeError, SCROLL_OBSERVER_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_IGNORE_TARGET_CLASS, SCROLL_OBSERVER_LAST_ELEMENT_CLASS, SCROLL_OBSERVER_OBSERVING_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_OBSERVING_LAST_ELEMENT_CLASS, SEO_DIRECTIVE_TOKEN, ScrollObserverFirstElementDirective, ScrollObserverIgnoreTargetDirective, ScrollObserverLastElementDirective, SelectionModel, SeoDirective, SmartBlockScrollStrategy, StructuredDataComponent, ToArrayPipe, TypedQueryList, VIEWPORT_CONFIG, ValidateAtLeastOneRequired, Validators, ViewportService, bindProps, buildSignalEffects, clamp, clone, cloneFormGroup, controlValueSignal, controlValueSignalWithPrevious, createCanAnimateSignal, createComponentId, createDependencyStash, createDestroy, createElementDictionary, createFlipAnimation, createFlipAnimationGroup, createHostProps, createIsRenderedSignal, createMediaQueryObservable, createMutationObservable, createPropHandlers, createProps, createReactiveBindings, createResizeObservable, createSetup, debouncedControlValueSignal, deleteCookie, elementCanScroll, equal, forceReflow, formatRuntimeError, fromNextFrame, getCookie, getDomain, getElementVisibleStates, getFormGroupValue, getGroupMatchPoints, getGroupMatchScore, getIntersectionInfo, getKnockoutMatchScore, getMatchScoreSubLine, getObjectProperty, hasCookie, inferMimeType, injectFragment, injectHostElement, injectOrRunInContext, injectPathParam, injectPathParams, injectQueryParam, injectQueryParams, injectRouteData, injectRouteDataItem, injectRouteTitle, injectTemplateRef, isArray, isElementVisible, isEmptyArray, isGroupMatch, isKnockoutMatch, isObject, isObjectArray, isPrimitiveArray, mergeSeoConfig, nextFrame, normalizeGameResultType, normalizeMatchParticipant, normalizeMatchParticipants, normalizeMatchScore, normalizeMatchState, normalizeMatchType, previousSignalValue, provideViewportConfig, round, routerDisableScrollTop, scrollToElement, setCookie, signalAttributes, signalClasses, signalElementChildren, signalElementDimensions, signalElementIntersection, signalElementMutations, signalElementScrollState, signalHostAttributes, signalHostClasses, signalHostElementDimensions, signalHostElementIntersection, signalHostElementMutations, signalHostElementScrollState, signalHostStyles, signalIsRendered, signalStyles, signalVisibilityChangeClasses, switchQueryListChanges, syncSignal, templateComputed, toArray, toArrayTrackByFn, transformOrReturn, unbindProps };
|
|
5666
|
+
export { ANIMATABLE_TOKEN, ANIMATED_IF_TOKEN, ANIMATED_LIFECYCLE_TOKEN, AT_LEAST_ONE_REQUIRED, ActiveSelectionModel, AnimatableDirective, AnimatedIfDirective, AnimatedLifecycleDirective, AnimatedOverlayDirective, CURSOR_DRAG_SCROLLING_CLASS, CURSOR_DRAG_SCROLLING_PREPARED_CLASS, ClickObserverFactory, ClickObserverService, ClickOutsideDirective, ContentObserverService, CursorDragScrollDirective, DEBUG_TOKEN, DEFAULT_VIEWPORT_CONFIG, DELAYABLE_TOKEN, DebugDirective, DelayableDirective, ET_PROPERTY_REMOVED, FocusVisibleService, IS_ACTIVE_ELEMENT, IS_ARRAY_NOT_EMPTY, IS_ELEMENT, IS_EMAIL, InferMimeTypePipe, IntersectionObserverFactory, IntersectionObserverService, IsActiveElementDirective, IsArrayNotEmpty, IsElementDirective, IsEmail, KeyPressManager, LetContext, LetDirective, MUST_MATCH, Memo, MustMatch, MutationObserverFactory, NormalizeGameResultTypePipe, NormalizeMatchParticipantsPipe, NormalizeMatchScorePipe, NormalizeMatchStatePipe, NormalizeMatchTypePipe, OBSERVE_SCROLL_STATE, OBSERVE_VISIBILITY_TOKEN, ObserveContentDirective, ObserveResizeDirective, ObserveScrollStateDirective, ObserveVisibilityDirective, PropsDirective, ROOT_BOUNDARY_TOKEN, RUNTIME_ERROR_NO_DATA, RepeatDirective, ResizeObserverFactory, ResizeObserverService, RootBoundaryDirective, RouterStateService, RuntimeError, SCROLL_OBSERVER_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_IGNORE_TARGET_CLASS, SCROLL_OBSERVER_LAST_ELEMENT_CLASS, SCROLL_OBSERVER_OBSERVING_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_OBSERVING_LAST_ELEMENT_CLASS, SEO_DIRECTIVE_TOKEN, ScrollObserverFirstElementDirective, ScrollObserverIgnoreTargetDirective, ScrollObserverLastElementDirective, SelectionModel, SeoDirective, SmartBlockScrollStrategy, StructuredDataComponent, ToArrayPipe, TypedQueryList, VIEWPORT_CONFIG, ValidateAtLeastOneRequired, Validators, ViewportService, bindProps, buildSignalEffects, clamp, clone, cloneFormGroup, controlValueSignal, controlValueSignalWithPrevious, createCanAnimateSignal, createComponentId, createDependencyStash, createDestroy, createElementDictionary, createFlipAnimation, createFlipAnimationGroup, createHostProps, createIsRenderedSignal, createMediaQueryObservable, createMutationObservable, createPropHandlers, createProps, createReactiveBindings, createResizeObservable, createSetup, debouncedControlValueSignal, deleteCookie, elementCanScroll, equal, forceReflow, formatRuntimeError, fromNextFrame, getCookie, getDomain, getElementScrollCoordinates, getElementVisibleStates, getFormGroupValue, getGroupMatchPoints, getGroupMatchScore, getIntersectionInfo, getKnockoutMatchScore, getMatchScoreSubLine, getObjectProperty, hasCookie, inferMimeType, injectFragment, injectHostElement, injectOrRunInContext, injectPathParam, injectPathParams, injectQueryParam, injectQueryParams, injectRouteData, injectRouteDataItem, injectRouteTitle, injectTemplateRef, isArray, isElementVisible, isEmptyArray, isGroupMatch, isKnockoutMatch, isObject, isObjectArray, isPrimitiveArray, maybeSignalValue, mergeSeoConfig, nextFrame, normalizeGameResultType, normalizeMatchParticipant, normalizeMatchParticipants, normalizeMatchScore, normalizeMatchState, normalizeMatchType, previousSignalValue, provideViewportConfig, round, routerDisableScrollTop, scrollToElement, setCookie, signalAttributes, signalClasses, signalElementChildren, signalElementDimensions, signalElementIntersection, signalElementMutations, signalElementScrollState, signalHostAttributes, signalHostClasses, signalHostElementDimensions, signalHostElementIntersection, signalHostElementMutations, signalHostElementScrollState, signalHostStyles, signalIsRendered, signalStyles, signalVisibilityChangeClasses, switchQueryListChanges, syncSignal, templateComputed, toArray, toArrayTrackByFn, transformOrReturn, unbindProps, useCursorDragScroll };
|
|
5466
5667
|
//# sourceMappingURL=ethlete-core.mjs.map
|