survey-react 1.8.76 → 1.9.0
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 +42 -4
- 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 +171 -41
- package/survey.react.js +1204 -619
- 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.
|
1
|
+
/*Type definitions for Survey JavaScript library v1.9.0
|
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
|
*/
|
@@ -110,7 +110,6 @@ export declare var defaultStandardCss: {
|
|
110
110
|
itemDisabled: string;
|
111
111
|
switch: string;
|
112
112
|
slider: string;
|
113
|
-
sliderText: string;
|
114
113
|
label: string;
|
115
114
|
disabledLabel: string;
|
116
115
|
materialDecorator: string;
|
@@ -131,7 +130,6 @@ export declare var defaultStandardCss: {
|
|
131
130
|
itemControl: string;
|
132
131
|
itemDecorator: string;
|
133
132
|
controlLabel: string;
|
134
|
-
materialDecorator: string;
|
135
133
|
other: string;
|
136
134
|
column: string;
|
137
135
|
};
|
@@ -239,7 +237,9 @@ export declare var defaultStandardCss: {
|
|
239
237
|
multipletext: {
|
240
238
|
root: string;
|
241
239
|
itemTitle: string;
|
240
|
+
item: string;
|
242
241
|
row: string;
|
242
|
+
itemLabel: string;
|
243
243
|
itemValue: string;
|
244
244
|
};
|
245
245
|
radiogroup: {
|
@@ -252,7 +252,6 @@ export declare var defaultStandardCss: {
|
|
252
252
|
labelChecked: string;
|
253
253
|
itemControl: string;
|
254
254
|
controlLabel: string;
|
255
|
-
materialDecorator: string;
|
256
255
|
other: string;
|
257
256
|
clearButton: string;
|
258
257
|
column: string;
|
@@ -426,7 +425,6 @@ export declare var defaultBootstrapCss: {
|
|
426
425
|
itemDisabled: string;
|
427
426
|
switch: string;
|
428
427
|
slider: string;
|
429
|
-
sliderText: string;
|
430
428
|
label: string;
|
431
429
|
disabledLabel: string;
|
432
430
|
materialDecorator: string;
|
@@ -553,6 +551,9 @@ export declare var defaultBootstrapCss: {
|
|
553
551
|
multipletext: {
|
554
552
|
root: string;
|
555
553
|
itemTitle: string;
|
554
|
+
item: string;
|
555
|
+
itemLabel: string;
|
556
|
+
row: string;
|
556
557
|
itemValue: string;
|
557
558
|
};
|
558
559
|
radiogroup: {
|
@@ -738,7 +739,6 @@ export declare var defaultBootstrapMaterialCss: {
|
|
738
739
|
itemDisabled: string;
|
739
740
|
switch: string;
|
740
741
|
slider: string;
|
741
|
-
sliderText: string;
|
742
742
|
label: string;
|
743
743
|
disabledLabel: string;
|
744
744
|
materialDecorator: string;
|
@@ -871,6 +871,8 @@ export declare var defaultBootstrapMaterialCss: {
|
|
871
871
|
multipletext: {
|
872
872
|
root: string;
|
873
873
|
itemTitle: string;
|
874
|
+
item: string;
|
875
|
+
itemLabel: string;
|
874
876
|
row: string;
|
875
877
|
itemValue: string;
|
876
878
|
};
|
@@ -1071,12 +1073,15 @@ export declare var defaultV2Css: {
|
|
1071
1073
|
root: string;
|
1072
1074
|
icon: string;
|
1073
1075
|
item: string;
|
1076
|
+
tooltip: string;
|
1077
|
+
aboveQuestion: string;
|
1074
1078
|
locationTop: string;
|
1075
1079
|
locationBottom: string;
|
1076
1080
|
};
|
1077
1081
|
checkbox: {
|
1078
1082
|
root: string;
|
1079
1083
|
item: string;
|
1084
|
+
itemOnError: string;
|
1080
1085
|
itemSelectAll: string;
|
1081
1086
|
itemNone: string;
|
1082
1087
|
itemDisabled: string;
|
@@ -1087,6 +1092,7 @@ export declare var defaultV2Css: {
|
|
1087
1092
|
labelChecked: string;
|
1088
1093
|
itemControl: string;
|
1089
1094
|
itemDecorator: string;
|
1095
|
+
itemSvgIconId: string;
|
1090
1096
|
controlLabel: string;
|
1091
1097
|
materialDecorator: string;
|
1092
1098
|
other: string;
|
@@ -1095,6 +1101,7 @@ export declare var defaultV2Css: {
|
|
1095
1101
|
radiogroup: {
|
1096
1102
|
root: string;
|
1097
1103
|
item: string;
|
1104
|
+
itemOnError: string;
|
1098
1105
|
itemInline: string;
|
1099
1106
|
label: string;
|
1100
1107
|
labelChecked: string;
|
@@ -1113,6 +1120,7 @@ export declare var defaultV2Css: {
|
|
1113
1120
|
mainRoot: string;
|
1114
1121
|
root: string;
|
1115
1122
|
item: string;
|
1123
|
+
itemOnError: string;
|
1116
1124
|
control: string;
|
1117
1125
|
itemChecked: string;
|
1118
1126
|
itemIndeterminate: string;
|
@@ -1133,6 +1141,8 @@ export declare var defaultV2Css: {
|
|
1133
1141
|
};
|
1134
1142
|
multipletext: {
|
1135
1143
|
root: string;
|
1144
|
+
itemLabel: string;
|
1145
|
+
itemLabelOnError: string;
|
1136
1146
|
item: string;
|
1137
1147
|
itemTitle: string;
|
1138
1148
|
row: string;
|
@@ -1160,6 +1170,7 @@ export declare var defaultV2Css: {
|
|
1160
1170
|
mainRoot: string;
|
1161
1171
|
root: string;
|
1162
1172
|
item: string;
|
1173
|
+
itemOnError: string;
|
1163
1174
|
itemInline: string;
|
1164
1175
|
itemChecked: string;
|
1165
1176
|
itemDisabled: string;
|
@@ -1179,6 +1190,7 @@ export declare var defaultV2Css: {
|
|
1179
1190
|
cell: string;
|
1180
1191
|
headerCell: string;
|
1181
1192
|
label: string;
|
1193
|
+
itemOnError: string;
|
1182
1194
|
itemValue: string;
|
1183
1195
|
itemChecked: string;
|
1184
1196
|
itemDisabled: string;
|
@@ -1194,12 +1206,14 @@ export declare var defaultV2Css: {
|
|
1194
1206
|
root: string;
|
1195
1207
|
cell: string;
|
1196
1208
|
headerCell: string;
|
1209
|
+
rowTextCell: string;
|
1197
1210
|
};
|
1198
1211
|
matrixdynamic: {
|
1199
1212
|
mainRoot: string;
|
1200
1213
|
root: string;
|
1201
1214
|
cell: string;
|
1202
1215
|
headerCell: string;
|
1216
|
+
rowTextCell: string;
|
1203
1217
|
button: string;
|
1204
1218
|
detailRow: string;
|
1205
1219
|
detailButton: string;
|
@@ -1216,6 +1230,7 @@ export declare var defaultV2Css: {
|
|
1216
1230
|
rating: {
|
1217
1231
|
root: string;
|
1218
1232
|
item: string;
|
1233
|
+
itemOnError: string;
|
1219
1234
|
itemHover: string;
|
1220
1235
|
selected: string;
|
1221
1236
|
minText: string;
|
@@ -1227,6 +1242,7 @@ export declare var defaultV2Css: {
|
|
1227
1242
|
root: string;
|
1228
1243
|
small: string;
|
1229
1244
|
controlDisabled: string;
|
1245
|
+
onError: string;
|
1230
1246
|
};
|
1231
1247
|
expression: string;
|
1232
1248
|
file: {
|
@@ -1238,6 +1254,7 @@ export declare var defaultV2Css: {
|
|
1238
1254
|
fileList: string;
|
1239
1255
|
fileSignBottom: string;
|
1240
1256
|
fileDecorator: string;
|
1257
|
+
onError: string;
|
1241
1258
|
fileDecoratorDrag: string;
|
1242
1259
|
fileInput: string;
|
1243
1260
|
noFileChosen: string;
|
@@ -1277,12 +1294,29 @@ export declare var defaultV2Css: {
|
|
1277
1294
|
buttonCollapsed: string;
|
1278
1295
|
};
|
1279
1296
|
};
|
1297
|
+
ranking: {
|
1298
|
+
root: string;
|
1299
|
+
rootMobileMod: string;
|
1300
|
+
rootDragMod: string;
|
1301
|
+
item: string;
|
1302
|
+
itemContent: string;
|
1303
|
+
itemIndex: string;
|
1304
|
+
controlLabel: string;
|
1305
|
+
itemGhostNode: string;
|
1306
|
+
itemIconContainer: string;
|
1307
|
+
itemIcon: string;
|
1308
|
+
itemIconHoverMod: string;
|
1309
|
+
itemIconFocusMod: string;
|
1310
|
+
itemGhostMod: string;
|
1311
|
+
itemDragMod: string;
|
1312
|
+
};
|
1280
1313
|
};
|
1281
1314
|
|
1282
1315
|
export declare var modernCss: {
|
1283
1316
|
root: string;
|
1284
1317
|
container: string;
|
1285
1318
|
header: string;
|
1319
|
+
headerClose: string;
|
1286
1320
|
body: string;
|
1287
1321
|
bodyEmpty: string;
|
1288
1322
|
footer: string;
|
@@ -1415,6 +1449,7 @@ export declare var modernCss: {
|
|
1415
1449
|
labelChecked: string;
|
1416
1450
|
itemControl: string;
|
1417
1451
|
itemDecorator: string;
|
1452
|
+
itemSvgIconId: string;
|
1418
1453
|
controlLabel: string;
|
1419
1454
|
materialDecorator: string;
|
1420
1455
|
other: string;
|
@@ -1447,6 +1482,7 @@ export declare var modernCss: {
|
|
1447
1482
|
itemHover: string;
|
1448
1483
|
itemControl: string;
|
1449
1484
|
itemDecorator: string;
|
1485
|
+
itemSvgIconId: string;
|
1450
1486
|
controlLabel: string;
|
1451
1487
|
materialDecorator: string;
|
1452
1488
|
other: string;
|
@@ -1474,7 +1510,6 @@ export declare var modernCss: {
|
|
1474
1510
|
itemDisabled: string;
|
1475
1511
|
switch: string;
|
1476
1512
|
slider: string;
|
1477
|
-
sliderText: string;
|
1478
1513
|
label: string;
|
1479
1514
|
disabledLabel: string;
|
1480
1515
|
materialDecorator: string;
|
@@ -1491,6 +1526,7 @@ export declare var modernCss: {
|
|
1491
1526
|
multipletext: {
|
1492
1527
|
root: string;
|
1493
1528
|
item: string;
|
1529
|
+
itemLabel: string;
|
1494
1530
|
itemTitle: string;
|
1495
1531
|
row: string;
|
1496
1532
|
cell: string;
|
@@ -1639,6 +1675,8 @@ export declare var modernCss: {
|
|
1639
1675
|
};
|
1640
1676
|
};
|
1641
1677
|
|
1678
|
+
export declare var SvgBundleViewModel: any;
|
1679
|
+
|
1642
1680
|
export declare class RendererFactory {
|
1643
1681
|
static Instance: RendererFactory;
|
1644
1682
|
unregisterRenderer(questionType: string, rendererAs: string): void;
|
@@ -1655,6 +1693,7 @@ interface IDimensions {
|
|
1655
1693
|
export declare class ResponsivityManager {
|
1656
1694
|
protected container: HTMLDivElement;
|
1657
1695
|
protected minDimensionConst: number;
|
1696
|
+
protected recalcMinDimensionConst: boolean;
|
1658
1697
|
getComputedStyle: (elt: Element) => CSSStyleDeclaration;
|
1659
1698
|
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number);
|
1660
1699
|
protected getDimensions(element: HTMLElement): IDimensions;
|
@@ -1777,6 +1816,10 @@ export interface IAction {
|
|
1777
1816
|
* Set it to true to make the tabIndex -1 to disable keyboard navigation to this item
|
1778
1817
|
*/
|
1779
1818
|
disableTabStop?: boolean;
|
1819
|
+
/**
|
1820
|
+
* Set it to false to force action "large" mode even if has icon and does not fit to action bar space
|
1821
|
+
*/
|
1822
|
+
disableShrink?: boolean;
|
1780
1823
|
/**
|
1781
1824
|
* Action button display mode
|
1782
1825
|
*/
|
@@ -1809,6 +1852,7 @@ export declare class Action extends Base implements IAction {
|
|
1809
1852
|
visibleIndex: number;
|
1810
1853
|
mode: "large" | "small" | "popup";
|
1811
1854
|
disableTabStop: boolean;
|
1855
|
+
disableShrink: boolean;
|
1812
1856
|
get disabled(): boolean;
|
1813
1857
|
get hasTitle(): boolean;
|
1814
1858
|
get isVisible(): boolean;
|
@@ -1824,6 +1868,7 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
|
|
1824
1868
|
protected dotsItem: Action;
|
1825
1869
|
protected dotsItemPopupModel: PopupModel;
|
1826
1870
|
minVisibleItemsCount: number;
|
1871
|
+
protected invisibleItemsListModel: ListModel;
|
1827
1872
|
constructor();
|
1828
1873
|
protected onSet(): void;
|
1829
1874
|
protected onPush(item: T): void;
|
@@ -1852,6 +1897,12 @@ export declare class ActionContainer<T extends Action = Action> extends Base {
|
|
1852
1897
|
resetResponsivityManager(): void;
|
1853
1898
|
}
|
1854
1899
|
|
1900
|
+
export declare class TooltipManager {
|
1901
|
+
tooltipElement: HTMLElement;
|
1902
|
+
constructor(tooltipElement: HTMLElement);
|
1903
|
+
dispose(): void;
|
1904
|
+
}
|
1905
|
+
|
1855
1906
|
export declare class Survey extends SurveyElementBase<any, any> implements ISurveyCreator {
|
1856
1907
|
static get cssType(): string;
|
1857
1908
|
static set cssType(value: string);
|
@@ -2018,26 +2069,35 @@ export declare class SurveyElementErrors extends ReactSurveyElement {
|
|
2018
2069
|
protected get element(): SurveyElement;
|
2019
2070
|
protected get location(): string;
|
2020
2071
|
protected canRender(): boolean;
|
2072
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
2073
|
+
componentWillUnmount(): void;
|
2021
2074
|
protected renderElement(): JSX.Element;
|
2022
2075
|
}
|
2023
|
-
export declare class
|
2076
|
+
export declare abstract class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
|
2024
2077
|
[index: string]: any;
|
2025
|
-
protected cellRef: React.RefObject<HTMLTableCellElement>;
|
2026
2078
|
constructor(props: any);
|
2027
2079
|
protected getStateElement(): Base;
|
2028
|
-
protected get itemCss(): string;
|
2029
2080
|
protected get question(): Question;
|
2030
2081
|
protected get creator(): ISurveyCreator;
|
2031
2082
|
protected getQuestion(): Question;
|
2083
|
+
protected get itemCss(): string;
|
2032
2084
|
componentDidMount(): void;
|
2033
|
-
componentWillUnmount(): void;
|
2034
2085
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2035
2086
|
protected doAfterRender(): void;
|
2036
2087
|
protected canRender(): boolean;
|
2037
|
-
protected
|
2088
|
+
protected renderErrors(errorsLocation: string): JSX.Element;
|
2089
|
+
protected renderContent(): JSX.Element;
|
2090
|
+
protected abstract renderElement(): JSX.Element;
|
2038
2091
|
protected getShowErrors(): boolean;
|
2039
|
-
protected getCellStyle(): any;
|
2040
2092
|
protected renderQuestion(): JSX.Element;
|
2093
|
+
}
|
2094
|
+
export declare class SurveyQuestionAndErrorsCell extends SurveyQuestionAndErrorsWrapped {
|
2095
|
+
[index: string]: any;
|
2096
|
+
protected cellRef: React.RefObject<HTMLTableCellElement>;
|
2097
|
+
constructor(props: any);
|
2098
|
+
componentWillUnmount(): void;
|
2099
|
+
protected renderElement(): JSX.Element;
|
2100
|
+
protected getCellStyle(): any;
|
2041
2101
|
protected getHeaderText(): string;
|
2042
2102
|
protected wrapCell(cell: QuestionMatrixDropdownRenderedCell, element: JSX.Element): JSX.Element;
|
2043
2103
|
}
|
@@ -2195,8 +2255,12 @@ export declare class SurveyQuestionMultipleText extends SurveyQuestionElementBas
|
|
2195
2255
|
constructor(props: any);
|
2196
2256
|
protected get question(): QuestionMultipleTextModel;
|
2197
2257
|
protected renderElement(): JSX.Element;
|
2258
|
+
protected renderItemTooltipError(item: MultipleTextItemModel, cssClasses: any): JSX.Element;
|
2198
2259
|
protected renderRow(rowIndex: number, items: Array<MultipleTextItemModel>, cssClasses: any): JSX.Element;
|
2199
2260
|
}
|
2261
|
+
export declare class SurveyMultipleTextItemEditor extends SurveyQuestionAndErrorsWrapped {
|
2262
|
+
protected renderElement(): JSX.Element;
|
2263
|
+
}
|
2200
2264
|
|
2201
2265
|
export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase {
|
2202
2266
|
constructor(props: any);
|
@@ -2223,6 +2287,7 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
|
2223
2287
|
|
2224
2288
|
export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElement<QuestionTextModel> {
|
2225
2289
|
constructor(props: any);
|
2290
|
+
protected renderInput(): JSX.Element;
|
2226
2291
|
protected renderElement(): JSX.Element;
|
2227
2292
|
}
|
2228
2293
|
|
@@ -2465,10 +2530,12 @@ export declare class PopupContainer extends SurveyElementBase<any, any> {
|
|
2465
2530
|
renderPointer(): JSX.Element;
|
2466
2531
|
renderHeader(): JSX.Element;
|
2467
2532
|
renderContent(): JSX.Element;
|
2533
|
+
renderCancelButton(): JSX.Element;
|
2534
|
+
renderApplyButton(): JSX.Element;
|
2468
2535
|
renderFooter(): JSX.Element;
|
2469
2536
|
render(): JSX.Element;
|
2470
2537
|
}
|
2471
|
-
export declare function showModal(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string): void;
|
2538
|
+
export declare function showModal(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
2472
2539
|
export {};
|
2473
2540
|
|
2474
2541
|
interface IListProps {
|
@@ -2755,7 +2822,7 @@ export declare var settings: {
|
|
2755
2822
|
* 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
|
2756
2823
|
*/
|
2757
2824
|
maxDate: string;
|
2758
|
-
showModal: (componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string) => void;
|
2825
|
+
showModal: (componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay") => void;
|
2759
2826
|
supportCreatorV2: boolean;
|
2760
2827
|
/**
|
2761
2828
|
* Specifies a list of custom icons.
|
@@ -2861,7 +2928,7 @@ export declare class NumericValidator extends SurveyValidator {
|
|
2861
2928
|
* Validate text values.
|
2862
2929
|
*/
|
2863
2930
|
export declare class TextValidator extends SurveyValidator {
|
2864
|
-
constructor(
|
2931
|
+
constructor();
|
2865
2932
|
getType(): string;
|
2866
2933
|
validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
|
2867
2934
|
protected getDefaultErrorText(name: string): any;
|
@@ -2944,7 +3011,7 @@ export declare class ExpressionValidator extends SurveyValidator {
|
|
2944
3011
|
* It has two main properties: value and text. If text is empty, value is used for displaying.
|
2945
3012
|
* The text property is localizable and support markdown.
|
2946
3013
|
*/
|
2947
|
-
export declare class ItemValue extends Base {
|
3014
|
+
export declare class ItemValue extends Base implements IShortcutText {
|
2948
3015
|
protected typeName: string;
|
2949
3016
|
[index: string]: any;
|
2950
3017
|
static get Separator(): string;
|
@@ -2976,6 +3043,7 @@ export declare class ItemValue extends Base {
|
|
2976
3043
|
get text(): string;
|
2977
3044
|
set text(newText: string);
|
2978
3045
|
get calculatedText(): string;
|
3046
|
+
get shortcutText(): string;
|
2979
3047
|
getData(): any;
|
2980
3048
|
toJSON(): any;
|
2981
3049
|
setData(value: any): void;
|
@@ -3146,6 +3214,7 @@ export declare class Base {
|
|
3146
3214
|
* @param val new property value
|
3147
3215
|
*/
|
3148
3216
|
setPropertyValue(name: string, val: any): void;
|
3217
|
+
protected setArrayPropertyDirectly(name: string, val: any, sendNotification?: boolean): void;
|
3149
3218
|
protected setPropertyValueDirectly(name: string, val: any): void;
|
3150
3219
|
protected clearPropertyValue(name: string): void;
|
3151
3220
|
onPropertyValueChangedCallback(name: string, oldValue: any, newValue: any, sender: Base, arrayChanges: ArrayChanges): void;
|
@@ -3180,7 +3249,7 @@ export declare class Base {
|
|
3180
3249
|
*/
|
3181
3250
|
unRegisterFunctionOnPropertiesValueChanged(names: Array<string>, key?: string): void;
|
3182
3251
|
createCustomLocalizableObj(name: string): void;
|
3183
|
-
protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean,
|
3252
|
+
protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean, defaultStr?: boolean | string): LocalizableString;
|
3184
3253
|
getLocalizableString(name: string): LocalizableString;
|
3185
3254
|
getLocalizableStringText(name: string, defaultStr?: string): string;
|
3186
3255
|
setLocalizableStringText(name: string, value: string): void;
|
@@ -3280,6 +3349,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
3280
3349
|
requiredText: string;
|
3281
3350
|
beforeSettingQuestionErrors(question: IQuestion, errors: Array<SurveyError>): void;
|
3282
3351
|
beforeSettingPanelErrors(question: IPanel, errors: Array<SurveyError>): void;
|
3352
|
+
getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
|
3283
3353
|
getElementTitleTagName(element: Base, tagName: string): string;
|
3284
3354
|
questionTitlePattern: string;
|
3285
3355
|
getUpdatedQuestionTitle(question: IQuestion, title: string): string;
|
@@ -3339,7 +3409,10 @@ export interface ISurveyImpl {
|
|
3339
3409
|
export interface IConditionRunner {
|
3340
3410
|
runCondition(values: HashTable<any>, properties: HashTable<any>): any;
|
3341
3411
|
}
|
3342
|
-
export interface
|
3412
|
+
export interface IShortcutText {
|
3413
|
+
shortcutText: string;
|
3414
|
+
}
|
3415
|
+
export interface ISurveyElement extends IShortcutText {
|
3343
3416
|
name: string;
|
3344
3417
|
isVisible: boolean;
|
3345
3418
|
isReadOnly: boolean;
|
@@ -3508,6 +3581,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3508
3581
|
stateChangedCallback: () => void;
|
3509
3582
|
static getProgressInfoByElements(children: Array<SurveyElement>, isRequired: boolean): IProgressInfo;
|
3510
3583
|
dragTypeOverMe: DragTypeOverMeEnum;
|
3584
|
+
isDragMe: boolean;
|
3511
3585
|
readOnlyChangedCallback: () => void;
|
3512
3586
|
static ScrollElementToTop(elementId: string): boolean;
|
3513
3587
|
static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
|
@@ -3553,6 +3627,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3553
3627
|
*/
|
3554
3628
|
toggleState(): boolean;
|
3555
3629
|
get hasStateButton(): boolean;
|
3630
|
+
get shortcutText(): string;
|
3556
3631
|
getTitleToolbar(): AdaptiveActionContainer;
|
3557
3632
|
get titleActions(): Array<any>;
|
3558
3633
|
getTitleActions(): Array<any>;
|
@@ -4978,10 +5053,11 @@ export declare class QuestionMatrixDropdownModel extends QuestionMatrixDropdownM
|
|
4978
5053
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
4979
5054
|
}
|
4980
5055
|
|
4981
|
-
export declare class MatrixDynamicRowModel extends MatrixDropdownRowModelBase {
|
5056
|
+
export declare class MatrixDynamicRowModel extends MatrixDropdownRowModelBase implements IShortcutText {
|
4982
5057
|
index: number;
|
4983
5058
|
constructor(index: number, data: IMatrixDropdownData, value: any);
|
4984
5059
|
get rowName(): string;
|
5060
|
+
get shortcutText(): string;
|
4985
5061
|
}
|
4986
5062
|
/**
|
4987
5063
|
* A Model for a matrix dymanic question. You may use a dropdown, checkbox, radiogroup, text and comment questions as a cell editors.
|
@@ -5456,6 +5532,7 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
5456
5532
|
get elements(): Array<IElement>;
|
5457
5533
|
indexOf(el: IElement): number;
|
5458
5534
|
ensureRowsVisibility(): void;
|
5535
|
+
getItemLabelCss(item: MultipleTextItemModel): string;
|
5459
5536
|
getItemCss(): string;
|
5460
5537
|
getItemTitleCss(): string;
|
5461
5538
|
}
|
@@ -5676,6 +5753,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5676
5753
|
protected createRow(): QuestionRowModel;
|
5677
5754
|
onSurveyLoad(): void;
|
5678
5755
|
onFirstRendering(): void;
|
5756
|
+
updateRows(): void;
|
5679
5757
|
get rows(): Array<QuestionRowModel>;
|
5680
5758
|
ensureRowsVisibility(): void;
|
5681
5759
|
protected onRowsChanged(): void;
|
@@ -5788,8 +5866,6 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5788
5866
|
* It may contain questions and other panels.
|
5789
5867
|
*/
|
5790
5868
|
export declare class PanelModel extends PanelModelBase implements IElement {
|
5791
|
-
minWidth?: string;
|
5792
|
-
maxWidth?: string;
|
5793
5869
|
constructor(name?: string);
|
5794
5870
|
getType(): string;
|
5795
5871
|
get contentId(): string;
|
@@ -5861,6 +5937,16 @@ export declare class PanelModel extends PanelModelBase implements IElement {
|
|
5861
5937
|
*/
|
5862
5938
|
get width(): string;
|
5863
5939
|
set width(val: string);
|
5940
|
+
/**
|
5941
|
+
* Use it to set the specific minWidth constraint to the panel like css style (%, px, em etc).
|
5942
|
+
*/
|
5943
|
+
get minWidth(): string;
|
5944
|
+
set minWidth(val: string);
|
5945
|
+
/**
|
5946
|
+
* Use it to set the specific maxWidth constraint to the panel like css style (%, px, em etc).
|
5947
|
+
*/
|
5948
|
+
get maxWidth(): string;
|
5949
|
+
set maxWidth(val: string);
|
5864
5950
|
/**
|
5865
5951
|
* The left indent. Set this property to increase the panel left indent.
|
5866
5952
|
*/
|
@@ -6069,6 +6155,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6069
6155
|
*/
|
6070
6156
|
onReadyChanged: EventBase<Question>;
|
6071
6157
|
isReadOnlyRenderDiv(): boolean;
|
6158
|
+
get isErrorsModeTooltip(): boolean;
|
6159
|
+
get hasParent(): boolean;
|
6072
6160
|
constructor(name: string);
|
6073
6161
|
protected createLocTitleProperty(): LocalizableString;
|
6074
6162
|
getSurvey(live?: boolean): ISurvey;
|
@@ -6089,9 +6177,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6089
6177
|
/**
|
6090
6178
|
* A11Y properties
|
6091
6179
|
*/
|
6092
|
-
get ariaRequired():
|
6180
|
+
get ariaRequired(): "true" | "false";
|
6093
6181
|
get ariaLabel(): string;
|
6094
|
-
get ariaInvalid():
|
6182
|
+
get ariaInvalid(): "true" | "false";
|
6095
6183
|
get ariaDescribedBy(): string;
|
6096
6184
|
/**
|
6097
6185
|
* Get is question ready to use
|
@@ -6318,6 +6406,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6318
6406
|
*/
|
6319
6407
|
get renderWidth(): string;
|
6320
6408
|
set renderWidth(val: string);
|
6409
|
+
get renderCssRoot(): string;
|
6321
6410
|
/**
|
6322
6411
|
* Set it different from 0 to increase the left padding.
|
6323
6412
|
*/
|
@@ -6384,6 +6473,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6384
6473
|
*/
|
6385
6474
|
get isReadOnly(): boolean;
|
6386
6475
|
get isInputReadOnly(): boolean;
|
6476
|
+
get renderedInputReadOnly(): string;
|
6477
|
+
get renderedInputDisabled(): string;
|
6387
6478
|
protected onReadOnlyChanged(): void;
|
6388
6479
|
/**
|
6389
6480
|
* 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.
|
@@ -6430,6 +6521,10 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6430
6521
|
createValueCopy(): any;
|
6431
6522
|
protected getUnbindValue(value: any): any;
|
6432
6523
|
protected isValueSurveyElement(val: any): boolean;
|
6524
|
+
/**
|
6525
|
+
* Return true if there is a parent (page or panel) and it is visible
|
6526
|
+
*/
|
6527
|
+
get isParentVisible(): boolean;
|
6433
6528
|
clearValueIfInvisible(): void;
|
6434
6529
|
get displayValue(): any;
|
6435
6530
|
/**
|
@@ -6448,6 +6543,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6448
6543
|
set defaultValue(val: any);
|
6449
6544
|
get defaultValueExpression(): any;
|
6450
6545
|
set defaultValueExpression(val: any);
|
6546
|
+
get resizeStyle(): "none" | "both";
|
6451
6547
|
/**
|
6452
6548
|
* Returns question answer data as a plain object: with question title, name, value and displayValue.
|
6453
6549
|
* For complex questions (like matrix, etc.) isNode flag is set to true and data contains array of nested objects (rows)
|
@@ -6760,9 +6856,7 @@ export declare class QuestionSelectBase extends Question {
|
|
6760
6856
|
/**
|
6761
6857
|
* Use this property to set the place holder text for other or comment field .
|
6762
6858
|
*/
|
6763
|
-
|
6764
|
-
set otherPlaceHolder(val: string);
|
6765
|
-
get locOtherPlaceHolder(): LocalizableString;
|
6859
|
+
otherPlaceHolder: string;
|
6766
6860
|
/**
|
6767
6861
|
* The text that shows when the other item is choosed by the other input is empty.
|
6768
6862
|
*/
|
@@ -6851,6 +6945,13 @@ export declare class QuestionSelectBase extends Question {
|
|
6851
6945
|
choicesLoaded(): void;
|
6852
6946
|
getItemValueWrapperComponentName(item: ItemValue): string;
|
6853
6947
|
getItemValueWrapperComponentData(item: ItemValue): any;
|
6948
|
+
ariaItemChecked(item: ItemValue): "true" | "false";
|
6949
|
+
isOtherItem(item: ItemValue): boolean;
|
6950
|
+
get itemSvgIcon(): string;
|
6951
|
+
ariaItemLabel(item: ItemValue): string;
|
6952
|
+
getItemId(item: ItemValue): string;
|
6953
|
+
get questionName(): string;
|
6954
|
+
getItemEnabled(item: ItemValue): any;
|
6854
6955
|
}
|
6855
6956
|
/**
|
6856
6957
|
* A base class for checkbox and radiogroup questions. It introduced a colCount property.
|
@@ -6866,8 +6967,6 @@ export declare class QuestionCheckboxBase extends QuestionSelectBase {
|
|
6866
6967
|
protected onParentChanged(): void;
|
6867
6968
|
protected onParentQuestionChanged(): void;
|
6868
6969
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
6869
|
-
getItemEnabled(item: ItemValue): any;
|
6870
|
-
isOtherItem(item: ItemValue): boolean;
|
6871
6970
|
}
|
6872
6971
|
|
6873
6972
|
/**
|
@@ -6928,6 +7027,7 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
6928
7027
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
6929
7028
|
protected onAfterRunItemsEnableCondition(): void;
|
6930
7029
|
protected getItemClassCore(item: any, options: any): string;
|
7030
|
+
updateValueFromSurvey(newValue: any): void;
|
6931
7031
|
protected setNewValue(newValue: any): void;
|
6932
7032
|
protected getIsMultipleValue(): boolean;
|
6933
7033
|
protected getCommentFromValue(newValue: any): string;
|
@@ -6951,7 +7051,6 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
|
|
6951
7051
|
protected renderedValueFromDataCore(val: any): any;
|
6952
7052
|
protected rendredValueToDataCore(val: any): any;
|
6953
7053
|
get checkBoxSvgPath(): string;
|
6954
|
-
getItemId(item: ItemValue): string;
|
6955
7054
|
}
|
6956
7055
|
|
6957
7056
|
/**
|
@@ -7021,6 +7120,7 @@ export declare class QuestionCommentModel extends QuestionTextBase {
|
|
7021
7120
|
onKeyDown(event: any): void;
|
7022
7121
|
onValueChanged(): void;
|
7023
7122
|
protected setNewValue(newValue: string): any;
|
7123
|
+
get className(): string;
|
7024
7124
|
}
|
7025
7125
|
|
7026
7126
|
/**
|
@@ -7071,6 +7171,7 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
7071
7171
|
get autoComplete(): string;
|
7072
7172
|
set autoComplete(val: string);
|
7073
7173
|
getControlClass(): string;
|
7174
|
+
get readOnlyText(): any;
|
7074
7175
|
}
|
7075
7176
|
|
7076
7177
|
export declare class QuestionFactory {
|
@@ -7278,7 +7379,6 @@ export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
|
|
7278
7379
|
get canShowClearButton(): boolean;
|
7279
7380
|
get clearButtonCaption(): any;
|
7280
7381
|
supportGoNextPageAutomatic(): boolean;
|
7281
|
-
get ariaRole(): string;
|
7282
7382
|
}
|
7283
7383
|
|
7284
7384
|
/**
|
@@ -7383,6 +7483,10 @@ export declare class QuestionExpressionModel extends Question {
|
|
7383
7483
|
set minimumFractionDigits(val: number);
|
7384
7484
|
get runIfReadOnly(): boolean;
|
7385
7485
|
set runIfReadOnly(val: boolean);
|
7486
|
+
get formatedValue(): string;
|
7487
|
+
protected updateFormatedValue(): void;
|
7488
|
+
protected onValueChanged(): void;
|
7489
|
+
updateValueFromSurvey(newValue: any): void;
|
7386
7490
|
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
7387
7491
|
/**
|
7388
7492
|
* 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.
|
@@ -7428,6 +7532,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
7428
7532
|
set size(val: number);
|
7429
7533
|
get isTextInput(): boolean;
|
7430
7534
|
get inputSize(): number;
|
7535
|
+
get renderedInputSize(): number;
|
7431
7536
|
get inputWidth(): string;
|
7432
7537
|
updateInputSize(): void;
|
7433
7538
|
/**
|
@@ -7545,6 +7650,7 @@ export declare class QuestionBooleanModel extends Question {
|
|
7545
7650
|
get labelTrue(): any;
|
7546
7651
|
set labelTrue(val: any);
|
7547
7652
|
get locLabelTrue(): LocalizableString;
|
7653
|
+
get isDeterminated(): boolean;
|
7548
7654
|
/**
|
7549
7655
|
* Set this property, if you want to have a different label for state when check is unset.
|
7550
7656
|
*/
|
@@ -7568,6 +7674,7 @@ export declare class QuestionBooleanModel extends Question {
|
|
7568
7674
|
getItemCss(): string;
|
7569
7675
|
getLabelCss(checked: boolean): string;
|
7570
7676
|
get allowClick(): boolean;
|
7677
|
+
getCheckedLabel(): LocalizableString;
|
7571
7678
|
onLabelClick(event: any, value: boolean): boolean;
|
7572
7679
|
onSwitchClickModel(event: any): boolean;
|
7573
7680
|
}
|
@@ -7625,11 +7732,13 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
|
|
7625
7732
|
*/
|
7626
7733
|
get imageHeight(): string;
|
7627
7734
|
set imageHeight(val: string);
|
7735
|
+
get renderedImageHeight(): string;
|
7628
7736
|
/**
|
7629
7737
|
* The image width.
|
7630
7738
|
*/
|
7631
7739
|
get imageWidth(): string;
|
7632
7740
|
set imageWidth(val: string);
|
7741
|
+
get renderedImageWidth(): string;
|
7633
7742
|
/**
|
7634
7743
|
* The image fit mode.
|
7635
7744
|
*/
|
@@ -7642,6 +7751,7 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
|
|
7642
7751
|
set contentMode(val: string);
|
7643
7752
|
protected convertDefaultValue(val: any): any;
|
7644
7753
|
get hasColumns(): boolean;
|
7754
|
+
get inputType(): "checkbox" | "radio";
|
7645
7755
|
}
|
7646
7756
|
|
7647
7757
|
/**
|
@@ -8419,6 +8529,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
8419
8529
|
* <br/> `sender` - the survey object that fires the event.
|
8420
8530
|
* <br/> `options.text` - an error text.
|
8421
8531
|
* <br/> `options.error` - an instance of the `SurveyError` object.
|
8532
|
+
* <br/> `options.obj` - an instance of Question, Panel or Survey object to where error is located.
|
8422
8533
|
* <br/> `options.name` - the error name. The following error names are available:
|
8423
8534
|
* required, requireoneanswer, requirenumeric, exceedsize, webrequest, webrequestempty, otherempty,
|
8424
8535
|
* uploadingfile, requiredinallrowserror, minrowcounterror, keyduplicationerror, custom
|
@@ -9227,6 +9338,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
9227
9338
|
getProcessedText(text: string): string;
|
9228
9339
|
getLocString(str: string): any;
|
9229
9340
|
getErrorCustomText(text: string, error: SurveyError): string;
|
9341
|
+
getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
|
9230
9342
|
/**
|
9231
9343
|
* Returns the text that is displayed when there are no any visible pages and questiona.
|
9232
9344
|
*/
|
@@ -10294,6 +10406,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
10294
10406
|
getObjects(pages: string[], questions: string[]): any[];
|
10295
10407
|
setTriggerValue(name: string, value: any, isVariable: boolean): void;
|
10296
10408
|
copyTriggerValue(name: string, fromName: string): void;
|
10409
|
+
/**
|
10410
|
+
* Focus question by its name. If needed change the current page on the page where question is located.
|
10411
|
+
* Function returns false if there is no question with this name or question is invisible, otherwise it returns true.
|
10412
|
+
* @param name question name
|
10413
|
+
*/
|
10297
10414
|
focusQuestion(name: string): boolean;
|
10298
10415
|
getElementWrapperComponentName(element: any, reason?: string): string;
|
10299
10416
|
getRowWrapperComponentName(row: QuestionRowModel): string;
|
@@ -10511,7 +10628,6 @@ export declare class TextPreProcessorValue {
|
|
10511
10628
|
}
|
10512
10629
|
export declare class TextPreProcessor {
|
10513
10630
|
onProcess: (textValue: TextPreProcessorValue) => void;
|
10514
|
-
constructor();
|
10515
10631
|
process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
|
10516
10632
|
processValue(name: string, returnDisplayValue: boolean): TextPreProcessorValue;
|
10517
10633
|
get hasAllValuesOnLastRun(): boolean;
|
@@ -10940,6 +11056,7 @@ export declare class ListModel extends ActionContainer {
|
|
10940
11056
|
getItemIndent: (itemValue: any) => string;
|
10941
11057
|
get filteredTextPlaceholder(): any;
|
10942
11058
|
onKeyDown(event: KeyboardEvent): void;
|
11059
|
+
onPointerDown(event: PointerEvent, item: any): void;
|
10943
11060
|
refresh(): void;
|
10944
11061
|
}
|
10945
11062
|
|
@@ -10956,13 +11073,14 @@ export declare class PopupModel<T = any> extends Base {
|
|
10956
11073
|
onShow: () => void;
|
10957
11074
|
cssClass: string;
|
10958
11075
|
title: string;
|
11076
|
+
displayMode: "popup" | "overlay";
|
10959
11077
|
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);
|
10960
11078
|
get isVisible(): boolean;
|
10961
11079
|
set isVisible(value: boolean);
|
10962
11080
|
toggleVisibility(): void;
|
10963
11081
|
onVisibilityChanged: (isVisible: boolean) => void;
|
10964
11082
|
}
|
10965
|
-
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string): PopupBaseViewModel;
|
11083
|
+
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
10966
11084
|
export declare class PopupBaseViewModel extends Base {
|
10967
11085
|
targetElement?: HTMLElement;
|
10968
11086
|
top: string;
|
@@ -10980,6 +11098,8 @@ export declare class PopupBaseViewModel extends Base {
|
|
10980
11098
|
get contentComponentData(): any;
|
10981
11099
|
get showPointer(): boolean;
|
10982
11100
|
get isModal(): boolean;
|
11101
|
+
get showFooter(): boolean;
|
11102
|
+
get isOverlay(): boolean;
|
10983
11103
|
get styleClass(): string;
|
10984
11104
|
onKeyDown(event: any): void;
|
10985
11105
|
updateOnShowing(): void;
|
@@ -11062,9 +11182,13 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
11062
11182
|
protected prevIsEdge: any;
|
11063
11183
|
protected ghostSurveyElement: IElement;
|
11064
11184
|
protected get draggedElementType(): string;
|
11185
|
+
protected isDraggedElementSelected: boolean;
|
11065
11186
|
startDragToolboxItem(event: PointerEvent, draggedElementJson: JsonObject): void;
|
11187
|
+
startDragSurveyElement(event: PointerEvent, draggedElement: any, isElementSelected?: boolean): void;
|
11188
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
|
11189
|
+
protected createDraggedElementIcon(): HTMLElement;
|
11190
|
+
protected getDraggedElementClass(): string;
|
11066
11191
|
protected createElementFromJson(json: object): HTMLElement;
|
11067
|
-
protected getShortcutText(draggedElement: any): string;
|
11068
11192
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode: HTMLElement, event: PointerEvent): any;
|
11069
11193
|
protected isDropTargetValid(dropTarget: SurveyElement): boolean;
|
11070
11194
|
protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
|
@@ -11081,8 +11205,7 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
|
|
11081
11205
|
|
11082
11206
|
export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
11083
11207
|
protected get draggedElementType(): string;
|
11084
|
-
protected
|
11085
|
-
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement): HTMLElement;
|
11208
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement, event: PointerEvent): HTMLElement;
|
11086
11209
|
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
11087
11210
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
11088
11211
|
protected isDropTargetValid(dropTarget: ItemValue): boolean;
|
@@ -11185,7 +11308,6 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
|
|
11185
11308
|
export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynamicModel> {
|
11186
11309
|
protected get draggedElementType(): string;
|
11187
11310
|
protected ghostPositionChanged(): void;
|
11188
|
-
protected getShortcutText(draggedElement: any): string;
|
11189
11311
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: any): MatrixDropdownRowModelBase;
|
11190
11312
|
protected isDropTargetValid(dropTarget: any): boolean;
|
11191
11313
|
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
@@ -11197,12 +11319,14 @@ export declare class DragDropRankingChoices extends DragDropChoices {
|
|
11197
11319
|
protected get draggedElementType(): string;
|
11198
11320
|
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement): HTMLElement;
|
11199
11321
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
11322
|
+
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
11200
11323
|
protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
|
11201
11324
|
protected calculateIsBottom(clientY: number): boolean;
|
11325
|
+
protected doDragOver: () => any;
|
11202
11326
|
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
11203
11327
|
protected ghostPositionChanged(): void;
|
11328
|
+
protected doBanDropHere: () => any;
|
11204
11329
|
protected doDrop: () => any;
|
11205
|
-
protected handleEscapeButton: (event: KeyboardEvent) => void;
|
11206
11330
|
protected doClear: () => void;
|
11207
11331
|
}
|
11208
11332
|
|
@@ -11272,6 +11396,10 @@ export declare class PopupUtils {
|
|
11272
11396
|
height: number;
|
11273
11397
|
top: number;
|
11274
11398
|
};
|
11399
|
+
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition): {
|
11400
|
+
width: number;
|
11401
|
+
left: number;
|
11402
|
+
};
|
11275
11403
|
static updateVerticalPosition(targetRect: ClientRect, height: number, verticalPosition: VerticalPosition, showPointer: boolean, windowHeight: number): VerticalPosition;
|
11276
11404
|
static calculatePopupDirection(verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): string;
|
11277
11405
|
static calculatePointerTarget(targetRect: ClientRect, top: number, left: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): INumberPosition;
|
@@ -11290,13 +11418,15 @@ export declare abstract class DragDropCore<T> extends Base {
|
|
11290
11418
|
protected get dropTargetDataAttributeName(): string;
|
11291
11419
|
protected get survey(): SurveyModel;
|
11292
11420
|
prevDropTarget: any;
|
11293
|
-
protected draggedElementShortcut:
|
11421
|
+
protected draggedElementShortcut: any;
|
11422
|
+
protected allowDropHere: boolean;
|
11294
11423
|
constructor(surveyValue?: ISurvey, creator?: any);
|
11295
11424
|
startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement): void;
|
11296
11425
|
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
11297
11426
|
protected doStartDrag(): void;
|
11298
|
-
protected
|
11299
|
-
protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement): HTMLElement;
|
11427
|
+
protected getShortcutText(draggedElement: IShortcutText): string;
|
11428
|
+
protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
|
11429
|
+
protected getDraggedElementClass(): string;
|
11300
11430
|
protected doDragOver(dropTargetNode?: HTMLElement): void;
|
11301
11431
|
protected afterDragOver(dropTargetNode?: HTMLElement): void;
|
11302
11432
|
getGhostPosition(item: any): string;
|