survey-react 1.9.46 → 1.9.47
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 +165 -149
- package/defaultV2.min.css +2 -2
- package/modern.css +2 -11
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +161 -86
- package/survey.react.js +558 -430
- 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.47
|
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
|
*/
|
@@ -92,6 +92,10 @@ export interface IExpresionExecutor {
|
|
92
92
|
*/
|
93
93
|
onComplete: (res: any) => void;
|
94
94
|
}
|
95
|
+
export interface IAttachKey2clickOptions {
|
96
|
+
processEsc?: boolean;
|
97
|
+
disableTabStop?: boolean;
|
98
|
+
}
|
95
99
|
export interface IListModel {
|
96
100
|
items: any;
|
97
101
|
onSelectionChanged: (item: Action, ...params: any) => void;
|
@@ -232,10 +236,6 @@ export interface IAction {
|
|
232
236
|
}
|
233
237
|
export interface IActionDropdownPopupOptions extends IListModel, IPopupOptionsBase {
|
234
238
|
}
|
235
|
-
export interface IAttachKey2clickOptions {
|
236
|
-
processEsc?: boolean;
|
237
|
-
disableTabStop?: boolean;
|
238
|
-
}
|
239
239
|
export interface IDimensions {
|
240
240
|
scroll: number;
|
241
241
|
offset: number;
|
@@ -1705,6 +1705,7 @@ export declare class ActionContainer<T extends Action = Action> extends Base imp
|
|
1705
1705
|
get renderedActions(): any;
|
1706
1706
|
get visibleActions(): any;
|
1707
1707
|
getRootCss(): string;
|
1708
|
+
protected getDefaultCssClasses(): any;
|
1708
1709
|
get cssClasses(): any;
|
1709
1710
|
addAction(val: IAction, sortByVisibleIndex?: boolean): Action;
|
1710
1711
|
setItems(items: any, sortByVisibleIndex?: boolean): void;
|
@@ -2751,6 +2752,70 @@ export declare class PopupModel<T = any> extends Base {
|
|
2751
2752
|
set isVisible(val: boolean);
|
2752
2753
|
toggleVisibility(): void;
|
2753
2754
|
}
|
2755
|
+
/*
|
2756
|
+
* A Model for a survey running in the Popup Window.
|
2757
|
+
*/
|
2758
|
+
export declare class PopupSurveyModel extends Base {
|
2759
|
+
constructor(jsonObj: any, initialModel?: SurveyModel);
|
2760
|
+
static surveyElementName: string;
|
2761
|
+
surveyValue: SurveyModel;
|
2762
|
+
windowElement: any;
|
2763
|
+
templateValue: string;
|
2764
|
+
expandedChangedCallback: any;
|
2765
|
+
showingChangedCallback: any;
|
2766
|
+
protected onCreating(): void;
|
2767
|
+
getType(): string;
|
2768
|
+
/*
|
2769
|
+
* A survey object.
|
2770
|
+
*/
|
2771
|
+
get survey(): SurveyModel;
|
2772
|
+
/*
|
2773
|
+
* Set this value to negative value, for example -1, to avoid closing the popup window on completing the survey. Leave it equals to 0 (default value) to close the popup window immediately, or set it to 3, 5, 10, ... to close the popup window in 3, 5, 10 seconds.
|
2774
|
+
*/
|
2775
|
+
closeOnCompleteTimeout: number;
|
2776
|
+
/*
|
2777
|
+
* Returns true if the popup window is currently showing. Set it to true to show the popup window and false to hide it.
|
2778
|
+
*/
|
2779
|
+
get isShowing(): boolean;
|
2780
|
+
set isShowing(val: boolean);
|
2781
|
+
/*
|
2782
|
+
* Show the popup window
|
2783
|
+
*/
|
2784
|
+
show(): void;
|
2785
|
+
/*
|
2786
|
+
* Hide the popup window
|
2787
|
+
*/
|
2788
|
+
hide(): void;
|
2789
|
+
/*
|
2790
|
+
* Returns true if the popup window is expanded. Set it to true to expand the popup window or false to collapse it.
|
2791
|
+
*/
|
2792
|
+
get isExpanded(): boolean;
|
2793
|
+
set isExpanded(val: boolean);
|
2794
|
+
protected onExpandedChanged(): void;
|
2795
|
+
/*
|
2796
|
+
* The popup window and survey title.
|
2797
|
+
*/
|
2798
|
+
get title(): string;
|
2799
|
+
set title(val: string);
|
2800
|
+
get locTitle(): LocalizableString;
|
2801
|
+
/*
|
2802
|
+
* Expand the popup window to show the survey.
|
2803
|
+
*/
|
2804
|
+
expand(): void;
|
2805
|
+
/*
|
2806
|
+
* Collapse the popup window and show survey title only.
|
2807
|
+
*/
|
2808
|
+
collapse(): void;
|
2809
|
+
changeExpandCollapse(): void;
|
2810
|
+
get css(): any;
|
2811
|
+
get cssButton(): string;
|
2812
|
+
get cssRoot(): string;
|
2813
|
+
get cssBody(): string;
|
2814
|
+
get cssHeaderRoot(): string;
|
2815
|
+
get cssHeaderTitle(): string;
|
2816
|
+
protected createSurvey(jsonObj: any): SurveyModel;
|
2817
|
+
protected onSurveyComplete(): void;
|
2818
|
+
}
|
2754
2819
|
export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
2755
2820
|
constructor(cssClasses: any, isDetailRow?: boolean);
|
2756
2821
|
cssClasses: any;
|
@@ -3000,6 +3065,8 @@ export declare class SurveyElementCore extends Base implements ILocalizableOwner
|
|
3000
3065
|
get ariaTitleId(): string;
|
3001
3066
|
get titleTabIndex(): number;
|
3002
3067
|
get titleAriaExpanded(): boolean;
|
3068
|
+
get ariaLabel(): string;
|
3069
|
+
get titleAriaLabel(): string;
|
3003
3070
|
getLocale(): string;
|
3004
3071
|
getMarkdownHtml(text: string, name: string): string;
|
3005
3072
|
getRenderer(name: string): string;
|
@@ -3137,70 +3204,6 @@ export declare class SurveyValidator extends Base {
|
|
3137
3204
|
toString(): string;
|
3138
3205
|
}
|
3139
3206
|
/*
|
3140
|
-
* A Model for a survey running in the Window.
|
3141
|
-
*/
|
3142
|
-
export declare class SurveyWindowModel extends Base {
|
3143
|
-
constructor(jsonObj: any, initialModel?: SurveyModel);
|
3144
|
-
static surveyElementName: string;
|
3145
|
-
surveyValue: SurveyModel;
|
3146
|
-
windowElement: any;
|
3147
|
-
templateValue: string;
|
3148
|
-
expandedChangedCallback: any;
|
3149
|
-
showingChangedCallback: any;
|
3150
|
-
protected onCreating(): void;
|
3151
|
-
getType(): string;
|
3152
|
-
/*
|
3153
|
-
* A survey object.
|
3154
|
-
*/
|
3155
|
-
get survey(): SurveyModel;
|
3156
|
-
/*
|
3157
|
-
* Set this value to negative value, for example -1, to avoid closing the window on completing the survey. Leave it equals to 0 (default value) to close the window immediately, or set it to 3, 5, 10, ... to close the window in 3, 5, 10 seconds.
|
3158
|
-
*/
|
3159
|
-
closeOnCompleteTimeout: number;
|
3160
|
-
/*
|
3161
|
-
* Returns true if the window is currently showing. Set it to true to show the window and false to hide it.
|
3162
|
-
*/
|
3163
|
-
get isShowing(): boolean;
|
3164
|
-
set isShowing(val: boolean);
|
3165
|
-
/*
|
3166
|
-
* Show the window
|
3167
|
-
*/
|
3168
|
-
show(): void;
|
3169
|
-
/*
|
3170
|
-
* Hide the window
|
3171
|
-
*/
|
3172
|
-
hide(): void;
|
3173
|
-
/*
|
3174
|
-
* Returns true if the window is expanded. Set it to true to expand the window or false to collapse it.
|
3175
|
-
*/
|
3176
|
-
get isExpanded(): boolean;
|
3177
|
-
set isExpanded(val: boolean);
|
3178
|
-
protected onExpandedChanged(): void;
|
3179
|
-
/*
|
3180
|
-
* The window and survey title.
|
3181
|
-
*/
|
3182
|
-
get title(): string;
|
3183
|
-
set title(val: string);
|
3184
|
-
get locTitle(): LocalizableString;
|
3185
|
-
/*
|
3186
|
-
* Expand the window to show the survey.
|
3187
|
-
*/
|
3188
|
-
expand(): void;
|
3189
|
-
/*
|
3190
|
-
* Collapse the window and show survey title only.
|
3191
|
-
*/
|
3192
|
-
collapse(): void;
|
3193
|
-
changeExpandCollapse(): void;
|
3194
|
-
get css(): any;
|
3195
|
-
get cssButton(): string;
|
3196
|
-
get cssRoot(): string;
|
3197
|
-
get cssBody(): string;
|
3198
|
-
get cssHeaderRoot(): string;
|
3199
|
-
get cssHeaderTitle(): string;
|
3200
|
-
protected createSurvey(jsonObj: any): SurveyModel;
|
3201
|
-
protected onSurveyComplete(): void;
|
3202
|
-
}
|
3203
|
-
/*
|
3204
3207
|
* A base class for all triggers.
|
3205
3208
|
* A trigger calls a method when the expression change the result: from false to true or from true to false.
|
3206
3209
|
* Please note, it runs only one changing the expression result.
|
@@ -3487,6 +3490,7 @@ export declare class ListModel extends ActionContainer {
|
|
3487
3490
|
static MINELEMENTCOUNT: number;
|
3488
3491
|
isItemVisible(item: Action): boolean;
|
3489
3492
|
protected onSet(): void;
|
3493
|
+
protected getDefaultCssClasses(): any;
|
3490
3494
|
protected updateItemActiveState(): void;
|
3491
3495
|
onItemClick: (itemValue: Action) => void;
|
3492
3496
|
isItemDisabled: (itemValue: Action) => boolean;
|
@@ -3549,6 +3553,17 @@ export declare class NumericValidator extends SurveyValidator {
|
|
3549
3553
|
get maxValue(): number;
|
3550
3554
|
set maxValue(val: number);
|
3551
3555
|
}
|
3556
|
+
export declare class PopupSurvey extends Survey {
|
3557
|
+
constructor(props: any);
|
3558
|
+
protected popup: any;
|
3559
|
+
protected getStateElements(): Array<Base>;
|
3560
|
+
handleOnExpanded(event: any): void;
|
3561
|
+
protected canRender(): boolean;
|
3562
|
+
protected renderElement(): JSX.Element;
|
3563
|
+
protected renderWindowHeader(): JSX.Element;
|
3564
|
+
protected renderBody(): JSX.Element;
|
3565
|
+
protected createSurvey(newProps: any): void;
|
3566
|
+
}
|
3552
3567
|
export declare class QuestionCompositeTextProcessor extends QuestionTextProcessor {
|
3553
3568
|
constructor(composite: QuestionCompositeModel, variableName: string);
|
3554
3569
|
protected get survey(): ISurvey;
|
@@ -6034,16 +6049,11 @@ export declare class SurveyTrigger extends Trigger {
|
|
6034
6049
|
protected isRealExecution(): boolean;
|
6035
6050
|
protected onSuccessExecuted(): void;
|
6036
6051
|
}
|
6037
|
-
|
6038
|
-
|
6039
|
-
|
6040
|
-
|
6041
|
-
|
6042
|
-
protected canRender(): boolean;
|
6043
|
-
protected renderElement(): JSX.Element;
|
6044
|
-
protected renderWindowHeader(): JSX.Element;
|
6045
|
-
protected renderBody(): JSX.Element;
|
6046
|
-
protected createSurvey(newProps: any): void;
|
6052
|
+
/*
|
6053
|
+
* Obsolete. Please use PopupSurvey
|
6054
|
+
*/
|
6055
|
+
export declare class SurveyWindowModel extends PopupSurveyModel {
|
6056
|
+
constructor(jsonObj: any, initialModel?: SurveyModel);
|
6047
6057
|
}
|
6048
6058
|
/*
|
6049
6059
|
* Validate text values.
|
@@ -6442,7 +6452,6 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6442
6452
|
* A11Y properties
|
6443
6453
|
*/
|
6444
6454
|
get ariaRequired(): "true" | "false";
|
6445
|
-
get ariaLabel(): string;
|
6446
6455
|
get ariaInvalid(): "true" | "false";
|
6447
6456
|
get ariaDescribedBy(): string;
|
6448
6457
|
/*
|
@@ -7146,6 +7155,12 @@ export declare class SurveyTriggerVisible extends SurveyTrigger {
|
|
7146
7155
|
protected onItemFailure(item: any): void;
|
7147
7156
|
}
|
7148
7157
|
/*
|
7158
|
+
* Obsolete. Please use PopupSurvey
|
7159
|
+
*/
|
7160
|
+
export declare class SurveyWindow extends PopupSurvey {
|
7161
|
+
constructor(props: any);
|
7162
|
+
}
|
7163
|
+
/*
|
7149
7164
|
* The page object. It has elements collection, that contains questions and panels.
|
7150
7165
|
*/
|
7151
7166
|
export declare class PageModel extends PanelModelBase implements IPage {
|
@@ -8785,6 +8800,12 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
8785
8800
|
* Specifies whether to display a search bar in the drop-down menu.
|
8786
8801
|
*/
|
8787
8802
|
searchEnabled: boolean;
|
8803
|
+
/*
|
8804
|
+
* The clean files button caption.
|
8805
|
+
*/
|
8806
|
+
get cleanButtonCaption(): string;
|
8807
|
+
set cleanButtonCaption(val: string);
|
8808
|
+
get locCleanButtonCaption(): LocalizableString;
|
8788
8809
|
getControlClass(): string;
|
8789
8810
|
get readOnlyText(): any;
|
8790
8811
|
get popupModel(): any;
|
@@ -9678,6 +9699,7 @@ export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
|
|
9678
9699
|
constructor(name: string);
|
9679
9700
|
getType(): string;
|
9680
9701
|
get ariaRole(): string;
|
9702
|
+
get titleAriaLabel(): string;
|
9681
9703
|
protected getFirstInputElementId(): string;
|
9682
9704
|
/*
|
9683
9705
|
* Return the selected item in the radio group. Returns null if the value is empty
|
@@ -9757,6 +9779,12 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
9757
9779
|
searchEnabled: boolean;
|
9758
9780
|
hideSelectedItems: boolean;
|
9759
9781
|
/*
|
9782
|
+
* The clean files button caption.
|
9783
|
+
*/
|
9784
|
+
get cleanButtonCaption(): string;
|
9785
|
+
set cleanButtonCaption(val: string);
|
9786
|
+
get locCleanButtonCaption(): LocalizableString;
|
9787
|
+
/*
|
9760
9788
|
* A text displayed in the input field when it doesn't have a value.
|
9761
9789
|
*/
|
9762
9790
|
get placeholder(): string;
|
@@ -9771,16 +9799,16 @@ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
|
|
9771
9799
|
}
|
9772
9800
|
export declare function property(options?: any): (target: any, key: string) => void;
|
9773
9801
|
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
|
9774
|
-
export declare function createDialogOptions(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): IDialogOptions;
|
9775
|
-
export declare function createPopupModalViewModel(options: IDialogOptions): PopupBaseViewModel;
|
9776
|
-
export declare function createDropdownActionModel(actionOptions: IAction, dropdownOptions: IActionDropdownPopupOptions, locOwner?: any): Action;
|
9777
|
-
export declare function createDropdownActionModelAdvanced(actionOptions: IAction, listOptions: IListModel, popupOptions?: IPopupOptionsBase, locOwner?: any): Action;
|
9778
9802
|
export declare function unwrap<T>(value: any): T;
|
9779
9803
|
export declare function getSize(value: any): any;
|
9780
9804
|
export declare function doKey2ClickBlur(evt: any): void;
|
9781
9805
|
export declare function doKey2ClickUp(evt: any, options?: IAttachKey2clickOptions): void;
|
9782
9806
|
export declare function doKey2ClickDown(evt: any, options?: IAttachKey2clickOptions): void;
|
9783
9807
|
export declare function sanitizeEditableContent(element: any): void;
|
9808
|
+
export declare function createDialogOptions(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): IDialogOptions;
|
9809
|
+
export declare function createPopupModalViewModel(options: IDialogOptions): PopupBaseViewModel;
|
9810
|
+
export declare function createDropdownActionModel(actionOptions: IAction, dropdownOptions: IActionDropdownPopupOptions, locOwner?: any): Action;
|
9811
|
+
export declare function createDropdownActionModelAdvanced(actionOptions: IAction, listOptions: IListModel, popupOptions?: IPopupOptionsBase, locOwner?: any): Action;
|
9784
9812
|
export declare function getCurrecyCodes(): Array<any>;
|
9785
9813
|
export declare function checkLibraryVersion(ver: string, libraryName: string): void;
|
9786
9814
|
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
@@ -9922,7 +9950,7 @@ export declare var settings: {
|
|
9922
9950
|
*/
|
9923
9951
|
minWidth: string,
|
9924
9952
|
/*
|
9925
|
-
* Set this property to change the default value of the
|
9953
|
+
* Set this property to change the default value of the maxWidth constraint
|
9926
9954
|
*/
|
9927
9955
|
maxWidth: string,
|
9928
9956
|
/*
|
@@ -10012,6 +10040,7 @@ export declare var Serializer: JsonMetadata;
|
|
10012
10040
|
export declare var surveyBuiltInVarible: string;
|
10013
10041
|
export declare var registerFunction: (name: string, func: any) => any;
|
10014
10042
|
export declare var parse: any;
|
10043
|
+
export declare var keyFocusedClassName: any;
|
10015
10044
|
export declare var defaultActionBarCss: {
|
10016
10045
|
root: string,
|
10017
10046
|
defaultSizeMode: string,
|
@@ -10023,8 +10052,21 @@ export declare var defaultActionBarCss: {
|
|
10023
10052
|
itemTitle: string,
|
10024
10053
|
itemTitleWithIcon: string,
|
10025
10054
|
};
|
10055
|
+
export declare var defaultListCss: {
|
10056
|
+
root: string,
|
10057
|
+
item: string,
|
10058
|
+
itemSelected: string,
|
10059
|
+
itemWithIcon: string,
|
10060
|
+
itemDisabled: string,
|
10061
|
+
itemIcon: string,
|
10062
|
+
itemsContainer: string,
|
10063
|
+
filter: string,
|
10064
|
+
filterIcon: string,
|
10065
|
+
filterInput: string,
|
10066
|
+
emptyContainer: string,
|
10067
|
+
emptyText: string,
|
10068
|
+
};
|
10026
10069
|
export declare var FOCUS_INPUT_SELECTOR: any;
|
10027
|
-
export declare var keyFocusedClassName: any;
|
10028
10070
|
export declare var surveyCss: {
|
10029
10071
|
currentType: string,
|
10030
10072
|
getCss: any,
|
@@ -10557,8 +10599,21 @@ export declare var defaultBootstrapCss: {
|
|
10557
10599
|
comment: string,
|
10558
10600
|
dropdown: {
|
10559
10601
|
root: string,
|
10602
|
+
selectWrapper: string,
|
10560
10603
|
control: string,
|
10561
10604
|
other: string,
|
10605
|
+
cleanButton: string,
|
10606
|
+
cleanButtonSvg: string,
|
10607
|
+
cleanButtonIconId: string,
|
10608
|
+
},
|
10609
|
+
tagbox: {
|
10610
|
+
root: string,
|
10611
|
+
selectWrapper: string,
|
10612
|
+
control: string,
|
10613
|
+
other: string,
|
10614
|
+
cleanButton: string,
|
10615
|
+
cleanButtonSvg: string,
|
10616
|
+
cleanButtonIconId: string,
|
10562
10617
|
},
|
10563
10618
|
html: {
|
10564
10619
|
root: string,
|
@@ -10878,8 +10933,21 @@ export declare var defaultBootstrapMaterialCss: {
|
|
10878
10933
|
comment: string,
|
10879
10934
|
dropdown: {
|
10880
10935
|
root: string,
|
10936
|
+
selectWrapper: string,
|
10937
|
+
control: string,
|
10938
|
+
other: string,
|
10939
|
+
cleanButton: string,
|
10940
|
+
cleanButtonSvg: string,
|
10941
|
+
cleanButtonIconId: string,
|
10942
|
+
},
|
10943
|
+
tagbox: {
|
10944
|
+
root: string,
|
10945
|
+
selectWrapper: string,
|
10881
10946
|
control: string,
|
10882
10947
|
other: string,
|
10948
|
+
cleanButton: string,
|
10949
|
+
cleanButtonSvg: string,
|
10950
|
+
cleanButtonIconId: string,
|
10883
10951
|
},
|
10884
10952
|
html: {
|
10885
10953
|
root: string,
|
@@ -11552,9 +11620,16 @@ export declare var defaultV2Css: {
|
|
11552
11620
|
itemDisabled: string,
|
11553
11621
|
itemControl: string,
|
11554
11622
|
},
|
11623
|
+
list: {
|
11624
|
+
root: string,
|
11625
|
+
item: string,
|
11626
|
+
itemSelected: string,
|
11627
|
+
},
|
11555
11628
|
actionBar: {
|
11556
11629
|
root: string,
|
11557
11630
|
item: string,
|
11631
|
+
defaultSizeMode: string,
|
11632
|
+
smallSizeMode: string,
|
11558
11633
|
itemPressed: string,
|
11559
11634
|
itemAsIcon: string,
|
11560
11635
|
itemIcon: string,
|