survey-react 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 +5 -1
- package/defaultV2.css +56 -1
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +58 -35
- package/survey.react.js +170 -82
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/modern.css
CHANGED
package/modern.min.css
CHANGED
package/package.json
CHANGED
package/survey.css
CHANGED
package/survey.min.css
CHANGED
package/survey.react.d.ts
CHANGED
@@ -2189,6 +2189,9 @@ declare module "defaultCss/defaultV2Css" {
|
|
2189
2189
|
rootDropdown: string;
|
2190
2190
|
root: string;
|
2191
2191
|
rootWrappable: string;
|
2192
|
+
rootLabelsTop: string;
|
2193
|
+
rootLabelsBottom: string;
|
2194
|
+
rootLabelsDiagonal: string;
|
2192
2195
|
item: string;
|
2193
2196
|
itemOnError: string;
|
2194
2197
|
itemHover: string;
|
@@ -2911,6 +2914,8 @@ declare module "question_custom" {
|
|
2911
2914
|
getType(): string;
|
2912
2915
|
locStrsChanged(): void;
|
2913
2916
|
localeChanged(): void;
|
2917
|
+
addUsedLocales(locales: Array<string>): void;
|
2918
|
+
needResponsiveWidth(): boolean;
|
2914
2919
|
protected createWrapper(): void;
|
2915
2920
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
2916
2921
|
itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
|
@@ -3748,6 +3753,9 @@ declare module "question_file" {
|
|
3748
3753
|
import { Camera } from "utils/camera";
|
3749
3754
|
import { LocalizableString } from "localizablestring";
|
3750
3755
|
export function dataUrl2File(dataUrl: string, fileName: string, type: string): File;
|
3756
|
+
/**
|
3757
|
+
* A base class for question types that support file upload: `QuestionFileModel` and `QuestionSignaturePadModel`.
|
3758
|
+
*/
|
3751
3759
|
export class QuestionFileModelBase extends Question {
|
3752
3760
|
isUploading: boolean;
|
3753
3761
|
currentState: string;
|
@@ -4648,7 +4656,6 @@ declare module "question_baseselect" {
|
|
4648
4656
|
*/
|
4649
4657
|
get colCount(): number;
|
4650
4658
|
set colCount(value: number);
|
4651
|
-
clickItemHandler(item: ItemValue, checked: boolean): void;
|
4652
4659
|
protected onParentChanged(): void;
|
4653
4660
|
protected onParentQuestionChanged(): void;
|
4654
4661
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
@@ -6343,13 +6350,13 @@ declare module "question_paneldynamic" {
|
|
6343
6350
|
*/
|
6344
6351
|
addPanelUI(): PanelModel;
|
6345
6352
|
/**
|
6346
|
-
*
|
6347
|
-
* @
|
6353
|
+
* Adds a new panel based on the [template](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#template).
|
6354
|
+
* @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.
|
6348
6355
|
* @see panelCount
|
6349
6356
|
* @see panels
|
6350
|
-
* @see renderMode
|
6351
6357
|
*/
|
6352
|
-
addPanel(): PanelModel;
|
6358
|
+
addPanel(index?: number): PanelModel;
|
6359
|
+
private updateValueOnAddingPanel;
|
6353
6360
|
private canLeaveCurrentPanel;
|
6354
6361
|
private copyValue;
|
6355
6362
|
/**
|
@@ -7446,15 +7453,17 @@ declare module "survey-events-api" {
|
|
7446
7453
|
*/
|
7447
7454
|
panel: PanelModel;
|
7448
7455
|
}
|
7449
|
-
export interface
|
7456
|
+
export interface DynamicPanelCurrentIndexChangedEvent extends PanelDynamicQuestionEventMixin {
|
7450
7457
|
/**
|
7451
|
-
* A panel
|
7458
|
+
* A panel for which the event is raised.
|
7452
7459
|
*/
|
7453
7460
|
panel: PanelModel;
|
7454
7461
|
/**
|
7455
7462
|
* The panel's index in the [`visiblePanels`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#visiblePanels) array of the Dynamic Panel.
|
7456
7463
|
*/
|
7457
7464
|
visiblePanelIndex: number;
|
7465
|
+
}
|
7466
|
+
export interface DynamicPanelGetTabTitleEvent extends DynamicPanelCurrentIndexChangedEvent {
|
7458
7467
|
/**
|
7459
7468
|
* A tab title. You can change this parameter's value.
|
7460
7469
|
*/
|
@@ -8342,7 +8351,7 @@ declare module "question_multipletext" {
|
|
8342
8351
|
/**
|
8343
8352
|
* Adds a new input item.
|
8344
8353
|
* @param name An item name.
|
8345
|
-
* @param title (Optional) An item title.
|
8354
|
+
* @param title *(Optional)* An item title.
|
8346
8355
|
* @see items
|
8347
8356
|
*/
|
8348
8357
|
addItem(name: string, title?: string): MultipleTextItemModel;
|
@@ -8528,6 +8537,7 @@ declare module "header" {
|
|
8528
8537
|
protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
8529
8538
|
calculateActualHeight(logoHeight: number, titleHeight: number, descriptionHeight: number): number;
|
8530
8539
|
processResponsiveness(width: number): void;
|
8540
|
+
get hasBackground(): boolean;
|
8531
8541
|
}
|
8532
8542
|
}
|
8533
8543
|
declare module "surveyTaskManager" {
|
@@ -8568,7 +8578,7 @@ declare module "survey" {
|
|
8568
8578
|
import { ActionContainer } from "actions/container";
|
8569
8579
|
import { QuestionPanelDynamicModel } from "question_paneldynamic";
|
8570
8580
|
import { Notifier } from "notifier";
|
8571
|
-
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";
|
8581
|
+
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";
|
8572
8582
|
import { QuestionMatrixDropdownModelBase } from "question_matrixdropdownbase";
|
8573
8583
|
import { QuestionMatrixDynamicModel } from "question_matrixdynamic";
|
8574
8584
|
import { QuestionFileModel } from "question_file";
|
@@ -9183,6 +9193,10 @@ declare module "survey" {
|
|
9183
9193
|
* [View Demo](https://surveyjs.io/form-library/examples/tabbed-interface-for-duplicate-group-option/ (linkStyle))
|
9184
9194
|
*/
|
9185
9195
|
onGetDynamicPanelTabTitle: EventBase<SurveyModel, DynamicPanelGetTabTitleEvent>;
|
9196
|
+
/**
|
9197
|
+
* An event that is raised after the current panel is changed in a [Dynamic Panel](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/) question.
|
9198
|
+
*/
|
9199
|
+
onDynamicPanelCurrentIndexChanged: EventBase<SurveyModel, DynamicPanelCurrentIndexChangedEvent>;
|
9186
9200
|
/**
|
9187
9201
|
* 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).
|
9188
9202
|
*/
|
@@ -10062,7 +10076,7 @@ declare module "survey" {
|
|
10062
10076
|
/**
|
10063
10077
|
* Merges a specified data object with the object from the [`data`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#data) property.
|
10064
10078
|
*
|
10065
|
-
* Refer to the following help topic for more information: [
|
10079
|
+
* 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).
|
10066
10080
|
*
|
10067
10081
|
* @param data A data object to merge. It should have the following structure: `{ questionName: questionValue, ... }`
|
10068
10082
|
* @see setValue
|
@@ -10499,6 +10513,7 @@ declare module "survey" {
|
|
10499
10513
|
protected onQuestionsOnPageModeChanged(oldValue: string): void;
|
10500
10514
|
private restoreOriginalPages;
|
10501
10515
|
private getPageStartIndex;
|
10516
|
+
private isCreatingPagesForPreview;
|
10502
10517
|
private setupPagesForPageModes;
|
10503
10518
|
private createPagesForQuestionOnPageMode;
|
10504
10519
|
private createSinglePage;
|
@@ -10657,6 +10672,7 @@ declare module "survey" {
|
|
10657
10672
|
dynamicPanelRemoving(question: QuestionPanelDynamicModel, panelIndex: number, panel: PanelModel): boolean;
|
10658
10673
|
dynamicPanelItemValueChanged(question: IQuestion, options: any): void;
|
10659
10674
|
dynamicPanelGetTabTitle(question: IQuestion, options: any): void;
|
10675
|
+
dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
|
10660
10676
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
10661
10677
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
10662
10678
|
getUpdatedPanelFooterActions(panel: PanelModel, actions: Array<IAction>, question?: QuestionPanelDynamicModel): Array<IAction>;
|
@@ -10677,13 +10693,8 @@ declare module "survey" {
|
|
10677
10693
|
* question,
|
10678
10694
|
* question.name,
|
10679
10695
|
* question.value,
|
10680
|
-
* (
|
10681
|
-
*
|
10682
|
-
* // Handle success
|
10683
|
-
* }
|
10684
|
-
* if (status === "error") {
|
10685
|
-
* // Handle error
|
10686
|
-
* }
|
10696
|
+
* (data, errors) => {
|
10697
|
+
* // ...
|
10687
10698
|
* }
|
10688
10699
|
* );
|
10689
10700
|
* ```
|
@@ -10768,7 +10779,7 @@ declare module "survey" {
|
|
10768
10779
|
/**
|
10769
10780
|
* Returns a question with a specified [`name`](https://surveyjs.io/form-library/documentation/api-reference/question#name).
|
10770
10781
|
* @param name A question name
|
10771
|
-
* @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).
|
10782
|
+
* @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).
|
10772
10783
|
* @returns A question with a specified name.
|
10773
10784
|
* @see getAllQuestions
|
10774
10785
|
* @see getQuestionByValueName
|
@@ -10780,7 +10791,7 @@ declare module "survey" {
|
|
10780
10791
|
*
|
10781
10792
|
* > 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.
|
10782
10793
|
* @param valueName A question's `valueName` property value.
|
10783
|
-
* @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).
|
10794
|
+
* @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).
|
10784
10795
|
* @returns A question with a specified `valueName`.
|
10785
10796
|
* @see getAllQuestions
|
10786
10797
|
* @see getQuestionByName
|
@@ -10789,7 +10800,7 @@ declare module "survey" {
|
|
10789
10800
|
/**
|
10790
10801
|
* 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.
|
10791
10802
|
* @param valueName A question's `valueName` property value.
|
10792
|
-
* @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).
|
10803
|
+
* @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).
|
10793
10804
|
* @returns An array of questions with a specified `valueName`.
|
10794
10805
|
* @see getAllQuestions
|
10795
10806
|
* @see getQuestionByName
|
@@ -10799,7 +10810,7 @@ declare module "survey" {
|
|
10799
10810
|
/**
|
10800
10811
|
* Returns an array of questions with specified [names](https://surveyjs.io/form-library/documentation/api-reference/question#name).
|
10801
10812
|
* @param names An array of question names.
|
10802
|
-
* @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).
|
10813
|
+
* @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).
|
10803
10814
|
* @returns An array of questions with specified names
|
10804
10815
|
* @see getAllQuestions
|
10805
10816
|
*/
|
@@ -10844,7 +10855,7 @@ declare module "survey" {
|
|
10844
10855
|
/**
|
10845
10856
|
* 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).
|
10846
10857
|
* @param name A panel name.
|
10847
|
-
* @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).
|
10858
|
+
* @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).
|
10848
10859
|
* @returns A panel with a specified name.
|
10849
10860
|
* @see getAllPanels
|
10850
10861
|
*/
|
@@ -13441,6 +13452,7 @@ declare module "base-interfaces" {
|
|
13441
13452
|
dynamicPanelRemoving(question: IQuestion, panelIndex: number, panel: IPanel): boolean;
|
13442
13453
|
dynamicPanelItemValueChanged(question: IQuestion, options: any): any;
|
13443
13454
|
dynamicPanelGetTabTitle(question: IQuestion, options: any): any;
|
13455
|
+
dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
|
13444
13456
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
13445
13457
|
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean): any;
|
13446
13458
|
runExpression(expression: string): any;
|
@@ -13760,7 +13772,7 @@ declare module "base" {
|
|
13760
13772
|
* Returns `true` if a passed `value` is an empty string, array, or object or if it equals to `undefined` or `null`.
|
13761
13773
|
*
|
13762
13774
|
* @param value A value to be checked.
|
13763
|
-
* @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.
|
13775
|
+
* @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.
|
13764
13776
|
*/
|
13765
13777
|
isValueEmpty(value: any, trimString?: boolean): boolean;
|
13766
13778
|
protected trimValue(value: any): any;
|
@@ -13892,7 +13904,7 @@ declare module "base" {
|
|
13892
13904
|
* 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.
|
13893
13905
|
*
|
13894
13906
|
* @param name A property name.
|
13895
|
-
* @param defaultValue (Optional) A value to return if the property is not found or does not have a value.
|
13907
|
+
* @param defaultValue *(Optional)* A value to return if the property is not found or does not have a value.
|
13896
13908
|
*/
|
13897
13909
|
getPropertyValue(name: string, defaultValue?: any): any;
|
13898
13910
|
getDefaultPropertyValue(name: string): any;
|
@@ -13937,14 +13949,14 @@ declare module "base" {
|
|
13937
13949
|
* Registers a function to call when a property value changes.
|
13938
13950
|
* @param propertyNames An array of one or multiple property names.
|
13939
13951
|
* @param handler A function to call when one of the listed properties change.
|
13940
|
-
* @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.
|
13952
|
+
* @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.
|
13941
13953
|
* @see unregisterPropertyChangedHandlers
|
13942
13954
|
*/
|
13943
13955
|
registerPropertyChangedHandlers(propertyNames: Array<string>, handler: any, key?: string): void;
|
13944
13956
|
/**
|
13945
13957
|
* Unregisters value change event handlers for the specified properties.
|
13946
13958
|
* @param propertyNames An array of one or multiple property names.
|
13947
|
-
* @param key (Optional) A key of the registration that you want to cancel.
|
13959
|
+
* @param key *(Optional)* A key of the registration that you want to cancel.
|
13948
13960
|
* @see registerPropertyChangedHandlers
|
13949
13961
|
*/
|
13950
13962
|
unregisterPropertyChangedHandlers(propertyNames: Array<string>, key?: string): void;
|
@@ -15244,6 +15256,7 @@ declare module "question_checkbox" {
|
|
15244
15256
|
* @see clearValue
|
15245
15257
|
*/
|
15246
15258
|
selectAll(): void;
|
15259
|
+
clickItemHandler(item: ItemValue, checked?: boolean): void;
|
15247
15260
|
protected isItemSelectedCore(item: ItemValue): boolean;
|
15248
15261
|
private getRealValue;
|
15249
15262
|
get isValueArray(): boolean;
|
@@ -15567,10 +15580,8 @@ declare module "question_imagepicker" {
|
|
15567
15580
|
*
|
15568
15581
|
* Possible values:
|
15569
15582
|
*
|
15570
|
-
* - `"image"` - Images in one of the following formats: JPEG, GIF, PNG, APNG, SVG, BMP, ICO.
|
15583
|
+
* - `"image"` (default) - Images in one of the following formats: JPEG, GIF, PNG, APNG, SVG, BMP, ICO.
|
15571
15584
|
* - `"video"` - Videos in one of the following formats: MP4, MOV, WMV, FLV, AVI, MKV.
|
15572
|
-
* - `"youtube"` - Links to YouTube videos.
|
15573
|
-
* - `"auto"` (default) - Selects one of the above based on the `imageLink` property value of each choice item.
|
15574
15585
|
*/
|
15575
15586
|
get contentMode(): string;
|
15576
15587
|
set contentMode(val: string);
|
@@ -16027,18 +16038,20 @@ declare module "question_rating" {
|
|
16027
16038
|
protected getPlainDataCalculatedValue(propName: string): any;
|
16028
16039
|
/**
|
16029
16040
|
* Specifies a description for the minimum (first) rate value.
|
16041
|
+
* @see rateDescriptionLocation
|
16042
|
+
* @see displayRateDescriptionsAsExtremeItems
|
16030
16043
|
* @see rateValues
|
16031
16044
|
* @see rateMin
|
16032
|
-
* @see displayRateDescriptionsAsExtremeItems
|
16033
16045
|
*/
|
16034
16046
|
get minRateDescription(): string;
|
16035
16047
|
set minRateDescription(val: string);
|
16036
16048
|
get locMinRateDescription(): LocalizableString;
|
16037
16049
|
/**
|
16038
16050
|
* Specifies a description for the maximum (last) rate value.
|
16051
|
+
* @see rateDescriptionLocation
|
16052
|
+
* @see displayRateDescriptionsAsExtremeItems
|
16039
16053
|
* @see rateValues
|
16040
16054
|
* @see rateMax
|
16041
|
-
* @see displayRateDescriptionsAsExtremeItems
|
16042
16055
|
*/
|
16043
16056
|
get maxRateDescription(): string;
|
16044
16057
|
set maxRateDescription(val: string);
|
@@ -16048,15 +16061,14 @@ declare module "question_rating" {
|
|
16048
16061
|
get hasMinLabel(): boolean;
|
16049
16062
|
get hasMaxLabel(): boolean;
|
16050
16063
|
/**
|
16051
|
-
* Specifies whether to display `minRateDescription` and `maxRateDescription` values as captions for buttons that correspond to the extreme (first and last) rate values.
|
16064
|
+
* 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.
|
16052
16065
|
*
|
16053
16066
|
* Default value: `false`
|
16054
16067
|
*
|
16055
16068
|
* If this property is disabled, the `minRateDescription` and `maxRateDescription` values are displayed as plain non-clickable texts.
|
16056
16069
|
*
|
16057
16070
|
* If any of the `minRateDescription` and `maxRateDescription` properties is empty, the corresponding rate value's `value` or `text` is displayed as a button caption.
|
16058
|
-
* @see
|
16059
|
-
* @see maxRateDescription
|
16071
|
+
* @see rateDescriptionLocation
|
16060
16072
|
* @see rateMin
|
16061
16073
|
* @see rateMax
|
16062
16074
|
* @see rateValues
|
@@ -16075,6 +16087,18 @@ declare module "question_rating" {
|
|
16075
16087
|
* @see rateType
|
16076
16088
|
*/
|
16077
16089
|
displayMode: "dropdown" | "buttons" | "auto";
|
16090
|
+
/**
|
16091
|
+
* 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.
|
16092
|
+
*
|
16093
|
+
* Possible values:
|
16094
|
+
*
|
16095
|
+
* - `"leftRight"` (default) - Aligns `minRateDescription` to the left of rate values and `maxRateDescription` to their right.
|
16096
|
+
* - `"top"` - Displays the descriptions above the minimum and maximum rate values.
|
16097
|
+
* - `"bottom"` - Displays both descriptions below the minimum and maximum rate values.
|
16098
|
+
* - `"topBottom"` - Displays `minRateDescription` above the minimum rate value and `maxRateDescription` below the maximum rate value.
|
16099
|
+
* @see displayRateDescriptionsAsExtremeItems
|
16100
|
+
*/
|
16101
|
+
rateDescriptionLocation: "leftRight" | "top" | "bottom" | "topBottom";
|
16078
16102
|
/**
|
16079
16103
|
* Specifies the visual representation of rate values.
|
16080
16104
|
*
|
@@ -24431,7 +24455,6 @@ declare module "react/reactquestion_checkbox" {
|
|
24431
24455
|
private get hideCaption();
|
24432
24456
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
24433
24457
|
handleOnChange: (event: any) => void;
|
24434
|
-
selectAllChanged: (event: any) => void;
|
24435
24458
|
protected canRender(): boolean;
|
24436
24459
|
protected renderElement(): JSX.Element;
|
24437
24460
|
protected get inputStyle(): any;
|