igniteui-angular 17.0.10 → 17.0.11
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/esm2022/lib/directives/drag-drop/drag-drop.directive.mjs +19 -1
- package/esm2022/lib/grids/grid-base.directive.mjs +2 -2
- package/fesm2022/igniteui-angular.mjs +19 -1
- package/fesm2022/igniteui-angular.mjs.map +1 -1
- package/lib/directives/drag-drop/drag-drop.directive.d.ts +2 -2
- package/package.json +1 -1
|
@@ -10836,6 +10836,24 @@ class IgxDragDirective {
|
|
|
10836
10836
|
if (!this._clicked) {
|
|
10837
10837
|
return;
|
|
10838
10838
|
}
|
|
10839
|
+
// When the base element is moved to previous index, angular reattaches the ghost template as a sibling by default.
|
|
10840
|
+
// This is the defaut place for the EmbededViewRef when recreated.
|
|
10841
|
+
// That's why we need to move it to the proper place and set pointer capture again.
|
|
10842
|
+
if (this._pointerDownId && this.ghostElement && this._dynamicGhostRef && !this._dynamicGhostRef.destroyed) {
|
|
10843
|
+
let ghostReattached = false;
|
|
10844
|
+
if (this.ghostHost && !Array.from(this.ghostHost.children).includes(this.ghostElement)) {
|
|
10845
|
+
ghostReattached = true;
|
|
10846
|
+
this.ghostHost.appendChild(this.ghostElement);
|
|
10847
|
+
}
|
|
10848
|
+
else if (!this.ghostHost && !Array.from(document.body.children).includes(this.ghostElement)) {
|
|
10849
|
+
ghostReattached = true;
|
|
10850
|
+
document.body.appendChild(this.ghostElement);
|
|
10851
|
+
}
|
|
10852
|
+
if (ghostReattached) {
|
|
10853
|
+
this.ghostElement.setPointerCapture(this._pointerDownId);
|
|
10854
|
+
return;
|
|
10855
|
+
}
|
|
10856
|
+
}
|
|
10839
10857
|
const eventArgs = {
|
|
10840
10858
|
originalEvent: event,
|
|
10841
10859
|
owner: this,
|
|
@@ -65489,7 +65507,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
65489
65507
|
if (this.isPercentWidth) {
|
|
65490
65508
|
/* width in %*/
|
|
65491
65509
|
const computed = this.document.defaultView.getComputedStyle(this.nativeElement).getPropertyValue('width');
|
|
65492
|
-
width = computed.indexOf('%') === -1 ?
|
|
65510
|
+
width = computed.indexOf('%') === -1 ? parseFloat(computed) : null;
|
|
65493
65511
|
}
|
|
65494
65512
|
else {
|
|
65495
65513
|
width = parseInt(this.width, 10);
|