survey-react-ui 1.12.25 → 1.12.27

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 (160) hide show
  1. package/fesm/survey-react-ui.js +5972 -0
  2. package/fesm/survey-react-ui.js.map +1 -0
  3. package/index.html +1 -1
  4. package/package.json +2 -2
  5. package/survey-react-ui.js +36 -26
  6. package/survey-react-ui.js.map +1 -1
  7. package/survey-react-ui.min.js +4 -4
  8. package/survey-react-ui.min.js.LICENSE.txt +1 -489
  9. package/typings/packages/survey-react-ui/src/reactquestion_element.d.ts +3 -0
  10. package/typings/src/components/action-bar/action-bar-item-dropdown.d.ts +1 -1
  11. package/typings/src/components/action-bar/action-bar-item.d.ts +1 -2
  12. package/typings/src/components/action-bar/action-bar-separator.d.ts +1 -1
  13. package/typings/src/components/action-bar/action-bar.d.ts +1 -1
  14. package/typings/src/components/brand-info.d.ts +1 -1
  15. package/typings/src/components/character-counter.d.ts +1 -1
  16. package/typings/src/components/components-container.d.ts +1 -1
  17. package/typings/src/components/file/file-choose-button.d.ts +1 -1
  18. package/typings/src/components/file/file-item.d.ts +1 -1
  19. package/typings/src/components/file/file-page.d.ts +1 -1
  20. package/typings/src/components/file/file-preview.d.ts +1 -1
  21. package/typings/src/components/header.d.ts +3 -1
  22. package/typings/src/components/list/list-item-content.d.ts +1 -1
  23. package/typings/src/components/list/list-item-group.d.ts +1 -1
  24. package/typings/src/components/list/list-item.d.ts +1 -1
  25. package/typings/src/components/list/list.d.ts +1 -1
  26. package/typings/src/components/matrix/row.d.ts +1 -1
  27. package/typings/src/components/matrix-actions/detail-button/detail-button.d.ts +1 -1
  28. package/typings/src/components/matrix-actions/drag-drop-icon/drag-drop-icon.d.ts +1 -1
  29. package/typings/src/components/matrix-actions/remove-button/remove-button.d.ts +1 -1
  30. package/typings/src/components/notifier.d.ts +1 -1
  31. package/typings/src/components/paneldynamic-actions/paneldynamic-add-btn.d.ts +1 -1
  32. package/typings/src/components/paneldynamic-actions/paneldynamic-next-btn.d.ts +1 -1
  33. package/typings/src/components/paneldynamic-actions/paneldynamic-prev-btn.d.ts +1 -1
  34. package/typings/src/components/paneldynamic-actions/paneldynamic-progress-text.d.ts +1 -1
  35. package/typings/src/components/paneldynamic-actions/paneldynamic-remove-btn.d.ts +1 -1
  36. package/typings/src/components/popup/popup-modal.d.ts +1 -1
  37. package/typings/src/components/popup/popup.d.ts +1 -1
  38. package/typings/src/components/question-error.d.ts +1 -1
  39. package/typings/src/components/rating/rating-dropdown-item.d.ts +1 -1
  40. package/typings/src/components/rating/rating-item-smiley.d.ts +1 -1
  41. package/typings/src/components/rating/rating-item-star.d.ts +1 -1
  42. package/typings/src/components/rating/rating-item.d.ts +1 -1
  43. package/typings/src/components/skeleton.d.ts +1 -1
  44. package/typings/src/components/survey-actions/survey-nav-button.d.ts +1 -1
  45. package/typings/src/components/survey-header/logo-image.d.ts +1 -1
  46. package/typings/src/components/survey-header/survey-header.d.ts +1 -1
  47. package/typings/src/components/svg-icon/svg-icon.d.ts +1 -1
  48. package/typings/src/components/text-area.d.ts +1 -1
  49. package/typings/src/components/title/title-actions.d.ts +1 -1
  50. package/typings/src/components/title/title-content.d.ts +1 -1
  51. package/typings/src/components/title/title-element.d.ts +1 -1
  52. package/typings/src/element-factory.d.ts +0 -1
  53. package/typings/src/element-header.d.ts +6 -3
  54. package/typings/src/reactquestion_buttongroup.d.ts +1 -1
  55. package/typings/src/reactquestion_element.d.ts +3 -0
  56. package/typings/src/reactquestion_factory.d.ts +0 -1
  57. package/typings/src/reactsurveymodel.d.ts +0 -1
  58. package/typings/src/string-editor.d.ts +1 -1
  59. package/typings/src/string-viewer.d.ts +1 -1
  60. package/typings/src/svgbundle.d.ts +1 -1
  61. package/survey-react-ui.d.ts +0 -2
  62. package/typings/react/boolean-checkbox.d.ts +0 -6
  63. package/typings/react/boolean-radio.d.ts +0 -8
  64. package/typings/react/boolean.d.ts +0 -17
  65. package/typings/react/components/action-bar/action-bar-item-dropdown.d.ts +0 -8
  66. package/typings/react/components/action-bar/action-bar-item.d.ts +0 -20
  67. package/typings/react/components/action-bar/action-bar-separator.d.ts +0 -5
  68. package/typings/react/components/action-bar/action-bar.d.ts +0 -21
  69. package/typings/react/components/brand-info.d.ts +0 -4
  70. package/typings/react/components/character-counter.d.ts +0 -11
  71. package/typings/react/components/components-container.d.ts +0 -4
  72. package/typings/react/components/cover.d.ts +0 -17
  73. package/typings/react/components/file/file-choose-button.d.ts +0 -8
  74. package/typings/react/components/file/file-preview.d.ts +0 -11
  75. package/typings/react/components/file-actions/file-choose-button.d.ts +0 -8
  76. package/typings/react/components/header.d.ts +0 -22
  77. package/typings/react/components/list/list-item-content.d.ts +0 -14
  78. package/typings/react/components/list/list-item-group.d.ts +0 -14
  79. package/typings/react/components/list/list-item.d.ts +0 -16
  80. package/typings/react/components/list/list.d.ts +0 -23
  81. package/typings/react/components/loading-indicator.d.ts +0 -4
  82. package/typings/react/components/matrix/row.d.ts +0 -20
  83. package/typings/react/components/matrix-actions/detail-button/detail-button.d.ts +0 -12
  84. package/typings/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.d.ts +0 -6
  85. package/typings/react/components/matrix-actions/remove-button/remove-button.d.ts +0 -9
  86. package/typings/react/components/notifier.d.ts +0 -11
  87. package/typings/react/components/paneldynamic-actions/paneldynamic-add-btn.d.ts +0 -12
  88. package/typings/react/components/paneldynamic-actions/paneldynamic-next-btn.d.ts +0 -6
  89. package/typings/react/components/paneldynamic-actions/paneldynamic-prev-btn.d.ts +0 -6
  90. package/typings/react/components/paneldynamic-actions/paneldynamic-progress-text.d.ts +0 -5
  91. package/typings/react/components/paneldynamic-actions/paneldynamic-remove-btn.d.ts +0 -6
  92. package/typings/react/components/popup/popup.d.ts +0 -42
  93. package/typings/react/components/question-error.d.ts +0 -10
  94. package/typings/react/components/rating/rating-dropdown-item.d.ts +0 -12
  95. package/typings/react/components/rating/rating-item-smiley.d.ts +0 -5
  96. package/typings/react/components/rating/rating-item-star.d.ts +0 -5
  97. package/typings/react/components/rating/rating-item.d.ts +0 -22
  98. package/typings/react/components/skeleton.d.ts +0 -4
  99. package/typings/react/components/survey-actions/survey-nav-button.d.ts +0 -8
  100. package/typings/react/components/survey-header/logo-image.d.ts +0 -11
  101. package/typings/react/components/survey-header/survey-header.d.ts +0 -17
  102. package/typings/react/components/svg-icon/svg-icon.d.ts +0 -9
  103. package/typings/react/components/title/title-actions.d.ts +0 -7
  104. package/typings/react/components/title/title-content.d.ts +0 -10
  105. package/typings/react/components/title/title-element.d.ts +0 -6
  106. package/typings/react/custom-widget.d.ts +0 -12
  107. package/typings/react/dropdown-base.d.ts +0 -25
  108. package/typings/react/dropdown-item.d.ts +0 -13
  109. package/typings/react/dropdown-select.d.ts +0 -6
  110. package/typings/react/element-factory.d.ts +0 -9
  111. package/typings/react/element-header.d.ts +0 -5
  112. package/typings/react/element.d.ts +0 -19
  113. package/typings/react/flow-panel.d.ts +0 -22
  114. package/typings/react/image.d.ts +0 -10
  115. package/typings/react/imagepicker.d.ts +0 -25
  116. package/typings/react/page.d.ts +0 -11
  117. package/typings/react/panel-base.d.ts +0 -25
  118. package/typings/react/panel.d.ts +0 -16
  119. package/typings/react/progress.d.ts +0 -9
  120. package/typings/react/progressButtons.d.ts +0 -19
  121. package/typings/react/progressToc.d.ts +0 -5
  122. package/typings/react/rating-dropdown.d.ts +0 -8
  123. package/typings/react/react-popup-survey.d.ts +0 -24
  124. package/typings/react/reactSurvey.d.ts +0 -41
  125. package/typings/react/reactSurveyNavigationBase.d.ts +0 -10
  126. package/typings/react/reactSurveyProgress.d.ts +0 -9
  127. package/typings/react/reactSurveyProgressButtons.d.ts +0 -19
  128. package/typings/react/reactSurveyProgressToc.d.ts +0 -5
  129. package/typings/react/reactquestion.d.ts +0 -81
  130. package/typings/react/reactquestion_buttongroup.d.ts +0 -23
  131. package/typings/react/reactquestion_checkbox.d.ts +0 -33
  132. package/typings/react/reactquestion_comment.d.ts +0 -31
  133. package/typings/react/reactquestion_custom.d.ts +0 -13
  134. package/typings/react/reactquestion_dropdown.d.ts +0 -7
  135. package/typings/react/reactquestion_element.d.ts +0 -65
  136. package/typings/react/reactquestion_empty.d.ts +0 -8
  137. package/typings/react/reactquestion_expression.d.ts +0 -8
  138. package/typings/react/reactquestion_factory.d.ts +0 -8
  139. package/typings/react/reactquestion_file.d.ts +0 -14
  140. package/typings/react/reactquestion_html.d.ts +0 -13
  141. package/typings/react/reactquestion_matrix.d.ts +0 -33
  142. package/typings/react/reactquestion_matrixdropdown.d.ts +0 -4
  143. package/typings/react/reactquestion_matrixdropdownbase.d.ts +0 -29
  144. package/typings/react/reactquestion_matrixdynamic.d.ts +0 -20
  145. package/typings/react/reactquestion_multipletext.d.ts +0 -22
  146. package/typings/react/reactquestion_paneldynamic.d.ts +0 -28
  147. package/typings/react/reactquestion_radiogroup.d.ts +0 -32
  148. package/typings/react/reactquestion_ranking.d.ts +0 -30
  149. package/typings/react/reactquestion_rating.d.ts +0 -10
  150. package/typings/react/reactquestion_tagbox.d.ts +0 -10
  151. package/typings/react/reactquestion_text.d.ts +0 -11
  152. package/typings/react/reactsurveymodel.d.ts +0 -9
  153. package/typings/react/reacttimerpanel.d.ts +0 -11
  154. package/typings/react/row.d.ts +0 -21
  155. package/typings/react/signaturepad.d.ts +0 -11
  156. package/typings/react/string-editor.d.ts +0 -11
  157. package/typings/react/string-viewer.d.ts +0 -15
  158. package/typings/react/svgbundle.d.ts +0 -7
  159. package/typings/react/tagbox-filter.d.ts +0 -23
  160. package/typings/react/tagbox-item.d.ts +0 -10
package/index.html CHANGED
@@ -10,7 +10,7 @@
10
10
  <script src="https://unpkg.com/react-dom@16.5.0/umd/react-dom.development.js"></script>
11
11
  <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js"></script>
12
12
  <script src="./node_modules/survey-core/survey.core.js"></script>
13
- <link rel="stylesheet" href="./node_modules/survey-core/default.css" />
13
+ <link rel="stylesheet" href="./node_modules/survey-core/survey-core.css" />
14
14
  </head>
15
15
 
16
16
  <body spellcheck="false">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-react-ui",
3
- "version": "1.12.25",
3
+ "version": "1.12.27",
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.25",
24
+ "survey-core": "1.12.27",
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.25
2
+ * surveyjs - Survey JavaScript library v1.12.27
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.25
113
+ * surveyjs - Survey JavaScript library v1.12.27
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.25
1046
+ * surveyjs - Survey JavaScript library v1.12.27
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
  */
@@ -2215,6 +2215,21 @@ var reactquestion_element_SurveyElementBase = /** @class */ (function (_super) {
2215
2215
  var _this = _super.call(this, props) || this;
2216
2216
  _this._allowComponentUpdate = true;
2217
2217
  _this.prevStateElements = [];
2218
+ _this.propertyValueChangedHandler = function (hash, key, val) {
2219
+ if (hash[key] !== val) {
2220
+ hash[key] = val;
2221
+ if (!_this.canUsePropInState(key))
2222
+ return;
2223
+ if (_this.isRendering)
2224
+ return;
2225
+ _this.changedStatePropNameValue = key;
2226
+ _this.setState(function (state) {
2227
+ var newState = {};
2228
+ newState[key] = val;
2229
+ return newState;
2230
+ });
2231
+ }
2232
+ };
2218
2233
  return _this;
2219
2234
  }
2220
2235
  SurveyElementBase.renderLocString = function (locStr, style, key) {
@@ -2323,6 +2338,9 @@ var reactquestion_element_SurveyElementBase = /** @class */ (function (_super) {
2323
2338
  };
2324
2339
  SurveyElementBase.prototype.unMakeBaseElementsReact = function () {
2325
2340
  var els = this.getStateElements();
2341
+ this.unMakeBaseElementsReactive(els);
2342
+ };
2343
+ SurveyElementBase.prototype.unMakeBaseElementsReactive = function (els) {
2326
2344
  for (var i = 0; i < els.length; i++) {
2327
2345
  this.unMakeBaseElementReact(els[i]);
2328
2346
  }
@@ -2354,6 +2372,9 @@ var reactquestion_element_SurveyElementBase = /** @class */ (function (_super) {
2354
2372
  SurveyElementBase.prototype.canMakeReact = function (stateElement) {
2355
2373
  return !!stateElement && !!stateElement.iteratePropertiesHash;
2356
2374
  };
2375
+ SurveyElementBase.prototype.isCurrentStateElement = function (stateElement) {
2376
+ return !!stateElement && !!stateElement.setPropertyValueCoreHandler && stateElement.setPropertyValueCoreHandler === this.propertyValueChangedHandler;
2377
+ };
2357
2378
  SurveyElementBase.prototype.makeBaseElementReact = function (stateElement) {
2358
2379
  var _this = this;
2359
2380
  if (!this.canMakeReact(stateElement))
@@ -2376,21 +2397,7 @@ var reactquestion_element_SurveyElementBase = /** @class */ (function (_super) {
2376
2397
  };
2377
2398
  }
2378
2399
  });
2379
- stateElement.setPropertyValueCoreHandler = function (hash, key, val) {
2380
- if (hash[key] !== val) {
2381
- hash[key] = val;
2382
- if (!_this.canUsePropInState(key))
2383
- return;
2384
- if (_this.isRendering)
2385
- return;
2386
- _this.changedStatePropNameValue = key;
2387
- _this.setState(function (state) {
2388
- var newState = {};
2389
- newState[key] = val;
2390
- return newState;
2391
- });
2392
- }
2393
- };
2400
+ stateElement.setPropertyValueCoreHandler = this.propertyValueChangedHandler;
2394
2401
  };
2395
2402
  SurveyElementBase.prototype.canUsePropInState = function (key) {
2396
2403
  return true;
@@ -2398,6 +2405,11 @@ var reactquestion_element_SurveyElementBase = /** @class */ (function (_super) {
2398
2405
  SurveyElementBase.prototype.unMakeBaseElementReact = function (stateElement) {
2399
2406
  if (!this.canMakeReact(stateElement))
2400
2407
  return;
2408
+ if (!this.isCurrentStateElement(stateElement)) {
2409
+ // eslint-disable-next-line no-console
2410
+ // console.warn("Looks like the component is bound to another survey element. It is not supported and can lead to issues.");
2411
+ // return;
2412
+ }
2401
2413
  stateElement.setPropertyValueCoreHandler = undefined;
2402
2414
  stateElement.iteratePropertiesHash(function (hash, key) {
2403
2415
  var val = hash[key];
@@ -2801,8 +2813,10 @@ var row_SurveyRow = /** @class */ (function (_super) {
2801
2813
  };
2802
2814
  SurveyRow.prototype.componentWillUnmount = function () {
2803
2815
  _super.prototype.componentWillUnmount.call(this);
2804
- this.row.setRootElement(undefined);
2805
- this.stopLazyRendering();
2816
+ if (this.isCurrentStateElement(this.getStateElement())) {
2817
+ this.row.setRootElement(undefined);
2818
+ this.stopLazyRendering();
2819
+ }
2806
2820
  };
2807
2821
  SurveyRow.prototype.createElement = function (element, elementIndex) {
2808
2822
  var index = elementIndex ? "-" + elementIndex : 0;
@@ -4415,10 +4429,6 @@ var page_SurveyPage = /** @class */ (function (_super) {
4415
4429
  enumerable: false,
4416
4430
  configurable: true
4417
4431
  });
4418
- // shouldComponentUpdate(nextProps: any, nextState: any): boolean {
4419
- // if(!super.shouldComponentUpdate(nextProps, nextState)) return false;
4420
- // return true;
4421
- // }
4422
4432
  SurveyPage.prototype.renderElement = function () {
4423
4433
  var title = this.renderTitle();
4424
4434
  var description = this.renderDescription();
@@ -10011,7 +10021,7 @@ var imagepicker_SurveyQuestionImagePicker = /** @class */ (function (_super) {
10011
10021
  });
10012
10022
  SurveyQuestionImagePicker.prototype.renderElement = function () {
10013
10023
  var cssClasses = this.question.cssClasses;
10014
- return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("fieldset", { className: this.question.getSelectBaseRootCss() },
10024
+ return (external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("fieldset", { className: this.question.getSelectBaseRootCss(), style: this.question.getContainerStyle() },
10015
10025
  external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"]("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
10016
10026
  this.question.hasColumns ? this.getColumns(cssClasses) : this.getItems(cssClasses)));
10017
10027
  };
@@ -11311,7 +11321,7 @@ ReactElementFactory.Instance.registerElement(external_root_Survey_commonjs2_surv
11311
11321
 
11312
11322
 
11313
11323
 
11314
- Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.25", "survey-react-ui");
11324
+ Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.27", "survey-react-ui");
11315
11325
 
11316
11326
 
11317
11327
  /***/ }),