@arsedizioni/ars-utils 18.1.49 → 18.1.51
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/ui.application/ui/definitions.mjs +1 -1
- package/esm2022/ui.application/ui/dialogs/prompt/prompt-dialog.component.mjs +42 -78
- package/esm2022/ui.application/ui/dialogs/prompt-date/prompt-date-dialog.component.mjs +45 -34
- package/esm2022/ui.application/ui/dialogs/prompt-time/prompt-time-dialog.component.mjs +42 -32
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +110 -126
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/package.json +7 -7
- package/ui.application/ui/definitions.d.ts +3 -3
- package/ui.application/ui/dialogs/prompt/prompt-dialog.component.d.ts +7 -26
- package/ui.application/ui/dialogs/prompt-date/prompt-date-dialog.component.d.ts +6 -5
- package/ui.application/ui/dialogs/prompt-time/prompt-time-dialog.component.d.ts +6 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arsedizioni/ars-utils",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.51",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "software@arsedizioni.it",
|
|
6
6
|
"name": "Fabio Buscaroli, Alberto Doria"
|
|
@@ -59,18 +59,18 @@
|
|
|
59
59
|
"esm": "./esm2022/core/arsedizioni-ars-utils-core.mjs",
|
|
60
60
|
"default": "./fesm2022/arsedizioni-ars-utils-core.mjs"
|
|
61
61
|
},
|
|
62
|
-
"./support.common": {
|
|
63
|
-
"types": "./support.common/index.d.ts",
|
|
64
|
-
"esm2022": "./esm2022/support.common/arsedizioni-ars-utils-support.common.mjs",
|
|
65
|
-
"esm": "./esm2022/support.common/arsedizioni-ars-utils-support.common.mjs",
|
|
66
|
-
"default": "./fesm2022/arsedizioni-ars-utils-support.common.mjs"
|
|
67
|
-
},
|
|
68
62
|
"./support.ui": {
|
|
69
63
|
"types": "./support.ui/index.d.ts",
|
|
70
64
|
"esm2022": "./esm2022/support.ui/arsedizioni-ars-utils-support.ui.mjs",
|
|
71
65
|
"esm": "./esm2022/support.ui/arsedizioni-ars-utils-support.ui.mjs",
|
|
72
66
|
"default": "./fesm2022/arsedizioni-ars-utils-support.ui.mjs"
|
|
73
67
|
},
|
|
68
|
+
"./support.common": {
|
|
69
|
+
"types": "./support.common/index.d.ts",
|
|
70
|
+
"esm2022": "./esm2022/support.common/arsedizioni-ars-utils-support.common.mjs",
|
|
71
|
+
"esm": "./esm2022/support.common/arsedizioni-ars-utils-support.common.mjs",
|
|
72
|
+
"default": "./fesm2022/arsedizioni-ars-utils-support.common.mjs"
|
|
73
|
+
},
|
|
74
74
|
"./tinymce": {
|
|
75
75
|
"types": "./tinymce/index.d.ts",
|
|
76
76
|
"esm2022": "./esm2022/tinymce/arsedizioni-ars-utils-tinymce.mjs",
|
|
@@ -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
|
|
98
|
-
options?: any;
|
|
97
|
+
value?: string | null;
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
private dialogService;
|
|
9
|
+
protected dialogData: PromptDialogData;
|
|
10
|
+
protected value: any | 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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
private dialogService;
|
|
9
|
+
protected dialogData: PromptTimeDialogData;
|
|
10
|
+
protected value: any | null;
|
|
11
|
+
ngOnInit(): void;
|
|
11
12
|
/**
|
|
12
13
|
* Done
|
|
13
14
|
*/
|