@arsedizioni/ars-utils 18.1.69 → 18.1.71
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 +130 -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 +10 -11
- 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 +134 -321
- package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +11 -12
- 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 +55 -89
- package/package.json +7 -7
- package/styles/ui.scss +18 -0
- package/support.ui/ui/notifications-browser/notifications-browser.component.d.ts +2 -2
- 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 { 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,46 +55,38 @@ 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
61
|
export declare class HelpViewerComponent implements OnInit, OnDestroy {
|
|
63
|
-
|
|
64
|
-
private
|
|
65
|
-
private $dialog;
|
|
66
|
-
private $help;
|
|
62
|
+
indexPane: MatSidenav;
|
|
63
|
+
private unsubscribe;
|
|
67
64
|
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>;
|
|
65
|
+
protected dialogData: HelpViewerDialogData;
|
|
66
|
+
private dialogService;
|
|
67
|
+
private helpService;
|
|
68
|
+
protected breakpointObserver: BreakpointObserver;
|
|
69
|
+
protected busy: import("@angular/core").WritableSignal<boolean>;
|
|
70
|
+
protected page: import("@angular/core").WritableSignal<string>;
|
|
71
|
+
private indexId;
|
|
72
|
+
private indexPaneClosed;
|
|
73
|
+
protected indexNode: IndexInfo;
|
|
74
|
+
private history;
|
|
75
|
+
protected canGoBack: Signal<boolean>;
|
|
76
|
+
protected height: import("@angular/core").WritableSignal<number>;
|
|
77
|
+
private tree;
|
|
88
78
|
private treeFlattener;
|
|
89
|
-
|
|
79
|
+
protected treeControl: FlatTreeControl<IndexNode>;
|
|
80
|
+
protected treeData: MatTreeFlatDataSource<IndexInfo, IndexNode>;
|
|
90
81
|
/**
|
|
91
82
|
* Manage flat tree view
|
|
92
83
|
*/
|
|
93
|
-
private
|
|
94
|
-
private
|
|
95
|
-
private
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
84
|
+
private folders;
|
|
85
|
+
private getChildren;
|
|
86
|
+
private getLevel;
|
|
87
|
+
private isExpandable;
|
|
88
|
+
protected hasChild: (_: number, _node: IndexNode) => boolean;
|
|
89
|
+
protected transformer: (item: IndexInfo, level: number) => IndexNode;
|
|
99
90
|
ngOnInit(): void;
|
|
100
91
|
ngOnDestroy(): void;
|
|
101
92
|
/**
|
|
@@ -107,36 +98,27 @@ export declare class HelpViewerComponent implements OnInit, OnDestroy {
|
|
|
107
98
|
*/
|
|
108
99
|
updateView(): void;
|
|
109
100
|
/**
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
updateSidenavVisibilty(mq?: string): void;
|
|
101
|
+
* Handle filter pane visibility
|
|
102
|
+
*/
|
|
103
|
+
private handleFilterPaneVisibility;
|
|
114
104
|
/**
|
|
115
|
-
*
|
|
105
|
+
* Show hide index pane manually
|
|
116
106
|
*/
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Close sidebar
|
|
120
|
-
*/
|
|
121
|
-
sidenavClose(): void;
|
|
122
|
-
/**
|
|
123
|
-
* Toggle sidenav
|
|
124
|
-
*/
|
|
125
|
-
sidenavToggle(): void;
|
|
107
|
+
protected toggleIndexPane(): void;
|
|
126
108
|
/**
|
|
127
109
|
* Close dialog
|
|
128
110
|
*/
|
|
129
|
-
close(): void;
|
|
111
|
+
protected close(): void;
|
|
130
112
|
/**
|
|
131
113
|
* Get the toc
|
|
132
114
|
*/
|
|
133
|
-
getToc(): void;
|
|
115
|
+
protected getToc(): void;
|
|
134
116
|
/**
|
|
135
117
|
* React to click event and find new help target to go to
|
|
136
118
|
* @param event : the click event
|
|
137
119
|
* @returns : always false, to stop navigation
|
|
138
120
|
*/
|
|
139
|
-
gotoChapter(event: any): boolean;
|
|
121
|
+
protected gotoChapter(event: any): boolean;
|
|
140
122
|
/**
|
|
141
123
|
* Find a node by id
|
|
142
124
|
* @param id : folder id
|
|
@@ -152,43 +134,27 @@ export declare class HelpViewerComponent implements OnInit, OnDestroy {
|
|
|
152
134
|
* @param id the chapter id#anchor
|
|
153
135
|
* @param position : the position to scroll to
|
|
154
136
|
*/
|
|
155
|
-
getChapter(id: string, position?: number): void;
|
|
137
|
+
protected getChapter(id: string, position?: number): void;
|
|
156
138
|
/**
|
|
157
139
|
* Goto position
|
|
158
140
|
* @param anchor the anchor to go to
|
|
159
141
|
* @param position the offset to go to
|
|
160
142
|
*/
|
|
161
|
-
gotoPosition(anchor: string, position?: number): void;
|
|
143
|
+
protected gotoPosition(anchor: string, position?: number): void;
|
|
162
144
|
/**
|
|
163
145
|
* Get scroll position
|
|
164
146
|
* @returns: the new scroll top
|
|
165
147
|
*/
|
|
166
|
-
getPosition(): number;
|
|
148
|
+
protected getPosition(): number;
|
|
167
149
|
/**
|
|
168
150
|
* Set scroll position
|
|
169
151
|
* @param position : the position to go to
|
|
170
152
|
*/
|
|
171
|
-
setPosition(position: number): void;
|
|
153
|
+
protected setPosition(position: number): void;
|
|
172
154
|
/**
|
|
173
155
|
* Go back
|
|
174
156
|
*/
|
|
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;
|
|
157
|
+
protected back(): void;
|
|
192
158
|
static ɵfac: i0.ɵɵFactoryDeclaration<HelpViewerComponent, never>;
|
|
193
159
|
static ɵcmp: i0.ɵɵComponentDeclaration<HelpViewerComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
194
160
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arsedizioni/ars-utils",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.71",
|
|
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.ui": {
|
|
63
63
|
"types": "./support.ui/index.d.ts",
|
|
64
64
|
"esm2022": "./esm2022/support.ui/arsedizioni-ars-utils-support.ui.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
|
}
|
|
@@ -15,8 +15,8 @@ export declare class SupportNotificationsBrowserComponent implements OnInit, OnD
|
|
|
15
15
|
private height;
|
|
16
16
|
protected selection: SelectableModel<any, number>;
|
|
17
17
|
protected searchParams: SupportNotificationsSearchParams;
|
|
18
|
-
protected total: number
|
|
19
|
-
protected items: any
|
|
18
|
+
protected total: import("@angular/core").WritableSignal<number>;
|
|
19
|
+
protected items: import("@angular/core").WritableSignal<any>;
|
|
20
20
|
protected contextMenuPosition: {
|
|
21
21
|
x: string;
|
|
22
22
|
y: string;
|
|
@@ -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;
|