survey-core 1.9.132 → 1.9.133

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 (221) hide show
  1. package/defaultV2.css +32 -12
  2. package/defaultV2.css.map +1 -1
  3. package/defaultV2.fontless.css +32 -12
  4. package/defaultV2.fontless.css.map +1 -1
  5. package/defaultV2.fontless.min.css +2 -2
  6. package/defaultV2.min.css +2 -2
  7. package/i18n/arabic.js +1 -1
  8. package/i18n/arabic.min.js +1 -1
  9. package/i18n/basque.js +1 -1
  10. package/i18n/basque.min.js +1 -1
  11. package/i18n/bulgarian.js +1 -1
  12. package/i18n/bulgarian.min.js +1 -1
  13. package/i18n/catalan.js +1 -1
  14. package/i18n/catalan.min.js +1 -1
  15. package/i18n/croatian.js +1 -1
  16. package/i18n/croatian.min.js +1 -1
  17. package/i18n/czech.js +1 -1
  18. package/i18n/czech.min.js +1 -1
  19. package/i18n/danish.js +1 -1
  20. package/i18n/danish.min.js +1 -1
  21. package/i18n/dutch.js +1 -1
  22. package/i18n/dutch.min.js +1 -1
  23. package/i18n/english.js +1 -1
  24. package/i18n/english.min.js +1 -1
  25. package/i18n/estonian.js +1 -1
  26. package/i18n/estonian.min.js +1 -1
  27. package/i18n/finnish.js +1 -1
  28. package/i18n/finnish.min.js +1 -1
  29. package/i18n/french.js +1 -1
  30. package/i18n/french.min.js +1 -1
  31. package/i18n/georgian.js +1 -1
  32. package/i18n/georgian.min.js +1 -1
  33. package/i18n/german.js +1 -1
  34. package/i18n/german.min.js +1 -1
  35. package/i18n/greek.js +1 -1
  36. package/i18n/greek.min.js +1 -1
  37. package/i18n/hebrew.js +1 -1
  38. package/i18n/hebrew.min.js +1 -1
  39. package/i18n/hindi.js +1 -1
  40. package/i18n/hindi.min.js +1 -1
  41. package/i18n/hungarian.js +1 -1
  42. package/i18n/hungarian.min.js +1 -1
  43. package/i18n/icelandic.js +1 -1
  44. package/i18n/icelandic.min.js +1 -1
  45. package/i18n/index.js +1 -1
  46. package/i18n/index.min.js +1 -1
  47. package/i18n/indonesian.js +1 -1
  48. package/i18n/indonesian.min.js +1 -1
  49. package/i18n/italian.js +1 -1
  50. package/i18n/italian.min.js +1 -1
  51. package/i18n/japanese.js +1 -1
  52. package/i18n/japanese.min.js +1 -1
  53. package/i18n/kazakh.js +1 -1
  54. package/i18n/kazakh.min.js +1 -1
  55. package/i18n/korean.js +1 -1
  56. package/i18n/korean.min.js +1 -1
  57. package/i18n/latvian.js +1 -1
  58. package/i18n/latvian.min.js +1 -1
  59. package/i18n/lithuanian.js +1 -1
  60. package/i18n/lithuanian.min.js +1 -1
  61. package/i18n/macedonian.js +1 -1
  62. package/i18n/macedonian.min.js +1 -1
  63. package/i18n/malay.js +1 -1
  64. package/i18n/malay.min.js +1 -1
  65. package/i18n/nl-BE.js +1 -1
  66. package/i18n/nl-BE.min.js +1 -1
  67. package/i18n/norwegian.js +1 -1
  68. package/i18n/norwegian.min.js +1 -1
  69. package/i18n/persian.js +1 -1
  70. package/i18n/persian.min.js +1 -1
  71. package/i18n/polish.js +1 -1
  72. package/i18n/polish.min.js +1 -1
  73. package/i18n/portuguese-br.js +1 -1
  74. package/i18n/portuguese-br.min.js +1 -1
  75. package/i18n/portuguese.js +1 -1
  76. package/i18n/portuguese.min.js +1 -1
  77. package/i18n/romanian.js +1 -1
  78. package/i18n/romanian.min.js +1 -1
  79. package/i18n/russian.js +1 -1
  80. package/i18n/russian.min.js +1 -1
  81. package/i18n/serbian.js +1 -1
  82. package/i18n/serbian.min.js +1 -1
  83. package/i18n/simplified-chinese.js +1 -1
  84. package/i18n/simplified-chinese.min.js +1 -1
  85. package/i18n/slovak.js +1 -1
  86. package/i18n/slovak.min.js +1 -1
  87. package/i18n/spanish.js +1 -1
  88. package/i18n/spanish.min.js +1 -1
  89. package/i18n/swahili.js +1 -1
  90. package/i18n/swahili.min.js +1 -1
  91. package/i18n/swedish.js +1 -1
  92. package/i18n/swedish.min.js +1 -1
  93. package/i18n/tajik.js +1 -1
  94. package/i18n/tajik.min.js +1 -1
  95. package/i18n/telugu.js +1 -1
  96. package/i18n/telugu.min.js +1 -1
  97. package/i18n/thai.js +1 -1
  98. package/i18n/thai.min.js +1 -1
  99. package/i18n/traditional-chinese.js +1 -1
  100. package/i18n/traditional-chinese.min.js +1 -1
  101. package/i18n/turkish.js +1 -1
  102. package/i18n/turkish.min.js +1 -1
  103. package/i18n/ukrainian.js +1 -1
  104. package/i18n/ukrainian.min.js +1 -1
  105. package/i18n/urdu.js +1 -1
  106. package/i18n/urdu.min.js +1 -1
  107. package/i18n/vietnamese.js +1 -1
  108. package/i18n/vietnamese.min.js +1 -1
  109. package/i18n/welsh.js +1 -1
  110. package/i18n/welsh.min.js +1 -1
  111. package/modern.css +13 -1
  112. package/modern.css.map +1 -1
  113. package/modern.fontless.css +13 -1
  114. package/modern.fontless.css.map +1 -1
  115. package/modern.fontless.min.css +2 -2
  116. package/modern.min.css +2 -2
  117. package/package.json +1 -1
  118. package/plugins/bootstrap-integration.js +1 -1
  119. package/plugins/bootstrap-integration.min.js +1 -1
  120. package/plugins/bootstrap-material-integration.js +1 -1
  121. package/plugins/bootstrap-material-integration.min.js +1 -1
  122. package/survey.core.js +56 -10
  123. package/survey.core.js.map +1 -1
  124. package/survey.core.min.js +3 -3
  125. package/survey.css +13 -1
  126. package/survey.css.map +1 -1
  127. package/survey.i18n.js +1 -1
  128. package/survey.i18n.min.js +1 -1
  129. package/survey.min.css +2 -2
  130. package/themes/borderless-dark-panelless.js +1 -1
  131. package/themes/borderless-dark-panelless.min.js +1 -1
  132. package/themes/borderless-dark.js +1 -1
  133. package/themes/borderless-dark.min.js +1 -1
  134. package/themes/borderless-light-panelless..js +1 -1
  135. package/themes/borderless-light-panelless..min.js +1 -1
  136. package/themes/borderless-light.js +1 -1
  137. package/themes/borderless-light.min.js +1 -1
  138. package/themes/contrast-dark-panelless.js +1 -1
  139. package/themes/contrast-dark-panelless.min.js +1 -1
  140. package/themes/contrast-dark.js +1 -1
  141. package/themes/contrast-dark.min.js +1 -1
  142. package/themes/contrast-light-panelless.js +1 -1
  143. package/themes/contrast-light-panelless.min.js +1 -1
  144. package/themes/contrast-light.js +1 -1
  145. package/themes/contrast-light.min.js +1 -1
  146. package/themes/default-dark-panelless.js +1 -1
  147. package/themes/default-dark-panelless.min.js +1 -1
  148. package/themes/default-dark.js +1 -1
  149. package/themes/default-dark.min.js +1 -1
  150. package/themes/default-light-panelless.js +1 -1
  151. package/themes/default-light-panelless.min.js +1 -1
  152. package/themes/default-light.js +1 -1
  153. package/themes/default-light.min.js +1 -1
  154. package/themes/doubleborder-dark-panelless.js +1 -1
  155. package/themes/doubleborder-dark-panelless.min.js +1 -1
  156. package/themes/doubleborder-dark.js +1 -1
  157. package/themes/doubleborder-dark.min.js +1 -1
  158. package/themes/doubleborder-light-panelles.js +1 -1
  159. package/themes/doubleborder-light-panelles.min.js +1 -1
  160. package/themes/doubleborder-light.js +1 -1
  161. package/themes/doubleborder-light.min.js +1 -1
  162. package/themes/flat-dark-panelless.js +1 -1
  163. package/themes/flat-dark-panelless.min.js +1 -1
  164. package/themes/flat-dark.js +1 -1
  165. package/themes/flat-dark.min.js +1 -1
  166. package/themes/flat-light-panelless.js +1 -1
  167. package/themes/flat-light-panelless.min.js +1 -1
  168. package/themes/flat-light.js +1 -1
  169. package/themes/flat-light.min.js +1 -1
  170. package/themes/index.js +1 -1
  171. package/themes/index.min.js +1 -1
  172. package/themes/layered-dark-panelless.js +1 -1
  173. package/themes/layered-dark-panelless.min.js +1 -1
  174. package/themes/layered-dark.js +1 -1
  175. package/themes/layered-dark.min.js +1 -1
  176. package/themes/layered-light-panelless.js +1 -1
  177. package/themes/layered-light-panelless.min.js +1 -1
  178. package/themes/layered-light.js +1 -1
  179. package/themes/layered-light.min.js +1 -1
  180. package/themes/plain-dark-panelless.js +1 -1
  181. package/themes/plain-dark-panelless.min.js +1 -1
  182. package/themes/plain-dark.js +1 -1
  183. package/themes/plain-dark.min.js +1 -1
  184. package/themes/plain-light-panelless.js +1 -1
  185. package/themes/plain-light-panelless.min.js +1 -1
  186. package/themes/plain-light.js +1 -1
  187. package/themes/plain-light.min.js +1 -1
  188. package/themes/sharp-dark-panelless.js +1 -1
  189. package/themes/sharp-dark-panelless.min.js +1 -1
  190. package/themes/sharp-dark.js +1 -1
  191. package/themes/sharp-dark.min.js +1 -1
  192. package/themes/sharp-light-panelless.js +1 -1
  193. package/themes/sharp-light-panelless.min.js +1 -1
  194. package/themes/sharp-light.js +1 -1
  195. package/themes/sharp-light.min.js +1 -1
  196. package/themes/solid-dark-panelless.js +1 -1
  197. package/themes/solid-dark-panelless.min.js +1 -1
  198. package/themes/solid-dark.js +1 -1
  199. package/themes/solid-dark.min.js +1 -1
  200. package/themes/solid-light-panelless.js +1 -1
  201. package/themes/solid-light-panelless.min.js +1 -1
  202. package/themes/solid-light.js +1 -1
  203. package/themes/solid-light.min.js +1 -1
  204. package/themes/three-dimensional-dark-panelless.js +1 -1
  205. package/themes/three-dimensional-dark-panelless.min.js +1 -1
  206. package/themes/three-dimensional-dark.js +1 -1
  207. package/themes/three-dimensional-dark.min.js +1 -1
  208. package/themes/three-dimensional-light-panelless.js +1 -1
  209. package/themes/three-dimensional-light-panelless.min.js +1 -1
  210. package/themes/three-dimensional-light.js +1 -1
  211. package/themes/three-dimensional-light.min.js +1 -1
  212. package/ts3.4/typings/defaultCss/cssmodern.d.ts +1 -0
  213. package/ts3.4/typings/defaultCss/cssstandard.d.ts +1 -0
  214. package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +1 -0
  215. package/ts3.4/typings/progress-buttons.d.ts +2 -0
  216. package/ts3.4/typings/survey.d.ts +16 -1
  217. package/typings/defaultCss/cssmodern.d.ts +1 -0
  218. package/typings/defaultCss/cssstandard.d.ts +1 -0
  219. package/typings/defaultCss/defaultV2Css.d.ts +1 -0
  220. package/typings/progress-buttons.d.ts +2 -0
  221. package/typings/survey.d.ts +17 -2
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.132
2
+ * surveyjs - Survey JavaScript library v1.9.133
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.132
2
+ * surveyjs - Survey JavaScript library v1.9.133
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.132
2
+ * surveyjs - Survey JavaScript library v1.9.133
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
  */
package/survey.core.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.132
2
+ * surveyjs - Survey JavaScript library v1.9.133
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
  */
@@ -4791,6 +4791,7 @@ var modernCss = {
4791
4791
  cell: "sv-table__cell",
4792
4792
  headerCell: "sv-table__cell sv-table__cell--header",
4793
4793
  row: "sv-table__row",
4794
+ rowTextCell: "sv-table__cell--row-text",
4794
4795
  rowAdditional: "sv-table__row--additional",
4795
4796
  detailRow: "sv-table__row--detail",
4796
4797
  detailRowText: "sv-table__cell--detail-rowtext",
@@ -5137,6 +5138,7 @@ var defaultStandardCss = {
5137
5138
  headerCell: "sv_matrix_cell_header",
5138
5139
  row: "sv_matrix_row",
5139
5140
  rowAdditional: "sv-matrix__row--additional",
5141
+ rowTextCell: "sv-table__cell--row-text",
5140
5142
  detailRow: "sv_matrix_detail_row",
5141
5143
  detailRowText: "sv_matrix_cell_detail_rowtext",
5142
5144
  detailCell: "sv_matrix_cell_detail",
@@ -5495,6 +5497,7 @@ var defaultV2Css = {
5495
5497
  progressText: "sd-progress__text",
5496
5498
  progressButtonsRoot: "sd-progress-buttons",
5497
5499
  progressButtonsNumbered: "sd-progress-buttons--numbered",
5500
+ progressButtonsFitSurveyWidth: "sd-progress-buttons--fit-survey-width",
5498
5501
  progressButtonsContainerCenter: "sd-progress-buttons__container-center",
5499
5502
  progressButtonsContainer: "sd-progress-buttons__container",
5500
5503
  progressButtonsConnector: "sd-progress-buttons__connector",
@@ -9438,8 +9441,8 @@ __webpack_require__.r(__webpack_exports__);
9438
9441
  //import "../../modern.scss";
9439
9442
  var Version;
9440
9443
  var ReleaseDate;
9441
- Version = "" + "1.9.132";
9442
- ReleaseDate = "" + "2024-02-27";
9444
+ Version = "" + "1.9.133";
9445
+ ReleaseDate = "" + "2024-03-05";
9443
9446
  function checkLibraryVersion(ver, libraryName) {
9444
9447
  if (Version != ver) {
9445
9448
  var str = "survey-core has version '" + Version + "' and " + libraryName
@@ -15218,9 +15221,11 @@ function age(params) {
15218
15221
  var birthDate = new Date(params[0]);
15219
15222
  var today = new Date();
15220
15223
  var age = today.getFullYear() - birthDate.getFullYear();
15221
- var m = today.getMonth() - birthDate.getMonth();
15222
- if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) {
15223
- age -= age > 0 ? 1 : 0;
15224
+ if (age > 0) {
15225
+ var m = today.getMonth() - birthDate.getMonth();
15226
+ if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) {
15227
+ age -= 1;
15228
+ }
15224
15229
  }
15225
15230
  return age;
15226
15231
  }
@@ -25699,6 +25704,9 @@ var ProgressButtons = /** @class */ (function (_super) {
25699
25704
  if (this.showItemNumbers && this.survey.css.progressButtonsNumbered) {
25700
25705
  result += " " + this.survey.css.progressButtonsNumbered;
25701
25706
  }
25707
+ if (this.isFitToSurveyWidth) {
25708
+ result += " " + this.survey.css.progressButtonsFitSurveyWidth;
25709
+ }
25702
25710
  return result;
25703
25711
  };
25704
25712
  ProgressButtons.prototype.getListElementCss = function (index) {
@@ -25756,11 +25764,32 @@ var ProgressButtons = /** @class */ (function (_super) {
25756
25764
  if (!listContainerElement)
25757
25765
  return;
25758
25766
  var listContainerElements = element.querySelectorAll(".sd-progress-buttons__connector");
25759
- var connectorWidth = listContainerElement.clientWidth / (listContainerElement.children.length - 1) - 4;
25767
+ var circleWidth = this.showItemNumbers ? 17 : 7;
25768
+ var connectorWidth = listContainerElement.clientWidth / (listContainerElement.children.length - 1) - circleWidth;
25760
25769
  for (var i = 0; i < listContainerElements.length; i++) {
25761
25770
  listContainerElements[i].style.width = connectorWidth + "px";
25762
25771
  }
25763
25772
  };
25773
+ Object.defineProperty(ProgressButtons.prototype, "isFitToSurveyWidth", {
25774
+ get: function () {
25775
+ if (_defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_1__["surveyCss"].currentType !== "defaultV2") {
25776
+ return false;
25777
+ }
25778
+ return this.survey.progressBarInheritWidthFrom === "survey" && this.survey.widthMode == "static";
25779
+ },
25780
+ enumerable: false,
25781
+ configurable: true
25782
+ });
25783
+ Object.defineProperty(ProgressButtons.prototype, "progressWidth", {
25784
+ get: function () {
25785
+ if (this.isFitToSurveyWidth) {
25786
+ return this.survey.width;
25787
+ }
25788
+ return "";
25789
+ },
25790
+ enumerable: false,
25791
+ configurable: true
25792
+ });
25764
25793
  Object.defineProperty(ProgressButtons.prototype, "showItemNumbers", {
25765
25794
  get: function () {
25766
25795
  if (_defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_1__["surveyCss"].currentType !== "defaultV2") {
@@ -46326,7 +46355,7 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_4__["Serializer"].addClass("multipletextite
46326
46355
  });
46327
46356
  _jsonobject__WEBPACK_IMPORTED_MODULE_4__["Serializer"].addClass("multipletext", [
46328
46357
  { name: "!items:textitems", className: "multipletextitem", isArray: true },
46329
- { name: "itemSize:number", minValue: 0 },
46358
+ { name: "itemSize:number", minValue: 0, visible: false },
46330
46359
  { name: "colCount:number", default: 1, choices: [1, 2, 3, 4, 5] },
46331
46360
  { name: "itemErrorLocation", default: "default", choices: ["default", "top", "bottom"], visible: false },
46332
46361
  { name: "itemTitleWidth", category: "layout" }
@@ -50388,6 +50417,9 @@ var QuestionRatingModel = /** @class */ (function (_super) {
50388
50417
  else {
50389
50418
  rateValues = this.createRateValues();
50390
50419
  }
50420
+ if (this.autoGenerate) {
50421
+ this.rateMax = rateValues[rateValues.length - 1].value;
50422
+ }
50391
50423
  if (this.rateType == "smileys" && rateValues.length > 10)
50392
50424
  rateValues = rateValues.slice(0, 10);
50393
50425
  this.renderedRateItems = rateValues.map(function (v, i) {
@@ -56633,7 +56665,7 @@ var SurveyModel = /** @class */ (function (_super) {
56633
56665
  _this.registerPropertyChangedHandlers(["questionStartIndex", "requiredText", "questionTitlePattern"], function () {
56634
56666
  _this.resetVisibleIndexes();
56635
56667
  });
56636
- _this.registerPropertyChangedHandlers(["isLoading", "isCompleted", "isCompletedBefore", "mode", "isStartedState", "currentPage"], function () { _this.updateState(); });
56668
+ _this.registerPropertyChangedHandlers(["isLoading", "isCompleted", "isCompletedBefore", "mode", "isStartedState", "currentPage", "isShowingPreview"], function () { _this.updateState(); });
56637
56669
  _this.registerPropertyChangedHandlers(["state", "currentPage", "showPreviewBeforeComplete"], function () { _this.onStateAndCurrentPageChanged(); });
56638
56670
  _this.registerPropertyChangedHandlers(["logo", "logoPosition"], function () { _this.updateHasLogo(); });
56639
56671
  _this.registerPropertyChangedHandlers(["backgroundImage"], function () { _this.updateRenderBackgroundImage(); });
@@ -57549,7 +57581,7 @@ var SurveyModel = /** @class */ (function (_super) {
57549
57581
  * @see [`settings.autoAdvanceDelay`](https://surveyjs.io/form-library/documentation/api-reference/settings#autoAdvanceDelay)
57550
57582
  */
57551
57583
  get: function () {
57552
- return this.getPropertyValue("allowCompleteSurveyAutomatic", true);
57584
+ return this.getPropertyValue("allowCompleteSurveyAutomatic");
57553
57585
  },
57554
57586
  set: function (val) {
57555
57587
  this.setPropertyValue("allowCompleteSurveyAutomatic", val);
@@ -64097,6 +64129,9 @@ var SurveyModel = /** @class */ (function (_super) {
64097
64129
  __decorate([
64098
64130
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
64099
64131
  ], SurveyModel.prototype, "progressBarShowPageNumbers", void 0);
64132
+ __decorate([
64133
+ Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
64134
+ ], SurveyModel.prototype, "progressBarInheritWidthFrom", void 0);
64100
64135
  __decorate([
64101
64136
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
64102
64137
  ], SurveyModel.prototype, "rootCss", void 0);
@@ -64260,6 +64295,13 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("survey", [
64260
64295
  category: "navigation",
64261
64296
  visibleIf: function (obj) { return obj.showProgressBar !== "off" && obj.progressBarType === "pages"; }
64262
64297
  },
64298
+ {
64299
+ name: "progressBarInheritWidthFrom",
64300
+ default: "container",
64301
+ choices: ["container", "survey"],
64302
+ category: "navigation",
64303
+ visibleIf: function (obj) { return obj.showProgressBar !== "off" && obj.progressBarType === "pages"; }
64304
+ },
64263
64305
  {
64264
64306
  name: "showTOC:switch",
64265
64307
  default: false
@@ -64282,6 +64324,10 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("survey", [
64282
64324
  obj.setPropertyValue("goNextPageAutomatic", value);
64283
64325
  }
64284
64326
  },
64327
+ {
64328
+ name: "allowCompleteSurveyAutomatic:boolean", default: true,
64329
+ visibleIf: function (obj) { return obj.goNextPageAutomatic === true; }
64330
+ },
64285
64331
  {
64286
64332
  name: "clearInvisibleValues",
64287
64333
  default: "onComplete",