@ts-core/angular 13.1.32 → 13.1.35
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/component/cdk-table/CdkTableFilterableMapCollection.d.ts +2 -2
- package/component/cdk-table/CdkTablePaginableMapCollection.d.ts +1 -1
- package/directive/ScrollCheckDirective.d.ts +2 -3
- package/esm2020/component/cdk-table/CdkTableFilterableMapCollection.mjs +1 -1
- package/esm2020/component/cdk-table/CdkTablePaginableMapCollection.mjs +1 -1
- package/esm2020/directive/ScrollCheckDirective.mjs +13 -17
- package/fesm2015/ts-core-angular.mjs +11 -16
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +11 -16
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2951,9 +2951,8 @@ class ScrollCheckDirective extends DestroyableContainer {
|
|
|
2951
2951
|
this.top = new EventEmitter();
|
|
2952
2952
|
this.bottom = new EventEmitter();
|
|
2953
2953
|
this.limitExceed = new EventEmitter();
|
|
2954
|
-
this.isTop = false;
|
|
2955
|
-
this.isBottom = false;
|
|
2956
2954
|
this.isExceedLimit = false;
|
|
2955
|
+
this.delay = DateUtil.MILLISECONDS_SECOND / 10;
|
|
2957
2956
|
this.offset = 50;
|
|
2958
2957
|
//--------------------------------------------------------------------------
|
|
2959
2958
|
//
|
|
@@ -2966,21 +2965,15 @@ class ScrollCheckDirective extends DestroyableContainer {
|
|
|
2966
2965
|
this.isExceedLimit = value;
|
|
2967
2966
|
this.limitExceed.emit(value);
|
|
2968
2967
|
}
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
value = this.scrollValue < this.offset;
|
|
2975
|
-
if (value !== this.isTop) {
|
|
2976
|
-
this.isTop = value;
|
|
2977
|
-
this.top.next(value);
|
|
2978
|
-
}
|
|
2968
|
+
let offset = !_.isNaN(this.offset) ? this.offset : 0;
|
|
2969
|
+
value = this.scrollValue + this.clientHeight + offset >= this.scrollHeight;
|
|
2970
|
+
this.bottom.next(value);
|
|
2971
|
+
value = this.scrollValue <= offset;
|
|
2972
|
+
this.top.next(value);
|
|
2979
2973
|
};
|
|
2974
|
+
this.delay = DateUtil.MILLISECONDS_SECOND / 10;
|
|
2980
2975
|
this.element = element.nativeElement;
|
|
2981
|
-
fromEvent(this.element, 'scroll')
|
|
2982
|
-
.pipe(debounceTime(DateUtil.MILLISECONDS_SECOND / 10), takeUntil(this.destroyed))
|
|
2983
|
-
.subscribe(this.check);
|
|
2976
|
+
fromEvent(this.element, 'scroll').pipe(debounceTime(this.delay), takeUntil(this.destroyed)).subscribe(this.check);
|
|
2984
2977
|
}
|
|
2985
2978
|
//--------------------------------------------------------------------------
|
|
2986
2979
|
//
|
|
@@ -3018,7 +3011,7 @@ class ScrollCheckDirective extends DestroyableContainer {
|
|
|
3018
3011
|
}
|
|
3019
3012
|
}
|
|
3020
3013
|
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 });
|
|
3014
|
+
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
3015
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollCheckDirective, decorators: [{
|
|
3023
3016
|
type: Directive,
|
|
3024
3017
|
args: [{
|
|
@@ -3030,6 +3023,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
3030
3023
|
type: Output
|
|
3031
3024
|
}], limitExceed: [{
|
|
3032
3025
|
type: Output
|
|
3026
|
+
}], delay: [{
|
|
3027
|
+
type: Input
|
|
3033
3028
|
}], offset: [{
|
|
3034
3029
|
type: Input
|
|
3035
3030
|
}], scrollLimit: [{
|