survey-react-ui 1.9.119 → 1.9.120

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.9.119",
3
+ "version": "1.9.120",
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
  "dependencies": {
24
- "survey-core": "1.9.119",
24
+ "survey-core": "1.9.120",
25
25
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0",
26
26
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
27
27
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.119
2
+ * surveyjs - Survey JavaScript library v1.9.120
3
3
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -2586,7 +2586,7 @@ __webpack_require__.r(__webpack_exports__);
2586
2586
 
2587
2587
 
2588
2588
 
2589
- Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.119", "survey-react-ui");
2589
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.120", "survey-react-ui");
2590
2590
 
2591
2591
 
2592
2592
  /***/ }),
@@ -9749,7 +9749,7 @@ var englishStrings = {
9749
9749
  panelDynamicProgressText: "{0} of {1}",
9750
9750
  panelDynamicTabTextFormat: "Panel {panelIndex}",
9751
9751
  questionsProgressText: "Answered {0}/{1} questions",
9752
- emptySurvey: "The survey doesn't contain visible pages or questions.",
9752
+ emptySurvey: "The survey doesn't contain any visible elements.",
9753
9753
  completingSurvey: "Thank you for completing the survey",
9754
9754
  completingSurveyBefore: "Our records show that you have already completed this survey.",
9755
9755
  loadingSurvey: "Loading Survey...",
@@ -13176,7 +13176,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
13176
13176
  if (!this.question.allowClear || !this.question.cssClasses.cleanButtonIconId)
13177
13177
  return null;
13178
13178
  var style = { display: !this.question.showClearButton ? "none" : "" };
13179
- return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.cleanButton, style: style, onClick: this.clear, tabIndex: this.question.showClearButton ? 0 : -1 },
13179
+ return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.cleanButton, style: style, onClick: this.clear, "aria-hidden": "true" },
13180
13180
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { className: this.question.cssClasses.cleanButtonSvg, iconName: this.question.cssClasses.cleanButtonIconId, title: this.question.clearCaption, size: "auto" })));
13181
13181
  };
13182
13182
  SurveyQuestionDropdownBase.prototype.createChevronButton = function () {
@@ -14811,10 +14811,12 @@ var Survey = /** @class */ (function (_super) {
14811
14811
  }
14812
14812
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.survey.bodyContainerCss },
14813
14813
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "left" }),
14814
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: pageId, className: className, style: style },
14815
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "contentTop" }),
14816
- activePage,
14817
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "contentBottom" })),
14814
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: "sv-components-column sv-components-column--expandable" },
14815
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "center" }),
14816
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: pageId, className: className, style: style },
14817
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "contentTop" }),
14818
+ activePage,
14819
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "contentBottom" }))),
14818
14820
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "right" })));
14819
14821
  };
14820
14822
  Survey.prototype.renderPage = function (page) {
@@ -18549,12 +18551,15 @@ var SurveyQuestionRanking = /** @class */ (function (_super) {
18549
18551
  this.getItems(this.question.unRankingChoices, unrankedItem),
18550
18552
  this.question.unRankingChoices.length === 0 ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.containerPlaceholder },
18551
18553
  " ",
18552
- this.question.selectToRankEmptyRankedAreaText,
18554
+ this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText),
18553
18555
  " ") : null),
18554
18556
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.containersDivider }),
18555
18557
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.getContainerClasses("to"), "data-ranking": "to-container" },
18556
18558
  this.getItems(),
18557
- this.question.rankingChoices.length === 0 ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.containerPlaceholder }, this.question.selectToRankEmptyUnrankedAreaText) : null)));
18559
+ this.question.rankingChoices.length === 0 ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.containerPlaceholder },
18560
+ " ",
18561
+ this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText),
18562
+ " ") : null)));
18558
18563
  }
18559
18564
  };
18560
18565
  SurveyQuestionRanking.prototype.getItems = function (choices, unrankedItem) {
@@ -19272,6 +19277,7 @@ __webpack_require__.r(__webpack_exports__);
19272
19277
  /* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reactquestion_element */ "./src/react/reactquestion_element.tsx");
19273
19278
  /* harmony import */ var _reactquestion_factory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./reactquestion_factory */ "./src/react/reactquestion_factory.tsx");
19274
19279
  /* harmony import */ var _components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/svg-icon/svg-icon */ "./src/react/components/svg-icon/svg-icon.tsx");
19280
+ /* harmony import */ var _components_loading_indicator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/loading-indicator */ "./src/react/components/loading-indicator.tsx");
19275
19281
  var __extends = (undefined && undefined.__extends) || (function () {
19276
19282
  var extendStatics = function (d, b) {
19277
19283
  extendStatics = Object.setPrototypeOf ||
@@ -19291,6 +19297,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
19291
19297
 
19292
19298
 
19293
19299
 
19300
+
19294
19301
  var SurveyQuestionSignaturePad = /** @class */ (function (_super) {
19295
19302
  __extends(SurveyQuestionSignaturePad, _super);
19296
19303
  function SurveyQuestionSignaturePad(props) {
@@ -19308,19 +19315,25 @@ var SurveyQuestionSignaturePad = /** @class */ (function (_super) {
19308
19315
  SurveyQuestionSignaturePad.prototype.renderElement = function () {
19309
19316
  var _this = this;
19310
19317
  var cssClasses = this.question.cssClasses;
19318
+ var loadingIndicator = this.question.showLoadingIndicator ? this.renderLoadingIndicator() : null;
19311
19319
  var clearButton = this.renderCleanButton();
19312
19320
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.root, ref: function (root) { return (_this.setControl(root)); }, style: { width: this.question.renderedCanvasWidth } },
19313
19321
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: cssClasses.placeholder, style: { display: this.question.needShowPlaceholder() ? "" : "none" } }, this.renderLocString(this.question.locPlaceholder)),
19314
19322
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", null,
19315
19323
  this.renderBackgroundImage(),
19316
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("canvas", { tabIndex: 0, className: this.question.cssClasses.canvas })),
19317
- clearButton));
19324
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("canvas", { tabIndex: 0, className: this.question.cssClasses.canvas, onBlur: this.question.onBlur })),
19325
+ clearButton,
19326
+ loadingIndicator));
19318
19327
  };
19319
19328
  SurveyQuestionSignaturePad.prototype.renderBackgroundImage = function () {
19320
19329
  if (!this.question.backgroundImage)
19321
19330
  return null;
19322
19331
  return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { className: this.question.cssClasses.backgroundImage, src: this.question.backgroundImage, style: { width: this.question.renderedCanvasWidth } });
19323
19332
  };
19333
+ SurveyQuestionSignaturePad.prototype.renderLoadingIndicator = function () {
19334
+ return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.loadingIndicator },
19335
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_loading_indicator__WEBPACK_IMPORTED_MODULE_4__["LoadingIndicatorComponent"], null));
19336
+ };
19324
19337
  SurveyQuestionSignaturePad.prototype.renderCleanButton = function () {
19325
19338
  var _this = this;
19326
19339
  if (!this.question.canShowClearButton)