survey-react-ui 2.3.14 → 2.3.16
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 +14 -11
- package/fesm/survey-react-ui.mjs.map +1 -1
- package/package.json +32 -10
- package/survey-react-ui.js +14 -11
- 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/package.json
CHANGED
|
@@ -1,16 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "2.3.
|
|
4
|
-
"
|
|
3
|
+
"version": "2.3.16",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "DevSoft Baltic OU <info@devsoftbaltic.com>",
|
|
6
|
+
"homepage": "https://surveyjs.io/",
|
|
7
|
+
"description": "A free MIT-licensed React UI component that renders dynamic, interactive JSON-based forms and surveys. You can use it to collect responses from users and send them to your own database.",
|
|
5
8
|
"keywords": [
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
9
|
+
"react",
|
|
10
|
+
"survey",
|
|
11
|
+
"form",
|
|
12
|
+
"surveyjs",
|
|
13
|
+
"survey-library",
|
|
14
|
+
"react-component",
|
|
15
|
+
"form-rendering",
|
|
16
|
+
"survey-renderer",
|
|
17
|
+
"dynamic-form",
|
|
18
|
+
"interactive-form",
|
|
19
|
+
"form-library",
|
|
20
|
+
"form-management",
|
|
21
|
+
"questionnaire",
|
|
22
|
+
"data-collection",
|
|
23
|
+
"data-validation",
|
|
24
|
+
"form-validation",
|
|
25
|
+
"input-validation",
|
|
26
|
+
"ui-component",
|
|
27
|
+
"json",
|
|
28
|
+
"json-schema",
|
|
29
|
+
"react-schema-form",
|
|
30
|
+
"survey-renderer",
|
|
31
|
+
"client-side",
|
|
32
|
+
"frontend",
|
|
33
|
+
"javascript",
|
|
34
|
+
"typescript"
|
|
11
35
|
],
|
|
12
|
-
"homepage": "https://surveyjs.io/",
|
|
13
|
-
"license": "MIT",
|
|
14
36
|
"files": [
|
|
15
37
|
"**/*"
|
|
16
38
|
],
|
|
@@ -29,7 +51,7 @@
|
|
|
29
51
|
}
|
|
30
52
|
},
|
|
31
53
|
"peerDependencies": {
|
|
32
|
-
"survey-core": "2.3.
|
|
54
|
+
"survey-core": "2.3.16",
|
|
33
55
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
|
|
34
56
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0"
|
|
35
57
|
}
|
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.3.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.3.16
|
|
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.3.
|
|
31
|
+
* surveyjs - Survey JavaScript library v2.3.16
|
|
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.3.
|
|
117
|
+
* surveyjs - Survey JavaScript library v2.3.16
|
|
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
|
*/
|
|
@@ -8483,15 +8483,18 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
|
8483
8483
|
var video = this.question.isPlayingVideo ? this.renderVideo() : null;
|
|
8484
8484
|
var fileDecorator = this.question.showFileDecorator ? this.renderFileDecorator() : null;
|
|
8485
8485
|
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;
|
|
8486
|
+
var acceptedTypes = this.question.renderedAcceptedTypes;
|
|
8487
|
+
var className = !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss();
|
|
8488
|
+
var style = this.isDisplayMode ? { color: "transparent" } : {};
|
|
8486
8489
|
var fileInput;
|
|
8487
8490
|
if (this.question.isReadOnlyAttr) {
|
|
8488
|
-
fileInput = react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { readOnly: true, type: "file", className:
|
|
8491
|
+
fileInput = react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { readOnly: true, type: "file", className: className, id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: style, multiple: this.question.allowMultiple, placeholder: this.question.title, accept: acceptedTypes });
|
|
8489
8492
|
}
|
|
8490
8493
|
else if (this.question.isDisabledAttr) {
|
|
8491
|
-
fileInput = react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { disabled: true, type: "file", className:
|
|
8494
|
+
fileInput = react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { disabled: true, type: "file", className: className, id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: style, multiple: this.question.allowMultiple, placeholder: this.question.title, accept: acceptedTypes });
|
|
8492
8495
|
}
|
|
8493
8496
|
else if (this.question.hasFileUI) {
|
|
8494
|
-
fileInput = react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { type: "file", disabled: this.isDisplayMode, tabIndex: -1, className:
|
|
8497
|
+
fileInput = react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { type: "file", disabled: this.isDisplayMode, tabIndex: -1, className: className, id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: style, "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: acceptedTypes, capture: this.question.renderCapture });
|
|
8495
8498
|
}
|
|
8496
8499
|
else {
|
|
8497
8500
|
fileInput = null;
|
|
@@ -10814,15 +10817,15 @@ var SurveyQuestionSlider = /** @class */ (function (_super) {
|
|
|
10814
10817
|
return thumb;
|
|
10815
10818
|
};
|
|
10816
10819
|
SurveyQuestionSlider.prototype.getInput = function (i) {
|
|
10817
|
-
var _a = this.question, max = _a.renderedMax, min = _a.renderedMin, step = _a.step, cssClasses = _a.cssClasses, isDisabledAttr = _a.isDisabledAttr, renderedValue = _a.renderedValue, handleOnChange = _a.handleOnChange, handlePointerDown = _a.handlePointerDown, handlePointerUp = _a.handlePointerUp, handleKeyDown = _a.handleKeyDown, handleKeyUp = _a.handleKeyUp, handleOnFocus = _a.handleOnFocus, handleOnBlur = _a.handleOnBlur;
|
|
10820
|
+
var _a = this.question, max = _a.renderedMax, min = _a.renderedMin, step = _a.step, cssClasses = _a.cssClasses, isDisabledAttr = _a.isDisabledAttr, renderedValue = _a.renderedValue, handleOnChange = _a.handleOnChange, handlePointerDown = _a.handlePointerDown, handlePointerUp = _a.handlePointerUp, handleKeyDown = _a.handleKeyDown, handleKeyUp = _a.handleKeyUp, handleOnFocus = _a.handleOnFocus, handleOnBlur = _a.handleOnBlur, id = _a.id;
|
|
10818
10821
|
var value = renderedValue[i];
|
|
10819
|
-
var input = react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { className: cssClasses.input, id: "sjs-slider-input-" + i, type: "range", min: min, max: max, step: step, value: value, onChange: function (e) { handleOnChange(e.nativeEvent, i); }, onPointerDown: function (e) { handlePointerDown(e.nativeEvent); }, onPointerUp: function (e) { e.stopPropagation(); handlePointerUp(e.nativeEvent); }, onKeyDown: function (e) { handleKeyDown(e.nativeEvent); }, onKeyUp: function (e) { handleKeyUp(e.nativeEvent); }, onFocus: function () { handleOnFocus(i); }, onBlur: function () { handleOnBlur(); }, disabled: isDisabledAttr, "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 });
|
|
10822
|
+
var input = react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { className: cssClasses.input, id: id + "-sjs-slider-input-" + i, type: "range", min: min, max: max, step: step, value: value, onChange: function (e) { handleOnChange(e.nativeEvent, i); }, onPointerDown: function (e) { handlePointerDown(e.nativeEvent); }, onPointerUp: function (e) { e.stopPropagation(); handlePointerUp(e.nativeEvent); }, onKeyDown: function (e) { handleKeyDown(e.nativeEvent); }, onKeyUp: function (e) { handleKeyUp(e.nativeEvent); }, onFocus: function () { handleOnFocus(i); }, onBlur: function () { handleOnBlur(); }, disabled: isDisabledAttr, "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 });
|
|
10820
10823
|
return input;
|
|
10821
10824
|
};
|
|
10822
10825
|
SurveyQuestionSlider.prototype.getRangeInput = function () {
|
|
10823
10826
|
var _this = this;
|
|
10824
|
-
var _a = this.question, max = _a.renderedMax, min = _a.renderedMin, step = _a.step, cssClasses = _a.cssClasses, handleRangeOnChange = _a.handleRangeOnChange, handleRangePointerDown = _a.handleRangePointerDown, handleRangePointerUp = _a.handleRangePointerUp;
|
|
10825
|
-
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { name: "range-input", id: "sjs-slider-input-range-input", ref: this.rangeInputRef, className: cssClasses.input, type: "range", "aria-hidden": "true", min: min, max: max, step: step, tabIndex: -1, onChange: function (e) { handleRangeOnChange(e.nativeEvent); }, onPointerDown: function (e) { e.persist(); handleRangePointerDown(e.nativeEvent, _this.control); }, onPointerUp: function (e) { handleRangePointerUp(e.nativeEvent, _this.control); } });
|
|
10827
|
+
var _a = this.question, max = _a.renderedMax, min = _a.renderedMin, step = _a.step, cssClasses = _a.cssClasses, handleRangeOnChange = _a.handleRangeOnChange, handleRangePointerDown = _a.handleRangePointerDown, handleRangePointerUp = _a.handleRangePointerUp, id = _a.id;
|
|
10828
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { name: "range-input", id: id + "-sjs-slider-input-range-input", ref: this.rangeInputRef, className: cssClasses.input, type: "range", "aria-hidden": "true", min: min, max: max, step: step, tabIndex: -1, onChange: function (e) { handleRangeOnChange(e.nativeEvent); }, onPointerDown: function (e) { e.persist(); handleRangePointerDown(e.nativeEvent, _this.control); }, onPointerUp: function (e) { handleRangePointerUp(e.nativeEvent, _this.control); } });
|
|
10826
10829
|
};
|
|
10827
10830
|
SurveyQuestionSlider.prototype.getLabels = function () {
|
|
10828
10831
|
var labels = [];
|
|
@@ -12090,7 +12093,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12090
12093
|
|
|
12091
12094
|
|
|
12092
12095
|
|
|
12093
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.3.
|
|
12096
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.3.16"), "survey-react-ui");
|
|
12094
12097
|
|
|
12095
12098
|
})();
|
|
12096
12099
|
|