primeng 16.9.5-lts → 16.9.6-lts
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/api/translation.d.ts +1 -0
- package/api/translationkeys.d.ts +2 -0
- package/colorpicker/colorpicker.d.ts +1 -0
- package/esm2022/api/primengconfig.mjs +3 -2
- package/esm2022/api/translation.mjs +1 -1
- package/esm2022/api/translationkeys.mjs +3 -1
- package/esm2022/colorpicker/colorpicker.mjs +7 -2
- package/esm2022/dialog/dialog.mjs +4 -2
- package/esm2022/table/table.mjs +23 -11
- package/esm2022/tree/tree.mjs +6 -7
- package/fesm2022/primeng-api.mjs +4 -1
- package/fesm2022/primeng-api.mjs.map +1 -1
- package/fesm2022/primeng-colorpicker.mjs +6 -1
- package/fesm2022/primeng-colorpicker.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +3 -1
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +22 -10
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +5 -6
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/package.json +273 -273
- package/table/table.d.ts +3 -1
@@ -3433,6 +3433,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImpor
|
|
3433
3433
|
}], ctorParameters: function () { return [{ type: Table }]; } });
|
3434
3434
|
class FrozenColumn {
|
3435
3435
|
el;
|
3436
|
+
zone;
|
3436
3437
|
get frozen() {
|
3437
3438
|
return this._frozen;
|
3438
3439
|
}
|
@@ -3441,13 +3442,16 @@ class FrozenColumn {
|
|
3441
3442
|
Promise.resolve(null).then(() => this.updateStickyPosition());
|
3442
3443
|
}
|
3443
3444
|
alignFrozen = 'left';
|
3444
|
-
constructor(el) {
|
3445
|
+
constructor(el, zone) {
|
3445
3446
|
this.el = el;
|
3447
|
+
this.zone = zone;
|
3446
3448
|
}
|
3447
3449
|
ngAfterViewInit() {
|
3448
|
-
|
3449
|
-
|
3450
|
-
|
3450
|
+
this.zone.runOutsideAngular(() => {
|
3451
|
+
setTimeout(() => {
|
3452
|
+
this.updateStickyPosition();
|
3453
|
+
}, 1000);
|
3454
|
+
});
|
3451
3455
|
}
|
3452
3456
|
_frozen = true;
|
3453
3457
|
updateStickyPosition() {
|
@@ -3478,7 +3482,7 @@ class FrozenColumn {
|
|
3478
3482
|
}
|
3479
3483
|
}
|
3480
3484
|
}
|
3481
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: FrozenColumn, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
3485
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: FrozenColumn, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
3482
3486
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0", type: FrozenColumn, selector: "[pFrozenColumn]", inputs: { frozen: "frozen", alignFrozen: "alignFrozen" }, host: { properties: { "class.p-frozen-column": "frozen" }, classAttribute: "p-element" }, ngImport: i0 });
|
3483
3487
|
}
|
3484
3488
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: FrozenColumn, decorators: [{
|
@@ -3490,7 +3494,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImpor
|
|
3490
3494
|
'[class.p-frozen-column]': 'frozen'
|
3491
3495
|
}
|
3492
3496
|
}]
|
3493
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { frozen: [{
|
3497
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { frozen: [{
|
3494
3498
|
type: Input
|
3495
3499
|
}], alignFrozen: [{
|
3496
3500
|
type: Input
|
@@ -5167,10 +5171,18 @@ class ReorderableRow {
|
|
5167
5171
|
}
|
5168
5172
|
}
|
5169
5173
|
onMouseDown(event) {
|
5170
|
-
|
5171
|
-
|
5172
|
-
|
5173
|
-
|
5174
|
+
const targetElement = event.target;
|
5175
|
+
const isHandleClicked = this.isHandleElement(targetElement);
|
5176
|
+
this.el.nativeElement.draggable = isHandleClicked;
|
5177
|
+
}
|
5178
|
+
isHandleElement(element) {
|
5179
|
+
if (element?.classList.contains('p-datatable-reorderablerow-handle')) {
|
5180
|
+
return true;
|
5181
|
+
}
|
5182
|
+
if (element?.parentElement && !['TD', 'TR'].includes(element?.parentElement?.tagName)) {
|
5183
|
+
return this.isHandleElement(element?.parentElement);
|
5184
|
+
}
|
5185
|
+
return false;
|
5174
5186
|
}
|
5175
5187
|
onDragStart(event) {
|
5176
5188
|
this.dt.onRowDragStart(event, this.index);
|