@arsedizioni/ars-utils 18.1.74 → 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 +25 -28
- 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 +25 -28
- 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 +6 -10
- 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
|
@@ -6,6 +6,5 @@ export declare class ArsClipperCommonModule {
|
|
|
6
6
|
static ɵinj: i0.ɵɵInjectorDeclaration<ArsClipperCommonModule>;
|
|
7
7
|
}
|
|
8
8
|
export * from './messages';
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './clipper';
|
|
9
|
+
export * from './definitions';
|
|
11
10
|
export * from './services/clipper.service';
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { NameValueItem } from '@arsedizioni/ars-utils/core';
|
|
2
|
+
export declare enum ClipperSelectionMode {
|
|
3
|
+
Single = 1,
|
|
4
|
+
Multi = 2,
|
|
5
|
+
Any = 3
|
|
6
|
+
}
|
|
7
|
+
export declare enum ClipperModuleGroup {
|
|
8
|
+
Home = 0,
|
|
9
|
+
NormativaVigente = 1,
|
|
10
|
+
RimaniAggiornato = 2,
|
|
11
|
+
Contributi = 3,
|
|
12
|
+
DGInfo = 4,
|
|
13
|
+
Calendario = 11,
|
|
14
|
+
Archivio = 12
|
|
15
|
+
}
|
|
16
|
+
export declare enum ClipperModule {
|
|
17
|
+
NormativaVigente = 101,
|
|
18
|
+
News = 201,
|
|
19
|
+
GazzetteBollettiniEFontiDiverse = 202,
|
|
20
|
+
Giurisprudenza = 203,
|
|
21
|
+
ModificheAbrogazioniERinvii = 204,
|
|
22
|
+
ScadenzeESegnalazioni = 205,
|
|
23
|
+
AllerteAlimentari = 206,
|
|
24
|
+
Approfondimenti = 301,
|
|
25
|
+
QuesitiECasiRisolti = 302,
|
|
26
|
+
MetodiDiAnalisi = 303,
|
|
27
|
+
Search = 999
|
|
28
|
+
}
|
|
29
|
+
export declare enum ClipperModel {
|
|
30
|
+
Unknown = 0,
|
|
31
|
+
AggiornamentoNormativo = 2,
|
|
32
|
+
News = 3,
|
|
33
|
+
Articoli = 4,
|
|
34
|
+
Juris = 5,
|
|
35
|
+
Quesiti = 6,
|
|
36
|
+
NormativaVigente = 9,
|
|
37
|
+
Scadenza = 10,
|
|
38
|
+
Coordinamento = 11,
|
|
39
|
+
AllerteAlimentari = 13,
|
|
40
|
+
MetodiDiAnalisi = 14,
|
|
41
|
+
Segnalazione = 20
|
|
42
|
+
}
|
|
43
|
+
export declare const ClipperModels: NameValueItem<number>[];
|
|
44
|
+
export declare const ClipperModuleGroups: NameValueItem<number>[];
|
|
45
|
+
export declare const ClipperModules: NameValueItem<number>[];
|
|
46
|
+
export declare const ClipperChannels: NameValueItem<string>[];
|
|
47
|
+
export declare const ClipperRegions: NameValueItem<string>[];
|
|
48
|
+
export interface SectorInfo extends NameValueItem<string> {
|
|
49
|
+
shortName?: string | null;
|
|
50
|
+
group?: string | null;
|
|
51
|
+
channels?: string | null;
|
|
52
|
+
sectorId?: string | null;
|
|
53
|
+
}
|
|
54
|
+
export declare const ClipperSectors: SectorInfo[];
|
|
55
|
+
export declare const ClipperSectorTypes: NameValueItem<string>[];
|
|
56
|
+
export declare const ClipperAuthors: SectorInfo[];
|
|
57
|
+
export declare const ClipperSources: NameValueItem<string>[];
|
|
58
|
+
export interface ClipperSearchParams {
|
|
59
|
+
searchId?: number | null;
|
|
60
|
+
searchName?: string | null;
|
|
61
|
+
text?: string | null;
|
|
62
|
+
title?: string | null;
|
|
63
|
+
titleOnly?: boolean | null;
|
|
64
|
+
showUnreadDocumentsOnly?: boolean | null;
|
|
65
|
+
showCommentedDocumentsOnly?: boolean | null;
|
|
66
|
+
number?: string | null;
|
|
67
|
+
fromDate?: Date | null;
|
|
68
|
+
toDate?: Date | null;
|
|
69
|
+
year?: number | null;
|
|
70
|
+
sourceNumber?: string | null;
|
|
71
|
+
source?: string | null;
|
|
72
|
+
sourceFromDate?: Date | null;
|
|
73
|
+
sourceToDate?: Date | null;
|
|
74
|
+
sourceYear?: number | null;
|
|
75
|
+
sector?: string | null;
|
|
76
|
+
sectors?: SectorInfo[] | null;
|
|
77
|
+
topic?: string | null;
|
|
78
|
+
taxonomy?: string | null;
|
|
79
|
+
taxonomyPath?: string | null;
|
|
80
|
+
taxonomyNode?: string | null;
|
|
81
|
+
type?: string | null;
|
|
82
|
+
author?: string | null;
|
|
83
|
+
authors?: NameValueItem<string>[] | null;
|
|
84
|
+
changeReason?: number | null;
|
|
85
|
+
changedNumber?: string | null;
|
|
86
|
+
changedYear?: number | null;
|
|
87
|
+
changedTitle?: string | null;
|
|
88
|
+
modifierNumber?: string | null;
|
|
89
|
+
modifierYear?: number | null;
|
|
90
|
+
modifierTitle?: string | null;
|
|
91
|
+
model?: number | null;
|
|
92
|
+
module?: number | null;
|
|
93
|
+
channels?: NameValueItem<string>[] | null;
|
|
94
|
+
count?: number | null;
|
|
95
|
+
documentId?: string | null;
|
|
96
|
+
documentSnapshotMode?: ClipperDocumentSnapshotMode | null;
|
|
97
|
+
anchor?: string | null;
|
|
98
|
+
excludeTextReferences?: boolean | null;
|
|
99
|
+
excludeNotesReferences?: boolean | null;
|
|
100
|
+
useModifierInfo?: boolean | null;
|
|
101
|
+
returnModifierInfo?: boolean | null;
|
|
102
|
+
first?: number | null;
|
|
103
|
+
sortMode?: number | null;
|
|
104
|
+
}
|
|
105
|
+
export declare const ClipperDocumentChangeReason: NameValueItem<number>[];
|
|
106
|
+
export interface ClipperDocumentAnchorInfo {
|
|
107
|
+
documentId: string;
|
|
108
|
+
type: number;
|
|
109
|
+
typeDescription: string;
|
|
110
|
+
text: string;
|
|
111
|
+
title?: string | null;
|
|
112
|
+
uri: string;
|
|
113
|
+
ordinal: string;
|
|
114
|
+
score: number;
|
|
115
|
+
veryRelevant?: boolean | null;
|
|
116
|
+
}
|
|
117
|
+
export interface ClipperDocumentIndexInfo {
|
|
118
|
+
type: number;
|
|
119
|
+
typeDescription: string;
|
|
120
|
+
text: string;
|
|
121
|
+
title?: string | null;
|
|
122
|
+
description?: string | null;
|
|
123
|
+
value: string;
|
|
124
|
+
level: number;
|
|
125
|
+
}
|
|
126
|
+
export interface ClipperDocumentRelevants {
|
|
127
|
+
items: ClipperDocumentAnchorInfo[];
|
|
128
|
+
hits: number;
|
|
129
|
+
hit: number;
|
|
130
|
+
minimumScore: number;
|
|
131
|
+
}
|
|
132
|
+
export interface ClipperDocumentInfo {
|
|
133
|
+
id?: string | null;
|
|
134
|
+
documentId?: string | null;
|
|
135
|
+
model: number;
|
|
136
|
+
modelName?: string | null;
|
|
137
|
+
module?: number | null;
|
|
138
|
+
moduleName?: string | null;
|
|
139
|
+
group?: string | null;
|
|
140
|
+
title2?: string | null;
|
|
141
|
+
title1?: string | null;
|
|
142
|
+
number?: string | null;
|
|
143
|
+
date?: Date | null;
|
|
144
|
+
publishingDate?: Date | null;
|
|
145
|
+
sourceNumber?: string | null;
|
|
146
|
+
sourceDate?: Date | null;
|
|
147
|
+
source?: string | null;
|
|
148
|
+
origin?: string | null;
|
|
149
|
+
originDescription?: string | null;
|
|
150
|
+
author?: string | null;
|
|
151
|
+
anchors?: ClipperDocumentAnchorInfo[] | null;
|
|
152
|
+
taxonomy?: string | null;
|
|
153
|
+
info?: string | null;
|
|
154
|
+
isRead?: boolean | null;
|
|
155
|
+
isExportable?: boolean | null;
|
|
156
|
+
isCommented?: boolean | null;
|
|
157
|
+
isJuris?: boolean | null;
|
|
158
|
+
isOver?: boolean | null;
|
|
159
|
+
isTrial?: boolean | null;
|
|
160
|
+
isMenuOpen?: boolean | null;
|
|
161
|
+
validityState?: number | null;
|
|
162
|
+
validUntilDate?: Date | null;
|
|
163
|
+
validityDescription?: string | null;
|
|
164
|
+
validityInfo?: string | null;
|
|
165
|
+
expiringDate?: Date | null;
|
|
166
|
+
expiringDescription?: string | null;
|
|
167
|
+
expiringInfo?: string | null;
|
|
168
|
+
popularity?: number | null;
|
|
169
|
+
part?: number | null;
|
|
170
|
+
primaryId?: string | null;
|
|
171
|
+
primaryDescription?: string | null;
|
|
172
|
+
primaryModel?: number | null;
|
|
173
|
+
hasPrimary?: boolean | null;
|
|
174
|
+
secondaryId?: string | null;
|
|
175
|
+
bag: any | null;
|
|
176
|
+
lastUpdate?: Date | null;
|
|
177
|
+
}
|
|
178
|
+
export declare class ClipperSearchResult {
|
|
179
|
+
days?: string | null;
|
|
180
|
+
interval?: string | null;
|
|
181
|
+
items?: ClipperDocumentInfo[] | null;
|
|
182
|
+
facets?: ClipperSearchFacetsSnapshot | null;
|
|
183
|
+
total?: number | null;
|
|
184
|
+
searchInfo?: any | null;
|
|
185
|
+
searchParams?: ClipperSearchParams | null;
|
|
186
|
+
snapshotMode?: ClipperDocumentSnapshotMode | null;
|
|
187
|
+
}
|
|
188
|
+
export interface ClipperSearchFacet {
|
|
189
|
+
type: number;
|
|
190
|
+
typeName: string;
|
|
191
|
+
title: string;
|
|
192
|
+
value: string;
|
|
193
|
+
count: number;
|
|
194
|
+
}
|
|
195
|
+
export interface ClipperSearchFacetGroup {
|
|
196
|
+
name: string;
|
|
197
|
+
selectedValue?: string | null;
|
|
198
|
+
selectedValueDescription?: string | null;
|
|
199
|
+
values: ClipperSearchFacet[];
|
|
200
|
+
index: number;
|
|
201
|
+
}
|
|
202
|
+
export interface ClipperSearchFacetsResult {
|
|
203
|
+
interval?: string | null;
|
|
204
|
+
facets?: ClipperSearchFacet[][] | null;
|
|
205
|
+
total?: number | null;
|
|
206
|
+
}
|
|
207
|
+
export declare class ClipperSearchFacetsSnapshot {
|
|
208
|
+
groups: ClipperSearchFacetGroup[];
|
|
209
|
+
usedGroups: ClipperSearchFacetGroup[];
|
|
210
|
+
hasFacets: boolean;
|
|
211
|
+
hasTooManyResults: boolean;
|
|
212
|
+
sector?: string | null;
|
|
213
|
+
author?: string | null;
|
|
214
|
+
anchor?: string | null;
|
|
215
|
+
type?: string | null;
|
|
216
|
+
reason?: string | null;
|
|
217
|
+
fromDate?: Date | null;
|
|
218
|
+
toDate?: Date | null;
|
|
219
|
+
interval?: string | null;
|
|
220
|
+
changedInterval: boolean;
|
|
221
|
+
changedSector: boolean;
|
|
222
|
+
changedAuthor: boolean;
|
|
223
|
+
changedAnchor: boolean;
|
|
224
|
+
changedType: boolean;
|
|
225
|
+
changedReason: boolean;
|
|
226
|
+
}
|
|
227
|
+
export interface ClipperSearchCalendarSnapshotMonth {
|
|
228
|
+
days: number[];
|
|
229
|
+
monthShortName: string;
|
|
230
|
+
monthName: string;
|
|
231
|
+
month: number;
|
|
232
|
+
year: number;
|
|
233
|
+
total: number;
|
|
234
|
+
expired: number;
|
|
235
|
+
expiring: number;
|
|
236
|
+
}
|
|
237
|
+
export declare class ClipperSearchCalendarSnapshotResult {
|
|
238
|
+
months?: ClipperSearchCalendarSnapshotMonth[] | null;
|
|
239
|
+
}
|
|
240
|
+
export declare const ClipperConfig: any;
|
|
241
|
+
export declare enum ClipperSort {
|
|
242
|
+
Default = 0,
|
|
243
|
+
Relevance = 1,
|
|
244
|
+
DateAsc = 2,
|
|
245
|
+
DateDesc = 3,
|
|
246
|
+
SourceDateAsc = 4,
|
|
247
|
+
SourceDateDesc = 5,
|
|
248
|
+
Popularity = 6
|
|
249
|
+
}
|
|
250
|
+
export declare enum ClipperDocumentSnapshotMode {
|
|
251
|
+
ReferencesIn = 1,
|
|
252
|
+
ReferencesOut = 2,
|
|
253
|
+
ChangesIn = 3,
|
|
254
|
+
ChangesOut = 5,
|
|
255
|
+
Juris = 4
|
|
256
|
+
}
|
|
257
|
+
export declare enum ClipperFacet {
|
|
258
|
+
Sector = 1,
|
|
259
|
+
Year = 2,
|
|
260
|
+
DocumentType = 3,
|
|
261
|
+
Topic = 4,
|
|
262
|
+
Article = 5,
|
|
263
|
+
Author = 6,
|
|
264
|
+
Reason = 95
|
|
265
|
+
}
|
|
266
|
+
export declare class ClipperUtils {
|
|
267
|
+
/**
|
|
268
|
+
* Return the Clipper group name
|
|
269
|
+
* @param value: the group value
|
|
270
|
+
* @returns the group name
|
|
271
|
+
*/
|
|
272
|
+
static getClipperModuleGroupName(value: ClipperModuleGroup): string;
|
|
273
|
+
/**
|
|
274
|
+
* Return the list of modules of a group
|
|
275
|
+
* @param value: the module name
|
|
276
|
+
* @returns the list of modules
|
|
277
|
+
*/
|
|
278
|
+
static getClipperModuleGroupItems(value: ClipperModuleGroup): NameValueItem<number>[];
|
|
279
|
+
/**
|
|
280
|
+
* Return the list of available sort options for a list of modules
|
|
281
|
+
* @param modules : the modules list
|
|
282
|
+
* @returns the list of availbale sort options
|
|
283
|
+
*/
|
|
284
|
+
static getClipperAvailableSortOptions(modules?: NameValueItem<number>[] | undefined, params?: ClipperSearchParams | undefined): NameValueItem<number>[];
|
|
285
|
+
}
|
|
286
|
+
export declare class ClipperSearchUtils {
|
|
287
|
+
/**
|
|
288
|
+
* Clear the search params object
|
|
289
|
+
* @param params : the search params to clear
|
|
290
|
+
*/
|
|
291
|
+
static clear(params: ClipperSearchParams): void;
|
|
292
|
+
/**
|
|
293
|
+
* Prepare the module specific query
|
|
294
|
+
* @param params : the search params to use
|
|
295
|
+
* @param module : the module to prepare the search params for
|
|
296
|
+
* @returns the new search params
|
|
297
|
+
*/
|
|
298
|
+
static prepare(params: ClipperSearchParams, module: ClipperModule): ClipperSearchParams;
|
|
299
|
+
/**
|
|
300
|
+
* Check if current filter is a text based search
|
|
301
|
+
* @param params : the search params to check
|
|
302
|
+
* @returns true if is a text based search
|
|
303
|
+
*/
|
|
304
|
+
static isTextQuery(params: ClipperSearchParams): boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Try to add a query
|
|
307
|
+
* @param q : the new query
|
|
308
|
+
* @param queries : the new query
|
|
309
|
+
*/
|
|
310
|
+
private static concatTextQuery;
|
|
311
|
+
/**
|
|
312
|
+
* Normalize text query
|
|
313
|
+
* @param text : the text query to normalize
|
|
314
|
+
* @returns : the text normalized or null
|
|
315
|
+
*/
|
|
316
|
+
static normalizeTextQuery(text: string): string | null;
|
|
317
|
+
}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { ClipperService } from '../services/clipper.service';
|
|
4
|
-
import { DialogService } from '@arsedizioni/ars-utils/ui';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class ClipperAuthInterceptor implements HttpInterceptor {
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
constructor($clipper: ClipperService, $dialog: DialogService);
|
|
5
|
+
private clipperService;
|
|
6
|
+
private dialogService;
|
|
10
7
|
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
11
8
|
/**
|
|
12
9
|
* Add token to request
|
|
@@ -10,6 +10,10 @@ export declare const ClipperMessages: {
|
|
|
10
10
|
DOCUMENT_NAVIGATED: string;
|
|
11
11
|
DOCUMENT_SELECTED: string;
|
|
12
12
|
DOCUMENT_SELECTED_INNER: string;
|
|
13
|
+
COMMAND_ARCHIVE_ADD: string;
|
|
14
|
+
COMMAND_CALENDAR_ADD: string;
|
|
15
|
+
COMMAND_WORKING_ADD: string;
|
|
16
|
+
COMMAND_SEARCH_RESTORED: string;
|
|
13
17
|
INTEROP_RS_NEW_LAW: string;
|
|
14
18
|
INTEROP_RS_NEW_ACTIVITY: string;
|
|
15
19
|
INTEROP_RS_USAGE_REPORT: string;
|
|
@@ -1,41 +1,17 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { OnDestroy } from '@angular/core';
|
|
3
|
-
import { ApiResult,
|
|
4
|
-
import { DialogService } from '@arsedizioni/ars-utils/ui';
|
|
2
|
+
import { ApiResult, LoginInfo, LoginResult, Scrollable } from '@arsedizioni/ars-utils/core';
|
|
5
3
|
import { Observable } from 'rxjs';
|
|
6
|
-
import {
|
|
4
|
+
import { ClipperDocumentInfo, ClipperSearchResult } from '../definitions';
|
|
7
5
|
import * as i0 from "@angular/core";
|
|
8
|
-
export interface DocumentReferenceSnapshot {
|
|
9
|
-
mode?: number;
|
|
10
|
-
facets?: any;
|
|
11
|
-
searchParams?: any;
|
|
12
|
-
items?: any;
|
|
13
|
-
total?: number;
|
|
14
|
-
}
|
|
15
|
-
export interface DocumentSearchSnapshot {
|
|
16
|
-
searchInfo?: any;
|
|
17
|
-
searchParams?: ClipperSearchParams;
|
|
18
|
-
items?: any;
|
|
19
|
-
interval?: string;
|
|
20
|
-
total?: number;
|
|
21
|
-
facets?: any;
|
|
22
|
-
}
|
|
23
|
-
export interface DocumentInfo {
|
|
24
|
-
documentId: string;
|
|
25
|
-
title2?: string;
|
|
26
|
-
title1?: string;
|
|
27
|
-
number: string;
|
|
28
|
-
date: Date;
|
|
29
|
-
}
|
|
30
6
|
export declare class ClipperService implements OnDestroy {
|
|
31
|
-
private http;
|
|
32
|
-
private $broadcast;
|
|
33
|
-
private $dialog;
|
|
34
7
|
private readonly REFRESH_INTERVAL;
|
|
8
|
+
private httpClient;
|
|
9
|
+
private broadcastService;
|
|
10
|
+
private dialogService;
|
|
35
11
|
private refreshing;
|
|
36
12
|
private tokenRefreshTimer?;
|
|
37
13
|
private tokenRefreshTimerSubscription?;
|
|
38
|
-
private
|
|
14
|
+
private broadcastServiceSubscription?;
|
|
39
15
|
private _loginInfo;
|
|
40
16
|
get loginInfo(): LoginInfo;
|
|
41
17
|
private _loggedIn;
|
|
@@ -50,13 +26,13 @@ export declare class ClipperService implements OnDestroy {
|
|
|
50
26
|
private _scrollable;
|
|
51
27
|
get scrollable(): Scrollable;
|
|
52
28
|
private _referencesSnapshot;
|
|
53
|
-
get referencesSnapshot():
|
|
54
|
-
set referencesSnapshot(value:
|
|
29
|
+
get referencesSnapshot(): ClipperSearchResult;
|
|
30
|
+
set referencesSnapshot(value: ClipperSearchResult);
|
|
55
31
|
private _snapshot;
|
|
56
|
-
get snapshot():
|
|
57
|
-
set snapshot(value:
|
|
32
|
+
get snapshot(): ClipperSearchResult;
|
|
33
|
+
set snapshot(value: ClipperSearchResult);
|
|
58
34
|
private _bag;
|
|
59
|
-
get bag():
|
|
35
|
+
get bag(): ClipperDocumentInfo[];
|
|
60
36
|
private _visible;
|
|
61
37
|
get visible(): boolean;
|
|
62
38
|
set visible(value: boolean);
|
|
@@ -66,7 +42,7 @@ export declare class ClipperService implements OnDestroy {
|
|
|
66
42
|
private _servicePrefix;
|
|
67
43
|
get servicePrefix(): string;
|
|
68
44
|
set servicePrefix(value: string);
|
|
69
|
-
constructor(
|
|
45
|
+
constructor();
|
|
70
46
|
ngOnDestroy(): void;
|
|
71
47
|
/**
|
|
72
48
|
* Initialize service
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import {
|
|
3
|
-
import { ClipperService } from '@arsedizioni/ars-utils/clipper.common';
|
|
4
|
-
import { ClipperDocumentComponent } from './document.component';
|
|
2
|
+
import { ClipperDocumentComponent } from './ui/document/document.component';
|
|
5
3
|
export declare class ClipperDocumentsUtils {
|
|
6
4
|
/**
|
|
7
5
|
* Open a document
|
|
8
|
-
* @param dialog : the dialog service
|
|
9
|
-
* @param clipper : the clipper service
|
|
10
6
|
* @param documentId : the document id
|
|
11
7
|
* @param query : the query for highlight
|
|
12
8
|
* @param selectionMode : the selection mode (1 = single, 2 = multiple, 3 = any selection)
|
|
13
9
|
*/
|
|
14
|
-
static openDocument(
|
|
10
|
+
static openDocument(documentId: string, query?: string, selectionMode?: number): MatDialogRef<ClipperDocumentComponent> | null;
|
|
15
11
|
/**
|
|
16
12
|
* Extract document title
|
|
17
13
|
* @param title : the full document title
|
|
@@ -4,10 +4,11 @@ export * from './ui/search-facets/search-facets.component';
|
|
|
4
4
|
export * from './ui/search-free-text-help/search-free-text-help.component';
|
|
5
5
|
export * from './ui/search-free-text-query-builder/search-free-text-query-builder.component';
|
|
6
6
|
export * from './ui/search-result-item/search-result-item.component';
|
|
7
|
-
export * from './ui/
|
|
7
|
+
export * from './ui/search-calendar/search-calendar.component';
|
|
8
|
+
export * from './ui/search-result-manager/search-result-manager';
|
|
8
9
|
export * from './ui/references/references.component';
|
|
9
|
-
export * from './ui/document/base/document-base.component';
|
|
10
10
|
export * from './ui/document/document.component';
|
|
11
|
-
export * from './ui/document
|
|
12
|
-
export * from './ui/document
|
|
13
|
-
export * from './
|
|
11
|
+
export * from './ui/document-index/document-index.component';
|
|
12
|
+
export * from './ui/document-menu/document-menu.component';
|
|
13
|
+
export * from './documents';
|
|
14
|
+
export * from './ui/document-manager/document-manager';
|
|
@@ -1,82 +1,37 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { MatPaginator } from '@angular/material/paginator';
|
|
6
|
-
import { MatSidenav } from '@angular/material/sidenav';
|
|
7
|
-
import { BroadcastService, ScreenService, SelectableModel } from '@arsedizioni/ars-utils/core';
|
|
8
|
-
import { ClipperService, ClipperDialogData, DocumentSearchSnapshot } from '@arsedizioni/ars-utils/clipper.common';
|
|
9
|
-
import { ClipperDocumentBaseComponent } from '../document/base/document-base.component';
|
|
10
|
-
import { ClipperSearchFacetsComponent } from '../search-facets/search-facets.component';
|
|
11
|
-
import { ClipperLast15DaysComponent } from '../last-15-days/last-15-days.component';
|
|
12
|
-
import { ApplicationDialogService } from '@arsedizioni/ars-utils/ui.application';
|
|
1
|
+
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDrawer } from '@angular/material/sidenav';
|
|
3
|
+
import { ClipperSearchResult, ClipperSelectionMode } from '@arsedizioni/ars-utils/clipper.common';
|
|
4
|
+
import { ClipperSearchResultManager } from '../search-result-manager/search-result-manager';
|
|
13
5
|
import * as i0 from "@angular/core";
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
export interface ClipperBrowserDialogData {
|
|
7
|
+
selectionMode?: ClipperSelectionMode | null;
|
|
8
|
+
selectableModels?: number[] | null;
|
|
9
|
+
initialModel?: number | null;
|
|
10
|
+
}
|
|
11
|
+
export declare class ClipperBrowserDialogComponent extends ClipperSearchResultManager implements OnInit, OnDestroy, AfterViewInit {
|
|
12
|
+
filterPane: MatDrawer;
|
|
13
|
+
private height;
|
|
19
14
|
private dialogRef;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
contextMenu: MatMenuTrigger;
|
|
26
|
-
private __d$;
|
|
27
|
-
dialogTab: number;
|
|
28
|
-
data: ClipperDialogData;
|
|
29
|
-
title: string;
|
|
30
|
-
trackableId: (index: number, item: any) => void;
|
|
31
|
-
selection: SelectableModel<any, string>;
|
|
32
|
-
snapshot: DocumentSearchSnapshot;
|
|
33
|
-
facetsMode: string;
|
|
34
|
-
facetsClosed: boolean;
|
|
35
|
-
currentModel: string;
|
|
36
|
-
currentSort: string;
|
|
37
|
-
contentHeight: number;
|
|
38
|
-
contextMenuPosition: {
|
|
39
|
-
x: string;
|
|
40
|
-
y: string;
|
|
41
|
-
};
|
|
42
|
-
mq: string;
|
|
43
|
-
item: any;
|
|
44
|
-
constructor($dialog: ApplicationDialogService, $clipper: ClipperService, $screen: ScreenService, $broadcast: BroadcastService, dialogRef: MatDialogRef<ClipperBrowserDialogComponent>, media: MediaObserver, _data: ClipperDialogData);
|
|
15
|
+
protected dialogData: ClipperBrowserDialogData;
|
|
16
|
+
protected title: string;
|
|
17
|
+
protected snapshot: ClipperSearchResult;
|
|
18
|
+
protected currentModel: string;
|
|
19
|
+
protected currentSort: string;
|
|
45
20
|
ngOnInit(): void;
|
|
46
21
|
ngOnDestroy(): void;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Update sidenav visibility
|
|
50
|
-
* @param mq : the current media query
|
|
51
|
-
*/
|
|
52
|
-
updateFacetsVisibility(mq?: string): void;
|
|
22
|
+
ngAfterViewInit(): void;
|
|
53
23
|
/**
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Close facets sidebar
|
|
59
|
-
* @param closedManually : ture if facets has been closed manually by clicking the button
|
|
60
|
-
*/
|
|
61
|
-
facetsClose(closedManually?: boolean): void;
|
|
62
|
-
/**
|
|
63
|
-
* Get facets
|
|
64
|
-
* @param searchParams : the current search params to use to gather facets
|
|
65
|
-
*/
|
|
66
|
-
getFacets(searchParams: any): void;
|
|
67
|
-
/**
|
|
68
|
-
* Get all selected ids
|
|
69
|
-
*/
|
|
70
|
-
getSeletectIds(): string[];
|
|
24
|
+
* Resize
|
|
25
|
+
*/
|
|
26
|
+
private resize;
|
|
71
27
|
/**
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
28
|
+
* Show hide filter pane manually
|
|
29
|
+
*/
|
|
30
|
+
protected toggleFilterPane(): void;
|
|
75
31
|
/**
|
|
76
|
-
*
|
|
77
|
-
* @parma args: event info
|
|
32
|
+
* Handle filter pane visibility
|
|
78
33
|
*/
|
|
79
|
-
|
|
34
|
+
private handleFilterPaneVisibility;
|
|
80
35
|
/**
|
|
81
36
|
* Checks if documents can be selected and returned as message
|
|
82
37
|
*/
|
|
@@ -94,22 +49,10 @@ export declare class ClipperBrowserDialogComponent extends ClipperDocumentBaseCo
|
|
|
94
49
|
* Reset scroll position
|
|
95
50
|
*/
|
|
96
51
|
resetScrollPosition(): void;
|
|
97
|
-
/**
|
|
98
|
-
* Update menu buttons visibility when the menu is closed
|
|
99
|
-
*/
|
|
100
|
-
updateMenuButtonsVisibility(): void;
|
|
101
52
|
/**
|
|
102
53
|
* Update sort
|
|
103
54
|
*/
|
|
104
55
|
updateSortOptions(): void;
|
|
105
|
-
/**
|
|
106
|
-
* Adjust view
|
|
107
|
-
*/
|
|
108
|
-
adjustView(): void;
|
|
109
|
-
/**
|
|
110
|
-
* Update view
|
|
111
|
-
*/
|
|
112
|
-
updateView(): void;
|
|
113
56
|
/**
|
|
114
57
|
* Update current search info
|
|
115
58
|
*/
|
|
@@ -125,6 +68,10 @@ export declare class ClipperBrowserDialogComponent extends ClipperDocumentBaseCo
|
|
|
125
68
|
* @param mode : the sort mode
|
|
126
69
|
*/
|
|
127
70
|
sortBy(mode: number): void;
|
|
71
|
+
/**
|
|
72
|
+
* Get facets
|
|
73
|
+
*/
|
|
74
|
+
fetchFacets(): void;
|
|
128
75
|
/**
|
|
129
76
|
* Perform a search using current params
|
|
130
77
|
*/
|
|
@@ -153,32 +100,6 @@ export declare class ClipperBrowserDialogComponent extends ClipperDocumentBaseCo
|
|
|
153
100
|
* Compose a free text search query
|
|
154
101
|
*/
|
|
155
102
|
composeSearch(): void;
|
|
156
|
-
/**
|
|
157
|
-
* Return item state css class
|
|
158
|
-
* @param item : the item to evaluate
|
|
159
|
-
*/
|
|
160
|
-
getItemStateCssClass(item: any): "item-expired-ind" | "item-popular-ind" | "item-very-popular-ind";
|
|
161
|
-
/**
|
|
162
|
-
* Return the item state tooltip text
|
|
163
|
-
* @param item : the item to evaluate
|
|
164
|
-
*/
|
|
165
|
-
getItemStateTooltip(item: any): "Non più vigente" | "Documento con numero di citazioni alto" | "Documento con numero di citazioni molto alto";
|
|
166
|
-
/**
|
|
167
|
-
* Send item link or all selected ones by email
|
|
168
|
-
* @param item : the optional item
|
|
169
|
-
*/
|
|
170
|
-
sendTo(item?: any): void;
|
|
171
|
-
/**
|
|
172
|
-
* Browse document references
|
|
173
|
-
* @param item : the document item
|
|
174
|
-
* @param mode : the mode
|
|
175
|
-
*/
|
|
176
|
-
references(item: any, mode?: number): void;
|
|
177
|
-
/**
|
|
178
|
-
* Display a document report
|
|
179
|
-
* @param item : the document
|
|
180
|
-
*/
|
|
181
|
-
report(item: any): void;
|
|
182
103
|
/**
|
|
183
104
|
* Perform search
|
|
184
105
|
*/
|
|
@@ -191,40 +112,6 @@ export declare class ClipperBrowserDialogComponent extends ClipperDocumentBaseCo
|
|
|
191
112
|
* Show free text help
|
|
192
113
|
*/
|
|
193
114
|
helpSearch(): void;
|
|
194
|
-
/**
|
|
195
|
-
* Manage clipper bag
|
|
196
|
-
*/
|
|
197
|
-
manageBag(): void;
|
|
198
|
-
/**
|
|
199
|
-
* Show home tab
|
|
200
|
-
*/
|
|
201
|
-
showHome(): void;
|
|
202
|
-
/**
|
|
203
|
-
* Expand or collapse home days view
|
|
204
|
-
* @param collapse
|
|
205
|
-
*/
|
|
206
|
-
expandHome(collapse?: boolean): void;
|
|
207
|
-
/**
|
|
208
|
-
* Checks if all documents are supported by RS
|
|
209
|
-
* @param documents : the list of documens
|
|
210
|
-
* @returns: true if all documents supports RS
|
|
211
|
-
*/
|
|
212
|
-
RS_enabled(documents: any): boolean;
|
|
213
|
-
/**
|
|
214
|
-
* New law
|
|
215
|
-
* @param document: the law
|
|
216
|
-
*/
|
|
217
|
-
RS_newLaw(document: any): void;
|
|
218
|
-
/**
|
|
219
|
-
* New activity
|
|
220
|
-
* @param document: the law
|
|
221
|
-
*/
|
|
222
|
-
RS_newActivity(document: any): void;
|
|
223
|
-
/**
|
|
224
|
-
* Document usage report
|
|
225
|
-
* @param document: the law
|
|
226
|
-
*/
|
|
227
|
-
RS_usageReport(document: any): void;
|
|
228
115
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClipperBrowserDialogComponent, never>;
|
|
229
116
|
static ɵcmp: i0.ɵɵComponentDeclaration<ClipperBrowserDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
230
117
|
}
|