survey-core 1.9.121 → 1.9.122
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 +56 -1
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +56 -1
- 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 +1 -1
- package/modern.fontless.css +1 -1
- package/modern.fontless.min.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/plugins/bootstrap-integration.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 +169 -74
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +1 -1
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/base-interfaces.d.ts +1 -0
- package/ts3.4/typings/base.d.ts +4 -4
- package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +3 -0
- package/ts3.4/typings/header.d.ts +1 -0
- package/ts3.4/typings/question_baseselect.d.ts +0 -1
- package/ts3.4/typings/question_checkbox.d.ts +1 -0
- package/ts3.4/typings/question_custom.d.ts +2 -0
- package/ts3.4/typings/question_file.d.ts +3 -0
- package/ts3.4/typings/question_imagepicker.d.ts +1 -3
- package/ts3.4/typings/question_multipletext.d.ts +1 -1
- package/ts3.4/typings/question_paneldynamic.d.ts +4 -4
- package/ts3.4/typings/question_rating.d.ts +18 -5
- package/ts3.4/typings/survey-events-api.d.ts +4 -2
- package/ts3.4/typings/survey.d.ts +15 -14
- package/typings/base-interfaces.d.ts +1 -0
- package/typings/base.d.ts +4 -4
- package/typings/defaultCss/defaultV2Css.d.ts +3 -0
- package/typings/header.d.ts +1 -0
- package/typings/question_baseselect.d.ts +0 -1
- package/typings/question_checkbox.d.ts +1 -0
- package/typings/question_custom.d.ts +2 -0
- package/typings/question_file.d.ts +3 -0
- package/typings/question_imagepicker.d.ts +1 -3
- package/typings/question_multipletext.d.ts +1 -1
- package/typings/question_paneldynamic.d.ts +4 -4
- package/typings/question_rating.d.ts +18 -5
- package/typings/survey-events-api.d.ts +4 -2
- package/typings/survey.d.ts +15 -14
package/themes/solid-light.js
CHANGED
|
@@ -149,6 +149,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
|
149
149
|
dynamicPanelRemoving(question: IQuestion, panelIndex: number, panel: IPanel): boolean;
|
|
150
150
|
dynamicPanelItemValueChanged(question: IQuestion, options: any): any;
|
|
151
151
|
dynamicPanelGetTabTitle(question: IQuestion, options: any): any;
|
|
152
|
+
dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
|
|
152
153
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
|
153
154
|
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean): any;
|
|
154
155
|
runExpression(expression: string): any;
|
package/ts3.4/typings/base.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export declare class Base {
|
|
|
68
68
|
* Returns `true` if a passed `value` is an empty string, array, or object or if it equals to `undefined` or `null`.
|
|
69
69
|
*
|
|
70
70
|
* @param value A value to be checked.
|
|
71
|
-
* @param trimString (Optional) When this parameter is `true`, the method ignores whitespace characters at the beginning and end of a string value. Pass `false` to disable this functionality.
|
|
71
|
+
* @param trimString *(Optional)* When this parameter is `true`, the method ignores whitespace characters at the beginning and end of a string value. Pass `false` to disable this functionality.
|
|
72
72
|
*/
|
|
73
73
|
isValueEmpty(value: any, trimString?: boolean): boolean;
|
|
74
74
|
protected trimValue(value: any): any;
|
|
@@ -200,7 +200,7 @@ export declare class Base {
|
|
|
200
200
|
* If the property is not found or does not have a value, this method returns either `undefined`, `defaultValue` specified in the property configuration, or a value passed as the `defaultValue` parameter.
|
|
201
201
|
*
|
|
202
202
|
* @param name A property name.
|
|
203
|
-
* @param defaultValue (Optional) A value to return if the property is not found or does not have a value.
|
|
203
|
+
* @param defaultValue *(Optional)* A value to return if the property is not found or does not have a value.
|
|
204
204
|
*/
|
|
205
205
|
getPropertyValue(name: string, defaultValue?: any): any;
|
|
206
206
|
getDefaultPropertyValue(name: string): any;
|
|
@@ -245,14 +245,14 @@ export declare class Base {
|
|
|
245
245
|
* Registers a function to call when a property value changes.
|
|
246
246
|
* @param propertyNames An array of one or multiple property names.
|
|
247
247
|
* @param handler A function to call when one of the listed properties change.
|
|
248
|
-
* @param key (Optional) A key that identifies the current registration. If a function for one of the properties is already registered with the same key, the function will be overwritten. You can also use the key to subsequently unregister handlers.
|
|
248
|
+
* @param key *(Optional)* A key that identifies the current registration. If a function for one of the properties is already registered with the same key, the function will be overwritten. You can also use the key to subsequently unregister handlers.
|
|
249
249
|
* @see unregisterPropertyChangedHandlers
|
|
250
250
|
*/
|
|
251
251
|
registerPropertyChangedHandlers(propertyNames: Array<string>, handler: any, key?: string): void;
|
|
252
252
|
/**
|
|
253
253
|
* Unregisters value change event handlers for the specified properties.
|
|
254
254
|
* @param propertyNames An array of one or multiple property names.
|
|
255
|
-
* @param key (Optional) A key of the registration that you want to cancel.
|
|
255
|
+
* @param key *(Optional)* A key of the registration that you want to cancel.
|
|
256
256
|
* @see registerPropertyChangedHandlers
|
|
257
257
|
*/
|
|
258
258
|
unregisterPropertyChangedHandlers(propertyNames: Array<string>, key?: string): void;
|
|
@@ -506,6 +506,9 @@ export declare var defaultV2Css: {
|
|
|
506
506
|
rootDropdown: string;
|
|
507
507
|
root: string;
|
|
508
508
|
rootWrappable: string;
|
|
509
|
+
rootLabelsTop: string;
|
|
510
|
+
rootLabelsBottom: string;
|
|
511
|
+
rootLabelsDiagonal: string;
|
|
509
512
|
item: string;
|
|
510
513
|
itemOnError: string;
|
|
511
514
|
itemHover: string;
|
|
@@ -76,4 +76,5 @@ export declare class Cover extends Base {
|
|
|
76
76
|
protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
77
77
|
calculateActualHeight(logoHeight: number, titleHeight: number, descriptionHeight: number): number;
|
|
78
78
|
processResponsiveness(width: number): void;
|
|
79
|
+
readonly hasBackground: boolean;
|
|
79
80
|
}
|
|
@@ -438,7 +438,6 @@ export declare class QuestionCheckboxBase extends QuestionSelectBase {
|
|
|
438
438
|
* @see separateSpecialChoices
|
|
439
439
|
*/
|
|
440
440
|
colCount: number;
|
|
441
|
-
clickItemHandler(item: ItemValue, checked: boolean): void;
|
|
442
441
|
protected onParentChanged(): void;
|
|
443
442
|
protected onParentQuestionChanged(): void;
|
|
444
443
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
|
@@ -56,6 +56,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
56
56
|
* @see clearValue
|
|
57
57
|
*/
|
|
58
58
|
selectAll(): void;
|
|
59
|
+
clickItemHandler(item: ItemValue, checked?: boolean): void;
|
|
59
60
|
protected isItemSelectedCore(item: ItemValue): boolean;
|
|
60
61
|
private getRealValue;
|
|
61
62
|
readonly isValueArray: boolean;
|
|
@@ -235,6 +235,8 @@ export declare abstract class QuestionCustomModelBase extends Question implement
|
|
|
235
235
|
getType(): string;
|
|
236
236
|
locStrsChanged(): void;
|
|
237
237
|
localeChanged(): void;
|
|
238
|
+
addUsedLocales(locales: Array<string>): void;
|
|
239
|
+
needResponsiveWidth(): boolean;
|
|
238
240
|
protected createWrapper(): void;
|
|
239
241
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
240
242
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
|
@@ -7,6 +7,9 @@ import { Action } from "./actions/action";
|
|
|
7
7
|
import { Camera } from "./utils/camera";
|
|
8
8
|
import { LocalizableString } from "./localizablestring";
|
|
9
9
|
export declare function dataUrl2File(dataUrl: string, fileName: string, type: string): File;
|
|
10
|
+
/**
|
|
11
|
+
* A base class for question types that support file upload: `QuestionFileModel` and `QuestionSignaturePadModel`.
|
|
12
|
+
*/
|
|
10
13
|
export declare class QuestionFileModelBase extends Question {
|
|
11
14
|
isUploading: boolean;
|
|
12
15
|
currentState: string;
|
|
@@ -93,10 +93,8 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
|
|
|
93
93
|
*
|
|
94
94
|
* Possible values:
|
|
95
95
|
*
|
|
96
|
-
* - `"image"` - Images in one of the following formats: JPEG, GIF, PNG, APNG, SVG, BMP, ICO.
|
|
96
|
+
* - `"image"` (default) - Images in one of the following formats: JPEG, GIF, PNG, APNG, SVG, BMP, ICO.
|
|
97
97
|
* - `"video"` - Videos in one of the following formats: MP4, MOV, WMV, FLV, AVI, MKV.
|
|
98
|
-
* - `"youtube"` - Links to YouTube videos.
|
|
99
|
-
* - `"auto"` (default) - Selects one of the above based on the `imageLink` property value of each choice item.
|
|
100
98
|
*/
|
|
101
99
|
contentMode: string;
|
|
102
100
|
protected convertDefaultValue(val: any): any;
|
|
@@ -163,7 +163,7 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
|
163
163
|
/**
|
|
164
164
|
* Adds a new input item.
|
|
165
165
|
* @param name An item name.
|
|
166
|
-
* @param title (Optional) An item title.
|
|
166
|
+
* @param title *(Optional)* An item title.
|
|
167
167
|
* @see items
|
|
168
168
|
*/
|
|
169
169
|
addItem(name: string, title?: string): MultipleTextItemModel;
|
|
@@ -453,13 +453,13 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
453
453
|
*/
|
|
454
454
|
addPanelUI(): PanelModel;
|
|
455
455
|
/**
|
|
456
|
-
*
|
|
457
|
-
* @
|
|
456
|
+
* Adds a new panel based on the [template](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#template).
|
|
457
|
+
* @param index *(Optional)* An index at which to insert the new panel. `undefined` adds the panel to the end or inserts it after the current panel if [`renderMode`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#renderMode) is `"tab"`. A negative index (for instance, -1) adds the panel to the end in all cases, regardless of the `renderMode` value.
|
|
458
458
|
* @see panelCount
|
|
459
459
|
* @see panels
|
|
460
|
-
* @see renderMode
|
|
461
460
|
*/
|
|
462
|
-
addPanel(): PanelModel;
|
|
461
|
+
addPanel(index?: number): PanelModel;
|
|
462
|
+
private updateValueOnAddingPanel;
|
|
463
463
|
private canLeaveCurrentPanel;
|
|
464
464
|
private copyValue;
|
|
465
465
|
/**
|
|
@@ -124,17 +124,19 @@ export declare class QuestionRatingModel extends Question {
|
|
|
124
124
|
protected getPlainDataCalculatedValue(propName: string): any;
|
|
125
125
|
/*
|
|
126
126
|
* Specifies a description for the minimum (first) rate value.
|
|
127
|
+
* @see rateDescriptionLocation
|
|
128
|
+
* @see displayRateDescriptionsAsExtremeItems
|
|
127
129
|
* @see rateValues
|
|
128
130
|
* @see rateMin
|
|
129
|
-
* @see displayRateDescriptionsAsExtremeItems
|
|
130
131
|
*/
|
|
131
132
|
minRateDescription: string;
|
|
132
133
|
readonly locMinRateDescription: LocalizableString;
|
|
133
134
|
/*
|
|
134
135
|
* Specifies a description for the maximum (last) rate value.
|
|
136
|
+
* @see rateDescriptionLocation
|
|
137
|
+
* @see displayRateDescriptionsAsExtremeItems
|
|
135
138
|
* @see rateValues
|
|
136
139
|
* @see rateMax
|
|
137
|
-
* @see displayRateDescriptionsAsExtremeItems
|
|
138
140
|
*/
|
|
139
141
|
maxRateDescription: string;
|
|
140
142
|
readonly locMaxRateDescription: LocalizableString;
|
|
@@ -143,15 +145,14 @@ export declare class QuestionRatingModel extends Question {
|
|
|
143
145
|
readonly hasMinLabel: boolean;
|
|
144
146
|
readonly hasMaxLabel: boolean;
|
|
145
147
|
/**
|
|
146
|
-
* Specifies whether to display `minRateDescription` and `maxRateDescription` values as captions for buttons that correspond to the extreme (first and last) rate values.
|
|
148
|
+
* Specifies whether to display [`minRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#minRateDescription) and [`maxRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#maxRateDescription) values as captions for buttons that correspond to the extreme (first and last) rate values.
|
|
147
149
|
*
|
|
148
150
|
* Default value: `false`
|
|
149
151
|
*
|
|
150
152
|
* If this property is disabled, the `minRateDescription` and `maxRateDescription` values are displayed as plain non-clickable texts.
|
|
151
153
|
*
|
|
152
154
|
* If any of the `minRateDescription` and `maxRateDescription` properties is empty, the corresponding rate value's `value` or `text` is displayed as a button caption.
|
|
153
|
-
* @see
|
|
154
|
-
* @see maxRateDescription
|
|
155
|
+
* @see rateDescriptionLocation
|
|
155
156
|
* @see rateMin
|
|
156
157
|
* @see rateMax
|
|
157
158
|
* @see rateValues
|
|
@@ -170,6 +171,18 @@ export declare class QuestionRatingModel extends Question {
|
|
|
170
171
|
* @see rateType
|
|
171
172
|
*/
|
|
172
173
|
displayMode: "dropdown" | "buttons" | "auto";
|
|
174
|
+
/**
|
|
175
|
+
* Specifies the alignment of [`minRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#minRateDescription) and [`maxRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#maxRateDescription) texts.
|
|
176
|
+
*
|
|
177
|
+
* Possible values:
|
|
178
|
+
*
|
|
179
|
+
* - `"leftRight"` (default) - Aligns `minRateDescription` to the left of rate values and `maxRateDescription` to their right.
|
|
180
|
+
* - `"top"` - Displays the descriptions above the minimum and maximum rate values.
|
|
181
|
+
* - `"bottom"` - Displays both descriptions below the minimum and maximum rate values.
|
|
182
|
+
* - `"topBottom"` - Displays `minRateDescription` above the minimum rate value and `maxRateDescription` below the maximum rate value.
|
|
183
|
+
* @see displayRateDescriptionsAsExtremeItems
|
|
184
|
+
*/
|
|
185
|
+
rateDescriptionLocation: "leftRight" | "top" | "bottom" | "topBottom";
|
|
173
186
|
/**
|
|
174
187
|
* Specifies the visual representation of rate values.
|
|
175
188
|
*
|
|
@@ -827,15 +827,17 @@ export interface DynamicPanelItemValueChangedEvent extends PanelDynamicQuestionE
|
|
|
827
827
|
*/
|
|
828
828
|
panel: PanelModel;
|
|
829
829
|
}
|
|
830
|
-
export interface
|
|
830
|
+
export interface DynamicPanelCurrentIndexChangedEvent extends PanelDynamicQuestionEventMixin {
|
|
831
831
|
/**
|
|
832
|
-
* A panel
|
|
832
|
+
* A panel for which the event is raised.
|
|
833
833
|
*/
|
|
834
834
|
panel: PanelModel;
|
|
835
835
|
/**
|
|
836
836
|
* The panel's index in the [`visiblePanels`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#visiblePanels) array of the Dynamic Panel.
|
|
837
837
|
*/
|
|
838
838
|
visiblePanelIndex: number;
|
|
839
|
+
}
|
|
840
|
+
export interface DynamicPanelGetTabTitleEvent extends DynamicPanelCurrentIndexChangedEvent {
|
|
839
841
|
/**
|
|
840
842
|
* A tab title. You can change this parameter's value.
|
|
841
843
|
*/
|
|
@@ -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, DynamicPanelCurrentIndexChangedEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent } 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";
|
|
@@ -630,6 +630,10 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
630
630
|
* [View Demo](https://surveyjs.io/form-library/examples/tabbed-interface-for-duplicate-group-option/ (linkStyle))
|
|
631
631
|
*/
|
|
632
632
|
onGetDynamicPanelTabTitle: EventBase<SurveyModel, DynamicPanelGetTabTitleEvent>;
|
|
633
|
+
/**
|
|
634
|
+
* An event that is raised after the current panel is changed in a [Dynamic Panel](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/) question.
|
|
635
|
+
*/
|
|
636
|
+
onDynamicPanelCurrentIndexChanged: EventBase<SurveyModel, DynamicPanelCurrentIndexChangedEvent>;
|
|
633
637
|
/**
|
|
634
638
|
* An event that is raised to define whether a question answer is correct. Applies only to [quiz surveys](https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz).
|
|
635
639
|
*/
|
|
@@ -1445,7 +1449,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1445
1449
|
/**
|
|
1446
1450
|
* Merges a specified data object with the object from the [`data`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#data) property.
|
|
1447
1451
|
*
|
|
1448
|
-
* Refer to the following help topic for more information: [
|
|
1452
|
+
* Refer to the following help topic for more information: [Populate Form Fields | Multiple Question Values](https://surveyjs.io/form-library/documentation/design-survey/pre-populate-form-fields#multiple-question-values).
|
|
1449
1453
|
*
|
|
1450
1454
|
* @param data A data object to merge. It should have the following structure: `{ questionName: questionValue, ... }`
|
|
1451
1455
|
* @see setValue
|
|
@@ -1866,6 +1870,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1866
1870
|
protected onQuestionsOnPageModeChanged(oldValue: string): void;
|
|
1867
1871
|
private restoreOriginalPages;
|
|
1868
1872
|
private getPageStartIndex;
|
|
1873
|
+
private isCreatingPagesForPreview;
|
|
1869
1874
|
private setupPagesForPageModes;
|
|
1870
1875
|
private createPagesForQuestionOnPageMode;
|
|
1871
1876
|
private createSinglePage;
|
|
@@ -2024,6 +2029,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2024
2029
|
dynamicPanelRemoving(question: QuestionPanelDynamicModel, panelIndex: number, panel: PanelModel): boolean;
|
|
2025
2030
|
dynamicPanelItemValueChanged(question: IQuestion, options: any): void;
|
|
2026
2031
|
dynamicPanelGetTabTitle(question: IQuestion, options: any): void;
|
|
2032
|
+
dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
|
|
2027
2033
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
|
2028
2034
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
|
2029
2035
|
getUpdatedPanelFooterActions(panel: PanelModel, actions: Array<IAction>, question?: QuestionPanelDynamicModel): Array<IAction>;
|
|
@@ -2044,13 +2050,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2044
2050
|
* question,
|
|
2045
2051
|
* question.name,
|
|
2046
2052
|
* question.value,
|
|
2047
|
-
* (
|
|
2048
|
-
*
|
|
2049
|
-
* // Handle success
|
|
2050
|
-
* }
|
|
2051
|
-
* if (status === "error") {
|
|
2052
|
-
* // Handle error
|
|
2053
|
-
* }
|
|
2053
|
+
* (data, errors) => {
|
|
2054
|
+
* // ...
|
|
2054
2055
|
* }
|
|
2055
2056
|
* );
|
|
2056
2057
|
* ```
|
|
@@ -2135,7 +2136,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2135
2136
|
/**
|
|
2136
2137
|
* Returns a question with a specified [`name`](https://surveyjs.io/form-library/documentation/api-reference/question#name).
|
|
2137
2138
|
* @param name A question name
|
|
2138
|
-
* @param caseInsensitive (Optional) A Boolean value that specifies case sensitivity when searching for the question. Default value: `false` (uppercase and lowercase letters are treated as distinct).
|
|
2139
|
+
* @param caseInsensitive *(Optional)* A Boolean value that specifies case sensitivity when searching for the question. Default value: `false` (uppercase and lowercase letters are treated as distinct).
|
|
2139
2140
|
* @returns A question with a specified name.
|
|
2140
2141
|
* @see getAllQuestions
|
|
2141
2142
|
* @see getQuestionByValueName
|
|
@@ -2147,7 +2148,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2147
2148
|
*
|
|
2148
2149
|
* > Since `valueName` does not have to be unique, multiple questions can have the same `valueName` value. In this case, the `getQuestionByValueName()` method returns the first such question. If you need to get all questions with the same `valueName`, call the `getQuestionsByValueName()` method.
|
|
2149
2150
|
* @param valueName A question's `valueName` property value.
|
|
2150
|
-
* @param caseInsensitive (Optional) A Boolean value that specifies case sensitivity when searching for the question. Default value: `false` (uppercase and lowercase letters are treated as distinct).
|
|
2151
|
+
* @param caseInsensitive *(Optional)* A Boolean value that specifies case sensitivity when searching for the question. Default value: `false` (uppercase and lowercase letters are treated as distinct).
|
|
2151
2152
|
* @returns A question with a specified `valueName`.
|
|
2152
2153
|
* @see getAllQuestions
|
|
2153
2154
|
* @see getQuestionByName
|
|
@@ -2156,7 +2157,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2156
2157
|
/**
|
|
2157
2158
|
* Returns all questions with a specified [`valueName`](https://surveyjs.io/form-library/documentation/api-reference/question#valueName). If a question's `valueName` is undefined, its [`name`](https://surveyjs.io/form-library/documentation/api-reference/question#name) property is used.
|
|
2158
2159
|
* @param valueName A question's `valueName` property value.
|
|
2159
|
-
* @param caseInsensitive (Optional) A Boolean value that specifies case sensitivity when searching for the questions. Default value: `false` (uppercase and lowercase letters are treated as distinct).
|
|
2160
|
+
* @param caseInsensitive *(Optional)* A Boolean value that specifies case sensitivity when searching for the questions. Default value: `false` (uppercase and lowercase letters are treated as distinct).
|
|
2160
2161
|
* @returns An array of questions with a specified `valueName`.
|
|
2161
2162
|
* @see getAllQuestions
|
|
2162
2163
|
* @see getQuestionByName
|
|
@@ -2166,7 +2167,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2166
2167
|
/**
|
|
2167
2168
|
* Returns an array of questions with specified [names](https://surveyjs.io/form-library/documentation/api-reference/question#name).
|
|
2168
2169
|
* @param names An array of question names.
|
|
2169
|
-
* @param caseInsensitive (Optional) A Boolean value that specifies case sensitivity when searching for the questions. Default value: `false` (uppercase and lowercase letters are treated as distinct).
|
|
2170
|
+
* @param caseInsensitive *(Optional)* A Boolean value that specifies case sensitivity when searching for the questions. Default value: `false` (uppercase and lowercase letters are treated as distinct).
|
|
2170
2171
|
* @returns An array of questions with specified names
|
|
2171
2172
|
* @see getAllQuestions
|
|
2172
2173
|
*/
|
|
@@ -2211,7 +2212,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2211
2212
|
/**
|
|
2212
2213
|
* Returns a [panel](https://surveyjs.io/form-library/documentation/api-reference/panel-model) with a specified [`name`](https://surveyjs.io/form-library/documentation/api-reference/panel-model#name).
|
|
2213
2214
|
* @param name A panel name.
|
|
2214
|
-
* @param caseInsensitive (Optional) A Boolean value that specifies case sensitivity when searching for the panel. Default value: `false` (uppercase and lowercase letters are treated as distinct).
|
|
2215
|
+
* @param caseInsensitive *(Optional)* A Boolean value that specifies case sensitivity when searching for the panel. Default value: `false` (uppercase and lowercase letters are treated as distinct).
|
|
2215
2216
|
* @returns A panel with a specified name.
|
|
2216
2217
|
* @see getAllPanels
|
|
2217
2218
|
*/
|
|
@@ -149,6 +149,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
|
149
149
|
dynamicPanelRemoving(question: IQuestion, panelIndex: number, panel: IPanel): boolean;
|
|
150
150
|
dynamicPanelItemValueChanged(question: IQuestion, options: any): any;
|
|
151
151
|
dynamicPanelGetTabTitle(question: IQuestion, options: any): any;
|
|
152
|
+
dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
|
|
152
153
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
|
153
154
|
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean): any;
|
|
154
155
|
runExpression(expression: string): any;
|
package/typings/base.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export declare class Base {
|
|
|
70
70
|
* Returns `true` if a passed `value` is an empty string, array, or object or if it equals to `undefined` or `null`.
|
|
71
71
|
*
|
|
72
72
|
* @param value A value to be checked.
|
|
73
|
-
* @param trimString (Optional) When this parameter is `true`, the method ignores whitespace characters at the beginning and end of a string value. Pass `false` to disable this functionality.
|
|
73
|
+
* @param trimString *(Optional)* When this parameter is `true`, the method ignores whitespace characters at the beginning and end of a string value. Pass `false` to disable this functionality.
|
|
74
74
|
*/
|
|
75
75
|
isValueEmpty(value: any, trimString?: boolean): boolean;
|
|
76
76
|
protected trimValue(value: any): any;
|
|
@@ -202,7 +202,7 @@ export declare class Base {
|
|
|
202
202
|
* If the property is not found or does not have a value, this method returns either `undefined`, `defaultValue` specified in the property configuration, or a value passed as the `defaultValue` parameter.
|
|
203
203
|
*
|
|
204
204
|
* @param name A property name.
|
|
205
|
-
* @param defaultValue (Optional) A value to return if the property is not found or does not have a value.
|
|
205
|
+
* @param defaultValue *(Optional)* A value to return if the property is not found or does not have a value.
|
|
206
206
|
*/
|
|
207
207
|
getPropertyValue(name: string, defaultValue?: any): any;
|
|
208
208
|
getDefaultPropertyValue(name: string): any;
|
|
@@ -247,14 +247,14 @@ export declare class Base {
|
|
|
247
247
|
* Registers a function to call when a property value changes.
|
|
248
248
|
* @param propertyNames An array of one or multiple property names.
|
|
249
249
|
* @param handler A function to call when one of the listed properties change.
|
|
250
|
-
* @param key (Optional) A key that identifies the current registration. If a function for one of the properties is already registered with the same key, the function will be overwritten. You can also use the key to subsequently unregister handlers.
|
|
250
|
+
* @param key *(Optional)* A key that identifies the current registration. If a function for one of the properties is already registered with the same key, the function will be overwritten. You can also use the key to subsequently unregister handlers.
|
|
251
251
|
* @see unregisterPropertyChangedHandlers
|
|
252
252
|
*/
|
|
253
253
|
registerPropertyChangedHandlers(propertyNames: Array<string>, handler: any, key?: string): void;
|
|
254
254
|
/**
|
|
255
255
|
* Unregisters value change event handlers for the specified properties.
|
|
256
256
|
* @param propertyNames An array of one or multiple property names.
|
|
257
|
-
* @param key (Optional) A key of the registration that you want to cancel.
|
|
257
|
+
* @param key *(Optional)* A key of the registration that you want to cancel.
|
|
258
258
|
* @see registerPropertyChangedHandlers
|
|
259
259
|
*/
|
|
260
260
|
unregisterPropertyChangedHandlers(propertyNames: Array<string>, key?: string): void;
|
|
@@ -506,6 +506,9 @@ export declare var defaultV2Css: {
|
|
|
506
506
|
rootDropdown: string;
|
|
507
507
|
root: string;
|
|
508
508
|
rootWrappable: string;
|
|
509
|
+
rootLabelsTop: string;
|
|
510
|
+
rootLabelsBottom: string;
|
|
511
|
+
rootLabelsDiagonal: string;
|
|
509
512
|
item: string;
|
|
510
513
|
itemOnError: string;
|
|
511
514
|
itemHover: string;
|
package/typings/header.d.ts
CHANGED
|
@@ -77,4 +77,5 @@ export declare class Cover extends Base {
|
|
|
77
77
|
protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
78
78
|
calculateActualHeight(logoHeight: number, titleHeight: number, descriptionHeight: number): number;
|
|
79
79
|
processResponsiveness(width: number): void;
|
|
80
|
+
get hasBackground(): boolean;
|
|
80
81
|
}
|
|
@@ -462,7 +462,6 @@ export declare class QuestionCheckboxBase extends QuestionSelectBase {
|
|
|
462
462
|
*/
|
|
463
463
|
get colCount(): number;
|
|
464
464
|
set colCount(value: number);
|
|
465
|
-
clickItemHandler(item: ItemValue, checked: boolean): void;
|
|
466
465
|
protected onParentChanged(): void;
|
|
467
466
|
protected onParentQuestionChanged(): void;
|
|
468
467
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
|
@@ -61,6 +61,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
|
61
61
|
* @see clearValue
|
|
62
62
|
*/
|
|
63
63
|
selectAll(): void;
|
|
64
|
+
clickItemHandler(item: ItemValue, checked?: boolean): void;
|
|
64
65
|
protected isItemSelectedCore(item: ItemValue): boolean;
|
|
65
66
|
private getRealValue;
|
|
66
67
|
get isValueArray(): boolean;
|
|
@@ -235,6 +235,8 @@ export declare abstract class QuestionCustomModelBase extends Question implement
|
|
|
235
235
|
getType(): string;
|
|
236
236
|
locStrsChanged(): void;
|
|
237
237
|
localeChanged(): void;
|
|
238
|
+
addUsedLocales(locales: Array<string>): void;
|
|
239
|
+
needResponsiveWidth(): boolean;
|
|
238
240
|
protected createWrapper(): void;
|
|
239
241
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
240
242
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
|
@@ -7,6 +7,9 @@ import { Action } from "./actions/action";
|
|
|
7
7
|
import { Camera } from "./utils/camera";
|
|
8
8
|
import { LocalizableString } from "./localizablestring";
|
|
9
9
|
export declare function dataUrl2File(dataUrl: string, fileName: string, type: string): File;
|
|
10
|
+
/**
|
|
11
|
+
* A base class for question types that support file upload: `QuestionFileModel` and `QuestionSignaturePadModel`.
|
|
12
|
+
*/
|
|
10
13
|
export declare class QuestionFileModelBase extends Question {
|
|
11
14
|
isUploading: boolean;
|
|
12
15
|
currentState: string;
|
|
@@ -100,10 +100,8 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
|
|
|
100
100
|
*
|
|
101
101
|
* Possible values:
|
|
102
102
|
*
|
|
103
|
-
* - `"image"` - Images in one of the following formats: JPEG, GIF, PNG, APNG, SVG, BMP, ICO.
|
|
103
|
+
* - `"image"` (default) - Images in one of the following formats: JPEG, GIF, PNG, APNG, SVG, BMP, ICO.
|
|
104
104
|
* - `"video"` - Videos in one of the following formats: MP4, MOV, WMV, FLV, AVI, MKV.
|
|
105
|
-
* - `"youtube"` - Links to YouTube videos.
|
|
106
|
-
* - `"auto"` (default) - Selects one of the above based on the `imageLink` property value of each choice item.
|
|
107
105
|
*/
|
|
108
106
|
get contentMode(): string;
|
|
109
107
|
set contentMode(val: string);
|
|
@@ -180,7 +180,7 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
|
180
180
|
/**
|
|
181
181
|
* Adds a new input item.
|
|
182
182
|
* @param name An item name.
|
|
183
|
-
* @param title (Optional) An item title.
|
|
183
|
+
* @param title *(Optional)* An item title.
|
|
184
184
|
* @see items
|
|
185
185
|
*/
|
|
186
186
|
addItem(name: string, title?: string): MultipleTextItemModel;
|
|
@@ -482,13 +482,13 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
|
482
482
|
*/
|
|
483
483
|
addPanelUI(): PanelModel;
|
|
484
484
|
/**
|
|
485
|
-
*
|
|
486
|
-
* @
|
|
485
|
+
* Adds a new panel based on the [template](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#template).
|
|
486
|
+
* @param index *(Optional)* An index at which to insert the new panel. `undefined` adds the panel to the end or inserts it after the current panel if [`renderMode`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#renderMode) is `"tab"`. A negative index (for instance, -1) adds the panel to the end in all cases, regardless of the `renderMode` value.
|
|
487
487
|
* @see panelCount
|
|
488
488
|
* @see panels
|
|
489
|
-
* @see renderMode
|
|
490
489
|
*/
|
|
491
|
-
addPanel(): PanelModel;
|
|
490
|
+
addPanel(index?: number): PanelModel;
|
|
491
|
+
private updateValueOnAddingPanel;
|
|
492
492
|
private canLeaveCurrentPanel;
|
|
493
493
|
private copyValue;
|
|
494
494
|
/**
|