@arsedizioni/ars-utils 22.6.85 → 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,8 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { SignalsUtils } from '@arsedizioni/ars-utils/core.validators';
|
|
5
|
-
|
|
1
|
+
import { PromptDateDialogResult, PromptDialogData, PromptDialogResult, PromptTimeDialogData } from "@arsedizioni/ars-utils/ui";
|
|
2
|
+
import { SignalsUtils } from "@arsedizioni/ars-utils/core.validators";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
6
4
|
/**
|
|
7
5
|
* Form model of the generic prompt.
|
|
8
6
|
*
|
|
@@ -11,50 +9,51 @@ import { SignalsUtils } from '@arsedizioni/ars-utils/core.validators';
|
|
|
11
9
|
* always owns the field. `value` stays `any` because its shape follows the prompt type.
|
|
12
10
|
*/
|
|
13
11
|
interface PromptForm {
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
/** The prompted value: `''` for textual types, `null` for the number and list types. */
|
|
13
|
+
value: any;
|
|
16
14
|
}
|
|
17
|
-
declare class PromptDialogComponent {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
15
|
+
export declare class PromptDialogComponent {
|
|
16
|
+
/** Error text of a field: the message declared in the schema, or the shared fallback. */
|
|
17
|
+
protected readonly getErrorMessage: typeof SignalsUtils.getFieldErrorMessage;
|
|
18
|
+
readonly done: import("@angular/core").OutputEmitterRef<PromptDialogResult>;
|
|
19
|
+
private readonly dialogService;
|
|
20
|
+
protected readonly dialogData: import("@angular/core").WritableSignal<PromptDialogData>;
|
|
21
|
+
/** Model backing the signal form. `value` type depends on the prompt type. */
|
|
22
|
+
private readonly model;
|
|
23
|
+
/**
|
|
24
|
+
* Builds the form model from the value carried by the dialog data.
|
|
25
|
+
*
|
|
26
|
+
* Ad-hoc because the empty value follows the prompt type: native inputs bound via
|
|
27
|
+
* `[formField]` report an empty number or an unselected option as `null`, while a
|
|
28
|
+
* text, date or textarea input reports `''`. The list type never takes an initial
|
|
29
|
+
* value: its options are matched by the template.
|
|
30
|
+
* @returns A fresh form model.
|
|
31
|
+
*/
|
|
32
|
+
private toForm;
|
|
33
|
+
/**
|
|
34
|
+
* Builds the dialog result from the current form model.
|
|
35
|
+
*
|
|
36
|
+
* Ad-hoc because the result also carries the prompt type and the caller's `options`,
|
|
37
|
+
* which are not part of the form model; the value itself goes through
|
|
38
|
+
* {@link DtoUtils.toPayload}, so an input left empty travels as absent instead of as
|
|
39
|
+
* an empty string or a `null`.
|
|
40
|
+
* @returns The result to emit through `done`.
|
|
41
|
+
*/
|
|
42
|
+
private toPayload;
|
|
43
|
+
/**
|
|
44
|
+
* Signal form for the prompt value. Validators mirror the previous template-driven
|
|
45
|
+
* form: `required` follows the dialog data, `min`/`max` apply to the Number type.
|
|
46
|
+
*/
|
|
47
|
+
protected readonly form: import("@angular/forms/signals").FieldTree<PromptForm, string | number, "writable">;
|
|
48
|
+
/**
|
|
49
|
+
* Validates the form and emits the result, or shows an error if validation fails.
|
|
50
|
+
*/
|
|
51
|
+
protected ok(): void;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptDialogComponent, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PromptDialogComponent, "ng-component", never, {}, {
|
|
54
|
+
"done": "done";
|
|
55
|
+
}, never, never, true, never>;
|
|
56
56
|
}
|
|
57
|
-
|
|
58
57
|
/**
|
|
59
58
|
* Form model of the date prompt.
|
|
60
59
|
*
|
|
@@ -65,90 +64,91 @@ declare class PromptDialogComponent {
|
|
|
65
64
|
* when a datepicker input is cleared.
|
|
66
65
|
*/
|
|
67
66
|
interface PromptDateForm {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
/** Value of the single-date type; `null` when the input is empty. */
|
|
68
|
+
date: Date | null;
|
|
69
|
+
/** Start of the range of the date-interval type; `null` when the input is empty. */
|
|
70
|
+
from: Date | null;
|
|
71
|
+
/** End of the range of the date-interval type; `null` when the input is empty. */
|
|
72
|
+
to: Date | null;
|
|
74
73
|
}
|
|
75
|
-
declare class PromptDateDialogComponent {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
74
|
+
export declare class PromptDateDialogComponent {
|
|
75
|
+
/** Error text of a field: the message declared in the schema, or the shared fallback. */
|
|
76
|
+
protected readonly getErrorMessage: typeof SignalsUtils.getFieldErrorMessage;
|
|
77
|
+
/**
|
|
78
|
+
* Error text for a date range: whichever end is in error speaks for the pair.
|
|
79
|
+
* @param from - Errors of the start field, from `f.from().errors()`.
|
|
80
|
+
* @param to - Errors of the end field, from `f.to().errors()`.
|
|
81
|
+
* @returns The text to show under the range, or `undefined` when neither end is in error.
|
|
82
|
+
*/
|
|
83
|
+
protected rangeErrorMessage(from: readonly {
|
|
84
|
+
kind: string;
|
|
85
|
+
message?: string;
|
|
86
|
+
}[], to: readonly {
|
|
87
|
+
kind: string;
|
|
88
|
+
message?: string;
|
|
89
|
+
}[]): string | undefined;
|
|
90
|
+
readonly done: import("@angular/core").OutputEmitterRef<PromptDateDialogResult>;
|
|
91
|
+
private readonly dialogService;
|
|
92
|
+
protected readonly dialogData: import("@angular/core").WritableSignal<PromptDialogData>;
|
|
93
|
+
/**
|
|
94
|
+
* Model backing the signal form: `date` serves the single-date type, while
|
|
95
|
+
* `from`/`to` serve the date-interval type. Empty values are `null` (not
|
|
96
|
+
* `undefined`) because signal forms only build child fields for keys whose
|
|
97
|
+
* value is defined, and Material's datepicker accessors report an empty
|
|
98
|
+
* input as `null` anyway; values are normalized to `undefined` on emit.
|
|
99
|
+
*/
|
|
100
|
+
private readonly model;
|
|
101
|
+
/**
|
|
102
|
+
* Builds the form model from the value carried by the dialog data: a `Date` for the
|
|
103
|
+
* single-date type, a {@link DateInterval} for the date-interval one.
|
|
104
|
+
* @returns A fresh form model, empty when the dialog was opened without a value.
|
|
105
|
+
*/
|
|
106
|
+
private toForm;
|
|
107
|
+
/**
|
|
108
|
+
* Builds the dialog result from the current form model.
|
|
109
|
+
*
|
|
110
|
+
* Ad-hoc because the two prompt types produce different values out of the same model
|
|
111
|
+
* — a `Date` or a {@link DateInterval} — and because the result also carries the type
|
|
112
|
+
* and the caller's `options`, which are not part of the form model. The dates
|
|
113
|
+
* themselves go through {@link DtoUtils.toPayload}, so a bound left empty travels as
|
|
114
|
+
* absent instead of as `null`.
|
|
115
|
+
* @returns The result to emit through `done`.
|
|
116
|
+
*/
|
|
117
|
+
private toPayload;
|
|
118
|
+
/**
|
|
119
|
+
* Signal form for the date value(s). `required` follows the dialog data and only
|
|
120
|
+
* applies to the fields of the active prompt type; the datepicker's own parse
|
|
121
|
+
* validators are picked up through the ControlValueAccessor interop.
|
|
122
|
+
*/
|
|
123
|
+
protected readonly form: import("@angular/forms/signals").FieldTree<PromptDateForm, string | number, "writable">;
|
|
124
|
+
/** Debounced stream of keyup events on the interval inputs (shorthand typing support). */
|
|
125
|
+
private readonly intervalKeyup;
|
|
126
|
+
constructor();
|
|
127
|
+
/**
|
|
128
|
+
* Blocks the space key on the interval inputs; it is reserved as the
|
|
129
|
+
* "copy the other bound" shortcut handled by onIntervalKeyup.
|
|
130
|
+
* @param event - The keydown event from the start or end date input.
|
|
131
|
+
*/
|
|
132
|
+
protected onIntervalKeydown(event: KeyboardEvent): void;
|
|
133
|
+
/**
|
|
134
|
+
* Forwards keyup events of the interval inputs to the debounced shorthand parser.
|
|
135
|
+
* @param event - The keyup event from the start or end date input.
|
|
136
|
+
* @param end - `true` when the event comes from the end-date input.
|
|
137
|
+
*/
|
|
138
|
+
protected onIntervalKeyup(event: KeyboardEvent, end: boolean): void;
|
|
139
|
+
/**
|
|
140
|
+
* Clears both bounds of the date interval.
|
|
141
|
+
*/
|
|
142
|
+
protected clearInterval(): void;
|
|
143
|
+
/**
|
|
144
|
+
* Validates the form and emits the result, or shows an error if validation fails.
|
|
145
|
+
*/
|
|
146
|
+
protected ok(): void;
|
|
147
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptDateDialogComponent, never>;
|
|
148
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PromptDateDialogComponent, "ng-component", never, {}, {
|
|
149
|
+
"done": "done";
|
|
150
|
+
}, never, never, true, never>;
|
|
150
151
|
}
|
|
151
|
-
|
|
152
152
|
/**
|
|
153
153
|
* Form model of the time prompt.
|
|
154
154
|
*
|
|
@@ -157,42 +157,42 @@ declare class PromptDateDialogComponent {
|
|
|
157
157
|
* is none, while the form always owns the field and holds `''` when empty.
|
|
158
158
|
*/
|
|
159
159
|
interface PromptTimeForm {
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
/** The `"HH:MM"` time value; `''` when the input is empty. */
|
|
161
|
+
value: string;
|
|
162
162
|
}
|
|
163
|
-
declare class PromptTimeDialogComponent {
|
|
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
|
-
|
|
163
|
+
export declare class PromptTimeDialogComponent {
|
|
164
|
+
/** Error text of a field: the message declared in the schema, or the shared fallback. */
|
|
165
|
+
protected readonly getErrorMessage: typeof SignalsUtils.getFieldErrorMessage;
|
|
166
|
+
readonly done: import("@angular/core").OutputEmitterRef<PromptDialogResult>;
|
|
167
|
+
private readonly dialogService;
|
|
168
|
+
protected readonly dialogData: import("@angular/core").WritableSignal<PromptTimeDialogData>;
|
|
169
|
+
/** Model backing the signal form. The value is a `"HH:MM"` time string. */
|
|
170
|
+
private readonly model;
|
|
171
|
+
/**
|
|
172
|
+
* Builds the form model from the value carried by the dialog data.
|
|
173
|
+
* @returns A fresh form model, empty when the dialog was opened without a value.
|
|
174
|
+
*/
|
|
175
|
+
private toForm;
|
|
176
|
+
/**
|
|
177
|
+
* Builds the dialog result from the current form model.
|
|
178
|
+
*
|
|
179
|
+
* Ad-hoc because the result also carries the caller's `options`, which are not part
|
|
180
|
+
* of the form model; the time itself goes through {@link DtoUtils.toPayload}, so an
|
|
181
|
+
* empty input travels as absent instead of as an empty string.
|
|
182
|
+
* @returns The result to emit through `done`.
|
|
183
|
+
*/
|
|
184
|
+
private toPayload;
|
|
185
|
+
/**
|
|
186
|
+
* Signal form for the time value: `required` follows the dialog data and the
|
|
187
|
+
* time validator enforces format and the optional allowed slots.
|
|
188
|
+
*/
|
|
189
|
+
protected readonly form: import("@angular/forms/signals").FieldTree<PromptTimeForm, string | number, "writable">;
|
|
190
|
+
/**
|
|
191
|
+
* Validates the form and emits the result, or shows an error if validation fails.
|
|
192
|
+
*/
|
|
193
|
+
protected ok(): void;
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptTimeDialogComponent, never>;
|
|
195
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PromptTimeDialogComponent, "ng-component", never, {}, {
|
|
196
|
+
"done": "done";
|
|
197
|
+
}, never, never, true, never>;
|
|
198
|
+
}
|