survey-react-ui 1.12.32 → 1.12.34

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-react-ui",
3
- "version": "1.12.32",
3
+ "version": "1.12.34",
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",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "typings": "./typings/src/entries/react-ui.d.ts",
23
23
  "peerDependencies": {
24
- "survey-core": "1.12.32",
24
+ "survey-core": "1.12.34",
25
25
  "react": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0",
26
26
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0 || ^19.0.0"
27
27
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.32
2
+ * surveyjs - Survey JavaScript library v1.12.34
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
  */
@@ -110,7 +110,7 @@ return /******/ (function(modules) { // webpackBootstrap
110
110
  /***/ (function(module, exports, __webpack_require__) {
111
111
 
112
112
  /*!
113
- * surveyjs - Survey JavaScript library v1.12.32
113
+ * surveyjs - Survey JavaScript library v1.12.34
114
114
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
115
115
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
116
116
  */
@@ -1043,7 +1043,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
1043
1043
  /***/ (function(module, exports, __webpack_require__) {
1044
1044
 
1045
1045
  /*!
1046
- * surveyjs - Survey JavaScript library v1.12.32
1046
+ * surveyjs - Survey JavaScript library v1.12.34
1047
1047
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
1048
1048
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
1049
1049
  */
@@ -5984,7 +5984,7 @@ var reactquestion_ranking_SurveyQuestionRankingItem = /** @class */ (function (_
5984
5984
  };
5985
5985
  SurveyQuestionRankingItem.prototype.renderElement = function () {
5986
5986
  var itemContent = ReactElementFactory.Instance.createElement(this.question.itemComponent, { item: this.item, cssClasses: this.cssClasses });
5987
- return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { tabIndex: this.itemTabIndex, className: this.itemClass, onKeyDown: this.handleKeydown, onPointerDown: this.handlePointerDown, onPointerUp: this.handlePointerUp, "data-sv-drop-target-ranking-item": this.index },
5987
+ return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { id: this.question.getItemId(this.item), tabIndex: this.itemTabIndex, className: this.itemClass, onKeyDown: this.handleKeydown, onPointerDown: this.handlePointerDown, onPointerUp: this.handlePointerUp, "data-sv-drop-target-ranking-item": this.index },
5988
5988
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { tabIndex: -1, style: { outline: "none" } },
5989
5989
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.cssClasses.itemGhostNode }),
5990
5990
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.cssClasses.itemContent },
@@ -6464,19 +6464,21 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
6464
6464
  return this.questionBase.renderedValue;
6465
6465
  };
6466
6466
  SurveyQuestionDropdownBase.prototype.renderReadOnlyElement = function () {
6467
- return external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", null, this.question.readOnlyText);
6467
+ if (this.question.locReadOnlyText) {
6468
+ return this.renderLocString(this.question.locReadOnlyText);
6469
+ }
6470
+ else {
6471
+ return null;
6472
+ }
6468
6473
  };
6469
6474
  SurveyQuestionDropdownBase.prototype.renderSelect = function (cssClasses) {
6470
6475
  var _this = this;
6471
6476
  var _a, _b;
6472
6477
  var selectElement = null;
6473
6478
  if (this.question.isReadOnly) {
6474
- var text = (this.question.selectedItemLocText) ? this.renderLocString(this.question.selectedItemLocText) : "";
6475
6479
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6476
6480
  // @ts-ignore
6477
- selectElement = external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { id: this.question.inputId, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass(), ref: function (div) { return (_this.setControl(div)); } },
6478
- text,
6479
- this.renderReadOnlyElement());
6481
+ selectElement = external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { id: this.question.inputId, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass(), ref: function (div) { return (_this.setControl(div)); } }, this.renderReadOnlyElement());
6480
6482
  }
6481
6483
  else {
6482
6484
  selectElement = external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](external_root_React_commonjs2_react_commonjs_react_amd_react_["Fragment"], null,
@@ -7248,7 +7250,7 @@ var reactquestion_file_SurveyQuestionFile = /** @class */ (function (_super) {
7248
7250
  var actionsContainer = this.question.actionsContainerVisible ? external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"](action_bar_SurveyActionBar, { model: this.question.actionsContainer }) : null;
7249
7251
  var noFileChosen = this.question.isEmpty() ? (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", { className: this.question.cssClasses.noFileChosen }, this.question.noFileChosenCaption)) : null;
7250
7252
  return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.getFileDecoratorCss() },
7251
- external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", { className: this.question.cssClasses.dragAreaPlaceholder }, this.renderLocString(this.question.locRenderedPlaceholder)),
7253
+ this.question.showDragAreaPlaceholder ? external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("span", { className: this.question.cssClasses.dragAreaPlaceholder }, this.renderLocString(this.question.locRenderedPlaceholder)) : false,
7252
7254
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("div", { className: this.question.cssClasses.wrapper },
7253
7255
  chooseButton,
7254
7256
  actionsContainer,
@@ -7869,7 +7871,7 @@ var reactquestion_text_SurveyQuestionText = /** @class */ (function (_super) {
7869
7871
  // disabled={this.isDisplayMode}
7870
7872
  disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, className: inputClass, type: this.question.inputType,
7871
7873
  //ref={this.controlRef}
7872
- ref: function (input) { return (_this.setControl(input)); }, style: this.question.inputStyle, maxLength: this.question.getMaxLength(), min: this.question.renderedMin, max: this.question.renderedMax, step: this.question.renderedStep, size: this.question.inputSize, placeholder: placeholder, list: this.question.dataListId, autoComplete: this.question.autocomplete, onBlur: function (event) { _this.question.onBlur(event); }, onFocus: function (event) { _this.question.onFocus(event); }, onChange: this.question.onChange, onKeyUp: this.question.onKeyUp, onKeyDown: this.question.onKeyDown, onCompositionUpdate: function (event) { return _this.question.onCompositionUpdate(event.nativeEvent); }, "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 }),
7874
+ ref: function (input) { return (_this.setControl(input)); }, style: this.question.inputStyle, maxLength: this.question.getMaxLength(), min: this.question.renderedMin, max: this.question.renderedMax, step: this.question.renderedStep, size: this.question.inputSize, placeholder: placeholder, list: this.question.dataListId, autoComplete: this.question.autocomplete, onBlur: function (event) { _this.question.onBlur(event); }, onFocus: function (event) { _this.question.onFocus(event); }, onChange: this.question.onChange, onClick: this.question.readOnlyBlocker, onPointerDown: this.question.readOnlyBlocker, onKeyUp: this.question.onKeyUp, onKeyDown: this.question.onKeyDown, onCompositionUpdate: function (event) { return _this.question.onCompositionUpdate(event.nativeEvent); }, "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 }),
7873
7875
  counter));
7874
7876
  };
7875
7877
  SurveyQuestionText.prototype.renderElement = function () {
@@ -11321,7 +11323,7 @@ ReactElementFactory.Instance.registerElement(external_root_Survey_commonjs2_surv
11321
11323
 
11322
11324
 
11323
11325
 
11324
- Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.32", "survey-react-ui");
11326
+ Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.34", "survey-react-ui");
11325
11327
 
11326
11328
 
11327
11329
  /***/ }),