@fundamental-ngx/platform 0.43.19 → 0.43.20
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 +11 -9
- package/esm2020/table-helpers/directives/table-data-source.directive.mjs +2 -1
- package/esm2020/table-helpers/table.mjs +1 -1
- package/fesm2015/fundamental-ngx-platform-table-helpers.mjs +1 -0
- package/fesm2015/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-table.mjs +10 -8
- package/fesm2015/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-table-helpers.mjs +1 -0
- package/fesm2020/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-table.mjs +10 -8
- package/fesm2020/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fundamental-ngx-platform-v0.43.20.tgz +0 -0
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/table/table.component.d.ts +4 -0
- package/table-helpers/table.d.ts +1 -0
- package/fundamental-ngx-platform-v0.43.19.tgz +0 -0
|
@@ -3808,6 +3808,16 @@ class TableComponent extends Table {
|
|
|
3808
3808
|
const tableEl = this.table.nativeElement;
|
|
3809
3809
|
tableEl.rows[position.rowIndex].cells[position.colIndex].focus();
|
|
3810
3810
|
}
|
|
3811
|
+
/**
|
|
3812
|
+
* Clears the array of table rows. Triggered when new data source is applied.
|
|
3813
|
+
*/
|
|
3814
|
+
clearTableRows() {
|
|
3815
|
+
this._tableRows = [];
|
|
3816
|
+
this._tableRowsVisible = [];
|
|
3817
|
+
this._tableRowsInViewPortPlaceholder = [];
|
|
3818
|
+
this._newTableRows = [];
|
|
3819
|
+
this._dataSourceTableRows = [];
|
|
3820
|
+
}
|
|
3811
3821
|
// Private API
|
|
3812
3822
|
/** @hidden */
|
|
3813
3823
|
_scrollToOverlappedCell() {
|
|
@@ -4010,14 +4020,6 @@ class TableComponent extends Table {
|
|
|
4010
4020
|
}
|
|
4011
4021
|
/** @hidden */
|
|
4012
4022
|
_listenToTableRowsPipe() {
|
|
4013
|
-
this._subscriptions.add(
|
|
4014
|
-
/*
|
|
4015
|
-
* Reset table when the data source is changed,
|
|
4016
|
-
* because new data source can have different set of data
|
|
4017
|
-
*/
|
|
4018
|
-
this._dataSourceDirective.dataSourceChanged.subscribe(() => {
|
|
4019
|
-
this._setTableRows([]);
|
|
4020
|
-
}));
|
|
4021
4023
|
this._subscriptions.add(this._dataSourceDirective.items$
|
|
4022
4024
|
.pipe(
|
|
4023
4025
|
// map source items to table rows
|