survey-core 2.0.0-rc.6 → 2.0.0-rc.7

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 (353) hide show
  1. package/fesm/i18n/arabic.js +1 -1
  2. package/fesm/i18n/basque.js +1 -1
  3. package/fesm/i18n/bulgarian.js +1 -1
  4. package/fesm/i18n/burmese.js +1 -1
  5. package/fesm/i18n/catalan.js +1 -1
  6. package/fesm/i18n/croatian.js +1 -1
  7. package/fesm/i18n/czech.js +1 -1
  8. package/fesm/i18n/danish.js +1 -1
  9. package/fesm/i18n/dutch.js +1 -1
  10. package/fesm/i18n/english.js +1 -1
  11. package/fesm/i18n/estonian.js +1 -1
  12. package/fesm/i18n/finnish.js +1 -1
  13. package/fesm/i18n/french.js +1 -1
  14. package/fesm/i18n/georgian.js +1 -1
  15. package/fesm/i18n/german.js +1 -1
  16. package/fesm/i18n/greek.js +1 -1
  17. package/fesm/i18n/hebrew.js +1 -1
  18. package/fesm/i18n/hindi.js +1 -1
  19. package/fesm/i18n/hungarian.js +1 -1
  20. package/fesm/i18n/icelandic.js +1 -1
  21. package/fesm/i18n/index.js +1 -1
  22. package/fesm/i18n/indonesian.js +1 -1
  23. package/fesm/i18n/italian.js +1 -1
  24. package/fesm/i18n/japanese.js +1 -1
  25. package/fesm/i18n/kazakh.js +1 -1
  26. package/fesm/i18n/korean.js +1 -1
  27. package/fesm/i18n/latvian.js +1 -1
  28. package/fesm/i18n/lithuanian.js +1 -1
  29. package/fesm/i18n/macedonian.js +1 -1
  30. package/fesm/i18n/malay.js +1 -1
  31. package/fesm/i18n/nl-BE.js +1 -1
  32. package/fesm/i18n/norwegian.js +1 -1
  33. package/fesm/i18n/persian.js +1 -1
  34. package/fesm/i18n/philippines.js +1 -1
  35. package/fesm/i18n/polish.js +1 -1
  36. package/fesm/i18n/portuguese-br.js +1 -1
  37. package/fesm/i18n/portuguese.js +1 -1
  38. package/fesm/i18n/romanian.js +1 -1
  39. package/fesm/i18n/russian.js +1 -1
  40. package/fesm/i18n/serbian.js +1 -1
  41. package/fesm/i18n/simplified-chinese.js +1 -1
  42. package/fesm/i18n/slovak.js +1 -1
  43. package/fesm/i18n/slovenian.js +1 -1
  44. package/fesm/i18n/spanish.js +1 -1
  45. package/fesm/i18n/swahili.js +1 -1
  46. package/fesm/i18n/swedish.js +1 -1
  47. package/fesm/i18n/tajik.js +1 -1
  48. package/fesm/i18n/telugu.js +1 -1
  49. package/fesm/i18n/thai.js +1 -1
  50. package/fesm/i18n/traditional-chinese.js +1 -1
  51. package/fesm/i18n/turkish.js +1 -1
  52. package/fesm/i18n/ukrainian.js +1 -1
  53. package/fesm/i18n/urdu.js +1 -1
  54. package/fesm/i18n/vietnamese.js +1 -1
  55. package/fesm/i18n/welsh.js +1 -1
  56. package/fesm/icons/iconsV1.js +1 -1
  57. package/fesm/icons/iconsV2.js +1 -1
  58. package/fesm/survey-core.js +69 -48
  59. package/fesm/survey-core.js.map +1 -1
  60. package/fesm/survey.i18n.js +1 -1
  61. package/fesm/themes/index.js +1 -1
  62. package/i18n/arabic.js +1 -1
  63. package/i18n/arabic.min.js.LICENSE.txt +1 -1
  64. package/i18n/basque.js +1 -1
  65. package/i18n/basque.min.js.LICENSE.txt +1 -1
  66. package/i18n/bulgarian.js +1 -1
  67. package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
  68. package/i18n/burmese.js +1 -1
  69. package/i18n/burmese.min.js.LICENSE.txt +1 -1
  70. package/i18n/catalan.js +1 -1
  71. package/i18n/catalan.min.js.LICENSE.txt +1 -1
  72. package/i18n/croatian.js +1 -1
  73. package/i18n/croatian.min.js.LICENSE.txt +1 -1
  74. package/i18n/czech.js +1 -1
  75. package/i18n/czech.min.js.LICENSE.txt +1 -1
  76. package/i18n/danish.js +1 -1
  77. package/i18n/danish.min.js.LICENSE.txt +1 -1
  78. package/i18n/dutch.js +1 -1
  79. package/i18n/dutch.min.js.LICENSE.txt +1 -1
  80. package/i18n/english.js +1 -1
  81. package/i18n/english.min.js.LICENSE.txt +1 -1
  82. package/i18n/estonian.js +1 -1
  83. package/i18n/estonian.min.js.LICENSE.txt +1 -1
  84. package/i18n/finnish.js +1 -1
  85. package/i18n/finnish.min.js.LICENSE.txt +1 -1
  86. package/i18n/french.js +1 -1
  87. package/i18n/french.min.js.LICENSE.txt +1 -1
  88. package/i18n/georgian.js +1 -1
  89. package/i18n/georgian.min.js.LICENSE.txt +1 -1
  90. package/i18n/german.js +1 -1
  91. package/i18n/german.min.js.LICENSE.txt +1 -1
  92. package/i18n/greek.js +1 -1
  93. package/i18n/greek.min.js.LICENSE.txt +1 -1
  94. package/i18n/hebrew.js +1 -1
  95. package/i18n/hebrew.min.js.LICENSE.txt +1 -1
  96. package/i18n/hindi.js +1 -1
  97. package/i18n/hindi.min.js.LICENSE.txt +1 -1
  98. package/i18n/hungarian.js +1 -1
  99. package/i18n/hungarian.min.js.LICENSE.txt +1 -1
  100. package/i18n/icelandic.js +1 -1
  101. package/i18n/icelandic.min.js.LICENSE.txt +1 -1
  102. package/i18n/index.js +1 -1
  103. package/i18n/index.min.js.LICENSE.txt +1 -1
  104. package/i18n/indonesian.js +1 -1
  105. package/i18n/indonesian.min.js.LICENSE.txt +1 -1
  106. package/i18n/italian.js +1 -1
  107. package/i18n/italian.min.js.LICENSE.txt +1 -1
  108. package/i18n/japanese.js +1 -1
  109. package/i18n/japanese.min.js.LICENSE.txt +1 -1
  110. package/i18n/kazakh.js +1 -1
  111. package/i18n/kazakh.min.js.LICENSE.txt +1 -1
  112. package/i18n/korean.js +1 -1
  113. package/i18n/korean.min.js.LICENSE.txt +1 -1
  114. package/i18n/latvian.js +1 -1
  115. package/i18n/latvian.min.js.LICENSE.txt +1 -1
  116. package/i18n/lithuanian.js +1 -1
  117. package/i18n/lithuanian.min.js.LICENSE.txt +1 -1
  118. package/i18n/macedonian.js +1 -1
  119. package/i18n/macedonian.min.js.LICENSE.txt +1 -1
  120. package/i18n/malay.js +1 -1
  121. package/i18n/malay.min.js.LICENSE.txt +1 -1
  122. package/i18n/nl-BE.js +1 -1
  123. package/i18n/nl-BE.min.js.LICENSE.txt +1 -1
  124. package/i18n/norwegian.js +1 -1
  125. package/i18n/norwegian.min.js.LICENSE.txt +1 -1
  126. package/i18n/persian.js +1 -1
  127. package/i18n/persian.min.js.LICENSE.txt +1 -1
  128. package/i18n/philippines.js +1 -1
  129. package/i18n/philippines.min.js.LICENSE.txt +1 -1
  130. package/i18n/polish.js +1 -1
  131. package/i18n/polish.min.js.LICENSE.txt +1 -1
  132. package/i18n/portuguese-br.js +1 -1
  133. package/i18n/portuguese-br.min.js.LICENSE.txt +1 -1
  134. package/i18n/portuguese.js +1 -1
  135. package/i18n/portuguese.min.js.LICENSE.txt +1 -1
  136. package/i18n/romanian.js +1 -1
  137. package/i18n/romanian.min.js.LICENSE.txt +1 -1
  138. package/i18n/russian.js +1 -1
  139. package/i18n/russian.min.js.LICENSE.txt +1 -1
  140. package/i18n/serbian.js +1 -1
  141. package/i18n/serbian.min.js.LICENSE.txt +1 -1
  142. package/i18n/simplified-chinese.js +1 -1
  143. package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
  144. package/i18n/slovak.js +1 -1
  145. package/i18n/slovak.min.js.LICENSE.txt +1 -1
  146. package/i18n/slovenian.js +1 -1
  147. package/i18n/slovenian.min.js.LICENSE.txt +1 -1
  148. package/i18n/spanish.js +1 -1
  149. package/i18n/spanish.min.js.LICENSE.txt +1 -1
  150. package/i18n/swahili.js +1 -1
  151. package/i18n/swahili.min.js.LICENSE.txt +1 -1
  152. package/i18n/swedish.js +1 -1
  153. package/i18n/swedish.min.js.LICENSE.txt +1 -1
  154. package/i18n/tajik.js +1 -1
  155. package/i18n/tajik.min.js.LICENSE.txt +1 -1
  156. package/i18n/telugu.js +1 -1
  157. package/i18n/telugu.min.js.LICENSE.txt +1 -1
  158. package/i18n/thai.js +1 -1
  159. package/i18n/thai.min.js.LICENSE.txt +1 -1
  160. package/i18n/traditional-chinese.js +1 -1
  161. package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
  162. package/i18n/turkish.js +1 -1
  163. package/i18n/turkish.min.js.LICENSE.txt +1 -1
  164. package/i18n/ukrainian.js +1 -1
  165. package/i18n/ukrainian.min.js.LICENSE.txt +1 -1
  166. package/i18n/urdu.js +1 -1
  167. package/i18n/urdu.min.js.LICENSE.txt +1 -1
  168. package/i18n/vietnamese.js +1 -1
  169. package/i18n/vietnamese.min.js.LICENSE.txt +1 -1
  170. package/i18n/welsh.js +1 -1
  171. package/i18n/welsh.min.js.LICENSE.txt +1 -1
  172. package/icons/iconsV1.js +1 -1
  173. package/icons/iconsV1.min.js.LICENSE.txt +1 -1
  174. package/icons/iconsV2.js +1 -1
  175. package/icons/iconsV2.min.js.LICENSE.txt +1 -1
  176. package/package.json +1 -1
  177. package/survey-core.css +1 -1
  178. package/survey-core.fontless.css +1 -1
  179. package/survey-core.fontless.min.css +1 -1
  180. package/survey-core.min.css +1 -1
  181. package/survey.core.js +84 -64
  182. package/survey.core.js.map +1 -1
  183. package/survey.core.min.js +1 -1
  184. package/survey.core.min.js.LICENSE.txt +1 -1
  185. package/survey.i18n.js +1 -1
  186. package/survey.i18n.min.js.LICENSE.txt +1 -1
  187. package/themes/borderless-dark-panelless.js +2 -2
  188. package/themes/borderless-dark-panelless.js.map +1 -1
  189. package/themes/borderless-dark-panelless.min.js +1 -1
  190. package/themes/borderless-dark-panelless.min.js.LICENSE.txt +1 -1
  191. package/themes/borderless-dark.js +2 -2
  192. package/themes/borderless-dark.js.map +1 -1
  193. package/themes/borderless-dark.min.js +1 -1
  194. package/themes/borderless-dark.min.js.LICENSE.txt +1 -1
  195. package/themes/borderless-light-panelless.js +2 -2
  196. package/themes/borderless-light-panelless.js.map +1 -1
  197. package/themes/borderless-light-panelless.min.js +1 -1
  198. package/themes/borderless-light-panelless.min.js.LICENSE.txt +1 -1
  199. package/themes/borderless-light.js +2 -2
  200. package/themes/borderless-light.js.map +1 -1
  201. package/themes/borderless-light.min.js +1 -1
  202. package/themes/borderless-light.min.js.LICENSE.txt +1 -1
  203. package/themes/contrast-dark-panelless.js +2 -2
  204. package/themes/contrast-dark-panelless.js.map +1 -1
  205. package/themes/contrast-dark-panelless.min.js +1 -1
  206. package/themes/contrast-dark-panelless.min.js.LICENSE.txt +1 -1
  207. package/themes/contrast-dark.js +2 -2
  208. package/themes/contrast-dark.js.map +1 -1
  209. package/themes/contrast-dark.min.js +1 -1
  210. package/themes/contrast-dark.min.js.LICENSE.txt +1 -1
  211. package/themes/contrast-light-panelless.js +2 -2
  212. package/themes/contrast-light-panelless.js.map +1 -1
  213. package/themes/contrast-light-panelless.min.js +1 -1
  214. package/themes/contrast-light-panelless.min.js.LICENSE.txt +1 -1
  215. package/themes/contrast-light.js +2 -2
  216. package/themes/contrast-light.js.map +1 -1
  217. package/themes/contrast-light.min.js +1 -1
  218. package/themes/contrast-light.min.js.LICENSE.txt +1 -1
  219. package/themes/default-dark-panelless.js +2 -2
  220. package/themes/default-dark-panelless.js.map +1 -1
  221. package/themes/default-dark-panelless.min.js +1 -1
  222. package/themes/default-dark-panelless.min.js.LICENSE.txt +1 -1
  223. package/themes/default-dark.js +2 -2
  224. package/themes/default-dark.js.map +1 -1
  225. package/themes/default-dark.min.js +1 -1
  226. package/themes/default-dark.min.js.LICENSE.txt +1 -1
  227. package/themes/default-light-panelless.js +2 -2
  228. package/themes/default-light-panelless.js.map +1 -1
  229. package/themes/default-light-panelless.min.js +1 -1
  230. package/themes/default-light-panelless.min.js.LICENSE.txt +1 -1
  231. package/themes/default-light.js +2 -2
  232. package/themes/default-light.js.map +1 -1
  233. package/themes/default-light.min.js +1 -1
  234. package/themes/default-light.min.js.LICENSE.txt +1 -1
  235. package/themes/doubleborder-dark-panelless.js +2 -2
  236. package/themes/doubleborder-dark-panelless.js.map +1 -1
  237. package/themes/doubleborder-dark-panelless.min.js +1 -1
  238. package/themes/doubleborder-dark-panelless.min.js.LICENSE.txt +1 -1
  239. package/themes/doubleborder-dark.js +2 -2
  240. package/themes/doubleborder-dark.js.map +1 -1
  241. package/themes/doubleborder-dark.min.js +1 -1
  242. package/themes/doubleborder-dark.min.js.LICENSE.txt +1 -1
  243. package/themes/doubleborder-light-panelles.js +2 -2
  244. package/themes/doubleborder-light-panelles.js.map +1 -1
  245. package/themes/doubleborder-light-panelles.min.js +1 -1
  246. package/themes/doubleborder-light-panelles.min.js.LICENSE.txt +1 -1
  247. package/themes/doubleborder-light.js +2 -2
  248. package/themes/doubleborder-light.js.map +1 -1
  249. package/themes/doubleborder-light.min.js +1 -1
  250. package/themes/doubleborder-light.min.js.LICENSE.txt +1 -1
  251. package/themes/flat-dark-panelless.js +2 -2
  252. package/themes/flat-dark-panelless.js.map +1 -1
  253. package/themes/flat-dark-panelless.min.js +1 -1
  254. package/themes/flat-dark-panelless.min.js.LICENSE.txt +1 -1
  255. package/themes/flat-dark.js +2 -2
  256. package/themes/flat-dark.js.map +1 -1
  257. package/themes/flat-dark.min.js +1 -1
  258. package/themes/flat-dark.min.js.LICENSE.txt +1 -1
  259. package/themes/flat-light-panelless.js +2 -2
  260. package/themes/flat-light-panelless.js.map +1 -1
  261. package/themes/flat-light-panelless.min.js +1 -1
  262. package/themes/flat-light-panelless.min.js.LICENSE.txt +1 -1
  263. package/themes/flat-light.js +2 -2
  264. package/themes/flat-light.js.map +1 -1
  265. package/themes/flat-light.min.js +1 -1
  266. package/themes/flat-light.min.js.LICENSE.txt +1 -1
  267. package/themes/index.js +2 -2
  268. package/themes/index.js.map +1 -1
  269. package/themes/index.min.js +1 -1
  270. package/themes/index.min.js.LICENSE.txt +1 -1
  271. package/themes/layered-dark-panelless.js +2 -2
  272. package/themes/layered-dark-panelless.js.map +1 -1
  273. package/themes/layered-dark-panelless.min.js +1 -1
  274. package/themes/layered-dark-panelless.min.js.LICENSE.txt +1 -1
  275. package/themes/layered-dark.js +2 -2
  276. package/themes/layered-dark.js.map +1 -1
  277. package/themes/layered-dark.min.js +1 -1
  278. package/themes/layered-dark.min.js.LICENSE.txt +1 -1
  279. package/themes/layered-light-panelless.js +2 -2
  280. package/themes/layered-light-panelless.js.map +1 -1
  281. package/themes/layered-light-panelless.min.js +1 -1
  282. package/themes/layered-light-panelless.min.js.LICENSE.txt +1 -1
  283. package/themes/layered-light.js +2 -2
  284. package/themes/layered-light.js.map +1 -1
  285. package/themes/layered-light.min.js +1 -1
  286. package/themes/layered-light.min.js.LICENSE.txt +1 -1
  287. package/themes/plain-dark-panelless.js +2 -2
  288. package/themes/plain-dark-panelless.js.map +1 -1
  289. package/themes/plain-dark-panelless.min.js +1 -1
  290. package/themes/plain-dark-panelless.min.js.LICENSE.txt +1 -1
  291. package/themes/plain-dark.js +2 -2
  292. package/themes/plain-dark.js.map +1 -1
  293. package/themes/plain-dark.min.js +1 -1
  294. package/themes/plain-dark.min.js.LICENSE.txt +1 -1
  295. package/themes/plain-light-panelless.js +2 -2
  296. package/themes/plain-light-panelless.js.map +1 -1
  297. package/themes/plain-light-panelless.min.js +1 -1
  298. package/themes/plain-light-panelless.min.js.LICENSE.txt +1 -1
  299. package/themes/plain-light.js +2 -2
  300. package/themes/plain-light.js.map +1 -1
  301. package/themes/plain-light.min.js +1 -1
  302. package/themes/plain-light.min.js.LICENSE.txt +1 -1
  303. package/themes/sharp-dark-panelless.js +2 -2
  304. package/themes/sharp-dark-panelless.js.map +1 -1
  305. package/themes/sharp-dark-panelless.min.js +1 -1
  306. package/themes/sharp-dark-panelless.min.js.LICENSE.txt +1 -1
  307. package/themes/sharp-dark.js +2 -2
  308. package/themes/sharp-dark.js.map +1 -1
  309. package/themes/sharp-dark.min.js +1 -1
  310. package/themes/sharp-dark.min.js.LICENSE.txt +1 -1
  311. package/themes/sharp-light-panelless.js +2 -2
  312. package/themes/sharp-light-panelless.js.map +1 -1
  313. package/themes/sharp-light-panelless.min.js +1 -1
  314. package/themes/sharp-light-panelless.min.js.LICENSE.txt +1 -1
  315. package/themes/sharp-light.js +2 -2
  316. package/themes/sharp-light.js.map +1 -1
  317. package/themes/sharp-light.min.js +1 -1
  318. package/themes/sharp-light.min.js.LICENSE.txt +1 -1
  319. package/themes/solid-dark-panelless.js +2 -2
  320. package/themes/solid-dark-panelless.js.map +1 -1
  321. package/themes/solid-dark-panelless.min.js +1 -1
  322. package/themes/solid-dark-panelless.min.js.LICENSE.txt +1 -1
  323. package/themes/solid-dark.js +2 -2
  324. package/themes/solid-dark.js.map +1 -1
  325. package/themes/solid-dark.min.js +1 -1
  326. package/themes/solid-dark.min.js.LICENSE.txt +1 -1
  327. package/themes/solid-light-panelless.js +2 -2
  328. package/themes/solid-light-panelless.js.map +1 -1
  329. package/themes/solid-light-panelless.min.js +1 -1
  330. package/themes/solid-light-panelless.min.js.LICENSE.txt +1 -1
  331. package/themes/solid-light.js +2 -2
  332. package/themes/solid-light.js.map +1 -1
  333. package/themes/solid-light.min.js +1 -1
  334. package/themes/solid-light.min.js.LICENSE.txt +1 -1
  335. package/themes/three-dimensional-dark-panelless.js +2 -2
  336. package/themes/three-dimensional-dark-panelless.js.map +1 -1
  337. package/themes/three-dimensional-dark-panelless.min.js +1 -1
  338. package/themes/three-dimensional-dark-panelless.min.js.LICENSE.txt +1 -1
  339. package/themes/three-dimensional-dark.js +2 -2
  340. package/themes/three-dimensional-dark.js.map +1 -1
  341. package/themes/three-dimensional-dark.min.js +1 -1
  342. package/themes/three-dimensional-dark.min.js.LICENSE.txt +1 -1
  343. package/themes/three-dimensional-light-panelless.js +2 -2
  344. package/themes/three-dimensional-light-panelless.js.map +1 -1
  345. package/themes/three-dimensional-light-panelless.min.js +1 -1
  346. package/themes/three-dimensional-light-panelless.min.js.LICENSE.txt +1 -1
  347. package/themes/three-dimensional-light.js +2 -2
  348. package/themes/three-dimensional-light.js.map +1 -1
  349. package/themes/three-dimensional-light.min.js +1 -1
  350. package/themes/three-dimensional-light.min.js.LICENSE.txt +1 -1
  351. package/typings/src/dragdrop/choices.d.ts +1 -1
  352. package/typings/src/survey.d.ts +1 -0
  353. package/typings/src/trigger.d.ts +9 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v2.0.0-rc.6
2
+ * surveyjs - Survey JavaScript library v2.0.0-rc.7
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
  */
@@ -1400,7 +1400,9 @@ class JsonObjectProperty {
1400
1400
  if (this.isLocalizable)
1401
1401
  return value === null || value === undefined;
1402
1402
  const dValue = this.getDefaultValue(obj);
1403
- if (!Helpers.isValueEmpty(dValue)) {
1403
+ if (dValue !== undefined) {
1404
+ if (typeof dValue !== "object")
1405
+ return dValue === value;
1404
1406
  return Helpers.isTwoValueEquals(value, dValue, false, true, false);
1405
1407
  }
1406
1408
  return ((value === false && (this.type == "boolean" || this.type == "switch") && !this.defaultValueFunc) ||
@@ -14509,7 +14511,6 @@ class SurveyError {
14509
14511
 
14510
14512
  ;// ./src/error.ts
14511
14513
 
14512
-
14513
14514
  class AnswerRequiredError extends SurveyError {
14514
14515
  constructor(text = null, errorOwner = null) {
14515
14516
  super(text, errorOwner);
@@ -14556,7 +14557,7 @@ class ExceedSizeError extends SurveyError {
14556
14557
  return "exceedsize";
14557
14558
  }
14558
14559
  getDefaultText() {
14559
- return getLocaleString("exceedMaxSize")["format"](this.getTextSize());
14560
+ return this.getLocalizationString("exceedMaxSize")["format"](this.getTextSize());
14560
14561
  }
14561
14562
  getTextSize() {
14562
14563
  var sizes = ["Bytes", "KB", "MB", "GB", "TB"];
@@ -14652,7 +14653,7 @@ class MinRowCountError extends SurveyError {
14652
14653
  return "minrowcounterror";
14653
14654
  }
14654
14655
  getDefaultText() {
14655
- return getLocaleString("minRowCountError")["format"](this.minRowCount);
14656
+ return this.getLocalizationString("minRowCountError")["format"](this.minRowCount);
14656
14657
  }
14657
14658
  }
14658
14659
  class KeyDuplicationError extends SurveyError {
@@ -18019,9 +18020,9 @@ class Question extends SurveyElement {
18019
18020
  }
18020
18021
  onSurveyValueChanged(newValue) { }
18021
18022
  setVisibleIndex(val) {
18022
- if (!this.isVisible ||
18023
+ if (val > -1 && (!this.isVisible ||
18023
18024
  (!this.hasTitle && !settings.numbering.includeQuestionsWithHiddenTitle) ||
18024
- (!this.showNumber && !settings.numbering.includeQuestionsWithHiddenNumber)) {
18025
+ (!this.showNumber && !settings.numbering.includeQuestionsWithHiddenNumber))) {
18025
18026
  val = -1;
18026
18027
  }
18027
18028
  this.setPropertyValue("visibleIndex", val);
@@ -18786,8 +18787,8 @@ class ItemValue extends BaseAction {
18786
18787
  var jsoObj = new JsonObject();
18787
18788
  for (var i = 0; i < properties.length; i++) {
18788
18789
  const prop = properties[i];
18789
- if (prop.name === "text" && (!this.locTextValue || !this.locText.hasNonDefaultText() &&
18790
- Helpers.isTwoValueEquals(this.value, this.text, false, true, false)))
18790
+ if (prop.name === "text" && (!this.locTextValue || !this.locTextValue.hasNonDefaultText() &&
18791
+ Helpers.isTwoValueEquals(this.value, this.locTextValue.getLocaleText(""), false, true, false)))
18791
18792
  continue;
18792
18793
  jsoObj.valueToJson(this, res, prop);
18793
18794
  }
@@ -32062,8 +32063,9 @@ class PanelModelBase extends SurveyElement {
32062
32063
  index += this.beforeSetVisibleIndex(index);
32063
32064
  var panelStartIndex = this.getPanelStartIndex(index);
32064
32065
  var panelIndex = panelStartIndex;
32065
- for (var i = 0; i < this.elements.length; i++) {
32066
- panelIndex += this.elements[i].setVisibleIndex(panelIndex);
32066
+ const elements = this.elements;
32067
+ for (var i = 0; i < elements.length; i++) {
32068
+ panelIndex += elements[i].setVisibleIndex(panelIndex);
32067
32069
  }
32068
32070
  if (this.isContinueNumbering()) {
32069
32071
  index += panelIndex - panelStartIndex;
@@ -32077,8 +32079,9 @@ class PanelModelBase extends SurveyElement {
32077
32079
  this.setVisibleIndex(this.lastVisibleIndex);
32078
32080
  }
32079
32081
  resetVisibleIndexes() {
32080
- for (var i = 0; i < this.elements.length; i++) {
32081
- this.elements[i].setVisibleIndex(-1);
32082
+ const elements = this.elements;
32083
+ for (var i = 0; i < elements.length; i++) {
32084
+ elements[i].setVisibleIndex(-1);
32082
32085
  }
32083
32086
  }
32084
32087
  beforeSetVisibleIndex(index) {
@@ -32910,11 +32913,13 @@ class PageModel extends PanelModel {
32910
32913
  }
32911
32914
  getElementsForRows() {
32912
32915
  var _a;
32913
- const q = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.currentSingleQuestion;
32914
- if (!!q) {
32915
- if (q.page === this)
32916
- return [q];
32917
- return [];
32916
+ if (!this.isStartPage) {
32917
+ const q = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.currentSingleQuestion;
32918
+ if (!!q) {
32919
+ if (q.page === this)
32920
+ return [q];
32921
+ return [];
32922
+ }
32918
32923
  }
32919
32924
  return super.getElementsForRows();
32920
32925
  }
@@ -34639,9 +34644,6 @@ class SurveyModel extends SurveyElementCore {
34639
34644
  this.onScrollCallback = undefined;
34640
34645
  }
34641
34646
  });
34642
- if (this.headerView === "advanced") {
34643
- this.insertAdvancedHeader(new Cover());
34644
- }
34645
34647
  this.layoutElements.push({
34646
34648
  id: "timerpanel",
34647
34649
  template: "survey-timerpanel",
@@ -37322,7 +37324,7 @@ class SurveyModel extends SurveyElementCore {
37322
37324
  if (goToFirstPage) {
37323
37325
  this.currentPage = this.firstVisiblePage;
37324
37326
  if (this.currentSingleQuestion) {
37325
- const questions = this.getAllQuestions(true);
37327
+ const questions = this.getSingleQuestions();
37326
37328
  this.currentSingleQuestion = questions.length > 0 ? questions[0] : undefined;
37327
37329
  }
37328
37330
  }
@@ -37565,10 +37567,13 @@ class SurveyModel extends SurveyElementCore {
37565
37567
  return this.nextPage();
37566
37568
  if (!q.validate(true))
37567
37569
  return false;
37568
- const questions = this.getAllQuestions(true);
37570
+ const questions = this.getSingleQuestions();
37569
37571
  const index = questions.indexOf(q);
37570
37572
  if (index < 0 || index === questions.length - 1)
37571
37573
  return false;
37574
+ const key = {};
37575
+ key[q.name] = q.value;
37576
+ this.checkTriggers(key, false, false, true, q.name);
37572
37577
  this.currentSingleQuestion = questions[index + 1];
37573
37578
  return true;
37574
37579
  }
@@ -37576,7 +37581,7 @@ class SurveyModel extends SurveyElementCore {
37576
37581
  const q = this.currentSingleQuestion;
37577
37582
  if (!q)
37578
37583
  return this.prevPage();
37579
- const questions = this.getAllQuestions(true);
37584
+ const questions = this.getSingleQuestions();
37580
37585
  const index = questions.indexOf(q);
37581
37586
  if (index === 0)
37582
37587
  return false;
@@ -38137,10 +38142,21 @@ class SurveyModel extends SurveyElementCore {
38137
38142
  });
38138
38143
  this.updateButtonsVisibility();
38139
38144
  }
38145
+ getSingleQuestions() {
38146
+ const res = new Array();
38147
+ const pages = this.pages;
38148
+ for (var i = 0; i < pages.length; i++) {
38149
+ const p = pages[i];
38150
+ if (!p.isStartPage && p.isVisible) {
38151
+ p.addQuestionsToList(res, true);
38152
+ }
38153
+ }
38154
+ return res;
38155
+ }
38140
38156
  get currentSingleQuestion() { return this.currentSingleQuestionValue; }
38141
38157
  set currentSingleQuestion(val) {
38142
38158
  const oldVal = this.currentSingleQuestion;
38143
- if (val !== oldVal) {
38159
+ if (val !== oldVal && !this.isCompleted) {
38144
38160
  const options = !!val && !!oldVal ? this.createPageChangeEventOptions(val.page, oldVal.page, val, oldVal) : undefined;
38145
38161
  if (!!options && !this.currentPageChangingFromOptions(options))
38146
38162
  return;
@@ -38177,7 +38193,7 @@ class SurveyModel extends SurveyElementCore {
38177
38193
  this.updatePagesContainer();
38178
38194
  }
38179
38195
  if (this.isSingleVisibleQuestion) {
38180
- const questions = this.getAllQuestions(true);
38196
+ const questions = this.getSingleQuestions();
38181
38197
  if (questions.length > 0) {
38182
38198
  this.currentSingleQuestion = questions[0];
38183
38199
  }
@@ -38237,7 +38253,7 @@ class SurveyModel extends SurveyElementCore {
38237
38253
  let lVal = undefined;
38238
38254
  const q = this.currentSingleQuestion;
38239
38255
  if (!!q) {
38240
- const questions = this.getAllQuestions(true);
38256
+ const questions = this.getSingleQuestions();
38241
38257
  const index = questions.indexOf(q);
38242
38258
  if (index >= 0) {
38243
38259
  fVal = index === 0;
@@ -39631,7 +39647,7 @@ class SurveyModel extends SurveyElementCore {
39631
39647
  }
39632
39648
  return result;
39633
39649
  }
39634
- checkTriggers(key, isOnNextPage, isOnComplete = false, name) {
39650
+ checkTriggers(key, isOnNextPage, isOnComplete = false, isOnNavigation = false, name) {
39635
39651
  if (this.isCompleted || this.triggers.length == 0 || this.isDisplayMode)
39636
39652
  return;
39637
39653
  if (this.isTriggerIsRunning) {
@@ -39655,7 +39671,9 @@ class SurveyModel extends SurveyElementCore {
39655
39671
  const trigger = this.triggers[i];
39656
39672
  if (isQuestionInvalid && trigger.requireValidQuestion)
39657
39673
  continue;
39658
- trigger.checkExpression(isOnNextPage, isOnComplete, this.triggerKeys, this.triggerValues, properties);
39674
+ const options = { isOnNextPage: isOnNextPage, isOnComplete: isOnComplete, isOnNavigation: isOnNavigation,
39675
+ keys: this.triggerKeys, values: this.triggerValues, properties: properties };
39676
+ trigger.checkExpression(options);
39659
39677
  }
39660
39678
  if (prevCanBeCompleted !== this.canBeCompletedByTrigger) {
39661
39679
  this.updateButtonsVisibility();
@@ -39666,7 +39684,7 @@ class SurveyModel extends SurveyElementCore {
39666
39684
  var triggerKeys = {};
39667
39685
  triggerKeys[name] = { newValue: newValue, oldValue: oldValue };
39668
39686
  this.runConditionOnValueChanged(name, newValue);
39669
- this.checkTriggers(triggerKeys, false, false, name);
39687
+ this.checkTriggers(triggerKeys, false, false, false, name);
39670
39688
  }
39671
39689
  get hasRequiredValidQuestionTrigger() {
39672
39690
  for (let i = 0; i < this.triggers.length; i++) {
@@ -39854,8 +39872,9 @@ class SurveyModel extends SurveyElementCore {
39854
39872
  }
39855
39873
  else {
39856
39874
  let index = this.getStartVisibleIndex();
39857
- for (let i = 0; i < this.pages.length; i++) {
39858
- index += this.pages[i].setVisibleIndex(index);
39875
+ const pages = this.pages;
39876
+ for (let i = 0; i < pages.length; i++) {
39877
+ index += pages[i].setVisibleIndex(index);
39859
39878
  }
39860
39879
  }
39861
39880
  }
@@ -41499,6 +41518,7 @@ class SurveyModel extends SurveyElementCore {
41499
41518
  }
41500
41519
  });
41501
41520
  if (this.headerView === "advanced" || "header" in theme) {
41521
+ this.headerView = "advanced";
41502
41522
  this.removeLayoutElement("advanced-header");
41503
41523
  const advHeader = new Cover();
41504
41524
  advHeader.fromTheme(theme);
@@ -42024,7 +42044,7 @@ Serializer.addClass("survey", [
42024
42044
  { name: "gridLayoutEnabled:boolean", default: false },
42025
42045
  { name: "width", visibleIf: (obj) => { return obj.widthMode === "static"; } },
42026
42046
  { name: "fitToContainer:boolean", default: true, visible: false },
42027
- { name: "headerView", default: "advanced", choices: ["basic", "advanced"], visible: false },
42047
+ { name: "headerView", default: "basic", choices: ["basic", "advanced"], visible: false },
42028
42048
  { name: "backgroundImage:file", visible: false },
42029
42049
  { name: "backgroundImageFit", default: "cover", choices: ["auto", "contain", "cover"], visible: false },
42030
42050
  { name: "backgroundImageAttachment", default: "scroll", choices: ["scroll", "fixed"], visible: false },
@@ -50564,11 +50584,11 @@ class DragDropChoices extends DragDropCore {
50564
50584
  dragOverChoice = this.parentElement.choices.filter((choice) => "" + choice.value == dataAttributeValue)[0];
50565
50585
  return dragOverChoice;
50566
50586
  }
50567
- getVisibleChoices() {
50587
+ getChoices() {
50568
50588
  const parent = this.parentElement;
50569
50589
  if (parent.getType() === "ranking") {
50570
50590
  if (parent.selectToRankEnabled) {
50571
- return parent.visibleChoices;
50591
+ return parent.unRankingChoices;
50572
50592
  }
50573
50593
  else {
50574
50594
  return parent.rankingChoices;
@@ -50577,7 +50597,7 @@ class DragDropChoices extends DragDropCore {
50577
50597
  return parent.visibleChoices;
50578
50598
  }
50579
50599
  isDropTargetValid(dropTarget, dropTargetNode) {
50580
- const choices = this.getVisibleChoices();
50600
+ const choices = this.getChoices();
50581
50601
  if (this.parentElement.getType() !== "imagepicker") {
50582
50602
  const dropTargetIndex = choices.indexOf(this.dropTarget);
50583
50603
  const draggedElementIndex = choices.indexOf(this.draggedElement);
@@ -50604,7 +50624,7 @@ class DragDropChoices extends DragDropCore {
50604
50624
  }
50605
50625
  afterDragOver(dropTargetNode) {
50606
50626
  //if (this.isDropTargetDoesntChanged(this.isBottom)) return;
50607
- const choices = this.getVisibleChoices();
50627
+ const choices = this.getChoices();
50608
50628
  const dropTargetIndex = choices.indexOf(this.dropTarget);
50609
50629
  const draggedElementIndex = choices.indexOf(this.draggedElement);
50610
50630
  if (draggedElementIndex < dropTargetIndex && this.isBottom === true) {
@@ -50638,7 +50658,7 @@ class DragDropChoices extends DragDropCore {
50638
50658
  }
50639
50659
  doDrop() {
50640
50660
  const choices = this.parentElement.choices;
50641
- const filteredChoices = this.getVisibleChoices().filter((item) => {
50661
+ const filteredChoices = this.getChoices().filter((item) => {
50642
50662
  return choices.indexOf(item) !== -1;
50643
50663
  });
50644
50664
  const oldIndex = choices.indexOf(this.draggedElement);
@@ -59555,20 +59575,21 @@ class Trigger extends Base {
59555
59575
  canBeExecutedOnComplete() {
59556
59576
  return false;
59557
59577
  }
59558
- checkExpression(isOnNextPage, isOnComplete, keys, values, properties = null) {
59559
- this.isExecutingOnNextPage = isOnNextPage;
59560
- if (!this.canBeExecuted(isOnNextPage))
59578
+ checkExpression(options) {
59579
+ this.isExecutingOnNextPage = options.isOnNextPage;
59580
+ this.isExecutingOnNavigation = options.isOnNavigation || options.isOnNextPage;
59581
+ if (!this.canBeExecuted(options.isOnNextPage))
59561
59582
  return;
59562
- if (isOnComplete && !this.canBeExecutedOnComplete())
59583
+ if (options.isOnComplete && !this.canBeExecutedOnComplete())
59563
59584
  return;
59564
- if (!this.isCheckRequired(keys))
59585
+ if (!this.isCheckRequired(options.keys))
59565
59586
  return;
59566
59587
  if (!!this.conditionRunner) {
59567
- this.perform(values, properties);
59588
+ this.perform(options.values, options.properties || null);
59568
59589
  }
59569
59590
  else {
59570
59591
  if (this.canSuccessOnEmptyExpression()) {
59571
- this.triggerResult(true, values, properties);
59592
+ this.triggerResult(true, options.values, options.properties || null);
59572
59593
  }
59573
59594
  }
59574
59595
  }
@@ -59737,7 +59758,7 @@ class SurveyTriggerComplete extends SurveyTrigger {
59737
59758
  }
59738
59759
  get requireValidQuestion() { return true; }
59739
59760
  isRealExecution() {
59740
- return !settings.triggers.executeCompleteOnValueChanged === this.isExecutingOnNextPage;
59761
+ return !settings.triggers.executeCompleteOnValueChanged === this.isExecutingOnNavigation;
59741
59762
  }
59742
59763
  onSuccess(values, properties) {
59743
59764
  if (!this.owner)
@@ -61780,11 +61801,11 @@ var Version;
61780
61801
  var ReleaseDate;
61781
61802
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
61782
61803
  //@ts-ignore
61783
- Version = `${"2.0.0-rc.6"}`;
61804
+ Version = `${"2.0.0-rc.7"}`;
61784
61805
  settings.version = Version;
61785
61806
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
61786
61807
  //@ts-ignore
61787
- ReleaseDate = `${"2025-02-21"}`;
61808
+ ReleaseDate = `${"2025-02-24"}`;
61788
61809
  function checkLibraryVersion(ver, libraryName) {
61789
61810
  if (Version != ver) {
61790
61811
  const str = "survey-core has version '" + Version + "' and " + libraryName