@libs-ui/components-table 0.2.356-33 → 0.2.356-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/esm2022/interfaces/function-control-event.interface.mjs +1 -1
- package/esm2022/table.component.mjs +5 -3
- package/fesm2022/libs-ui-components-table.mjs +4 -2
- package/fesm2022/libs-ui-components-table.mjs.map +1 -1
- package/interfaces/function-control-event.interface.d.ts +1 -0
- package/package.json +28 -28
|
@@ -451,6 +451,7 @@ class LibsUiComponentsTableComponent {
|
|
|
451
451
|
getStore: () => this.stores() || [],
|
|
452
452
|
getItems: () => this.items() || [],
|
|
453
453
|
hightLightItem: this.hightLightItem.bind(this),
|
|
454
|
+
changePagination: async (page) => await this.paginationRef()?.FunctionsControl?.changePage(page),
|
|
454
455
|
};
|
|
455
456
|
}
|
|
456
457
|
handlerChangeAllChecked() {
|
|
@@ -723,10 +724,11 @@ class LibsUiComponentsTableComponent {
|
|
|
723
724
|
this.stores.set([]);
|
|
724
725
|
this.items.set([]);
|
|
725
726
|
}
|
|
727
|
+
this.totalItemInBackend.set(result.paging?.total_items || 0);
|
|
728
|
+
this.outTotalItem.emit(this.totalItemInBackend());
|
|
729
|
+
this.pagingStore.update((data) => ({ ...data, total_items: this.totalItemInBackend() || 0 }));
|
|
726
730
|
if (!isChangePage) {
|
|
727
731
|
this.pagingStore.set(result.paging);
|
|
728
|
-
this.totalItemInBackend.set(result.paging?.total_items || 0);
|
|
729
|
-
this.outTotalItem.emit(this.totalItemInBackend());
|
|
730
732
|
if (!this.pagingStore()) {
|
|
731
733
|
this.loadedLastItem.set(true);
|
|
732
734
|
}
|