survey-react-ui 1.9.81 → 1.9.82
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/package.json +2 -2
- package/survey-react-ui.js +12 -8
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.82",
|
|
4
4
|
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"typings": "survey-react-ui.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"survey-core": "1.9.
|
|
24
|
+
"survey-core": "1.9.82",
|
|
25
25
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
26
26
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
|
|
27
27
|
}
|
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.82
|
|
3
3
|
* Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -1189,7 +1189,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1189
1189
|
|
|
1190
1190
|
|
|
1191
1191
|
|
|
1192
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.
|
|
1192
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.82", "survey-react-ui");
|
|
1193
1193
|
|
|
1194
1194
|
|
|
1195
1195
|
/***/ }),
|
|
@@ -3902,7 +3902,7 @@ var TitleElement = /** @class */ (function (_super) {
|
|
|
3902
3902
|
};
|
|
3903
3903
|
}
|
|
3904
3904
|
var CustomTag = element.titleTagName;
|
|
3905
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(CustomTag, { className: element.cssTitle, id: element.ariaTitleId, "aria-label": ariaLabel, tabIndex: element.titleTabIndex, "aria-expanded": element.titleAriaExpanded, role:
|
|
3905
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(CustomTag, { className: element.cssTitle, id: element.ariaTitleId, "aria-label": ariaLabel, tabIndex: element.titleTabIndex, "aria-expanded": element.titleAriaExpanded, role: element.titleAriaRole, onClick: onClick, onKeyUp: onKeyUp }, titleContent));
|
|
3906
3906
|
};
|
|
3907
3907
|
return TitleElement;
|
|
3908
3908
|
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component));
|
|
@@ -5555,8 +5555,14 @@ var Survey = /** @class */ (function (_super) {
|
|
|
5555
5555
|
}
|
|
5556
5556
|
var rootCss = this.survey.getRootCss();
|
|
5557
5557
|
var cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
|
|
5558
|
-
|
|
5559
|
-
|
|
5558
|
+
var rootStyle = {
|
|
5559
|
+
backgroundImage: this.survey.renderBackgroundImage
|
|
5560
|
+
};
|
|
5561
|
+
var formStyle = {
|
|
5562
|
+
backgroundColor: this.survey.renderBackgroundOpacity
|
|
5563
|
+
};
|
|
5564
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: rootStyle },
|
|
5565
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("form", { onSubmit: onSubmit, style: formStyle },
|
|
5560
5566
|
customHeader,
|
|
5561
5567
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.container },
|
|
5562
5568
|
header,
|
|
@@ -5696,9 +5702,7 @@ var Survey = /** @class */ (function (_super) {
|
|
|
5696
5702
|
};
|
|
5697
5703
|
//ISurveyCreator
|
|
5698
5704
|
Survey.prototype.createQuestionElement = function (question) {
|
|
5699
|
-
return _reactquestion_factory__WEBPACK_IMPORTED_MODULE_6__["ReactQuestionFactory"].Instance.createQuestion(
|
|
5700
|
-
? question.getTemplate()
|
|
5701
|
-
: question.getComponentName(), {
|
|
5705
|
+
return _reactquestion_factory__WEBPACK_IMPORTED_MODULE_6__["ReactQuestionFactory"].Instance.createQuestion(question.isDefaultRendering() ? question.getTemplate() : question.getComponentName(), {
|
|
5702
5706
|
question: question,
|
|
5703
5707
|
isDisplayMode: question.isInputReadOnly,
|
|
5704
5708
|
creator: this,
|