@arsedizioni/ars-utils 19.0.10 → 19.0.12
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/clipper.ui/ui/document-menu/document-menu.component.d.ts +1 -1
- package/clipper.ui/ui/search-result-manager/search-result-manager.d.ts +2 -2
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +5 -5
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/package.json +8 -8
|
@@ -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<"none" | "bag" | "selection">;
|
|
16
16
|
protected selection: () => ClipperDocumentInfo[];
|
|
17
17
|
parent: import("@angular/core").InputSignal<ClipperSearchResultManager>;
|
|
18
18
|
item: import("@angular/core").InputSignal<ClipperDocumentInfo>;
|
|
@@ -27,6 +27,7 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
|
|
|
27
27
|
protected filterPane2Closed: boolean;
|
|
28
28
|
protected sortOptions: NameValueItem<ClipperSort>[];
|
|
29
29
|
protected sortMode: NameValueItem<ClipperSort> | null;
|
|
30
|
+
protected scrollPos: number;
|
|
30
31
|
protected scrollerId: string;
|
|
31
32
|
protected restorableId: string | null;
|
|
32
33
|
protected hasFacets: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -152,10 +153,9 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
|
|
|
152
153
|
/**
|
|
153
154
|
* Save restorable data
|
|
154
155
|
* @param id : the restorable id
|
|
155
|
-
* @param scroll : the current scroll position
|
|
156
156
|
* @param storage : the storage to use. Default si session storage.
|
|
157
157
|
*/
|
|
158
|
-
save(id: string,
|
|
158
|
+
save(id: string, storage?: Storage): void;
|
|
159
159
|
/**
|
|
160
160
|
* Restore data
|
|
161
161
|
* @param id : the restorable id
|
|
@@ -1046,6 +1046,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
|
|
|
1046
1046
|
this.filterPane2Closed = false;
|
|
1047
1047
|
this.sortOptions = [];
|
|
1048
1048
|
this.sortMode = null;
|
|
1049
|
+
this.scrollPos = 0;
|
|
1049
1050
|
this.scrollerId = 'scroller_' + SystemUtils.generateUUID();
|
|
1050
1051
|
this.restorableId = null;
|
|
1051
1052
|
this.hasFacets = signal(false);
|
|
@@ -1462,19 +1463,18 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
|
|
|
1462
1463
|
/**
|
|
1463
1464
|
* Save restorable data
|
|
1464
1465
|
* @param id : the restorable id
|
|
1465
|
-
* @param scroll : the current scroll position
|
|
1466
1466
|
* @param storage : the storage to use. Default si session storage.
|
|
1467
1467
|
*/
|
|
1468
|
-
save(id,
|
|
1468
|
+
save(id, storage = sessionStorage) {
|
|
1469
1469
|
storage.setItem(id, JSON.stringify({
|
|
1470
1470
|
paginator: {
|
|
1471
|
-
|
|
1471
|
+
index: this.paginator()?.pageIndex ?? 0,
|
|
1472
1472
|
total: this.snapshot?.total ?? 0,
|
|
1473
1473
|
size: this.paginator()?.pageSize ?? 15
|
|
1474
1474
|
},
|
|
1475
1475
|
facets: this.facets()?.save(),
|
|
1476
1476
|
filterParams: this.filterParams,
|
|
1477
|
-
scroll:
|
|
1477
|
+
scroll: this.scrollPos,
|
|
1478
1478
|
sort: { mode: this.sortMode, options: this.sortOptions },
|
|
1479
1479
|
data: this.snapshot
|
|
1480
1480
|
? { items: this.snapshot.items, total: this.snapshot.total }
|
|
@@ -1517,7 +1517,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
|
|
|
1517
1517
|
}
|
|
1518
1518
|
const paginator = this.paginator();
|
|
1519
1519
|
if (paginator && data.paginator) {
|
|
1520
|
-
paginator.pageIndex = data.paginator.
|
|
1520
|
+
paginator.pageIndex = data.paginator.index;
|
|
1521
1521
|
paginator.pageSize = data.paginator.size;
|
|
1522
1522
|
paginator.length = data.paginator.total;
|
|
1523
1523
|
}
|