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
package/themes/solid-light.js
CHANGED
|
@@ -103,6 +103,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
|
103
103
|
questionTitlePattern: string;
|
|
104
104
|
getUpdatedQuestionTitle(question: IQuestion, title: string): string;
|
|
105
105
|
getUpdatedQuestionNo(question: IQuestion, no: string): string;
|
|
106
|
+
getUpdatedPanelNo(question: IPanel, no: string): string;
|
|
106
107
|
getUpdatedPageNo(question: IPage, no: string): string;
|
|
107
108
|
getUpdatedElementTitleActions(element: ISurveyElement, titleActions: Array<IAction>): Array<IAction>;
|
|
108
109
|
getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: MatrixDropdownRowModelBase, actions: Array<IAction>): Array<IAction>;
|
|
@@ -61,7 +61,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
61
61
|
private questionsValue;
|
|
62
62
|
private _columns;
|
|
63
63
|
private _columnsReady;
|
|
64
|
-
|
|
64
|
+
gridLayoutColumns: Array<PanelLayoutColumnModel>;
|
|
65
65
|
addElementCallback: (element: IElement) => void;
|
|
66
66
|
removeElementCallback: (element: IElement) => void;
|
|
67
67
|
onGetQuestionTitleLocation: () => string;
|
|
@@ -304,6 +304,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
304
304
|
getQuestionTitleWidth(): string;
|
|
305
305
|
readonly columns: Array<PanelLayoutColumnModel>;
|
|
306
306
|
protected generateColumns(): void;
|
|
307
|
+
updateGridColumns(): void;
|
|
307
308
|
getColumsForElement(el: IElement): Array<PanelLayoutColumnModel>;
|
|
308
309
|
protected getStartIndex(): string;
|
|
309
310
|
getQuestionStartIndex(): string;
|
|
@@ -538,7 +539,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
538
539
|
* @see visibleIf
|
|
539
540
|
*/
|
|
540
541
|
readonly no: string;
|
|
541
|
-
|
|
542
|
+
private calcNo;
|
|
542
543
|
protected notifyStateChanged(prevState: string): void;
|
|
543
544
|
protected createLocTitleProperty(): LocalizableString;
|
|
544
545
|
protected beforeSetVisibleIndex(index: number): number;
|
|
@@ -378,6 +378,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
378
378
|
*/
|
|
379
379
|
startWithNewLine: boolean;
|
|
380
380
|
protected calcCssClasses(css: any): any;
|
|
381
|
+
protected onCalcCssClasses(classes: any): void;
|
|
381
382
|
readonly cssRoot: string;
|
|
382
383
|
protected setCssRoot(val: string): void;
|
|
383
384
|
protected getCssRoot(cssClasses: {
|
|
@@ -408,7 +409,9 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
408
409
|
protected hasCssError(): boolean;
|
|
409
410
|
getRootCss(): string;
|
|
410
411
|
getQuestionRootCss(): string;
|
|
412
|
+
private isRequireUpdateElements;
|
|
411
413
|
updateElementCss(reNew?: boolean): void;
|
|
414
|
+
protected onFirstRenderingCore(): void;
|
|
412
415
|
protected updateQuestionCss(reNew?: boolean): void;
|
|
413
416
|
private ensureElementCss;
|
|
414
417
|
protected updateElementCssCore(cssClasses: any): void;
|
|
@@ -684,7 +687,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
684
687
|
/*
|
|
685
688
|
* A correct answer to this question. Specify this property if you want to [create a quiz](https://surveyjs.io/form-library/documentation/design-survey-create-a-quiz).
|
|
686
689
|
* @see SurveyModel.getCorrectAnswerCount
|
|
687
|
-
* @see SurveyModel.
|
|
690
|
+
* @see SurveyModel.getIncorrectAnswerCount
|
|
688
691
|
*/
|
|
689
692
|
correctAnswer: any;
|
|
690
693
|
protected convertDefaultValue(val: any): any;
|
|
@@ -260,6 +260,7 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
260
260
|
readonly cssClassesValue: any;
|
|
261
261
|
private ensureCssClassesValue;
|
|
262
262
|
private createCssClassesValue;
|
|
263
|
+
protected onCalcCssClasses(classes: any): void;
|
|
263
264
|
/*
|
|
264
265
|
* Returns an object in which keys are UI elements and values are CSS classes applied to them.
|
|
265
266
|
*
|
|
@@ -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";
|
|
@@ -333,9 +333,16 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
333
333
|
*/
|
|
334
334
|
onGetQuestionNumber: EventBase<SurveyModel, GetQuestionNumberEvent>;
|
|
335
335
|
/**
|
|
336
|
-
*
|
|
336
|
+
* Obsolete. Use the [`onGetQuestionNumber`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetQuestionNumber) event instead.
|
|
337
|
+
* @deprecated
|
|
337
338
|
*/
|
|
338
339
|
onGetQuestionNo: EventBase<SurveyModel, GetQuestionNumberEvent>;
|
|
340
|
+
/**
|
|
341
|
+
* An event that is raised before the survey calculates a panel number. Handle this event to modify panel numbers.
|
|
342
|
+
*
|
|
343
|
+
* 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).
|
|
344
|
+
*/
|
|
345
|
+
onGetPanelNumber: EventBase<SurveyModel, GetPanelNumberEvent>;
|
|
339
346
|
/**
|
|
340
347
|
* An event that is raised before the survey calculates a page number. Handle this event to modify page numbers.
|
|
341
348
|
*
|
|
@@ -351,6 +358,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
351
358
|
* @see showProgressBar
|
|
352
359
|
* @see progressBarType
|
|
353
360
|
*/
|
|
361
|
+
onGetProgressText: EventBase<SurveyModel, GetProgressTextEvent>;
|
|
362
|
+
/**
|
|
363
|
+
* Obsolete. Use the [`onGetProgressText`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetProgressText) event instead.
|
|
364
|
+
* @deprecated
|
|
365
|
+
*/
|
|
354
366
|
onProgressText: EventBase<SurveyModel, ProgressTextEvent>;
|
|
355
367
|
/**
|
|
356
368
|
* An event that is raised to convert Markdown content to HTML.
|
|
@@ -553,7 +565,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
553
565
|
*/
|
|
554
566
|
onMatrixRowAdding: EventBase<SurveyModel, MatrixBeforeRowAddedEvent>;
|
|
555
567
|
/**
|
|
556
|
-
*
|
|
568
|
+
* Obsolete. Use the [`onMatrixRowAdding`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRowAdding) event instead.
|
|
569
|
+
* @deprecated
|
|
557
570
|
*/
|
|
558
571
|
onMatrixBeforeRowAdded: EventBase<SurveyModel, MatrixBeforeRowAddedEvent>;
|
|
559
572
|
/**
|
|
@@ -573,7 +586,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
573
586
|
*/
|
|
574
587
|
onMatrixRenderRemoveButton: EventBase<SurveyModel, MatrixAllowRemoveRowEvent>;
|
|
575
588
|
/**
|
|
576
|
-
*
|
|
589
|
+
* Obsolete. Use the [`onMatrixRenderRemoveButton`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRenderRemoveButton) event instead.
|
|
590
|
+
* @deprecated
|
|
577
591
|
*/
|
|
578
592
|
onMatrixAllowRemoveRow: EventBase<SurveyModel, MatrixAllowRemoveRowEvent>;
|
|
579
593
|
/**
|
|
@@ -596,7 +610,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
596
610
|
*/
|
|
597
611
|
onAfterRenderMatrixCell: EventBase<SurveyModel, MatrixAfterCellRenderEvent>;
|
|
598
612
|
/**
|
|
599
|
-
*
|
|
613
|
+
* Obsolete. Use the [`onAfterRenderMatrixCell`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onAfterRenderMatrixCell) event instead.
|
|
614
|
+
* @deprecated
|
|
600
615
|
*/
|
|
601
616
|
onMatrixAfterCellRender: EventBase<SurveyModel, MatrixAfterCellRenderEvent>;
|
|
602
617
|
/**
|
|
@@ -670,6 +685,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
670
685
|
/**
|
|
671
686
|
* 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).
|
|
672
687
|
*/
|
|
688
|
+
onCheckAnswerCorrect: EventBase<SurveyModel, CheckAnswerCorrectEvent>;
|
|
689
|
+
/**
|
|
690
|
+
* Obsolete. Use the [`onCheckAnswerCorrect`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onCheckAnswerCorrect) event instead.
|
|
691
|
+
* @deprecated
|
|
692
|
+
*/
|
|
673
693
|
onIsAnswerCorrect: EventBase<SurveyModel, IsAnswerCorrectEvent>;
|
|
674
694
|
/**
|
|
675
695
|
* 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.
|
|
@@ -679,6 +699,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
679
699
|
/**
|
|
680
700
|
* An event this is raised before a survey element (usually page) is scrolled to the top. Use this event to cancel the scroll operation.
|
|
681
701
|
*/
|
|
702
|
+
onScrollToTop: EventBase<SurveyModel, ScrollToTopEvent>;
|
|
703
|
+
/**
|
|
704
|
+
* Obsolete. Use the [`onScrollToTop`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onScrollToTop) event instead.
|
|
705
|
+
* @deprecated
|
|
706
|
+
*/
|
|
682
707
|
onScrollingElementToTop: EventBase<SurveyModel, ScrollingElementToTopEvent>;
|
|
683
708
|
onLocaleChangedEvent: EventBase<SurveyModel, {}>;
|
|
684
709
|
/**
|
|
@@ -718,10 +743,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
718
743
|
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
|
719
744
|
*/
|
|
720
745
|
onGetMatrixRowActions: EventBase<SurveyModel, GetMatrixRowActionsEvent>;
|
|
721
|
-
|
|
722
|
-
* An event that is raised after a survey element is [expanded or collapsed](https://surveyjs.io/form-library/documentation/api-reference/question#state).
|
|
723
|
-
*/
|
|
724
|
-
onElementContentVisibilityChanged: EventBase<SurveyModel, ElementContentVisibilityChangedEvent>;
|
|
746
|
+
onElementContentVisibilityChanged: EventBase<SurveyModel, any>;
|
|
725
747
|
/**
|
|
726
748
|
* 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.
|
|
727
749
|
*/
|
|
@@ -788,7 +810,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
788
810
|
containerCss: string;
|
|
789
811
|
fitToContainer: boolean;
|
|
790
812
|
/**
|
|
791
|
-
*
|
|
813
|
+
* Obsolete. Use the [`headerView`](https://surveyjs.io/form-library/documentation/api-reference/itheme#headerView) property within a theme instead.
|
|
814
|
+
* @deprecated
|
|
792
815
|
*/
|
|
793
816
|
headerView: "advanced" | "basic";
|
|
794
817
|
protected insertAdvancedHeader(advHeader: Cover): void;
|
|
@@ -1424,6 +1447,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1424
1447
|
readonly locQuestionTitleTemplate: LocalizableString;
|
|
1425
1448
|
getUpdatedQuestionTitle(question: Question, title: string): string;
|
|
1426
1449
|
getUpdatedQuestionNo(question: Question, no: string): string;
|
|
1450
|
+
getUpdatedPanelNo(panel: PanelModel, no: string): string;
|
|
1427
1451
|
getUpdatedPageNo(page: PageModel, no: string): string;
|
|
1428
1452
|
/*
|
|
1429
1453
|
* Specifies whether page titles contain page numbers.
|
|
@@ -1850,7 +1874,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1850
1874
|
*/
|
|
1851
1875
|
deleteCookie(): void;
|
|
1852
1876
|
/*
|
|
1853
|
-
*
|
|
1877
|
+
* Obsolete. Use the [`validationEnabled`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#validationEnabled) property instead.
|
|
1878
|
+
* @deprecated
|
|
1854
1879
|
*/
|
|
1855
1880
|
ignoreValidation: boolean;
|
|
1856
1881
|
/**
|
|
@@ -1958,6 +1983,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1958
1983
|
* @see isCurrentPageValid
|
|
1959
1984
|
* @see nextPage
|
|
1960
1985
|
*/
|
|
1986
|
+
tryComplete(): boolean;
|
|
1987
|
+
/**
|
|
1988
|
+
* Obsolete. Use the [`tryComplete`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#tryComplete) method instead.
|
|
1989
|
+
* @deprecated
|
|
1990
|
+
*/
|
|
1961
1991
|
completeLastPage(): boolean;
|
|
1962
1992
|
private isNavigationButtonPressed;
|
|
1963
1993
|
navigationMouseDown(): boolean;
|
|
@@ -2126,7 +2156,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2126
2156
|
readonly processedLoadingHtml: string;
|
|
2127
2157
|
getProgressInfo(): IProgressInfo;
|
|
2128
2158
|
/*
|
|
2129
|
-
* Returns text displayed by the progress bar (for instance, "Page 2 of 3" or "Answered 3/8 questions"). Handle the [`
|
|
2159
|
+
* 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.
|
|
2130
2160
|
* @see progressValue
|
|
2131
2161
|
* @see showProgressBar
|
|
2132
2162
|
* @see progressBarType
|
|
@@ -2207,6 +2237,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2207
2237
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
|
2208
2238
|
getUpdatedPanelFooterActions(panel: PanelModel, actions: Array<IAction>, question?: QuestionPanelDynamicModel): Array<IAction>;
|
|
2209
2239
|
getUpdatedElementTitleActions(element: ISurveyElement, titleActions: Array<IAction>): Array<IAction>;
|
|
2240
|
+
private getTitleActionsResult;
|
|
2210
2241
|
private getUpdatedQuestionTitleActions;
|
|
2211
2242
|
private getUpdatedPanelTitleActions;
|
|
2212
2243
|
private getUpdatedPageTitleActions;
|
|
@@ -2322,13 +2353,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2322
2353
|
*/
|
|
2323
2354
|
getQuestionsByValueName(valueName: string, caseInsensitive?: boolean): Array<Question>;
|
|
2324
2355
|
getCalculatedValueByName(name: string): CalculatedValue;
|
|
2325
|
-
/**
|
|
2326
|
-
* Returns an array of questions with specified [names](https://surveyjs.io/form-library/documentation/api-reference/question#name).
|
|
2327
|
-
* @param names An array of question names.
|
|
2328
|
-
* @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).
|
|
2329
|
-
* @returns An array of questions with specified names
|
|
2330
|
-
* @see getAllQuestions
|
|
2331
|
-
*/
|
|
2332
2356
|
getQuestionsByNames(names: string[], caseInsensitive?: boolean): IQuestion[];
|
|
2333
2357
|
/**
|
|
2334
2358
|
* Returns a page to which a specified survey element (question or panel) belongs.
|
|
@@ -2345,10 +2369,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2345
2369
|
* @param name A page [name](https://surveyjs.io/form-library/documentation/api-reference/page-model#name).
|
|
2346
2370
|
*/
|
|
2347
2371
|
getPageByName(name: string): PageModel;
|
|
2348
|
-
/**
|
|
2349
|
-
* Returns an array of pages with specified names.
|
|
2350
|
-
* @param names An array of page names.
|
|
2351
|
-
*/
|
|
2352
2372
|
getPagesByNames(names: string[]): PageModel[];
|
|
2353
2373
|
/**
|
|
2354
2374
|
* Returns a list of all [questions](https://surveyjs.io/form-library/documentation/api-reference/question) in the survey.
|
|
@@ -2599,7 +2619,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2599
2619
|
* For more information about quizzes, refer to the following tutorial: [Create a Quiz](https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz).
|
|
2600
2620
|
* @returns The number of correct answers in a quiz.
|
|
2601
2621
|
* @see getQuizQuestionCount
|
|
2602
|
-
* @see
|
|
2622
|
+
* @see getIncorrectAnswerCount
|
|
2603
2623
|
*/
|
|
2604
2624
|
getCorrectAnswerCount(): number;
|
|
2605
2625
|
/**
|
|
@@ -2613,6 +2633,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2613
2633
|
*/
|
|
2614
2634
|
getQuizQuestionCount(): number;
|
|
2615
2635
|
getInCorrectedAnswerCount(): number;
|
|
2636
|
+
getInCorrectAnswerCount(): number;
|
|
2616
2637
|
/**
|
|
2617
2638
|
* Returns the number of incorrect answers in a quiz.
|
|
2618
2639
|
*
|
|
@@ -2620,7 +2641,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2620
2641
|
* @returns The number of incorrect answers in a quiz.
|
|
2621
2642
|
* @see getCorrectAnswerCount
|
|
2622
2643
|
*/
|
|
2623
|
-
|
|
2644
|
+
getIncorrectAnswerCount(): number;
|
|
2624
2645
|
onCorrectQuestionAnswer(question: IQuestion, options: any): void;
|
|
2625
2646
|
private getCorrectedAnswerCountCore;
|
|
2626
2647
|
getCorrectedAnswers(): number;
|
|
@@ -2678,6 +2699,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2678
2699
|
*/
|
|
2679
2700
|
showTimerPanelMode: string;
|
|
2680
2701
|
gridLayoutEnabled: boolean;
|
|
2702
|
+
updateGridColumns(): void;
|
|
2681
2703
|
/*
|
|
2682
2704
|
* Specifies how to calculate the survey width.
|
|
2683
2705
|
*
|
|
@@ -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 };
|
|
@@ -182,7 +182,7 @@ export declare class ExpressionValidator extends SurveyValidator {
|
|
|
182
182
|
validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
|
|
183
183
|
protected generateError(res: boolean, value: any, name: string): ValidatorResult;
|
|
184
184
|
protected getDefaultErrorText(name: string): string;
|
|
185
|
-
|
|
185
|
+
private ensureConditionRunner;
|
|
186
186
|
/*
|
|
187
187
|
* A Boolean [expression](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions). If it evaluates to `false`, validation fails.
|
|
188
188
|
*
|
|
@@ -103,6 +103,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
|
103
103
|
questionTitlePattern: string;
|
|
104
104
|
getUpdatedQuestionTitle(question: IQuestion, title: string): string;
|
|
105
105
|
getUpdatedQuestionNo(question: IQuestion, no: string): string;
|
|
106
|
+
getUpdatedPanelNo(question: IPanel, no: string): string;
|
|
106
107
|
getUpdatedPageNo(question: IPage, no: string): string;
|
|
107
108
|
getUpdatedElementTitleActions(element: ISurveyElement, titleActions: Array<IAction>): Array<IAction>;
|
|
108
109
|
getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: MatrixDropdownRowModelBase, actions: Array<IAction>): Array<IAction>;
|
|
@@ -64,7 +64,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
64
64
|
private questionsValue;
|
|
65
65
|
private _columns;
|
|
66
66
|
private _columnsReady;
|
|
67
|
-
|
|
67
|
+
gridLayoutColumns: Array<PanelLayoutColumnModel>;
|
|
68
68
|
addElementCallback: (element: IElement) => void;
|
|
69
69
|
removeElementCallback: (element: IElement) => void;
|
|
70
70
|
onGetQuestionTitleLocation: () => string;
|
|
@@ -316,6 +316,7 @@ export declare class PanelModelBase extends SurveyElement<Question> implements I
|
|
|
316
316
|
getQuestionTitleWidth(): string;
|
|
317
317
|
get columns(): Array<PanelLayoutColumnModel>;
|
|
318
318
|
protected generateColumns(): void;
|
|
319
|
+
updateGridColumns(): void;
|
|
319
320
|
getColumsForElement(el: IElement): Array<PanelLayoutColumnModel>;
|
|
320
321
|
protected getStartIndex(): string;
|
|
321
322
|
getQuestionStartIndex(): string;
|
|
@@ -557,7 +558,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
|
557
558
|
* @see visibleIf
|
|
558
559
|
*/
|
|
559
560
|
get no(): string;
|
|
560
|
-
|
|
561
|
+
private calcNo;
|
|
561
562
|
protected notifyStateChanged(prevState: string): void;
|
|
562
563
|
protected createLocTitleProperty(): LocalizableString;
|
|
563
564
|
protected beforeSetVisibleIndex(index: number): number;
|
|
@@ -393,6 +393,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
393
393
|
get startWithNewLine(): boolean;
|
|
394
394
|
set startWithNewLine(val: boolean);
|
|
395
395
|
protected calcCssClasses(css: any): any;
|
|
396
|
+
protected onCalcCssClasses(classes: any): void;
|
|
396
397
|
get cssRoot(): string;
|
|
397
398
|
protected setCssRoot(val: string): void;
|
|
398
399
|
protected getCssRoot(cssClasses: {
|
|
@@ -423,7 +424,9 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
423
424
|
protected hasCssError(): boolean;
|
|
424
425
|
getRootCss(): string;
|
|
425
426
|
getQuestionRootCss(): string;
|
|
427
|
+
private isRequireUpdateElements;
|
|
426
428
|
updateElementCss(reNew?: boolean): void;
|
|
429
|
+
protected onFirstRenderingCore(): void;
|
|
427
430
|
protected updateQuestionCss(reNew?: boolean): void;
|
|
428
431
|
private ensureElementCss;
|
|
429
432
|
protected updateElementCssCore(cssClasses: any): void;
|
|
@@ -716,7 +719,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
716
719
|
/**
|
|
717
720
|
* A correct answer to this question. Specify this property if you want to [create a quiz](https://surveyjs.io/form-library/documentation/design-survey-create-a-quiz).
|
|
718
721
|
* @see SurveyModel.getCorrectAnswerCount
|
|
719
|
-
* @see SurveyModel.
|
|
722
|
+
* @see SurveyModel.getIncorrectAnswerCount
|
|
720
723
|
*/
|
|
721
724
|
get correctAnswer(): any;
|
|
722
725
|
set correctAnswer(val: any);
|
|
@@ -264,6 +264,7 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
264
264
|
get cssClassesValue(): any;
|
|
265
265
|
private ensureCssClassesValue;
|
|
266
266
|
private createCssClassesValue;
|
|
267
|
+
protected onCalcCssClasses(classes: any): void;
|
|
267
268
|
/**
|
|
268
269
|
* Returns an object in which keys are UI elements and values are CSS classes applied to them.
|
|
269
270
|
*
|