@arsedizioni/ars-utils 22.6.86 → 22.6.89

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