@ts-core/angular 13.1.32 → 13.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/directive/ScrollCheckDirective.d.ts +2 -1
- package/esm2020/directive/ScrollCheckDirective.mjs +13 -5
- package/fesm2015/ts-core-angular.mjs +12 -4
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +12 -4
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2954,6 +2954,7 @@ class ScrollCheckDirective extends DestroyableContainer {
|
|
|
2954
2954
|
this.isTop = false;
|
|
2955
2955
|
this.isBottom = false;
|
|
2956
2956
|
this.isExceedLimit = false;
|
|
2957
|
+
this.delay = DateUtil.MILLISECONDS_SECOND / 10;
|
|
2957
2958
|
this.offset = 50;
|
|
2958
2959
|
//--------------------------------------------------------------------------
|
|
2959
2960
|
//
|
|
@@ -2967,20 +2968,25 @@ class ScrollCheckDirective extends DestroyableContainer {
|
|
|
2967
2968
|
this.limitExceed.emit(value);
|
|
2968
2969
|
}
|
|
2969
2970
|
value = this.scrollValue + this.clientHeight + this.offset > this.scrollHeight;
|
|
2971
|
+
this.bottom.next(value);
|
|
2972
|
+
/*
|
|
2970
2973
|
if (value !== this.isBottom) {
|
|
2971
2974
|
this.isBottom = value;
|
|
2972
2975
|
this.bottom.next(value);
|
|
2973
2976
|
}
|
|
2977
|
+
*/
|
|
2974
2978
|
value = this.scrollValue < this.offset;
|
|
2979
|
+
this.top.next(value);
|
|
2980
|
+
/*
|
|
2975
2981
|
if (value !== this.isTop) {
|
|
2976
2982
|
this.isTop = value;
|
|
2977
2983
|
this.top.next(value);
|
|
2978
2984
|
}
|
|
2985
|
+
*/
|
|
2979
2986
|
};
|
|
2987
|
+
this.delay = DateUtil.MILLISECONDS_SECOND / 10;
|
|
2980
2988
|
this.element = element.nativeElement;
|
|
2981
|
-
fromEvent(this.element, 'scroll')
|
|
2982
|
-
.pipe(debounceTime(DateUtil.MILLISECONDS_SECOND / 10), takeUntil(this.destroyed))
|
|
2983
|
-
.subscribe(this.check);
|
|
2989
|
+
fromEvent(this.element, 'scroll').pipe(debounceTime(this.delay), takeUntil(this.destroyed)).subscribe(this.check);
|
|
2984
2990
|
}
|
|
2985
2991
|
//--------------------------------------------------------------------------
|
|
2986
2992
|
//
|
|
@@ -3018,7 +3024,7 @@ class ScrollCheckDirective extends DestroyableContainer {
|
|
|
3018
3024
|
}
|
|
3019
3025
|
}
|
|
3020
3026
|
ScrollCheckDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollCheckDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3021
|
-
ScrollCheckDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ScrollCheckDirective, selector: "[vi-scroll-check]", inputs: { offset: "offset", scrollLimit: ["vi-scroll-check", "scrollLimit"] }, outputs: { top: "top", bottom: "bottom", limitExceed: "limitExceed" }, usesInheritance: true, ngImport: i0 });
|
|
3027
|
+
ScrollCheckDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ScrollCheckDirective, selector: "[vi-scroll-check]", inputs: { delay: "delay", offset: "offset", scrollLimit: ["vi-scroll-check", "scrollLimit"] }, outputs: { top: "top", bottom: "bottom", limitExceed: "limitExceed" }, usesInheritance: true, ngImport: i0 });
|
|
3022
3028
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollCheckDirective, decorators: [{
|
|
3023
3029
|
type: Directive,
|
|
3024
3030
|
args: [{
|
|
@@ -3030,6 +3036,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
3030
3036
|
type: Output
|
|
3031
3037
|
}], limitExceed: [{
|
|
3032
3038
|
type: Output
|
|
3039
|
+
}], delay: [{
|
|
3040
|
+
type: Input
|
|
3033
3041
|
}], offset: [{
|
|
3034
3042
|
type: Input
|
|
3035
3043
|
}], scrollLimit: [{
|