survey-core 1.12.16-patch.1 → 1.12.17
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.
- package/defaultV2.css +1 -1
- package/defaultV2.fontless.css +1 -1
- package/defaultV2.fontless.min.css +1 -1
- package/defaultV2.min.css +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/basque.js +1 -1
- package/i18n/basque.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/catalan.js +1 -1
- package/i18n/catalan.min.js +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/estonian.js +1 -1
- package/i18n/estonian.min.js +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/georgian.js +1 -1
- package/i18n/georgian.min.js +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hindi.js +1 -1
- package/i18n/hindi.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/icelandic.js +1 -1
- package/i18n/icelandic.min.js +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/kazakh.js +1 -1
- package/i18n/kazakh.min.js +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/latvian.js +1 -1
- package/i18n/latvian.min.js +1 -1
- package/i18n/lithuanian.js +1 -1
- package/i18n/lithuanian.min.js +1 -1
- package/i18n/macedonian.js +1 -1
- package/i18n/macedonian.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/nl-BE.js +1 -1
- package/i18n/nl-BE.min.js +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/philippines.js +1 -1
- package/i18n/philippines.min.js +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +1 -1
- package/i18n/portuguese-br.js +1 -1
- package/i18n/portuguese-br.min.js +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +1 -1
- package/i18n/serbian.js +1 -1
- package/i18n/serbian.min.js +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +1 -1
- package/i18n/swahili.js +1 -1
- package/i18n/swahili.min.js +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/telugu.js +1 -1
- package/i18n/telugu.min.js +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +1 -1
- package/i18n/ukrainian.js +1 -1
- package/i18n/ukrainian.min.js +1 -1
- package/i18n/urdu.js +1 -1
- package/i18n/urdu.min.js +1 -1
- package/i18n/vietnamese.js +1 -1
- package/i18n/vietnamese.min.js +1 -1
- package/i18n/welsh.js +1 -1
- package/i18n/welsh.min.js +1 -1
- package/icons/iconsV1.js +1 -1
- package/icons/iconsV1.min.js +1 -1
- package/icons/iconsV2.js +1 -1
- package/icons/iconsV2.min.js +1 -1
- package/modern.css +1 -1
- package/modern.fontless.css +1 -1
- package/modern.fontless.min.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/plugins/bootstrap-integration/index.js +1 -1
- package/plugins/bootstrap-integration/index.min.js +1 -1
- package/plugins/bootstrap-material-integration/index.js +1 -1
- package/plugins/bootstrap-material-integration/index.min.js +1 -1
- package/survey.core.js +236 -99
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +1 -1
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/packages/survey-core/src/base-interfaces.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/panel.d.ts +3 -2
- package/ts3.4/typings/packages/survey-core/src/question.d.ts +4 -1
- package/ts3.4/typings/packages/survey-core/src/question_imagepicker.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/survey-element.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/survey-events-api.d.ts +38 -10
- package/ts3.4/typings/packages/survey-core/src/survey.d.ts +47 -25
- package/ts3.4/typings/packages/survey-core/src/utils/utils.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/validator.d.ts +1 -1
- package/typings/packages/survey-core/src/base-interfaces.d.ts +1 -0
- package/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +1 -0
- package/typings/packages/survey-core/src/panel.d.ts +3 -2
- package/typings/packages/survey-core/src/question.d.ts +4 -1
- package/typings/packages/survey-core/src/question_imagepicker.d.ts +1 -0
- package/typings/packages/survey-core/src/survey-element.d.ts +1 -0
- package/typings/packages/survey-core/src/survey-events-api.d.ts +38 -10
- package/typings/packages/survey-core/src/survey.d.ts +47 -25
- package/typings/packages/survey-core/src/utils/utils.d.ts +1 -1
- package/typings/packages/survey-core/src/validator.d.ts +1 -1
|
@@ -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
|
-
|
|
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
|
|
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
|
-
*
|
|
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
|
-
|
|
938
|
+
result: boolean;
|
|
927
939
|
/**
|
|
928
|
-
*
|
|
940
|
+
* Obsolete. Use `options.correctAnswerCount` instead.
|
|
929
941
|
*/
|
|
930
|
-
|
|
942
|
+
correctAnswers?: number;
|
|
931
943
|
/**
|
|
932
|
-
*
|
|
944
|
+
* Obsolete. Use `options.incorrectAnswerCount` instead.
|
|
933
945
|
*/
|
|
934
|
-
|
|
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
|
-
*
|
|
1007
|
+
* Obsolete. Use `options.allow` instead.
|
|
986
1008
|
*/
|
|
987
|
-
cancel
|
|
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,
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
*/
|
|
@@ -791,7 +813,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
791
813
|
containerCss: string;
|
|
792
814
|
fitToContainer: boolean;
|
|
793
815
|
/**
|
|
794
|
-
*
|
|
816
|
+
* Obsolete. Use the [`headerView`](https://surveyjs.io/form-library/documentation/api-reference/itheme#headerView) property within a theme instead.
|
|
817
|
+
* @deprecated
|
|
795
818
|
*/
|
|
796
819
|
headerView: "advanced" | "basic";
|
|
797
820
|
protected insertAdvancedHeader(advHeader: Cover): void;
|
|
@@ -1485,6 +1508,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1485
1508
|
get locQuestionTitleTemplate(): LocalizableString;
|
|
1486
1509
|
getUpdatedQuestionTitle(question: Question, title: string): string;
|
|
1487
1510
|
getUpdatedQuestionNo(question: Question, no: string): string;
|
|
1511
|
+
getUpdatedPanelNo(panel: PanelModel, no: string): string;
|
|
1488
1512
|
getUpdatedPageNo(page: PageModel, no: string): string;
|
|
1489
1513
|
/**
|
|
1490
1514
|
* Specifies whether page titles contain page numbers.
|
|
@@ -1931,7 +1955,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1931
1955
|
*/
|
|
1932
1956
|
deleteCookie(): void;
|
|
1933
1957
|
/**
|
|
1934
|
-
*
|
|
1958
|
+
* Obsolete. Use the [`validationEnabled`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#validationEnabled) property instead.
|
|
1959
|
+
* @deprecated
|
|
1935
1960
|
*/
|
|
1936
1961
|
get ignoreValidation(): boolean;
|
|
1937
1962
|
set ignoreValidation(val: boolean);
|
|
@@ -2040,6 +2065,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2040
2065
|
* @see isCurrentPageValid
|
|
2041
2066
|
* @see nextPage
|
|
2042
2067
|
*/
|
|
2068
|
+
tryComplete(): boolean;
|
|
2069
|
+
/**
|
|
2070
|
+
* Obsolete. Use the [`tryComplete`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#tryComplete) method instead.
|
|
2071
|
+
* @deprecated
|
|
2072
|
+
*/
|
|
2043
2073
|
completeLastPage(): boolean;
|
|
2044
2074
|
private isNavigationButtonPressed;
|
|
2045
2075
|
navigationMouseDown(): boolean;
|
|
@@ -2213,7 +2243,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2213
2243
|
get processedLoadingHtml(): string;
|
|
2214
2244
|
getProgressInfo(): IProgressInfo;
|
|
2215
2245
|
/**
|
|
2216
|
-
* Returns text displayed by the progress bar (for instance, "Page 2 of 3" or "Answered 3/8 questions"). Handle the [`
|
|
2246
|
+
* 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
2247
|
* @see progressValue
|
|
2218
2248
|
* @see showProgressBar
|
|
2219
2249
|
* @see progressBarType
|
|
@@ -2294,6 +2324,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2294
2324
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
|
2295
2325
|
getUpdatedPanelFooterActions(panel: PanelModel, actions: Array<IAction>, question?: QuestionPanelDynamicModel): Array<IAction>;
|
|
2296
2326
|
getUpdatedElementTitleActions(element: ISurveyElement, titleActions: Array<IAction>): Array<IAction>;
|
|
2327
|
+
private getTitleActionsResult;
|
|
2297
2328
|
private getUpdatedQuestionTitleActions;
|
|
2298
2329
|
private getUpdatedPanelTitleActions;
|
|
2299
2330
|
private getUpdatedPageTitleActions;
|
|
@@ -2409,13 +2440,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2409
2440
|
*/
|
|
2410
2441
|
getQuestionsByValueName(valueName: string, caseInsensitive?: boolean): Array<Question>;
|
|
2411
2442
|
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
2443
|
getQuestionsByNames(names: string[], caseInsensitive?: boolean): IQuestion[];
|
|
2420
2444
|
/**
|
|
2421
2445
|
* Returns a page to which a specified survey element (question or panel) belongs.
|
|
@@ -2432,10 +2456,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2432
2456
|
* @param name A page [name](https://surveyjs.io/form-library/documentation/api-reference/page-model#name).
|
|
2433
2457
|
*/
|
|
2434
2458
|
getPageByName(name: string): PageModel;
|
|
2435
|
-
/**
|
|
2436
|
-
* Returns an array of pages with specified names.
|
|
2437
|
-
* @param names An array of page names.
|
|
2438
|
-
*/
|
|
2439
2459
|
getPagesByNames(names: string[]): PageModel[];
|
|
2440
2460
|
/**
|
|
2441
2461
|
* Returns a list of all [questions](https://surveyjs.io/form-library/documentation/api-reference/question) in the survey.
|
|
@@ -2687,7 +2707,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2687
2707
|
* 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
2708
|
* @returns The number of correct answers in a quiz.
|
|
2689
2709
|
* @see getQuizQuestionCount
|
|
2690
|
-
* @see
|
|
2710
|
+
* @see getIncorrectAnswerCount
|
|
2691
2711
|
*/
|
|
2692
2712
|
getCorrectAnswerCount(): number;
|
|
2693
2713
|
/**
|
|
@@ -2701,6 +2721,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2701
2721
|
*/
|
|
2702
2722
|
getQuizQuestionCount(): number;
|
|
2703
2723
|
getInCorrectedAnswerCount(): number;
|
|
2724
|
+
getInCorrectAnswerCount(): number;
|
|
2704
2725
|
/**
|
|
2705
2726
|
* Returns the number of incorrect answers in a quiz.
|
|
2706
2727
|
*
|
|
@@ -2708,7 +2729,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2708
2729
|
* @returns The number of incorrect answers in a quiz.
|
|
2709
2730
|
* @see getCorrectAnswerCount
|
|
2710
2731
|
*/
|
|
2711
|
-
|
|
2732
|
+
getIncorrectAnswerCount(): number;
|
|
2712
2733
|
onCorrectQuestionAnswer(question: IQuestion, options: any): void;
|
|
2713
2734
|
private getCorrectedAnswerCountCore;
|
|
2714
2735
|
getCorrectedAnswers(): number;
|
|
@@ -2771,6 +2792,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2771
2792
|
get showTimerPanelMode(): string;
|
|
2772
2793
|
set showTimerPanelMode(val: string);
|
|
2773
2794
|
gridLayoutEnabled: boolean;
|
|
2795
|
+
updateGridColumns(): void;
|
|
2774
2796
|
/**
|
|
2775
2797
|
* Specifies how to calculate the survey width.
|
|
2776
2798
|
*
|
|
@@ -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
|
|
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 };
|
|
@@ -193,7 +193,7 @@ export declare class ExpressionValidator extends SurveyValidator {
|
|
|
193
193
|
validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
|
|
194
194
|
protected generateError(res: boolean, value: any, name: string): ValidatorResult;
|
|
195
195
|
protected getDefaultErrorText(name: string): string;
|
|
196
|
-
|
|
196
|
+
private ensureConditionRunner;
|
|
197
197
|
/**
|
|
198
198
|
* A Boolean [expression](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions). If it evaluates to `false`, validation fails.
|
|
199
199
|
*
|