survey-react 1.8.75 → 1.8.79
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 +64 -16
- 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 +517 -53
- package/survey.react.js +1599 -553
- 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.79
|
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
|
*/
|
@@ -233,11 +233,15 @@ export declare var defaultStandardCss: {
|
|
233
233
|
progressText: string;
|
234
234
|
panelWrapper: string;
|
235
235
|
panelWrapperInRow: string;
|
236
|
+
separatorV2: string;
|
237
|
+
footer: string;
|
236
238
|
};
|
237
239
|
multipletext: {
|
238
240
|
root: string;
|
239
241
|
itemTitle: string;
|
242
|
+
item: string;
|
240
243
|
row: string;
|
244
|
+
itemLabel: string;
|
241
245
|
itemValue: string;
|
242
246
|
};
|
243
247
|
radiogroup: {
|
@@ -250,7 +254,6 @@ export declare var defaultStandardCss: {
|
|
250
254
|
labelChecked: string;
|
251
255
|
itemControl: string;
|
252
256
|
controlLabel: string;
|
253
|
-
materialDecorator: string;
|
254
257
|
other: string;
|
255
258
|
clearButton: string;
|
256
259
|
column: string;
|
@@ -545,10 +548,15 @@ export declare var defaultBootstrapCss: {
|
|
545
548
|
progressText: string;
|
546
549
|
panelWrapper: string;
|
547
550
|
panelWrapperInRow: string;
|
551
|
+
separatorV2: string;
|
552
|
+
footer: string;
|
548
553
|
};
|
549
554
|
multipletext: {
|
550
555
|
root: string;
|
551
556
|
itemTitle: string;
|
557
|
+
item: string;
|
558
|
+
itemLabel: string;
|
559
|
+
row: string;
|
552
560
|
itemValue: string;
|
553
561
|
};
|
554
562
|
radiogroup: {
|
@@ -861,10 +869,14 @@ export declare var defaultBootstrapMaterialCss: {
|
|
861
869
|
progressText: string;
|
862
870
|
panelWrapper: string;
|
863
871
|
panelWrapperInRow: string;
|
872
|
+
separatorV2: string;
|
873
|
+
footer: string;
|
864
874
|
};
|
865
875
|
multipletext: {
|
866
876
|
root: string;
|
867
877
|
itemTitle: string;
|
878
|
+
item: string;
|
879
|
+
itemLabel: string;
|
868
880
|
row: string;
|
869
881
|
itemValue: string;
|
870
882
|
};
|
@@ -957,10 +969,341 @@ export declare var defaultBootstrapMaterialCss: {
|
|
957
969
|
};
|
958
970
|
};
|
959
971
|
|
972
|
+
export declare var defaultV2Css: {
|
973
|
+
root: string;
|
974
|
+
container: string;
|
975
|
+
header: string;
|
976
|
+
body: string;
|
977
|
+
bodyEmpty: string;
|
978
|
+
footer: string;
|
979
|
+
title: string;
|
980
|
+
description: string;
|
981
|
+
logo: string;
|
982
|
+
logoImage: string;
|
983
|
+
headerText: string;
|
984
|
+
navigationButton: string;
|
985
|
+
completedPage: string;
|
986
|
+
navigation: {
|
987
|
+
complete: string;
|
988
|
+
prev: string;
|
989
|
+
next: string;
|
990
|
+
start: string;
|
991
|
+
preview: string;
|
992
|
+
edit: string;
|
993
|
+
};
|
994
|
+
panel: {
|
995
|
+
title: string;
|
996
|
+
titleExpandable: string;
|
997
|
+
titleOnExpand: string;
|
998
|
+
titleOnError: string;
|
999
|
+
description: string;
|
1000
|
+
container: string;
|
1001
|
+
content: string;
|
1002
|
+
icon: string;
|
1003
|
+
iconExpanded: string;
|
1004
|
+
footer: string;
|
1005
|
+
requiredText: string;
|
1006
|
+
};
|
1007
|
+
paneldynamic: {
|
1008
|
+
mainRoot: string;
|
1009
|
+
root: string;
|
1010
|
+
navigation: string;
|
1011
|
+
title: string;
|
1012
|
+
button: string;
|
1013
|
+
buttonRemove: string;
|
1014
|
+
buttonAdd: string;
|
1015
|
+
progressTop: string;
|
1016
|
+
progressBottom: string;
|
1017
|
+
buttonPrev: string;
|
1018
|
+
buttonNext: string;
|
1019
|
+
progressContainer: string;
|
1020
|
+
progress: string;
|
1021
|
+
progressBar: string;
|
1022
|
+
progressText: string;
|
1023
|
+
separator: string;
|
1024
|
+
separatorV2: string;
|
1025
|
+
panelWrapper: string;
|
1026
|
+
footer: string;
|
1027
|
+
footerButtonsContainer: string;
|
1028
|
+
panelWrapperInRow: string;
|
1029
|
+
};
|
1030
|
+
progress: string;
|
1031
|
+
progressBar: string;
|
1032
|
+
progressText: string;
|
1033
|
+
progressTextInBar: string;
|
1034
|
+
page: {
|
1035
|
+
root: string;
|
1036
|
+
title: string;
|
1037
|
+
description: string;
|
1038
|
+
};
|
1039
|
+
pageTitle: string;
|
1040
|
+
pageDescription: string;
|
1041
|
+
row: string;
|
1042
|
+
rowMultiple: string;
|
1043
|
+
question: {
|
1044
|
+
mainRoot: string;
|
1045
|
+
flowRoot: string;
|
1046
|
+
asCell: string;
|
1047
|
+
answered: string;
|
1048
|
+
header: string;
|
1049
|
+
headerLeft: string;
|
1050
|
+
headerTop: string;
|
1051
|
+
headerBottom: string;
|
1052
|
+
content: string;
|
1053
|
+
contentLeft: string;
|
1054
|
+
titleLeftRoot: string;
|
1055
|
+
titleOnAnswer: string;
|
1056
|
+
titleOnError: string;
|
1057
|
+
title: string;
|
1058
|
+
requiredText: string;
|
1059
|
+
number: string;
|
1060
|
+
description: string;
|
1061
|
+
descriptionUnderInput: string;
|
1062
|
+
comment: string;
|
1063
|
+
other: string;
|
1064
|
+
required: string;
|
1065
|
+
titleRequired: string;
|
1066
|
+
indent: number;
|
1067
|
+
footer: string;
|
1068
|
+
formGroup: string;
|
1069
|
+
hasError: string;
|
1070
|
+
disabled: string;
|
1071
|
+
};
|
1072
|
+
image: {
|
1073
|
+
root: string;
|
1074
|
+
image: string;
|
1075
|
+
};
|
1076
|
+
error: {
|
1077
|
+
root: string;
|
1078
|
+
icon: string;
|
1079
|
+
item: string;
|
1080
|
+
tooltip: string;
|
1081
|
+
aboveQuestion: string;
|
1082
|
+
locationTop: string;
|
1083
|
+
locationBottom: string;
|
1084
|
+
};
|
1085
|
+
checkbox: {
|
1086
|
+
root: string;
|
1087
|
+
item: string;
|
1088
|
+
itemOnError: string;
|
1089
|
+
itemSelectAll: string;
|
1090
|
+
itemNone: string;
|
1091
|
+
itemDisabled: string;
|
1092
|
+
itemChecked: string;
|
1093
|
+
itemHover: string;
|
1094
|
+
itemInline: string;
|
1095
|
+
label: string;
|
1096
|
+
labelChecked: string;
|
1097
|
+
itemControl: string;
|
1098
|
+
itemDecorator: string;
|
1099
|
+
controlLabel: string;
|
1100
|
+
materialDecorator: string;
|
1101
|
+
other: string;
|
1102
|
+
column: string;
|
1103
|
+
};
|
1104
|
+
radiogroup: {
|
1105
|
+
root: string;
|
1106
|
+
item: string;
|
1107
|
+
itemOnError: string;
|
1108
|
+
itemInline: string;
|
1109
|
+
label: string;
|
1110
|
+
labelChecked: string;
|
1111
|
+
itemDisabled: string;
|
1112
|
+
itemChecked: string;
|
1113
|
+
itemHover: string;
|
1114
|
+
itemControl: string;
|
1115
|
+
itemDecorator: string;
|
1116
|
+
controlLabel: string;
|
1117
|
+
materialDecorator: string;
|
1118
|
+
other: string;
|
1119
|
+
clearButton: string;
|
1120
|
+
column: string;
|
1121
|
+
};
|
1122
|
+
boolean: {
|
1123
|
+
mainRoot: string;
|
1124
|
+
root: string;
|
1125
|
+
item: string;
|
1126
|
+
itemOnError: string;
|
1127
|
+
control: string;
|
1128
|
+
itemChecked: string;
|
1129
|
+
itemIndeterminate: string;
|
1130
|
+
itemDisabled: string;
|
1131
|
+
label: string;
|
1132
|
+
switch: string;
|
1133
|
+
disabledLabel: string;
|
1134
|
+
itemDecorator: string;
|
1135
|
+
materialDecorator: string;
|
1136
|
+
sliderText: string;
|
1137
|
+
slider: string;
|
1138
|
+
};
|
1139
|
+
text: {
|
1140
|
+
root: string;
|
1141
|
+
small: string;
|
1142
|
+
controlDisabled: string;
|
1143
|
+
onError: string;
|
1144
|
+
};
|
1145
|
+
multipletext: {
|
1146
|
+
root: string;
|
1147
|
+
itemLabel: string;
|
1148
|
+
itemLabelOnError: string;
|
1149
|
+
item: string;
|
1150
|
+
itemTitle: string;
|
1151
|
+
row: string;
|
1152
|
+
cell: string;
|
1153
|
+
};
|
1154
|
+
dropdown: {
|
1155
|
+
root: string;
|
1156
|
+
small: string;
|
1157
|
+
control: string;
|
1158
|
+
selectWrapper: string;
|
1159
|
+
other: string;
|
1160
|
+
onError: string;
|
1161
|
+
label: string;
|
1162
|
+
item: string;
|
1163
|
+
itemDisabled: string;
|
1164
|
+
itemChecked: string;
|
1165
|
+
itemHover: string;
|
1166
|
+
itemControl: string;
|
1167
|
+
itemDecorator: string;
|
1168
|
+
controlDisabled: string;
|
1169
|
+
controlLabel: string;
|
1170
|
+
materialDecorator: string;
|
1171
|
+
};
|
1172
|
+
imagepicker: {
|
1173
|
+
mainRoot: string;
|
1174
|
+
root: string;
|
1175
|
+
item: string;
|
1176
|
+
itemOnError: string;
|
1177
|
+
itemInline: string;
|
1178
|
+
itemChecked: string;
|
1179
|
+
itemDisabled: string;
|
1180
|
+
itemHover: string;
|
1181
|
+
label: string;
|
1182
|
+
itemControl: string;
|
1183
|
+
image: string;
|
1184
|
+
itemText: string;
|
1185
|
+
clearButton: string;
|
1186
|
+
other: string;
|
1187
|
+
};
|
1188
|
+
matrix: {
|
1189
|
+
mainRoot: string;
|
1190
|
+
tableWrapper: string;
|
1191
|
+
root: string;
|
1192
|
+
rowError: string;
|
1193
|
+
cell: string;
|
1194
|
+
headerCell: string;
|
1195
|
+
label: string;
|
1196
|
+
itemOnError: string;
|
1197
|
+
itemValue: string;
|
1198
|
+
itemChecked: string;
|
1199
|
+
itemDisabled: string;
|
1200
|
+
itemHover: string;
|
1201
|
+
materialDecorator: string;
|
1202
|
+
itemDecorator: string;
|
1203
|
+
cellText: string;
|
1204
|
+
cellTextSelected: string;
|
1205
|
+
cellTextDisabled: string;
|
1206
|
+
};
|
1207
|
+
matrixdropdown: {
|
1208
|
+
mainRoot: string;
|
1209
|
+
root: string;
|
1210
|
+
cell: string;
|
1211
|
+
headerCell: string;
|
1212
|
+
rowTextCell: string;
|
1213
|
+
};
|
1214
|
+
matrixdynamic: {
|
1215
|
+
mainRoot: string;
|
1216
|
+
root: string;
|
1217
|
+
cell: string;
|
1218
|
+
headerCell: string;
|
1219
|
+
rowTextCell: string;
|
1220
|
+
button: string;
|
1221
|
+
detailRow: string;
|
1222
|
+
detailButton: string;
|
1223
|
+
detailButtonExpanded: string;
|
1224
|
+
detailIcon: string;
|
1225
|
+
detailIconExpanded: string;
|
1226
|
+
detailPanelCell: string;
|
1227
|
+
actionsCell: string;
|
1228
|
+
buttonAdd: string;
|
1229
|
+
buttonRemove: string;
|
1230
|
+
iconAdd: string;
|
1231
|
+
iconRemove: string;
|
1232
|
+
};
|
1233
|
+
rating: {
|
1234
|
+
root: string;
|
1235
|
+
item: string;
|
1236
|
+
itemOnError: string;
|
1237
|
+
itemHover: string;
|
1238
|
+
selected: string;
|
1239
|
+
minText: string;
|
1240
|
+
itemText: string;
|
1241
|
+
maxText: string;
|
1242
|
+
itemDisabled: string;
|
1243
|
+
};
|
1244
|
+
comment: {
|
1245
|
+
root: string;
|
1246
|
+
small: string;
|
1247
|
+
controlDisabled: string;
|
1248
|
+
onError: string;
|
1249
|
+
};
|
1250
|
+
expression: string;
|
1251
|
+
file: {
|
1252
|
+
root: string;
|
1253
|
+
other: string;
|
1254
|
+
placeholderInput: string;
|
1255
|
+
preview: string;
|
1256
|
+
fileSign: string;
|
1257
|
+
fileList: string;
|
1258
|
+
fileSignBottom: string;
|
1259
|
+
fileDecorator: string;
|
1260
|
+
onError: string;
|
1261
|
+
fileDecoratorDrag: string;
|
1262
|
+
fileInput: string;
|
1263
|
+
noFileChosen: string;
|
1264
|
+
chooseFile: string;
|
1265
|
+
disabled: string;
|
1266
|
+
removeButton: string;
|
1267
|
+
removeButtonBottom: string;
|
1268
|
+
removeFile: string;
|
1269
|
+
removeFileSvg: string;
|
1270
|
+
wrapper: string;
|
1271
|
+
defaultImage: string;
|
1272
|
+
removeFileButton: string;
|
1273
|
+
dragAreaPlaceholder: string;
|
1274
|
+
};
|
1275
|
+
signaturepad: {
|
1276
|
+
root: string;
|
1277
|
+
small: string;
|
1278
|
+
controls: string;
|
1279
|
+
placeholder: string;
|
1280
|
+
clearButton: string;
|
1281
|
+
};
|
1282
|
+
saveData: {
|
1283
|
+
root: string;
|
1284
|
+
saving: string;
|
1285
|
+
error: string;
|
1286
|
+
success: string;
|
1287
|
+
saveAgainButton: string;
|
1288
|
+
};
|
1289
|
+
window: {
|
1290
|
+
root: string;
|
1291
|
+
body: string;
|
1292
|
+
header: {
|
1293
|
+
root: string;
|
1294
|
+
title: string;
|
1295
|
+
button: string;
|
1296
|
+
buttonExpanded: string;
|
1297
|
+
buttonCollapsed: string;
|
1298
|
+
};
|
1299
|
+
};
|
1300
|
+
};
|
1301
|
+
|
960
1302
|
export declare var modernCss: {
|
961
1303
|
root: string;
|
962
1304
|
container: string;
|
963
1305
|
header: string;
|
1306
|
+
headerClose: string;
|
964
1307
|
body: string;
|
965
1308
|
bodyEmpty: string;
|
966
1309
|
footer: string;
|
@@ -1011,6 +1354,8 @@ export declare var modernCss: {
|
|
1011
1354
|
separator: string;
|
1012
1355
|
panelWrapper: string;
|
1013
1356
|
panelWrapperInRow: string;
|
1357
|
+
separatorV2: string;
|
1358
|
+
footer: string;
|
1014
1359
|
};
|
1015
1360
|
progress: string;
|
1016
1361
|
progressBar: string;
|
@@ -1123,6 +1468,7 @@ export declare var modernCss: {
|
|
1123
1468
|
itemHover: string;
|
1124
1469
|
itemControl: string;
|
1125
1470
|
itemDecorator: string;
|
1471
|
+
itemSvgIconId: string;
|
1126
1472
|
controlLabel: string;
|
1127
1473
|
materialDecorator: string;
|
1128
1474
|
other: string;
|
@@ -1167,6 +1513,7 @@ export declare var modernCss: {
|
|
1167
1513
|
multipletext: {
|
1168
1514
|
root: string;
|
1169
1515
|
item: string;
|
1516
|
+
itemLabel: string;
|
1170
1517
|
itemTitle: string;
|
1171
1518
|
row: string;
|
1172
1519
|
cell: string;
|
@@ -1315,6 +1662,8 @@ export declare var modernCss: {
|
|
1315
1662
|
};
|
1316
1663
|
};
|
1317
1664
|
|
1665
|
+
export declare var SvgBundleViewModel: any;
|
1666
|
+
|
1318
1667
|
export declare class RendererFactory {
|
1319
1668
|
static Instance: RendererFactory;
|
1320
1669
|
unregisterRenderer(questionType: string, rendererAs: string): void;
|
@@ -1331,6 +1680,7 @@ interface IDimensions {
|
|
1331
1680
|
export declare class ResponsivityManager {
|
1332
1681
|
protected container: HTMLDivElement;
|
1333
1682
|
protected minDimensionConst: number;
|
1683
|
+
protected recalcMinDimensionConst: boolean;
|
1334
1684
|
getComputedStyle: (elt: Element) => CSSStyleDeclaration;
|
1335
1685
|
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number);
|
1336
1686
|
protected getDimensions(element: HTMLElement): IDimensions;
|
@@ -1453,6 +1803,10 @@ export interface IAction {
|
|
1453
1803
|
* Set it to true to make the tabIndex -1 to disable keyboard navigation to this item
|
1454
1804
|
*/
|
1455
1805
|
disableTabStop?: boolean;
|
1806
|
+
/**
|
1807
|
+
* Set it to false to force action "large" mode even if has icon and does not fit to action bar space
|
1808
|
+
*/
|
1809
|
+
disableShrink?: boolean;
|
1456
1810
|
/**
|
1457
1811
|
* Action button display mode
|
1458
1812
|
*/
|
@@ -1485,6 +1839,7 @@ export declare class Action extends Base implements IAction {
|
|
1485
1839
|
visibleIndex: number;
|
1486
1840
|
mode: "large" | "small" | "popup";
|
1487
1841
|
disableTabStop: boolean;
|
1842
|
+
disableShrink: boolean;
|
1488
1843
|
get disabled(): boolean;
|
1489
1844
|
get hasTitle(): boolean;
|
1490
1845
|
get isVisible(): boolean;
|
@@ -1500,6 +1855,7 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
|
|
1500
1855
|
protected dotsItem: Action;
|
1501
1856
|
protected dotsItemPopupModel: PopupModel;
|
1502
1857
|
minVisibleItemsCount: number;
|
1858
|
+
protected invisibleItemsListModel: ListModel;
|
1503
1859
|
constructor();
|
1504
1860
|
protected onSet(): void;
|
1505
1861
|
protected onPush(item: T): void;
|
@@ -1528,6 +1884,12 @@ export declare class ActionContainer<T extends Action = Action> extends Base {
|
|
1528
1884
|
resetResponsivityManager(): void;
|
1529
1885
|
}
|
1530
1886
|
|
1887
|
+
export declare class TooltipManager {
|
1888
|
+
tooltipElement: HTMLElement;
|
1889
|
+
constructor(tooltipElement: HTMLElement);
|
1890
|
+
dispose(): void;
|
1891
|
+
}
|
1892
|
+
|
1531
1893
|
export declare class Survey extends SurveyElementBase<any, any> implements ISurveyCreator {
|
1532
1894
|
static get cssType(): string;
|
1533
1895
|
static set cssType(value: string);
|
@@ -1694,26 +2056,35 @@ export declare class SurveyElementErrors extends ReactSurveyElement {
|
|
1694
2056
|
protected get element(): SurveyElement;
|
1695
2057
|
protected get location(): string;
|
1696
2058
|
protected canRender(): boolean;
|
2059
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
2060
|
+
componentWillUnmount(): void;
|
1697
2061
|
protected renderElement(): JSX.Element;
|
1698
2062
|
}
|
1699
|
-
export declare class
|
2063
|
+
export declare abstract class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
|
1700
2064
|
[index: string]: any;
|
1701
|
-
protected cellRef: React.RefObject<HTMLTableCellElement>;
|
1702
2065
|
constructor(props: any);
|
1703
2066
|
protected getStateElement(): Base;
|
1704
|
-
protected get itemCss(): string;
|
1705
2067
|
protected get question(): Question;
|
1706
2068
|
protected get creator(): ISurveyCreator;
|
1707
2069
|
protected getQuestion(): Question;
|
2070
|
+
protected get itemCss(): string;
|
1708
2071
|
componentDidMount(): void;
|
1709
|
-
componentWillUnmount(): void;
|
1710
2072
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
1711
2073
|
protected doAfterRender(): void;
|
1712
2074
|
protected canRender(): boolean;
|
1713
|
-
protected
|
2075
|
+
protected renderErrors(errorsLocation: string): JSX.Element;
|
2076
|
+
protected renderContent(): JSX.Element;
|
2077
|
+
protected abstract renderElement(): JSX.Element;
|
1714
2078
|
protected getShowErrors(): boolean;
|
1715
|
-
protected getCellStyle(): any;
|
1716
2079
|
protected renderQuestion(): JSX.Element;
|
2080
|
+
}
|
2081
|
+
export declare class SurveyQuestionAndErrorsCell extends SurveyQuestionAndErrorsWrapped {
|
2082
|
+
[index: string]: any;
|
2083
|
+
protected cellRef: React.RefObject<HTMLTableCellElement>;
|
2084
|
+
constructor(props: any);
|
2085
|
+
componentWillUnmount(): void;
|
2086
|
+
protected renderElement(): JSX.Element;
|
2087
|
+
protected getCellStyle(): any;
|
1717
2088
|
protected getHeaderText(): string;
|
1718
2089
|
protected wrapCell(cell: QuestionMatrixDropdownRenderedCell, element: JSX.Element): JSX.Element;
|
1719
2090
|
}
|
@@ -1871,8 +2242,12 @@ export declare class SurveyQuestionMultipleText extends SurveyQuestionElementBas
|
|
1871
2242
|
constructor(props: any);
|
1872
2243
|
protected get question(): QuestionMultipleTextModel;
|
1873
2244
|
protected renderElement(): JSX.Element;
|
2245
|
+
protected renderItemTooltipError(item: MultipleTextItemModel, cssClasses: any): JSX.Element;
|
1874
2246
|
protected renderRow(rowIndex: number, items: Array<MultipleTextItemModel>, cssClasses: any): JSX.Element;
|
1875
2247
|
}
|
2248
|
+
export declare class SurveyMultipleTextItemEditor extends SurveyQuestionAndErrorsWrapped {
|
2249
|
+
protected renderElement(): JSX.Element;
|
2250
|
+
}
|
1876
2251
|
|
1877
2252
|
export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase {
|
1878
2253
|
constructor(props: any);
|
@@ -1899,6 +2274,7 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
|
1899
2274
|
|
1900
2275
|
export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElement<QuestionTextModel> {
|
1901
2276
|
constructor(props: any);
|
2277
|
+
protected renderInput(): JSX.Element;
|
1902
2278
|
protected renderElement(): JSX.Element;
|
1903
2279
|
}
|
1904
2280
|
|
@@ -1975,10 +2351,11 @@ export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBas
|
|
1975
2351
|
handleOnRangeChange(event: any): void;
|
1976
2352
|
protected renderElement(): JSX.Element;
|
1977
2353
|
protected renderNavigator(): JSX.Element;
|
1978
|
-
protected rendrerPrevButton(): JSX.Element;
|
1979
|
-
protected rendrerNextButton(): JSX.Element;
|
2354
|
+
protected rendrerPrevButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
|
2355
|
+
protected rendrerNextButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
|
1980
2356
|
protected renderRange(): JSX.Element;
|
1981
2357
|
protected renderAddRowButton(): JSX.Element;
|
2358
|
+
protected renderNavigatorV2(): JSX.Element;
|
1982
2359
|
}
|
1983
2360
|
export declare class SurveyQuestionPanelDynamicItem extends SurveyPanel {
|
1984
2361
|
constructor(props: any);
|
@@ -2140,10 +2517,12 @@ export declare class PopupContainer extends SurveyElementBase<any, any> {
|
|
2140
2517
|
renderPointer(): JSX.Element;
|
2141
2518
|
renderHeader(): JSX.Element;
|
2142
2519
|
renderContent(): JSX.Element;
|
2520
|
+
renderCancelButton(): JSX.Element;
|
2521
|
+
renderApplyButton(): JSX.Element;
|
2143
2522
|
renderFooter(): JSX.Element;
|
2144
2523
|
render(): JSX.Element;
|
2145
2524
|
}
|
2146
|
-
export declare function showModal(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string): void;
|
2525
|
+
export declare function showModal(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
2147
2526
|
export {};
|
2148
2527
|
|
2149
2528
|
interface IListProps {
|
@@ -2361,11 +2740,17 @@ export declare var settings: {
|
|
2361
2740
|
*/
|
2362
2741
|
executeSkipTriggerOnValueChanged: boolean;
|
2363
2742
|
/**
|
2364
|
-
*
|
2743
|
+
* Specifies how the input field of [Comment](https://surveyjs.io/Documentation/Library?id=questioncommentmodel) questions is rendered in the read-only mode.
|
2744
|
+
* Available values:
|
2745
|
+
* "textarea" (default) - A 'textarea' element is used to render a Comment question's input field.
|
2746
|
+
* "div" - A 'div' element is used to render a Comment question's input field.
|
2365
2747
|
*/
|
2366
2748
|
readOnlyCommentRenderMode: string;
|
2367
2749
|
/**
|
2368
|
-
*
|
2750
|
+
* Specifies how the input field of [Text](https://surveyjs.io/Documentation/Library?id=questiontextmodel) questions is rendered in the read-only mode.
|
2751
|
+
* Available values:
|
2752
|
+
* "input" (default) - An 'input' element is used to render a Text question's input field.
|
2753
|
+
* "div" - A 'div' element is used to render a Text question's input field.
|
2369
2754
|
*/
|
2370
2755
|
readOnlyTextRenderMode: string;
|
2371
2756
|
/**
|
@@ -2424,7 +2809,7 @@ export declare var settings: {
|
|
2424
2809
|
* 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
|
2425
2810
|
*/
|
2426
2811
|
maxDate: string;
|
2427
|
-
showModal: (componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string) => void;
|
2812
|
+
showModal: (componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay") => void;
|
2428
2813
|
supportCreatorV2: boolean;
|
2429
2814
|
/**
|
2430
2815
|
* Specifies a list of custom icons.
|
@@ -2530,7 +2915,7 @@ export declare class NumericValidator extends SurveyValidator {
|
|
2530
2915
|
* Validate text values.
|
2531
2916
|
*/
|
2532
2917
|
export declare class TextValidator extends SurveyValidator {
|
2533
|
-
constructor(
|
2918
|
+
constructor();
|
2534
2919
|
getType(): string;
|
2535
2920
|
validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
|
2536
2921
|
protected getDefaultErrorText(name: string): any;
|
@@ -2613,7 +2998,7 @@ export declare class ExpressionValidator extends SurveyValidator {
|
|
2613
2998
|
* It has two main properties: value and text. If text is empty, value is used for displaying.
|
2614
2999
|
* The text property is localizable and support markdown.
|
2615
3000
|
*/
|
2616
|
-
export declare class ItemValue extends Base {
|
3001
|
+
export declare class ItemValue extends Base implements IShortcutText {
|
2617
3002
|
protected typeName: string;
|
2618
3003
|
[index: string]: any;
|
2619
3004
|
static get Separator(): string;
|
@@ -2645,6 +3030,7 @@ export declare class ItemValue extends Base {
|
|
2645
3030
|
get text(): string;
|
2646
3031
|
set text(newText: string);
|
2647
3032
|
get calculatedText(): string;
|
3033
|
+
get shortcutText(): string;
|
2648
3034
|
getData(): any;
|
2649
3035
|
toJSON(): any;
|
2650
3036
|
setData(value: any): void;
|
@@ -2815,6 +3201,7 @@ export declare class Base {
|
|
2815
3201
|
* @param val new property value
|
2816
3202
|
*/
|
2817
3203
|
setPropertyValue(name: string, val: any): void;
|
3204
|
+
protected setArrayPropertyDirectly(name: string, val: any): void;
|
2818
3205
|
protected setPropertyValueDirectly(name: string, val: any): void;
|
2819
3206
|
protected clearPropertyValue(name: string): void;
|
2820
3207
|
onPropertyValueChangedCallback(name: string, oldValue: any, newValue: any, sender: Base, arrayChanges: ArrayChanges): void;
|
@@ -3008,7 +3395,10 @@ export interface ISurveyImpl {
|
|
3008
3395
|
export interface IConditionRunner {
|
3009
3396
|
runCondition(values: HashTable<any>, properties: HashTable<any>): any;
|
3010
3397
|
}
|
3011
|
-
export interface
|
3398
|
+
export interface IShortcutText {
|
3399
|
+
shortcutText: string;
|
3400
|
+
}
|
3401
|
+
export interface ISurveyElement extends IShortcutText {
|
3012
3402
|
name: string;
|
3013
3403
|
isVisible: boolean;
|
3014
3404
|
isReadOnly: boolean;
|
@@ -3017,7 +3407,7 @@ export interface ISurveyElement {
|
|
3017
3407
|
containsErrors: boolean;
|
3018
3408
|
parent: IPanel;
|
3019
3409
|
skeletonComponentName: string;
|
3020
|
-
setSurveyImpl(value: ISurveyImpl): any;
|
3410
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): any;
|
3021
3411
|
onSurveyLoad(): any;
|
3022
3412
|
onFirstRendering(): any;
|
3023
3413
|
getType(): string;
|
@@ -3165,13 +3555,19 @@ export declare abstract class SurveyElementCore extends Base implements ILocaliz
|
|
3165
3555
|
abstract getRendererContext(locStr: LocalizableString): any;
|
3166
3556
|
abstract getProcessedText(text: string): string;
|
3167
3557
|
}
|
3558
|
+
export declare enum DragTypeOverMeEnum {
|
3559
|
+
InsideEmptyPanel = 1,
|
3560
|
+
MultilineRight = 2,
|
3561
|
+
MultilineLeft = 3
|
3562
|
+
}
|
3168
3563
|
/**
|
3169
3564
|
* Base class of SurveyJS Elements.
|
3170
3565
|
*/
|
3171
3566
|
export declare class SurveyElement extends SurveyElementCore implements ISurveyElement {
|
3172
3567
|
stateChangedCallback: () => void;
|
3173
3568
|
static getProgressInfoByElements(children: Array<SurveyElement>, isRequired: boolean): IProgressInfo;
|
3174
|
-
|
3569
|
+
dragTypeOverMe: DragTypeOverMeEnum;
|
3570
|
+
isDragMe: boolean;
|
3175
3571
|
readOnlyChangedCallback: () => void;
|
3176
3572
|
static ScrollElementToTop(elementId: string): boolean;
|
3177
3573
|
static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
|
@@ -3217,6 +3613,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3217
3613
|
*/
|
3218
3614
|
toggleState(): boolean;
|
3219
3615
|
get hasStateButton(): boolean;
|
3616
|
+
get shortcutText(): string;
|
3220
3617
|
getTitleToolbar(): AdaptiveActionContainer;
|
3221
3618
|
get titleActions(): Array<any>;
|
3222
3619
|
getTitleActions(): Array<any>;
|
@@ -3225,7 +3622,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3225
3622
|
getTitleComponentName(): string;
|
3226
3623
|
get titleTabIndex(): number;
|
3227
3624
|
get titleAriaExpanded(): boolean;
|
3228
|
-
setSurveyImpl(value: ISurveyImpl): void;
|
3625
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
3229
3626
|
protected get surveyImpl(): ISurveyImpl;
|
3230
3627
|
get data(): ISurveyData;
|
3231
3628
|
/**
|
@@ -4642,10 +5039,11 @@ export declare class QuestionMatrixDropdownModel extends QuestionMatrixDropdownM
|
|
4642
5039
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
4643
5040
|
}
|
4644
5041
|
|
4645
|
-
export declare class MatrixDynamicRowModel extends MatrixDropdownRowModelBase {
|
5042
|
+
export declare class MatrixDynamicRowModel extends MatrixDropdownRowModelBase implements IShortcutText {
|
4646
5043
|
index: number;
|
4647
5044
|
constructor(index: number, data: IMatrixDropdownData, value: any);
|
4648
5045
|
get rowName(): string;
|
5046
|
+
get shortcutText(): string;
|
4649
5047
|
}
|
4650
5048
|
/**
|
4651
5049
|
* A Model for a matrix dymanic question. You may use a dropdown, checkbox, radiogroup, text and comment questions as a cell editors.
|
@@ -4655,7 +5053,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
4655
5053
|
onGetValueForNewRowCallBack: (sender: QuestionMatrixDynamicModel) => any;
|
4656
5054
|
constructor(name: string);
|
4657
5055
|
dragDropMatrixRows: DragDropMatrixRows;
|
4658
|
-
setSurveyImpl(value: ISurveyImpl): void;
|
5056
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
4659
5057
|
startDragMatrixRow(event: PointerEvent, row: MatrixDropdownRowModelBase): void;
|
4660
5058
|
getType(): string;
|
4661
5059
|
get isRowsDynamic(): boolean;
|
@@ -5058,7 +5456,7 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
5058
5456
|
colCountChangedCallback: () => void;
|
5059
5457
|
constructor(name: string);
|
5060
5458
|
getType(): string;
|
5061
|
-
setSurveyImpl(value: ISurveyImpl): void;
|
5459
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
5062
5460
|
get isAllowTitleLeft(): boolean;
|
5063
5461
|
get hasSingleInput(): boolean;
|
5064
5462
|
onSurveyLoad(): void;
|
@@ -5120,6 +5518,7 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
5120
5518
|
get elements(): Array<IElement>;
|
5121
5519
|
indexOf(el: IElement): number;
|
5122
5520
|
ensureRowsVisibility(): void;
|
5521
|
+
getItemLabelCss(item: MultipleTextItemModel): string;
|
5123
5522
|
getItemCss(): string;
|
5124
5523
|
getItemTitleCss(): string;
|
5125
5524
|
}
|
@@ -5166,7 +5565,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5166
5565
|
onGetQuestionTitleLocation: () => string;
|
5167
5566
|
constructor(name?: string);
|
5168
5567
|
getType(): string;
|
5169
|
-
setSurveyImpl(value: ISurveyImpl): void;
|
5568
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
5170
5569
|
endLoadingFromJson(): void;
|
5171
5570
|
get hasTitle(): boolean;
|
5172
5571
|
protected canShowTitle(): boolean;
|
@@ -5340,6 +5739,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5340
5739
|
protected createRow(): QuestionRowModel;
|
5341
5740
|
onSurveyLoad(): void;
|
5342
5741
|
onFirstRendering(): void;
|
5742
|
+
updateRows(): void;
|
5343
5743
|
get rows(): Array<QuestionRowModel>;
|
5344
5744
|
ensureRowsVisibility(): void;
|
5345
5745
|
protected onRowsChanged(): void;
|
@@ -5452,8 +5852,6 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5452
5852
|
* It may contain questions and other panels.
|
5453
5853
|
*/
|
5454
5854
|
export declare class PanelModel extends PanelModelBase implements IElement {
|
5455
|
-
minWidth?: string;
|
5456
|
-
maxWidth?: string;
|
5457
5855
|
constructor(name?: string);
|
5458
5856
|
getType(): string;
|
5459
5857
|
get contentId(): string;
|
@@ -5525,6 +5923,16 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
5525
5923
|
*/
|
5526
5924
|
get width(): string;
|
5527
5925
|
set width(val: string);
|
5926
|
+
/**
|
5927
|
+
* Use it to set the specific minWidth constraint to the panel like css style (%, px, em etc).
|
5928
|
+
*/
|
5929
|
+
get minWidth(): string;
|
5930
|
+
set minWidth(val: string);
|
5931
|
+
/**
|
5932
|
+
* Use it to set the specific maxWidth constraint to the panel like css style (%, px, em etc).
|
5933
|
+
*/
|
5934
|
+
get maxWidth(): string;
|
5935
|
+
set maxWidth(val: string);
|
5528
5936
|
/**
|
5529
5937
|
* The left indent. Set this property to increase the panel left indent.
|
5530
5938
|
*/
|
@@ -5568,6 +5976,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
5568
5976
|
protected getCssError(cssClasses: any): string;
|
5569
5977
|
protected onVisibleChanged(): void;
|
5570
5978
|
needResponsiveWidth(): boolean;
|
5979
|
+
focusIn: () => void;
|
5571
5980
|
}
|
5572
5981
|
|
5573
5982
|
/**
|
@@ -5732,6 +6141,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
5732
6141
|
*/
|
5733
6142
|
onReadyChanged: EventBase<Question>;
|
5734
6143
|
isReadOnlyRenderDiv(): boolean;
|
6144
|
+
get isErrorsModeTooltip(): boolean;
|
6145
|
+
get hasParent(): boolean;
|
5735
6146
|
constructor(name: string);
|
5736
6147
|
protected createLocTitleProperty(): LocalizableString;
|
5737
6148
|
getSurvey(live?: boolean): ISurvey;
|
@@ -5752,9 +6163,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
5752
6163
|
/**
|
5753
6164
|
* A11Y properties
|
5754
6165
|
*/
|
5755
|
-
get ariaRequired():
|
6166
|
+
get ariaRequired(): "true" | "false";
|
5756
6167
|
get ariaLabel(): string;
|
5757
|
-
get ariaInvalid():
|
6168
|
+
get ariaInvalid(): "true" | "false";
|
5758
6169
|
get ariaDescribedBy(): string;
|
5759
6170
|
/**
|
5760
6171
|
* Get is question ready to use
|
@@ -5825,7 +6236,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
5825
6236
|
*/
|
5826
6237
|
moveTo(container: IPanel, insertBefore?: any): boolean;
|
5827
6238
|
getProgressInfo(): IProgressInfo;
|
5828
|
-
setSurveyImpl(value: ISurveyImpl): void;
|
6239
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
5829
6240
|
getDataFilteredValues(): any;
|
5830
6241
|
getDataFilteredProperties(): any;
|
5831
6242
|
/**
|
@@ -5981,6 +6392,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
5981
6392
|
*/
|
5982
6393
|
get renderWidth(): string;
|
5983
6394
|
set renderWidth(val: string);
|
6395
|
+
get renderCssRoot(): string;
|
5984
6396
|
/**
|
5985
6397
|
* Set it different from 0 to increase the left padding.
|
5986
6398
|
*/
|
@@ -6000,6 +6412,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6000
6412
|
* @param onError set this parameter to true, to focus the input with the first error, other wise the first input will be focused.
|
6001
6413
|
*/
|
6002
6414
|
focus(onError?: boolean): void;
|
6415
|
+
focusIn: () => void;
|
6003
6416
|
protected fireCallback(callback: () => void): void;
|
6004
6417
|
getOthersMaxLength(): any;
|
6005
6418
|
protected onCreating(): void;
|
@@ -6046,6 +6459,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6046
6459
|
*/
|
6047
6460
|
get isReadOnly(): boolean;
|
6048
6461
|
get isInputReadOnly(): boolean;
|
6462
|
+
get renderedInputReadOnly(): string;
|
6463
|
+
get renderedInputDisabled(): string;
|
6049
6464
|
protected onReadOnlyChanged(): void;
|
6050
6465
|
/**
|
6051
6466
|
* An expression that returns true or false. If it returns false the Question becomes read only and an end-user will not able to answer on the qustion. The library runs the expression on survey start and on changing a question value. If the property is empty then readOnly property is used.
|
@@ -6092,6 +6507,10 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6092
6507
|
createValueCopy(): any;
|
6093
6508
|
protected getUnbindValue(value: any): any;
|
6094
6509
|
protected isValueSurveyElement(val: any): boolean;
|
6510
|
+
/**
|
6511
|
+
* Return true if there is a parent (page or panel) and it is visible
|
6512
|
+
*/
|
6513
|
+
get isParentVisible(): boolean;
|
6095
6514
|
clearValueIfInvisible(): void;
|
6096
6515
|
get displayValue(): any;
|
6097
6516
|
/**
|
@@ -6110,6 +6529,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6110
6529
|
set defaultValue(val: any);
|
6111
6530
|
get defaultValueExpression(): any;
|
6112
6531
|
set defaultValueExpression(val: any);
|
6532
|
+
get resizeStyle(): "none" | "both";
|
6113
6533
|
/**
|
6114
6534
|
* Returns question answer data as a plain object: with question title, name, value and displayValue.
|
6115
6535
|
* For complex questions (like matrix, etc.) isNode flag is set to true and data contains array of nested objects (rows)
|
@@ -6478,7 +6898,7 @@ export declare class QuestionSelectBase extends Question {
|
|
6478
6898
|
supportNone(): boolean;
|
6479
6899
|
protected isSupportProperty(propName: string): boolean;
|
6480
6900
|
protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
|
6481
|
-
setSurveyImpl(value: ISurveyImpl): void;
|
6901
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
6482
6902
|
protected setSurveyCore(value: ISurvey): void;
|
6483
6903
|
protected getStoreOthersAsComment(): boolean;
|
6484
6904
|
onSurveyLoad(): void;
|
@@ -6513,6 +6933,13 @@ export declare class QuestionSelectBase extends Question {
|
|
6513
6933
|
choicesLoaded(): void;
|
6514
6934
|
getItemValueWrapperComponentName(item: ItemValue): string;
|
6515
6935
|
getItemValueWrapperComponentData(item: ItemValue): any;
|
6936
|
+
ariaItemChecked(item: ItemValue): "true" | "false";
|
6937
|
+
isOtherItem(item: ItemValue): boolean;
|
6938
|
+
get itemSvgIcon(): string;
|
6939
|
+
ariaItemLabel(item: ItemValue): string;
|
6940
|
+
getItemId(item: ItemValue): string;
|
6941
|
+
get questionName(): string;
|
6942
|
+
getItemEnabled(item: ItemValue): any;
|
6516
6943
|
}
|
6517
6944
|
/**
|
6518
6945
|
* A base class for checkbox and radiogroup questions. It introduced a colCount property.
|
@@ -6528,8 +6955,6 @@ export declare class QuestionCheckboxBase extends QuestionSelectBase {
|
|
6528
6955
|
protected onParentChanged(): void;
|
6529
6956
|
protected onParentQuestionChanged(): void;
|
6530
6957
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
6531
|
-
getItemEnabled(item: ItemValue): any;
|
6532
|
-
isOtherItem(item: ItemValue): boolean;
|
6533
6958
|
}
|
6534
6959
|
|
6535
6960
|
/**
|
@@ -6590,6 +7015,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
6590
7015
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
6591
7016
|
protected onAfterRunItemsEnableCondition(): void;
|
6592
7017
|
protected getItemClassCore(item: any, options: any): string;
|
7018
|
+
updateValueFromSurvey(newValue: any): void;
|
6593
7019
|
protected setNewValue(newValue: any): void;
|
6594
7020
|
protected getIsMultipleValue(): boolean;
|
6595
7021
|
protected getCommentFromValue(newValue: any): string;
|
@@ -6613,7 +7039,6 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
6613
7039
|
protected renderedValueFromDataCore(val: any): any;
|
6614
7040
|
protected rendredValueToDataCore(val: any): any;
|
6615
7041
|
get checkBoxSvgPath(): string;
|
6616
|
-
getItemId(item: ItemValue): string;
|
6617
7042
|
}
|
6618
7043
|
|
6619
7044
|
/**
|
@@ -6627,7 +7052,7 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
6627
7052
|
protected isItemCurrentDropTarget(item: ItemValue): boolean;
|
6628
7053
|
get ghostPositionCssClass(): string;
|
6629
7054
|
getNumberByIndex(index: number): string;
|
6630
|
-
setSurveyImpl
|
7055
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
6631
7056
|
onSurveyValueChanged(newValue: any): void;
|
6632
7057
|
protected onVisibleChoicesChanged: () => void;
|
6633
7058
|
localeChanged: () => void;
|
@@ -6683,6 +7108,7 @@ export declare class QuestionCommentModel extends QuestionTextBase {
|
|
6683
7108
|
onKeyDown(event: any): void;
|
6684
7109
|
onValueChanged(): void;
|
6685
7110
|
protected setNewValue(newValue: string): any;
|
7111
|
+
get className(): string;
|
6686
7112
|
}
|
6687
7113
|
|
6688
7114
|
/**
|
@@ -6733,6 +7159,7 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
6733
7159
|
get autoComplete(): string;
|
6734
7160
|
set autoComplete(val: string);
|
6735
7161
|
getControlClass(): string;
|
7162
|
+
get readOnlyText(): any;
|
6736
7163
|
}
|
6737
7164
|
|
6738
7165
|
export declare class QuestionFactory {
|
@@ -6940,7 +7367,6 @@ export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
|
|
6940
7367
|
get canShowClearButton(): boolean;
|
6941
7368
|
get clearButtonCaption(): any;
|
6942
7369
|
supportGoNextPageAutomatic(): boolean;
|
6943
|
-
get ariaRole(): string;
|
6944
7370
|
}
|
6945
7371
|
|
6946
7372
|
/**
|
@@ -7045,6 +7471,10 @@ export declare class QuestionExpressionModel extends Question {
|
|
7045
7471
|
set minimumFractionDigits(val: number);
|
7046
7472
|
get runIfReadOnly(): boolean;
|
7047
7473
|
set runIfReadOnly(val: boolean);
|
7474
|
+
get formatedValue(): string;
|
7475
|
+
protected updateFormatedValue(): void;
|
7476
|
+
protected onValueChanged(): void;
|
7477
|
+
updateValueFromSurvey(newValue: any): void;
|
7048
7478
|
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
7049
7479
|
/**
|
7050
7480
|
* You may set this property to "decimal", "currency", "percent" or "date". If you set it to "currency", you may use the currency property to display the value in currency different from USD.
|
@@ -7090,6 +7520,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
7090
7520
|
set size(val: number);
|
7091
7521
|
get isTextInput(): boolean;
|
7092
7522
|
get inputSize(): number;
|
7523
|
+
get renderedInputSize(): number;
|
7093
7524
|
get inputWidth(): string;
|
7094
7525
|
updateInputSize(): void;
|
7095
7526
|
/**
|
@@ -7230,6 +7661,7 @@ export declare class QuestionBooleanModel extends Question {
|
|
7230
7661
|
getItemCss(): string;
|
7231
7662
|
getLabelCss(checked: boolean): string;
|
7232
7663
|
get allowClick(): boolean;
|
7664
|
+
getCheckedLabel(): LocalizableString;
|
7233
7665
|
onLabelClick(event: any, value: boolean): boolean;
|
7234
7666
|
onSwitchClickModel(event: any): boolean;
|
7235
7667
|
}
|
@@ -7443,7 +7875,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
7443
7875
|
currentIndexChangedCallback: () => void;
|
7444
7876
|
constructor(name: string);
|
7445
7877
|
get hasSingleInput(): boolean;
|
7446
|
-
setSurveyImpl(value: ISurveyImpl): void;
|
7878
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
7447
7879
|
getType(): string;
|
7448
7880
|
get isCompositeQuestion(): boolean;
|
7449
7881
|
clearOnDeletingContainer(): void;
|
@@ -8310,6 +8742,20 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
8310
8742
|
* <br/> `options.htmlElement` - an HTML element bound to the panel object
|
8311
8743
|
*/
|
8312
8744
|
onAfterRenderPanel: EventBase<SurveyModel>;
|
8745
|
+
/**
|
8746
|
+
* The event occurs when an element within a question gets focus.
|
8747
|
+
* <br/> `sender` - A [survey](https://surveyjs.io/Documentation/Library?id=surveymodel) object that fires the event.
|
8748
|
+
* <br/> `options.question` - A [question](https://surveyjs.io/Documentation/Library?id=Question) whose child element gets focus.
|
8749
|
+
* @see onFocusInPanel
|
8750
|
+
*/
|
8751
|
+
onFocusInQuestion: EventBase<SurveyModel>;
|
8752
|
+
/**
|
8753
|
+
* The event occurs when an element within a panel gets focus.
|
8754
|
+
* <br/> `sender` - A [survey](https://surveyjs.io/Documentation/Library?id=surveymodel) object that fires the event.
|
8755
|
+
* <br/> `options.panel` - A [panel](https://surveyjs.io/Documentation/Library?id=PanelModelBase) whose child element gets focus.
|
8756
|
+
* @see onFocusInQuestion
|
8757
|
+
*/
|
8758
|
+
onFocusInPanel: EventBase<SurveyModel>;
|
8313
8759
|
/**
|
8314
8760
|
* The event is fired on adding a new row in Matrix Dynamic question.
|
8315
8761
|
* <br/> `sender` - the survey object that fires the event
|
@@ -9491,11 +9937,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
9491
9937
|
* Gets whether the current page is the first one.
|
9492
9938
|
*/
|
9493
9939
|
get isFirstPage(): boolean;
|
9494
|
-
get isShowPrevButton(): boolean;
|
9495
9940
|
/**
|
9496
9941
|
* Gets whether the current page is the last one.
|
9497
9942
|
*/
|
9498
9943
|
get isLastPage(): boolean;
|
9944
|
+
get isShowPrevButton(): boolean;
|
9945
|
+
get isShowNextButton(): boolean;
|
9499
9946
|
/**
|
9500
9947
|
* Completes the survey.
|
9501
9948
|
*
|
@@ -9567,6 +10014,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
9567
10014
|
afterRenderQuestion(question: IQuestion, htmlElement: HTMLElement): void;
|
9568
10015
|
afterRenderQuestionInput(question: IQuestion, htmlElement: HTMLElement): void;
|
9569
10016
|
afterRenderPanel(panel: IElement, htmlElement: HTMLElement): void;
|
10017
|
+
whenQuestionFocusIn(question: IQuestion): void;
|
10018
|
+
whenPanelFocusIn(panel: IPanel): void;
|
9570
10019
|
matrixBeforeRowAdded(options: any): void;
|
9571
10020
|
matrixRowAdded(question: IQuestion, row: any): void;
|
9572
10021
|
getQuestionByValueNameFromArray(valueName: string, name: string, index: number): IQuestion;
|
@@ -9939,6 +10388,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
9939
10388
|
getObjects(pages: string[], questions: string[]): any[];
|
9940
10389
|
setTriggerValue(name: string, value: any, isVariable: boolean): void;
|
9941
10390
|
copyTriggerValue(name: string, fromName: string): void;
|
10391
|
+
/**
|
10392
|
+
* Focus question by its name. If needed change the current page on the page where question is located.
|
10393
|
+
* Function returns false if there is no question with this name or question is invisible, otherwise it returns true.
|
10394
|
+
* @param name question name
|
10395
|
+
*/
|
9942
10396
|
focusQuestion(name: string): boolean;
|
9943
10397
|
getElementWrapperComponentName(element: any, reason?: string): string;
|
9944
10398
|
getRowWrapperComponentName(row: QuestionRowModel): string;
|
@@ -10156,7 +10610,6 @@ export declare class TextPreProcessorValue {
|
|
10156
10610
|
}
|
10157
10611
|
export declare class TextPreProcessor {
|
10158
10612
|
onProcess: (textValue: TextPreProcessorValue) => void;
|
10159
|
-
constructor();
|
10160
10613
|
process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
|
10161
10614
|
processValue(name: string, returnDisplayValue: boolean): TextPreProcessorValue;
|
10162
10615
|
get hasAllValuesOnLastRun(): boolean;
|
@@ -10455,7 +10908,7 @@ export declare abstract class QuestionCustomModelBase extends Question implement
|
|
10455
10908
|
onFirstRendering(): void;
|
10456
10909
|
protected abstract getElement(): SurveyElement;
|
10457
10910
|
protected initElement(el: SurveyElement): void;
|
10458
|
-
setSurveyImpl(value: ISurveyImpl): void;
|
10911
|
+
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
10459
10912
|
onSurveyLoad(): void;
|
10460
10913
|
afterRenderQuestionElement(el: HTMLElement): void;
|
10461
10914
|
afterRender(el: any): void;
|
@@ -10585,6 +11038,7 @@ export declare class ListModel extends ActionContainer {
|
|
10585
11038
|
getItemIndent: (itemValue: any) => string;
|
10586
11039
|
get filteredTextPlaceholder(): any;
|
10587
11040
|
onKeyDown(event: KeyboardEvent): void;
|
11041
|
+
onPointerDown(event: PointerEvent, item: any): void;
|
10588
11042
|
refresh(): void;
|
10589
11043
|
}
|
10590
11044
|
|
@@ -10601,13 +11055,14 @@ export declare class PopupModel<T = any> extends Base {
|
|
10601
11055
|
onShow: () => void;
|
10602
11056
|
cssClass: string;
|
10603
11057
|
title: string;
|
11058
|
+
displayMode: "popup" | "overlay";
|
10604
11059
|
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);
|
10605
11060
|
get isVisible(): boolean;
|
10606
11061
|
set isVisible(value: boolean);
|
10607
11062
|
toggleVisibility(): void;
|
10608
11063
|
onVisibilityChanged: (isVisible: boolean) => void;
|
10609
11064
|
}
|
10610
|
-
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string): PopupBaseViewModel;
|
11065
|
+
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
10611
11066
|
export declare class PopupBaseViewModel extends Base {
|
10612
11067
|
targetElement?: HTMLElement;
|
10613
11068
|
top: string;
|
@@ -10625,6 +11080,8 @@ export declare class PopupBaseViewModel extends Base {
|
|
10625
11080
|
get contentComponentData(): any;
|
10626
11081
|
get showPointer(): boolean;
|
10627
11082
|
get isModal(): boolean;
|
11083
|
+
get showFooter(): boolean;
|
11084
|
+
get isOverlay(): boolean;
|
10628
11085
|
get styleClass(): string;
|
10629
11086
|
onKeyDown(event: any): void;
|
10630
11087
|
updateOnShowing(): void;
|
@@ -10707,11 +11164,16 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
10707
11164
|
protected prevIsEdge: any;
|
10708
11165
|
protected ghostSurveyElement: IElement;
|
10709
11166
|
protected get draggedElementType(): string;
|
11167
|
+
protected isDraggedElementSelected: boolean;
|
10710
11168
|
startDragToolboxItem(event: PointerEvent, draggedElementJson: JsonObject): void;
|
11169
|
+
startDragSurveyElement(event: PointerEvent, draggedElement: any, isElementSelected?: boolean): void;
|
11170
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
|
11171
|
+
protected createDraggedElementIcon(): HTMLElement;
|
11172
|
+
protected getDraggedElementClass(): string;
|
10711
11173
|
protected createElementFromJson(json: object): HTMLElement;
|
10712
|
-
protected getShortcutText(draggedElement: any): string;
|
10713
11174
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode: HTMLElement, event: PointerEvent): any;
|
10714
|
-
protected isDropTargetValid(dropTarget: SurveyElement
|
11175
|
+
protected isDropTargetValid(dropTarget: SurveyElement): boolean;
|
11176
|
+
protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
|
10715
11177
|
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
10716
11178
|
protected findDeepestDropTargetChild(parent: HTMLElement): HTMLElement;
|
10717
11179
|
protected afterDragOver(): void;
|
@@ -10725,11 +11187,10 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
10725
11187
|
|
10726
11188
|
export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
10727
11189
|
protected get draggedElementType(): string;
|
10728
|
-
protected
|
10729
|
-
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement): HTMLElement;
|
11190
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement, event: PointerEvent): HTMLElement;
|
10730
11191
|
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
10731
11192
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
10732
|
-
protected isDropTargetValid(dropTarget: ItemValue
|
11193
|
+
protected isDropTargetValid(dropTarget: ItemValue): boolean;
|
10733
11194
|
protected calculateIsBottom(clientY: number): boolean;
|
10734
11195
|
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
10735
11196
|
protected doDrop(): any;
|
@@ -10829,7 +11290,6 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
|
|
10829
11290
|
export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynamicModel> {
|
10830
11291
|
protected get draggedElementType(): string;
|
10831
11292
|
protected ghostPositionChanged(): void;
|
10832
|
-
protected getShortcutText(draggedElement: any): string;
|
10833
11293
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: any): MatrixDropdownRowModelBase;
|
10834
11294
|
protected isDropTargetValid(dropTarget: any): boolean;
|
10835
11295
|
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
@@ -10841,12 +11301,14 @@ export declare class DragDropRankingChoices extends DragDropChoices {
|
|
10841
11301
|
protected get draggedElementType(): string;
|
10842
11302
|
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement): HTMLElement;
|
10843
11303
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
10844
|
-
protected
|
11304
|
+
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
11305
|
+
protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
|
10845
11306
|
protected calculateIsBottom(clientY: number): boolean;
|
11307
|
+
protected doDragOver: () => any;
|
10846
11308
|
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
10847
11309
|
protected ghostPositionChanged(): void;
|
11310
|
+
protected doBanDropHere: () => any;
|
10848
11311
|
protected doDrop: () => any;
|
10849
|
-
protected handleEscapeButton: (event: KeyboardEvent) => void;
|
10850
11312
|
protected doClear: () => void;
|
10851
11313
|
}
|
10852
11314
|
|
@@ -10934,17 +11396,19 @@ export declare abstract class DragDropCore<T> extends Base {
|
|
10934
11396
|
protected get dropTargetDataAttributeName(): string;
|
10935
11397
|
protected get survey(): SurveyModel;
|
10936
11398
|
prevDropTarget: any;
|
10937
|
-
protected draggedElementShortcut:
|
11399
|
+
protected draggedElementShortcut: any;
|
11400
|
+
protected allowDropHere: boolean;
|
10938
11401
|
constructor(surveyValue?: ISurvey, creator?: any);
|
10939
11402
|
startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement): void;
|
10940
11403
|
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
10941
11404
|
protected doStartDrag(): void;
|
10942
|
-
protected
|
10943
|
-
protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement): HTMLElement;
|
11405
|
+
protected getShortcutText(draggedElement: IShortcutText): string;
|
11406
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
|
11407
|
+
protected getDraggedElementClass(): string;
|
10944
11408
|
protected doDragOver(dropTargetNode?: HTMLElement): void;
|
10945
11409
|
protected afterDragOver(dropTargetNode?: HTMLElement): void;
|
10946
11410
|
getGhostPosition(item: any): string;
|
10947
|
-
protected abstract isDropTargetValid(dropTarget: any,
|
11411
|
+
protected abstract isDropTargetValid(dropTarget: any, dropTargetNode?: HTMLElement): boolean;
|
10948
11412
|
protected handleEscapeButton: (event: KeyboardEvent) => void;
|
10949
11413
|
protected banDropHere: () => void;
|
10950
11414
|
protected doBanDropHere: () => void;
|
@@ -10952,7 +11416,7 @@ export declare abstract class DragDropCore<T> extends Base {
|
|
10952
11416
|
protected getDropTargetByNode(dropTargetNode: HTMLElement, event: PointerEvent): any;
|
10953
11417
|
protected abstract getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode?: HTMLElement, event?: PointerEvent): any;
|
10954
11418
|
protected calculateMiddleOfHTMLElement(HTMLElement: HTMLElement): number;
|
10955
|
-
protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
|
11419
|
+
protected abstract calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
|
10956
11420
|
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
10957
11421
|
protected abstract doDrop(): any;
|
10958
11422
|
protected clear: () => void;
|