survey-core 1.12.16 → 1.12.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/defaultV2.css +2 -2
  2. package/defaultV2.fontless.css +2 -2
  3. package/defaultV2.fontless.min.css +2 -2
  4. package/defaultV2.min.css +2 -2
  5. package/i18n/arabic.js +2 -2
  6. package/i18n/arabic.min.js +2 -2
  7. package/i18n/basque.js +2 -2
  8. package/i18n/basque.min.js +2 -2
  9. package/i18n/bulgarian.js +2 -2
  10. package/i18n/bulgarian.min.js +2 -2
  11. package/i18n/burmese.js +218 -0
  12. package/i18n/burmese.js.map +1 -0
  13. package/i18n/burmese.min.js +6 -0
  14. package/i18n/catalan.js +2 -2
  15. package/i18n/catalan.min.js +3 -3
  16. package/i18n/croatian.js +2 -2
  17. package/i18n/croatian.min.js +3 -3
  18. package/i18n/czech.js +2 -2
  19. package/i18n/czech.min.js +3 -3
  20. package/i18n/danish.js +2 -2
  21. package/i18n/danish.min.js +3 -3
  22. package/i18n/dutch.js +2 -2
  23. package/i18n/dutch.min.js +2 -2
  24. package/i18n/english.js +2 -2
  25. package/i18n/english.min.js +3 -3
  26. package/i18n/estonian.js +2 -2
  27. package/i18n/estonian.min.js +3 -3
  28. package/i18n/finnish.js +2 -2
  29. package/i18n/finnish.min.js +3 -3
  30. package/i18n/french.js +2 -2
  31. package/i18n/french.min.js +3 -3
  32. package/i18n/georgian.js +2 -2
  33. package/i18n/georgian.min.js +3 -3
  34. package/i18n/german.js +2 -2
  35. package/i18n/german.min.js +3 -3
  36. package/i18n/greek.js +2 -2
  37. package/i18n/greek.min.js +3 -3
  38. package/i18n/hebrew.js +2 -2
  39. package/i18n/hebrew.min.js +3 -3
  40. package/i18n/hindi.js +2 -2
  41. package/i18n/hindi.min.js +3 -3
  42. package/i18n/hungarian.js +2 -2
  43. package/i18n/hungarian.min.js +3 -3
  44. package/i18n/icelandic.js +2 -2
  45. package/i18n/icelandic.min.js +3 -3
  46. package/i18n/index.js +107 -2
  47. package/i18n/index.js.map +1 -1
  48. package/i18n/index.min.js +3 -3
  49. package/i18n/indonesian.js +2 -2
  50. package/i18n/indonesian.min.js +3 -3
  51. package/i18n/italian.js +2 -2
  52. package/i18n/italian.min.js +3 -3
  53. package/i18n/japanese.js +2 -2
  54. package/i18n/japanese.min.js +3 -3
  55. package/i18n/kazakh.js +2 -2
  56. package/i18n/kazakh.min.js +3 -3
  57. package/i18n/korean.js +2 -2
  58. package/i18n/korean.min.js +3 -3
  59. package/i18n/latvian.js +2 -2
  60. package/i18n/latvian.min.js +3 -3
  61. package/i18n/lithuanian.js +2 -2
  62. package/i18n/lithuanian.min.js +3 -3
  63. package/i18n/macedonian.js +2 -2
  64. package/i18n/macedonian.min.js +3 -3
  65. package/i18n/malay.js +2 -2
  66. package/i18n/malay.min.js +3 -3
  67. package/i18n/nl-BE.js +2 -2
  68. package/i18n/nl-BE.min.js +3 -3
  69. package/i18n/norwegian.js +2 -2
  70. package/i18n/norwegian.min.js +3 -3
  71. package/i18n/persian.js +2 -2
  72. package/i18n/persian.min.js +3 -3
  73. package/i18n/philippines.js +2 -2
  74. package/i18n/philippines.min.js +3 -3
  75. package/i18n/polish.js +2 -2
  76. package/i18n/polish.min.js +3 -3
  77. package/i18n/portuguese-br.js +2 -2
  78. package/i18n/portuguese-br.min.js +3 -3
  79. package/i18n/portuguese.js +2 -2
  80. package/i18n/portuguese.min.js +3 -3
  81. package/i18n/romanian.js +2 -2
  82. package/i18n/romanian.min.js +3 -3
  83. package/i18n/russian.js +2 -2
  84. package/i18n/russian.min.js +3 -3
  85. package/i18n/serbian.js +2 -2
  86. package/i18n/serbian.min.js +3 -3
  87. package/i18n/simplified-chinese.js +2 -2
  88. package/i18n/simplified-chinese.min.js +3 -3
  89. package/i18n/slovak.js +2 -2
  90. package/i18n/slovak.min.js +3 -3
  91. package/i18n/spanish.js +2 -2
  92. package/i18n/spanish.min.js +3 -3
  93. package/i18n/swahili.js +2 -2
  94. package/i18n/swahili.min.js +3 -3
  95. package/i18n/swedish.js +2 -2
  96. package/i18n/swedish.min.js +3 -3
  97. package/i18n/tajik.js +2 -2
  98. package/i18n/tajik.min.js +3 -3
  99. package/i18n/telugu.js +2 -2
  100. package/i18n/telugu.min.js +3 -3
  101. package/i18n/thai.js +2 -2
  102. package/i18n/thai.min.js +3 -3
  103. package/i18n/traditional-chinese.js +2 -2
  104. package/i18n/traditional-chinese.min.js +3 -3
  105. package/i18n/turkish.js +2 -2
  106. package/i18n/turkish.min.js +3 -3
  107. package/i18n/ukrainian.js +2 -2
  108. package/i18n/ukrainian.min.js +3 -3
  109. package/i18n/urdu.js +2 -2
  110. package/i18n/urdu.min.js +3 -3
  111. package/i18n/vietnamese.js +2 -2
  112. package/i18n/vietnamese.min.js +3 -3
  113. package/i18n/welsh.js +2 -2
  114. package/i18n/welsh.min.js +3 -3
  115. package/icons/iconsV1.js +2 -2
  116. package/icons/iconsV1.min.js +2 -2
  117. package/icons/iconsV2.js +2 -2
  118. package/icons/iconsV2.min.js +2 -2
  119. package/modern.css +2 -2
  120. package/modern.fontless.css +2 -2
  121. package/modern.fontless.min.css +2 -2
  122. package/modern.min.css +2 -2
  123. package/package.json +1 -1
  124. package/plugins/bootstrap-integration/index.js +2 -2
  125. package/plugins/bootstrap-integration/index.min.js +2 -2
  126. package/plugins/bootstrap-material-integration/index.js +2 -2
  127. package/plugins/bootstrap-material-integration/index.min.js +2 -2
  128. package/survey.core.js +206 -87
  129. package/survey.core.js.map +1 -1
  130. package/survey.core.min.js +4 -4
  131. package/survey.css +2 -2
  132. package/survey.i18n.js +107 -2
  133. package/survey.i18n.js.map +1 -1
  134. package/survey.i18n.min.js +3 -3
  135. package/survey.min.css +2 -2
  136. package/themes/borderless-dark-panelless.js +2 -2
  137. package/themes/borderless-dark-panelless.min.js +2 -2
  138. package/themes/borderless-dark.js +2 -2
  139. package/themes/borderless-dark.min.js +2 -2
  140. package/themes/borderless-light-panelless..js +2 -2
  141. package/themes/borderless-light-panelless..min.js +2 -2
  142. package/themes/borderless-light.js +2 -2
  143. package/themes/borderless-light.min.js +2 -2
  144. package/themes/contrast-dark-panelless.js +2 -2
  145. package/themes/contrast-dark-panelless.min.js +2 -2
  146. package/themes/contrast-dark.js +2 -2
  147. package/themes/contrast-dark.min.js +2 -2
  148. package/themes/contrast-light-panelless.js +2 -2
  149. package/themes/contrast-light-panelless.min.js +2 -2
  150. package/themes/contrast-light.js +2 -2
  151. package/themes/contrast-light.min.js +2 -2
  152. package/themes/default-dark-panelless.js +2 -2
  153. package/themes/default-dark-panelless.min.js +2 -2
  154. package/themes/default-dark.js +2 -2
  155. package/themes/default-dark.min.js +2 -2
  156. package/themes/default-light-panelless.js +2 -2
  157. package/themes/default-light-panelless.min.js +2 -2
  158. package/themes/default-light.js +2 -2
  159. package/themes/default-light.min.js +2 -2
  160. package/themes/doubleborder-dark-panelless.js +2 -2
  161. package/themes/doubleborder-dark-panelless.min.js +2 -2
  162. package/themes/doubleborder-dark.js +2 -2
  163. package/themes/doubleborder-dark.min.js +2 -2
  164. package/themes/doubleborder-light-panelles.js +2 -2
  165. package/themes/doubleborder-light-panelles.min.js +2 -2
  166. package/themes/doubleborder-light.js +2 -2
  167. package/themes/doubleborder-light.min.js +2 -2
  168. package/themes/flat-dark-panelless.js +2 -2
  169. package/themes/flat-dark-panelless.min.js +2 -2
  170. package/themes/flat-dark.js +2 -2
  171. package/themes/flat-dark.min.js +2 -2
  172. package/themes/flat-light-panelless.js +2 -2
  173. package/themes/flat-light-panelless.min.js +2 -2
  174. package/themes/flat-light.js +2 -2
  175. package/themes/flat-light.min.js +2 -2
  176. package/themes/index.js +2 -2
  177. package/themes/index.min.js +2 -2
  178. package/themes/layered-dark-panelless.js +2 -2
  179. package/themes/layered-dark-panelless.min.js +2 -2
  180. package/themes/layered-dark.js +2 -2
  181. package/themes/layered-dark.min.js +2 -2
  182. package/themes/layered-light-panelless.js +2 -2
  183. package/themes/layered-light-panelless.min.js +2 -2
  184. package/themes/layered-light.js +2 -2
  185. package/themes/layered-light.min.js +2 -2
  186. package/themes/plain-dark-panelless.js +2 -2
  187. package/themes/plain-dark-panelless.min.js +2 -2
  188. package/themes/plain-dark.js +2 -2
  189. package/themes/plain-dark.min.js +2 -2
  190. package/themes/plain-light-panelless.js +2 -2
  191. package/themes/plain-light-panelless.min.js +2 -2
  192. package/themes/plain-light.js +2 -2
  193. package/themes/plain-light.min.js +2 -2
  194. package/themes/sharp-dark-panelless.js +2 -2
  195. package/themes/sharp-dark-panelless.min.js +2 -2
  196. package/themes/sharp-dark.js +2 -2
  197. package/themes/sharp-dark.min.js +2 -2
  198. package/themes/sharp-light-panelless.js +2 -2
  199. package/themes/sharp-light-panelless.min.js +2 -2
  200. package/themes/sharp-light.js +2 -2
  201. package/themes/sharp-light.min.js +2 -2
  202. package/themes/solid-dark-panelless.js +2 -2
  203. package/themes/solid-dark-panelless.min.js +2 -2
  204. package/themes/solid-dark.js +2 -2
  205. package/themes/solid-dark.min.js +2 -2
  206. package/themes/solid-light-panelless.js +2 -2
  207. package/themes/solid-light-panelless.min.js +2 -2
  208. package/themes/solid-light.js +2 -2
  209. package/themes/solid-light.min.js +2 -2
  210. package/themes/three-dimensional-dark-panelless.js +2 -2
  211. package/themes/three-dimensional-dark-panelless.min.js +2 -2
  212. package/themes/three-dimensional-dark.js +2 -2
  213. package/themes/three-dimensional-dark.min.js +2 -2
  214. package/themes/three-dimensional-light-panelless.js +2 -2
  215. package/themes/three-dimensional-light-panelless.min.js +2 -2
  216. package/themes/three-dimensional-light.js +2 -2
  217. package/themes/three-dimensional-light.min.js +2 -2
  218. package/ts3.4/typings/packages/survey-core/src/base-interfaces.d.ts +1 -0
  219. package/ts3.4/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +1 -0
  220. package/ts3.4/typings/packages/survey-core/src/panel.d.ts +3 -2
  221. package/ts3.4/typings/packages/survey-core/src/question.d.ts +1 -1
  222. package/ts3.4/typings/packages/survey-core/src/question_imagepicker.d.ts +1 -0
  223. package/ts3.4/typings/packages/survey-core/src/question_matrixdropdownrendered.d.ts +2 -2
  224. package/ts3.4/typings/packages/survey-core/src/settings.d.ts +1 -0
  225. package/ts3.4/typings/packages/survey-core/src/survey-events-api.d.ts +38 -10
  226. package/ts3.4/typings/packages/survey-core/src/survey.d.ts +48 -25
  227. package/ts3.4/typings/packages/survey-core/src/utils/utils.d.ts +1 -1
  228. package/typings/packages/survey-core/src/base-interfaces.d.ts +1 -0
  229. package/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +1 -0
  230. package/typings/packages/survey-core/src/panel.d.ts +3 -2
  231. package/typings/packages/survey-core/src/question.d.ts +1 -1
  232. package/typings/packages/survey-core/src/question_imagepicker.d.ts +1 -0
  233. package/typings/packages/survey-core/src/question_matrixdropdownrendered.d.ts +2 -2
  234. package/typings/packages/survey-core/src/settings.d.ts +1 -0
  235. package/typings/packages/survey-core/src/survey-events-api.d.ts +38 -10
  236. package/typings/packages/survey-core/src/survey.d.ts +49 -25
  237. package/typings/packages/survey-core/src/utils/utils.d.ts +1 -1
@@ -35,7 +35,7 @@ export declare class QuestionMatrixDropdownRenderedCell {
35
35
  get hasQuestion(): boolean;
36
36
  get hasTitle(): boolean;
37
37
  get hasPanel(): boolean;
38
- get id(): number;
38
+ get id(): string;
39
39
  get item(): ItemValue;
40
40
  set item(val: ItemValue);
41
41
  get isChoice(): boolean;
@@ -70,7 +70,7 @@ export declare class QuestionMatrixDropdownRenderedRow extends Base {
70
70
  private idValue;
71
71
  cells: Array<QuestionMatrixDropdownRenderedCell>;
72
72
  constructor(cssClasses: any, isDetailRow?: boolean);
73
- get id(): number;
73
+ get id(): string;
74
74
  get attributes(): {
75
75
  "data-sv-drop-target-matrix-row"?: undefined;
76
76
  } | {
@@ -20,6 +20,7 @@ export declare type ISurveyEnvironment = {
20
20
  * ```
21
21
  */
22
22
  export declare var settings: {
23
+ version: string;
23
24
  /**
24
25
  * An object that configures survey appearance when the survey is being designed in Survey Creator.
25
26
  *
@@ -61,7 +61,11 @@ export interface GetTitleActionsEventMixin {
61
61
  /**
62
62
  * An array of [actions](https://surveyjs.io/form-library/documentation/iaction) associated with the processed element.
63
63
  */
64
- titleActions: Array<IAction>;
64
+ actions: Array<IAction>;
65
+ /**
66
+ * Obsolete. Use `options.actions` instead.
67
+ */
68
+ titleActions?: Array<IAction>;
65
69
  }
66
70
  export interface GetActionsEventMixin {
67
71
  /**
@@ -417,7 +421,13 @@ export interface GetPageNumberEvent extends PageEventMixin {
417
421
  */
418
422
  number: string;
419
423
  }
420
- export interface ProgressTextEvent {
424
+ export interface GetPanelNumberEvent extends PanelEventMixin {
425
+ /**
426
+ * A panel number. Note that this is a string value that contains not only the number itself but also the characters that separate the number from the panel title: `"1. "`, `"2. "`, etc. You can change this parameter's value.
427
+ */
428
+ number: string;
429
+ }
430
+ export interface GetProgressTextEvent {
421
431
  /**
422
432
  * The number of questions with input fields. [Image](https://surveyjs.io/form-library/examples/add-image-and-video-to-survey/), [HTML](https://surveyjs.io/form-library/examples/questiontype-html/), and [Expression](https://surveyjs.io/form-library/examples/questiontype-expression/) questions are not counted.
423
433
  */
@@ -439,6 +449,8 @@ export interface ProgressTextEvent {
439
449
  */
440
450
  text: string;
441
451
  }
452
+ export interface ProgressTextEvent extends GetProgressTextEvent {
453
+ }
442
454
  export interface TextProcessingEvent {
443
455
  /**
444
456
  * The name of the property that contains the text to process.
@@ -921,17 +933,27 @@ export interface DynamicPanelGetTabTitleEvent extends DynamicPanelCurrentIndexCh
921
933
  }
922
934
  export interface IsAnswerCorrectEvent extends QuestionEventMixin {
923
935
  /**
924
- * The number of correct answers in a matrix where each row is considered as one quiz question.
936
+ * A Boolean property that specifies whether the answer is correct (`true`) or incorrect (`false`). Use the `options.question.value` and `options.question.correctAnswer` properties to check the answer.
925
937
  */
926
- correctAnswers: number;
938
+ result: boolean;
927
939
  /**
928
- * The number of incorrect answers in a matrix where each row is considered as one quiz question.
940
+ * Obsolete. Use `options.correctAnswerCount` instead.
929
941
  */
930
- incorrectAnswers: number;
942
+ correctAnswers?: number;
931
943
  /**
932
- * A Boolean property that specifies whether the answer is correct (`true`) or incorrect (`false`). Use the `options.question.value` and `options.question.correctAnswer` properties to check the answer.
944
+ * Obsolete. Use `options.incorrectAnswerCount` instead.
933
945
  */
934
- result: boolean;
946
+ incorrectAnswers?: number;
947
+ }
948
+ export interface CheckAnswerCorrectEvent extends IsAnswerCorrectEvent {
949
+ /**
950
+ * The number of correct answers in a matrix where each row is considered as one quiz question.
951
+ */
952
+ correctAnswerCount: number;
953
+ /**
954
+ * The number of incorrect answers in a matrix where each row is considered as one quiz question.
955
+ */
956
+ incorrectAnswerCount: number;
935
957
  }
936
958
  export interface DragDropAllowEvent {
937
959
  /**
@@ -982,9 +1004,9 @@ export interface ScrollingElementToTopEvent {
982
1004
  */
983
1005
  elementId: string;
984
1006
  /**
985
- * A Boolean property that you can set to `true` if you want to cancel the scroll operation.
1007
+ * Obsolete. Use `options.allow` instead.
986
1008
  */
987
- cancel: boolean;
1009
+ cancel?: boolean;
988
1010
  /**
989
1011
  * Obsolete. Use `options.element` instead.
990
1012
  */
@@ -994,6 +1016,12 @@ export interface ScrollingElementToTopEvent {
994
1016
  */
995
1017
  page?: PageModel;
996
1018
  }
1019
+ export interface ScrollToTopEvent extends ScrollingElementToTopEvent {
1020
+ /**
1021
+ * A Boolean property that you can set to `false` if you want to cancel the scroll operation.
1022
+ */
1023
+ allow: boolean;
1024
+ }
997
1025
  export interface GetQuestionTitleActionsEvent extends QuestionEventMixin, GetTitleActionsEventMixin {
998
1026
  }
999
1027
  export interface GetPanelTitleActionsEvent extends PanelEventMixin, GetTitleActionsEventMixin {
@@ -18,7 +18,7 @@ import { IAction, Action } from "./actions/action";
18
18
  import { ActionContainer } from "./actions/container";
19
19
  import { QuestionPanelDynamicModel } from "./question_paneldynamic";
20
20
  import { Notifier } from "./notifier";
21
- import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent, GetQuestionNumberEvent, GetPageNumberEvent, ProgressTextEvent, TextMarkdownEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixDetailPanelVisibleChangedEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, DynamicPanelCurrentIndexChangedEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent, ChoicesSearchEvent, OpenFileChooserEvent, OpenDropdownMenuEvent, ResizeEvent } from "./survey-events-api";
21
+ import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent, GetQuestionNumberEvent, GetPageNumberEvent, GetPanelNumberEvent, GetProgressTextEvent, TextMarkdownEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixDetailPanelVisibleChangedEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, DynamicPanelCurrentIndexChangedEvent, CheckAnswerCorrectEvent, DragDropAllowEvent, ScrollToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent, ChoicesSearchEvent, OpenFileChooserEvent, OpenDropdownMenuEvent, ResizeEvent, ProgressTextEvent, ScrollingElementToTopEvent, IsAnswerCorrectEvent } from "./survey-events-api";
22
22
  import { QuestionMatrixDropdownModelBase } from "./question_matrixdropdownbase";
23
23
  import { QuestionMatrixDynamicModel } from "./question_matrixdynamic";
24
24
  import { QuestionFileModel } from "./question_file";
@@ -335,9 +335,16 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
335
335
  */
336
336
  onGetQuestionNumber: EventBase<SurveyModel, GetQuestionNumberEvent>;
337
337
  /**
338
- * This event is obsolete. Use the [`onGetQuestionNumber`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetQuestionNumber) event instead.
338
+ * Obsolete. Use the [`onGetQuestionNumber`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetQuestionNumber) event instead.
339
+ * @deprecated
339
340
  */
340
341
  onGetQuestionNo: EventBase<SurveyModel, GetQuestionNumberEvent>;
342
+ /**
343
+ * An event that is raised before the survey calculates a panel number. Handle this event to modify panel numbers.
344
+ *
345
+ * This event is raised only for the panels with a [specified title](https://surveyjs.io/form-library/documentation/api-reference/panel-model#title) and [visible number](https://surveyjs.io/form-library/documentation/api-reference/panel-model#showNumber).
346
+ */
347
+ onGetPanelNumber: EventBase<SurveyModel, GetPanelNumberEvent>;
341
348
  /**
342
349
  * An event that is raised before the survey calculates a page number. Handle this event to modify page numbers.
343
350
  *
@@ -353,6 +360,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
353
360
  * @see showProgressBar
354
361
  * @see progressBarType
355
362
  */
363
+ onGetProgressText: EventBase<SurveyModel, GetProgressTextEvent>;
364
+ /**
365
+ * Obsolete. Use the [`onGetProgressText`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetProgressText) event instead.
366
+ * @deprecated
367
+ */
356
368
  onProgressText: EventBase<SurveyModel, ProgressTextEvent>;
357
369
  /**
358
370
  * An event that is raised to convert Markdown content to HTML.
@@ -555,7 +567,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
555
567
  */
556
568
  onMatrixRowAdding: EventBase<SurveyModel, MatrixBeforeRowAddedEvent>;
557
569
  /**
558
- * This event is obsolete. Use the [`onMatrixRowAdding`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRowAdding) event instead.
570
+ * Obsolete. Use the [`onMatrixRowAdding`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRowAdding) event instead.
571
+ * @deprecated
559
572
  */
560
573
  onMatrixBeforeRowAdded: EventBase<SurveyModel, MatrixBeforeRowAddedEvent>;
561
574
  /**
@@ -575,7 +588,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
575
588
  */
576
589
  onMatrixRenderRemoveButton: EventBase<SurveyModel, MatrixAllowRemoveRowEvent>;
577
590
  /**
578
- * This event is obsolete. Use the [`onMatrixRenderRemoveButton`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRenderRemoveButton) event instead.
591
+ * Obsolete. Use the [`onMatrixRenderRemoveButton`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRenderRemoveButton) event instead.
592
+ * @deprecated
579
593
  */
580
594
  onMatrixAllowRemoveRow: EventBase<SurveyModel, MatrixAllowRemoveRowEvent>;
581
595
  /**
@@ -598,7 +612,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
598
612
  */
599
613
  onAfterRenderMatrixCell: EventBase<SurveyModel, MatrixAfterCellRenderEvent>;
600
614
  /**
601
- * This event is obsolete. Use the [`onAfterRenderMatrixCell`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onAfterRenderMatrixCell) event instead.
615
+ * Obsolete. Use the [`onAfterRenderMatrixCell`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onAfterRenderMatrixCell) event instead.
616
+ * @deprecated
602
617
  */
603
618
  onMatrixAfterCellRender: EventBase<SurveyModel, MatrixAfterCellRenderEvent>;
604
619
  /**
@@ -672,6 +687,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
672
687
  /**
673
688
  * An event that is raised to define whether a question answer is correct. Applies only to [quiz surveys](https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz).
674
689
  */
690
+ onCheckAnswerCorrect: EventBase<SurveyModel, CheckAnswerCorrectEvent>;
691
+ /**
692
+ * Obsolete. Use the [`onCheckAnswerCorrect`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onCheckAnswerCorrect) event instead.
693
+ * @deprecated
694
+ */
675
695
  onIsAnswerCorrect: EventBase<SurveyModel, IsAnswerCorrectEvent>;
676
696
  /**
677
697
  * An event that is raised when users drag and drop survey elements while designing the survey in [Survey Creator](https://surveyjs.io/survey-creator/documentation/overview). Use this event to control drag and drop operations.
@@ -681,6 +701,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
681
701
  /**
682
702
  * An event this is raised before a survey element (usually page) is scrolled to the top. Use this event to cancel the scroll operation.
683
703
  */
704
+ onScrollToTop: EventBase<SurveyModel, ScrollToTopEvent>;
705
+ /**
706
+ * Obsolete. Use the [`onScrollToTop`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onScrollToTop) event instead.
707
+ * @deprecated
708
+ */
684
709
  onScrollingElementToTop: EventBase<SurveyModel, ScrollingElementToTopEvent>;
685
710
  onLocaleChangedEvent: EventBase<SurveyModel, {}>;
686
711
  /**
@@ -720,10 +745,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
720
745
  * @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
721
746
  */
722
747
  onGetMatrixRowActions: EventBase<SurveyModel, GetMatrixRowActionsEvent>;
723
- /**
724
- * An event that is raised after a survey element is [expanded or collapsed](https://surveyjs.io/form-library/documentation/api-reference/question#state).
725
- */
726
- onElementContentVisibilityChanged: EventBase<SurveyModel, ElementContentVisibilityChangedEvent>;
748
+ onElementContentVisibilityChanged: EventBase<SurveyModel, any>;
727
749
  /**
728
750
  * An event that is raised before an [Expression](https://surveyjs.io/form-library/documentation/api-reference/expression-model) question displays a value. Use this event to override the display value.
729
751
  */
@@ -743,6 +765,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
743
765
  onElementWrapperComponentName: EventBase<SurveyModel, any>;
744
766
  onElementWrapperComponentData: EventBase<SurveyModel, any>;
745
767
  constructor(jsonObj?: any, renderedElement?: any);
768
+ get sjsVersion(): string;
769
+ set sjsVersion(val: string);
746
770
  processClosedPopup(question: IQuestion, popupModel: PopupModel<any>): void;
747
771
  protected createTryAgainAction(): IAction;
748
772
  private createHtmlLocString;
@@ -791,7 +815,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
791
815
  containerCss: string;
792
816
  fitToContainer: boolean;
793
817
  /**
794
- * This property is obsolete. Use the [`headerView`](https://surveyjs.io/form-library/documentation/api-reference/itheme#headerView) property within a theme instead.
818
+ * Obsolete. Use the [`headerView`](https://surveyjs.io/form-library/documentation/api-reference/itheme#headerView) property within a theme instead.
819
+ * @deprecated
795
820
  */
796
821
  headerView: "advanced" | "basic";
797
822
  protected insertAdvancedHeader(advHeader: Cover): void;
@@ -1485,6 +1510,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
1485
1510
  get locQuestionTitleTemplate(): LocalizableString;
1486
1511
  getUpdatedQuestionTitle(question: Question, title: string): string;
1487
1512
  getUpdatedQuestionNo(question: Question, no: string): string;
1513
+ getUpdatedPanelNo(panel: PanelModel, no: string): string;
1488
1514
  getUpdatedPageNo(page: PageModel, no: string): string;
1489
1515
  /**
1490
1516
  * Specifies whether page titles contain page numbers.
@@ -1931,7 +1957,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
1931
1957
  */
1932
1958
  deleteCookie(): void;
1933
1959
  /**
1934
- * This property is obsolete. Use the [`validationEnabled`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#validationEnabled) property instead.
1960
+ * Obsolete. Use the [`validationEnabled`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#validationEnabled) property instead.
1961
+ * @deprecated
1935
1962
  */
1936
1963
  get ignoreValidation(): boolean;
1937
1964
  set ignoreValidation(val: boolean);
@@ -2040,6 +2067,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2040
2067
  * @see isCurrentPageValid
2041
2068
  * @see nextPage
2042
2069
  */
2070
+ tryComplete(): boolean;
2071
+ /**
2072
+ * Obsolete. Use the [`tryComplete`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#tryComplete) method instead.
2073
+ * @deprecated
2074
+ */
2043
2075
  completeLastPage(): boolean;
2044
2076
  private isNavigationButtonPressed;
2045
2077
  navigationMouseDown(): boolean;
@@ -2213,7 +2245,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2213
2245
  get processedLoadingHtml(): string;
2214
2246
  getProgressInfo(): IProgressInfo;
2215
2247
  /**
2216
- * Returns text displayed by the progress bar (for instance, "Page 2 of 3" or "Answered 3/8 questions"). Handle the [`onProgressText`](#onProgressText) event to change this text.
2248
+ * Returns text displayed by the progress bar (for instance, "Page 2 of 3" or "Answered 3/8 questions"). Handle the [`onGetProgressText`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetProgressText) event to change this text.
2217
2249
  * @see progressValue
2218
2250
  * @see showProgressBar
2219
2251
  * @see progressBarType
@@ -2294,6 +2326,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2294
2326
  elementContentVisibilityChanged(element: ISurveyElement): void;
2295
2327
  getUpdatedPanelFooterActions(panel: PanelModel, actions: Array<IAction>, question?: QuestionPanelDynamicModel): Array<IAction>;
2296
2328
  getUpdatedElementTitleActions(element: ISurveyElement, titleActions: Array<IAction>): Array<IAction>;
2329
+ private getTitleActionsResult;
2297
2330
  private getUpdatedQuestionTitleActions;
2298
2331
  private getUpdatedPanelTitleActions;
2299
2332
  private getUpdatedPageTitleActions;
@@ -2409,13 +2442,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2409
2442
  */
2410
2443
  getQuestionsByValueName(valueName: string, caseInsensitive?: boolean): Array<Question>;
2411
2444
  getCalculatedValueByName(name: string): CalculatedValue;
2412
- /**
2413
- * Returns an array of questions with specified [names](https://surveyjs.io/form-library/documentation/api-reference/question#name).
2414
- * @param names An array of question names.
2415
- * @param caseInsensitive *(Optional)* A Boolean value that specifies case sensitivity when searching for the questions. Default value: `false` (uppercase and lowercase letters are treated as distinct).
2416
- * @returns An array of questions with specified names
2417
- * @see getAllQuestions
2418
- */
2419
2445
  getQuestionsByNames(names: string[], caseInsensitive?: boolean): IQuestion[];
2420
2446
  /**
2421
2447
  * Returns a page to which a specified survey element (question or panel) belongs.
@@ -2432,10 +2458,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2432
2458
  * @param name A page [name](https://surveyjs.io/form-library/documentation/api-reference/page-model#name).
2433
2459
  */
2434
2460
  getPageByName(name: string): PageModel;
2435
- /**
2436
- * Returns an array of pages with specified names.
2437
- * @param names An array of page names.
2438
- */
2439
2461
  getPagesByNames(names: string[]): PageModel[];
2440
2462
  /**
2441
2463
  * Returns a list of all [questions](https://surveyjs.io/form-library/documentation/api-reference/question) in the survey.
@@ -2687,7 +2709,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2687
2709
  * For more information about quizzes, refer to the following tutorial: [Create a Quiz](https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz).
2688
2710
  * @returns The number of correct answers in a quiz.
2689
2711
  * @see getQuizQuestionCount
2690
- * @see getInCorrectAnswerCount
2712
+ * @see getIncorrectAnswerCount
2691
2713
  */
2692
2714
  getCorrectAnswerCount(): number;
2693
2715
  /**
@@ -2701,6 +2723,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2701
2723
  */
2702
2724
  getQuizQuestionCount(): number;
2703
2725
  getInCorrectedAnswerCount(): number;
2726
+ getInCorrectAnswerCount(): number;
2704
2727
  /**
2705
2728
  * Returns the number of incorrect answers in a quiz.
2706
2729
  *
@@ -2708,7 +2731,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2708
2731
  * @returns The number of incorrect answers in a quiz.
2709
2732
  * @see getCorrectAnswerCount
2710
2733
  */
2711
- getInCorrectAnswerCount(): number;
2734
+ getIncorrectAnswerCount(): number;
2712
2735
  onCorrectQuestionAnswer(question: IQuestion, options: any): void;
2713
2736
  private getCorrectedAnswerCountCore;
2714
2737
  getCorrectedAnswers(): number;
@@ -2771,6 +2794,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2771
2794
  get showTimerPanelMode(): string;
2772
2795
  set showTimerPanelMode(val: string);
2773
2796
  gridLayoutEnabled: boolean;
2797
+ updateGridColumns(): void;
2774
2798
  /**
2775
2799
  * Specifies how to calculate the survey width.
2776
2800
  *
@@ -82,5 +82,5 @@ export declare function getVerticalDimensions(el: HTMLElement): IVerticalDimensi
82
82
  export declare function setPropertiesOnElementForAnimation(el: HTMLElement, styles: any, prefix?: string): void;
83
83
  export declare function prepareElementForVerticalAnimation(el: HTMLElement): void;
84
84
  export declare function cleanHtmlElementAfterAnimation(el: HTMLElement): void;
85
- export declare function roundTo2Decimals(number: number): number;
85
+ export declare function floorTo2Decimals(number: number): number;
86
86
  export { mergeValues, updateListCssValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, activateLazyRenderingChecks, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles, isBase64URL, renamedIcons };