@fundamental-ngx/platform 0.43.35 → 0.43.36
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/table/table.component.mjs +13 -3
- package/fesm2015/fundamental-ngx-platform-table.mjs +12 -2
- package/fesm2015/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-table.mjs +12 -2
- package/fesm2020/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fundamental-ngx-platform-v0.43.36.tgz +0 -0
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/fundamental-ngx-platform-v0.43.35.tgz +0 -0
|
@@ -4081,6 +4081,7 @@ class TableComponent extends Table {
|
|
|
4081
4081
|
}
|
|
4082
4082
|
/** @hidden */
|
|
4083
4083
|
onTableRowsChanged() {
|
|
4084
|
+
this._reIndexTableRows();
|
|
4084
4085
|
this._calculateVisibleTableRows();
|
|
4085
4086
|
this._calculateCheckedAll();
|
|
4086
4087
|
}
|
|
@@ -4152,7 +4153,17 @@ class TableComponent extends Table {
|
|
|
4152
4153
|
}))
|
|
4153
4154
|
.subscribe((items) => {
|
|
4154
4155
|
items.forEach((rows, parentRow) => {
|
|
4155
|
-
|
|
4156
|
+
let nestedChildrenCount = 0;
|
|
4157
|
+
function tallyNestedChildren(parent) {
|
|
4158
|
+
if (parent.children) {
|
|
4159
|
+
nestedChildrenCount = nestedChildrenCount + parent.children.length;
|
|
4160
|
+
parent.children.forEach((child) => {
|
|
4161
|
+
tallyNestedChildren(child);
|
|
4162
|
+
});
|
|
4163
|
+
}
|
|
4164
|
+
}
|
|
4165
|
+
tallyNestedChildren(parentRow);
|
|
4166
|
+
this._tableRows.splice(parentRow.index + nestedChildrenCount + 1, 0, ...rows);
|
|
4156
4167
|
parentRow.children.push(...rows);
|
|
4157
4168
|
parentRow.lastChild = parentRow.children[parentRow.children.length - 1];
|
|
4158
4169
|
this._setTableRows(this._tableRows);
|
|
@@ -4281,7 +4292,6 @@ class TableComponent extends Table {
|
|
|
4281
4292
|
_setTableRows(rows = this._dataSourceTableRows) {
|
|
4282
4293
|
this._dataSourceTableRows = rows;
|
|
4283
4294
|
this._tableRows = [...this._newTableRows, ...this._dataSourceTableRows];
|
|
4284
|
-
this._reIndexTableRows();
|
|
4285
4295
|
this.onTableRowsChanged();
|
|
4286
4296
|
this._calculateIsShownNavigationColumn();
|
|
4287
4297
|
this._rangeSelector.reset();
|