master-control 0.4.4 → 0.4.6

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.
@@ -5413,8 +5413,8 @@ class MedialQuestionsComponent {
5413
5413
  });
5414
5414
  }
5415
5415
  if (singleQuestion['isShowQuestionInUI'] &&
5416
- singleQuestion['questionType'] === 'CHECKBOX' &&
5417
- !this.checkIfValueIsEmpty(checkedOptionsArr)) {
5416
+ singleQuestion['questionType'] === 'CHECKBOX'
5417
+ && !this.checkIfValueIsEmpty(this.personUwAnswers[singleQuestion['questionId']])) {
5418
5418
  // for checkbox question
5419
5419
  let questionIndexInMainRequest = mainRequestForBothPersons.findIndex((singleAnswerObj) => singleAnswerObj['questionId'] ===
5420
5420
  singleQuestion['questionId'] &&
@@ -5429,11 +5429,11 @@ class MedialQuestionsComponent {
5429
5429
  createdUser: this.getCookieValue('userId'),
5430
5430
  clusterId: singleQuestion['clusterId'],
5431
5431
  };
5432
- obj['answer'] = checkedOptionsArr.toString();
5432
+ obj['answer'] = this.personUwAnswers[singleQuestion['questionId']].toString();
5433
5433
  mainRequestForBothPersons.push(obj);
5434
5434
  }
5435
5435
  else {
5436
- mainRequestForBothPersons[questionIndexInMainRequest]['answer'] = checkedOptionsArr.toString();
5436
+ mainRequestForBothPersons[questionIndexInMainRequest]['answer'] = this.personUwAnswers[singleQuestion['questionId']].toString();
5437
5437
  }
5438
5438
  }
5439
5439
  else if (singleQuestion['isShowQuestionInUI'] &&
@@ -5767,9 +5767,9 @@ class MedialQuestionsComponent {
5767
5767
  if (question['cammundaQuestionCode'] === 'LifeMediCndtn' || question['cammundaQuestionCode'] === 'MediCndtn') {
5768
5768
  this.personUwAnswers[question['questionId']].length > 0;
5769
5769
  // if none is selected then remove all and call API
5770
- let isNoneSelected = this.personUwAnswers[question['questionId']].findIndex((singleObj) => singleObj['value'] === 'NoMedHistry');
5770
+ let isNoneSelected = this.personUwAnswers[question['questionId']].findIndex((singleObj) => singleObj === 'NoMedHistry');
5771
5771
  if (isNoneSelected !== -1) {
5772
- this.personUwAnswers[question['questionId']] = this.personUwAnswers[question['questionId']] = this.personUwAnswers[question['questionId']].filter((singleObj) => singleObj['value'] === 'NoMedHistry');
5772
+ this.personUwAnswers[question['questionId']] = this.personUwAnswers[question['questionId']] = this.personUwAnswers[question['questionId']].filter((singleObj) => singleObj === 'NoMedHistry');
5773
5773
  }
5774
5774
  this.medicalSubQuestionsResponse = [];
5775
5775
  if (!this.checkIfValueIsEmpty(this.questionList)) {
@@ -5827,7 +5827,7 @@ class MedialQuestionsComponent {
5827
5827
  // }
5828
5828
  // });
5829
5829
  // this.loader.display(true);
5830
- let selectedDiseases = this.personUwAnswers[question['questionId']].map((singleDiseaseObj) => singleDiseaseObj['value']).toString();
5830
+ let selectedDiseases = this.personUwAnswers[question['questionId']].toString();
5831
5831
  // let request: any = JSON.parse(
5832
5832
  // JSON.stringify(
5833
5833
  // this.fetchSubQuestionsList[
@@ -6471,7 +6471,7 @@ class AnnuityPremiumCalculatorComponent {
6471
6471
  placeHolder: null,
6472
6472
  metaId: 'LI_DP_GEN_CTRL_toggle_annuityPremiumToggle_V1',
6473
6473
  isVisible: true,
6474
- isDisable: false,
6474
+ isDisable: true,
6475
6475
  validators: {
6476
6476
  isRequired: false,
6477
6477
  requiredMessage: 'This field cannot be empty',
@@ -7067,24 +7067,7 @@ class AnnuityPremiumCalculatorComponent {
7067
7067
  "pattern": null,
7068
7068
  "patternMessage": ""
7069
7069
  },
7070
- "options": [
7071
- {
7072
- "value": "AP",
7073
- "label": "100%"
7074
- },
7075
- {
7076
- "value": "AT",
7077
- "label": "80%"
7078
- },
7079
- {
7080
- "value": "AT",
7081
- "label": "70%"
7082
- },
7083
- {
7084
- "value": "AT",
7085
- "label": "60%"
7086
- }
7087
- ],
7070
+ "options": [],
7088
7071
  "cssClass": " col-sm-12 col-md-3 col-lg-3 col-xl-3 annuityType",
7089
7072
  "value": null,
7090
7073
  "style": null,
@@ -7192,6 +7175,12 @@ class AnnuityPremiumCalculatorComponent {
7192
7175
  this.recalculateButton['isDisable'] = this.premiumDetails()?.calculateAnnuity['isDisable'];
7193
7176
  }
7194
7177
  }
7178
+ //guranteed Annuity options
7179
+ if (!this.masterService.checkIfValueIsEmpty(this.premiumDetails()?.guranteedAnnuity)) {
7180
+ if (!this.masterService.checkIfValueIsEmpty(this.premiumDetails()?.guranteedAnnuity['options'])) {
7181
+ this.guranteedannuityObj['options'] = this.premiumDetails()?.guranteedAnnuity['options'];
7182
+ }
7183
+ }
7195
7184
  if (!this.masterService.checkIfValueIsEmpty(this.premiumDetails()?.generateSummary)) {
7196
7185
  if (!this.masterService.checkIfValueIsEmpty(this.premiumDetails()?.generateSummary['controlStyle'])) {
7197
7186
  this.generateSummaryObj['controlStyle'] = this.premiumDetails()?.generateSummary['controlStyle'];