@rangertechnologies/ngnxt 2.1.232 → 2.1.233
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.
- package/esm2022/environments/version.mjs +2 -2
- package/esm2022/lib/pages/questionbook/questionbook.component.mjs +47 -1
- package/fesm2022/rangertechnologies-ngnxt.mjs +47 -1
- package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
- package/package.json +1 -1
- package/rangertechnologies-ngnxt-2.1.233.tgz +0 -0
- package/rangertechnologies-ngnxt-2.1.232.tgz +0 -0
|
@@ -59145,6 +59145,52 @@ class QuestionbookComponent {
|
|
|
59145
59145
|
var htmlElement = element?.questionText;
|
|
59146
59146
|
var textOnly = htmlElement?.replace(/<[^>]*>/g, '');
|
|
59147
59147
|
element.questionText = textOnly;
|
|
59148
|
+
// HA 19DEC23 Logic for Question Styling(Slaesforce)
|
|
59149
|
+
// HA 28DEC23 Added styling and logics to load the book type questions
|
|
59150
|
+
if (element.type === 'Book') {
|
|
59151
|
+
if (element['qbReferenceQuestions']) {
|
|
59152
|
+
var qb = typeof element['qbReferenceQuestions'] === 'object' ? element['qbReferenceQuestions'] : JSON.parse(element['qbReferenceQuestions']);
|
|
59153
|
+
if (qb['questionbook'].style) {
|
|
59154
|
+
qb['questionbook'].style = typeof qb['questionbook'].style === 'string' ? JSON.parse('' + qb['questionbook'].style) : qb['questionbook'].style;
|
|
59155
|
+
}
|
|
59156
|
+
else {
|
|
59157
|
+
qb['questionbook'].style = this.qbItem.style;
|
|
59158
|
+
}
|
|
59159
|
+
// Book type question styling
|
|
59160
|
+
qb['questionbook'].style.labelClass = qb['questionbook'].style?.labelClass ? qb['questionbook'].style?.labelClass : "";
|
|
59161
|
+
qb['questionbook'].style.labelStyle = qb['questionbook'].style?.labelStyle ? qb['questionbook'].style?.labelStyle : "";
|
|
59162
|
+
qb['questionbook'].style.labelValueStyle = qb['questionbook'].style?.labelValueStyle ? qb['questionbook'].style.labelValueStyle : "";
|
|
59163
|
+
qb['questionbook'].style.inputClass = qb['questionbook'].style?.inputClass ? qb['questionbook'].style?.inputClass : "";
|
|
59164
|
+
qb['questionbook'].style.inputStyle = qb['questionbook'].style?.inputStyle ? qb['questionbook'].style?.inputStyle : "";
|
|
59165
|
+
qb['questionbook'].style.bookStyle = qb['questionbook'].style?.bookStyle ? qb['questionbook'].style?.bookStyle : "";
|
|
59166
|
+
qb['questionbook'].style.showLabel = qb['questionbook'].style?.showLabel ? qb['questionbook'].style?.showLabel : true;
|
|
59167
|
+
qb['questionbook'].style.questionStyle = qb['questionbook'].style?.questionStyle ? qb['questionbook'].style?.questionStyle : "";
|
|
59168
|
+
qb['langDirection'] = qb['questionbook'].style.direction ? qb['questionbook'].style?.direction : this.langDirection;
|
|
59169
|
+
// Loop for each question in the book
|
|
59170
|
+
qb['questionbook']?.subQuestions?.forEach(questionFromBook => {
|
|
59171
|
+
questionFromBook.style = questionFromBook.style ? questionFromBook.style : qb['questionbook'].style;
|
|
59172
|
+
questionFromBook.style.labelClass = questionFromBook.style?.labelClass ? questionFromBook.style?.labelClass : "";
|
|
59173
|
+
questionFromBook.style.labelStyle = questionFromBook.style?.labelStyle ? questionFromBook.style?.labelStyle : "";
|
|
59174
|
+
questionFromBook.style.labelValueStyle = questionFromBook.style?.labelValueStyle ? questionFromBook.style?.labelValueStyle : "";
|
|
59175
|
+
questionFromBook.style.inputClass = questionFromBook.style?.inputClass ? questionFromBook.style?.inputClass : "";
|
|
59176
|
+
questionFromBook.style.inputStyle = questionFromBook.style?.inputStyle ? questionFromBook.style?.inputStyle : "";
|
|
59177
|
+
questionFromBook.style.bookStyle = questionFromBook.style?.bookStyle ? questionFromBook.style?.bookStyle : "";
|
|
59178
|
+
questionFromBook.style.showLabel = questionFromBook.style?.showLabel ? questionFromBook.style?.showLabel : true;
|
|
59179
|
+
questionFromBook.style.questionStyle = questionFromBook.style?.questionStyle ? questionFromBook.style?.questionStyle : "";
|
|
59180
|
+
questionFromBook['langDirection'] = questionFromBook.style?.direction ? questionFromBook.style?.direction : this.langDirection;
|
|
59181
|
+
});
|
|
59182
|
+
element['qbItem'] = qb['questionbook'];
|
|
59183
|
+
}
|
|
59184
|
+
}
|
|
59185
|
+
element.style = element.style ? typeof element.style === 'string' ? JSON.parse('' + element?.style) : element?.style : this.qbItem?.style;
|
|
59186
|
+
element.style.labelClass = element.style?.labelClass ? element.style?.labelClass : "";
|
|
59187
|
+
element.style.labelStyle = element.style?.labelStyle ? element.style?.labelStyle : "";
|
|
59188
|
+
element.style.labelValueStyle = element.style?.labelValueStyle ? element.style.labelValueStyle : "";
|
|
59189
|
+
element.style.inputClass = element.style?.inputClass ? element.style?.inputClass : "";
|
|
59190
|
+
element.style.inputStyle = element.style.inputStyle ? element.style?.inputStyle : "";
|
|
59191
|
+
element.style.bookStyle = element.style?.bookStyle ? element.style?.bookStyle : "";
|
|
59192
|
+
element.style.showLabel = element.style?.showLabel ? element.style?.showLabel : true;
|
|
59193
|
+
element.style.questionStyle = element.style?.questionStyle ? element.style?.questionStyle : "";
|
|
59148
59194
|
element['langDirection'] = element.style?.direction ? element.style?.direction : this.langDirection;
|
|
59149
59195
|
//VD 02Aug24 dependent field show/hide changes
|
|
59150
59196
|
// RS 09DEC24 Changed keys
|
|
@@ -61229,7 +61275,7 @@ const VERSION = {
|
|
|
61229
61275
|
"semver": null,
|
|
61230
61276
|
"suffix": "25a9ab11-dirty",
|
|
61231
61277
|
"semverString": null,
|
|
61232
|
-
"version": "2.1.
|
|
61278
|
+
"version": "2.1.233"
|
|
61233
61279
|
};
|
|
61234
61280
|
/* tslint:enable */
|
|
61235
61281
|
|