@arsedizioni/ars-utils 18.2.154 → 18.2.157

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 (47) hide show
  1. package/clipper.common/common/common.module.d.ts +1 -0
  2. package/clipper.common/common/definitions.d.ts +10 -9
  3. package/clipper.common/common/services/clipper.service.d.ts +1 -5
  4. package/clipper.common/common/services/clipper.working.service.d.ts +41 -0
  5. package/clipper.ui/ui/browser-dialog/browser-dialog.component.d.ts +2 -1
  6. package/clipper.ui/ui/document/document.component.d.ts +4 -7
  7. package/clipper.ui/ui/document-index/document-index.component.d.ts +4 -1
  8. package/clipper.ui/ui/document-manager/document-manager.d.ts +3 -3
  9. package/clipper.ui/ui/references/references.component.d.ts +3 -2
  10. package/clipper.ui/ui/search-result-item/search-result-item.component.d.ts +1 -1
  11. package/clipper.ui/ui/search-result-manager/search-result-manager.d.ts +7 -6
  12. package/esm2022/clipper.common/common/common.module.mjs +2 -1
  13. package/esm2022/clipper.common/common/definitions.mjs +1 -1
  14. package/esm2022/clipper.common/common/services/clipper.service.mjs +2 -11
  15. package/esm2022/clipper.common/common/services/clipper.working.service.mjs +157 -0
  16. package/esm2022/clipper.ui/ui/browser-dialog/browser-dialog.component.mjs +3 -3
  17. package/esm2022/clipper.ui/ui/document/document.component.mjs +20 -27
  18. package/esm2022/clipper.ui/ui/document-index/document-index.component.mjs +3 -3
  19. package/esm2022/clipper.ui/ui/document-manager/document-manager.mjs +11 -13
  20. package/esm2022/clipper.ui/ui/references/references.component.mjs +3 -3
  21. package/esm2022/clipper.ui/ui/search-dialog/search-dialog.component.mjs +10 -10
  22. package/esm2022/clipper.ui/ui/search-result-item/search-result-item.component.mjs +1 -1
  23. package/esm2022/clipper.ui/ui/search-result-manager/search-result-manager.mjs +10 -9
  24. package/esm2022/core/directives/validators.mjs +2 -2
  25. package/esm2022/core/selectable.mjs +4 -4
  26. package/esm2022/help/components/help-viewer/help-viewer.component.mjs +6 -6
  27. package/esm2022/help/services/help.service.mjs +1 -1
  28. package/esm2022/support.common/common/interceptors/auth.interceptor.mjs +2 -2
  29. package/esm2022/support.ui/ui/notifications-browser/notifications-browser.component.mjs +2 -2
  30. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +155 -12
  31. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  32. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +53 -61
  33. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  34. package/fesm2022/arsedizioni-ars-utils-core.mjs +4 -4
  35. package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
  36. package/fesm2022/arsedizioni-ars-utils-help.mjs +5 -5
  37. package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
  38. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +1 -1
  39. package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
  40. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +1 -1
  41. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs.map +1 -1
  42. package/help/services/help.service.d.ts +3 -2
  43. package/package.json +1 -1
  44. package/clipper.ui/services/clipper.document.service.d.ts +0 -19
  45. package/esm2022/clipper.ui/services/clipper.document.service.mjs +0 -62
  46. package/log.txt +0 -0
  47. package/output.txt +0 -0
@@ -8,3 +8,4 @@ export * from './messages';
8
8
  export * from './definitions';
9
9
  export * from './interceptors/auth.interceptor';
10
10
  export * from './services/clipper.service';
11
+ export * from './services/clipper.working.service';
@@ -1,3 +1,4 @@
1
+ import { SendToDialogResult } from '@arsedizioni/ars-utils/ui.application';
1
2
  import { LoginResult, NameValueItem } from '@arsedizioni/ars-utils/core';
2
3
  import { LoginOAuthType } from '@arsedizioni/ars-utils/ui.oauth';
3
4
  export declare enum ClipperSelectionMode {
@@ -221,11 +222,11 @@ export interface ClipperDocumentAnchorInfo {
221
222
  title?: string | null;
222
223
  description?: string | null;
223
224
  uri: string;
224
- ordinal: string;
225
- score: number;
225
+ ordinal?: string | null;
226
+ score?: number | null;
226
227
  veryRelevant?: boolean | null;
227
- value: string;
228
- level: number;
228
+ value?: string | null;
229
+ level?: number | null;
229
230
  }
230
231
  export interface ClipperDocumentRelevants {
231
232
  items: ClipperDocumentAnchorInfo[];
@@ -240,10 +241,12 @@ export interface ClipperDocumentInfo {
240
241
  modelName?: string | null;
241
242
  module?: number | null;
242
243
  moduleName?: string | null;
244
+ channelName?: string | null;
243
245
  group?: string | null;
244
246
  title2?: string | null;
245
247
  title1?: string | null;
246
248
  tags?: string | null;
249
+ topics?: string | null;
247
250
  number?: string | null;
248
251
  date?: Date | null;
249
252
  description?: string | null;
@@ -283,7 +286,7 @@ export interface ClipperDocumentInfo {
283
286
  hasPrimary?: boolean | null;
284
287
  secondaryId?: string | null;
285
288
  bag?: any | null;
286
- lastUpdate?: Date | null;
289
+ lastUpdate?: string | null;
287
290
  }
288
291
  export declare class ClipperSearchResult {
289
292
  days?: string | null;
@@ -387,10 +390,8 @@ export interface ClipperExportDocumentsParams {
387
390
  ids: string[];
388
391
  format?: ClipperExportDocumentsFormat | null;
389
392
  }
390
- export interface ClipperSendDocumentsByEmailParams {
391
- items: string[];
392
- recipients: string;
393
- subject: string;
393
+ export interface ClipperSendDocumentsByEmailParams extends SendToDialogResult {
394
+ ids: string[];
394
395
  public: string;
395
396
  isCalendar: boolean;
396
397
  }
@@ -27,9 +27,6 @@ export declare class ClipperService implements OnDestroy {
27
27
  private _serviceUri;
28
28
  get serviceUri(): string;
29
29
  set serviceUri(value: string);
30
- private _servicePrefix;
31
- get servicePrefix(): string;
32
- set servicePrefix(value: string);
33
30
  loggedIn: import("@angular/core").WritableSignal<boolean>;
34
31
  loggingIn: import("@angular/core").WritableSignal<boolean>;
35
32
  supportsRS: import("@angular/core").WritableSignal<boolean>;
@@ -39,10 +36,9 @@ export declare class ClipperService implements OnDestroy {
39
36
  /**
40
37
  * Initialize service
41
38
  * @param serviceUri : the service uri
42
- * @param servicePrefix : the service prefix used to manage local storage
43
39
  * @param tokenRefreshInterval : the token refresh interval
44
40
  */
45
- initialize(serviceUri?: string | null | undefined, servicePrefix?: string | null | undefined, tokenRefreshInterval?: number | null | undefined): void;
41
+ initialize(serviceUri?: string | null | undefined, tokenRefreshInterval?: number | null | undefined): void;
46
42
  /**
47
43
  * Set JWT token
48
44
  * @param token : token
@@ -0,0 +1,41 @@
1
+ import { Signal } from '@angular/core';
2
+ import { ClipperUserWorkingDocument } from '../definitions';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ClipperWorkingService {
5
+ private httpClient;
6
+ private dialogService;
7
+ private serviceUri;
8
+ items: import("@angular/core").WritableSignal<ClipperUserWorkingDocument[]>;
9
+ total: Signal<number>;
10
+ constructor();
11
+ /**
12
+ * Initialize service
13
+ * @param serviceUri : the service uri
14
+ */
15
+ initialize(serviceUri?: string | null | undefined): void;
16
+ /**
17
+ * Update storage
18
+ */
19
+ private updateStorage;
20
+ /**
21
+ * Load entries
22
+ * @param: showBusy: if true show a busy loading message. Default is true.
23
+ */
24
+ load(showBusy?: boolean): void;
25
+ /**
26
+ * Add one or more entry
27
+ * @param documentIds : the document ids to add
28
+ */
29
+ add(documentIds: string[]): import("rxjs").Subscription;
30
+ /**
31
+ * Remove one entry
32
+ * @param documentId : the document id
33
+ */
34
+ remove(documentId: any): import("rxjs").Subscription;
35
+ /**
36
+ * Clear all entries
37
+ */
38
+ clear(): import("rxjs").Subscription;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClipperWorkingService, never>;
40
+ static ɵprov: i0.ɵɵInjectableDeclaration<ClipperWorkingService>;
41
+ }
@@ -1,4 +1,5 @@
1
1
  import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
+ import { PageEvent } from '@angular/material/paginator';
2
3
  import { MatDrawer } from '@angular/material/sidenav';
3
4
  import { ClipperSearchResult, ClipperSelectionMode } from '@arsedizioni/ars-utils/clipper.common';
4
5
  import { ClipperSearchResultManager } from '../search-result-manager/search-result-manager';
@@ -79,7 +80,7 @@ export declare class ClipperBrowserDialogComponent extends ClipperSearchResultMa
79
80
  * Show a new page result
80
81
  * @param e : the MatPaginator PageEvent data
81
82
  */
82
- fetchMore(e: any): void;
83
+ fetchMore(e: PageEvent): void;
83
84
  /**
84
85
  * Clear search
85
86
  */
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { MatDrawer } from '@angular/material/sidenav';
3
- import { ClipperDocumentInfo, ClipperDocumentRelevants, ClipperQueryReferencesMode } from '@arsedizioni/ars-utils/clipper.common';
3
+ import { ClipperDocumentAnchorInfo, ClipperDocumentInfo, ClipperDocumentRelevants, ClipperQueryReferencesMode } from '@arsedizioni/ars-utils/clipper.common';
4
4
  import { ClipperDocumentManager } from '../document-manager/document-manager';
5
5
  import * as i0 from "@angular/core";
6
6
  export interface ClipperDocumentDialogData {
@@ -12,9 +12,6 @@ export declare class ClipperDocumentComponent extends ClipperDocumentManager imp
12
12
  relevantsPane: MatDrawer;
13
13
  closing: EventEmitter<any>;
14
14
  opening: EventEmitter<any>;
15
- onComplianceAnalysis: EventEmitter<any>;
16
- onCompliancePlanning: EventEmitter<any>;
17
- onComplianceUsageReport: EventEmitter<any>;
18
15
  private unsubscribe;
19
16
  private changeDetector;
20
17
  private breakpointObserver;
@@ -103,7 +100,7 @@ export declare class ClipperDocumentComponent extends ClipperDocumentManager imp
103
100
  * Goto a relevant item
104
101
  * @param item : the item to go to
105
102
  */
106
- protected gotoRelevant(item: any): void;
103
+ protected gotoRelevant(item: ClipperDocumentAnchorInfo): void;
107
104
  /**
108
105
  * Update relevant items
109
106
  */
@@ -151,7 +148,7 @@ export declare class ClipperDocumentComponent extends ClipperDocumentManager imp
151
148
  * Display a report
152
149
  * @param item
153
150
  */
154
- protected displayReport(item: any): void;
151
+ protected displayReport(item: ClipperDocumentInfo): void;
155
152
  /**
156
153
  * Checks if documents can be selected and returned as message
157
154
  */
@@ -161,5 +158,5 @@ export declare class ClipperDocumentComponent extends ClipperDocumentManager imp
161
158
  */
162
159
  protected select(): void;
163
160
  static ɵfac: i0.ɵɵFactoryDeclaration<ClipperDocumentComponent, never>;
164
- static ɵcmp: i0.ɵɵComponentDeclaration<ClipperDocumentComponent, "ng-component", never, {}, { "closing": "closing"; "opening": "opening"; "onComplianceAnalysis": "onComplianceAnalysis"; "onCompliancePlanning": "onCompliancePlanning"; "onComplianceUsageReport": "onComplianceUsageReport"; }, never, never, true, never>;
161
+ static ɵcmp: i0.ɵɵComponentDeclaration<ClipperDocumentComponent, "ng-component", never, {}, { "closing": "closing"; "opening": "opening"; }, never, never, true, never>;
165
162
  }
@@ -7,9 +7,12 @@ export interface ClipperDocumentIndexDialogData {
7
7
  excludedTypes?: number[] | null;
8
8
  multiple?: boolean | null;
9
9
  }
10
+ export interface ClipperDocumentIndexDialogResult {
11
+ data: ClipperDocumentAnchorInfo[];
12
+ }
10
13
  export declare class ClipperDocumentIndexComponent implements OnInit {
11
14
  selection: MatSelectionList;
12
- done: EventEmitter<any>;
15
+ done: EventEmitter<ClipperDocumentIndexDialogResult>;
13
16
  private changeDetector;
14
17
  private clipperService;
15
18
  private dialogService;
@@ -48,7 +48,7 @@ export declare class ClipperDocumentManager {
48
48
  * Show a document permalink
49
49
  * @param item : the item to show the link for
50
50
  */
51
- showLink(item: any): void;
51
+ showLink(item: ClipperDocumentInfo): void;
52
52
  /**
53
53
  * Send documents links by email
54
54
  * @param items : the document list
@@ -105,10 +105,10 @@ export declare class ClipperDocumentManager {
105
105
  isModelSupportedByRS(model: ClipperModel): boolean;
106
106
  /**
107
107
  * Checks if all documents are supported by RS
108
- * @param items : the list of documens
108
+ * @param documents : the list of documents
109
109
  * @returns: true if all documents supports RS
110
110
  */
111
- canSupportRS(items: []): boolean;
111
+ canSupportRS(documents: ClipperDocumentInfo[]): boolean;
112
112
  /**
113
113
  * Checks if RS is enabled for all given documents
114
114
  * @param documents : the documents to check
@@ -1,4 +1,5 @@
1
1
  import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
+ import { PageEvent } from '@angular/material/paginator';
2
3
  import { MatDrawer } from '@angular/material/sidenav';
3
4
  import { ClipperDocumentInfo, ClipperQueryReferencesMode } from '@arsedizioni/ars-utils/clipper.common';
4
5
  import { ClipperSearchResultManager } from '../search-result-manager/search-result-manager';
@@ -42,7 +43,7 @@ export declare class ClipperReferencesComponent extends ClipperSearchResultManag
42
43
  * Send document links by email
43
44
  * @param item : the item to add
44
45
  */
45
- sendTo(item?: any): void;
46
+ sendTo(item?: ClipperDocumentInfo): void;
46
47
  /**
47
48
  * Perform a search
48
49
  * @param newSearch: true if is a new search
@@ -52,7 +53,7 @@ export declare class ClipperReferencesComponent extends ClipperSearchResultManag
52
53
  * Show a new page result
53
54
  * @param e : the MatPaginator PageEvent data
54
55
  */
55
- fetchMore(e: any): void;
56
+ fetchMore(e: PageEvent): void;
56
57
  /**
57
58
  * Get facets
58
59
  */
@@ -30,7 +30,7 @@ export declare class ClipperSearchResultItemComponent implements OnInit {
30
30
  y: string;
31
31
  };
32
32
  ngOnInit(): void;
33
- onContextMenu(event: MouseEvent, item: any): void;
33
+ onContextMenu(event: MouseEvent, item: ClipperDocumentInfo): void;
34
34
  /**
35
35
  * Checks if current item is selected
36
36
  * @returns true if current item is selected
@@ -64,7 +64,7 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
64
64
  * Get the first selected item
65
65
  * @returns the selected item or null
66
66
  */
67
- getSingleSelection(): any | null;
67
+ getSingleSelection(): ClipperDocumentInfo | null;
68
68
  /**
69
69
  * Clear selection
70
70
  */
@@ -84,8 +84,9 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
84
84
  getSeletectIds(): string[] | null;
85
85
  /**
86
86
  * Get all selected ids
87
+ * @returns a tuple list with id and data
87
88
  */
88
- getSeletectIdsAndData(): any[] | null;
89
+ getSeletectIdsAndData(): [string, ClipperDocumentInfo][] | null;
89
90
  /**
90
91
  * Prepare result items
91
92
  * @param items : the items to process
@@ -109,17 +110,17 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
109
110
  * Return item state css class
110
111
  * @param item : the item to evaluate
111
112
  */
112
- getItemStateCssClass(item: any): string | null;
113
+ getItemStateCssClass(item: ClipperDocumentInfo): string | null;
113
114
  /**
114
115
  * Return the item state tooltip text
115
116
  * @param item : the item to evaluate
116
117
  */
117
- getItemStateTooltip(item: any): string;
118
+ getItemStateTooltip(item: ClipperDocumentInfo): string;
118
119
  /**
119
120
  * Return the item icon
120
121
  * @param item : the item to evaluate
121
122
  */
122
- getItemIcon(item: any): string;
123
+ getItemIcon(item: ClipperDocumentInfo): string;
123
124
  /**
124
125
  * Toggle the read flag
125
126
  * @param item : the item to update
@@ -131,7 +132,7 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
131
132
  * @param item : the item to update
132
133
  * @paran e: the optional click event
133
134
  */
134
- toggleSelection(item: any, e?: Event | null): void;
135
+ toggleSelection(item: ClipperDocumentInfo, e?: Event | null): void;
135
136
  /**
136
137
  * Get the selected id
137
138
  */
@@ -13,4 +13,5 @@ export * from './messages';
13
13
  export * from './definitions';
14
14
  export * from './interceptors/auth.interceptor';
15
15
  export * from './services/clipper.service';
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fycy11dGlscy9jbGlwcGVyLmNvbW1vbi9jb21tb24vY29tbW9uLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUd6QyxNQUFNLE9BQU8sc0JBQXNCOzhHQUF0QixzQkFBc0I7K0dBQXRCLHNCQUFzQjsrR0FBdEIsc0JBQXNCOzsyRkFBdEIsc0JBQXNCO2tCQURsQyxRQUFROztBQUdULGdCQUFnQjtBQUNoQixjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELGNBQWMsNEJBQTRCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5cclxuQE5nTW9kdWxlKClcclxuZXhwb3J0IGNsYXNzIEFyc0NsaXBwZXJDb21tb25Nb2R1bGUge31cclxuXHJcbi8vIE90aGVyIGV4cG9ydHNcclxuZXhwb3J0ICogZnJvbSAnLi9tZXNzYWdlcyc7XHJcbmV4cG9ydCAqIGZyb20gJy4vZGVmaW5pdGlvbnMnO1xyXG5leHBvcnQgKiBmcm9tICcuL2ludGVyY2VwdG9ycy9hdXRoLmludGVyY2VwdG9yJztcclxuZXhwb3J0ICogZnJvbSAnLi9zZXJ2aWNlcy9jbGlwcGVyLnNlcnZpY2UnO1xyXG5cclxuIl19
16
+ export * from './services/clipper.working.service';
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fycy11dGlscy9jbGlwcGVyLmNvbW1vbi9jb21tb24vY29tbW9uLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUd6QyxNQUFNLE9BQU8sc0JBQXNCOzhHQUF0QixzQkFBc0I7K0dBQXRCLHNCQUFzQjsrR0FBdEIsc0JBQXNCOzsyRkFBdEIsc0JBQXNCO2tCQURsQyxRQUFROztBQUdULGdCQUFnQjtBQUNoQixjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyxvQ0FBb0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5ATmdNb2R1bGUoKVxyXG5leHBvcnQgY2xhc3MgQXJzQ2xpcHBlckNvbW1vbk1vZHVsZSB7fVxyXG5cclxuLy8gT3RoZXIgZXhwb3J0c1xyXG5leHBvcnQgKiBmcm9tICcuL21lc3NhZ2VzJztcclxuZXhwb3J0ICogZnJvbSAnLi9kZWZpbml0aW9ucyc7XHJcbmV4cG9ydCAqIGZyb20gJy4vaW50ZXJjZXB0b3JzL2F1dGguaW50ZXJjZXB0b3InO1xyXG5leHBvcnQgKiBmcm9tICcuL3NlcnZpY2VzL2NsaXBwZXIuc2VydmljZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vc2VydmljZXMvY2xpcHBlci53b3JraW5nLnNlcnZpY2UnO1xyXG5cclxuIl19