@ethlete/core 2.8.0 → 2.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.
- 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 +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/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/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 +3 -3
- package/esm2022/lib/services/viewport.service.mjs +7 -7
- package/esm2022/lib/utils/public-api.mjs +1 -2
- package/fesm2022/ethlete-core.mjs +102 -128
- package/fesm2022/ethlete-core.mjs.map +1 -1
- package/lib/utils/public-api.d.ts +0 -1
- package/package.json +6 -6
- package/esm2022/lib/utils/rxjs.utils.mjs +0 -27
- package/lib/utils/rxjs.utils.d.ts +0 -9
|
@@ -10,7 +10,6 @@ export * from './mutation-observable.util';
|
|
|
10
10
|
export * from './reactive-binding.util';
|
|
11
11
|
export * from './round.utils';
|
|
12
12
|
export * from './runtime-error.utils';
|
|
13
|
-
export * from './rxjs.utils';
|
|
14
13
|
export * from './scrollable.utils';
|
|
15
14
|
export * from './selection-model.utils';
|
|
16
15
|
export * from './smart-block-scroll-strategy.utils';
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethlete/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.5.0"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
8
|
"@angular/common": "^15.2.1 || ^16.0.0",
|
|
9
9
|
"@angular/core": "^15.2.1 || ^16.0.0",
|
|
10
|
-
"@angular/platform-browser": "16.1.
|
|
11
|
-
"@ethlete/types": "1.
|
|
10
|
+
"@angular/platform-browser": "16.1.6",
|
|
11
|
+
"@ethlete/types": "1.3.0",
|
|
12
12
|
"rxjs": "7.8.1",
|
|
13
|
-
"@angular/cdk": "16.1.
|
|
13
|
+
"@angular/cdk": "16.1.5",
|
|
14
14
|
"@popperjs/core": "2.11.8",
|
|
15
|
-
"@angular/router": "16.1.
|
|
16
|
-
"@angular/forms": "16.1.
|
|
15
|
+
"@angular/router": "16.1.6",
|
|
16
|
+
"@angular/forms": "16.1.6"
|
|
17
17
|
},
|
|
18
18
|
"module": "fesm2022/ethlete-core.mjs",
|
|
19
19
|
"typings": "index.d.ts",
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
export class BehaviorSubjectWithSubscriberCount extends BehaviorSubject {
|
|
4
|
-
constructor() {
|
|
5
|
-
super(...arguments);
|
|
6
|
-
this._subscriberCount = 0;
|
|
7
|
-
}
|
|
8
|
-
get subscriberCount() {
|
|
9
|
-
return this._subscriberCount;
|
|
10
|
-
}
|
|
11
|
-
subscribe(observerOrNext) {
|
|
12
|
-
this._subscriberCount++;
|
|
13
|
-
const sub = super.subscribe(observerOrNext);
|
|
14
|
-
return {
|
|
15
|
-
...sub,
|
|
16
|
-
unsubscribe: () => {
|
|
17
|
-
sub.unsubscribe();
|
|
18
|
-
this._subscriberCount--;
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
unsubscribe() {
|
|
23
|
-
this._subscriberCount--;
|
|
24
|
-
return super.unsubscribe();
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnhqcy51dGlscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS9zcmMvbGliL3V0aWxzL3J4anMudXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsdURBQXVEO0FBQ3ZELE9BQU8sRUFBRSxlQUFlLEVBQTBCLE1BQU0sTUFBTSxDQUFDO0FBRS9ELE1BQU0sT0FB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y5fc3Vic2NyaWJlckNvdW50LS07XG5cbiAgICByZXR1cm4gc3VwZXIudW5zdWJzY3JpYmUoKTtcbiAgfVxufVxuIl19
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject, Observer, Subscription } from 'rxjs';
|
|
2
|
-
export declare class BehaviorSubjectWithSubscriberCount<T> extends BehaviorSubject<T> {
|
|
3
|
-
private _subscriberCount;
|
|
4
|
-
get subscriberCount(): number;
|
|
5
|
-
subscribe(observerOrNext?: Partial<Observer<T>> | ((value: T) => void) | null, error?: ((error: any) => void) | null, complete?: (() => void) | null): Subscription;
|
|
6
|
-
subscribe(next?: ((value: T) => void) | null, error?: ((error: any) => void) | null, complete?: (() => void) | null): Subscription;
|
|
7
|
-
subscribe(observerOrNext?: Partial<Observer<T>> | ((value: T) => void) | undefined): Subscription;
|
|
8
|
-
unsubscribe(): void;
|
|
9
|
-
}
|