survey-react-ui 1.9.83 → 1.9.85
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 +2 -2
- package/survey-react-ui.d.ts +1 -1447
- package/survey-react-ui.js +12 -11
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +2 -2
- package/typings/entries/react-ui-model.d.ts +75 -0
- package/typings/react/boolean-checkbox.d.ts +6 -0
- package/typings/react/boolean-radio.d.ts +8 -0
- package/typings/react/boolean.d.ts +17 -0
- package/typings/react/components/action-bar/action-bar-item-dropdown.d.ts +8 -0
- package/typings/react/components/action-bar/action-bar-item.d.ts +20 -0
- package/typings/react/components/action-bar/action-bar-separator.d.ts +5 -0
- package/typings/react/components/action-bar/action-bar.d.ts +20 -0
- package/typings/react/components/brand-info.d.ts +4 -0
- package/typings/react/components/character-counter.d.ts +11 -0
- package/typings/react/components/components-container.d.ts +4 -0
- package/typings/react/components/list/list-item.d.ts +16 -0
- package/typings/react/components/list/list.d.ts +21 -0
- package/typings/react/components/matrix/row.d.ts +16 -0
- package/typings/react/components/matrix-actions/detail-button/detail-button.d.ts +12 -0
- package/typings/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.d.ts +6 -0
- package/typings/react/components/matrix-actions/remove-button/remove-button.d.ts +9 -0
- package/typings/react/components/notifier.d.ts +11 -0
- package/typings/react/components/paneldynamic-actions/paneldynamic-add-btn.d.ts +12 -0
- package/typings/react/components/paneldynamic-actions/paneldynamic-next-btn.d.ts +6 -0
- package/typings/react/components/paneldynamic-actions/paneldynamic-prev-btn.d.ts +6 -0
- package/typings/react/components/paneldynamic-actions/paneldynamic-progress-text.d.ts +5 -0
- package/typings/react/components/paneldynamic-actions/paneldynamic-remove-btn.d.ts +6 -0
- package/typings/react/components/popup/popup.d.ts +41 -0
- package/typings/react/components/rating/rating-item-smiley.d.ts +11 -0
- package/typings/react/components/rating/rating-item-star.d.ts +11 -0
- package/typings/react/components/rating/rating-item.d.ts +18 -0
- package/typings/react/components/skeleton.d.ts +4 -0
- package/typings/react/components/survey-actions/survey-nav-button.d.ts +8 -0
- package/typings/react/components/survey-header/logo-image.d.ts +11 -0
- package/typings/react/components/survey-header/survey-header.d.ts +16 -0
- package/typings/react/components/svg-icon/svg-icon.d.ts +9 -0
- package/typings/react/components/title/title-actions.d.ts +7 -0
- package/typings/react/components/title/title-content.d.ts +10 -0
- package/typings/react/components/title/title-element.d.ts +6 -0
- package/typings/react/custom-widget.d.ts +12 -0
- package/typings/react/dropdown-base.d.ts +22 -0
- package/typings/react/dropdown-item.d.ts +13 -0
- package/typings/react/dropdown-select.d.ts +6 -0
- package/typings/react/element-factory.d.ts +9 -0
- package/typings/react/element-header.d.ts +5 -0
- package/typings/react/flow-panel.d.ts +22 -0
- package/typings/react/image.d.ts +10 -0
- package/typings/react/imagepicker.d.ts +25 -0
- package/typings/react/page.d.ts +11 -0
- package/typings/react/panel-base.d.ts +25 -0
- package/typings/react/panel.d.ts +15 -0
- package/typings/react/rating-dropdown.d.ts +7 -0
- package/typings/react/react-popup-survey.d.ts +19 -0
- package/typings/react/reactSurvey.d.ts +41 -0
- package/typings/react/reactSurveyNavigationBase.d.ts +10 -0
- package/typings/react/reactSurveyProgress.d.ts +9 -0
- package/typings/react/reactSurveyProgressButtons.d.ts +19 -0
- package/typings/react/reactSurveyProgressToc.d.ts +5 -0
- package/typings/react/reactquestion.d.ts +75 -0
- package/typings/react/reactquestion_buttongroup.d.ts +23 -0
- package/typings/react/reactquestion_checkbox.d.ts +34 -0
- package/typings/react/reactquestion_comment.d.ts +23 -0
- package/typings/react/reactquestion_custom.d.ts +13 -0
- package/typings/react/reactquestion_dropdown.d.ts +7 -0
- package/typings/react/reactquestion_element.d.ts +63 -0
- package/typings/react/reactquestion_empty.d.ts +8 -0
- package/typings/react/reactquestion_expression.d.ts +8 -0
- package/typings/react/reactquestion_factory.d.ts +8 -0
- package/typings/react/reactquestion_file.d.ts +12 -0
- package/typings/react/reactquestion_html.d.ts +13 -0
- package/typings/react/reactquestion_matrix.d.ts +21 -0
- package/typings/react/reactquestion_matrixdropdown.d.ts +4 -0
- package/typings/react/reactquestion_matrixdropdownbase.d.ts +34 -0
- package/typings/react/reactquestion_matrixdynamic.d.ts +20 -0
- package/typings/react/reactquestion_multipletext.d.ts +22 -0
- package/typings/react/reactquestion_paneldynamic.d.ts +28 -0
- package/typings/react/reactquestion_radiogroup.d.ts +31 -0
- package/typings/react/reactquestion_ranking.d.ts +21 -0
- package/typings/react/reactquestion_rating.d.ts +10 -0
- package/typings/react/reactquestion_tagbox.d.ts +9 -0
- package/typings/react/reactquestion_text.d.ts +9 -0
- package/typings/react/reactsurveymodel.d.ts +9 -0
- package/typings/react/reacttimerpanel.d.ts +11 -0
- package/typings/react/row.d.ts +21 -0
- package/typings/react/signaturepad.d.ts +9 -0
- package/typings/react/string-editor.d.ts +11 -0
- package/typings/react/string-viewer.d.ts +15 -0
- package/typings/react/tagbox-filter.d.ts +23 -0
- package/typings/react/tagbox-item.d.ts +11 -0
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.85
|
|
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
|
*/
|
|
@@ -1189,7 +1189,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1189
1189
|
|
|
1190
1190
|
|
|
1191
1191
|
|
|
1192
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.
|
|
1192
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.85", "survey-react-ui");
|
|
1193
1193
|
|
|
1194
1194
|
|
|
1195
1195
|
/***/ }),
|
|
@@ -1438,12 +1438,14 @@ var SurveyQuestionBoolean = /** @class */ (function (_super) {
|
|
|
1438
1438
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
|
|
1439
1439
|
? ""
|
|
1440
1440
|
: this.question.booleanValue, id: this.question.inputId, className: cssClasses.control, 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-describedby": this.question.ariaDescribedBy }),
|
|
1441
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("
|
|
1441
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.sliderGhost, onClick: function (event) { return _this.handleOnLabelClick(event, false); } },
|
|
1442
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.question.getLabelCss(false) }, this.renderLocString(this.question.locLabelFalse))),
|
|
1442
1443
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.switch, onClick: this.handleOnSwitchClick },
|
|
1443
1444
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.slider }, this.question.isDeterminated && cssClasses.sliderText ?
|
|
1444
1445
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.sliderText }, this.renderLocString(this.question.getCheckedLabel()))
|
|
1445
1446
|
: null)),
|
|
1446
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("
|
|
1447
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.sliderGhost, onClick: function (event) { return _this.handleOnLabelClick(event, true); } },
|
|
1448
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.question.getLabelCss(true) }, this.renderLocString(this.question.locLabelTrue))))));
|
|
1447
1449
|
};
|
|
1448
1450
|
return SurveyQuestionBoolean;
|
|
1449
1451
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["SurveyQuestionElementBase"]));
|
|
@@ -1625,7 +1627,7 @@ var SurveyActionBarItem = /** @class */ (function (_super) {
|
|
|
1625
1627
|
var title = this.item.tooltip || this.item.title;
|
|
1626
1628
|
var buttonContent = this.renderButtonContent();
|
|
1627
1629
|
var tabIndex = this.item.disableTabStop ? -1 : undefined;
|
|
1628
|
-
var button = Object(_reactSurvey__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", { className: className, type: "button", disabled: this.item.disabled, onClick: function () { return _this.item.action(_this.item); }, title: title, tabIndex: tabIndex, "aria-checked": this.item.ariaChecked, "aria-expanded": this.item.ariaExpanded, role: this.item.ariaRole }, buttonContent), null, { processEsc: false });
|
|
1630
|
+
var button = Object(_reactSurvey__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("button", { className: className, type: "button", disabled: this.item.disabled, onClick: function (args) { return _this.item.action(_this.item, _this.item.getIsTrusted(args)); }, title: title, tabIndex: tabIndex, "aria-checked": this.item.ariaChecked, "aria-expanded": this.item.ariaExpanded, role: this.item.ariaRole }, buttonContent), null, { processEsc: false });
|
|
1629
1631
|
return button;
|
|
1630
1632
|
};
|
|
1631
1633
|
return SurveyActionBarItem;
|
|
@@ -3167,7 +3169,7 @@ var RatingItemSmiley = /** @class */ (function (_super) {
|
|
|
3167
3169
|
};
|
|
3168
3170
|
RatingItemSmiley.prototype.render = function () {
|
|
3169
3171
|
var _this = this;
|
|
3170
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", { 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); } },
|
|
3172
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", { 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); } },
|
|
3171
3173
|
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-describedby": this.question.ariaDescribedBy }),
|
|
3172
3174
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: "auto", iconName: this.question.getItemSmileyIconName(this.item.itemValue), title: this.item.text })));
|
|
3173
3175
|
};
|
|
@@ -3324,7 +3326,7 @@ var RatingItem = /** @class */ (function (_super) {
|
|
|
3324
3326
|
};
|
|
3325
3327
|
RatingItem.prototype.render = function () {
|
|
3326
3328
|
var itemText = this.renderLocString(this.item.locText);
|
|
3327
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", { className: this.question.
|
|
3329
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", { className: this.question.getItemClassByText(this.item.itemValue, this.item.text) },
|
|
3328
3330
|
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-describedby": this.question.ariaDescribedBy }),
|
|
3329
3331
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { className: this.question.cssClasses.itemText }, itemText)));
|
|
3330
3332
|
};
|
|
@@ -7211,7 +7213,7 @@ var SurveyElementBase = /** @class */ (function (_super) {
|
|
|
7211
7213
|
};
|
|
7212
7214
|
SurveyElementBase.renderQuestionDescription = function (question) {
|
|
7213
7215
|
var descriptionText = SurveyElementBase.renderLocString(question.locDescription);
|
|
7214
|
-
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: question.cssDescription }, descriptionText);
|
|
7216
|
+
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { style: question.isDescriptionVisible ? undefined : { display: "none" }, className: question.cssDescription }, descriptionText);
|
|
7215
7217
|
};
|
|
7216
7218
|
SurveyElementBase.prototype.componentDidMount = function () {
|
|
7217
7219
|
this.makeBaseElementsReact();
|
|
@@ -10799,11 +10801,11 @@ var settings = {
|
|
|
10799
10801
|
imagepicker: ["answercount"],
|
|
10800
10802
|
},
|
|
10801
10803
|
/**
|
|
10802
|
-
* Specifies a minimum date that users can enter into a [Text](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model) question with [`inputType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#inputType) set to `"date"
|
|
10804
|
+
* Specifies a minimum date that users can enter into a [Text](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model) question with [`inputType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#inputType) set to `"date"` or `"datetime-local"`. Set this property to a string with the folllowing format: `"yyyy-mm-dd"`.
|
|
10803
10805
|
*/
|
|
10804
10806
|
minDate: "",
|
|
10805
10807
|
/**
|
|
10806
|
-
* Specifies a maximum date that users can enter into a [Text](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model) question with [`inputType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#inputType) set to `"date"
|
|
10808
|
+
* Specifies a maximum date that users can enter into a [Text](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model) question with [`inputType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#inputType) set to `"date"` or `"datetime-local"`. Set this property to a string with the folllowing format: `"yyyy-mm-dd"`.
|
|
10807
10809
|
*/
|
|
10808
10810
|
maxDate: "",
|
|
10809
10811
|
showModal: undefined,
|
|
@@ -10840,7 +10842,6 @@ var settings = {
|
|
|
10840
10842
|
inputTypes: [
|
|
10841
10843
|
"color",
|
|
10842
10844
|
"date",
|
|
10843
|
-
"datetime",
|
|
10844
10845
|
"datetime-local",
|
|
10845
10846
|
"email",
|
|
10846
10847
|
"month",
|