survey-react-ui 1.12.33 → 1.12.35
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/fesm/survey-react-ui.mjs +30 -10
- package/fesm/survey-react-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-react-ui.js +13 -10
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +4 -4
- package/survey-react-ui.min.js.LICENSE.txt +1 -1
- package/typings/entries/react-ui-model.d.ts +1 -0
- package/typings/src/buttongroup-dropdown.d.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.35",
|
|
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.35",
|
|
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.35
|
|
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.35
|
|
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.35
|
|
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
|
*/
|
|
@@ -2812,8 +2812,9 @@ var row_SurveyRow = /** @class */ (function (_super) {
|
|
|
2812
2812
|
this.row.isNeedRender = !this.row.isLazyRendering();
|
|
2813
2813
|
};
|
|
2814
2814
|
SurveyRow.prototype.componentWillUnmount = function () {
|
|
2815
|
+
var isCurrentStateElement = this.isCurrentStateElement(this.getStateElement());
|
|
2815
2816
|
_super.prototype.componentWillUnmount.call(this);
|
|
2816
|
-
if (
|
|
2817
|
+
if (isCurrentStateElement) {
|
|
2817
2818
|
this.row.setRootElement(undefined);
|
|
2818
2819
|
this.stopLazyRendering();
|
|
2819
2820
|
}
|
|
@@ -6464,19 +6465,21 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
|
|
|
6464
6465
|
return this.questionBase.renderedValue;
|
|
6465
6466
|
};
|
|
6466
6467
|
SurveyQuestionDropdownBase.prototype.renderReadOnlyElement = function () {
|
|
6467
|
-
|
|
6468
|
+
if (this.question.locReadOnlyText) {
|
|
6469
|
+
return this.renderLocString(this.question.locReadOnlyText);
|
|
6470
|
+
}
|
|
6471
|
+
else {
|
|
6472
|
+
return null;
|
|
6473
|
+
}
|
|
6468
6474
|
};
|
|
6469
6475
|
SurveyQuestionDropdownBase.prototype.renderSelect = function (cssClasses) {
|
|
6470
6476
|
var _this = this;
|
|
6471
6477
|
var _a, _b;
|
|
6472
6478
|
var selectElement = null;
|
|
6473
6479
|
if (this.question.isReadOnly) {
|
|
6474
|
-
var text = (this.question.selectedItemLocText) ? this.renderLocString(this.question.selectedItemLocText) : "";
|
|
6475
6480
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6476
6481
|
// @ts-ignore
|
|
6477
|
-
selectElement = external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { id: this.question.inputId, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass(), ref: function (div) { return (_this.setControl(div)); } },
|
|
6478
|
-
text,
|
|
6479
|
-
this.renderReadOnlyElement());
|
|
6482
|
+
selectElement = external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { id: this.question.inputId, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass(), ref: function (div) { return (_this.setControl(div)); } }, this.renderReadOnlyElement());
|
|
6480
6483
|
}
|
|
6481
6484
|
else {
|
|
6482
6485
|
selectElement = external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](external_root_React_commonjs2_react_commonjs_react_amd_react_["Fragment"], null,
|
|
@@ -11321,7 +11324,7 @@ ReactElementFactory.Instance.registerElement(external_root_Survey_commonjs2_surv
|
|
|
11321
11324
|
|
|
11322
11325
|
|
|
11323
11326
|
|
|
11324
|
-
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.
|
|
11327
|
+
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.35", "survey-react-ui");
|
|
11325
11328
|
|
|
11326
11329
|
|
|
11327
11330
|
/***/ }),
|