@fundamental-ngx/platform 0.43.40 → 0.43.42
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/approval-flow/approval-flow-add-node/approval-flow-add-node.component.mjs +1 -1
- package/esm2020/form/form-generator/form-generator/form-generator.component.mjs +1 -1
- package/esm2020/list/free-content-list-item/free-content-list-item.component.mjs +8 -6
- package/esm2020/list/list.component.mjs +1 -1
- package/esm2020/smart-filter-bar/components/smart-filter-bar-conditions-dialog/smart-filter-bar-conditions-dialog.component.mjs +1 -1
- package/esm2020/smart-filter-bar/components/smart-filter-bar-settings-dialog/smart-filter-bar-settings-dialog.component.mjs +1 -1
- package/esm2020/table/components/table-cell-header-popover/table-cell-header-popover.component.mjs +3 -3
- package/esm2020/table/components/table-row/table-row.component.mjs +1 -1
- package/esm2020/table/table.component.mjs +9 -5
- package/esm2020/table-helpers/directives/table-cell-resizable.directive.mjs +30 -24
- package/esm2020/table-helpers/services/table-column-resize.service.mjs +3 -4
- package/esm2020/table-helpers/table.mjs +1 -1
- package/esm2020/upload-collection/upload-collection/upload-collection.component.mjs +1 -1
- package/esm2020/value-help-dialog/value-help-dialog/value-help-dialog.component.mjs +1 -1
- package/esm2020/variant-management/components/manage-variants-dialog/manage-variants-dialog.component.mjs +1 -1
- package/fesm2015/fundamental-ngx-platform-approval-flow.mjs +1 -1
- package/fesm2015/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-form.mjs +1 -1
- package/fesm2015/fundamental-ngx-platform-form.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-list.mjs +7 -5
- package/fesm2015/fundamental-ngx-platform-list.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-smart-filter-bar.mjs +2 -2
- package/fesm2015/fundamental-ngx-platform-smart-filter-bar.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-table-helpers.mjs +30 -24
- package/fesm2015/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-table.mjs +11 -7
- package/fesm2015/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-upload-collection.mjs +1 -1
- package/fesm2015/fundamental-ngx-platform-upload-collection.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-value-help-dialog.mjs +1 -1
- package/fesm2015/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-variant-management.mjs +1 -1
- package/fesm2015/fundamental-ngx-platform-variant-management.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-approval-flow.mjs +1 -1
- package/fesm2020/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-form.mjs +1 -1
- package/fesm2020/fundamental-ngx-platform-form.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-list.mjs +7 -5
- package/fesm2020/fundamental-ngx-platform-list.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-smart-filter-bar.mjs +2 -2
- package/fesm2020/fundamental-ngx-platform-smart-filter-bar.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-table-helpers.mjs +30 -24
- package/fesm2020/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-table.mjs +11 -7
- package/fesm2020/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-upload-collection.mjs +1 -1
- package/fesm2020/fundamental-ngx-platform-upload-collection.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-value-help-dialog.mjs +1 -1
- package/fesm2020/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-variant-management.mjs +1 -1
- package/fesm2020/fundamental-ngx-platform-variant-management.mjs.map +1 -1
- package/fundamental-ngx-platform-v0.43.42.tgz +0 -0
- package/list/free-content-list-item/free-content-list-item.component.d.ts +3 -1
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/table/table.component.d.ts +3 -1
- package/table-helpers/table.d.ts +1 -0
- package/fundamental-ngx-platform-v0.43.40.tgz +0 -0
|
@@ -3085,8 +3085,8 @@ class TableColumnResizeService {
|
|
|
3085
3085
|
if (!columnWidth || !resizedElement) {
|
|
3086
3086
|
return;
|
|
3087
3087
|
}
|
|
3088
|
-
if (diffX < 0 && columnWidth + diffX <
|
|
3089
|
-
diffX =
|
|
3088
|
+
if (diffX < 0 && columnWidth + diffX < this._tableRef.minimumColumnWidth) {
|
|
3089
|
+
diffX = this._tableRef.minimumColumnWidth - columnWidth;
|
|
3090
3090
|
}
|
|
3091
3091
|
if (!this.fixedWidth) {
|
|
3092
3092
|
for (const [columnName, cells] of this._columnsCellMap.entries()) {
|
|
@@ -3445,7 +3445,7 @@ class PlatformTableCellResizableDirective extends TableCellDirective {
|
|
|
3445
3445
|
ngOnInit() {
|
|
3446
3446
|
this._zone.runOutsideAngular(() => {
|
|
3447
3447
|
fromEvent(this.elementRef.nativeElement, 'mousemove')
|
|
3448
|
-
.pipe(filter(() => this._tableColumnResizeService?.resizeInProgress !== true), map((event) => this._getResizer(event) || { resizerPosition: 0, resizedColumn: this.columnName }), distinctUntilChanged((prev, curr) => equal(prev, curr)), takeUntil(this._destroy$))
|
|
3448
|
+
.pipe(filter(() => this._tableColumnResizeService?.resizeInProgress !== true), debounceTime(5), map((event) => this._getResizer(event) || { resizerPosition: 0, resizedColumn: this.columnName }), distinctUntilChanged((prev, curr) => equal(prev, curr)), takeUntil(this._destroy$))
|
|
3449
3449
|
.subscribe((data) => {
|
|
3450
3450
|
this._tableColumnResizeService.setInitialResizerPosition(data.resizerPosition, data.resizedColumn);
|
|
3451
3451
|
});
|
|
@@ -3471,30 +3471,36 @@ class PlatformTableCellResizableDirective extends TableCellDirective {
|
|
|
3471
3471
|
_getResizer(event) {
|
|
3472
3472
|
const el = this.elementRef.nativeElement;
|
|
3473
3473
|
const elPosition = el.getBoundingClientRect();
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3474
|
+
// check if mouse is within 5px of cell border
|
|
3475
|
+
if (event.clientX > elPosition.x + elPosition.width - 5 || event.clientX < elPosition.x + 5) {
|
|
3476
|
+
let resizerPosition;
|
|
3477
|
+
let resizedColumn;
|
|
3478
|
+
const pointerOnLeft = this._isRtl
|
|
3479
|
+
? elPosition.right - event.clientX < TABLE_CELL_RESIZABLE_THRESHOLD_PX
|
|
3480
|
+
: event.clientX - elPosition.left < TABLE_CELL_RESIZABLE_THRESHOLD_PX;
|
|
3481
|
+
if (pointerOnLeft && this._resizableSide !== 'end') {
|
|
3482
|
+
resizerPosition = this._isRtl
|
|
3483
|
+
? el.parentElement.offsetWidth - (el.offsetLeft + el.offsetWidth)
|
|
3484
|
+
: el.offsetLeft;
|
|
3485
|
+
resizedColumn = this._tableColumnResizeService.getPreviousColumnName(this.columnName);
|
|
3486
|
+
}
|
|
3487
|
+
const pointerOnRight = this._isRtl
|
|
3488
|
+
? event.clientX - elPosition.left < TABLE_CELL_RESIZABLE_THRESHOLD_PX
|
|
3489
|
+
: elPosition.right - event.clientX < TABLE_CELL_RESIZABLE_THRESHOLD_PX;
|
|
3490
|
+
if (pointerOnRight && this._resizableSide !== 'start') {
|
|
3491
|
+
resizerPosition = this._isRtl
|
|
3492
|
+
? el.parentElement.offsetWidth - el.offsetLeft
|
|
3493
|
+
: el.offsetLeft + el.offsetWidth;
|
|
3494
|
+
resizedColumn = this.columnName;
|
|
3495
|
+
}
|
|
3496
|
+
if (!resizedColumn) {
|
|
3497
|
+
return null;
|
|
3498
|
+
}
|
|
3499
|
+
return { resizerPosition: resizerPosition, resizedColumn };
|
|
3493
3500
|
}
|
|
3494
|
-
|
|
3501
|
+
else {
|
|
3495
3502
|
return null;
|
|
3496
3503
|
}
|
|
3497
|
-
return { resizerPosition: resizerPosition, resizedColumn };
|
|
3498
3504
|
}
|
|
3499
3505
|
}
|
|
3500
3506
|
PlatformTableCellResizableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PlatformTableCellResizableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|