survey-js-ui 3.1.0 → 3.1.1
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-js-ui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://surveyjs.io/",
|
|
6
6
|
"author": "DevSoft Baltic OU <info@devsoftbaltic.com>",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"survey-core": "3.1.
|
|
63
|
+
"survey-core": "3.1.1",
|
|
64
64
|
"@types/react-dom": "*",
|
|
65
65
|
"@types/react": "*"
|
|
66
66
|
}
|
package/survey-js-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v3.1.
|
|
2
|
+
* surveyjs - Survey JavaScript library v3.1.1
|
|
3
3
|
* Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -4116,6 +4116,10 @@
|
|
|
4116
4116
|
class SurveyQuestionRadioItem extends SurveyQuestionSelectBaseItem {
|
|
4117
4117
|
constructor(props) {
|
|
4118
4118
|
super(props);
|
|
4119
|
+
this.handleOnKeyDown = (event) => {
|
|
4120
|
+
var _a, _b;
|
|
4121
|
+
(_b = (_a = this.question).onKeyDown) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
4122
|
+
};
|
|
4119
4123
|
this.handleOnMouseDown = this.handleOnMouseDown.bind(this);
|
|
4120
4124
|
}
|
|
4121
4125
|
getStateElement() {
|
|
@@ -4143,7 +4147,7 @@
|
|
|
4143
4147
|
const itemLabel = !this.hideCaption ? _$1("span", { className: controlLabelClass }, this.renderLocString(this.item.locText, this.textStyle)) : null;
|
|
4144
4148
|
return (_$1("div", { className: itemClass, role: "presentation", ref: this.rootRef },
|
|
4145
4149
|
_$1("label", { onMouseDown: this.handleOnMouseDown, className: labelClass },
|
|
4146
|
-
_$1("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), readOnly: this.question.isReadOnlyAttr, onChange: this.handleOnChange, "aria-label": this.ariaLabel }),
|
|
4150
|
+
_$1("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), readOnly: this.question.isReadOnlyAttr, onChange: this.handleOnChange, onKeyDown: this.handleOnKeyDown, "aria-label": this.ariaLabel }),
|
|
4147
4151
|
this.cssClasses.materialDecorator ?
|
|
4148
4152
|
_$1("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
|
|
4149
4153
|
_$1("svg", { className: this.cssClasses.itemDecorator },
|
|
@@ -5266,7 +5270,7 @@
|
|
|
5266
5270
|
? this.renderLocString(this.question.locMaxRateDescription)
|
|
5267
5271
|
: null;
|
|
5268
5272
|
return (_$1("div", { className: this.question.ratingRootCss, ref: (div) => (this.setControl(div)) },
|
|
5269
|
-
_$1("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 },
|
|
5273
|
+
_$1("fieldset", { onKeyDown: (event) => this.question.onKeyDown(event), 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 },
|
|
5270
5274
|
_$1("legend", { role: "presentation", className: "sv-hidden" }),
|
|
5271
5275
|
!!this.question.hasMinLabel ? _$1("span", { className: cssClasses.minText }, minText) : null,
|
|
5272
5276
|
this.question.renderedRateItems.map((item, index) => this.renderItem(item, index)),
|
|
@@ -6259,7 +6263,7 @@
|
|
|
6259
6263
|
}
|
|
6260
6264
|
};
|
|
6261
6265
|
const preact = React;
|
|
6262
|
-
surveyCore.checkLibraryVersion(`${"3.1.
|
|
6266
|
+
surveyCore.checkLibraryVersion(`${"3.1.1"}`, "survey-js-ui");
|
|
6263
6267
|
|
|
6264
6268
|
Object.defineProperty(exports, 'Model', {
|
|
6265
6269
|
enumerable: true,
|