@ts-core/angular 15.0.54 → 15.0.56
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/AutoScrollBottomDirective.d.ts +3 -2
- package/esm2020/directive/AutoScrollBottomDirective.mjs +12 -9
- package/fesm2015/ts-core-angular.mjs +11 -8
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +11 -8
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1635,7 +1635,7 @@ class AutoScrollBottomDirective extends InfiniteScrollDirective {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
// --------------------------------------------------------------------------
|
|
1637
1637
|
//
|
|
1638
|
-
//
|
|
1638
|
+
// Protected Methods
|
|
1639
1639
|
//
|
|
1640
1640
|
// --------------------------------------------------------------------------
|
|
1641
1641
|
initialize() {
|
|
@@ -1648,9 +1648,6 @@ class AutoScrollBottomDirective extends InfiniteScrollDirective {
|
|
|
1648
1648
|
this.isNeedRemainScroll = false;
|
|
1649
1649
|
this.scrollTo(this.scrollHeight - this.lastScrollHeight);
|
|
1650
1650
|
}
|
|
1651
|
-
scrollBottom() {
|
|
1652
|
-
this.scrollTo(this.scrollHeight);
|
|
1653
|
-
}
|
|
1654
1651
|
// --------------------------------------------------------------------------
|
|
1655
1652
|
//
|
|
1656
1653
|
// Event Handlers
|
|
@@ -1674,6 +1671,13 @@ class AutoScrollBottomDirective extends InfiniteScrollDirective {
|
|
|
1674
1671
|
// Public Methods
|
|
1675
1672
|
//
|
|
1676
1673
|
// --------------------------------------------------------------------------
|
|
1674
|
+
scrollCheck() {
|
|
1675
|
+
clearTimeout(this.triggerTimer);
|
|
1676
|
+
this.triggerTimer = setTimeout(this.checkTrigger, InfiniteScrollDirective.INITIALIZATION_DELAY);
|
|
1677
|
+
}
|
|
1678
|
+
scrollBottom() {
|
|
1679
|
+
this.scrollTo(this.scrollHeight);
|
|
1680
|
+
}
|
|
1677
1681
|
destroy() {
|
|
1678
1682
|
if (this.isDestroyed) {
|
|
1679
1683
|
return;
|
|
@@ -1700,12 +1704,11 @@ class AutoScrollBottomDirective extends InfiniteScrollDirective {
|
|
|
1700
1704
|
return;
|
|
1701
1705
|
}
|
|
1702
1706
|
this.isScrollLocked = true;
|
|
1703
|
-
|
|
1704
|
-
this.triggerTimer = setTimeout(this.checkTrigger, InfiniteScrollDirective.INITIALIZATION_DELAY);
|
|
1707
|
+
this.scrollCheck();
|
|
1705
1708
|
}
|
|
1706
1709
|
}
|
|
1707
1710
|
AutoScrollBottomDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AutoScrollBottomDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1708
|
-
AutoScrollBottomDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AutoScrollBottomDirective, selector: "[vi-auto-scroll-bottom]", inputs: { trigger: ["vi-auto-bottom
|
|
1711
|
+
AutoScrollBottomDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AutoScrollBottomDirective, selector: "[vi-auto-scroll-bottom]", inputs: { trigger: ["vi-auto-scroll-bottom", "trigger"] }, outputs: { triggerChanged: "triggerChanged" }, usesInheritance: true, ngImport: i0 });
|
|
1709
1712
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AutoScrollBottomDirective, decorators: [{
|
|
1710
1713
|
type: Directive,
|
|
1711
1714
|
args: [{
|
|
@@ -1715,7 +1718,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1715
1718
|
type: Output
|
|
1716
1719
|
}], trigger: [{
|
|
1717
1720
|
type: Input,
|
|
1718
|
-
args: ['vi-auto-bottom
|
|
1721
|
+
args: ['vi-auto-scroll-bottom']
|
|
1719
1722
|
}] } });
|
|
1720
1723
|
|
|
1721
1724
|
class ClickToCopyDirective extends Destroyable {
|