survey-react-ui 2.3.3 → 2.3.4

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": "2.3.3",
3
+ "version": "2.3.4",
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",
@@ -29,7 +29,7 @@
29
29
  }
30
30
  },
31
31
  "peerDependencies": {
32
- "survey-core": "2.3.3",
32
+ "survey-core": "2.3.4",
33
33
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
34
34
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0"
35
35
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v2.3.3
2
+ * surveyjs - Survey JavaScript library v2.3.4
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
  */
@@ -28,7 +28,7 @@ __webpack_require__.r(__webpack_exports__);
28
28
  /* harmony export */ icons: () => (/* binding */ iconsV1)
29
29
  /* harmony export */ });
30
30
  /*!
31
- * surveyjs - Survey JavaScript library v2.3.3
31
+ * surveyjs - Survey JavaScript library v2.3.4
32
32
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
33
33
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
34
34
  */
@@ -114,7 +114,7 @@ __webpack_require__.r(__webpack_exports__);
114
114
  /* harmony export */ icons: () => (/* binding */ iconsV2)
115
115
  /* harmony export */ });
116
116
  /*!
117
- * surveyjs - Survey JavaScript library v2.3.3
117
+ * surveyjs - Survey JavaScript library v2.3.4
118
118
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
119
119
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
120
120
  */
@@ -2134,12 +2134,10 @@ __webpack_require__.r(__webpack_exports__);
2134
2134
  /* harmony export */ });
2135
2135
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
2136
2136
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
2137
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
2138
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
2139
- /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../element-factory */ "./src/element-factory.tsx");
2140
- /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../reactquestion_element */ "./src/reactquestion_element.tsx");
2141
- /* harmony import */ var _svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../svg-icon/svg-icon */ "./src/components/svg-icon/svg-icon.tsx");
2142
- /* harmony import */ var _list_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./list-item */ "./src/components/list/list-item.tsx");
2137
+ /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../element-factory */ "./src/element-factory.tsx");
2138
+ /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../reactquestion_element */ "./src/reactquestion_element.tsx");
2139
+ /* harmony import */ var _svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../svg-icon/svg-icon */ "./src/components/svg-icon/svg-icon.tsx");
2140
+ /* harmony import */ var _list_item__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./list-item */ "./src/components/list/list-item.tsx");
2143
2141
  var __extends = (undefined && undefined.__extends) || (function () {
2144
2142
  var extendStatics = function (d, b) {
2145
2143
  extendStatics = Object.setPrototypeOf ||
@@ -2160,7 +2158,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
2160
2158
 
2161
2159
 
2162
2160
 
2163
-
2164
2161
  var List = /** @class */ (function (_super) {
2165
2162
  __extends(List, _super);
2166
2163
  function List(props) {
@@ -2236,7 +2233,7 @@ var List = /** @class */ (function (_super) {
2236
2233
  return null;
2237
2234
  }
2238
2235
  return items.map(function (item, itemIndex) {
2239
- return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_list_item__WEBPACK_IMPORTED_MODULE_5__.ListItem, { model: _this.model, item: item, key: "item" + itemIndex }));
2236
+ return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_list_item__WEBPACK_IMPORTED_MODULE_4__.ListItem, { model: _this.model, item: item, key: "item" + itemIndex }));
2240
2237
  });
2241
2238
  };
2242
2239
  List.prototype.searchElementContent = function () {
@@ -2245,8 +2242,9 @@ var List = /** @class */ (function (_super) {
2245
2242
  return null;
2246
2243
  else {
2247
2244
  var onChange = function (e) {
2248
- var root = survey_core__WEBPACK_IMPORTED_MODULE_1__.settings.environment.root;
2249
- if (e.target === root.activeElement) {
2245
+ var _a;
2246
+ var activeElement = (_a = e.target.getRootNode()) === null || _a === void 0 ? void 0 : _a.activeElement;
2247
+ if (e.target === activeElement) {
2250
2248
  _this.model.filterString = e.target.value;
2251
2249
  }
2252
2250
  };
@@ -2255,10 +2253,10 @@ var List = /** @class */ (function (_super) {
2255
2253
  };
2256
2254
  var clearButton = this.model.showSearchClearButton && !!this.model.filterString ?
2257
2255
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: this.model.cssClasses.searchClearButtonIcon, onClick: function (event) { _this.model.onClickSearchClearButton(event); } },
2258
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_4__.SvgIcon, { iconName: "icon-searchclear", size: "auto" })) : null;
2256
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { iconName: "icon-searchclear", size: "auto" })) : null;
2259
2257
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.model.cssClasses.filter },
2260
2258
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.model.cssClasses.filterIcon },
2261
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_4__.SvgIcon, { iconName: "icon-search", size: "auto" })),
2259
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { iconName: "icon-search", size: "auto" })),
2262
2260
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { type: "text", className: this.model.cssClasses.filterInput, "aria-label": this.model.filterStringPlaceholder, placeholder: this.model.filterStringPlaceholder, value: this.state.filterString, onKeyUp: onKeyUp, onChange: onChange }),
2263
2261
  clearButton));
2264
2262
  }
@@ -2269,9 +2267,9 @@ var List = /** @class */ (function (_super) {
2269
2267
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.model.cssClasses.emptyText, "aria-label": this.model.emptyMessage }, this.model.emptyMessage)));
2270
2268
  };
2271
2269
  return List;
2272
- }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
2270
+ }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
2273
2271
 
2274
- _element_factory__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("sv-list", function (props) {
2272
+ _element_factory__WEBPACK_IMPORTED_MODULE_1__.ReactElementFactory.Instance.registerElement("sv-list", function (props) {
2275
2273
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement(List, props);
2276
2274
  });
2277
2275
 
@@ -4719,7 +4717,9 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
4719
4717
  var root = survey_core__WEBPACK_IMPORTED_MODULE_1__.settings.environment.root;
4720
4718
  var dropdownListModel = this.dropdownListModel;
4721
4719
  var onInputChange = function (e) {
4722
- if (e.target === root.activeElement) {
4720
+ var _a;
4721
+ var activeElement = (_a = e.target.getRootNode()) === null || _a === void 0 ? void 0 : _a.activeElement;
4722
+ if (e.target === activeElement) {
4723
4723
  dropdownListModel.inputStringRendered = e.target.value;
4724
4724
  }
4725
4725
  };
@@ -11797,8 +11797,9 @@ var TagboxFilterString = /** @class */ (function (_super) {
11797
11797
  }
11798
11798
  };
11799
11799
  TagboxFilterString.prototype.onChange = function (e) {
11800
- var root = survey_core__WEBPACK_IMPORTED_MODULE_1__.settings.environment.root;
11801
- if (e.target === root.activeElement) {
11800
+ var _a;
11801
+ var activeElement = (_a = e.target.getRootNode()) === null || _a === void 0 ? void 0 : _a.activeElement;
11802
+ if (e.target === activeElement) {
11802
11803
  this.model.inputStringRendered = e.target.value;
11803
11804
  }
11804
11805
  };
@@ -12137,7 +12138,7 @@ __webpack_require__.r(__webpack_exports__);
12137
12138
 
12138
12139
 
12139
12140
 
12140
- (0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.3.3"), "survey-react-ui");
12141
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_0__.checkLibraryVersion)("".concat("2.3.4"), "survey-react-ui");
12141
12142
 
12142
12143
  })();
12143
12144