survey-core 1.12.16 → 1.12.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/defaultV2.css +2 -2
- package/defaultV2.fontless.css +2 -2
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +2 -2
- package/i18n/arabic.min.js +2 -2
- package/i18n/basque.js +2 -2
- package/i18n/basque.min.js +2 -2
- package/i18n/bulgarian.js +2 -2
- package/i18n/bulgarian.min.js +2 -2
- package/i18n/burmese.js +218 -0
- package/i18n/burmese.js.map +1 -0
- package/i18n/burmese.min.js +6 -0
- package/i18n/catalan.js +2 -2
- package/i18n/catalan.min.js +3 -3
- package/i18n/croatian.js +2 -2
- package/i18n/croatian.min.js +3 -3
- package/i18n/czech.js +2 -2
- package/i18n/czech.min.js +3 -3
- package/i18n/danish.js +2 -2
- package/i18n/danish.min.js +3 -3
- package/i18n/dutch.js +2 -2
- package/i18n/dutch.min.js +2 -2
- package/i18n/english.js +2 -2
- package/i18n/english.min.js +3 -3
- package/i18n/estonian.js +2 -2
- package/i18n/estonian.min.js +3 -3
- package/i18n/finnish.js +2 -2
- package/i18n/finnish.min.js +3 -3
- package/i18n/french.js +2 -2
- package/i18n/french.min.js +3 -3
- package/i18n/georgian.js +2 -2
- package/i18n/georgian.min.js +3 -3
- package/i18n/german.js +2 -2
- package/i18n/german.min.js +3 -3
- package/i18n/greek.js +2 -2
- package/i18n/greek.min.js +3 -3
- package/i18n/hebrew.js +2 -2
- package/i18n/hebrew.min.js +3 -3
- package/i18n/hindi.js +2 -2
- package/i18n/hindi.min.js +3 -3
- package/i18n/hungarian.js +2 -2
- package/i18n/hungarian.min.js +3 -3
- package/i18n/icelandic.js +2 -2
- package/i18n/icelandic.min.js +3 -3
- package/i18n/index.js +107 -2
- package/i18n/index.js.map +1 -1
- package/i18n/index.min.js +3 -3
- package/i18n/indonesian.js +2 -2
- package/i18n/indonesian.min.js +3 -3
- package/i18n/italian.js +2 -2
- package/i18n/italian.min.js +3 -3
- package/i18n/japanese.js +2 -2
- package/i18n/japanese.min.js +3 -3
- package/i18n/kazakh.js +2 -2
- package/i18n/kazakh.min.js +3 -3
- package/i18n/korean.js +2 -2
- package/i18n/korean.min.js +3 -3
- package/i18n/latvian.js +2 -2
- package/i18n/latvian.min.js +3 -3
- package/i18n/lithuanian.js +2 -2
- package/i18n/lithuanian.min.js +3 -3
- package/i18n/macedonian.js +2 -2
- package/i18n/macedonian.min.js +3 -3
- package/i18n/malay.js +2 -2
- package/i18n/malay.min.js +3 -3
- package/i18n/nl-BE.js +2 -2
- package/i18n/nl-BE.min.js +3 -3
- package/i18n/norwegian.js +2 -2
- package/i18n/norwegian.min.js +3 -3
- package/i18n/persian.js +2 -2
- package/i18n/persian.min.js +3 -3
- package/i18n/philippines.js +2 -2
- package/i18n/philippines.min.js +3 -3
- package/i18n/polish.js +2 -2
- package/i18n/polish.min.js +3 -3
- package/i18n/portuguese-br.js +2 -2
- package/i18n/portuguese-br.min.js +3 -3
- package/i18n/portuguese.js +2 -2
- package/i18n/portuguese.min.js +3 -3
- package/i18n/romanian.js +2 -2
- package/i18n/romanian.min.js +3 -3
- package/i18n/russian.js +2 -2
- package/i18n/russian.min.js +3 -3
- package/i18n/serbian.js +2 -2
- package/i18n/serbian.min.js +3 -3
- package/i18n/simplified-chinese.js +2 -2
- package/i18n/simplified-chinese.min.js +3 -3
- package/i18n/slovak.js +2 -2
- package/i18n/slovak.min.js +3 -3
- package/i18n/spanish.js +2 -2
- package/i18n/spanish.min.js +3 -3
- package/i18n/swahili.js +2 -2
- package/i18n/swahili.min.js +3 -3
- package/i18n/swedish.js +2 -2
- package/i18n/swedish.min.js +3 -3
- package/i18n/tajik.js +2 -2
- package/i18n/tajik.min.js +3 -3
- package/i18n/telugu.js +2 -2
- package/i18n/telugu.min.js +3 -3
- package/i18n/thai.js +2 -2
- package/i18n/thai.min.js +3 -3
- package/i18n/traditional-chinese.js +2 -2
- package/i18n/traditional-chinese.min.js +3 -3
- package/i18n/turkish.js +2 -2
- package/i18n/turkish.min.js +3 -3
- package/i18n/ukrainian.js +2 -2
- package/i18n/ukrainian.min.js +3 -3
- package/i18n/urdu.js +2 -2
- package/i18n/urdu.min.js +3 -3
- package/i18n/vietnamese.js +2 -2
- package/i18n/vietnamese.min.js +3 -3
- package/i18n/welsh.js +2 -2
- package/i18n/welsh.min.js +3 -3
- package/icons/iconsV1.js +2 -2
- package/icons/iconsV1.min.js +2 -2
- package/icons/iconsV2.js +2 -2
- package/icons/iconsV2.min.js +2 -2
- package/modern.css +2 -2
- package/modern.fontless.css +2 -2
- package/modern.fontless.min.css +2 -2
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/plugins/bootstrap-integration/index.js +2 -2
- package/plugins/bootstrap-integration/index.min.js +2 -2
- package/plugins/bootstrap-material-integration/index.js +2 -2
- package/plugins/bootstrap-material-integration/index.min.js +2 -2
- package/survey.core.js +206 -87
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +4 -4
- package/survey.css +2 -2
- package/survey.i18n.js +107 -2
- package/survey.i18n.js.map +1 -1
- package/survey.i18n.min.js +3 -3
- package/survey.min.css +2 -2
- package/themes/borderless-dark-panelless.js +2 -2
- package/themes/borderless-dark-panelless.min.js +2 -2
- package/themes/borderless-dark.js +2 -2
- package/themes/borderless-dark.min.js +2 -2
- package/themes/borderless-light-panelless..js +2 -2
- package/themes/borderless-light-panelless..min.js +2 -2
- package/themes/borderless-light.js +2 -2
- package/themes/borderless-light.min.js +2 -2
- package/themes/contrast-dark-panelless.js +2 -2
- package/themes/contrast-dark-panelless.min.js +2 -2
- package/themes/contrast-dark.js +2 -2
- package/themes/contrast-dark.min.js +2 -2
- package/themes/contrast-light-panelless.js +2 -2
- package/themes/contrast-light-panelless.min.js +2 -2
- package/themes/contrast-light.js +2 -2
- package/themes/contrast-light.min.js +2 -2
- package/themes/default-dark-panelless.js +2 -2
- package/themes/default-dark-panelless.min.js +2 -2
- package/themes/default-dark.js +2 -2
- package/themes/default-dark.min.js +2 -2
- package/themes/default-light-panelless.js +2 -2
- package/themes/default-light-panelless.min.js +2 -2
- package/themes/default-light.js +2 -2
- package/themes/default-light.min.js +2 -2
- package/themes/doubleborder-dark-panelless.js +2 -2
- package/themes/doubleborder-dark-panelless.min.js +2 -2
- package/themes/doubleborder-dark.js +2 -2
- package/themes/doubleborder-dark.min.js +2 -2
- package/themes/doubleborder-light-panelles.js +2 -2
- package/themes/doubleborder-light-panelles.min.js +2 -2
- package/themes/doubleborder-light.js +2 -2
- package/themes/doubleborder-light.min.js +2 -2
- package/themes/flat-dark-panelless.js +2 -2
- package/themes/flat-dark-panelless.min.js +2 -2
- package/themes/flat-dark.js +2 -2
- package/themes/flat-dark.min.js +2 -2
- package/themes/flat-light-panelless.js +2 -2
- package/themes/flat-light-panelless.min.js +2 -2
- package/themes/flat-light.js +2 -2
- package/themes/flat-light.min.js +2 -2
- package/themes/index.js +2 -2
- package/themes/index.min.js +2 -2
- package/themes/layered-dark-panelless.js +2 -2
- package/themes/layered-dark-panelless.min.js +2 -2
- package/themes/layered-dark.js +2 -2
- package/themes/layered-dark.min.js +2 -2
- package/themes/layered-light-panelless.js +2 -2
- package/themes/layered-light-panelless.min.js +2 -2
- package/themes/layered-light.js +2 -2
- package/themes/layered-light.min.js +2 -2
- package/themes/plain-dark-panelless.js +2 -2
- package/themes/plain-dark-panelless.min.js +2 -2
- package/themes/plain-dark.js +2 -2
- package/themes/plain-dark.min.js +2 -2
- package/themes/plain-light-panelless.js +2 -2
- package/themes/plain-light-panelless.min.js +2 -2
- package/themes/plain-light.js +2 -2
- package/themes/plain-light.min.js +2 -2
- package/themes/sharp-dark-panelless.js +2 -2
- package/themes/sharp-dark-panelless.min.js +2 -2
- package/themes/sharp-dark.js +2 -2
- package/themes/sharp-dark.min.js +2 -2
- package/themes/sharp-light-panelless.js +2 -2
- package/themes/sharp-light-panelless.min.js +2 -2
- package/themes/sharp-light.js +2 -2
- package/themes/sharp-light.min.js +2 -2
- package/themes/solid-dark-panelless.js +2 -2
- package/themes/solid-dark-panelless.min.js +2 -2
- package/themes/solid-dark.js +2 -2
- package/themes/solid-dark.min.js +2 -2
- package/themes/solid-light-panelless.js +2 -2
- package/themes/solid-light-panelless.min.js +2 -2
- package/themes/solid-light.js +2 -2
- package/themes/solid-light.min.js +2 -2
- package/themes/three-dimensional-dark-panelless.js +2 -2
- package/themes/three-dimensional-dark-panelless.min.js +2 -2
- package/themes/three-dimensional-dark.js +2 -2
- package/themes/three-dimensional-dark.min.js +2 -2
- package/themes/three-dimensional-light-panelless.js +2 -2
- package/themes/three-dimensional-light-panelless.min.js +2 -2
- package/themes/three-dimensional-light.js +2 -2
- package/themes/three-dimensional-light.min.js +2 -2
- 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 +1 -1
- package/ts3.4/typings/packages/survey-core/src/question_imagepicker.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/question_matrixdropdownrendered.d.ts +2 -2
- package/ts3.4/typings/packages/survey-core/src/settings.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 +48 -25
- package/ts3.4/typings/packages/survey-core/src/utils/utils.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 +1 -1
- package/typings/packages/survey-core/src/question_imagepicker.d.ts +1 -0
- package/typings/packages/survey-core/src/question_matrixdropdownrendered.d.ts +2 -2
- package/typings/packages/survey-core/src/settings.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 +49 -25
- package/typings/packages/survey-core/src/utils/utils.d.ts +1 -1
|
@@ -35,7 +35,7 @@ export declare class QuestionMatrixDropdownRenderedCell {
|
|
|
35
35
|
get hasQuestion(): boolean;
|
|
36
36
|
get hasTitle(): boolean;
|
|
37
37
|
get hasPanel(): boolean;
|
|
38
|
-
get id():
|
|
38
|
+
get id(): string;
|
|
39
39
|
get item(): ItemValue;
|
|
40
40
|
set item(val: ItemValue);
|
|
41
41
|
get isChoice(): boolean;
|
|
@@ -70,7 +70,7 @@ export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
|
|
70
70
|
private idValue;
|
|
71
71
|
cells: Array<QuestionMatrixDropdownRenderedCell>;
|
|
72
72
|
constructor(cssClasses: any, isDetailRow?: boolean);
|
|
73
|
-
get id():
|
|
73
|
+
get id(): string;
|
|
74
74
|
get attributes(): {
|
|
75
75
|
"data-sv-drop-target-matrix-row"?: undefined;
|
|
76
76
|
} | {
|
|
@@ -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
|
*/
|
|
@@ -743,6 +765,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
743
765
|
onElementWrapperComponentName: EventBase<SurveyModel, any>;
|
|
744
766
|
onElementWrapperComponentData: EventBase<SurveyModel, any>;
|
|
745
767
|
constructor(jsonObj?: any, renderedElement?: any);
|
|
768
|
+
get sjsVersion(): string;
|
|
769
|
+
set sjsVersion(val: string);
|
|
746
770
|
processClosedPopup(question: IQuestion, popupModel: PopupModel<any>): void;
|
|
747
771
|
protected createTryAgainAction(): IAction;
|
|
748
772
|
private createHtmlLocString;
|
|
@@ -791,7 +815,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
791
815
|
containerCss: string;
|
|
792
816
|
fitToContainer: boolean;
|
|
793
817
|
/**
|
|
794
|
-
*
|
|
818
|
+
* Obsolete. Use the [`headerView`](https://surveyjs.io/form-library/documentation/api-reference/itheme#headerView) property within a theme instead.
|
|
819
|
+
* @deprecated
|
|
795
820
|
*/
|
|
796
821
|
headerView: "advanced" | "basic";
|
|
797
822
|
protected insertAdvancedHeader(advHeader: Cover): void;
|
|
@@ -1485,6 +1510,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1485
1510
|
get locQuestionTitleTemplate(): LocalizableString;
|
|
1486
1511
|
getUpdatedQuestionTitle(question: Question, title: string): string;
|
|
1487
1512
|
getUpdatedQuestionNo(question: Question, no: string): string;
|
|
1513
|
+
getUpdatedPanelNo(panel: PanelModel, no: string): string;
|
|
1488
1514
|
getUpdatedPageNo(page: PageModel, no: string): string;
|
|
1489
1515
|
/**
|
|
1490
1516
|
* Specifies whether page titles contain page numbers.
|
|
@@ -1931,7 +1957,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1931
1957
|
*/
|
|
1932
1958
|
deleteCookie(): void;
|
|
1933
1959
|
/**
|
|
1934
|
-
*
|
|
1960
|
+
* Obsolete. Use the [`validationEnabled`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#validationEnabled) property instead.
|
|
1961
|
+
* @deprecated
|
|
1935
1962
|
*/
|
|
1936
1963
|
get ignoreValidation(): boolean;
|
|
1937
1964
|
set ignoreValidation(val: boolean);
|
|
@@ -2040,6 +2067,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2040
2067
|
* @see isCurrentPageValid
|
|
2041
2068
|
* @see nextPage
|
|
2042
2069
|
*/
|
|
2070
|
+
tryComplete(): boolean;
|
|
2071
|
+
/**
|
|
2072
|
+
* Obsolete. Use the [`tryComplete`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#tryComplete) method instead.
|
|
2073
|
+
* @deprecated
|
|
2074
|
+
*/
|
|
2043
2075
|
completeLastPage(): boolean;
|
|
2044
2076
|
private isNavigationButtonPressed;
|
|
2045
2077
|
navigationMouseDown(): boolean;
|
|
@@ -2213,7 +2245,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2213
2245
|
get processedLoadingHtml(): string;
|
|
2214
2246
|
getProgressInfo(): IProgressInfo;
|
|
2215
2247
|
/**
|
|
2216
|
-
* Returns text displayed by the progress bar (for instance, "Page 2 of 3" or "Answered 3/8 questions"). Handle the [`
|
|
2248
|
+
* Returns text displayed by the progress bar (for instance, "Page 2 of 3" or "Answered 3/8 questions"). Handle the [`onGetProgressText`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetProgressText) event to change this text.
|
|
2217
2249
|
* @see progressValue
|
|
2218
2250
|
* @see showProgressBar
|
|
2219
2251
|
* @see progressBarType
|
|
@@ -2294,6 +2326,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2294
2326
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
|
2295
2327
|
getUpdatedPanelFooterActions(panel: PanelModel, actions: Array<IAction>, question?: QuestionPanelDynamicModel): Array<IAction>;
|
|
2296
2328
|
getUpdatedElementTitleActions(element: ISurveyElement, titleActions: Array<IAction>): Array<IAction>;
|
|
2329
|
+
private getTitleActionsResult;
|
|
2297
2330
|
private getUpdatedQuestionTitleActions;
|
|
2298
2331
|
private getUpdatedPanelTitleActions;
|
|
2299
2332
|
private getUpdatedPageTitleActions;
|
|
@@ -2409,13 +2442,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2409
2442
|
*/
|
|
2410
2443
|
getQuestionsByValueName(valueName: string, caseInsensitive?: boolean): Array<Question>;
|
|
2411
2444
|
getCalculatedValueByName(name: string): CalculatedValue;
|
|
2412
|
-
/**
|
|
2413
|
-
* Returns an array of questions with specified [names](https://surveyjs.io/form-library/documentation/api-reference/question#name).
|
|
2414
|
-
* @param names An array of question names.
|
|
2415
|
-
* @param caseInsensitive *(Optional)* A Boolean value that specifies case sensitivity when searching for the questions. Default value: `false` (uppercase and lowercase letters are treated as distinct).
|
|
2416
|
-
* @returns An array of questions with specified names
|
|
2417
|
-
* @see getAllQuestions
|
|
2418
|
-
*/
|
|
2419
2445
|
getQuestionsByNames(names: string[], caseInsensitive?: boolean): IQuestion[];
|
|
2420
2446
|
/**
|
|
2421
2447
|
* Returns a page to which a specified survey element (question or panel) belongs.
|
|
@@ -2432,10 +2458,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2432
2458
|
* @param name A page [name](https://surveyjs.io/form-library/documentation/api-reference/page-model#name).
|
|
2433
2459
|
*/
|
|
2434
2460
|
getPageByName(name: string): PageModel;
|
|
2435
|
-
/**
|
|
2436
|
-
* Returns an array of pages with specified names.
|
|
2437
|
-
* @param names An array of page names.
|
|
2438
|
-
*/
|
|
2439
2461
|
getPagesByNames(names: string[]): PageModel[];
|
|
2440
2462
|
/**
|
|
2441
2463
|
* Returns a list of all [questions](https://surveyjs.io/form-library/documentation/api-reference/question) in the survey.
|
|
@@ -2687,7 +2709,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2687
2709
|
* For more information about quizzes, refer to the following tutorial: [Create a Quiz](https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz).
|
|
2688
2710
|
* @returns The number of correct answers in a quiz.
|
|
2689
2711
|
* @see getQuizQuestionCount
|
|
2690
|
-
* @see
|
|
2712
|
+
* @see getIncorrectAnswerCount
|
|
2691
2713
|
*/
|
|
2692
2714
|
getCorrectAnswerCount(): number;
|
|
2693
2715
|
/**
|
|
@@ -2701,6 +2723,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2701
2723
|
*/
|
|
2702
2724
|
getQuizQuestionCount(): number;
|
|
2703
2725
|
getInCorrectedAnswerCount(): number;
|
|
2726
|
+
getInCorrectAnswerCount(): number;
|
|
2704
2727
|
/**
|
|
2705
2728
|
* Returns the number of incorrect answers in a quiz.
|
|
2706
2729
|
*
|
|
@@ -2708,7 +2731,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2708
2731
|
* @returns The number of incorrect answers in a quiz.
|
|
2709
2732
|
* @see getCorrectAnswerCount
|
|
2710
2733
|
*/
|
|
2711
|
-
|
|
2734
|
+
getIncorrectAnswerCount(): number;
|
|
2712
2735
|
onCorrectQuestionAnswer(question: IQuestion, options: any): void;
|
|
2713
2736
|
private getCorrectedAnswerCountCore;
|
|
2714
2737
|
getCorrectedAnswers(): number;
|
|
@@ -2771,6 +2794,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2771
2794
|
get showTimerPanelMode(): string;
|
|
2772
2795
|
set showTimerPanelMode(val: string);
|
|
2773
2796
|
gridLayoutEnabled: boolean;
|
|
2797
|
+
updateGridColumns(): void;
|
|
2774
2798
|
/**
|
|
2775
2799
|
* Specifies how to calculate the survey width.
|
|
2776
2800
|
*
|
|
@@ -82,5 +82,5 @@ export declare function getVerticalDimensions(el: HTMLElement): IVerticalDimensi
|
|
|
82
82
|
export declare function setPropertiesOnElementForAnimation(el: HTMLElement, styles: any, prefix?: string): void;
|
|
83
83
|
export declare function prepareElementForVerticalAnimation(el: HTMLElement): void;
|
|
84
84
|
export declare function cleanHtmlElementAfterAnimation(el: HTMLElement): void;
|
|
85
|
-
export declare function
|
|
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 };
|