survey-core 1.12.11 → 1.12.12

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 (298) hide show
  1. package/defaultV2.css +5 -5
  2. package/defaultV2.css.map +1 -1
  3. package/defaultV2.fontless.css +5 -5
  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 +2 -2
  8. package/i18n/arabic.js.map +1 -1
  9. package/i18n/arabic.min.js +2 -2
  10. package/i18n/basque.js +2 -2
  11. package/i18n/basque.js.map +1 -1
  12. package/i18n/basque.min.js +2 -2
  13. package/i18n/bulgarian.js +2 -2
  14. package/i18n/bulgarian.js.map +1 -1
  15. package/i18n/bulgarian.min.js +2 -2
  16. package/i18n/catalan.js +2 -2
  17. package/i18n/catalan.js.map +1 -1
  18. package/i18n/catalan.min.js +2 -2
  19. package/i18n/croatian.js +2 -2
  20. package/i18n/croatian.js.map +1 -1
  21. package/i18n/croatian.min.js +2 -2
  22. package/i18n/czech.js +2 -2
  23. package/i18n/czech.js.map +1 -1
  24. package/i18n/czech.min.js +2 -2
  25. package/i18n/danish.js +2 -2
  26. package/i18n/danish.js.map +1 -1
  27. package/i18n/danish.min.js +2 -2
  28. package/i18n/dutch.js +2 -2
  29. package/i18n/dutch.js.map +1 -1
  30. package/i18n/dutch.min.js +2 -2
  31. package/i18n/english.js +3 -3
  32. package/i18n/english.js.map +1 -1
  33. package/i18n/english.min.js +1 -1
  34. package/i18n/estonian.js +2 -2
  35. package/i18n/estonian.js.map +1 -1
  36. package/i18n/estonian.min.js +2 -2
  37. package/i18n/finnish.js +2 -2
  38. package/i18n/finnish.js.map +1 -1
  39. package/i18n/finnish.min.js +2 -2
  40. package/i18n/french.js +2 -2
  41. package/i18n/french.js.map +1 -1
  42. package/i18n/french.min.js +2 -2
  43. package/i18n/georgian.js +2 -2
  44. package/i18n/georgian.js.map +1 -1
  45. package/i18n/georgian.min.js +2 -2
  46. package/i18n/german.js +2 -2
  47. package/i18n/german.js.map +1 -1
  48. package/i18n/german.min.js +2 -2
  49. package/i18n/greek.js +2 -2
  50. package/i18n/greek.js.map +1 -1
  51. package/i18n/greek.min.js +2 -2
  52. package/i18n/hebrew.js +2 -2
  53. package/i18n/hebrew.js.map +1 -1
  54. package/i18n/hebrew.min.js +2 -2
  55. package/i18n/hindi.js +2 -2
  56. package/i18n/hindi.js.map +1 -1
  57. package/i18n/hindi.min.js +2 -2
  58. package/i18n/hungarian.js +2 -2
  59. package/i18n/hungarian.js.map +1 -1
  60. package/i18n/hungarian.min.js +2 -2
  61. package/i18n/icelandic.js +2 -2
  62. package/i18n/icelandic.js.map +1 -1
  63. package/i18n/icelandic.min.js +2 -2
  64. package/i18n/index.js +51 -53
  65. package/i18n/index.js.map +1 -1
  66. package/i18n/index.min.js +2 -2
  67. package/i18n/indonesian.js +2 -2
  68. package/i18n/indonesian.js.map +1 -1
  69. package/i18n/indonesian.min.js +2 -2
  70. package/i18n/italian.js +2 -2
  71. package/i18n/italian.js.map +1 -1
  72. package/i18n/italian.min.js +2 -2
  73. package/i18n/japanese.js +2 -2
  74. package/i18n/japanese.js.map +1 -1
  75. package/i18n/japanese.min.js +2 -2
  76. package/i18n/kazakh.js +2 -2
  77. package/i18n/kazakh.js.map +1 -1
  78. package/i18n/kazakh.min.js +2 -2
  79. package/i18n/korean.js +2 -2
  80. package/i18n/korean.js.map +1 -1
  81. package/i18n/korean.min.js +2 -2
  82. package/i18n/latvian.js +2 -2
  83. package/i18n/latvian.js.map +1 -1
  84. package/i18n/latvian.min.js +2 -2
  85. package/i18n/lithuanian.js +2 -2
  86. package/i18n/lithuanian.js.map +1 -1
  87. package/i18n/lithuanian.min.js +2 -2
  88. package/i18n/macedonian.js +2 -2
  89. package/i18n/macedonian.js.map +1 -1
  90. package/i18n/macedonian.min.js +2 -2
  91. package/i18n/malay.js +2 -2
  92. package/i18n/malay.js.map +1 -1
  93. package/i18n/malay.min.js +2 -2
  94. package/i18n/nl-BE.js +3 -3
  95. package/i18n/nl-BE.js.map +1 -1
  96. package/i18n/nl-BE.min.js +2 -2
  97. package/i18n/norwegian.js +2 -2
  98. package/i18n/norwegian.js.map +1 -1
  99. package/i18n/norwegian.min.js +2 -2
  100. package/i18n/persian.js +2 -2
  101. package/i18n/persian.js.map +1 -1
  102. package/i18n/persian.min.js +2 -2
  103. package/i18n/philippines.js +2 -2
  104. package/i18n/philippines.js.map +1 -1
  105. package/i18n/philippines.min.js +2 -2
  106. package/i18n/polish.js +2 -2
  107. package/i18n/polish.js.map +1 -1
  108. package/i18n/polish.min.js +2 -2
  109. package/i18n/portuguese-br.js +2 -2
  110. package/i18n/portuguese-br.js.map +1 -1
  111. package/i18n/portuguese-br.min.js +2 -2
  112. package/i18n/portuguese.js +2 -2
  113. package/i18n/portuguese.js.map +1 -1
  114. package/i18n/portuguese.min.js +2 -2
  115. package/i18n/romanian.js +2 -2
  116. package/i18n/romanian.js.map +1 -1
  117. package/i18n/romanian.min.js +2 -2
  118. package/i18n/russian.js +2 -2
  119. package/i18n/russian.js.map +1 -1
  120. package/i18n/russian.min.js +2 -2
  121. package/i18n/serbian.js +2 -3
  122. package/i18n/serbian.js.map +1 -1
  123. package/i18n/serbian.min.js +2 -2
  124. package/i18n/simplified-chinese.js +2 -2
  125. package/i18n/simplified-chinese.js.map +1 -1
  126. package/i18n/simplified-chinese.min.js +2 -2
  127. package/i18n/slovak.js +2 -2
  128. package/i18n/slovak.js.map +1 -1
  129. package/i18n/slovak.min.js +2 -2
  130. package/i18n/spanish.js +2 -2
  131. package/i18n/spanish.js.map +1 -1
  132. package/i18n/spanish.min.js +2 -2
  133. package/i18n/swahili.js +2 -2
  134. package/i18n/swahili.js.map +1 -1
  135. package/i18n/swahili.min.js +2 -2
  136. package/i18n/swedish.js +2 -2
  137. package/i18n/swedish.js.map +1 -1
  138. package/i18n/swedish.min.js +2 -2
  139. package/i18n/tajik.js +2 -2
  140. package/i18n/tajik.js.map +1 -1
  141. package/i18n/tajik.min.js +2 -2
  142. package/i18n/telugu.js +2 -2
  143. package/i18n/telugu.js.map +1 -1
  144. package/i18n/telugu.min.js +2 -2
  145. package/i18n/thai.js +2 -2
  146. package/i18n/thai.js.map +1 -1
  147. package/i18n/thai.min.js +2 -2
  148. package/i18n/traditional-chinese.js +2 -2
  149. package/i18n/traditional-chinese.js.map +1 -1
  150. package/i18n/traditional-chinese.min.js +2 -2
  151. package/i18n/turkish.js +2 -2
  152. package/i18n/turkish.js.map +1 -1
  153. package/i18n/turkish.min.js +2 -2
  154. package/i18n/ukrainian.js +2 -2
  155. package/i18n/ukrainian.js.map +1 -1
  156. package/i18n/ukrainian.min.js +2 -2
  157. package/i18n/urdu.js +2 -3
  158. package/i18n/urdu.js.map +1 -1
  159. package/i18n/urdu.min.js +2 -2
  160. package/i18n/vietnamese.js +2 -3
  161. package/i18n/vietnamese.js.map +1 -1
  162. package/i18n/vietnamese.min.js +2 -2
  163. package/i18n/welsh.js +2 -2
  164. package/i18n/welsh.js.map +1 -1
  165. package/i18n/welsh.min.js +2 -2
  166. package/icons/iconsV1.d.ts +4 -0
  167. package/icons/iconsV1.js +927 -0
  168. package/icons/iconsV1.js.map +1 -0
  169. package/icons/iconsV1.min.js +6 -0
  170. package/icons/iconsV2.d.ts +4 -0
  171. package/icons/iconsV2.js +927 -0
  172. package/icons/iconsV2.js.map +1 -0
  173. package/icons/iconsV2.min.js +6 -0
  174. package/modern.css +9 -1
  175. package/modern.css.map +1 -1
  176. package/modern.fontless.css +9 -1
  177. package/modern.fontless.css.map +1 -1
  178. package/modern.fontless.min.css +2 -2
  179. package/modern.min.css +2 -2
  180. package/package.json +1 -1
  181. package/plugins/bootstrap-integration/index.js +1 -1
  182. package/plugins/bootstrap-integration/index.min.js +1 -1
  183. package/plugins/bootstrap-material-integration/index.js +1 -1
  184. package/plugins/bootstrap-material-integration/index.min.js +1 -1
  185. package/survey.core.js +199 -1773
  186. package/survey.core.js.map +1 -1
  187. package/survey.core.min.js +3 -3
  188. package/survey.css +1 -1
  189. package/survey.i18n.js +51 -53
  190. package/survey.i18n.js.map +1 -1
  191. package/survey.i18n.min.js +2 -2
  192. package/survey.min.css +1 -1
  193. package/themes/borderless-dark-panelless.js +1 -1
  194. package/themes/borderless-dark-panelless.min.js +1 -1
  195. package/themes/borderless-dark.js +1 -1
  196. package/themes/borderless-dark.min.js +1 -1
  197. package/themes/borderless-light-panelless..js +1 -1
  198. package/themes/borderless-light-panelless..min.js +1 -1
  199. package/themes/borderless-light.js +1 -1
  200. package/themes/borderless-light.min.js +1 -1
  201. package/themes/contrast-dark-panelless.js +1 -1
  202. package/themes/contrast-dark-panelless.min.js +1 -1
  203. package/themes/contrast-dark.js +1 -1
  204. package/themes/contrast-dark.min.js +1 -1
  205. package/themes/contrast-light-panelless.js +1 -1
  206. package/themes/contrast-light-panelless.min.js +1 -1
  207. package/themes/contrast-light.js +1 -1
  208. package/themes/contrast-light.min.js +1 -1
  209. package/themes/default-dark-panelless.js +1 -1
  210. package/themes/default-dark-panelless.min.js +1 -1
  211. package/themes/default-dark.js +1 -1
  212. package/themes/default-dark.min.js +1 -1
  213. package/themes/default-light-panelless.js +1 -1
  214. package/themes/default-light-panelless.min.js +1 -1
  215. package/themes/default-light.js +1 -1
  216. package/themes/default-light.min.js +1 -1
  217. package/themes/doubleborder-dark-panelless.js +1 -1
  218. package/themes/doubleborder-dark-panelless.min.js +1 -1
  219. package/themes/doubleborder-dark.js +1 -1
  220. package/themes/doubleborder-dark.min.js +1 -1
  221. package/themes/doubleborder-light-panelles.js +1 -1
  222. package/themes/doubleborder-light-panelles.min.js +1 -1
  223. package/themes/doubleborder-light.js +1 -1
  224. package/themes/doubleborder-light.min.js +1 -1
  225. package/themes/flat-dark-panelless.js +1 -1
  226. package/themes/flat-dark-panelless.min.js +1 -1
  227. package/themes/flat-dark.js +1 -1
  228. package/themes/flat-dark.min.js +1 -1
  229. package/themes/flat-light-panelless.js +1 -1
  230. package/themes/flat-light-panelless.min.js +1 -1
  231. package/themes/flat-light.js +1 -1
  232. package/themes/flat-light.min.js +1 -1
  233. package/themes/index.js +1 -1
  234. package/themes/index.min.js +1 -1
  235. package/themes/layered-dark-panelless.js +1 -1
  236. package/themes/layered-dark-panelless.min.js +1 -1
  237. package/themes/layered-dark.js +1 -1
  238. package/themes/layered-dark.min.js +1 -1
  239. package/themes/layered-light-panelless.js +1 -1
  240. package/themes/layered-light-panelless.min.js +1 -1
  241. package/themes/layered-light.js +1 -1
  242. package/themes/layered-light.min.js +1 -1
  243. package/themes/plain-dark-panelless.js +1 -1
  244. package/themes/plain-dark-panelless.min.js +1 -1
  245. package/themes/plain-dark.js +1 -1
  246. package/themes/plain-dark.min.js +1 -1
  247. package/themes/plain-light-panelless.js +1 -1
  248. package/themes/plain-light-panelless.min.js +1 -1
  249. package/themes/plain-light.js +1 -1
  250. package/themes/plain-light.min.js +1 -1
  251. package/themes/sharp-dark-panelless.js +1 -1
  252. package/themes/sharp-dark-panelless.min.js +1 -1
  253. package/themes/sharp-dark.js +1 -1
  254. package/themes/sharp-dark.min.js +1 -1
  255. package/themes/sharp-light-panelless.js +1 -1
  256. package/themes/sharp-light-panelless.min.js +1 -1
  257. package/themes/sharp-light.js +1 -1
  258. package/themes/sharp-light.min.js +1 -1
  259. package/themes/solid-dark-panelless.js +1 -1
  260. package/themes/solid-dark-panelless.min.js +1 -1
  261. package/themes/solid-dark.js +1 -1
  262. package/themes/solid-dark.min.js +1 -1
  263. package/themes/solid-light-panelless.js +1 -1
  264. package/themes/solid-light-panelless.min.js +1 -1
  265. package/themes/solid-light.js +1 -1
  266. package/themes/solid-light.min.js +1 -1
  267. package/themes/three-dimensional-dark-panelless.js +1 -1
  268. package/themes/three-dimensional-dark-panelless.min.js +1 -1
  269. package/themes/three-dimensional-dark.js +1 -1
  270. package/themes/three-dimensional-dark.min.js +1 -1
  271. package/themes/three-dimensional-light-panelless.js +1 -1
  272. package/themes/three-dimensional-light-panelless.min.js +1 -1
  273. package/themes/three-dimensional-light.js +1 -1
  274. package/themes/three-dimensional-light.min.js +1 -1
  275. package/ts3.4/icons/iconsV1.d.ts +4 -0
  276. package/ts3.4/icons/iconsV2.d.ts +4 -0
  277. package/ts3.4/typings/packages/survey-core/entries/chunks/model.d.ts +1 -1
  278. package/ts3.4/typings/packages/survey-core/src/helpers.d.ts +1 -0
  279. package/ts3.4/typings/packages/survey-core/src/localizablestring.d.ts +1 -0
  280. package/ts3.4/typings/packages/survey-core/src/question_checkbox.d.ts +2 -0
  281. package/ts3.4/typings/packages/survey-core/src/question_signaturepad.d.ts +1 -1
  282. package/ts3.4/typings/packages/survey-core/src/question_tagbox.d.ts +1 -1
  283. package/ts3.4/typings/packages/survey-core/src/question_text.d.ts +1 -0
  284. package/ts3.4/typings/packages/survey-core/src/settings.d.ts +6 -16
  285. package/ts3.4/typings/packages/survey-core/src/survey.d.ts +0 -1
  286. package/ts3.4/typings/packages/survey-core/src/surveyStrings.d.ts +7 -0
  287. package/ts3.4/typings/packages/survey-core/src/svgbundle.d.ts +9 -6
  288. package/typings/packages/survey-core/entries/chunks/model.d.ts +1 -1
  289. package/typings/packages/survey-core/src/helpers.d.ts +1 -0
  290. package/typings/packages/survey-core/src/localizablestring.d.ts +1 -0
  291. package/typings/packages/survey-core/src/question_checkbox.d.ts +2 -0
  292. package/typings/packages/survey-core/src/question_signaturepad.d.ts +1 -1
  293. package/typings/packages/survey-core/src/question_tagbox.d.ts +1 -1
  294. package/typings/packages/survey-core/src/question_text.d.ts +1 -0
  295. package/typings/packages/survey-core/src/settings.d.ts +6 -16
  296. package/typings/packages/survey-core/src/survey.d.ts +0 -1
  297. package/typings/packages/survey-core/src/surveyStrings.d.ts +7 -0
  298. package/typings/packages/survey-core/src/svgbundle.d.ts +9 -6
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.11
2
+ * surveyjs - Survey JavaScript library v1.12.12
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.12.11
2
+ * surveyjs - Survey JavaScript library v1.12.12
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.12.11
2
+ * surveyjs - Survey JavaScript library v1.12.12
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.12.11
2
+ * surveyjs - Survey JavaScript library v1.12.12
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.12.11
2
+ * surveyjs - Survey JavaScript library v1.12.12
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.12.11
2
+ * surveyjs - Survey JavaScript library v1.12.12
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.12.11
2
+ * surveyjs - Survey JavaScript library v1.12.12
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.12.11
2
+ * surveyjs - Survey JavaScript library v1.12.12
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.12.11
2
+ * surveyjs - Survey JavaScript library v1.12.12
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
  */
@@ -0,0 +1,4 @@
1
+ declare const icons: {
2
+ [index: string]: string;
3
+ };
4
+ export { icons };
@@ -0,0 +1,4 @@
1
+ declare const icons: {
2
+ [index: string]: string;
3
+ };
4
+ export { icons };
@@ -73,7 +73,7 @@ export { Notifier } from "../../src/notifier";
73
73
  export { Cover, CoverCell } from "../../src/header";
74
74
  export { dxSurveyService } from "../../src/dxSurveyService";
75
75
  export { englishStrings } from "../../src/localization/english";
76
- export { surveyLocalization, surveyStrings, getLocaleString } from "../../src/surveyStrings";
76
+ export { surveyLocalization, surveyStrings, getLocaleString, setupLocale } from "../../src/surveyStrings";
77
77
  export { QuestionCustomWidget, CustomWidgetCollection, } from "../../src/questionCustomWidgets";
78
78
  export { QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, ICustomQuestionTypeConfiguration } from "../../src/question_custom";
79
79
  export { ListModel } from "../../src/list";
@@ -1,6 +1,7 @@
1
1
  export interface HashTable<T = any> {
2
2
  [key: string]: T;
3
3
  }
4
+ export declare function createDate(reason: string, val?: number | string | Date): Date;
4
5
  export declare class Helpers {
5
6
  /**
6
7
  * A static methods that returns true if a value undefined, null, empty string or empty array.
@@ -35,6 +35,7 @@ export declare class LocalizableString implements ILocalizableString {
35
35
  readonly allowLineBreaks: boolean;
36
36
  onGetTextCallback: (str: string) => string;
37
37
  storeDefaultText: boolean;
38
+ serializeCallBackText: boolean;
38
39
  onGetLocalizationTextCallback: (str: string) => string;
39
40
  onStrChanged: (oldValue: string, newValue: string) => void;
40
41
  onSearchChanged: () => void;
@@ -60,6 +60,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
60
60
  selectAll(): void;
61
61
  clickItemHandler(item: ItemValue, checked?: boolean): void;
62
62
  protected isItemSelectedCore(item: ItemValue): boolean;
63
+ protected hasUnknownValueItem(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
63
64
  protected convertFuncValuetoQuestionValue(val: any): any;
64
65
  private getRealValue;
65
66
  readonly isValueArray: boolean;
@@ -111,6 +112,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
111
112
  protected setNewValue(newValue: any): void;
112
113
  protected getIsMultipleValue(): boolean;
113
114
  protected getCommentFromValue(newValue: any): string;
115
+ getStoreOthersAsComment(): boolean;
114
116
  protected setOtherValueIntoValue(newValue: any): any;
115
117
  private getFirstUnknownIndex;
116
118
  protected removeNoneItemsValues(value: Array<any>, newValue: Array<any>): void;
@@ -11,7 +11,7 @@ export declare class QuestionSignaturePadModel extends QuestionFileModelBase {
11
11
  private getPenColorFromTheme;
12
12
  private updateColors;
13
13
  protected getCssRoot(cssClasses: any): string;
14
- protected getFormat(): "" | "image/jpeg" | "image/svg+xml";
14
+ protected getFormat(): "" | "image/svg+xml" | "image/jpeg";
15
15
  protected updateValue(): void;
16
16
  constructor(name: string);
17
17
  getType(): string;
@@ -74,7 +74,7 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
74
74
  getControlClass(): string;
75
75
  onOpened: EventBase<QuestionTagboxModel>;
76
76
  onOpenedCallBack(): void;
77
- protected hasUnknownValue(val: any, includeOther: boolean, isFilteredChoices: boolean, checkEmptyValue: boolean): boolean;
77
+ protected hasUnknownValue(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
78
78
  protected needConvertRenderedOtherToDataValue(): boolean;
79
79
  protected onVisibleChoicesChanged(): void;
80
80
  protected getItemIfChoicesNotContainThisValue(value: any, text?: string): any;
@@ -137,6 +137,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
137
137
  protected onChangeQuestionValue(newValue: any): void;
138
138
  private updateInputValue;
139
139
  private hasToConvertToUTC;
140
+ private createDate;
140
141
  protected valueForSurveyCore(val: any): any;
141
142
  protected valueFromDataCore(val: any): any;
142
143
  private dateValidationMessage;
@@ -130,33 +130,23 @@ export declare var settings: {
130
130
  * Nested properties:
131
131
  *
132
132
  * - `itemValueSerializeAsObject`: `boolean`\
133
- * Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances as objects even when they include only the `value` property. Default value: `false`. View an example below.
133
+ * Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances (choice options, matrix rows, columns in a [Single-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model)) as objects even when they include only the `value` property. Default value: `false`.
134
134
  *
135
135
  * - `itemValueSerializeDisplayText`: `boolean`\
136
- * Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`. View an example below.
136
+ * Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`.
137
137
  *
138
138
  * - `localizableStringSerializeAsObject`: `boolean`\
139
139
  * Enable this property if you want to serialize [`LocalizableString`](https://surveyjs.io/form-library/documentation/api-reference/localizablestring) instances as objects even when they include only a translation string for the default locale. For example, `"Custom String"` will be serialized as `{ default: "Custom String" }`. Default value: `false`.
140
140
  *
141
- * ```js
142
- * import { ItemValue, settings } from "survey-core";
143
- *
144
- * // `itemValueSerializeAsObject` example
145
- * settings.serialization.itemValueSerializeAsObject = true;
146
- * const item = new ItemValue(5);
147
- * const itemString = item.toJSON(); // Produces { value: 5 } instead of 5
148
- *
149
- * // `itemValueSerializeDisplayText` example
150
- * settings.serialization.itemValueSerializeDisplayText = true;
151
- * const item = new ItemValue("item1");
152
- * const itemString = item.toJSON(); // Produces { value: "item1", text: "item1" } instead of "item1"
153
- * ```
141
+ * - `matrixDropdownColumnSerializeTitle`: `boolean`\
142
+ * Enable this property if you want to serialize the `title` property of [`MatrixDropdownColumn`](https://surveyjs.io/form-library/documentation/api-reference/multi-select-matrix-column-values) objects even when it is empty or equal to the `name` property. Default value: `false`.
154
143
  * @see [settings.parseNumber](https://surveyjs.io/form-library/documentation/api-reference/settings#parseNumber)
155
144
  */
156
145
  serialization: {
157
146
  itemValueSerializeAsObject: boolean;
158
147
  itemValueSerializeDisplayText: boolean;
159
148
  localizableStringSerializeAsObject: boolean;
149
+ matrixDropdownColumnSerializeTitle: boolean;
160
150
  };
161
151
  itemValueAlwaysSerializeAsObject: boolean;
162
152
  itemValueAlwaysSerializeText: boolean;
@@ -619,6 +609,7 @@ export declare var settings: {
619
609
  * ```
620
610
  */
621
611
  storeUtcDates: boolean;
612
+ onDateCreated: (newDate: Date, reason: string, val?: number | string | Date) => Date;
622
613
  /**
623
614
  * A function that allows you to define custom parsing rules for numbers represented as string values.
624
615
  *
@@ -643,5 +634,4 @@ export declare var settings: {
643
634
  * @see [settings.serialization](https://surveyjs.io/form-library/documentation/api-reference/settings#serialization)
644
635
  */
645
636
  parseNumber: (stringValue: any, numericValue: number) => number;
646
- useLegacyIcons: boolean;
647
637
  };
@@ -2867,5 +2867,4 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2867
2867
  addScrollEventListener(): void;
2868
2868
  removeScrollEventListener(): void;
2869
2869
  questionErrorComponent: string;
2870
- protected registerIcons(): void;
2871
2870
  }
@@ -26,6 +26,13 @@ export declare var surveyLocalization: {
26
26
  onGetExternalString: (name: string, locale: string) => string;
27
27
  };
28
28
  export declare function getLocaleString(strName: string, locale?: string): string;
29
+ export declare function setupLocale(localeConfig: {
30
+ localeCode: string;
31
+ strings: any;
32
+ nativeName: string;
33
+ englishName: string;
34
+ rtl?: boolean;
35
+ }): void;
29
36
  export declare var surveyStrings: {
30
37
  pagePrevText: string;
31
38
  pageNextText: string;
@@ -1,4 +1,5 @@
1
- declare class SvgIconData {
1
+ import { EventBase } from "./base";
2
+ interface SvgIconData {
2
3
  [key: string]: string;
3
4
  }
4
5
  export declare class SvgIconRegistry {
@@ -9,12 +10,14 @@ export declare class SvgIconRegistry {
9
10
  registerIconFromSvgViaElement(iconId: string, iconSvg: string, iconPrefix?: string): void;
10
11
  registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
11
12
  registerIconsFromFolder(r: any): void;
13
+ registerIcons(icons: SvgIconData): void;
12
14
  iconsRenderedHtml(): string;
15
+ updateMarkup(): void;
16
+ onIconsChanged: EventBase<SvgIconRegistry, {}>;
13
17
  }
14
- export declare var SvgRegistry: SvgIconRegistry;
15
- export declare var SvgBundleViewModel: any;
16
- export declare var svgBundle: {
17
- V1?: string;
18
- V2?: string;
18
+ export declare const SvgRegistry: SvgIconRegistry;
19
+ export declare const SvgThemeSets: {
20
+ [index: string]: SvgIconData;
19
21
  };
22
+ export declare function addIconsToThemeSet(name: string, iconsData: SvgIconData): void;
20
23
  export {};
@@ -73,7 +73,7 @@ export { Notifier } from "../../src/notifier";
73
73
  export { Cover, CoverCell } from "../../src/header";
74
74
  export { dxSurveyService } from "../../src/dxSurveyService";
75
75
  export { englishStrings } from "../../src/localization/english";
76
- export { surveyLocalization, surveyStrings, getLocaleString } from "../../src/surveyStrings";
76
+ export { surveyLocalization, surveyStrings, getLocaleString, setupLocale } from "../../src/surveyStrings";
77
77
  export { QuestionCustomWidget, CustomWidgetCollection, } from "../../src/questionCustomWidgets";
78
78
  export { QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, ICustomQuestionTypeConfiguration } from "../../src/question_custom";
79
79
  export { ListModel } from "../../src/list";
@@ -1,6 +1,7 @@
1
1
  export interface HashTable<T = any> {
2
2
  [key: string]: T;
3
3
  }
4
+ export declare function createDate(reason: string, val?: number | string | Date): Date;
4
5
  export declare class Helpers {
5
6
  /**
6
7
  * A static methods that returns true if a value undefined, null, empty string or empty array.
@@ -37,6 +37,7 @@ export declare class LocalizableString implements ILocalizableString {
37
37
  get allowLineBreaks(): boolean;
38
38
  onGetTextCallback: (str: string) => string;
39
39
  storeDefaultText: boolean;
40
+ serializeCallBackText: boolean;
40
41
  onGetLocalizationTextCallback: (str: string) => string;
41
42
  onStrChanged: (oldValue: string, newValue: string) => void;
42
43
  onSearchChanged: () => void;
@@ -65,6 +65,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
65
65
  selectAll(): void;
66
66
  clickItemHandler(item: ItemValue, checked?: boolean): void;
67
67
  protected isItemSelectedCore(item: ItemValue): boolean;
68
+ protected hasUnknownValueItem(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
68
69
  protected convertFuncValuetoQuestionValue(val: any): any;
69
70
  private getRealValue;
70
71
  get isValueArray(): boolean;
@@ -118,6 +119,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
118
119
  protected setNewValue(newValue: any): void;
119
120
  protected getIsMultipleValue(): boolean;
120
121
  protected getCommentFromValue(newValue: any): string;
122
+ getStoreOthersAsComment(): boolean;
121
123
  protected setOtherValueIntoValue(newValue: any): any;
122
124
  private getFirstUnknownIndex;
123
125
  protected removeNoneItemsValues(value: Array<any>, newValue: Array<any>): void;
@@ -11,7 +11,7 @@ export declare class QuestionSignaturePadModel extends QuestionFileModelBase {
11
11
  private getPenColorFromTheme;
12
12
  private updateColors;
13
13
  protected getCssRoot(cssClasses: any): string;
14
- protected getFormat(): "" | "image/jpeg" | "image/svg+xml";
14
+ protected getFormat(): "" | "image/svg+xml" | "image/jpeg";
15
15
  protected updateValue(): void;
16
16
  constructor(name: string);
17
17
  getType(): string;
@@ -77,7 +77,7 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
77
77
  getControlClass(): string;
78
78
  onOpened: EventBase<QuestionTagboxModel>;
79
79
  onOpenedCallBack(): void;
80
- protected hasUnknownValue(val: any, includeOther: boolean, isFilteredChoices: boolean, checkEmptyValue: boolean): boolean;
80
+ protected hasUnknownValue(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
81
81
  protected needConvertRenderedOtherToDataValue(): boolean;
82
82
  protected onVisibleChoicesChanged(): void;
83
83
  protected getItemIfChoicesNotContainThisValue(value: any, text?: string): any;
@@ -148,6 +148,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
148
148
  protected onChangeQuestionValue(newValue: any): void;
149
149
  private updateInputValue;
150
150
  private hasToConvertToUTC;
151
+ private createDate;
151
152
  protected valueForSurveyCore(val: any): any;
152
153
  protected valueFromDataCore(val: any): any;
153
154
  private dateValidationMessage;
@@ -130,33 +130,23 @@ export declare var settings: {
130
130
  * Nested properties:
131
131
  *
132
132
  * - `itemValueSerializeAsObject`: `boolean`\
133
- * Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances as objects even when they include only the `value` property. Default value: `false`. View an example below.
133
+ * Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances (choice options, matrix rows, columns in a [Single-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model)) as objects even when they include only the `value` property. Default value: `false`.
134
134
  *
135
135
  * - `itemValueSerializeDisplayText`: `boolean`\
136
- * Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`. View an example below.
136
+ * Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`.
137
137
  *
138
138
  * - `localizableStringSerializeAsObject`: `boolean`\
139
139
  * Enable this property if you want to serialize [`LocalizableString`](https://surveyjs.io/form-library/documentation/api-reference/localizablestring) instances as objects even when they include only a translation string for the default locale. For example, `"Custom String"` will be serialized as `{ default: "Custom String" }`. Default value: `false`.
140
140
  *
141
- * ```js
142
- * import { ItemValue, settings } from "survey-core";
143
- *
144
- * // `itemValueSerializeAsObject` example
145
- * settings.serialization.itemValueSerializeAsObject = true;
146
- * const item = new ItemValue(5);
147
- * const itemString = item.toJSON(); // Produces { value: 5 } instead of 5
148
- *
149
- * // `itemValueSerializeDisplayText` example
150
- * settings.serialization.itemValueSerializeDisplayText = true;
151
- * const item = new ItemValue("item1");
152
- * const itemString = item.toJSON(); // Produces { value: "item1", text: "item1" } instead of "item1"
153
- * ```
141
+ * - `matrixDropdownColumnSerializeTitle`: `boolean`\
142
+ * Enable this property if you want to serialize the `title` property of [`MatrixDropdownColumn`](https://surveyjs.io/form-library/documentation/api-reference/multi-select-matrix-column-values) objects even when it is empty or equal to the `name` property. Default value: `false`.
154
143
  * @see [settings.parseNumber](https://surveyjs.io/form-library/documentation/api-reference/settings#parseNumber)
155
144
  */
156
145
  serialization: {
157
146
  itemValueSerializeAsObject: boolean;
158
147
  itemValueSerializeDisplayText: boolean;
159
148
  localizableStringSerializeAsObject: boolean;
149
+ matrixDropdownColumnSerializeTitle: boolean;
160
150
  };
161
151
  itemValueAlwaysSerializeAsObject: boolean;
162
152
  itemValueAlwaysSerializeText: boolean;
@@ -619,6 +609,7 @@ export declare var settings: {
619
609
  * ```
620
610
  */
621
611
  storeUtcDates: boolean;
612
+ onDateCreated: (newDate: Date, reason: string, val?: number | string | Date) => Date;
622
613
  /**
623
614
  * A function that allows you to define custom parsing rules for numbers represented as string values.
624
615
  *
@@ -643,5 +634,4 @@ export declare var settings: {
643
634
  * @see [settings.serialization](https://surveyjs.io/form-library/documentation/api-reference/settings#serialization)
644
635
  */
645
636
  parseNumber: (stringValue: any, numericValue: number) => number;
646
- useLegacyIcons: boolean;
647
637
  };
@@ -2966,5 +2966,4 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2966
2966
  addScrollEventListener(): void;
2967
2967
  removeScrollEventListener(): void;
2968
2968
  questionErrorComponent: string;
2969
- protected registerIcons(): void;
2970
2969
  }
@@ -26,6 +26,13 @@ export declare var surveyLocalization: {
26
26
  onGetExternalString: (name: string, locale: string) => string;
27
27
  };
28
28
  export declare function getLocaleString(strName: string, locale?: string): string;
29
+ export declare function setupLocale(localeConfig: {
30
+ localeCode: string;
31
+ strings: any;
32
+ nativeName: string;
33
+ englishName: string;
34
+ rtl?: boolean;
35
+ }): void;
29
36
  export declare var surveyStrings: {
30
37
  pagePrevText: string;
31
38
  pageNextText: string;
@@ -1,4 +1,5 @@
1
- declare class SvgIconData {
1
+ import { EventBase } from "./base";
2
+ interface SvgIconData {
2
3
  [key: string]: string;
3
4
  }
4
5
  export declare class SvgIconRegistry {
@@ -9,12 +10,14 @@ export declare class SvgIconRegistry {
9
10
  registerIconFromSvgViaElement(iconId: string, iconSvg: string, iconPrefix?: string): void;
10
11
  registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
11
12
  registerIconsFromFolder(r: any): void;
13
+ registerIcons(icons: SvgIconData): void;
12
14
  iconsRenderedHtml(): string;
15
+ updateMarkup(): void;
16
+ onIconsChanged: EventBase<SvgIconRegistry, {}>;
13
17
  }
14
- export declare var SvgRegistry: SvgIconRegistry;
15
- export declare var SvgBundleViewModel: any;
16
- export declare var svgBundle: {
17
- V1?: string;
18
- V2?: string;
18
+ export declare const SvgRegistry: SvgIconRegistry;
19
+ export declare const SvgThemeSets: {
20
+ [index: string]: SvgIconData;
19
21
  };
22
+ export declare function addIconsToThemeSet(name: string, iconsData: SvgIconData): void;
20
23
  export {};