@arsedizioni/ars-utils 22.6.86 → 22.6.88
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-clipper.common.mjs +3158 -3344
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +7616 -4772
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.date.mjs +321 -702
- package/fesm2022/arsedizioni-ars-utils-core.date.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs +445 -590
- package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +1735 -2370
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.validators.mjs +1280 -1470
- package/fesm2022/arsedizioni-ars-utils-core.validators.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +1097 -1528
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +198 -294
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs +115 -117
- package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs +1607 -613
- package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs +840 -367
- package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs +1634 -651
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs +1255 -792
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs +1410 -357
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs +2401 -944
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.files.mjs +1553 -741
- package/fesm2022/arsedizioni-ars-utils-ui.files.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs +901 -430
- package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.help.mjs +737 -530
- package/fesm2022/arsedizioni-ars-utils-ui.help.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +6638 -1755
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs +1479 -1207
- package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs +1003 -270
- package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +497 -278
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs +48 -52
- package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs +464 -704
- package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs +724 -657
- package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils.mjs +3 -19
- package/fesm2022/arsedizioni-ars-utils.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +1151 -1163
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1588 -1426
- package/types/arsedizioni-ars-utils-core.d.ts +1169 -1172
- package/types/arsedizioni-ars-utils-core.date.d.ts +204 -208
- package/types/arsedizioni-ars-utils-core.markdown.d.ts +128 -126
- package/types/arsedizioni-ars-utils-core.validators.d.ts +270 -236
- package/types/arsedizioni-ars-utils-evolution.common.d.ts +1054 -1067
- package/types/arsedizioni-ars-utils-support.common.d.ts +225 -234
- package/types/arsedizioni-ars-utils-ui.controls.d.ts +440 -278
- package/types/arsedizioni-ars-utils-ui.controls.date.d.ts +24 -28
- package/types/arsedizioni-ars-utils-ui.controls.tree.d.ts +172 -136
- package/types/arsedizioni-ars-utils-ui.d.ts +2035 -821
- package/types/arsedizioni-ars-utils-ui.dialogs.auth.d.ts +327 -322
- package/types/arsedizioni-ars-utils-ui.dialogs.d.ts +343 -347
- package/types/arsedizioni-ars-utils-ui.dialogs.prompt.d.ts +167 -167
- package/types/arsedizioni-ars-utils-ui.dialogs.select.d.ts +373 -367
- package/types/arsedizioni-ars-utils-ui.files.d.ts +335 -283
- package/types/arsedizioni-ars-utils-ui.filters.d.ts +232 -160
- package/types/arsedizioni-ars-utils-ui.help.d.ts +204 -211
- package/types/arsedizioni-ars-utils-ui.navigation.d.ts +811 -646
- package/types/arsedizioni-ars-utils-ui.notifications.d.ts +74 -78
- package/types/arsedizioni-ars-utils-ui.oauth.d.ts +102 -62
- package/types/arsedizioni-ars-utils-ui.paginator.d.ts +19 -22
- package/types/arsedizioni-ars-utils-ui.shell.d.ts +376 -382
- package/types/arsedizioni-ars-utils-ui.tinymce.d.ts +244 -231
- package/types/arsedizioni-ars-utils.d.ts +1 -3
|
@@ -1,354 +1,350 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { ComponentType } from "@angular/cdk/portal";
|
|
2
|
+
import { MatDialogConfig, MatDialogRef } from "@angular/material/dialog";
|
|
3
|
+
import { MatSnackBarRef } from "@angular/material/snack-bar";
|
|
4
|
+
import { DialogOption, DialogResult, PromptDialogType, SelectDialogData } from "@arsedizioni/ars-utils/ui";
|
|
5
|
+
import { SelectDialogComponent, SelectTreeDialogComponent, SendToDialogComponent } from "@arsedizioni/ars-utils/ui.dialogs.select";
|
|
6
|
+
import { SelectFileDialogComponent, SelectPictureDialogComponent } from "@arsedizioni/ars-utils/ui.files";
|
|
7
|
+
import { PromptDateDialogComponent, PromptDialogComponent, PromptTimeDialogComponent } from "@arsedizioni/ars-utils/ui.dialogs.prompt";
|
|
8
|
+
import { PromptOtpDialogComponent } from "@arsedizioni/ars-utils/ui.dialogs.auth";
|
|
9
|
+
import { ShellService } from "@arsedizioni/ars-utils/ui.shell";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import { SignalsUtils } from "@arsedizioni/ars-utils/core.validators";
|
|
12
|
+
import { MatFormFieldAppearance } from "@angular/material/form-field";
|
|
13
|
+
export interface ConfirmDialogOption extends DialogOption {}
|
|
14
|
+
export interface ConfirmDialogData {
|
|
15
|
+
title?: string;
|
|
16
|
+
message: string;
|
|
17
|
+
okCaption?: string;
|
|
18
|
+
cancelCaption?: string;
|
|
19
|
+
otherCaption?: string;
|
|
20
|
+
options?: ConfirmDialogOption[];
|
|
21
|
+
details?: string;
|
|
16
22
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
export declare class ConfirmDialogComponent {
|
|
24
|
+
/** Emitted when the user makes a choice. Carries the selected result and any option state. */
|
|
25
|
+
readonly choosen: import("@angular/core").OutputEmitterRef<DialogResult>;
|
|
26
|
+
private readonly dialogRef;
|
|
27
|
+
/** Dialog configuration, with sensible defaults applied at construction time. */
|
|
28
|
+
protected readonly dialogData: import("@angular/core").WritableSignal<ConfirmDialogData>;
|
|
29
|
+
constructor();
|
|
30
|
+
/**
|
|
31
|
+
* Confirms the dialog, emitting `'ok'` together with the current option selections.
|
|
32
|
+
*/
|
|
33
|
+
ok(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Cancels the dialog, emitting `'cancel'`.
|
|
36
|
+
*/
|
|
37
|
+
cancel(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Triggers the tertiary action, emitting `'other'`.
|
|
40
|
+
*/
|
|
41
|
+
other(): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "ng-component", never, {}, {
|
|
44
|
+
"choosen": "choosen";
|
|
45
|
+
}, never, never, true, never>;
|
|
25
46
|
}
|
|
26
|
-
declare
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/** Dialog configuration, with sensible defaults applied at construction time. */
|
|
31
|
-
protected readonly dialogData: i0.WritableSignal<ConfirmDialogData>;
|
|
32
|
-
constructor();
|
|
33
|
-
/**
|
|
34
|
-
* Confirms the dialog, emitting `'ok'` together with the current option selections.
|
|
35
|
-
*/
|
|
36
|
-
ok(): void;
|
|
37
|
-
/**
|
|
38
|
-
* Cancels the dialog, emitting `'cancel'`.
|
|
39
|
-
*/
|
|
40
|
-
cancel(): void;
|
|
41
|
-
/**
|
|
42
|
-
* Triggers the tertiary action, emitting `'other'`.
|
|
43
|
-
*/
|
|
44
|
-
other(): void;
|
|
45
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "ng-component", never, {}, { "choosen": "choosen"; }, never, never, true, never>;
|
|
47
|
+
export declare enum DeleteDialogConfirmMode {
|
|
48
|
+
None = 0,
|
|
49
|
+
Simple = 1,
|
|
50
|
+
Strong = 2
|
|
47
51
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
export interface DeleteDialogData {
|
|
53
|
+
title?: string;
|
|
54
|
+
message: string;
|
|
55
|
+
confirmMode: DeleteDialogConfirmMode;
|
|
56
|
+
okCaption?: string;
|
|
57
|
+
cancelCaption?: string;
|
|
58
|
+
details?: string;
|
|
59
|
+
appearance?: MatFormFieldAppearance;
|
|
53
60
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
export declare class DeleteDialogComponent {
|
|
62
|
+
/** Error text of a field: the message declared in the schema, or the shared fallback. */
|
|
63
|
+
protected readonly getErrorMessage: typeof SignalsUtils.getFieldErrorMessage;
|
|
64
|
+
/** Emitted when the user makes a choice. Carries the selected result. */
|
|
65
|
+
readonly choosen: import("@angular/core").OutputEmitterRef<DialogResult>;
|
|
66
|
+
private readonly dialogRef;
|
|
67
|
+
/** Dialog configuration with defaults applied at construction time. */
|
|
68
|
+
protected readonly dialogData: import("@angular/core").WritableSignal<DeleteDialogData>;
|
|
69
|
+
/**
|
|
70
|
+
* Model backing the signal form: `confirmed` starts as `true` for all modes
|
|
71
|
+
* except `Simple`, which requires explicit checkbox confirmation, and
|
|
72
|
+
* `confirmValue` is the strong-confirmation text.
|
|
73
|
+
*/
|
|
74
|
+
private readonly model;
|
|
75
|
+
/**
|
|
76
|
+
* Signal form for the confirmation. In `Simple` mode the checkbox must be
|
|
77
|
+
* checked; in `Strong` mode the text must be exactly the word "elimina".
|
|
78
|
+
*/
|
|
79
|
+
protected readonly form: import("@angular/forms/signals").FieldTree<{
|
|
80
|
+
confirmed: boolean;
|
|
81
|
+
confirmValue: string;
|
|
82
|
+
}, string | number, "writable">;
|
|
83
|
+
/**
|
|
84
|
+
* Confirms the deletion, emitting `'ok'` and closing the dialog.
|
|
85
|
+
*/
|
|
86
|
+
ok(): void;
|
|
87
|
+
/**
|
|
88
|
+
* Cancels the operation, emitting `'cancel'` and closing the dialog.
|
|
89
|
+
*/
|
|
90
|
+
cancel(): void;
|
|
91
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DeleteDialogComponent, never>;
|
|
92
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DeleteDialogComponent, "ng-component", never, {}, {
|
|
93
|
+
"choosen": "choosen";
|
|
94
|
+
}, never, never, true, never>;
|
|
62
95
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
readonly choosen: i0.OutputEmitterRef<DialogResult>;
|
|
68
|
-
private readonly dialogRef;
|
|
69
|
-
/** Dialog configuration with defaults applied at construction time. */
|
|
70
|
-
protected readonly dialogData: i0.WritableSignal<DeleteDialogData>;
|
|
71
|
-
/**
|
|
72
|
-
* Model backing the signal form: `confirmed` starts as `true` for all modes
|
|
73
|
-
* except `Simple`, which requires explicit checkbox confirmation, and
|
|
74
|
-
* `confirmValue` is the strong-confirmation text.
|
|
75
|
-
*/
|
|
76
|
-
private readonly model;
|
|
77
|
-
/**
|
|
78
|
-
* Signal form for the confirmation. In `Simple` mode the checkbox must be
|
|
79
|
-
* checked; in `Strong` mode the text must be exactly the word "elimina".
|
|
80
|
-
*/
|
|
81
|
-
protected readonly form: _angular_forms_signals.FieldTree<{
|
|
82
|
-
confirmed: boolean;
|
|
83
|
-
confirmValue: string;
|
|
84
|
-
}, string | number, "writable">;
|
|
85
|
-
/**
|
|
86
|
-
* Confirms the deletion, emitting `'ok'` and closing the dialog.
|
|
87
|
-
*/
|
|
88
|
-
ok(): void;
|
|
89
|
-
/**
|
|
90
|
-
* Cancels the operation, emitting `'cancel'` and closing the dialog.
|
|
91
|
-
*/
|
|
92
|
-
cancel(): void;
|
|
93
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DeleteDialogComponent, never>;
|
|
94
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DeleteDialogComponent, "ng-component", never, {}, { "choosen": "choosen"; }, never, never, true, never>;
|
|
96
|
+
export interface ToastData {
|
|
97
|
+
message: string;
|
|
98
|
+
icon?: string;
|
|
99
|
+
actionCaption?: string;
|
|
95
100
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
+
export declare class ToastComponent {
|
|
102
|
+
/** Emitted when the user clicks the optional action button. */
|
|
103
|
+
readonly action: import("@angular/core").OutputEmitterRef<void>;
|
|
104
|
+
/** Snack-bar payload with a safe fallback to an empty message when no data is injected. */
|
|
105
|
+
protected readonly dialogData: import("@angular/core").WritableSignal<ToastData>;
|
|
106
|
+
/**
|
|
107
|
+
* Emits the `action` event to notify the caller that the action button was clicked.
|
|
108
|
+
*/
|
|
109
|
+
protected do(): void;
|
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastComponent, never>;
|
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "ng-component", never, {}, {
|
|
112
|
+
"action": "action";
|
|
113
|
+
}, never, never, true, never>;
|
|
101
114
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
promptTime(title: string, description?: string, slots?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): Promise<MatDialogRef<PromptTimeDialogComponent> | null>;
|
|
339
|
-
/**
|
|
340
|
-
* Prompt the user to enter an OTP code.
|
|
341
|
-
* @param title - Dialog title.
|
|
342
|
-
* @param description - Description text shown in the dialog.
|
|
343
|
-
* @param okCaption - Label for the confirm button.
|
|
344
|
-
* @param cancelCaption - Label for the cancel button.
|
|
345
|
-
* @param width - Maximum dialog width in pixels.
|
|
346
|
-
* @returns The opened dialog reference.
|
|
347
|
-
*/
|
|
348
|
-
promptOtp(title?: string, description?: string, okCaption?: string, cancelCaption?: string, width?: number): Promise<MatDialogRef<PromptOtpDialogComponent> | null>;
|
|
349
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
350
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
export { ConfirmDialogComponent, DeleteDialogComponent, DeleteDialogConfirmMode, DialogService, ToastComponent };
|
|
354
|
-
export type { ConfirmDialogData, ConfirmDialogOption, DeleteDialogData, IDialogService, ToastData };
|
|
115
|
+
export interface IDialogService {}
|
|
116
|
+
export declare class DialogService extends ShellService {
|
|
117
|
+
private readonly uiService;
|
|
118
|
+
/**
|
|
119
|
+
* Shares the SAME `appearance` signal instance as the root `UIService`:
|
|
120
|
+
* `uiService.setAppearance('outline')` is immediately visible here and in
|
|
121
|
+
* every dialog opened by this service.
|
|
122
|
+
*
|
|
123
|
+
* Held by delegation and no longer by inheritance: this service now extends `ShellService`,
|
|
124
|
+
* which knows nothing about Material and must not, so the two members every caller uses of
|
|
125
|
+
* `UIService` are re-exposed here.
|
|
126
|
+
*/
|
|
127
|
+
readonly appearance: import("@angular/core").WritableSignal<"fill" | "outline">;
|
|
128
|
+
/**
|
|
129
|
+
* Updates the global form-field appearance.
|
|
130
|
+
* @param value - The new appearance value. Falls back to `'fill'` when `undefined` is passed.
|
|
131
|
+
* @returns void
|
|
132
|
+
*/
|
|
133
|
+
setAppearance(value: 'fill' | 'outline' | undefined): void;
|
|
134
|
+
private readonly dialog;
|
|
135
|
+
private readonly snackBar;
|
|
136
|
+
private readonly location;
|
|
137
|
+
private readonly popHistory;
|
|
138
|
+
private popState;
|
|
139
|
+
private poppingState;
|
|
140
|
+
constructor();
|
|
141
|
+
/**
|
|
142
|
+
* Lets the next `popstate` through without closing the topmost dialog.
|
|
143
|
+
*
|
|
144
|
+
* Back closing the dialog on top is the rule of this service, and its listener is registered in
|
|
145
|
+
* the constructor — so nothing attached later can get in front of it. A caller that owns a
|
|
146
|
+
* dismissable state of its own INSIDE a dialog (a full-screen editor, a picker covering the
|
|
147
|
+
* dialog, a wizard step) needs Back to unwind that state first, and this is the only way to ask
|
|
148
|
+
* for it: push a history entry, call this, and handle the pop.
|
|
149
|
+
*
|
|
150
|
+
* The suspension lasts exactly one `popstate` and is consumed whether or not the caller pushed
|
|
151
|
+
* an entry, so it can not leave the service permanently deaf to the Back button.
|
|
152
|
+
*/
|
|
153
|
+
suspendBackClose(): void;
|
|
154
|
+
/**
|
|
155
|
+
* Removes trailing `#` characters from the current URL (e.g. after a page reload).
|
|
156
|
+
* @param resetPoppingState - When `true`, resets the internal popping-state flag.
|
|
157
|
+
*/
|
|
158
|
+
clearUrl(resetPoppingState?: boolean): void;
|
|
159
|
+
/**
|
|
160
|
+
* Close all dialogs
|
|
161
|
+
*/
|
|
162
|
+
closeAll(): void;
|
|
163
|
+
/**
|
|
164
|
+
* Opens a Material dialog. Returns `null` when not running in a browser.
|
|
165
|
+
* @param component - The component to open as a dialog.
|
|
166
|
+
* @param config - The dialog configuration.
|
|
167
|
+
* @returns The dialog reference, or `null` outside the browser.
|
|
168
|
+
*/
|
|
169
|
+
open<T>(component: ComponentType<T>, config: MatDialogConfig<unknown>): MatDialogRef<T> | null;
|
|
170
|
+
/**
|
|
171
|
+
* Internal helper that wraps `MatDialog.open`, subscribes to lifecycle hooks
|
|
172
|
+
* and manages browser-history push/pop entries.
|
|
173
|
+
* @param component - The component to open.
|
|
174
|
+
* @param config - The dialog configuration.
|
|
175
|
+
* @returns The dialog reference.
|
|
176
|
+
*/
|
|
177
|
+
private openDialog;
|
|
178
|
+
/**
|
|
179
|
+
* Returns the element height including margins
|
|
180
|
+
* @param element - element
|
|
181
|
+
* @returns the height
|
|
182
|
+
*/
|
|
183
|
+
private outerHeight;
|
|
184
|
+
/**
|
|
185
|
+
* Return current dialog height
|
|
186
|
+
*/
|
|
187
|
+
getCurrentDialogHeight(): number;
|
|
188
|
+
/**
|
|
189
|
+
* Returns the scrollable content area height for the topmost open dialog.
|
|
190
|
+
* @param fixedPartsClassName - CSS class names of fixed (non-scrollable) elements whose heights are subtracted.
|
|
191
|
+
* @param minimalHeight - Minimum height floor to use when the dialog height is smaller.
|
|
192
|
+
* @returns The computed scrollable height in pixels.
|
|
193
|
+
*/
|
|
194
|
+
getCurrentDialogScrollableHeight(fixedPartsClassName: string[], minimalHeight: number): number;
|
|
195
|
+
/**
|
|
196
|
+
* Push a dialog into the browser history
|
|
197
|
+
*/
|
|
198
|
+
private pushDialog;
|
|
199
|
+
/**
|
|
200
|
+
* Pop a dialog from the history
|
|
201
|
+
*/
|
|
202
|
+
private popDialog;
|
|
203
|
+
/**
|
|
204
|
+
* Shows a snack-bar toast notification.
|
|
205
|
+
* @param message - HTML message to display.
|
|
206
|
+
* @param duration - Visible duration in milliseconds. Defaults to `2000`.
|
|
207
|
+
* @param icon - Material icon name shown beside the message. Defaults to `'check'`.
|
|
208
|
+
* @param actionCaption - Optional label for the action button.
|
|
209
|
+
* @returns The snack-bar reference.
|
|
210
|
+
*/
|
|
211
|
+
toast(message: string, duration?: number, icon?: string, actionCaption?: string): MatSnackBarRef<ToastComponent>;
|
|
212
|
+
/**
|
|
213
|
+
* Opens a confirmation dialog.
|
|
214
|
+
* @param message - HTML message to display.
|
|
215
|
+
* @param title - Dialog title. Defaults to `'Conferma'`.
|
|
216
|
+
* @param okCaption - Primary action button label. Defaults to `'Si'`.
|
|
217
|
+
* @param cancelCaption - Cancel button label. Defaults to `'No'`.
|
|
218
|
+
* @param otherCaption - Optional tertiary action button label.
|
|
219
|
+
* @param options - Optional list of checkbox options shown to the user.
|
|
220
|
+
* @param width - Maximum dialog width in pixels. Defaults to `500`.
|
|
221
|
+
* @param details - Optional secondary details text.
|
|
222
|
+
* @returns The dialog reference, or `null` outside the browser.
|
|
223
|
+
*/
|
|
224
|
+
confirm(message: string, title?: string, okCaption?: string, cancelCaption?: string, otherCaption?: string, options?: ConfirmDialogOption[], width?: number, details?: string): MatDialogRef<ConfirmDialogComponent> | null;
|
|
225
|
+
/**
|
|
226
|
+
* Opens a deletion-confirmation dialog.
|
|
227
|
+
* @param message - HTML message to display.
|
|
228
|
+
* @param title - Dialog title. Defaults to `'Attenzione'`.
|
|
229
|
+
* @param confirmMode - Confirmation mode (none / checkbox / type-to-confirm). Defaults to `None`.
|
|
230
|
+
* @param okCaption - Primary action button label. Defaults to `'Si'`.
|
|
231
|
+
* @param cancelCaption - Cancel button label. Defaults to `'No'`.
|
|
232
|
+
* @param width - Maximum dialog width in pixels. Defaults to `500`.
|
|
233
|
+
* @param details - Optional secondary details text.
|
|
234
|
+
* @returns The dialog reference, or `null` outside the browser.
|
|
235
|
+
*/
|
|
236
|
+
delete(message: string, title?: string, confirmMode?: DeleteDialogConfirmMode, okCaption?: string, cancelCaption?: string, width?: number, details?: string): MatDialogRef<DeleteDialogComponent> | null;
|
|
237
|
+
/**
|
|
238
|
+
* Open a send-to-email dialog.
|
|
239
|
+
* @param title - Dialog title.
|
|
240
|
+
* @param text - Pre-filled message body.
|
|
241
|
+
* @param subject - Pre-filled subject line.
|
|
242
|
+
* @param canPopulate - Whether the populate-recipients action is available.
|
|
243
|
+
* @param count - Number of documents being sent.
|
|
244
|
+
* @param options - Checkable option list.
|
|
245
|
+
* @param width - Maximum dialog width in pixels.
|
|
246
|
+
* @returns The opened dialog reference.
|
|
247
|
+
*/
|
|
248
|
+
sendTo(title?: string, text?: string, subject?: string, canPopulate?: boolean, count?: number, options?: any, width?: number): Promise<MatDialogRef<SendToDialogComponent, any> | null>;
|
|
249
|
+
/**
|
|
250
|
+
* Open a tree-node selection dialog.
|
|
251
|
+
* @param nodes - The tree nodes to display.
|
|
252
|
+
* @param title - Dialog title.
|
|
253
|
+
* @param description - Optional description shown below the title.
|
|
254
|
+
* @param initialFilter - Pre-applied filter text.
|
|
255
|
+
* @param width - Maximum dialog width in pixels.
|
|
256
|
+
* @param okCaption - Label for the confirm button.
|
|
257
|
+
* @param canAppend - Whether the append-node action is available.
|
|
258
|
+
* @returns The opened dialog reference.
|
|
259
|
+
*/
|
|
260
|
+
selectTree(nodes: any, title?: string, description?: string, initialFilter?: string, width?: number, okCaption?: string, canAppend?: boolean): Promise<MatDialogRef<SelectTreeDialogComponent, any> | null>;
|
|
261
|
+
/**
|
|
262
|
+
* Open a picture-selection dialog.
|
|
263
|
+
* @param title - Dialog title.
|
|
264
|
+
* @param description - Brief description shown in the dialog.
|
|
265
|
+
* @param okCaption - Label for the confirm button.
|
|
266
|
+
* @param options - Checkable option list.
|
|
267
|
+
* @param width - Maximum dialog width in pixels.
|
|
268
|
+
* @param maxSize - Maximum accepted file size in MB.
|
|
269
|
+
* @param maxPictureWidth - Maximum accepted picture width in pixels.
|
|
270
|
+
* @param maxPictureHeight - Maximum accepted picture height in pixels.
|
|
271
|
+
* @returns The opened dialog reference.
|
|
272
|
+
*/
|
|
273
|
+
selectPicture(title?: string, description?: string, okCaption?: string, options?: any, width?: number, maxSize?: number, maxPictureWidth?: number, maxPictureHeight?: number): Promise<MatDialogRef<SelectPictureDialogComponent, any> | null>;
|
|
274
|
+
/**
|
|
275
|
+
* Open a file-selection dialog.
|
|
276
|
+
* @param title - Dialog title.
|
|
277
|
+
* @param description - Brief description shown in the dialog.
|
|
278
|
+
* @param okCaption - Label for the confirm button.
|
|
279
|
+
* @param helpLink - URL for the help link.
|
|
280
|
+
* @param helpCaption - Display text for the help link.
|
|
281
|
+
* @param options - Checkable option list.
|
|
282
|
+
* @param width - Maximum dialog width in pixels.
|
|
283
|
+
* @param maxSize - Maximum accepted file size in MB.
|
|
284
|
+
* @param accept - Accepted file extensions (e.g. `.pdf,.docx`).
|
|
285
|
+
* @returns The opened dialog reference.
|
|
286
|
+
*/
|
|
287
|
+
selectFile(title?: string, description?: string, okCaption?: string, helpLink?: string, helpCaption?: string, options?: any, width?: number, maxSize?: number, accept?: string): Promise<MatDialogRef<SelectFileDialogComponent, any> | null>;
|
|
288
|
+
/**
|
|
289
|
+
* Open a multipurpose selection and CRUD dialog.
|
|
290
|
+
* @param data - The dialog configuration model.
|
|
291
|
+
* @param disableClose - Whether the dialog can be closed by clicking outside.
|
|
292
|
+
* @param closeOnNavigation - Whether the dialog closes on route navigation.
|
|
293
|
+
* @returns The opened dialog reference.
|
|
294
|
+
*/
|
|
295
|
+
select(data: SelectDialogData, disableClose?: boolean, closeOnNavigation?: boolean): Promise<MatDialogRef<SelectDialogComponent, any> | null>;
|
|
296
|
+
/**
|
|
297
|
+
* Prompt the user to enter a value.
|
|
298
|
+
* @param title - Dialog title.
|
|
299
|
+
* @param type - The input type (default, text, number, etc.).
|
|
300
|
+
* @param description - Placeholder or description text.
|
|
301
|
+
* @param initialValue - Pre-filled value.
|
|
302
|
+
* @param okCaption - Label for the confirm button.
|
|
303
|
+
* @param cancelCaption - Label for the cancel button.
|
|
304
|
+
* @param options - Checkable option list.
|
|
305
|
+
* @param width - Maximum dialog width in pixels.
|
|
306
|
+
* @param required - Whether the input is required.
|
|
307
|
+
* @returns The opened dialog reference.
|
|
308
|
+
*/
|
|
309
|
+
prompt(title: string, type?: PromptDialogType, description?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): Promise<MatDialogRef<PromptDialogComponent> | null>;
|
|
310
|
+
/**
|
|
311
|
+
* Prompt the user to enter a date or date interval.
|
|
312
|
+
* @param title - Dialog title.
|
|
313
|
+
* @param type - Date or DateInterval.
|
|
314
|
+
* @param description - Placeholder or description text.
|
|
315
|
+
* @param initialValue - Pre-filled value.
|
|
316
|
+
* @param okCaption - Label for the confirm button.
|
|
317
|
+
* @param cancelCaption - Label for the cancel button.
|
|
318
|
+
* @param options - Checkable option list.
|
|
319
|
+
* @param width - Maximum dialog width in pixels.
|
|
320
|
+
* @param required - Whether the input is required.
|
|
321
|
+
* @returns The opened dialog reference.
|
|
322
|
+
*/
|
|
323
|
+
promptDate(title: string, type?: PromptDialogType.Date | PromptDialogType.DateInterval, description?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): Promise<MatDialogRef<PromptDateDialogComponent> | null>;
|
|
324
|
+
/**
|
|
325
|
+
* Prompt the user to enter a time value.
|
|
326
|
+
* @param title - Dialog title.
|
|
327
|
+
* @param description - Placeholder or description text.
|
|
328
|
+
* @param slots - Optional time slots string.
|
|
329
|
+
* @param initialValue - Pre-filled value.
|
|
330
|
+
* @param okCaption - Label for the confirm button.
|
|
331
|
+
* @param cancelCaption - Label for the cancel button.
|
|
332
|
+
* @param options - Checkable option list.
|
|
333
|
+
* @param width - Maximum dialog width in pixels.
|
|
334
|
+
* @param required - Whether the input is required.
|
|
335
|
+
* @returns The opened dialog reference.
|
|
336
|
+
*/
|
|
337
|
+
promptTime(title: string, description?: string, slots?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): Promise<MatDialogRef<PromptTimeDialogComponent> | null>;
|
|
338
|
+
/**
|
|
339
|
+
* Prompt the user to enter an OTP code.
|
|
340
|
+
* @param title - Dialog title.
|
|
341
|
+
* @param description - Description text shown in the dialog.
|
|
342
|
+
* @param okCaption - Label for the confirm button.
|
|
343
|
+
* @param cancelCaption - Label for the cancel button.
|
|
344
|
+
* @param width - Maximum dialog width in pixels.
|
|
345
|
+
* @returns The opened dialog reference.
|
|
346
|
+
*/
|
|
347
|
+
promptOtp(title?: string, description?: string, okCaption?: string, cancelCaption?: string, width?: number): Promise<MatDialogRef<PromptOtpDialogComponent> | null>;
|
|
348
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
349
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
350
|
+
}
|