cps-ui-kit 0.90.0 → 0.91.0

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.
@@ -647,6 +647,14 @@ class CpsInputComponent {
647
647
  this.error = 'Field is required';
648
648
  return;
649
649
  }
650
+ if ('pattern' in errors) {
651
+ this.error = 'Value is invalid';
652
+ return;
653
+ }
654
+ if ('email' in errors) {
655
+ this.error = 'Email format is invalid';
656
+ return;
657
+ }
650
658
  if ('minlength' in errors) {
651
659
  // eslint-disable-next-line dot-notation
652
660
  this.error = `Field must contain at least ${errors['minlength'].requiredLength} characters`;
@@ -6457,6 +6465,10 @@ class CpsTextareaComponent {
6457
6465
  this.error = 'Field is required';
6458
6466
  return;
6459
6467
  }
6468
+ if ('pattern' in errors) {
6469
+ this.error = 'Value is invalid';
6470
+ return;
6471
+ }
6460
6472
  if ('minlength' in errors) {
6461
6473
  // eslint-disable-next-line dot-notation
6462
6474
  this.error = `Field must contain at least ${errors['minlength'].requiredLength} characters`;