igniteui-angular 13.2.13 → 13.2.14
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/esm2020/lib/directives/drag-drop/drag-drop.directive.mjs +9 -5
- package/esm2020/lib/simple-combo/simple-combo.component.mjs +7 -2
- package/fesm2015/igniteui-angular.mjs +14 -5
- package/fesm2015/igniteui-angular.mjs.map +1 -1
- package/fesm2020/igniteui-angular.mjs +14 -5
- package/fesm2020/igniteui-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -15253,7 +15253,9 @@ class IgxDragDirective {
|
|
|
15253
15253
|
}
|
|
15254
15254
|
}
|
|
15255
15255
|
get ghostLeft() {
|
|
15256
|
-
|
|
15256
|
+
if (this.ghostElement) {
|
|
15257
|
+
return parseInt(this.ghostElement.style.left, 10) + this._ghostHostX;
|
|
15258
|
+
}
|
|
15257
15259
|
}
|
|
15258
15260
|
set ghostTop(pageY) {
|
|
15259
15261
|
if (this.ghostElement) {
|
|
@@ -15264,7 +15266,9 @@ class IgxDragDirective {
|
|
|
15264
15266
|
}
|
|
15265
15267
|
}
|
|
15266
15268
|
get ghostTop() {
|
|
15267
|
-
|
|
15269
|
+
if (this.ghostElement) {
|
|
15270
|
+
return parseInt(this.ghostElement.style.top, 10) + this._ghostHostY;
|
|
15271
|
+
}
|
|
15268
15272
|
}
|
|
15269
15273
|
get windowScrollTop() {
|
|
15270
15274
|
return document.documentElement.scrollTop || window.scrollY;
|
|
@@ -15827,7 +15831,7 @@ class IgxDragDirective {
|
|
|
15827
15831
|
const ghostMarginLeft = parseInt(document.defaultView.getComputedStyle(this.ghostElement)['margin-left'], 10);
|
|
15828
15832
|
const ghostMarginTop = parseInt(document.defaultView.getComputedStyle(this.ghostElement)['margin-top'], 10);
|
|
15829
15833
|
this.ghostElement.style.left = (this._ghostStartX - ghostMarginLeft + totalMovedX - this._ghostHostX) + 'px';
|
|
15830
|
-
this.ghostElement.style.top = (this._ghostStartY - ghostMarginTop + totalMovedY - this.
|
|
15834
|
+
this.ghostElement.style.top = (this._ghostStartY - ghostMarginTop + totalMovedY - this._ghostHostY) + 'px';
|
|
15831
15835
|
if (this.pointerEventsEnabled) {
|
|
15832
15836
|
// The ghostElement takes control for moving and dragging after it has been rendered.
|
|
15833
15837
|
if (this._pointerDownId !== null) {
|
|
@@ -16014,7 +16018,7 @@ class IgxDragDirective {
|
|
|
16014
16018
|
const elementHeight = this.ghost && this.ghostElement ? this.ghostElement.offsetHeight : this.element.nativeElement.offsetHeight;
|
|
16015
16019
|
const bottomBorder = (!this.scrollContainer ? window.innerHeight : containerBounds.bottom) +
|
|
16016
16020
|
this.windowScrollTop - this._scrollContainerThreshold - elementHeight;
|
|
16017
|
-
// Same for window scroll left
|
|
16021
|
+
// Same for window scroll left
|
|
16018
16022
|
const leftBorder = (!this.scrollContainer ? 0 : containerBounds.left) + this.windowScrollLeft + this._scrollContainerThreshold;
|
|
16019
16023
|
// Subtract the element width again because we position it from top left corner.
|
|
16020
16024
|
const elementWidth = this.ghost && this.ghostElement ? this.ghostElement.offsetWidth : this.element.nativeElement.offsetWidth;
|
|
@@ -37610,7 +37614,12 @@ class IgxSimpleComboComponent extends IgxComboBaseDirective {
|
|
|
37610
37614
|
}
|
|
37611
37615
|
return current === this.selection[0];
|
|
37612
37616
|
});
|
|
37613
|
-
this.
|
|
37617
|
+
if (!this.isRemote) {
|
|
37618
|
+
// navigate to item only if we have local data
|
|
37619
|
+
// as with remote data this will fiddle with igxFor's scroll handler
|
|
37620
|
+
// and will trigger another chunk load which will break the visualization
|
|
37621
|
+
this.dropdown.navigateItem(index);
|
|
37622
|
+
}
|
|
37614
37623
|
}
|
|
37615
37624
|
});
|
|
37616
37625
|
this.dropdown.opening.pipe(takeUntil(this.destroy$)).subscribe(() => {
|