survey-react 1.8.77 → 1.8.78
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/modern.css +25 -2
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +3 -3
- package/survey.min.css +2 -2
- package/survey.react.d.ts +61 -7
- package/survey.react.js +348 -113
- package/survey.react.min.js +4 -4
package/survey.react.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/*Type definitions for Survey JavaScript library v1.8.
|
1
|
+
/*Type definitions for Survey JavaScript library v1.8.78
|
2
2
|
Copyright (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
|
3
3
|
Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
|
4
4
|
*/
|
@@ -1071,12 +1071,15 @@ export declare var defaultV2Css: {
|
|
1071
1071
|
root: string;
|
1072
1072
|
icon: string;
|
1073
1073
|
item: string;
|
1074
|
+
tooltip: string;
|
1075
|
+
aboveQuestion: string;
|
1074
1076
|
locationTop: string;
|
1075
1077
|
locationBottom: string;
|
1076
1078
|
};
|
1077
1079
|
checkbox: {
|
1078
1080
|
root: string;
|
1079
1081
|
item: string;
|
1082
|
+
itemOnError: string;
|
1080
1083
|
itemSelectAll: string;
|
1081
1084
|
itemNone: string;
|
1082
1085
|
itemDisabled: string;
|
@@ -1095,6 +1098,7 @@ export declare var defaultV2Css: {
|
|
1095
1098
|
radiogroup: {
|
1096
1099
|
root: string;
|
1097
1100
|
item: string;
|
1101
|
+
itemOnError: string;
|
1098
1102
|
itemInline: string;
|
1099
1103
|
label: string;
|
1100
1104
|
labelChecked: string;
|
@@ -1113,6 +1117,7 @@ export declare var defaultV2Css: {
|
|
1113
1117
|
mainRoot: string;
|
1114
1118
|
root: string;
|
1115
1119
|
item: string;
|
1120
|
+
itemOnError: string;
|
1116
1121
|
control: string;
|
1117
1122
|
itemChecked: string;
|
1118
1123
|
itemIndeterminate: string;
|
@@ -1160,6 +1165,7 @@ export declare var defaultV2Css: {
|
|
1160
1165
|
mainRoot: string;
|
1161
1166
|
root: string;
|
1162
1167
|
item: string;
|
1168
|
+
itemOnError: string;
|
1163
1169
|
itemInline: string;
|
1164
1170
|
itemChecked: string;
|
1165
1171
|
itemDisabled: string;
|
@@ -1179,6 +1185,7 @@ export declare var defaultV2Css: {
|
|
1179
1185
|
cell: string;
|
1180
1186
|
headerCell: string;
|
1181
1187
|
label: string;
|
1188
|
+
itemOnError: string;
|
1182
1189
|
itemValue: string;
|
1183
1190
|
itemChecked: string;
|
1184
1191
|
itemDisabled: string;
|
@@ -1194,12 +1201,14 @@ export declare var defaultV2Css: {
|
|
1194
1201
|
root: string;
|
1195
1202
|
cell: string;
|
1196
1203
|
headerCell: string;
|
1204
|
+
rowTextCell: string;
|
1197
1205
|
};
|
1198
1206
|
matrixdynamic: {
|
1199
1207
|
mainRoot: string;
|
1200
1208
|
root: string;
|
1201
1209
|
cell: string;
|
1202
1210
|
headerCell: string;
|
1211
|
+
rowTextCell: string;
|
1203
1212
|
button: string;
|
1204
1213
|
detailRow: string;
|
1205
1214
|
detailButton: string;
|
@@ -1216,6 +1225,7 @@ export declare var defaultV2Css: {
|
|
1216
1225
|
rating: {
|
1217
1226
|
root: string;
|
1218
1227
|
item: string;
|
1228
|
+
itemOnError: string;
|
1219
1229
|
itemHover: string;
|
1220
1230
|
selected: string;
|
1221
1231
|
minText: string;
|
@@ -1227,6 +1237,7 @@ export declare var defaultV2Css: {
|
|
1227
1237
|
root: string;
|
1228
1238
|
small: string;
|
1229
1239
|
controlDisabled: string;
|
1240
|
+
onError: string;
|
1230
1241
|
};
|
1231
1242
|
expression: string;
|
1232
1243
|
file: {
|
@@ -1238,6 +1249,7 @@ export declare var defaultV2Css: {
|
|
1238
1249
|
fileList: string;
|
1239
1250
|
fileSignBottom: string;
|
1240
1251
|
fileDecorator: string;
|
1252
|
+
onError: string;
|
1241
1253
|
fileDecoratorDrag: string;
|
1242
1254
|
fileInput: string;
|
1243
1255
|
noFileChosen: string;
|
@@ -1777,6 +1789,10 @@ export interface IAction {
|
|
1777
1789
|
* Set it to true to make the tabIndex -1 to disable keyboard navigation to this item
|
1778
1790
|
*/
|
1779
1791
|
disableTabStop?: boolean;
|
1792
|
+
/**
|
1793
|
+
* Set it to false to force action "large" mode even if has icon and does not fit to action bar space
|
1794
|
+
*/
|
1795
|
+
disableShrink?: boolean;
|
1780
1796
|
/**
|
1781
1797
|
* Action button display mode
|
1782
1798
|
*/
|
@@ -1809,6 +1825,7 @@ export declare class Action extends Base implements IAction {
|
|
1809
1825
|
visibleIndex: number;
|
1810
1826
|
mode: "large" | "small" | "popup";
|
1811
1827
|
disableTabStop: boolean;
|
1828
|
+
disableShrink: boolean;
|
1812
1829
|
get disabled(): boolean;
|
1813
1830
|
get hasTitle(): boolean;
|
1814
1831
|
get isVisible(): boolean;
|
@@ -1853,6 +1870,12 @@ export declare class ActionContainer<T extends Action = Action> extends Base {
|
|
1853
1870
|
resetResponsivityManager(): void;
|
1854
1871
|
}
|
1855
1872
|
|
1873
|
+
export declare class TooltipManager {
|
1874
|
+
tooltipElement: HTMLElement;
|
1875
|
+
constructor(tooltipElement: HTMLElement);
|
1876
|
+
dispose(): void;
|
1877
|
+
}
|
1878
|
+
|
1856
1879
|
export declare class Survey extends SurveyElementBase<any, any> implements ISurveyCreator {
|
1857
1880
|
static get cssType(): string;
|
1858
1881
|
static set cssType(value: string);
|
@@ -2019,6 +2042,8 @@ export declare class SurveyElementErrors extends ReactSurveyElement {
|
|
2019
2042
|
protected get element(): SurveyElement;
|
2020
2043
|
protected get location(): string;
|
2021
2044
|
protected canRender(): boolean;
|
2045
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
2046
|
+
componentWillUnmount(): void;
|
2022
2047
|
protected renderElement(): JSX.Element;
|
2023
2048
|
}
|
2024
2049
|
export declare class SurveyQuestionAndErrorsCell extends ReactSurveyElement {
|
@@ -2466,10 +2491,12 @@ export declare class PopupContainer extends SurveyElementBase<any, any> {
|
|
2466
2491
|
renderPointer(): JSX.Element;
|
2467
2492
|
renderHeader(): JSX.Element;
|
2468
2493
|
renderContent(): JSX.Element;
|
2494
|
+
renderCancelButton(): JSX.Element;
|
2495
|
+
renderApplyButton(): JSX.Element;
|
2469
2496
|
renderFooter(): JSX.Element;
|
2470
2497
|
render(): JSX.Element;
|
2471
2498
|
}
|
2472
|
-
export declare function showModal(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string): void;
|
2499
|
+
export declare function showModal(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
2473
2500
|
export {};
|
2474
2501
|
|
2475
2502
|
interface IListProps {
|
@@ -2756,7 +2783,7 @@ export declare var settings: {
|
|
2756
2783
|
* Set the value as string "yyyy-mm-dd". text questions with inputType "date" will not allow to set to survey date that greater than this value
|
2757
2784
|
*/
|
2758
2785
|
maxDate: string;
|
2759
|
-
showModal: (componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string) => void;
|
2786
|
+
showModal: (componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay") => void;
|
2760
2787
|
supportCreatorV2: boolean;
|
2761
2788
|
/**
|
2762
2789
|
* Specifies a list of custom icons.
|
@@ -3513,6 +3540,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3513
3540
|
stateChangedCallback: () => void;
|
3514
3541
|
static getProgressInfoByElements(children: Array<SurveyElement>, isRequired: boolean): IProgressInfo;
|
3515
3542
|
dragTypeOverMe: DragTypeOverMeEnum;
|
3543
|
+
isDragMe: boolean;
|
3516
3544
|
readOnlyChangedCallback: () => void;
|
3517
3545
|
static ScrollElementToTop(elementId: string): boolean;
|
3518
3546
|
static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
|
@@ -5795,8 +5823,6 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5795
5823
|
* It may contain questions and other panels.
|
5796
5824
|
*/
|
5797
5825
|
export declare class PanelModel extends PanelModelBase implements IElement {
|
5798
|
-
minWidth?: string;
|
5799
|
-
maxWidth?: string;
|
5800
5826
|
constructor(name?: string);
|
5801
5827
|
getType(): string;
|
5802
5828
|
get contentId(): string;
|
@@ -5868,6 +5894,16 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
5868
5894
|
*/
|
5869
5895
|
get width(): string;
|
5870
5896
|
set width(val: string);
|
5897
|
+
/**
|
5898
|
+
* Use it to set the specific minWidth constraint to the panel like css style (%, px, em etc).
|
5899
|
+
*/
|
5900
|
+
get minWidth(): string;
|
5901
|
+
set minWidth(val: string);
|
5902
|
+
/**
|
5903
|
+
* Use it to set the specific maxWidth constraint to the panel like css style (%, px, em etc).
|
5904
|
+
*/
|
5905
|
+
get maxWidth(): string;
|
5906
|
+
set maxWidth(val: string);
|
5871
5907
|
/**
|
5872
5908
|
* The left indent. Set this property to increase the panel left indent.
|
5873
5909
|
*/
|
@@ -6076,6 +6112,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6076
6112
|
*/
|
6077
6113
|
onReadyChanged: EventBase<Question>;
|
6078
6114
|
isReadOnlyRenderDiv(): boolean;
|
6115
|
+
get isErrorsModeTooltip(): boolean;
|
6116
|
+
get hasParent(): boolean;
|
6079
6117
|
constructor(name: string);
|
6080
6118
|
protected createLocTitleProperty(): LocalizableString;
|
6081
6119
|
getSurvey(live?: boolean): ISurvey;
|
@@ -6437,6 +6475,10 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6437
6475
|
createValueCopy(): any;
|
6438
6476
|
protected getUnbindValue(value: any): any;
|
6439
6477
|
protected isValueSurveyElement(val: any): boolean;
|
6478
|
+
/**
|
6479
|
+
* Return true if there is a parent (page or panel) and it is visible
|
6480
|
+
*/
|
6481
|
+
get isParentVisible(): boolean;
|
6440
6482
|
clearValueIfInvisible(): void;
|
6441
6483
|
get displayValue(): any;
|
6442
6484
|
/**
|
@@ -10967,13 +11009,14 @@ export declare class PopupModel<T = any> extends Base {
|
|
10967
11009
|
onShow: () => void;
|
10968
11010
|
cssClass: string;
|
10969
11011
|
title: string;
|
11012
|
+
displayMode: "popup" | "overlay";
|
10970
11013
|
constructor(contentComponentName: string, contentComponentData: T, verticalPosition?: VerticalPosition, horizontalPosition?: HorizontalPosition, showPointer?: boolean, isModal?: boolean, onCancel?: () => void, onApply?: () => boolean, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string);
|
10971
11014
|
get isVisible(): boolean;
|
10972
11015
|
set isVisible(value: boolean);
|
10973
11016
|
toggleVisibility(): void;
|
10974
11017
|
onVisibilityChanged: (isVisible: boolean) => void;
|
10975
11018
|
}
|
10976
|
-
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string): PopupBaseViewModel;
|
11019
|
+
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
10977
11020
|
export declare class PopupBaseViewModel extends Base {
|
10978
11021
|
targetElement?: HTMLElement;
|
10979
11022
|
top: string;
|
@@ -10991,6 +11034,8 @@ export declare class PopupBaseViewModel extends Base {
|
|
10991
11034
|
get contentComponentData(): any;
|
10992
11035
|
get showPointer(): boolean;
|
10993
11036
|
get isModal(): boolean;
|
11037
|
+
get showFooter(): boolean;
|
11038
|
+
get isOverlay(): boolean;
|
10994
11039
|
get styleClass(): string;
|
10995
11040
|
onKeyDown(event: any): void;
|
10996
11041
|
updateOnShowing(): void;
|
@@ -11073,7 +11118,12 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
11073
11118
|
protected prevIsEdge: any;
|
11074
11119
|
protected ghostSurveyElement: IElement;
|
11075
11120
|
protected get draggedElementType(): string;
|
11121
|
+
protected isDraggedElementSelected: boolean;
|
11076
11122
|
startDragToolboxItem(event: PointerEvent, draggedElementJson: JsonObject): void;
|
11123
|
+
startDragSurveyElement(event: PointerEvent, draggedElement: any, isElementSelected?: boolean): void;
|
11124
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
|
11125
|
+
protected createDraggedElementIcon(): HTMLElement;
|
11126
|
+
protected getDraggedElementClass(): string;
|
11077
11127
|
protected createElementFromJson(json: object): HTMLElement;
|
11078
11128
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode: HTMLElement, event: PointerEvent): any;
|
11079
11129
|
protected isDropTargetValid(dropTarget: SurveyElement): boolean;
|
@@ -11205,12 +11255,14 @@ export declare class DragDropRankingChoices extends DragDropChoices {
|
|
11205
11255
|
protected get draggedElementType(): string;
|
11206
11256
|
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement): HTMLElement;
|
11207
11257
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
11258
|
+
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
11208
11259
|
protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
|
11209
11260
|
protected calculateIsBottom(clientY: number): boolean;
|
11261
|
+
protected doDragOver: () => any;
|
11210
11262
|
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
11211
11263
|
protected ghostPositionChanged(): void;
|
11264
|
+
protected doBanDropHere: () => any;
|
11212
11265
|
protected doDrop: () => any;
|
11213
|
-
protected handleEscapeButton: (event: KeyboardEvent) => void;
|
11214
11266
|
protected doClear: () => void;
|
11215
11267
|
}
|
11216
11268
|
|
@@ -11299,12 +11351,14 @@ export declare abstract class DragDropCore<T> extends Base {
|
|
11299
11351
|
protected get survey(): SurveyModel;
|
11300
11352
|
prevDropTarget: any;
|
11301
11353
|
protected draggedElementShortcut: any;
|
11354
|
+
protected allowDropHere: boolean;
|
11302
11355
|
constructor(surveyValue?: ISurvey, creator?: any);
|
11303
11356
|
startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement): void;
|
11304
11357
|
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
11305
11358
|
protected doStartDrag(): void;
|
11306
11359
|
protected getShortcutText(draggedElement: IShortcutText): string;
|
11307
11360
|
protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
|
11361
|
+
protected getDraggedElementClass(): string;
|
11308
11362
|
protected doDragOver(dropTargetNode?: HTMLElement): void;
|
11309
11363
|
protected afterDragOver(dropTargetNode?: HTMLElement): void;
|
11310
11364
|
getGhostPosition(item: any): string;
|