survey-react-ui 1.9.84 → 1.9.86
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 +13 -9
- 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.86",
|
|
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.86",
|
|
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.86
|
|
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.86", "survey-react-ui");
|
|
1193
1193
|
|
|
1194
1194
|
|
|
1195
1195
|
/***/ }),
|
|
@@ -1438,12 +1438,14 @@ var SurveyQuestionBoolean = /** @class */ (function (_super) {
|
|
|
1438
1438
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
|
|
1439
1439
|
? ""
|
|
1440
1440
|
: this.question.booleanValue, id: this.question.inputId, className: cssClasses.control, disabled: this.isDisplayMode, checked: this.question.booleanValue || false, onChange: this.handleOnChange, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy }),
|
|
1441
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("
|
|
1441
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.sliderGhost, onClick: function (event) { return _this.handleOnLabelClick(event, false); } },
|
|
1442
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.question.getLabelCss(false) }, this.renderLocString(this.question.locLabelFalse))),
|
|
1442
1443
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.switch, onClick: this.handleOnSwitchClick },
|
|
1443
1444
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.slider }, this.question.isDeterminated && cssClasses.sliderText ?
|
|
1444
1445
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.sliderText }, this.renderLocString(this.question.getCheckedLabel()))
|
|
1445
1446
|
: null)),
|
|
1446
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("
|
|
1447
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.sliderGhost, onClick: function (event) { return _this.handleOnLabelClick(event, true); } },
|
|
1448
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.question.getLabelCss(true) }, this.renderLocString(this.question.locLabelTrue))))));
|
|
1447
1449
|
};
|
|
1448
1450
|
return SurveyQuestionBoolean;
|
|
1449
1451
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["SurveyQuestionElementBase"]));
|
|
@@ -1625,7 +1627,7 @@ var SurveyActionBarItem = /** @class */ (function (_super) {
|
|
|
1625
1627
|
var title = this.item.tooltip || this.item.title;
|
|
1626
1628
|
var buttonContent = this.renderButtonContent();
|
|
1627
1629
|
var tabIndex = this.item.disableTabStop ? -1 : undefined;
|
|
1628
|
-
var button = Object(_reactSurvey__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", { className: className, type: "button", disabled: this.item.disabled, onClick: function () { return _this.item.action(_this.item); }, title: title, tabIndex: tabIndex, "aria-checked": this.item.ariaChecked, "aria-expanded": this.item.ariaExpanded, role: this.item.ariaRole }, buttonContent), null, { processEsc: false });
|
|
1630
|
+
var button = Object(_reactSurvey__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", { className: className, type: "button", disabled: this.item.disabled, onClick: function (args) { return _this.item.action(_this.item, _this.item.getIsTrusted(args)); }, title: title, tabIndex: tabIndex, "aria-checked": this.item.ariaChecked, "aria-expanded": this.item.ariaExpanded, role: this.item.ariaRole }, buttonContent), null, { processEsc: false });
|
|
1629
1631
|
return button;
|
|
1630
1632
|
};
|
|
1631
1633
|
return SurveyActionBarItem;
|
|
@@ -3167,7 +3169,7 @@ var RatingItemSmiley = /** @class */ (function (_super) {
|
|
|
3167
3169
|
};
|
|
3168
3170
|
RatingItemSmiley.prototype.render = function () {
|
|
3169
3171
|
var _this = this;
|
|
3170
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", { className: this.question.getItemClass(this.item.itemValue), onMouseOver: function (e) { return _this.question.onItemMouseIn(_this.item); }, onMouseOut: function (e) { return _this.question.onItemMouseOut(_this.item); } },
|
|
3172
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", { style: this.question.getItemStyle(this.item.itemValue, this.item.highlight), className: this.question.getItemClass(this.item.itemValue), onMouseOver: function (e) { return _this.question.onItemMouseIn(_this.item); }, onMouseOut: function (e) { return _this.question.onItemMouseOut(_this.item); } },
|
|
3171
3173
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.name, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.isDisplayMode, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: function () { }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy }),
|
|
3172
3174
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: "auto", iconName: this.question.getItemSmileyIconName(this.item.itemValue), title: this.item.text })));
|
|
3173
3175
|
};
|
|
@@ -5190,8 +5192,9 @@ var SurveyPanel = /** @class */ (function (_super) {
|
|
|
5190
5192
|
_this.panelBase.focusIn();
|
|
5191
5193
|
};
|
|
5192
5194
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { ref: this.rootRef, className: this.panelBase.getContainerCss(), onFocus: focusIn, id: this.panelBase.id },
|
|
5195
|
+
this.panel.showErrorsAbovePanel ? errors : null,
|
|
5193
5196
|
header,
|
|
5194
|
-
errors,
|
|
5197
|
+
this.panel.showErrorsAbovePanel ? null : errors,
|
|
5195
5198
|
content));
|
|
5196
5199
|
};
|
|
5197
5200
|
SurveyPanel.prototype.renderHeader = function () {
|
|
@@ -5556,7 +5559,8 @@ var Survey = /** @class */ (function (_super) {
|
|
|
5556
5559
|
var rootCss = this.survey.getRootCss();
|
|
5557
5560
|
var cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
|
|
5558
5561
|
var rootStyle = {
|
|
5559
|
-
backgroundImage: this.survey.renderBackgroundImage
|
|
5562
|
+
backgroundImage: this.survey.renderBackgroundImage,
|
|
5563
|
+
backgroundSize: this.survey.backgroundImageFit
|
|
5560
5564
|
};
|
|
5561
5565
|
var formStyle = {
|
|
5562
5566
|
backgroundColor: this.survey.renderBackgroundOpacity
|
|
@@ -7211,7 +7215,7 @@ var SurveyElementBase = /** @class */ (function (_super) {
|
|
|
7211
7215
|
};
|
|
7212
7216
|
SurveyElementBase.renderQuestionDescription = function (question) {
|
|
7213
7217
|
var descriptionText = SurveyElementBase.renderLocString(question.locDescription);
|
|
7214
|
-
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: question.cssDescription }, descriptionText);
|
|
7218
|
+
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { style: question.isDescriptionVisible ? undefined : { display: "none" }, className: question.cssDescription }, descriptionText);
|
|
7215
7219
|
};
|
|
7216
7220
|
SurveyElementBase.prototype.componentDidMount = function () {
|
|
7217
7221
|
this.makeBaseElementsReact();
|