@arsedizioni/ars-utils 19.0.6 → 19.0.7
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.
|
@@ -154,9 +154,10 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
|
|
|
154
154
|
* @param id : the restorable id
|
|
155
155
|
* @param scroll : the current scroll position
|
|
156
156
|
* @param storage : the storage to use. Default si session storage.
|
|
157
|
-
* @param
|
|
157
|
+
* @param pageIndex : the page index. Default is 0.
|
|
158
|
+
* @param pageSize : the page size. Default is 15.
|
|
158
159
|
*/
|
|
159
|
-
save(id: string, scroll
|
|
160
|
+
save(id: string, scroll?: number, storage?: Storage, pageIndex?: number, pageSize?: number): void;
|
|
160
161
|
/**
|
|
161
162
|
* Restore data
|
|
162
163
|
* @param id : the restorable id
|
|
@@ -1464,14 +1464,15 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
|
|
|
1464
1464
|
* @param id : the restorable id
|
|
1465
1465
|
* @param scroll : the current scroll position
|
|
1466
1466
|
* @param storage : the storage to use. Default si session storage.
|
|
1467
|
-
* @param
|
|
1467
|
+
* @param pageIndex : the page index. Default is 0.
|
|
1468
|
+
* @param pageSize : the page size. Default is 15.
|
|
1468
1469
|
*/
|
|
1469
|
-
save(id, scroll = 0, storage = sessionStorage,
|
|
1470
|
+
save(id, scroll = 0, storage = sessionStorage, pageIndex = 0, pageSize = 15) {
|
|
1470
1471
|
storage.setItem(id, JSON.stringify({
|
|
1471
1472
|
paginator: {
|
|
1472
|
-
page:
|
|
1473
|
+
page: pageIndex,
|
|
1473
1474
|
total: this.snapshot?.total ?? 0,
|
|
1474
|
-
size:
|
|
1475
|
+
size: pageSize
|
|
1475
1476
|
},
|
|
1476
1477
|
facets: this.facets()?.save(),
|
|
1477
1478
|
filterParams: this.filterParams,
|