survey-core 1.12.4 → 1.12.5

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 (244) hide show
  1. package/defaultV2.css +81 -4
  2. package/defaultV2.css.map +1 -1
  3. package/defaultV2.fontless.css +81 -4
  4. package/defaultV2.fontless.css.map +1 -1
  5. package/defaultV2.fontless.min.css +2 -2
  6. package/defaultV2.min.css +2 -2
  7. package/i18n/arabic.js +1 -1
  8. package/i18n/arabic.min.js +1 -1
  9. package/i18n/basque.js +1 -1
  10. package/i18n/basque.min.js +1 -1
  11. package/i18n/bulgarian.js +1 -1
  12. package/i18n/bulgarian.min.js +1 -1
  13. package/i18n/catalan.js +1 -1
  14. package/i18n/catalan.min.js +1 -1
  15. package/i18n/croatian.js +1 -1
  16. package/i18n/croatian.min.js +1 -1
  17. package/i18n/czech.js +1 -1
  18. package/i18n/czech.min.js +1 -1
  19. package/i18n/danish.js +1 -1
  20. package/i18n/danish.min.js +1 -1
  21. package/i18n/dutch.js +1 -1
  22. package/i18n/dutch.min.js +1 -1
  23. package/i18n/english.js +1 -1
  24. package/i18n/english.min.js +1 -1
  25. package/i18n/estonian.js +1 -1
  26. package/i18n/estonian.min.js +1 -1
  27. package/i18n/finnish.js +1 -1
  28. package/i18n/finnish.min.js +1 -1
  29. package/i18n/french.js +1 -1
  30. package/i18n/french.min.js +1 -1
  31. package/i18n/georgian.js +1 -1
  32. package/i18n/georgian.min.js +1 -1
  33. package/i18n/german.js +1 -1
  34. package/i18n/german.min.js +1 -1
  35. package/i18n/greek.js +1 -1
  36. package/i18n/greek.min.js +1 -1
  37. package/i18n/hebrew.js +1 -1
  38. package/i18n/hebrew.min.js +1 -1
  39. package/i18n/hindi.js +1 -1
  40. package/i18n/hindi.min.js +1 -1
  41. package/i18n/hungarian.js +1 -1
  42. package/i18n/hungarian.min.js +1 -1
  43. package/i18n/icelandic.js +1 -1
  44. package/i18n/icelandic.min.js +1 -1
  45. package/i18n/index.js +1 -1
  46. package/i18n/index.min.js +1 -1
  47. package/i18n/indonesian.js +1 -1
  48. package/i18n/indonesian.min.js +1 -1
  49. package/i18n/italian.js +1 -1
  50. package/i18n/italian.min.js +1 -1
  51. package/i18n/japanese.js +1 -1
  52. package/i18n/japanese.min.js +1 -1
  53. package/i18n/kazakh.js +1 -1
  54. package/i18n/kazakh.min.js +1 -1
  55. package/i18n/korean.js +1 -1
  56. package/i18n/korean.min.js +1 -1
  57. package/i18n/latvian.js +1 -1
  58. package/i18n/latvian.min.js +1 -1
  59. package/i18n/lithuanian.js +1 -1
  60. package/i18n/lithuanian.min.js +1 -1
  61. package/i18n/macedonian.js +1 -1
  62. package/i18n/macedonian.min.js +1 -1
  63. package/i18n/malay.js +1 -1
  64. package/i18n/malay.min.js +1 -1
  65. package/i18n/nl-BE.js +1 -1
  66. package/i18n/nl-BE.min.js +1 -1
  67. package/i18n/norwegian.js +1 -1
  68. package/i18n/norwegian.min.js +1 -1
  69. package/i18n/persian.js +1 -1
  70. package/i18n/persian.min.js +1 -1
  71. package/i18n/philippines.js +1 -1
  72. package/i18n/philippines.min.js +1 -1
  73. package/i18n/polish.js +1 -1
  74. package/i18n/polish.min.js +1 -1
  75. package/i18n/portuguese-br.js +1 -1
  76. package/i18n/portuguese-br.min.js +1 -1
  77. package/i18n/portuguese.js +1 -1
  78. package/i18n/portuguese.min.js +1 -1
  79. package/i18n/romanian.js +1 -1
  80. package/i18n/romanian.min.js +1 -1
  81. package/i18n/russian.js +1 -1
  82. package/i18n/russian.min.js +1 -1
  83. package/i18n/serbian.js +1 -1
  84. package/i18n/serbian.min.js +1 -1
  85. package/i18n/simplified-chinese.js +1 -1
  86. package/i18n/simplified-chinese.min.js +1 -1
  87. package/i18n/slovak.js +1 -1
  88. package/i18n/slovak.min.js +1 -1
  89. package/i18n/spanish.js +1 -1
  90. package/i18n/spanish.min.js +1 -1
  91. package/i18n/swahili.js +1 -1
  92. package/i18n/swahili.min.js +1 -1
  93. package/i18n/swedish.js +1 -1
  94. package/i18n/swedish.min.js +1 -1
  95. package/i18n/tajik.js +1 -1
  96. package/i18n/tajik.min.js +1 -1
  97. package/i18n/telugu.js +1 -1
  98. package/i18n/telugu.min.js +1 -1
  99. package/i18n/thai.js +1 -1
  100. package/i18n/thai.min.js +1 -1
  101. package/i18n/traditional-chinese.js +1 -1
  102. package/i18n/traditional-chinese.min.js +1 -1
  103. package/i18n/turkish.js +1 -1
  104. package/i18n/turkish.min.js +1 -1
  105. package/i18n/ukrainian.js +1 -1
  106. package/i18n/ukrainian.min.js +1 -1
  107. package/i18n/urdu.js +1 -1
  108. package/i18n/urdu.min.js +1 -1
  109. package/i18n/vietnamese.js +1 -1
  110. package/i18n/vietnamese.min.js +1 -1
  111. package/i18n/welsh.js +1 -1
  112. package/i18n/welsh.min.js +1 -1
  113. package/modern.css +1 -1
  114. package/modern.fontless.css +1 -1
  115. package/modern.fontless.min.css +1 -1
  116. package/modern.min.css +1 -1
  117. package/package.json +1 -1
  118. package/plugins/bootstrap-integration/index.js +1 -1
  119. package/plugins/bootstrap-integration/index.min.js +1 -1
  120. package/plugins/bootstrap-material-integration/index.js +1 -1
  121. package/plugins/bootstrap-material-integration/index.min.js +1 -1
  122. package/survey.core.js +525 -266
  123. package/survey.core.js.map +1 -1
  124. package/survey.core.min.js +3 -3
  125. package/survey.css +1 -1
  126. package/survey.i18n.js +1 -1
  127. package/survey.i18n.min.js +1 -1
  128. package/survey.min.css +1 -1
  129. package/themes/borderless-dark-panelless.js +1 -1
  130. package/themes/borderless-dark-panelless.min.js +1 -1
  131. package/themes/borderless-dark.js +1 -1
  132. package/themes/borderless-dark.min.js +1 -1
  133. package/themes/borderless-light-panelless..js +1 -1
  134. package/themes/borderless-light-panelless..min.js +1 -1
  135. package/themes/borderless-light.js +1 -1
  136. package/themes/borderless-light.min.js +1 -1
  137. package/themes/contrast-dark-panelless.js +1 -1
  138. package/themes/contrast-dark-panelless.min.js +1 -1
  139. package/themes/contrast-dark.js +1 -1
  140. package/themes/contrast-dark.min.js +1 -1
  141. package/themes/contrast-light-panelless.js +1 -1
  142. package/themes/contrast-light-panelless.min.js +1 -1
  143. package/themes/contrast-light.js +1 -1
  144. package/themes/contrast-light.min.js +1 -1
  145. package/themes/default-dark-panelless.js +1 -1
  146. package/themes/default-dark-panelless.min.js +1 -1
  147. package/themes/default-dark.js +1 -1
  148. package/themes/default-dark.min.js +1 -1
  149. package/themes/default-light-panelless.js +1 -1
  150. package/themes/default-light-panelless.min.js +1 -1
  151. package/themes/default-light.js +1 -1
  152. package/themes/default-light.min.js +1 -1
  153. package/themes/doubleborder-dark-panelless.js +1 -1
  154. package/themes/doubleborder-dark-panelless.min.js +1 -1
  155. package/themes/doubleborder-dark.js +1 -1
  156. package/themes/doubleborder-dark.min.js +1 -1
  157. package/themes/doubleborder-light-panelles.js +1 -1
  158. package/themes/doubleborder-light-panelles.min.js +1 -1
  159. package/themes/doubleborder-light.js +1 -1
  160. package/themes/doubleborder-light.min.js +1 -1
  161. package/themes/flat-dark-panelless.js +1 -1
  162. package/themes/flat-dark-panelless.min.js +1 -1
  163. package/themes/flat-dark.js +1 -1
  164. package/themes/flat-dark.min.js +1 -1
  165. package/themes/flat-light-panelless.js +1 -1
  166. package/themes/flat-light-panelless.min.js +1 -1
  167. package/themes/flat-light.js +1 -1
  168. package/themes/flat-light.min.js +1 -1
  169. package/themes/index.js +1 -1
  170. package/themes/index.min.js +1 -1
  171. package/themes/layered-dark-panelless.js +1 -1
  172. package/themes/layered-dark-panelless.min.js +1 -1
  173. package/themes/layered-dark.js +1 -1
  174. package/themes/layered-dark.min.js +1 -1
  175. package/themes/layered-light-panelless.js +1 -1
  176. package/themes/layered-light-panelless.min.js +1 -1
  177. package/themes/layered-light.js +1 -1
  178. package/themes/layered-light.min.js +1 -1
  179. package/themes/plain-dark-panelless.js +1 -1
  180. package/themes/plain-dark-panelless.min.js +1 -1
  181. package/themes/plain-dark.js +1 -1
  182. package/themes/plain-dark.min.js +1 -1
  183. package/themes/plain-light-panelless.js +1 -1
  184. package/themes/plain-light-panelless.min.js +1 -1
  185. package/themes/plain-light.js +1 -1
  186. package/themes/plain-light.min.js +1 -1
  187. package/themes/sharp-dark-panelless.js +1 -1
  188. package/themes/sharp-dark-panelless.min.js +1 -1
  189. package/themes/sharp-dark.js +1 -1
  190. package/themes/sharp-dark.min.js +1 -1
  191. package/themes/sharp-light-panelless.js +1 -1
  192. package/themes/sharp-light-panelless.min.js +1 -1
  193. package/themes/sharp-light.js +1 -1
  194. package/themes/sharp-light.min.js +1 -1
  195. package/themes/solid-dark-panelless.js +1 -1
  196. package/themes/solid-dark-panelless.min.js +1 -1
  197. package/themes/solid-dark.js +1 -1
  198. package/themes/solid-dark.min.js +1 -1
  199. package/themes/solid-light-panelless.js +1 -1
  200. package/themes/solid-light-panelless.min.js +1 -1
  201. package/themes/solid-light.js +1 -1
  202. package/themes/solid-light.min.js +1 -1
  203. package/themes/three-dimensional-dark-panelless.js +1 -1
  204. package/themes/three-dimensional-dark-panelless.min.js +1 -1
  205. package/themes/three-dimensional-dark.js +1 -1
  206. package/themes/three-dimensional-dark.min.js +1 -1
  207. package/themes/three-dimensional-light-panelless.js +1 -1
  208. package/themes/three-dimensional-light-panelless.min.js +1 -1
  209. package/themes/three-dimensional-light.js +1 -1
  210. package/themes/three-dimensional-light.min.js +1 -1
  211. package/ts3.4/typings/packages/survey-core/entries/chunks/model.d.ts +1 -1
  212. package/ts3.4/typings/packages/survey-core/src/base-interfaces.d.ts +1 -1
  213. package/ts3.4/typings/packages/survey-core/src/base.d.ts +4 -15
  214. package/ts3.4/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +1 -0
  215. package/ts3.4/typings/packages/survey-core/src/page.d.ts +8 -3
  216. package/ts3.4/typings/packages/survey-core/src/panel.d.ts +2 -0
  217. package/ts3.4/typings/packages/survey-core/src/question.d.ts +1 -1
  218. package/ts3.4/typings/packages/survey-core/src/question_baseselect.d.ts +0 -3
  219. package/ts3.4/typings/packages/survey-core/src/question_comment.d.ts +0 -3
  220. package/ts3.4/typings/packages/survey-core/src/question_file.d.ts +20 -2
  221. package/ts3.4/typings/packages/survey-core/src/question_matrixdynamic.d.ts +2 -0
  222. package/ts3.4/typings/packages/survey-core/src/survey-element.d.ts +16 -1
  223. package/ts3.4/typings/packages/survey-core/src/survey.d.ts +76 -30
  224. package/ts3.4/typings/packages/survey-core/src/surveyTimerModel.d.ts +1 -1
  225. package/ts3.4/typings/packages/survey-core/src/surveytimer.d.ts +1 -0
  226. package/ts3.4/typings/packages/survey-core/src/themes.d.ts +19 -13
  227. package/ts3.4/typings/packages/survey-core/src/utils/text-area.d.ts +1 -0
  228. package/typings/packages/survey-core/entries/chunks/model.d.ts +1 -1
  229. package/typings/packages/survey-core/src/base-interfaces.d.ts +1 -1
  230. package/typings/packages/survey-core/src/base.d.ts +4 -15
  231. package/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +1 -0
  232. package/typings/packages/survey-core/src/page.d.ts +9 -3
  233. package/typings/packages/survey-core/src/panel.d.ts +2 -0
  234. package/typings/packages/survey-core/src/question.d.ts +1 -1
  235. package/typings/packages/survey-core/src/question_baseselect.d.ts +0 -3
  236. package/typings/packages/survey-core/src/question_comment.d.ts +0 -3
  237. package/typings/packages/survey-core/src/question_file.d.ts +21 -2
  238. package/typings/packages/survey-core/src/question_matrixdynamic.d.ts +2 -0
  239. package/typings/packages/survey-core/src/survey-element.d.ts +16 -1
  240. package/typings/packages/survey-core/src/survey.d.ts +82 -31
  241. package/typings/packages/survey-core/src/surveyTimerModel.d.ts +1 -1
  242. package/typings/packages/survey-core/src/surveytimer.d.ts +1 -0
  243. package/typings/packages/survey-core/src/themes.d.ts +19 -13
  244. package/typings/packages/survey-core/src/utils/text-area.d.ts +1 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.12.4
2
+ * surveyjs - Survey JavaScript library v1.12.5
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.4
2
+ * surveyjs - Survey JavaScript library v1.12.5
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.4
2
+ * surveyjs - Survey JavaScript library v1.12.5
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.4
2
+ * surveyjs - Survey JavaScript library v1.12.5
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.4
2
+ * surveyjs - Survey JavaScript library v1.12.5
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.4
2
+ * surveyjs - Survey JavaScript library v1.12.5
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.4
2
+ * surveyjs - Survey JavaScript library v1.12.5
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.4
2
+ * surveyjs - Survey JavaScript library v1.12.5
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.4
2
+ * surveyjs - Survey JavaScript library v1.12.5
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.4
2
+ * surveyjs - Survey JavaScript library v1.12.5
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.4
2
+ * surveyjs - Survey JavaScript library v1.12.5
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
  */
@@ -46,7 +46,7 @@ export { QuestionRankingModel } from "../../src/question_ranking";
46
46
  export { QuestionCommentModel } from "../../src/question_comment";
47
47
  export { QuestionDropdownModel } from "../../src/question_dropdown";
48
48
  export { QuestionFactory, ElementFactory } from "../../src/questionfactory";
49
- export { QuestionFileModel } from "../../src/question_file";
49
+ export { QuestionFileModel, QuestionFilePage } from "../../src/question_file";
50
50
  export { QuestionHtmlModel } from "../../src/question_html";
51
51
  export { QuestionRadiogroupModel } from "../../src/question_radiogroup";
52
52
  export { QuestionRatingModel, RenderedRatingItem } from "../../src/question_rating";
@@ -113,7 +113,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
113
113
  maxTextLength: number;
114
114
  maxOthersLength: number;
115
115
  clearValueOnDisableItems: boolean;
116
- maxTimeToFinishPage: number;
116
+ timeLimitPerPage: number;
117
117
  uploadFiles(question: IQuestion, name: string, files: File[], uploadingCallback: (data: any | Array<any>, errors?: any | Array<any>) => any): any;
118
118
  downloadFile(question: IQuestion, name: string, content: string, callback: (status: string, data: any) => any): any;
119
119
  clearFiles(question: IQuestion, name: string, value: any, fileName: string, clearCallback: (status: string, data: any) => any): any;
@@ -300,25 +300,14 @@ export declare class Base {
300
300
  private animationAllowedLock;
301
301
  blockAnimations(): void;
302
302
  releaseAnimations(): void;
303
- supportOnElementRenderedEvent: boolean;
304
- onElementRenderedEventEnabled: boolean;
305
- enableOnElementRenderedEvent(): void;
306
- disableOnElementRenderedEvent(): void;
303
+ supportOnElementRerenderedEvent: boolean;
304
+ onElementRerenderedEventEnabled: boolean;
305
+ enableOnElementRerenderedEvent(): void;
306
+ disableOnElementRerenderedEvent(): void;
307
307
  protected _onElementRerendered: EventBase<Base>;
308
308
  readonly onElementRerendered: EventBase<Base>;
309
309
  afterRerender(): void;
310
310
  }
311
- export declare class RenderingCompletedAwaiter {
312
- private _elements;
313
- private _renderedHandler;
314
- constructor(_elements: Array<Base>, _renderedHandler: () => void, waitingTimeout?: number);
315
- private _elementsToRenderCount;
316
- private _elementsToRenderTimer;
317
- private _elementRenderedHandler;
318
- private stopWaitingForElementsRendering;
319
- private visibleElementsRendered;
320
- dispose(): void;
321
- }
322
311
  export declare class ArrayChanges<T = any> {
323
312
  index: number;
324
313
  deleteCount: number;
@@ -711,6 +711,7 @@ export declare var defaultV2Css: {
711
711
  changeCameraButton: string;
712
712
  takePictureButton: string;
713
713
  loadingIndicator: string;
714
+ page: string;
714
715
  };
715
716
  signaturepad: {
716
717
  mainRoot: string;
@@ -76,7 +76,7 @@ export declare class PageModel extends PanelModelBase implements IPage {
76
76
  scrollToTop(): void;
77
77
  /**
78
78
  * A time period that a respondent has spent on this page so far; measured in seconds. Applies only to [quiz surveys](https://surveyjs.io/form-library/documentation/design-survey-create-a-quiz).
79
- * @see maxTimeToFinish
79
+ * @see timeLimit
80
80
  */
81
81
  timeSpent: number;
82
82
  /**
@@ -89,11 +89,16 @@ export declare class PageModel extends PanelModelBase implements IPage {
89
89
  /*
90
90
  * A time period that a respondent has to complete this page; measured in seconds. Applies only to [quiz surveys](https://surveyjs.io/form-library/documentation/design-survey-create-a-quiz).
91
91
  *
92
- * A negative value or 0 sets an unlimited time period.
92
+ * Default value: 0 (time is unlimited)
93
93
  *
94
- * Alternatively, you can use the `SurveyModel`'s [`maxTimeToFinishPage`](https://surveyjs.io/form-library/documentation/surveymodel#maxTimeToFinishPage) property to specify identical time periods for all survey pages.
94
+ * Alternatively, you can use the `SurveyModel`'s [`timeLimitPerPage`](https://surveyjs.io/form-library/documentation/surveymodel#timeLimitPerPage) property to specify identical time periods for all survey pages.
95
95
  * @see timeSpent
96
96
  */
97
+ timeLimit: number;
98
+ /*
99
+ * Obsolete. Use the [`timeLimit`](https://surveyjs.io/form-library/documentation/api-reference/page-model#timeLimit) property instead.
100
+ * @deprecated
101
+ */
97
102
  maxTimeToFinish: number;
98
103
  getMaxTimeToFinish(): number;
99
104
  protected onNumChanged(value: number): void;
@@ -460,6 +460,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
460
460
  readonly cssError: string;
461
461
  protected getCssError(cssClasses: any): string;
462
462
  getSerializableColumnsValue(): Array<PanelLayoutColumnModel>;
463
+ afterRender(el: HTMLElement): void;
463
464
  dispose(): void;
464
465
  }
465
466
  /**
@@ -579,4 +580,5 @@ export declare class PanelModel extends PanelModelBase implements IElement {
579
580
  [index: string]: string;
580
581
  }): string;
581
582
  getContainerCss(): string;
583
+ afterRenderCore(element: HTMLElement): void;
582
584
  }
@@ -362,7 +362,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
362
362
  onCommentChange(event: any): void;
363
363
  afterRenderQuestionElement(el: HTMLElement): void;
364
364
  afterRender(el: HTMLElement): void;
365
- afterRenderCore(el: HTMLElement): void;
365
+ afterRenderCore(element: HTMLElement): void;
366
366
  protected getCommentElementsId(): Array<string>;
367
367
  beforeDestroyQuestionElement(el: HTMLElement): void;
368
368
  readonly processedTitle: string;
@@ -483,9 +483,6 @@ export declare class QuestionSelectBase extends Question {
483
483
  getItemId(item: ItemValue): string;
484
484
  readonly questionName: string;
485
485
  getItemEnabled(item: ItemValue): boolean;
486
- protected rootElement: HTMLElement;
487
- afterRender(el: HTMLElement): void;
488
- beforeDestroyQuestionElement(el: HTMLElement): void;
489
486
  private focusOtherComment;
490
487
  private prevIsOtherSelected;
491
488
  protected onValueChanged(): void;
@@ -41,13 +41,10 @@ export declare class QuestionCommentModel extends QuestionTextBase {
41
41
  readonly resizeStyle: "none" | "both";
42
42
  getType(): string;
43
43
  afterRenderQuestionElement(el: HTMLElement): void;
44
- updateElement(): void;
45
44
  beforeDestroyQuestionElement(el: HTMLElement): void;
46
45
  onInput(event: any): void;
47
46
  protected onBlurCore(event: any): void;
48
47
  onKeyDown(event: any): void;
49
- protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
50
- onValueChanged(): void;
51
48
  protected setNewValue(newValue: string): any;
52
49
  protected getValueSeparator(): string;
53
50
  readonly className: string;
@@ -1,6 +1,6 @@
1
1
  import { IPlainDataOptions } from "./base-interfaces";
2
2
  import { IQuestionPlainData, Question } from "./question";
3
- import { EventBase } from "./base";
3
+ import { EventBase, Base } from "./base";
4
4
  import { SurveyError } from "./survey-error";
5
5
  import { ActionContainer } from "./actions/container";
6
6
  import { Action } from "./actions/action";
@@ -51,9 +51,21 @@ export declare class QuestionFileModelBase extends Question {
51
51
  *
52
52
  * [View Demo](https://surveyjs.io/form-library/examples/file-upload/ (linkStyle))
53
53
  */
54
+ export declare class QuestionFilePage extends Base {
55
+ private question;
56
+ private index;
57
+ private static pageCounter;
58
+ private static getId;
59
+ items: Array<any>;
60
+ id: string;
61
+ constructor(question: QuestionFileModel, index: number);
62
+ readonly css: string;
63
+ }
54
64
  export declare class QuestionFileModel extends QuestionFileModelBase {
55
65
  isDragging: boolean;
56
66
  previewValue: any[];
67
+ pages: QuestionFilePage[];
68
+ navigationDirection: "left" | "right" | "left-delete";
57
69
  indexToShow: number;
58
70
  pageSize: number;
59
71
  containsMultiplyFiles: boolean;
@@ -82,6 +94,7 @@ export declare class QuestionFileModel extends QuestionFileModelBase {
82
94
  startCameraAction: Action;
83
95
  cleanAction: Action;
84
96
  actionsContainer: ActionContainer;
97
+ readonly supportFileNavigator: boolean;
85
98
  private isFileLoadingValue;
86
99
  protected isFileLoading: boolean;
87
100
  readonly fileNavigatorVisible: boolean;
@@ -105,9 +118,10 @@ export declare class QuestionFileModel extends QuestionFileModelBase {
105
118
  protected updateElementCssCore(cssClasses: any): void;
106
119
  private getFileIndexCaption;
107
120
  private updateFileNavigator;
121
+ private updateRenderedPages;
122
+ private updatePages;
108
123
  private prevPreviewLength;
109
124
  private previewValueChanged;
110
- isPreviewVisible(index: number): boolean;
111
125
  getType(): string;
112
126
  /*
113
127
  * Disable this property only to implement a custom preview.
@@ -235,6 +249,10 @@ export declare class QuestionFileModel extends QuestionFileModelBase {
235
249
  protected supportResponsiveness(): boolean;
236
250
  protected getObservedElementSelector(): string;
237
251
  private getFileListSelector;
252
+ private _renderedPages;
253
+ renderedPages: Array<QuestionFilePage>;
254
+ private getPagesAnimationOptions;
255
+ private pagesAnimation;
238
256
  private calcAvailableItemsCount;
239
257
  private calculatedGapBetweenItems;
240
258
  private calculatedItemWidth;
@@ -96,6 +96,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
96
96
  * @see allowRemoveRows
97
97
  */
98
98
  minRowCount: number;
99
+ private onMinRowCountChanged;
99
100
  /*
100
101
  * A maximum number of rows in the matrix. Users cannot add new rows if `rowCount` equals `maxRowCount`.
101
102
  *
@@ -105,6 +106,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
105
106
  * @see allowAddRows
106
107
  */
107
108
  maxRowCount: number;
109
+ private onMaxRowCountChanged;
108
110
  /*
109
111
  * Specifies whether users are allowed to add new rows.
110
112
  *
@@ -1,4 +1,4 @@
1
- import { Base } from "./base";
1
+ import { Base, EventBase } from "./base";
2
2
  import { IAction } from "./actions/action";
3
3
  import { AdaptiveActionContainer } from "./actions/adaptive-container";
4
4
  import { ISurveyElement, IPage, IPanel, IProgressInfo, ISurvey, ISurveyData, ISurveyImpl, ITextProcessor, ITitleOwner } from "./base-interfaces";
@@ -103,6 +103,8 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
103
103
  dragTypeOverMe: DragTypeOverMeEnum;
104
104
  isDragMe: boolean;
105
105
  readOnlyChangedCallback: () => void;
106
+ private static IsNeedScrollIntoView;
107
+ static ScrollIntoView(el: HTMLElement, scrollIntoViewOptions?: ScrollIntoViewOptions, doneCallback?: () => void): void;
106
108
  static ScrollElementToTop(elementId: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, doneCallback?: () => void): boolean;
107
109
  static ScrollElementToViewCore(el: HTMLElement, checkLeft: boolean, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, doneCallback?: () => void): boolean;
108
110
  static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
@@ -410,5 +412,18 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
410
412
  private animationCollapsed;
411
413
  renderedIsExpanded: boolean;
412
414
  protected getIsAnimationAllowed(): boolean;
415
+ onAfterRenderElement: EventBase<SurveyElement<E>, any>;
416
+ afterRenderCore(element: HTMLElement): void;
417
+ dispose(): void;
418
+ }
419
+ export declare class RenderingCompletedAwaiter {
420
+ private _elements;
421
+ private _renderedHandler;
422
+ constructor(_elements: Array<SurveyElement>, _renderedHandler: () => void, waitingTimeout?: number);
423
+ private _elementsToRenderCount;
424
+ private _elementsToRenderTimer;
425
+ private _elementRenderedHandler;
426
+ private stopWaitingForElementsRendering;
427
+ private visibleElementsRendered;
413
428
  dispose(): void;
414
429
  }
@@ -625,11 +625,17 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
625
625
  * An event that is raised every second while the timer is running.
626
626
  *
627
627
  * Use the [`timeSpent`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#timeSpent) property to find out how many seconds have elapsed.
628
- * @see maxTimeToFinish
629
- * @see maxTimeToFinishPage
630
- * @see showTimerPanel
628
+ * @see timeLimit
629
+ * @see timeLimitPerPage
630
+ * @see showTimer
631
+ * @see timerLocation
631
632
  * @see startTimer
632
633
  */
634
+ onTimerTick: EventBase<SurveyModel, {}>;
635
+ /**
636
+ * Obsolete. Use the [`onTimerTick`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTimerTick) event instead.
637
+ * @deprecated
638
+ */
633
639
  onTimer: EventBase<SurveyModel, {}>;
634
640
  onTimerPanelInfoText: EventBase<SurveyModel, any>;
635
641
  /**
@@ -773,6 +779,18 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
773
779
  */
774
780
  headerView: "advanced" | "basic";
775
781
  protected insertAdvancedHeader(advHeader: Cover): void;
782
+ /**
783
+ * Specifies whether the [Complete page](https://surveyjs.io/form-library/documentation/design-survey/create-a-multi-page-survey#complete-page) should display the [survey header](https://surveyjs.io/form-library/examples/brand-your-survey-header/).
784
+ *
785
+ * Possible values:
786
+ *
787
+ * - `true` - Displays the survey header on the Complete page.
788
+ * - `false` - Hides the header when users reach the Complete page.
789
+ * - `"auto"` (default) - Displays a header with the basic view, but hides a header with the advanced view (see the [`headerView`](https://surveyjs.io/form-library/documentation/api-reference/itheme#headerView) property description).
790
+ *
791
+ * > This property cannot be specified in the survey JSON schema. Use dot notation to specify it.
792
+ */
793
+ showHeaderOnCompletePage: true | false | "auto";
776
794
  private getNavigationCss;
777
795
  private lazyRenderingValue;
778
796
  showBrandInfo: boolean;
@@ -2573,38 +2591,56 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2573
2591
  getCorrectedAnswers(): number;
2574
2592
  getInCorrectedAnswers(): number;
2575
2593
  /*
2576
- * Displays the timer panel and specifies its position. Applies only to [quiz surveys](https://surveyjs.io/form-library/documentation/design-survey-create-a-quiz).
2594
+ * Obsolete. Use the [`showTimer`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTimer) and [`timerLocation`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#timerLocation) properties instead.
2595
+ * @deprecated
2596
+ */
2597
+ showTimerPanel: string;
2598
+ /*
2599
+ * Specifies the timer's visibility. Applies only to [quiz surveys](https://surveyjs.io/form-library/documentation/design-survey-create-a-quiz).
2577
2600
  *
2578
- * Possible values:
2601
+ * Default value: `false`
2579
2602
  *
2580
- * - `"top"` - Displays the timer panel at the top of the survey.
2581
- * - `"bottom"` - Displays the timer panel at the bottom of the survey.
2582
- * - `"none"` (default) - Hides the timer panel.
2603
+ * If you set this property to `true`, the timer starts automatically when the survey begins. To specify time limits, use the [`timeLimit`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#timeLimit) and [`timeLimitPerPage`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#timeLimitPerPage) properties.
2583
2604
  *
2584
- * If the timer panel is displayed, the timer starts automatically when the survey begins. To specify time limits, use the [`maxTimeToFinish`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#maxTimeToFinish) and [`maxTimeToFinishPage`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#maxTimeToFinishPage) properties.
2605
+ * The timer displays information about time spent on an individual page and the entire survey. If you want to display only the page timer or the survey timer, set the [`timerInfoMode`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#timerInfoMode) property to `"page"` or `"survey"`.
2585
2606
  *
2586
- * The timer panel displays information about time spent on an individual page and the entire survey. If you want to display only the page timer or the survey timer, set the [`showTimerPanelMode`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTimerPanelMode) property to `"page"` or `"survey"`.
2587
- * @see startTimer
2588
- * @see stopTimer
2607
+ * You can enable the timer without displaying it. In this case, you need to specify the required time limits and use the [`startTimer()`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#startTimer) and [`stopTimer()`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#stopTimer) methods to control the timer.
2608
+ * @see timerLocation
2589
2609
  * @see timeSpent
2590
- * @see onTimer
2610
+ * @see onTimerTick
2591
2611
  */
2592
- showTimerPanel: string;
2612
+ showTimer: boolean;
2613
+ /*
2614
+ * Specifies the timer's position relative to the survey. Applies only if the [`showTimer`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTimer) property is set to `true`.
2615
+ *
2616
+ * Possible values:
2617
+ *
2618
+ * - `"top"` (default) - Displays the timer at the top of the survey.
2619
+ * - `"bottom"` - Displays the timer at the bottom of the survey.
2620
+ * @see onTimerTick
2621
+ */
2622
+ timerLocation: string;
2593
2623
  readonly isTimerPanelShowingOnTop: boolean;
2594
2624
  readonly isTimerPanelShowingOnBottom: boolean;
2595
2625
  /*
2596
- * Specifies whether the timer panel displays timers for the current page, the entire survey, or both. Applies only if the timer panel is [visible](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTimerPanel).
2626
+ * Specifies whether the timer panel displays timers for the current page, the entire survey, or both. Applies only if the timer panel is [visible](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTimer).
2597
2627
  *
2598
2628
  * Possible values:
2599
2629
  *
2600
2630
  * - `"survey"` - Displays only the survey timer.
2601
2631
  * - `"page"` - Displays only the page timer.
2602
- * - `"all"` (default) - Displays both the survey and page timers.
2632
+ * - `"combined"` (default) - Displays both the survey and page timers.
2603
2633
  * @see timeSpent
2604
- * @see onTimer
2634
+ * @see onTimerTick
2605
2635
  * @see startTimer
2606
2636
  * @see stopTimer
2607
2637
  */
2638
+ timerInfoMode: string;
2639
+ private getTimerInfoVal;
2640
+ /*
2641
+ * Obsolete. Use the [`timerInfoMode`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#timerInfoMode) property instead.
2642
+ * @deprecated
2643
+ */
2608
2644
  showTimerPanelMode: string;
2609
2645
  gridLayoutEnabled: boolean;
2610
2646
  /*
@@ -2648,20 +2684,20 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2648
2684
  /**
2649
2685
  * Starts a timer that calculates how many seconds a respondent has spent on the survey. Applies only to [quiz surveys](https://surveyjs.io/form-library/documentation/design-survey-create-a-quiz).
2650
2686
  * @see stopTimer
2651
- * @see maxTimeToFinish
2652
- * @see maxTimeToFinishPage
2687
+ * @see timeLimit
2688
+ * @see timeLimitPerPage
2653
2689
  * @see timeSpent
2654
- * @see onTimer
2690
+ * @see onTimerTick
2655
2691
  */
2656
2692
  startTimer(): void;
2657
2693
  startTimerFromUI(): void;
2658
2694
  /**
2659
2695
  * Stops the timer. Applies only to [quiz surveys](https://surveyjs.io/form-library/documentation/design-survey-create-a-quiz).
2660
2696
  * @see startTimer
2661
- * @see maxTimeToFinish
2662
- * @see maxTimeToFinishPage
2697
+ * @see timeLimit
2698
+ * @see timeLimitPerPage
2663
2699
  * @see timeSpent
2664
- * @see onTimer
2700
+ * @see onTimerTick
2665
2701
  */
2666
2702
  stopTimer(): void;
2667
2703
  /*
@@ -2670,34 +2706,44 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2670
2706
  * Assign a number to this property if you need to start the quiz timer from a specific time (for instance, if you want to continue an interrupted quiz).
2671
2707
  *
2672
2708
  * You can also find out how many seconds a respondent has spent on an individual survey page. To do this, use the [`timeSpent`](https://surveyjs.io/form-library/documentation/api-reference/page-model#timeSpent) property of a [`PageModel`](https://surveyjs.io/form-library/documentation/api-reference/page-model) object.
2673
- * @see maxTimeToFinish
2674
- * @see maxTimeToFinishPage
2709
+ * @see timeLimit
2710
+ * @see timeLimitPerPage
2675
2711
  * @see startTimer
2676
2712
  */
2677
2713
  timeSpent: number;
2678
2714
  /*
2679
2715
  * A time period that a respondent has to complete the survey; measured in seconds. Applies only to [quiz surveys](https://surveyjs.io/form-library/documentation/design-survey-create-a-quiz).
2680
2716
  *
2681
- * A negative value or 0 sets an unlimited time period.
2717
+ * Default value: 0 (time is unlimited)
2682
2718
  *
2683
2719
  * [View Demo](https://surveyjs.io/form-library/examples/make-quiz-javascript/ (linkStyle))
2684
- * @see maxTimeToFinishPage
2720
+ * @see timeLimitPerPage
2685
2721
  * @see startTimer
2686
2722
  * @see timeSpent
2687
2723
  */
2724
+ timeLimit: number;
2725
+ /*
2726
+ * Obsolete. Use the [`timeLimit`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#timeLimit) property instead.
2727
+ * @deprecated
2728
+ */
2688
2729
  maxTimeToFinish: number;
2689
2730
  /*
2690
2731
  * A time period that a respondent has to complete each survey page; measured in seconds. Applies only to [quiz surveys](https://surveyjs.io/form-library/documentation/design-survey-create-a-quiz).
2691
2732
  *
2692
- * A negative value or 0 sets an unlimited time period.
2733
+ * Default value: 0 (time is unlimited)
2693
2734
  *
2694
- * You can also use `PageModel`'s [`maxTimeToFinish`](https://surveyjs.io/form-library/documentation/api-reference/page-model#maxTimeToFinish) property to specify a time period for an individual survey page.
2735
+ * You can also use `PageModel`'s [`timeLimit`](https://surveyjs.io/form-library/documentation/api-reference/page-model#timeLimit) property to specify a time period for an individual survey page.
2695
2736
  *
2696
2737
  * [View Demo](https://surveyjs.io/form-library/examples/make-quiz-javascript/ (linkStyle))
2697
- * @see maxTimeToFinish
2738
+ * @see timeLimit
2698
2739
  * @see startTimer
2699
2740
  * @see timeSpent
2700
2741
  */
2742
+ timeLimitPerPage: number;
2743
+ /*
2744
+ * Obsolete. Use the [`timeLimitPerPage`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#timeLimitPerPage) property instead.
2745
+ * @deprecated
2746
+ */
2701
2747
  maxTimeToFinishPage: number;
2702
2748
  private doTimer;
2703
2749
  readonly inSurvey: boolean;
@@ -18,7 +18,7 @@ export interface ISurveyTimerText {
18
18
  onCurrentPageChanged: EventBase<SurveyModel>;
19
19
  }
20
20
  export declare class SurveyTimerModel extends Base {
21
- onTimer: (page: PageModel) => void;
21
+ onTimerTick: (page: PageModel) => void;
22
22
  private surveyValue;
23
23
  constructor(survey: ISurvey);
24
24
  text: string;
@@ -14,6 +14,7 @@ export declare class SurveyTimer {
14
14
  private listenerCounter;
15
15
  private timerId;
16
16
  private prevTimeInMs;
17
+ onTimerTick: EventBase<SurveyTimer, SurveyTimerEvent>;
17
18
  onTimer: EventBase<SurveyTimer, SurveyTimerEvent>;
18
19
  start(func?: (timer: SurveyTimer, options: SurveyTimerEvent) => void): void;
19
20
  stop(func?: (timer: SurveyTimer, options: SurveyTimerEvent) => any): void;