survey-core 1.12.23 → 1.12.25

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 (237) hide show
  1. package/defaultV2.css +10 -2
  2. package/defaultV2.css.map +1 -1
  3. package/defaultV2.fontless.css +10 -2
  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/burmese.js +1 -1
  14. package/i18n/burmese.min.js +1 -1
  15. package/i18n/catalan.js +1 -1
  16. package/i18n/catalan.min.js +1 -1
  17. package/i18n/croatian.js +1 -1
  18. package/i18n/croatian.min.js +1 -1
  19. package/i18n/czech.js +1 -1
  20. package/i18n/czech.min.js +1 -1
  21. package/i18n/danish.js +1 -1
  22. package/i18n/danish.min.js +1 -1
  23. package/i18n/dutch.js +1 -1
  24. package/i18n/dutch.min.js +1 -1
  25. package/i18n/english.js +1 -1
  26. package/i18n/english.min.js +2 -2
  27. package/i18n/estonian.js +1 -1
  28. package/i18n/estonian.min.js +1 -1
  29. package/i18n/finnish.js +1 -1
  30. package/i18n/finnish.min.js +1 -1
  31. package/i18n/french.js +1 -1
  32. package/i18n/french.min.js +1 -1
  33. package/i18n/georgian.js +1 -1
  34. package/i18n/georgian.min.js +1 -1
  35. package/i18n/german.js +1 -1
  36. package/i18n/german.min.js +1 -1
  37. package/i18n/greek.js +1 -1
  38. package/i18n/greek.min.js +1 -1
  39. package/i18n/hebrew.js +1 -1
  40. package/i18n/hebrew.min.js +1 -1
  41. package/i18n/hindi.js +1 -1
  42. package/i18n/hindi.min.js +1 -1
  43. package/i18n/hungarian.js +1 -1
  44. package/i18n/hungarian.min.js +1 -1
  45. package/i18n/icelandic.js +1 -1
  46. package/i18n/icelandic.min.js +1 -1
  47. package/i18n/index.js +135 -1
  48. package/i18n/index.js.map +1 -1
  49. package/i18n/index.min.js +2 -2
  50. package/i18n/indonesian.js +1 -1
  51. package/i18n/indonesian.min.js +1 -1
  52. package/i18n/italian.js +1 -1
  53. package/i18n/italian.min.js +1 -1
  54. package/i18n/japanese.js +1 -1
  55. package/i18n/japanese.min.js +1 -1
  56. package/i18n/kazakh.js +1 -1
  57. package/i18n/kazakh.min.js +1 -1
  58. package/i18n/korean.js +1 -1
  59. package/i18n/korean.min.js +1 -1
  60. package/i18n/latvian.js +1 -1
  61. package/i18n/latvian.min.js +1 -1
  62. package/i18n/lithuanian.js +1 -1
  63. package/i18n/lithuanian.min.js +1 -1
  64. package/i18n/macedonian.js +1 -1
  65. package/i18n/macedonian.min.js +1 -1
  66. package/i18n/malay.js +1 -1
  67. package/i18n/malay.min.js +1 -1
  68. package/i18n/nl-BE.js +1 -1
  69. package/i18n/nl-BE.min.js +1 -1
  70. package/i18n/norwegian.js +1 -1
  71. package/i18n/norwegian.min.js +1 -1
  72. package/i18n/persian.js +1 -1
  73. package/i18n/persian.min.js +1 -1
  74. package/i18n/philippines.js +1 -1
  75. package/i18n/philippines.min.js +1 -1
  76. package/i18n/polish.js +1 -1
  77. package/i18n/polish.min.js +1 -1
  78. package/i18n/portuguese-br.js +1 -1
  79. package/i18n/portuguese-br.min.js +1 -1
  80. package/i18n/portuguese.js +1 -1
  81. package/i18n/portuguese.min.js +1 -1
  82. package/i18n/romanian.js +1 -1
  83. package/i18n/romanian.min.js +1 -1
  84. package/i18n/russian.js +1 -1
  85. package/i18n/russian.min.js +1 -1
  86. package/i18n/serbian.js +1 -1
  87. package/i18n/serbian.min.js +1 -1
  88. package/i18n/simplified-chinese.js +1 -1
  89. package/i18n/simplified-chinese.min.js +1 -1
  90. package/i18n/slovak.js +1 -1
  91. package/i18n/slovak.min.js +1 -1
  92. package/i18n/slovenian.js +247 -0
  93. package/i18n/slovenian.js.map +1 -0
  94. package/i18n/slovenian.min.js +6 -0
  95. package/i18n/spanish.js +1 -1
  96. package/i18n/spanish.min.js +1 -1
  97. package/i18n/swahili.js +1 -1
  98. package/i18n/swahili.min.js +1 -1
  99. package/i18n/swedish.js +1 -1
  100. package/i18n/swedish.min.js +1 -1
  101. package/i18n/tajik.js +1 -1
  102. package/i18n/tajik.min.js +1 -1
  103. package/i18n/telugu.js +1 -1
  104. package/i18n/telugu.min.js +1 -1
  105. package/i18n/thai.js +1 -1
  106. package/i18n/thai.min.js +1 -1
  107. package/i18n/traditional-chinese.js +1 -1
  108. package/i18n/traditional-chinese.min.js +1 -1
  109. package/i18n/turkish.js +1 -1
  110. package/i18n/turkish.min.js +1 -1
  111. package/i18n/ukrainian.js +1 -1
  112. package/i18n/ukrainian.min.js +1 -1
  113. package/i18n/urdu.js +1 -1
  114. package/i18n/urdu.min.js +2 -2
  115. package/i18n/vietnamese.js +1 -1
  116. package/i18n/vietnamese.min.js +1 -1
  117. package/i18n/welsh.js +1 -1
  118. package/i18n/welsh.min.js +1 -1
  119. package/icons/iconsV1.js +1 -1
  120. package/icons/iconsV1.min.js +1 -1
  121. package/icons/iconsV2.js +1 -1
  122. package/icons/iconsV2.min.js +1 -1
  123. package/modern.css +19 -3
  124. package/modern.css.map +1 -1
  125. package/modern.fontless.css +19 -3
  126. package/modern.fontless.css.map +1 -1
  127. package/modern.fontless.min.css +2 -2
  128. package/modern.min.css +2 -2
  129. package/package.json +1 -1
  130. package/plugins/bootstrap-integration/index.js +1 -1
  131. package/plugins/bootstrap-integration/index.min.js +1 -1
  132. package/plugins/bootstrap-material-integration/index.js +1 -1
  133. package/plugins/bootstrap-material-integration/index.min.js +1 -1
  134. package/survey.core.js +97 -66
  135. package/survey.core.js.map +1 -1
  136. package/survey.core.min.js +3 -3
  137. package/survey.css +1 -1
  138. package/survey.i18n.js +135 -1
  139. package/survey.i18n.js.map +1 -1
  140. package/survey.i18n.min.js +2 -2
  141. package/survey.min.css +1 -1
  142. package/themes/borderless-dark-panelless.js +1 -1
  143. package/themes/borderless-dark-panelless.min.js +1 -1
  144. package/themes/borderless-dark.js +1 -1
  145. package/themes/borderless-dark.min.js +1 -1
  146. package/themes/borderless-light-panelless..js +1 -1
  147. package/themes/borderless-light-panelless..min.js +1 -1
  148. package/themes/borderless-light.js +1 -1
  149. package/themes/borderless-light.min.js +1 -1
  150. package/themes/contrast-dark-panelless.js +1 -1
  151. package/themes/contrast-dark-panelless.min.js +1 -1
  152. package/themes/contrast-dark.js +1 -1
  153. package/themes/contrast-dark.min.js +1 -1
  154. package/themes/contrast-light-panelless.js +1 -1
  155. package/themes/contrast-light-panelless.min.js +1 -1
  156. package/themes/contrast-light.js +1 -1
  157. package/themes/contrast-light.min.js +1 -1
  158. package/themes/default-dark-panelless.js +1 -1
  159. package/themes/default-dark-panelless.min.js +1 -1
  160. package/themes/default-dark.js +1 -1
  161. package/themes/default-dark.min.js +1 -1
  162. package/themes/default-light-panelless.js +1 -1
  163. package/themes/default-light-panelless.min.js +1 -1
  164. package/themes/default-light.js +1 -1
  165. package/themes/default-light.min.js +1 -1
  166. package/themes/doubleborder-dark-panelless.js +1 -1
  167. package/themes/doubleborder-dark-panelless.min.js +1 -1
  168. package/themes/doubleborder-dark.js +1 -1
  169. package/themes/doubleborder-dark.min.js +1 -1
  170. package/themes/doubleborder-light-panelles.js +1 -1
  171. package/themes/doubleborder-light-panelles.min.js +1 -1
  172. package/themes/doubleborder-light.js +1 -1
  173. package/themes/doubleborder-light.min.js +1 -1
  174. package/themes/flat-dark-panelless.js +1 -1
  175. package/themes/flat-dark-panelless.min.js +1 -1
  176. package/themes/flat-dark.js +1 -1
  177. package/themes/flat-dark.min.js +1 -1
  178. package/themes/flat-light-panelless.js +1 -1
  179. package/themes/flat-light-panelless.min.js +1 -1
  180. package/themes/flat-light.js +1 -1
  181. package/themes/flat-light.min.js +1 -1
  182. package/themes/index.js +1 -1
  183. package/themes/index.min.js +1 -1
  184. package/themes/layered-dark-panelless.js +1 -1
  185. package/themes/layered-dark-panelless.min.js +1 -1
  186. package/themes/layered-dark.js +1 -1
  187. package/themes/layered-dark.min.js +1 -1
  188. package/themes/layered-light-panelless.js +1 -1
  189. package/themes/layered-light-panelless.min.js +1 -1
  190. package/themes/layered-light.js +1 -1
  191. package/themes/layered-light.min.js +1 -1
  192. package/themes/plain-dark-panelless.js +1 -1
  193. package/themes/plain-dark-panelless.min.js +1 -1
  194. package/themes/plain-dark.js +1 -1
  195. package/themes/plain-dark.min.js +1 -1
  196. package/themes/plain-light-panelless.js +1 -1
  197. package/themes/plain-light-panelless.min.js +1 -1
  198. package/themes/plain-light.js +1 -1
  199. package/themes/plain-light.min.js +1 -1
  200. package/themes/sharp-dark-panelless.js +1 -1
  201. package/themes/sharp-dark-panelless.min.js +1 -1
  202. package/themes/sharp-dark.js +1 -1
  203. package/themes/sharp-dark.min.js +1 -1
  204. package/themes/sharp-light-panelless.js +1 -1
  205. package/themes/sharp-light-panelless.min.js +1 -1
  206. package/themes/sharp-light.js +1 -1
  207. package/themes/sharp-light.min.js +1 -1
  208. package/themes/solid-dark-panelless.js +1 -1
  209. package/themes/solid-dark-panelless.min.js +1 -1
  210. package/themes/solid-dark.js +1 -1
  211. package/themes/solid-dark.min.js +1 -1
  212. package/themes/solid-light-panelless.js +1 -1
  213. package/themes/solid-light-panelless.min.js +1 -1
  214. package/themes/solid-light.js +1 -1
  215. package/themes/solid-light.min.js +1 -1
  216. package/themes/three-dimensional-dark-panelless.js +1 -1
  217. package/themes/three-dimensional-dark-panelless.min.js +1 -1
  218. package/themes/three-dimensional-dark.js +1 -1
  219. package/themes/three-dimensional-dark.min.js +1 -1
  220. package/themes/three-dimensional-light-panelless.js +1 -1
  221. package/themes/three-dimensional-light-panelless.min.js +1 -1
  222. package/themes/three-dimensional-light.js +1 -1
  223. package/themes/three-dimensional-light.min.js +1 -1
  224. package/ts3.4/typings/packages/survey-core/src/base.d.ts +1 -1
  225. package/ts3.4/typings/packages/survey-core/src/dragdrop/choices.d.ts +1 -1
  226. package/ts3.4/typings/packages/survey-core/src/helpers.d.ts +1 -0
  227. package/ts3.4/typings/packages/survey-core/src/mask/mask_numeric.d.ts +1 -1
  228. package/ts3.4/typings/packages/survey-core/src/question_baseselect.d.ts +2 -1
  229. package/ts3.4/typings/packages/survey-core/src/survey.d.ts +1 -0
  230. package/ts3.4/typings/packages/survey-core/src/trigger.d.ts +9 -1
  231. package/typings/packages/survey-core/src/base.d.ts +1 -1
  232. package/typings/packages/survey-core/src/dragdrop/choices.d.ts +1 -1
  233. package/typings/packages/survey-core/src/helpers.d.ts +1 -0
  234. package/typings/packages/survey-core/src/mask/mask_numeric.d.ts +1 -1
  235. package/typings/packages/survey-core/src/question_baseselect.d.ts +2 -1
  236. package/typings/packages/survey-core/src/survey.d.ts +1 -0
  237. package/typings/packages/survey-core/src/trigger.d.ts +9 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-core",
3
- "version": "1.12.23",
3
+ "version": "1.12.25",
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",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.23
2
+ * surveyjs - Survey JavaScript library v1.12.25
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.23
2
+ * surveyjs - Survey JavaScript library v1.12.25
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.23
2
+ * surveyjs - Survey JavaScript library v1.12.25
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.23
2
+ * surveyjs - Survey JavaScript library v1.12.25
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
  */
package/survey.core.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.23
2
+ * surveyjs - Survey JavaScript library v1.12.25
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
  */
@@ -145,7 +145,7 @@ __webpack_require__.d(__webpack_exports__, "CustomError", function() { return /*
145
145
  __webpack_require__.d(__webpack_exports__, "AnswerRequiredError", function() { return /* reexport */ AnswerRequiredError; });
146
146
  __webpack_require__.d(__webpack_exports__, "OneAnswerRequiredError", function() { return /* reexport */ OneAnswerRequiredError; });
147
147
  __webpack_require__.d(__webpack_exports__, "RequreNumericError", function() { return /* reexport */ RequreNumericError; });
148
- __webpack_require__.d(__webpack_exports__, "ExceedSizeError", function() { return /* reexport */ error_ExceedSizeError; });
148
+ __webpack_require__.d(__webpack_exports__, "ExceedSizeError", function() { return /* reexport */ ExceedSizeError; });
149
149
  __webpack_require__.d(__webpack_exports__, "LocalizableString", function() { return /* reexport */ localizablestring_LocalizableString; });
150
150
  __webpack_require__.d(__webpack_exports__, "LocalizableStrings", function() { return /* reexport */ localizablestring_LocalizableStrings; });
151
151
  __webpack_require__.d(__webpack_exports__, "HtmlConditionItem", function() { return /* reexport */ HtmlConditionItem; });
@@ -526,6 +526,9 @@ var helpers_Helpers = /** @class */ (function () {
526
526
  }
527
527
  return !value && value !== 0 && value !== false;
528
528
  };
529
+ Helpers.isValueUndefined = function (value) {
530
+ return (value === undefined || value === null) || (typeof value === "number" && isNaN(value));
531
+ };
529
532
  Helpers.isArrayContainsEqual = function (x, y) {
530
533
  if (!Array.isArray(x) || !Array.isArray(y))
531
534
  return false;
@@ -8474,9 +8477,6 @@ var base_Base = /** @class */ (function () {
8474
8477
  return value.trim();
8475
8478
  return value;
8476
8479
  };
8477
- Base.prototype.isPropertyEmpty = function (value) {
8478
- return value !== "" && this.isValueEmpty(value);
8479
- };
8480
8480
  Base.createPropertiesHash = function () {
8481
8481
  return {};
8482
8482
  };
@@ -8687,11 +8687,11 @@ var base_Base = /** @class */ (function () {
8687
8687
  */
8688
8688
  Base.prototype.getPropertyValue = function (name, defaultValue, calcFunc) {
8689
8689
  var res = this.getPropertyValueWithoutDefault(name);
8690
- if (this.isPropertyEmpty(res)) {
8690
+ if (this.isValueUndefined(res)) {
8691
8691
  var locStr = this.localizableStrings ? this.localizableStrings[name] : undefined;
8692
8692
  if (locStr)
8693
8693
  return locStr.text;
8694
- if (defaultValue !== null && defaultValue !== undefined)
8694
+ if (!this.isValueUndefined(defaultValue))
8695
8695
  return defaultValue;
8696
8696
  if (!!calcFunc) {
8697
8697
  var newVal = calcFunc();
@@ -8713,6 +8713,9 @@ var base_Base = /** @class */ (function () {
8713
8713
  }
8714
8714
  return res;
8715
8715
  };
8716
+ Base.prototype.isValueUndefined = function (value) {
8717
+ return helpers_Helpers.isValueUndefined(value);
8718
+ };
8716
8719
  Base.prototype.getDefaultPropertyValue = function (name) {
8717
8720
  var prop = this.getPropertyByName(name);
8718
8721
  if (!prop || prop.isCustom && this.isCreating)
@@ -8720,7 +8723,7 @@ var base_Base = /** @class */ (function () {
8720
8723
  if (!!prop.defaultValueFunc)
8721
8724
  return prop.defaultValueFunc(this);
8722
8725
  var dValue = prop.getDefaultValue(this);
8723
- if (!this.isPropertyEmpty(dValue) && !Array.isArray(dValue))
8726
+ if (!this.isValueUndefined(dValue) && !Array.isArray(dValue))
8724
8727
  return dValue;
8725
8728
  var locStr = this.localizableStrings ? this.localizableStrings[name] : undefined;
8726
8729
  if (locStr && locStr.localizationName)
@@ -10967,9 +10970,6 @@ var action_BaseAction = /** @class */ (function (_super) {
10967
10970
  action_decorate([
10968
10971
  jsonobject_property()
10969
10972
  ], BaseAction.prototype, "pressed", void 0);
10970
- action_decorate([
10971
- jsonobject_property()
10972
- ], BaseAction.prototype, "data", void 0);
10973
10973
  action_decorate([
10974
10974
  jsonobject_property()
10975
10975
  ], BaseAction.prototype, "popupModel", void 0);
@@ -12429,7 +12429,7 @@ var survey_element_SurveyElement = /** @class */ (function (_super) {
12429
12429
  },
12430
12430
  set: function (val) {
12431
12431
  this.setPropertyValue("state", val);
12432
- this.renderedIsExpanded = !(this.state === "collapsed" && !this.isDesignMode);
12432
+ this.renderedIsExpanded = !this.isCollapsed;
12433
12433
  },
12434
12434
  enumerable: false,
12435
12435
  configurable: true
@@ -12631,6 +12631,9 @@ var survey_element_SurveyElement = /** @class */ (function (_super) {
12631
12631
  this.updateDescriptionVisibility(this.description);
12632
12632
  this.clearCssClasses();
12633
12633
  }
12634
+ this.blockAnimations();
12635
+ this.renderedIsExpanded = !this.isCollapsed;
12636
+ this.releaseAnimations();
12634
12637
  };
12635
12638
  SurveyElement.prototype.canRunConditions = function () {
12636
12639
  return _super.prototype.canRunConditions.call(this) && !!this.data;
@@ -15866,7 +15869,6 @@ var error_extends = (undefined && undefined.__extends) || (function () {
15866
15869
  };
15867
15870
  })();
15868
15871
 
15869
-
15870
15872
  var AnswerRequiredError = /** @class */ (function (_super) {
15871
15873
  error_extends(AnswerRequiredError, _super);
15872
15874
  function AnswerRequiredError(text, errorOwner) {
@@ -15921,7 +15923,7 @@ var RequreNumericError = /** @class */ (function (_super) {
15921
15923
  return RequreNumericError;
15922
15924
  }(survey_error_SurveyError));
15923
15925
 
15924
- var error_ExceedSizeError = /** @class */ (function (_super) {
15926
+ var ExceedSizeError = /** @class */ (function (_super) {
15925
15927
  error_extends(ExceedSizeError, _super);
15926
15928
  function ExceedSizeError(maxSize, errorOwner) {
15927
15929
  if (errorOwner === void 0) { errorOwner = null; }
@@ -15934,7 +15936,7 @@ var error_ExceedSizeError = /** @class */ (function (_super) {
15934
15936
  return "exceedsize";
15935
15937
  };
15936
15938
  ExceedSizeError.prototype.getDefaultText = function () {
15937
- return getLocaleString("exceedMaxSize")["format"](this.getTextSize());
15939
+ return this.getLocalizationString("exceedMaxSize")["format"](this.getTextSize());
15938
15940
  };
15939
15941
  ExceedSizeError.prototype.getTextSize = function () {
15940
15942
  var sizes = ["Bytes", "KB", "MB", "GB", "TB"];
@@ -16053,7 +16055,7 @@ var EachRowUniqueError = /** @class */ (function (_super) {
16053
16055
  return EachRowUniqueError;
16054
16056
  }(survey_error_SurveyError));
16055
16057
 
16056
- var error_MinRowCountError = /** @class */ (function (_super) {
16058
+ var MinRowCountError = /** @class */ (function (_super) {
16057
16059
  error_extends(MinRowCountError, _super);
16058
16060
  function MinRowCountError(minRowCount, errorOwner) {
16059
16061
  if (errorOwner === void 0) { errorOwner = null; }
@@ -16065,7 +16067,7 @@ var error_MinRowCountError = /** @class */ (function (_super) {
16065
16067
  return "minrowcounterror";
16066
16068
  };
16067
16069
  MinRowCountError.prototype.getDefaultText = function () {
16068
- return getLocaleString("minRowCountError")["format"](this.minRowCount);
16070
+ return this.getLocalizationString("minRowCountError")["format"](this.minRowCount);
16069
16071
  };
16070
16072
  return MinRowCountError;
16071
16073
  }(survey_error_SurveyError));
@@ -20801,9 +20803,6 @@ var itemvalue_ItemValue = /** @class */ (function (_super) {
20801
20803
  _this.ownerPropertyName = "";
20802
20804
  _this.locTextValue = new localizablestring_LocalizableString(_this, true, "text");
20803
20805
  _this.locTextValue.onStrChanged = function (oldValue, newValue) {
20804
- if (newValue == _this.value) {
20805
- newValue = undefined;
20806
- }
20807
20806
  _this.propertyValueChanged("text", oldValue, newValue);
20808
20807
  };
20809
20808
  _this.locTextValue.onGetTextCallback = function (txt) {
@@ -29243,8 +29242,11 @@ var question_matrixdropdownbase_QuestionMatrixDropdownModelBase = /** @class */
29243
29242
  var rows = this.generatedVisibleRows;
29244
29243
  if (rowIndex >= rows.length)
29245
29244
  return null;
29246
- var newValue = this.createNewValue();
29247
- return this.getRowValueCore(rows[rowIndex], newValue);
29245
+ var val = this.value;
29246
+ var rowVal = this.getRowValueCore(rows[rowIndex], val);
29247
+ if (this.isValueSurveyElement(val))
29248
+ return rowVal;
29249
+ return helpers_Helpers.getUnbindValue(rowVal);
29248
29250
  };
29249
29251
  QuestionMatrixDropdownModelBase.prototype.checkIfValueInRowDuplicated = function (checkedRow, cellQuestion) {
29250
29252
  if (!this.generatedVisibleRows)
@@ -32193,7 +32195,7 @@ var question_matrixdynamic_QuestionMatrixDynamicModel = /** @class */ (function
32193
32195
  QuestionMatrixDynamicModel.prototype.onCheckForErrors = function (errors, isOnValueChanged, fireCallback) {
32194
32196
  _super.prototype.onCheckForErrors.call(this, errors, isOnValueChanged, fireCallback);
32195
32197
  if (!isOnValueChanged && this.hasErrorInMinRows()) {
32196
- errors.push(new error_MinRowCountError(this.minRowCount, this));
32198
+ errors.push(new MinRowCountError(this.minRowCount, this));
32197
32199
  }
32198
32200
  };
32199
32201
  QuestionMatrixDynamicModel.prototype.hasErrorInMinRows = function () {
@@ -36505,7 +36507,8 @@ var panel_PanelModelBase = /** @class */ (function (_super) {
36505
36507
  return false;
36506
36508
  };
36507
36509
  PanelModelBase.prototype.getIsPageVisible = function (exceptionQuestion) {
36508
- return this.visible && this.getIsContentVisible(exceptionQuestion);
36510
+ var isContentVisible = this.getIsContentVisible(exceptionQuestion);
36511
+ return this.visible && isContentVisible;
36509
36512
  };
36510
36513
  PanelModelBase.prototype.setVisibleIndex = function (index) {
36511
36514
  if (!this.isVisible || index < 0) {
@@ -37736,11 +37739,13 @@ var page_PageModel = /** @class */ (function (_super) {
37736
37739
  });
37737
37740
  PageModel.prototype.getElementsForRows = function () {
37738
37741
  var _a;
37739
- var q = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.currentSingleQuestion;
37740
- if (!!q) {
37741
- if (q.page === this)
37742
- return [q];
37743
- return [];
37742
+ if (!this.isStartPage) {
37743
+ var q = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.currentSingleQuestion;
37744
+ if (!!q) {
37745
+ if (q.page === this)
37746
+ return [q];
37747
+ return [];
37748
+ }
37744
37749
  }
37745
37750
  return _super.prototype.getElementsForRows.call(this);
37746
37751
  };
@@ -42728,7 +42733,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
42728
42733
  if (goToFirstPage) {
42729
42734
  this.currentPage = this.firstVisiblePage;
42730
42735
  if (this.currentSingleQuestion) {
42731
- var questions = this.getAllQuestions(true);
42736
+ var questions = this.getSingleQuestions();
42732
42737
  this.currentSingleQuestion = questions.length > 0 ? questions[0] : undefined;
42733
42738
  }
42734
42739
  }
@@ -43037,10 +43042,13 @@ var survey_SurveyModel = /** @class */ (function (_super) {
43037
43042
  return this.nextPage();
43038
43043
  if (!q.validate(true))
43039
43044
  return false;
43040
- var questions = this.getAllQuestions(true);
43045
+ var questions = this.getSingleQuestions();
43041
43046
  var index = questions.indexOf(q);
43042
43047
  if (index < 0 || index === questions.length - 1)
43043
43048
  return false;
43049
+ var key = {};
43050
+ key[q.name] = q.value;
43051
+ this.checkTriggers(key, false, false, true, q.name);
43044
43052
  this.currentSingleQuestion = questions[index + 1];
43045
43053
  return true;
43046
43054
  };
@@ -43048,7 +43056,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
43048
43056
  var q = this.currentSingleQuestion;
43049
43057
  if (!q)
43050
43058
  return this.prevPage();
43051
- var questions = this.getAllQuestions(true);
43059
+ var questions = this.getSingleQuestions();
43052
43060
  var index = questions.indexOf(q);
43053
43061
  if (index === 0)
43054
43062
  return false;
@@ -43630,11 +43638,22 @@ var survey_SurveyModel = /** @class */ (function (_super) {
43630
43638
  });
43631
43639
  this.updateButtonsVisibility();
43632
43640
  };
43641
+ SurveyModel.prototype.getSingleQuestions = function () {
43642
+ var res = new Array();
43643
+ var pages = this.pages;
43644
+ for (var i = 0; i < pages.length; i++) {
43645
+ var p = pages[i];
43646
+ if (!p.isStartPage && p.isVisible) {
43647
+ p.addQuestionsToList(res, true);
43648
+ }
43649
+ }
43650
+ return res;
43651
+ };
43633
43652
  Object.defineProperty(SurveyModel.prototype, "currentSingleQuestion", {
43634
43653
  get: function () { return this.currentSingleQuestionValue; },
43635
43654
  set: function (val) {
43636
43655
  var oldVal = this.currentSingleQuestion;
43637
- if (val !== oldVal) {
43656
+ if (val !== oldVal && !this.isCompleted) {
43638
43657
  var options = !!val && !!oldVal ? this.createPageChangeEventOptions(val.page, oldVal.page, val, oldVal) : undefined;
43639
43658
  if (!!options && !this.currentPageChangingFromOptions(options))
43640
43659
  return;
@@ -43674,7 +43693,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
43674
43693
  this.updatePagesContainer();
43675
43694
  }
43676
43695
  if (this.isSingleVisibleQuestion) {
43677
- var questions = this.getAllQuestions(true);
43696
+ var questions = this.getSingleQuestions();
43678
43697
  if (questions.length > 0) {
43679
43698
  this.currentSingleQuestion = questions[0];
43680
43699
  }
@@ -43770,7 +43789,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
43770
43789
  var lVal = undefined;
43771
43790
  var q = this.currentSingleQuestion;
43772
43791
  if (!!q) {
43773
- var questions = this.getAllQuestions(true);
43792
+ var questions = this.getSingleQuestions();
43774
43793
  var index = questions.indexOf(q);
43775
43794
  if (index >= 0) {
43776
43795
  fVal = index === 0;
@@ -45272,8 +45291,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
45272
45291
  }
45273
45292
  return result;
45274
45293
  };
45275
- SurveyModel.prototype.checkTriggers = function (key, isOnNextPage, isOnComplete, name) {
45294
+ SurveyModel.prototype.checkTriggers = function (key, isOnNextPage, isOnComplete, isOnNavigation, name) {
45276
45295
  if (isOnComplete === void 0) { isOnComplete = false; }
45296
+ if (isOnNavigation === void 0) { isOnNavigation = false; }
45277
45297
  if (this.isCompleted || this.triggers.length == 0 || this.isDisplayMode)
45278
45298
  return;
45279
45299
  if (this.isTriggerIsRunning) {
@@ -45297,7 +45317,9 @@ var survey_SurveyModel = /** @class */ (function (_super) {
45297
45317
  var trigger = this.triggers[i];
45298
45318
  if (isQuestionInvalid && trigger.requireValidQuestion)
45299
45319
  continue;
45300
- trigger.checkExpression(isOnNextPage, isOnComplete, this.triggerKeys, this.triggerValues, properties);
45320
+ var options = { isOnNextPage: isOnNextPage, isOnComplete: isOnComplete, isOnNavigation: isOnNavigation,
45321
+ keys: this.triggerKeys, values: this.triggerValues, properties: properties };
45322
+ trigger.checkExpression(options);
45301
45323
  }
45302
45324
  if (prevCanBeCompleted !== this.canBeCompletedByTrigger) {
45303
45325
  this.updateButtonsVisibility();
@@ -45308,7 +45330,7 @@ var survey_SurveyModel = /** @class */ (function (_super) {
45308
45330
  var triggerKeys = {};
45309
45331
  triggerKeys[name] = { newValue: newValue, oldValue: oldValue };
45310
45332
  this.runConditionOnValueChanged(name, newValue);
45311
- this.checkTriggers(triggerKeys, false, false, name);
45333
+ this.checkTriggers(triggerKeys, false, false, false, name);
45312
45334
  };
45313
45335
  Object.defineProperty(SurveyModel.prototype, "hasRequiredValidQuestionTrigger", {
45314
45336
  get: function () {
@@ -47993,6 +48015,14 @@ var question_baseselect_QuestionSelectBase = /** @class */ (function (_super) {
47993
48015
  res.text = text;
47994
48016
  return res;
47995
48017
  };
48018
+ QuestionSelectBase.prototype.hasErrors = function (fireCallback, rec) {
48019
+ if (fireCallback === void 0) { fireCallback = true; }
48020
+ if (rec === void 0) { rec = null; }
48021
+ if (!rec || rec.isOnValueChanged !== true) {
48022
+ this.clearIncorrectValues();
48023
+ }
48024
+ return _super.prototype.hasErrors.call(this, fireCallback, rec);
48025
+ };
47996
48026
  Object.defineProperty(QuestionSelectBase.prototype, "isUsingCarryForward", {
47997
48027
  get: function () {
47998
48028
  return !!this.carryForwardQuestionType;
@@ -50695,7 +50725,7 @@ var popup_view_model_PopupBaseViewModel = /** @class */ (function (_super) {
50695
50725
  this.footerToolbarValue.setItems(footerActions);
50696
50726
  };
50697
50727
  PopupBaseViewModel.prototype.resetDimensionsAndPositionStyleProperties = function () {
50698
- var nullableValue = "inherit";
50728
+ var nullableValue = "";
50699
50729
  this.top = nullableValue;
50700
50730
  this.left = nullableValue;
50701
50731
  this.height = nullableValue;
@@ -51695,7 +51725,7 @@ var dropdownListModel_DropdownListModel = /** @class */ (function (_super) {
51695
51725
  });
51696
51726
  Object.defineProperty(DropdownListModel.prototype, "showHintString", {
51697
51727
  get: function () {
51698
- return !!this.question.searchEnabled && this.hintStringLC && this.hintStringLC.indexOf(this.inputStringLC) >= 0 ||
51728
+ return !!this.question.searchEnabled && !!(this.hintStringLC || this.inputStringLC) ||
51699
51729
  !this.question.searchEnabled && this.hintStringLC && this.question.isEmpty();
51700
51730
  },
51701
51731
  enumerable: false,
@@ -51909,8 +51939,7 @@ var dropdownListModel_DropdownListModel = /** @class */ (function (_super) {
51909
51939
  };
51910
51940
  DropdownListModel.prototype.onBlur = function (event) {
51911
51941
  this.focused = false;
51912
- if (this.popupModel.isVisible && IsTouch) {
51913
- this._popupModel.show();
51942
+ if (this.popupModel.isVisible && this.popupModel.displayMode == "overlay") {
51914
51943
  return;
51915
51944
  }
51916
51945
  doKey2ClickBlur(event);
@@ -56673,7 +56702,6 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
56673
56702
  QuestionCheckboxModel.prototype.getSelectAllEnabled = function () {
56674
56703
  if (!this.hasSelectAll)
56675
56704
  return true;
56676
- var items = this.activeChoices;
56677
56705
  var visCount = this.getVisibleEnableItems().length;
56678
56706
  var max = this.maxSelectedChoices;
56679
56707
  if (max > 0 && max < visCount)
@@ -56682,10 +56710,10 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
56682
56710
  };
56683
56711
  QuestionCheckboxModel.prototype.getVisibleEnableItems = function () {
56684
56712
  var res = new Array();
56685
- var items = this.activeChoices;
56713
+ var items = this.visibleChoices;
56686
56714
  for (var i = 0; i < items.length; i++) {
56687
56715
  var item = items[i];
56688
- if (item.isEnabled && item.isVisible) {
56716
+ if (item.isEnabled && !this.isBuiltInChoice(item)) {
56689
56717
  res.push(item);
56690
56718
  }
56691
56719
  }
@@ -56969,7 +56997,7 @@ var question_checkbox_QuestionCheckboxModel = /** @class */ (function (_super) {
56969
56997
  return [_super.prototype.valueFromData.call(this, val)];
56970
56998
  var value = [];
56971
56999
  for (var i = 0; i < val.length; i++) {
56972
- var choiceitem = itemvalue_ItemValue.getItemByValue(this.activeChoices, val[i]);
57000
+ var choiceitem = itemvalue_ItemValue.getItemByValue(this.visibleChoices, val[i]);
56973
57001
  if (!!choiceitem) {
56974
57002
  value.push(choiceitem.value);
56975
57003
  }
@@ -57875,11 +57903,11 @@ var choices_DragDropChoices = /** @class */ (function (_super) {
57875
57903
  dragOverChoice = this.parentElement.choices.filter(function (choice) { return "" + choice.value == dataAttributeValue; })[0];
57876
57904
  return dragOverChoice;
57877
57905
  };
57878
- DragDropChoices.prototype.getVisibleChoices = function () {
57906
+ DragDropChoices.prototype.getChoices = function () {
57879
57907
  var parent = this.parentElement;
57880
57908
  if (parent.getType() === "ranking") {
57881
57909
  if (parent.selectToRankEnabled) {
57882
- return parent.visibleChoices;
57910
+ return parent.unRankingChoices;
57883
57911
  }
57884
57912
  else {
57885
57913
  return parent.rankingChoices;
@@ -57888,7 +57916,7 @@ var choices_DragDropChoices = /** @class */ (function (_super) {
57888
57916
  return parent.visibleChoices;
57889
57917
  };
57890
57918
  DragDropChoices.prototype.isDropTargetValid = function (dropTarget, dropTargetNode) {
57891
- var choices = this.getVisibleChoices();
57919
+ var choices = this.getChoices();
57892
57920
  if (this.parentElement.getType() !== "imagepicker") {
57893
57921
  var dropTargetIndex = choices.indexOf(this.dropTarget);
57894
57922
  var draggedElementIndex = choices.indexOf(this.draggedElement);
@@ -57915,7 +57943,7 @@ var choices_DragDropChoices = /** @class */ (function (_super) {
57915
57943
  };
57916
57944
  DragDropChoices.prototype.afterDragOver = function (dropTargetNode) {
57917
57945
  //if (this.isDropTargetDoesntChanged(this.isBottom)) return;
57918
- var choices = this.getVisibleChoices();
57946
+ var choices = this.getChoices();
57919
57947
  var dropTargetIndex = choices.indexOf(this.dropTarget);
57920
57948
  var draggedElementIndex = choices.indexOf(this.draggedElement);
57921
57949
  if (draggedElementIndex < dropTargetIndex && this.isBottom === true) {
@@ -57949,7 +57977,7 @@ var choices_DragDropChoices = /** @class */ (function (_super) {
57949
57977
  };
57950
57978
  DragDropChoices.prototype.doDrop = function () {
57951
57979
  var choices = this.parentElement.choices;
57952
- var filteredChoices = this.getVisibleChoices().filter(function (item) {
57980
+ var filteredChoices = this.getChoices().filter(function (item) {
57953
57981
  return choices.indexOf(item) !== -1;
57954
57982
  });
57955
57983
  var oldIndex = choices.indexOf(this.draggedElement);
@@ -58024,6 +58052,9 @@ var ranking_choices_DragDropRankingChoices = /** @class */ (function (_super) {
58024
58052
  }
58025
58053
  var node = _this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item");
58026
58054
  node.style.cursor = "not-allowed";
58055
+ if (IsTouch) {
58056
+ _this.parentElement.updateRankingChoices(true);
58057
+ }
58027
58058
  };
58028
58059
  return _this;
58029
58060
  }
@@ -58366,7 +58397,7 @@ var question_ranking_QuestionRankingModel = /** @class */ (function (_super) {
58366
58397
  }
58367
58398
  };
58368
58399
  _this.startDrag = function (event) {
58369
- var choice = itemvalue_ItemValue.getItemByValue(_this.activeChoices, _this.draggedChoiceValue);
58400
+ var choice = itemvalue_ItemValue.getItemByValue(_this.visibleChoices, _this.draggedChoiceValue);
58370
58401
  _this.dragDropRankingChoices.startDrag(event, choice, _this, _this.draggedTargetNode);
58371
58402
  };
58372
58403
  _this.handlePointerUp = function (event, choice, node) {
@@ -60599,7 +60630,7 @@ var question_file_QuestionFileModel = /** @class */ (function (_super) {
60599
60630
  var errorLength = this.errors ? this.errors.length : 0;
60600
60631
  (files || []).forEach(function (file) {
60601
60632
  if (_this.maxSize > 0 && file.size > _this.maxSize) {
60602
- _this.errors.push(new error_ExceedSizeError(_this.maxSize, _this));
60633
+ _this.errors.push(new ExceedSizeError(_this.maxSize, _this));
60603
60634
  }
60604
60635
  });
60605
60636
  return errorLength === this.errors.length;
@@ -68335,21 +68366,21 @@ var trigger_Trigger = /** @class */ (function (_super) {
68335
68366
  Trigger.prototype.canBeExecutedOnComplete = function () {
68336
68367
  return false;
68337
68368
  };
68338
- Trigger.prototype.checkExpression = function (isOnNextPage, isOnComplete, keys, values, properties) {
68339
- if (properties === void 0) { properties = null; }
68340
- this.isExecutingOnNextPage = isOnNextPage;
68341
- if (!this.canBeExecuted(isOnNextPage))
68369
+ Trigger.prototype.checkExpression = function (options) {
68370
+ this.isExecutingOnNextPage = options.isOnNextPage;
68371
+ this.isExecutingOnNavigation = options.isOnNavigation || options.isOnNextPage;
68372
+ if (!this.canBeExecuted(options.isOnNextPage))
68342
68373
  return;
68343
- if (isOnComplete && !this.canBeExecutedOnComplete())
68374
+ if (options.isOnComplete && !this.canBeExecutedOnComplete())
68344
68375
  return;
68345
- if (!this.isCheckRequired(keys))
68376
+ if (!this.isCheckRequired(options.keys))
68346
68377
  return;
68347
68378
  if (!!this.conditionRunner) {
68348
- this.perform(values, properties);
68379
+ this.perform(options.values, options.properties || null);
68349
68380
  }
68350
68381
  else {
68351
68382
  if (this.canSuccessOnEmptyExpression()) {
68352
- this.triggerResult(true, values, properties);
68383
+ this.triggerResult(true, options.values, options.properties || null);
68353
68384
  }
68354
68385
  }
68355
68386
  };
@@ -68547,7 +68578,7 @@ var trigger_SurveyTriggerComplete = /** @class */ (function (_super) {
68547
68578
  configurable: true
68548
68579
  });
68549
68580
  SurveyTriggerComplete.prototype.isRealExecution = function () {
68550
- return !settings.triggers.executeCompleteOnValueChanged === this.isExecutingOnNextPage;
68581
+ return !settings.triggers.executeCompleteOnValueChanged === this.isExecutingOnNavigation;
68551
68582
  };
68552
68583
  SurveyTriggerComplete.prototype.onSuccess = function (values, properties) {
68553
68584
  if (!this.owner)
@@ -70158,8 +70189,8 @@ var mask_numeric_InputMaskNumeric = /** @class */ (function (_super) {
70158
70189
  InputMaskNumeric.prototype.getType = function () {
70159
70190
  return "numericmask";
70160
70191
  };
70161
- InputMaskNumeric.prototype.isPropertyEmpty = function (value) {
70162
- return value === "" || value === undefined || value === null;
70192
+ InputMaskNumeric.prototype.isValueUndefined = function (value) {
70193
+ return value === "" || _super.prototype.isValueUndefined.call(this, value);
70163
70194
  };
70164
70195
  mask_numeric_decorate([
70165
70196
  jsonobject_property()
@@ -71020,9 +71051,9 @@ Serializer.addClass("currencymask", [
71020
71051
 
71021
71052
  var Version;
71022
71053
  var ReleaseDate;
71023
- Version = "" + "1.12.23";
71054
+ Version = "" + "1.12.25";
71024
71055
  settings.version = Version;
71025
- ReleaseDate = "" + "2025-02-11";
71056
+ ReleaseDate = "" + "2025-02-25";
71026
71057
  function checkLibraryVersion(ver, libraryName) {
71027
71058
  if (Version != ver) {
71028
71059
  var str = "survey-core has version '" + Version + "' and " + libraryName