@ts-core/angular 15.0.56 → 15.0.58
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/bottomSheet/BottomSheetService.d.ts +2 -0
- package/directive/AutoScrollBottomDirective.d.ts +3 -2
- package/directive/ScrollDirective.d.ts +1 -1
- package/esm2020/bottomSheet/BottomSheetService.mjs +1 -1
- package/esm2020/directive/AutoScrollBottomDirective.mjs +10 -6
- package/esm2020/directive/ScrollDirective.mjs +4 -4
- 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
|
@@ -1448,14 +1448,14 @@ class ScrollDirective extends Destroyable {
|
|
|
1448
1448
|
//
|
|
1449
1449
|
// --------------------------------------------------------------------------
|
|
1450
1450
|
initialize() {
|
|
1451
|
-
if (this.scrollValue) {
|
|
1451
|
+
if (!_.isNil(this.scrollValue)) {
|
|
1452
1452
|
this.scrollTo(this.scrollValue);
|
|
1453
1453
|
}
|
|
1454
1454
|
this.isInitialized = true;
|
|
1455
1455
|
}
|
|
1456
|
-
scrollTo(value) {
|
|
1456
|
+
scrollTo(value, behavior) {
|
|
1457
1457
|
this._scrollValue = value;
|
|
1458
|
-
this.element.
|
|
1458
|
+
this.element.scroll({ top: value, behavior });
|
|
1459
1459
|
}
|
|
1460
1460
|
// --------------------------------------------------------------------------
|
|
1461
1461
|
//
|
|
@@ -1614,6 +1614,7 @@ class AutoScrollBottomDirective extends InfiniteScrollDirective {
|
|
|
1614
1614
|
// Properties
|
|
1615
1615
|
//
|
|
1616
1616
|
// --------------------------------------------------------------------------
|
|
1617
|
+
this.behavior = 'auto';
|
|
1617
1618
|
this.triggerChanged = new EventEmitter();
|
|
1618
1619
|
this.triggerDelta = 0;
|
|
1619
1620
|
this.isScrollLocked = false;
|
|
@@ -1628,8 +1629,8 @@ class AutoScrollBottomDirective extends InfiniteScrollDirective {
|
|
|
1628
1629
|
this.scrollRemain();
|
|
1629
1630
|
}
|
|
1630
1631
|
else if (this.triggerDelta > 0) {
|
|
1632
|
+
this.triggerChanged.emit(this.triggerDelta);
|
|
1631
1633
|
this.triggerDelta = 0;
|
|
1632
|
-
this.triggerChanged.emit();
|
|
1633
1634
|
}
|
|
1634
1635
|
};
|
|
1635
1636
|
}
|
|
@@ -1639,7 +1640,7 @@ class AutoScrollBottomDirective extends InfiniteScrollDirective {
|
|
|
1639
1640
|
//
|
|
1640
1641
|
// --------------------------------------------------------------------------
|
|
1641
1642
|
initialize() {
|
|
1642
|
-
if (this.
|
|
1643
|
+
if (!_.isNil(this.scrollHeight)) {
|
|
1643
1644
|
this._scrollValue = this.scrollHeight;
|
|
1644
1645
|
}
|
|
1645
1646
|
super.initialize();
|
|
@@ -1676,7 +1677,7 @@ class AutoScrollBottomDirective extends InfiniteScrollDirective {
|
|
|
1676
1677
|
this.triggerTimer = setTimeout(this.checkTrigger, InfiniteScrollDirective.INITIALIZATION_DELAY);
|
|
1677
1678
|
}
|
|
1678
1679
|
scrollBottom() {
|
|
1679
|
-
this.scrollTo(this.scrollHeight);
|
|
1680
|
+
this.scrollTo(this.scrollHeight, this.behavior);
|
|
1680
1681
|
}
|
|
1681
1682
|
destroy() {
|
|
1682
1683
|
if (this.isDestroyed) {
|
|
@@ -1708,13 +1709,15 @@ class AutoScrollBottomDirective extends InfiniteScrollDirective {
|
|
|
1708
1709
|
}
|
|
1709
1710
|
}
|
|
1710
1711
|
AutoScrollBottomDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AutoScrollBottomDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
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 });
|
|
1712
|
+
AutoScrollBottomDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AutoScrollBottomDirective, selector: "[vi-auto-scroll-bottom]", inputs: { behavior: "behavior", trigger: ["vi-auto-scroll-bottom", "trigger"] }, outputs: { triggerChanged: "triggerChanged" }, usesInheritance: true, ngImport: i0 });
|
|
1712
1713
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AutoScrollBottomDirective, decorators: [{
|
|
1713
1714
|
type: Directive,
|
|
1714
1715
|
args: [{
|
|
1715
1716
|
selector: '[vi-auto-scroll-bottom]'
|
|
1716
1717
|
}]
|
|
1717
|
-
}], propDecorators: {
|
|
1718
|
+
}], propDecorators: { behavior: [{
|
|
1719
|
+
type: Input
|
|
1720
|
+
}], triggerChanged: [{
|
|
1718
1721
|
type: Output
|
|
1719
1722
|
}], trigger: [{
|
|
1720
1723
|
type: Input,
|