@arsedizioni/ars-utils 20.0.20 → 20.0.22

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.
@@ -1031,7 +1031,7 @@ declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
1031
1031
  private changeDetector;
1032
1032
  private clipperService;
1033
1033
  readonly useSelections: _angular_core.InputSignal<boolean>;
1034
- readonly selectionSource: _angular_core.InputSignal<"none" | "selection" | "bag">;
1034
+ readonly selectionSource: _angular_core.InputSignal<"selection" | "bag" | "none">;
1035
1035
  protected selection: () => ClipperDocumentInfo[];
1036
1036
  readonly parent: _angular_core.InputSignal<ClipperSearchResultManager>;
1037
1037
  readonly item: _angular_core.InputSignal<ClipperDocumentInfo>;
@@ -680,66 +680,66 @@ class SystemUtils {
680
680
  if (password.length >= 10)
681
681
  score++;
682
682
  else
683
- suggestions.push('Usa almeno 10 caratteri');
683
+ suggestions.push('Usa almeno 10 caratteri.');
684
684
  if (password.length >= 12)
685
685
  score++;
686
686
  else if (password.length >= 10)
687
- suggestions.push('Considera di usare più di 12 caratteri');
687
+ suggestions.push('Considera di usare più di 12 caratteri.');
688
688
  // Lowercase letters
689
689
  if (/[a-z]/.test(password))
690
690
  score++;
691
691
  else
692
- suggestions.push('Aggiungi lettere minuscole');
692
+ suggestions.push('Aggiungi lettere minuscole.');
693
693
  // Uppercase letters
694
694
  if (/[A-Z]/.test(password))
695
695
  score++;
696
696
  else
697
- suggestions.push('Aggiungi lettere maiuscole');
697
+ suggestions.push('Aggiungi lettere maiuscole.');
698
698
  // Numbers
699
699
  if (/\d/.test(password))
700
700
  score++;
701
701
  else
702
- suggestions.push('Aggiungi numeri');
702
+ suggestions.push('Aggiungi numeri.');
703
703
  // Special characters
704
704
  if (/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(password))
705
705
  score++;
706
706
  else
707
- suggestions.push('Aggiungi caratteri speciali (!@#$%^&*)');
707
+ suggestions.push('Aggiungi caratteri speciali (!@#$%^&*).');
708
708
  // Common patterns
709
709
  if (/(.)\1{2,}/.test(password)) {
710
710
  score = Math.max(0, score - 1);
711
- suggestions.push('Evita di ripetere lo stesso carattere');
711
+ suggestions.push('Evita di ripetere lo stesso carattere.');
712
712
  }
713
713
  if (/123|abc|qwe/i.test(password)) {
714
714
  score = Math.max(0, score - 1);
715
- suggestions.push('Evita sequenze comuni (123, abc, qwe)');
715
+ suggestions.push('Evita sequenze comuni (123, abc, qwe).');
716
716
  }
717
717
  // Label and color
718
718
  let label;
719
719
  let color;
720
720
  let isValid;
721
721
  if (score <= 2) {
722
- label = 'Password é molto debole';
722
+ label = 'Molto debole';
723
723
  color = '#f44336';
724
724
  isValid = false;
725
725
  }
726
726
  else if (score <= 3) {
727
- label = 'Password debole';
727
+ label = 'Debole';
728
728
  color = '#ff9800';
729
729
  isValid = false;
730
730
  }
731
731
  else if (score <= 4) {
732
- label = 'Password media';
732
+ label = 'Media';
733
733
  color = '#ffc107';
734
734
  isValid = true;
735
735
  }
736
736
  else if (score <= 5) {
737
- label = 'Password forte';
737
+ label = 'Forte';
738
738
  color = '#8bc34a';
739
739
  isValid = true;
740
740
  }
741
741
  else {
742
- label = 'Password molto forte';
742
+ label = 'Molto forte';
743
743
  color = '#4caf50';
744
744
  isValid = true;
745
745
  }