@arsedizioni/ars-utils 18.2.9 → 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.
Files changed (30) hide show
  1. package/clipper.common/common/definitions.d.ts +53 -2
  2. package/clipper.common/common/messages.d.ts +5 -0
  3. package/clipper.common/common/services/clipper.service.d.ts +13 -3
  4. package/clipper.ui/ui/document-manager/document-manager.d.ts +1 -1
  5. package/clipper.ui/ui/search-dialog/search-dialog.component.d.ts +2 -2
  6. package/core/definitions.d.ts +2 -2
  7. package/core/selectable.d.ts +4 -4
  8. package/core/services/broadcast.service.d.ts +3 -7
  9. package/core/services/screen.service.d.ts +0 -12
  10. package/esm2022/clipper.common/common/definitions.mjs +14 -5
  11. package/esm2022/clipper.common/common/messages.mjs +8 -2
  12. package/esm2022/clipper.common/common/services/clipper.service.mjs +17 -3
  13. package/esm2022/clipper.ui/ui/document-manager/document-manager.mjs +1 -1
  14. package/esm2022/clipper.ui/ui/search-dialog/search-dialog.component.mjs +1 -1
  15. package/esm2022/core/definitions.mjs +1 -1
  16. package/esm2022/core/selectable.mjs +28 -16
  17. package/esm2022/core/services/broadcast.service.mjs +1 -7
  18. package/esm2022/core/services/screen.service.mjs +3 -25
  19. package/esm2022/support.common/common/definitions.mjs +1 -1
  20. package/esm2022/support.common/common/services/support.service.mjs +2 -2
  21. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +37 -8
  22. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  23. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  24. package/fesm2022/arsedizioni-ars-utils-core.mjs +30 -45
  25. package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
  26. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +1 -1
  27. package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
  28. package/package.json +12 -12
  29. package/support.common/common/definitions.d.ts +25 -0
  30. 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 const ClipperChannels: NameValueItem<string>[];
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<string>[] | null;
134
+ channels?: NameValueItem<ClipperChannel>[] | null;
95
135
  count?: number | null;
96
136
  id?: string | null;
97
137
  anchor?: string | null;
@@ -167,6 +207,7 @@ export interface ClipperDocumentInfo {
167
207
  date?: Date | null;
168
208
  description?: string | null;
169
209
  publishingDate?: Date | null;
210
+ pictureId?: string | null;
170
211
  sourceNumber?: string | null;
171
212
  sourceDate?: Date | null;
172
213
  source?: string | null;
@@ -338,6 +379,16 @@ export interface ClipperUserWorkingDocument {
338
379
  documentDescriptor: string;
339
380
  timestamp: string;
340
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
+ }
341
392
  export declare class ClipperUtils {
342
393
  /**
343
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<any>>;
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<string>[];
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;
@@ -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: any;
147
+ export interface LoginResult<T> extends ApiResult<boolean> {
148
+ context: T;
149
149
  token: string;
150
150
  }
151
151
  export interface LoginInfo {
@@ -17,19 +17,19 @@ export declare class SelectableModel<T, V> {
17
17
  * @param item : the item to update
18
18
  * @param lookupValue : the value
19
19
  */
20
- toggle(item: T, lookupValue: V): void;
20
+ toggle(item: T, lookupValue: V | null | undefined): void;
21
21
  /**
22
22
  * Select an item
23
23
  * @param item : the item to update
24
24
  * @param lookupValue : the value
25
25
  */
26
- select(item: T, lookupValue: V): void;
26
+ select(item: T, lookupValue: V | null | undefined): void;
27
27
  /**
28
28
  * Deselect an item
29
29
  * @param item : the item to update
30
30
  * @param lookupValue : the value
31
31
  */
32
- deselect(item: T, lookupValue: V): void;
32
+ deselect(item: T, lookupValue: V | null | undefined): void;
33
33
  /**
34
34
  * Deselect all specified item lookup values
35
35
  * @param lookupValues : the values
@@ -49,7 +49,7 @@ export declare class SelectableModel<T, V> {
49
49
  * @param lookupValue : the value
50
50
  * @returns : true if the value is selected
51
51
  */
52
- isSelected(lookupValue: V | null): boolean;
52
+ isSelected(lookupValue: V | null | undefined): boolean;
53
53
  /**
54
54
  * Checks if a selection exists
55
55
  * @returns : true if at least one selection exists
@@ -1,8 +1,8 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import * as i0 from "@angular/core";
3
- export interface BroadcastMessageBag {
3
+ export interface BroadcastMessageInfo {
4
4
  id: string;
5
- data: any;
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<BroadcastMessageBag>;
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
  }