@indigina/ui-kit 1.1.458 → 1.1.459

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.
@@ -1024,6 +1024,8 @@ var KitFormErrorCode;
1024
1024
  KitFormErrorCode["Email"] = "email";
1025
1025
  KitFormErrorCode["MaxLength"] = "maxlength";
1026
1026
  KitFormErrorCode["Duplicate"] = "duplicate";
1027
+ KitFormErrorCode["MaxNumber"] = "max";
1028
+ KitFormErrorCode["MinNumber"] = "min";
1027
1029
  })(KitFormErrorCode || (KitFormErrorCode = {}));
1028
1030
 
1029
1031
  class KitFormErrors {
@@ -1035,6 +1037,12 @@ class KitFormErrors {
1035
1037
  [KitFormErrorCode.MaxLength]: (errors) => this.translateService.instant('kit.formControlError.invalidLength', {
1036
1038
  requiredLength: errors.requiredLength,
1037
1039
  }),
1040
+ [KitFormErrorCode.MaxNumber]: (errors) => this.translateService.instant('kit.formControlError.maxNumber', {
1041
+ maxNumber: errors.max,
1042
+ }),
1043
+ [KitFormErrorCode.MinNumber]: (errors) => this.translateService.instant('kit.formControlError.minNumber', {
1044
+ minNumber: errors.min,
1045
+ }),
1038
1046
  [KitFormErrorCode.Duplicate]: () => this.translateService.instant('kit.formControlError.duplicate'),
1039
1047
  };
1040
1048
  }
@@ -8694,6 +8702,8 @@ const kitTranslations = {
8694
8702
  invalidLength: 'The value should be less than {{ requiredLength }} characters',
8695
8703
  invalidEmailFormat: 'Invalid email',
8696
8704
  duplicate: 'Duplicate value',
8705
+ maxNumber: 'The value should be less than or equal to {{ maxNumber }}',
8706
+ minNumber: 'The value should be greater than or equal to {{ minNumber }}',
8697
8707
  },
8698
8708
  liveUpdates: {
8699
8709
  pause: 'Pause Live Feed',