@fundamental-ngx/platform 0.43.19 → 0.43.21
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 -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 +12 -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 +12 -8
- package/fesm2020/fundamental-ngx-platform-table.mjs.map +1 -1
- package/fundamental-ngx-platform-v0.43.21.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
|
@@ -3827,6 +3827,18 @@ class TableComponent extends Table {
|
|
|
3827
3827
|
const tableEl = this.table.nativeElement;
|
|
3828
3828
|
tableEl.rows[position.rowIndex].cells[position.colIndex].focus();
|
|
3829
3829
|
}
|
|
3830
|
+
/**
|
|
3831
|
+
* Clears the array of table rows. Triggered when new data source is applied.
|
|
3832
|
+
*/
|
|
3833
|
+
clearTableRows() {
|
|
3834
|
+
this._tableRows = [];
|
|
3835
|
+
this._tableRowsVisible = [];
|
|
3836
|
+
this._tableRowsInViewPortPlaceholder = [];
|
|
3837
|
+
this._newTableRows = [];
|
|
3838
|
+
this._dataSourceTableRows = [];
|
|
3839
|
+
this._setTableRows([]);
|
|
3840
|
+
this._tableService.setCurrentPage(1);
|
|
3841
|
+
}
|
|
3830
3842
|
// Private API
|
|
3831
3843
|
/** @hidden */
|
|
3832
3844
|
_scrollToOverlappedCell() {
|
|
@@ -4030,14 +4042,6 @@ class TableComponent extends Table {
|
|
|
4030
4042
|
}
|
|
4031
4043
|
/** @hidden */
|
|
4032
4044
|
_listenToTableRowsPipe() {
|
|
4033
|
-
this._subscriptions.add(
|
|
4034
|
-
/*
|
|
4035
|
-
* Reset table when the data source is changed,
|
|
4036
|
-
* because new data source can have different set of data
|
|
4037
|
-
*/
|
|
4038
|
-
this._dataSourceDirective.dataSourceChanged.subscribe(() => {
|
|
4039
|
-
this._setTableRows([]);
|
|
4040
|
-
}));
|
|
4041
4045
|
this._subscriptions.add(this._dataSourceDirective.items$
|
|
4042
4046
|
.pipe(
|
|
4043
4047
|
// map source items to table rows
|