@arsedizioni/ars-utils 18.2.110 → 18.2.111
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 +1 -0
- package/clipper.ui/documents.d.ts +32 -4
- package/clipper.ui/public_api.d.ts +1 -1
- package/clipper.ui/ui/browser-dialog/browser-dialog.component.d.ts +12 -3
- package/clipper.ui/ui/document/document.component.d.ts +14 -13
- package/clipper.ui/ui/document-manager/document-manager.d.ts +44 -31
- package/clipper.ui/ui/document-menu/document-menu.component.d.ts +7 -4
- package/clipper.ui/ui/references/references.component.d.ts +3 -0
- package/clipper.ui/ui/search-result-manager/search-result-manager.d.ts +7 -4
- package/esm2022/clipper.common/common/definitions.mjs +2 -1
- package/esm2022/clipper.ui/documents.mjs +138 -6
- package/esm2022/clipper.ui/public_api.mjs +2 -2
- package/esm2022/clipper.ui/ui/browser-dialog/browser-dialog.component.mjs +17 -26
- package/esm2022/clipper.ui/ui/document/document.component.mjs +41 -32
- package/esm2022/clipper.ui/ui/document-manager/document-manager.mjs +75 -105
- package/esm2022/clipper.ui/ui/document-menu/document-menu.component.mjs +11 -7
- package/esm2022/clipper.ui/ui/references/references.component.mjs +6 -5
- package/esm2022/clipper.ui/ui/search-result-manager/search-result-manager.mjs +10 -7
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +1 -0
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +2669 -2563
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/log.txt +0 -0
- package/output.txt +0 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
2
|
import { DialogService } from '@arsedizioni/ars-utils/ui';
|
|
3
|
-
import {
|
|
3
|
+
import { ApplicationDialogService } from '@arsedizioni/ars-utils/ui.application';
|
|
4
|
+
import { ClipperDocumentInfo, ClipperQueryReferencesMode, ClipperSelectionMode, ClipperService } from '@arsedizioni/ars-utils/clipper.common';
|
|
4
5
|
import { ClipperDocumentComponent } from './ui/document/document.component';
|
|
5
6
|
import { ClipperReferencesComponent } from './ui/references/references.component';
|
|
6
7
|
export declare class ClipperDocumentsUtils {
|
|
@@ -12,14 +13,41 @@ export declare class ClipperDocumentsUtils {
|
|
|
12
13
|
* @param query : the query for highlight
|
|
13
14
|
* @param selectionMode : the selection mode (1 = single, 2 = multiple, 3 = any selection)
|
|
14
15
|
*/
|
|
15
|
-
static openDocument(dialogService: DialogService, clipperService: ClipperService, documentId: string, query?: string, selectionMode?:
|
|
16
|
+
static openDocument(dialogService: DialogService, clipperService: ClipperService, documentId: string, query?: string, selectionMode?: ClipperSelectionMode): MatDialogRef<ClipperDocumentComponent> | null;
|
|
16
17
|
/**
|
|
17
|
-
* Open a
|
|
18
|
+
* Open a references dialog
|
|
19
|
+
* @param dialogService: the dialog service
|
|
20
|
+
* @param clipperService: the clipper service
|
|
21
|
+
* @param documentId : the document id
|
|
22
|
+
* @param mode: the optional mode. Default is references in
|
|
23
|
+
* @param model: the optional document model
|
|
24
|
+
* @param anchor: the optional document anchor
|
|
25
|
+
* @param anchorTitle: : the optional anchor title
|
|
26
|
+
* @param update: true if is an update
|
|
27
|
+
* @return the references dialog instance
|
|
28
|
+
*/
|
|
29
|
+
static openReferences(dialogService: DialogService, clipperService: ClipperService, documentId: string, mode?: ClipperQueryReferencesMode, model?: number | null | undefined, anchor?: string | null | undefined, anchorTitle?: string | null | undefined, update?: boolean | null | undefined): MatDialogRef<ClipperReferencesComponent> | null;
|
|
30
|
+
/**
|
|
31
|
+
* Send documents links by email
|
|
32
|
+
* @param dialogService: the dialog service
|
|
33
|
+
* @param clipperService: the clipper service
|
|
34
|
+
* @param items : the document list
|
|
35
|
+
*/
|
|
36
|
+
static sendItemsTo(dialogService: DialogService, clipperService: ClipperService, items: ClipperDocumentInfo[]): void;
|
|
37
|
+
/**
|
|
38
|
+
* Display a document report
|
|
18
39
|
* @param dialogService: the dialog service
|
|
19
40
|
* @param clipperService: the clipper service
|
|
20
41
|
* @param documentId : the document id
|
|
42
|
+
* @param title: the document short title
|
|
43
|
+
*/
|
|
44
|
+
static openReport(dialogService: DialogService, clipperService: ClipperService, documentId: string, title?: string | null | undefined): void;
|
|
45
|
+
/**
|
|
46
|
+
* Manage clipper bag
|
|
47
|
+
* @param dialogService: the dialog service
|
|
48
|
+
* @param clipperService: the clipper service
|
|
21
49
|
*/
|
|
22
|
-
static
|
|
50
|
+
static openBag(dialogService: ApplicationDialogService, clipperService: ClipperService): void;
|
|
23
51
|
/**
|
|
24
52
|
* Extract document title
|
|
25
53
|
* @param title : the full document title
|
|
@@ -10,5 +10,5 @@ export * from './ui/references/references.component';
|
|
|
10
10
|
export * from './ui/document/document.component';
|
|
11
11
|
export * from './ui/document-index/document-index.component';
|
|
12
12
|
export * from './ui/document-menu/document-menu.component';
|
|
13
|
-
export * from './documents';
|
|
14
13
|
export * from './ui/document-manager/document-manager';
|
|
14
|
+
export * from './documents';
|
|
@@ -115,11 +115,20 @@ export declare class ClipperBrowserDialogComponent extends ClipperSearchResultMa
|
|
|
115
115
|
*/
|
|
116
116
|
openDocument(documentId: string | null | undefined, query?: string | null | undefined): void;
|
|
117
117
|
/**
|
|
118
|
-
|
|
118
|
+
* Manage clipper bag
|
|
119
|
+
*/
|
|
120
|
+
openBag(): void;
|
|
121
|
+
/**
|
|
122
|
+
* Open a references dialog
|
|
119
123
|
* @param documentId : the document id
|
|
120
|
-
* @param mode
|
|
124
|
+
* @param mode: the optional mode. Default is references in
|
|
125
|
+
* @param model: the optional document model
|
|
126
|
+
* @param anchor: the optional document anchor
|
|
127
|
+
* @param anchorTitle: : the optional anchor title
|
|
128
|
+
* @param update: true if is an update
|
|
129
|
+
* @return the references dialog instance
|
|
121
130
|
*/
|
|
122
|
-
openReferences(documentId: string | null, mode?: ClipperQueryReferencesMode | null, model?: number, anchor?: string, anchorTitle?: string, update?: boolean): void;
|
|
131
|
+
openReferences(documentId: string | null, mode?: ClipperQueryReferencesMode | null, model?: number | null | undefined, anchor?: string | null | undefined, anchorTitle?: string | null | undefined, update?: boolean | null | undefined): void;
|
|
123
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClipperBrowserDialogComponent, never>;
|
|
124
133
|
static ɵcmp: i0.ɵɵComponentDeclaration<ClipperBrowserDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
125
134
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
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';
|
|
4
|
-
import {
|
|
3
|
+
import { ClipperDocumentInfo, ClipperDocumentRelevants, ClipperQueryReferencesMode, ClipperService } from '@arsedizioni/ars-utils/clipper.common';
|
|
4
|
+
import { BroadcastService } from '@arsedizioni/ars-utils/core';
|
|
5
|
+
import { ApplicationDialogService } from '@arsedizioni/ars-utils/ui.application';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export interface ClipperDocumentDialogData {
|
|
7
8
|
selectionMode: number;
|
|
8
9
|
id: string;
|
|
9
10
|
query?: string | null;
|
|
10
11
|
}
|
|
11
|
-
export declare class ClipperDocumentComponent
|
|
12
|
+
export declare class ClipperDocumentComponent implements OnInit, OnDestroy {
|
|
12
13
|
relevantsPane: MatDrawer;
|
|
13
14
|
closing: EventEmitter<any>;
|
|
14
15
|
opening: EventEmitter<any>;
|
|
@@ -17,7 +18,10 @@ export declare class ClipperDocumentComponent extends ClipperDocumentManager imp
|
|
|
17
18
|
onComplianceUsageReport: EventEmitter<any>;
|
|
18
19
|
private unsubscribe;
|
|
19
20
|
private changeDetector;
|
|
21
|
+
protected clipperService: ClipperService;
|
|
22
|
+
protected broadcastService: BroadcastService;
|
|
20
23
|
private breakpointObserver;
|
|
24
|
+
protected dialogService: ApplicationDialogService;
|
|
21
25
|
private renderer;
|
|
22
26
|
private rendererListener1;
|
|
23
27
|
private router;
|
|
@@ -137,25 +141,22 @@ export declare class ClipperDocumentComponent extends ClipperDocumentManager imp
|
|
|
137
141
|
*/
|
|
138
142
|
protected showComment(): void;
|
|
139
143
|
/**
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
*/
|
|
146
|
-
open(documentId: string | null | undefined, query?: string | null | undefined, newWindow?: boolean): void;
|
|
144
|
+
* Open an item
|
|
145
|
+
* @param documentId : the document id
|
|
146
|
+
* @param newWindow: true if the document must be open into a new window
|
|
147
|
+
*/
|
|
148
|
+
open(documentId: string, newWindow?: boolean): void;
|
|
147
149
|
/**
|
|
148
150
|
* Open a document
|
|
149
151
|
* @param documentId : the document id
|
|
150
|
-
* @param query: the query string
|
|
151
152
|
*/
|
|
152
|
-
openDocument
|
|
153
|
+
private openDocument;
|
|
153
154
|
/**
|
|
154
155
|
* Browse document references
|
|
155
156
|
* @param documentId : the document id
|
|
156
157
|
* @param mode : the mode
|
|
157
158
|
*/
|
|
158
|
-
openReferences(documentId: string
|
|
159
|
+
protected openReferences(documentId: string, mode?: ClipperQueryReferencesMode, model?: number, anchor?: string, anchorTitle?: string, update?: boolean): void;
|
|
159
160
|
/**
|
|
160
161
|
* Display a report
|
|
161
162
|
* @param item
|
|
@@ -5,7 +5,7 @@ import { ApplicationDialogService } from '@arsedizioni/ars-utils/ui.application'
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ClipperDocumentManager {
|
|
7
7
|
protected clipboard: Clipboard;
|
|
8
|
-
clipperService: ClipperService;
|
|
8
|
+
protected clipperService: ClipperService;
|
|
9
9
|
protected broadcastService: BroadcastService;
|
|
10
10
|
protected dialogService: ApplicationDialogService;
|
|
11
11
|
/**
|
|
@@ -59,14 +59,19 @@ export declare class ClipperDocumentManager {
|
|
|
59
59
|
* @param documentId : the document id
|
|
60
60
|
* @param title: the document short title
|
|
61
61
|
*/
|
|
62
|
-
openReport(documentId: string, title?: string | null): void;
|
|
62
|
+
openReport(documentId: string, title?: string | null | undefined): void;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
* Display a document report
|
|
65
|
+
* @param item : the document
|
|
66
|
+
*/
|
|
67
|
+
report(item: ClipperDocumentInfo): void;
|
|
68
|
+
/**
|
|
69
|
+
* Open an item
|
|
70
|
+
* This should be always overridden
|
|
71
|
+
* @param documentId : the document id
|
|
72
|
+
* @param query: the query string
|
|
73
|
+
* @param newWindow: true if the document must be open into a new window
|
|
74
|
+
*/
|
|
70
75
|
open(documentId: string | null | undefined, query?: string | null | undefined, newWindow?: boolean): void;
|
|
71
76
|
/**
|
|
72
77
|
* Open a document
|
|
@@ -75,25 +80,25 @@ export declare class ClipperDocumentManager {
|
|
|
75
80
|
*/
|
|
76
81
|
openDocument(documentId: string | null | undefined, query?: string | null | undefined): void;
|
|
77
82
|
/**
|
|
78
|
-
*
|
|
83
|
+
* Open a references dialog
|
|
79
84
|
* @param documentId : the document id
|
|
80
|
-
* @param mode
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
*
|
|
85
|
-
* @
|
|
85
|
+
* @param mode: the optional mode. Default is references in
|
|
86
|
+
* @param model: the optional document model
|
|
87
|
+
* @param anchor: the optional document anchor
|
|
88
|
+
* @param anchorTitle: : the optional anchor title
|
|
89
|
+
* @param update: true if is an update
|
|
90
|
+
* @return the references dialog instance
|
|
86
91
|
*/
|
|
87
|
-
|
|
92
|
+
openReferences(documentId: string | null, mode?: ClipperQueryReferencesMode | null, model?: number | null | undefined, anchor?: string | null | undefined, anchorTitle?: string | null | undefined, update?: boolean | null | undefined): void;
|
|
88
93
|
/**
|
|
89
94
|
* Manage clipper bag
|
|
90
95
|
*/
|
|
91
|
-
|
|
96
|
+
openBag(): void;
|
|
92
97
|
/**
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
* Checks if a module is supported by RS
|
|
99
|
+
* @param module : the module to check
|
|
100
|
+
* @returns: true if the module is supported
|
|
101
|
+
*/
|
|
97
102
|
isModuleSupportedByRS(module: ClipperModule): boolean;
|
|
98
103
|
/**
|
|
99
104
|
* Checks if a model is supported by RS
|
|
@@ -102,10 +107,18 @@ export declare class ClipperDocumentManager {
|
|
|
102
107
|
*/
|
|
103
108
|
isModelSupportedByRS(model: ClipperModel): boolean;
|
|
104
109
|
/**
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
110
|
+
* Print current document
|
|
111
|
+
*/
|
|
112
|
+
print(): void;
|
|
113
|
+
/**
|
|
114
|
+
* Find in current document
|
|
115
|
+
*/
|
|
116
|
+
find(): void;
|
|
117
|
+
/**
|
|
118
|
+
* Checks if all documents are supported by RS
|
|
119
|
+
* @param items : the list of documens
|
|
120
|
+
* @returns: true if all documents supports RS
|
|
121
|
+
*/
|
|
109
122
|
canSupportRS(items: []): boolean;
|
|
110
123
|
/**
|
|
111
124
|
* Checks if RS is enabled for all given documents
|
|
@@ -114,9 +127,9 @@ export declare class ClipperDocumentManager {
|
|
|
114
127
|
*/
|
|
115
128
|
RS_enabled(documents: ClipperDocumentInfo[]): boolean;
|
|
116
129
|
/**
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
130
|
+
* New law
|
|
131
|
+
* @param documents: the array of documents to link to the law
|
|
132
|
+
*/
|
|
120
133
|
RS_newLaw(documents: ClipperDocumentInfo[]): void;
|
|
121
134
|
/**
|
|
122
135
|
* New activity
|
|
@@ -124,9 +137,9 @@ export declare class ClipperDocumentManager {
|
|
|
124
137
|
*/
|
|
125
138
|
RS_newActivity(document: ClipperDocumentInfo): void;
|
|
126
139
|
/**
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
140
|
+
* Document usage report
|
|
141
|
+
* @param document: the law
|
|
142
|
+
*/
|
|
130
143
|
RS_usageReport(document: ClipperDocumentInfo): void;
|
|
131
144
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClipperDocumentManager, never>;
|
|
132
145
|
static ɵcmp: i0.ɵɵComponentDeclaration<ClipperDocumentManager, "ng-component", never, {}, {}, never, never, true, never>;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { Signal } from '@angular/core';
|
|
2
2
|
import { ClipperDocumentInfo } from '@arsedizioni/ars-utils/clipper.common';
|
|
3
3
|
import { ClipperSearchResultManager } from '../search-result-manager/search-result-manager';
|
|
4
|
+
import { ClipperDocumentManager } from '../document-manager/document-manager';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ClipperDocumentMenuComponent {
|
|
6
|
-
|
|
7
|
-
selectionSource: import("@angular/core").InputSignal<"selection" | "bag" | "none">;
|
|
6
|
+
export declare class ClipperDocumentMenuComponent extends ClipperDocumentManager {
|
|
7
|
+
selectionSource: import("@angular/core").InputSignal<"selection" | "none" | "bag">;
|
|
8
8
|
protected selection: Signal<ClipperDocumentInfo[]>;
|
|
9
9
|
useSelections: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
parent: import("@angular/core").InputSignal<ClipperSearchResultManager>;
|
|
10
11
|
item: import("@angular/core").InputSignal<ClipperDocumentInfo>;
|
|
11
12
|
isReference: import("@angular/core").InputSignal<boolean>;
|
|
12
13
|
isReadable: import("@angular/core").InputSignal<boolean>;
|
|
13
14
|
isDeadline: import("@angular/core").InputSignal<boolean>;
|
|
14
15
|
isLawInForce: import("@angular/core").InputSignal<boolean>;
|
|
15
16
|
isLaw: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
canPrint: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
canFind: import("@angular/core").InputSignal<boolean>;
|
|
16
19
|
/**
|
|
17
20
|
* Check if current item or selection is read
|
|
18
21
|
* @returns 0 if not read, 1 if read, 2 if unknown
|
|
@@ -24,5 +27,5 @@ export declare class ClipperDocumentMenuComponent {
|
|
|
24
27
|
*/
|
|
25
28
|
setRead(value: boolean): void;
|
|
26
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClipperDocumentMenuComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ClipperDocumentMenuComponent, "clipper-document-menu", never, { "
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ClipperDocumentMenuComponent, "clipper-document-menu", never, { "selectionSource": { "alias": "selectionSource"; "required": false; "isSignal": true; }; "useSelections": { "alias": "useSelections"; "required": false; "isSignal": true; }; "parent": { "alias": "parent"; "required": false; "isSignal": true; }; "item": { "alias": "item"; "required": false; "isSignal": true; }; "isReference": { "alias": "isReference"; "required": false; "isSignal": true; }; "isReadable": { "alias": "isReadable"; "required": false; "isSignal": true; }; "isDeadline": { "alias": "isDeadline"; "required": false; "isSignal": true; }; "isLawInForce": { "alias": "isLawInForce"; "required": false; "isSignal": true; }; "isLaw": { "alias": "isLaw"; "required": false; "isSignal": true; }; "canPrint": { "alias": "canPrint"; "required": false; "isSignal": true; }; "canFind": { "alias": "canFind"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
28
31
|
}
|
|
@@ -10,6 +10,9 @@ export interface ClipperReferencesDialogData {
|
|
|
10
10
|
id: string;
|
|
11
11
|
model: number;
|
|
12
12
|
}
|
|
13
|
+
export interface ClipperReferenceDialogCloseInfo {
|
|
14
|
+
documentId: string;
|
|
15
|
+
}
|
|
13
16
|
export declare class ClipperReferencesComponent extends ClipperSearchResultManager implements OnInit, OnDestroy, AfterViewInit {
|
|
14
17
|
filterPane: MatDrawer;
|
|
15
18
|
private dialogRef;
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
2
2
|
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
3
3
|
import { MatPaginator } from '@angular/material/paginator';
|
|
4
|
-
import { ClipperDocumentInfo, ClipperSearchCalendarSnapshotResult, ClipperSearchFacetsResult, ClipperSearchParams, ClipperSearchResult } from '@arsedizioni/ars-utils/clipper.common';
|
|
5
|
-
import { NameValueItem, ScreenService, SelectableModel } from '@arsedizioni/ars-utils/core';
|
|
4
|
+
import { ClipperDocumentInfo, ClipperSearchCalendarSnapshotResult, ClipperSearchFacetsResult, ClipperSearchParams, ClipperSearchResult, ClipperService } from '@arsedizioni/ars-utils/clipper.common';
|
|
5
|
+
import { BroadcastService, NameValueItem, ScreenService, SelectableModel } from '@arsedizioni/ars-utils/core';
|
|
6
|
+
import { ApplicationDialogService } from '@arsedizioni/ars-utils/ui.application';
|
|
6
7
|
import { Subject } from 'rxjs';
|
|
7
|
-
import { ClipperDocumentManager } from '../document-manager/document-manager';
|
|
8
8
|
import { ClipperSearchCalendarComponent } from '../search-calendar/search-calendar.component';
|
|
9
9
|
import { ClipperSearchFacetsComponent } from '../search-facets/search-facets.component';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class ClipperSearchResultManager
|
|
11
|
+
export declare class ClipperSearchResultManager implements OnDestroy {
|
|
12
12
|
paginator: MatPaginator;
|
|
13
13
|
facets: ClipperSearchFacetsComponent;
|
|
14
14
|
calendar: ClipperSearchCalendarComponent;
|
|
15
15
|
protected unsubscribe: Subject<void>;
|
|
16
16
|
protected changeDetector: ChangeDetectorRef;
|
|
17
|
+
protected clipperService: ClipperService;
|
|
17
18
|
protected breakpointObserver: BreakpointObserver;
|
|
19
|
+
protected broadcastService: BroadcastService;
|
|
20
|
+
protected dialogService: ApplicationDialogService;
|
|
18
21
|
screenService: ScreenService;
|
|
19
22
|
selection: SelectableModel<any, string> | null;
|
|
20
23
|
protected snapshot: ClipperSearchResult | null;
|