@arsedizioni/ars-utils 19.0.44 → 19.0.45
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/public_api.d.ts +1 -0
- package/clipper.ui/ui/browser/browser-dialog/browser-dialog.component.d.ts +1 -1
- package/clipper.ui/ui/browser/browser.component.d.ts +209 -0
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './ui/browser/browser-dialog/browser-dialog.component';
|
|
2
|
+
export * from './ui/browser/browser.component';
|
|
2
3
|
export * from './ui/search-facets/search-facets.component';
|
|
3
4
|
export * from './ui/search-free-text-help/search-free-text-help.component';
|
|
4
5
|
export * from './ui/search-free-text-query-builder/search-free-text-query-builder.component';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClipperModule, ClipperSelectionMode, ClipperService } from '@arsedizioni/ars-utils/clipper.common';
|
|
2
2
|
import { ThemeType } from '@arsedizioni/ars-utils/core';
|
|
3
|
-
import { ClipperBrowserComponent } from '../
|
|
3
|
+
import { ClipperBrowserComponent } from '../browser.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export interface ClipperBrowserDialogData {
|
|
6
6
|
showChannels?: boolean | null;
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy, OnInit, Signal } from '@angular/core';
|
|
2
|
+
import { MatInput } from '@angular/material/input';
|
|
3
|
+
import { PageEvent } from '@angular/material/paginator';
|
|
4
|
+
import { MatDrawer } from '@angular/material/sidenav';
|
|
5
|
+
import { DateInterval, INode, NameValueItem } from '@arsedizioni/ars-utils/core';
|
|
6
|
+
import { ButtonSelectorComponent, ChipsSelectorComponent } from '@arsedizioni/ars-utils/ui.application';
|
|
7
|
+
import { ScrollDispatcher } from '@angular/cdk/scrolling';
|
|
8
|
+
import { ClipperSearchResultManager } from '../search-result-manager/search-result-manager';
|
|
9
|
+
import { ClipperChannel, ClipperModule, ClipperSearchParams, ClipperSelectionMode, ClipperUserInfo, ClipperUserSearch, SectorInfo } from '@arsedizioni/ars-utils/clipper.common';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class ClipperBrowserComponent extends ClipperSearchResultManager implements OnInit, OnDestroy, AfterViewInit {
|
|
12
|
+
readonly filterByNumber: Signal<MatInput>;
|
|
13
|
+
readonly filterByText: Signal<MatInput>;
|
|
14
|
+
readonly filterByChangeNumber: Signal<MatInput>;
|
|
15
|
+
readonly filterPane: Signal<MatDrawer>;
|
|
16
|
+
readonly filterPane2: Signal<MatDrawer>;
|
|
17
|
+
readonly filterSelector: Signal<ButtonSelectorComponent>;
|
|
18
|
+
readonly moduleSelector: Signal<ChipsSelectorComponent>;
|
|
19
|
+
readonly showChannels: import("@angular/core").InputSignal<boolean>;
|
|
20
|
+
readonly selectableModules: import("@angular/core").InputSignal<ClipperModule[]>;
|
|
21
|
+
readonly selectionMode: import("@angular/core").InputSignal<ClipperSelectionMode>;
|
|
22
|
+
readonly initialModule: import("@angular/core").InputSignal<ClipperModule>;
|
|
23
|
+
protected scrollDispatcher: ScrollDispatcher;
|
|
24
|
+
protected filterDescription: import("@angular/core").WritableSignal<string>;
|
|
25
|
+
protected filters: import("@angular/core").WritableSignal<NameValueItem<ClipperUserSearch>[]>;
|
|
26
|
+
protected filter: Signal<NameValueItem<ClipperUserSearch> | null | undefined>;
|
|
27
|
+
protected hasAI: boolean;
|
|
28
|
+
protected hasFilters: Signal<boolean>;
|
|
29
|
+
protected isLaws: (allowEmpty?: boolean) => boolean;
|
|
30
|
+
protected isReadable(): boolean;
|
|
31
|
+
protected canSearch: () => boolean;
|
|
32
|
+
protected sectors: import("@angular/core").WritableSignal<SectorInfo[]>;
|
|
33
|
+
protected hasSectors: () => boolean;
|
|
34
|
+
protected regions: import("@angular/core").WritableSignal<NameValueItem<string>[]>;
|
|
35
|
+
protected hasRegions: () => boolean;
|
|
36
|
+
protected channels: import("@angular/core").WritableSignal<NameValueItem<ClipperChannel>[]>;
|
|
37
|
+
protected sources: import("@angular/core").WritableSignal<NameValueItem<string>[]>;
|
|
38
|
+
protected hasSource: () => boolean;
|
|
39
|
+
protected authors: import("@angular/core").WritableSignal<NameValueItem<string>[]>;
|
|
40
|
+
protected types: import("@angular/core").WritableSignal<NameValueItem<string>[]>;
|
|
41
|
+
protected topics: INode[];
|
|
42
|
+
protected hasTopics: () => boolean;
|
|
43
|
+
protected tags: import("@angular/core").WritableSignal<NameValueItem<string>[]>;
|
|
44
|
+
protected hasTags: () => boolean;
|
|
45
|
+
protected reasons: import("@angular/core").WritableSignal<NameValueItem<number>[]>;
|
|
46
|
+
protected modules: import("@angular/core").WritableSignal<NameValueItem<ClipperModule>[]>;
|
|
47
|
+
protected interval: DateInterval;
|
|
48
|
+
protected sourceInterval: DateInterval;
|
|
49
|
+
protected user: ClipperUserInfo | null;
|
|
50
|
+
ngOnInit(): void;
|
|
51
|
+
ngAfterViewInit(): void;
|
|
52
|
+
ngOnDestroy(): void;
|
|
53
|
+
/**
|
|
54
|
+
* Get all available modules
|
|
55
|
+
*/
|
|
56
|
+
private getAllModules;
|
|
57
|
+
/**
|
|
58
|
+
* Load tags
|
|
59
|
+
*/
|
|
60
|
+
protected loadTags(): void;
|
|
61
|
+
/**
|
|
62
|
+
* Load topics
|
|
63
|
+
*/
|
|
64
|
+
private loadTopics;
|
|
65
|
+
/**
|
|
66
|
+
* Show hide filter pane manually
|
|
67
|
+
*/
|
|
68
|
+
protected toggleFilterPane(): void;
|
|
69
|
+
/**
|
|
70
|
+
* Show hide filter pane manually
|
|
71
|
+
*/
|
|
72
|
+
protected toggleFilterPane2(): void;
|
|
73
|
+
/**
|
|
74
|
+
* Handle filter pane visibility
|
|
75
|
+
*/
|
|
76
|
+
protected handleFilterPaneVisibility(): void;
|
|
77
|
+
/**
|
|
78
|
+
* Initialize filter
|
|
79
|
+
*/
|
|
80
|
+
private initializeFilter;
|
|
81
|
+
/**
|
|
82
|
+
* Update filter when channels changes
|
|
83
|
+
*/
|
|
84
|
+
protected channelsChanged(): void;
|
|
85
|
+
/**
|
|
86
|
+
* Update filter pane focus
|
|
87
|
+
*/
|
|
88
|
+
private updateFilterPaneFocus;
|
|
89
|
+
/**
|
|
90
|
+
* Load filters
|
|
91
|
+
*/
|
|
92
|
+
protected loadFilters(): void;
|
|
93
|
+
/**
|
|
94
|
+
* Save a filter
|
|
95
|
+
* @param newFilter: true to save a new filter. Default is false.
|
|
96
|
+
*/
|
|
97
|
+
saveFilter(newFilter?: boolean): void;
|
|
98
|
+
/**
|
|
99
|
+
* Delete a filter
|
|
100
|
+
*/
|
|
101
|
+
deleteFilter(): void;
|
|
102
|
+
/**
|
|
103
|
+
* Select a filter
|
|
104
|
+
*/
|
|
105
|
+
selectFilter(item: NameValueItem<ClipperUserSearch> | null): void;
|
|
106
|
+
/**
|
|
107
|
+
* Clear current filter params
|
|
108
|
+
*/
|
|
109
|
+
protected clearFilter(): void;
|
|
110
|
+
/**
|
|
111
|
+
* Load selected filter
|
|
112
|
+
*/
|
|
113
|
+
private loadFilter;
|
|
114
|
+
/**
|
|
115
|
+
* Apply current filter params
|
|
116
|
+
*/
|
|
117
|
+
protected applyFilter(): void;
|
|
118
|
+
/**
|
|
119
|
+
* Check if a block of expandable options has a filter on
|
|
120
|
+
* @param block : the block id
|
|
121
|
+
* @returns true if at least a value is set
|
|
122
|
+
*/
|
|
123
|
+
protected hasFilterBlock(block: 'source' | 'other'): boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Manage sectors selection changes
|
|
126
|
+
*/
|
|
127
|
+
protected sectorsChanged(): void;
|
|
128
|
+
/**
|
|
129
|
+
* Check if any search parameter has been set
|
|
130
|
+
* @param params : the search params to check
|
|
131
|
+
* @returns true if at least one parameters has been set
|
|
132
|
+
*/
|
|
133
|
+
private isFiltering;
|
|
134
|
+
/**
|
|
135
|
+
* Checkif a single module is selected
|
|
136
|
+
* @param module : the module to check
|
|
137
|
+
* @returns : true if the specified module is the only one selected
|
|
138
|
+
*/
|
|
139
|
+
private isSingleModule;
|
|
140
|
+
/**
|
|
141
|
+
* Update modules unread items
|
|
142
|
+
*/
|
|
143
|
+
private updateModulesUnreadItems;
|
|
144
|
+
/**
|
|
145
|
+
* Checks if a module is supported
|
|
146
|
+
* @param module : the module to check
|
|
147
|
+
* @returns true if the module is supported
|
|
148
|
+
*/
|
|
149
|
+
private hasModule;
|
|
150
|
+
/**
|
|
151
|
+
* Manage module selection changes
|
|
152
|
+
*/
|
|
153
|
+
protected modulesChanged(): void;
|
|
154
|
+
/**
|
|
155
|
+
* Check modules against current selected in filter
|
|
156
|
+
* @param modules : the modules to check for
|
|
157
|
+
* @param mode : thc check mode: 1) exactly all elements 2) all elements 3) any of the elements specified
|
|
158
|
+
* @returns true if the check is successfull
|
|
159
|
+
*/
|
|
160
|
+
private checkModules;
|
|
161
|
+
/**
|
|
162
|
+
* Prepare the module specific query
|
|
163
|
+
* @param newSearch : true if is a new search
|
|
164
|
+
* @returns the new search params
|
|
165
|
+
*/
|
|
166
|
+
private prepareFetch;
|
|
167
|
+
/**
|
|
168
|
+
* Update filter description
|
|
169
|
+
*/
|
|
170
|
+
private updateFilterDescription;
|
|
171
|
+
/**
|
|
172
|
+
* Get facets
|
|
173
|
+
* @param params: the clipper search params
|
|
174
|
+
*/
|
|
175
|
+
protected fetchFacets(params: ClipperSearchParams): void;
|
|
176
|
+
/**
|
|
177
|
+
* Hide facets
|
|
178
|
+
*/
|
|
179
|
+
protected hideFacets(): void;
|
|
180
|
+
/**
|
|
181
|
+
* Fetch data
|
|
182
|
+
* @param newSearch true if is a new search
|
|
183
|
+
*/
|
|
184
|
+
protected fetch(newSearch?: boolean): void;
|
|
185
|
+
/**
|
|
186
|
+
* Show a new page result
|
|
187
|
+
* @param e : the MatPaginator PageEvent data
|
|
188
|
+
*/
|
|
189
|
+
protected fetchMore(e: PageEvent): void;
|
|
190
|
+
/**
|
|
191
|
+
* Change sort
|
|
192
|
+
* @param new sort: the new sort value
|
|
193
|
+
*/
|
|
194
|
+
protected sort(newSort: NameValueItem<any> | null): void;
|
|
195
|
+
/**
|
|
196
|
+
* Add a topic
|
|
197
|
+
*/
|
|
198
|
+
protected addTopic(): void;
|
|
199
|
+
/**
|
|
200
|
+
* Remove a topic
|
|
201
|
+
*/
|
|
202
|
+
protected deleteTopic(item: NameValueItem<string>): void;
|
|
203
|
+
/**
|
|
204
|
+
* Clear all topics
|
|
205
|
+
*/
|
|
206
|
+
protected clearTopics(): void;
|
|
207
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClipperBrowserComponent, never>;
|
|
208
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ClipperBrowserComponent, "clipper-browser", never, { "showChannels": { "alias": "showChannels"; "required": false; "isSignal": true; }; "selectableModules": { "alias": "selectableModules"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "initialModule": { "alias": "initialModule"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
209
|
+
}
|
|
@@ -3983,5 +3983,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
3983
3983
|
* Generated bundle index. Do not edit.
|
|
3984
3984
|
*/
|
|
3985
3985
|
|
|
3986
|
-
export { ClipperBrowserDialogComponent, ClipperDocumentComponent, ClipperDocumentIndexComponent, ClipperDocumentManager, ClipperDocumentMenuComponent, ClipperDocumentsUtils, ClipperReferencesComponent, ClipperSearchCalendarComponent, ClipperSearchFacetsComponent, ClipperSearchFreeTextHelpComponent, ClipperSearchFreeTextQueryBuilderComponent, ClipperSearchResultItemComponent, ClipperSearchResultItemDisplayMode, ClipperSearchResultManager };
|
|
3986
|
+
export { ClipperBrowserComponent, ClipperBrowserDialogComponent, ClipperDocumentComponent, ClipperDocumentIndexComponent, ClipperDocumentManager, ClipperDocumentMenuComponent, ClipperDocumentsUtils, ClipperReferencesComponent, ClipperSearchCalendarComponent, ClipperSearchFacetsComponent, ClipperSearchFreeTextHelpComponent, ClipperSearchFreeTextQueryBuilderComponent, ClipperSearchResultItemComponent, ClipperSearchResultItemDisplayMode, ClipperSearchResultManager };
|
|
3987
3987
|
//# sourceMappingURL=arsedizioni-ars-utils-clipper.ui.mjs.map
|