survey-react-ui 1.9.121 → 1.9.122
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/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# SurveyJS React Form Library
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
https://github.com/surveyjs/survey-library/assets/22315929/ff5c0779-7e06-4241-a1db-2b28df78eba5
|
|
5
|
+
|
|
6
|
+
|
|
3
7
|
[](https://dev.azure.com/SurveyJS/SurveyJS%20Integration%20Tests/_build/latest?definitionId=7&branchName=master)
|
|
4
8
|
[](LICENSE)
|
|
5
9
|
<a href="https://github.com/DevExpress/testcafe">
|
|
@@ -44,4 +48,4 @@ Refer to instructions in the root README file: [Build the SurveyJS Form Library
|
|
|
44
48
|
|
|
45
49
|
## Licensing
|
|
46
50
|
|
|
47
|
-
SurveyJS Form Library is distributed under the [MIT license](https://github.com/surveyjs/survey-library/blob/master/LICENSE).
|
|
51
|
+
SurveyJS Form Library is distributed under the [MIT license](https://github.com/surveyjs/survey-library/blob/master/LICENSE).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-ui",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.122",
|
|
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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"url": "https://github.com/surveyjs/surveyjs.git"
|
|
21
21
|
},
|
|
22
22
|
"typings": "survey-react-ui.d.ts",
|
|
23
|
-
"
|
|
24
|
-
"survey-core": "
|
|
25
|
-
"react": "^16.5.0 || ^17.0.1 || ^18.
|
|
26
|
-
"react-dom": "^16.5.0 || ^17.0.1 || ^18.
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"survey-core": "*",
|
|
25
|
+
"react": "^16.5.0 || ^17.0.1 || ^18.2.0",
|
|
26
|
+
"react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/survey-react-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.122
|
|
3
3
|
* Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -411,7 +411,7 @@ var Base = /** @class */ (function () {
|
|
|
411
411
|
* Returns `true` if a passed `value` is an empty string, array, or object or if it equals to `undefined` or `null`.
|
|
412
412
|
*
|
|
413
413
|
* @param value A value to be checked.
|
|
414
|
-
* @param trimString (Optional) When this parameter is `true`, the method ignores whitespace characters at the beginning and end of a string value. Pass `false` to disable this functionality.
|
|
414
|
+
* @param trimString *(Optional)* When this parameter is `true`, the method ignores whitespace characters at the beginning and end of a string value. Pass `false` to disable this functionality.
|
|
415
415
|
*/
|
|
416
416
|
Base.prototype.isValueEmpty = function (value, trimString) {
|
|
417
417
|
if (trimString === void 0) { trimString = true; }
|
|
@@ -618,7 +618,7 @@ var Base = /** @class */ (function () {
|
|
|
618
618
|
* If the property is not found or does not have a value, this method returns either `undefined`, `defaultValue` specified in the property configuration, or a value passed as the `defaultValue` parameter.
|
|
619
619
|
*
|
|
620
620
|
* @param name A property name.
|
|
621
|
-
* @param defaultValue (Optional) A value to return if the property is not found or does not have a value.
|
|
621
|
+
* @param defaultValue *(Optional)* A value to return if the property is not found or does not have a value.
|
|
622
622
|
*/
|
|
623
623
|
Base.prototype.getPropertyValue = function (name, defaultValue) {
|
|
624
624
|
if (defaultValue === void 0) { defaultValue = null; }
|
|
@@ -889,7 +889,7 @@ var Base = /** @class */ (function () {
|
|
|
889
889
|
* Registers a function to call when a property value changes.
|
|
890
890
|
* @param propertyNames An array of one or multiple property names.
|
|
891
891
|
* @param handler A function to call when one of the listed properties change.
|
|
892
|
-
* @param key (Optional) A key that identifies the current registration. If a function for one of the properties is already registered with the same key, the function will be overwritten. You can also use the key to subsequently unregister handlers.
|
|
892
|
+
* @param key *(Optional)* A key that identifies the current registration. If a function for one of the properties is already registered with the same key, the function will be overwritten. You can also use the key to subsequently unregister handlers.
|
|
893
893
|
* @see unregisterPropertyChangedHandlers
|
|
894
894
|
*/
|
|
895
895
|
Base.prototype.registerPropertyChangedHandlers = function (propertyNames, handler, key) {
|
|
@@ -901,7 +901,7 @@ var Base = /** @class */ (function () {
|
|
|
901
901
|
/**
|
|
902
902
|
* Unregisters value change event handlers for the specified properties.
|
|
903
903
|
* @param propertyNames An array of one or multiple property names.
|
|
904
|
-
* @param key (Optional) A key of the registration that you want to cancel.
|
|
904
|
+
* @param key *(Optional)* A key of the registration that you want to cancel.
|
|
905
905
|
* @see registerPropertyChangedHandlers
|
|
906
906
|
*/
|
|
907
907
|
Base.prototype.unregisterPropertyChangedHandlers = function (propertyNames, key) {
|
|
@@ -2592,7 +2592,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2592
2592
|
|
|
2593
2593
|
|
|
2594
2594
|
|
|
2595
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.
|
|
2595
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.122", "survey-react-ui");
|
|
2596
2596
|
|
|
2597
2597
|
|
|
2598
2598
|
/***/ }),
|
|
@@ -15994,9 +15994,6 @@ var SurveyQuestionCheckboxItem = /** @class */ (function (_super) {
|
|
|
15994
15994
|
_this.handleOnChange = function (event) {
|
|
15995
15995
|
_this.question.clickItemHandler(_this.item, event.target.checked);
|
|
15996
15996
|
};
|
|
15997
|
-
_this.selectAllChanged = function (event) {
|
|
15998
|
-
_this.question.toggleSelectAll();
|
|
15999
|
-
};
|
|
16000
15997
|
return _this;
|
|
16001
15998
|
}
|
|
16002
15999
|
SurveyQuestionCheckboxItem.prototype.getStateElement = function () {
|
|
@@ -16070,16 +16067,12 @@ var SurveyQuestionCheckboxItem = /** @class */ (function (_super) {
|
|
|
16070
16067
|
});
|
|
16071
16068
|
SurveyQuestionCheckboxItem.prototype.renderCheckbox = function (isChecked, otherItem) {
|
|
16072
16069
|
var id = this.question.getItemId(this.item);
|
|
16073
|
-
var text = !this.hideCaption ? this.renderLocString(this.item.locText) : "";
|
|
16074
16070
|
var itemClass = this.question.getItemClass(this.item);
|
|
16075
16071
|
var labelClass = this.question.getLabelClass(this.item);
|
|
16076
|
-
var onItemChanged = this.item == this.question.selectAllItem
|
|
16077
|
-
? this.selectAllChanged
|
|
16078
|
-
: this.handleOnChange;
|
|
16079
16072
|
var itemLabel = !this.hideCaption ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.cssClasses.controlLabel }, this.renderLocString(this.item.locText, this.textStyle)) : null;
|
|
16080
16073
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: itemClass, role: "presentation" },
|
|
16081
16074
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("label", { className: labelClass },
|
|
16082
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { className: this.cssClasses.itemControl, type: "checkbox", role: "option", name: this.question.name + this.item.
|
|
16075
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { className: this.cssClasses.itemControl, type: "checkbox", role: "option", name: this.question.name + this.item.id, value: this.item.value, id: id, style: this.inputStyle, disabled: !this.question.getItemEnabled(this.item), checked: isChecked, onChange: this.handleOnChange }),
|
|
16083
16076
|
this.cssClasses.materialDecorator ?
|
|
16084
16077
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
|
|
16085
16078
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", { className: this.cssClasses.itemDecorator },
|