survey-core 1.9.116 → 1.9.118
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/README.md +4 -0
- package/defaultV2.css +16 -6
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +16 -6
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- 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 +3 -3
- package/i18n/english.js.map +1 -1
- package/i18n/english.min.js +2 -2
- 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/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/modern.css +5 -2
- package/modern.css.map +1 -1
- package/modern.fontless.css +5 -2
- package/modern.fontless.css.map +1 -1
- package/modern.fontless.min.css +2 -2
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/plugins/bootstrap-integration.js +1 -1
- package/plugins/bootstrap-integration.min.js +1 -1
- package/plugins/bootstrap-material-integration.js +1 -1
- package/plugins/bootstrap-material-integration.min.js +1 -1
- package/survey.core.js +404 -148
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +4 -4
- package/survey.css +5 -2
- package/survey.css.map +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +2 -2
- 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/console-warnings.d.ts +1 -0
- package/ts3.4/typings/defaultCss/cssmodern.d.ts +1 -0
- package/ts3.4/typings/defaultCss/cssstandard.d.ts +1 -0
- package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +1 -0
- package/ts3.4/typings/dragdrop/choices.d.ts +1 -0
- package/ts3.4/typings/dropdownListModel.d.ts +2 -1
- package/ts3.4/typings/jsonobject.d.ts +2 -0
- package/ts3.4/typings/localizablestring.d.ts +0 -1
- package/ts3.4/typings/martixBase.d.ts +2 -0
- package/ts3.4/typings/notifier.d.ts +11 -8
- package/ts3.4/typings/question.d.ts +2 -0
- package/ts3.4/typings/question_baseselect.d.ts +16 -2
- package/ts3.4/typings/question_checkbox.d.ts +5 -2
- package/ts3.4/typings/question_custom.d.ts +7 -1
- package/ts3.4/typings/question_file.d.ts +1 -0
- package/ts3.4/typings/question_imagepicker.d.ts +2 -1
- package/ts3.4/typings/question_matrixdropdownbase.d.ts +3 -0
- package/ts3.4/typings/question_matrixdropdowncolumn.d.ts +1 -0
- package/ts3.4/typings/question_matrixdynamic.d.ts +3 -0
- package/ts3.4/typings/question_signaturepad.d.ts +3 -1
- package/ts3.4/typings/question_textbase.d.ts +1 -2
- package/ts3.4/typings/settings.d.ts +26 -0
- package/ts3.4/typings/survey-events-api.d.ts +20 -8
- package/ts3.4/typings/survey.d.ts +14 -2
- package/typings/console-warnings.d.ts +1 -0
- package/typings/defaultCss/cssmodern.d.ts +1 -0
- package/typings/defaultCss/cssstandard.d.ts +1 -0
- package/typings/defaultCss/defaultV2Css.d.ts +1 -0
- package/typings/dragdrop/choices.d.ts +1 -0
- package/typings/dropdownListModel.d.ts +2 -1
- package/typings/jsonobject.d.ts +2 -0
- package/typings/localizablestring.d.ts +0 -1
- package/typings/martixBase.d.ts +2 -0
- package/typings/notifier.d.ts +11 -8
- package/typings/question.d.ts +2 -0
- package/typings/question_baseselect.d.ts +16 -2
- package/typings/question_checkbox.d.ts +5 -2
- package/typings/question_custom.d.ts +7 -1
- package/typings/question_file.d.ts +3 -1
- package/typings/question_imagepicker.d.ts +2 -1
- package/typings/question_matrixdropdownbase.d.ts +3 -0
- package/typings/question_matrixdropdowncolumn.d.ts +1 -0
- package/typings/question_matrixdynamic.d.ts +3 -0
- package/typings/question_signaturepad.d.ts +3 -1
- package/typings/question_textbase.d.ts +1 -2
- package/typings/settings.d.ts +26 -0
- package/typings/survey-events-api.d.ts +20 -8
- package/typings/survey.d.ts +14 -2
|
@@ -41,6 +41,7 @@ export declare class MatrixDropdownCell {
|
|
|
41
41
|
data: IMatrixDropdownData;
|
|
42
42
|
private questionValue;
|
|
43
43
|
constructor(column: MatrixDropdownColumn, row: MatrixDropdownRowModelBase, data: IMatrixDropdownData);
|
|
44
|
+
private updateCellQuestionTitleDueToAccessebility;
|
|
44
45
|
locStrsChanged(): void;
|
|
45
46
|
protected createQuestion(column: MatrixDropdownColumn, row: MatrixDropdownRowModelBase, data: IMatrixDropdownData): Question;
|
|
46
47
|
get question(): Question;
|
|
@@ -76,10 +77,12 @@ export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyI
|
|
|
76
77
|
constructor(data: IMatrixDropdownData, value: any);
|
|
77
78
|
get id(): string;
|
|
78
79
|
get rowName(): any;
|
|
80
|
+
get dataName(): string;
|
|
79
81
|
get text(): any;
|
|
80
82
|
get value(): any;
|
|
81
83
|
set value(value: any);
|
|
82
84
|
get locText(): LocalizableString;
|
|
85
|
+
getAccessbilityText(): string;
|
|
83
86
|
get hasPanel(): boolean;
|
|
84
87
|
get detailPanel(): PanelModel;
|
|
85
88
|
get detailPanelId(): string;
|
|
@@ -15,6 +15,7 @@ export interface IMatrixColumnOwner extends ILocalizableOwner {
|
|
|
15
15
|
getCellType(): string;
|
|
16
16
|
getCustomCellType(column: MatrixDropdownColumn, row: MatrixDropdownRowModelBase, cellType: string): string;
|
|
17
17
|
onColumnCellTypeChanged(column: MatrixDropdownColumn): void;
|
|
18
|
+
getCellAriaLabel(rowTitle: string, columnTitle: string): string;
|
|
18
19
|
}
|
|
19
20
|
export declare var matrixDropdownColumnTypes: any;
|
|
20
21
|
export declare class MatrixDropdownColumn extends Base implements ILocalizableOwner, IWrapperObject {
|
|
@@ -10,6 +10,9 @@ export declare class MatrixDynamicRowModel extends MatrixDropdownRowModelBase im
|
|
|
10
10
|
private dragOrClickHelper;
|
|
11
11
|
constructor(index: number, data: IMatrixDropdownData, value: any);
|
|
12
12
|
get rowName(): string;
|
|
13
|
+
get dataName(): string;
|
|
14
|
+
get text(): any;
|
|
15
|
+
getAccessbilityText(): string;
|
|
13
16
|
get shortcutText(): string;
|
|
14
17
|
}
|
|
15
18
|
/**
|
|
@@ -51,7 +51,9 @@ export declare class QuestionSignaturePadModel extends Question {
|
|
|
51
51
|
*
|
|
52
52
|
* Default value: `false`
|
|
53
53
|
*
|
|
54
|
-
*
|
|
54
|
+
* This property auto-scales the signature area to fill all available width within the question box while maintaining the default 3:2 aspect ratio. If you set [custom width](#signatureWidth) and [height](#signatureHeight) values, the setting will keep the aspect ratio of these dimensions.
|
|
55
|
+
*
|
|
56
|
+
* > The signature area is scaled only for display. The image saved in survey results will have dimensions specified by the [`signatureHeight`](#signatureHeight) and [`signatureWidth`](#signatureWidth) properties.
|
|
55
57
|
*/
|
|
56
58
|
signatureAutoScaleEnabled: boolean;
|
|
57
59
|
/**
|
|
@@ -58,9 +58,8 @@ export declare class QuestionTextBase extends Question {
|
|
|
58
58
|
protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
|
|
59
59
|
protected convertToCorrectValue(val: any): any;
|
|
60
60
|
protected getValueSeparator(): string;
|
|
61
|
-
disableNativeUndoRedo: boolean;
|
|
62
|
-
protected checkForUndo(event: KeyboardEvent): void;
|
|
63
61
|
protected getControlCssClassBuilder(): CssClassBuilder;
|
|
64
62
|
getControlClass(): string;
|
|
65
63
|
get isNewA11yStructure(): boolean;
|
|
64
|
+
onKeyDownPreprocess: (event: any) => void;
|
|
66
65
|
}
|
package/typings/settings.d.ts
CHANGED
|
@@ -485,6 +485,32 @@ export declare var settings: {
|
|
|
485
485
|
* Default value: `"none"`
|
|
486
486
|
*/
|
|
487
487
|
noneItemValue: string;
|
|
488
|
+
/**
|
|
489
|
+
* An object whose properties specify the order of the special choice items (None, Other, Select All) in select-based questions.
|
|
490
|
+
*
|
|
491
|
+
* Default value: `{ selectAllItem: [-1], noneItem: [1], otherItem: [2] }`
|
|
492
|
+
*
|
|
493
|
+
* Use this object to reorder special choices. Each property accepts an array of integer numbers. Negative numbers place a special choice item above regular choice items, positive numbers place it below them. For instance, the code below specifies the following order of choices: None, Select All, regular choices, Other.
|
|
494
|
+
*
|
|
495
|
+
* ```js
|
|
496
|
+
* import { settings } from "survey-core";
|
|
497
|
+
*
|
|
498
|
+
* settings.specialChoicesOrder.noneItem = [-2];
|
|
499
|
+
* settings.specialChoicesOrder.selectAllItem = [-1];
|
|
500
|
+
* settings.specialChoicesOrder.otherItem = [1];
|
|
501
|
+
* ```
|
|
502
|
+
*
|
|
503
|
+
* If you want to duplicate a special choice item above and below other choices, add two numbers to the corresponding array:
|
|
504
|
+
*
|
|
505
|
+
* ```js
|
|
506
|
+
* settings.specialChoicesOrder.selectAllItem = [-1, 3] // Displays Select All above and below other choices
|
|
507
|
+
* ```
|
|
508
|
+
*/
|
|
509
|
+
specialChoicesOrder: {
|
|
510
|
+
selectAllItem: number[];
|
|
511
|
+
noneItem: number[];
|
|
512
|
+
otherItem: number[];
|
|
513
|
+
};
|
|
488
514
|
/**
|
|
489
515
|
* A list of supported validators by question type.
|
|
490
516
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAction } from "./actions/action";
|
|
2
2
|
import { Base } from "./base";
|
|
3
|
-
import { IElement, ISurveyElement, IValueItemCustomPropValues } from "./base-interfaces";
|
|
3
|
+
import { IElement, IPanel, ISurveyElement, IValueItemCustomPropValues } from "./base-interfaces";
|
|
4
4
|
import { ItemValue } from "./itemvalue";
|
|
5
5
|
import { PageModel } from "./page";
|
|
6
6
|
import { PanelModel, PanelModelBase } from "./panel";
|
|
@@ -509,7 +509,7 @@ export interface UploadFilesEvent extends LoadFilesEvent {
|
|
|
509
509
|
}
|
|
510
510
|
export interface DownloadFileEvent extends LoadFilesEvent {
|
|
511
511
|
/**
|
|
512
|
-
* A callback function that you should call when a file is downloaded successfully or when deletion fails. Pass `"success"` or `"error"` as the first argument to indicate the operation status. As the second argument, you can pass the downloaded file's data as a Base64 string if file
|
|
512
|
+
* A callback function that you should call when a file is downloaded successfully or when deletion fails. Pass `"success"` or `"error"` as the first argument to indicate the operation status. As the second argument, you can pass the downloaded file's data as a Base64 string if file download was successful or an error message if file download failed.
|
|
513
513
|
*/
|
|
514
514
|
callback: (status: string, data?: any) => any;
|
|
515
515
|
/**
|
|
@@ -523,7 +523,7 @@ export interface DownloadFileEvent extends LoadFilesEvent {
|
|
|
523
523
|
}
|
|
524
524
|
export interface ClearFilesEvent extends LoadFilesEvent {
|
|
525
525
|
/**
|
|
526
|
-
* A callback function that you should call when files are deleted successfully or when deletion fails. Pass `"success"` or `"error"` as the first argument to indicate the operation status. As the second argument, you can pass deleted files' data (`options.value`) if file
|
|
526
|
+
* A callback function that you should call when files are deleted successfully or when deletion fails. Pass `"success"` or `"error"` as the first argument to indicate the operation status. As the second argument, you can pass deleted files' data (`options.value`) if file deletion was successful or an error message if file deletion failed.
|
|
527
527
|
*/
|
|
528
528
|
callback: (status: string, data?: any) => any;
|
|
529
529
|
/**
|
|
@@ -858,27 +858,39 @@ export interface DragDropAllowEvent {
|
|
|
858
858
|
/**
|
|
859
859
|
* A survey element being dragged.
|
|
860
860
|
*/
|
|
861
|
-
|
|
861
|
+
draggedElement: IElement;
|
|
862
862
|
/**
|
|
863
|
-
* A survey element from which `
|
|
863
|
+
* A survey element from which `draggedElement` is being dragged. This parameter is `null` if `draggedElement` is being dragged from the [Toolbox](https://surveyjs.io/survey-creator/documentation/toolbox).
|
|
864
864
|
*/
|
|
865
|
-
|
|
865
|
+
fromElement: IPanel;
|
|
866
|
+
/**
|
|
867
|
+
* A survey element to which `draggedElement` is being dragged.
|
|
868
|
+
*/
|
|
869
|
+
toElement: IElement;
|
|
866
870
|
/**
|
|
867
871
|
* A survey element before which the target element will be placed. This parameter is `null` if the parent container (page or panel) has no elements or if the target element will be placed below all other elements within the container.
|
|
868
872
|
*/
|
|
869
873
|
insertBefore: IElement;
|
|
870
874
|
/**
|
|
871
|
-
* A survey element after which `
|
|
875
|
+
* A survey element after which `draggedElement` will be placed. This parameter is `null` if the parent container (page or panel) has no elements or if `draggedElement` will be placed above all other elements within the container.
|
|
872
876
|
*/
|
|
873
877
|
insertAfter: IElement;
|
|
874
878
|
/**
|
|
875
|
-
* A parent container (page or panel) within which `
|
|
879
|
+
* A parent container (page or panel) within which `draggedElement` will be placed.
|
|
876
880
|
*/
|
|
877
881
|
parent: ISurveyElement;
|
|
878
882
|
/**
|
|
879
883
|
* A Boolean property that you can set to `false` if you want to cancel the drag and drop operation.
|
|
880
884
|
*/
|
|
881
885
|
allow: boolean;
|
|
886
|
+
/**
|
|
887
|
+
* Obsolete. Use `options.draggedElement` instead.
|
|
888
|
+
*/
|
|
889
|
+
target: IElement;
|
|
890
|
+
/**
|
|
891
|
+
* Obsolete. Use `options.toElement` instead.
|
|
892
|
+
*/
|
|
893
|
+
source: IElement;
|
|
882
894
|
}
|
|
883
895
|
export interface ScrollingElementToTopEvent {
|
|
884
896
|
/**
|
package/typings/survey.d.ts
CHANGED
|
@@ -750,6 +750,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
750
750
|
*
|
|
751
751
|
* - `"advanced"`\
|
|
752
752
|
* An advanced header view applies the same properties as the basic view, plus [header settings](https://surveyjs.io/form-library/documentation/api-reference/iheader) from the [survey theme](https://surveyjs.io/form-library/documentation/api-reference/itheme#header). The advanced view features a more flexible header layout, a capability to specify a background image, and other settings that give a more professional look to the survey header.
|
|
753
|
+
*
|
|
754
|
+
* [View Demo](https://surveyjs.io/form-library/examples/brand-your-survey-header/ (linkStyle))
|
|
753
755
|
*/
|
|
754
756
|
headerView: "advanced" | "basic";
|
|
755
757
|
private getNavigationCss;
|
|
@@ -1679,6 +1681,16 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1679
1681
|
get completedState(): string;
|
|
1680
1682
|
get completedStateText(): string;
|
|
1681
1683
|
protected setCompletedState(value: string, text: string): void;
|
|
1684
|
+
/**
|
|
1685
|
+
* Displays a toast notification with a specified message.
|
|
1686
|
+
*
|
|
1687
|
+
* Depending on the `type` argument, a survey can display the following notification types:
|
|
1688
|
+
*
|
|
1689
|
+
* 
|
|
1690
|
+
* @param message A message to display.
|
|
1691
|
+
* @param type A notification type: `"info"` (default), `"success"`, or `"error"`.
|
|
1692
|
+
* @param showActions For internal use.
|
|
1693
|
+
*/
|
|
1682
1694
|
notify(message: string, type: string, showActions?: boolean): void;
|
|
1683
1695
|
/**
|
|
1684
1696
|
* Resets the survey [`state`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#state) and, optionally, [`data`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#data). If `state` is `"completed"`, it becomes `"running"`.
|
|
@@ -1905,9 +1917,9 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1905
1917
|
private runningPages;
|
|
1906
1918
|
private onShowingPreviewChanged;
|
|
1907
1919
|
private changeCurrentPageFromPreview;
|
|
1908
|
-
private
|
|
1920
|
+
private originalPages;
|
|
1909
1921
|
protected onQuestionsOnPageModeChanged(oldValue: string): void;
|
|
1910
|
-
private
|
|
1922
|
+
private restoreOriginalPages;
|
|
1911
1923
|
private getPageStartIndex;
|
|
1912
1924
|
private setupPagesForPageModes;
|
|
1913
1925
|
private createPagesForQuestionOnPageMode;
|