survey-core 1.9.110 → 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 +784 -675
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +784 -675
- 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 +310 -241
- package/modern.css.map +1 -1
- package/modern.fontless.css +310 -241
- 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 +2 -1
- package/plugins/bootstrap-integration.js.map +1 -1
- package/plugins/bootstrap-integration.min.js +2 -2
- package/plugins/bootstrap-material-integration.js +2 -1
- package/plugins/bootstrap-material-integration.js.map +1 -1
- package/plugins/bootstrap-material-integration.min.js +2 -2
- package/survey.core.js +534 -233
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +66 -53
- package/survey.css.map +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +2 -2
- 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/base.d.ts +2 -2
- package/ts3.4/typings/cover.d.ts +17 -11
- package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +2 -0
- package/ts3.4/typings/dropdownListModel.d.ts +1 -0
- package/ts3.4/typings/localization/english.d.ts +2 -0
- package/ts3.4/typings/notifier.d.ts +1 -0
- package/ts3.4/typings/panel.d.ts +2 -2
- package/ts3.4/typings/popup.d.ts +1 -0
- package/ts3.4/typings/question.d.ts +46 -22
- package/ts3.4/typings/question_custom.d.ts +7 -7
- package/ts3.4/typings/question_expression.d.ts +0 -1
- package/ts3.4/typings/question_file.d.ts +2 -1
- package/ts3.4/typings/question_html.d.ts +1 -0
- package/ts3.4/typings/question_matrixdropdowncolumn.d.ts +2 -0
- package/ts3.4/typings/question_matrixdynamic.d.ts +2 -2
- package/ts3.4/typings/question_paneldynamic.d.ts +10 -6
- package/ts3.4/typings/settings.d.ts +44 -33
- 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 +37 -20
- package/ts3.4/typings/surveyStrings.d.ts +2 -0
- package/ts3.4/typings/surveyToc.d.ts +2 -1
- package/ts3.4/typings/themes.d.ts +53 -1
- package/ts3.4/typings/trigger.d.ts +4 -0
- package/ts3.4/typings/utils/utils.d.ts +1 -0
- package/typings/base.d.ts +2 -2
- package/typings/cover.d.ts +18 -11
- package/typings/defaultCss/defaultV2Css.d.ts +2 -0
- package/typings/dropdownListModel.d.ts +1 -0
- package/typings/localization/english.d.ts +2 -0
- package/typings/notifier.d.ts +1 -0
- package/typings/panel.d.ts +2 -2
- package/typings/popup.d.ts +1 -0
- package/typings/question.d.ts +48 -22
- package/typings/question_custom.d.ts +7 -7
- package/typings/question_expression.d.ts +0 -1
- package/typings/question_file.d.ts +2 -1
- package/typings/question_html.d.ts +1 -0
- package/typings/question_matrixdropdowncolumn.d.ts +4 -0
- package/typings/question_matrixdynamic.d.ts +2 -2
- package/typings/question_paneldynamic.d.ts +10 -6
- package/typings/settings.d.ts +44 -33
- package/typings/survey-element.d.ts +0 -1
- package/typings/survey-events-api.d.ts +4 -0
- package/typings/survey.d.ts +37 -20
- package/typings/surveyStrings.d.ts +2 -0
- package/typings/surveyToc.d.ts +2 -1
- package/typings/themes.d.ts +53 -1
- package/typings/trigger.d.ts +4 -0
- package/typings/utils/utils.d.ts +1 -0
|
@@ -20,7 +20,7 @@ export declare class QuestionFileModel extends Question {
|
|
|
20
20
|
*
|
|
21
21
|
* - `sender`: `SurveyModel`\
|
|
22
22
|
* A survey instance that raised the event.
|
|
23
|
-
* - `options.state`: `
|
|
23
|
+
* - `options.state`: `string`\
|
|
24
24
|
* The current upload state: `"empty"`, `"loading"`, `"loaded"`, or `"error"`.
|
|
25
25
|
*/
|
|
26
26
|
onUploadStateChanged: EventBase<QuestionFileModel>;
|
|
@@ -171,6 +171,7 @@ export declare class QuestionFileModel extends Question {
|
|
|
171
171
|
get showFileDecorator(): boolean;
|
|
172
172
|
get showLoadingIndicator(): boolean;
|
|
173
173
|
get allowShowPreview(): boolean;
|
|
174
|
+
get showPreviewContainer(): boolean;
|
|
174
175
|
get showRemoveButtonCore(): boolean;
|
|
175
176
|
get showRemoveButton(): boolean;
|
|
176
177
|
get showRemoveButtonBottom(): boolean;
|
|
@@ -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;
|
|
@@ -165,7 +165,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
|
165
165
|
private getQuestionToFocusOnAddingRow;
|
|
166
166
|
/**
|
|
167
167
|
* Creates and adds a new row to the matrix.
|
|
168
|
-
* @param setFocus *Optional
|
|
168
|
+
* @param setFocus *(Optional)* Pass `true` to focus the cell in the first column.
|
|
169
169
|
*/
|
|
170
170
|
addRow(setFocus?: boolean): void;
|
|
171
171
|
/**
|
|
@@ -184,7 +184,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
|
184
184
|
/**
|
|
185
185
|
* Removes a matrix row with a specified index.
|
|
186
186
|
* @param index A zero-based row index.
|
|
187
|
-
* @param confirmDelete *Optional
|
|
187
|
+
* @param confirmDelete *(Optional)* A Boolean value that specifies whether to display a confirmation dialog. If you do not specify this parameter, the [`confirmDelete`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model#confirmDelete) property value is used.
|
|
188
188
|
*/
|
|
189
189
|
removeRow(index: number, confirmDelete?: boolean): void;
|
|
190
190
|
private removeRowAsync;
|
|
@@ -98,8 +98,8 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
98
98
|
*
|
|
99
99
|
* The template can contain the following placeholders:
|
|
100
100
|
*
|
|
101
|
-
* - `{panelIndex}` - A
|
|
102
|
-
* - `{visiblePanelIndex}` - A
|
|
101
|
+
* - `{panelIndex}` - A panel index within the collection of all panels. Starts with 1.
|
|
102
|
+
* - `{visiblePanelIndex}` - A panel index within the collection of visible panels. Starts with 1.
|
|
103
103
|
* @see template
|
|
104
104
|
* @see templateDescription
|
|
105
105
|
* @see templateElements
|
|
@@ -114,8 +114,12 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
114
114
|
*
|
|
115
115
|
* The template can contain the following placeholders:
|
|
116
116
|
*
|
|
117
|
-
* - `{panelIndex}` - A
|
|
118
|
-
* - `{visiblePanelIndex}` - A
|
|
117
|
+
* - `{panelIndex}` - A panel index within the collection of all panels. Starts with 1.
|
|
118
|
+
* - `{visiblePanelIndex}` - A panel index within the collection of visible panels. Starts with 1.
|
|
119
|
+
*
|
|
120
|
+
* If you want to customize individual tab titles, handle `SurveyModel`'s [`onGetDynamicPanelTabTitle`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetDynamicPanelTabTitle) event.
|
|
121
|
+
*
|
|
122
|
+
* [View Demo](/form-library/examples/tabbed-interface-for-duplicate-group-option/ (linkStyle))
|
|
119
123
|
* @see templateTitle
|
|
120
124
|
* @see renderMode
|
|
121
125
|
*/
|
|
@@ -399,11 +403,11 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
399
403
|
*
|
|
400
404
|
* Possible values:
|
|
401
405
|
*
|
|
402
|
-
* - `"list"` - Renders panels one under the other. [View Demo](https://surveyjs.io/form-library/examples/how-to-use-expressions-in-dynamic-panel/)
|
|
406
|
+
* - `"list"` (default) - Renders panels one under the other. [View Demo](https://surveyjs.io/form-library/examples/how-to-use-expressions-in-dynamic-panel/)
|
|
403
407
|
* - `"progressTop"` - Renders each panel as a card and displays a progress bar at the top. [View Demo](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/)
|
|
404
408
|
* - `"progressBottom"` - Renders each panel panel as a card and displays a progress bar at the bottom.
|
|
405
409
|
* - `"progressTopBottom"` - Renders each panel as a card and displays a progress bar at the top and bottom.
|
|
406
|
-
* - `"tab"` - Renders each panel within a tab. Use the [`templateTabTitle`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#templateTabTitle) to specify a template for tab titles.
|
|
410
|
+
* - `"tab"` - Renders each panel within a tab. Use the [`templateTabTitle`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#templateTabTitle) to specify a template for tab titles. [View Demo](/form-library/examples/tabbed-interface-for-duplicate-group-option/)
|
|
407
411
|
*/
|
|
408
412
|
get renderMode(): string;
|
|
409
413
|
set renderMode(val: string);
|
package/typings/settings.d.ts
CHANGED
|
@@ -21,10 +21,10 @@ export declare var settings: {
|
|
|
21
21
|
*
|
|
22
22
|
* Nested properties:
|
|
23
23
|
*
|
|
24
|
-
* - `showEmptyDescriptions`: `
|
|
24
|
+
* - `showEmptyDescriptions`: `boolean`\
|
|
25
25
|
* Specifies whether to display an empty description for pages and panels. Default value: `true`.
|
|
26
26
|
*
|
|
27
|
-
* - `showEmptyTitles`: `
|
|
27
|
+
* - `showEmptyTitles`: `boolean`\
|
|
28
28
|
* Specifies whether to display an empty title for pages and panels. Default value: `true`.
|
|
29
29
|
*/
|
|
30
30
|
designMode: {
|
|
@@ -44,13 +44,13 @@ export declare var settings: {
|
|
|
44
44
|
*
|
|
45
45
|
* Nested properties:
|
|
46
46
|
*
|
|
47
|
-
* - `useLocalTimeZone`: `
|
|
47
|
+
* - `useLocalTimeZone`: `boolean`\
|
|
48
48
|
* Disable this property if you want internal SurveyJS functions to use methods that work with UTC date and time (`setUTCDate()` `setUTCHours()`, etc.) instead of methods that work with local date and time (`setYear`, `setHours()`, etc.). Default value: `true`.
|
|
49
49
|
*
|
|
50
|
-
* - `defaultLocaleName`: `
|
|
50
|
+
* - `defaultLocaleName`: `string`\
|
|
51
51
|
* A property key that stores a translation for the default locale. Default value: `"default"`.
|
|
52
52
|
*
|
|
53
|
-
* - `storeDuplicatedTranslations`: `
|
|
53
|
+
* - `storeDuplicatedTranslations`: `boolean`\
|
|
54
54
|
* Specifies whether surveys should store translation strings that equal the translation strings in the default locale. Default value: `false`.
|
|
55
55
|
*/
|
|
56
56
|
localization: {
|
|
@@ -75,16 +75,16 @@ export declare var settings: {
|
|
|
75
75
|
*
|
|
76
76
|
* Nested properties:
|
|
77
77
|
*
|
|
78
|
-
* - `encodeUrlParams`: `
|
|
78
|
+
* - `encodeUrlParams`: `boolean`\
|
|
79
79
|
* Specifies whether to encode URL parameters when you access a web service. Default value: `true`.
|
|
80
80
|
*
|
|
81
|
-
* - `cacheLoadedChoices`: `
|
|
81
|
+
* - `cacheLoadedChoices`: `boolean`\
|
|
82
82
|
* Specifies whether to cache [choices](https://surveyjs.io/form-library/documentation/api-reference/checkbox-question-model#choicesByUrl) loaded from a web service. Default value: `true`.
|
|
83
83
|
*
|
|
84
|
-
* - `disableQuestionWhileLoadingChoices`: `
|
|
84
|
+
* - `disableQuestionWhileLoadingChoices`: `boolean`\
|
|
85
85
|
* Disables a question while its choices are being loaded from a web service. Default value: `false`.
|
|
86
86
|
*
|
|
87
|
-
* - `surveyServiceUrl`: `
|
|
87
|
+
* - `surveyServiceUrl`: `string`\
|
|
88
88
|
* The URL of the SurveyJS Service API endpoint.
|
|
89
89
|
*/
|
|
90
90
|
web: {
|
|
@@ -115,14 +115,14 @@ export declare var settings: {
|
|
|
115
115
|
*
|
|
116
116
|
* Nested properties:
|
|
117
117
|
*
|
|
118
|
-
* - `changeNavigationButtonsOnComplete`: `
|
|
118
|
+
* - `changeNavigationButtonsOnComplete`: `boolean`\
|
|
119
119
|
* Specifies whether to re-evaluate an expression associated with the [Complete trigger](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#complete) immediately when a question value changes. If the expression evaluates to `true`, the trigger is executed. Default value: `false`.\
|
|
120
120
|
* Keep this property set to `false` if you want to re-evaluate the Complete trigger's expression only when the respondents navigate to another page.
|
|
121
121
|
*
|
|
122
|
-
* - `executeCompleteOnValueChanged`: `
|
|
122
|
+
* - `executeCompleteOnValueChanged`: `boolean`\
|
|
123
123
|
* Specifies whether to replace the Next button with the Complete button when the [Complete trigger](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#complete) is going to be executed. Default value: `true`.
|
|
124
124
|
*
|
|
125
|
-
* - `executeSkipOnValueChanged`: `
|
|
125
|
+
* - `executeSkipOnValueChanged`: `boolean`\
|
|
126
126
|
* Specifies whether to re-evaluate an expression associated with the [Skip trigger](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#skip) immediately when a question value changes. If the expression evaluates to `true`, the trigger is executed. Default value: `true`.\
|
|
127
127
|
* Disable this property if you want to re-evaluate the Skip trigger's expression only when respondents navigate to another page.
|
|
128
128
|
*/
|
|
@@ -148,13 +148,13 @@ export declare var settings: {
|
|
|
148
148
|
*
|
|
149
149
|
* Nested properties:
|
|
150
150
|
*
|
|
151
|
-
* - `itemValueSerializeAsObject`: `
|
|
151
|
+
* - `itemValueSerializeAsObject`: `boolean`\
|
|
152
152
|
* Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances as objects even when they include only the `value` property. Default value: `false`. View an example below.
|
|
153
153
|
*
|
|
154
|
-
* - `itemValueSerializeDisplayText`: `
|
|
154
|
+
* - `itemValueSerializeDisplayText`: `boolean`\
|
|
155
155
|
* Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`. View an example below.
|
|
156
156
|
*
|
|
157
|
-
* - `localizableStringSerializeAsObject`: `
|
|
157
|
+
* - `localizableStringSerializeAsObject`: `boolean`\
|
|
158
158
|
* Enable this property if you want to serialize [`LocalizableString`](https://surveyjs.io/form-library/documentation/api-reference/localizablestring) instances as objects even when they include only a translation string for the default locale. For example, `"Custom String"` will be serialized as `{ default: "Custom String" }`. Default value: `false`.
|
|
159
159
|
*
|
|
160
160
|
* ```js
|
|
@@ -193,7 +193,7 @@ export declare var settings: {
|
|
|
193
193
|
*
|
|
194
194
|
* Nested properties:
|
|
195
195
|
*
|
|
196
|
-
* - `enabled`: `
|
|
196
|
+
* - `enabled`: `boolean`\
|
|
197
197
|
* Specifies whether to add questions to the DOM only when they get into the viewport. Default value: `false`.
|
|
198
198
|
*
|
|
199
199
|
* > Lazy rendering is an experimental feature that may not work as expected in all use cases.
|
|
@@ -212,28 +212,28 @@ export declare var settings: {
|
|
|
212
212
|
*
|
|
213
213
|
* Nested properties:
|
|
214
214
|
*
|
|
215
|
-
* - `defaultRowName`: `
|
|
215
|
+
* - `defaultRowName`: `string`\
|
|
216
216
|
* A property key that stores an object with default cell values. Default value: "default".
|
|
217
217
|
*
|
|
218
|
-
* - `defaultCellType`: `
|
|
218
|
+
* - `defaultCellType`: `string`\
|
|
219
219
|
* The default type of matrix cells. Default value: `"dropdown"`.\
|
|
220
220
|
* You can specify this setting for individual questions or matrix columns: [`cellType`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model#cellType). Refer to the `cellType` property description for information on possible values.
|
|
221
221
|
*
|
|
222
|
-
* - `totalsSuffix`: `
|
|
222
|
+
* - `totalsSuffix`: `string`\
|
|
223
223
|
* A suffix added to the name of the property that stores total values. The resulting property name consists of the matrix name and the suffix. Default value: `"-total"`.
|
|
224
224
|
*
|
|
225
|
-
* - `maxRowCount`: `
|
|
225
|
+
* - `maxRowCount`: `number`\
|
|
226
226
|
* A maximum number of rows in a Dynamic Matrix. Default value: 1000.\
|
|
227
227
|
* You can specify this setting for an individual Dynamic Matrix: [`maxRowCount`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model#maxRowCount).
|
|
228
228
|
*
|
|
229
|
-
* - `maxRowCountInCondition`: `
|
|
229
|
+
* - `maxRowCountInCondition`: `number`\
|
|
230
230
|
* A maximum number of matrix rows included in the Condition drop-down menu in Survey Creator. This menu is used to configure conditional survey logic. Default value: 1.\
|
|
231
231
|
* If you set this property to 0, the Condition menu does not include any matrix rows. Users still can specify conditions that use matrix rows but only with Manual Entry.
|
|
232
232
|
*
|
|
233
|
-
* - `renderRemoveAsIcon`: `
|
|
233
|
+
* - `renderRemoveAsIcon`: `boolean`\
|
|
234
234
|
* Disable this property if you want to render the Remove action in Dynamic Matrix as a button. Otherwise, the action is rendered as an icon. Default value: `true`.
|
|
235
235
|
*
|
|
236
|
-
* - `columnWidthsByType`: `
|
|
236
|
+
* - `columnWidthsByType`: `object`\
|
|
237
237
|
* An object that specifies fixed and minimum column width based on the column type.\
|
|
238
238
|
* Example: `settings.matrix.columnWidthsByType = { "tagbox": { minWidth: "240px", width: "300px" } }`
|
|
239
239
|
*
|
|
@@ -284,11 +284,11 @@ export declare var settings: {
|
|
|
284
284
|
*
|
|
285
285
|
* Nested properties:
|
|
286
286
|
*
|
|
287
|
-
* - `maxPanelCount`: `
|
|
287
|
+
* - `maxPanelCount`: `number`\
|
|
288
288
|
* A maximum number of panels in Dynamic Panel. Default value: 100.\
|
|
289
289
|
* You can specify this setting for an individual Dynamic Panel: [`maxPanelCount`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#maxPanelCount).
|
|
290
290
|
*
|
|
291
|
-
* - `maxPanelCountInCondition`: `
|
|
291
|
+
* - `maxPanelCountInCondition`: `number`\
|
|
292
292
|
* A maximum number of Dynamic Panel panels included in the Condition drop-down menu in Survey Creator. This menu is used to configure conditional survey logic. Default value: 1.\
|
|
293
293
|
* If you set this property to 0, the Condition menu does not include any panel questions. Users still can specify conditions that use panel questions but only with Manual Entry.
|
|
294
294
|
*/
|
|
@@ -333,10 +333,10 @@ export declare var settings: {
|
|
|
333
333
|
*
|
|
334
334
|
* Nested properties:
|
|
335
335
|
*
|
|
336
|
-
* - `includeQuestionsWithHiddenNumber`: `
|
|
336
|
+
* - `includeQuestionsWithHiddenNumber`: `boolean`\
|
|
337
337
|
* Specifies whether to number questions whose [`hideNumber`](https://surveyjs.io/form-library/documentation/api-reference/question#hideNumber) property is enabled. Default value: `false`.
|
|
338
338
|
*
|
|
339
|
-
* - `includeQuestionsWithHiddenTitle`: `
|
|
339
|
+
* - `includeQuestionsWithHiddenTitle`: `boolean`\
|
|
340
340
|
* Specifies whether to number questions whose [`titleLocation`](https://surveyjs.io/form-library/documentation/api-reference/question#titleLocation) property is set to `"hidden"`. Default value: `false`.
|
|
341
341
|
*/
|
|
342
342
|
numbering: {
|
|
@@ -366,10 +366,10 @@ export declare var settings: {
|
|
|
366
366
|
*
|
|
367
367
|
* Nested properties:
|
|
368
368
|
*
|
|
369
|
-
* - `trimStrings`: `
|
|
369
|
+
* - `trimStrings`: `boolean`\
|
|
370
370
|
* Specifies whether to remove whitespace from both ends of a string before the comparison. Default value: `true`.
|
|
371
371
|
*
|
|
372
|
-
* - `caseSensitive`: `
|
|
372
|
+
* - `caseSensitive`: `boolean`\
|
|
373
373
|
* Specifies whether to differentiate between capital and lower-case letters. Default value: `false`.
|
|
374
374
|
*/
|
|
375
375
|
comparator: {
|
|
@@ -406,16 +406,27 @@ export declare var settings: {
|
|
|
406
406
|
*/
|
|
407
407
|
tagboxCloseOnSelect: boolean;
|
|
408
408
|
/**
|
|
409
|
-
* A property that allows you to display a custom confirm dialog
|
|
409
|
+
* A property that allows you to display a custom confirm dialog.
|
|
410
410
|
*
|
|
411
411
|
* Set this property to a function that renders your custom dialog window. This function should return `true` if a user confirms an action or `false` otherwise.
|
|
412
412
|
* @param message A message to be displayed in the confirm dialog window.
|
|
413
413
|
*/
|
|
414
414
|
confirmActionFunc: (message: string) => boolean;
|
|
415
415
|
/**
|
|
416
|
-
* A property that allows you to display a custom confirm dialog
|
|
416
|
+
* A property that allows you to display a custom confirm dialog in async mode or activate the standard browser dialog.
|
|
417
417
|
*
|
|
418
|
-
*
|
|
418
|
+
* To display a custom confirm dialog, set this property to a function that renders it. This function should return `true` to be enabled; otherwise, a survey executes the [`confirmActionFunc`](#confirmActionFunc) function. Pass the dialog result as the `callback` parameter: `true` if a user confirms an action, `false` otherwise.
|
|
419
|
+
*
|
|
420
|
+
* To activate the standard browser dialog, set the `confirmActionAsync` property to a function that returns `false`. With this configuration, a survey falls back to the [`confirmActionFunc`](#confirmActionFunc) function, which renders the standard browser dialog by default.
|
|
421
|
+
*
|
|
422
|
+
* ```js
|
|
423
|
+
* import { settings } from "survey-core";
|
|
424
|
+
*
|
|
425
|
+
* // Display the standard browser dialog
|
|
426
|
+
* settings.confirmActionAsync = () => {
|
|
427
|
+
* return false;
|
|
428
|
+
* }
|
|
429
|
+
* ```
|
|
419
430
|
* @param message A message to be displayed in the confirm dialog window.
|
|
420
431
|
* @param callback A callback function that should be called with `true` if a user confirms an action or `false` otherwise.
|
|
421
432
|
*/
|
|
@@ -447,7 +458,7 @@ export declare var settings: {
|
|
|
447
458
|
*
|
|
448
459
|
* Nested properties:
|
|
449
460
|
*
|
|
450
|
-
* - `lifetime`: `
|
|
461
|
+
* - `lifetime`: `number`\
|
|
451
462
|
* Specifies a time period during which a notification is displayed; measured in milliseconds.
|
|
452
463
|
*/
|
|
453
464
|
notifications: {
|
|
@@ -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
|
*
|
|
@@ -625,6 +629,10 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
625
629
|
onDynamicPanelItemValueChanged: EventBase<SurveyModel, DynamicPanelItemValueChangedEvent>;
|
|
626
630
|
/**
|
|
627
631
|
* An event that is raised before a [Dynamic Panel](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/) renders [tab titles](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#templateTabTitle). Use this event to change individual tab titles.
|
|
632
|
+
*
|
|
633
|
+
* For information on event handler parameters, refer to descriptions within the interface.
|
|
634
|
+
*
|
|
635
|
+
* [View Demo](/form-library/examples/tabbed-interface-for-duplicate-group-option/ (linkStyle))
|
|
628
636
|
*/
|
|
629
637
|
onGetDynamicPanelTabTitle: EventBase<SurveyModel, DynamicPanelGetTabTitleEvent>;
|
|
630
638
|
/**
|
|
@@ -647,10 +655,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
647
655
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
648
656
|
*
|
|
649
657
|
* [View Demo](https://surveyjs.io/form-library/examples/survey-titleactions/ (linkStyle))
|
|
658
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
|
650
659
|
*/
|
|
651
660
|
onGetQuestionTitleActions: EventBase<SurveyModel, GetQuestionTitleActionsEvent>;
|
|
652
661
|
/**
|
|
653
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)
|
|
654
664
|
*/
|
|
655
665
|
onGetPanelTitleActions: EventBase<SurveyModel, GetPanelTitleActionsEvent>;
|
|
656
666
|
/**
|
|
@@ -659,10 +669,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
659
669
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
660
670
|
*
|
|
661
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)
|
|
662
673
|
*/
|
|
663
674
|
onGetPageTitleActions: EventBase<SurveyModel, GetPageTitleActionsEvent>;
|
|
664
675
|
/**
|
|
665
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)
|
|
666
678
|
*/
|
|
667
679
|
onGetPanelFooterActions: EventBase<SurveyModel, GetPanelFooterActionsEvent>;
|
|
668
680
|
/**
|
|
@@ -671,7 +683,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
671
683
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
672
684
|
*
|
|
673
685
|
* [View Demo](https://surveyjs.io/form-library/examples/employee-information-form/ (linkStyle))
|
|
674
|
-
* @see IAction
|
|
686
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
|
675
687
|
*/
|
|
676
688
|
onGetMatrixRowActions: EventBase<SurveyModel, GetMatrixRowActionsEvent>;
|
|
677
689
|
/**
|
|
@@ -734,7 +746,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
734
746
|
loadingBodyCss: string;
|
|
735
747
|
containerCss: string;
|
|
736
748
|
fitToContainer: boolean;
|
|
737
|
-
|
|
749
|
+
headerView: "advanced" | "basic";
|
|
738
750
|
private getNavigationCss;
|
|
739
751
|
private lazyRenderingValue;
|
|
740
752
|
showBrandInfo: boolean;
|
|
@@ -1221,12 +1233,10 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1221
1233
|
*/
|
|
1222
1234
|
get backgroundOpacity(): number;
|
|
1223
1235
|
set backgroundOpacity(val: number);
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
backgroundAttachment: ImageAttachment;
|
|
1229
|
-
};
|
|
1236
|
+
backgroundImageStyle: any;
|
|
1237
|
+
updateBackgroundImageStyle(): void;
|
|
1238
|
+
wrapperFormCss: string;
|
|
1239
|
+
updateWrapperFormCss(): void;
|
|
1230
1240
|
/**
|
|
1231
1241
|
* HTML content displayed on the [complete page](https://surveyjs.io/form-library/documentation/design-survey/create-a-multi-page-survey#complete-page).
|
|
1232
1242
|
*
|
|
@@ -1662,11 +1672,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1662
1672
|
get completedState(): string;
|
|
1663
1673
|
get completedStateText(): string;
|
|
1664
1674
|
protected setCompletedState(value: string, text: string): void;
|
|
1665
|
-
notify(message: string, type: string): void;
|
|
1675
|
+
notify(message: string, type: string, showActions?: boolean): void;
|
|
1666
1676
|
/**
|
|
1667
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"`.
|
|
1668
|
-
* @param clearData *Optional
|
|
1669
|
-
* @param goToFirstPage *Optional
|
|
1678
|
+
* @param clearData *(Optional)* Specifies whether to clear survey data. Default value: `true`.
|
|
1679
|
+
* @param goToFirstPage *(Optional)* Specifies whether to switch the survey to the first page. Default value: `true`.
|
|
1670
1680
|
*/
|
|
1671
1681
|
clear(clearData?: boolean, goToFirstPage?: boolean): void;
|
|
1672
1682
|
mergeValues(src: any, dest: any): void;
|
|
@@ -1762,7 +1772,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1762
1772
|
* Validates all questions on the current page and returns `false` if the validation fails.
|
|
1763
1773
|
*
|
|
1764
1774
|
* If you use validation expressions and at least one of them calls an async function, the `validateCurrentPage` method returns `undefined`. In this case, you should pass a callback function as the `onAsyncValidation` parameter. The function's `hasErrors` Boolean parameter will contain the validation result.
|
|
1765
|
-
* @param onAsyncValidation *Optional
|
|
1775
|
+
* @param onAsyncValidation *(Optional)* Pass a callback function. It accepts a Boolean `hasErrors` parameter that equals `true` if the validation fails or `false` otherwise.
|
|
1766
1776
|
* @see currentPage
|
|
1767
1777
|
* @see validate
|
|
1768
1778
|
* @see validateCurrentPage
|
|
@@ -1774,7 +1784,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1774
1784
|
*
|
|
1775
1785
|
* If you use validation expressions and at least one of them calls an async function, the `validatePage` method returns `undefined`. In this case, you should pass a callback function as the `onAsyncValidation` parameter. The function's `hasErrors` Boolean parameter will contain the validation result.
|
|
1776
1786
|
* @param page Pass the `PageModel` that you want to validate. You can pass `undefined` to validate the [`activePage`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#activePage).
|
|
1777
|
-
* @param onAsyncValidation *Optional
|
|
1787
|
+
* @param onAsyncValidation *(Optional)* Pass a callback function. It accepts a Boolean `hasErrors` parameter that equals `true` if the validation fails or `false` otherwise.
|
|
1778
1788
|
* @see validate
|
|
1779
1789
|
* @see validateCurrentPage
|
|
1780
1790
|
*/
|
|
@@ -1784,9 +1794,9 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1784
1794
|
* Validates all questions and returns `false` if the validation fails.
|
|
1785
1795
|
*
|
|
1786
1796
|
* If you use validation expressions and at least one of them calls an async function, the `validate` method returns `undefined`. In this case, you should pass a callback function as the `onAsyncValidation` parameter. The function's `hasErrors` Boolean parameter will contain the validation result.
|
|
1787
|
-
* @param fireCallback *Optional
|
|
1788
|
-
* @param focusOnFirstError *Optional
|
|
1789
|
-
* @param onAsyncValidation *Optional
|
|
1797
|
+
* @param fireCallback *(Optional)* Pass `false` if you do not want to show validation errors in the UI.
|
|
1798
|
+
* @param focusOnFirstError *(Optional)* Pass `true` if you want to focus the first question with a validation error. The survey will be switched to the page that contains this question if required.
|
|
1799
|
+
* @param onAsyncValidation *(Optional)* Pass a callback function. It accepts a Boolean `hasErrors` parameter that equals `true` if the validation fails or `false` otherwise.
|
|
1790
1800
|
* @see validateCurrentPage
|
|
1791
1801
|
* @see validatePage
|
|
1792
1802
|
*/
|
|
@@ -2656,13 +2666,13 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2656
2666
|
*
|
|
2657
2667
|
* This method accepts an object with the following layout element properties:
|
|
2658
2668
|
*
|
|
2659
|
-
* - `id`: `
|
|
2669
|
+
* - `id`: `string` | `"timerpanel"` | `"progress-buttons"` | `"progress-questions"` | `"progress-pages"` | `"progress-correctquestions"` | `"progress-requiredquestions"` | `"toc-navigation"` | `"navigationbuttons"`\
|
|
2660
2670
|
* A layout element identifier. You can use possible values to access and relocate or customize predefined layout elements.
|
|
2661
2671
|
*
|
|
2662
2672
|
* - `container`: `"header"` | `"footer"` | `"left"` | `"right"` | `"contentTop"` | `"contentBottom"`\
|
|
2663
2673
|
* A layout container that holds the element. If you want to display the element within multiple containers, set this property to an array of possible values.
|
|
2664
2674
|
*
|
|
2665
|
-
* - `component`: `
|
|
2675
|
+
* - `component`: `string`\
|
|
2666
2676
|
* The name of the component that renders the layout element.
|
|
2667
2677
|
*
|
|
2668
2678
|
* - `data`: `any`\
|
|
@@ -2676,6 +2686,13 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2676
2686
|
removeLayoutElement(layoutElementId: string): ISurveyLayoutElement;
|
|
2677
2687
|
getContainerContent(container: LayoutElementContainer): any[];
|
|
2678
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
|
+
*/
|
|
2679
2696
|
applyTheme(theme: ITheme): void;
|
|
2680
2697
|
/**
|
|
2681
2698
|
* Disposes of the survey model.
|
package/typings/surveyToc.d.ts
CHANGED
|
@@ -11,10 +11,11 @@ export declare function getTocRootCss(survey: SurveyModel, isMobile?: boolean):
|
|
|
11
11
|
export declare class TOCModel {
|
|
12
12
|
survey: SurveyModel;
|
|
13
13
|
constructor(survey: SurveyModel);
|
|
14
|
-
isMobile: boolean;
|
|
14
|
+
get isMobile(): boolean;
|
|
15
15
|
get containerCss(): string;
|
|
16
16
|
listModel: ListModel<Action>;
|
|
17
17
|
popupModel: PopupModel;
|
|
18
18
|
icon: string;
|
|
19
19
|
togglePopup: () => void;
|
|
20
|
+
dispose(): void;
|
|
20
21
|
}
|
package/typings/themes.d.ts
CHANGED
|
@@ -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/trigger.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare class Trigger extends Base {
|
|
|
28
28
|
protected canBeExecutedOnComplete(): boolean;
|
|
29
29
|
protected isExecutingOnNextPage: boolean;
|
|
30
30
|
checkExpression(isOnNextPage: boolean, isOnComplete: boolean, keys: any, values: HashTable<any>, properties?: HashTable<any>): void;
|
|
31
|
+
protected canSuccessOnEmptyExpression(): boolean;
|
|
31
32
|
check(value: any): void;
|
|
32
33
|
get requireValidQuestion(): boolean;
|
|
33
34
|
private perform;
|
|
@@ -40,6 +41,7 @@ export declare class Trigger extends Base {
|
|
|
40
41
|
private onExpressionChanged;
|
|
41
42
|
buildExpression(): string;
|
|
42
43
|
private isCheckRequired;
|
|
44
|
+
protected getUsedVariables(): string[];
|
|
43
45
|
private createConditionRunner;
|
|
44
46
|
private get isRequireValue();
|
|
45
47
|
}
|
|
@@ -145,4 +147,6 @@ export declare class SurveyTriggerCopyValue extends SurveyTrigger {
|
|
|
145
147
|
set copyDisplayValue(val: boolean);
|
|
146
148
|
getType(): string;
|
|
147
149
|
protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void;
|
|
150
|
+
protected canSuccessOnEmptyExpression(): boolean;
|
|
151
|
+
protected getUsedVariables(): string[];
|
|
148
152
|
}
|
package/typings/utils/utils.d.ts
CHANGED
|
@@ -40,4 +40,5 @@ export declare class Logger {
|
|
|
40
40
|
log(action: string): void;
|
|
41
41
|
get result(): string;
|
|
42
42
|
}
|
|
43
|
+
export declare function showConfirmDialog(message: string, callback: (res: boolean) => void): boolean;
|
|
43
44
|
export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, };
|