survey-core 1.11.13 → 1.12.1

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 (277) hide show
  1. package/defaultV2.css +361 -339
  2. package/defaultV2.css.map +1 -1
  3. package/defaultV2.fontless.css +361 -339
  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 +2 -1
  24. package/i18n/english.js.map +1 -1
  25. package/i18n/english.min.js +2 -2
  26. package/i18n/estonian.js +1 -1
  27. package/i18n/estonian.min.js +1 -1
  28. package/i18n/finnish.js +1 -1
  29. package/i18n/finnish.min.js +1 -1
  30. package/i18n/french.js +1 -1
  31. package/i18n/french.min.js +1 -1
  32. package/i18n/georgian.js +1 -1
  33. package/i18n/georgian.min.js +1 -1
  34. package/i18n/german.js +1 -1
  35. package/i18n/german.min.js +1 -1
  36. package/i18n/greek.js +1 -1
  37. package/i18n/greek.min.js +1 -1
  38. package/i18n/hebrew.js +1 -1
  39. package/i18n/hebrew.min.js +1 -1
  40. package/i18n/hindi.js +1 -1
  41. package/i18n/hindi.min.js +1 -1
  42. package/i18n/hungarian.js +1 -1
  43. package/i18n/hungarian.min.js +1 -1
  44. package/i18n/icelandic.js +1 -1
  45. package/i18n/icelandic.min.js +1 -1
  46. package/i18n/index.js +1 -1
  47. package/i18n/index.min.js +1 -1
  48. package/i18n/indonesian.js +1 -1
  49. package/i18n/indonesian.min.js +1 -1
  50. package/i18n/italian.js +1 -1
  51. package/i18n/italian.min.js +1 -1
  52. package/i18n/japanese.js +1 -1
  53. package/i18n/japanese.min.js +1 -1
  54. package/i18n/kazakh.js +1 -1
  55. package/i18n/kazakh.min.js +1 -1
  56. package/i18n/korean.js +1 -1
  57. package/i18n/korean.min.js +1 -1
  58. package/i18n/latvian.js +1 -1
  59. package/i18n/latvian.min.js +1 -1
  60. package/i18n/lithuanian.js +1 -1
  61. package/i18n/lithuanian.min.js +1 -1
  62. package/i18n/macedonian.js +1 -1
  63. package/i18n/macedonian.min.js +1 -1
  64. package/i18n/malay.js +1 -1
  65. package/i18n/malay.min.js +1 -1
  66. package/i18n/nl-BE.js +1 -1
  67. package/i18n/nl-BE.min.js +1 -1
  68. package/i18n/norwegian.js +1 -1
  69. package/i18n/norwegian.min.js +1 -1
  70. package/i18n/persian.js +1 -1
  71. package/i18n/persian.min.js +1 -1
  72. package/i18n/philippines.js +1 -1
  73. package/i18n/philippines.min.js +1 -1
  74. package/i18n/polish.js +1 -1
  75. package/i18n/polish.min.js +1 -1
  76. package/i18n/portuguese-br.js +1 -1
  77. package/i18n/portuguese-br.min.js +1 -1
  78. package/i18n/portuguese.js +1 -1
  79. package/i18n/portuguese.min.js +1 -1
  80. package/i18n/romanian.js +1 -1
  81. package/i18n/romanian.min.js +1 -1
  82. package/i18n/russian.js +1 -1
  83. package/i18n/russian.min.js +1 -1
  84. package/i18n/serbian.js +1 -1
  85. package/i18n/serbian.min.js +1 -1
  86. package/i18n/simplified-chinese.js +1 -1
  87. package/i18n/simplified-chinese.min.js +1 -1
  88. package/i18n/slovak.js +1 -1
  89. package/i18n/slovak.min.js +1 -1
  90. package/i18n/spanish.js +1 -1
  91. package/i18n/spanish.min.js +1 -1
  92. package/i18n/swahili.js +1 -1
  93. package/i18n/swahili.min.js +1 -1
  94. package/i18n/swedish.js +1 -1
  95. package/i18n/swedish.min.js +1 -1
  96. package/i18n/tajik.js +1 -1
  97. package/i18n/tajik.min.js +1 -1
  98. package/i18n/telugu.js +1 -1
  99. package/i18n/telugu.min.js +1 -1
  100. package/i18n/thai.js +1 -1
  101. package/i18n/thai.min.js +1 -1
  102. package/i18n/traditional-chinese.js +1 -1
  103. package/i18n/traditional-chinese.min.js +1 -1
  104. package/i18n/turkish.js +1 -1
  105. package/i18n/turkish.min.js +1 -1
  106. package/i18n/ukrainian.js +1 -1
  107. package/i18n/ukrainian.min.js +1 -1
  108. package/i18n/urdu.js +1 -1
  109. package/i18n/urdu.min.js +1 -1
  110. package/i18n/vietnamese.js +1 -1
  111. package/i18n/vietnamese.min.js +1 -1
  112. package/i18n/welsh.js +1 -1
  113. package/i18n/welsh.min.js +1 -1
  114. package/modern.css +27 -41
  115. package/modern.css.map +1 -1
  116. package/modern.fontless.css +27 -41
  117. package/modern.fontless.css.map +1 -1
  118. package/modern.fontless.min.css +2 -2
  119. package/modern.min.css +2 -2
  120. package/package.json +1 -1
  121. package/plugins/bootstrap-integration/index.js +1 -1
  122. package/plugins/bootstrap-integration/index.min.js +1 -1
  123. package/plugins/bootstrap-material-integration/index.js +1 -1
  124. package/plugins/bootstrap-material-integration/index.min.js +1 -1
  125. package/survey.core.js +617 -309
  126. package/survey.core.js.map +1 -1
  127. package/survey.core.min.js +3 -3
  128. package/survey.css +1 -1
  129. package/survey.i18n.js +1 -1
  130. package/survey.i18n.min.js +1 -1
  131. package/survey.min.css +1 -1
  132. package/themes/borderless-dark-panelless.js +1 -1
  133. package/themes/borderless-dark-panelless.min.js +1 -1
  134. package/themes/borderless-dark.js +1 -1
  135. package/themes/borderless-dark.min.js +1 -1
  136. package/themes/borderless-light-panelless..js +1 -1
  137. package/themes/borderless-light-panelless..min.js +1 -1
  138. package/themes/borderless-light.js +1 -1
  139. package/themes/borderless-light.min.js +1 -1
  140. package/themes/contrast-dark-panelless.js +1 -1
  141. package/themes/contrast-dark-panelless.min.js +1 -1
  142. package/themes/contrast-dark.js +1 -1
  143. package/themes/contrast-dark.min.js +1 -1
  144. package/themes/contrast-light-panelless.js +1 -1
  145. package/themes/contrast-light-panelless.min.js +1 -1
  146. package/themes/contrast-light.js +1 -1
  147. package/themes/contrast-light.min.js +1 -1
  148. package/themes/default-dark-panelless.js +1 -1
  149. package/themes/default-dark-panelless.min.js +1 -1
  150. package/themes/default-dark.js +1 -1
  151. package/themes/default-dark.min.js +1 -1
  152. package/themes/default-light-panelless.js +1 -1
  153. package/themes/default-light-panelless.min.js +1 -1
  154. package/themes/default-light.js +1 -1
  155. package/themes/default-light.min.js +1 -1
  156. package/themes/doubleborder-dark-panelless.js +1 -1
  157. package/themes/doubleborder-dark-panelless.min.js +1 -1
  158. package/themes/doubleborder-dark.js +1 -1
  159. package/themes/doubleborder-dark.min.js +1 -1
  160. package/themes/doubleborder-light-panelles.js +1 -1
  161. package/themes/doubleborder-light-panelles.min.js +1 -1
  162. package/themes/doubleborder-light.js +1 -1
  163. package/themes/doubleborder-light.min.js +1 -1
  164. package/themes/flat-dark-panelless.js +1 -1
  165. package/themes/flat-dark-panelless.min.js +1 -1
  166. package/themes/flat-dark.js +1 -1
  167. package/themes/flat-dark.min.js +1 -1
  168. package/themes/flat-light-panelless.js +1 -1
  169. package/themes/flat-light-panelless.min.js +1 -1
  170. package/themes/flat-light.js +1 -1
  171. package/themes/flat-light.min.js +1 -1
  172. package/themes/index.js +1 -1
  173. package/themes/index.min.js +1 -1
  174. package/themes/layered-dark-panelless.js +1 -1
  175. package/themes/layered-dark-panelless.min.js +1 -1
  176. package/themes/layered-dark.js +1 -1
  177. package/themes/layered-dark.min.js +1 -1
  178. package/themes/layered-light-panelless.js +1 -1
  179. package/themes/layered-light-panelless.min.js +1 -1
  180. package/themes/layered-light.js +1 -1
  181. package/themes/layered-light.min.js +1 -1
  182. package/themes/plain-dark-panelless.js +1 -1
  183. package/themes/plain-dark-panelless.min.js +1 -1
  184. package/themes/plain-dark.js +1 -1
  185. package/themes/plain-dark.min.js +1 -1
  186. package/themes/plain-light-panelless.js +1 -1
  187. package/themes/plain-light-panelless.min.js +1 -1
  188. package/themes/plain-light.js +1 -1
  189. package/themes/plain-light.min.js +1 -1
  190. package/themes/sharp-dark-panelless.js +1 -1
  191. package/themes/sharp-dark-panelless.min.js +1 -1
  192. package/themes/sharp-dark.js +1 -1
  193. package/themes/sharp-dark.min.js +1 -1
  194. package/themes/sharp-light-panelless.js +1 -1
  195. package/themes/sharp-light-panelless.min.js +1 -1
  196. package/themes/sharp-light.js +1 -1
  197. package/themes/sharp-light.min.js +1 -1
  198. package/themes/solid-dark-panelless.js +1 -1
  199. package/themes/solid-dark-panelless.min.js +1 -1
  200. package/themes/solid-dark.js +1 -1
  201. package/themes/solid-dark.min.js +1 -1
  202. package/themes/solid-light-panelless.js +1 -1
  203. package/themes/solid-light-panelless.min.js +1 -1
  204. package/themes/solid-light.js +1 -1
  205. package/themes/solid-light.min.js +1 -1
  206. package/themes/three-dimensional-dark-panelless.js +1 -1
  207. package/themes/three-dimensional-dark-panelless.min.js +1 -1
  208. package/themes/three-dimensional-dark.js +1 -1
  209. package/themes/three-dimensional-dark.min.js +1 -1
  210. package/themes/three-dimensional-light-panelless.js +1 -1
  211. package/themes/three-dimensional-light-panelless.min.js +1 -1
  212. package/themes/three-dimensional-light.js +1 -1
  213. package/themes/three-dimensional-light.min.js +1 -1
  214. package/ts3.4/typings/packages/survey-core/src/actions/action.d.ts +1 -1
  215. package/ts3.4/typings/packages/survey-core/src/choicesRestful.d.ts +1 -0
  216. package/ts3.4/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +29 -17
  217. package/ts3.4/typings/packages/survey-core/src/header.d.ts +2 -2
  218. package/ts3.4/typings/packages/survey-core/src/helpers.d.ts +1 -0
  219. package/ts3.4/typings/packages/survey-core/src/itemvalue.d.ts +3 -0
  220. package/ts3.4/typings/packages/survey-core/src/jsonobject.d.ts +1 -0
  221. package/ts3.4/typings/packages/survey-core/src/list.d.ts +1 -0
  222. package/ts3.4/typings/packages/survey-core/src/localization/english.d.ts +1 -0
  223. package/ts3.4/typings/packages/survey-core/src/martixBase.d.ts +11 -0
  224. package/ts3.4/typings/packages/survey-core/src/mask/mask_base.d.ts +1 -0
  225. package/ts3.4/typings/packages/survey-core/src/mask/mask_datetime.d.ts +1 -0
  226. package/ts3.4/typings/packages/survey-core/src/panel.d.ts +3 -0
  227. package/ts3.4/typings/packages/survey-core/src/question.d.ts +7 -4
  228. package/ts3.4/typings/packages/survey-core/src/question_baseselect.d.ts +9 -1
  229. package/ts3.4/typings/packages/survey-core/src/question_checkbox.d.ts +3 -1
  230. package/ts3.4/typings/packages/survey-core/src/question_custom.d.ts +1 -1
  231. package/ts3.4/typings/packages/survey-core/src/question_file.d.ts +1 -1
  232. package/ts3.4/typings/packages/survey-core/src/question_matrix.d.ts +1 -1
  233. package/ts3.4/typings/packages/survey-core/src/question_matrixdropdownbase.d.ts +1 -0
  234. package/ts3.4/typings/packages/survey-core/src/question_matrixdropdowncolumn.d.ts +2 -2
  235. package/ts3.4/typings/packages/survey-core/src/question_matrixdynamic.d.ts +1 -1
  236. package/ts3.4/typings/packages/survey-core/src/question_paneldynamic.d.ts +15 -15
  237. package/ts3.4/typings/packages/survey-core/src/question_tagbox.d.ts +3 -0
  238. package/ts3.4/typings/packages/survey-core/src/question_text.d.ts +1 -1
  239. package/ts3.4/typings/packages/survey-core/src/settings.d.ts +1 -1
  240. package/ts3.4/typings/packages/survey-core/src/survey-events-api.d.ts +22 -12
  241. package/ts3.4/typings/packages/survey-core/src/survey.d.ts +12 -36
  242. package/ts3.4/typings/packages/survey-core/src/surveyStrings.d.ts +1 -0
  243. package/ts3.4/typings/packages/survey-core/src/utils/animation.d.ts +1 -0
  244. package/ts3.4/typings/packages/survey-core/src/utils/responsivity-manager.d.ts +1 -2
  245. package/ts3.4/typings/packages/survey-core/src/utils/utils.d.ts +14 -0
  246. package/typings/packages/survey-core/src/actions/action.d.ts +1 -1
  247. package/typings/packages/survey-core/src/choicesRestful.d.ts +1 -0
  248. package/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +29 -17
  249. package/typings/packages/survey-core/src/header.d.ts +2 -2
  250. package/typings/packages/survey-core/src/helpers.d.ts +1 -0
  251. package/typings/packages/survey-core/src/itemvalue.d.ts +3 -0
  252. package/typings/packages/survey-core/src/jsonobject.d.ts +1 -0
  253. package/typings/packages/survey-core/src/list.d.ts +1 -0
  254. package/typings/packages/survey-core/src/localization/english.d.ts +1 -0
  255. package/typings/packages/survey-core/src/martixBase.d.ts +12 -0
  256. package/typings/packages/survey-core/src/mask/mask_base.d.ts +1 -0
  257. package/typings/packages/survey-core/src/mask/mask_datetime.d.ts +1 -0
  258. package/typings/packages/survey-core/src/panel.d.ts +3 -0
  259. package/typings/packages/survey-core/src/question.d.ts +8 -4
  260. package/typings/packages/survey-core/src/question_baseselect.d.ts +10 -1
  261. package/typings/packages/survey-core/src/question_checkbox.d.ts +3 -1
  262. package/typings/packages/survey-core/src/question_custom.d.ts +1 -1
  263. package/typings/packages/survey-core/src/question_file.d.ts +1 -1
  264. package/typings/packages/survey-core/src/question_matrix.d.ts +1 -1
  265. package/typings/packages/survey-core/src/question_matrixdropdownbase.d.ts +1 -0
  266. package/typings/packages/survey-core/src/question_matrixdropdowncolumn.d.ts +2 -2
  267. package/typings/packages/survey-core/src/question_matrixdynamic.d.ts +1 -1
  268. package/typings/packages/survey-core/src/question_paneldynamic.d.ts +15 -15
  269. package/typings/packages/survey-core/src/question_tagbox.d.ts +3 -0
  270. package/typings/packages/survey-core/src/question_text.d.ts +1 -1
  271. package/typings/packages/survey-core/src/settings.d.ts +1 -1
  272. package/typings/packages/survey-core/src/survey-events-api.d.ts +22 -12
  273. package/typings/packages/survey-core/src/survey.d.ts +12 -36
  274. package/typings/packages/survey-core/src/surveyStrings.d.ts +1 -0
  275. package/typings/packages/survey-core/src/utils/animation.d.ts +1 -0
  276. package/typings/packages/survey-core/src/utils/responsivity-manager.d.ts +1 -2
  277. package/typings/packages/survey-core/src/utils/utils.d.ts +14 -0
@@ -71,6 +71,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
71
71
  get hasSingleInput(): boolean;
72
72
  get isContainer(): boolean;
73
73
  getFirstQuestionToFocus(withError: boolean): Question;
74
+ protected getFirstInputElementId(): string;
74
75
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
75
76
  private assignOnPropertyChangedToTemplate;
76
77
  private addOnPropertyChangedCallback;
@@ -362,6 +363,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
362
363
  */
363
364
  get allowAddPanel(): boolean;
364
365
  set allowAddPanel(val: boolean);
366
+ get addButtonId(): string;
365
367
  /**
366
368
  * Specifies the position of newly added panels.
367
369
  *
@@ -526,12 +528,11 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
526
528
  getProgressInfo(): IProgressInfo;
527
529
  private isRowEmpty;
528
530
  /**
529
- * Add a new dynamic panel based on the template Panel. It checks if canAddPanel returns true and then calls addPanel method.
530
- * If a displayMode is different from "list" and the current panel has erros, then
531
- * @see template
531
+ * Adds a new panel based on the [template](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#template).
532
+ *
533
+ * Unlike the [`addPanel()`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#addPanel) method, `addPanelUI()` performs additional actions: checks whether a new panel [can be added](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#canAddPanel), expands and focuses the new panel, and runs animated effects.
532
534
  * @see panelCount
533
535
  * @see panels
534
- * @see canAddPanel
535
536
  */
536
537
  addPanelUI(): PanelModel;
537
538
  private focusNewPanelCallback;
@@ -549,13 +550,11 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
549
550
  private canLeaveCurrentPanel;
550
551
  private copyValue;
551
552
  /**
552
- * Call removePanel function. Do nothing is canRemovePanel returns false. If confirmDelete set to true, it shows the confirmation dialog first.
553
- * @param value a panel or panel index
554
- * @see removePanel
555
- * @see confirmDelete
556
- * @see confirmDeleteText
557
- * @see canRemovePanel
553
+ * Deletes a panel from the [`panels`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#panels) array.
558
554
  *
555
+ * Unlike the [`removePanel()`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#removePanel) method, `removePanelUI()` performs additional actions: checks whether the panel [can be removed](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#canRemovePanel) and displays a confirmation dialog (if the [`confirmDelete`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#confirmDelete) property is enabled).
556
+ * @param value A `PanelModel` instance or zero-based panel index.
557
+ * @see addPanelUI
559
558
  */
560
559
  removePanelUI(value: any): void;
561
560
  isRequireConfirmOnDelete(val: any): boolean;
@@ -568,13 +567,12 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
568
567
  * Switches Dynamic Panel to the previous panel.
569
568
  */
570
569
  goToPrevPanel(): void;
570
+ private removedPanelIndex;
571
571
  /**
572
- * Removes a dynamic panel from the panels array.
573
- * @param value a panel or panel index
574
- * @see panels
575
- * @see template
572
+ * Deletes a panel from the [`panels`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#panels) array.
573
+ * @param value A `PanelModel` instance or zero-based panel index.
574
+ * @see addPanel
576
575
  */
577
- private removedPanelIndex;
578
576
  removePanel(value: any): void;
579
577
  private getVisualPanelIndex;
580
578
  private getPanelVisibleIndexById;
@@ -594,6 +592,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
594
592
  private hasPanelBuildFirstTime;
595
593
  private isBuildingPanelsFirstTime;
596
594
  private buildPanelsFirstTime;
595
+ private get showAddPanelButton();
597
596
  private get wasNotRenderedInSurvey();
598
597
  private get canBuildPanels();
599
598
  onFirstRendering(): void;
@@ -678,4 +677,5 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
678
677
  get showNavigation(): boolean;
679
678
  showSeparator(index: number): boolean;
680
679
  protected calcCssClasses(css: any): any;
680
+ protected onMobileChanged(): void;
681
681
  }
@@ -12,6 +12,7 @@ import { ItemValue } from "./itemvalue";
12
12
  export declare class QuestionTagboxModel extends QuestionCheckboxModel {
13
13
  dropdownListModel: DropdownMultiSelectListModel;
14
14
  private itemDisplayNameMap;
15
+ private deselectAllItemText;
15
16
  constructor(name: string);
16
17
  locStrsChanged(): void;
17
18
  private updateReadOnlyText;
@@ -87,6 +88,8 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
87
88
  protected supportEmptyValidation(): boolean;
88
89
  protected onBlurCore(event: any): void;
89
90
  protected onFocusCore(event: any): void;
91
+ protected allElementsSelected(): boolean;
92
+ updateSelectAllItemText(isAllSelected: boolean): void;
90
93
  dispose(): void;
91
94
  clearValue(keepComment?: boolean): void;
92
95
  get showClearButton(): boolean;
@@ -151,7 +151,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
151
151
  protected valueForSurveyCore(val: any): any;
152
152
  protected valueFromDataCore(val: any): any;
153
153
  private dateValidationMessage;
154
- protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
154
+ protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean, fireCallback: boolean): void;
155
155
  protected canSetValueToSurvey(): boolean;
156
156
  protected convertFuncValuetoQuestionValue(val: any): any;
157
157
  private getMinMaxErrorText;
@@ -419,7 +419,7 @@ export declare var settings: {
419
419
  * Nested properties:
420
420
  *
421
421
  * - `lifetime`: `number`\
422
- * Specifies a time period during which a notification is displayed; measured in milliseconds.
422
+ * Specifies a time period during which a notification is displayed; measured in milliseconds. Default value: 2000.
423
423
  */
424
424
  notifications: {
425
425
  lifetime: number;
@@ -472,23 +472,23 @@ export interface GetResultEvent {
472
472
  /**
473
473
  * An object with the following structure:
474
474
  *
475
- * ```js
476
- * {
477
- * AnswersCount: Number, // A total number of posted answers to the question
478
- * QuestionResult: Object // All unique answers to the question and their number
479
- * }
480
- * ```
475
+ * ```js
476
+ * {
477
+ * AnswersCount: Number, // A total number of posted answers to the question
478
+ * QuestionResult: Object // All unique answers to the question and their number
479
+ * }
480
+ * ```
481
481
  */
482
482
  data: any;
483
483
  /**
484
484
  * An array of objects with the following structure:
485
485
  *
486
- * ```js
487
- * {
488
- * name: String, // A unique answer to the question
489
- * value: Number // The number of user responses with this answer
490
- * }
491
- * ```
486
+ * ```js
487
+ * {
488
+ * name: String, // A unique answer to the question
489
+ * value: Number // The number of user responses with this answer
490
+ * }
491
+ * ```
492
492
  */
493
493
  dataList: Array<any>;
494
494
  }
@@ -1074,3 +1074,13 @@ export interface ElementWrapperComponentNameEvent extends ElementWrapperComponen
1074
1074
  export interface ElementWrapperComponentDataEvent extends ElementWrapperComponentEventMixin {
1075
1075
  data: any;
1076
1076
  }
1077
+ export interface ResizeEvent {
1078
+ /**
1079
+ * The current survey width in pixels.
1080
+ */
1081
+ width: number;
1082
+ /**
1083
+ * The current survey height in pixels.
1084
+ */
1085
+ height: number;
1086
+ }
@@ -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, GetQuestionNoEvent, ProgressTextEvent, TextMarkdownEvent, TextRenderAsEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderHeaderEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixDetailPanelVisibleChangedEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, TimerPanelInfoTextEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, DynamicPanelCurrentIndexChangedEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent, ChoicesSearchEvent, OpenFileChooserEvent, ElementWrapperComponentNameEvent, ElementWrapperComponentDataEvent, OpenDropdownMenuEvent } 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, GetQuestionNoEvent, 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";
22
22
  import { QuestionMatrixDropdownModelBase } from "./question_matrixdropdownbase";
23
23
  import { QuestionMatrixDynamicModel } from "./question_matrixdynamic";
24
24
  import { QuestionFileModel } from "./question_file";
@@ -348,7 +348,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
348
348
  * [View Demo](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/ (linkStyle))
349
349
  */
350
350
  onTextMarkdown: EventBase<SurveyModel, TextMarkdownEvent>;
351
- onTextRenderAs: EventBase<SurveyModel, TextRenderAsEvent>;
351
+ onTextRenderAs: EventBase<SurveyModel, any>;
352
352
  /**
353
353
  * An event that is raised after a request to save survey results on [SurveyJS Service](https://api.surveyjs.io/) has been completed. Use this event to find out if the results have been saved successfully.
354
354
  */
@@ -456,7 +456,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
456
456
  * [View Demo](https://surveyjs.io/form-library/examples/survey-animation/ (linkStyle))
457
457
  */
458
458
  onAfterRenderSurvey: EventBase<SurveyModel, AfterRenderSurveyEvent>;
459
- onAfterRenderHeader: EventBase<SurveyModel, AfterRenderHeaderEvent>;
459
+ onAfterRenderHeader: EventBase<SurveyModel, any>;
460
460
  /**
461
461
  * An event that is raised after a page is rendered to the DOM. Use it to modify page markup.
462
462
  *
@@ -633,7 +633,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
633
633
  * @see startTimer
634
634
  */
635
635
  onTimer: EventBase<SurveyModel, {}>;
636
- onTimerPanelInfoText: EventBase<SurveyModel, TimerPanelInfoTextEvent>;
636
+ onTimerPanelInfoText: EventBase<SurveyModel, any>;
637
637
  /**
638
638
  * An event that is raised after an item value is changed in a panel within a [Dynamic Panel](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/) question.
639
639
  */
@@ -721,8 +721,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
721
721
  * This event can be raised for [Single-](https://surveyjs.io/form-library/documentation/api-reference/dropdown-menu-model) and [Multi-Select Dropdown](https://surveyjs.io/form-library/documentation/api-reference/dropdown-tag-box-model) questions, [Rating Scale](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model) questions [rendered as drop-down menus](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#displayMode), and [Multi-Select Matrix](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list) questions that contain columns of the `"dropdown"` or `"tagbox"` [`cellType`](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list#cellType). Handle this event to change the drop-down menu type for specific questions or device types.
722
722
  */
723
723
  onOpenDropdownMenu: EventBase<SurveyModel, OpenDropdownMenuEvent>;
724
- onElementWrapperComponentName: EventBase<SurveyModel, ElementWrapperComponentNameEvent>;
725
- onElementWrapperComponentData: EventBase<SurveyModel, ElementWrapperComponentDataEvent>;
724
+ onElementWrapperComponentName: EventBase<SurveyModel, any>;
725
+ onElementWrapperComponentData: EventBase<SurveyModel, any>;
726
726
  constructor(jsonObj?: any, renderedElement?: any);
727
727
  processClosedPopup(question: IQuestion, popupModel: PopupModel<any>): void;
728
728
  protected createTryAgainAction(): IAction;
@@ -796,6 +796,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
796
796
  lazyRenderingFirstBatchSizeValue: number;
797
797
  get lazyRenderingFirstBatchSize(): number;
798
798
  set lazyRenderingFirstBatchSize(val: number);
799
+ disableLazyRenderingBeforeElement(el: IElement): void;
799
800
  private updateLazyRenderingRowsOnRemovingElements;
800
801
  /**
801
802
  * A list of triggers in the survey.
@@ -2176,6 +2177,10 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2176
2177
  getRootCss(): string;
2177
2178
  private resizeObserver;
2178
2179
  afterRenderSurvey(htmlElement: any): void;
2180
+ /**
2181
+ * An event that is raised when the survey's width or height is changed.
2182
+ */
2183
+ onResize: EventBase<SurveyModel, ResizeEvent>;
2179
2184
  private processResponsiveness;
2180
2185
  triggerResponsiveness(hard: boolean): void;
2181
2186
  destroyResizeObserver(): void;
@@ -2278,36 +2283,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2278
2283
  * @see downloadFile
2279
2284
  */
2280
2285
  uploadFiles(question: QuestionFileModel | QuestionSignaturePadModel, name: string, files: File[], callback: (data: any | Array<any>, errors?: any | Array<any>) => any): void;
2281
- /**
2282
- * Downloads a file from a server.
2283
- *
2284
- * The following code shows how to call this method:
2285
- *
2286
- * ```js
2287
- * const question = survey.getQuestionByName("myFileQuestion");
2288
- * survey.downloadFile(
2289
- * question,
2290
- * question.name,
2291
- * // Download the first uploaded file
2292
- * question.value[0],
2293
- * (status, data) => {
2294
- * if (status === "success") {
2295
- * // Use `data` to retrieve the file
2296
- * }
2297
- * if (status === "error") {
2298
- * // Handle error
2299
- * }
2300
- * }
2301
- * );
2302
- * ```
2303
- *
2304
- * @param question A [File Upload question instance](https://surveyjs.io/form-library/documentation/api-reference/file-model).
2305
- * @param questionName The File Upload question's [`name`](https://surveyjs.io/form-library/documentation/api-reference/file-model#name).
2306
- * @param fileValue An object from File Upload's [`value`](https://surveyjs.io/form-library/documentation/api-reference/file-model#value) array. This object contains metadata about the file you want to download.
2307
- * @param callback A callback function that allows you to get the download status (`"success"` or `"error"`) and the file identifier (URL, file name, etc.) that you can use to retrieve the file.
2308
- * @see onDownloadFile
2309
- * @see uploadFiles
2310
- */
2311
2286
  downloadFile(question: QuestionFileModel, questionName: string, fileValue: any, callback: (status: string, data: any) => any): void;
2312
2287
  clearFiles(question: QuestionFileModel | QuestionSignaturePadModel, name: string, value: any, fileName: string, callback: (status: string, data: any) => any): void;
2313
2288
  updateChoicesFromServer(question: QuestionSelectBase, choices: Array<ItemValue>, serverResult: any): Array<ItemValue>;
@@ -2736,6 +2711,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
2736
2711
  * A survey width in CSS values.
2737
2712
  *
2738
2713
  * Default value: `undefined` (the survey inherits the width from its container)
2714
+ * @see onResize
2739
2715
  */
2740
2716
  get width(): string;
2741
2717
  set width(val: string);
@@ -37,6 +37,7 @@ export declare var surveyStrings: {
37
37
  refuseItemText: string;
38
38
  dontKnowItemText: string;
39
39
  selectAllItemText: string;
40
+ deselectAllItemText: string;
40
41
  progressText: string;
41
42
  indexText: string;
42
43
  panelDynamicProgressText: string;
@@ -62,6 +62,7 @@ export declare abstract class AnimationProperty<T, S extends IAnimationConsumer<
62
62
  sync(newValue: T): void;
63
63
  private cancelCallback;
64
64
  cancel(): void;
65
+ cancelAnimations(): void;
65
66
  }
66
67
  export declare class AnimationBoolean extends AnimationProperty<boolean> {
67
68
  protected animation: AnimationPropertyUtils;
@@ -9,7 +9,7 @@ export declare class ResponsivityManager {
9
9
  private model;
10
10
  private itemsSelector;
11
11
  private dotsItemSize;
12
- private delayedUpdateFunction?;
12
+ private delayedUpdateFunction;
13
13
  private resizeObserver;
14
14
  private isInitialized;
15
15
  protected minDimensionConst: number;
@@ -24,7 +24,6 @@ export declare class ResponsivityManager {
24
24
  protected getAvailableSpace(): number;
25
25
  protected calcItemSize(item: HTMLDivElement): number;
26
26
  private calcMinDimension;
27
- private getRenderedVisibleActionsCount;
28
27
  private calcItemsSizes;
29
28
  protected calcActionDimensions(currentAction: Action, item: HTMLDivElement): void;
30
29
  private get isContainerVisible();
@@ -54,5 +54,19 @@ export declare function compareArrays<T>(oldValue: Array<T>, newValue: Array<T>,
54
54
  }>;
55
55
  mergedItems: Array<T>;
56
56
  };
57
+ interface IVerticalDimensions {
58
+ paddingTop: string;
59
+ paddingBottom: string;
60
+ marginTop: string;
61
+ marginBottom: string;
62
+ heightTo: string;
63
+ borderTopWidth: string;
64
+ borderBottomWidth: string;
65
+ heightFrom: string;
66
+ }
67
+ export declare function getVerticalDimensions(el: HTMLElement): IVerticalDimensions;
68
+ export declare function setPropertiesOnElementForAnimation(el: HTMLElement, styles: any, prefix?: string): void;
69
+ export declare function prepareElementForVerticalAnimation(el: HTMLElement): void;
70
+ export declare function cleanHtmlElementAfterAnimation(el: HTMLElement): void;
57
71
  export declare function roundTo2Decimals(number: number): number;
58
72
  export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles };