survey-js-ui 1.12.22 → 1.12.24

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-js-ui",
3
- "version": "1.12.22",
3
+ "version": "1.12.24",
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",
@@ -23,7 +23,7 @@
23
23
  "typings": "./typings/src/entries/js-ui.d.ts",
24
24
  "dependencies": {},
25
25
  "peerDependencies": {
26
- "survey-core": "1.12.22",
26
+ "survey-core": "1.12.24",
27
27
  "@types/react-dom": "*",
28
28
  "@types/react": "*"
29
29
  }
package/survey-js-ui.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.22
2
+ * surveyjs - Survey JavaScript library v1.12.24
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.22
113
+ * surveyjs - Survey JavaScript library v1.12.24
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.22
1046
+ * surveyjs - Survey JavaScript library v1.12.24
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
  */
@@ -2770,19 +2770,17 @@ var element_SurveyRowElement = /** @class */ (function (_super) {
2770
2770
  el.focusIn();
2771
2771
  }
2772
2772
  };
2773
- return (g("div", { className: css.questionWrapper, style: element.rootStyle, "data-key": innerElement.key, key: innerElement.key, onFocus: focusIn, ref: this.rootRef }, innerElement));
2773
+ return (g("div", { className: css.questionWrapper, style: element.rootStyle, "data-key": element.name + this.index, onFocus: focusIn, ref: this.rootRef }, innerElement));
2774
2774
  };
2775
2775
  SurveyRowElement.prototype.createElement = function (element, elementIndex) {
2776
- var index = elementIndex ? "-" + elementIndex : 0;
2777
2776
  if (!this.row.isNeedRender) {
2778
- return ReactElementFactory.Instance.createElement(element.skeletonComponentName, { key: element.name + index, element: element, css: this.css, });
2777
+ return ReactElementFactory.Instance.createElement(element.skeletonComponentName, { element: element, css: this.css, });
2779
2778
  }
2780
2779
  var elementType = element.getTemplate();
2781
2780
  if (!ReactElementFactory.Instance.isElementRegistered(elementType)) {
2782
2781
  elementType = "question";
2783
2782
  }
2784
2783
  return ReactElementFactory.Instance.createElement(elementType, {
2785
- key: element.name + index,
2786
2784
  element: element,
2787
2785
  creator: this.creator,
2788
2786
  survey: this.survey,
@@ -2862,9 +2860,7 @@ var row_SurveyRow = /** @class */ (function (_super) {
2862
2860
  SurveyRow.prototype.renderElementContent = function () {
2863
2861
  var _this = this;
2864
2862
  var elements = this.row.visibleElements.map(function (element, elementIndex) {
2865
- var index = elementIndex ? "-" + elementIndex : 0;
2866
- var key = element.name + index;
2867
- return (g(element_SurveyRowElement, { element: element, index: elementIndex, row: _this.row, survey: _this.survey, creator: _this.creator, css: _this.css, key: key }));
2863
+ return (g(element_SurveyRowElement, { element: element, index: elementIndex, row: _this.row, survey: _this.survey, creator: _this.creator, css: _this.css, key: element.id }));
2868
2864
  });
2869
2865
  return (g("div", { ref: this.rootRef, className: this.row.getRowCss() }, elements));
2870
2866
  };
@@ -4176,7 +4172,6 @@ var reactquestion_SurveyQuestion = /** @class */ (function (_super) {
4176
4172
  var el = this.rootRef.current;
4177
4173
  if (el && el.getAttribute("data-rendered") !== "r") {
4178
4174
  el.setAttribute("data-rendered", "r");
4179
- el.setAttribute("data-name", this.question.name);
4180
4175
  if (this.question.afterRender) {
4181
4176
  this.question.afterRender(el);
4182
4177
  }
@@ -4227,7 +4222,7 @@ var reactquestion_SurveyQuestion = /** @class */ (function (_super) {
4227
4222
  var rootStyle = question.getRootStyle();
4228
4223
  var questionContent = this.wrapQuestionContent(this.renderQuestionContent());
4229
4224
  return (g(k, null,
4230
- g("div", { ref: this.rootRef, id: question.id, className: question.getRootCss(), style: rootStyle, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-labelledby": question.ariaLabelledBy, "aria-describedby": question.ariaDescribedBy, "aria-expanded": question.ariaExpanded },
4225
+ g("div", { ref: this.rootRef, id: question.id, className: question.getRootCss(), style: rootStyle, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-labelledby": question.ariaLabelledBy, "aria-describedby": question.ariaDescribedBy, "aria-expanded": question.ariaExpanded, "data-name": question.name },
4231
4226
  errorsAboveQuestion,
4232
4227
  headerTop,
4233
4228
  questionContent,
@@ -9208,6 +9203,8 @@ var reactquestion_paneldynamic_SurveyQuestionPanelDynamic = /** @class */ (funct
9208
9203
  var navV2 = this.renderNavigatorV2();
9209
9204
  var noEntriesPlaceholder = this.renderPlaceholder();
9210
9205
  return (g("div", { className: this.question.cssClasses.root },
9206
+ this.question.hasTabbedMenu ? g("div", { className: this.question.getTabsContainerCss() },
9207
+ g(action_bar_SurveyActionBar, { model: this.question.tabbedMenu })) : null,
9211
9208
  noEntriesPlaceholder,
9212
9209
  navTop,
9213
9210
  g("div", { className: this.question.cssClasses.panelsContainer }, panels),
@@ -10251,7 +10248,7 @@ var imagepicker_SurveyQuestionImagePickerItem = /** @class */ (function (_super)
10251
10248
  }
10252
10249
  var renderedItem = (g("div", { className: itemClass },
10253
10250
  g("label", { className: cssClasses.label },
10254
- g("input", { className: cssClasses.itemControl, id: this.question.getItemId(item), type: this.question.inputType, name: this.question.questionName, checked: isChecked, value: item.value, disabled: !this.question.getItemEnabled(item), readOnly: this.question.isReadOnlyAttr, onChange: this.handleOnChange, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
10251
+ g("input", { className: cssClasses.itemControl, id: this.question.getItemId(item), type: this.question.inputType, name: this.question.questionName, checked: isChecked, value: item.value, disabled: !this.question.getItemEnabled(item), readOnly: this.question.isReadOnlyAttr, onChange: this.handleOnChange, "aria-required": this.question.ariaRequired, "aria-label": item.locText.renderedHtml, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
10255
10252
  g("div", { className: this.question.cssClasses.itemDecorator },
10256
10253
  g("div", { className: this.question.cssClasses.imageContainer },
10257
10254
  !!this.question.cssClasses.checkedItemDecorator ?
@@ -11487,7 +11484,7 @@ var preact = compat_module_namespaceObject;
11487
11484
 
11488
11485
 
11489
11486
 
11490
- Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.22", "survey-js-ui");
11487
+ Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.24", "survey-js-ui");
11491
11488
 
11492
11489
 
11493
11490
  /***/ }),