survey-react-ui 1.12.23 → 1.12.24
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 +9 -14
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.24",
|
|
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": "./typings/src/entries/react-ui.d.ts",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"survey-core": "1.12.
|
|
24
|
+
"survey-core": "1.12.24",
|
|
25
25
|
"react": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0",
|
|
26
26
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0"
|
|
27
27
|
}
|
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.24
|
|
3
3
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -110,7 +110,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
110
110
|
/***/ (function(module, exports, __webpack_require__) {
|
|
111
111
|
|
|
112
112
|
/*!
|
|
113
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
113
|
+
* surveyjs - Survey JavaScript library v1.12.24
|
|
114
114
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
115
115
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
116
116
|
*/
|
|
@@ -1043,7 +1043,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
1043
1043
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1044
1044
|
|
|
1045
1045
|
/*!
|
|
1046
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
1046
|
+
* surveyjs - Survey JavaScript library v1.12.24
|
|
1047
1047
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
1048
1048
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
1049
1049
|
*/
|
|
@@ -2669,19 +2669,17 @@ var element_SurveyRowElement = /** @class */ (function (_super) {
|
|
|
2669
2669
|
el.focusIn();
|
|
2670
2670
|
}
|
|
2671
2671
|
};
|
|
2672
|
-
return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: css.questionWrapper, style: element.rootStyle, "data-key":
|
|
2672
|
+
return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: css.questionWrapper, style: element.rootStyle, "data-key": element.name + this.index, onFocus: focusIn, ref: this.rootRef }, innerElement));
|
|
2673
2673
|
};
|
|
2674
2674
|
SurveyRowElement.prototype.createElement = function (element, elementIndex) {
|
|
2675
|
-
var index = elementIndex ? "-" + elementIndex : 0;
|
|
2676
2675
|
if (!this.row.isNeedRender) {
|
|
2677
|
-
return ReactElementFactory.Instance.createElement(element.skeletonComponentName, {
|
|
2676
|
+
return ReactElementFactory.Instance.createElement(element.skeletonComponentName, { element: element, css: this.css, });
|
|
2678
2677
|
}
|
|
2679
2678
|
var elementType = element.getTemplate();
|
|
2680
2679
|
if (!ReactElementFactory.Instance.isElementRegistered(elementType)) {
|
|
2681
2680
|
elementType = "question";
|
|
2682
2681
|
}
|
|
2683
2682
|
return ReactElementFactory.Instance.createElement(elementType, {
|
|
2684
|
-
key: element.name + index,
|
|
2685
2683
|
element: element,
|
|
2686
2684
|
creator: this.creator,
|
|
2687
2685
|
survey: this.survey,
|
|
@@ -2761,9 +2759,7 @@ var row_SurveyRow = /** @class */ (function (_super) {
|
|
|
2761
2759
|
SurveyRow.prototype.renderElementContent = function () {
|
|
2762
2760
|
var _this = this;
|
|
2763
2761
|
var elements = this.row.visibleElements.map(function (element, elementIndex) {
|
|
2764
|
-
|
|
2765
|
-
var key = element.name + index;
|
|
2766
|
-
return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](element_SurveyRowElement, { element: element, index: elementIndex, row: _this.row, survey: _this.survey, creator: _this.creator, css: _this.css, key: key }));
|
|
2762
|
+
return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](element_SurveyRowElement, { element: element, index: elementIndex, row: _this.row, survey: _this.survey, creator: _this.creator, css: _this.css, key: element.id }));
|
|
2767
2763
|
});
|
|
2768
2764
|
return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { ref: this.rootRef, className: this.row.getRowCss() }, elements));
|
|
2769
2765
|
};
|
|
@@ -4075,7 +4071,6 @@ var reactquestion_SurveyQuestion = /** @class */ (function (_super) {
|
|
|
4075
4071
|
var el = this.rootRef.current;
|
|
4076
4072
|
if (el && el.getAttribute("data-rendered") !== "r") {
|
|
4077
4073
|
el.setAttribute("data-rendered", "r");
|
|
4078
|
-
el.setAttribute("data-name", this.question.name);
|
|
4079
4074
|
if (this.question.afterRender) {
|
|
4080
4075
|
this.question.afterRender(el);
|
|
4081
4076
|
}
|
|
@@ -4126,7 +4121,7 @@ var reactquestion_SurveyQuestion = /** @class */ (function (_super) {
|
|
|
4126
4121
|
var rootStyle = question.getRootStyle();
|
|
4127
4122
|
var questionContent = this.wrapQuestionContent(this.renderQuestionContent());
|
|
4128
4123
|
return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](external_root_React_commonjs2_react_commonjs_react_amd_react_["Fragment"], null,
|
|
4129
|
-
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { ref: this.rootRef, id: question.id, className: question.getRootCss(), style: rootStyle, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-labelledby": question.ariaLabelledBy, "aria-describedby": question.ariaDescribedBy, "aria-expanded": question.ariaExpanded },
|
|
4124
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { ref: this.rootRef, id: question.id, className: question.getRootCss(), style: rootStyle, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-labelledby": question.ariaLabelledBy, "aria-describedby": question.ariaDescribedBy, "aria-expanded": question.ariaExpanded, "data-name": question.name },
|
|
4130
4125
|
errorsAboveQuestion,
|
|
4131
4126
|
headerTop,
|
|
4132
4127
|
questionContent,
|
|
@@ -10155,7 +10150,7 @@ var imagepicker_SurveyQuestionImagePickerItem = /** @class */ (function (_super)
|
|
|
10155
10150
|
}
|
|
10156
10151
|
var renderedItem = (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: itemClass },
|
|
10157
10152
|
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("label", { className: cssClasses.label },
|
|
10158
|
-
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("input", { className: cssClasses.itemControl, id: this.question.getItemId(item), type: this.question.inputType, name: this.question.questionName, checked: isChecked, value: item.value, disabled: !this.question.getItemEnabled(item), readOnly: this.question.isReadOnlyAttr, onChange: this.handleOnChange, "aria-required": this.question.ariaRequired, "aria-label":
|
|
10153
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("input", { className: cssClasses.itemControl, id: this.question.getItemId(item), type: this.question.inputType, name: this.question.questionName, checked: isChecked, value: item.value, disabled: !this.question.getItemEnabled(item), readOnly: this.question.isReadOnlyAttr, onChange: this.handleOnChange, "aria-required": this.question.ariaRequired, "aria-label": item.locText.renderedHtml, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
|
|
10159
10154
|
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.itemDecorator },
|
|
10160
10155
|
external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.imageContainer },
|
|
10161
10156
|
!!this.question.cssClasses.checkedItemDecorator ?
|
|
@@ -11316,7 +11311,7 @@ ReactElementFactory.Instance.registerElement(external_root_Survey_commonjs2_surv
|
|
|
11316
11311
|
|
|
11317
11312
|
|
|
11318
11313
|
|
|
11319
|
-
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.
|
|
11314
|
+
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.24", "survey-react-ui");
|
|
11320
11315
|
|
|
11321
11316
|
|
|
11322
11317
|
/***/ }),
|