survey-js-ui 2.5.43 → 2.5.45
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-js-ui.mjs +12 -12
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-js-ui.js +12 -12
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-js-ui",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.45",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A free MIT-licensed UI component that renders dynamic, interactive JSON-based forms and surveys in apps built with HTML, CSS, and JavaScript. You can use it to collect responses from users and send them to your own database.",
|
|
6
6
|
"homepage": "https://surveyjs.io/",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"survey-core": "2.5.
|
|
56
|
+
"survey-core": "2.5.45",
|
|
57
57
|
"@types/react-dom": "*",
|
|
58
58
|
"@types/react": "*"
|
|
59
59
|
}
|
package/survey-js-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.5.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.5.45
|
|
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
|
*/
|
|
@@ -1949,7 +1949,7 @@
|
|
|
1949
1949
|
}
|
|
1950
1950
|
var rootCss = this.survey.getRootCss();
|
|
1951
1951
|
var cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
|
|
1952
|
-
return (_$1("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: this.survey.themeVariables, lang: this.survey.
|
|
1952
|
+
return (_$1("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: this.survey.themeVariables, lang: this.survey.rootLang, dir: this.survey.localeDir },
|
|
1953
1953
|
_$1(Scroll, { disabled: this.survey.rootScrollDisabled },
|
|
1954
1954
|
this.survey.needRenderIcons ? _$1(SvgBundleComponent, null) : null,
|
|
1955
1955
|
_$1(PopupModal, null),
|
|
@@ -3768,12 +3768,12 @@
|
|
|
3768
3768
|
var id = this.question.getItemId(this.item);
|
|
3769
3769
|
var itemClass = this.question.getItemClass(this.item);
|
|
3770
3770
|
var labelClass = this.question.getLabelClass(this.item);
|
|
3771
|
-
var itemLabel = !this.hideCaption ? _$1("span", { className: this.cssClasses.controlLabel }, this.renderLocString(this.item.locText, this.textStyle)) : null;
|
|
3771
|
+
var itemLabel = !this.hideCaption ? _$1("span", { className: this.cssClasses.controlLabel, id: this.question.getItemLabelId(this.item), "aria-hidden": this.question.isItemLabelAriaHidden ? "true" : undefined }, this.renderLocString(this.item.locText, this.textStyle)) : null;
|
|
3772
3772
|
return (_$1("div", { className: itemClass, role: "presentation", ref: this.rootRef },
|
|
3773
3773
|
_$1("label", { className: labelClass },
|
|
3774
|
-
_$1("input", { className: this.cssClasses.itemControl, type: "checkbox", name: this.question.name + this.item.id, value: this.item.value, id: id, style: this.inputStyle, disabled: !this.question.getItemEnabled(this.item), readOnly: this.question.isReadOnlyAttr, checked: isChecked, onChange: this.handleOnChange, required: this.question.hasRequiredError(), "aria-label": this.ariaLabel }),
|
|
3774
|
+
_$1("input", { className: this.cssClasses.itemControl, type: "checkbox", name: this.question.name + this.item.id, value: this.item.value, id: id, style: this.inputStyle, disabled: !this.question.getItemEnabled(this.item), readOnly: this.question.isReadOnlyAttr, checked: isChecked, onChange: this.handleOnChange, required: this.question.hasRequiredError(), "aria-label": this.ariaLabel, "aria-labelledby": !this.ariaLabel && !this.hideCaption ? this.question.getItemLabelId(this.item) : undefined }),
|
|
3775
3775
|
this.cssClasses.materialDecorator ?
|
|
3776
|
-
_$1("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
|
|
3776
|
+
_$1("span", { className: this.cssClasses.materialDecorator, "aria-hidden": "true" }, this.question.itemSvgIcon ?
|
|
3777
3777
|
_$1("svg", { className: this.cssClasses.itemDecorator },
|
|
3778
3778
|
_$1("use", { xlinkHref: this.question.itemSvgIcon })) :
|
|
3779
3779
|
null) :
|
|
@@ -4746,7 +4746,7 @@
|
|
|
4746
4746
|
: undefined;
|
|
4747
4747
|
return (_$1("label", { onMouseDown: this.handleOnMouseDown, className: itemClass },
|
|
4748
4748
|
this.renderInput(inputId, isChecked),
|
|
4749
|
-
_$1("span", { className: this.question.cssMaterialDecorator }, itemSvgIcon ?
|
|
4749
|
+
_$1("span", { className: this.question.cssMaterialDecorator, "aria-hidden": "true" }, itemSvgIcon ?
|
|
4750
4750
|
_$1("svg", { className: this.question.cssItemDecorator },
|
|
4751
4751
|
_$1("use", { xlinkHref: itemSvgIcon })) : null),
|
|
4752
4752
|
mobileSpan));
|
|
@@ -5192,12 +5192,12 @@
|
|
|
5192
5192
|
var itemClass = this.question.getItemClass(this.item);
|
|
5193
5193
|
var labelClass = this.question.getLabelClass(this.item);
|
|
5194
5194
|
var controlLabelClass = this.question.getControlLabelClass(this.item);
|
|
5195
|
-
var itemLabel = !this.hideCaption ? _$1("span", { className: controlLabelClass }, this.renderLocString(this.item.locText, this.textStyle)) : null;
|
|
5195
|
+
var itemLabel = !this.hideCaption ? _$1("span", { className: controlLabelClass, id: this.question.getItemLabelId(this.item), "aria-hidden": this.question.isItemLabelAriaHidden ? "true" : undefined }, this.renderLocString(this.item.locText, this.textStyle)) : null;
|
|
5196
5196
|
return (_$1("div", { className: itemClass, role: "presentation", ref: this.rootRef },
|
|
5197
5197
|
_$1("label", { onMouseDown: this.handleOnMouseDown, className: labelClass },
|
|
5198
|
-
_$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 }),
|
|
5198
|
+
_$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, "aria-labelledby": !this.ariaLabel && !this.hideCaption ? this.question.getItemLabelId(this.item) : undefined }),
|
|
5199
5199
|
this.cssClasses.materialDecorator ?
|
|
5200
|
-
_$1("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
|
|
5200
|
+
_$1("span", { className: this.cssClasses.materialDecorator, "aria-hidden": "true" }, this.question.itemSvgIcon ?
|
|
5201
5201
|
_$1("svg", { className: this.cssClasses.itemDecorator },
|
|
5202
5202
|
_$1("use", { xlinkHref: this.question.itemSvgIcon })) :
|
|
5203
5203
|
null) :
|
|
@@ -5362,7 +5362,7 @@
|
|
|
5362
5362
|
_$1("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
|
|
5363
5363
|
? ""
|
|
5364
5364
|
: this.question.booleanValue, id: this.question.inputId, className: cssClasses.controlCheckbox, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.booleanValue || false, onChange: this.handleOnChange, "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 }),
|
|
5365
|
-
_$1("span", { className: cssClasses.checkboxMaterialDecorator },
|
|
5365
|
+
_$1("span", { className: cssClasses.checkboxMaterialDecorator, "aria-hidden": "true" },
|
|
5366
5366
|
this.question.svgIcon ?
|
|
5367
5367
|
_$1("svg", { className: cssClasses.checkboxItemDecorator },
|
|
5368
5368
|
_$1("use", { xlinkHref: this.question.svgIcon })) : null,
|
|
@@ -5395,7 +5395,7 @@
|
|
|
5395
5395
|
_$1("label", { className: cssClasses.radioLabel },
|
|
5396
5396
|
_$1("input", { type: "radio", name: this.question.questionName, value: value, "aria-errormessage": this.question.ariaErrormessage, checked: value === this.question.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, className: cssClasses.itemRadioControl, onChange: handleOnChange }),
|
|
5397
5397
|
this.question.cssClasses.materialRadioDecorator ?
|
|
5398
|
-
(_$1("span", { className: cssClasses.materialRadioDecorator }, this.question.itemSvgIcon ?
|
|
5398
|
+
(_$1("span", { className: cssClasses.materialRadioDecorator, "aria-hidden": "true" }, this.question.itemSvgIcon ?
|
|
5399
5399
|
(_$1("svg", { className: cssClasses.itemRadioDecorator },
|
|
5400
5400
|
_$1("use", { xlinkHref: this.question.itemSvgIcon }))) : null)) : null,
|
|
5401
5401
|
_$1("span", { className: cssClasses.radioControlLabel }, this.renderLocString(locText)))));
|
|
@@ -7996,7 +7996,7 @@
|
|
|
7996
7996
|
}
|
|
7997
7997
|
};
|
|
7998
7998
|
var preact = React;
|
|
7999
|
-
surveyCore.checkLibraryVersion("".concat("2.5.
|
|
7999
|
+
surveyCore.checkLibraryVersion("".concat("2.5.45"), "survey-js-ui");
|
|
8000
8000
|
|
|
8001
8001
|
Object.defineProperty(exports, 'Model', {
|
|
8002
8002
|
enumerable: true,
|