@arsedizioni/ars-utils 19.3.31 → 19.3.32

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.31",
3
+ "version": "19.3.32",
4
4
  "author": {
5
5
  "email": "software@arsedizioni.it",
6
6
  "name": "Fabio Buscaroli, Alberto Doria"
@@ -44,14 +44,14 @@
44
44
  "types": "./core/index.d.ts",
45
45
  "default": "./fesm2022/arsedizioni-ars-utils-core.mjs"
46
46
  },
47
- "./evolution.common": {
48
- "types": "./evolution.common/index.d.ts",
49
- "default": "./fesm2022/arsedizioni-ars-utils-evolution.common.mjs"
50
- },
51
47
  "./help": {
52
48
  "types": "./help/index.d.ts",
53
49
  "default": "./fesm2022/arsedizioni-ars-utils-help.mjs"
54
50
  },
51
+ "./evolution.common": {
52
+ "types": "./evolution.common/index.d.ts",
53
+ "default": "./fesm2022/arsedizioni-ars-utils-evolution.common.mjs"
54
+ },
55
55
  "./support.common": {
56
56
  "types": "./support.common/index.d.ts",
57
57
  "default": "./fesm2022/arsedizioni-ars-utils-support.common.mjs"
@@ -64,14 +64,14 @@
64
64
  "types": "./tinymce/index.d.ts",
65
65
  "default": "./fesm2022/arsedizioni-ars-utils-tinymce.mjs"
66
66
  },
67
- "./ui": {
68
- "types": "./ui/index.d.ts",
69
- "default": "./fesm2022/arsedizioni-ars-utils-ui.mjs"
70
- },
71
67
  "./ui.application": {
72
68
  "types": "./ui.application/index.d.ts",
73
69
  "default": "./fesm2022/arsedizioni-ars-utils-ui.application.mjs"
74
70
  },
71
+ "./ui": {
72
+ "types": "./ui/index.d.ts",
73
+ "default": "./fesm2022/arsedizioni-ars-utils-ui.mjs"
74
+ },
75
75
  "./ui.oauth": {
76
76
  "types": "./ui.oauth/index.d.ts",
77
77
  "default": "./fesm2022/arsedizioni-ars-utils-ui.oauth.mjs"
@@ -1,4 +1,4 @@
1
- import { Searchable, SearchBag } from '@arsedizioni/ars-utils/core';
1
+ import { Searchable, SearchBag, NameValueItem } from '@arsedizioni/ars-utils/core';
2
2
  export interface SelectDialogResult {
3
3
  selectedItems: SelectableItem[];
4
4
  }
@@ -6,32 +6,45 @@ export interface SelectTreeDialogResult {
6
6
  selectedItems: ItemNode[];
7
7
  }
8
8
  export interface SelectDialogLookup {
9
- items: any;
9
+ items: SelectableItem[];
10
10
  filter?: string;
11
11
  params?: any;
12
12
  owner?: any;
13
13
  }
14
14
  export interface SelectDialogFilter {
15
- items?: any;
15
+ items?: SelectableItem[];
16
16
  filter?: string;
17
- filterOption?: any;
17
+ filterOption?: SelectableFilter;
18
18
  owner?: any;
19
19
  }
20
20
  export interface SelectDialogAppend {
21
- items: any;
21
+ items: SelectableItem[];
22
22
  owner?: any;
23
23
  }
24
24
  export interface SelectDialogEdit extends SelectableItem {
25
25
  owner?: any;
26
26
  }
27
27
  export interface SelectDialogDelete {
28
- items: any[];
29
- selectedItems: any[];
28
+ items: SelectableItem[];
29
+ selectedItems: SelectableItem[];
30
30
  owner?: any;
31
31
  }
32
+ export interface SelectFileOption {
33
+ description: string;
34
+ value: boolean;
35
+ }
32
36
  export interface SelectFile {
33
37
  file: File;
34
- options?: any;
38
+ options?: SelectFileOption[];
39
+ }
40
+ export interface SelectableFilter {
41
+ divider?: boolean;
42
+ description?: string;
43
+ groupName?: string;
44
+ radio?: boolean;
45
+ value?: any;
46
+ icon?: string;
47
+ title?: string;
35
48
  }
36
49
  export interface SelectDialogData {
37
50
  title: string;
@@ -42,10 +55,10 @@ export interface SelectDialogData {
42
55
  mustSelect?: boolean;
43
56
  width?: number;
44
57
  filter?: string;
45
- filters?: any;
46
- items?: any;
58
+ filters?: SelectableFilter[];
59
+ items?: SelectableItem[];
47
60
  total?: number;
48
- lookupFields?: any;
61
+ lookupFields?: NameValueItem<string>[];
49
62
  lookupOnInit?: boolean;
50
63
  emptyMessage?: string;
51
64
  canLookupWithOptions?: boolean;
@@ -2,7 +2,7 @@ import { OnInit } from "@angular/core";
2
2
  import { MatCheckboxChange } from "@angular/material/checkbox";
3
3
  import { MatSelectionList, MatSelectionListChange } from "@angular/material/list";
4
4
  import { MatPaginator, PageEvent } from '@angular/material/paginator';
5
- import { SelectDialogAppend, SelectDialogData, SelectDialogDelete, SelectDialogEdit, SelectDialogFilter, SelectDialogLookup, SelectDialogResult, SelectableItem } from "../../definitions";
5
+ import { SelectDialogAppend, SelectDialogData, SelectDialogDelete, SelectDialogEdit, SelectDialogFilter, SelectDialogLookup, SelectDialogResult, SelectableFilter, 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>;
@@ -25,7 +25,7 @@ export declare class SelectDialogComponent implements OnInit {
25
25
  protected canPaginate: import("@angular/core").WritableSignal<boolean>;
26
26
  protected okDisabled: import("@angular/core").WritableSignal<boolean>;
27
27
  protected filterText: string;
28
- protected filterOptions: any;
28
+ protected filterOptions: SelectableFilter[];
29
29
  protected filterOptionsInfo: string;
30
30
  protected lookupField: string;
31
31
  private lookupParams;