@arsedizioni/ars-utils 18.2.10 → 18.2.11
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/definitions.d.ts +52 -2
- package/clipper.common/common/messages.d.ts +5 -0
- package/clipper.common/common/services/clipper.service.d.ts +13 -3
- package/clipper.ui/ui/document-manager/document-manager.d.ts +1 -1
- package/clipper.ui/ui/search-dialog/search-dialog.component.d.ts +2 -2
- package/core/definitions.d.ts +2 -2
- package/core/services/broadcast.service.d.ts +3 -7
- package/core/services/screen.service.d.ts +0 -12
- package/esm2022/clipper.common/common/definitions.mjs +14 -5
- package/esm2022/clipper.common/common/messages.mjs +8 -2
- package/esm2022/clipper.common/common/services/clipper.service.mjs +17 -3
- package/esm2022/clipper.ui/ui/document-manager/document-manager.mjs +1 -1
- package/esm2022/clipper.ui/ui/search-dialog/search-dialog.component.mjs +1 -1
- package/esm2022/core/definitions.mjs +1 -1
- package/esm2022/core/services/broadcast.service.mjs +1 -7
- package/esm2022/core/services/screen.service.mjs +3 -25
- package/esm2022/support.common/common/definitions.mjs +1 -1
- package/esm2022/support.common/common/services/support.service.mjs +2 -2
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +37 -8
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +3 -30
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/package.json +7 -7
- package/support.common/common/definitions.d.ts +25 -0
- package/support.common/common/services/support.service.d.ts +2 -2
|
@@ -43,7 +43,15 @@ export declare enum ClipperModel {
|
|
|
43
43
|
export declare const ClipperModels: NameValueItem<number>[];
|
|
44
44
|
export declare const ClipperModuleGroups: NameValueItem<number>[];
|
|
45
45
|
export declare const ClipperModules: NameValueItem<number>[];
|
|
46
|
-
export declare
|
|
46
|
+
export declare enum ClipperChannel {
|
|
47
|
+
None = 0,
|
|
48
|
+
LavoroEAmbiente = 1,
|
|
49
|
+
SostanzeAlimentari = 2,
|
|
50
|
+
MerciPericolose = 3,
|
|
51
|
+
Energia = 4,
|
|
52
|
+
DGInfo = 5
|
|
53
|
+
}
|
|
54
|
+
export declare const ClipperChannels: NameValueItem<ClipperChannel>[];
|
|
47
55
|
export declare const ClipperRegions: NameValueItem<string>[];
|
|
48
56
|
export interface SectorInfo extends NameValueItem<string> {
|
|
49
57
|
shortName?: string | null;
|
|
@@ -55,6 +63,38 @@ export declare const ClipperSectors: SectorInfo[];
|
|
|
55
63
|
export declare const ClipperSectorTypes: NameValueItem<string>[];
|
|
56
64
|
export declare const ClipperAuthors: SectorInfo[];
|
|
57
65
|
export declare const ClipperSources: NameValueItem<string>[];
|
|
66
|
+
export interface ClipperUserChannelInfo {
|
|
67
|
+
channel: ClipperChannel;
|
|
68
|
+
expiringDate: string;
|
|
69
|
+
isTrial?: boolean | null;
|
|
70
|
+
isDisabled: boolean;
|
|
71
|
+
isDvd: boolean;
|
|
72
|
+
isActive: boolean;
|
|
73
|
+
documentsViewable?: number | null;
|
|
74
|
+
documentsViewed?: number | null;
|
|
75
|
+
}
|
|
76
|
+
export interface ClipperUserInfo {
|
|
77
|
+
userId: number;
|
|
78
|
+
customerId?: number | null;
|
|
79
|
+
companyName: string;
|
|
80
|
+
displayName: string;
|
|
81
|
+
firstName: string;
|
|
82
|
+
email: string;
|
|
83
|
+
OAUTH?: boolean | null;
|
|
84
|
+
sessionId?: string | null;
|
|
85
|
+
scope: number;
|
|
86
|
+
isAuthenticated: boolean;
|
|
87
|
+
isTemporary: boolean;
|
|
88
|
+
hasTrial: boolean;
|
|
89
|
+
hasTeam: boolean;
|
|
90
|
+
channels: ClipperUserChannelInfo[];
|
|
91
|
+
firstChannelTrial: ClipperUserChannelInfo;
|
|
92
|
+
}
|
|
93
|
+
export interface ClipperLoginInfo {
|
|
94
|
+
context: ClipperUserInfo;
|
|
95
|
+
complianceContext?: any | null;
|
|
96
|
+
userCredentials?: string | null;
|
|
97
|
+
}
|
|
58
98
|
export declare class ClipperSearchParams {
|
|
59
99
|
searchId?: number | null;
|
|
60
100
|
searchName?: string | null;
|
|
@@ -91,7 +131,7 @@ export declare class ClipperSearchParams {
|
|
|
91
131
|
model?: number | null;
|
|
92
132
|
module?: number | null;
|
|
93
133
|
mode?: ClipperQueryReferencesMode | null;
|
|
94
|
-
channels?: NameValueItem<
|
|
134
|
+
channels?: NameValueItem<ClipperChannel>[] | null;
|
|
95
135
|
count?: number | null;
|
|
96
136
|
id?: string | null;
|
|
97
137
|
anchor?: string | null;
|
|
@@ -339,6 +379,16 @@ export interface ClipperUserWorkingDocument {
|
|
|
339
379
|
documentDescriptor: string;
|
|
340
380
|
timestamp: string;
|
|
341
381
|
}
|
|
382
|
+
export interface ClipperDeleteWorkingDocumentsParams {
|
|
383
|
+
documentIds: string[];
|
|
384
|
+
deleteAll: boolean;
|
|
385
|
+
}
|
|
386
|
+
export interface ClipperUserLink {
|
|
387
|
+
id: number;
|
|
388
|
+
userId: number;
|
|
389
|
+
userName: string;
|
|
390
|
+
key: string;
|
|
391
|
+
}
|
|
342
392
|
export declare class ClipperUtils {
|
|
343
393
|
/**
|
|
344
394
|
* Return the Clipper group name
|
|
@@ -6,15 +6,20 @@ export declare const ClipperMessages: {
|
|
|
6
6
|
LOGIN_COMPLETED: string;
|
|
7
7
|
LOGIN_DISCONNECTED: string;
|
|
8
8
|
LOGOUT_COMPLETED: string;
|
|
9
|
+
LOGOUT: string;
|
|
9
10
|
DOCUMENT_NAVIGATE: string;
|
|
10
11
|
DOCUMENT_NAVIGATED: string;
|
|
11
12
|
DOCUMENT_SELECTED: string;
|
|
12
13
|
DOCUMENT_SELECTED_INNER: string;
|
|
13
14
|
COMMAND_ARCHIVE_ADD: string;
|
|
14
15
|
COMMAND_CALENDAR_ADD: string;
|
|
16
|
+
COMMAND_WORKING_OPEN: string;
|
|
15
17
|
COMMAND_WORKING_ADD: string;
|
|
16
18
|
COMMAND_SEARCH_RESTORED: string;
|
|
19
|
+
COMMAND_SEARCH_EXECUTED: string;
|
|
20
|
+
COMMAND_HISTORY_OPEN: string;
|
|
17
21
|
INTEROP_RS_NEW_LAW: string;
|
|
18
22
|
INTEROP_RS_NEW_ACTIVITY: string;
|
|
19
23
|
INTEROP_RS_USAGE_REPORT: string;
|
|
24
|
+
UPDATE_RELOAD: string;
|
|
20
25
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { ApiResult, FolderTree, LoginInfo, LoginResult, NameValueItem } from '@arsedizioni/ars-utils/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { ClipperDocumentInfo, ClipperReferencesSearchParams, ClipperSearchFacetsResult, ClipperSearchParams, ClipperSearchResult, ClipperSendDocumentsByEmailParams, ClipperExportDocumentsParams, ClipperOTPInfo, ClipperDocumentStructure, ClipperTaxonomyParams, ClipperUserWorkingDocument } from '../definitions';
|
|
4
|
+
import { ClipperDocumentInfo, ClipperReferencesSearchParams, ClipperSearchFacetsResult, ClipperSearchParams, ClipperSearchResult, ClipperSendDocumentsByEmailParams, ClipperExportDocumentsParams, ClipperOTPInfo, ClipperDocumentStructure, ClipperTaxonomyParams, ClipperUserWorkingDocument, ClipperUserLink, ClipperUserInfo } from '../definitions';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ClipperService implements OnDestroy {
|
|
7
7
|
private readonly REFRESH_INTERVAL;
|
|
@@ -70,7 +70,7 @@ export declare class ClipperService implements OnDestroy {
|
|
|
70
70
|
* @param oauthAccessToken: the optional OAuth2 access token
|
|
71
71
|
* @returns: the login result
|
|
72
72
|
*/
|
|
73
|
-
login(email?: string | null | undefined, password?: string | null | undefined, oauth?: number | null | undefined, oauthAccessToken?: string | null | undefined): Observable<ApiResult<LoginResult
|
|
73
|
+
login(email?: string | null | undefined, password?: string | null | undefined, oauth?: number | null | undefined, oauthAccessToken?: string | null | undefined): Observable<ApiResult<LoginResult<ClipperUserInfo>>>;
|
|
74
74
|
/**
|
|
75
75
|
* Handle login error
|
|
76
76
|
* @param error : the error
|
|
@@ -179,7 +179,17 @@ export declare class ClipperService implements OnDestroy {
|
|
|
179
179
|
* Remove from bag
|
|
180
180
|
* @param id : the document id
|
|
181
181
|
*/
|
|
182
|
-
removeFromBag(id: string): Observable<ApiResult<
|
|
182
|
+
removeFromBag(id: string): Observable<ApiResult<number>>;
|
|
183
|
+
/**
|
|
184
|
+
* Save a user link
|
|
185
|
+
* @param item: the user link
|
|
186
|
+
*/
|
|
187
|
+
saveLink(item: ClipperUserLink): Observable<ApiResult<boolean>>;
|
|
188
|
+
/**
|
|
189
|
+
* Delete a user link
|
|
190
|
+
* @param item: the user link
|
|
191
|
+
*/
|
|
192
|
+
deleteLink(item: ClipperUserLink): Observable<ApiResult<boolean>>;
|
|
183
193
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClipperService, never>;
|
|
184
194
|
static ɵprov: i0.ɵɵInjectableDeclaration<ClipperService>;
|
|
185
195
|
}
|
|
@@ -66,7 +66,7 @@ export declare class ClipperDocumentManager {
|
|
|
66
66
|
* @param documentId : the document id
|
|
67
67
|
* @param newWindow: true if the document must be open into a new window
|
|
68
68
|
*/
|
|
69
|
-
open(documentId: string, newWindow?: boolean): void;
|
|
69
|
+
open(documentId: string | null | undefined, newWindow?: boolean): void;
|
|
70
70
|
/**
|
|
71
71
|
* Display a document report
|
|
72
72
|
* @param item : the document
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { ClipperModule, ClipperSearchParams, SectorInfo } from '@arsedizioni/ars-utils/clipper.common';
|
|
2
|
+
import { ClipperChannel, ClipperModule, ClipperSearchParams, SectorInfo } from '@arsedizioni/ars-utils/clipper.common';
|
|
3
3
|
import { DateInterval, NameValueItem } from '@arsedizioni/ars-utils/core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export interface ClipperSearchDialogData extends ClipperSearchParams {
|
|
@@ -21,7 +21,7 @@ export declare class ClipperSearchDialogComponent implements OnInit, OnDestroy {
|
|
|
21
21
|
protected hasRegions: () => boolean;
|
|
22
22
|
protected hasAuthorOrType: () => boolean;
|
|
23
23
|
protected regions: NameValueItem<string>[];
|
|
24
|
-
protected channels: NameValueItem<
|
|
24
|
+
protected channels: NameValueItem<ClipperChannel>[];
|
|
25
25
|
protected sources: NameValueItem<string>[] | null;
|
|
26
26
|
protected authors: NameValueItem<string>[] | null;
|
|
27
27
|
protected types: NameValueItem<string>[] | null;
|
package/core/definitions.d.ts
CHANGED
|
@@ -144,8 +144,8 @@ export declare class DateInterval {
|
|
|
144
144
|
*/
|
|
145
145
|
clear(): void;
|
|
146
146
|
}
|
|
147
|
-
export interface LoginResult extends ApiResult<boolean> {
|
|
148
|
-
context:
|
|
147
|
+
export interface LoginResult<T> extends ApiResult<boolean> {
|
|
148
|
+
context: T;
|
|
149
149
|
token: string;
|
|
150
150
|
}
|
|
151
151
|
export interface LoginInfo {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export interface
|
|
3
|
+
export interface BroadcastMessageInfo {
|
|
4
4
|
id: string;
|
|
5
|
-
data
|
|
5
|
+
data?: any | null;
|
|
6
6
|
}
|
|
7
7
|
export declare class BroadcastService {
|
|
8
8
|
private subject;
|
|
@@ -13,15 +13,11 @@ export declare class BroadcastService {
|
|
|
13
13
|
* @param delay : the number of milliseconds to wait before sending the message
|
|
14
14
|
*/
|
|
15
15
|
sendMessage(id: string, data?: any, delay?: number): void;
|
|
16
|
-
/**
|
|
17
|
-
* Clear
|
|
18
|
-
*/
|
|
19
|
-
clearMessage(): void;
|
|
20
16
|
/**
|
|
21
17
|
* Get the next message as observable
|
|
22
18
|
* @returns : the observable object
|
|
23
19
|
*/
|
|
24
|
-
getMessage(): Observable<
|
|
20
|
+
getMessage(): Observable<BroadcastMessageInfo>;
|
|
25
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<BroadcastService, never>;
|
|
26
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<BroadcastService>;
|
|
27
23
|
}
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
import { BroadcastService } from './broadcast.service';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare const ScreenMessages: {
|
|
4
|
-
NAVIGATOR_SIZE_CHANGED: string;
|
|
5
|
-
};
|
|
6
2
|
export declare class ScreenService {
|
|
7
|
-
private $broadcast;
|
|
8
|
-
private _mq;
|
|
9
|
-
get mq(): string;
|
|
10
|
-
set mq(value: string);
|
|
11
|
-
private _navigatorHeight;
|
|
12
|
-
get navigatorHeight(): number;
|
|
13
|
-
set navigatorHeight(value: number);
|
|
14
3
|
get isTouchable(): boolean;
|
|
15
4
|
get isIEOrEdge(): boolean;
|
|
16
|
-
constructor($broadcast: BroadcastService);
|
|
17
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScreenService, never>;
|
|
18
6
|
static ɵprov: i0.ɵɵInjectableDeclaration<ScreenService>;
|
|
19
7
|
}
|