survey-react-ui 2.2.4 → 2.2.6
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 +45 -34
- package/fesm/survey-react-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-react-ui.js +49 -38
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +1 -1
- package/survey-react-ui.min.js.LICENSE.txt +1 -1
- package/typings/src/dropdown-base.d.ts +2 -2
- package/typings/src/reactquestion_checkbox.d.ts +1 -1
- package/typings/src/reactquestion_comment.d.ts +3 -1
- package/typings/src/reactquestion_radiogroup.d.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
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",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"survey-core": "2.2.
|
|
32
|
+
"survey-core": "2.2.6",
|
|
33
33
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
|
|
34
34
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0"
|
|
35
35
|
}
|
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.2.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.2.6
|
|
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
|
*/
|
|
@@ -28,7 +28,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28
28
|
/* harmony export */ icons: () => (/* binding */ iconsV1)
|
|
29
29
|
/* harmony export */ });
|
|
30
30
|
/*!
|
|
31
|
-
* surveyjs - Survey JavaScript library v2.2.
|
|
31
|
+
* surveyjs - Survey JavaScript library v2.2.6
|
|
32
32
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
33
33
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
34
34
|
*/
|
|
@@ -114,7 +114,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
114
114
|
/* harmony export */ icons: () => (/* binding */ iconsV2)
|
|
115
115
|
/* harmony export */ });
|
|
116
116
|
/*!
|
|
117
|
-
* surveyjs - Survey JavaScript library v2.2.
|
|
117
|
+
* surveyjs - Survey JavaScript library v2.2.6
|
|
118
118
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
119
119
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
120
120
|
*/
|
|
@@ -3498,7 +3498,7 @@ var RatingItemSmiley = /** @class */ (function (_super) {
|
|
|
3498
3498
|
RatingItemSmiley.prototype.render = function () {
|
|
3499
3499
|
var _this = this;
|
|
3500
3500
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { onMouseDown: this.handleOnMouseDown, 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); }, title: this.item.text },
|
|
3501
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: function () { }, "aria-
|
|
3501
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: function () { }, "aria-label": this.question.ariaLabel }),
|
|
3502
3502
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { size: "auto", iconName: this.question.getItemSmileyIconName(this.item.itemValue) })));
|
|
3503
3503
|
};
|
|
3504
3504
|
return RatingItemSmiley;
|
|
@@ -3553,7 +3553,7 @@ var RatingItemStar = /** @class */ (function (_super) {
|
|
|
3553
3553
|
RatingItemStar.prototype.render = function () {
|
|
3554
3554
|
var _this = this;
|
|
3555
3555
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { onMouseDown: this.handleOnMouseDown, 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); }, title: this.item.text },
|
|
3556
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: function () { }, "aria-
|
|
3556
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: function () { }, "aria-label": this.question.ariaLabel }),
|
|
3557
3557
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "sv-star", size: "auto", iconName: this.question.itemStarIcon }),
|
|
3558
3558
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "sv-star-2", size: "auto", iconName: this.question.itemStarIconAlt })));
|
|
3559
3559
|
};
|
|
@@ -3645,7 +3645,7 @@ var RatingItem = /** @class */ (function (_super) {
|
|
|
3645
3645
|
RatingItem.prototype.render = function () {
|
|
3646
3646
|
var itemText = this.renderLocString(this.item.locText);
|
|
3647
3647
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { onMouseDown: this.handleOnMouseDown, className: this.question.getItemClassByText(this.item.itemValue, this.item.text) },
|
|
3648
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: function () { }, "aria-
|
|
3648
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: function () { }, "aria-label": this.question.ariaLabel }),
|
|
3649
3649
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: this.question.cssClasses.itemText, "data-text": this.item.text }, itemText)));
|
|
3650
3650
|
};
|
|
3651
3651
|
RatingItem.prototype.componentDidMount = function () {
|
|
@@ -4717,9 +4717,11 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
|
4717
4717
|
};
|
|
4718
4718
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, role: dropdownListModel.ariaInputRole, "aria-required": dropdownListModel.ariaInputRequired, "aria-invalid": dropdownListModel.ariaInputInvalid, "aria-errormessage": dropdownListModel.ariaInputErrorMessage, "aria-expanded": dropdownListModel.ariaInputExpanded, "aria-label": dropdownListModel.ariaInputLabel, "aria-labelledby": dropdownListModel.ariaInputLabelledby, "aria-describedby": dropdownListModel.ariaInputDescribedby, "aria-controls": dropdownListModel.ariaInputControls, "aria-activedescendant": dropdownListModel.ariaInputActivedescendant, placeholder: dropdownListModel.placeholderRendered, readOnly: dropdownListModel.filterReadOnly ? true : undefined, tabIndex: dropdownListModel.noTabIndex ? undefined : -1, disabled: this.question.isDisabledAttr, inputMode: dropdownListModel.inputMode, onChange: function (e) { onInputChange(e); }, onBlur: this.blur, onFocus: this.focus });
|
|
4719
4719
|
};
|
|
4720
|
-
SurveyQuestionDropdownBase.prototype.renderOther = function (cssClasses) {
|
|
4721
|
-
|
|
4722
|
-
|
|
4720
|
+
SurveyQuestionDropdownBase.prototype.renderOther = function (item, cssClasses) {
|
|
4721
|
+
if (!item || !item.isCommentShowing)
|
|
4722
|
+
return null;
|
|
4723
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { key: item.normalizedId, className: this.question.getCommentAreaCss(true) },
|
|
4724
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_reactquestion_comment__WEBPACK_IMPORTED_MODULE_4__.SurveyQuestionCommentValueItem, { question: this.question, item: item, isDisplayMode: this.isDisplayMode, cssClasses: this.question.cssClasses, otherCss: this.question.getCommentAreaCss(false) })));
|
|
4723
4725
|
};
|
|
4724
4726
|
SurveyQuestionDropdownBase.prototype.renderEditorButtons = function () {
|
|
4725
4727
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_6__.SurveyActionBar, { model: this.dropdownListModel.editorButtons });
|
|
@@ -5625,7 +5627,7 @@ var SurveyQuestionImagePickerItem = /** @class */ (function (_super) {
|
|
|
5625
5627
|
}
|
|
5626
5628
|
var renderedItem = (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: itemClass },
|
|
5627
5629
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("label", { className: cssClasses.label },
|
|
5628
|
-
react__WEBPACK_IMPORTED_MODULE_0__.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,
|
|
5630
|
+
react__WEBPACK_IMPORTED_MODULE_0__.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, required: this.question.inputRequiredAttribute, "aria-label": item.locText.renderedHtml, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
|
|
5629
5631
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.itemDecorator },
|
|
5630
5632
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.cssClasses.imageContainer },
|
|
5631
5633
|
!!this.question.cssClasses.checkedItemDecorator ?
|
|
@@ -7555,8 +7557,7 @@ var SurveyQuestionCheckbox = /** @class */ (function (_super) {
|
|
|
7555
7557
|
this.question.hasColumns
|
|
7556
7558
|
? this.getColumnedBody(cssClasses)
|
|
7557
7559
|
: this.getBody(cssClasses),
|
|
7558
|
-
this.getFooter()
|
|
7559
|
-
this.question.isOtherSelected ? this.renderOther() : null));
|
|
7560
|
+
this.getFooter()));
|
|
7560
7561
|
};
|
|
7561
7562
|
SurveyQuestionCheckbox.prototype.getHeader = function () {
|
|
7562
7563
|
var _this = this;
|
|
@@ -7598,7 +7599,6 @@ var SurveyQuestionCheckbox = /** @class */ (function (_super) {
|
|
|
7598
7599
|
var renderedItems = [];
|
|
7599
7600
|
for (var i = 0; i < choices.length; i++) {
|
|
7600
7601
|
var item = choices[i];
|
|
7601
|
-
var key = "item" + item.value;
|
|
7602
7602
|
var renderedItem = this.renderItem(item, i == 0, cssClasses, "" + i);
|
|
7603
7603
|
if (!!renderedItem) {
|
|
7604
7604
|
renderedItems.push(renderedItem);
|
|
@@ -7613,11 +7613,6 @@ var SurveyQuestionCheckbox = /** @class */ (function (_super) {
|
|
|
7613
7613
|
enumerable: false,
|
|
7614
7614
|
configurable: true
|
|
7615
7615
|
});
|
|
7616
|
-
SurveyQuestionCheckbox.prototype.renderOther = function () {
|
|
7617
|
-
var cssClasses = this.question.cssClasses;
|
|
7618
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.getCommentAreaCss(true) },
|
|
7619
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_reactquestion_comment__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionOtherValueItem, { question: this.question, otherCss: cssClasses.other, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode })));
|
|
7620
|
-
};
|
|
7621
7616
|
SurveyQuestionCheckbox.prototype.renderItem = function (item, isFirst, cssClasses, index) {
|
|
7622
7617
|
var renderedItem = _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement(this.question.itemComponent, {
|
|
7623
7618
|
key: item.value,
|
|
@@ -7725,7 +7720,9 @@ var SurveyQuestionCheckboxItem = /** @class */ (function (_super) {
|
|
|
7725
7720
|
};
|
|
7726
7721
|
SurveyQuestionCheckboxItem.prototype.renderElement = function () {
|
|
7727
7722
|
var isChecked = this.question.isItemSelected(this.item);
|
|
7728
|
-
return
|
|
7723
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
|
|
7724
|
+
this.renderCheckbox(isChecked, null),
|
|
7725
|
+
this.renderComment());
|
|
7729
7726
|
};
|
|
7730
7727
|
Object.defineProperty(SurveyQuestionCheckboxItem.prototype, "inputStyle", {
|
|
7731
7728
|
get: function () {
|
|
@@ -7734,6 +7731,12 @@ var SurveyQuestionCheckboxItem = /** @class */ (function (_super) {
|
|
|
7734
7731
|
enumerable: false,
|
|
7735
7732
|
configurable: true
|
|
7736
7733
|
});
|
|
7734
|
+
SurveyQuestionCheckboxItem.prototype.renderComment = function () {
|
|
7735
|
+
if (!this.item.isCommentShowing)
|
|
7736
|
+
return null;
|
|
7737
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.getCommentAreaCss(true) },
|
|
7738
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_reactquestion_comment__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionCommentValueItem, { question: this.question, item: this.item, isDisplayMode: this.isDisplayMode, cssClasses: this.question.cssClasses, otherCss: this.question.getCommentAreaCss(false) }));
|
|
7739
|
+
};
|
|
7737
7740
|
SurveyQuestionCheckboxItem.prototype.renderCheckbox = function (isChecked, otherItem) {
|
|
7738
7741
|
var id = this.question.getItemId(this.item);
|
|
7739
7742
|
var itemClass = this.question.getItemClass(this.item);
|
|
@@ -7786,7 +7789,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7786
7789
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7787
7790
|
/* harmony export */ SurveyQuestionComment: () => (/* binding */ SurveyQuestionComment),
|
|
7788
7791
|
/* harmony export */ SurveyQuestionCommentItem: () => (/* binding */ SurveyQuestionCommentItem),
|
|
7789
|
-
/* harmony export */
|
|
7792
|
+
/* harmony export */ SurveyQuestionCommentValueItem: () => (/* binding */ SurveyQuestionCommentValueItem)
|
|
7790
7793
|
/* harmony export */ });
|
|
7791
7794
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
7792
7795
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7858,20 +7861,22 @@ var SurveyQuestionCommentItem = /** @class */ (function (_super) {
|
|
|
7858
7861
|
var comment = this.textAreaModel.getTextValue() || "";
|
|
7859
7862
|
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", null, comment);
|
|
7860
7863
|
}
|
|
7861
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_text_area__WEBPACK_IMPORTED_MODULE_4__.TextAreaComponent, { viewModel: this.textAreaModel }));
|
|
7864
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_text_area__WEBPACK_IMPORTED_MODULE_4__.TextAreaComponent, { key: this.getKey(), viewModel: this.textAreaModel }));
|
|
7862
7865
|
};
|
|
7866
|
+
SurveyQuestionCommentItem.prototype.getKey = function () { return undefined; };
|
|
7863
7867
|
return SurveyQuestionCommentItem;
|
|
7864
7868
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.ReactSurveyElement));
|
|
7865
7869
|
|
|
7866
|
-
var
|
|
7867
|
-
__extends(
|
|
7868
|
-
function
|
|
7870
|
+
var SurveyQuestionCommentValueItem = /** @class */ (function (_super) {
|
|
7871
|
+
__extends(SurveyQuestionCommentValueItem, _super);
|
|
7872
|
+
function SurveyQuestionCommentValueItem() {
|
|
7869
7873
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
7870
7874
|
}
|
|
7871
|
-
|
|
7872
|
-
return this.props.question.
|
|
7875
|
+
SurveyQuestionCommentValueItem.prototype.getTextAreaModel = function () {
|
|
7876
|
+
return this.props.question.getCommentTextAreaModel(this.props.item);
|
|
7873
7877
|
};
|
|
7874
|
-
return
|
|
7878
|
+
SurveyQuestionCommentValueItem.prototype.getKey = function () { return this.props.item.normalizedId; };
|
|
7879
|
+
return SurveyQuestionCommentValueItem;
|
|
7875
7880
|
}(SurveyQuestionCommentItem));
|
|
7876
7881
|
|
|
7877
7882
|
_reactquestion_factory__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("comment", function (props) {
|
|
@@ -7999,7 +8004,7 @@ var SurveyQuestionDropdown = /** @class */ (function (_super) {
|
|
|
7999
8004
|
}
|
|
8000
8005
|
SurveyQuestionDropdown.prototype.renderElement = function () {
|
|
8001
8006
|
var cssClasses = this.question.cssClasses;
|
|
8002
|
-
var comment = this.question.
|
|
8007
|
+
var comment = this.renderOther(this.question.selectedItem, cssClasses);
|
|
8003
8008
|
var select = this.renderSelect(cssClasses);
|
|
8004
8009
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.renderCssRoot },
|
|
8005
8010
|
select,
|
|
@@ -8528,7 +8533,7 @@ var SurveyQuestionExpression = /** @class */ (function (_super) {
|
|
|
8528
8533
|
SurveyQuestionExpression.prototype.renderElement = function () {
|
|
8529
8534
|
var _this = this;
|
|
8530
8535
|
var cssClasses = this.question.cssClasses;
|
|
8531
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: this.question.inputId, className: cssClasses.root, ref: function (div) { return (_this.setControl(div)); } }, this.question.formatedValue));
|
|
8536
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { id: this.question.inputId, className: cssClasses.root, ref: function (div) { return (_this.setControl(div)); }, "aria-live": "polite", "aria-label": this.question.formatedValue }, this.question.formatedValue));
|
|
8532
8537
|
};
|
|
8533
8538
|
return SurveyQuestionExpression;
|
|
8534
8539
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__.SurveyQuestionElementBase));
|
|
@@ -9515,7 +9520,7 @@ var SurveyQuestionMatrixDropdownCell = /** @class */ (function (_super) {
|
|
|
9515
9520
|
SurveyQuestionMatrixDropdownCell.prototype.renderOtherComment = function () {
|
|
9516
9521
|
var question = this.cell.question;
|
|
9517
9522
|
var cssClasses = question.cssClasses || {};
|
|
9518
|
-
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_reactquestion_comment__WEBPACK_IMPORTED_MODULE_9__.
|
|
9523
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_reactquestion_comment__WEBPACK_IMPORTED_MODULE_9__.SurveyQuestionCommentValueItem, { question: question, item: question.otherItem, cssClasses: cssClasses, otherCss: cssClasses.other, isDisplayMode: question.isInputReadOnly });
|
|
9519
9524
|
};
|
|
9520
9525
|
SurveyQuestionMatrixDropdownCell.prototype.renderCellCheckboxButton = function () {
|
|
9521
9526
|
var key = this.cell.question.id + "item" + this.cell.choiceIndex;
|
|
@@ -10098,7 +10103,6 @@ var SurveyQuestionRadiogroup = /** @class */ (function (_super) {
|
|
|
10098
10103
|
? this.getColumnedBody(cssClasses)
|
|
10099
10104
|
: this.getBody(cssClasses),
|
|
10100
10105
|
this.getFooter(),
|
|
10101
|
-
this.question.isOtherSelected ? this.renderOther(cssClasses) : null,
|
|
10102
10106
|
clearButton));
|
|
10103
10107
|
};
|
|
10104
10108
|
SurveyQuestionRadiogroup.prototype.getFooter = function () {
|
|
@@ -10147,10 +10151,6 @@ var SurveyQuestionRadiogroup = /** @class */ (function (_super) {
|
|
|
10147
10151
|
enumerable: false,
|
|
10148
10152
|
configurable: true
|
|
10149
10153
|
});
|
|
10150
|
-
SurveyQuestionRadiogroup.prototype.renderOther = function (cssClasses) {
|
|
10151
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.getCommentAreaCss(true) },
|
|
10152
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_reactquestion_comment__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionOtherValueItem, { question: this.question, otherCss: cssClasses.other, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode })));
|
|
10153
|
-
};
|
|
10154
10154
|
SurveyQuestionRadiogroup.prototype.renderItem = function (item, value, cssClasses, index) {
|
|
10155
10155
|
var renderedItem = _element_factory__WEBPACK_IMPORTED_MODULE_5__.ReactElementFactory.Instance.createElement(this.question.itemComponent, {
|
|
10156
10156
|
key: item.value,
|
|
@@ -10267,6 +10267,17 @@ var SurveyQuestionRadioItem = /** @class */ (function (_super) {
|
|
|
10267
10267
|
}
|
|
10268
10268
|
};
|
|
10269
10269
|
SurveyQuestionRadioItem.prototype.renderElement = function () {
|
|
10270
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null,
|
|
10271
|
+
this.renderRadioButton(),
|
|
10272
|
+
this.renderComment());
|
|
10273
|
+
};
|
|
10274
|
+
SurveyQuestionRadioItem.prototype.renderComment = function () {
|
|
10275
|
+
if (!this.item.isCommentShowing)
|
|
10276
|
+
return null;
|
|
10277
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.getCommentAreaCss(true) },
|
|
10278
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement(_reactquestion_comment__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionCommentValueItem, { question: this.question, item: this.item, isDisplayMode: this.isDisplayMode, cssClasses: this.question.cssClasses, otherCss: this.question.getCommentAreaCss(false) }));
|
|
10279
|
+
};
|
|
10280
|
+
SurveyQuestionRadioItem.prototype.renderRadioButton = function () {
|
|
10270
10281
|
var itemClass = this.question.getItemClass(this.item);
|
|
10271
10282
|
var labelClass = this.question.getLabelClass(this.item);
|
|
10272
10283
|
var controlLabelClass = this.question.getControlLabelClass(this.item);
|
|
@@ -10639,7 +10650,7 @@ var SurveyQuestionRating = /** @class */ (function (_super) {
|
|
|
10639
10650
|
? this.renderLocString(this.question.locMaxRateDescription)
|
|
10640
10651
|
: null;
|
|
10641
10652
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.ratingRootCss, ref: function (div) { return (_this.setControl(div)); } },
|
|
10642
|
-
react__WEBPACK_IMPORTED_MODULE_0__.createElement("fieldset", { role: "
|
|
10653
|
+
react__WEBPACK_IMPORTED_MODULE_0__.createElement("fieldset", { role: this.question.a11y_input_ariaRole, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage },
|
|
10643
10654
|
react__WEBPACK_IMPORTED_MODULE_0__.createElement("legend", { role: "presentation", className: "sv-hidden" }),
|
|
10644
10655
|
!!this.question.hasMinLabel ? react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { className: cssClasses.minText }, minText) : null,
|
|
10645
10656
|
this.question.renderedRateItems.map(function (item, index) { return _this.renderItem(item, index); }),
|
|
@@ -10933,7 +10944,7 @@ var SurveyQuestionTagbox = /** @class */ (function (_super) {
|
|
|
10933
10944
|
};
|
|
10934
10945
|
SurveyQuestionTagbox.prototype.renderElement = function () {
|
|
10935
10946
|
var cssClasses = this.question.cssClasses;
|
|
10936
|
-
var comment = this.question.
|
|
10947
|
+
var comment = this.renderOther(this.question.otherItem, cssClasses);
|
|
10937
10948
|
var select = this.renderSelect(cssClasses);
|
|
10938
10949
|
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.question.renderCssRoot },
|
|
10939
10950
|
select,
|
|
@@ -12116,7 +12127,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12116
12127
|
|
|
12117
12128
|
|
|
12118
12129
|
|
|
12119
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.2.
|
|
12130
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.2.6"), "survey-react-ui");
|
|
12120
12131
|
|
|
12121
12132
|
})();
|
|
12122
12133
|
|