@theseam/ui-common 1.0.2-beta.17 → 1.0.2-beta.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/fesm2022/theseam-ui-common-datatable.mjs +8 -0
- package/fesm2022/theseam-ui-common-datatable.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-graphql.mjs +3 -6
- package/fesm2022/theseam-ui-common-graphql.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-loading.mjs +84 -19
- package/fesm2022/theseam-ui-common-loading.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-menu.mjs +13 -0
- package/fesm2022/theseam-ui-common-menu.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-story-helpers.mjs +1 -36
- package/fesm2022/theseam-ui-common-story-helpers.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-testing.mjs +13 -8
- package/fesm2022/theseam-ui-common-testing.mjs.map +1 -1
- package/graphql/index.d.ts +1 -1
- package/loading/index.d.ts +32 -4
- package/menu/index.d.ts +6 -0
- package/package.json +1 -1
- package/story-helpers/index.d.ts +1 -34
- package/testing/index.d.ts +12 -9
|
@@ -3402,9 +3402,17 @@ class DatatableComponent {
|
|
|
3402
3402
|
if (this.ngxDatatable &&
|
|
3403
3403
|
this.ngxDatatableElement &&
|
|
3404
3404
|
this.ngxDatatableElement.nativeElement) {
|
|
3405
|
+
const prevPageInfo = { ...this.pageInfo };
|
|
3405
3406
|
// TODO: Consider integrating this into the ngx-datatable library to avoid
|
|
3406
3407
|
// multiple resize calls when the table resizes itself.
|
|
3407
3408
|
this.ngxDatatable.recalculate();
|
|
3409
|
+
const newPageInfo = this.pageInfo;
|
|
3410
|
+
if (prevPageInfo.pageSize !== newPageInfo.pageSize) {
|
|
3411
|
+
// TODO: Consider fixing this in the ngx-datatable fork's recalculatePages()
|
|
3412
|
+
// so it emits the page event directly when pageSize changes. This wrapper
|
|
3413
|
+
// fix works but the root cause is in the fork.
|
|
3414
|
+
this.page.emit(newPageInfo);
|
|
3415
|
+
}
|
|
3408
3416
|
}
|
|
3409
3417
|
}
|
|
3410
3418
|
_onResize(event) {
|