survey-js-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-js-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",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {},
33
33
  "peerDependencies": {
34
- "survey-core": "2.3.3",
34
+ "survey-core": "2.3.4",
35
35
  "@types/react-dom": "*",
36
36
  "@types/react": "*"
37
37
  }
package/survey-js-ui.js CHANGED
@@ -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
  */
@@ -23,7 +23,7 @@ return /******/ (() => { // webpackBootstrap
23
23
  /***/ (function(module) {
24
24
 
25
25
  /*!
26
- * surveyjs - Survey JavaScript library v2.3.3
26
+ * surveyjs - Survey JavaScript library v2.3.4
27
27
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
28
28
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
29
29
  */
@@ -830,7 +830,7 @@ path.keys().forEach(function (key) {
830
830
  /***/ (function(module) {
831
831
 
832
832
  /*!
833
- * surveyjs - Survey JavaScript library v2.3.3
833
+ * surveyjs - Survey JavaScript library v2.3.4
834
834
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
835
835
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
836
836
  */
@@ -3574,12 +3574,10 @@ __webpack_require__.r(__webpack_exports__);
3574
3574
  /* harmony export */ List: () => (/* binding */ List)
3575
3575
  /* harmony export */ });
3576
3576
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/preact/compat/dist/compat.module.js");
3577
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
3578
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
3579
- /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../element-factory */ "../survey-react-ui/src/element-factory.tsx");
3580
- /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../reactquestion_element */ "../survey-react-ui/src/reactquestion_element.tsx");
3581
- /* harmony import */ var _svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../svg-icon/svg-icon */ "../survey-react-ui/src/components/svg-icon/svg-icon.tsx");
3582
- /* harmony import */ var _list_item__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./list-item */ "../survey-react-ui/src/components/list/list-item.tsx");
3577
+ /* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../element-factory */ "../survey-react-ui/src/element-factory.tsx");
3578
+ /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../reactquestion_element */ "../survey-react-ui/src/reactquestion_element.tsx");
3579
+ /* harmony import */ var _svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../svg-icon/svg-icon */ "../survey-react-ui/src/components/svg-icon/svg-icon.tsx");
3580
+ /* harmony import */ var _list_item__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./list-item */ "../survey-react-ui/src/components/list/list-item.tsx");
3583
3581
  var __extends = (undefined && undefined.__extends) || (function () {
3584
3582
  var extendStatics = function (d, b) {
3585
3583
  extendStatics = Object.setPrototypeOf ||
@@ -3600,7 +3598,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
3600
3598
 
3601
3599
 
3602
3600
 
3603
-
3604
3601
  var List = /** @class */ (function (_super) {
3605
3602
  __extends(List, _super);
3606
3603
  function List(props) {
@@ -3676,7 +3673,7 @@ var List = /** @class */ (function (_super) {
3676
3673
  return null;
3677
3674
  }
3678
3675
  return items.map(function (item, itemIndex) {
3679
- return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_list_item__WEBPACK_IMPORTED_MODULE_5__.ListItem, { model: _this.model, item: item, key: "item" + itemIndex }));
3676
+ return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_list_item__WEBPACK_IMPORTED_MODULE_4__.ListItem, { model: _this.model, item: item, key: "item" + itemIndex }));
3680
3677
  });
3681
3678
  };
3682
3679
  List.prototype.searchElementContent = function () {
@@ -3685,8 +3682,9 @@ var List = /** @class */ (function (_super) {
3685
3682
  return null;
3686
3683
  else {
3687
3684
  var onChange = function (e) {
3688
- var root = survey_core__WEBPACK_IMPORTED_MODULE_1__.settings.environment.root;
3689
- if (e.target === root.activeElement) {
3685
+ var _a;
3686
+ var activeElement = (_a = e.target.getRootNode()) === null || _a === void 0 ? void 0 : _a.activeElement;
3687
+ if (e.target === activeElement) {
3690
3688
  _this.model.filterString = e.target.value;
3691
3689
  }
3692
3690
  };
@@ -3695,10 +3693,10 @@ var List = /** @class */ (function (_super) {
3695
3693
  };
3696
3694
  var clearButton = this.model.showSearchClearButton && !!this.model.filterString ?
3697
3695
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", { className: this.model.cssClasses.searchClearButtonIcon, onClick: function (event) { _this.model.onClickSearchClearButton(event); } },
3698
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_4__.SvgIcon, { iconName: "icon-searchclear", size: "auto" })) : null;
3696
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { iconName: "icon-searchclear", size: "auto" })) : null;
3699
3697
  return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.model.cssClasses.filter },
3700
3698
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.model.cssClasses.filterIcon },
3701
- react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_4__.SvgIcon, { iconName: "icon-search", size: "auto" })),
3699
+ react__WEBPACK_IMPORTED_MODULE_0__.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { iconName: "icon-search", size: "auto" })),
3702
3700
  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 }),
3703
3701
  clearButton));
3704
3702
  }
@@ -3709,9 +3707,9 @@ var List = /** @class */ (function (_super) {
3709
3707
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: this.model.cssClasses.emptyText, "aria-label": this.model.emptyMessage }, this.model.emptyMessage)));
3710
3708
  };
3711
3709
  return List;
3712
- }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
3710
+ }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
3713
3711
 
3714
- _element_factory__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("sv-list", function (props) {
3712
+ _element_factory__WEBPACK_IMPORTED_MODULE_1__.ReactElementFactory.Instance.registerElement("sv-list", function (props) {
3715
3713
  return react__WEBPACK_IMPORTED_MODULE_0__.createElement(List, props);
3716
3714
  });
3717
3715
 
@@ -6157,7 +6155,9 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
6157
6155
  var root = survey_core__WEBPACK_IMPORTED_MODULE_1__.settings.environment.root;
6158
6156
  var dropdownListModel = this.dropdownListModel;
6159
6157
  var onInputChange = function (e) {
6160
- if (e.target === root.activeElement) {
6158
+ var _a;
6159
+ var activeElement = (_a = e.target.getRootNode()) === null || _a === void 0 ? void 0 : _a.activeElement;
6160
+ if (e.target === activeElement) {
6161
6161
  dropdownListModel.inputStringRendered = e.target.value;
6162
6162
  }
6163
6163
  };
@@ -13240,8 +13240,9 @@ var TagboxFilterString = /** @class */ (function (_super) {
13240
13240
  }
13241
13241
  };
13242
13242
  TagboxFilterString.prototype.onChange = function (e) {
13243
- var root = survey_core__WEBPACK_IMPORTED_MODULE_1__.settings.environment.root;
13244
- if (e.target === root.activeElement) {
13243
+ var _a;
13244
+ var activeElement = (_a = e.target.getRootNode()) === null || _a === void 0 ? void 0 : _a.activeElement;
13245
+ if (e.target === activeElement) {
13245
13246
  this.model.inputStringRendered = e.target.value;
13246
13247
  }
13247
13248
  };
@@ -13811,7 +13812,7 @@ var preact = react__WEBPACK_IMPORTED_MODULE_0__;
13811
13812
 
13812
13813
 
13813
13814
 
13814
- (0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.3.3"), "survey-js-ui");
13815
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.3.4"), "survey-js-ui");
13815
13816
 
13816
13817
  })();
13817
13818