@ts-core/angular 13.1.31 → 13.1.34
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 -1
- package/esm2020/component/cdk-table/CdkTableFilterableMapCollection.mjs +1 -1
- package/esm2020/component/cdk-table/CdkTablePaginableMapCollection.mjs +1 -1
- package/esm2020/directive/ScrollCheckDirective.mjs +18 -8
- package/fesm2015/ts-core-angular.mjs +17 -7
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +17 -7
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
//
|
|
@@ -2964,21 +2965,28 @@ class ScrollCheckDirective extends DestroyableContainer {
|
|
|
2964
2965
|
let value = this.scrollValue >= this.scrollLimit;
|
|
2965
2966
|
if (value !== this.isExceedLimit) {
|
|
2966
2967
|
this.isExceedLimit = value;
|
|
2967
|
-
this.limitExceed.emit(
|
|
2968
|
+
this.limitExceed.emit(value);
|
|
2968
2969
|
}
|
|
2969
2970
|
value = this.scrollValue + this.clientHeight + this.offset > this.scrollHeight;
|
|
2970
|
-
|
|
2971
|
+
this.bottom.next(value);
|
|
2972
|
+
/*
|
|
2973
|
+
if (value !== this.isBottom) {
|
|
2974
|
+
this.isBottom = value;
|
|
2971
2975
|
this.bottom.next(value);
|
|
2972
2976
|
}
|
|
2977
|
+
*/
|
|
2973
2978
|
value = this.scrollValue < this.offset;
|
|
2974
|
-
|
|
2979
|
+
this.top.next(value);
|
|
2980
|
+
/*
|
|
2981
|
+
if (value !== this.isTop) {
|
|
2982
|
+
this.isTop = value;
|
|
2975
2983
|
this.top.next(value);
|
|
2976
2984
|
}
|
|
2985
|
+
*/
|
|
2977
2986
|
};
|
|
2987
|
+
this.delay = DateUtil.MILLISECONDS_SECOND / 10;
|
|
2978
2988
|
this.element = element.nativeElement;
|
|
2979
|
-
fromEvent(this.element, 'scroll')
|
|
2980
|
-
.pipe(debounceTime(DateUtil.MILLISECONDS_SECOND / 10), takeUntil(this.destroyed))
|
|
2981
|
-
.subscribe(this.check);
|
|
2989
|
+
fromEvent(this.element, 'scroll').pipe(debounceTime(this.delay), takeUntil(this.destroyed)).subscribe(this.check);
|
|
2982
2990
|
}
|
|
2983
2991
|
//--------------------------------------------------------------------------
|
|
2984
2992
|
//
|
|
@@ -3016,7 +3024,7 @@ class ScrollCheckDirective extends DestroyableContainer {
|
|
|
3016
3024
|
}
|
|
3017
3025
|
}
|
|
3018
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 });
|
|
3019
|
-
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 });
|
|
3020
3028
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollCheckDirective, decorators: [{
|
|
3021
3029
|
type: Directive,
|
|
3022
3030
|
args: [{
|
|
@@ -3028,6 +3036,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
3028
3036
|
type: Output
|
|
3029
3037
|
}], limitExceed: [{
|
|
3030
3038
|
type: Output
|
|
3039
|
+
}], delay: [{
|
|
3040
|
+
type: Input
|
|
3031
3041
|
}], offset: [{
|
|
3032
3042
|
type: Input
|
|
3033
3043
|
}], scrollLimit: [{
|