[ACS-4985] Resolved lint issues

This commit is contained in:
swapnil.verma
2023-07-27 11:14:48 +05:30
committed by Jatin_Chugh
parent f62f74b098
commit c4aaa8ff59
3 changed files with 9 additions and 5 deletions
@@ -212,10 +212,10 @@ export class SearchDateRangeAdvancedTabbedComponent implements SearchWidget, OnI
private updateDisplayValue(value: Partial<SearchDateRangeAdvanced>, field: string) {
this.combinedDisplayValue = '';
this.displayValueMapByField.set(field, this.generateDisplayValue(value));
this.displayValueMapByField.forEach((displayValue: string, field: string) => {
this.displayValueMapByField.forEach((displayValue: string, fieldForDisplayLabel: string) => {
if (displayValue) {
const displayLabelForField = `${this.translateService.instant(this.settings.displayedLabelsByField[field]).toUpperCase()}: ${displayValue}`;
this.combinedDisplayValue = this.combinedDisplayValue ? `${this.combinedDisplayValue} ${displayLabelForField}` : `${displayLabelForField}`
const displayLabelForField = `${this.translateService.instant(this.settings.displayedLabelsByField[fieldForDisplayLabel]).toUpperCase()}: ${displayValue}`;
this.combinedDisplayValue = this.combinedDisplayValue ? `${this.combinedDisplayValue} ${displayLabelForField}` : `${displayLabelForField}`;
}
});
}
@@ -124,6 +124,11 @@ export class SearchDateRangeAdvancedComponent implements OnInit, OnDestroy {
this.betweenStartDateFormControl.clearValidators();
this.betweenEndDateFormControl.clearValidators();
break;
default:
this.form.controls.inLastValue.clearValidators();
this.betweenStartDateFormControl.clearValidators();
this.betweenEndDateFormControl.clearValidators();
break;
}
this.betweenStartDateFormControl.updateValueAndValidity();
this.betweenEndDateFormControl.updateValueAndValidity();
@@ -197,7 +202,7 @@ export class SearchDateRangeAdvancedComponent implements OnInit, OnDestroy {
// }
onLastDateValueChanged(event: Event) {
let value: string = event.target['value'];
const value: string = event.target['value'];
event.target['value'] = value.replace(/[-.]*0*([1-9]*\d*)/g, '$1');
}
}