@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.
package/dist/index.js CHANGED
@@ -2853,8 +2853,11 @@ var personalInfo = [{
2853
2853
  readOnly: false,
2854
2854
  placeholder: 'Enter first and middle name',
2855
2855
  validation: {
2856
- regexOnChange: /^[a-zA-Z ]*$/,
2857
- regexOnBlur: null,
2856
+ regexOnChange: null,
2857
+ regexOnBlur: [{
2858
+ regex: /^[a-zA-Z ]*$/,
2859
+ message: 'Only alphabets are allowed.'
2860
+ }],
2858
2861
  maxLimit: '',
2859
2862
  minLimit: '',
2860
2863
  maxLength: 100,
@@ -2872,8 +2875,11 @@ var personalInfo = [{
2872
2875
  readOnly: false,
2873
2876
  placeholder: 'Enter last name',
2874
2877
  validation: {
2875
- regexOnChange: /^[a-zA-Z ]*$/,
2876
- regexOnBlur: null,
2878
+ regexOnChange: null,
2879
+ regexOnBlur: [{
2880
+ regex: /^[a-zA-Z ]*$/,
2881
+ message: 'Only alphabets are allowed.'
2882
+ }],
2877
2883
  maxLimit: '',
2878
2884
  minLimit: '',
2879
2885
  maxLength: 100,
@@ -2892,7 +2898,10 @@ var personalInfo = [{
2892
2898
  placeholder: 'Enter email address',
2893
2899
  validation: {
2894
2900
  regexOnChange: null,
2895
- 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,}))$/,
2901
+ regexOnBlur: [{
2902
+ 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,}))$/,
2903
+ message: 'Invalid email address'
2904
+ }],
2896
2905
  maxLimit: '',
2897
2906
  minLimit: '',
2898
2907
  maxLength: 100,
@@ -2998,8 +3007,11 @@ var workInfo = [{
2998
3007
  readOnly: false,
2999
3008
  placeholder: 'Enter employee ID',
3000
3009
  validation: {
3001
- regexOnChange: /^[A-Za-z0-9]*$/,
3002
- regexOnBlur: null,
3010
+ regexOnChange: null,
3011
+ regexOnBlur: [{
3012
+ regex: /^[A-Za-z0-9]*$/,
3013
+ message: 'Only alphabets & numbers are allowed'
3014
+ }],
3003
3015
  maxLimit: '',
3004
3016
  minLimit: '',
3005
3017
  maxLength: 100,
@@ -3084,8 +3096,14 @@ var workInfo = [{
3084
3096
  readOnly: false,
3085
3097
  placeholder: 'Enter designation',
3086
3098
  validation: {
3087
- regexOnChange: /^[A-Za-z0-9.&'()\- ]*$/,
3088
- regexOnBlur: /^[a-zA-Z][a-zA-Z0-9.&'()\- ]*$/,
3099
+ regexOnChange: null,
3100
+ regexOnBlur: [{
3101
+ regex: /^[A-Za-z0-9 -.&'()]*$/,
3102
+ message: "Only alphabets, numbers & special characters . & ' () - are allowed."
3103
+ }, {
3104
+ regex: /^[a-zA-Z]/,
3105
+ message: 'Designation should start with alphabets'
3106
+ }],
3089
3107
  maxLimit: '',
3090
3108
  minLimit: '',
3091
3109
  maxLength: 100,
@@ -3103,8 +3121,14 @@ var workInfo = [{
3103
3121
  visibility: true,
3104
3122
  readOnly: false,
3105
3123
  validation: {
3106
- regexOnChange: /^[A-Za-z0-9 -.&'()]*$/,
3107
- regexOnBlur: null,
3124
+ regexOnChange: null,
3125
+ regexOnBlur: [{
3126
+ regex: /^[A-Za-z0-9 -.&'()]*$/,
3127
+ message: "Only alphabets, numbers & special characters . & ' () - are allowed."
3128
+ }, {
3129
+ regex: /^[a-zA-Z]/,
3130
+ message: 'Base location should start with alphabets'
3131
+ }],
3108
3132
  maxLimit: '',
3109
3133
  minLimit: '',
3110
3134
  maxLength: 500,
@@ -3335,8 +3359,11 @@ var passportInfo = [{
3335
3359
  readOnly: false,
3336
3360
  placeholder: 'Enter passport number',
3337
3361
  validation: {
3338
- regexOnChange: /^[A-Za-z0-9]*$/,
3339
- regexOnBlur: null,
3362
+ regexOnChange: null,
3363
+ regexOnBlur: [{
3364
+ regex: /^[A-Za-z0-9]*$/,
3365
+ message: 'Only alphabets & numbers are allowed'
3366
+ }],
3340
3367
  maxLimit: '',
3341
3368
  minLimit: '',
3342
3369
  maxLength: 15,