@arsedizioni/ars-utils 19.0.5 → 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.
@@ -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<"none" | "bag" | "selection">;
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,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 pageIndex : the page index. Default is 0.
158
+ * @param pageSize : the page size. Default is 15.
157
159
  */
158
- save(id: string, scroll?: number, storage?: Storage): void;
160
+ save(id: string, scroll?: number, storage?: Storage, pageIndex?: number, pageSize?: number): void;
159
161
  /**
160
162
  * Restore data
161
163
  * @param id : the restorable id
@@ -1464,13 +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 pageIndex : the page index. Default is 0.
1468
+ * @param pageSize : the page size. Default is 15.
1467
1469
  */
1468
- save(id, scroll = 0, storage = sessionStorage) {
1470
+ save(id, scroll = 0, storage = sessionStorage, pageIndex = 0, pageSize = 15) {
1469
1471
  storage.setItem(id, JSON.stringify({
1470
1472
  paginator: {
1471
- page: this.paginator()?.pageIndex ?? 0,
1473
+ page: pageIndex,
1472
1474
  total: this.snapshot?.total ?? 0,
1473
- size: this.paginator()?.pageSize ?? 15
1475
+ size: pageSize
1474
1476
  },
1475
1477
  facets: this.facets()?.save(),
1476
1478
  filterParams: this.filterParams,