survey-core 1.11.5 → 1.11.6

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 (230) hide show
  1. package/defaultV2.css +5 -1
  2. package/defaultV2.css.map +1 -1
  3. package/defaultV2.fontless.css +5 -1
  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 +2 -2
  22. package/i18n/dutch.js.map +1 -1
  23. package/i18n/dutch.min.js +2 -2
  24. package/i18n/english.js +1 -1
  25. package/i18n/english.min.js +1 -1
  26. package/i18n/estonian.js +1 -1
  27. package/i18n/estonian.min.js +1 -1
  28. package/i18n/finnish.js +1 -1
  29. package/i18n/finnish.min.js +1 -1
  30. package/i18n/french.js +1 -1
  31. package/i18n/french.min.js +1 -1
  32. package/i18n/georgian.js +1 -1
  33. package/i18n/georgian.min.js +1 -1
  34. package/i18n/german.js +1 -1
  35. package/i18n/german.min.js +1 -1
  36. package/i18n/greek.js +1 -1
  37. package/i18n/greek.min.js +1 -1
  38. package/i18n/hebrew.js +1 -1
  39. package/i18n/hebrew.min.js +1 -1
  40. package/i18n/hindi.js +1 -1
  41. package/i18n/hindi.min.js +1 -1
  42. package/i18n/hungarian.js +1 -1
  43. package/i18n/hungarian.min.js +1 -1
  44. package/i18n/icelandic.js +1 -1
  45. package/i18n/icelandic.min.js +1 -1
  46. package/i18n/index.js +2 -2
  47. package/i18n/index.js.map +1 -1
  48. package/i18n/index.min.js +2 -2
  49. package/i18n/indonesian.js +1 -1
  50. package/i18n/indonesian.min.js +1 -1
  51. package/i18n/italian.js +1 -1
  52. package/i18n/italian.min.js +1 -1
  53. package/i18n/japanese.js +1 -1
  54. package/i18n/japanese.min.js +1 -1
  55. package/i18n/kazakh.js +1 -1
  56. package/i18n/kazakh.min.js +1 -1
  57. package/i18n/korean.js +1 -1
  58. package/i18n/korean.min.js +1 -1
  59. package/i18n/latvian.js +1 -1
  60. package/i18n/latvian.min.js +1 -1
  61. package/i18n/lithuanian.js +1 -1
  62. package/i18n/lithuanian.min.js +1 -1
  63. package/i18n/macedonian.js +1 -1
  64. package/i18n/macedonian.min.js +1 -1
  65. package/i18n/malay.js +1 -1
  66. package/i18n/malay.min.js +1 -1
  67. package/i18n/nl-BE.js +2 -2
  68. package/i18n/nl-BE.js.map +1 -1
  69. package/i18n/nl-BE.min.js +2 -2
  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/spanish.js +1 -1
  93. package/i18n/spanish.min.js +1 -1
  94. package/i18n/swahili.js +1 -1
  95. package/i18n/swahili.min.js +1 -1
  96. package/i18n/swedish.js +1 -1
  97. package/i18n/swedish.min.js +1 -1
  98. package/i18n/tajik.js +1 -1
  99. package/i18n/tajik.min.js +1 -1
  100. package/i18n/telugu.js +1 -1
  101. package/i18n/telugu.min.js +1 -1
  102. package/i18n/thai.js +1 -1
  103. package/i18n/thai.min.js +1 -1
  104. package/i18n/traditional-chinese.js +1 -1
  105. package/i18n/traditional-chinese.min.js +1 -1
  106. package/i18n/turkish.js +1 -1
  107. package/i18n/turkish.min.js +1 -1
  108. package/i18n/ukrainian.js +1 -1
  109. package/i18n/ukrainian.min.js +1 -1
  110. package/i18n/urdu.js +1 -1
  111. package/i18n/urdu.min.js +1 -1
  112. package/i18n/vietnamese.js +1 -1
  113. package/i18n/vietnamese.min.js +1 -1
  114. package/i18n/welsh.js +1 -1
  115. package/i18n/welsh.min.js +1 -1
  116. package/modern.css +1 -1
  117. package/modern.fontless.css +1 -1
  118. package/modern.fontless.min.css +1 -1
  119. package/modern.min.css +1 -1
  120. package/package.json +1 -1
  121. package/plugins/bootstrap-integration.js +1 -1
  122. package/plugins/bootstrap-integration.min.js +1 -1
  123. package/plugins/bootstrap-material-integration.js +1 -1
  124. package/plugins/bootstrap-material-integration.min.js +1 -1
  125. package/survey.core.js +104 -51
  126. package/survey.core.js.map +1 -1
  127. package/survey.core.min.js +3 -3
  128. package/survey.css +1 -1
  129. package/survey.i18n.js +2 -2
  130. package/survey.i18n.js.map +1 -1
  131. package/survey.i18n.min.js +2 -2
  132. package/survey.min.css +1 -1
  133. package/themes/borderless-dark-panelless.js +1 -1
  134. package/themes/borderless-dark-panelless.min.js +1 -1
  135. package/themes/borderless-dark.js +1 -1
  136. package/themes/borderless-dark.min.js +1 -1
  137. package/themes/borderless-light-panelless..js +1 -1
  138. package/themes/borderless-light-panelless..min.js +1 -1
  139. package/themes/borderless-light.js +1 -1
  140. package/themes/borderless-light.min.js +1 -1
  141. package/themes/contrast-dark-panelless.js +1 -1
  142. package/themes/contrast-dark-panelless.min.js +1 -1
  143. package/themes/contrast-dark.js +1 -1
  144. package/themes/contrast-dark.min.js +1 -1
  145. package/themes/contrast-light-panelless.js +1 -1
  146. package/themes/contrast-light-panelless.min.js +1 -1
  147. package/themes/contrast-light.js +1 -1
  148. package/themes/contrast-light.min.js +1 -1
  149. package/themes/default-dark-panelless.js +1 -1
  150. package/themes/default-dark-panelless.min.js +1 -1
  151. package/themes/default-dark.js +1 -1
  152. package/themes/default-dark.min.js +1 -1
  153. package/themes/default-light-panelless.js +1 -1
  154. package/themes/default-light-panelless.min.js +1 -1
  155. package/themes/default-light.js +1 -1
  156. package/themes/default-light.min.js +1 -1
  157. package/themes/doubleborder-dark-panelless.js +1 -1
  158. package/themes/doubleborder-dark-panelless.min.js +1 -1
  159. package/themes/doubleborder-dark.js +1 -1
  160. package/themes/doubleborder-dark.min.js +1 -1
  161. package/themes/doubleborder-light-panelles.js +1 -1
  162. package/themes/doubleborder-light-panelles.min.js +1 -1
  163. package/themes/doubleborder-light.js +1 -1
  164. package/themes/doubleborder-light.min.js +1 -1
  165. package/themes/flat-dark-panelless.js +1 -1
  166. package/themes/flat-dark-panelless.min.js +1 -1
  167. package/themes/flat-dark.js +1 -1
  168. package/themes/flat-dark.min.js +1 -1
  169. package/themes/flat-light-panelless.js +1 -1
  170. package/themes/flat-light-panelless.min.js +1 -1
  171. package/themes/flat-light.js +1 -1
  172. package/themes/flat-light.min.js +1 -1
  173. package/themes/index.js +1 -1
  174. package/themes/index.min.js +1 -1
  175. package/themes/layered-dark-panelless.js +1 -1
  176. package/themes/layered-dark-panelless.min.js +1 -1
  177. package/themes/layered-dark.js +1 -1
  178. package/themes/layered-dark.min.js +1 -1
  179. package/themes/layered-light-panelless.js +1 -1
  180. package/themes/layered-light-panelless.min.js +1 -1
  181. package/themes/layered-light.js +1 -1
  182. package/themes/layered-light.min.js +1 -1
  183. package/themes/plain-dark-panelless.js +1 -1
  184. package/themes/plain-dark-panelless.min.js +1 -1
  185. package/themes/plain-dark.js +1 -1
  186. package/themes/plain-dark.min.js +1 -1
  187. package/themes/plain-light-panelless.js +1 -1
  188. package/themes/plain-light-panelless.min.js +1 -1
  189. package/themes/plain-light.js +1 -1
  190. package/themes/plain-light.min.js +1 -1
  191. package/themes/sharp-dark-panelless.js +1 -1
  192. package/themes/sharp-dark-panelless.min.js +1 -1
  193. package/themes/sharp-dark.js +1 -1
  194. package/themes/sharp-dark.min.js +1 -1
  195. package/themes/sharp-light-panelless.js +1 -1
  196. package/themes/sharp-light-panelless.min.js +1 -1
  197. package/themes/sharp-light.js +1 -1
  198. package/themes/sharp-light.min.js +1 -1
  199. package/themes/solid-dark-panelless.js +1 -1
  200. package/themes/solid-dark-panelless.min.js +1 -1
  201. package/themes/solid-dark.js +1 -1
  202. package/themes/solid-dark.min.js +1 -1
  203. package/themes/solid-light-panelless.js +1 -1
  204. package/themes/solid-light-panelless.min.js +1 -1
  205. package/themes/solid-light.js +1 -1
  206. package/themes/solid-light.min.js +1 -1
  207. package/themes/three-dimensional-dark-panelless.js +1 -1
  208. package/themes/three-dimensional-dark-panelless.min.js +1 -1
  209. package/themes/three-dimensional-dark.js +1 -1
  210. package/themes/three-dimensional-dark.min.js +1 -1
  211. package/themes/three-dimensional-light-panelless.js +1 -1
  212. package/themes/three-dimensional-light-panelless.min.js +1 -1
  213. package/themes/three-dimensional-light.js +1 -1
  214. package/themes/three-dimensional-light.min.js +1 -1
  215. package/ts3.4/typings/actions/action.d.ts +6 -0
  216. package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +1 -0
  217. package/ts3.4/typings/dropdownListModel.d.ts +0 -1
  218. package/ts3.4/typings/question_paneldynamic.d.ts +1 -1
  219. package/ts3.4/typings/survey-element.d.ts +20 -15
  220. package/ts3.4/typings/survey-events-api.d.ts +1 -1
  221. package/ts3.4/typings/survey.d.ts +18 -0
  222. package/typings/actions/action.d.ts +6 -0
  223. package/typings/defaultCss/defaultV2Css.d.ts +1 -0
  224. package/typings/dropdownListModel.d.ts +0 -1
  225. package/typings/knockout/kobase.d.ts +8 -8
  226. package/typings/knockout/kopage.d.ts +37 -37
  227. package/typings/question_paneldynamic.d.ts +1 -1
  228. package/typings/survey-element.d.ts +20 -15
  229. package/typings/survey-events-api.d.ts +1 -1
  230. package/typings/survey.d.ts +18 -0
package/i18n/turkish.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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/i18n/ukrainian.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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/i18n/urdu.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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/i18n/urdu.min.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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/i18n/welsh.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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/i18n/welsh.min.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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/modern.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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/modern.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-core",
3
- "version": "1.11.5",
3
+ "version": "1.11.6",
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.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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.11.5
2
+ * surveyjs - Survey JavaScript library v1.11.6
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
  */
@@ -1147,6 +1147,23 @@ var Action = /** @class */ (function (_super) {
1147
1147
  this.locTooltipChanged();
1148
1148
  this.locStrChangedInPopupModel();
1149
1149
  };
1150
+ Action.prototype.doAction = function (args) {
1151
+ var evt = !!args.originalEvent ? args.originalEvent : args;
1152
+ this.action(this, evt.isTrusted);
1153
+ evt.preventDefault();
1154
+ evt.stopPropagation();
1155
+ return true;
1156
+ };
1157
+ Action.prototype.doMouseDown = function () {
1158
+ this.isMouseDown = true;
1159
+ };
1160
+ Action.prototype.doFocus = function (args) {
1161
+ if (!!this.onFocus) {
1162
+ var evt = !!args.originalEvent ? args.originalEvent : args;
1163
+ this.onFocus(this.isMouseDown, evt);
1164
+ }
1165
+ this.isMouseDown = false;
1166
+ };
1150
1167
  Action.prototype.locStrChangedInPopupModel = function () {
1151
1168
  if (!this.popupModel || !this.popupModel.contentComponentData || !this.popupModel.contentComponentData.model)
1152
1169
  return;
@@ -1227,6 +1244,9 @@ var Action = /** @class */ (function (_super) {
1227
1244
  __decorate([
1228
1245
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])()
1229
1246
  ], Action.prototype, "action", void 0);
1247
+ __decorate([
1248
+ Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])()
1249
+ ], Action.prototype, "onFocus", void 0);
1230
1250
  __decorate([
1231
1251
  Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])()
1232
1252
  ], Action.prototype, "_component", void 0);
@@ -5616,6 +5636,7 @@ var defaultV2Css = {
5616
5636
  titleExpanded: "sd-element__title--expanded",
5617
5637
  titleCollapsed: "sd-element__title--collapsed",
5618
5638
  titleDisabled: "sd-element__title--disabled",
5639
+ titleHidden: "sd-element__title--hidden",
5619
5640
  titleOnExpand: "sd-panel__title--expanded",
5620
5641
  titleOnError: "sd-panel__title--error",
5621
5642
  titleBar: "sd-action-title-bar",
@@ -8184,7 +8205,6 @@ var DropdownListModel = /** @class */ (function (_super) {
8184
8205
  _this.selectedItemSelector = ".sv-list__item--selected";
8185
8206
  _this.itemSelector = ".sv-list__item";
8186
8207
  _this.itemsSettings = { skip: 0, take: 0, totalCount: 0, items: [] };
8187
- _this.isRunningLoadQuestionChoices = false;
8188
8208
  _this.popupCssClasses = "sv-single-select-list";
8189
8209
  _this.listModelFilterStringChanged = function (newValue) {
8190
8210
  if (_this.filterString !== newValue) {
@@ -8235,14 +8255,12 @@ var DropdownListModel = /** @class */ (function (_super) {
8235
8255
  };
8236
8256
  DropdownListModel.prototype.loadQuestionChoices = function (callbackAfterItemsLoaded) {
8237
8257
  var _this = this;
8238
- this.isRunningLoadQuestionChoices = true;
8239
8258
  this.question.survey.loadQuestionChoices({
8240
8259
  question: this.question,
8241
8260
  filter: this.filterString,
8242
8261
  skip: this.itemsSettings.skip,
8243
8262
  take: this.itemsSettings.take,
8244
8263
  setItems: function (items, totalCount) {
8245
- _this.isRunningLoadQuestionChoices = false;
8246
8264
  _this.setItems(items || [], totalCount || 0);
8247
8265
  _this.popupRecalculatePosition(_this.itemsSettings.skip === _this.itemsSettings.take);
8248
8266
  if (!!callbackAfterItemsLoaded) {
@@ -8254,8 +8272,6 @@ var DropdownListModel = /** @class */ (function (_super) {
8254
8272
  };
8255
8273
  DropdownListModel.prototype.updateQuestionChoices = function (callbackAfterItemsLoaded) {
8256
8274
  var _this = this;
8257
- if (this.isRunningLoadQuestionChoices)
8258
- return;
8259
8275
  var isUpdate = (this.itemsSettings.skip + 1) < this.itemsSettings.totalCount;
8260
8276
  if (!this.itemsSettings.skip || isUpdate) {
8261
8277
  if (!!this.filterString && _settings__WEBPACK_IMPORTED_MODULE_7__["settings"].dropdownSearchDelay > 0) {
@@ -9824,8 +9840,8 @@ __webpack_require__.r(__webpack_exports__);
9824
9840
 
9825
9841
  var Version;
9826
9842
  var ReleaseDate;
9827
- Version = "" + "1.11.5";
9828
- ReleaseDate = "" + "2024-07-03";
9843
+ Version = "" + "1.11.6";
9844
+ ReleaseDate = "" + "2024-07-10";
9829
9845
  function checkLibraryVersion(ver, libraryName) {
9830
9846
  if (Version != ver) {
9831
9847
  var str = "survey-core has version '" + Version + "' and " + libraryName
@@ -19994,7 +20010,7 @@ var JsonObject = /** @class */ (function () {
19994
20010
  JsonObject.prototype.toJsonObjectCore = function (obj, property, options) {
19995
20011
  if (!obj || !obj.getType)
19996
20012
  return obj;
19997
- if (typeof obj.getData === "function")
20013
+ if (!obj.isSurvey && typeof obj.getData === "function")
19998
20014
  return obj.getData();
19999
20015
  var result = {};
20000
20016
  if (property != null && !property.className) {
@@ -23126,6 +23142,8 @@ var InputMaskNumeric = /** @class */ (function (_super) {
23126
23142
  InputMaskNumeric.prototype.validateNumber = function (number, matchWholeMask) {
23127
23143
  var min = this.min || Number.MIN_SAFE_INTEGER;
23128
23144
  var max = this.max || Number.MAX_SAFE_INTEGER;
23145
+ if (this.numericalCompositionIsEmpty(number))
23146
+ return true;
23129
23147
  if (this.min !== undefined || this.max !== undefined) {
23130
23148
  var value = this.convertNumber(number);
23131
23149
  if (Number.isNaN(value)) {
@@ -26370,7 +26388,7 @@ var PanelModel = /** @class */ (function (_super) {
26370
26388
  var _this = this;
26371
26389
  var locTitleValue = _super.prototype.createLocTitleProperty.call(this);
26372
26390
  locTitleValue.onGetTextCallback = function (text) {
26373
- if (!text && (_this.state !== "default")) {
26391
+ if (!text && (_this.state !== "default" || (_this.isDesignMode && _this.isDefaultV2Theme))) {
26374
26392
  text = _this.name;
26375
26393
  }
26376
26394
  return text;
@@ -26533,7 +26551,10 @@ var PanelModel = /** @class */ (function (_super) {
26533
26551
  };
26534
26552
  Object.defineProperty(PanelModel.prototype, "cssTitle", {
26535
26553
  get: function () {
26536
- return this.getCssTitle(this.cssClasses.panel);
26554
+ return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_9__["CssClassBuilder"]()
26555
+ .append(this.getCssTitle(this.cssClasses.panel))
26556
+ .append(this.cssClasses.panel.titleHidden, !this.title && this.isDesignMode)
26557
+ .toString();
26537
26558
  },
26538
26559
  enumerable: false,
26539
26560
  configurable: true
@@ -44390,14 +44411,17 @@ var QuestionMatrixDropdownModelBase = /** @class */ (function (_super) {
44390
44411
  var _this = this;
44391
44412
  duplicatedRows.forEach(function (row) {
44392
44413
  var question = row.getQuestionByName(columnName);
44393
- if (!question && _this.detailPanel.getQuestionByName(columnName)) {
44414
+ var inDetailPanel = _this.detailPanel.getQuestionByName(columnName);
44415
+ if (!question && inDetailPanel) {
44394
44416
  row.showDetailPanel();
44395
44417
  if (row.detailPanel) {
44396
44418
  question = row.detailPanel.getQuestionByName(columnName);
44397
44419
  }
44398
44420
  }
44399
44421
  if (question) {
44400
- row.showDetailPanel();
44422
+ if (inDetailPanel) {
44423
+ row.showDetailPanel();
44424
+ }
44401
44425
  _this.addDuplicationError(question);
44402
44426
  }
44403
44427
  });
@@ -51499,9 +51523,10 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
51499
51523
  }
51500
51524
  return -1;
51501
51525
  };
51502
- QuestionPanelDynamicModel.prototype.getPanelIndexById = function (id) {
51503
- for (var i = 0; i < this.panelsCore.length; i++) {
51504
- if (this.panelsCore[i].id === id)
51526
+ QuestionPanelDynamicModel.prototype.getPanelVisibleIndexById = function (id) {
51527
+ var visPanels = this.visiblePanelsCore;
51528
+ for (var i = 0; i < visPanels.length; i++) {
51529
+ if (visPanels[i].id === id)
51505
51530
  return i;
51506
51531
  }
51507
51532
  return -1;
@@ -52416,14 +52441,14 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
52416
52441
  return options.title;
52417
52442
  };
52418
52443
  locTitle.sharedData = this.locTemplateTabTitle;
52419
- var isActive = this.getPanelIndexById(panel.id) === this.currentIndex;
52444
+ var isActive = this.getPanelVisibleIndexById(panel.id) === this.currentIndex;
52420
52445
  var newItem = new _actions_action__WEBPACK_IMPORTED_MODULE_11__["Action"]({
52421
52446
  id: panel.id,
52422
52447
  pressed: isActive,
52423
52448
  locTitle: locTitle,
52424
52449
  disableHide: isActive,
52425
52450
  action: function () {
52426
- _this.currentIndex = _this.getPanelIndexById(newItem.id);
52451
+ _this.currentIndex = _this.getPanelVisibleIndexById(newItem.id);
52427
52452
  }
52428
52453
  });
52429
52454
  return newItem;
@@ -53100,6 +53125,7 @@ var QuestionRankingModel = /** @class */ (function (_super) {
53100
53125
  QuestionRankingModel.prototype.onSurveyLoad = function () {
53101
53126
  this.blockAnimations();
53102
53127
  _super.prototype.onSurveyLoad.call(this);
53128
+ this.updateRankingChoices();
53103
53129
  this.releaseAnimations();
53104
53130
  };
53105
53131
  QuestionRankingModel.prototype.addToValueByVisibleChoices = function () {
@@ -58391,6 +58417,42 @@ var SurveyElementCore = /** @class */ (function (_super) {
58391
58417
  SurveyElementCore.prototype.createLocTitleProperty = function () {
58392
58418
  return this.createLocalizableString("title", this, true);
58393
58419
  };
58420
+ Object.defineProperty(SurveyElementCore.prototype, "isPage", {
58421
+ /**
58422
+ * Returns `true` if the survey element is a page.
58423
+ * @see Base.getType
58424
+ */
58425
+ get: function () { return false; },
58426
+ enumerable: false,
58427
+ configurable: true
58428
+ });
58429
+ Object.defineProperty(SurveyElementCore.prototype, "isPanel", {
58430
+ /**
58431
+ * Returns `true` if the survey element is a panel.
58432
+ * @see Base.getType
58433
+ */
58434
+ get: function () { return false; },
58435
+ enumerable: false,
58436
+ configurable: true
58437
+ });
58438
+ Object.defineProperty(SurveyElementCore.prototype, "isQuestion", {
58439
+ /**
58440
+ * Returns `true` if the survey element is a question.
58441
+ * @see Base.getType
58442
+ */
58443
+ get: function () { return false; },
58444
+ enumerable: false,
58445
+ configurable: true
58446
+ });
58447
+ Object.defineProperty(SurveyElementCore.prototype, "isSurvey", {
58448
+ /**
58449
+ * Returns `true` if the element is a survey.
58450
+ * @see Base.getType
58451
+ */
58452
+ get: function () { return false; },
58453
+ enumerable: false,
58454
+ configurable: true
58455
+ });
58394
58456
  Object.defineProperty(SurveyElementCore.prototype, "title", {
58395
58457
  /**
58396
58458
  * A title for the survey element. If `title` is undefined, the `name` property value is displayed instead.
@@ -59222,39 +59284,6 @@ var SurveyElement = /** @class */ (function (_super) {
59222
59284
  SurveyElement.prototype.setVisibleIndex = function (index) {
59223
59285
  return 0;
59224
59286
  };
59225
- Object.defineProperty(SurveyElement.prototype, "isPage", {
59226
- /**
59227
- * Returns `true` if the survey element is a page.
59228
- * @see Base.getType
59229
- */
59230
- get: function () {
59231
- return false;
59232
- },
59233
- enumerable: false,
59234
- configurable: true
59235
- });
59236
- Object.defineProperty(SurveyElement.prototype, "isPanel", {
59237
- /**
59238
- * Returns `true` if the survey element is a panel.
59239
- * @see Base.getType
59240
- */
59241
- get: function () {
59242
- return false;
59243
- },
59244
- enumerable: false,
59245
- configurable: true
59246
- });
59247
- Object.defineProperty(SurveyElement.prototype, "isQuestion", {
59248
- /**
59249
- * Returns `true` if the survey element is a question.
59250
- * @see Base.getType
59251
- */
59252
- get: function () {
59253
- return false;
59254
- },
59255
- enumerable: false,
59256
- configurable: true
59257
- });
59258
59287
  SurveyElement.prototype.delete = function (doDispose) { };
59259
59288
  /**
59260
59289
  * Returns the survey's [locale](https://surveyjs.io/form-library/documentation/surveymodel#locale).
@@ -63140,6 +63169,30 @@ var SurveyModel = /** @class */ (function (_super) {
63140
63169
  this.runConditions();
63141
63170
  this.updateAllQuestionsValue(clearData);
63142
63171
  };
63172
+ Object.defineProperty(SurveyModel.prototype, "isSurvey", {
63173
+ get: function () { return true; },
63174
+ enumerable: false,
63175
+ configurable: true
63176
+ });
63177
+ /**
63178
+ * Returns an object with survey results.
63179
+ *
63180
+ * If you want to get a survey results object that mirrors the survey structure, call the `getData()` method with an object that has the `includePages` and `includePanels` properties enabled. Without this object, the `getData()` method returns the [`data`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#data) property value.
63181
+ *
63182
+ * ```js
63183
+ * import { Model } from "survey-core";
63184
+ *
63185
+ * const surveyJson = { ... };
63186
+ * const survey = new Model(surveyJson);
63187
+ * survey.getData({ includePages: true, includePanels: true });
63188
+ * ```
63189
+ */
63190
+ SurveyModel.prototype.getData = function (options) {
63191
+ var opt = options || { includePages: false, includePanels: false };
63192
+ if (!opt.includePages && !opt.includePanels)
63193
+ return this.data;
63194
+ return this.getStructuredData(!!opt.includePages, !opt.includePanels ? (opt.includePages ? 1 : 0) : -1);
63195
+ };
63143
63196
  SurveyModel.prototype.getStructuredData = function (includePages, level) {
63144
63197
  if (includePages === void 0) { includePages = true; }
63145
63198
  if (level === void 0) { level = -1; }