@rangertechnologies/ngnxt 2.1.267 → 2.1.268

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.
@@ -59951,9 +59951,10 @@ class QuestionbookComponent {
59951
59951
  else if (ques.type === 'Boolean') {
59952
59952
  if (ques.input !== undefined) {
59953
59953
  input['valueObj'] = ques.input !== false;
59954
+ input['valueObj'] = typeof ques.input === 'string' ? ques.input === 'true' : ques.input === true;
59954
59955
  }
59955
59956
  else if (ques.defaultValue !== undefined) {
59956
- input['valueObj'] = ques.defaultValue !== false;
59957
+ input['valueObj'] = typeof ques.defaultValue === 'string' ? ques.defaultValue === 'true' : ques.defaultValue === true;
59957
59958
  }
59958
59959
  else {
59959
59960
  input['valueObj'] = false;
@@ -60049,7 +60050,6 @@ class QuestionbookComponent {
60049
60050
  else {
60050
60051
  const question = {};
60051
60052
  question['id'] = ques.id;
60052
- question['input'] = ques.input || ques.defaultValue;
60053
60053
  // HA 12FEB24 To bind-out Location Type
60054
60054
  if (ques.type === 'Location') {
60055
60055
  question['input'] = ques.input ? ques.input : ques.selectedValue;
@@ -60058,6 +60058,12 @@ class QuestionbookComponent {
60058
60058
  // VD 23 Oct24 - file type changes
60059
60059
  question['input'] = ques.input ? ques.input : ques.defaultValue || [];
60060
60060
  }
60061
+ else if (ques.type === "Boolean") { // SKS23JUN25 defaultly set value false
60062
+ question['input'] = typeof ques.input !== 'undefined' ? ques.input === true || ques.input === 'true' : typeof ques.defaultValue !== 'undefined' ? ((ques.defaultValue === true && ques.defaultValue !== "" && ques.defaultValue !== "false") || ques.defaultValue === 'true') : false;
60063
+ }
60064
+ else {
60065
+ question['input'] = ques.input || ques.defaultValue;
60066
+ }
60061
60067
  question['type'] = ques.type;
60062
60068
  question['questionNumber'] = ques.questionNumber;
60063
60069
  question['referenceField'] = ques?.referenceField;
@@ -61015,7 +61021,6 @@ class BookletComponent {
61015
61021
  }
61016
61022
  const question = {};
61017
61023
  question['id'] = tempQues.id;
61018
- question['input'] = tempQues.input || tempQues.defaultValue || null;
61019
61024
  // HA 12FEB24 To bind-out Location Type
61020
61025
  if (tempQues.type === 'Location') {
61021
61026
  question['input'] = tempQues.input ? tempQues.input : tempQues.selectedValue || null;
@@ -61025,7 +61030,10 @@ class BookletComponent {
61025
61030
  question['input'] = tempQues.input ? tempQues.input : tempQues.defaultValue || [];
61026
61031
  }
61027
61032
  else if (tempQues.type === "Boolean") { // SKS23JUN25 defaultly set value false
61028
- question['input'] = typeof tempQues.input !== 'undefined' ? tempQues.input === true || tempQues.input === 'true' : typeof tempQues.defaultValue !== 'undefined' ? tempQues.defaultValue === true || tempQues.defaultValue === 'true' : false;
61033
+ question['input'] = typeof tempQues.input !== 'undefined' ? tempQues.input === true || tempQues.input === 'true' : typeof tempQues.defaultValue !== 'undefined' ? ((tempQues.defaultValue === true && tempQues.defaultValue !== "" && tempQues.defaultValue !== "false") || tempQues.defaultValue === 'true') : false;
61034
+ }
61035
+ else {
61036
+ question['input'] = tempQues.input || tempQues.defaultValue || null;
61029
61037
  }
61030
61038
  question['type'] = tempQues.type;
61031
61039
  question['questionNumber'] = tempQues.questionNumber;
@@ -61148,7 +61156,7 @@ const VERSION = {
61148
61156
  "semver": null,
61149
61157
  "suffix": "09440148-dirty",
61150
61158
  "semverString": null,
61151
- "version": "2.1.267"
61159
+ "version": "2.1.268"
61152
61160
  };
61153
61161
  /* tslint:enable */
61154
61162