Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/mosip/admin-ui into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
aranaravi committed Feb 19, 2024
2 parents 81117a5 + a47526e commit a1100a4
Show file tree
Hide file tree
Showing 18 changed files with 170 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div id="flex-single-view" style="padding-top: 12px;padding-bottom: 10px;">
<div id="flex-container">
<div id="myDiv" class="flex-body" *ngIf="displayedColumns && actionEllipsis">
<mat-card *ngIf="filterColumns">
<mat-card *ngIf="filterColumns" class="lost-rid-status-card">
<div class="example-container">
<span><h3 class="header">{{'lostRID.subtitleenrollment' | translate}}</h3></span>
<div *ngFor="let field of filterColumns; let i = index" style="display:inline-flex;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,8 @@ h3 {
color: #ffffff!important;
}

:dir(rtl) .lost-rid-status-card {
padding-left: 50px !important;
padding-right: 50px !important;
}

Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@
</div>
</div>
<mat-divider [vertical]="true" [inset]="true"></mat-divider>
<div *ngIf="showSecondaryForm" class="secondary-form" [ngStyle]="{'text-align': (secondaryLang==='ara') ? 'right' : 'left'}">
<div *ngIf="showSecondaryForm" class="secondary-form" [dir]="secondaryLang==='ara' ? 'rtl' : 'ltr'">
<mat-form-field style="padding-bottom: 10px;">
<mat-label><b>{{ "center.selectLanguage" | translate }}</b></mat-label>
<mat-select
Expand All @@ -428,7 +428,7 @@
</mat-option>
</mat-select>
</mat-form-field>
<strong class="title" [ngStyle]="isPrimaryLangRTL ? {'float':'right'} : {'float':'left'}">{{ secondaryLangDisplay }}</strong>
<strong class="title" >{{ secondaryLangDisplay }}</strong>
<span
*ngIf="!disableForms"
matTooltip="{{languageNames['keyboard-tooltip'] | translate }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export class MaterDataCommonBodyComponent implements OnInit {
isPrimaryLangRTL:boolean = false;
searchResult:any;
appConfig:any;
confirmationPopupMessage:any;

constructor(
private location: Location,
Expand Down Expand Up @@ -142,6 +143,7 @@ export class MaterDataCommonBodyComponent implements OnInit {
.subscribe(response => {
this.popupMessages = response;
this.serverError = response.serverError;
this.confirmationPopupMessage = response.masterData.centerType;
});
let supportedLanguages = this.appConfigService.getConfig()['supportedLanguages'].split(',');
let self = this;
Expand Down Expand Up @@ -779,7 +781,7 @@ export class MaterDataCommonBodyComponent implements OnInit {
this.showErrorPopup(mandatoryFieldLabel[i]+this.popupMessages.genericerror.fieldNameValidation);
break;
}else if(len === (i+1)){
self.executeAPI();
this.isCreateForm ? this.showConfirmationMsg("create") : this.showConfirmationMsg("update")
}
}
}
Expand Down Expand Up @@ -1132,6 +1134,26 @@ export class MaterDataCommonBodyComponent implements OnInit {
return dialogRef;
}

showConfirmationMsg(type:any){
let data = {};
data = {
case: 'CONFIRMATION',
title: this.confirmationPopupMessage[type].title,
message: this.confirmationPopupMessage[type].message,
yesBtnTxt: this.confirmationPopupMessage[type].yesBtnText,
noBtnTxt: this.confirmationPopupMessage[type].noBtnText
};
const dialogRef = this.dialog.open(DialogComponent, {
width: '650px',
data
});
dialogRef.afterClosed().subscribe(response => {
if (response) {
this.executeAPI();
} else if (!response) {}
});
}

showErrorPopup(message: string) {
this.dialog
.open(DialogComponent, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ <h3>{{ "center.location-details" | translate }}</h3>
</mat-form-field>
</div>
<mat-card-actions class="action-buttons">
<button id="createButton" mat-raised-button *ngIf="data.length != 0" (click)="submitPrimaryPanel()">
<button [disabled]="!primaryForm.dirty" id="createButton" mat-raised-button *ngIf="isEditable['editable']" (click)="submitPrimaryPanel()">
{{ "center.update" | translate }}
</button>
<button id="createButton" mat-raised-button *ngIf="data.length == 0" (click)="submitPrimaryPanel()">
<button [disabled]="!primaryForm.dirty" id="createButton" mat-raised-button *ngIf="isEditable['langCode']" (click)="submitPrimaryPanel()">
{{ "center.create" | translate }}
</button>
<button mat-raised-button id="cancel" (click)="cancel()" *ngIf="secondaryLang">
Expand All @@ -117,7 +117,7 @@ <h3>{{ "center.location-details" | translate }}</h3>
</div>
<mat-divider [vertical]="true" [inset]="true"></mat-divider>
<div *ngIf="secondaryLanguageLabels && secondaryLang && showSecondaryForm" [formGroup]="secondaryForm"
[ngClass]="isSecondaryLangRTL ? 'secondary-form' : 'secondary-form-ltr'">
[ngClass]="isSecondaryLangRTL ? 'secondary-form' : 'secondary-form-ltr'" [dir]="isSecondaryLangRTL ? 'rtl' : 'ltl'">
<mat-form-field style="padding-bottom: 10px;">
<mat-label><b>{{ "center.selectLanguage" | translate }}</b></mat-label>
<mat-select formControlName="selectLanguage" id="selectLanguage"
Expand Down Expand Up @@ -257,11 +257,11 @@ <h3>{{ secondaryLanguageLabels["location-details"] }}</h3>
</mat-form-field>
</div>
<mat-card-actions class="action-buttons">
<button id="createButton" mat-raised-button *ngIf="showUpdateButton"
<button [disabled]="!secondaryForm.dirty" id="createButton" mat-raised-button *ngIf="showUpdateButton"
(click)="submitSecondaryPanel()">
{{ "center.update" | translate }}
</button>
<button id="createButton" mat-raised-button *ngIf="!showUpdateButton"
<button [disabled]="!secondaryForm.dirty" id="createButton" mat-raised-button *ngIf="!showUpdateButton"
(click)="submitSecondaryPanel()">
{{ "center.create" | translate }}
</button>
Expand Down Expand Up @@ -687,7 +687,7 @@ <h3>{{ "center.operational-details" | translate }}</h3>
<mat-divider [vertical]="true" [inset]="true"></mat-divider>
</mat-card-content>
<mat-card-actions class="action-buttons">
<button id="createButton" mat-raised-button (click)="submitCommonPanel()">
<button [disabled]="!commonForm.dirty" id="createButton" mat-raised-button (click)="submitCommonPanel()">
{{ "center.update" | translate }}
</button>
<button mat-raised-button id="cancel" (click)="cancel()">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export class EditComponent {
dynamicFieldValue = {};
showSpinner = false;
showUpdateButton = null;
isEditable:any;
constructor(
private location: Location,
private translateService: TranslateService,
Expand Down Expand Up @@ -225,7 +226,11 @@ export class EditComponent {
this.auditService.audit(8, centerSpecFile.auditEventIds[1], 'centers');
this.filteredLanguages = this.supportedLanguages;
this.getPrimaryPanelData(this.primaryLang);
});
});

this.activatedRoute.queryParams.subscribe(params => {
this.isEditable = params
});
}

setLocaleForDatePicker = (localeId) => {
Expand Down
7 changes: 7 additions & 0 deletions admin-ui/src/app/shared/table/table.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,11 @@ td.mat-footer-cell:last-child {
caption {
font-size: 1.2em;
font-weight: bold;
}

:dir(rtl) th.mat-header-cell:nth-of-type(1), :dir(rtl) td.mat-cell:nth-of-type(1),
:dir(rtl) td.mat-footer-cell:nth-of-type(1), :dir(rtl) .table-header:nth-of-type(1) {
text-align: right;
padding-right: 20px;
padding-left: 1px;
}
2 changes: 1 addition & 1 deletion admin-ui/src/assets/entity-spec/dynamicfields.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"linkType": "",
"LinkURL": "",
"inputType": "textarea",
"ismandatory": "false"
"ismandatory": "true"
},
{
"name": "value",
Expand Down
21 changes: 19 additions & 2 deletions admin-ui/src/assets/i18n/ara.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"subItem3": "الحصول على شهادة",
"subItem4": "تحميل الشهادة",
"subItem5": "تحميل شهادة مجال أخرى"
},
"item8": {
"title": "استرداد RID المفقود"
}
},
"dashboard": {
Expand Down Expand Up @@ -439,7 +442,21 @@
"unmapped-documents": "المستندات غير المعينة",
"masterDataTypes": "أنواع البيانات الرئيسية",
"dynamicField": "مجال ديناميكي",
"createDynamicField": "إنشاء حقل ديناميكي جديد"
"createDynamicField": "إنشاء حقل ديناميكي جديد",
"centerType":{
"create":{
"title": "تأكيد",
"message": "أنت على وشك إنشاء نوع المركز. \n الرجاء التأكد من صحة كافة المعلومات. سيتم إنشاء معرف المركز بمجرد التأكيد.",
"yesBtnText": "يتأكد",
"noBtnText": "يلغي"
},
"update":{
"title": "تأكيد",
"message": "أنت على وشك تحديث نوع المركز. \n الرجاء التأكد من صحة كافة المعلومات. سيتم تحديث تفاصيل المركز بمجرد التأكيد.",
"yesBtnText": "يتأكد",
"noBtnText": "يلغي"
}
}
},
"masterdataupload": {
"title": "تحميل البيانات الرئيسية"
Expand Down Expand Up @@ -739,7 +756,7 @@
"InActive":"غير نشط"
},
"lostRID":{
"titleTxt":"استرداد Lost RID",
"titleTxt":"استرداد RID المفقود",
"subtitleenrollment":"تفاصيل التسجيل",
"subtitlelocation":"موقع",
"searchbtn":"بحث",
Expand Down
16 changes: 15 additions & 1 deletion admin-ui/src/assets/i18n/eng.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,21 @@
"unmapped-documents": "Unmapped Documents",
"masterDataTypes": "Masterdata Types",
"dynamicField": "Dynamic Field",
"createDynamicField": "Create New Dynamic Field"
"createDynamicField": "Create New Dynamic Field",
"centerType":{
"create":{
"title": "Confirmation",
"message": "You are about to create a Center Type. \n Please ensure that all the information is correct. Center ID will be generated once you Confirm.",
"yesBtnText": "Confirm",
"noBtnText": "Cancel"
},
"update":{
"title": "Confirmation",
"message": "You are about to update a Center Type. \n Please ensure that all the information is correct. Center details will be update once you Confirm.",
"yesBtnText": "Confirm",
"noBtnText": "Cancel"
}
}
},
"masterdataupload": {
"title": "Master Data Upload"
Expand Down
21 changes: 19 additions & 2 deletions admin-ui/src/assets/i18n/fra.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
"subItem3": "Obtenir un certificat",
"subItem4": "Télécharger le certificat",
"subItem5": "Télécharger un autre certificat de domaine"
}
},
"item8": {
"title": "Récupérer le RID perdu"
}
},
"dashboard": {
"welcomeMessage": "Bienvenue sur le portail d'administration Mosip!"
Expand Down Expand Up @@ -464,7 +467,21 @@
"unmapped-documents": "Documents non mappés",
"masterDataTypes": "Types de données maîtres",
"dynamicField": "Champ dynamique",
"createDynamicField": "Créer un nouveau champ dynamique"
"createDynamicField": "Créer un nouveau champ dynamique",
"centerType":{
"create":{
"title": "Confirmation",
"message": "Vous êtes sur le point de créer un type de centre. \n Veuillez vous assurer que toutes les informations sont correctes. L'ID du centre sera généré une fois que vous aurez confirmé.",
"yesBtnText": "Confirmer",
"noBtnText": "Annuler"
},
"update":{
"title": "Confirmation",
"message": "Vous êtes sur le point de mettre à jour un type de centre. \n Veuillez vous assurer que toutes les informations sont correctes. Les détails du centre seront mis à jour une fois que vous aurez confirmé.",
"yesBtnText": "Confirmer",
"noBtnText": "Annuler"
}
}
},
"masterdataupload": {
"title": "Téléchargement des données de base"
Expand Down
21 changes: 19 additions & 2 deletions admin-ui/src/assets/i18n/hin.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
"subItem3": "गेट सर्टिफिकेट",
"subItem4": "प्रमाणपत्र अपलोड करें",
"subItem5": "अन्य डोमेन प्रमाणपत्र अपलोड करें"
}
},
"item8": {
"title": "खोई हुई RID पुनः प्राप्त करें"
}
},
"dashboard": {
"welcomeMessage": "मोसिप एडमिन पोर्टल में आपका स्वागत है!"
Expand Down Expand Up @@ -236,7 +239,21 @@
"unmapped-documents": "अनमैप्ड डॉक्यूमेंट्स",
"masterDataTypes": "मास्टरडेटा प्रकार",
"dynamicField": "डायनेमिक फील्ड",
"createDynamicField": "नया गतिशील क्षेत्र बनाएँ"
"createDynamicField": "नया गतिशील क्षेत्र बनाएँ",
"centerType":{
"create":{
"title": "पुष्टीकरण",
"message": "आप एक केंद्र प्रकार बनाने वाले हैं. \nकृपया सुनिश्चित करें कि सभी जानकारी सही है। पुष्टि करते ही सेंटर आईडी जनरेट हो जाएगी।",
"yesBtnText": "पुष्टि करना",
"noBtnText": "रद्द करना"
},
"update":{
"title": "पुष्टीकरण",
"message": "आप एक केंद्र प्रकार अपडेट करने वाले हैं. \nकृपया सुनिश्चित करें कि सभी जानकारी सही है। आपके पुष्टि करते ही केंद्र का विवरण अपडेट कर दिया जाएगा।",
"yesBtnText": "पुष्टि करना",
"noBtnText": "रद्द करना"
}
}
},
"masterdataupload": {
"title": "मास्टर डेटा अपलोड"
Expand Down
21 changes: 19 additions & 2 deletions admin-ui/src/assets/i18n/kan.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
"subItem3": "ಪ್ರಮಾಣಪತ್ರ ಪಡೆಯಿರಿ",
"subItem4": "ಪ್ರಮಾಣಪತ್ರವನ್ನು ಅಪ್‌ಲೋಡ್ ಮಾಡಿ",
"subItem5": "ಇತರ ಡೊಮೇನ್ ಪ್ರಮಾಣಪತ್ರವನ್ನು ಅಪ್‌ಲೋಡ್ ಮಾಡಿ"
}
},
"item8": {
"title": "ಕಳೆದುಹೋದ RID ಅನ್ನು ಹಿಂಪಡೆಯಿರಿ"
}
},
"dashboard": {
"welcomeMessage": "ಮೊಸಿಪ್ ಅಡ್ಮಿನ್ ಪೋರ್ಟಲ್ ಗೆ ಸ್ವಾಗತ!"
Expand Down Expand Up @@ -236,7 +239,21 @@
"unmapped-documents": "ಅನ್‌ಮ್ಯಾಪ್ಡ್ ಡಾಕ್ಯುಮೆಂಟ್ಸ್",
"masterDataTypes": "ಮಾಸ್ಟರ್‌ಡೇಟಾ ಪ್ರಕಾರಗಳು",
"dynamicField": "ಡೈನಾಮಿಕ್ ಫೀಲ್ಡ್",
"createDynamicField": "ಹೊಸ ಡೈನಾಮಿಕ್ ಕ್ಷೇತ್ರವನ್ನು ರಚಿಸಿ"
"createDynamicField": "ಹೊಸ ಡೈನಾಮಿಕ್ ಕ್ಷೇತ್ರವನ್ನು ರಚಿಸಿ",
"centerType":{
"create":{
"title": "ದೃಢೀಕರಣ",
"message": "ನೀವು ಕೇಂದ್ರ ಪ್ರಕಾರವನ್ನು ರಚಿಸಲಿರುವಿರಿ. \n ದಯವಿಟ್ಟು ಎಲ್ಲಾ ಮಾಹಿತಿ ಸರಿಯಾಗಿದೆಯೇ ಎಂದು ಖಚಿತಪಡಿಸಿಕೊಳ್ಳಿ. ನೀವು ದೃಢೀಕರಿಸಿದ ನಂತರ ಕೇಂದ್ರ ಐಡಿಯನ್ನು ರಚಿಸಲಾಗುತ್ತದೆ.",
"yesBtnText": "ದೃಢೀಕರಿಸಿ",
"noBtnText": "ರದ್ದುಮಾಡು"
},
"update":{
"title": "ದೃಢೀಕರಣ",
"message": "ನೀವು ಕೇಂದ್ರ ಪ್ರಕಾರವನ್ನು ನವೀಕರಿಸಲಿರುವಿರಿ. \n ದಯವಿಟ್ಟು ಎಲ್ಲಾ ಮಾಹಿತಿ ಸರಿಯಾಗಿದೆಯೇ ಎಂದು ಖಚಿತಪಡಿಸಿಕೊಳ್ಳಿ. ನೀವು ದೃಢೀಕರಿಸಿದ ನಂತರ ಕೇಂದ್ರದ ವಿವರಗಳನ್ನು ನವೀಕರಿಸಲಾಗುತ್ತದೆ.",
"yesBtnText": "ದೃಢೀಕರಿಸಿ",
"noBtnText": "ರದ್ದುಮಾಡು"
}
}
},
"masterdataupload": {
"title": "ಮಾಸ್ಟರ್ ಡೇಟಾ ಅಪ್‌ಲೋಡ್"
Expand Down
19 changes: 18 additions & 1 deletion admin-ui/src/assets/i18n/tam.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"subItem3": "சான்றிதழ் பெறவும்",
"subItem4": "சான்றிதழைப் பதிவேற்றவும்",
"subItem5": "பிற டொமைன் சான்றிதழைப் பதிவேற்றவும்"
},
"item8": {
"title": "இழந்த RID ஐ மீட்டெடுக்கவும்"
}
},
"dashboard": {
Expand Down Expand Up @@ -236,7 +239,21 @@
"unmapped-documents": "மாற்றப்படாத ஆவணங்கள்",
"masterDataTypes": "மாஸ்டர்டேட்டா வகைகள்",
"dynamicField": "டைனமிக் புலம்",
"createDynamicField": "புதிய டைனமிக் புலம் உருவாக்கவும்"
"createDynamicField": "புதிய டைனமிக் புலம் உருவாக்கவும்",
"centerType":{
"create":{
"title": "உறுதிப்படுத்தல்",
"message": "நீங்கள் ஒரு மைய வகையை உருவாக்க உள்ளீர்கள். \n அனைத்து தகவல்களும் சரியானவை என்பதை உறுதிப்படுத்தவும். நீங்கள் உறுதிசெய்தவுடன் மைய ஐடி உருவாக்கப்படும்.",
"yesBtnText": "உறுதிப்படுத்தவும்",
"noBtnText": "ரத்து செய்"
},
"update":{
"title": "உறுதிப்படுத்தல்",
"message": "மைய வகையைப் புதுப்பிக்க உள்ளீர்கள். \n அனைத்து தகவல்களும் சரியானவை என்பதை உறுதிப்படுத்தவும். நீங்கள் உறுதிப்படுத்தியவுடன் மைய விவரங்கள் புதுப்பிக்கப்படும்.",
"yesBtnText": "உறுதிப்படுத்தவும்",
"noBtnText": "ரத்து செய்"
}
}
},
"masterdataupload": {
"title": "முதன்மை தரவு பதிவேற்றம்"
Expand Down
2 changes: 1 addition & 1 deletion admin-ui/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ h3 {
margin:0px !important;
}
#flex-container {
overflow-y: scroll;
overflow-y: auto;
overflow-x: hidden;
/* max-height: 87vh; */
padding-bottom: 20px;
Expand Down
Loading

0 comments on commit a1100a4

Please sign in to comment.