@arsedizioni/ars-utils 19.3.27 → 19.3.28
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/fesm2022/arsedizioni-ars-utils-ui.application.mjs +9 -10
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/package.json +9 -9
- package/ui.application/ui/definitions.d.ts +49 -41
- package/ui.application/ui/dialogs/select/select-dialog.component.d.ts +6 -6
- package/ui.application/ui/dialogs/select-tree/select-tree-dialog.component.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arsedizioni/ars-utils",
|
|
3
|
-
"version": "19.3.
|
|
3
|
+
"version": "19.3.28",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "software@arsedizioni.it",
|
|
6
6
|
"name": "Fabio Buscaroli, Alberto Doria"
|
|
@@ -40,26 +40,26 @@
|
|
|
40
40
|
"types": "./clipper.ui/index.d.ts",
|
|
41
41
|
"default": "./fesm2022/arsedizioni-ars-utils-clipper.ui.mjs"
|
|
42
42
|
},
|
|
43
|
-
"./evolution.common": {
|
|
44
|
-
"types": "./evolution.common/index.d.ts",
|
|
45
|
-
"default": "./fesm2022/arsedizioni-ars-utils-evolution.common.mjs"
|
|
46
|
-
},
|
|
47
43
|
"./core": {
|
|
48
44
|
"types": "./core/index.d.ts",
|
|
49
45
|
"default": "./fesm2022/arsedizioni-ars-utils-core.mjs"
|
|
50
46
|
},
|
|
47
|
+
"./evolution.common": {
|
|
48
|
+
"types": "./evolution.common/index.d.ts",
|
|
49
|
+
"default": "./fesm2022/arsedizioni-ars-utils-evolution.common.mjs"
|
|
50
|
+
},
|
|
51
51
|
"./help": {
|
|
52
52
|
"types": "./help/index.d.ts",
|
|
53
53
|
"default": "./fesm2022/arsedizioni-ars-utils-help.mjs"
|
|
54
54
|
},
|
|
55
|
-
"./support.common": {
|
|
56
|
-
"types": "./support.common/index.d.ts",
|
|
57
|
-
"default": "./fesm2022/arsedizioni-ars-utils-support.common.mjs"
|
|
58
|
-
},
|
|
59
55
|
"./support.ui": {
|
|
60
56
|
"types": "./support.ui/index.d.ts",
|
|
61
57
|
"default": "./fesm2022/arsedizioni-ars-utils-support.ui.mjs"
|
|
62
58
|
},
|
|
59
|
+
"./support.common": {
|
|
60
|
+
"types": "./support.common/index.d.ts",
|
|
61
|
+
"default": "./fesm2022/arsedizioni-ars-utils-support.common.mjs"
|
|
62
|
+
},
|
|
63
63
|
"./tinymce": {
|
|
64
64
|
"types": "./tinymce/index.d.ts",
|
|
65
65
|
"default": "./fesm2022/arsedizioni-ars-utils-tinymce.mjs"
|
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
import { Searchable, SearchBag } from '@arsedizioni/ars-utils/core';
|
|
2
2
|
export interface SelectDialogResult {
|
|
3
|
-
selectedItems:
|
|
3
|
+
selectedItems: SelectableItem[];
|
|
4
|
+
}
|
|
5
|
+
export interface SelectTreeDialogResult {
|
|
6
|
+
selectedItems: ItemNode[];
|
|
4
7
|
}
|
|
5
8
|
export interface SelectDialogLookup {
|
|
6
|
-
items: any
|
|
7
|
-
filter?: string
|
|
9
|
+
items: any;
|
|
10
|
+
filter?: string;
|
|
8
11
|
params?: any;
|
|
9
12
|
owner?: any;
|
|
10
13
|
}
|
|
11
14
|
export interface SelectDialogFilter {
|
|
12
|
-
items
|
|
13
|
-
filter?: string
|
|
15
|
+
items?: any;
|
|
16
|
+
filter?: string;
|
|
14
17
|
filterOption?: any;
|
|
15
18
|
owner?: any;
|
|
16
19
|
}
|
|
17
20
|
export interface SelectDialogAppend {
|
|
18
|
-
items: any
|
|
21
|
+
items: any;
|
|
22
|
+
owner?: any;
|
|
23
|
+
}
|
|
24
|
+
export interface SelectDialogEdit extends SelectableItem {
|
|
19
25
|
owner?: any;
|
|
20
26
|
}
|
|
21
27
|
export interface SelectDialogDelete {
|
|
22
28
|
items: any[];
|
|
23
29
|
selectedItems: any[];
|
|
30
|
+
owner?: any;
|
|
24
31
|
}
|
|
25
32
|
export interface SelectFile {
|
|
26
33
|
file: any;
|
|
@@ -28,52 +35,53 @@ export interface SelectFile {
|
|
|
28
35
|
}
|
|
29
36
|
export interface SelectDialogData {
|
|
30
37
|
title: string;
|
|
31
|
-
description?: string
|
|
32
|
-
okCaption?: string
|
|
33
|
-
maxItems?: number
|
|
34
|
-
multipleSelection?: boolean
|
|
35
|
-
mustSelect?: boolean
|
|
36
|
-
width?: number
|
|
37
|
-
filter?: string
|
|
38
|
+
description?: string;
|
|
39
|
+
okCaption?: string;
|
|
40
|
+
maxItems?: number;
|
|
41
|
+
multipleSelection?: boolean;
|
|
42
|
+
mustSelect?: boolean;
|
|
43
|
+
width?: number;
|
|
44
|
+
filter?: string;
|
|
38
45
|
filters?: any;
|
|
39
46
|
items?: any;
|
|
40
|
-
total?: number
|
|
47
|
+
total?: number;
|
|
41
48
|
lookupFields?: any;
|
|
42
|
-
lookupOnInit?: boolean
|
|
43
|
-
emptyMessage?: string
|
|
44
|
-
canLookupWithOptions?: boolean
|
|
45
|
-
canLookup?: boolean
|
|
46
|
-
canDelete?: boolean
|
|
47
|
-
canAppend?: boolean
|
|
48
|
-
canEdit?: boolean
|
|
49
|
-
canView?: boolean
|
|
50
|
-
canFilter?: boolean
|
|
51
|
-
canPaginate?: boolean
|
|
52
|
-
pageSize?: number
|
|
53
|
-
appearance?: string
|
|
54
|
-
header?: string
|
|
49
|
+
lookupOnInit?: boolean;
|
|
50
|
+
emptyMessage?: string;
|
|
51
|
+
canLookupWithOptions?: boolean;
|
|
52
|
+
canLookup?: boolean;
|
|
53
|
+
canDelete?: boolean;
|
|
54
|
+
canAppend?: boolean;
|
|
55
|
+
canEdit?: boolean;
|
|
56
|
+
canView?: boolean;
|
|
57
|
+
canFilter?: boolean;
|
|
58
|
+
canPaginate?: boolean;
|
|
59
|
+
pageSize?: number;
|
|
60
|
+
appearance?: string;
|
|
61
|
+
header?: string;
|
|
55
62
|
}
|
|
56
63
|
export interface SelectTreeDialogData {
|
|
57
64
|
title: string;
|
|
58
|
-
description?: string
|
|
59
|
-
okCaption?: string
|
|
60
|
-
nodes?: any
|
|
61
|
-
initialFilter?: string
|
|
62
|
-
appearance?: string
|
|
65
|
+
description?: string;
|
|
66
|
+
okCaption?: string;
|
|
67
|
+
nodes?: any;
|
|
68
|
+
initialFilter?: string;
|
|
69
|
+
appearance?: string;
|
|
70
|
+
owner?: any;
|
|
63
71
|
}
|
|
64
72
|
export interface SelectFileDialogData {
|
|
65
73
|
title: string;
|
|
66
|
-
description?: string
|
|
67
|
-
okCaption?: string
|
|
68
|
-
helpLink?: string
|
|
69
|
-
helpCaption?: string
|
|
74
|
+
description?: string;
|
|
75
|
+
okCaption?: string;
|
|
76
|
+
helpLink?: string;
|
|
77
|
+
helpCaption?: string;
|
|
70
78
|
options?: any;
|
|
71
|
-
|
|
79
|
+
owner?: any;
|
|
80
|
+
appearance?: string;
|
|
72
81
|
}
|
|
73
82
|
export declare class SelectableItem implements Searchable {
|
|
74
83
|
bag: any;
|
|
75
84
|
template: string;
|
|
76
|
-
owner?: any;
|
|
77
85
|
/**
|
|
78
86
|
* Searchable
|
|
79
87
|
*/
|
|
@@ -82,9 +90,9 @@ export declare class SelectableItem implements Searchable {
|
|
|
82
90
|
export declare class ItemNode {
|
|
83
91
|
id: string;
|
|
84
92
|
name: string;
|
|
85
|
-
count?: number
|
|
86
|
-
parent?: ItemNode
|
|
87
|
-
children?: ItemNode[]
|
|
93
|
+
count?: number;
|
|
94
|
+
parent?: ItemNode;
|
|
95
|
+
children?: ItemNode[];
|
|
88
96
|
bag: any;
|
|
89
97
|
}
|
|
90
98
|
export declare class SelectableNode extends ItemNode implements Searchable {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit } from "@angular/core";
|
|
2
2
|
import { MatCheckboxChange } from "@angular/material/checkbox";
|
|
3
3
|
import { MatSelectionList, MatSelectionListChange } from "@angular/material/list";
|
|
4
|
-
import { MatPaginator } from '@angular/material/paginator';
|
|
5
|
-
import { SelectDialogAppend, SelectDialogData, SelectDialogDelete, SelectDialogFilter, SelectDialogLookup, SelectDialogResult, SelectableItem } from "../../definitions";
|
|
4
|
+
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
5
|
+
import { SelectDialogAppend, SelectDialogData, SelectDialogDelete, SelectDialogEdit, SelectDialogFilter, SelectDialogLookup, SelectDialogResult, SelectableItem } from "../../definitions";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SelectDialogComponent implements OnInit {
|
|
8
8
|
readonly paginator: import("@angular/core").Signal<MatPaginator>;
|
|
@@ -11,7 +11,7 @@ export declare class SelectDialogComponent implements OnInit {
|
|
|
11
11
|
private dialogRef;
|
|
12
12
|
protected dialogData: SelectDialogData;
|
|
13
13
|
readonly done: import("@angular/core").OutputEmitterRef<SelectDialogResult>;
|
|
14
|
-
readonly edit: import("@angular/core").OutputEmitterRef<
|
|
14
|
+
readonly edit: import("@angular/core").OutputEmitterRef<SelectDialogEdit>;
|
|
15
15
|
readonly view: import("@angular/core").OutputEmitterRef<SelectableItem>;
|
|
16
16
|
readonly append: import("@angular/core").OutputEmitterRef<SelectDialogAppend>;
|
|
17
17
|
readonly delete: import("@angular/core").OutputEmitterRef<SelectDialogDelete>;
|
|
@@ -80,7 +80,7 @@ export declare class SelectDialogComponent implements OnInit {
|
|
|
80
80
|
* Apply filter
|
|
81
81
|
* @param text : the string to filter to
|
|
82
82
|
*/
|
|
83
|
-
protected doFilter(text?: string, e?:
|
|
83
|
+
protected doFilter(text?: string, e?: KeyboardEvent): void;
|
|
84
84
|
/**
|
|
85
85
|
* Apply filter using filter options
|
|
86
86
|
* @param filterOption : the current filter option
|
|
@@ -90,7 +90,7 @@ export declare class SelectDialogComponent implements OnInit {
|
|
|
90
90
|
* Apply filter. This is accessible from public
|
|
91
91
|
* @param params : the object with current parameters
|
|
92
92
|
*/
|
|
93
|
-
doLookup(params: any): void;
|
|
93
|
+
protected doLookup(params: any): void;
|
|
94
94
|
/**
|
|
95
95
|
* Update lookup paginatro
|
|
96
96
|
* @param total : the new total items
|
|
@@ -100,7 +100,7 @@ export declare class SelectDialogComponent implements OnInit {
|
|
|
100
100
|
* Apply filter
|
|
101
101
|
* @param e : the MatPaginator PageEvent data
|
|
102
102
|
*/
|
|
103
|
-
protected doLookupPage(e:
|
|
103
|
+
protected doLookupPage(e: PageEvent): void;
|
|
104
104
|
/**
|
|
105
105
|
* Append
|
|
106
106
|
*/
|
|
@@ -2,7 +2,7 @@ import { FlatTreeControl } from '@angular/cdk/tree';
|
|
|
2
2
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
3
|
import { MatTreeFlatDataSource } from '@angular/material/tree';
|
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
|
5
|
-
import { ItemNode,
|
|
5
|
+
import { ItemNode, SelectTreeDialogData, SelectTreeDialogResult, SelectableNode } from '../../definitions';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class TreeDataSource implements OnDestroy {
|
|
8
8
|
dataChange: BehaviorSubject<ItemNode[]>;
|
|
@@ -43,7 +43,7 @@ export declare class TreeDataSource implements OnDestroy {
|
|
|
43
43
|
static ɵprov: i0.ɵɵInjectableDeclaration<TreeDataSource>;
|
|
44
44
|
}
|
|
45
45
|
export declare class SelectTreeDialogComponent implements OnInit, OnDestroy {
|
|
46
|
-
readonly done: import("@angular/core").OutputEmitterRef<
|
|
46
|
+
readonly done: import("@angular/core").OutputEmitterRef<SelectTreeDialogResult>;
|
|
47
47
|
private unsubscribe;
|
|
48
48
|
private dialogRef;
|
|
49
49
|
protected dialogData: SelectTreeDialogData;
|
|
@@ -68,13 +68,13 @@ export declare class SelectTreeDialogComponent implements OnInit, OnDestroy {
|
|
|
68
68
|
/**
|
|
69
69
|
* Submit selection
|
|
70
70
|
*/
|
|
71
|
-
ok(): void;
|
|
71
|
+
protected ok(): void;
|
|
72
72
|
/**
|
|
73
73
|
* Select a node
|
|
74
74
|
* @param e : the event
|
|
75
75
|
* @param node : the
|
|
76
76
|
*/
|
|
77
|
-
protected select(e:
|
|
77
|
+
protected select(e: MouseEvent, node: SelectableNode): void;
|
|
78
78
|
/**
|
|
79
79
|
* Clear filter
|
|
80
80
|
*/
|