@rangertechnologies/ngnxt 2.1.267 → 2.1.269
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.
|
@@ -53667,7 +53667,8 @@ class NxtFileUploadComponent {
|
|
|
53667
53667
|
if (readFilesPromises.length > 0) {
|
|
53668
53668
|
// Wait for all promises to resolve
|
|
53669
53669
|
Promise.all(readFilesPromises).then(() => {
|
|
53670
|
-
this.copyOfInputAllFiles = inputFiles;
|
|
53670
|
+
this.copyOfInputAllFiles = [...inputFiles];
|
|
53671
|
+
this.cdRef.markForCheck(); // Trigger change detection
|
|
53671
53672
|
let change;
|
|
53672
53673
|
change['fromQuestionId'] = this.question.id;
|
|
53673
53674
|
change['valueObj'] = inputFiles;
|
|
@@ -53693,6 +53694,7 @@ class NxtFileUploadComponent {
|
|
|
53693
53694
|
change['valueObj'] = this.copyOfInputAllFiles;
|
|
53694
53695
|
change['referenceField'] = this.question.referenceField;
|
|
53695
53696
|
this.selectedFileData.emit({ question: this.question, value: change });
|
|
53697
|
+
this.cdRef.markForCheck(); // Trigger change detection
|
|
53696
53698
|
}
|
|
53697
53699
|
// VD 20May24 - preview changes
|
|
53698
53700
|
// RS 09DEC24 Changed keys
|
|
@@ -59951,9 +59953,10 @@ class QuestionbookComponent {
|
|
|
59951
59953
|
else if (ques.type === 'Boolean') {
|
|
59952
59954
|
if (ques.input !== undefined) {
|
|
59953
59955
|
input['valueObj'] = ques.input !== false;
|
|
59956
|
+
input['valueObj'] = typeof ques.input === 'string' ? ques.input === 'true' : ques.input === true;
|
|
59954
59957
|
}
|
|
59955
59958
|
else if (ques.defaultValue !== undefined) {
|
|
59956
|
-
input['valueObj'] = ques.defaultValue
|
|
59959
|
+
input['valueObj'] = typeof ques.defaultValue === 'string' ? ques.defaultValue === 'true' : ques.defaultValue === true;
|
|
59957
59960
|
}
|
|
59958
59961
|
else {
|
|
59959
59962
|
input['valueObj'] = false;
|
|
@@ -60049,7 +60052,6 @@ class QuestionbookComponent {
|
|
|
60049
60052
|
else {
|
|
60050
60053
|
const question = {};
|
|
60051
60054
|
question['id'] = ques.id;
|
|
60052
|
-
question['input'] = ques.input || ques.defaultValue;
|
|
60053
60055
|
// HA 12FEB24 To bind-out Location Type
|
|
60054
60056
|
if (ques.type === 'Location') {
|
|
60055
60057
|
question['input'] = ques.input ? ques.input : ques.selectedValue;
|
|
@@ -60058,6 +60060,12 @@ class QuestionbookComponent {
|
|
|
60058
60060
|
// VD 23 Oct24 - file type changes
|
|
60059
60061
|
question['input'] = ques.input ? ques.input : ques.defaultValue || [];
|
|
60060
60062
|
}
|
|
60063
|
+
else if (ques.type === "Boolean") { // SKS23JUN25 defaultly set value false
|
|
60064
|
+
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;
|
|
60065
|
+
}
|
|
60066
|
+
else {
|
|
60067
|
+
question['input'] = ques.input || ques.defaultValue;
|
|
60068
|
+
}
|
|
60061
60069
|
question['type'] = ques.type;
|
|
60062
60070
|
question['questionNumber'] = ques.questionNumber;
|
|
60063
60071
|
question['referenceField'] = ques?.referenceField;
|
|
@@ -60799,6 +60807,7 @@ class BookletComponent {
|
|
|
60799
60807
|
let dependentElementArray = [];
|
|
60800
60808
|
// HA 22JAN24 this change to make close event work
|
|
60801
60809
|
dataToParent['action'] = action.eventtoemit;
|
|
60810
|
+
dataToParent['actionData'] = action['actionData'];
|
|
60802
60811
|
if (!(action.eventtoemit === 'close' || action.eventtoemit === 'print')) {
|
|
60803
60812
|
// HA 18-JAN-24 Sending the complete json data also
|
|
60804
60813
|
dataToParent['jsonBook'] = this.storageService.get();
|
|
@@ -60854,10 +60863,6 @@ class BookletComponent {
|
|
|
60854
60863
|
}
|
|
60855
60864
|
}
|
|
60856
60865
|
}
|
|
60857
|
-
// VD 13MAY24 - print QR button changes
|
|
60858
|
-
if (action.eventtoemit === 'print') {
|
|
60859
|
-
dataToParent['actionData'] = action['data'];
|
|
60860
|
-
}
|
|
60861
60866
|
// MSM 17JUN25 - Close button event changes
|
|
60862
60867
|
if (action.eventtoemit === 'close' && this.isEdit) {
|
|
60863
60868
|
this.isEdit = false;
|
|
@@ -61015,7 +61020,6 @@ class BookletComponent {
|
|
|
61015
61020
|
}
|
|
61016
61021
|
const question = {};
|
|
61017
61022
|
question['id'] = tempQues.id;
|
|
61018
|
-
question['input'] = tempQues.input || tempQues.defaultValue || null;
|
|
61019
61023
|
// HA 12FEB24 To bind-out Location Type
|
|
61020
61024
|
if (tempQues.type === 'Location') {
|
|
61021
61025
|
question['input'] = tempQues.input ? tempQues.input : tempQues.selectedValue || null;
|
|
@@ -61025,7 +61029,10 @@ class BookletComponent {
|
|
|
61025
61029
|
question['input'] = tempQues.input ? tempQues.input : tempQues.defaultValue || [];
|
|
61026
61030
|
}
|
|
61027
61031
|
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;
|
|
61032
|
+
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;
|
|
61033
|
+
}
|
|
61034
|
+
else {
|
|
61035
|
+
question['input'] = tempQues.input || tempQues.defaultValue || null;
|
|
61029
61036
|
}
|
|
61030
61037
|
question['type'] = tempQues.type;
|
|
61031
61038
|
question['questionNumber'] = tempQues.questionNumber;
|
|
@@ -61148,7 +61155,7 @@ const VERSION = {
|
|
|
61148
61155
|
"semver": null,
|
|
61149
61156
|
"suffix": "09440148-dirty",
|
|
61150
61157
|
"semverString": null,
|
|
61151
|
-
"version": "2.1.
|
|
61158
|
+
"version": "2.1.269"
|
|
61152
61159
|
};
|
|
61153
61160
|
/* tslint:enable */
|
|
61154
61161
|
|