survey-react 1.9.51 → 1.9.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/defaultV2.css +14 -6
- package/defaultV2.min.css +2 -2
- package/modern.css +9 -2
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +14 -4
- package/survey.min.css +2 -2
- package/survey.react.d.ts +40 -23
- package/survey.react.js +260 -194
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Type definition for Survey JavaScript library for React v1.9.
|
2
|
+
* Type definition for Survey JavaScript library for React v1.9.52
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -451,6 +451,7 @@ export interface IElement extends IConditionRunner, ISurveyElement {
|
|
451
451
|
isCollapsed: boolean;
|
452
452
|
rightIndent: number;
|
453
453
|
startWithNewLine: boolean;
|
454
|
+
registerPropertyChangedHandlers(propertyNames: any, handler: any, key: string): void;
|
454
455
|
registerFunctionOnPropertyValueChanged(name: string, func: any, key: string): void;
|
455
456
|
unRegisterFunctionOnPropertyValueChanged(name: string, key: string): void;
|
456
457
|
getPanel(): IPanel;
|
@@ -890,20 +891,16 @@ export declare class Base {
|
|
890
891
|
protected runConditionCore(values: any, properties: any): void;
|
891
892
|
protected canRunConditions(): boolean;
|
892
893
|
/*
|
893
|
-
* Register a function that will be called on a property value changed.
|
894
|
+
* Register a function that will be called on a property value changed from the propertyNames list.
|
894
895
|
*/
|
895
|
-
|
896
|
+
registerPropertyChangedHandlers(propertyNames: any, handler: any, key?: string): void;
|
896
897
|
/*
|
897
|
-
*
|
898
|
+
* Unregister notification on property value changed for all properties in the propetyNames list.
|
898
899
|
*/
|
900
|
+
unregisterPropertyChangedHandlers(propertyNames: any, key?: string): void;
|
901
|
+
registerFunctionOnPropertyValueChanged(name: string, func: any, key?: string): void;
|
899
902
|
registerFunctionOnPropertiesValueChanged(names: any, func: any, key?: string): void;
|
900
|
-
/*
|
901
|
-
* Unregister notification on property value changed
|
902
|
-
*/
|
903
903
|
unRegisterFunctionOnPropertyValueChanged(name: string, key?: string): void;
|
904
|
-
/*
|
905
|
-
* Unregister notification on property value changed for all properties in the names list.
|
906
|
-
*/
|
907
904
|
unRegisterFunctionOnPropertiesValueChanged(names: any, key?: string): void;
|
908
905
|
createCustomLocalizableObj(name: string): void;
|
909
906
|
getLocale(): string;
|
@@ -1164,6 +1161,8 @@ export declare class Helpers {
|
|
1164
1161
|
static correctAfterMultiple(a: number, b: number, res: number): number;
|
1165
1162
|
static convertArrayValueToObject(src: any, propName: string, dest?: any): Array<any>;
|
1166
1163
|
static convertArrayObjectToValue(src: any, propName: string): Array<any>;
|
1164
|
+
static convertDateToString(date: any): string;
|
1165
|
+
static convertValToQuestionVal(val: any): any;
|
1167
1166
|
}
|
1168
1167
|
export declare class JsonError {
|
1169
1168
|
constructor(type: string, message: string);
|
@@ -2029,6 +2028,7 @@ export declare class DropdownListModel extends Base {
|
|
2029
2028
|
updateItems(): void;
|
2030
2029
|
onClick(event: any): void;
|
2031
2030
|
onClear(event: any): void;
|
2031
|
+
getSelectedAction(): Action;
|
2032
2032
|
keyHandler(event: any): void;
|
2033
2033
|
onBlur(event: any): void;
|
2034
2034
|
scrollToFocusedItem(): void;
|
@@ -4801,12 +4801,14 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4801
4801
|
get maxOthersLength(): number;
|
4802
4802
|
set maxOthersLength(val: number);
|
4803
4803
|
/*
|
4804
|
-
* Gets or ses whether
|
4804
|
+
* Gets or ses whether user proceeds to the next page without pressing the "Next" button after answering all page questions.
|
4805
4805
|
* The available options:
|
4806
4806
|
*
|
4807
|
-
* - `true` - navigate the next page and submit survey data automatically.
|
4808
|
-
* - `autogonext` - navigate the next page automatically but do not submit survey data.
|
4809
|
-
* - `false` - do not navigate the next page and do not submit survey data automatically.
|
4807
|
+
* - `true` - navigate to the next page and submit survey data automatically.
|
4808
|
+
* - `autogonext` - navigate to the next page automatically but do not submit survey data.
|
4809
|
+
* - `false` - do not navigate to the next page and do not submit survey data automatically.
|
4810
|
+
*
|
4811
|
+
* > NOTE: If any of the following questions is answered last, the survey won't be switched to the next page: Checkbox, Boolean (rendered as Checkbox), Comment, Signature Pad, Image Picker (with Multi Select), File, Single-Choice Matrix (not all rows are answered), Dynamic Matrix, Panel Dynamic.
|
4810
4812
|
*/
|
4811
4813
|
get goNextPageAutomatic(): boolean | "autogonext";
|
4812
4814
|
set goNextPageAutomatic(val: boolean | "autogonext");
|
@@ -4888,7 +4890,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4888
4890
|
getErrorCustomText(text: string, error: SurveyError): string;
|
4889
4891
|
getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
|
4890
4892
|
/*
|
4891
|
-
* Returns the text
|
4893
|
+
* Returns the text displayed when a survey has no visible pages and questions.
|
4892
4894
|
*/
|
4893
4895
|
get emptySurveyText(): string;
|
4894
4896
|
/*
|
@@ -7148,6 +7150,7 @@ export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontr
|
|
7148
7150
|
protected setValueCore(newValue: any): void;
|
7149
7151
|
protected getValueCore(): any;
|
7150
7152
|
protected renderSelect(cssClasses: any): JSX.Element;
|
7153
|
+
renderValueElement(dropdownListModel: any): JSX.Element;
|
7151
7154
|
protected renderInput(dropdownListModel: any): JSX.Element;
|
7152
7155
|
createClearButton(): JSX.Element;
|
7153
7156
|
protected renderOther(cssClasses: any): JSX.Element;
|
@@ -8623,6 +8626,12 @@ export declare class QuestionSelectBase extends Question {
|
|
8623
8626
|
afterRender(el: any): void;
|
8624
8627
|
prevIsOtherSelected: boolean;
|
8625
8628
|
protected onValueChanged(): void;
|
8629
|
+
protected getDefaultItemComponent(): string;
|
8630
|
+
/*
|
8631
|
+
* The name of a component used to render items.
|
8632
|
+
*/
|
8633
|
+
get itemComponent(): string;
|
8634
|
+
set itemComponent(val: string);
|
8626
8635
|
}
|
8627
8636
|
/*
|
8628
8637
|
* A Model for signature pad question.
|
@@ -8930,10 +8939,6 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
8930
8939
|
*/
|
8931
8940
|
allowClear: boolean;
|
8932
8941
|
/*
|
8933
|
-
* The name of a component used to render drop-down menu items.
|
8934
|
-
*/
|
8935
|
-
itemComponent: string;
|
8936
|
-
/*
|
8937
8942
|
* Specifies whether users can enter a value into the input field to filter the drop-down list.
|
8938
8943
|
*/
|
8939
8944
|
searchEnabled: boolean;
|
@@ -8947,6 +8952,9 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
8947
8952
|
readOnlyText: string;
|
8948
8953
|
getControlClass(): string;
|
8949
8954
|
get selectedItemLocText(): LocalizableString;
|
8955
|
+
get inputFieldComponentName(): string;
|
8956
|
+
get showSelectedItemLocText(): boolean;
|
8957
|
+
get showInputFieldComponent(): boolean;
|
8950
8958
|
get popupModel(): any;
|
8951
8959
|
onOpened: EventBase<QuestionDropdownModel>;
|
8952
8960
|
onOpenedCallBack(): void;
|
@@ -9471,6 +9479,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
9471
9479
|
constructor(name: string);
|
9472
9480
|
selectAllItemValue: ItemValue;
|
9473
9481
|
invisibleOldValues: any;
|
9482
|
+
protected getDefaultItemComponent(): string;
|
9474
9483
|
get ariaRole(): string;
|
9475
9484
|
getType(): string;
|
9476
9485
|
protected onCreating(): void;
|
@@ -9841,6 +9850,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
9841
9850
|
*/
|
9842
9851
|
export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
|
9843
9852
|
constructor(name: string);
|
9853
|
+
protected getDefaultItemComponent(): string;
|
9844
9854
|
getType(): string;
|
9845
9855
|
get ariaRole(): string;
|
9846
9856
|
get titleAriaLabel(): string;
|
@@ -9866,6 +9876,7 @@ export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
|
|
9866
9876
|
export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
9867
9877
|
constructor(name: string);
|
9868
9878
|
domNode: any;
|
9879
|
+
protected getDefaultItemComponent(): string;
|
9869
9880
|
getType(): string;
|
9870
9881
|
get rootClass(): string;
|
9871
9882
|
protected getItemClassCore(item: ItemValue, options: any): string;
|
@@ -9911,6 +9922,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
9911
9922
|
export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
9912
9923
|
constructor(name: string);
|
9913
9924
|
dropdownListModel: DropdownMultiSelectListModel;
|
9925
|
+
protected getDefaultItemComponent(): string;
|
9914
9926
|
get readOnlyText(): any;
|
9915
9927
|
onSurveyLoad(): void;
|
9916
9928
|
/*
|
@@ -9922,10 +9934,6 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
9922
9934
|
*/
|
9923
9935
|
searchEnabled: boolean;
|
9924
9936
|
/*
|
9925
|
-
* The name of a component used to render drop-down menu items.
|
9926
|
-
*/
|
9927
|
-
itemComponent: string;
|
9928
|
-
/*
|
9929
9937
|
* Specifies whether to remove selected items from the drop-down list.
|
9930
9938
|
*/
|
9931
9939
|
hideSelectedItems: boolean;
|
@@ -10383,6 +10391,7 @@ export declare var defaultStandardCss: {
|
|
10383
10391
|
dropdown: {
|
10384
10392
|
root: string,
|
10385
10393
|
control: string,
|
10394
|
+
controlInputFieldComponent: string,
|
10386
10395
|
selectWrapper: string,
|
10387
10396
|
other: string,
|
10388
10397
|
cleanButton: string,
|
@@ -10768,10 +10777,12 @@ export declare var defaultBootstrapCss: {
|
|
10768
10777
|
root: string,
|
10769
10778
|
selectWrapper: string,
|
10770
10779
|
control: string,
|
10780
|
+
controlValue: string,
|
10771
10781
|
other: string,
|
10772
10782
|
cleanButton: string,
|
10773
10783
|
cleanButtonSvg: string,
|
10774
10784
|
cleanButtonIconId: string,
|
10785
|
+
filterStringInput: string,
|
10775
10786
|
},
|
10776
10787
|
tagbox: {
|
10777
10788
|
root: string,
|
@@ -10781,6 +10792,7 @@ export declare var defaultBootstrapCss: {
|
|
10781
10792
|
cleanButton: string,
|
10782
10793
|
cleanButtonSvg: string,
|
10783
10794
|
cleanButtonIconId: string,
|
10795
|
+
filterStringInput: string,
|
10784
10796
|
},
|
10785
10797
|
html: {
|
10786
10798
|
root: string,
|
@@ -11102,10 +11114,12 @@ export declare var defaultBootstrapMaterialCss: {
|
|
11102
11114
|
root: string,
|
11103
11115
|
selectWrapper: string,
|
11104
11116
|
control: string,
|
11117
|
+
controlValue: string,
|
11105
11118
|
other: string,
|
11106
11119
|
cleanButton: string,
|
11107
11120
|
cleanButtonSvg: string,
|
11108
11121
|
cleanButtonIconId: string,
|
11122
|
+
filterStringInput: string,
|
11109
11123
|
},
|
11110
11124
|
tagbox: {
|
11111
11125
|
root: string,
|
@@ -11115,6 +11129,7 @@ export declare var defaultBootstrapMaterialCss: {
|
|
11115
11129
|
cleanButton: string,
|
11116
11130
|
cleanButtonSvg: string,
|
11117
11131
|
cleanButtonIconId: string,
|
11132
|
+
filterStringInput: string,
|
11118
11133
|
},
|
11119
11134
|
html: {
|
11120
11135
|
root: string,
|
@@ -11567,6 +11582,7 @@ export declare var defaultV2Css: {
|
|
11567
11582
|
cleanButtonSvg: string,
|
11568
11583
|
cleanButtonIconId: string,
|
11569
11584
|
control: string,
|
11585
|
+
controlInputFieldComponent: string,
|
11570
11586
|
controlValue: string,
|
11571
11587
|
controlDisabled: string,
|
11572
11588
|
controlEmpty: string,
|
@@ -12097,6 +12113,7 @@ export declare var modernCss: {
|
|
12097
12113
|
cleanButtonIconId: string,
|
12098
12114
|
filterStringInput: string,
|
12099
12115
|
controlValue: string,
|
12116
|
+
controlInputFieldComponent: string,
|
12100
12117
|
},
|
12101
12118
|
tagbox: {
|
12102
12119
|
root: string,
|