survey-core 1.9.115 → 1.9.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/defaultV2.css +121 -87
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +121 -87
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/basque.js +1 -1
- package/i18n/basque.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/catalan.js +1 -1
- package/i18n/catalan.min.js +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/estonian.js +1 -1
- package/i18n/estonian.min.js +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/georgian.js +1 -1
- package/i18n/georgian.min.js +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hindi.js +1 -1
- package/i18n/hindi.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/icelandic.js +1 -1
- package/i18n/icelandic.min.js +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/kazakh.js +1 -1
- package/i18n/kazakh.min.js +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/latvian.js +1 -1
- package/i18n/latvian.min.js +1 -1
- package/i18n/lithuanian.js +1 -1
- package/i18n/lithuanian.min.js +1 -1
- package/i18n/macedonian.js +1 -1
- package/i18n/macedonian.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/nl-BE.js +1 -1
- package/i18n/nl-BE.min.js +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +1 -1
- package/i18n/portuguese-br.js +1 -1
- package/i18n/portuguese-br.min.js +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +1 -1
- package/i18n/serbian.js +1 -1
- package/i18n/serbian.min.js +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +1 -1
- package/i18n/swahili.js +1 -1
- package/i18n/swahili.min.js +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/telugu.js +1 -1
- package/i18n/telugu.min.js +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +1 -1
- package/i18n/ukrainian.js +1 -1
- package/i18n/ukrainian.min.js +1 -1
- package/i18n/urdu.js +1 -1
- package/i18n/urdu.min.js +1 -1
- package/i18n/vietnamese.js +1 -1
- package/i18n/vietnamese.min.js +1 -1
- package/i18n/welsh.js +1 -1
- package/i18n/welsh.min.js +1 -1
- package/modern.css +20 -11
- package/modern.css.map +1 -1
- package/modern.fontless.css +20 -11
- 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 +348 -135
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +11 -2
- package/survey.css.map +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +2 -2
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/actions/action.d.ts +7 -7
- package/ts3.4/typings/console-warnings.d.ts +1 -0
- package/ts3.4/typings/dropdownListModel.d.ts +2 -1
- package/ts3.4/typings/localizablestring.d.ts +0 -1
- package/ts3.4/typings/martixBase.d.ts +1 -0
- package/ts3.4/typings/question.d.ts +3 -0
- package/ts3.4/typings/question_baseselect.d.ts +12 -2
- package/ts3.4/typings/question_checkbox.d.ts +5 -2
- package/ts3.4/typings/question_comment.d.ts +1 -0
- package/ts3.4/typings/question_custom.d.ts +7 -1
- package/ts3.4/typings/question_imagepicker.d.ts +2 -1
- package/ts3.4/typings/question_multipletext.d.ts +1 -1
- package/ts3.4/typings/question_paneldynamic.d.ts +2 -2
- package/ts3.4/typings/question_rating.d.ts +8 -8
- package/ts3.4/typings/question_signaturepad.d.ts +30 -1
- package/ts3.4/typings/settings.d.ts +5 -0
- package/ts3.4/typings/survey-events-api.d.ts +3 -3
- package/ts3.4/typings/survey.d.ts +13 -13
- package/typings/actions/action.d.ts +7 -7
- package/typings/console-warnings.d.ts +1 -0
- package/typings/dropdownListModel.d.ts +2 -1
- package/typings/localizablestring.d.ts +0 -1
- package/typings/martixBase.d.ts +1 -0
- package/typings/question.d.ts +3 -0
- package/typings/question_baseselect.d.ts +12 -2
- package/typings/question_checkbox.d.ts +5 -2
- package/typings/question_comment.d.ts +1 -0
- package/typings/question_custom.d.ts +7 -1
- package/typings/question_imagepicker.d.ts +2 -1
- package/typings/question_multipletext.d.ts +1 -1
- package/typings/question_paneldynamic.d.ts +2 -2
- package/typings/question_rating.d.ts +8 -8
- package/typings/question_signaturepad.d.ts +30 -1
- package/typings/settings.d.ts +5 -0
- package/typings/survey-events-api.d.ts +3 -3
- package/typings/survey.d.ts +13 -13
|
@@ -22,7 +22,7 @@ export declare class MultipleTextEditorModel extends QuestionTextModel {
|
|
|
22
22
|
/**
|
|
23
23
|
* A class that describes an item in a [Multiple Textboxes](https://surveyjs.io/form-library/documentation/api-reference/multiple-text-entry-question-model) question.
|
|
24
24
|
*
|
|
25
|
-
* [View Demo](/form-library/examples/multiple-text-box-question/)
|
|
25
|
+
* [View Demo](https://surveyjs.io/form-library/examples/multiple-text-box-question/)
|
|
26
26
|
*/
|
|
27
27
|
export declare class MultipleTextItemModel extends Base implements IValidatorOwner, ISurveyData, ISurveyImpl {
|
|
28
28
|
private editorValue;
|
|
@@ -120,7 +120,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
120
120
|
*
|
|
121
121
|
* 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.
|
|
122
122
|
*
|
|
123
|
-
* [View Demo](/form-library/examples/tabbed-interface-for-duplicate-group-option/ (linkStyle))
|
|
123
|
+
* [View Demo](https://surveyjs.io/form-library/examples/tabbed-interface-for-duplicate-group-option/ (linkStyle))
|
|
124
124
|
* @see templateTitle
|
|
125
125
|
* @see renderMode
|
|
126
126
|
*/
|
|
@@ -409,7 +409,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
409
409
|
* - `"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/)
|
|
410
410
|
* - `"progressBottom"` - Renders each panel panel as a card and displays a progress bar at the bottom.
|
|
411
411
|
* - `"progressTopBottom"` - Renders each panel as a card and displays a progress bar at the top and bottom.
|
|
412
|
-
* - `"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/)
|
|
412
|
+
* - `"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](https://surveyjs.io/form-library/examples/tabbed-interface-for-duplicate-group-option/)
|
|
413
413
|
*/
|
|
414
414
|
get renderMode(): string;
|
|
415
415
|
set renderMode(val: string);
|
|
@@ -57,7 +57,7 @@ export declare class QuestionRatingModel extends Question {
|
|
|
57
57
|
*
|
|
58
58
|
* If you do not specify the `rateValues` property, rate values are generated automatically based upon the [`rateMin`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMin), [`rateMax`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMax), [`rateStep`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateStep), and [`rateCount`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateCount) property values.
|
|
59
59
|
*
|
|
60
|
-
* [View Demo](/form-library/examples/rating-scale/ (linkStyle))
|
|
60
|
+
* [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
|
|
61
61
|
*/
|
|
62
62
|
get rateValues(): Array<any>;
|
|
63
63
|
set rateValues(val: Array<any>);
|
|
@@ -66,7 +66,7 @@ export declare class QuestionRatingModel extends Question {
|
|
|
66
66
|
*
|
|
67
67
|
* Default value: 1
|
|
68
68
|
*
|
|
69
|
-
* [View Demo](/form-library/examples/rating-scale/ (linkStyle))
|
|
69
|
+
* [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
|
|
70
70
|
* @see rateMax
|
|
71
71
|
* @see rateStep
|
|
72
72
|
* @see rateCount
|
|
@@ -78,7 +78,7 @@ export declare class QuestionRatingModel extends Question {
|
|
|
78
78
|
*
|
|
79
79
|
* Default value: 5
|
|
80
80
|
*
|
|
81
|
-
* [View Demo](/form-library/examples/rating-scale/ (linkStyle))
|
|
81
|
+
* [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
|
|
82
82
|
* @see rateMin
|
|
83
83
|
* @see rateStep
|
|
84
84
|
* @see rateCount
|
|
@@ -90,7 +90,7 @@ export declare class QuestionRatingModel extends Question {
|
|
|
90
90
|
*
|
|
91
91
|
* Default value: 1
|
|
92
92
|
*
|
|
93
|
-
* [View Demo](/form-library/examples/rating-scale/ (linkStyle))
|
|
93
|
+
* [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
|
|
94
94
|
* @see rateMin
|
|
95
95
|
* @see rateMax
|
|
96
96
|
* @see rateCount
|
|
@@ -102,7 +102,7 @@ export declare class QuestionRatingModel extends Question {
|
|
|
102
102
|
*
|
|
103
103
|
* Set the [`rateMin`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMin) or [`rateMax`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMax) property to specify the first or the last rate value. Use the [`rateStep`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateStep) property to specify a step with which to generate rate values.
|
|
104
104
|
*
|
|
105
|
-
* [View Demo](/form-library/examples/rating-scale/ (linkStyle))
|
|
105
|
+
* [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
|
|
106
106
|
*/
|
|
107
107
|
rateCount: number;
|
|
108
108
|
private static colorsCalculated;
|
|
@@ -171,7 +171,7 @@ export declare class QuestionRatingModel extends Question {
|
|
|
171
171
|
* - `"dropdown"` - Displays rate values as items in a drop-down list.
|
|
172
172
|
* - `"auto"` (default) - Selects between the `"buttons"` and `"dropdown"` modes based on the available width. When the width is insufficient to display buttons, the question displays a dropdown.
|
|
173
173
|
*
|
|
174
|
-
* [View Demo](/form-library/examples/ui-adaptation-modes-for-rating-scale/ (linkStyle))
|
|
174
|
+
* [View Demo](https://surveyjs.io/form-library/examples/ui-adaptation-modes-for-rating-scale/ (linkStyle))
|
|
175
175
|
* @see rateType
|
|
176
176
|
*/
|
|
177
177
|
displayMode: "dropdown" | "buttons" | "auto";
|
|
@@ -184,7 +184,7 @@ export declare class QuestionRatingModel extends Question {
|
|
|
184
184
|
* - `"stars"` - Displays rate values as stars.
|
|
185
185
|
* - `"smileys"` - Displays rate values as smiley faces.
|
|
186
186
|
*
|
|
187
|
-
* [View Demo](/form-library/examples/rating-scale/ (linkStyle))
|
|
187
|
+
* [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
|
|
188
188
|
* @see scaleColorMode
|
|
189
189
|
* @see rateColorMode
|
|
190
190
|
* @see displayMode
|
|
@@ -200,7 +200,7 @@ export declare class QuestionRatingModel extends Question {
|
|
|
200
200
|
* - `"monochrome"` (default) - Displays emojis in monochrome.
|
|
201
201
|
* - `"colored"` - Displays emojis in color.
|
|
202
202
|
*
|
|
203
|
-
* [View Demo](/form-library/examples/rating-scale/ (linkStyle))
|
|
203
|
+
* [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
|
|
204
204
|
* @see rateColorMode
|
|
205
205
|
*/
|
|
206
206
|
scaleColorMode: "monochrome" | "colored";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Question } from "./question";
|
|
2
2
|
import { ITheme } from "./themes";
|
|
3
|
-
export declare function getCanvasRatio(canvas: HTMLCanvasElement): number;
|
|
4
3
|
/**
|
|
5
4
|
* A class that describes the Signature question type.
|
|
6
5
|
*
|
|
@@ -17,6 +16,13 @@ export declare class QuestionSignaturePadModel extends Question {
|
|
|
17
16
|
afterRenderQuestionElement(el: HTMLElement): void;
|
|
18
17
|
beforeDestroyQuestionElement(el: HTMLElement): void;
|
|
19
18
|
themeChanged(theme: ITheme): void;
|
|
19
|
+
private canvas;
|
|
20
|
+
private scale;
|
|
21
|
+
private valueIsUpdatingInternally;
|
|
22
|
+
private resizeCanvas;
|
|
23
|
+
private scaleCanvas;
|
|
24
|
+
private refreshCanvas;
|
|
25
|
+
private updateValueHandler;
|
|
20
26
|
initSignaturePad(el: HTMLElement): void;
|
|
21
27
|
destroySignaturePad(el: HTMLElement): void;
|
|
22
28
|
/**
|
|
@@ -40,6 +46,29 @@ export declare class QuestionSignaturePadModel extends Question {
|
|
|
40
46
|
*/
|
|
41
47
|
get signatureHeight(): number;
|
|
42
48
|
set signatureHeight(val: number);
|
|
49
|
+
/**
|
|
50
|
+
* Specifies whether the signature area should be scaled to fit into the question width.
|
|
51
|
+
*
|
|
52
|
+
* Default value: `false`
|
|
53
|
+
*
|
|
54
|
+
* > The signature area is scaled only for display. The resulting image will have dimensions specified by the [`signatureHeight`](#signatureHeight) and [`signatureWidth`](#signatureWidth) properties.
|
|
55
|
+
*/
|
|
56
|
+
signatureAutoScaleEnabled: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Speicifies the minimum width of pen strokes, measured in pixels.
|
|
59
|
+
*
|
|
60
|
+
* Default value: 0.5
|
|
61
|
+
*/
|
|
62
|
+
penMinWidth: number;
|
|
63
|
+
/**
|
|
64
|
+
* Speicifies the maximum width of pen strokes, measured in pixels.
|
|
65
|
+
*
|
|
66
|
+
* Default value: 2.5
|
|
67
|
+
*/
|
|
68
|
+
penMaxWidth: number;
|
|
69
|
+
private get containerHeight();
|
|
70
|
+
private get containerWidth();
|
|
71
|
+
get renderedCanvasWidth(): string;
|
|
43
72
|
get height(): number;
|
|
44
73
|
set height(val: number);
|
|
45
74
|
/**
|
package/typings/settings.d.ts
CHANGED
|
@@ -485,6 +485,11 @@ export declare var settings: {
|
|
|
485
485
|
* Default value: `"none"`
|
|
486
486
|
*/
|
|
487
487
|
noneItemValue: string;
|
|
488
|
+
specialChoicesOrder: {
|
|
489
|
+
selectAllItem: number[];
|
|
490
|
+
noneItem: number[];
|
|
491
|
+
otherItem: number[];
|
|
492
|
+
};
|
|
488
493
|
/**
|
|
489
494
|
* A list of supported validators by question type.
|
|
490
495
|
*/
|
|
@@ -499,7 +499,7 @@ export interface LoadFilesEvent extends FileQuestionEventMixin {
|
|
|
499
499
|
}
|
|
500
500
|
export interface UploadFilesEvent extends LoadFilesEvent {
|
|
501
501
|
/**
|
|
502
|
-
* A callback function that you should call when a file is uploaded successfully or when file upload fails. Pass `"success"` or `"error"` to indicate the operation status
|
|
502
|
+
* A callback function that you should call when a file is uploaded successfully or when file upload fails. Pass `"success"` or `"error"` as the first argument to indicate the operation status. As the second argument, you can pass the uploaded file's data if file upload was successful or an error message if file upload failed.
|
|
503
503
|
*/
|
|
504
504
|
callback: (status: string, data?: any) => any;
|
|
505
505
|
/**
|
|
@@ -509,7 +509,7 @@ export interface UploadFilesEvent extends LoadFilesEvent {
|
|
|
509
509
|
}
|
|
510
510
|
export interface DownloadFileEvent extends LoadFilesEvent {
|
|
511
511
|
/**
|
|
512
|
-
* A callback function that you should call when a file is downloaded successfully or when deletion fails. Pass `"success"` or `"error"` to indicate the operation status
|
|
512
|
+
* A callback function that you should call when a file is downloaded successfully or when deletion fails. Pass `"success"` or `"error"` as the first argument to indicate the operation status. As the second argument, you can pass the downloaded file's data as a Base64 string if file download was successful or an error message if file download failed.
|
|
513
513
|
*/
|
|
514
514
|
callback: (status: string, data?: any) => any;
|
|
515
515
|
/**
|
|
@@ -523,7 +523,7 @@ export interface DownloadFileEvent extends LoadFilesEvent {
|
|
|
523
523
|
}
|
|
524
524
|
export interface ClearFilesEvent extends LoadFilesEvent {
|
|
525
525
|
/**
|
|
526
|
-
* A callback function that you should call when files are deleted successfully or when deletion fails. Pass `"success"` or `"error"` to indicate the operation status
|
|
526
|
+
* A callback function that you should call when files are deleted successfully or when deletion fails. Pass `"success"` or `"error"` as the first argument to indicate the operation status. As the second argument, you can pass deleted files' data (`options.value`) if file deletion was successful or an error message if file deletion failed.
|
|
527
527
|
*/
|
|
528
528
|
callback: (status: string, data?: any) => any;
|
|
529
529
|
/**
|
package/typings/survey.d.ts
CHANGED
|
@@ -410,16 +410,16 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
410
410
|
*
|
|
411
411
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
412
412
|
*
|
|
413
|
-
* [View Demo](/form-library/examples/customize-survey-with-css/ (linkStyle))
|
|
413
|
+
* [View Demo](https://surveyjs.io/form-library/examples/customize-survey-with-css/ (linkStyle))
|
|
414
414
|
* @see css
|
|
415
415
|
*/
|
|
416
416
|
onUpdateQuestionCssClasses: EventBase<SurveyModel, UpdateQuestionCssClassesEvent>;
|
|
417
417
|
/**
|
|
418
|
-
* An event that is raised before rendering a standalone panel and panels within [Dynamic Panel](/form-library/examples/duplicate-group-of-fields-in-form/). Use it to override default panel CSS classes.
|
|
418
|
+
* An event that is raised before rendering a standalone panel and panels within [Dynamic Panel](https://surveyjs.io/form-library/examples/duplicate-group-of-fields-in-form/). Use it to override default panel CSS classes.
|
|
419
419
|
*
|
|
420
420
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
421
421
|
*
|
|
422
|
-
* [View Demo](/form-library/examples/customize-survey-with-css/ (linkStyle))
|
|
422
|
+
* [View Demo](https://surveyjs.io/form-library/examples/customize-survey-with-css/ (linkStyle))
|
|
423
423
|
* @see css
|
|
424
424
|
*/
|
|
425
425
|
onUpdatePanelCssClasses: EventBase<SurveyModel, UpdatePanelCssClassesEvent>;
|
|
@@ -428,7 +428,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
428
428
|
*
|
|
429
429
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
430
430
|
*
|
|
431
|
-
* [View Demo](/form-library/examples/customize-survey-with-css/ (linkStyle))
|
|
431
|
+
* [View Demo](https://surveyjs.io/form-library/examples/customize-survey-with-css/ (linkStyle))
|
|
432
432
|
* @see css
|
|
433
433
|
*/
|
|
434
434
|
onUpdatePageCssClasses: EventBase<SurveyModel, UpdatePageCssClassesEvent>;
|
|
@@ -437,7 +437,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
437
437
|
*
|
|
438
438
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
439
439
|
*
|
|
440
|
-
* [View Demo](/form-library/examples/customize-survey-with-css/ (linkStyle))
|
|
440
|
+
* [View Demo](https://surveyjs.io/form-library/examples/customize-survey-with-css/ (linkStyle))
|
|
441
441
|
* @see css
|
|
442
442
|
*/
|
|
443
443
|
onUpdateChoiceItemCss: EventBase<SurveyModel, UpdateChoiceItemCssEvent>;
|
|
@@ -529,7 +529,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
529
529
|
*/
|
|
530
530
|
onMatrixRowAdding: EventBase<SurveyModel, MatrixBeforeRowAddedEvent>;
|
|
531
531
|
/**
|
|
532
|
-
* This event is obsolete. Use the [`onMatrixRowAdding`](/form-library/documentation/api-reference/survey-data-model#onMatrixRowAdding) event instead.
|
|
532
|
+
* This event is obsolete. Use the [`onMatrixRowAdding`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRowAdding) event instead.
|
|
533
533
|
*/
|
|
534
534
|
onMatrixBeforeRowAdded: EventBase<SurveyModel, MatrixBeforeRowAddedEvent>;
|
|
535
535
|
/**
|
|
@@ -549,7 +549,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
549
549
|
*/
|
|
550
550
|
onMatrixRenderRemoveButton: EventBase<SurveyModel, MatrixAllowRemoveRowEvent>;
|
|
551
551
|
/**
|
|
552
|
-
* This event is obsolete. Use the [`onMatrixRenderRemoveButton`](/form-library/documentation/api-reference/survey-data-model#onMatrixRenderRemoveButton) event instead.
|
|
552
|
+
* This event is obsolete. Use the [`onMatrixRenderRemoveButton`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRenderRemoveButton) event instead.
|
|
553
553
|
*/
|
|
554
554
|
onMatrixAllowRemoveRow: EventBase<SurveyModel, MatrixAllowRemoveRowEvent>;
|
|
555
555
|
/**
|
|
@@ -568,7 +568,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
568
568
|
*/
|
|
569
569
|
onAfterRenderMatrixCell: EventBase<SurveyModel, MatrixAfterCellRenderEvent>;
|
|
570
570
|
/**
|
|
571
|
-
* This event is obsolete. Use the [`onAfterRenderMatrixCell`](/form-library/documentation/api-reference/survey-data-model#onAfterRenderMatrixCell) event instead.
|
|
571
|
+
* This event is obsolete. Use the [`onAfterRenderMatrixCell`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onAfterRenderMatrixCell) event instead.
|
|
572
572
|
*/
|
|
573
573
|
onMatrixAfterCellRender: EventBase<SurveyModel, MatrixAfterCellRenderEvent>;
|
|
574
574
|
/**
|
|
@@ -626,7 +626,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
626
626
|
*
|
|
627
627
|
* For information on event handler parameters, refer to descriptions within the interface.
|
|
628
628
|
*
|
|
629
|
-
* [View Demo](/form-library/examples/tabbed-interface-for-duplicate-group-option/ (linkStyle))
|
|
629
|
+
* [View Demo](https://surveyjs.io/form-library/examples/tabbed-interface-for-duplicate-group-option/ (linkStyle))
|
|
630
630
|
*/
|
|
631
631
|
onGetDynamicPanelTabTitle: EventBase<SurveyModel, DynamicPanelGetTabTitleEvent>;
|
|
632
632
|
/**
|
|
@@ -720,7 +720,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
720
720
|
/**
|
|
721
721
|
* Gets or sets an object in which keys are UI elements and values are CSS classes applied to them.
|
|
722
722
|
*
|
|
723
|
-
* [View Demo](/form-library/examples/customize-survey-with-css/ (linkStyle))
|
|
723
|
+
* [View Demo](https://surveyjs.io/form-library/examples/customize-survey-with-css/ (linkStyle))
|
|
724
724
|
*/
|
|
725
725
|
get css(): any;
|
|
726
726
|
set css(value: any);
|
|
@@ -1907,7 +1907,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1907
1907
|
private changeCurrentPageFromPreview;
|
|
1908
1908
|
private origionalPages;
|
|
1909
1909
|
protected onQuestionsOnPageModeChanged(oldValue: string): void;
|
|
1910
|
-
private
|
|
1910
|
+
private restoreOriginalPages;
|
|
1911
1911
|
private getPageStartIndex;
|
|
1912
1912
|
private setupPagesForPageModes;
|
|
1913
1913
|
private createPagesForQuestionOnPageMode;
|
|
@@ -2696,8 +2696,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2696
2696
|
/**
|
|
2697
2697
|
* Applies a specified theme to the survey.
|
|
2698
2698
|
*
|
|
2699
|
-
* [Themes & Styles](/form-library/documentation/manage-default-themes-and-styles (linkStyle))
|
|
2700
|
-
* @param theme An [`ITheme`](/form-library/documentation/api-reference/itheme) object with theme settings.
|
|
2699
|
+
* [Themes & Styles](https://surveyjs.io/form-library/documentation/manage-default-themes-and-styles (linkStyle))
|
|
2700
|
+
* @param theme An [`ITheme`](https://surveyjs.io/form-library/documentation/api-reference/itheme) object with theme settings.
|
|
2701
2701
|
*/
|
|
2702
2702
|
applyTheme(theme: ITheme): void;
|
|
2703
2703
|
themeChanged(theme: ITheme): void;
|