@arsedizioni/ars-utils 18.1.73 → 18.1.75
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.common/common/common.module.d.ts +1 -2
- package/clipper.common/common/definitions.d.ts +317 -0
- package/clipper.common/common/interceptors/auth.interceptor.d.ts +2 -5
- package/clipper.common/common/messages.d.ts +4 -0
- package/clipper.common/common/services/clipper.service.d.ts +12 -36
- package/clipper.ui/{ui/document/documents.d.ts → documents.d.ts} +2 -6
- package/clipper.ui/public_api.d.ts +6 -5
- package/clipper.ui/ui/browser-dialog/browser-dialog.component.d.ts +30 -143
- package/clipper.ui/ui/clipper.scss +270 -106
- package/clipper.ui/ui/document/document.component.d.ts +64 -118
- package/clipper.ui/ui/document-index/document-index.component.d.ts +34 -0
- package/clipper.ui/ui/document-manager/document-manager.d.ts +126 -0
- package/clipper.ui/ui/document-menu/document-menu.component.d.ts +28 -0
- package/clipper.ui/ui/references/references.component.d.ts +39 -73
- package/clipper.ui/ui/search-calendar/search-calendar.component.d.ts +40 -0
- package/clipper.ui/ui/search-dialog/search-dialog.component.d.ts +37 -40
- package/clipper.ui/ui/search-facets/search-facets.component.d.ts +22 -70
- package/clipper.ui/ui/search-free-text-help/search-free-text-help.component.d.ts +0 -1
- package/clipper.ui/ui/search-free-text-query-builder/search-free-text-query-builder.component.d.ts +8 -12
- package/clipper.ui/ui/search-result-item/search-result-item.component.d.ts +6 -4
- package/clipper.ui/ui/search-result-manager/search-result-manager.d.ts +147 -0
- package/esm2022/clipper.common/common/common.module.mjs +2 -3
- package/esm2022/clipper.common/common/definitions.mjs +1536 -0
- package/esm2022/clipper.common/common/interceptors/auth.interceptor.mjs +15 -15
- package/esm2022/clipper.common/common/messages.mjs +6 -1
- package/esm2022/clipper.common/common/services/clipper.service.mjs +65 -65
- package/esm2022/clipper.ui/documents.mjs +51 -0
- package/esm2022/clipper.ui/public_api.mjs +7 -6
- package/esm2022/clipper.ui/ui/browser-dialog/browser-dialog.component.mjs +320 -784
- package/esm2022/clipper.ui/ui/document/document.component.mjs +214 -319
- package/esm2022/clipper.ui/ui/document-index/document-index.component.mjs +121 -0
- package/esm2022/clipper.ui/ui/document-manager/document-manager.mjs +431 -0
- package/esm2022/clipper.ui/ui/document-menu/document-menu.component.mjs +56 -0
- package/esm2022/clipper.ui/ui/references/references.component.mjs +244 -438
- package/esm2022/clipper.ui/ui/search-calendar/search-calendar.component.mjs +116 -0
- package/esm2022/clipper.ui/ui/search-dialog/search-dialog.component.mjs +216 -205
- package/esm2022/clipper.ui/ui/search-facets/search-facets.component.mjs +157 -209
- package/esm2022/clipper.ui/ui/search-free-text-help/search-free-text-help.component.mjs +7 -8
- package/esm2022/clipper.ui/ui/search-free-text-query-builder/search-free-text-query-builder.component.mjs +22 -23
- package/esm2022/clipper.ui/ui/search-result-item/search-result-item.component.mjs +12 -10
- package/esm2022/clipper.ui/ui/search-result-manager/search-result-manager.mjs +462 -0
- package/esm2022/help/components/help-viewer/help-viewer.component.mjs +29 -32
- package/esm2022/help/services/help.service.mjs +16 -16
- package/esm2022/support.common/common/definitions.mjs +21 -0
- package/esm2022/support.common/common/services/support.service.mjs +9 -7
- package/esm2022/support.common/public_api.mjs +2 -2
- package/esm2022/support.ui/ui/notifications-browser/notification/notification.component.mjs +3 -3
- package/esm2022/support.ui/ui/notifications-browser/notifications-browser.component.mjs +4 -5
- package/esm2022/ui/ui/dialogs/busy/busy-dialog.component.mjs +3 -3
- package/esm2022/ui/ui/dialogs/confirm/confirm-dialog.component.mjs +3 -3
- package/esm2022/ui/ui/dialogs/credentials/credentials-dialog.component.mjs +3 -3
- package/esm2022/ui/ui/dialogs/info/info-dialog.component.mjs +3 -3
- package/esm2022/ui/ui/dialogs/recover-password/recover-password-dialog.component.mjs +3 -3
- package/esm2022/ui/ui/dialogs/reset-password/reset-password-dialog.component.mjs +3 -3
- package/esm2022/ui.application/public_api.mjs +4 -1
- package/esm2022/ui.application/ui/components/button-selector/button-selector.component.mjs +163 -0
- package/esm2022/ui.application/ui/components/button-toggle/button-toggle.component.mjs +47 -0
- package/esm2022/ui.application/ui/components/chips-selector/chips-selector.component.mjs +239 -0
- package/esm2022/ui.application/ui/components/file-preview/file-preview.component.mjs +23 -24
- package/esm2022/ui.application/ui/components/filter-bar/filter-bar.component.mjs +3 -3
- package/esm2022/ui.application/ui/dialogs/prompt/prompt-dialog.component.mjs +3 -3
- package/esm2022/ui.application/ui/dialogs/prompt-date/prompt-date-dialog.component.mjs +3 -3
- package/esm2022/ui.application/ui/dialogs/prompt-time/prompt-time-dialog.component.mjs +3 -3
- package/esm2022/ui.application/ui/dialogs/select/select-dialog.component.mjs +3 -3
- package/esm2022/ui.application/ui/dialogs/select-file/select-file-dialog.component.mjs +3 -3
- package/esm2022/ui.application/ui/dialogs/select-picture/select-picture-dialog.component.mjs +3 -3
- package/esm2022/ui.application/ui/dialogs/select-tree/select-tree-dialog.component.mjs +3 -3
- package/esm2022/ui.application/ui/dialogs/send-to/send-to-dialog.component.mjs +3 -3
- package/esm2022/ui.application/ui/messages.mjs +3 -3
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +1608 -1507
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +2276 -2398
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-help.mjs +43 -47
- package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +8 -6
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +5 -6
- package/fesm2022/arsedizioni-ars-utils-support.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +450 -47
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +12 -12
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/help/components/help-viewer/help-viewer.component.d.ts +7 -11
- package/help/services/help.service.d.ts +3 -6
- package/package.json +7 -7
- package/styles/ui.scss +140 -0
- package/support.common/common/services/support.service.d.ts +2 -2
- package/support.common/public_api.d.ts +1 -1
- package/ui.application/public_api.d.ts +3 -0
- package/ui.application/ui/components/button-selector/button-selector.component.d.ts +49 -0
- package/ui.application/ui/components/button-toggle/button-toggle.component.d.ts +26 -0
- package/ui.application/ui/components/chips-selector/chips-selector.component.d.ts +70 -0
- package/ui.application/ui/components/file-preview/file-preview.component.d.ts +4 -8
- package/ui.application/ui/messages.d.ts +2 -2
- package/clipper.common/common/clipper.d.ts +0 -119
- package/clipper.common/common/search.d.ts +0 -49
- package/clipper.ui/ui/document/base/document-base.component.d.ts +0 -38
- package/clipper.ui/ui/document/document-index/document-index.component.d.ts +0 -38
- package/clipper.ui/ui/document/document-menu/document-menu.component.d.ts +0 -30
- package/clipper.ui/ui/last-15-days/last-15-days.component.d.ts +0 -41
- package/esm2022/clipper.common/common/clipper.mjs +0 -1371
- package/esm2022/clipper.common/common/search.mjs +0 -69
- package/esm2022/clipper.ui/ui/document/base/document-base.component.mjs +0 -194
- package/esm2022/clipper.ui/ui/document/document-index/document-index.component.mjs +0 -121
- package/esm2022/clipper.ui/ui/document/document-menu/document-menu.component.mjs +0 -88
- package/esm2022/clipper.ui/ui/document/documents.mjs +0 -49
- package/esm2022/clipper.ui/ui/last-15-days/last-15-days.component.mjs +0 -107
- package/esm2022/help/components/help-search-query-builder/help-search-query-builder.component.mjs +0 -114
- package/esm2022/support.common/common/support.mjs +0 -21
- package/esm2022/ui.oauth/ui/components/login/loginOAuth.component.mjs +0 -198
- package/help/components/help-search-query-builder/help-search-query-builder.component.d.ts +0 -29
- package/help/help.scss +0 -72
- package/ui.oauth/ui/components/login/loginOAuth.component.d.ts +0 -38
- /package/support.common/common/{support.d.ts → definitions.d.ts} +0 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
3
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
4
|
+
import { MatPaginator } from '@angular/material/paginator';
|
|
5
|
+
import { NameValueItem, ScreenService, SelectableModel } from '@arsedizioni/ars-utils/core';
|
|
6
|
+
import { Subject } from 'rxjs';
|
|
7
|
+
import { ClipperDocumentManager } from '../document-manager/document-manager';
|
|
8
|
+
import { ClipperSearchFacetsComponent } from '../search-facets/search-facets.component';
|
|
9
|
+
import { ClipperSearchCalendarComponent } from '../search-calendar/search-calendar.component';
|
|
10
|
+
import { ClipperSearchCalendarSnapshotResult, ClipperSearchFacetsResult, ClipperSearchParams, ClipperSearchResult } from '@arsedizioni/ars-utils/clipper.common';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class ClipperSearchResultManager extends ClipperDocumentManager implements OnDestroy {
|
|
13
|
+
paginator: MatPaginator;
|
|
14
|
+
facets: ClipperSearchFacetsComponent;
|
|
15
|
+
calendar: ClipperSearchCalendarComponent;
|
|
16
|
+
contextMenu: MatMenuTrigger;
|
|
17
|
+
protected unsubscribe: Subject<void>;
|
|
18
|
+
protected changeDetector: ChangeDetectorRef;
|
|
19
|
+
protected breakpointObserver: BreakpointObserver;
|
|
20
|
+
screenService: ScreenService;
|
|
21
|
+
selection: SelectableModel<any, string> | null;
|
|
22
|
+
protected snapshot: ClipperSearchResult | null;
|
|
23
|
+
protected filterParams: ClipperSearchParams;
|
|
24
|
+
protected filterPaneHasBackdrop: boolean;
|
|
25
|
+
protected filterPaneClosed: boolean;
|
|
26
|
+
protected filterPane2HasBackdrop: boolean;
|
|
27
|
+
protected filterPane2Closed: boolean;
|
|
28
|
+
protected sortOptions: NameValueItem<number>[];
|
|
29
|
+
protected sortMode: NameValueItem<number> | null;
|
|
30
|
+
protected scrollerId: string;
|
|
31
|
+
protected restorableId: string | null;
|
|
32
|
+
protected contextMenuPosition: {
|
|
33
|
+
x: string;
|
|
34
|
+
y: string;
|
|
35
|
+
};
|
|
36
|
+
protected hasFacets: import("@angular/core").WritableSignal<boolean>;
|
|
37
|
+
protected hasCalendar: import("@angular/core").WritableSignal<boolean>;
|
|
38
|
+
ngOnDestroy(): void;
|
|
39
|
+
onContextMenu(event: MouseEvent, item: any): void;
|
|
40
|
+
/**
|
|
41
|
+
* Update menu buttons visibility when the menu is closed
|
|
42
|
+
*/
|
|
43
|
+
updateMenuButtonsVisibility(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Scroll on top o list area
|
|
46
|
+
* @param top: the top position
|
|
47
|
+
*/
|
|
48
|
+
scroll(top?: number): void;
|
|
49
|
+
/**
|
|
50
|
+
* Check if every element are selected
|
|
51
|
+
*/
|
|
52
|
+
allSelected(): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Master selection toggle
|
|
55
|
+
* @param select: true to select all elements false to deselect all elements
|
|
56
|
+
*/
|
|
57
|
+
selectAll(select?: boolean): void;
|
|
58
|
+
/**
|
|
59
|
+
* Check if selections exists
|
|
60
|
+
* @returns true if at least one element is selected
|
|
61
|
+
*/
|
|
62
|
+
hasAnySelection(): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Check if only one element is selected
|
|
65
|
+
* @returns true if only one element is selected
|
|
66
|
+
*/
|
|
67
|
+
hasSingleSelection(): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Get the first selected item
|
|
70
|
+
* @returns the selected item or null
|
|
71
|
+
*/
|
|
72
|
+
getSingleSelection(): any | null;
|
|
73
|
+
/**
|
|
74
|
+
* Clear selection
|
|
75
|
+
*/
|
|
76
|
+
clearSelection(): void;
|
|
77
|
+
/**
|
|
78
|
+
* Return the number of selected items or null
|
|
79
|
+
* @returns Return the number of selected items
|
|
80
|
+
*/
|
|
81
|
+
countSelections(): number | null;
|
|
82
|
+
/**
|
|
83
|
+
* Get the selected id
|
|
84
|
+
*/
|
|
85
|
+
getSeletectId(): string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Get all selected ids
|
|
88
|
+
*/
|
|
89
|
+
getSeletectIds(): string[] | null;
|
|
90
|
+
/**
|
|
91
|
+
* Get all selected ids
|
|
92
|
+
*/
|
|
93
|
+
getSeletectIdsAndData(): any[] | null;
|
|
94
|
+
/**
|
|
95
|
+
* Prepare results
|
|
96
|
+
* @param data : the optional result list to prepare
|
|
97
|
+
* @param facets : the optional facets list to prepare
|
|
98
|
+
* @param months : the optional snapshot months
|
|
99
|
+
* @param month : the optional snapshot month
|
|
100
|
+
* @param date : the optinal snapshot current date
|
|
101
|
+
*/
|
|
102
|
+
prepareResults(data?: ClipperSearchResult | null, facets?: ClipperSearchFacetsResult | null, months?: ClipperSearchCalendarSnapshotResult | null, month?: ClipperSearchCalendarSnapshotResult | null, date?: Date | null): void;
|
|
103
|
+
/**
|
|
104
|
+
* Return item state css class
|
|
105
|
+
* @param item : the item to evaluate
|
|
106
|
+
*/
|
|
107
|
+
getItemStateCssClass(item: any): string | null;
|
|
108
|
+
/**
|
|
109
|
+
* Return the item state tooltip text
|
|
110
|
+
* @param item : the item to evaluate
|
|
111
|
+
*/
|
|
112
|
+
getItemStateTooltip(item: any): string;
|
|
113
|
+
/**
|
|
114
|
+
* Return the item icon
|
|
115
|
+
* @param item : the item to evaluate
|
|
116
|
+
*/
|
|
117
|
+
getItemIcon(item: any): string;
|
|
118
|
+
/**
|
|
119
|
+
* Toggle the read flag
|
|
120
|
+
* @param item : the item to update
|
|
121
|
+
* @paran e: the optional click event
|
|
122
|
+
*/
|
|
123
|
+
toggleRead(item: any, e?: Event | null): void;
|
|
124
|
+
/**
|
|
125
|
+
* Toggle the selection flag
|
|
126
|
+
* @param item : the item to update
|
|
127
|
+
* @paran e: the optional click event
|
|
128
|
+
*/
|
|
129
|
+
toggleSelection(item: any, e?: Event | null): void;
|
|
130
|
+
/**
|
|
131
|
+
* Get the selected id
|
|
132
|
+
*/
|
|
133
|
+
setRead(value: boolean, item?: any): void;
|
|
134
|
+
/**
|
|
135
|
+
* Save restorable data
|
|
136
|
+
* @param id : the restorable id
|
|
137
|
+
* @param scroll : the current scroll position
|
|
138
|
+
*/
|
|
139
|
+
save(id: string, scroll?: number): void;
|
|
140
|
+
/**
|
|
141
|
+
* Restore data
|
|
142
|
+
* @param id : the restorable id
|
|
143
|
+
*/
|
|
144
|
+
restore(id: string): void;
|
|
145
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClipperSearchResultManager, never>;
|
|
146
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ClipperSearchResultManager, "ng-component", never, {}, {}, never, never, true, never>;
|
|
147
|
+
}
|
|
@@ -21,7 +21,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImpor
|
|
|
21
21
|
}] });
|
|
22
22
|
// Other exports
|
|
23
23
|
export * from './messages';
|
|
24
|
-
export * from './
|
|
25
|
-
export * from './clipper';
|
|
24
|
+
export * from './definitions';
|
|
26
25
|
export * from './services/clipper.service';
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fycy11dGlscy9jbGlwcGVyLmNvbW1vbi9jb21tb24vY29tbW9uLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUN6RCxPQUFPLEVBQU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