@arsedizioni/ars-utils 19.0.103 → 19.0.105

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.
@@ -669,6 +669,14 @@ class PromptDialogComponent {
669
669
  this.dialogService.error("Ci sono degli errori da correggere.");
670
670
  return;
671
671
  }
672
+ if (this.dialogData.type === 1) {
673
+ // Check date
674
+ const date = SystemUtils.parseDate(this.value);
675
+ if (!date || date.getFullYear() > 9999) {
676
+ this.dialogService.error("Data non valida.");
677
+ return;
678
+ }
679
+ }
672
680
  this.done.emit({ value: this.value, options: this.dialogData.options });
673
681
  }
674
682
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: PromptDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }