Skip to content

Commit

Permalink
Merge pull request #216 from GOKULRAJ136/pmp-release3
Browse files Browse the repository at this point in the history
MOSIP-23977 : PMS UI: Need proper UI level validations for length limit as per DB
  • Loading branch information
aranaravi authored Feb 13, 2024
2 parents 8a269d6 + 007643c commit b1a431d
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#{{field.name}}
(keyup)="captureValue($event, field.name, 'primary')"
matInput
[maxLength]="field.maxLength"
placeholder="{{
field.label[primaryLang] | translate
}}"
Expand Down Expand Up @@ -38,6 +39,7 @@
#{{field.name}}
(blur)="captureValue($event, field.name, 'primary')"
matInput
[maxLength]="field.maxLength"
placeholder="{{
field.label[primaryLang] | translate
}}"
Expand Down
9 changes: 6 additions & 3 deletions pmp-ui/src/assets/entity-spec/auth-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@
"inputType": "text",
"ismandatory": "true",
"showInListView": "true",
"showInSingleView": "true"
"showInSingleView": "true",
"maxLength": 128
},
{
"name": "desc",
Expand All @@ -120,7 +121,8 @@
"inputType": "text",
"ismandatory": "true",
"showInListView": "true",
"showInSingleView": "true"
"showInSingleView": "true",
"maxLength": 256
},
{
"name": "policyGroupName",
Expand Down Expand Up @@ -196,7 +198,8 @@
"inputType": "textarea",
"ismandatory": "true",
"showInListView": "false",
"showInSingleView": "true"
"showInSingleView": "true",
"maxLength": 5120
},
{
"name": "isActive",
Expand Down
9 changes: 6 additions & 3 deletions pmp-ui/src/assets/entity-spec/data-share-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@
"inputType": "text",
"ismandatory": "true",
"showInListView": "true",
"showInSingleView": "true"
"showInSingleView": "true",
"maxLength": 128
},
{
"name": "desc",
Expand All @@ -120,7 +121,8 @@
"inputType": "text",
"ismandatory": "true",
"showInListView": "true",
"showInSingleView": "true"
"showInSingleView": "true",
"maxLength": 256
},
{
"name": "policyGroupName",
Expand Down Expand Up @@ -196,7 +198,8 @@
"inputType": "textarea",
"ismandatory": "true",
"showInListView": "false",
"showInSingleView": "true"
"showInSingleView": "true",
"maxLength": 5120
},
{
"name": "isActive",
Expand Down
6 changes: 4 additions & 2 deletions pmp-ui/src/assets/entity-spec/device-detail.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@
"inputType": "text",
"ismandatory": "true",
"showInListView": "true",
"showInSingleView": "true"
"showInSingleView": "true",
"maxLength": 36
},
{
"name": "model",
Expand All @@ -211,7 +212,8 @@
"inputType": "text",
"ismandatory": "true",
"showInListView": "true",
"showInSingleView": "true"
"showInSingleView": "true",
"maxLength": 36
},
{
"name": "isItForRegistrationDevice",
Expand Down
6 changes: 4 additions & 2 deletions pmp-ui/src/assets/entity-spec/ftm-detail.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@
"inputType": "text",
"ismandatory": "true",
"showInListView": "true",
"showInSingleView": "true"
"showInSingleView": "true",
"maxLength": 36
},
{
"name": "model",
Expand All @@ -204,7 +205,8 @@
"inputType": "text",
"ismandatory": "true",
"showInListView": "true",
"showInSingleView": "true"
"showInSingleView": "true",
"maxLength": 36
},
{
"name": "approvalStatus",
Expand Down
6 changes: 4 additions & 2 deletions pmp-ui/src/assets/entity-spec/policy-group.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@
"inputType": "text",
"ismandatory": "true",
"showInListView": "true",
"showInSingleView": "true"
"showInSingleView": "true",
"maxLength": 128
},
{
"name": "desc",
Expand All @@ -135,7 +136,8 @@
"inputType": "text",
"ismandatory": "true",
"showInListView": "true",
"showInSingleView": "true"
"showInSingleView": "true",
"maxLength": 256
},
{
"name": "isActive",
Expand Down
3 changes: 2 additions & 1 deletion pmp-ui/src/assets/entity-spec/policy-mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@
"inputType": "text",
"ismandatory": "true",
"showInListView": "true",
"showInSingleView": "true"
"showInSingleView": "true",
"maxLength": 4000
},
{
"name": "statusCode",
Expand Down
3 changes: 2 additions & 1 deletion pmp-ui/src/assets/entity-spec/sbi-detail.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@
"inputType": "text",
"ismandatory": "true",
"showInListView": "true",
"showInSingleView": "true"
"showInSingleView": "true",
"maxLength": 64
},
{
"name": "swBinaryHash",
Expand Down

0 comments on commit b1a431d

Please sign in to comment.