@fundamental-ngx/platform 0.43.41 → 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.
Files changed (58) hide show
  1. package/esm2020/approval-flow/approval-flow-add-node/approval-flow-add-node.component.mjs +1 -1
  2. package/esm2020/form/form-generator/form-generator/form-generator.component.mjs +1 -1
  3. package/esm2020/list/free-content-list-item/free-content-list-item.component.mjs +8 -6
  4. package/esm2020/list/list.component.mjs +1 -1
  5. package/esm2020/smart-filter-bar/components/smart-filter-bar-conditions-dialog/smart-filter-bar-conditions-dialog.component.mjs +1 -1
  6. package/esm2020/smart-filter-bar/components/smart-filter-bar-settings-dialog/smart-filter-bar-settings-dialog.component.mjs +1 -1
  7. package/esm2020/table/components/table-cell-header-popover/table-cell-header-popover.component.mjs +3 -3
  8. package/esm2020/table/components/table-row/table-row.component.mjs +1 -1
  9. package/esm2020/table/table.component.mjs +9 -5
  10. package/esm2020/table-helpers/directives/table-cell-resizable.directive.mjs +30 -24
  11. package/esm2020/table-helpers/services/table-column-resize.service.mjs +3 -4
  12. package/esm2020/table-helpers/table.mjs +1 -1
  13. package/esm2020/upload-collection/upload-collection/upload-collection.component.mjs +1 -1
  14. package/esm2020/value-help-dialog/value-help-dialog/value-help-dialog.component.mjs +1 -1
  15. package/esm2020/variant-management/components/manage-variants-dialog/manage-variants-dialog.component.mjs +1 -1
  16. package/fesm2015/fundamental-ngx-platform-approval-flow.mjs +1 -1
  17. package/fesm2015/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
  18. package/fesm2015/fundamental-ngx-platform-form.mjs +1 -1
  19. package/fesm2015/fundamental-ngx-platform-form.mjs.map +1 -1
  20. package/fesm2015/fundamental-ngx-platform-list.mjs +7 -5
  21. package/fesm2015/fundamental-ngx-platform-list.mjs.map +1 -1
  22. package/fesm2015/fundamental-ngx-platform-smart-filter-bar.mjs +2 -2
  23. package/fesm2015/fundamental-ngx-platform-smart-filter-bar.mjs.map +1 -1
  24. package/fesm2015/fundamental-ngx-platform-table-helpers.mjs +30 -24
  25. package/fesm2015/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
  26. package/fesm2015/fundamental-ngx-platform-table.mjs +11 -7
  27. package/fesm2015/fundamental-ngx-platform-table.mjs.map +1 -1
  28. package/fesm2015/fundamental-ngx-platform-upload-collection.mjs +1 -1
  29. package/fesm2015/fundamental-ngx-platform-upload-collection.mjs.map +1 -1
  30. package/fesm2015/fundamental-ngx-platform-value-help-dialog.mjs +1 -1
  31. package/fesm2015/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
  32. package/fesm2015/fundamental-ngx-platform-variant-management.mjs +1 -1
  33. package/fesm2015/fundamental-ngx-platform-variant-management.mjs.map +1 -1
  34. package/fesm2020/fundamental-ngx-platform-approval-flow.mjs +1 -1
  35. package/fesm2020/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
  36. package/fesm2020/fundamental-ngx-platform-form.mjs +1 -1
  37. package/fesm2020/fundamental-ngx-platform-form.mjs.map +1 -1
  38. package/fesm2020/fundamental-ngx-platform-list.mjs +7 -5
  39. package/fesm2020/fundamental-ngx-platform-list.mjs.map +1 -1
  40. package/fesm2020/fundamental-ngx-platform-smart-filter-bar.mjs +2 -2
  41. package/fesm2020/fundamental-ngx-platform-smart-filter-bar.mjs.map +1 -1
  42. package/fesm2020/fundamental-ngx-platform-table-helpers.mjs +30 -24
  43. package/fesm2020/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
  44. package/fesm2020/fundamental-ngx-platform-table.mjs +11 -7
  45. package/fesm2020/fundamental-ngx-platform-table.mjs.map +1 -1
  46. package/fesm2020/fundamental-ngx-platform-upload-collection.mjs +1 -1
  47. package/fesm2020/fundamental-ngx-platform-upload-collection.mjs.map +1 -1
  48. package/fesm2020/fundamental-ngx-platform-value-help-dialog.mjs +1 -1
  49. package/fesm2020/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
  50. package/fesm2020/fundamental-ngx-platform-variant-management.mjs +1 -1
  51. package/fesm2020/fundamental-ngx-platform-variant-management.mjs.map +1 -1
  52. package/fundamental-ngx-platform-v0.43.42.tgz +0 -0
  53. package/list/free-content-list-item/free-content-list-item.component.d.ts +3 -1
  54. package/package.json +4 -4
  55. package/schematics/ng-add/index.js +1 -1
  56. package/table/table.component.d.ts +3 -1
  57. package/table-helpers/table.d.ts +1 -0
  58. package/fundamental-ngx-platform-v0.43.41.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 < TABLE_COLUMN_MIN_WIDTH) {
3091
- diffX = TABLE_COLUMN_MIN_WIDTH - columnWidth;
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
- let resizerPosition;
3490
- let resizedColumn;
3491
- const pointerOnLeft = this._isRtl
3492
- ? elPosition.right - event.clientX < TABLE_CELL_RESIZABLE_THRESHOLD_PX
3493
- : event.clientX - elPosition.left < TABLE_CELL_RESIZABLE_THRESHOLD_PX;
3494
- if (pointerOnLeft && this._resizableSide !== 'end') {
3495
- resizerPosition = this._isRtl
3496
- ? el.parentElement.offsetWidth - (el.offsetLeft + el.offsetWidth)
3497
- : el.offsetLeft;
3498
- resizedColumn = this._tableColumnResizeService.getPreviousColumnName(this.columnName);
3499
- }
3500
- const pointerOnRight = this._isRtl
3501
- ? event.clientX - elPosition.left < TABLE_CELL_RESIZABLE_THRESHOLD_PX
3502
- : elPosition.right - event.clientX < TABLE_CELL_RESIZABLE_THRESHOLD_PX;
3503
- if (pointerOnRight && this._resizableSide !== 'start') {
3504
- resizerPosition = this._isRtl
3505
- ? el.parentElement.offsetWidth - el.offsetLeft
3506
- : el.offsetLeft + el.offsetWidth;
3507
- resizedColumn = this.columnName;
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
- if (!resizedColumn) {
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 });