survey-react 1.9.131 → 1.9.132
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/defaultV2.css +10 -1
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +12 -3
- package/survey.react.js +108 -39
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.132
|
3
3
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -5570,7 +5570,7 @@ var defaultV2Css = {
|
|
5570
5570
|
expanded: "sd-element--expanded",
|
5571
5571
|
nested: "sd-element--nested",
|
5572
5572
|
invisible: "sd-element--invisible",
|
5573
|
-
composite: "sd-element--complex",
|
5573
|
+
composite: "sd-element--complex sd-composite",
|
5574
5574
|
disabled: "sd-question--disabled",
|
5575
5575
|
errorsContainer: "sd-element__erbox sd-question__erbox",
|
5576
5576
|
errorsContainerTop: "sd-element__erbox--above-element sd-question__erbox--above-question",
|
@@ -7682,14 +7682,14 @@ var DragDropRankingSelectToRank = /** @class */ (function (_super) {
|
|
7682
7682
|
if (dragOverNode.dataset.ranking === "from-container" || dragOverNode.dataset.ranking === "to-container") {
|
7683
7683
|
return dragOverNode;
|
7684
7684
|
}
|
7685
|
-
if (this.parentElement.
|
7685
|
+
if (this.parentElement.rankingChoices.length === 0 ||
|
7686
|
+
this.parentElement.unRankingChoices.length === 0) {
|
7686
7687
|
var toContainer = dragOverNode.closest("[data-ranking='to-container']");
|
7687
7688
|
var fromContainer = dragOverNode.closest("[data-ranking='from-container']");
|
7688
7689
|
if (!!toContainer)
|
7689
7690
|
return toContainer;
|
7690
7691
|
if (!!fromContainer)
|
7691
7692
|
return fromContainer;
|
7692
|
-
return null;
|
7693
7693
|
}
|
7694
7694
|
return _super.prototype.findDropTargetNodeByDragOverNode.call(this, dragOverNode);
|
7695
7695
|
};
|
@@ -7739,8 +7739,10 @@ var DragDropRankingSelectToRank = /** @class */ (function (_super) {
|
|
7739
7739
|
DragDropRankingSelectToRank.prototype.getIndixies = function (model, fromChoicesArray, toChoicesArray) {
|
7740
7740
|
var fromIndex = fromChoicesArray.indexOf(this.draggedElement);
|
7741
7741
|
var toIndex = toChoicesArray.indexOf(this.dropTarget);
|
7742
|
-
if (toIndex === -1)
|
7743
|
-
|
7742
|
+
if (toIndex === -1) {
|
7743
|
+
var length_1 = model.value.length;
|
7744
|
+
toIndex = fromChoicesArray === toChoicesArray ? length_1 - 1 : length_1;
|
7745
|
+
}
|
7744
7746
|
return { fromIndex: fromIndex, toIndex: toIndex };
|
7745
7747
|
};
|
7746
7748
|
DragDropRankingSelectToRank.prototype.doUIEffects = function (dropTargetNode, fromIndex, toIndex) {
|
@@ -9547,8 +9549,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
9547
9549
|
//import "../../modern.scss";
|
9548
9550
|
var Version;
|
9549
9551
|
var ReleaseDate;
|
9550
|
-
Version = "" + "1.9.
|
9551
|
-
ReleaseDate = "" + "2024-02-
|
9552
|
+
Version = "" + "1.9.132";
|
9553
|
+
ReleaseDate = "" + "2024-02-27";
|
9552
9554
|
function checkLibraryVersion(ver, libraryName) {
|
9553
9555
|
if (Version != ver) {
|
9554
9556
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
@@ -37236,6 +37238,13 @@ var Question = /** @class */ (function (_super) {
|
|
37236
37238
|
enumerable: false,
|
37237
37239
|
configurable: true
|
37238
37240
|
});
|
37241
|
+
Object.defineProperty(Question.prototype, "ariaDescriptionId", {
|
37242
|
+
get: function () {
|
37243
|
+
return this.id + "_ariaDescription";
|
37244
|
+
},
|
37245
|
+
enumerable: false,
|
37246
|
+
configurable: true
|
37247
|
+
});
|
37239
37248
|
Object.defineProperty(Question.prototype, "commentId", {
|
37240
37249
|
get: function () {
|
37241
37250
|
return this.id + "_comment";
|
@@ -38761,6 +38770,20 @@ var Question = /** @class */ (function (_super) {
|
|
38761
38770
|
enumerable: false,
|
38762
38771
|
configurable: true
|
38763
38772
|
});
|
38773
|
+
Object.defineProperty(Question.prototype, "ariaDescribedBy", {
|
38774
|
+
get: function () {
|
38775
|
+
if (this.isNewA11yStructure)
|
38776
|
+
return null;
|
38777
|
+
if (this.hasTitle) {
|
38778
|
+
return this.ariaDescriptionId;
|
38779
|
+
}
|
38780
|
+
else {
|
38781
|
+
return null;
|
38782
|
+
}
|
38783
|
+
},
|
38784
|
+
enumerable: false,
|
38785
|
+
configurable: true
|
38786
|
+
});
|
38764
38787
|
Object.defineProperty(Question.prototype, "ariaExpanded", {
|
38765
38788
|
get: function () {
|
38766
38789
|
return null;
|
@@ -38768,7 +38791,7 @@ var Question = /** @class */ (function (_super) {
|
|
38768
38791
|
enumerable: false,
|
38769
38792
|
configurable: true
|
38770
38793
|
});
|
38771
|
-
Object.defineProperty(Question.prototype, "
|
38794
|
+
Object.defineProperty(Question.prototype, "ariaErrormessage", {
|
38772
38795
|
get: function () {
|
38773
38796
|
if (this.isNewA11yStructure)
|
38774
38797
|
return null;
|
@@ -38825,6 +38848,18 @@ var Question = /** @class */ (function (_super) {
|
|
38825
38848
|
configurable: true
|
38826
38849
|
});
|
38827
38850
|
Object.defineProperty(Question.prototype, "a11y_input_ariaDescribedBy", {
|
38851
|
+
get: function () {
|
38852
|
+
if (this.hasTitle && !this.parentQuestion) {
|
38853
|
+
return this.ariaDescriptionId;
|
38854
|
+
}
|
38855
|
+
else {
|
38856
|
+
return null;
|
38857
|
+
}
|
38858
|
+
},
|
38859
|
+
enumerable: false,
|
38860
|
+
configurable: true
|
38861
|
+
});
|
38862
|
+
Object.defineProperty(Question.prototype, "a11y_input_ariaErrormessage", {
|
38828
38863
|
get: function () {
|
38829
38864
|
return this.hasCssError() ? this.id + "_errors" : null;
|
38830
38865
|
},
|
@@ -44198,6 +44233,15 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
|
|
44198
44233
|
}
|
44199
44234
|
}
|
44200
44235
|
};
|
44236
|
+
QuestionCompositeModel.prototype.onSurveyValueChanged = function (newValue) {
|
44237
|
+
_super.prototype.onSurveyValueChanged.call(this, newValue);
|
44238
|
+
var val = !!newValue ? newValue : {};
|
44239
|
+
if (!!this.contentPanel) {
|
44240
|
+
this.contentPanel.questions.forEach(function (q) {
|
44241
|
+
q.onSurveyValueChanged(val[q.getValueName()]);
|
44242
|
+
});
|
44243
|
+
}
|
44244
|
+
};
|
44201
44245
|
QuestionCompositeModel.prototype.getValue = function (name) {
|
44202
44246
|
var val = this.value;
|
44203
44247
|
return !!val ? val[name] : null;
|
@@ -44222,6 +44266,14 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
|
|
44222
44266
|
this.setNewValueIntoQuestion(name, newValue);
|
44223
44267
|
_super.prototype.setValue.call(this, name, newValue, locNotification, allowNotifyValueChanged);
|
44224
44268
|
this.settingNewValue = false;
|
44269
|
+
this.runPanelTriggers(QuestionCompositeModel.ItemVariableName + "." + name, newValue);
|
44270
|
+
};
|
44271
|
+
QuestionCompositeModel.prototype.runPanelTriggers = function (name, value) {
|
44272
|
+
if (!!this.contentPanel) {
|
44273
|
+
this.contentPanel.questions.forEach(function (q) {
|
44274
|
+
q.runTriggers(name, value);
|
44275
|
+
});
|
44276
|
+
}
|
44225
44277
|
};
|
44226
44278
|
QuestionCompositeModel.prototype.getFilteredValues = function () {
|
44227
44279
|
var values = !!this.data ? this.data.getFilteredValues() : {};
|
@@ -48359,7 +48411,7 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
|
|
48359
48411
|
return loc ? loc : this.emptyLocalizableString;
|
48360
48412
|
};
|
48361
48413
|
QuestionMatrixModel.prototype.supportGoNextPageAutomatic = function () {
|
48362
|
-
return this.isMouseDown === true && this.hasValuesInAllRows();
|
48414
|
+
return this.isMouseDown === true && this.hasValuesInAllRows(false);
|
48363
48415
|
};
|
48364
48416
|
QuestionMatrixModel.prototype.onCheckForErrors = function (errors, isOnValueChanged) {
|
48365
48417
|
_super.prototype.onCheckForErrors.call(this, errors, isOnValueChanged);
|
@@ -48374,12 +48426,12 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
|
|
48374
48426
|
}
|
48375
48427
|
};
|
48376
48428
|
QuestionMatrixModel.prototype.hasErrorAllRowsRequired = function () {
|
48377
|
-
return this.isAllRowRequired && !this.hasValuesInAllRows();
|
48429
|
+
return this.isAllRowRequired && !this.hasValuesInAllRows(true);
|
48378
48430
|
};
|
48379
48431
|
QuestionMatrixModel.prototype.hasErrorEachRowUnique = function () {
|
48380
48432
|
return this.eachRowUnique && this.hasNonUniqueValueInRow();
|
48381
48433
|
};
|
48382
|
-
QuestionMatrixModel.prototype.hasValuesInAllRows = function () {
|
48434
|
+
QuestionMatrixModel.prototype.hasValuesInAllRows = function (addError) {
|
48383
48435
|
var rows = this.generatedVisibleRows;
|
48384
48436
|
if (!rows)
|
48385
48437
|
rows = this.visibleRows;
|
@@ -48389,7 +48441,7 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
|
|
48389
48441
|
for (var i = 0; i < rows.length; i++) {
|
48390
48442
|
var row = rows[i];
|
48391
48443
|
var hasValue = !this.isValueEmpty(row.value);
|
48392
|
-
if (!hasValue) {
|
48444
|
+
if (addError && !hasValue) {
|
48393
48445
|
this.addErrorIntoRow(row);
|
48394
48446
|
}
|
48395
48447
|
res = res && hasValue;
|
@@ -48424,7 +48476,7 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
|
|
48424
48476
|
this.errorsInRow[row.name] = true;
|
48425
48477
|
};
|
48426
48478
|
QuestionMatrixModel.prototype.getIsAnswered = function () {
|
48427
|
-
return _super.prototype.getIsAnswered.call(this) && this.hasValuesInAllRows();
|
48479
|
+
return _super.prototype.getIsAnswered.call(this) && this.hasValuesInAllRows(false);
|
48428
48480
|
};
|
48429
48481
|
QuestionMatrixModel.prototype.createMatrixRow = function (item, fullName, value) {
|
48430
48482
|
var row = new MatrixRowModel(item, fullName, this, value);
|
@@ -53751,6 +53803,7 @@ var QuestionMatrixDropdownRenderedTable = /** @class */ (function (_super) {
|
|
53751
53803
|
};
|
53752
53804
|
QuestionMatrixDropdownRenderedTable.prototype.setItemCellCssClasses = function (cell) {
|
53753
53805
|
cell.className = new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_5__["CssClassBuilder"]()
|
53806
|
+
.append(this.cssClasses.cell)
|
53754
53807
|
.append(this.cssClasses.itemCell)
|
53755
53808
|
.append(this.cssClasses.radioCell, cell.isRadio)
|
53756
53809
|
.append(this.cssClasses.checkboxCell, cell.isCheckbox)
|
@@ -55073,6 +55126,13 @@ var MultipleTextEditorModel = /** @class */ (function (_super) {
|
|
55073
55126
|
enumerable: false,
|
55074
55127
|
configurable: true
|
55075
55128
|
});
|
55129
|
+
Object.defineProperty(MultipleTextEditorModel.prototype, "a11y_input_ariaDescribedBy", {
|
55130
|
+
get: function () {
|
55131
|
+
return null;
|
55132
|
+
},
|
55133
|
+
enumerable: false,
|
55134
|
+
configurable: true
|
55135
|
+
});
|
55076
55136
|
return MultipleTextEditorModel;
|
55077
55137
|
}(_question_text__WEBPACK_IMPORTED_MODULE_3__["QuestionTextModel"]));
|
55078
55138
|
|
@@ -63047,7 +63107,7 @@ var SurveyQuestionBooleanCheckbox = /** @class */ (function (_super) {
|
|
63047
63107
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { className: cssClasses.checkboxLabel },
|
63048
63108
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
|
63049
63109
|
? ""
|
63050
|
-
: this.question.booleanValue, id: this.question.inputId, className: cssClasses.controlCheckbox, 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-
|
63110
|
+
: this.question.booleanValue, id: this.question.inputId, className: cssClasses.controlCheckbox, 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-errormessage": this.question.ariaErrormessage }),
|
63051
63111
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.checkboxMaterialDecorator },
|
63052
63112
|
this.question.svgIcon ?
|
63053
63113
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", { className: cssClasses.checkboxItemDecorator },
|
@@ -63115,7 +63175,7 @@ var SurveyQuestionBooleanRadio = /** @class */ (function (_super) {
|
|
63115
63175
|
var cssClasses = this.question.cssClasses;
|
63116
63176
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { role: "presentation", className: this.question.getRadioItemClass(cssClasses, value) },
|
63117
63177
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { className: cssClasses.radioLabel },
|
63118
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "radio", name: this.question.name, value: value, "aria-
|
63178
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "radio", name: this.question.name, value: value, "aria-errormessage": this.question.ariaErrormessage, checked: value === this.question.booleanValueRendered, disabled: this.question.isInputReadOnly, className: cssClasses.itemRadioControl, onChange: this.handleOnChange }),
|
63119
63179
|
this.question.cssClasses.materialRadioDecorator ?
|
63120
63180
|
(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.materialRadioDecorator }, this.question.itemSvgIcon ?
|
63121
63181
|
(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", { className: cssClasses.itemRadioDecorator },
|
@@ -63235,7 +63295,7 @@ var SurveyQuestionBoolean = /** @class */ (function (_super) {
|
|
63235
63295
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { className: itemClass, onClick: this.handleOnClick },
|
63236
63296
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
|
63237
63297
|
? ""
|
63238
|
-
: this.question.booleanValue, id: this.question.inputId, className: cssClasses.control, disabled: this.isDisplayMode, checked: this.question.booleanValue || false, onChange: this.handleOnChange, 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-invalid": this.question.a11y_input_ariaInvalid, "aria-
|
63298
|
+
: this.question.booleanValue, id: this.question.inputId, className: cssClasses.control, disabled: this.isDisplayMode, checked: this.question.booleanValue || false, onChange: this.handleOnChange, 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 }),
|
63239
63299
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.sliderGhost, onClick: function (event) { return _this.handleOnLabelClick(event, _this.question.swapOrder); } },
|
63240
63300
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.question.getLabelCss(this.question.swapOrder) }, this.renderLocString(this.question.locLabelLeft))),
|
63241
63301
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.switch, onClick: this.handleOnSwitchClick },
|
@@ -65350,7 +65410,7 @@ var RatingItemSmiley = /** @class */ (function (_super) {
|
|
65350
65410
|
RatingItemSmiley.prototype.render = function () {
|
65351
65411
|
var _this = this;
|
65352
65412
|
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.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); } },
|
65353
|
-
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-
|
65413
|
+
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-errormessage": this.question.ariaErrormessage }),
|
65354
65414
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { size: "auto", iconName: this.question.getItemSmileyIconName(this.item.itemValue), title: this.item.text })));
|
65355
65415
|
};
|
65356
65416
|
return RatingItemSmiley;
|
@@ -65405,7 +65465,7 @@ var RatingItemStar = /** @class */ (function (_super) {
|
|
65405
65465
|
RatingItemStar.prototype.render = function () {
|
65406
65466
|
var _this = this;
|
65407
65467
|
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.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); } },
|
65408
|
-
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-
|
65468
|
+
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-errormessage": this.question.ariaErrormessage }),
|
65409
65469
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { className: "sv-star", size: "auto", iconName: this.question.itemStarIcon, title: this.item.text }),
|
65410
65470
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { className: "sv-star-2", size: "auto", iconName: this.question.itemStarIconAlt, title: this.item.text })));
|
65411
65471
|
};
|
@@ -65497,7 +65557,7 @@ var RatingItem = /** @class */ (function (_super) {
|
|
65497
65557
|
RatingItem.prototype.render = function () {
|
65498
65558
|
var itemText = this.renderLocString(this.item.locText);
|
65499
65559
|
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", { onMouseDown: this.handleOnMouseDown, className: this.question.getItemClassByText(this.item.itemValue, this.item.text) },
|
65500
|
-
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-
|
65560
|
+
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-errormessage": this.question.ariaErrormessage }),
|
65501
65561
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { className: this.question.cssClasses.itemText }, itemText)));
|
65502
65562
|
};
|
65503
65563
|
RatingItem.prototype.componentDidMount = function () {
|
@@ -66306,7 +66366,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
66306
66366
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
|
66307
66367
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
66308
66368
|
// @ts-ignore
|
66309
|
-
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-
|
66369
|
+
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant },
|
66310
66370
|
dropdownListModel.showHintPrefix ?
|
66311
66371
|
(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.hintPrefix },
|
66312
66372
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, dropdownListModel.hintStringPrefix))) : null,
|
@@ -66316,7 +66376,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
66316
66376
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, dropdownListModel.inputStringRendered),
|
66317
66377
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, dropdownListModel.hintStringSuffix))) : null,
|
66318
66378
|
valueElement,
|
66319
|
-
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.filterStringEnabled ? this.question.ariaRole : undefined, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant, placeholder: dropdownListModel.placeholderRendered, readOnly: dropdownListModel.filterReadOnly ? true : undefined, tabIndex: dropdownListModel.noTabIndex ? undefined : -1, disabled: this.question.isInputReadOnly, inputMode: dropdownListModel.inputMode, onChange: function (e) { onInputChange(e); }, onBlur: this.blur, onFocus: this.focus })),
|
66379
|
+
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.filterStringEnabled ? this.question.ariaRole : undefined, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant, placeholder: dropdownListModel.placeholderRendered, readOnly: dropdownListModel.filterReadOnly ? true : undefined, tabIndex: dropdownListModel.noTabIndex ? undefined : -1, disabled: this.question.isInputReadOnly, inputMode: dropdownListModel.inputMode, onChange: function (e) { onInputChange(e); }, onBlur: this.blur, onFocus: this.focus })),
|
66320
66380
|
this.createClearButton()));
|
66321
66381
|
};
|
66322
66382
|
SurveyQuestionDropdownBase.prototype.createClearButton = function () {
|
@@ -66492,7 +66552,7 @@ var SurveyQuestionDropdownSelect = /** @class */ (function (_super) {
|
|
66492
66552
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
66493
66553
|
// @ts-ignore
|
66494
66554
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.question.inputId, className: this.question.getControlClass(), disabled: true }, this.question.readOnlyText)) :
|
66495
|
-
(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("select", { id: this.question.inputId, className: this.question.getControlClass(), ref: function (select) { return (_this.setControl(select)); }, autoComplete: this.question.autocomplete, onChange: this.updateValueOnEvent, onInput: this.updateValueOnEvent, onClick: click, onKeyUp: keyup, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-
|
66555
|
+
(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("select", { id: this.question.inputId, className: this.question.getControlClass(), ref: function (select) { return (_this.setControl(select)); }, autoComplete: this.question.autocomplete, onChange: this.updateValueOnEvent, onInput: this.updateValueOnEvent, onClick: click, onKeyUp: keyup, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, required: this.question.isRequired },
|
66496
66556
|
this.question.allowClear ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("option", { value: "" }, this.question.placeholder)) : null,
|
66497
66557
|
this.question.visibleChoices.map(function (item, i) { return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_dropdown_item__WEBPACK_IMPORTED_MODULE_4__["SurveyQuestionOptionItem"], { key: "item" + i, item: item }); })));
|
66498
66558
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.selectWrapper },
|
@@ -67189,7 +67249,7 @@ var SurveyQuestionImagePickerItem = /** @class */ (function (_super) {
|
|
67189
67249
|
}
|
67190
67250
|
var renderedItem = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: itemClass },
|
67191
67251
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { className: cssClasses.label },
|
67192
|
-
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), onChange: this.handleOnChange, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-
|
67252
|
+
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), onChange: this.handleOnChange, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
|
67193
67253
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.itemDecorator },
|
67194
67254
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.imageContainer },
|
67195
67255
|
!!this.question.cssClasses.checkedItemDecorator ?
|
@@ -68624,7 +68684,7 @@ var SurveyQuestion = /** @class */ (function (_super) {
|
|
68624
68684
|
var rootStyle = question.getRootStyle();
|
68625
68685
|
var questionContent = this.wrapQuestionContent(this.renderQuestionContent());
|
68626
68686
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
|
68627
|
-
react__WEBPACK_IMPORTED_MODULE_0__["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-expanded": question.ariaExpanded === null ? undefined : question.ariaExpanded === "true" },
|
68687
|
+
react__WEBPACK_IMPORTED_MODULE_0__["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 === null ? undefined : question.ariaExpanded === "true" },
|
68628
68688
|
errorsAboveQuestion,
|
68629
68689
|
headerTop,
|
68630
68690
|
questionContent,
|
@@ -68993,7 +69053,7 @@ var SurveyButtonGroupItem = /** @class */ (function (_super) {
|
|
68993
69053
|
var _this = this;
|
68994
69054
|
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("input", { className: this.model.css.control, id: this.model.id, type: "radio", name: this.model.name, checked: this.model.selected, value: this.model.value, disabled: this.model.readOnly, onChange: function () {
|
68995
69055
|
_this.model.onChange();
|
68996
|
-
}, "aria-required": this.model.isRequired, "aria-label": this.model.caption.renderedHtml, "aria-invalid": this.model.hasErrors, "aria-
|
69056
|
+
}, "aria-required": this.model.isRequired, "aria-label": this.model.caption.renderedHtml, "aria-invalid": this.model.hasErrors, "aria-errormessage": this.model.describedBy, role: "radio" }));
|
68997
69057
|
};
|
68998
69058
|
SurveyButtonGroupItem.prototype.renderCaption = function () {
|
68999
69059
|
if (!this.model.showCaption)
|
@@ -69065,7 +69125,7 @@ var SurveyQuestionCheckbox = /** @class */ (function (_super) {
|
|
69065
69125
|
SurveyQuestionCheckbox.prototype.renderElement = function () {
|
69066
69126
|
var _this = this;
|
69067
69127
|
var cssClasses = this.question.cssClasses;
|
69068
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("fieldset", { className: this.question.getSelectBaseRootCss(), ref: function (fieldset) { return (_this.setControl(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-invalid": this.question.a11y_input_ariaInvalid, "aria-
|
69128
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("fieldset", { className: this.question.getSelectBaseRootCss(), ref: function (fieldset) { return (_this.setControl(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 },
|
69069
69129
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
|
69070
69130
|
this.getHeader(),
|
69071
69131
|
this.question.hasColumns
|
@@ -69324,7 +69384,7 @@ var SurveyQuestionComment = /** @class */ (function (_super) {
|
|
69324
69384
|
}
|
69325
69385
|
var counter = !!this.question.getMaxLength() ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_character_counter__WEBPACK_IMPORTED_MODULE_4__["CharacterCounterComponent"], { counter: this.question.characterCounter, remainingCharacterCounter: this.question.cssClasses.remainingCharacterCounter })) : null;
|
69326
69386
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
|
69327
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("textarea", { id: this.question.inputId, className: this.question.className, disabled: this.question.isInputReadOnly, readOnly: this.question.isInputReadOnly, ref: function (textarea) { return (_this.setControl(textarea)); }, maxLength: this.question.getMaxLength(), placeholder: placeholder, onBlur: onBlur, onInput: onInput, onKeyDown: function (event) { _this.question.onKeyDown(event); }, cols: this.question.cols, rows: this.question.rows, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-
|
69387
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("textarea", { id: this.question.inputId, className: this.question.className, disabled: this.question.isInputReadOnly, readOnly: this.question.isInputReadOnly, ref: function (textarea) { return (_this.setControl(textarea)); }, maxLength: this.question.getMaxLength(), placeholder: placeholder, onBlur: onBlur, onInput: onInput, onKeyDown: function (event) { _this.question.onKeyDown(event); }, cols: this.question.cols, rows: this.question.rows, "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, style: { resize: this.question.resizeStyle } }),
|
69328
69388
|
counter));
|
69329
69389
|
};
|
69330
69390
|
return SurveyQuestionComment;
|
@@ -69614,7 +69674,7 @@ var SurveyElementBase = /** @class */ (function (_super) {
|
|
69614
69674
|
};
|
69615
69675
|
SurveyElementBase.renderQuestionDescription = function (question) {
|
69616
69676
|
var descriptionText = SurveyElementBase.renderLocString(question.locDescription);
|
69617
|
-
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { style: question.hasDescription ? undefined : { display: "none" }, className: question.cssDescription }, descriptionText);
|
69677
|
+
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { style: question.hasDescription ? undefined : { display: "none" }, id: question.ariaDescriptionId, className: question.cssDescription }, descriptionText);
|
69618
69678
|
};
|
69619
69679
|
SurveyElementBase.prototype.componentDidMount = function () {
|
69620
69680
|
this.makeBaseElementsReact();
|
@@ -70154,7 +70214,7 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
70154
70214
|
var fileNavigator = this.question.fileNavigatorVisible ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__["SurveyActionBar"], { model: this.question.fileNavigator })) : null;
|
70155
70215
|
var fileInput = (this.isDisplayMode ?
|
70156
70216
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "file", disabled: this.isDisplayMode, className: !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss(), id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: !this.isDisplayMode ? {} : { color: "transparent" }, multiple: this.question.allowMultiple, placeholder: this.question.title, accept: this.question.acceptedTypes }) : this.question.hasFileUI ?
|
70157
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "file", disabled: this.isDisplayMode, tabIndex: -1, className: !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss(), id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: !this.isDisplayMode ? {} : { color: "transparent" }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-
|
70217
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "file", disabled: this.isDisplayMode, tabIndex: -1, className: !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss(), id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: !this.isDisplayMode ? {} : { color: "transparent" }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, multiple: this.question.allowMultiple, title: this.question.inputTitle, accept: this.question.acceptedTypes, capture: this.question.renderCapture }) : null);
|
70158
70218
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.fileRootCss },
|
70159
70219
|
fileInput,
|
70160
70220
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.dragArea, onDrop: this.question.onDrop, onDragOver: this.question.onDragOver, onDragLeave: this.question.onDragLeave, onDragEnter: this.question.onDragEnter },
|
@@ -70546,7 +70606,7 @@ var SurveyQuestionMatrixCell = /** @class */ (function (_super) {
|
|
70546
70606
|
mobileSpan));
|
70547
70607
|
};
|
70548
70608
|
SurveyQuestionMatrixCell.prototype.renderInput = function (inputId, isChecked) {
|
70549
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { id: inputId, type: "radio", className: this.cssClasses.itemValue, name: this.row.fullName, value: this.column.value, disabled: this.row.isReadOnly, checked: isChecked, onChange: this.handleOnChange, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.getCellAriaLabel(this.row.locText.renderedHtml, this.column.locText.renderedHtml), "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-
|
70609
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { id: inputId, type: "radio", className: this.cssClasses.itemValue, name: this.row.fullName, value: this.column.value, disabled: this.row.isReadOnly, checked: isChecked, onChange: this.handleOnChange, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.getCellAriaLabel(this.row.locText.renderedHtml, this.column.locText.renderedHtml), "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage }));
|
70550
70610
|
};
|
70551
70611
|
return SurveyQuestionMatrixCell;
|
70552
70612
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["ReactSurveyElement"]));
|
@@ -71557,7 +71617,7 @@ var SurveyQuestionRadiogroup = /** @class */ (function (_super) {
|
|
71557
71617
|
clearButton = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", null,
|
71558
71618
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "button", className: this.question.cssClasses.clearButton, onClick: function () { return _this.question.clearValue(); }, value: this.question.clearButtonCaption })));
|
71559
71619
|
}
|
71560
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("fieldset", { className: this.question.getSelectBaseRootCss(), ref: function (fieldset) { return (_this.setControl(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-invalid": this.question.a11y_input_ariaInvalid, "aria-
|
71620
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("fieldset", { className: this.question.getSelectBaseRootCss(), ref: function (fieldset) { return (_this.setControl(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 },
|
71561
71621
|
this.question.hasColumns
|
71562
71622
|
? this.getColumnedBody(cssClasses)
|
71563
71623
|
: this.getBody(cssClasses),
|
@@ -71717,7 +71777,7 @@ var SurveyQuestionRadioItem = /** @class */ (function (_super) {
|
|
71717
71777
|
var itemLabel = !this.hideCaption ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: controlLabelClass }, this.renderLocString(this.item.locText, this.textStyle)) : null;
|
71718
71778
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: itemClass, role: "presentation" },
|
71719
71779
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { onMouseDown: this.handleOnMouseDown, className: labelClass },
|
71720
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { "aria-
|
71780
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { "aria-errormessage": this.question.ariaErrormessage, className: this.cssClasses.itemControl, id: this.question.getItemId(this.item), type: "radio", name: this.question.questionName, checked: this.isChecked, value: this.item.value, disabled: !this.question.getItemEnabled(this.item), onChange: this.handleOnChange }),
|
71721
71781
|
this.cssClasses.materialDecorator ?
|
71722
71782
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
|
71723
71783
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", { className: this.cssClasses.itemDecorator },
|
@@ -72096,7 +72156,7 @@ var SurveyQuestionTagbox = /** @class */ (function (_super) {
|
|
72096
72156
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
|
72097
72157
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
72098
72158
|
// @ts-ignore
|
72099
|
-
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-
|
72159
|
+
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant },
|
72100
72160
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.controlValue },
|
72101
72161
|
items,
|
72102
72162
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_tagbox_filter__WEBPACK_IMPORTED_MODULE_4__["TagboxFilterString"], { model: dropdownMultiSelectListModel, question: this.question })),
|
@@ -72180,7 +72240,7 @@ var SurveyQuestionText = /** @class */ (function (_super) {
|
|
72180
72240
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
|
72181
72241
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { id: this.question.inputId, disabled: this.isDisplayMode, className: inputClass, type: this.question.inputType,
|
72182
72242
|
//ref={this.controlRef}
|
72183
|
-
ref: function (input) { return (_this.setControl(input)); }, style: this.question.inputStyle, maxLength: this.question.getMaxLength(), min: this.question.renderedMin, max: this.question.renderedMax, step: this.question.renderedStep, size: this.question.inputSize, placeholder: placeholder, list: this.question.dataListId, autoComplete: this.question.autocomplete, onBlur: this.question.onBlur, onFocus: this.question.onFocus, onChange: this.question.onChange, onKeyUp: this.question.onKeyUp, onKeyDown: this.question.onKeyDown, onCompositionUpdate: function (event) { return _this.question.onCompositionUpdate(event.nativeEvent); }, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-
|
72243
|
+
ref: function (input) { return (_this.setControl(input)); }, style: this.question.inputStyle, maxLength: this.question.getMaxLength(), min: this.question.renderedMin, max: this.question.renderedMax, step: this.question.renderedStep, size: this.question.inputSize, placeholder: placeholder, list: this.question.dataListId, autoComplete: this.question.autocomplete, onBlur: this.question.onBlur, onFocus: this.question.onFocus, onChange: this.question.onChange, onKeyUp: this.question.onKeyUp, onKeyDown: this.question.onKeyDown, onCompositionUpdate: function (event) { return _this.question.onCompositionUpdate(event.nativeEvent); }, "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 }),
|
72184
72244
|
counter));
|
72185
72245
|
};
|
72186
72246
|
SurveyQuestionText.prototype.renderElement = function () {
|
@@ -72956,7 +73016,7 @@ var TagboxFilterString = /** @class */ (function (_super) {
|
|
72956
73016
|
(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.hintSuffix },
|
72957
73017
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, this.model.inputStringRendered),
|
72958
73018
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, this.model.hintStringSuffix))) : null,
|
72959
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), inputMode: this.model.inputMode, ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, disabled: this.question.isInputReadOnly, readOnly: this.model.filterReadOnly ? true : undefined, size: !this.model.inputStringRendered ? 1 : undefined, role: this.model.filterStringEnabled ? this.question.ariaRole : undefined, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-controls": this.model.listElementId, "aria-activedescendant": this.model.ariaActivedescendant, placeholder: this.model.filterStringPlaceholder, onKeyDown: function (e) { _this.keyhandler(e); }, onChange: function (e) { _this.onChange(e); }, onBlur: function (e) { _this.onBlur(e); }, onFocus: function (e) { _this.onFocus(e); } }))));
|
73019
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), inputMode: this.model.inputMode, ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, disabled: this.question.isInputReadOnly, readOnly: this.model.filterReadOnly ? true : undefined, size: !this.model.inputStringRendered ? 1 : undefined, role: this.model.filterStringEnabled ? this.question.ariaRole : undefined, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-controls": this.model.listElementId, "aria-activedescendant": this.model.ariaActivedescendant, placeholder: this.model.filterStringPlaceholder, onKeyDown: function (e) { _this.keyhandler(e); }, onChange: function (e) { _this.onChange(e); }, onBlur: function (e) { _this.onBlur(e); }, onFocus: function (e) { _this.onFocus(e); } }))));
|
72960
73020
|
};
|
72961
73021
|
return TagboxFilterString;
|
72962
73022
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_3__["SurveyElementBase"]));
|
@@ -73687,7 +73747,7 @@ var settings = {
|
|
73687
73747
|
*/
|
73688
73748
|
showMaxLengthIndicator: true,
|
73689
73749
|
/**
|
73690
|
-
*
|
73750
|
+
* Specifies whether to animate survey elements.
|
73691
73751
|
*
|
73692
73752
|
* Default value: `true`
|
73693
73753
|
*/
|
@@ -74334,6 +74394,11 @@ var SurveyElementCore = /** @class */ (function (_super) {
|
|
74334
74394
|
enumerable: false,
|
74335
74395
|
configurable: true
|
74336
74396
|
});
|
74397
|
+
Object.defineProperty(SurveyElementCore.prototype, "ariaDescriptionId", {
|
74398
|
+
get: function () { return undefined; },
|
74399
|
+
enumerable: false,
|
74400
|
+
configurable: true
|
74401
|
+
});
|
74337
74402
|
Object.defineProperty(SurveyElementCore.prototype, "titleTabIndex", {
|
74338
74403
|
get: function () { return undefined; },
|
74339
74404
|
enumerable: false,
|
@@ -86558,7 +86623,7 @@ var VerticalResponsivityManager = /** @class */ (function (_super) {
|
|
86558
86623
|
/*!****************************!*\
|
86559
86624
|
!*** ./src/utils/utils.ts ***!
|
86560
86625
|
\****************************/
|
86561
|
-
/*! exports provided: unwrap, getRenderedSize, getRenderedStyleSize, doKey2ClickBlur, doKey2ClickUp, doKey2ClickDown, sanitizeEditableContent, Logger, showConfirmDialog, mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles */
|
86626
|
+
/*! exports provided: unwrap, getRenderedSize, getRenderedStyleSize, doKey2ClickBlur, doKey2ClickUp, doKey2ClickDown, sanitizeEditableContent, Logger, showConfirmDialog, configConfirmDialog, mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles */
|
86562
86627
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
86563
86628
|
|
86564
86629
|
"use strict";
|
@@ -86572,6 +86637,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
86572
86637
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sanitizeEditableContent", function() { return sanitizeEditableContent; });
|
86573
86638
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Logger", function() { return Logger; });
|
86574
86639
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "showConfirmDialog", function() { return showConfirmDialog; });
|
86640
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "configConfirmDialog", function() { return configConfirmDialog; });
|
86575
86641
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeValues", function() { return mergeValues; });
|
86576
86642
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getElementWidth", function() { return getElementWidth; });
|
86577
86643
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isContainerVisible", function() { return isContainerVisible; });
|
@@ -87015,9 +87081,12 @@ function showConfirmDialog(message, callback, applyTitle, locale, rootElement) {
|
|
87015
87081
|
cancelBtn.innerCss = "sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small";
|
87016
87082
|
applyBtn.title = applyTitle || _surveyStrings__WEBPACK_IMPORTED_MODULE_2__["surveyLocalization"].getString("ok", locale);
|
87017
87083
|
applyBtn.innerCss = "sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger";
|
87018
|
-
|
87084
|
+
configConfirmDialog(popupViewModel);
|
87019
87085
|
return true;
|
87020
87086
|
}
|
87087
|
+
function configConfirmDialog(popupViewModel) {
|
87088
|
+
popupViewModel.width = "min-content";
|
87089
|
+
}
|
87021
87090
|
function chooseFiles(input, callback) {
|
87022
87091
|
if (!window || !window["FileReader"])
|
87023
87092
|
return;
|