survey-react 1.9.29 → 1.9.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/defaultV2.css +13 -5
- package/defaultV2.min.css +2 -2
- package/modern.css +7 -3
- package/modern.min.css +2 -2
- package/package.json +3 -3
- package/survey.css +6 -2
- package/survey.min.css +2 -2
- package/survey.react.d.ts +404 -377
- package/survey.react.js +443 -324
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Type definition for Survey JavaScript library for React v1.9.
|
2
|
+
* Type definition for Survey JavaScript library for React v1.9.32
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -31,14 +31,14 @@ export interface ILocalizableString {
|
|
31
31
|
export interface IPropertyDecoratorOptions<T = any> {
|
32
32
|
defaultValue?: T;
|
33
33
|
defaultSource?: string;
|
34
|
-
getDefaultValue?: any;
|
34
|
+
getDefaultValue?: (objectInstance?: any) => T;
|
35
35
|
localizable?: any;
|
36
|
-
onSet?: any;
|
36
|
+
onSet?: (val: T, objectInstance: any) => void;
|
37
37
|
}
|
38
38
|
export interface IArrayPropertyDecoratorOptions {
|
39
39
|
onPush?: any;
|
40
40
|
onRemove?: any;
|
41
|
-
onSet?: any;
|
41
|
+
onSet?: (val: any, target: any) => void;
|
42
42
|
}
|
43
43
|
export interface IObject {
|
44
44
|
}
|
@@ -90,7 +90,7 @@ export interface IExpresionExecutor {
|
|
90
90
|
/*
|
91
91
|
* This call back runs on executing expression if there is at least one async function
|
92
92
|
*/
|
93
|
-
onComplete: any;
|
93
|
+
onComplete: (res: any) => void;
|
94
94
|
}
|
95
95
|
/*
|
96
96
|
* An action item.
|
@@ -125,7 +125,7 @@ export interface IAction {
|
|
125
125
|
/*
|
126
126
|
* A function that is executed when users click the action item.
|
127
127
|
*/
|
128
|
-
action?: any;
|
128
|
+
action?: (context?: any) => void;
|
129
129
|
/*
|
130
130
|
* One or several CSS classes that you want to apply to the outer `<div>` element.
|
131
131
|
* In the markup, an action item is rendered as an `<input>` wrapped in a `<div>`. The `css` property applies classes to the `<div>`.
|
@@ -331,9 +331,9 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
331
331
|
maxTextLength: number;
|
332
332
|
maxOthersLength: number;
|
333
333
|
clearValueOnDisableItems: boolean;
|
334
|
-
uploadFiles(question: IQuestion, name: string, files: any, uploadingCallback: any): any;
|
335
|
-
downloadFile(name: string, content: string, callback: any): any;
|
336
|
-
clearFiles(question: IQuestion, name: string, value: any, fileName: string, clearCallback: any): any;
|
334
|
+
uploadFiles(question: IQuestion, name: string, files: any, uploadingCallback: (status: string, data: any) => any): any;
|
335
|
+
downloadFile(name: string, content: string, callback: (status: string, data: any) => any): any;
|
336
|
+
clearFiles(question: IQuestion, name: string, value: any, fileName: string, clearCallback: (status: string, data: any) => any): any;
|
337
337
|
updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any): Array<any>;
|
338
338
|
loadedChoicesFromServer(question: IQuestion): void;
|
339
339
|
updateQuestionCssClasses(question: IQuestion, cssClasses: any): any;
|
@@ -482,8 +482,8 @@ export interface IFindElement {
|
|
482
482
|
str: LocalizableString;
|
483
483
|
}
|
484
484
|
export interface IExpressionRunnerInfo {
|
485
|
-
onExecute: any;
|
486
|
-
canRun?:
|
485
|
+
onExecute: (obj: Base, res: any) => void;
|
486
|
+
canRun?: (obj: Base) => boolean;
|
487
487
|
runner?: ExpressionRunner;
|
488
488
|
}
|
489
489
|
export interface IValidatorOwner {
|
@@ -514,7 +514,7 @@ export interface SurveyTemplateRendererTemplateData {
|
|
514
514
|
name: string;
|
515
515
|
data: any;
|
516
516
|
nodes?: any;
|
517
|
-
afterRender: any;
|
517
|
+
afterRender: (el: any, context: any) => void;
|
518
518
|
}
|
519
519
|
export interface SurveyTemplateRendererViewModel {
|
520
520
|
componentData: any;
|
@@ -584,8 +584,8 @@ export declare class Base {
|
|
584
584
|
static startCollectDependencies(updater: any, target: Base, property: string): void;
|
585
585
|
static get commentPrefix(): string;
|
586
586
|
static set commentPrefix(val: string);
|
587
|
-
static createItemValue: any;
|
588
|
-
static itemValueLocStrChanged: any;
|
587
|
+
static createItemValue: (item: any, type?: string) => any;
|
588
|
+
static itemValueLocStrChanged: (arr: any) => void;
|
589
589
|
/*
|
590
590
|
* Returns true if a value undefined, null, empty string or empty array.
|
591
591
|
*/
|
@@ -620,9 +620,9 @@ export declare class Base {
|
|
620
620
|
* options.newValue - new value
|
621
621
|
*/
|
622
622
|
onItemValuePropertyChanged: Event<(sender: Base, options: any) => any, any>;
|
623
|
-
getPropertyValueCoreHandler: any;
|
624
|
-
setPropertyValueCoreHandler: any;
|
625
|
-
createArrayCoreHandler: any;
|
623
|
+
getPropertyValueCoreHandler: (propertiesHash: any, name: string) => any;
|
624
|
+
setPropertyValueCoreHandler: (propertiesHash: any, name: string, val: any) => void;
|
625
|
+
createArrayCoreHandler: (propertiesHash: any, name: string) => any;
|
626
626
|
surveyChangedCallback: any;
|
627
627
|
isCreating: boolean;
|
628
628
|
dispose(): void;
|
@@ -654,6 +654,10 @@ export declare class Base {
|
|
654
654
|
* - [*"text"*](https://surveyjs.io/Documentation/Library?id=questiontextmodel)
|
655
655
|
*/
|
656
656
|
getType(): string;
|
657
|
+
/*
|
658
|
+
* Use this method to find out if the current instance is of the given `typeName` or inherited from it.
|
659
|
+
*/
|
660
|
+
isDescendantOf(typeName: string): boolean;
|
657
661
|
getSurvey(isLive?: boolean): ISurvey;
|
658
662
|
/*
|
659
663
|
* Returns true if the question in design mode right now.
|
@@ -708,7 +712,7 @@ export declare class Base {
|
|
708
712
|
geValueFromHash(): any;
|
709
713
|
protected setPropertyValueCore(propertiesHash: any, name: string, val: any): void;
|
710
714
|
get isEditingSurveyElement(): boolean;
|
711
|
-
iteratePropertiesHash(func: any): void;
|
715
|
+
iteratePropertiesHash(func: (hash: any, key: any) => void): void;
|
712
716
|
/*
|
713
717
|
* set property value
|
714
718
|
*/
|
@@ -721,7 +725,7 @@ export declare class Base {
|
|
721
725
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
722
726
|
protected propertyValueChanged(name: string, oldValue: any, newValue: any, arrayChanges?: ArrayChanges, target?: Base): void;
|
723
727
|
protected get isInternal(): boolean;
|
724
|
-
addExpressionProperty(name: string, onExecute: any, canRun?:
|
728
|
+
addExpressionProperty(name: string, onExecute: (obj: Base, res: any) => void, canRun?: (obj: Base) => boolean): void;
|
725
729
|
getDataFilteredValues(): any;
|
726
730
|
getDataFilteredProperties(): any;
|
727
731
|
protected runConditionCore(values: any, properties: any): void;
|
@@ -743,6 +747,9 @@ export declare class Base {
|
|
743
747
|
*/
|
744
748
|
unRegisterFunctionOnPropertiesValueChanged(names: any, key?: string): void;
|
745
749
|
createCustomLocalizableObj(name: string): void;
|
750
|
+
getLocale(): string;
|
751
|
+
getLocalizationString(strName: string): string;
|
752
|
+
getLocalizationFormatString(strName: string, args: any): string;
|
746
753
|
protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean, defaultStr?: string | boolean): LocalizableString;
|
747
754
|
getLocalizableString(name: string): LocalizableString;
|
748
755
|
getLocalizableStringText(name: string, defaultStr?: string): string;
|
@@ -799,9 +806,9 @@ export declare class ButtonGroupItemModel {
|
|
799
806
|
export declare class ComponentCollection {
|
800
807
|
static Instance: ComponentCollection;
|
801
808
|
customQuestionValues: any;
|
802
|
-
onCreateComposite:
|
803
|
-
onCreateCustom:
|
804
|
-
onAddingJson:
|
809
|
+
onCreateComposite: (name: string, questionJSON: ComponentQuestionJSON) => QuestionCompositeModel;
|
810
|
+
onCreateCustom: (name: string, questionJSON: ComponentQuestionJSON) => QuestionCustomModel;
|
811
|
+
onAddingJson: (name: string, isComposite: boolean) => void;
|
805
812
|
add(json: any): void;
|
806
813
|
get items(): any;
|
807
814
|
getCustomQuestionByName(name: string): ComponentQuestionJSON;
|
@@ -915,13 +922,13 @@ export declare class DragOrClickHelper {
|
|
915
922
|
currentY: any;
|
916
923
|
itemModel: any;
|
917
924
|
onPointerDown(pointerDownEvent: any, itemModel?: any): void;
|
918
|
-
onPointerUp: any;
|
919
|
-
tryToStartDrag: any;
|
925
|
+
onPointerUp: (pointerUpEvent: any) => void;
|
926
|
+
tryToStartDrag: (pointerMoveEvent: any) => boolean;
|
920
927
|
}
|
921
928
|
export declare class ElementFactory {
|
922
929
|
static Instance: ElementFactory;
|
923
930
|
creatorHash: any;
|
924
|
-
registerElement(elementType: string, elementCreator:
|
931
|
+
registerElement(elementType: string, elementCreator: (name: string) => IElement): void;
|
925
932
|
clear(): void;
|
926
933
|
unregisterElement(elementType: string, removeFromSerializer?: boolean): void;
|
927
934
|
getAllTypes(): Array<any>;
|
@@ -953,7 +960,7 @@ export declare class FunctionFactory {
|
|
953
960
|
static Instance: FunctionFactory;
|
954
961
|
functionHash: any;
|
955
962
|
isAsyncHash: any;
|
956
|
-
register(name: string, func: any, isAsync?: boolean): void;
|
963
|
+
register(name: string, func: (params: any) => any, isAsync?: boolean): void;
|
957
964
|
unregister(name: string): void;
|
958
965
|
hasFunction(name: string): boolean;
|
959
966
|
isAsyncFunction(name: string): boolean;
|
@@ -1000,7 +1007,7 @@ export declare class JsonMetadata {
|
|
1000
1007
|
classHashProperties: any;
|
1001
1008
|
getObjPropertyValue(obj: any, name: string): any;
|
1002
1009
|
setObjPropertyValue(obj: any, name: string, val: any): void;
|
1003
|
-
addClass(name: string, properties: any, creator?: any, parentName?: string): JsonMetadataClass;
|
1010
|
+
addClass(name: string, properties: any, creator?: (json?: any) => any, parentName?: string): JsonMetadataClass;
|
1004
1011
|
removeClass(name: string): void;
|
1005
1012
|
overrideClassCreatore(name: string, creator: any): void;
|
1006
1013
|
overrideClassCreator(name: string, creator: any): void;
|
@@ -1026,9 +1033,9 @@ export declare class JsonMetadata {
|
|
1026
1033
|
generateSchema(className?: string): any;
|
1027
1034
|
}
|
1028
1035
|
export declare class JsonMetadataClass {
|
1029
|
-
constructor(name: string, properties: any, creator?: any, parentName?: string);
|
1036
|
+
constructor(name: string, properties: any, creator?: (json?: any) => any, parentName?: string);
|
1030
1037
|
name: string;
|
1031
|
-
creator: any;
|
1038
|
+
creator: (json?: any) => any;
|
1032
1039
|
parentName: string;
|
1033
1040
|
static requiredSymbol: string;
|
1034
1041
|
static typeSymbol: string;
|
@@ -1052,7 +1059,7 @@ export declare class JsonObject {
|
|
1052
1059
|
}
|
1053
1060
|
export declare class LogoImage extends React.Component<ILogoImageProps, any> {
|
1054
1061
|
constructor(props: ILogoImageProps);
|
1055
|
-
render():
|
1062
|
+
render(): JSX.Element;
|
1056
1063
|
}
|
1057
1064
|
export declare class MatrixCells {
|
1058
1065
|
constructor(cellsOwner: IMatrixCellsOwner);
|
@@ -1088,7 +1095,7 @@ export declare class MatrixDropdownCell {
|
|
1088
1095
|
runCondition(values: any, properties: any): void;
|
1089
1096
|
}
|
1090
1097
|
export declare class Operand {
|
1091
|
-
toString(func?:
|
1098
|
+
toString(func?: (op: Operand) => string): string;
|
1092
1099
|
getType(): string;
|
1093
1100
|
evaluate(processValue?: ProcessValue): any;
|
1094
1101
|
setVariables(variables: any): any;
|
@@ -1149,7 +1156,7 @@ export declare class QuestionFactory {
|
|
1149
1156
|
static get DefaultRows(): any;
|
1150
1157
|
static get DefaultMutlipleTextItems(): any;
|
1151
1158
|
creatorHash: any;
|
1152
|
-
registerQuestion(questionType: string, questionCreator:
|
1159
|
+
registerQuestion(questionType: string, questionCreator: (name: string) => Question): void;
|
1153
1160
|
unregisterElement(elementType: string): void;
|
1154
1161
|
clear(): void;
|
1155
1162
|
getAllTypes(): Array<any>;
|
@@ -1198,24 +1205,24 @@ export declare class QuestionMatrixDropdownRenderedCell {
|
|
1198
1205
|
export declare class ReactElementFactory {
|
1199
1206
|
static Instance: ReactElementFactory;
|
1200
1207
|
creatorHash: any;
|
1201
|
-
registerElement(elementType: string, elementCreator: any): void;
|
1208
|
+
registerElement(elementType: string, elementCreator: (props: any) => JSX.Element): void;
|
1202
1209
|
getAllTypes(): Array<any>;
|
1203
1210
|
isElementRegistered(elementType: string): boolean;
|
1204
|
-
createElement(elementType: string, params: any):
|
1211
|
+
createElement(elementType: string, params: any): JSX.Element;
|
1205
1212
|
}
|
1206
1213
|
export declare class ReactQuestionFactory {
|
1207
1214
|
static Instance: ReactQuestionFactory;
|
1208
1215
|
creatorHash: any;
|
1209
|
-
registerQuestion(questionType: string, questionCreator:
|
1216
|
+
registerQuestion(questionType: string, questionCreator: (name: string) => JSX.Element): void;
|
1210
1217
|
getAllTypes(): Array<any>;
|
1211
|
-
createQuestion(questionType: string, params: any):
|
1218
|
+
createQuestion(questionType: string, params: any): JSX.Element;
|
1212
1219
|
}
|
1213
1220
|
export declare class ReactSurveyElementsWrapper {
|
1214
|
-
static wrapRow(survey: any, element:
|
1215
|
-
static wrapElement(survey: any, element:
|
1216
|
-
static wrapQuestionContent(survey: any, element:
|
1217
|
-
static wrapItemValue(survey: any, element:
|
1218
|
-
static wrapMatrixCell(survey: any, element:
|
1221
|
+
static wrapRow(survey: any, element: JSX.Element, row: any): JSX.Element;
|
1222
|
+
static wrapElement(survey: any, element: JSX.Element, question: any): JSX.Element;
|
1223
|
+
static wrapQuestionContent(survey: any, element: JSX.Element, question: any): JSX.Element;
|
1224
|
+
static wrapItemValue(survey: any, element: JSX.Element, question: any, item: any): JSX.Element;
|
1225
|
+
static wrapMatrixCell(survey: any, element: JSX.Element, cell: any, reason?: string): JSX.Element;
|
1219
1226
|
}
|
1220
1227
|
export declare class RendererFactory {
|
1221
1228
|
static Instance: RendererFactory;
|
@@ -1235,7 +1242,7 @@ export declare class ResponsivityManager {
|
|
1235
1242
|
separatorAddConst: number;
|
1236
1243
|
paddingSizeConst: number;
|
1237
1244
|
protected recalcMinDimensionConst: boolean;
|
1238
|
-
getComputedStyle: any;
|
1245
|
+
getComputedStyle: (elt: JSX.Element) => any;
|
1239
1246
|
protected getDimensions(element: any): IDimensions;
|
1240
1247
|
protected getAvailableSpace(): number;
|
1241
1248
|
protected calcItemSize(item: any): number;
|
@@ -1244,7 +1251,7 @@ export declare class ResponsivityManager {
|
|
1244
1251
|
export declare class Skeleton extends React.Component<any, any> {
|
1245
1252
|
constructor(props: any);
|
1246
1253
|
constructor(props: any, context: any);
|
1247
|
-
render():
|
1254
|
+
render(): JSX.Element;
|
1248
1255
|
}
|
1249
1256
|
export declare class StylesManager {
|
1250
1257
|
constructor();
|
@@ -1263,11 +1270,11 @@ export declare class StylesManager {
|
|
1263
1270
|
}
|
1264
1271
|
export declare class SurveyActionBarSeparator extends React.Component<any, any> {
|
1265
1272
|
constructor(props: any);
|
1266
|
-
render():
|
1273
|
+
render(): JSX.Element;
|
1267
1274
|
}
|
1268
1275
|
export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
1269
1276
|
constructor(props: any);
|
1270
|
-
static renderLocString(locStr: any, style?: any, key?: string):
|
1277
|
+
static renderLocString(locStr: any, style?: any, key?: string): JSX.Element;
|
1271
1278
|
changedStatePropNameValue: string;
|
1272
1279
|
componentDidMount(): void;
|
1273
1280
|
componentWillUnmount(): void;
|
@@ -1276,24 +1283,24 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
|
1276
1283
|
protected allowComponentUpdate(): void;
|
1277
1284
|
protected denyComponentUpdate(): void;
|
1278
1285
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
1279
|
-
render():
|
1280
|
-
protected wrapElement(element:
|
1286
|
+
render(): JSX.Element;
|
1287
|
+
protected wrapElement(element: JSX.Element): JSX.Element;
|
1281
1288
|
protected get isRendering(): boolean;
|
1282
1289
|
protected getRenderedElements(): Array<Base>;
|
1283
1290
|
protected canRender(): boolean;
|
1284
|
-
protected renderElement():
|
1291
|
+
protected renderElement(): JSX.Element;
|
1285
1292
|
protected get changedStatePropName(): string;
|
1286
1293
|
protected getStateElements(): Array<Base>;
|
1287
1294
|
protected getStateElement(): Base;
|
1288
1295
|
protected get isDisplayMode(): boolean;
|
1289
|
-
protected renderLocString(locStr: any, style?: any):
|
1296
|
+
protected renderLocString(locStr: any, style?: any): JSX.Element;
|
1290
1297
|
protected canUsePropInState(key: string): boolean;
|
1291
1298
|
}
|
1292
1299
|
export declare class SurveyElementHeader extends React.Component<any, any> {
|
1293
1300
|
constructor(props: any);
|
1294
1301
|
constructor(props: any, context: any);
|
1295
|
-
render():
|
1296
|
-
protected renderDescription():
|
1302
|
+
render(): JSX.Element;
|
1303
|
+
protected renderDescription(): JSX.Element;
|
1297
1304
|
}
|
1298
1305
|
export declare class SurveyError {
|
1299
1306
|
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
@@ -1305,27 +1312,29 @@ export declare class SurveyError {
|
|
1305
1312
|
getText(): string;
|
1306
1313
|
getErrorType(): string;
|
1307
1314
|
protected getDefaultText(): string;
|
1315
|
+
protected getLocale(): string;
|
1316
|
+
protected getLocalizationString(locStrName: string): string;
|
1308
1317
|
}
|
1309
1318
|
export declare class SurveyHeader extends React.Component<ISurveyHeaderProps, any> {
|
1310
1319
|
constructor(props: ISurveyHeaderProps);
|
1311
1320
|
componentDidMount(): void;
|
1312
1321
|
componentWillUnmount(): void;
|
1313
|
-
render():
|
1322
|
+
render(): JSX.Element;
|
1314
1323
|
}
|
1315
1324
|
export declare class SurveyLocStringEditor extends React.Component<any, any> {
|
1316
1325
|
constructor(props: any);
|
1317
1326
|
componentDidMount(): void;
|
1318
1327
|
componentWillUnmount(): void;
|
1319
|
-
onInput: any;
|
1320
|
-
onClick: any;
|
1321
|
-
render():
|
1328
|
+
onInput: (event: any) => void;
|
1329
|
+
onClick: (event: any) => void;
|
1330
|
+
render(): JSX.Element;
|
1322
1331
|
}
|
1323
1332
|
export declare class SurveyLocStringViewer extends React.Component<any, any> {
|
1324
1333
|
constructor(props: any);
|
1325
1334
|
componentDidMount(): void;
|
1326
1335
|
componentWillUnmount(): void;
|
1327
1336
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
1328
|
-
render():
|
1337
|
+
render(): JSX.Element;
|
1329
1338
|
}
|
1330
1339
|
export declare class SurveyNavigationBase extends React.Component<any, any> {
|
1331
1340
|
constructor(props: any);
|
@@ -1361,7 +1370,7 @@ export declare class SvgIcon extends React.Component<any, any> {
|
|
1361
1370
|
svgIconRef: any;
|
1362
1371
|
updateSvg(): void;
|
1363
1372
|
componentDidUpdate(): void;
|
1364
|
-
render():
|
1373
|
+
render(): JSX.Element;
|
1365
1374
|
componentDidMount(): void;
|
1366
1375
|
}
|
1367
1376
|
export declare class SvgIconData {
|
@@ -1387,7 +1396,7 @@ export declare class SyntaxError {
|
|
1387
1396
|
}
|
1388
1397
|
export declare class TextPreProcessor {
|
1389
1398
|
_unObservableValues: any;
|
1390
|
-
onProcess:
|
1399
|
+
onProcess: (textValue: TextPreProcessorValue) => void;
|
1391
1400
|
process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
|
1392
1401
|
processValue(name: string, returnDisplayValue: boolean): TextPreProcessorValue;
|
1393
1402
|
get hasAllValuesOnLastRun(): boolean;
|
@@ -1409,23 +1418,23 @@ export declare class TitleActions extends React.Component<any, any> {
|
|
1409
1418
|
constructor(props: any, context: any);
|
1410
1419
|
protected get cssClasses(): any;
|
1411
1420
|
protected get element(): any;
|
1412
|
-
render():
|
1421
|
+
render(): JSX.Element;
|
1413
1422
|
}
|
1414
1423
|
export declare class TitleContent extends React.Component<any, any> {
|
1415
1424
|
constructor(props: any);
|
1416
|
-
render():
|
1425
|
+
render(): JSX.Element;
|
1417
1426
|
protected renderTitleSpans(element: any, cssClasses: any): Array<Element>;
|
1418
1427
|
}
|
1419
1428
|
export declare class TitleElement extends React.Component<any, any> {
|
1420
1429
|
constructor(props: any);
|
1421
|
-
render():
|
1430
|
+
render(): JSX.Element;
|
1422
1431
|
}
|
1423
1432
|
export declare class TooltipManager {
|
1424
1433
|
constructor(tooltipElement: any);
|
1425
1434
|
tooltipElement: any;
|
1426
1435
|
targetElement: any;
|
1427
1436
|
dispose(): void;
|
1428
|
-
onMouseMoveCallback: any;
|
1437
|
+
onMouseMoveCallback: (e: any) => void;
|
1429
1438
|
}
|
1430
1439
|
export declare class ValidatorResult {
|
1431
1440
|
constructor(value: any, error?: SurveyError);
|
@@ -1434,7 +1443,7 @@ export declare class ValidatorResult {
|
|
1434
1443
|
}
|
1435
1444
|
export declare class ValidatorRunner {
|
1436
1445
|
asyncValidators: any;
|
1437
|
-
onAsyncCompleted: any;
|
1446
|
+
onAsyncCompleted: (errors: any) => void;
|
1438
1447
|
run(owner: IValidatorOwner): Array<SurveyError>;
|
1439
1448
|
}
|
1440
1449
|
export declare class XmlParser {
|
@@ -1450,12 +1459,12 @@ export declare class dxSurveyService {
|
|
1450
1459
|
constructor();
|
1451
1460
|
static get serviceUrl(): string;
|
1452
1461
|
static set serviceUrl(val: string);
|
1453
|
-
loadSurvey(surveyId: string, onLoad: any): void;
|
1454
|
-
getSurveyJsonAndIsCompleted(surveyId: string, clientId: string, onLoad: any): void;
|
1455
|
-
sendResult(postId: string, result: any, onSendResult: any, clientId?: string, isPartialCompleted?: boolean): void;
|
1456
|
-
sendFile(postId: string, file: any, onSendFile: any): void;
|
1457
|
-
getResult(resultId: string, name: string, onGetResult: any): void;
|
1458
|
-
isCompleted(resultId: string, clientId: string, onIsCompleted: any): void;
|
1462
|
+
loadSurvey(surveyId: string, onLoad: (success: boolean, result: string, response: any) => void): void;
|
1463
|
+
getSurveyJsonAndIsCompleted(surveyId: string, clientId: string, onLoad: (success: boolean, surveyJson: any, result: string, response: any) => void): void;
|
1464
|
+
sendResult(postId: string, result: any, onSendResult: (success: boolean, response: any, request?: any) => void, clientId?: string, isPartialCompleted?: boolean): void;
|
1465
|
+
sendFile(postId: string, file: any, onSendFile: (success: boolean, response: any) => void): void;
|
1466
|
+
getResult(resultId: string, name: string, onGetResult: (success: boolean, data: any, dataList: any, response: any) => void): void;
|
1467
|
+
isCompleted(resultId: string, clientId: string, onIsCompleted: (success: boolean, result: string, response: any) => void): void;
|
1459
1468
|
}
|
1460
1469
|
export declare class Action extends Base implements IAction {
|
1461
1470
|
constructor(innerItem: IAction);
|
@@ -1469,7 +1478,7 @@ export declare class Action extends Base implements IAction {
|
|
1469
1478
|
tooltip: string;
|
1470
1479
|
enabled: boolean;
|
1471
1480
|
showTitle: boolean;
|
1472
|
-
action: any;
|
1481
|
+
action: (context?: any) => void;
|
1473
1482
|
css: string;
|
1474
1483
|
innerCss: string;
|
1475
1484
|
data: any;
|
@@ -1506,7 +1515,7 @@ export declare class ActionContainer<T extends Action = Action> extends Base {
|
|
1506
1515
|
actions: any;
|
1507
1516
|
cssClassesValue: any;
|
1508
1517
|
protected getRenderedActions(): Array<T>;
|
1509
|
-
updateCallback:
|
1518
|
+
updateCallback: (isResetInitialized: boolean) => void;
|
1510
1519
|
containerCss: string;
|
1511
1520
|
protected raiseUpdate(isResetInitialized: boolean): void;
|
1512
1521
|
protected onSet(): void;
|
@@ -1533,7 +1542,7 @@ export declare class ArrayOperand extends Operand {
|
|
1533
1542
|
constructor(values: any);
|
1534
1543
|
values: any;
|
1535
1544
|
getType(): string;
|
1536
|
-
toString(func?:
|
1545
|
+
toString(func?: (op: Operand) => string): string;
|
1537
1546
|
evaluate(processValue?: ProcessValue): Array<any>;
|
1538
1547
|
setVariables(variables: any): void;
|
1539
1548
|
hasFunction(): boolean;
|
@@ -1554,7 +1563,7 @@ export declare class BinaryOperand extends Operand {
|
|
1554
1563
|
get rightOperand(): any;
|
1555
1564
|
protected isContentEqual(op: Operand): boolean;
|
1556
1565
|
evaluate(processValue?: ProcessValue): any;
|
1557
|
-
toString(func?:
|
1566
|
+
toString(func?: (op: Operand) => string): string;
|
1558
1567
|
setVariables(variables: any): void;
|
1559
1568
|
hasFunction(): boolean;
|
1560
1569
|
hasAsyncFunction(): boolean;
|
@@ -1614,20 +1623,20 @@ export declare class ChoicesRestful extends Base {
|
|
1614
1623
|
static clearCache(): void;
|
1615
1624
|
static itemsResult: any;
|
1616
1625
|
static sendingSameRequests: any;
|
1617
|
-
static onBeforeSendRequest: any;
|
1626
|
+
static onBeforeSendRequest: (sender: ChoicesRestful, options: any) => void;
|
1618
1627
|
lastObjHash: string;
|
1619
1628
|
isRunningValue: boolean;
|
1620
1629
|
protected processedUrl: string;
|
1621
1630
|
protected processedPath: string;
|
1622
1631
|
isUsingCacheFromUrl: boolean;
|
1623
|
-
onProcessedUrlCallback:
|
1624
|
-
getResultCallback: any;
|
1632
|
+
onProcessedUrlCallback: (url: string, path: string) => void;
|
1633
|
+
getResultCallback: (items: any) => void;
|
1625
1634
|
beforeSendRequestCallback: any;
|
1626
|
-
updateResultCallback: any;
|
1627
|
-
getItemValueCallback: any;
|
1635
|
+
updateResultCallback: (items: any, serverResult: any) => any;
|
1636
|
+
getItemValueCallback: (item: any) => any;
|
1628
1637
|
error: SurveyError;
|
1629
1638
|
owner: IQuestion;
|
1630
|
-
createItemValue: any;
|
1639
|
+
createItemValue: (value: any) => ItemValue;
|
1631
1640
|
getSurvey(live?: boolean): ISurvey;
|
1632
1641
|
run(textProcessor?: ITextProcessor): void;
|
1633
1642
|
get isUsingCache(): boolean;
|
@@ -1681,14 +1690,14 @@ export declare class ChoicesRestful extends Base {
|
|
1681
1690
|
}
|
1682
1691
|
export declare class ConditionRunner extends ExpressionRunnerBase {
|
1683
1692
|
constructor(expression: string);
|
1684
|
-
onRunComplete:
|
1693
|
+
onRunComplete: (result: boolean) => void;
|
1685
1694
|
run(values: any, properties?: any): boolean;
|
1686
1695
|
protected doOnComplete(res: any): void;
|
1687
1696
|
}
|
1688
1697
|
export declare class Const extends Operand {
|
1689
1698
|
constructor(value: any);
|
1690
1699
|
getType(): string;
|
1691
|
-
toString(func?:
|
1700
|
+
toString(func?: (op: Operand) => string): string;
|
1692
1701
|
get correctValue(): any;
|
1693
1702
|
evaluate(): any;
|
1694
1703
|
setVariables(variables: any): void;
|
@@ -1725,10 +1734,10 @@ export declare class DragDropCore<T> extends Base {
|
|
1725
1734
|
currentX: number;
|
1726
1735
|
currentY: number;
|
1727
1736
|
savedTargetNode: any;
|
1728
|
-
stopLongTapIfMoveEnough: any;
|
1729
|
-
stopLongTap: any;
|
1730
|
-
onContextMenu: any;
|
1731
|
-
dragOver: any;
|
1737
|
+
stopLongTapIfMoveEnough: (pointerMoveEvent: any) => void;
|
1738
|
+
stopLongTap: (e?: any) => void;
|
1739
|
+
onContextMenu: (event: any) => void;
|
1740
|
+
dragOver: (event: any) => void;
|
1732
1741
|
drop: any;
|
1733
1742
|
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
1734
1743
|
protected onStartDrag(): void;
|
@@ -1739,8 +1748,8 @@ export declare class DragDropCore<T> extends Base {
|
|
1739
1748
|
protected afterDragOver(dropTargetNode?: any): void;
|
1740
1749
|
getGhostPosition(item: any): string;
|
1741
1750
|
protected isDropTargetValid(dropTarget: any, dropTargetNode?: any): boolean;
|
1742
|
-
handlePointerCancel: any;
|
1743
|
-
protected handleEscapeButton: any;
|
1751
|
+
handlePointerCancel: (event: any) => void;
|
1752
|
+
protected handleEscapeButton: (event: any) => void;
|
1744
1753
|
protected banDropHere: any;
|
1745
1754
|
protected doBanDropHere: any;
|
1746
1755
|
protected getDataAttributeValueByNode(node: any): any;
|
@@ -1762,8 +1771,8 @@ export declare class ExceedSizeError extends SurveyError {
|
|
1762
1771
|
}
|
1763
1772
|
export declare class ExpressionExecutor implements IExpresionExecutor {
|
1764
1773
|
constructor(expression: string);
|
1765
|
-
static createExpressionExecutor:
|
1766
|
-
onComplete: any;
|
1774
|
+
static createExpressionExecutor: (expression: string) => IExpresionExecutor;
|
1775
|
+
onComplete: (res: any) => void;
|
1767
1776
|
expressionValue: string;
|
1768
1777
|
operand: Operand;
|
1769
1778
|
processValue: ProcessValue;
|
@@ -1801,7 +1810,7 @@ export declare class ExpressionItem extends Base implements ILocalizableOwner {
|
|
1801
1810
|
}
|
1802
1811
|
export declare class ExpressionRunner extends ExpressionRunnerBase {
|
1803
1812
|
constructor(expression: string);
|
1804
|
-
onRunComplete: any;
|
1813
|
+
onRunComplete: (result: any) => void;
|
1805
1814
|
run(values: any, properties?: any): any;
|
1806
1815
|
protected doOnComplete(res: any): void;
|
1807
1816
|
}
|
@@ -1813,7 +1822,7 @@ export declare class FunctionOperand extends Operand {
|
|
1813
1822
|
getType(): string;
|
1814
1823
|
evaluateAsync(processValue: ProcessValue): void;
|
1815
1824
|
evaluate(processValue?: ProcessValue): any;
|
1816
|
-
toString(func?:
|
1825
|
+
toString(func?: (op: Operand) => string): string;
|
1817
1826
|
setVariables(variables: any): void;
|
1818
1827
|
get isReady(): boolean;
|
1819
1828
|
hasFunction(): boolean;
|
@@ -1844,8 +1853,8 @@ export declare class ItemValue extends Base implements ILocalizableOwner, IShort
|
|
1844
1853
|
static getItemByValue(items: any, val: any): ItemValue;
|
1845
1854
|
static getTextOrHtmlByValue(items: any, val: any): string;
|
1846
1855
|
static locStrsChanged(items: any): void;
|
1847
|
-
static runConditionsForItems(items: any, filteredItems: any, runner: ConditionRunner, values: any, properties: any, useItemExpression?: boolean, onItemCallBack?:
|
1848
|
-
static runEnabledConditionsForItems(items: any, runner: ConditionRunner, values: any, properties: any, onItemCallBack?:
|
1856
|
+
static runConditionsForItems(items: any, filteredItems: any, runner: ConditionRunner, values: any, properties: any, useItemExpression?: boolean, onItemCallBack?: (item: ItemValue, val: boolean) => boolean): boolean;
|
1857
|
+
static runEnabledConditionsForItems(items: any, runner: ConditionRunner, values: any, properties: any, onItemCallBack?: (item: ItemValue, val: boolean) => boolean): boolean;
|
1849
1858
|
ownerPropertyName: string;
|
1850
1859
|
locTextValue: LocalizableString;
|
1851
1860
|
isVisibleValue: boolean;
|
@@ -1898,7 +1907,7 @@ export declare class JsonMissingTypeErrorBase extends JsonError {
|
|
1898
1907
|
export declare class JsonObjectProperty implements IObject {
|
1899
1908
|
constructor(classInfo: JsonMetadataClass, name: string, isRequired?: boolean);
|
1900
1909
|
name: string;
|
1901
|
-
static getItemValuesDefaultValue: any;
|
1910
|
+
static getItemValuesDefaultValue: (val: any, type: string) => any;
|
1902
1911
|
static Index: number;
|
1903
1912
|
static mergableValues: any;
|
1904
1913
|
idValue: number;
|
@@ -1911,7 +1920,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
1911
1920
|
readOnlyValue: boolean;
|
1912
1921
|
visibleValue: boolean;
|
1913
1922
|
isLocalizableValue: boolean;
|
1914
|
-
choicesfunc: any;
|
1923
|
+
choicesfunc: (obj: any, choicesCallback: any) => any;
|
1915
1924
|
dependedProperties: any;
|
1916
1925
|
isSerializable: boolean;
|
1917
1926
|
isLightSerializable: boolean;
|
@@ -1935,11 +1944,11 @@ export declare class JsonObjectProperty implements IObject {
|
|
1935
1944
|
minValue: any;
|
1936
1945
|
dataListValue: any;
|
1937
1946
|
layout: string;
|
1938
|
-
onGetValue: any;
|
1939
|
-
onSetValue: any;
|
1940
|
-
visibleIf: any;
|
1941
|
-
onExecuteExpression: any;
|
1942
|
-
onPropertyEditorUpdate: any;
|
1947
|
+
onGetValue: (obj: any) => any;
|
1948
|
+
onSetValue: (obj: any, value: any, jsonConv: JsonObject) => any;
|
1949
|
+
visibleIf: (obj: any) => boolean;
|
1950
|
+
onExecuteExpression: (obj: any, res: any) => any;
|
1951
|
+
onPropertyEditorUpdate: (obj: any, propEditor: any) => any;
|
1943
1952
|
get id(): number;
|
1944
1953
|
get classInfo(): JsonMetadataClass;
|
1945
1954
|
get type(): string;
|
@@ -1965,7 +1974,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
1965
1974
|
get choices(): any;
|
1966
1975
|
get hasChoices(): boolean;
|
1967
1976
|
getChoices(obj: any, choicesCallback?: any): Array<any>;
|
1968
|
-
setChoices(value: any, valueFunc?: any): void;
|
1977
|
+
setChoices(value: any, valueFunc?: (obj: any) => any): void;
|
1969
1978
|
getBaseValue(): string;
|
1970
1979
|
setBaseValue(val: any): void;
|
1971
1980
|
get readOnly(): boolean;
|
@@ -2001,19 +2010,19 @@ export declare class KeyDuplicationError extends SurveyError {
|
|
2001
2010
|
export declare class List extends SurveyElementBase<IListProps, any> {
|
2002
2011
|
constructor(props: any);
|
2003
2012
|
get model(): any;
|
2004
|
-
handleKeydown: any;
|
2013
|
+
handleKeydown: (event: any) => void;
|
2005
2014
|
getStateElement(): any;
|
2006
|
-
renderElement():
|
2015
|
+
renderElement(): JSX.Element;
|
2007
2016
|
renderItems(): any;
|
2008
|
-
searchElementContent():
|
2017
|
+
searchElementContent(): JSX.Element;
|
2009
2018
|
}
|
2010
2019
|
export declare class ListItem extends SurveyElementBase<IListItemProps, any> {
|
2011
2020
|
constructor(props: any);
|
2012
2021
|
get model(): any;
|
2013
2022
|
get item(): any;
|
2014
|
-
handleKeydown: any;
|
2023
|
+
handleKeydown: (event: any) => void;
|
2015
2024
|
getStateElement(): any;
|
2016
|
-
render():
|
2025
|
+
render(): JSX.Element;
|
2017
2026
|
}
|
2018
2027
|
/*
|
2019
2028
|
* The class represents the string that supports multi-languages and markdown.
|
@@ -2034,10 +2043,10 @@ export declare class LocalizableString implements ILocalizableString {
|
|
2034
2043
|
renderedText: string;
|
2035
2044
|
calculatedTextValue: string;
|
2036
2045
|
localizationName: string;
|
2037
|
-
onGetTextCallback:
|
2046
|
+
onGetTextCallback: (str: string) => string;
|
2038
2047
|
onGetDefaultTextCallback: any;
|
2039
|
-
onGetLocalizationTextCallback:
|
2040
|
-
onStrChanged:
|
2048
|
+
onGetLocalizationTextCallback: (str: string) => string;
|
2049
|
+
onStrChanged: (oldValue: string, newValue: string) => void;
|
2041
2050
|
onSearchChanged: any;
|
2042
2051
|
sharedData: LocalizableString;
|
2043
2052
|
searchText: string;
|
@@ -2076,7 +2085,7 @@ export declare class LocalizableStrings implements ILocalizableString {
|
|
2076
2085
|
constructor(owner: ILocalizableOwner);
|
2077
2086
|
owner: ILocalizableOwner;
|
2078
2087
|
values: any;
|
2079
|
-
onValueChanged: any;
|
2088
|
+
onValueChanged: (oldValue: any, newValue: any) => void;
|
2080
2089
|
getIsMultiple(): boolean;
|
2081
2090
|
get locale(): string;
|
2082
2091
|
get value(): any;
|
@@ -2160,6 +2169,9 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
2160
2169
|
get totalFormat(): string;
|
2161
2170
|
set totalFormat(val: string);
|
2162
2171
|
get locTotalFormat(): LocalizableString;
|
2172
|
+
get cellHint(): string;
|
2173
|
+
set cellHint(val: string);
|
2174
|
+
get locCellHint(): LocalizableString;
|
2163
2175
|
get renderAs(): string;
|
2164
2176
|
set renderAs(val: string);
|
2165
2177
|
get totalMaximumFractionDigits(): number;
|
@@ -2182,13 +2194,13 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
2182
2194
|
getRendererContext(locStr: LocalizableString): any;
|
2183
2195
|
getProcessedText(text: string): string;
|
2184
2196
|
createCellQuestion(row: MatrixDropdownRowModelBase): Question;
|
2185
|
-
updateCellQuestion(cellQuestion: Question, data: any, onUpdateJson?: any): void;
|
2197
|
+
updateCellQuestion(cellQuestion: Question, data: any, onUpdateJson?: (json: any) => any): void;
|
2186
2198
|
defaultCellTypeChanged(): void;
|
2187
2199
|
protected calcCellQuestionType(row: MatrixDropdownRowModelBase): string;
|
2188
2200
|
protected updateTemplateQuestion(newCellType?: string): void;
|
2189
2201
|
protected createNewQuestion(cellType: string): Question;
|
2190
2202
|
previousChoicesId: string;
|
2191
|
-
protected setQuestionProperties(question: Question, onUpdateJson?: any): void;
|
2203
|
+
protected setQuestionProperties(question: Question, onUpdateJson?: (json: any) => any): void;
|
2192
2204
|
protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
2193
2205
|
}
|
2194
2206
|
export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyImpl, ILocalizableOwner {
|
@@ -2261,7 +2273,7 @@ export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyI
|
|
2261
2273
|
getTextProcessor(): ITextProcessor;
|
2262
2274
|
get rowIndex(): number;
|
2263
2275
|
get editingObj(): Base;
|
2264
|
-
onEditingObjPropertyChanged: any;
|
2276
|
+
onEditingObjPropertyChanged: (sender: Base, options: any) => void;
|
2265
2277
|
editingObjValue: Base;
|
2266
2278
|
dispose(): void;
|
2267
2279
|
}
|
@@ -2280,8 +2292,8 @@ export declare class MatrixRow extends SurveyElementBase<IMAtrixRowProps, any> {
|
|
2280
2292
|
get model(): any;
|
2281
2293
|
get parentMatrix(): any;
|
2282
2294
|
protected getStateElement(): any;
|
2283
|
-
protected onPointerDownHandler: any;
|
2284
|
-
render():
|
2295
|
+
protected onPointerDownHandler: (event: any) => void;
|
2296
|
+
render(): JSX.Element;
|
2285
2297
|
}
|
2286
2298
|
export declare class MatrixRowModel extends Base {
|
2287
2299
|
constructor(item: ItemValue, fullName: string, data: IMatrixData, value: any);
|
@@ -2306,7 +2318,7 @@ export declare class MultipleTextItemModel extends Base implements IValidatorOwn
|
|
2306
2318
|
constructor(name?: any, title?: string);
|
2307
2319
|
editorValue: QuestionTextModel;
|
2308
2320
|
data: IMultipleTextData;
|
2309
|
-
valueChangedCallback: any;
|
2321
|
+
valueChangedCallback: (newValue: any) => void;
|
2310
2322
|
getType(): string;
|
2311
2323
|
get id(): string;
|
2312
2324
|
getOriginalObj(): Base;
|
@@ -2417,7 +2429,7 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
|
|
2417
2429
|
componentDidMount(): void;
|
2418
2430
|
componentWillUnmount(): void;
|
2419
2431
|
shouldComponentUpdate(nextProps: IPopupProps, nextState: any): boolean;
|
2420
|
-
render():
|
2432
|
+
render(): JSX.Element;
|
2421
2433
|
}
|
2422
2434
|
export declare class PopupBaseViewModel extends Base {
|
2423
2435
|
constructor(model: any, targetElement?: any);
|
@@ -2449,8 +2461,8 @@ export declare class PopupBaseViewModel extends Base {
|
|
2449
2461
|
clickOutside(): void;
|
2450
2462
|
cancel(): void;
|
2451
2463
|
apply(): void;
|
2452
|
-
get cancelButtonText():
|
2453
|
-
get applyButtonText():
|
2464
|
+
get cancelButtonText(): string;
|
2465
|
+
get applyButtonText(): string;
|
2454
2466
|
dispose(): void;
|
2455
2467
|
initializePopupContainer(): void;
|
2456
2468
|
unmountPopupContainer(): void;
|
@@ -2458,19 +2470,19 @@ export declare class PopupBaseViewModel extends Base {
|
|
2458
2470
|
export declare class PopupContainer extends SurveyElementBase<any, any> {
|
2459
2471
|
constructor(props: any);
|
2460
2472
|
prevIsVisible: boolean;
|
2461
|
-
handleKeydown: any;
|
2473
|
+
handleKeydown: (event: any) => void;
|
2462
2474
|
get model(): any;
|
2463
2475
|
protected getStateElement(): any;
|
2464
|
-
clickInside: any;
|
2476
|
+
clickInside: (ev: any) => void;
|
2465
2477
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2466
|
-
renderContainer():
|
2467
|
-
renderPointer():
|
2468
|
-
renderHeader():
|
2469
|
-
renderContent():
|
2470
|
-
renderCancelButton():
|
2471
|
-
renderApplyButton():
|
2472
|
-
renderFooter():
|
2473
|
-
render():
|
2478
|
+
renderContainer(): JSX.Element;
|
2479
|
+
renderPointer(): JSX.Element;
|
2480
|
+
renderHeader(): JSX.Element;
|
2481
|
+
renderContent(): JSX.Element;
|
2482
|
+
renderCancelButton(): JSX.Element;
|
2483
|
+
renderApplyButton(): JSX.Element;
|
2484
|
+
renderFooter(): JSX.Element;
|
2485
|
+
render(): JSX.Element;
|
2474
2486
|
}
|
2475
2487
|
export declare class PopupModel<T = any> extends Base {
|
2476
2488
|
constructor(contentComponentName: string, contentComponentData: T, verticalPosition?: any, horizontalPosition?: any, showPointer?: boolean, isModal?: boolean, onCancel?: any, onApply?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string);
|
@@ -2489,10 +2501,10 @@ export declare class PopupModel<T = any> extends Base {
|
|
2489
2501
|
title: string;
|
2490
2502
|
displayMode: "popup" | "overlay";
|
2491
2503
|
widthMode: "contentWidth" | "fixedWidth";
|
2504
|
+
onVisibilityChanged: EventBase<PopupModel<any>>;
|
2492
2505
|
get isVisible(): boolean;
|
2493
2506
|
set isVisible(val: boolean);
|
2494
2507
|
toggleVisibility(): void;
|
2495
|
-
onVisibilityChanged: any;
|
2496
2508
|
}
|
2497
2509
|
export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
2498
2510
|
constructor(cssClasses: any, isDetailRow?: boolean);
|
@@ -2577,7 +2589,7 @@ export declare class QuestionRowModel extends Base {
|
|
2577
2589
|
static rowCounter: number;
|
2578
2590
|
protected _scrollableParent: any;
|
2579
2591
|
protected _updateVisibility: any;
|
2580
|
-
startLazyRendering(rowContainerDiv: any, findScrollableContainer?: any): void;
|
2592
|
+
startLazyRendering(rowContainerDiv: any, findScrollableContainer?: (element: any) => any): void;
|
2581
2593
|
ensureVisibility(): void;
|
2582
2594
|
stopLazyRendering(): void;
|
2583
2595
|
idValue: string;
|
@@ -2647,25 +2659,25 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
|
|
2647
2659
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2648
2660
|
componentDidMount(): void;
|
2649
2661
|
componentWillUnmount(): void;
|
2650
|
-
doRender():
|
2651
|
-
protected renderElement():
|
2662
|
+
doRender(): JSX.Element;
|
2663
|
+
protected renderElement(): JSX.Element;
|
2652
2664
|
get css(): any;
|
2653
2665
|
set css(val: any);
|
2654
2666
|
handleTryAgainClick(event: any): void;
|
2655
|
-
protected renderCompleted():
|
2656
|
-
protected renderCompletedBefore():
|
2657
|
-
protected renderLoading():
|
2658
|
-
protected renderSurvey():
|
2659
|
-
protected renderTimerPanel(location: string):
|
2660
|
-
protected renderPage(page: any):
|
2661
|
-
protected renderProgress(isTop: boolean):
|
2662
|
-
protected renderNavigation(navPosition: string):
|
2663
|
-
protected renderEmptySurvey():
|
2667
|
+
protected renderCompleted(): JSX.Element;
|
2668
|
+
protected renderCompletedBefore(): JSX.Element;
|
2669
|
+
protected renderLoading(): JSX.Element;
|
2670
|
+
protected renderSurvey(): JSX.Element;
|
2671
|
+
protected renderTimerPanel(location: string): JSX.Element;
|
2672
|
+
protected renderPage(page: any): JSX.Element;
|
2673
|
+
protected renderProgress(isTop: boolean): JSX.Element;
|
2674
|
+
protected renderNavigation(navPosition: string): JSX.Element;
|
2675
|
+
protected renderEmptySurvey(): JSX.Element;
|
2664
2676
|
protected createSurvey(newProps: any): void;
|
2665
2677
|
protected updateSurvey(newProps: any, oldProps?: any): void;
|
2666
2678
|
protected setSurveyEvents(): void;
|
2667
|
-
createQuestionElement(question: any):
|
2668
|
-
renderError(key: string, error: any, cssClasses: any):
|
2679
|
+
createQuestionElement(question: any): JSX.Element;
|
2680
|
+
renderError(key: string, error: any, cssClasses: any): JSX.Element;
|
2669
2681
|
questionTitleLocation(): string;
|
2670
2682
|
questionErrorLocation(): string;
|
2671
2683
|
}
|
@@ -2673,7 +2685,7 @@ export declare class SurveyAction extends SurveyElementBase<IActionBarItemProps,
|
|
2673
2685
|
constructor(props: any);
|
2674
2686
|
get item(): any;
|
2675
2687
|
protected getStateElement(): Base;
|
2676
|
-
renderElement():
|
2688
|
+
renderElement(): JSX.Element;
|
2677
2689
|
}
|
2678
2690
|
export declare class SurveyActionBar extends SurveyElementBase<IActionBarProps, any> {
|
2679
2691
|
constructor(props: IActionBarProps);
|
@@ -2689,10 +2701,10 @@ export declare class SurveyActionBarItem extends SurveyElementBase<IActionBarIte
|
|
2689
2701
|
constructor(props: any);
|
2690
2702
|
get item(): any;
|
2691
2703
|
protected getStateElement(): Base;
|
2692
|
-
renderElement():
|
2693
|
-
renderText():
|
2694
|
-
renderButtonContent():
|
2695
|
-
renderInnerButton():
|
2704
|
+
renderElement(): JSX.Element;
|
2705
|
+
renderText(): JSX.Element;
|
2706
|
+
renderButtonContent(): JSX.Element;
|
2707
|
+
renderInnerButton(): JSX.Element;
|
2696
2708
|
}
|
2697
2709
|
export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
|
2698
2710
|
constructor(props: any);
|
@@ -2701,10 +2713,10 @@ export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
|
|
2701
2713
|
get question(): any;
|
2702
2714
|
get item(): any;
|
2703
2715
|
getStateElement(): any;
|
2704
|
-
render():
|
2705
|
-
protected renderIcon():
|
2706
|
-
protected renderInput():
|
2707
|
-
protected renderCaption():
|
2716
|
+
render(): JSX.Element;
|
2717
|
+
protected renderIcon(): JSX.Element;
|
2718
|
+
protected renderInput(): JSX.Element;
|
2719
|
+
protected renderCaption(): JSX.Element;
|
2708
2720
|
}
|
2709
2721
|
/*
|
2710
2722
|
* Base class of SurveyJS Elements and Survey.
|
@@ -2767,35 +2779,35 @@ export declare class SurveyPanelBase extends SurveyElementBase<any, any> {
|
|
2767
2779
|
protected canRender(): boolean;
|
2768
2780
|
renderedRowsCache: any;
|
2769
2781
|
protected renderRows(css: any): Array<Element>;
|
2770
|
-
protected createRow(row: any, css: any):
|
2782
|
+
protected createRow(row: any, css: any): JSX.Element;
|
2771
2783
|
}
|
2772
2784
|
export declare class SurveyProgress extends SurveyNavigationBase {
|
2773
2785
|
constructor(props: any);
|
2774
2786
|
protected get isTop(): boolean;
|
2775
2787
|
protected get progress(): number;
|
2776
2788
|
protected get progressText(): string;
|
2777
|
-
render():
|
2789
|
+
render(): JSX.Element;
|
2778
2790
|
}
|
2779
2791
|
export declare class SurveyProgressButtons extends SurveyNavigationBase {
|
2780
2792
|
constructor(props: any);
|
2781
2793
|
progressButtonsModel: any;
|
2782
2794
|
updateScroller: any;
|
2783
2795
|
listContainerRef: any;
|
2784
|
-
render():
|
2796
|
+
render(): JSX.Element;
|
2785
2797
|
protected getListElements(): Array<Element>;
|
2786
|
-
protected renderListElement(page: any, index: number):
|
2798
|
+
protected renderListElement(page: any, index: number): JSX.Element;
|
2787
2799
|
protected isListElementClickable(index: number): boolean;
|
2788
2800
|
protected getListElementCss(index: number): string;
|
2789
2801
|
protected clickListElement(index: number): void;
|
2790
2802
|
protected getScrollButtonCss(isLeftScroll: boolean): string;
|
2791
|
-
protected clickScrollButton(listContainerElement:
|
2803
|
+
protected clickScrollButton(listContainerElement: JSX.Element, isLeftScroll: boolean): void;
|
2792
2804
|
componentDidMount(): void;
|
2793
2805
|
componentWillUnmount(): void;
|
2794
2806
|
}
|
2795
2807
|
export declare class SurveyQuestion extends SurveyElementBase<any, any> {
|
2796
2808
|
constructor(props: any);
|
2797
2809
|
isNeedFocus: boolean;
|
2798
|
-
static renderQuestionBody(creator: ISurveyCreator, question: any):
|
2810
|
+
static renderQuestionBody(creator: ISurveyCreator, question: any): JSX.Element;
|
2799
2811
|
rootRef: any;
|
2800
2812
|
protected getStateElement(): Base;
|
2801
2813
|
protected get question(): any;
|
@@ -2803,15 +2815,15 @@ export declare class SurveyQuestion extends SurveyElementBase<any, any> {
|
|
2803
2815
|
componentWillUnmount(): void;
|
2804
2816
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2805
2817
|
protected canRender(): boolean;
|
2806
|
-
protected renderQuestionContent():
|
2807
|
-
protected renderElement():
|
2808
|
-
protected wrapElement(element:
|
2809
|
-
protected wrapQuestionContent(element:
|
2810
|
-
protected renderQuestion():
|
2811
|
-
protected renderDescription():
|
2812
|
-
protected renderComment(cssClasses: any):
|
2813
|
-
protected renderHeader(question: any):
|
2814
|
-
protected renderErrors(cssClasses: any, location: string):
|
2818
|
+
protected renderQuestionContent(): JSX.Element;
|
2819
|
+
protected renderElement(): JSX.Element;
|
2820
|
+
protected wrapElement(element: JSX.Element): JSX.Element;
|
2821
|
+
protected wrapQuestionContent(element: JSX.Element): JSX.Element;
|
2822
|
+
protected renderQuestion(): JSX.Element;
|
2823
|
+
protected renderDescription(): JSX.Element;
|
2824
|
+
protected renderComment(cssClasses: any): JSX.Element;
|
2825
|
+
protected renderHeader(question: any): JSX.Element;
|
2826
|
+
protected renderErrors(cssClasses: any, location: string): JSX.Element;
|
2815
2827
|
}
|
2816
2828
|
export declare class SurveyQuestionElementBase extends SurveyElementBase<any, any> {
|
2817
2829
|
constructor(props: any);
|
@@ -2826,7 +2838,7 @@ export declare class SurveyQuestionElementBase extends SurveyElementBase<any, an
|
|
2826
2838
|
protected canRender(): boolean;
|
2827
2839
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
2828
2840
|
protected get isDisplayMode(): boolean;
|
2829
|
-
protected wrapCell(cell: any, element:
|
2841
|
+
protected wrapCell(cell: any, element: JSX.Element, reason: string): JSX.Element;
|
2830
2842
|
}
|
2831
2843
|
export declare class SurveyRow extends SurveyElementBase<any, any> {
|
2832
2844
|
constructor(props: any);
|
@@ -2834,16 +2846,16 @@ export declare class SurveyRow extends SurveyElementBase<any, any> {
|
|
2834
2846
|
protected getStateElement(): Base;
|
2835
2847
|
protected get css(): any;
|
2836
2848
|
protected canRender(): boolean;
|
2837
|
-
protected renderElementContent():
|
2838
|
-
protected renderElement():
|
2849
|
+
protected renderElementContent(): JSX.Element;
|
2850
|
+
protected renderElement(): JSX.Element;
|
2839
2851
|
componentDidMount(): void;
|
2840
2852
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
2841
2853
|
componentWillUnmount(): void;
|
2842
|
-
protected createElement(element: any, elementIndex?: number):
|
2854
|
+
protected createElement(element: any, elementIndex?: number): JSX.Element;
|
2843
2855
|
}
|
2844
2856
|
export declare class SurveyTimerModel extends Base {
|
2845
2857
|
constructor(survey: ISurvey);
|
2846
|
-
onTimer:
|
2858
|
+
onTimer: (page: PageModel) => void;
|
2847
2859
|
surveyValue: ISurvey;
|
2848
2860
|
text: string;
|
2849
2861
|
spent: number;
|
@@ -2860,7 +2872,7 @@ export declare class SurveyTimerModel extends Base {
|
|
2860
2872
|
export declare class SurveyValidator extends Base {
|
2861
2873
|
constructor();
|
2862
2874
|
errorOwner: ISurveyErrorOwner;
|
2863
|
-
onAsyncCompleted:
|
2875
|
+
onAsyncCompleted: (result: ValidatorResult) => void;
|
2864
2876
|
getSurvey(live?: boolean): ISurvey;
|
2865
2877
|
get text(): string;
|
2866
2878
|
set text(val: string);
|
@@ -2977,7 +2989,7 @@ export declare class UnaryOperand extends Operand {
|
|
2977
2989
|
get operator(): string;
|
2978
2990
|
get expression(): Operand;
|
2979
2991
|
getType(): string;
|
2980
|
-
toString(func?:
|
2992
|
+
toString(func?: (op: Operand) => string): string;
|
2981
2993
|
protected isContentEqual(op: Operand): boolean;
|
2982
2994
|
evaluate(processValue?: ProcessValue): boolean;
|
2983
2995
|
setVariables(variables: any): void;
|
@@ -3060,8 +3072,8 @@ export declare class ChoicesRestfull extends ChoicesRestful {
|
|
3060
3072
|
static get EncodeParameters(): boolean;
|
3061
3073
|
static set EncodeParameters(val: boolean);
|
3062
3074
|
static clearCache(): void;
|
3063
|
-
static get onBeforeSendRequest(): any;
|
3064
|
-
static set onBeforeSendRequest(val: any);
|
3075
|
+
static get onBeforeSendRequest(): (sender: ChoicesRestful, options: any) => void;
|
3076
|
+
static set onBeforeSendRequest(val: (sender: ChoicesRestful, options: any) => void);
|
3065
3077
|
}
|
3066
3078
|
export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
3067
3079
|
constructor(surveyValue?: ISurvey, creator?: any);
|
@@ -3129,7 +3141,7 @@ export declare class EmailValidator extends SurveyValidator {
|
|
3129
3141
|
re: any;
|
3130
3142
|
getType(): string;
|
3131
3143
|
validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
|
3132
|
-
protected getDefaultErrorText(name: string):
|
3144
|
+
protected getDefaultErrorText(name: string): string;
|
3133
3145
|
}
|
3134
3146
|
/*
|
3135
3147
|
* Show error if expression returns false
|
@@ -3144,7 +3156,7 @@ export declare class ExpressionValidator extends SurveyValidator {
|
|
3144
3156
|
get isRunning(): boolean;
|
3145
3157
|
validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
|
3146
3158
|
protected generateError(res: boolean, value: any, name: string): ValidatorResult;
|
3147
|
-
protected getDefaultErrorText(name: string):
|
3159
|
+
protected getDefaultErrorText(name: string): string;
|
3148
3160
|
protected ensureConditionRunner(): boolean;
|
3149
3161
|
/*
|
3150
3162
|
* The expression property.
|
@@ -3193,8 +3205,8 @@ export declare class JsonMissingTypeError extends JsonMissingTypeErrorBase {
|
|
3193
3205
|
baseClassName: string;
|
3194
3206
|
}
|
3195
3207
|
export declare class ListModel extends ActionContainer {
|
3196
|
-
constructor(items: any, onItemSelect:
|
3197
|
-
onItemSelect:
|
3208
|
+
constructor(items: any, onItemSelect: (item: Action) => void, allowSelection: boolean, selectedItem?: IAction, onFilteredTextChangedCallback?: (text: string) => void);
|
3209
|
+
onItemSelect: (item: Action) => void;
|
3198
3210
|
allowSelection: boolean;
|
3199
3211
|
denySearch: boolean;
|
3200
3212
|
needFilter: boolean;
|
@@ -3203,13 +3215,14 @@ export declare class ListModel extends ActionContainer {
|
|
3203
3215
|
filteredText: string;
|
3204
3216
|
static INDENT: number;
|
3205
3217
|
static MINELEMENTCOUNT: number;
|
3218
|
+
isItemVisible(item: Action): boolean;
|
3206
3219
|
protected onSet(): void;
|
3207
|
-
selectItem:
|
3208
|
-
isItemDisabled:
|
3209
|
-
isItemSelected:
|
3210
|
-
getItemClass:
|
3211
|
-
getItemIndent: any;
|
3212
|
-
get filteredTextPlaceholder():
|
3220
|
+
selectItem: (itemValue: Action) => void;
|
3221
|
+
isItemDisabled: (itemValue: Action) => boolean;
|
3222
|
+
isItemSelected: (itemValue: Action) => boolean;
|
3223
|
+
getItemClass: (itemValue: Action) => string;
|
3224
|
+
getItemIndent: (itemValue: any) => string;
|
3225
|
+
get filteredTextPlaceholder(): string;
|
3213
3226
|
onKeyDown(event: any): void;
|
3214
3227
|
onPointerDown(event: any, item: any): void;
|
3215
3228
|
refresh(): void;
|
@@ -3251,7 +3264,7 @@ export declare class NumericValidator extends SurveyValidator {
|
|
3251
3264
|
constructor(minValue?: number, maxValue?: number);
|
3252
3265
|
getType(): string;
|
3253
3266
|
validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
|
3254
|
-
protected getDefaultErrorText(name: string):
|
3267
|
+
protected getDefaultErrorText(name: string): string;
|
3255
3268
|
/*
|
3256
3269
|
* The minValue property.
|
3257
3270
|
*/
|
@@ -3297,7 +3310,7 @@ export declare class RegexValidator extends SurveyValidator {
|
|
3297
3310
|
export declare class SurveyActionBarItemDropdown extends SurveyActionBarItem {
|
3298
3311
|
constructor(props: any);
|
3299
3312
|
viewModel: any;
|
3300
|
-
renderButtonContent():
|
3313
|
+
renderButtonContent(): JSX.Element;
|
3301
3314
|
componentWillUnmount(): void;
|
3302
3315
|
}
|
3303
3316
|
export declare class SurveyCustomWidget extends SurveyQuestionElementBase {
|
@@ -3307,7 +3320,7 @@ export declare class SurveyCustomWidget extends SurveyQuestionElementBase {
|
|
3307
3320
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
3308
3321
|
componentWillUnmount(): void;
|
3309
3322
|
protected canRender(): boolean;
|
3310
|
-
protected renderElement():
|
3323
|
+
protected renderElement(): JSX.Element;
|
3311
3324
|
}
|
3312
3325
|
/*
|
3313
3326
|
* Base class of SurveyJS Elements.
|
@@ -3471,7 +3484,9 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3471
3484
|
protected setPage(parent: IPanel, newPage: IPage): void;
|
3472
3485
|
protected getSearchableLocKeys(keys: any): void;
|
3473
3486
|
protected get isDefaultV2Theme(): boolean;
|
3487
|
+
get showErrorsAboveQuestion(): boolean;
|
3474
3488
|
get isErrorsModeTooltip(): boolean;
|
3489
|
+
protected getIsErrorsModeTooltip(): boolean;
|
3475
3490
|
get hasParent(): boolean;
|
3476
3491
|
protected get hasFrameV2(): boolean;
|
3477
3492
|
/*
|
@@ -3524,7 +3539,7 @@ export declare class SurveyElementErrors extends ReactSurveyElement {
|
|
3524
3539
|
tooltipRef: any;
|
3525
3540
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
3526
3541
|
componentWillUnmount(): void;
|
3527
|
-
protected renderElement():
|
3542
|
+
protected renderElement(): JSX.Element;
|
3528
3543
|
}
|
3529
3544
|
/*
|
3530
3545
|
* The `Survey` object contains information about the survey, Pages, Questions, flow logic and etc.
|
@@ -3546,7 +3561,6 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
3546
3561
|
valuesHash: any;
|
3547
3562
|
variablesHash: any;
|
3548
3563
|
editingObjValue: Base;
|
3549
|
-
localeValue: string;
|
3550
3564
|
textPreProcessor: TextPreProcessor;
|
3551
3565
|
timerModelValue: SurveyTimerModel;
|
3552
3566
|
navigationBarValue: any;
|
@@ -4441,7 +4455,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4441
4455
|
getRendererContextForString(element: Base, locStr: LocalizableString): LocalizableString;
|
4442
4456
|
getExpressionDisplayValue(question: IQuestion, value: any, displayValue: string): string;
|
4443
4457
|
getProcessedText(text: string): string;
|
4444
|
-
getLocString(str: string):
|
4458
|
+
getLocString(str: string): string;
|
4445
4459
|
getErrorCustomText(text: string, error: SurveyError): string;
|
4446
4460
|
getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
|
4447
4461
|
/*
|
@@ -4691,7 +4705,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4691
4705
|
*/
|
4692
4706
|
mergeData(data: any): void;
|
4693
4707
|
setDataCore(data: any): void;
|
4694
|
-
onEditingObjPropertyChanged: any;
|
4708
|
+
onEditingObjPropertyChanged: (sender: Base, options: any) => void;
|
4695
4709
|
get editingObj(): Base;
|
4696
4710
|
set editingObj(val: Base);
|
4697
4711
|
get isEditingSurveyElement(): boolean;
|
@@ -4709,9 +4723,9 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4709
4723
|
getDataValueCore(valuesHash: any, key: string): any;
|
4710
4724
|
setDataValueCore(valuesHash: any, key: string, value: any): void;
|
4711
4725
|
deleteDataValueCore(valuesHash: any, key: string): void;
|
4712
|
-
valueHashGetDataCallback: any;
|
4713
|
-
valueHashSetDataCallback: any;
|
4714
|
-
valueHashDeleteDataCallback: any;
|
4726
|
+
valueHashGetDataCallback: (valuesHash: any, key: string) => any;
|
4727
|
+
valueHashSetDataCallback: (valuesHash: any, key: string, value: any) => void;
|
4728
|
+
valueHashDeleteDataCallback: (valuesHash: any, key: string) => void;
|
4715
4729
|
/*
|
4716
4730
|
* Returns all comments from the data.
|
4717
4731
|
*/
|
@@ -4882,17 +4896,17 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4882
4896
|
* Returns `true`, if the current page contains any error. If there is an async function in an expression, then the function will return `undefined` value.
|
4883
4897
|
* In this case, you should use `onAsyncValidation` parameter, which is a callback function: (hasErrors: boolean) => void
|
4884
4898
|
*/
|
4885
|
-
hasCurrentPageErrors(onAsyncValidation?:
|
4899
|
+
hasCurrentPageErrors(onAsyncValidation?: (hasErrors: boolean) => void): boolean;
|
4886
4900
|
/*
|
4887
4901
|
* Returns `true`, if a page contains an error. If there is an async function in an expression, then the function will return `undefined` value.
|
4888
4902
|
* In this case, you should use the second `onAsyncValidation` parameter, which is a callback function: (hasErrors: boolean) => void
|
4889
4903
|
*/
|
4890
|
-
hasPageErrors(page?: PageModel, onAsyncValidation?:
|
4904
|
+
hasPageErrors(page?: PageModel, onAsyncValidation?: (hasErrors: boolean) => void): boolean;
|
4891
4905
|
/*
|
4892
4906
|
* Returns `true`, if any of the survey pages contains errors. If there is an async function in an expression, then the function will return `undefined` value.
|
4893
4907
|
* In this case, you should use the third `onAsyncValidation` parameter, which is a callback function: (hasErrors: boolean) => void
|
4894
4908
|
*/
|
4895
|
-
hasErrors(fireCallback?: boolean, focusOnFirstError?: boolean, onAsyncValidation?:
|
4909
|
+
hasErrors(fireCallback?: boolean, focusOnFirstError?: boolean, onAsyncValidation?: (hasErrors: boolean) => void): boolean;
|
4896
4910
|
/*
|
4897
4911
|
* Checks whether survey elements (pages, panels, and questions) have unique question names.
|
4898
4912
|
* You can check for unique names for individual page and panel (and all their elements) or a question.
|
@@ -5068,19 +5082,19 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5068
5082
|
/*
|
5069
5083
|
* Uploads a file to server.
|
5070
5084
|
*/
|
5071
|
-
uploadFiles(question: IQuestion, name: string, files: any, uploadingCallback: any): void;
|
5085
|
+
uploadFiles(question: IQuestion, name: string, files: any, uploadingCallback: (status: string, data: any) => any): void;
|
5072
5086
|
/*
|
5073
5087
|
* Downloads a file from server
|
5074
5088
|
*/
|
5075
|
-
downloadFile(questionName: string, fileValue: any, callback: any): void;
|
5089
|
+
downloadFile(questionName: string, fileValue: any, callback: (status: string, data: any) => any): void;
|
5076
5090
|
/*
|
5077
5091
|
* Clears files from server.
|
5078
5092
|
*/
|
5079
|
-
clearFiles(question: IQuestion, name: string, value: any, fileName: string, callback: any): void;
|
5093
|
+
clearFiles(question: IQuestion, name: string, value: any, fileName: string, callback: (status: string, data: any) => any): void;
|
5080
5094
|
updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any): Array<ItemValue>;
|
5081
5095
|
loadedChoicesFromServer(question: IQuestion): void;
|
5082
5096
|
protected createSurveyService(): dxSurveyService;
|
5083
|
-
protected uploadFilesCore(name: string, files: any, uploadingCallback: any): void;
|
5097
|
+
protected uploadFilesCore(name: string, files: any, uploadingCallback: (status: string, data: any) => any): void;
|
5084
5098
|
getPage(index: number): PageModel;
|
5085
5099
|
/*
|
5086
5100
|
* Adds an existing page to the survey.
|
@@ -5180,7 +5194,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5180
5194
|
setJsonObject(jsonObj: any): void;
|
5181
5195
|
isEndLoadingFromJson: string;
|
5182
5196
|
endLoadingFromJson(): void;
|
5183
|
-
updateNavigationItemCssCallback:
|
5197
|
+
updateNavigationItemCssCallback: (strName?: string) => void;
|
5184
5198
|
protected createNavigationBar(): ActionContainer;
|
5185
5199
|
protected createNavigationActions(): Array<IAction>;
|
5186
5200
|
protected onBeforeCreating(): void;
|
@@ -5374,34 +5388,34 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5374
5388
|
export declare class SurveyMultipleTextItem extends ReactSurveyElement {
|
5375
5389
|
constructor(props: any);
|
5376
5390
|
protected getStateElements(): any;
|
5377
|
-
protected renderElement():
|
5378
|
-
protected renderItemTooltipError(item: any, cssClasses: any):
|
5391
|
+
protected renderElement(): JSX.Element;
|
5392
|
+
protected renderItemTooltipError(item: any, cssClasses: any): JSX.Element;
|
5379
5393
|
}
|
5380
5394
|
export declare class SurveyNavigationButton extends ReactSurveyElement {
|
5381
5395
|
constructor(props: any);
|
5382
5396
|
protected get item(): Action;
|
5383
5397
|
protected canRender(): boolean;
|
5384
|
-
protected renderElement():
|
5398
|
+
protected renderElement(): JSX.Element;
|
5385
5399
|
}
|
5386
5400
|
export declare class SurveyPage extends SurveyPanelBase {
|
5387
5401
|
constructor(props: any);
|
5388
5402
|
protected getPanelBase(): PanelModelBase;
|
5389
5403
|
get page(): any;
|
5390
|
-
protected renderElement():
|
5391
|
-
protected renderTitle():
|
5392
|
-
protected renderDescription():
|
5404
|
+
protected renderElement(): JSX.Element;
|
5405
|
+
protected renderTitle(): JSX.Element;
|
5406
|
+
protected renderDescription(): JSX.Element;
|
5393
5407
|
}
|
5394
5408
|
export declare class SurveyPanel extends SurveyPanelBase {
|
5395
5409
|
constructor(props: any);
|
5396
5410
|
hasBeenExpanded: boolean;
|
5397
5411
|
get panel(): any;
|
5398
|
-
protected renderElement():
|
5399
|
-
protected renderHeader():
|
5400
|
-
protected wrapElement(element:
|
5401
|
-
protected renderContent(style: any, rows: any, className: string):
|
5402
|
-
protected renderTitle():
|
5403
|
-
protected renderDescription():
|
5404
|
-
protected renderBottom():
|
5412
|
+
protected renderElement(): JSX.Element;
|
5413
|
+
protected renderHeader(): JSX.Element;
|
5414
|
+
protected wrapElement(element: JSX.Element): JSX.Element;
|
5415
|
+
protected renderContent(style: any, rows: any, className: string): JSX.Element;
|
5416
|
+
protected renderTitle(): JSX.Element;
|
5417
|
+
protected renderDescription(): JSX.Element;
|
5418
|
+
protected renderBottom(): JSX.Element;
|
5405
5419
|
}
|
5406
5420
|
export declare class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
|
5407
5421
|
constructor(props: any);
|
@@ -5414,11 +5428,11 @@ export declare class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
|
|
5414
5428
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
5415
5429
|
protected doAfterRender(): void;
|
5416
5430
|
protected canRender(): boolean;
|
5417
|
-
protected renderErrors(errorsLocation: string):
|
5418
|
-
protected renderContent():
|
5419
|
-
protected renderElement():
|
5431
|
+
protected renderErrors(errorsLocation: string): JSX.Element;
|
5432
|
+
protected renderContent(): JSX.Element;
|
5433
|
+
protected renderElement(): JSX.Element;
|
5420
5434
|
protected getShowErrors(): boolean;
|
5421
|
-
protected renderQuestion():
|
5435
|
+
protected renderQuestion(): JSX.Element;
|
5422
5436
|
}
|
5423
5437
|
export declare class SurveyQuestionBoolean extends SurveyQuestionElementBase {
|
5424
5438
|
constructor(props: any);
|
@@ -5431,27 +5445,27 @@ export declare class SurveyQuestionBoolean extends SurveyQuestionElementBase {
|
|
5431
5445
|
handleOnLabelClick(event: any, value: boolean): void;
|
5432
5446
|
handleOnKeyDown(event: any): void;
|
5433
5447
|
protected updateDomElement(): void;
|
5434
|
-
protected renderElement():
|
5448
|
+
protected renderElement(): JSX.Element;
|
5435
5449
|
}
|
5436
5450
|
export declare class SurveyQuestionButtonGroup extends SurveyQuestionElementBase {
|
5437
5451
|
constructor(props: any);
|
5438
5452
|
protected get question(): any;
|
5439
5453
|
getStateElement(): any;
|
5440
|
-
render():
|
5454
|
+
render(): JSX.Element;
|
5441
5455
|
renderItems(): any;
|
5442
5456
|
}
|
5443
5457
|
export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
5444
5458
|
constructor(props: any);
|
5445
5459
|
protected get question(): QuestionCheckboxModel;
|
5446
|
-
protected renderElement():
|
5460
|
+
protected renderElement(): JSX.Element;
|
5447
5461
|
protected getHeader(): any;
|
5448
5462
|
protected getFooter(): any;
|
5449
|
-
protected getColumnedBody(cssClasses: any):
|
5463
|
+
protected getColumnedBody(cssClasses: any): JSX.Element;
|
5450
5464
|
protected getColumns(cssClasses: any): any;
|
5451
5465
|
protected getItems(cssClasses: any): Array<any>;
|
5452
5466
|
protected get textStyle(): any;
|
5453
|
-
protected renderOther():
|
5454
|
-
protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string):
|
5467
|
+
protected renderOther(): JSX.Element;
|
5468
|
+
protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): JSX.Element;
|
5455
5469
|
}
|
5456
5470
|
export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
5457
5471
|
constructor(props: any);
|
@@ -5462,36 +5476,36 @@ export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
|
5462
5476
|
protected get isFirst(): any;
|
5463
5477
|
protected get index(): number;
|
5464
5478
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
5465
|
-
handleOnChange: any;
|
5466
|
-
selectAllChanged: any;
|
5479
|
+
handleOnChange: (event: any) => void;
|
5480
|
+
selectAllChanged: (event: any) => void;
|
5467
5481
|
protected canRender(): boolean;
|
5468
|
-
protected renderElement():
|
5482
|
+
protected renderElement(): JSX.Element;
|
5469
5483
|
protected get inputStyle(): any;
|
5470
|
-
protected renderCheckbox(isChecked: boolean, otherItem:
|
5484
|
+
protected renderCheckbox(isChecked: boolean, otherItem: JSX.Element): JSX.Element;
|
5471
5485
|
}
|
5472
5486
|
export declare class SurveyQuestionCommentItem extends ReactSurveyElement {
|
5473
5487
|
constructor(props: any);
|
5474
5488
|
protected canRender(): boolean;
|
5475
|
-
protected renderElement():
|
5489
|
+
protected renderElement(): JSX.Element;
|
5476
5490
|
}
|
5477
5491
|
export declare class SurveyQuestionEmpty extends SurveyQuestionElementBase {
|
5478
5492
|
constructor(props: any);
|
5479
5493
|
protected get question(): any;
|
5480
|
-
protected renderElement():
|
5494
|
+
protected renderElement(): JSX.Element;
|
5481
5495
|
}
|
5482
5496
|
export declare class SurveyQuestionExpression extends SurveyQuestionElementBase {
|
5483
5497
|
constructor(props: any);
|
5484
5498
|
protected get question(): any;
|
5485
|
-
protected renderElement():
|
5499
|
+
protected renderElement(): JSX.Element;
|
5486
5500
|
}
|
5487
5501
|
export declare class SurveyQuestionFile extends SurveyQuestionElementBase {
|
5488
5502
|
constructor(props: any);
|
5489
5503
|
protected get question(): any;
|
5490
|
-
protected renderElement():
|
5491
|
-
protected renderFileDecorator():
|
5492
|
-
protected renderClearButton(className: string):
|
5493
|
-
protected renderFileSign(className: string, val: any):
|
5494
|
-
protected renderPreview():
|
5504
|
+
protected renderElement(): JSX.Element;
|
5505
|
+
protected renderFileDecorator(): JSX.Element;
|
5506
|
+
protected renderClearButton(className: string): JSX.Element;
|
5507
|
+
protected renderFileSign(className: string, val: any): JSX.Element;
|
5508
|
+
protected renderPreview(): JSX.Element;
|
5495
5509
|
}
|
5496
5510
|
export declare class SurveyQuestionHtml extends SurveyQuestionElementBase {
|
5497
5511
|
constructor(props: any);
|
@@ -5500,7 +5514,7 @@ export declare class SurveyQuestionHtml extends SurveyQuestionElementBase {
|
|
5500
5514
|
componentWillUnmount(): void;
|
5501
5515
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
5502
5516
|
protected canRender(): boolean;
|
5503
|
-
protected renderElement():
|
5517
|
+
protected renderElement(): JSX.Element;
|
5504
5518
|
}
|
5505
5519
|
export declare class SurveyQuestionImage extends SurveyQuestionElementBase {
|
5506
5520
|
constructor(props: any);
|
@@ -5508,16 +5522,16 @@ export declare class SurveyQuestionImage extends SurveyQuestionElementBase {
|
|
5508
5522
|
componentWillUnmount(): void;
|
5509
5523
|
protected get question(): any;
|
5510
5524
|
protected canRender(): boolean;
|
5511
|
-
protected renderElement():
|
5525
|
+
protected renderElement(): JSX.Element;
|
5512
5526
|
}
|
5513
5527
|
export declare class SurveyQuestionImagePicker extends SurveyQuestionElementBase {
|
5514
5528
|
constructor(props: any);
|
5515
5529
|
protected get question(): any;
|
5516
|
-
protected renderElement():
|
5530
|
+
protected renderElement(): JSX.Element;
|
5517
5531
|
protected getColumns(cssClasses: any): any;
|
5518
5532
|
protected getItems(cssClasses: any): Array<any>;
|
5519
5533
|
protected get textStyle(): any;
|
5520
|
-
protected renderItem(key: string, item: any, cssClasses: any):
|
5534
|
+
protected renderItem(key: string, item: any, cssClasses: any): JSX.Element;
|
5521
5535
|
}
|
5522
5536
|
export declare class SurveyQuestionImagePickerItem extends ReactSurveyElement {
|
5523
5537
|
constructor(props: any);
|
@@ -5529,83 +5543,83 @@ export declare class SurveyQuestionImagePickerItem extends ReactSurveyElement {
|
|
5529
5543
|
protected get item(): any;
|
5530
5544
|
protected get question(): any;
|
5531
5545
|
handleOnChange(event: any): void;
|
5532
|
-
protected renderElement():
|
5546
|
+
protected renderElement(): JSX.Element;
|
5533
5547
|
}
|
5534
5548
|
export declare class SurveyQuestionMatrix extends SurveyQuestionElementBase {
|
5535
5549
|
constructor(props: any);
|
5536
5550
|
protected get question(): any;
|
5537
5551
|
componentDidMount(): void;
|
5538
5552
|
componentWillUnmount(): void;
|
5539
|
-
protected renderElement():
|
5553
|
+
protected renderElement(): JSX.Element;
|
5540
5554
|
}
|
5541
5555
|
export declare class SurveyQuestionMatrixActionsCell extends ReactSurveyElement {
|
5542
5556
|
constructor(props: any);
|
5543
5557
|
get model(): any;
|
5544
|
-
protected renderElement():
|
5558
|
+
protected renderElement(): JSX.Element;
|
5545
5559
|
}
|
5546
5560
|
export declare class SurveyQuestionMatrixDetailButton extends ReactSurveyElement {
|
5547
5561
|
constructor(props: any);
|
5548
5562
|
protected getStateElement(): any;
|
5549
5563
|
get item(): any;
|
5550
5564
|
handleOnShowHideClick(event: any): void;
|
5551
|
-
protected renderElement():
|
5565
|
+
protected renderElement(): JSX.Element;
|
5552
5566
|
}
|
5553
5567
|
export declare class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElementBase {
|
5554
5568
|
constructor(props: any);
|
5555
5569
|
protected get question(): any;
|
5556
5570
|
componentDidMount(): void;
|
5557
5571
|
componentWillUnmount(): void;
|
5558
|
-
protected renderElement():
|
5559
|
-
renderTableDiv():
|
5560
|
-
renderHeader():
|
5561
|
-
renderFooter():
|
5562
|
-
renderRows():
|
5563
|
-
renderRow(keyValue: any, row: any, cssClasses: any):
|
5564
|
-
renderCell(cell: any, index: number, cssClasses: any):
|
5572
|
+
protected renderElement(): JSX.Element;
|
5573
|
+
renderTableDiv(): JSX.Element;
|
5574
|
+
renderHeader(): JSX.Element;
|
5575
|
+
renderFooter(): JSX.Element;
|
5576
|
+
renderRows(): JSX.Element;
|
5577
|
+
renderRow(keyValue: any, row: any, cssClasses: any): JSX.Element;
|
5578
|
+
renderCell(cell: any, index: number, cssClasses: any): JSX.Element;
|
5565
5579
|
}
|
5566
5580
|
export declare class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
|
5567
5581
|
constructor(props: any);
|
5568
|
-
protected renderElement():
|
5582
|
+
protected renderElement(): JSX.Element;
|
5569
5583
|
}
|
5570
5584
|
export declare class SurveyQuestionMatrixDynamicRemoveButton extends ReactSurveyElement {
|
5571
5585
|
constructor(props: any);
|
5572
5586
|
handleOnRowRemoveClick(event: any): void;
|
5573
|
-
protected renderElement():
|
5587
|
+
protected renderElement(): JSX.Element;
|
5574
5588
|
}
|
5575
5589
|
export declare class SurveyQuestionMatrixRow extends ReactSurveyElement {
|
5576
5590
|
constructor(props: any);
|
5577
5591
|
handleOnChange(event: any): void;
|
5578
|
-
protected wrapCell(cell: any, element:
|
5592
|
+
protected wrapCell(cell: any, element: JSX.Element, reason: string): JSX.Element;
|
5579
5593
|
protected canRender(): boolean;
|
5580
|
-
protected renderElement():
|
5594
|
+
protected renderElement(): JSX.Element;
|
5581
5595
|
generateTds(): any;
|
5582
5596
|
cellClick(row: any, column: any): void;
|
5583
5597
|
}
|
5584
5598
|
export declare class SurveyQuestionMultipleText extends SurveyQuestionElementBase {
|
5585
5599
|
constructor(props: any);
|
5586
5600
|
protected get question(): any;
|
5587
|
-
protected renderElement():
|
5588
|
-
protected renderRow(rowIndex: number, items: any, cssClasses: any):
|
5601
|
+
protected renderElement(): JSX.Element;
|
5602
|
+
protected renderRow(rowIndex: number, items: any, cssClasses: any): JSX.Element;
|
5589
5603
|
}
|
5590
5604
|
export declare class SurveyQuestionOptionItem extends ReactSurveyElement {
|
5591
5605
|
constructor(props: any);
|
5592
5606
|
protected getStateElement(): Base;
|
5593
5607
|
protected canRender(): boolean;
|
5594
|
-
protected renderElement():
|
5608
|
+
protected renderElement(): JSX.Element;
|
5595
5609
|
}
|
5596
5610
|
export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBase {
|
5597
5611
|
constructor(props: any);
|
5598
5612
|
protected get question(): any;
|
5599
5613
|
componentDidMount(): void;
|
5600
5614
|
componentWillUnmount(): void;
|
5601
|
-
protected renderElement():
|
5602
|
-
protected renderNavigator():
|
5603
|
-
protected rendrerPrevButton():
|
5604
|
-
protected rendrerNextButton():
|
5605
|
-
protected renderRange():
|
5606
|
-
protected renderAddRowButton():
|
5607
|
-
protected renderNavigatorV2():
|
5608
|
-
protected renderPlaceholder():
|
5615
|
+
protected renderElement(): JSX.Element;
|
5616
|
+
protected renderNavigator(): JSX.Element;
|
5617
|
+
protected rendrerPrevButton(): JSX.Element;
|
5618
|
+
protected rendrerNextButton(): JSX.Element;
|
5619
|
+
protected renderRange(): JSX.Element;
|
5620
|
+
protected renderAddRowButton(): JSX.Element;
|
5621
|
+
protected renderNavigatorV2(): JSX.Element;
|
5622
|
+
protected renderPlaceholder(): JSX.Element;
|
5609
5623
|
}
|
5610
5624
|
export declare class SurveyQuestionPanelDynamicAction extends ReactSurveyElement {
|
5611
5625
|
constructor(props: any);
|
@@ -5622,55 +5636,55 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
|
5622
5636
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
5623
5637
|
handleOnChange(event: any): void;
|
5624
5638
|
protected canRender(): boolean;
|
5625
|
-
protected renderElement():
|
5639
|
+
protected renderElement(): JSX.Element;
|
5626
5640
|
}
|
5627
5641
|
export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase {
|
5628
5642
|
constructor(props: any);
|
5629
5643
|
protected get question(): any;
|
5630
|
-
protected renderElement():
|
5644
|
+
protected renderElement(): JSX.Element;
|
5631
5645
|
protected getFooter(): any;
|
5632
|
-
protected getColumnedBody(cssClasses: any):
|
5646
|
+
protected getColumnedBody(cssClasses: any): JSX.Element;
|
5633
5647
|
protected getColumns(cssClasses: any): any;
|
5634
5648
|
protected getItems(cssClasses: any): Array<any>;
|
5635
5649
|
protected get textStyle(): any;
|
5636
|
-
protected renderOther(cssClasses: any):
|
5650
|
+
protected renderOther(cssClasses: any): JSX.Element;
|
5637
5651
|
}
|
5638
5652
|
export declare class SurveyQuestionRanking extends SurveyQuestionElementBase {
|
5639
5653
|
constructor(props: any);
|
5640
5654
|
protected get question(): any;
|
5641
|
-
protected renderElement():
|
5655
|
+
protected renderElement(): JSX.Element;
|
5642
5656
|
protected getItems(): Array<any>;
|
5643
|
-
protected renderItem(item: ItemValue, i: number, handleKeydown: any, handlePointerDown: any, cssClasses: any, itemClass: string, question: any):
|
5657
|
+
protected renderItem(item: ItemValue, i: number, handleKeydown: (event: any) => void, handlePointerDown: (event: any) => void, cssClasses: any, itemClass: string, question: any): JSX.Element;
|
5644
5658
|
}
|
5645
5659
|
export declare class SurveyQuestionRankingItem extends ReactSurveyElement {
|
5646
5660
|
constructor(props: any);
|
5647
5661
|
protected get text(): string;
|
5648
5662
|
protected get index(): string;
|
5649
5663
|
protected get indexText(): string;
|
5650
|
-
protected get handleKeydown(): any;
|
5651
|
-
protected get handlePointerDown(): any;
|
5664
|
+
protected get handleKeydown(): (event: any) => void;
|
5665
|
+
protected get handlePointerDown(): (event: any) => void;
|
5652
5666
|
protected get cssClasses(): any;
|
5653
5667
|
protected get itemClass(): string;
|
5654
5668
|
protected get question(): any;
|
5655
|
-
protected renderElement():
|
5669
|
+
protected renderElement(): JSX.Element;
|
5656
5670
|
}
|
5657
5671
|
export declare class SurveyQuestionRating extends SurveyQuestionElementBase {
|
5658
5672
|
constructor(props: any);
|
5659
5673
|
protected get question(): any;
|
5660
5674
|
handleOnClick(event: any): void;
|
5661
|
-
protected renderElement():
|
5662
|
-
protected renderItem(key: string, item: any, index: number, cssClasses: any):
|
5675
|
+
protected renderElement(): JSX.Element;
|
5676
|
+
protected renderItem(key: string, item: any, index: number, cssClasses: any): JSX.Element;
|
5663
5677
|
}
|
5664
5678
|
export declare class SurveyQuestionSignaturePad extends SurveyQuestionElementBase {
|
5665
5679
|
constructor(props: any);
|
5666
5680
|
protected get question(): any;
|
5667
|
-
protected renderElement():
|
5668
|
-
renderCleanButton():
|
5681
|
+
protected renderElement(): JSX.Element;
|
5682
|
+
renderCleanButton(): JSX.Element;
|
5669
5683
|
}
|
5670
5684
|
export declare class SurveyQuestionUncontrolledElement<T> extends SurveyQuestionElementBase {
|
5671
5685
|
constructor(props: any);
|
5672
5686
|
protected get question(): T;
|
5673
|
-
updateValueOnEvent: any;
|
5687
|
+
updateValueOnEvent: (event: any) => void;
|
5674
5688
|
protected setValueCore(newValue: any): void;
|
5675
5689
|
protected getValueCore(): any;
|
5676
5690
|
protected updateDomElement(): void;
|
@@ -5679,7 +5693,7 @@ export declare class SurveyTimerPanel extends ReactSurveyElement {
|
|
5679
5693
|
constructor(props: any);
|
5680
5694
|
protected getStateElement(): Base;
|
5681
5695
|
protected get timerModel(): any;
|
5682
|
-
render():
|
5696
|
+
render(): JSX.Element;
|
5683
5697
|
}
|
5684
5698
|
/*
|
5685
5699
|
* It extends the Trigger base class and add properties required for SurveyJS classes.
|
@@ -5698,9 +5712,9 @@ export declare class SurveyWindow extends Survey {
|
|
5698
5712
|
protected getStateElements(): Array<Base>;
|
5699
5713
|
handleOnExpanded(event: any): void;
|
5700
5714
|
protected canRender(): boolean;
|
5701
|
-
protected renderElement():
|
5702
|
-
protected renderWindowHeader():
|
5703
|
-
protected renderBody():
|
5715
|
+
protected renderElement(): JSX.Element;
|
5716
|
+
protected renderWindowHeader(): JSX.Element;
|
5717
|
+
protected renderBody(): JSX.Element;
|
5704
5718
|
protected createSurvey(newProps: any): void;
|
5705
5719
|
}
|
5706
5720
|
/*
|
@@ -5710,7 +5724,7 @@ export declare class TextValidator extends SurveyValidator {
|
|
5710
5724
|
constructor();
|
5711
5725
|
getType(): string;
|
5712
5726
|
validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
|
5713
|
-
protected getDefaultErrorText(name: string):
|
5727
|
+
protected getDefaultErrorText(name: string): string;
|
5714
5728
|
/*
|
5715
5729
|
* The minLength property.
|
5716
5730
|
*/
|
@@ -5747,7 +5761,7 @@ export declare class Variable extends Const {
|
|
5747
5761
|
valueInfo: any;
|
5748
5762
|
useValueAsItIs: boolean;
|
5749
5763
|
getType(): string;
|
5750
|
-
toString(func?:
|
5764
|
+
toString(func?: (op: Operand) => string): string;
|
5751
5765
|
get variable(): string;
|
5752
5766
|
evaluate(processValue?: ProcessValue): any;
|
5753
5767
|
setVariables(variables: any): void;
|
@@ -5779,8 +5793,8 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5779
5793
|
elementsValue: any;
|
5780
5794
|
isQuestionsReady: boolean;
|
5781
5795
|
questionsValue: any;
|
5782
|
-
addElementCallback:
|
5783
|
-
removeElementCallback:
|
5796
|
+
addElementCallback: (element: IElement) => void;
|
5797
|
+
removeElementCallback: (element: IElement) => void;
|
5784
5798
|
onGetQuestionTitleLocation: any;
|
5785
5799
|
/*
|
5786
5800
|
* Returns the question type.
|
@@ -5971,6 +5985,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5971
5985
|
protected onAddElement(element: IElement, index: number): void;
|
5972
5986
|
protected onRemoveElement(element: IElement): void;
|
5973
5987
|
protected canRenderFirstRows(): boolean;
|
5988
|
+
protected getDragDropInfo(): any;
|
5974
5989
|
protected updateRowsRemoveElementFromRow(element: IElement, row: QuestionRowModel): void;
|
5975
5990
|
elementWidthChanged(el: IElement): void;
|
5976
5991
|
/*
|
@@ -6067,7 +6082,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6067
6082
|
customWidgetData: any;
|
6068
6083
|
focusCallback: any;
|
6069
6084
|
surveyLoadCallback: any;
|
6070
|
-
displayValueCallback:
|
6085
|
+
displayValueCallback: (text: string) => string;
|
6071
6086
|
defaultValueRunner: ExpressionRunner;
|
6072
6087
|
isChangingViaDefaultValue: boolean;
|
6073
6088
|
isValueChangedDirectly: boolean;
|
@@ -6076,9 +6091,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6076
6091
|
localeChangedCallback: any;
|
6077
6092
|
validateValueCallback: any;
|
6078
6093
|
questionTitleTemplateCallback: any;
|
6079
|
-
afterRenderQuestionCallback: any;
|
6080
|
-
valueFromDataCallback: any;
|
6081
|
-
valueToDataCallback: any;
|
6094
|
+
afterRenderQuestionCallback: (question: Question, element: any) => any;
|
6095
|
+
valueFromDataCallback: (val: any) => any;
|
6096
|
+
valueToDataCallback: (val: any) => any;
|
6082
6097
|
onGetSurvey: any;
|
6083
6098
|
locProcessedTitle: LocalizableString;
|
6084
6099
|
protected isReadyValue: boolean;
|
@@ -6303,6 +6318,10 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6303
6318
|
get cssDescription(): string;
|
6304
6319
|
protected setCssDescription(val: string): void;
|
6305
6320
|
protected getCssDescription(cssClasses: any): string;
|
6321
|
+
protected getIsErrorsModeTooltip(): boolean;
|
6322
|
+
showErrorOnCore(location: string): boolean;
|
6323
|
+
get showErrorOnTop(): boolean;
|
6324
|
+
get showErrorOnBottom(): boolean;
|
6306
6325
|
get cssError(): string;
|
6307
6326
|
protected setCssError(val: string): void;
|
6308
6327
|
protected getCssError(cssClasses: any): string;
|
@@ -6321,6 +6340,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6321
6340
|
protected fireCallback(callback: any): void;
|
6322
6341
|
getOthersMaxLength(): any;
|
6323
6342
|
protected onCreating(): void;
|
6343
|
+
getFirstQuestionToFocus(withError: boolean): Question;
|
6324
6344
|
protected getFirstInputElementId(): string;
|
6325
6345
|
protected getFirstErrorInputElementId(): string;
|
6326
6346
|
protected getProcessedTextValue(textValue: TextPreProcessorValue): void;
|
@@ -6481,7 +6501,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6481
6501
|
protected getDefaultRunner(runner: ExpressionRunner, expression: string): ExpressionRunner;
|
6482
6502
|
protected setDefaultValue(): void;
|
6483
6503
|
protected isValueExpression(val: any): boolean;
|
6484
|
-
protected setValueAndRunExpression(runner: ExpressionRunner, defaultValue: any, setFunc: any, values?: any, properties?: any): void;
|
6504
|
+
protected setValueAndRunExpression(runner: ExpressionRunner, defaultValue: any, setFunc: (val: any) => void, values?: any, properties?: any): void;
|
6485
6505
|
/*
|
6486
6506
|
* The question comment value.
|
6487
6507
|
*/
|
@@ -6533,7 +6553,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6533
6553
|
protected hasRequiredError(): boolean;
|
6534
6554
|
validatorRunner: ValidatorRunner;
|
6535
6555
|
isRunningValidatorsValue: boolean;
|
6536
|
-
onCompletedAsyncValidators:
|
6556
|
+
onCompletedAsyncValidators: (hasErrors: boolean) => void;
|
6537
6557
|
get isRunningValidators(): boolean;
|
6538
6558
|
protected getIsRunningValidators(): boolean;
|
6539
6559
|
protected runValidators(): Array<SurveyError>;
|
@@ -6605,53 +6625,54 @@ export declare class SurveyFlowPanel extends SurveyPanel {
|
|
6605
6625
|
protected renderQuestion(question: any): string;
|
6606
6626
|
protected renderRows(): Array<Element>;
|
6607
6627
|
renderedIndex: number;
|
6608
|
-
protected renderHtml():
|
6628
|
+
protected renderHtml(): JSX.Element;
|
6609
6629
|
protected renderNodes(domNodes: any): Array<Element>;
|
6610
|
-
protected renderParentNode(node: any):
|
6611
|
-
protected renderNode(node: any):
|
6612
|
-
protected renderContent(style: any, rows: any):
|
6630
|
+
protected renderParentNode(node: any): JSX.Element;
|
6631
|
+
protected renderNode(node: any): JSX.Element;
|
6632
|
+
protected renderContent(style: any, rows: any): JSX.Element;
|
6613
6633
|
}
|
6614
6634
|
export declare class SurveyMultipleTextItemEditor extends SurveyQuestionAndErrorsWrapped {
|
6615
6635
|
constructor(props: any);
|
6616
|
-
protected renderElement():
|
6636
|
+
protected renderElement(): JSX.Element;
|
6617
6637
|
}
|
6618
6638
|
export declare class SurveyQuestionAndErrorsCell extends SurveyQuestionAndErrorsWrapped {
|
6619
6639
|
constructor(props: any);
|
6620
6640
|
protected cellRef: any;
|
6621
6641
|
componentWillUnmount(): void;
|
6622
|
-
protected renderElement():
|
6642
|
+
protected renderElement(): JSX.Element;
|
6623
6643
|
protected getCellStyle(): any;
|
6624
6644
|
protected getHeaderText(): string;
|
6625
|
-
protected wrapCell(cell: any, element:
|
6645
|
+
protected wrapCell(cell: any, element: JSX.Element): JSX.Element;
|
6626
6646
|
}
|
6627
6647
|
export declare class SurveyQuestionBooleanCheckbox extends SurveyQuestionBoolean {
|
6628
6648
|
constructor(props: any);
|
6629
|
-
protected renderElement():
|
6649
|
+
protected renderElement(): JSX.Element;
|
6630
6650
|
}
|
6631
6651
|
export declare class SurveyQuestionBooleanRadio extends SurveyQuestionBoolean {
|
6632
6652
|
constructor(props: any);
|
6633
|
-
handleOnChange: any;
|
6634
|
-
protected renderElement():
|
6653
|
+
handleOnChange: (event: any) => void;
|
6654
|
+
protected renderElement(): JSX.Element;
|
6635
6655
|
}
|
6636
6656
|
export declare class SurveyQuestionComment extends SurveyQuestionUncontrolledElement<QuestionCommentModel> {
|
6637
6657
|
constructor(props: any);
|
6638
|
-
protected renderElement():
|
6658
|
+
protected renderElement(): JSX.Element;
|
6639
6659
|
}
|
6640
6660
|
export declare class SurveyQuestionComposite extends SurveyQuestionUncontrolledElement<QuestionCompositeModel> {
|
6641
6661
|
constructor(props: any);
|
6642
6662
|
protected canRender(): boolean;
|
6643
|
-
protected renderElement():
|
6663
|
+
protected renderElement(): JSX.Element;
|
6644
6664
|
}
|
6645
6665
|
export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElement<QuestionCustomModel> {
|
6646
6666
|
constructor(props: any);
|
6647
6667
|
protected getStateElements(): Array<Base>;
|
6648
|
-
protected renderElement():
|
6668
|
+
protected renderElement(): JSX.Element;
|
6649
6669
|
}
|
6650
6670
|
export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontrolledElement<T> {
|
6651
6671
|
constructor(props: any);
|
6672
|
+
onClick: (event: any) => void;
|
6652
6673
|
protected setValueCore(newValue: any): void;
|
6653
6674
|
protected getValueCore(): any;
|
6654
|
-
protected renderSelect(cssClasses: any):
|
6675
|
+
protected renderSelect(cssClasses: any): JSX.Element;
|
6655
6676
|
}
|
6656
6677
|
export declare class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {
|
6657
6678
|
constructor(props: any);
|
@@ -6660,44 +6681,44 @@ export declare class SurveyQuestionMatrixDynamic extends SurveyQuestionMatrixDro
|
|
6660
6681
|
constructor(props: any);
|
6661
6682
|
protected get matrix(): any;
|
6662
6683
|
handleOnRowAddClick(event: any): void;
|
6663
|
-
protected renderElement():
|
6664
|
-
protected renderAddRowButtonOnTop(cssClasses: any):
|
6665
|
-
protected renderAddRowButtonOnBottom(cssClasses: any):
|
6666
|
-
protected renderNoRowsContent(cssClasses: any):
|
6667
|
-
protected renderAddRowButton(cssClasses: any, isEmptySection?: boolean):
|
6684
|
+
protected renderElement(): JSX.Element;
|
6685
|
+
protected renderAddRowButtonOnTop(cssClasses: any): JSX.Element;
|
6686
|
+
protected renderAddRowButtonOnBottom(cssClasses: any): JSX.Element;
|
6687
|
+
protected renderNoRowsContent(cssClasses: any): JSX.Element;
|
6688
|
+
protected renderAddRowButton(cssClasses: any, isEmptySection?: boolean): JSX.Element;
|
6668
6689
|
}
|
6669
6690
|
export declare class SurveyQuestionPanelDynamicAddButton extends SurveyQuestionPanelDynamicAction {
|
6670
6691
|
constructor(props: any);
|
6671
|
-
protected handleClick: any;
|
6672
|
-
protected renderElement():
|
6692
|
+
protected handleClick: (event: any) => void;
|
6693
|
+
protected renderElement(): JSX.Element;
|
6673
6694
|
}
|
6674
6695
|
export declare class SurveyQuestionPanelDynamicItem extends SurveyPanel {
|
6675
6696
|
constructor(props: any);
|
6676
6697
|
protected getSurvey(): SurveyModel;
|
6677
6698
|
protected getCss(): any;
|
6678
6699
|
handleOnPanelRemoveClick(event: any): void;
|
6679
|
-
render():
|
6680
|
-
protected renderButton():
|
6700
|
+
render(): JSX.Element;
|
6701
|
+
protected renderButton(): JSX.Element;
|
6681
6702
|
}
|
6682
6703
|
export declare class SurveyQuestionPanelDynamicNextButton extends SurveyQuestionPanelDynamicAction {
|
6683
6704
|
constructor(props: any);
|
6684
|
-
protected handleClick: any;
|
6685
|
-
protected renderElement():
|
6705
|
+
protected handleClick: (event: any) => void;
|
6706
|
+
protected renderElement(): JSX.Element;
|
6686
6707
|
}
|
6687
6708
|
export declare class SurveyQuestionPanelDynamicPrevButton extends SurveyQuestionPanelDynamicAction {
|
6688
6709
|
constructor(props: any);
|
6689
|
-
protected handleClick: any;
|
6690
|
-
protected renderElement():
|
6710
|
+
protected handleClick: (event: any) => void;
|
6711
|
+
protected renderElement(): JSX.Element;
|
6691
6712
|
}
|
6692
6713
|
export declare class SurveyQuestionPanelDynamicProgressText extends SurveyQuestionPanelDynamicAction {
|
6693
6714
|
constructor(props: any);
|
6694
|
-
protected renderElement():
|
6715
|
+
protected renderElement(): JSX.Element;
|
6695
6716
|
}
|
6696
6717
|
export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElement<QuestionTextModel> {
|
6697
6718
|
constructor(props: any);
|
6698
6719
|
_isWaitingForEnter: boolean;
|
6699
|
-
protected renderInput():
|
6700
|
-
protected renderElement():
|
6720
|
+
protected renderInput(): JSX.Element;
|
6721
|
+
protected renderElement(): JSX.Element;
|
6701
6722
|
}
|
6702
6723
|
/*
|
6703
6724
|
* If expression returns true, it completes the survey.
|
@@ -6845,6 +6866,7 @@ export declare class PageModel extends PanelModelBase implements IPage {
|
|
6845
6866
|
protected onNumChanged(value: number): void;
|
6846
6867
|
protected onVisibleChanged(): void;
|
6847
6868
|
dragDropInfo: DragDropInfo;
|
6869
|
+
protected getDragDropInfo(): any;
|
6848
6870
|
dragDropStart(src: IElement, target: IElement, nestedPanelDepth?: number): void;
|
6849
6871
|
dragDropMoveTo(destination: ISurveyElement, isBottom?: boolean, isEdge?: boolean): boolean;
|
6850
6872
|
dragDropFinish(isCancel?: boolean): IElement;
|
@@ -7284,13 +7306,13 @@ export declare class QuestionFileModel extends Question {
|
|
7284
7306
|
getReadOnlyFileCss(): string;
|
7285
7307
|
get fileRootCss(): string;
|
7286
7308
|
getFileDecoratorCss(): string;
|
7287
|
-
onDragOver: any;
|
7288
|
-
onDrop: any;
|
7289
|
-
onDragLeave: any;
|
7290
|
-
doChange: any;
|
7291
|
-
doClean: any;
|
7309
|
+
onDragOver: (event: any) => boolean;
|
7310
|
+
onDrop: (event: any) => void;
|
7311
|
+
onDragLeave: (event: any) => void;
|
7312
|
+
doChange: (event: any) => void;
|
7313
|
+
doClean: (event: any) => void;
|
7292
7314
|
doRemoveFile(data: any): void;
|
7293
|
-
doDownloadFile: any;
|
7315
|
+
doDownloadFile: (event: any, data: any) => void;
|
7294
7316
|
}
|
7295
7317
|
/*
|
7296
7318
|
* A Model for a matrix base question.
|
@@ -7453,6 +7475,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
7453
7475
|
panelCountChangedCallback: any;
|
7454
7476
|
currentIndexChangedCallback: any;
|
7455
7477
|
get hasSingleInput(): boolean;
|
7478
|
+
getFirstQuestionToFocus(withError: boolean): Question;
|
7456
7479
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
7457
7480
|
getType(): string;
|
7458
7481
|
get isCompositeQuestion(): boolean;
|
@@ -7842,7 +7865,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7842
7865
|
dependedQuestions: any;
|
7843
7866
|
noneItemValue: ItemValue;
|
7844
7867
|
newItemValue: ItemValue;
|
7845
|
-
canShowOptionItemCallback:
|
7868
|
+
canShowOptionItemCallback: (item: ItemValue) => boolean;
|
7846
7869
|
getType(): string;
|
7847
7870
|
dispose(): void;
|
7848
7871
|
protected getItemValueType(): string;
|
@@ -7896,7 +7919,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7896
7919
|
protected runItemsEnableCondition(values: any, properties: any): any;
|
7897
7920
|
protected onAfterRunItemsEnableCondition(): void;
|
7898
7921
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
7899
|
-
changeItemVisisbility():
|
7922
|
+
changeItemVisisbility(): (item: ItemValue, val: boolean) => boolean;
|
7900
7923
|
protected getHasOther(val: any): boolean;
|
7901
7924
|
get validatedValue(): any;
|
7902
7925
|
protected createRestful(): ChoicesRestful;
|
@@ -7995,7 +8018,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7995
8018
|
get enabledChoices(): any;
|
7996
8019
|
protected updateVisibleChoices(): void;
|
7997
8020
|
protected canUseFilteredChoices(): boolean;
|
7998
|
-
setCanShowOptionItemCallback(func:
|
8021
|
+
setCanShowOptionItemCallback(func: (item: ItemValue) => boolean): void;
|
7999
8022
|
protected addToVisibleChoices(items: any, isAddAll: boolean): void;
|
8000
8023
|
protected canShowOptionItem(item: ItemValue, isAddAll: boolean, hasItem: boolean): boolean;
|
8001
8024
|
/*
|
@@ -8174,8 +8197,8 @@ export declare class QuestionTextBase extends Question {
|
|
8174
8197
|
}
|
8175
8198
|
export declare class SurveyQuestionDropdown extends SurveyQuestionDropdownBase<Question> {
|
8176
8199
|
constructor(props: any);
|
8177
|
-
protected renderElement():
|
8178
|
-
protected renderOther(cssClasses: any):
|
8200
|
+
protected renderElement(): JSX.Element;
|
8201
|
+
protected renderOther(cssClasses: any): JSX.Element;
|
8179
8202
|
}
|
8180
8203
|
export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndErrorsCell {
|
8181
8204
|
constructor(props: any);
|
@@ -8184,11 +8207,11 @@ export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndE
|
|
8184
8207
|
protected getShowErrors(): boolean;
|
8185
8208
|
protected getCellStyle(): any;
|
8186
8209
|
protected getHeaderText(): string;
|
8187
|
-
protected renderQuestion():
|
8210
|
+
protected renderQuestion(): JSX.Element;
|
8188
8211
|
}
|
8189
8212
|
export declare class SurveyQuestionRatingDropdown extends SurveyQuestionDropdownBase<QuestionRatingModel> {
|
8190
8213
|
constructor(props: any);
|
8191
|
-
protected renderElement():
|
8214
|
+
protected renderElement(): JSX.Element;
|
8192
8215
|
}
|
8193
8216
|
/*
|
8194
8217
|
* The flow panel object. It is a container with flow layout where you can mix questions with markdown text.
|
@@ -8197,7 +8220,7 @@ export declare class FlowPanelModel extends PanelModel {
|
|
8197
8220
|
constructor(name?: string);
|
8198
8221
|
static contentElementNamePrefix: string;
|
8199
8222
|
contentChangedCallback: any;
|
8200
|
-
onGetHtmlForQuestion:
|
8223
|
+
onGetHtmlForQuestion: (question: Question) => string;
|
8201
8224
|
onCustomHtmlProducing: any;
|
8202
8225
|
getType(): string;
|
8203
8226
|
getChildrenLayoutType(): string;
|
@@ -8276,7 +8299,6 @@ export declare class QuestionCompositeModel extends QuestionCustomModelBase {
|
|
8276
8299
|
textProcessing: QuestionCompositeTextProcessor;
|
8277
8300
|
protected createWrapper(): void;
|
8278
8301
|
getTemplate(): string;
|
8279
|
-
protected getCssType(): string;
|
8280
8302
|
protected getElement(): SurveyElement;
|
8281
8303
|
get contentPanel(): PanelModel;
|
8282
8304
|
hasErrors(fireCallback?: boolean, rec?: any): boolean;
|
@@ -8327,6 +8349,8 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
|
|
8327
8349
|
*/
|
8328
8350
|
export declare class QuestionDropdownModel extends QuestionSelectBase {
|
8329
8351
|
constructor(name: string);
|
8352
|
+
onOpened: EventBase<QuestionDropdownModel>;
|
8353
|
+
onOpenedCallBack(): void;
|
8330
8354
|
/*
|
8331
8355
|
* This flag controls whether to show options caption item ('Choose...').
|
8332
8356
|
*/
|
@@ -8450,12 +8474,12 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
8450
8474
|
protected isRowChanging: boolean;
|
8451
8475
|
columnsChangedCallback: any;
|
8452
8476
|
onRenderedTableResetCallback: any;
|
8453
|
-
onRenderedTableCreatedCallback:
|
8454
|
-
onCellCreatedCallback: any;
|
8455
|
-
onCellValueChangedCallback: any;
|
8456
|
-
onHasDetailPanelCallback:
|
8457
|
-
onCreateDetailPanelCallback:
|
8458
|
-
onCreateDetailPanelRenderedRowCallback:
|
8477
|
+
onRenderedTableCreatedCallback: (table: QuestionMatrixDropdownRenderedTable) => void;
|
8478
|
+
onCellCreatedCallback: (options: any) => void;
|
8479
|
+
onCellValueChangedCallback: (options: any) => void;
|
8480
|
+
onHasDetailPanelCallback: (row: MatrixDropdownRowModelBase) => boolean;
|
8481
|
+
onCreateDetailPanelCallback: (row: MatrixDropdownRowModelBase, panel: PanelModel) => void;
|
8482
|
+
onCreateDetailPanelRenderedRowCallback: (renderedRow: QuestionMatrixDropdownRenderedRow) => void;
|
8459
8483
|
protected createColumnValues(): any;
|
8460
8484
|
/*
|
8461
8485
|
* Returns the type of the object as a string as it represents in the json.
|
@@ -8626,6 +8650,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
8626
8650
|
protected getIsRunningValidators(): boolean;
|
8627
8651
|
getAllErrors(): Array<SurveyError>;
|
8628
8652
|
protected getUniqueColumns(): Array<MatrixDropdownColumn>;
|
8653
|
+
getFirstQuestionToFocus(withError: boolean): Question;
|
8629
8654
|
protected getFirstInputElementId(): string;
|
8630
8655
|
protected getFirstErrorInputElementId(): string;
|
8631
8656
|
protected getFirstCellQuestion(onError: boolean): Question;
|
@@ -8836,7 +8861,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
8836
8861
|
}
|
8837
8862
|
export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown {
|
8838
8863
|
constructor(props: any);
|
8839
|
-
protected renderSelect(cssClasses: any):
|
8864
|
+
protected renderSelect(cssClasses: any): JSX.Element;
|
8840
8865
|
}
|
8841
8866
|
/*
|
8842
8867
|
* A Model for a button group question.
|
@@ -8999,7 +9024,7 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
|
|
8999
9024
|
protected supportResponsiveness(): boolean;
|
9000
9025
|
protected needResponsiveness(): boolean;
|
9001
9026
|
_width: number;
|
9002
|
-
onContentLoaded: any;
|
9027
|
+
onContentLoaded: (item: ImageItemValue, event: any) => void;
|
9003
9028
|
responsiveColCount: number;
|
9004
9029
|
protected getCurrentColCount(): number;
|
9005
9030
|
protected processResponsiveness(_: number, availableWidth: number): boolean;
|
@@ -9042,7 +9067,7 @@ export declare class QuestionMatrixDropdownModel extends QuestionMatrixDropdownM
|
|
9042
9067
|
*/
|
9043
9068
|
export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownModelBase implements IMatrixDropdownData {
|
9044
9069
|
constructor(name: string);
|
9045
|
-
onGetValueForNewRowCallBack: any;
|
9070
|
+
onGetValueForNewRowCallBack: (sender: QuestionMatrixDynamicModel) => any;
|
9046
9071
|
rowCounter: number;
|
9047
9072
|
initialRowCount: number;
|
9048
9073
|
setRowCountValueFromData: boolean;
|
@@ -9050,7 +9075,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
9050
9075
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
9051
9076
|
draggedRow: MatrixDropdownRowModelBase;
|
9052
9077
|
onPointerDown(pointerDownEvent: any, row: MatrixDropdownRowModelBase): void;
|
9053
|
-
startDragMatrixRow: any;
|
9078
|
+
startDragMatrixRow: (event: any, currentTarget: any) => void;
|
9054
9079
|
getType(): string;
|
9055
9080
|
get isRowsDynamic(): boolean;
|
9056
9081
|
/*
|
@@ -9077,7 +9102,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
9077
9102
|
protected isDefaultValueEmpty(): boolean;
|
9078
9103
|
protected valueFromData(val: any): any;
|
9079
9104
|
protected setDefaultValue(): void;
|
9080
|
-
moveRowByIndex:
|
9105
|
+
moveRowByIndex: (fromIndex: number, toIndex: number) => void;
|
9081
9106
|
/*
|
9082
9107
|
* The number of rows in the matrix.
|
9083
9108
|
*/
|
@@ -9115,7 +9140,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
9115
9140
|
* Returns true, if a new row can be added.
|
9116
9141
|
*/
|
9117
9142
|
get canAddRow(): boolean;
|
9118
|
-
canRemoveRowsCallback:
|
9143
|
+
canRemoveRowsCallback: (allow: boolean) => boolean;
|
9119
9144
|
/*
|
9120
9145
|
* Returns true, if row can be removed.
|
9121
9146
|
*/
|
@@ -9218,7 +9243,7 @@ export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
|
|
9218
9243
|
get showClearButton(): boolean;
|
9219
9244
|
set showClearButton(val: boolean);
|
9220
9245
|
get canShowClearButton(): boolean;
|
9221
|
-
get clearButtonCaption():
|
9246
|
+
get clearButtonCaption(): string;
|
9222
9247
|
supportGoNextPageAutomatic(): boolean;
|
9223
9248
|
}
|
9224
9249
|
/*
|
@@ -9243,31 +9268,31 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
9243
9268
|
currentDropTarget: ItemValue;
|
9244
9269
|
dropTargetNodeMove: string;
|
9245
9270
|
endLoadingFromJson(): void;
|
9246
|
-
handlePointerDown: any;
|
9271
|
+
handlePointerDown: (event: any, choice: ItemValue, node: any) => void;
|
9247
9272
|
afterRenderQuestionElement(el: any): void;
|
9248
9273
|
beforeDestroyQuestionElement(el: any): void;
|
9249
|
-
handleKeydown: any;
|
9274
|
+
handleKeydown: (event: any, choice: ItemValue) => void;
|
9250
9275
|
protected supportSelectAll(): boolean;
|
9251
9276
|
supportOther(): boolean;
|
9252
9277
|
supportNone(): boolean;
|
9253
|
-
handleArrowUp:
|
9254
|
-
handleArrowDown:
|
9255
|
-
focusItem:
|
9278
|
+
handleArrowUp: (index: number, choice: ItemValue) => void;
|
9279
|
+
handleArrowDown: (index: number, choice: ItemValue) => void;
|
9280
|
+
focusItem: (index: number) => void;
|
9256
9281
|
setValue: any;
|
9257
9282
|
setValueFromUI: any;
|
9258
9283
|
syncNumbers: any;
|
9259
|
-
setGhostText:
|
9284
|
+
setGhostText: (text: string) => void;
|
9260
9285
|
getIconHoverCss(): string;
|
9261
9286
|
getIconFocusCss(): string;
|
9262
9287
|
}
|
9263
|
-
export declare function property(options?: any): any;
|
9264
|
-
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): any;
|
9288
|
+
export declare function property(options?: any): (target: any, key: string) => void;
|
9289
|
+
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
|
9265
9290
|
export declare function unwrap<T>(value: any): T;
|
9266
9291
|
export declare function getSize(value: any): any;
|
9267
9292
|
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
9268
9293
|
export declare function getCurrecyCodes(): Array<any>;
|
9269
9294
|
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
9270
|
-
export declare function attachKey2click(element:
|
9295
|
+
export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: any): JSX.Element;
|
9271
9296
|
/*
|
9272
9297
|
* Global survey settings
|
9273
9298
|
*/
|
@@ -9393,7 +9418,7 @@ export declare var settings: {
|
|
9393
9418
|
/*
|
9394
9419
|
* Override this function, set your function, if you want to show your own dialog confirm window instead of standard browser window.
|
9395
9420
|
*/
|
9396
|
-
confirmActionFunc:
|
9421
|
+
confirmActionFunc: (message: string) => boolean,
|
9397
9422
|
/*
|
9398
9423
|
* Set this property to change the default value of the minWidth constraint
|
9399
9424
|
*/
|
@@ -9471,10 +9496,10 @@ export declare var surveyLocalization: {
|
|
9471
9496
|
supportedLocales: any,
|
9472
9497
|
currentLocale: string,
|
9473
9498
|
defaultLocale: string,
|
9474
|
-
getLocaleStrings: any,
|
9475
|
-
getCurrentStrings: any,
|
9476
|
-
getString: any,
|
9477
|
-
getLocales: any,
|
9499
|
+
getLocaleStrings: (loc: string) => any,
|
9500
|
+
getCurrentStrings: (locale?: string) => any,
|
9501
|
+
getString: (strName: string, locale?: string) => any,
|
9502
|
+
getLocales: (removeDefaultLoc?: boolean) => any,
|
9478
9503
|
};
|
9479
9504
|
export declare var surveyStrings: any;
|
9480
9505
|
/*
|
@@ -9482,7 +9507,7 @@ export declare var surveyStrings: any;
|
|
9482
9507
|
*/
|
9483
9508
|
export declare var Serializer: JsonMetadata;
|
9484
9509
|
export declare var surveyBuiltInVarible: string;
|
9485
|
-
export declare var registerFunction: any;
|
9510
|
+
export declare var registerFunction: (name: string, func: any) => any;
|
9486
9511
|
export declare var parse: any;
|
9487
9512
|
export declare var defaultActionBarCss: {
|
9488
9513
|
root: string,
|
@@ -9827,23 +9852,23 @@ export declare var defaultStandardCss: {
|
|
9827
9852
|
},
|
9828
9853
|
};
|
9829
9854
|
export declare var surveyTimerFunctions: {
|
9830
|
-
setTimeout: any,
|
9831
|
-
clearTimeout:
|
9855
|
+
setTimeout: (func: any) => any,
|
9856
|
+
clearTimeout: (timerId: number) => void,
|
9832
9857
|
};
|
9833
9858
|
export declare var matrixDropdownColumnTypes: {
|
9834
9859
|
dropdown: {
|
9835
|
-
onCellQuestionUpdate: any,
|
9860
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9836
9861
|
},
|
9837
9862
|
checkbox: {
|
9838
|
-
onCellQuestionUpdate: any,
|
9863
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9839
9864
|
},
|
9840
9865
|
radiogroup: {
|
9841
|
-
onCellQuestionUpdate: any,
|
9866
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9842
9867
|
},
|
9843
9868
|
text: any,
|
9844
9869
|
comment: any,
|
9845
9870
|
boolean: {
|
9846
|
-
onCellQuestionUpdate: any,
|
9871
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9847
9872
|
},
|
9848
9873
|
expression: any,
|
9849
9874
|
rating: any,
|
@@ -10809,6 +10834,7 @@ export declare var defaultV2Css: {
|
|
10809
10834
|
cell: string,
|
10810
10835
|
headerCell: string,
|
10811
10836
|
rowTextCell: string,
|
10837
|
+
cellRequiredText: string,
|
10812
10838
|
detailButton: string,
|
10813
10839
|
detailButtonExpanded: string,
|
10814
10840
|
detailIcon: string,
|
@@ -10828,6 +10854,7 @@ export declare var defaultV2Css: {
|
|
10828
10854
|
cell: string,
|
10829
10855
|
headerCell: string,
|
10830
10856
|
rowTextCell: string,
|
10857
|
+
cellRequiredText: string,
|
10831
10858
|
button: string,
|
10832
10859
|
detailRow: string,
|
10833
10860
|
detailButton: string,
|