survey-react-ui 1.11.3 → 1.11.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": "1.11.3",
3
+ "version": "1.11.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",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "typings": "survey-react-ui.d.ts",
23
23
  "peerDependencies": {
24
- "survey-core": "1.11.3",
24
+ "survey-core": "1.11.4",
25
25
  "react": "^16.5.0 || ^17.0.1 || ^18.2.0",
26
26
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0"
27
27
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.11.3
2
+ * surveyjs - Survey JavaScript library v1.11.4
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -2344,7 +2344,8 @@ var Base = /** @class */ (function () {
2344
2344
  configurable: true
2345
2345
  });
2346
2346
  Base.prototype.afterRerender = function () {
2347
- this.onElementRerendered.fire(this, undefined);
2347
+ var _a;
2348
+ (_a = this.onElementRerendered) === null || _a === void 0 ? void 0 : _a.fire(this, undefined);
2348
2349
  };
2349
2350
  Base.currentDependencis = undefined;
2350
2351
  return Base;
@@ -3776,7 +3777,7 @@ __webpack_require__.r(__webpack_exports__);
3776
3777
 
3777
3778
 
3778
3779
 
3779
- Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.11.3", "survey-react-ui");
3780
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.11.4", "survey-react-ui");
3780
3781
 
3781
3782
 
3782
3783
  /***/ }),
@@ -8074,6 +8075,11 @@ var DomWindowHelper = /** @class */ (function () {
8074
8075
  return;
8075
8076
  window.removeEventListener(type, listener);
8076
8077
  };
8078
+ DomWindowHelper.matchMedia = function (mediaQueryString) {
8079
+ if (!DomWindowHelper.isAvailable() || typeof window.matchMedia === "undefined")
8080
+ return null;
8081
+ return window.matchMedia(mediaQueryString);
8082
+ };
8077
8083
  return DomWindowHelper;
8078
8084
  }());
8079
8085
 
@@ -12315,7 +12321,7 @@ var SurveyQuestionBoolean = /** @class */ (function (_super) {
12315
12321
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.sliderGhost, onClick: function (event) { return _this.handleOnLabelClick(event, _this.question.swapOrder); } },
12316
12322
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: this.question.getLabelCss(this.question.swapOrder) }, this.renderLocString(this.question.locLabelLeft))),
12317
12323
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.switch, onClick: this.handleOnSwitchClick },
12318
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.slider, style: { marginLeft: this.question.thumbMargin } }, this.question.isDeterminated && cssClasses.sliderText ?
12324
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.slider }, this.question.isDeterminated && cssClasses.sliderText ?
12319
12325
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: cssClasses.sliderText }, this.renderLocString(this.question.getCheckedLabel()))
12320
12326
  : null)),
12321
12327
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.sliderGhost, onClick: function (event) { return _this.handleOnLabelClick(event, !_this.question.swapOrder); } },
@@ -12830,7 +12836,7 @@ var ComponentsContainer = /** @class */ (function (_super) {
12830
12836
  return _element_factory__WEBPACK_IMPORTED_MODULE_1__["ReactElementFactory"].Instance.createElement(component.component, { survey: _this.props.survey, model: component.data, container: _this.props.container, key: component.id });
12831
12837
  }));
12832
12838
  }
12833
- return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-components-column" }, components.map(function (component) {
12839
+ return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-components-column" + " sv-components-container-" + this.props.container }, components.map(function (component) {
12834
12840
  return _element_factory__WEBPACK_IMPORTED_MODULE_1__["ReactElementFactory"].Instance.createElement(component.component, { survey: _this.props.survey, model: component.data, container: _this.props.container, key: component.id });
12835
12841
  }));
12836
12842
  };
@@ -21350,7 +21356,7 @@ var SurveyQuestionRankingItem = /** @class */ (function (_super) {
21350
21356
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("use", { xlinkHref: this.question.dashSvgIcon })));
21351
21357
  };
21352
21358
  SurveyQuestionRankingItem.prototype.renderElement = function () {
21353
- var itemContentComponent = _element_factory__WEBPACK_IMPORTED_MODULE_4__["ReactElementFactory"].Instance.createElement(this.question.itemContentComponent, { item: this.item, cssClasses: this.cssClasses });
21359
+ var itemContent = _element_factory__WEBPACK_IMPORTED_MODULE_4__["ReactElementFactory"].Instance.createElement(this.question.itemComponent, { item: this.item, cssClasses: this.cssClasses });
21354
21360
  return (react__WEBPACK_IMPORTED_MODULE_0__["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 },
21355
21361
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { tabIndex: -1, style: { outline: "none" } },
21356
21362
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.cssClasses.itemGhostNode }),
@@ -21361,7 +21367,7 @@ var SurveyQuestionRankingItem = /** @class */ (function (_super) {
21361
21367
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", { className: this.question.getIconFocusCss() },
21362
21368
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("use", { xlinkHref: this.question.arrowsSvgIcon }))),
21363
21369
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.getItemIndexClasses(this.item) }, (!this.unrankedItem && this.indexText) ? this.indexText : this.renderEmptyIcon()),
21364
- itemContentComponent))));
21370
+ itemContent))));
21365
21371
  };
21366
21372
  return SurveyQuestionRankingItem;
21367
21373
  }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["ReactSurveyElement"]));
@@ -21391,7 +21397,7 @@ var SurveyQuestionRankingItemContent = /** @class */ (function (_super) {
21391
21397
  return SurveyQuestionRankingItemContent;
21392
21398
  }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["ReactSurveyElement"]));
21393
21399
 
21394
- _element_factory__WEBPACK_IMPORTED_MODULE_4__["ReactElementFactory"].Instance.registerElement("sv-ranking-item-content", function (props) {
21400
+ _element_factory__WEBPACK_IMPORTED_MODULE_4__["ReactElementFactory"].Instance.registerElement("sv-ranking-item", function (props) {
21395
21401
  return react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionRankingItemContent, props);
21396
21402
  });
21397
21403
  _reactquestion_factory__WEBPACK_IMPORTED_MODULE_2__["ReactQuestionFactory"].Instance.registerQuestion("ranking", function (props) {
@@ -22921,6 +22927,7 @@ var settings = {
22921
22927
  * This setting applies to all TagBox questions on a page. You can use the [closeOnSelect](https://surveyjs.io/form-library/documentation/api-reference/dropdown-tag-box-model#closeOnSelect) property to specify the same setting for an individual TagBox question.
22922
22928
  */
22923
22929
  tagboxCloseOnSelect: false,
22930
+ dropdownSearchDelay: 500,
22924
22931
  /**
22925
22932
  * A function that activates a browser confirm dialog.
22926
22933
  *