@arsedizioni/ars-utils 18.1.49 → 18.1.50

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": "18.1.49",
3
+ "version": "18.1.50",
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",
@@ -1,4 +1,4 @@
1
- import { Searchable, SearchBag } from '@arsedizioni/ars-utils/core';
1
+ import { DateInterval, Searchable, SearchBag } from '@arsedizioni/ars-utils/core';
2
2
  export interface SelectDialogResult {
3
3
  selectedItems: any[];
4
4
  }
@@ -91,11 +91,11 @@ export interface SendToDialogResult {
91
91
  recipients: string;
92
92
  subject: string;
93
93
  text: string;
94
- options?: any;
94
+ options?: any | null;
95
95
  }
96
96
  export interface PromptDialogResult {
97
- value: string;
98
- options?: any;
97
+ value: string | number | Date | DateInterval;
98
+ options?: any | null;
99
99
  }
100
100
  export declare enum PromptDialogType {
101
101
  Default = 0,
@@ -1,37 +1,18 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { NgForm } from '@angular/forms';
3
- import { MatDialogRef } from '@angular/material/dialog';
4
3
  import { PromptDialogData, PromptDialogResult } from '../../definitions';
5
- import { DialogService } from '@arsedizioni/ars-utils/ui';
6
4
  import * as i0 from "@angular/core";
7
- export declare class PromptDialogComponent {
5
+ export declare class PromptDialogComponent implements OnInit {
8
6
  f: NgForm;
9
7
  done: EventEmitter<PromptDialogResult>;
10
- data: PromptDialogData;
11
- value: any;
12
- constructor(_data: PromptDialogData);
8
+ private dialogService;
9
+ protected dialogData: PromptDialogData;
10
+ protected value: string | number | Date | null;
11
+ ngOnInit(): void;
13
12
  /**
14
13
  * Done
15
14
  */
16
- ok(): void;
15
+ protected ok(): void;
17
16
  static ɵfac: i0.ɵɵFactoryDeclaration<PromptDialogComponent, never>;
18
17
  static ɵcmp: i0.ɵɵComponentDeclaration<PromptDialogComponent, "ng-component", never, {}, { "done": "done"; }, never, never, true, never>;
19
18
  }
20
- export declare class _PromptDialogService {
21
- $dialog: DialogService;
22
- constructor($dialog: DialogService);
23
- /**
24
- * Prompt user to insert a value
25
- * @param title : the dialog title
26
- * @param type : the input type: 0 = text, 1 = date, 2 = number
27
- * @param description : the placeholder description
28
- * @param initialValue : the initial value
29
- * @param okCaption : ok button caption
30
- * @param cancelCaption : cancel button caption
31
- * @param options : checkable option list
32
- * @param width: the preferred width
33
- */
34
- prompt(title: string, type: number, description: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number): MatDialogRef<PromptDialogComponent>;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<_PromptDialogService, never>;
36
- static ɵprov: i0.ɵɵInjectableDeclaration<_PromptDialogService>;
37
- }
@@ -1,13 +1,14 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { NgForm } from '@angular/forms';
3
3
  import { PromptDialogData, PromptDialogResult } from '../../definitions';
4
4
  import * as i0 from "@angular/core";
5
- export declare class PromptDateDialogComponent {
5
+ export declare class PromptDateDialogComponent implements OnInit {
6
6
  f: NgForm;
7
7
  done: EventEmitter<PromptDialogResult>;
8
- data: PromptDialogData;
9
- value: any;
10
- constructor(_data: PromptDialogData);
8
+ private dialogService;
9
+ protected dialogData: PromptDialogData;
10
+ protected value: any | null;
11
+ ngOnInit(): void;
11
12
  /**
12
13
  * Done
13
14
  */
@@ -1,13 +1,14 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { NgForm } from '@angular/forms';
3
3
  import { PromptDialogResult, PromptTimeDialogData } from '../../definitions';
4
4
  import * as i0 from "@angular/core";
5
- export declare class PromptTimeDialogComponent {
5
+ export declare class PromptTimeDialogComponent implements OnInit {
6
6
  f: NgForm;
7
7
  done: EventEmitter<PromptDialogResult>;
8
- data: PromptTimeDialogData;
9
- value: any;
10
- constructor(_data: PromptTimeDialogData);
8
+ private dialogService;
9
+ protected dialogData: PromptTimeDialogData;
10
+ protected value: string | number | Date | null;
11
+ ngOnInit(): void;
11
12
  /**
12
13
  * Done
13
14
  */