novo-elements 7.11.0-next.2 → 7.11.0
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/src/elements/data-table/cell-headers/data-table-header-cell.component.mjs +10 -7
- package/esm2020/src/elements/data-table/interfaces.mjs +1 -1
- package/fesm2015/novo-elements.mjs +9 -6
- package/fesm2015/novo-elements.mjs.map +1 -1
- package/fesm2020/novo-elements.mjs +9 -6
- package/fesm2020/novo-elements.mjs.map +1 -1
- package/package.json +1 -1
- package/src/elements/data-table/cell-headers/data-table-header-cell.component.d.ts +1 -0
- package/src/elements/data-table/interfaces.d.ts +4 -0
|
@@ -38565,12 +38565,7 @@ class NovoDataTableCellHeader {
|
|
|
38565
38565
|
if (width < minimumWidth) {
|
|
38566
38566
|
width = minimumWidth;
|
|
38567
38567
|
}
|
|
38568
|
-
this.
|
|
38569
|
-
this.renderer.setStyle(this.elementRef.nativeElement, 'min-width', `${this._column.width}px`);
|
|
38570
|
-
this.renderer.setStyle(this.elementRef.nativeElement, 'max-width', `${this._column.width}px`);
|
|
38571
|
-
this.renderer.setStyle(this.elementRef.nativeElement, 'width', `${this._column.width}px`);
|
|
38572
|
-
this.changeDetectorRef.markForCheck();
|
|
38573
|
-
this.resized.next(this._column);
|
|
38568
|
+
this.setWidth(width);
|
|
38574
38569
|
});
|
|
38575
38570
|
const mouseUpSubscription = fromEvent(window.document, 'mouseup').subscribe(() => {
|
|
38576
38571
|
mouseUpSubscription.unsubscribe();
|
|
@@ -38580,6 +38575,14 @@ class NovoDataTableCellHeader {
|
|
|
38580
38575
|
this.subscriptions.push(mouseMoveSubscription);
|
|
38581
38576
|
this.subscriptions.push(mouseUpSubscription);
|
|
38582
38577
|
}
|
|
38578
|
+
setWidth(width) {
|
|
38579
|
+
this._column.width = width;
|
|
38580
|
+
this.renderer.setStyle(this.elementRef.nativeElement, 'min-width', `${width}px`);
|
|
38581
|
+
this.renderer.setStyle(this.elementRef.nativeElement, 'max-width', `${width}px`);
|
|
38582
|
+
this.renderer.setStyle(this.elementRef.nativeElement, 'width', `${width}px`);
|
|
38583
|
+
this.changeDetectorRef.markForCheck();
|
|
38584
|
+
this.resized.next(this._column);
|
|
38585
|
+
}
|
|
38583
38586
|
toggleCustomRange(event, value) {
|
|
38584
38587
|
Helpers.swallowEvent(event);
|
|
38585
38588
|
this.showCustomRange = value;
|