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.
Files changed (90) hide show
  1. package/package.json +2 -2
  2. package/survey-react-ui.d.ts +1 -1447
  3. package/survey-react-ui.js +12 -11
  4. package/survey-react-ui.js.map +1 -1
  5. package/survey-react-ui.min.js +2 -2
  6. package/typings/entries/react-ui-model.d.ts +75 -0
  7. package/typings/react/boolean-checkbox.d.ts +6 -0
  8. package/typings/react/boolean-radio.d.ts +8 -0
  9. package/typings/react/boolean.d.ts +17 -0
  10. package/typings/react/components/action-bar/action-bar-item-dropdown.d.ts +8 -0
  11. package/typings/react/components/action-bar/action-bar-item.d.ts +20 -0
  12. package/typings/react/components/action-bar/action-bar-separator.d.ts +5 -0
  13. package/typings/react/components/action-bar/action-bar.d.ts +20 -0
  14. package/typings/react/components/brand-info.d.ts +4 -0
  15. package/typings/react/components/character-counter.d.ts +11 -0
  16. package/typings/react/components/components-container.d.ts +4 -0
  17. package/typings/react/components/list/list-item.d.ts +16 -0
  18. package/typings/react/components/list/list.d.ts +21 -0
  19. package/typings/react/components/matrix/row.d.ts +16 -0
  20. package/typings/react/components/matrix-actions/detail-button/detail-button.d.ts +12 -0
  21. package/typings/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.d.ts +6 -0
  22. package/typings/react/components/matrix-actions/remove-button/remove-button.d.ts +9 -0
  23. package/typings/react/components/notifier.d.ts +11 -0
  24. package/typings/react/components/paneldynamic-actions/paneldynamic-add-btn.d.ts +12 -0
  25. package/typings/react/components/paneldynamic-actions/paneldynamic-next-btn.d.ts +6 -0
  26. package/typings/react/components/paneldynamic-actions/paneldynamic-prev-btn.d.ts +6 -0
  27. package/typings/react/components/paneldynamic-actions/paneldynamic-progress-text.d.ts +5 -0
  28. package/typings/react/components/paneldynamic-actions/paneldynamic-remove-btn.d.ts +6 -0
  29. package/typings/react/components/popup/popup.d.ts +41 -0
  30. package/typings/react/components/rating/rating-item-smiley.d.ts +11 -0
  31. package/typings/react/components/rating/rating-item-star.d.ts +11 -0
  32. package/typings/react/components/rating/rating-item.d.ts +18 -0
  33. package/typings/react/components/skeleton.d.ts +4 -0
  34. package/typings/react/components/survey-actions/survey-nav-button.d.ts +8 -0
  35. package/typings/react/components/survey-header/logo-image.d.ts +11 -0
  36. package/typings/react/components/survey-header/survey-header.d.ts +16 -0
  37. package/typings/react/components/svg-icon/svg-icon.d.ts +9 -0
  38. package/typings/react/components/title/title-actions.d.ts +7 -0
  39. package/typings/react/components/title/title-content.d.ts +10 -0
  40. package/typings/react/components/title/title-element.d.ts +6 -0
  41. package/typings/react/custom-widget.d.ts +12 -0
  42. package/typings/react/dropdown-base.d.ts +22 -0
  43. package/typings/react/dropdown-item.d.ts +13 -0
  44. package/typings/react/dropdown-select.d.ts +6 -0
  45. package/typings/react/element-factory.d.ts +9 -0
  46. package/typings/react/element-header.d.ts +5 -0
  47. package/typings/react/flow-panel.d.ts +22 -0
  48. package/typings/react/image.d.ts +10 -0
  49. package/typings/react/imagepicker.d.ts +25 -0
  50. package/typings/react/page.d.ts +11 -0
  51. package/typings/react/panel-base.d.ts +25 -0
  52. package/typings/react/panel.d.ts +15 -0
  53. package/typings/react/rating-dropdown.d.ts +7 -0
  54. package/typings/react/react-popup-survey.d.ts +19 -0
  55. package/typings/react/reactSurvey.d.ts +41 -0
  56. package/typings/react/reactSurveyNavigationBase.d.ts +10 -0
  57. package/typings/react/reactSurveyProgress.d.ts +9 -0
  58. package/typings/react/reactSurveyProgressButtons.d.ts +19 -0
  59. package/typings/react/reactSurveyProgressToc.d.ts +5 -0
  60. package/typings/react/reactquestion.d.ts +75 -0
  61. package/typings/react/reactquestion_buttongroup.d.ts +23 -0
  62. package/typings/react/reactquestion_checkbox.d.ts +34 -0
  63. package/typings/react/reactquestion_comment.d.ts +23 -0
  64. package/typings/react/reactquestion_custom.d.ts +13 -0
  65. package/typings/react/reactquestion_dropdown.d.ts +7 -0
  66. package/typings/react/reactquestion_element.d.ts +63 -0
  67. package/typings/react/reactquestion_empty.d.ts +8 -0
  68. package/typings/react/reactquestion_expression.d.ts +8 -0
  69. package/typings/react/reactquestion_factory.d.ts +8 -0
  70. package/typings/react/reactquestion_file.d.ts +12 -0
  71. package/typings/react/reactquestion_html.d.ts +13 -0
  72. package/typings/react/reactquestion_matrix.d.ts +21 -0
  73. package/typings/react/reactquestion_matrixdropdown.d.ts +4 -0
  74. package/typings/react/reactquestion_matrixdropdownbase.d.ts +34 -0
  75. package/typings/react/reactquestion_matrixdynamic.d.ts +20 -0
  76. package/typings/react/reactquestion_multipletext.d.ts +22 -0
  77. package/typings/react/reactquestion_paneldynamic.d.ts +28 -0
  78. package/typings/react/reactquestion_radiogroup.d.ts +31 -0
  79. package/typings/react/reactquestion_ranking.d.ts +21 -0
  80. package/typings/react/reactquestion_rating.d.ts +10 -0
  81. package/typings/react/reactquestion_tagbox.d.ts +9 -0
  82. package/typings/react/reactquestion_text.d.ts +9 -0
  83. package/typings/react/reactsurveymodel.d.ts +9 -0
  84. package/typings/react/reacttimerpanel.d.ts +11 -0
  85. package/typings/react/row.d.ts +21 -0
  86. package/typings/react/signaturepad.d.ts +9 -0
  87. package/typings/react/string-editor.d.ts +11 -0
  88. package/typings/react/string-viewer.d.ts +15 -0
  89. package/typings/react/tagbox-filter.d.ts +23 -0
  90. package/typings/react/tagbox-item.d.ts +11 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.83
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.83", "survey-react-ui");
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"]("span", { className: this.question.getLabelCss(false), onClick: function (event) { return _this.handleOnLabelClick(event, false); } }, this.renderLocString(this.question.locLabelFalse)),
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"]("span", { className: this.question.getLabelCss(true), onClick: function (event) { return _this.handleOnLabelClick(event, true); } }, this.renderLocString(this.question.locLabelTrue)))));
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.getItemClass(this.item.itemValue) },
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"`, `"datetime"`, or `"datetime-local"`. Set this property to a string with the folllowing format: `"yyyy-mm-dd"`.
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"`, `"datetime"`, or `"datetime-local"`. Set this property to a string with the folllowing format: `"yyyy-mm-dd"`.
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",