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