survey-react 1.9.1 → 1.9.2
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 +8 -4
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +4 -4
- package/survey.min.css +2 -2
- package/survey.react.d.ts +42 -20
- package/survey.react.js +286 -114
- 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.9.
|
1
|
+
/*Type definitions for Survey JavaScript library v1.9.2
|
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
|
*/
|
@@ -295,15 +295,12 @@ export declare var defaultStandardCss: {
|
|
295
295
|
removeButton: string;
|
296
296
|
fileInput: string;
|
297
297
|
removeFile: string;
|
298
|
-
removeFileSvg: string;
|
299
298
|
fileDecorator: string;
|
300
|
-
|
301
|
-
removeButtonBottom: string;
|
299
|
+
fileSign: string;
|
302
300
|
chooseFile: string;
|
303
301
|
noFileChosen: string;
|
304
302
|
dragAreaPlaceholder: string;
|
305
303
|
fileList: string;
|
306
|
-
defaultImage: string;
|
307
304
|
};
|
308
305
|
signaturepad: {
|
309
306
|
root: string;
|
@@ -611,13 +608,11 @@ export declare var defaultBootstrapCss: {
|
|
611
608
|
removeButton: string;
|
612
609
|
fileInput: string;
|
613
610
|
removeFile: string;
|
614
|
-
removeFileSvg: string;
|
615
611
|
fileDecorator: string;
|
616
|
-
|
612
|
+
fileSign: string;
|
617
613
|
removeButtonBottom: string;
|
618
614
|
dragAreaPlaceholder: string;
|
619
615
|
fileList: string;
|
620
|
-
defaultImage: string;
|
621
616
|
};
|
622
617
|
signaturepad: {
|
623
618
|
root: string;
|
@@ -930,14 +925,12 @@ export declare var defaultBootstrapMaterialCss: {
|
|
930
925
|
preview: string;
|
931
926
|
removeButton: string;
|
932
927
|
fileInput: string;
|
928
|
+
fileSign: string;
|
933
929
|
removeFile: string;
|
934
|
-
removeFileSvg: string;
|
935
930
|
fileDecorator: string;
|
936
|
-
fileSignBottom: string;
|
937
931
|
removeButtonBottom: string;
|
938
932
|
dragAreaPlaceholder: string;
|
939
933
|
fileList: string;
|
940
|
-
defaultImage: string;
|
941
934
|
};
|
942
935
|
signaturepad: {
|
943
936
|
root: string;
|
@@ -1000,6 +993,9 @@ export declare var defaultV2Css: {
|
|
1000
993
|
iconExpanded: string;
|
1001
994
|
footer: string;
|
1002
995
|
requiredText: string;
|
996
|
+
header: string;
|
997
|
+
collapsed: string;
|
998
|
+
nested: string;
|
1003
999
|
};
|
1004
1000
|
paneldynamic: {
|
1005
1001
|
mainRoot: string;
|
@@ -1066,6 +1062,8 @@ export declare var defaultV2Css: {
|
|
1066
1062
|
formGroup: string;
|
1067
1063
|
hasError: string;
|
1068
1064
|
disabled: string;
|
1065
|
+
collapsed: string;
|
1066
|
+
nested: string;
|
1069
1067
|
};
|
1070
1068
|
image: {
|
1071
1069
|
root: string;
|
@@ -1211,6 +1209,13 @@ export declare var defaultV2Css: {
|
|
1211
1209
|
cell: string;
|
1212
1210
|
headerCell: string;
|
1213
1211
|
rowTextCell: string;
|
1212
|
+
detailButton: string;
|
1213
|
+
detailButtonExpanded: string;
|
1214
|
+
detailIcon: string;
|
1215
|
+
detailIconExpanded: string;
|
1216
|
+
detailIconId: string;
|
1217
|
+
detailIconExpandedId: string;
|
1218
|
+
actionsCell: string;
|
1214
1219
|
};
|
1215
1220
|
matrixdynamic: {
|
1216
1221
|
mainRoot: string;
|
@@ -1224,6 +1229,8 @@ export declare var defaultV2Css: {
|
|
1224
1229
|
detailButtonExpanded: string;
|
1225
1230
|
detailIcon: string;
|
1226
1231
|
detailIconExpanded: string;
|
1232
|
+
detailIconId: string;
|
1233
|
+
detailIconExpandedId: string;
|
1227
1234
|
detailPanelCell: string;
|
1228
1235
|
actionsCell: string;
|
1229
1236
|
buttonAdd: string;
|
@@ -1264,22 +1271,30 @@ export declare var defaultV2Css: {
|
|
1264
1271
|
fileInput: string;
|
1265
1272
|
noFileChosen: string;
|
1266
1273
|
chooseFile: string;
|
1274
|
+
chooseFileAsText: string;
|
1275
|
+
chooseFileAsIcon: string;
|
1276
|
+
chooseFileIconId: string;
|
1267
1277
|
disabled: string;
|
1268
1278
|
removeButton: string;
|
1269
1279
|
removeButtonBottom: string;
|
1280
|
+
removeButtonIconId: string;
|
1270
1281
|
removeFile: string;
|
1271
1282
|
removeFileSvg: string;
|
1283
|
+
removeFileSvgIconId: string;
|
1272
1284
|
wrapper: string;
|
1273
1285
|
defaultImage: string;
|
1274
1286
|
removeFileButton: string;
|
1275
1287
|
dragAreaPlaceholder: string;
|
1288
|
+
imageWrapper: string;
|
1276
1289
|
};
|
1277
1290
|
signaturepad: {
|
1291
|
+
mainRoot: string;
|
1278
1292
|
root: string;
|
1279
1293
|
small: string;
|
1280
1294
|
controls: string;
|
1281
1295
|
placeholder: string;
|
1282
1296
|
clearButton: string;
|
1297
|
+
clearButtonIconId: string;
|
1283
1298
|
};
|
1284
1299
|
saveData: {
|
1285
1300
|
root: string;
|
@@ -1637,7 +1652,6 @@ export declare var modernCss: {
|
|
1637
1652
|
other: string;
|
1638
1653
|
placeholderInput: string;
|
1639
1654
|
preview: string;
|
1640
|
-
fileSign: string;
|
1641
1655
|
fileSignBottom: string;
|
1642
1656
|
fileDecorator: string;
|
1643
1657
|
fileInput: string;
|
@@ -1648,10 +1662,10 @@ export declare var modernCss: {
|
|
1648
1662
|
removeButtonBottom: string;
|
1649
1663
|
removeFile: string;
|
1650
1664
|
removeFileSvg: string;
|
1665
|
+
removeFileSvgIconId: string;
|
1651
1666
|
wrapper: string;
|
1652
1667
|
dragAreaPlaceholder: string;
|
1653
1668
|
fileList: string;
|
1654
|
-
defaultImage: string;
|
1655
1669
|
};
|
1656
1670
|
signaturepad: {
|
1657
1671
|
root: string;
|
@@ -2025,6 +2039,7 @@ export declare class SurveyPanel extends SurveyPanelBase {
|
|
2025
2039
|
constructor(props: any);
|
2026
2040
|
get panel(): PanelModel;
|
2027
2041
|
protected renderElement(): JSX.Element;
|
2042
|
+
protected renderHeader(): JSX.Element;
|
2028
2043
|
protected wrapElement(element: JSX.Element): JSX.Element;
|
2029
2044
|
protected renderContent(style: any, rows: JSX.Element[], className: string): JSX.Element;
|
2030
2045
|
protected renderTitle(): JSX.Element;
|
@@ -2255,6 +2270,7 @@ export declare class SurveyQuestionFile extends SurveyQuestionElementBase {
|
|
2255
2270
|
protected renderElement(): JSX.Element;
|
2256
2271
|
protected renderFileDecorator(): JSX.Element;
|
2257
2272
|
protected renderClearButton(className: string): JSX.Element;
|
2273
|
+
protected renderFileSign(className: string, val: any): JSX.Element;
|
2258
2274
|
protected renderPreview(): JSX.Element;
|
2259
2275
|
}
|
2260
2276
|
|
@@ -3685,6 +3701,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3685
3701
|
protected updateElementCssCore(cssClasses: any): void;
|
3686
3702
|
get cssError(): string;
|
3687
3703
|
updateElementCss(reNew?: boolean): void;
|
3704
|
+
protected clearCssClasses(): void;
|
3688
3705
|
protected getIsLoadingFromJson(): boolean;
|
3689
3706
|
/**
|
3690
3707
|
* This is the identifier of a survey element - question or panel.
|
@@ -4803,6 +4820,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
4803
4820
|
setIsDetailPanelShowing(row: MatrixDropdownRowModelBase, val: boolean): void;
|
4804
4821
|
getDetailPanelButtonCss(row: MatrixDropdownRowModelBase): string;
|
4805
4822
|
getDetailPanelIconCss(row: MatrixDropdownRowModelBase): string;
|
4823
|
+
getDetailPanelIconId(row: MatrixDropdownRowModelBase): string;
|
4806
4824
|
createRowDetailPanel(row: MatrixDropdownRowModelBase): PanelModel;
|
4807
4825
|
getSharedQuestionByName(columnName: string, row: MatrixDropdownRowModelBase): Question;
|
4808
4826
|
onTotalValueChanged(): any;
|
@@ -4986,6 +5004,7 @@ export declare class QuestionMatrixDropdownRenderedCell {
|
|
4986
5004
|
set className(val: string);
|
4987
5005
|
get className(): string;
|
4988
5006
|
get headers(): string;
|
5007
|
+
getTitle(): string;
|
4989
5008
|
calculateFinalClassName(matrixCssClasses: any): string;
|
4990
5009
|
}
|
4991
5010
|
export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
@@ -7078,6 +7097,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
7078
7097
|
get ghostPositionCssClass(): string;
|
7079
7098
|
getNumberByIndex(index: number): string;
|
7080
7099
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
7100
|
+
isAnswerCorrect(): boolean;
|
7081
7101
|
onSurveyValueChanged(newValue: any): void;
|
7082
7102
|
protected onVisibleChoicesChanged: () => void;
|
7083
7103
|
localeChanged: () => void;
|
@@ -7721,6 +7741,7 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
|
|
7721
7741
|
get isCompositeQuestion(): boolean;
|
7722
7742
|
supportOther(): boolean;
|
7723
7743
|
supportNone(): boolean;
|
7744
|
+
isAnswerCorrect(): boolean;
|
7724
7745
|
/**
|
7725
7746
|
* Multi select option. If set to true, then allows to select multiple images.
|
7726
7747
|
*/
|
@@ -10772,8 +10793,8 @@ export declare var surveyLocalization: {
|
|
10772
10793
|
currentLocale: string;
|
10773
10794
|
defaultLocale: string;
|
10774
10795
|
getLocaleStrings(loc: string): any;
|
10775
|
-
getCurrentStrings(): any;
|
10776
|
-
getString: (strName: string) => any;
|
10796
|
+
getCurrentStrings(locale?: string): any;
|
10797
|
+
getString: (strName: string, locale?: string) => any;
|
10777
10798
|
getLocales: (removeDefaultLoc?: boolean) => Array<string>;
|
10778
10799
|
};
|
10779
10800
|
export declare var surveyStrings: {
|
@@ -11210,7 +11231,7 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
11210
11231
|
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
11211
11232
|
protected findDeepestDropTargetChild(parent: HTMLElement): HTMLElement;
|
11212
11233
|
protected afterDragOver(): void;
|
11213
|
-
protected
|
11234
|
+
protected onStartDrag(): void;
|
11214
11235
|
protected doBanDropHere: () => void;
|
11215
11236
|
protected doDrop: () => any;
|
11216
11237
|
protected doClear: () => void;
|
@@ -11272,6 +11293,8 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
|
|
11272
11293
|
constructor(name: string);
|
11273
11294
|
getType(): string;
|
11274
11295
|
get isCompositeQuestion(): boolean;
|
11296
|
+
get showColumnHeader(): boolean;
|
11297
|
+
set showColumnHeader(val: boolean);
|
11275
11298
|
/**
|
11276
11299
|
* Set this property to false, to hide table header. The default value is true.
|
11277
11300
|
*/
|
@@ -11362,9 +11385,7 @@ export declare class QuestionTextBase extends Question {
|
|
11362
11385
|
/**
|
11363
11386
|
* Use this property to set the input place holder.
|
11364
11387
|
*/
|
11365
|
-
|
11366
|
-
set placeHolder(val: string);
|
11367
|
-
get locPlaceHolder(): LocalizableString;
|
11388
|
+
placeHolder: string;
|
11368
11389
|
getType(): string;
|
11369
11390
|
isEmpty(): boolean;
|
11370
11391
|
/**
|
@@ -11424,6 +11445,7 @@ export declare abstract class DragDropCore<T> extends Base {
|
|
11424
11445
|
isBottom: boolean;
|
11425
11446
|
onGhostPositionChanged: EventBase<Base>;
|
11426
11447
|
protected ghostPositionChanged(): void;
|
11448
|
+
static PreventScrolling: boolean;
|
11427
11449
|
onBeforeDrop: EventBase<DragDropCore<T>>;
|
11428
11450
|
onAfterDrop: EventBase<DragDropCore<T>>;
|
11429
11451
|
draggedElement: any;
|
@@ -11438,7 +11460,7 @@ export declare abstract class DragDropCore<T> extends Base {
|
|
11438
11460
|
constructor(surveyValue?: ISurvey, creator?: any);
|
11439
11461
|
startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement): void;
|
11440
11462
|
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
11441
|
-
protected
|
11463
|
+
protected onStartDrag(): void;
|
11442
11464
|
protected getShortcutText(draggedElement: IShortcutText): string;
|
11443
11465
|
protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
|
11444
11466
|
protected getDraggedElementClass(): string;
|