@itilite/iui-user-management 0.2.2 → 0.2.3

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.
@@ -2850,8 +2850,11 @@ var personalInfo = [{
2850
2850
  readOnly: false,
2851
2851
  placeholder: 'Enter first and middle name',
2852
2852
  validation: {
2853
- regexOnChange: /^[a-zA-Z ]*$/,
2854
- regexOnBlur: null,
2853
+ regexOnChange: null,
2854
+ regexOnBlur: [{
2855
+ regex: /^[a-zA-Z ]*$/,
2856
+ message: 'Only alphabets are allowed.'
2857
+ }],
2855
2858
  maxLimit: '',
2856
2859
  minLimit: '',
2857
2860
  maxLength: 100,
@@ -2869,8 +2872,11 @@ var personalInfo = [{
2869
2872
  readOnly: false,
2870
2873
  placeholder: 'Enter last name',
2871
2874
  validation: {
2872
- regexOnChange: /^[a-zA-Z ]*$/,
2873
- regexOnBlur: null,
2875
+ regexOnChange: null,
2876
+ regexOnBlur: [{
2877
+ regex: /^[a-zA-Z ]*$/,
2878
+ message: 'Only alphabets are allowed.'
2879
+ }],
2874
2880
  maxLimit: '',
2875
2881
  minLimit: '',
2876
2882
  maxLength: 100,
@@ -2889,7 +2895,10 @@ var personalInfo = [{
2889
2895
  placeholder: 'Enter email address',
2890
2896
  validation: {
2891
2897
  regexOnChange: null,
2892
- regexOnBlur: /^(([^<>()\\.,;:\s@"]+(\.[^<>()\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
2898
+ regexOnBlur: [{
2899
+ regex: /^(([^<>()\\.,;:\s@"]+(\.[^<>()\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
2900
+ message: 'Invalid email address'
2901
+ }],
2893
2902
  maxLimit: '',
2894
2903
  minLimit: '',
2895
2904
  maxLength: 100,
@@ -2995,8 +3004,11 @@ var workInfo = [{
2995
3004
  readOnly: false,
2996
3005
  placeholder: 'Enter employee ID',
2997
3006
  validation: {
2998
- regexOnChange: /^[A-Za-z0-9]*$/,
2999
- regexOnBlur: null,
3007
+ regexOnChange: null,
3008
+ regexOnBlur: [{
3009
+ regex: /^[A-Za-z0-9]*$/,
3010
+ message: 'Only alphabets & numbers are allowed'
3011
+ }],
3000
3012
  maxLimit: '',
3001
3013
  minLimit: '',
3002
3014
  maxLength: 100,
@@ -3081,8 +3093,14 @@ var workInfo = [{
3081
3093
  readOnly: false,
3082
3094
  placeholder: 'Enter designation',
3083
3095
  validation: {
3084
- regexOnChange: /^[A-Za-z0-9.&'()\- ]*$/,
3085
- regexOnBlur: /^[a-zA-Z][a-zA-Z0-9.&'()\- ]*$/,
3096
+ regexOnChange: null,
3097
+ regexOnBlur: [{
3098
+ regex: /^[A-Za-z0-9 -.&'()]*$/,
3099
+ message: "Only alphabets, numbers & special characters . & ' () - are allowed."
3100
+ }, {
3101
+ regex: /^[a-zA-Z]/,
3102
+ message: 'Designation should start with alphabets'
3103
+ }],
3086
3104
  maxLimit: '',
3087
3105
  minLimit: '',
3088
3106
  maxLength: 100,
@@ -3100,8 +3118,14 @@ var workInfo = [{
3100
3118
  visibility: true,
3101
3119
  readOnly: false,
3102
3120
  validation: {
3103
- regexOnChange: /^[A-Za-z0-9 -.&'()]*$/,
3104
- regexOnBlur: null,
3121
+ regexOnChange: null,
3122
+ regexOnBlur: [{
3123
+ regex: /^[A-Za-z0-9 -.&'()]*$/,
3124
+ message: "Only alphabets, numbers & special characters . & ' () - are allowed."
3125
+ }, {
3126
+ regex: /^[a-zA-Z]/,
3127
+ message: 'Base location should start with alphabets'
3128
+ }],
3105
3129
  maxLimit: '',
3106
3130
  minLimit: '',
3107
3131
  maxLength: 500,
@@ -3332,8 +3356,11 @@ var passportInfo = [{
3332
3356
  readOnly: false,
3333
3357
  placeholder: 'Enter passport number',
3334
3358
  validation: {
3335
- regexOnChange: /^[A-Za-z0-9]*$/,
3336
- regexOnBlur: null,
3359
+ regexOnChange: null,
3360
+ regexOnBlur: [{
3361
+ regex: /^[A-Za-z0-9]*$/,
3362
+ message: 'Only alphabets & numbers are allowed'
3363
+ }],
3337
3364
  maxLimit: '',
3338
3365
  minLimit: '',
3339
3366
  maxLength: 15,