@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arsedizioni/ars-utils",
3
- "version": "19.3.27",
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: any[];
3
+ selectedItems: SelectableItem[];
4
+ }
5
+ export interface SelectTreeDialogResult {
6
+ selectedItems: ItemNode[];
4
7
  }
5
8
  export interface SelectDialogLookup {
6
- items: any[];
7
- filter?: string | null;
9
+ items: any;
10
+ filter?: string;
8
11
  params?: any;
9
12
  owner?: any;
10
13
  }
11
14
  export interface SelectDialogFilter {
12
- items: any[];
13
- filter?: string | null;
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 | null;
32
- okCaption?: string | null;
33
- maxItems?: number | null;
34
- multipleSelection?: boolean | null;
35
- mustSelect?: boolean | null;
36
- width?: number | null;
37
- filter?: string | null;
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 | null;
47
+ total?: number;
41
48
  lookupFields?: any;
42
- lookupOnInit?: boolean | null;
43
- emptyMessage?: string | null;
44
- canLookupWithOptions?: boolean | null;
45
- canLookup?: boolean | null;
46
- canDelete?: boolean | null;
47
- canAppend?: boolean | null;
48
- canEdit?: boolean | null;
49
- canView?: boolean | null;
50
- canFilter?: boolean | null;
51
- canPaginate?: boolean | null;
52
- pageSize?: number | null;
53
- appearance?: string | null;
54
- header?: string | null;
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 | null;
59
- okCaption?: string | null;
60
- nodes?: any | null;
61
- initialFilter?: string | null;
62
- appearance?: string | null;
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 | null;
67
- okCaption?: string | null;
68
- helpLink?: string | null;
69
- helpCaption?: string | null;
74
+ description?: string;
75
+ okCaption?: string;
76
+ helpLink?: string;
77
+ helpCaption?: string;
70
78
  options?: any;
71
- appearance?: string | null;
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 | null;
86
- parent?: ItemNode | null;
87
- children?: ItemNode[] | null;
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<SelectableItem>;
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?: any): void;
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: any): void;
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, SelectDialogResult, SelectTreeDialogData, SelectableNode } from '../../definitions';
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<SelectDialogResult>;
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: any, node: SelectableNode): void;
77
+ protected select(e: MouseEvent, node: SelectableNode): void;
78
78
  /**
79
79
  * Clear filter
80
80
  */