survey-core 1.9.111 → 1.9.112
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 +18 -7
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +18 -7
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +256 -0
- package/i18n/arabic.js.map +1 -0
- package/i18n/arabic.min.js +6 -0
- package/i18n/basque.js +249 -0
- package/i18n/basque.js.map +1 -0
- package/i18n/basque.min.js +6 -0
- package/i18n/bulgarian.js +256 -0
- package/i18n/bulgarian.js.map +1 -0
- package/i18n/bulgarian.min.js +6 -0
- package/i18n/catalan.js +296 -0
- package/i18n/catalan.js.map +1 -0
- package/i18n/catalan.min.js +6 -0
- package/i18n/croatian.js +254 -0
- package/i18n/croatian.js.map +1 -0
- package/i18n/croatian.min.js +6 -0
- package/i18n/czech.js +256 -0
- package/i18n/czech.js.map +1 -0
- package/i18n/czech.min.js +6 -0
- package/i18n/danish.js +256 -0
- package/i18n/danish.js.map +1 -0
- package/i18n/danish.min.js +6 -0
- package/i18n/dutch.js +254 -0
- package/i18n/dutch.js.map +1 -0
- package/i18n/dutch.min.js +6 -0
- package/i18n/english.js +225 -0
- package/i18n/english.js.map +1 -0
- package/i18n/english.min.js +6 -0
- package/i18n/estonian.js +256 -0
- package/i18n/estonian.js.map +1 -0
- package/i18n/estonian.min.js +6 -0
- package/i18n/finnish.js +244 -0
- package/i18n/finnish.js.map +1 -0
- package/i18n/finnish.min.js +6 -0
- package/i18n/french.js +244 -0
- package/i18n/french.js.map +1 -0
- package/i18n/french.min.js +6 -0
- package/i18n/georgian.js +309 -0
- package/i18n/georgian.js.map +1 -0
- package/i18n/georgian.min.js +6 -0
- package/i18n/german.js +242 -0
- package/i18n/german.js.map +1 -0
- package/i18n/german.min.js +6 -0
- package/i18n/greek.js +241 -0
- package/i18n/greek.js.map +1 -0
- package/i18n/greek.min.js +6 -0
- package/i18n/hebrew.js +256 -0
- package/i18n/hebrew.js.map +1 -0
- package/i18n/hebrew.min.js +6 -0
- package/i18n/hindi.js +257 -0
- package/i18n/hindi.js.map +1 -0
- package/i18n/hindi.min.js +6 -0
- package/i18n/hungarian.js +255 -0
- package/i18n/hungarian.js.map +1 -0
- package/i18n/hungarian.min.js +6 -0
- package/i18n/icelandic.js +256 -0
- package/i18n/icelandic.js.map +1 -0
- package/i18n/icelandic.min.js +6 -0
- package/i18n/index.js +6871 -0
- package/i18n/index.js.map +1 -0
- package/i18n/index.min.js +6 -0
- package/i18n/indonesian.js +256 -0
- package/i18n/indonesian.js.map +1 -0
- package/i18n/indonesian.min.js +6 -0
- package/i18n/italian.js +244 -0
- package/i18n/italian.js.map +1 -0
- package/i18n/italian.min.js +6 -0
- package/i18n/japanese.js +256 -0
- package/i18n/japanese.js.map +1 -0
- package/i18n/japanese.min.js +6 -0
- package/i18n/kazakh.js +256 -0
- package/i18n/kazakh.js.map +1 -0
- package/i18n/kazakh.min.js +6 -0
- package/i18n/korean.js +243 -0
- package/i18n/korean.js.map +1 -0
- package/i18n/korean.min.js +6 -0
- package/i18n/latvian.js +244 -0
- package/i18n/latvian.js.map +1 -0
- package/i18n/latvian.min.js +6 -0
- package/i18n/lithuanian.js +256 -0
- package/i18n/lithuanian.js.map +1 -0
- package/i18n/lithuanian.min.js +6 -0
- package/i18n/macedonian.js +250 -0
- package/i18n/macedonian.js.map +1 -0
- package/i18n/macedonian.min.js +6 -0
- package/i18n/malay.js +246 -0
- package/i18n/malay.js.map +1 -0
- package/i18n/malay.min.js +6 -0
- package/i18n/nl-BE.js +279 -0
- package/i18n/nl-BE.js.map +1 -0
- package/i18n/nl-BE.min.js +6 -0
- package/i18n/norwegian.js +256 -0
- package/i18n/norwegian.js.map +1 -0
- package/i18n/norwegian.min.js +6 -0
- package/i18n/persian.js +256 -0
- package/i18n/persian.js.map +1 -0
- package/i18n/persian.min.js +6 -0
- package/i18n/polish.js +244 -0
- package/i18n/polish.js.map +1 -0
- package/i18n/polish.min.js +6 -0
- package/i18n/portuguese-br.js +306 -0
- package/i18n/portuguese-br.js.map +1 -0
- package/i18n/portuguese-br.min.js +6 -0
- package/i18n/portuguese.js +241 -0
- package/i18n/portuguese.js.map +1 -0
- package/i18n/portuguese.min.js +6 -0
- package/i18n/romanian.js +256 -0
- package/i18n/romanian.js.map +1 -0
- package/i18n/romanian.min.js +6 -0
- package/i18n/russian.js +244 -0
- package/i18n/russian.js.map +1 -0
- package/i18n/russian.min.js +6 -0
- package/i18n/serbian.js +251 -0
- package/i18n/serbian.js.map +1 -0
- package/i18n/serbian.min.js +6 -0
- package/i18n/simplified-chinese.js +250 -0
- package/i18n/simplified-chinese.js.map +1 -0
- package/i18n/simplified-chinese.min.js +6 -0
- package/i18n/slovak.js +246 -0
- package/i18n/slovak.js.map +1 -0
- package/i18n/slovak.min.js +6 -0
- package/i18n/spanish.js +244 -0
- package/i18n/spanish.js.map +1 -0
- package/i18n/spanish.min.js +6 -0
- package/i18n/swahili.js +256 -0
- package/i18n/swahili.js.map +1 -0
- package/i18n/swahili.min.js +6 -0
- package/i18n/swedish.js +244 -0
- package/i18n/swedish.js.map +1 -0
- package/i18n/swedish.min.js +6 -0
- package/i18n/tajik.js +225 -0
- package/i18n/tajik.js.map +1 -0
- package/i18n/tajik.min.js +6 -0
- package/i18n/telugu.js +257 -0
- package/i18n/telugu.js.map +1 -0
- package/i18n/telugu.min.js +6 -0
- package/i18n/thai.js +256 -0
- package/i18n/thai.js.map +1 -0
- package/i18n/thai.min.js +6 -0
- package/i18n/traditional-chinese.js +291 -0
- package/i18n/traditional-chinese.js.map +1 -0
- package/i18n/traditional-chinese.min.js +6 -0
- package/i18n/turkish.js +238 -0
- package/i18n/turkish.js.map +1 -0
- package/i18n/turkish.min.js +6 -0
- package/i18n/ukrainian.js +256 -0
- package/i18n/ukrainian.js.map +1 -0
- package/i18n/ukrainian.min.js +6 -0
- package/i18n/urdu.js +249 -0
- package/i18n/urdu.js.map +1 -0
- package/i18n/urdu.min.js +6 -0
- package/i18n/vietnamese.js +257 -0
- package/i18n/vietnamese.js.map +1 -0
- package/i18n/vietnamese.min.js +6 -0
- package/i18n/welsh.js +256 -0
- package/i18n/welsh.js.map +1 -0
- package/i18n/welsh.min.js +6 -0
- package/modern.css +11 -2
- package/modern.css.map +1 -1
- package/modern.fontless.css +11 -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 +248 -106
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.css.map +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +2 -2
- 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/cover.d.ts +15 -11
- package/ts3.4/typings/notifier.d.ts +1 -0
- package/ts3.4/typings/question.d.ts +24 -2
- package/ts3.4/typings/question_expression.d.ts +0 -1
- package/ts3.4/typings/question_matrixdropdowncolumn.d.ts +2 -0
- package/ts3.4/typings/survey-element.d.ts +0 -1
- package/ts3.4/typings/survey-events-api.d.ts +4 -0
- package/ts3.4/typings/survey.d.ts +20 -5
- package/ts3.4/typings/themes.d.ts +53 -1
- package/typings/cover.d.ts +16 -11
- package/typings/notifier.d.ts +1 -0
- package/typings/question.d.ts +26 -2
- package/typings/question_expression.d.ts +0 -1
- package/typings/question_matrixdropdowncolumn.d.ts +4 -0
- package/typings/survey-element.d.ts +0 -1
- package/typings/survey-events-api.d.ts +4 -0
- package/typings/survey.d.ts +20 -5
- package/typings/themes.d.ts +53 -1
package/ts3.4/typings/cover.d.ts
CHANGED
|
@@ -20,21 +20,23 @@ export declare class CoverCell {
|
|
|
20
20
|
readonly showLogo: boolean;
|
|
21
21
|
readonly showTitle: boolean;
|
|
22
22
|
readonly showDescription: boolean;
|
|
23
|
-
readonly
|
|
23
|
+
readonly textAreaWidth: string;
|
|
24
24
|
}
|
|
25
25
|
export declare class Cover extends Base {
|
|
26
|
+
private _survey;
|
|
26
27
|
private calcBackgroundSize;
|
|
28
|
+
private updateCoverClasses;
|
|
29
|
+
private updateContentClasses;
|
|
30
|
+
private updateBackgroundImageClasses;
|
|
27
31
|
fromTheme(theme: ITheme): void;
|
|
28
32
|
constructor();
|
|
29
33
|
getType(): string;
|
|
30
|
-
survey: SurveyModel;
|
|
31
34
|
cells: CoverCell[];
|
|
32
35
|
height: number;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
overlap: boolean;
|
|
36
|
+
inheritWidthFrom: "survey" | "page";
|
|
37
|
+
textAreaWidth: number;
|
|
38
|
+
textGlowEnabled: boolean;
|
|
39
|
+
overlapEnabled: boolean;
|
|
38
40
|
backgroundColor: string;
|
|
39
41
|
backgroundImage: string;
|
|
40
42
|
renderBackgroundImage: string;
|
|
@@ -58,14 +60,16 @@ export declare class Cover extends Base {
|
|
|
58
60
|
gridColumn: number;
|
|
59
61
|
gridRow: number;
|
|
60
62
|
};
|
|
63
|
+
coverClasses: string;
|
|
64
|
+
contentClasses: string;
|
|
65
|
+
backgroundImageClasses: string;
|
|
61
66
|
readonly renderedHeight: string;
|
|
62
|
-
readonly
|
|
63
|
-
|
|
64
|
-
readonly contentClasses: string;
|
|
65
|
-
readonly backgroundImageClasses: string;
|
|
67
|
+
readonly renderedtextAreaWidth: string;
|
|
68
|
+
survey: SurveyModel;
|
|
66
69
|
readonly backgroundImageStyle: {
|
|
67
70
|
opacity: number;
|
|
68
71
|
backgroundImage: string;
|
|
69
72
|
backgroundSize: string;
|
|
70
73
|
};
|
|
74
|
+
protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
71
75
|
}
|
|
@@ -216,8 +216,11 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
216
216
|
readonly isQuestion: boolean;
|
|
217
217
|
moveTo(container: IPanel, insertBefore?: any): boolean;
|
|
218
218
|
getProgressInfo(): IProgressInfo;
|
|
219
|
-
private
|
|
220
|
-
private
|
|
219
|
+
private setValueExpressionRunner;
|
|
220
|
+
private runSetValueExpression;
|
|
221
|
+
private triggersInfo;
|
|
222
|
+
private addTriggerInfo;
|
|
223
|
+
private runTriggerInfo;
|
|
221
224
|
runTriggers(name: string, value: any): void;
|
|
222
225
|
private runConditions;
|
|
223
226
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
@@ -592,6 +595,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
592
595
|
*
|
|
593
596
|
* An expression can also include built-in and custom functions for advanced calculations. For example, if the `defaultValue` should be today's date, set the `defaultValueExpression` to `"today()"`, and the corresponding built-in function will be executed each time the survey is loaded. Refer to the following help topic for more information: [Built-In Functions](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#built-in-functions).
|
|
594
597
|
* @see defaultValue
|
|
598
|
+
* @see setValueExpression
|
|
595
599
|
*/
|
|
596
600
|
defaultValueExpression: any;
|
|
597
601
|
/*
|
|
@@ -600,8 +604,26 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
600
604
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
601
605
|
*
|
|
602
606
|
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
607
|
+
* @see setValueIf
|
|
603
608
|
*/
|
|
604
609
|
resetValueIf: string;
|
|
610
|
+
/*
|
|
611
|
+
* A Boolean expression. If it evaluates to `true`, the question value is set to a value calculated using the [`setValueExpression`](#setValueExpression).
|
|
612
|
+
*
|
|
613
|
+
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
614
|
+
*
|
|
615
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
616
|
+
* @see resetValueIf
|
|
617
|
+
*/
|
|
618
|
+
setValueIf: string;
|
|
619
|
+
/*
|
|
620
|
+
* An expression used to calculate the question value. Applies only when the [`setValueIf`](#setValueIf) expression evaluates to `true`.
|
|
621
|
+
*
|
|
622
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
623
|
+
* @see defaultValueExpression
|
|
624
|
+
* @see resetValueIf
|
|
625
|
+
*/
|
|
626
|
+
setValueExpression: string;
|
|
605
627
|
readonly resizeStyle: "none" | "both";
|
|
606
628
|
/**
|
|
607
629
|
* Returns the question value as an object in which the question name, title, value, and other parameters are stored as individual properties.
|
|
@@ -97,6 +97,5 @@ export declare class QuestionExpressionModel extends Question {
|
|
|
97
97
|
precision: number;
|
|
98
98
|
private roundValue;
|
|
99
99
|
protected getValueAsStr(val: any): string;
|
|
100
|
-
protected convertToCorrectValue(val: any): any;
|
|
101
100
|
}
|
|
102
101
|
export declare function getCurrecyCodes(): Array<string>;
|
|
@@ -65,6 +65,8 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
|
65
65
|
requiredIf: string;
|
|
66
66
|
resetValueIf: string;
|
|
67
67
|
defaultValueExpression: string;
|
|
68
|
+
setValueIf: string;
|
|
69
|
+
setValueExpession: string;
|
|
68
70
|
isUnique: boolean;
|
|
69
71
|
showInMultipleColumns: boolean;
|
|
70
72
|
readonly isSupportMultipleColumns: boolean;
|
|
@@ -13,6 +13,7 @@ import { QuestionMatrixDynamicModel } from "./question_matrixdynamic";
|
|
|
13
13
|
import { QuestionPanelDynamicModel } from "./question_paneldynamic";
|
|
14
14
|
import { SurveyModel } from "./survey";
|
|
15
15
|
import { SurveyError } from "./survey-error";
|
|
16
|
+
import { ITheme } from "./themes";
|
|
16
17
|
import { Trigger } from "./trigger";
|
|
17
18
|
export interface QuestionEventMixin {
|
|
18
19
|
/**
|
|
@@ -960,3 +961,6 @@ export interface PopupVisibleChangedEvent extends QuestionEventMixin {
|
|
|
960
961
|
*/
|
|
961
962
|
visible: boolean;
|
|
962
963
|
}
|
|
964
|
+
export interface ThemeAppliedEvent {
|
|
965
|
+
theme: ITheme;
|
|
966
|
+
}
|
|
@@ -18,7 +18,7 @@ import { IAction, Action } from "./actions/action";
|
|
|
18
18
|
import { ActionContainer } from "./actions/container";
|
|
19
19
|
import { QuestionPanelDynamicModel } from "./question_paneldynamic";
|
|
20
20
|
import { Notifier } from "./notifier";
|
|
21
|
-
import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent, GetQuestionNoEvent, ProgressTextEvent, TextMarkdownEvent, TextRenderAsEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderHeaderEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, TimerPanelInfoTextEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent } from "./survey-events-api";
|
|
21
|
+
import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent, GetQuestionNoEvent, ProgressTextEvent, TextMarkdownEvent, TextRenderAsEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderHeaderEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, TimerPanelInfoTextEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent, ThemeAppliedEvent } 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";
|
|
@@ -58,7 +58,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
58
58
|
private timerModelValue;
|
|
59
59
|
private navigationBarValue;
|
|
60
60
|
onThemeApplying: EventBase<SurveyModel>;
|
|
61
|
-
|
|
61
|
+
/**
|
|
62
|
+
* An event that is raised after a [theme](/form-library/documentation/manage-default-themes-and-styles) is [applied](#applyTheme) to the survey.
|
|
63
|
+
* @see applyTheme
|
|
64
|
+
*/
|
|
65
|
+
onThemeApplied: EventBase<SurveyModel, ThemeAppliedEvent>;
|
|
62
66
|
/**
|
|
63
67
|
* An event that is raised after a [trigger](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#triggers) is executed.
|
|
64
68
|
*
|
|
@@ -648,10 +652,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
648
652
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
649
653
|
*
|
|
650
654
|
* [View Demo](https://surveyjs.io/form-library/examples/survey-titleactions/ (linkStyle))
|
|
655
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
|
651
656
|
*/
|
|
652
657
|
onGetQuestionTitleActions: EventBase<SurveyModel, GetQuestionTitleActionsEvent>;
|
|
653
658
|
/**
|
|
654
659
|
* An event that allows you to add, delete, or modify actions in a panel title.
|
|
660
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
|
655
661
|
*/
|
|
656
662
|
onGetPanelTitleActions: EventBase<SurveyModel, GetPanelTitleActionsEvent>;
|
|
657
663
|
/**
|
|
@@ -660,10 +666,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
660
666
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
661
667
|
*
|
|
662
668
|
* [View Demo](https://surveyjs.io/form-library/examples/modify-titles-of-survey-elements/ (linkStyle))
|
|
669
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
|
663
670
|
*/
|
|
664
671
|
onGetPageTitleActions: EventBase<SurveyModel, GetPageTitleActionsEvent>;
|
|
665
672
|
/**
|
|
666
673
|
* An event that allows you to add, delete, or modify actions in the footer of a [Panel](https://surveyjs.io/form-library/documentation/panelmodel).
|
|
674
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
|
667
675
|
*/
|
|
668
676
|
onGetPanelFooterActions: EventBase<SurveyModel, GetPanelFooterActionsEvent>;
|
|
669
677
|
/**
|
|
@@ -672,7 +680,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
672
680
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
673
681
|
*
|
|
674
682
|
* [View Demo](https://surveyjs.io/form-library/examples/employee-information-form/ (linkStyle))
|
|
675
|
-
* @see IAction
|
|
683
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
|
676
684
|
*/
|
|
677
685
|
onGetMatrixRowActions: EventBase<SurveyModel, GetMatrixRowActionsEvent>;
|
|
678
686
|
/**
|
|
@@ -734,7 +742,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
734
742
|
loadingBodyCss: string;
|
|
735
743
|
containerCss: string;
|
|
736
744
|
fitToContainer: boolean;
|
|
737
|
-
|
|
745
|
+
headerView: "advanced" | "basic";
|
|
738
746
|
private getNavigationCss;
|
|
739
747
|
private lazyRenderingValue;
|
|
740
748
|
showBrandInfo: boolean;
|
|
@@ -1588,7 +1596,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1588
1596
|
readonly completedState: string;
|
|
1589
1597
|
readonly completedStateText: string;
|
|
1590
1598
|
protected setCompletedState(value: string, text: string): void;
|
|
1591
|
-
notify(message: string, type: string): void;
|
|
1599
|
+
notify(message: string, type: string, showActions?: boolean): void;
|
|
1592
1600
|
/**
|
|
1593
1601
|
* 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"`.
|
|
1594
1602
|
* @param clearData *(Optional)* Specifies whether to clear survey data. Default value: `true`.
|
|
@@ -2589,6 +2597,13 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2589
2597
|
removeLayoutElement(layoutElementId: string): ISurveyLayoutElement;
|
|
2590
2598
|
getContainerContent(container: LayoutElementContainer): any[];
|
|
2591
2599
|
processPopupVisiblityChanged(question: Question, popup: PopupModel<any>, visible: boolean): void;
|
|
2600
|
+
/**
|
|
2601
|
+
* Applies a specified theme to the survey.
|
|
2602
|
+
*
|
|
2603
|
+
* [Themes & Styles](/form-library/documentation/manage-default-themes-and-styles (linkStyle))
|
|
2604
|
+
* @param theme An [`ITheme`](/form-library/documentation/api-reference/itheme) object with theme settings.
|
|
2605
|
+
* @see onThemeApplied
|
|
2606
|
+
*/
|
|
2592
2607
|
applyTheme(theme: ITheme): void;
|
|
2593
2608
|
/**
|
|
2594
2609
|
* Disposes of the survey model.
|
|
@@ -1,16 +1,68 @@
|
|
|
1
1
|
export declare type ImageFit = "auto" | "contain" | "cover";
|
|
2
2
|
export declare type ImageAttachment = "fixed" | "scroll";
|
|
3
|
+
/**
|
|
4
|
+
* A theme configuration interface.
|
|
5
|
+
*
|
|
6
|
+
* `ITheme` objects are used to apply predefined themes or create custom themes. Refer to the following help topic for more information:
|
|
7
|
+
*
|
|
8
|
+
* [Themes & Styles](https://surveyjs.io/form-library/documentation/manage-default-themes-and-styles (linkStyle))
|
|
9
|
+
*/
|
|
3
10
|
export interface ITheme {
|
|
11
|
+
/**
|
|
12
|
+
* A theme name.
|
|
13
|
+
*/
|
|
4
14
|
themeName?: string;
|
|
15
|
+
/**
|
|
16
|
+
* A color palette.
|
|
17
|
+
*
|
|
18
|
+
* Possible values:
|
|
19
|
+
*
|
|
20
|
+
* - `"light"`
|
|
21
|
+
* - `"dark"`
|
|
22
|
+
*/
|
|
5
23
|
colorPalette?: string;
|
|
24
|
+
/**
|
|
25
|
+
* A Boolean value that specifies whether survey questions are displayed within panels (`false`) or without them (`true`).
|
|
26
|
+
*/
|
|
6
27
|
isPanelless?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* An image to display as survey background. This property accepts a hyperlink or a data URL.
|
|
30
|
+
*/
|
|
7
31
|
backgroundImage?: string;
|
|
32
|
+
/**
|
|
33
|
+
* A string value that specifies how to resize the [background image](#backgroundImage) to fit it into its container.
|
|
34
|
+
*
|
|
35
|
+
* Possible values:
|
|
36
|
+
*
|
|
37
|
+
* - `"auto"`
|
|
38
|
+
* - `"contain"`
|
|
39
|
+
* - `"cover"`
|
|
40
|
+
*
|
|
41
|
+
* Refer to the description of the [`background-size`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size#values) CSS property values on MDN for detailed information on the possible values.
|
|
42
|
+
*/
|
|
8
43
|
backgroundImageFit?: ImageFit;
|
|
44
|
+
/**
|
|
45
|
+
* A string value that specifies whether the [background image](#backgroundImage) is fixed in its position or scrolled along with the survey.
|
|
46
|
+
*
|
|
47
|
+
* Possible values:
|
|
48
|
+
*
|
|
49
|
+
* - `"fixed"`
|
|
50
|
+
* - `"scroll"`
|
|
51
|
+
*/
|
|
9
52
|
backgroundImageAttachment?: ImageAttachment;
|
|
53
|
+
/**
|
|
54
|
+
* A value from 0 to 1 that specifies how transparent the [background image](#backgroundImage) should be: 0 makes the image completely transparent, and 1 makes it opaque.
|
|
55
|
+
*/
|
|
10
56
|
backgroundOpacity?: number;
|
|
11
|
-
|
|
57
|
+
/**
|
|
58
|
+
* An object with survey header settings.
|
|
59
|
+
*/
|
|
60
|
+
header?: {
|
|
12
61
|
[index: string]: any;
|
|
13
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* An object with CSS variables.
|
|
65
|
+
*/
|
|
14
66
|
cssVariables?: {
|
|
15
67
|
[index: string]: string;
|
|
16
68
|
};
|
package/typings/cover.d.ts
CHANGED
|
@@ -20,21 +20,23 @@ export declare class CoverCell {
|
|
|
20
20
|
get showLogo(): boolean;
|
|
21
21
|
get showTitle(): boolean;
|
|
22
22
|
get showDescription(): boolean;
|
|
23
|
-
get
|
|
23
|
+
get textAreaWidth(): string;
|
|
24
24
|
}
|
|
25
25
|
export declare class Cover extends Base {
|
|
26
|
+
private _survey;
|
|
26
27
|
private calcBackgroundSize;
|
|
28
|
+
private updateCoverClasses;
|
|
29
|
+
private updateContentClasses;
|
|
30
|
+
private updateBackgroundImageClasses;
|
|
27
31
|
fromTheme(theme: ITheme): void;
|
|
28
32
|
constructor();
|
|
29
33
|
getType(): string;
|
|
30
|
-
survey: SurveyModel;
|
|
31
34
|
cells: CoverCell[];
|
|
32
35
|
height: number;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
overlap: boolean;
|
|
36
|
+
inheritWidthFrom: "survey" | "page";
|
|
37
|
+
textAreaWidth: number;
|
|
38
|
+
textGlowEnabled: boolean;
|
|
39
|
+
overlapEnabled: boolean;
|
|
38
40
|
backgroundColor: string;
|
|
39
41
|
backgroundImage: string;
|
|
40
42
|
renderBackgroundImage: string;
|
|
@@ -58,14 +60,17 @@ export declare class Cover extends Base {
|
|
|
58
60
|
gridColumn: number;
|
|
59
61
|
gridRow: number;
|
|
60
62
|
};
|
|
63
|
+
coverClasses: string;
|
|
64
|
+
contentClasses: string;
|
|
65
|
+
backgroundImageClasses: string;
|
|
61
66
|
get renderedHeight(): string;
|
|
62
|
-
get
|
|
63
|
-
get
|
|
64
|
-
|
|
65
|
-
get backgroundImageClasses(): string;
|
|
67
|
+
get renderedtextAreaWidth(): string;
|
|
68
|
+
get survey(): SurveyModel;
|
|
69
|
+
set survey(newValue: SurveyModel);
|
|
66
70
|
get backgroundImageStyle(): {
|
|
67
71
|
opacity: number;
|
|
68
72
|
backgroundImage: string;
|
|
69
73
|
backgroundSize: string;
|
|
70
74
|
};
|
|
75
|
+
protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
71
76
|
}
|
package/typings/notifier.d.ts
CHANGED
package/typings/question.d.ts
CHANGED
|
@@ -222,8 +222,11 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
222
222
|
get isQuestion(): boolean;
|
|
223
223
|
moveTo(container: IPanel, insertBefore?: any): boolean;
|
|
224
224
|
getProgressInfo(): IProgressInfo;
|
|
225
|
-
private
|
|
226
|
-
private
|
|
225
|
+
private setValueExpressionRunner;
|
|
226
|
+
private runSetValueExpression;
|
|
227
|
+
private triggersInfo;
|
|
228
|
+
private addTriggerInfo;
|
|
229
|
+
private runTriggerInfo;
|
|
227
230
|
runTriggers(name: string, value: any): void;
|
|
228
231
|
private runConditions;
|
|
229
232
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
|
@@ -619,6 +622,7 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
619
622
|
*
|
|
620
623
|
* An expression can also include built-in and custom functions for advanced calculations. For example, if the `defaultValue` should be today's date, set the `defaultValueExpression` to `"today()"`, and the corresponding built-in function will be executed each time the survey is loaded. Refer to the following help topic for more information: [Built-In Functions](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#built-in-functions).
|
|
621
624
|
* @see defaultValue
|
|
625
|
+
* @see setValueExpression
|
|
622
626
|
*/
|
|
623
627
|
get defaultValueExpression(): any;
|
|
624
628
|
set defaultValueExpression(val: any);
|
|
@@ -628,9 +632,29 @@ export declare class Question extends SurveyElement<Question> implements IQuesti
|
|
|
628
632
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
629
633
|
*
|
|
630
634
|
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
635
|
+
* @see setValueIf
|
|
631
636
|
*/
|
|
632
637
|
get resetValueIf(): string;
|
|
633
638
|
set resetValueIf(val: string);
|
|
639
|
+
/**
|
|
640
|
+
* A Boolean expression. If it evaluates to `true`, the question value is set to a value calculated using the [`setValueExpression`](#setValueExpression).
|
|
641
|
+
*
|
|
642
|
+
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
|
643
|
+
*
|
|
644
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
645
|
+
* @see resetValueIf
|
|
646
|
+
*/
|
|
647
|
+
get setValueIf(): string;
|
|
648
|
+
set setValueIf(val: string);
|
|
649
|
+
/**
|
|
650
|
+
* An expression used to calculate the question value. Applies only when the [`setValueIf`](#setValueIf) expression evaluates to `true`.
|
|
651
|
+
*
|
|
652
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
|
653
|
+
* @see defaultValueExpression
|
|
654
|
+
* @see resetValueIf
|
|
655
|
+
*/
|
|
656
|
+
get setValueExpression(): string;
|
|
657
|
+
set setValueExpression(val: string);
|
|
634
658
|
get resizeStyle(): "none" | "both";
|
|
635
659
|
/**
|
|
636
660
|
* Returns the question value as an object in which the question name, title, value, and other parameters are stored as individual properties.
|
|
@@ -106,6 +106,5 @@ export declare class QuestionExpressionModel extends Question {
|
|
|
106
106
|
set precision(val: number);
|
|
107
107
|
private roundValue;
|
|
108
108
|
protected getValueAsStr(val: any): string;
|
|
109
|
-
protected convertToCorrectValue(val: any): any;
|
|
110
109
|
}
|
|
111
110
|
export declare function getCurrecyCodes(): Array<string>;
|
|
@@ -81,6 +81,10 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
|
81
81
|
set resetValueIf(val: string);
|
|
82
82
|
get defaultValueExpression(): string;
|
|
83
83
|
set defaultValueExpression(val: string);
|
|
84
|
+
get setValueIf(): string;
|
|
85
|
+
set setValueIf(val: string);
|
|
86
|
+
get setValueExpession(): string;
|
|
87
|
+
set setValueExpession(val: string);
|
|
84
88
|
get isUnique(): boolean;
|
|
85
89
|
set isUnique(val: boolean);
|
|
86
90
|
get showInMultipleColumns(): boolean;
|
|
@@ -383,7 +383,6 @@ export declare class SurveyElement<E = any> extends SurveyElementCore implements
|
|
|
383
383
|
get paddingRight(): string;
|
|
384
384
|
set paddingRight(val: string);
|
|
385
385
|
allowRootStyle: boolean;
|
|
386
|
-
renderMinWidth: boolean;
|
|
387
386
|
get rootStyle(): {
|
|
388
387
|
[index: string]: any;
|
|
389
388
|
};
|
|
@@ -13,6 +13,7 @@ import { QuestionMatrixDynamicModel } from "./question_matrixdynamic";
|
|
|
13
13
|
import { QuestionPanelDynamicModel } from "./question_paneldynamic";
|
|
14
14
|
import { SurveyModel } from "./survey";
|
|
15
15
|
import { SurveyError } from "./survey-error";
|
|
16
|
+
import { ITheme } from "./themes";
|
|
16
17
|
import { Trigger } from "./trigger";
|
|
17
18
|
export interface QuestionEventMixin {
|
|
18
19
|
/**
|
|
@@ -960,3 +961,6 @@ export interface PopupVisibleChangedEvent extends QuestionEventMixin {
|
|
|
960
961
|
*/
|
|
961
962
|
visible: boolean;
|
|
962
963
|
}
|
|
964
|
+
export interface ThemeAppliedEvent {
|
|
965
|
+
theme: ITheme;
|
|
966
|
+
}
|
package/typings/survey.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { IAction, Action } from "./actions/action";
|
|
|
18
18
|
import { ActionContainer } from "./actions/container";
|
|
19
19
|
import { QuestionPanelDynamicModel } from "./question_paneldynamic";
|
|
20
20
|
import { Notifier } from "./notifier";
|
|
21
|
-
import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent, GetQuestionNoEvent, ProgressTextEvent, TextMarkdownEvent, TextRenderAsEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderHeaderEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, TimerPanelInfoTextEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent } from "./survey-events-api";
|
|
21
|
+
import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent, GetQuestionNoEvent, ProgressTextEvent, TextMarkdownEvent, TextRenderAsEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderHeaderEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, TimerPanelInfoTextEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent, ThemeAppliedEvent } 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";
|
|
@@ -61,7 +61,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
61
61
|
private timerModelValue;
|
|
62
62
|
private navigationBarValue;
|
|
63
63
|
onThemeApplying: EventBase<SurveyModel>;
|
|
64
|
-
|
|
64
|
+
/**
|
|
65
|
+
* An event that is raised after a [theme](/form-library/documentation/manage-default-themes-and-styles) is [applied](#applyTheme) to the survey.
|
|
66
|
+
* @see applyTheme
|
|
67
|
+
*/
|
|
68
|
+
onThemeApplied: EventBase<SurveyModel, ThemeAppliedEvent>;
|
|
65
69
|
/**
|
|
66
70
|
* An event that is raised after a [trigger](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#triggers) is executed.
|
|
67
71
|
*
|
|
@@ -651,10 +655,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
651
655
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
652
656
|
*
|
|
653
657
|
* [View Demo](https://surveyjs.io/form-library/examples/survey-titleactions/ (linkStyle))
|
|
658
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
|
654
659
|
*/
|
|
655
660
|
onGetQuestionTitleActions: EventBase<SurveyModel, GetQuestionTitleActionsEvent>;
|
|
656
661
|
/**
|
|
657
662
|
* An event that allows you to add, delete, or modify actions in a panel title.
|
|
663
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
|
658
664
|
*/
|
|
659
665
|
onGetPanelTitleActions: EventBase<SurveyModel, GetPanelTitleActionsEvent>;
|
|
660
666
|
/**
|
|
@@ -663,10 +669,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
663
669
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
664
670
|
*
|
|
665
671
|
* [View Demo](https://surveyjs.io/form-library/examples/modify-titles-of-survey-elements/ (linkStyle))
|
|
672
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
|
666
673
|
*/
|
|
667
674
|
onGetPageTitleActions: EventBase<SurveyModel, GetPageTitleActionsEvent>;
|
|
668
675
|
/**
|
|
669
676
|
* An event that allows you to add, delete, or modify actions in the footer of a [Panel](https://surveyjs.io/form-library/documentation/panelmodel).
|
|
677
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
|
670
678
|
*/
|
|
671
679
|
onGetPanelFooterActions: EventBase<SurveyModel, GetPanelFooterActionsEvent>;
|
|
672
680
|
/**
|
|
@@ -675,7 +683,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
675
683
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
676
684
|
*
|
|
677
685
|
* [View Demo](https://surveyjs.io/form-library/examples/employee-information-form/ (linkStyle))
|
|
678
|
-
* @see IAction
|
|
686
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
|
679
687
|
*/
|
|
680
688
|
onGetMatrixRowActions: EventBase<SurveyModel, GetMatrixRowActionsEvent>;
|
|
681
689
|
/**
|
|
@@ -738,7 +746,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
738
746
|
loadingBodyCss: string;
|
|
739
747
|
containerCss: string;
|
|
740
748
|
fitToContainer: boolean;
|
|
741
|
-
|
|
749
|
+
headerView: "advanced" | "basic";
|
|
742
750
|
private getNavigationCss;
|
|
743
751
|
private lazyRenderingValue;
|
|
744
752
|
showBrandInfo: boolean;
|
|
@@ -1664,7 +1672,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1664
1672
|
get completedState(): string;
|
|
1665
1673
|
get completedStateText(): string;
|
|
1666
1674
|
protected setCompletedState(value: string, text: string): void;
|
|
1667
|
-
notify(message: string, type: string): void;
|
|
1675
|
+
notify(message: string, type: string, showActions?: boolean): void;
|
|
1668
1676
|
/**
|
|
1669
1677
|
* 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"`.
|
|
1670
1678
|
* @param clearData *(Optional)* Specifies whether to clear survey data. Default value: `true`.
|
|
@@ -2678,6 +2686,13 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2678
2686
|
removeLayoutElement(layoutElementId: string): ISurveyLayoutElement;
|
|
2679
2687
|
getContainerContent(container: LayoutElementContainer): any[];
|
|
2680
2688
|
processPopupVisiblityChanged(question: Question, popup: PopupModel<any>, visible: boolean): void;
|
|
2689
|
+
/**
|
|
2690
|
+
* Applies a specified theme to the survey.
|
|
2691
|
+
*
|
|
2692
|
+
* [Themes & Styles](/form-library/documentation/manage-default-themes-and-styles (linkStyle))
|
|
2693
|
+
* @param theme An [`ITheme`](/form-library/documentation/api-reference/itheme) object with theme settings.
|
|
2694
|
+
* @see onThemeApplied
|
|
2695
|
+
*/
|
|
2681
2696
|
applyTheme(theme: ITheme): void;
|
|
2682
2697
|
/**
|
|
2683
2698
|
* Disposes of the survey model.
|