@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
|
@@ -3087,8 +3087,8 @@ class TableColumnResizeService {
|
|
|
3087
3087
|
if (!columnWidth || !resizedElement) {
|
|
3088
3088
|
return;
|
|
3089
3089
|
}
|
|
3090
|
-
if (diffX < 0 && columnWidth + diffX <
|
|
3091
|
-
diffX =
|
|
3090
|
+
if (diffX < 0 && columnWidth + diffX < this._tableRef.minimumColumnWidth) {
|
|
3091
|
+
diffX = this._tableRef.minimumColumnWidth - columnWidth;
|
|
3092
3092
|
}
|
|
3093
3093
|
if (!this.fixedWidth) {
|
|
3094
3094
|
for (const [columnName, cells] of this._columnsCellMap.entries()) {
|
|
@@ -3458,7 +3458,7 @@ class PlatformTableCellResizableDirective extends TableCellDirective {
|
|
|
3458
3458
|
ngOnInit() {
|
|
3459
3459
|
this._zone.runOutsideAngular(() => {
|
|
3460
3460
|
fromEvent(this.elementRef.nativeElement, 'mousemove')
|
|
3461
|
-
.pipe(filter(() => { var _a; return ((_a = this._tableColumnResizeService) === null || _a === void 0 ? void 0 : _a.resizeInProgress) !== true; }), map((event) => this._getResizer(event) || { resizerPosition: 0, resizedColumn: this.columnName }), distinctUntilChanged((prev, curr) => equal(prev, curr)), takeUntil(this._destroy$))
|
|
3461
|
+
.pipe(filter(() => { var _a; return ((_a = this._tableColumnResizeService) === null || _a === void 0 ? void 0 : _a.resizeInProgress) !== true; }), debounceTime(5), map((event) => this._getResizer(event) || { resizerPosition: 0, resizedColumn: this.columnName }), distinctUntilChanged((prev, curr) => equal(prev, curr)), takeUntil(this._destroy$))
|
|
3462
3462
|
.subscribe((data) => {
|
|
3463
3463
|
this._tableColumnResizeService.setInitialResizerPosition(data.resizerPosition, data.resizedColumn);
|
|
3464
3464
|
});
|
|
@@ -3486,30 +3486,36 @@ class PlatformTableCellResizableDirective extends TableCellDirective {
|
|
|
3486
3486
|
_getResizer(event) {
|
|
3487
3487
|
const el = this.elementRef.nativeElement;
|
|
3488
3488
|
const elPosition = el.getBoundingClientRect();
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3489
|
+
// check if mouse is within 5px of cell border
|
|
3490
|
+
if (event.clientX > elPosition.x + elPosition.width - 5 || event.clientX < elPosition.x + 5) {
|
|
3491
|
+
let resizerPosition;
|
|
3492
|
+
let resizedColumn;
|
|
3493
|
+
const pointerOnLeft = this._isRtl
|
|
3494
|
+
? elPosition.right - event.clientX < TABLE_CELL_RESIZABLE_THRESHOLD_PX
|
|
3495
|
+
: event.clientX - elPosition.left < TABLE_CELL_RESIZABLE_THRESHOLD_PX;
|
|
3496
|
+
if (pointerOnLeft && this._resizableSide !== 'end') {
|
|
3497
|
+
resizerPosition = this._isRtl
|
|
3498
|
+
? el.parentElement.offsetWidth - (el.offsetLeft + el.offsetWidth)
|
|
3499
|
+
: el.offsetLeft;
|
|
3500
|
+
resizedColumn = this._tableColumnResizeService.getPreviousColumnName(this.columnName);
|
|
3501
|
+
}
|
|
3502
|
+
const pointerOnRight = this._isRtl
|
|
3503
|
+
? event.clientX - elPosition.left < TABLE_CELL_RESIZABLE_THRESHOLD_PX
|
|
3504
|
+
: elPosition.right - event.clientX < TABLE_CELL_RESIZABLE_THRESHOLD_PX;
|
|
3505
|
+
if (pointerOnRight && this._resizableSide !== 'start') {
|
|
3506
|
+
resizerPosition = this._isRtl
|
|
3507
|
+
? el.parentElement.offsetWidth - el.offsetLeft
|
|
3508
|
+
: el.offsetLeft + el.offsetWidth;
|
|
3509
|
+
resizedColumn = this.columnName;
|
|
3510
|
+
}
|
|
3511
|
+
if (!resizedColumn) {
|
|
3512
|
+
return null;
|
|
3513
|
+
}
|
|
3514
|
+
return { resizerPosition: resizerPosition, resizedColumn };
|
|
3508
3515
|
}
|
|
3509
|
-
|
|
3516
|
+
else {
|
|
3510
3517
|
return null;
|
|
3511
3518
|
}
|
|
3512
|
-
return { resizerPosition: resizerPosition, resizedColumn };
|
|
3513
3519
|
}
|
|
3514
3520
|
}
|
|
3515
3521
|
PlatformTableCellResizableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PlatformTableCellResizableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|