@arsedizioni/ars-utils 22.5.6 → 22.5.7
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/README.md +4 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +3 -700
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.validators.mjs +717 -0
- package/fesm2022/arsedizioni-ars-utils-core.validators.mjs.map +1 -0
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs +2 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs +2 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs +2 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.files.mjs +2 -1
- package/fesm2022/arsedizioni-ars-utils-ui.files.mjs.map +1 -1
- package/package.json +5 -1
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1 -1
- package/types/arsedizioni-ars-utils-core.d.ts +1 -266
- package/types/arsedizioni-ars-utils-core.validators.d.ts +268 -0
|
@@ -0,0 +1,717 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, Directive, forwardRef, effect, inject, DestroyRef } from '@angular/core';
|
|
3
|
+
import { NG_VALIDATORS } from '@angular/forms';
|
|
4
|
+
import { SystemUtils } from '@arsedizioni/ars-utils/core';
|
|
5
|
+
import { endOfDay } from 'date-fns';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Directive that delegates validation to an externally provided validator function.
|
|
9
|
+
* Bind `[validator]="myFn"` where `myFn` is `(c: AbstractControl) => ValidationErrors | null`.
|
|
10
|
+
*/
|
|
11
|
+
class ValidatorDirective {
|
|
12
|
+
constructor() {
|
|
13
|
+
/** The custom validator function to apply. */
|
|
14
|
+
this.validator = input(undefined, /* @ts-ignore */
|
|
15
|
+
...(ngDevMode ? [{ debugName: "validator" }] : /* istanbul ignore next */ []));
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Invokes the provided validator function against the given control.
|
|
19
|
+
* Returns `null` (valid) when no function is bound.
|
|
20
|
+
* @param control - The form control to validate.
|
|
21
|
+
*/
|
|
22
|
+
validate(control) {
|
|
23
|
+
const fn = this.validator();
|
|
24
|
+
return fn ? fn(control) : null;
|
|
25
|
+
}
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
27
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: ValidatorDirective, isStandalone: true, selector: "[validator]", inputs: { validator: { classPropertyName: "validator", publicName: "validator", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{ provide: NG_VALIDATORS, useExisting: ValidatorDirective, multi: true }], ngImport: i0 }); }
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ValidatorDirective, decorators: [{
|
|
30
|
+
type: Directive,
|
|
31
|
+
args: [{
|
|
32
|
+
selector: '[validator]',
|
|
33
|
+
providers: [{ provide: NG_VALIDATORS, useExisting: ValidatorDirective, multi: true }],
|
|
34
|
+
standalone: true,
|
|
35
|
+
}]
|
|
36
|
+
}], propDecorators: { validator: [{ type: i0.Input, args: [{ isSignal: true, alias: "validator", required: false }] }] } });
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Directive that validates a control using the host object's `isValid()` method
|
|
40
|
+
* or a boolean expression passed via `[validIf]`.
|
|
41
|
+
*/
|
|
42
|
+
class ValidIfDirective {
|
|
43
|
+
constructor() {
|
|
44
|
+
/** When `true`, the control is considered valid regardless of the bound value. */
|
|
45
|
+
this.validIf = input(false, /* @ts-ignore */
|
|
46
|
+
...(ngDevMode ? [{ debugName: "validIf" }] : /* istanbul ignore next */ []));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Validates the control value against a boolean flag or the value's own `isValid()` method.
|
|
50
|
+
* @param control - The form control to validate.
|
|
51
|
+
*/
|
|
52
|
+
validate(control) {
|
|
53
|
+
let isValid = false;
|
|
54
|
+
const c = control.value ? control.value : null;
|
|
55
|
+
if (!c) {
|
|
56
|
+
isValid = this.validIf() === true;
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
try {
|
|
60
|
+
isValid = c.isValid();
|
|
61
|
+
}
|
|
62
|
+
catch { }
|
|
63
|
+
}
|
|
64
|
+
return isValid ? null : { validIf: "Non valido." };
|
|
65
|
+
}
|
|
66
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ValidIfDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
67
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: ValidIfDirective, isStandalone: true, selector: "[validIf]", inputs: { validIf: { classPropertyName: "validIf", publicName: "validIf", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
68
|
+
{
|
|
69
|
+
provide: NG_VALIDATORS,
|
|
70
|
+
useExisting: forwardRef(() => ValidIfDirective),
|
|
71
|
+
multi: true,
|
|
72
|
+
},
|
|
73
|
+
], ngImport: i0 }); }
|
|
74
|
+
}
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ValidIfDirective, decorators: [{
|
|
76
|
+
type: Directive,
|
|
77
|
+
args: [{
|
|
78
|
+
selector: "[validIf]",
|
|
79
|
+
providers: [
|
|
80
|
+
{
|
|
81
|
+
provide: NG_VALIDATORS,
|
|
82
|
+
useExisting: forwardRef(() => ValidIfDirective),
|
|
83
|
+
multi: true,
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
standalone: true,
|
|
87
|
+
}]
|
|
88
|
+
}], propDecorators: { validIf: [{ type: i0.Input, args: [{ isSignal: true, alias: "validIf", required: false }] }] } });
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Directive that validates that the host control's value equals the value of another control.
|
|
92
|
+
* Bind `[equals]="otherControl"`.
|
|
93
|
+
*
|
|
94
|
+
* The host control is re-validated whenever the OTHER control's value changes:
|
|
95
|
+
* without this, typing a new password AFTER the confirmation field was filled
|
|
96
|
+
* left the form incorrectly valid (the classic password/confirm bug).
|
|
97
|
+
*
|
|
98
|
+
* IMPORTANT (reciprocal-binding safety): the re-validation triggered from the
|
|
99
|
+
* other control's `valueChanges` runs with `{ emitEvent: false }`. Calling
|
|
100
|
+
* Angular's `onValidatorChange` instead would re-emit valueChanges, so a
|
|
101
|
+
* reciprocal setup (A [equals]=B and B [equals]=A) would overflow the stack.
|
|
102
|
+
*/
|
|
103
|
+
class EqualsValidatorDirective {
|
|
104
|
+
constructor() {
|
|
105
|
+
/** The control whose value must match the host control's value. */
|
|
106
|
+
this.equals = input(undefined, /* @ts-ignore */
|
|
107
|
+
...(ngDevMode ? [{ debugName: "equals" }] : /* istanbul ignore next */ []));
|
|
108
|
+
// Re-subscribe whenever the [equals] binding points to a different control,
|
|
109
|
+
// and re-validate the host on every change of the other control.
|
|
110
|
+
effect(() => {
|
|
111
|
+
const other = this.equals();
|
|
112
|
+
this.subscription?.unsubscribe();
|
|
113
|
+
this.subscription = other?.valueChanges.subscribe(() =>
|
|
114
|
+
// emitEvent:false breaks the reciprocal valueChanges loop (see class doc).
|
|
115
|
+
this.hostControl?.updateValueAndValidity({ emitEvent: false }));
|
|
116
|
+
// Re-validate the host when the bound control itself is swapped.
|
|
117
|
+
this.hostControl?.updateValueAndValidity({ emitEvent: false });
|
|
118
|
+
});
|
|
119
|
+
inject(DestroyRef).onDestroy(() => this.subscription?.unsubscribe());
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Validates that the host control value equals the bound control's value.
|
|
123
|
+
* Returns `null` (valid) when no control is bound.
|
|
124
|
+
* @param control - The form control to validate.
|
|
125
|
+
* @returns `null` when valid, `{ equals: ... }` otherwise.
|
|
126
|
+
*/
|
|
127
|
+
validate(control) {
|
|
128
|
+
this.hostControl = control;
|
|
129
|
+
const eq = this.equals();
|
|
130
|
+
if (!eq)
|
|
131
|
+
return null;
|
|
132
|
+
return eq.value === control.value ? null : { equals: "Non valido." };
|
|
133
|
+
}
|
|
134
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: EqualsValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
135
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: EqualsValidatorDirective, isStandalone: true, selector: "[equals]", inputs: { equals: { classPropertyName: "equals", publicName: "equals", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
136
|
+
{
|
|
137
|
+
provide: NG_VALIDATORS,
|
|
138
|
+
useExisting: forwardRef(() => EqualsValidatorDirective),
|
|
139
|
+
multi: true,
|
|
140
|
+
},
|
|
141
|
+
], ngImport: i0 }); }
|
|
142
|
+
}
|
|
143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: EqualsValidatorDirective, decorators: [{
|
|
144
|
+
type: Directive,
|
|
145
|
+
args: [{
|
|
146
|
+
selector: "[equals]",
|
|
147
|
+
providers: [
|
|
148
|
+
{
|
|
149
|
+
provide: NG_VALIDATORS,
|
|
150
|
+
useExisting: forwardRef(() => EqualsValidatorDirective),
|
|
151
|
+
multi: true,
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
standalone: true,
|
|
155
|
+
}]
|
|
156
|
+
}], ctorParameters: () => [], propDecorators: { equals: [{ type: i0.Input, args: [{ isSignal: true, alias: "equals", required: false }] }] } });
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Directive that validates that the host control's value is different from another control's value.
|
|
160
|
+
* Bind `[notEqual]="otherControl"`.
|
|
161
|
+
*
|
|
162
|
+
* The host control is re-validated whenever the OTHER control's value changes,
|
|
163
|
+
* so editing either field keeps both error states consistent.
|
|
164
|
+
*
|
|
165
|
+
* IMPORTANT (reciprocal-binding safety): the re-validation triggered from the
|
|
166
|
+
* other control's `valueChanges` is run with `{ emitEvent: false }`. Using
|
|
167
|
+
* Angular's `onValidatorChange` here instead would call `host.updateValueAndValidity()`
|
|
168
|
+
* WITH events, so a reciprocal setup (A [notEqual]=B and B [notEqual]=A) would
|
|
169
|
+
* ping-pong valueChanges between the two controls and overflow the stack.
|
|
170
|
+
*/
|
|
171
|
+
class NotEqualValidatorDirective {
|
|
172
|
+
constructor() {
|
|
173
|
+
/** The control whose value must differ from the host control's value. */
|
|
174
|
+
this.notEqual = input(undefined, /* @ts-ignore */
|
|
175
|
+
...(ngDevMode ? [{ debugName: "notEqual" }] : /* istanbul ignore next */ []));
|
|
176
|
+
effect(() => {
|
|
177
|
+
const other = this.notEqual();
|
|
178
|
+
this.subscription?.unsubscribe();
|
|
179
|
+
this.subscription = other?.valueChanges.subscribe(() =>
|
|
180
|
+
// Re-validate the host WITHOUT emitting valueChanges, otherwise a
|
|
181
|
+
// reciprocal binding would loop forever (see class doc).
|
|
182
|
+
this.hostControl?.updateValueAndValidity({ emitEvent: false }));
|
|
183
|
+
// Re-validate the host when the bound control itself is swapped.
|
|
184
|
+
this.hostControl?.updateValueAndValidity({ emitEvent: false });
|
|
185
|
+
});
|
|
186
|
+
inject(DestroyRef).onDestroy(() => this.subscription?.unsubscribe());
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Validates that the host control value is not equal to the bound control's value.
|
|
190
|
+
* Also clears the `notequal` error on the other control when the host becomes valid.
|
|
191
|
+
* Returns `null` (valid) when no control is bound.
|
|
192
|
+
* @param control - The form control to validate.
|
|
193
|
+
* @returns `null` when valid, `{ notequal: true }` otherwise.
|
|
194
|
+
*/
|
|
195
|
+
validate(control) {
|
|
196
|
+
this.hostControl = control;
|
|
197
|
+
const notEqual = this.notEqual();
|
|
198
|
+
if (!notEqual)
|
|
199
|
+
return null;
|
|
200
|
+
const isValid = (!notEqual.value && !control.value) || (notEqual.value !== control.value);
|
|
201
|
+
const errors = isValid ? null : { notequal: true };
|
|
202
|
+
if (errors) {
|
|
203
|
+
control.markAsTouched();
|
|
204
|
+
}
|
|
205
|
+
else if (notEqual.hasError('notequal')) {
|
|
206
|
+
const { notequal: _removed, ...rest } = notEqual.errors ?? {};
|
|
207
|
+
// emitEvent:false on both: clearing the partner's error must not feed
|
|
208
|
+
// back through valueChanges/statusChanges into this validator.
|
|
209
|
+
notEqual.setErrors(Object.keys(rest).length > 0 ? rest : null, { emitEvent: false });
|
|
210
|
+
notEqual.updateValueAndValidity({ onlySelf: true, emitEvent: false });
|
|
211
|
+
notEqual.markAsTouched();
|
|
212
|
+
notEqual.markAsDirty();
|
|
213
|
+
}
|
|
214
|
+
return errors;
|
|
215
|
+
}
|
|
216
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NotEqualValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
217
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: NotEqualValidatorDirective, isStandalone: true, selector: "[notEqual]", inputs: { notEqual: { classPropertyName: "notEqual", publicName: "notEqual", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
218
|
+
{
|
|
219
|
+
provide: NG_VALIDATORS,
|
|
220
|
+
useExisting: forwardRef(() => NotEqualValidatorDirective),
|
|
221
|
+
multi: true,
|
|
222
|
+
},
|
|
223
|
+
], ngImport: i0 }); }
|
|
224
|
+
}
|
|
225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NotEqualValidatorDirective, decorators: [{
|
|
226
|
+
type: Directive,
|
|
227
|
+
args: [{
|
|
228
|
+
selector: "[notEqual]",
|
|
229
|
+
providers: [
|
|
230
|
+
{
|
|
231
|
+
provide: NG_VALIDATORS,
|
|
232
|
+
useExisting: forwardRef(() => NotEqualValidatorDirective),
|
|
233
|
+
multi: true,
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
standalone: true,
|
|
237
|
+
}]
|
|
238
|
+
}], ctorParameters: () => [], propDecorators: { notEqual: [{ type: i0.Input, args: [{ isSignal: true, alias: "notEqual", required: false }] }] } });
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Directive that validates a semicolon-separated list of email addresses.
|
|
242
|
+
* Apply `emails` to a text input containing one or more addresses separated by `;`.
|
|
243
|
+
*/
|
|
244
|
+
class EmailsValidatorDirective {
|
|
245
|
+
/**
|
|
246
|
+
* Validates each address in a semicolon-separated email list.
|
|
247
|
+
* Returns `null` when the control is empty.
|
|
248
|
+
* @param control - The form control to validate.
|
|
249
|
+
*/
|
|
250
|
+
validate(control) {
|
|
251
|
+
const input = control.value;
|
|
252
|
+
if (!input || input.length === 0)
|
|
253
|
+
return null;
|
|
254
|
+
const parts = input.replaceAll(/\r\n/g, '').split(';');
|
|
255
|
+
const isValid = parts.every(part => part.length === 0 || !!SystemUtils.parseEmail(part));
|
|
256
|
+
return isValid ? null : { emails: "Elenco non valido." };
|
|
257
|
+
}
|
|
258
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: EmailsValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
259
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: EmailsValidatorDirective, isStandalone: true, selector: "[emails]", providers: [
|
|
260
|
+
{
|
|
261
|
+
provide: NG_VALIDATORS,
|
|
262
|
+
useExisting: forwardRef(() => EmailsValidatorDirective),
|
|
263
|
+
multi: true,
|
|
264
|
+
},
|
|
265
|
+
], ngImport: i0 }); }
|
|
266
|
+
}
|
|
267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: EmailsValidatorDirective, decorators: [{
|
|
268
|
+
type: Directive,
|
|
269
|
+
args: [{
|
|
270
|
+
selector: "[emails]",
|
|
271
|
+
providers: [
|
|
272
|
+
{
|
|
273
|
+
provide: NG_VALIDATORS,
|
|
274
|
+
useExisting: forwardRef(() => EmailsValidatorDirective),
|
|
275
|
+
multi: true,
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
standalone: true,
|
|
279
|
+
}]
|
|
280
|
+
}] });
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Directive that validates a control value as a GUID / UUID string.
|
|
284
|
+
* Apply `guid` to a text input that expects a valid UUID.
|
|
285
|
+
*/
|
|
286
|
+
class GuidValidatorDirective {
|
|
287
|
+
/**
|
|
288
|
+
* Validates that the control value is a well-formed GUID / UUID.
|
|
289
|
+
* Returns `null` when the control is empty.
|
|
290
|
+
* @param control - The form control to validate.
|
|
291
|
+
*/
|
|
292
|
+
validate(control) {
|
|
293
|
+
const input = control.value;
|
|
294
|
+
if (!input || input.length === 0)
|
|
295
|
+
return null;
|
|
296
|
+
return SystemUtils.parseUUID(input) ? null : { guid: "Non valido." };
|
|
297
|
+
}
|
|
298
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: GuidValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
299
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: GuidValidatorDirective, isStandalone: true, selector: "[guid]", providers: [
|
|
300
|
+
{
|
|
301
|
+
provide: NG_VALIDATORS,
|
|
302
|
+
useExisting: forwardRef(() => GuidValidatorDirective),
|
|
303
|
+
multi: true,
|
|
304
|
+
},
|
|
305
|
+
], ngImport: i0 }); }
|
|
306
|
+
}
|
|
307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: GuidValidatorDirective, decorators: [{
|
|
308
|
+
type: Directive,
|
|
309
|
+
args: [{
|
|
310
|
+
selector: "[guid]",
|
|
311
|
+
providers: [
|
|
312
|
+
{
|
|
313
|
+
provide: NG_VALIDATORS,
|
|
314
|
+
useExisting: forwardRef(() => GuidValidatorDirective),
|
|
315
|
+
multi: true,
|
|
316
|
+
},
|
|
317
|
+
],
|
|
318
|
+
standalone: true,
|
|
319
|
+
}]
|
|
320
|
+
}] });
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Directive that validates a control value as a parseable SQL-compatible date string.
|
|
324
|
+
* Apply `sqlDate` to a text input that expects a date after year 1750.
|
|
325
|
+
*/
|
|
326
|
+
class SqlDateValidatorDirective {
|
|
327
|
+
/**
|
|
328
|
+
* Validates that the control value can be parsed as a date after 1750.
|
|
329
|
+
* Returns `null` when the control is empty.
|
|
330
|
+
* @param control - The form control to validate.
|
|
331
|
+
*/
|
|
332
|
+
validate(control) {
|
|
333
|
+
const input = control.value;
|
|
334
|
+
if (!input || input.length === 0)
|
|
335
|
+
return null;
|
|
336
|
+
const parsed = SystemUtils.parseDate(input);
|
|
337
|
+
if (!parsed)
|
|
338
|
+
return { sqlDate: "Non valido." };
|
|
339
|
+
const d = endOfDay(parsed);
|
|
340
|
+
return d.getFullYear() > 1750 ? null : { sqlDate: "Non valido." };
|
|
341
|
+
}
|
|
342
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SqlDateValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
343
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: SqlDateValidatorDirective, isStandalone: true, selector: "[sqlDate]", providers: [
|
|
344
|
+
{
|
|
345
|
+
provide: NG_VALIDATORS,
|
|
346
|
+
useExisting: forwardRef(() => SqlDateValidatorDirective),
|
|
347
|
+
multi: true,
|
|
348
|
+
},
|
|
349
|
+
], ngImport: i0 }); }
|
|
350
|
+
}
|
|
351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SqlDateValidatorDirective, decorators: [{
|
|
352
|
+
type: Directive,
|
|
353
|
+
args: [{
|
|
354
|
+
selector: "[sqlDate]",
|
|
355
|
+
providers: [
|
|
356
|
+
{
|
|
357
|
+
provide: NG_VALIDATORS,
|
|
358
|
+
useExisting: forwardRef(() => SqlDateValidatorDirective),
|
|
359
|
+
multi: true,
|
|
360
|
+
},
|
|
361
|
+
],
|
|
362
|
+
standalone: true,
|
|
363
|
+
}]
|
|
364
|
+
}] });
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Directive that validates that a control value is not a future date.
|
|
368
|
+
* Apply `notFuture` to a text input that expects a date on or before today.
|
|
369
|
+
*/
|
|
370
|
+
class NotFutureValidatorDirective {
|
|
371
|
+
/**
|
|
372
|
+
* Validates that the control value represents a date that is not in the future.
|
|
373
|
+
* Returns `null` when the control is empty.
|
|
374
|
+
* @param control - The form control to validate.
|
|
375
|
+
*/
|
|
376
|
+
validate(control) {
|
|
377
|
+
const input = control.value;
|
|
378
|
+
if (!input || input.length === 0)
|
|
379
|
+
return null;
|
|
380
|
+
const parsed = SystemUtils.parseDate(input);
|
|
381
|
+
if (!parsed)
|
|
382
|
+
return { notFuture: "Non valido." };
|
|
383
|
+
const today = endOfDay(new Date());
|
|
384
|
+
const d = endOfDay(parsed);
|
|
385
|
+
return d <= today ? null : { notFuture: "Non valido." };
|
|
386
|
+
}
|
|
387
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NotFutureValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
388
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: NotFutureValidatorDirective, isStandalone: true, selector: "[notFuture]", providers: [
|
|
389
|
+
{
|
|
390
|
+
provide: NG_VALIDATORS,
|
|
391
|
+
useExisting: forwardRef(() => NotFutureValidatorDirective),
|
|
392
|
+
multi: true,
|
|
393
|
+
},
|
|
394
|
+
], ngImport: i0 }); }
|
|
395
|
+
}
|
|
396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NotFutureValidatorDirective, decorators: [{
|
|
397
|
+
type: Directive,
|
|
398
|
+
args: [{
|
|
399
|
+
selector: "[notFuture]",
|
|
400
|
+
providers: [
|
|
401
|
+
{
|
|
402
|
+
provide: NG_VALIDATORS,
|
|
403
|
+
useExisting: forwardRef(() => NotFutureValidatorDirective),
|
|
404
|
+
multi: true,
|
|
405
|
+
},
|
|
406
|
+
],
|
|
407
|
+
standalone: true,
|
|
408
|
+
}]
|
|
409
|
+
}] });
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Directive that validates a control value as a well-formed URL.
|
|
413
|
+
* Apply `url` to a text input that expects a URL.
|
|
414
|
+
*/
|
|
415
|
+
class UrlValidatorDirective {
|
|
416
|
+
/**
|
|
417
|
+
* Validates that the control value is a well-formed URL.
|
|
418
|
+
* Returns `null` (valid) when the control is empty.
|
|
419
|
+
* @param control - The form control to validate.
|
|
420
|
+
*/
|
|
421
|
+
validate(control) {
|
|
422
|
+
const input = control.value;
|
|
423
|
+
if (!input || input.length === 0)
|
|
424
|
+
return null;
|
|
425
|
+
return SystemUtils.parseUrl(input) ? null : { url: "Non valido." };
|
|
426
|
+
}
|
|
427
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: UrlValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
428
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: UrlValidatorDirective, isStandalone: true, selector: "[url]", providers: [
|
|
429
|
+
{
|
|
430
|
+
provide: NG_VALIDATORS,
|
|
431
|
+
useExisting: forwardRef(() => UrlValidatorDirective),
|
|
432
|
+
multi: true,
|
|
433
|
+
},
|
|
434
|
+
], ngImport: i0 }); }
|
|
435
|
+
}
|
|
436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: UrlValidatorDirective, decorators: [{
|
|
437
|
+
type: Directive,
|
|
438
|
+
args: [{
|
|
439
|
+
selector: "[url]",
|
|
440
|
+
providers: [
|
|
441
|
+
{
|
|
442
|
+
provide: NG_VALIDATORS,
|
|
443
|
+
useExisting: forwardRef(() => UrlValidatorDirective),
|
|
444
|
+
multi: true,
|
|
445
|
+
},
|
|
446
|
+
],
|
|
447
|
+
standalone: true,
|
|
448
|
+
}]
|
|
449
|
+
}] });
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Directive that validates a file size against configurable minimum and maximum bounds.
|
|
453
|
+
* Bind `[fileSize]` together with `[size]="fileSizeInMb"`, `[maxSizeMb]`, and `[minSizeMb]`.
|
|
454
|
+
*/
|
|
455
|
+
class FileSizeValidatorDirective {
|
|
456
|
+
constructor() {
|
|
457
|
+
/** Maximum allowed file size in megabytes. Defaults to 5. */
|
|
458
|
+
this.maxSizeMb = input(5, /* @ts-ignore */
|
|
459
|
+
...(ngDevMode ? [{ debugName: "maxSizeMb" }] : /* istanbul ignore next */ []));
|
|
460
|
+
/** Minimum required file size in megabytes. Defaults to 0. */
|
|
461
|
+
this.minSizeMb = input(0, /* @ts-ignore */
|
|
462
|
+
...(ngDevMode ? [{ debugName: "minSizeMb" }] : /* istanbul ignore next */ []));
|
|
463
|
+
/** The actual file size in megabytes to validate against the bounds. */
|
|
464
|
+
this.size = input(undefined, /* @ts-ignore */
|
|
465
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Validates that the bound file size falls within the configured min/max range.
|
|
469
|
+
* Returns `null` when no control value is present.
|
|
470
|
+
* @param control - The form control to validate.
|
|
471
|
+
*/
|
|
472
|
+
validate(control) {
|
|
473
|
+
const input = control.value;
|
|
474
|
+
if (!input)
|
|
475
|
+
return null;
|
|
476
|
+
const s = this.size() ?? 0;
|
|
477
|
+
const isValid = s <= this.maxSizeMb() && s >= this.minSizeMb();
|
|
478
|
+
return isValid ? null : { fileSize: "Non valido." };
|
|
479
|
+
}
|
|
480
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FileSizeValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
481
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: FileSizeValidatorDirective, isStandalone: true, selector: "[fileSize]", inputs: { maxSizeMb: { classPropertyName: "maxSizeMb", publicName: "maxSizeMb", isSignal: true, isRequired: false, transformFunction: null }, minSizeMb: { classPropertyName: "minSizeMb", publicName: "minSizeMb", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
482
|
+
{
|
|
483
|
+
provide: NG_VALIDATORS,
|
|
484
|
+
useExisting: forwardRef(() => FileSizeValidatorDirective),
|
|
485
|
+
multi: true,
|
|
486
|
+
},
|
|
487
|
+
], ngImport: i0 }); }
|
|
488
|
+
}
|
|
489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FileSizeValidatorDirective, decorators: [{
|
|
490
|
+
type: Directive,
|
|
491
|
+
args: [{
|
|
492
|
+
selector: "[fileSize]",
|
|
493
|
+
providers: [
|
|
494
|
+
{
|
|
495
|
+
provide: NG_VALIDATORS,
|
|
496
|
+
useExisting: forwardRef(() => FileSizeValidatorDirective),
|
|
497
|
+
multi: true,
|
|
498
|
+
},
|
|
499
|
+
],
|
|
500
|
+
standalone: true,
|
|
501
|
+
}]
|
|
502
|
+
}], propDecorators: { maxSizeMb: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSizeMb", required: false }] }], minSizeMb: [{ type: i0.Input, args: [{ isSignal: true, alias: "minSizeMb", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Directive that validates that a control value does not exceed a maximum word count.
|
|
506
|
+
* Bind `[maxTerms]="10"` to allow at most 10 whitespace-separated terms.
|
|
507
|
+
*/
|
|
508
|
+
class MaxTermsValidatorDirective {
|
|
509
|
+
constructor() {
|
|
510
|
+
/** The maximum number of whitespace-separated terms allowed. */
|
|
511
|
+
this.maxTerms = input(0, /* @ts-ignore */
|
|
512
|
+
...(ngDevMode ? [{ debugName: "maxTerms" }] : /* istanbul ignore next */ []));
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Validates that the control value contains no more than the configured number of terms.
|
|
516
|
+
* Returns `null` when the control is empty.
|
|
517
|
+
* @param control - The form control to validate.
|
|
518
|
+
*/
|
|
519
|
+
validate(control) {
|
|
520
|
+
const input = control.value;
|
|
521
|
+
if (!input)
|
|
522
|
+
return null;
|
|
523
|
+
const terms = input.match(/\S+/g)?.length ?? 0;
|
|
524
|
+
return terms <= this.maxTerms() ? null : { maxTerms: "Non valido." };
|
|
525
|
+
}
|
|
526
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: MaxTermsValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
527
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: MaxTermsValidatorDirective, isStandalone: true, selector: "[maxTerms]", inputs: { maxTerms: { classPropertyName: "maxTerms", publicName: "maxTerms", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
528
|
+
{
|
|
529
|
+
provide: NG_VALIDATORS,
|
|
530
|
+
useExisting: forwardRef(() => MaxTermsValidatorDirective),
|
|
531
|
+
multi: true,
|
|
532
|
+
},
|
|
533
|
+
], ngImport: i0 }); }
|
|
534
|
+
}
|
|
535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: MaxTermsValidatorDirective, decorators: [{
|
|
536
|
+
type: Directive,
|
|
537
|
+
args: [{
|
|
538
|
+
selector: "[maxTerms]",
|
|
539
|
+
providers: [
|
|
540
|
+
{
|
|
541
|
+
provide: NG_VALIDATORS,
|
|
542
|
+
useExisting: forwardRef(() => MaxTermsValidatorDirective),
|
|
543
|
+
multi: true,
|
|
544
|
+
},
|
|
545
|
+
],
|
|
546
|
+
standalone: true,
|
|
547
|
+
}]
|
|
548
|
+
}], propDecorators: { maxTerms: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxTerms", required: false }] }] } });
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Directive that validates a control value as a sufficiently strong password.
|
|
552
|
+
* Apply `password` to a password input.
|
|
553
|
+
*/
|
|
554
|
+
class PasswordValidatorDirective {
|
|
555
|
+
/**
|
|
556
|
+
* Validates that the control value meets the minimum password-strength requirements.
|
|
557
|
+
* @param control - The form control to validate.
|
|
558
|
+
*/
|
|
559
|
+
validate(control) {
|
|
560
|
+
const input = control.value ?? '';
|
|
561
|
+
const strength = SystemUtils.calculatePasswordStrength(input);
|
|
562
|
+
return strength.isValid ? null : { password: "Non valido." };
|
|
563
|
+
}
|
|
564
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PasswordValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
565
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: PasswordValidatorDirective, isStandalone: true, selector: "[password]", providers: [
|
|
566
|
+
{
|
|
567
|
+
provide: NG_VALIDATORS,
|
|
568
|
+
useExisting: forwardRef(() => PasswordValidatorDirective),
|
|
569
|
+
multi: true,
|
|
570
|
+
},
|
|
571
|
+
], ngImport: i0 }); }
|
|
572
|
+
}
|
|
573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PasswordValidatorDirective, decorators: [{
|
|
574
|
+
type: Directive,
|
|
575
|
+
args: [{
|
|
576
|
+
selector: "[password]",
|
|
577
|
+
providers: [
|
|
578
|
+
{
|
|
579
|
+
provide: NG_VALIDATORS,
|
|
580
|
+
useExisting: forwardRef(() => PasswordValidatorDirective),
|
|
581
|
+
multi: true,
|
|
582
|
+
},
|
|
583
|
+
],
|
|
584
|
+
standalone: true,
|
|
585
|
+
}]
|
|
586
|
+
}] });
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Directive that validates a time string against optional allowed time slot ranges.
|
|
590
|
+
* Bind `[time]` and optionally `[slots]="'08:00-12:00|14:00-18:00'"` (pipe-separated ranges).
|
|
591
|
+
*/
|
|
592
|
+
class TimeValidatorDirective {
|
|
593
|
+
constructor() {
|
|
594
|
+
/** Optional pipe-separated list of allowed time ranges, e.g. `"08:00-12:00|14:00-18:00"`. */
|
|
595
|
+
this.slots = input(undefined, /* @ts-ignore */
|
|
596
|
+
...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* Parses a `"HH:MM"` time string into a comparable integer (e.g. `"09:30"` -> `930`).
|
|
600
|
+
* Returns `-1` when the string is not a valid time.
|
|
601
|
+
* @param value - The time string to parse.
|
|
602
|
+
*/
|
|
603
|
+
getTime(value) {
|
|
604
|
+
const p = value.split(':');
|
|
605
|
+
if (p.length !== 2)
|
|
606
|
+
return -1;
|
|
607
|
+
const hh = parseInt(p[0], 10);
|
|
608
|
+
if (isNaN(hh) || hh < 0 || hh > 23)
|
|
609
|
+
return -1;
|
|
610
|
+
const mm = parseInt(p[1], 10);
|
|
611
|
+
if (isNaN(mm) || mm < 0 || mm > 59)
|
|
612
|
+
return -1;
|
|
613
|
+
return hh * 100 + mm;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Validates that the control value is a valid time string and, when slots are configured,
|
|
617
|
+
* that it falls within at least one of the allowed ranges.
|
|
618
|
+
* Returns `null` when the control is empty.
|
|
619
|
+
* @param control - The form control to validate.
|
|
620
|
+
*/
|
|
621
|
+
validate(control) {
|
|
622
|
+
const input = control.value;
|
|
623
|
+
if (!input || input.length === 0)
|
|
624
|
+
return null;
|
|
625
|
+
const t = this.getTime(input);
|
|
626
|
+
if (t === -1)
|
|
627
|
+
return { time: "Non valido." };
|
|
628
|
+
const slotsValue = this.slots();
|
|
629
|
+
if (slotsValue) {
|
|
630
|
+
const isValid = slotsValue.split('|').some(s => {
|
|
631
|
+
const t1 = this.getTime(s.substring(0, 5));
|
|
632
|
+
const t2 = this.getTime(s.substring(6));
|
|
633
|
+
return t1 !== -1 && t2 !== -1 && t1 <= t && t2 >= t;
|
|
634
|
+
});
|
|
635
|
+
return isValid ? null : { time: "Non valido." };
|
|
636
|
+
}
|
|
637
|
+
return null;
|
|
638
|
+
}
|
|
639
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TimeValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
640
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: TimeValidatorDirective, isStandalone: true, selector: "[time]", inputs: { slots: { classPropertyName: "slots", publicName: "slots", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
641
|
+
{
|
|
642
|
+
provide: NG_VALIDATORS,
|
|
643
|
+
useExisting: forwardRef(() => TimeValidatorDirective),
|
|
644
|
+
multi: true,
|
|
645
|
+
},
|
|
646
|
+
], ngImport: i0 }); }
|
|
647
|
+
}
|
|
648
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TimeValidatorDirective, decorators: [{
|
|
649
|
+
type: Directive,
|
|
650
|
+
args: [{
|
|
651
|
+
selector: "[time]",
|
|
652
|
+
providers: [
|
|
653
|
+
{
|
|
654
|
+
provide: NG_VALIDATORS,
|
|
655
|
+
useExisting: forwardRef(() => TimeValidatorDirective),
|
|
656
|
+
multi: true,
|
|
657
|
+
},
|
|
658
|
+
],
|
|
659
|
+
standalone: true,
|
|
660
|
+
}]
|
|
661
|
+
}], propDecorators: { slots: [{ type: i0.Input, args: [{ isSignal: true, alias: "slots", required: false }] }] } });
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Directive that validates that a string control value is not blank (whitespace-only).
|
|
665
|
+
* Apply `notEmpty` to a text input where non-blank content is required.
|
|
666
|
+
*/
|
|
667
|
+
class NotEmptyValidatorDirective {
|
|
668
|
+
/**
|
|
669
|
+
* Validates that the control value is a non-blank string.
|
|
670
|
+
* Returns `null` when the control is empty or not a string.
|
|
671
|
+
* @param control - The form control to validate.
|
|
672
|
+
*/
|
|
673
|
+
validate(control) {
|
|
674
|
+
const input = control?.value;
|
|
675
|
+
if (!input || typeof input !== 'string' || input.length === 0)
|
|
676
|
+
return null;
|
|
677
|
+
return input.trim().length > 0 ? null : { notEmpty: true };
|
|
678
|
+
}
|
|
679
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NotEmptyValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
680
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: NotEmptyValidatorDirective, isStandalone: true, selector: "[notEmpty]", providers: [
|
|
681
|
+
{
|
|
682
|
+
provide: NG_VALIDATORS,
|
|
683
|
+
useExisting: forwardRef(() => NotEmptyValidatorDirective),
|
|
684
|
+
multi: true,
|
|
685
|
+
},
|
|
686
|
+
], ngImport: i0 }); }
|
|
687
|
+
}
|
|
688
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NotEmptyValidatorDirective, decorators: [{
|
|
689
|
+
type: Directive,
|
|
690
|
+
args: [{
|
|
691
|
+
selector: "[notEmpty]",
|
|
692
|
+
providers: [
|
|
693
|
+
{
|
|
694
|
+
provide: NG_VALIDATORS,
|
|
695
|
+
useExisting: forwardRef(() => NotEmptyValidatorDirective),
|
|
696
|
+
multi: true,
|
|
697
|
+
},
|
|
698
|
+
],
|
|
699
|
+
standalone: true,
|
|
700
|
+
}]
|
|
701
|
+
}] });
|
|
702
|
+
|
|
703
|
+
/*
|
|
704
|
+
* Public API Surface of @arsedizioni/ars-utils/core.validators
|
|
705
|
+
*
|
|
706
|
+
* Template-driven form validators. Kept OUT of `core` on purpose: every one of them pulls in
|
|
707
|
+
* `@angular/forms` (53 KB), and `core` is on the boot path of every application through
|
|
708
|
+
* `ThemeService`, `BroadcastService` and friends. Importing a validator now costs `@angular/forms`
|
|
709
|
+
* only to the lazy chunk that actually uses one.
|
|
710
|
+
*/
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Generated bundle index. Do not edit.
|
|
714
|
+
*/
|
|
715
|
+
|
|
716
|
+
export { EmailsValidatorDirective, EqualsValidatorDirective, FileSizeValidatorDirective, GuidValidatorDirective, MaxTermsValidatorDirective, NotEmptyValidatorDirective, NotEqualValidatorDirective, NotFutureValidatorDirective, PasswordValidatorDirective, SqlDateValidatorDirective, TimeValidatorDirective, UrlValidatorDirective, ValidIfDirective, ValidatorDirective };
|
|
717
|
+
//# sourceMappingURL=arsedizioni-ars-utils-core.validators.mjs.map
|