@ethlete/core 1.8.1 → 1.9.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.
@@ -1030,7 +1030,7 @@ const routerDisableScrollTop = (config = {}) => {
1030
1030
  };
1031
1031
  class RouterStateService {
1032
1032
  get route$() {
1033
- return this._route$.asObservable();
1033
+ return this._route$.asObservable().pipe(distinctUntilChanged());
1034
1034
  }
1035
1035
  get state$() {
1036
1036
  return this._state$.asObservable();
@@ -1110,13 +1110,13 @@ class RouterStateService {
1110
1110
  });
1111
1111
  }
1112
1112
  selectQueryParam(key) {
1113
- return this._state$.pipe(map((state) => state.queryParams[key]));
1113
+ return this._state$.pipe(map((state) => state.queryParams[key]), distinctUntilChanged());
1114
1114
  }
1115
1115
  selectPathParam(key) {
1116
- return this._state$.pipe(map((state) => state.pathParams[key]));
1116
+ return this._state$.pipe(map((state) => state.pathParams[key]), distinctUntilChanged());
1117
1117
  }
1118
1118
  selectData(key) {
1119
- return this._state$.pipe(map((state) => state.data[key]));
1119
+ return this._state$.pipe(map((state) => state.data[key]), distinctUntilChanged((a, b) => equal(a, b)));
1120
1120
  }
1121
1121
  }
1122
1122
  RouterStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: RouterStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
@@ -1684,6 +1684,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
1684
1684
  args: ['etCursorDragScroll']
1685
1685
  }] } });
1686
1686
 
1687
+ const DELAYABLE_TOKEN = new InjectionToken('DELAYABLE_DIRECTIVE_TOKEN');
1688
+ class DelayableDirective {
1689
+ constructor() {
1690
+ this._isDelayed$ = new BehaviorSubject(false);
1691
+ }
1692
+ get isDelayed$() {
1693
+ return this._isDelayed$.asObservable();
1694
+ }
1695
+ get isDelayed() {
1696
+ return this._isDelayed$.value;
1697
+ }
1698
+ enableDelayed() {
1699
+ this._isDelayed$.next(true);
1700
+ }
1701
+ disableDelayed() {
1702
+ this._isDelayed$.next(false);
1703
+ }
1704
+ setDelayed(val) {
1705
+ this._isDelayed$.next(val);
1706
+ }
1707
+ }
1708
+ DelayableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DelayableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1709
+ DelayableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.5", type: DelayableDirective, isStandalone: true, selector: "[etDelayable]", providers: [
1710
+ {
1711
+ provide: DELAYABLE_TOKEN,
1712
+ useExisting: DelayableDirective,
1713
+ },
1714
+ ], exportAs: ["etDelayable"], ngImport: i0 });
1715
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DelayableDirective, decorators: [{
1716
+ type: Directive,
1717
+ args: [{
1718
+ selector: '[etDelayable]',
1719
+ exportAs: 'etDelayable',
1720
+ standalone: true,
1721
+ providers: [
1722
+ {
1723
+ provide: DELAYABLE_TOKEN,
1724
+ useExisting: DelayableDirective,
1725
+ },
1726
+ ],
1727
+ }]
1728
+ }] });
1729
+
1687
1730
  class LetContext {
1688
1731
  constructor() {
1689
1732
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -2723,5 +2766,5 @@ const Validators = {
2723
2766
  * Generated bundle index. Do not edit.
2724
2767
  */
2725
2768
 
2726
- export { ANIMATABLE_TOKEN, ANIMATED_LIFECYCLE_TOKEN, AnimatableDirective, AnimatedLifecycleDirective, BehaviorSubjectWithSubscriberCount, ClickObserverFactory, ClickObserverService, ClickOutsideDirective, ContentObserverService, CursorDragScrollDirective, DEFAULT_VIEWPORT_CONFIG, DestroyService, FocusVisibleService, IS_ARRAY_NOT_EMPTY, IS_EMAIL, 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, 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 };
2769
+ export { ANIMATABLE_TOKEN, ANIMATED_LIFECYCLE_TOKEN, AnimatableDirective, AnimatedLifecycleDirective, BehaviorSubjectWithSubscriberCount, ClickObserverFactory, ClickObserverService, ClickOutsideDirective, ContentObserverService, CursorDragScrollDirective, DEFAULT_VIEWPORT_CONFIG, DELAYABLE_TOKEN, DelayableDirective, DestroyService, FocusVisibleService, IS_ARRAY_NOT_EMPTY, IS_EMAIL, 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, 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 };
2727
2770
  //# sourceMappingURL=ethlete-core.mjs.map