@arsedizioni/ars-utils 18.1.70 → 18.1.72
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/esm2022/clipper.ui/ui/browser-dialog/browser-dialog.component.mjs +3 -3
- package/esm2022/clipper.ui/ui/document/document.component.mjs +3 -3
- package/esm2022/clipper.ui/ui/last-15-days/last-15-days.component.mjs +3 -3
- package/esm2022/clipper.ui/ui/references/references.component.mjs +3 -3
- package/esm2022/clipper.ui/ui/search-dialog/search-dialog.component.mjs +3 -3
- package/esm2022/clipper.ui/ui/search-facets/search-facets.component.mjs +3 -3
- package/esm2022/clipper.ui/ui/search-result-item/search-result-item.component.mjs +3 -3
- package/esm2022/help/components/help-viewer/help-viewer.component.mjs +138 -218
- package/esm2022/support.ui/ui/notifications-browser/notification/notification.component.mjs +3 -3
- package/esm2022/support.ui/ui/notifications-browser/notifications-browser.component.mjs +3 -3
- package/esm2022/ui/ui/dialogs/busy/busy-dialog.component.mjs +3 -3
- package/esm2022/ui/ui/dialogs/confirm/confirm-dialog.component.mjs +3 -3
- package/esm2022/ui/ui/dialogs/credentials/credentials-dialog.component.mjs +3 -3
- package/esm2022/ui/ui/dialogs/info/info-dialog.component.mjs +3 -3
- package/esm2022/ui/ui/dialogs/recover-password/recover-password-dialog.component.mjs +3 -3
- package/esm2022/ui/ui/dialogs/reset-password/reset-password-dialog.component.mjs +3 -3
- package/esm2022/ui.application/ui/components/filter-bar/filter-bar.component.mjs +3 -3
- package/esm2022/ui.application/ui/dialogs/prompt/prompt-dialog.component.mjs +3 -3
- package/esm2022/ui.application/ui/dialogs/prompt-date/prompt-date-dialog.component.mjs +3 -3
- package/esm2022/ui.application/ui/dialogs/prompt-time/prompt-time-dialog.component.mjs +3 -3
- package/esm2022/ui.application/ui/dialogs/select/select-dialog.component.mjs +3 -3
- package/esm2022/ui.application/ui/dialogs/select-file/select-file-dialog.component.mjs +3 -3
- package/esm2022/ui.application/ui/dialogs/select-picture/select-picture-dialog.component.mjs +3 -3
- package/esm2022/ui.application/ui/dialogs/select-tree/select-tree-dialog.component.mjs +7 -4
- package/esm2022/ui.application/ui/dialogs/send-to/send-to-dialog.component.mjs +3 -3
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +14 -14
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-help.mjs +142 -321
- package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +4 -4
- package/fesm2022/arsedizioni-ars-utils-support.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +22 -19
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +12 -12
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/help/components/help-viewer/help-viewer.component.d.ts +58 -90
- package/package.json +7 -7
- package/styles/ui.scss +18 -0
- package/ui.application/ui/dialogs/select-tree/select-tree-dialog.component.d.ts +4 -3
|
@@ -1,41 +1,40 @@
|
|
|
1
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
1
2
|
import { FlatTreeControl } from '@angular/cdk/tree';
|
|
2
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
|
-
import { MediaObserver } from '@ngbracket/ngx-layout';
|
|
4
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit, Signal } from '@angular/core';
|
|
5
4
|
import { MatSidenav } from '@angular/material/sidenav';
|
|
6
5
|
import { MatTreeFlatDataSource } from '@angular/material/tree';
|
|
7
|
-
import { DialogService } from '@arsedizioni/ars-utils/ui';
|
|
8
6
|
import { BehaviorSubject } from 'rxjs';
|
|
9
|
-
import { HelpService } from '../../services/help.service';
|
|
10
7
|
import * as i0 from "@angular/core";
|
|
11
|
-
export
|
|
8
|
+
export interface HelpViewerDialogData {
|
|
9
|
+
indexId?: string | null;
|
|
10
|
+
}
|
|
11
|
+
export declare class IndexInfo {
|
|
12
12
|
id: string;
|
|
13
|
-
parent?:
|
|
13
|
+
parent?: IndexInfo | null;
|
|
14
14
|
name: string;
|
|
15
|
-
itemsCount?: number;
|
|
16
|
-
subFolders?:
|
|
15
|
+
itemsCount?: number | null;
|
|
16
|
+
subFolders?: IndexInfo[] | null;
|
|
17
17
|
}
|
|
18
|
-
export declare class
|
|
18
|
+
export declare class IndexNode extends IndexInfo {
|
|
19
19
|
expandable: boolean;
|
|
20
20
|
level: number;
|
|
21
|
-
constructor(item:
|
|
21
|
+
constructor(item: IndexInfo, level: number);
|
|
22
22
|
}
|
|
23
|
-
export declare class
|
|
24
|
-
dataChange: BehaviorSubject<
|
|
25
|
-
get data():
|
|
26
|
-
constructor();
|
|
23
|
+
export declare class IndexTreeDataSource implements OnDestroy {
|
|
24
|
+
dataChange: BehaviorSubject<IndexInfo[]>;
|
|
25
|
+
get data(): IndexInfo[];
|
|
27
26
|
ngOnDestroy(): void;
|
|
28
27
|
/**
|
|
29
28
|
* Initialzie the data source
|
|
30
29
|
* @param data : data
|
|
31
30
|
*/
|
|
32
|
-
initialize(data:
|
|
31
|
+
initialize(data: IndexInfo[]): void;
|
|
33
32
|
/**
|
|
34
33
|
* Find a node by id recursively
|
|
35
34
|
* @param node: the source node
|
|
36
35
|
* @param id : the id to search for
|
|
37
36
|
*/
|
|
38
|
-
findNode(node:
|
|
37
|
+
findNode(node: IndexInfo, id: string): IndexInfo;
|
|
39
38
|
/**
|
|
40
39
|
* Remove a node
|
|
41
40
|
* @param id : the node id to remove
|
|
@@ -45,7 +44,7 @@ export declare class FolderTree implements OnDestroy {
|
|
|
45
44
|
* Insert a new node
|
|
46
45
|
* @param node : the new node
|
|
47
46
|
*/
|
|
48
|
-
insertNode(node:
|
|
47
|
+
insertNode(node: IndexInfo): void;
|
|
49
48
|
/**
|
|
50
49
|
* Rename a node
|
|
51
50
|
* @param id : the node id
|
|
@@ -56,48 +55,42 @@ export declare class FolderTree implements OnDestroy {
|
|
|
56
55
|
* Update data
|
|
57
56
|
*/
|
|
58
57
|
update(): void;
|
|
59
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
60
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IndexTreeDataSource, never>;
|
|
59
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IndexTreeDataSource>;
|
|
61
60
|
}
|
|
62
|
-
export declare class HelpViewerComponent implements OnInit, OnDestroy {
|
|
63
|
-
|
|
64
|
-
private
|
|
65
|
-
|
|
66
|
-
private $help;
|
|
61
|
+
export declare class HelpViewerComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
62
|
+
indexPane: MatSidenav;
|
|
63
|
+
private unsubscribe;
|
|
64
|
+
protected changeDetector: ChangeDetectorRef;
|
|
67
65
|
private dialogRef;
|
|
68
|
-
|
|
69
|
-
private
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
hits: number;
|
|
82
|
-
hit: number;
|
|
83
|
-
mq: string;
|
|
84
|
-
contentHeight: number;
|
|
85
|
-
currentFolder: FolderInfo;
|
|
86
|
-
treeControl: FlatTreeControl<FolderNode>;
|
|
87
|
-
treeData: MatTreeFlatDataSource<FolderInfo, FolderNode>;
|
|
66
|
+
protected dialogData: HelpViewerDialogData;
|
|
67
|
+
private dialogService;
|
|
68
|
+
private helpService;
|
|
69
|
+
protected breakpointObserver: BreakpointObserver;
|
|
70
|
+
protected busy: import("@angular/core").WritableSignal<boolean>;
|
|
71
|
+
protected page: import("@angular/core").WritableSignal<string>;
|
|
72
|
+
private indexId;
|
|
73
|
+
private indexPaneClosed;
|
|
74
|
+
protected indexNode: IndexInfo;
|
|
75
|
+
private history;
|
|
76
|
+
protected canGoBack: Signal<boolean>;
|
|
77
|
+
protected height: import("@angular/core").WritableSignal<number>;
|
|
78
|
+
private tree;
|
|
88
79
|
private treeFlattener;
|
|
89
|
-
|
|
80
|
+
protected treeControl: FlatTreeControl<IndexNode>;
|
|
81
|
+
protected treeData: MatTreeFlatDataSource<IndexInfo, IndexNode>;
|
|
90
82
|
/**
|
|
91
83
|
* Manage flat tree view
|
|
92
84
|
*/
|
|
93
|
-
private
|
|
94
|
-
private
|
|
95
|
-
private
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
85
|
+
private folders;
|
|
86
|
+
private getChildren;
|
|
87
|
+
private getLevel;
|
|
88
|
+
private isExpandable;
|
|
89
|
+
protected hasChild: (_: number, _node: IndexNode) => boolean;
|
|
90
|
+
protected transformer: (item: IndexInfo, level: number) => IndexNode;
|
|
99
91
|
ngOnInit(): void;
|
|
100
92
|
ngOnDestroy(): void;
|
|
93
|
+
ngAfterViewInit(): void;
|
|
101
94
|
/**
|
|
102
95
|
* Adjust view
|
|
103
96
|
*/
|
|
@@ -107,36 +100,27 @@ export declare class HelpViewerComponent implements OnInit, OnDestroy {
|
|
|
107
100
|
*/
|
|
108
101
|
updateView(): void;
|
|
109
102
|
/**
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
updateSidenavVisibilty(mq?: string): void;
|
|
103
|
+
* Handle filter pane visibility
|
|
104
|
+
*/
|
|
105
|
+
private handleFilterPaneVisibility;
|
|
114
106
|
/**
|
|
115
|
-
*
|
|
107
|
+
* Show hide index pane manually
|
|
116
108
|
*/
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Close sidebar
|
|
120
|
-
*/
|
|
121
|
-
sidenavClose(): void;
|
|
122
|
-
/**
|
|
123
|
-
* Toggle sidenav
|
|
124
|
-
*/
|
|
125
|
-
sidenavToggle(): void;
|
|
109
|
+
protected toggleIndexPane(): void;
|
|
126
110
|
/**
|
|
127
111
|
* Close dialog
|
|
128
112
|
*/
|
|
129
|
-
close(): void;
|
|
113
|
+
protected close(): void;
|
|
130
114
|
/**
|
|
131
115
|
* Get the toc
|
|
132
116
|
*/
|
|
133
|
-
getToc(): void;
|
|
117
|
+
protected getToc(): void;
|
|
134
118
|
/**
|
|
135
119
|
* React to click event and find new help target to go to
|
|
136
120
|
* @param event : the click event
|
|
137
121
|
* @returns : always false, to stop navigation
|
|
138
122
|
*/
|
|
139
|
-
gotoChapter(event: any): boolean;
|
|
123
|
+
protected gotoChapter(event: any): boolean;
|
|
140
124
|
/**
|
|
141
125
|
* Find a node by id
|
|
142
126
|
* @param id : folder id
|
|
@@ -152,43 +136,27 @@ export declare class HelpViewerComponent implements OnInit, OnDestroy {
|
|
|
152
136
|
* @param id the chapter id#anchor
|
|
153
137
|
* @param position : the position to scroll to
|
|
154
138
|
*/
|
|
155
|
-
getChapter(id: string, position?: number): void;
|
|
139
|
+
protected getChapter(id: string, position?: number): void;
|
|
156
140
|
/**
|
|
157
141
|
* Goto position
|
|
158
142
|
* @param anchor the anchor to go to
|
|
159
143
|
* @param position the offset to go to
|
|
160
144
|
*/
|
|
161
|
-
gotoPosition(anchor: string, position?: number): void;
|
|
145
|
+
protected gotoPosition(anchor: string, position?: number): void;
|
|
162
146
|
/**
|
|
163
147
|
* Get scroll position
|
|
164
148
|
* @returns: the new scroll top
|
|
165
149
|
*/
|
|
166
|
-
getPosition(): number;
|
|
150
|
+
protected getPosition(): number;
|
|
167
151
|
/**
|
|
168
152
|
* Set scroll position
|
|
169
153
|
* @param position : the position to go to
|
|
170
154
|
*/
|
|
171
|
-
setPosition(position: number): void;
|
|
155
|
+
protected setPosition(position: number): void;
|
|
172
156
|
/**
|
|
173
157
|
* Go back
|
|
174
158
|
*/
|
|
175
|
-
back(): void;
|
|
176
|
-
/**
|
|
177
|
-
* Compose a free text search query
|
|
178
|
-
*/
|
|
179
|
-
composeSearch(): void;
|
|
180
|
-
/**
|
|
181
|
-
* Perform search
|
|
182
|
-
*/
|
|
183
|
-
search(): void;
|
|
184
|
-
/**
|
|
185
|
-
* Goto next relevant item
|
|
186
|
-
*/
|
|
187
|
-
nextHit(): void;
|
|
188
|
-
/**
|
|
189
|
-
* Goto previous relevant item
|
|
190
|
-
*/
|
|
191
|
-
previousHit(): void;
|
|
159
|
+
protected back(): void;
|
|
192
160
|
static ɵfac: i0.ɵɵFactoryDeclaration<HelpViewerComponent, never>;
|
|
193
161
|
static ɵcmp: i0.ɵɵComponentDeclaration<HelpViewerComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
194
162
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arsedizioni/ars-utils",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.72",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "software@arsedizioni.it",
|
|
6
6
|
"name": "Fabio Buscaroli, Alberto Doria"
|
|
@@ -47,18 +47,18 @@
|
|
|
47
47
|
"esm": "./esm2022/clipper.ui/arsedizioni-ars-utils-clipper.ui.mjs",
|
|
48
48
|
"default": "./fesm2022/arsedizioni-ars-utils-clipper.ui.mjs"
|
|
49
49
|
},
|
|
50
|
-
"./help": {
|
|
51
|
-
"types": "./help/index.d.ts",
|
|
52
|
-
"esm2022": "./esm2022/help/arsedizioni-ars-utils-help.mjs",
|
|
53
|
-
"esm": "./esm2022/help/arsedizioni-ars-utils-help.mjs",
|
|
54
|
-
"default": "./fesm2022/arsedizioni-ars-utils-help.mjs"
|
|
55
|
-
},
|
|
56
50
|
"./core": {
|
|
57
51
|
"types": "./core/index.d.ts",
|
|
58
52
|
"esm2022": "./esm2022/core/arsedizioni-ars-utils-core.mjs",
|
|
59
53
|
"esm": "./esm2022/core/arsedizioni-ars-utils-core.mjs",
|
|
60
54
|
"default": "./fesm2022/arsedizioni-ars-utils-core.mjs"
|
|
61
55
|
},
|
|
56
|
+
"./help": {
|
|
57
|
+
"types": "./help/index.d.ts",
|
|
58
|
+
"esm2022": "./esm2022/help/arsedizioni-ars-utils-help.mjs",
|
|
59
|
+
"esm": "./esm2022/help/arsedizioni-ars-utils-help.mjs",
|
|
60
|
+
"default": "./fesm2022/arsedizioni-ars-utils-help.mjs"
|
|
61
|
+
},
|
|
62
62
|
"./support.common": {
|
|
63
63
|
"types": "./support.common/index.d.ts",
|
|
64
64
|
"esm2022": "./esm2022/support.common/arsedizioni-ars-utils-support.common.mjs",
|
package/styles/ui.scss
CHANGED
|
@@ -40,11 +40,21 @@
|
|
|
40
40
|
color: var(--mat-form-field-error-text-color, #a80710);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
.dialog-close {
|
|
44
|
+
margin-right: 10px;
|
|
45
|
+
margin-top: 10px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.dialog-menu {
|
|
49
|
+
margin-left: 10px;
|
|
50
|
+
margin-top: 10px;
|
|
51
|
+
}
|
|
43
52
|
|
|
44
53
|
.dialog-title {
|
|
45
54
|
padding: 0 24px;
|
|
46
55
|
}
|
|
47
56
|
|
|
57
|
+
|
|
48
58
|
.section-title {
|
|
49
59
|
font-size: large;
|
|
50
60
|
font-weight: 600;
|
|
@@ -52,6 +62,14 @@
|
|
|
52
62
|
padding-bottom: 8px;
|
|
53
63
|
}
|
|
54
64
|
|
|
65
|
+
.scroll-auto {
|
|
66
|
+
overflow: auto;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.scroll-hidden {
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
}
|
|
72
|
+
|
|
55
73
|
b {
|
|
56
74
|
font-weight: 700;
|
|
57
75
|
}
|
|
@@ -4,9 +4,10 @@ import { MatTreeFlatDataSource } from '@angular/material/tree';
|
|
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
|
5
5
|
import { ItemNode, SelectDialogResult, SelectTreeDialogData, SelectableNode } from '../../definitions';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TreeDataSource {
|
|
7
|
+
export declare class TreeDataSource implements OnDestroy {
|
|
8
8
|
dataChange: BehaviorSubject<ItemNode[]>;
|
|
9
9
|
get data(): ItemNode[];
|
|
10
|
+
ngOnDestroy(): void;
|
|
10
11
|
/**
|
|
11
12
|
* Initialzie the data source
|
|
12
13
|
* @param data : data
|
|
@@ -44,10 +45,10 @@ export declare class TreeDataSource {
|
|
|
44
45
|
export declare class SelectTreeDialogComponent implements OnInit, OnDestroy {
|
|
45
46
|
done: EventEmitter<SelectDialogResult>;
|
|
46
47
|
private unsubscribe;
|
|
47
|
-
private tree;
|
|
48
|
-
private treeFlattener;
|
|
49
48
|
private dialogRef;
|
|
50
49
|
protected dialogData: SelectTreeDialogData;
|
|
50
|
+
private tree;
|
|
51
|
+
private treeFlattener;
|
|
51
52
|
protected treeControl: FlatTreeControl<SelectableNode>;
|
|
52
53
|
protected treeData: MatTreeFlatDataSource<ItemNode, SelectableNode>;
|
|
53
54
|
protected currentNode: ItemNode;
|