@arsedizioni/ars-utils 19.0.5 → 19.0.6
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.
|
@@ -12,7 +12,7 @@ export declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
|
|
|
12
12
|
private changeDetector;
|
|
13
13
|
private clipperService;
|
|
14
14
|
useSelections: import("@angular/core").InputSignal<boolean>;
|
|
15
|
-
selectionSource: import("@angular/core").InputSignal<"
|
|
15
|
+
selectionSource: import("@angular/core").InputSignal<"bag" | "selection" | "none">;
|
|
16
16
|
protected selection: () => ClipperDocumentInfo[];
|
|
17
17
|
parent: import("@angular/core").InputSignal<ClipperSearchResultManager>;
|
|
18
18
|
item: import("@angular/core").InputSignal<ClipperDocumentInfo>;
|
|
@@ -154,8 +154,9 @@ 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 paginator : the paginator.
|
|
157
158
|
*/
|
|
158
|
-
save(id: string, scroll
|
|
159
|
+
save(id: string, scroll: number, storage: Storage, paginator: MatPaginator | null): void;
|
|
159
160
|
/**
|
|
160
161
|
* Restore data
|
|
161
162
|
* @param id : the restorable id
|
|
@@ -1464,13 +1464,14 @@ 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 paginator : the paginator.
|
|
1467
1468
|
*/
|
|
1468
|
-
save(id, scroll = 0, storage = sessionStorage) {
|
|
1469
|
+
save(id, scroll = 0, storage = sessionStorage, paginator) {
|
|
1469
1470
|
storage.setItem(id, JSON.stringify({
|
|
1470
1471
|
paginator: {
|
|
1471
|
-
page:
|
|
1472
|
+
page: paginator?.pageIndex ?? 0,
|
|
1472
1473
|
total: this.snapshot?.total ?? 0,
|
|
1473
|
-
size:
|
|
1474
|
+
size: paginator?.pageSize ?? 15
|
|
1474
1475
|
},
|
|
1475
1476
|
facets: this.facets()?.save(),
|
|
1476
1477
|
filterParams: this.filterParams,
|