@fundamental-ngx/platform 0.43.10 → 0.43.11
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/approval-flow/approval-flow.component.mjs +1 -1
- package/esm2020/form/multi-combobox/multi-combobox/multi-combobox.component.mjs +1 -3
- package/esm2020/table-helpers/services/table-column-resize.service.mjs +15 -6
- package/esm2020/table-helpers/table.mjs +1 -1
- package/fesm2015/fundamental-ngx-platform-approval-flow.mjs +2 -2
- package/fesm2015/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-form.mjs +0 -2
- package/fesm2015/fundamental-ngx-platform-form.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-table-helpers.mjs +15 -6
- package/fesm2015/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-approval-flow.mjs +2 -2
- package/fesm2020/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-form.mjs +0 -2
- package/fesm2020/fundamental-ngx-platform-form.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-table-helpers.mjs +14 -5
- package/fesm2020/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fundamental-ngx-platform-v0.43.11.tgz +0 -0
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/table-helpers/table.d.ts +2 -0
- package/fundamental-ngx-platform-v0.43.10.tgz +0 -0
|
@@ -2750,14 +2750,23 @@ class TableColumnResizeService {
|
|
|
2750
2750
|
}
|
|
2751
2751
|
}
|
|
2752
2752
|
}
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2753
|
+
/**
|
|
2754
|
+
* In case "_resizedColumn" is freezable, make sure the overall width of freezable columns does not exceed the width of the table.
|
|
2755
|
+
* If it does, columns will be made unfrozen.
|
|
2756
|
+
*/
|
|
2757
|
+
if (diffX > 0 &&
|
|
2758
|
+
(this._tableRef._freezableColumns.has(this._resizedColumn) ||
|
|
2759
|
+
this._tableRef._freezableEndColumns?.has(this._resizedColumn))) {
|
|
2760
|
+
let actualWidth = this.getPrevColumnsWidth(this._resizedColumn) + columnWidth;
|
|
2761
|
+
if (this._tableRef._freezableEndColumns?.has(this._resizedColumn)) {
|
|
2762
|
+
actualWidth = this.getNextColumnsWidth(this._resizedColumn) + columnWidth;
|
|
2763
|
+
}
|
|
2756
2764
|
const newWidth = actualWidth + diffX;
|
|
2757
2765
|
const maxWidth = this._tableRef.getMaxAllowedFreezableColumnsWidth();
|
|
2758
|
-
// in case "_resizedColumn" is freezable, make sure the overall width of freezable columns does not exceed the width of the table
|
|
2759
2766
|
if (newWidth >= maxWidth) {
|
|
2760
|
-
|
|
2767
|
+
this._tableRef._freezableColumns.forEach((column) => {
|
|
2768
|
+
this._tableRef.unfreeze(column.toString());
|
|
2769
|
+
});
|
|
2761
2770
|
}
|
|
2762
2771
|
}
|
|
2763
2772
|
const updatedWidth = columnWidth + diffX;
|