survey-react 1.9.30 → 1.9.31
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 +1 -1
- package/defaultV2.min.css +1 -1
- package/modern.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +369 -366
- package/survey.react.js +32 -7
- 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.31
|
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;
|
@@ -708,7 +708,7 @@ export declare class Base {
|
|
708
708
|
geValueFromHash(): any;
|
709
709
|
protected setPropertyValueCore(propertiesHash: any, name: string, val: any): void;
|
710
710
|
get isEditingSurveyElement(): boolean;
|
711
|
-
iteratePropertiesHash(func: any): void;
|
711
|
+
iteratePropertiesHash(func: (hash: any, key: any) => void): void;
|
712
712
|
/*
|
713
713
|
* set property value
|
714
714
|
*/
|
@@ -721,7 +721,7 @@ export declare class Base {
|
|
721
721
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
722
722
|
protected propertyValueChanged(name: string, oldValue: any, newValue: any, arrayChanges?: ArrayChanges, target?: Base): void;
|
723
723
|
protected get isInternal(): boolean;
|
724
|
-
addExpressionProperty(name: string, onExecute: any, canRun?:
|
724
|
+
addExpressionProperty(name: string, onExecute: (obj: Base, res: any) => void, canRun?: (obj: Base) => boolean): void;
|
725
725
|
getDataFilteredValues(): any;
|
726
726
|
getDataFilteredProperties(): any;
|
727
727
|
protected runConditionCore(values: any, properties: any): void;
|
@@ -799,9 +799,9 @@ export declare class ButtonGroupItemModel {
|
|
799
799
|
export declare class ComponentCollection {
|
800
800
|
static Instance: ComponentCollection;
|
801
801
|
customQuestionValues: any;
|
802
|
-
onCreateComposite:
|
803
|
-
onCreateCustom:
|
804
|
-
onAddingJson:
|
802
|
+
onCreateComposite: (name: string, questionJSON: ComponentQuestionJSON) => QuestionCompositeModel;
|
803
|
+
onCreateCustom: (name: string, questionJSON: ComponentQuestionJSON) => QuestionCustomModel;
|
804
|
+
onAddingJson: (name: string, isComposite: boolean) => void;
|
805
805
|
add(json: any): void;
|
806
806
|
get items(): any;
|
807
807
|
getCustomQuestionByName(name: string): ComponentQuestionJSON;
|
@@ -915,13 +915,13 @@ export declare class DragOrClickHelper {
|
|
915
915
|
currentY: any;
|
916
916
|
itemModel: any;
|
917
917
|
onPointerDown(pointerDownEvent: any, itemModel?: any): void;
|
918
|
-
onPointerUp: any;
|
919
|
-
tryToStartDrag: any;
|
918
|
+
onPointerUp: (pointerUpEvent: any) => void;
|
919
|
+
tryToStartDrag: (pointerMoveEvent: any) => boolean;
|
920
920
|
}
|
921
921
|
export declare class ElementFactory {
|
922
922
|
static Instance: ElementFactory;
|
923
923
|
creatorHash: any;
|
924
|
-
registerElement(elementType: string, elementCreator:
|
924
|
+
registerElement(elementType: string, elementCreator: (name: string) => IElement): void;
|
925
925
|
clear(): void;
|
926
926
|
unregisterElement(elementType: string, removeFromSerializer?: boolean): void;
|
927
927
|
getAllTypes(): Array<any>;
|
@@ -953,7 +953,7 @@ export declare class FunctionFactory {
|
|
953
953
|
static Instance: FunctionFactory;
|
954
954
|
functionHash: any;
|
955
955
|
isAsyncHash: any;
|
956
|
-
register(name: string, func: any, isAsync?: boolean): void;
|
956
|
+
register(name: string, func: (params: any) => any, isAsync?: boolean): void;
|
957
957
|
unregister(name: string): void;
|
958
958
|
hasFunction(name: string): boolean;
|
959
959
|
isAsyncFunction(name: string): boolean;
|
@@ -1000,7 +1000,7 @@ export declare class JsonMetadata {
|
|
1000
1000
|
classHashProperties: any;
|
1001
1001
|
getObjPropertyValue(obj: any, name: string): any;
|
1002
1002
|
setObjPropertyValue(obj: any, name: string, val: any): void;
|
1003
|
-
addClass(name: string, properties: any, creator?: any, parentName?: string): JsonMetadataClass;
|
1003
|
+
addClass(name: string, properties: any, creator?: (json?: any) => any, parentName?: string): JsonMetadataClass;
|
1004
1004
|
removeClass(name: string): void;
|
1005
1005
|
overrideClassCreatore(name: string, creator: any): void;
|
1006
1006
|
overrideClassCreator(name: string, creator: any): void;
|
@@ -1026,9 +1026,9 @@ export declare class JsonMetadata {
|
|
1026
1026
|
generateSchema(className?: string): any;
|
1027
1027
|
}
|
1028
1028
|
export declare class JsonMetadataClass {
|
1029
|
-
constructor(name: string, properties: any, creator?: any, parentName?: string);
|
1029
|
+
constructor(name: string, properties: any, creator?: (json?: any) => any, parentName?: string);
|
1030
1030
|
name: string;
|
1031
|
-
creator: any;
|
1031
|
+
creator: (json?: any) => any;
|
1032
1032
|
parentName: string;
|
1033
1033
|
static requiredSymbol: string;
|
1034
1034
|
static typeSymbol: string;
|
@@ -1052,7 +1052,7 @@ export declare class JsonObject {
|
|
1052
1052
|
}
|
1053
1053
|
export declare class LogoImage extends React.Component<ILogoImageProps, any> {
|
1054
1054
|
constructor(props: ILogoImageProps);
|
1055
|
-
render():
|
1055
|
+
render(): JSX.Element;
|
1056
1056
|
}
|
1057
1057
|
export declare class MatrixCells {
|
1058
1058
|
constructor(cellsOwner: IMatrixCellsOwner);
|
@@ -1088,7 +1088,7 @@ export declare class MatrixDropdownCell {
|
|
1088
1088
|
runCondition(values: any, properties: any): void;
|
1089
1089
|
}
|
1090
1090
|
export declare class Operand {
|
1091
|
-
toString(func?:
|
1091
|
+
toString(func?: (op: Operand) => string): string;
|
1092
1092
|
getType(): string;
|
1093
1093
|
evaluate(processValue?: ProcessValue): any;
|
1094
1094
|
setVariables(variables: any): any;
|
@@ -1149,7 +1149,7 @@ export declare class QuestionFactory {
|
|
1149
1149
|
static get DefaultRows(): any;
|
1150
1150
|
static get DefaultMutlipleTextItems(): any;
|
1151
1151
|
creatorHash: any;
|
1152
|
-
registerQuestion(questionType: string, questionCreator:
|
1152
|
+
registerQuestion(questionType: string, questionCreator: (name: string) => Question): void;
|
1153
1153
|
unregisterElement(elementType: string): void;
|
1154
1154
|
clear(): void;
|
1155
1155
|
getAllTypes(): Array<any>;
|
@@ -1198,24 +1198,24 @@ export declare class QuestionMatrixDropdownRenderedCell {
|
|
1198
1198
|
export declare class ReactElementFactory {
|
1199
1199
|
static Instance: ReactElementFactory;
|
1200
1200
|
creatorHash: any;
|
1201
|
-
registerElement(elementType: string, elementCreator: any): void;
|
1201
|
+
registerElement(elementType: string, elementCreator: (props: any) => JSX.Element): void;
|
1202
1202
|
getAllTypes(): Array<any>;
|
1203
1203
|
isElementRegistered(elementType: string): boolean;
|
1204
|
-
createElement(elementType: string, params: any):
|
1204
|
+
createElement(elementType: string, params: any): JSX.Element;
|
1205
1205
|
}
|
1206
1206
|
export declare class ReactQuestionFactory {
|
1207
1207
|
static Instance: ReactQuestionFactory;
|
1208
1208
|
creatorHash: any;
|
1209
|
-
registerQuestion(questionType: string, questionCreator:
|
1209
|
+
registerQuestion(questionType: string, questionCreator: (name: string) => JSX.Element): void;
|
1210
1210
|
getAllTypes(): Array<any>;
|
1211
|
-
createQuestion(questionType: string, params: any):
|
1211
|
+
createQuestion(questionType: string, params: any): JSX.Element;
|
1212
1212
|
}
|
1213
1213
|
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:
|
1214
|
+
static wrapRow(survey: any, element: JSX.Element, row: any): JSX.Element;
|
1215
|
+
static wrapElement(survey: any, element: JSX.Element, question: any): JSX.Element;
|
1216
|
+
static wrapQuestionContent(survey: any, element: JSX.Element, question: any): JSX.Element;
|
1217
|
+
static wrapItemValue(survey: any, element: JSX.Element, question: any, item: any): JSX.Element;
|
1218
|
+
static wrapMatrixCell(survey: any, element: JSX.Element, cell: any, reason?: string): JSX.Element;
|
1219
1219
|
}
|
1220
1220
|
export declare class RendererFactory {
|
1221
1221
|
static Instance: RendererFactory;
|
@@ -1235,7 +1235,7 @@ export declare class ResponsivityManager {
|
|
1235
1235
|
separatorAddConst: number;
|
1236
1236
|
paddingSizeConst: number;
|
1237
1237
|
protected recalcMinDimensionConst: boolean;
|
1238
|
-
getComputedStyle: any;
|
1238
|
+
getComputedStyle: (elt: JSX.Element) => any;
|
1239
1239
|
protected getDimensions(element: any): IDimensions;
|
1240
1240
|
protected getAvailableSpace(): number;
|
1241
1241
|
protected calcItemSize(item: any): number;
|
@@ -1244,7 +1244,7 @@ export declare class ResponsivityManager {
|
|
1244
1244
|
export declare class Skeleton extends React.Component<any, any> {
|
1245
1245
|
constructor(props: any);
|
1246
1246
|
constructor(props: any, context: any);
|
1247
|
-
render():
|
1247
|
+
render(): JSX.Element;
|
1248
1248
|
}
|
1249
1249
|
export declare class StylesManager {
|
1250
1250
|
constructor();
|
@@ -1263,11 +1263,11 @@ export declare class StylesManager {
|
|
1263
1263
|
}
|
1264
1264
|
export declare class SurveyActionBarSeparator extends React.Component<any, any> {
|
1265
1265
|
constructor(props: any);
|
1266
|
-
render():
|
1266
|
+
render(): JSX.Element;
|
1267
1267
|
}
|
1268
1268
|
export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
1269
1269
|
constructor(props: any);
|
1270
|
-
static renderLocString(locStr: any, style?: any, key?: string):
|
1270
|
+
static renderLocString(locStr: any, style?: any, key?: string): JSX.Element;
|
1271
1271
|
changedStatePropNameValue: string;
|
1272
1272
|
componentDidMount(): void;
|
1273
1273
|
componentWillUnmount(): void;
|
@@ -1276,24 +1276,24 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
|
1276
1276
|
protected allowComponentUpdate(): void;
|
1277
1277
|
protected denyComponentUpdate(): void;
|
1278
1278
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
1279
|
-
render():
|
1280
|
-
protected wrapElement(element:
|
1279
|
+
render(): JSX.Element;
|
1280
|
+
protected wrapElement(element: JSX.Element): JSX.Element;
|
1281
1281
|
protected get isRendering(): boolean;
|
1282
1282
|
protected getRenderedElements(): Array<Base>;
|
1283
1283
|
protected canRender(): boolean;
|
1284
|
-
protected renderElement():
|
1284
|
+
protected renderElement(): JSX.Element;
|
1285
1285
|
protected get changedStatePropName(): string;
|
1286
1286
|
protected getStateElements(): Array<Base>;
|
1287
1287
|
protected getStateElement(): Base;
|
1288
1288
|
protected get isDisplayMode(): boolean;
|
1289
|
-
protected renderLocString(locStr: any, style?: any):
|
1289
|
+
protected renderLocString(locStr: any, style?: any): JSX.Element;
|
1290
1290
|
protected canUsePropInState(key: string): boolean;
|
1291
1291
|
}
|
1292
1292
|
export declare class SurveyElementHeader extends React.Component<any, any> {
|
1293
1293
|
constructor(props: any);
|
1294
1294
|
constructor(props: any, context: any);
|
1295
|
-
render():
|
1296
|
-
protected renderDescription():
|
1295
|
+
render(): JSX.Element;
|
1296
|
+
protected renderDescription(): JSX.Element;
|
1297
1297
|
}
|
1298
1298
|
export declare class SurveyError {
|
1299
1299
|
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
@@ -1310,22 +1310,22 @@ export declare class SurveyHeader extends React.Component<ISurveyHeaderProps, an
|
|
1310
1310
|
constructor(props: ISurveyHeaderProps);
|
1311
1311
|
componentDidMount(): void;
|
1312
1312
|
componentWillUnmount(): void;
|
1313
|
-
render():
|
1313
|
+
render(): JSX.Element;
|
1314
1314
|
}
|
1315
1315
|
export declare class SurveyLocStringEditor extends React.Component<any, any> {
|
1316
1316
|
constructor(props: any);
|
1317
1317
|
componentDidMount(): void;
|
1318
1318
|
componentWillUnmount(): void;
|
1319
|
-
onInput: any;
|
1320
|
-
onClick: any;
|
1321
|
-
render():
|
1319
|
+
onInput: (event: any) => void;
|
1320
|
+
onClick: (event: any) => void;
|
1321
|
+
render(): JSX.Element;
|
1322
1322
|
}
|
1323
1323
|
export declare class SurveyLocStringViewer extends React.Component<any, any> {
|
1324
1324
|
constructor(props: any);
|
1325
1325
|
componentDidMount(): void;
|
1326
1326
|
componentWillUnmount(): void;
|
1327
1327
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
1328
|
-
render():
|
1328
|
+
render(): JSX.Element;
|
1329
1329
|
}
|
1330
1330
|
export declare class SurveyNavigationBase extends React.Component<any, any> {
|
1331
1331
|
constructor(props: any);
|
@@ -1361,7 +1361,7 @@ export declare class SvgIcon extends React.Component<any, any> {
|
|
1361
1361
|
svgIconRef: any;
|
1362
1362
|
updateSvg(): void;
|
1363
1363
|
componentDidUpdate(): void;
|
1364
|
-
render():
|
1364
|
+
render(): JSX.Element;
|
1365
1365
|
componentDidMount(): void;
|
1366
1366
|
}
|
1367
1367
|
export declare class SvgIconData {
|
@@ -1387,7 +1387,7 @@ export declare class SyntaxError {
|
|
1387
1387
|
}
|
1388
1388
|
export declare class TextPreProcessor {
|
1389
1389
|
_unObservableValues: any;
|
1390
|
-
onProcess:
|
1390
|
+
onProcess: (textValue: TextPreProcessorValue) => void;
|
1391
1391
|
process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
|
1392
1392
|
processValue(name: string, returnDisplayValue: boolean): TextPreProcessorValue;
|
1393
1393
|
get hasAllValuesOnLastRun(): boolean;
|
@@ -1409,23 +1409,23 @@ export declare class TitleActions extends React.Component<any, any> {
|
|
1409
1409
|
constructor(props: any, context: any);
|
1410
1410
|
protected get cssClasses(): any;
|
1411
1411
|
protected get element(): any;
|
1412
|
-
render():
|
1412
|
+
render(): JSX.Element;
|
1413
1413
|
}
|
1414
1414
|
export declare class TitleContent extends React.Component<any, any> {
|
1415
1415
|
constructor(props: any);
|
1416
|
-
render():
|
1416
|
+
render(): JSX.Element;
|
1417
1417
|
protected renderTitleSpans(element: any, cssClasses: any): Array<Element>;
|
1418
1418
|
}
|
1419
1419
|
export declare class TitleElement extends React.Component<any, any> {
|
1420
1420
|
constructor(props: any);
|
1421
|
-
render():
|
1421
|
+
render(): JSX.Element;
|
1422
1422
|
}
|
1423
1423
|
export declare class TooltipManager {
|
1424
1424
|
constructor(tooltipElement: any);
|
1425
1425
|
tooltipElement: any;
|
1426
1426
|
targetElement: any;
|
1427
1427
|
dispose(): void;
|
1428
|
-
onMouseMoveCallback: any;
|
1428
|
+
onMouseMoveCallback: (e: any) => void;
|
1429
1429
|
}
|
1430
1430
|
export declare class ValidatorResult {
|
1431
1431
|
constructor(value: any, error?: SurveyError);
|
@@ -1434,7 +1434,7 @@ export declare class ValidatorResult {
|
|
1434
1434
|
}
|
1435
1435
|
export declare class ValidatorRunner {
|
1436
1436
|
asyncValidators: any;
|
1437
|
-
onAsyncCompleted: any;
|
1437
|
+
onAsyncCompleted: (errors: any) => void;
|
1438
1438
|
run(owner: IValidatorOwner): Array<SurveyError>;
|
1439
1439
|
}
|
1440
1440
|
export declare class XmlParser {
|
@@ -1450,12 +1450,12 @@ export declare class dxSurveyService {
|
|
1450
1450
|
constructor();
|
1451
1451
|
static get serviceUrl(): string;
|
1452
1452
|
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;
|
1453
|
+
loadSurvey(surveyId: string, onLoad: (success: boolean, result: string, response: any) => void): void;
|
1454
|
+
getSurveyJsonAndIsCompleted(surveyId: string, clientId: string, onLoad: (success: boolean, surveyJson: any, result: string, response: any) => void): void;
|
1455
|
+
sendResult(postId: string, result: any, onSendResult: (success: boolean, response: any, request?: any) => void, clientId?: string, isPartialCompleted?: boolean): void;
|
1456
|
+
sendFile(postId: string, file: any, onSendFile: (success: boolean, response: any) => void): void;
|
1457
|
+
getResult(resultId: string, name: string, onGetResult: (success: boolean, data: any, dataList: any, response: any) => void): void;
|
1458
|
+
isCompleted(resultId: string, clientId: string, onIsCompleted: (success: boolean, result: string, response: any) => void): void;
|
1459
1459
|
}
|
1460
1460
|
export declare class Action extends Base implements IAction {
|
1461
1461
|
constructor(innerItem: IAction);
|
@@ -1469,7 +1469,7 @@ export declare class Action extends Base implements IAction {
|
|
1469
1469
|
tooltip: string;
|
1470
1470
|
enabled: boolean;
|
1471
1471
|
showTitle: boolean;
|
1472
|
-
action: any;
|
1472
|
+
action: (context?: any) => void;
|
1473
1473
|
css: string;
|
1474
1474
|
innerCss: string;
|
1475
1475
|
data: any;
|
@@ -1506,7 +1506,7 @@ export declare class ActionContainer<T extends Action = Action> extends Base {
|
|
1506
1506
|
actions: any;
|
1507
1507
|
cssClassesValue: any;
|
1508
1508
|
protected getRenderedActions(): Array<T>;
|
1509
|
-
updateCallback:
|
1509
|
+
updateCallback: (isResetInitialized: boolean) => void;
|
1510
1510
|
containerCss: string;
|
1511
1511
|
protected raiseUpdate(isResetInitialized: boolean): void;
|
1512
1512
|
protected onSet(): void;
|
@@ -1533,7 +1533,7 @@ export declare class ArrayOperand extends Operand {
|
|
1533
1533
|
constructor(values: any);
|
1534
1534
|
values: any;
|
1535
1535
|
getType(): string;
|
1536
|
-
toString(func?:
|
1536
|
+
toString(func?: (op: Operand) => string): string;
|
1537
1537
|
evaluate(processValue?: ProcessValue): Array<any>;
|
1538
1538
|
setVariables(variables: any): void;
|
1539
1539
|
hasFunction(): boolean;
|
@@ -1554,7 +1554,7 @@ export declare class BinaryOperand extends Operand {
|
|
1554
1554
|
get rightOperand(): any;
|
1555
1555
|
protected isContentEqual(op: Operand): boolean;
|
1556
1556
|
evaluate(processValue?: ProcessValue): any;
|
1557
|
-
toString(func?:
|
1557
|
+
toString(func?: (op: Operand) => string): string;
|
1558
1558
|
setVariables(variables: any): void;
|
1559
1559
|
hasFunction(): boolean;
|
1560
1560
|
hasAsyncFunction(): boolean;
|
@@ -1614,20 +1614,20 @@ export declare class ChoicesRestful extends Base {
|
|
1614
1614
|
static clearCache(): void;
|
1615
1615
|
static itemsResult: any;
|
1616
1616
|
static sendingSameRequests: any;
|
1617
|
-
static onBeforeSendRequest: any;
|
1617
|
+
static onBeforeSendRequest: (sender: ChoicesRestful, options: any) => void;
|
1618
1618
|
lastObjHash: string;
|
1619
1619
|
isRunningValue: boolean;
|
1620
1620
|
protected processedUrl: string;
|
1621
1621
|
protected processedPath: string;
|
1622
1622
|
isUsingCacheFromUrl: boolean;
|
1623
|
-
onProcessedUrlCallback:
|
1624
|
-
getResultCallback: any;
|
1623
|
+
onProcessedUrlCallback: (url: string, path: string) => void;
|
1624
|
+
getResultCallback: (items: any) => void;
|
1625
1625
|
beforeSendRequestCallback: any;
|
1626
|
-
updateResultCallback: any;
|
1627
|
-
getItemValueCallback: any;
|
1626
|
+
updateResultCallback: (items: any, serverResult: any) => any;
|
1627
|
+
getItemValueCallback: (item: any) => any;
|
1628
1628
|
error: SurveyError;
|
1629
1629
|
owner: IQuestion;
|
1630
|
-
createItemValue: any;
|
1630
|
+
createItemValue: (value: any) => ItemValue;
|
1631
1631
|
getSurvey(live?: boolean): ISurvey;
|
1632
1632
|
run(textProcessor?: ITextProcessor): void;
|
1633
1633
|
get isUsingCache(): boolean;
|
@@ -1681,14 +1681,14 @@ export declare class ChoicesRestful extends Base {
|
|
1681
1681
|
}
|
1682
1682
|
export declare class ConditionRunner extends ExpressionRunnerBase {
|
1683
1683
|
constructor(expression: string);
|
1684
|
-
onRunComplete:
|
1684
|
+
onRunComplete: (result: boolean) => void;
|
1685
1685
|
run(values: any, properties?: any): boolean;
|
1686
1686
|
protected doOnComplete(res: any): void;
|
1687
1687
|
}
|
1688
1688
|
export declare class Const extends Operand {
|
1689
1689
|
constructor(value: any);
|
1690
1690
|
getType(): string;
|
1691
|
-
toString(func?:
|
1691
|
+
toString(func?: (op: Operand) => string): string;
|
1692
1692
|
get correctValue(): any;
|
1693
1693
|
evaluate(): any;
|
1694
1694
|
setVariables(variables: any): void;
|
@@ -1725,10 +1725,10 @@ export declare class DragDropCore<T> extends Base {
|
|
1725
1725
|
currentX: number;
|
1726
1726
|
currentY: number;
|
1727
1727
|
savedTargetNode: any;
|
1728
|
-
stopLongTapIfMoveEnough: any;
|
1729
|
-
stopLongTap: any;
|
1730
|
-
onContextMenu: any;
|
1731
|
-
dragOver: any;
|
1728
|
+
stopLongTapIfMoveEnough: (pointerMoveEvent: any) => void;
|
1729
|
+
stopLongTap: (e?: any) => void;
|
1730
|
+
onContextMenu: (event: any) => void;
|
1731
|
+
dragOver: (event: any) => void;
|
1732
1732
|
drop: any;
|
1733
1733
|
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
1734
1734
|
protected onStartDrag(): void;
|
@@ -1739,8 +1739,8 @@ export declare class DragDropCore<T> extends Base {
|
|
1739
1739
|
protected afterDragOver(dropTargetNode?: any): void;
|
1740
1740
|
getGhostPosition(item: any): string;
|
1741
1741
|
protected isDropTargetValid(dropTarget: any, dropTargetNode?: any): boolean;
|
1742
|
-
handlePointerCancel: any;
|
1743
|
-
protected handleEscapeButton: any;
|
1742
|
+
handlePointerCancel: (event: any) => void;
|
1743
|
+
protected handleEscapeButton: (event: any) => void;
|
1744
1744
|
protected banDropHere: any;
|
1745
1745
|
protected doBanDropHere: any;
|
1746
1746
|
protected getDataAttributeValueByNode(node: any): any;
|
@@ -1762,8 +1762,8 @@ export declare class ExceedSizeError extends SurveyError {
|
|
1762
1762
|
}
|
1763
1763
|
export declare class ExpressionExecutor implements IExpresionExecutor {
|
1764
1764
|
constructor(expression: string);
|
1765
|
-
static createExpressionExecutor:
|
1766
|
-
onComplete: any;
|
1765
|
+
static createExpressionExecutor: (expression: string) => IExpresionExecutor;
|
1766
|
+
onComplete: (res: any) => void;
|
1767
1767
|
expressionValue: string;
|
1768
1768
|
operand: Operand;
|
1769
1769
|
processValue: ProcessValue;
|
@@ -1801,7 +1801,7 @@ export declare class ExpressionItem extends Base implements ILocalizableOwner {
|
|
1801
1801
|
}
|
1802
1802
|
export declare class ExpressionRunner extends ExpressionRunnerBase {
|
1803
1803
|
constructor(expression: string);
|
1804
|
-
onRunComplete: any;
|
1804
|
+
onRunComplete: (result: any) => void;
|
1805
1805
|
run(values: any, properties?: any): any;
|
1806
1806
|
protected doOnComplete(res: any): void;
|
1807
1807
|
}
|
@@ -1813,7 +1813,7 @@ export declare class FunctionOperand extends Operand {
|
|
1813
1813
|
getType(): string;
|
1814
1814
|
evaluateAsync(processValue: ProcessValue): void;
|
1815
1815
|
evaluate(processValue?: ProcessValue): any;
|
1816
|
-
toString(func?:
|
1816
|
+
toString(func?: (op: Operand) => string): string;
|
1817
1817
|
setVariables(variables: any): void;
|
1818
1818
|
get isReady(): boolean;
|
1819
1819
|
hasFunction(): boolean;
|
@@ -1844,8 +1844,8 @@ export declare class ItemValue extends Base implements ILocalizableOwner, IShort
|
|
1844
1844
|
static getItemByValue(items: any, val: any): ItemValue;
|
1845
1845
|
static getTextOrHtmlByValue(items: any, val: any): string;
|
1846
1846
|
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?:
|
1847
|
+
static runConditionsForItems(items: any, filteredItems: any, runner: ConditionRunner, values: any, properties: any, useItemExpression?: boolean, onItemCallBack?: (item: ItemValue, val: boolean) => boolean): boolean;
|
1848
|
+
static runEnabledConditionsForItems(items: any, runner: ConditionRunner, values: any, properties: any, onItemCallBack?: (item: ItemValue, val: boolean) => boolean): boolean;
|
1849
1849
|
ownerPropertyName: string;
|
1850
1850
|
locTextValue: LocalizableString;
|
1851
1851
|
isVisibleValue: boolean;
|
@@ -1898,7 +1898,7 @@ export declare class JsonMissingTypeErrorBase extends JsonError {
|
|
1898
1898
|
export declare class JsonObjectProperty implements IObject {
|
1899
1899
|
constructor(classInfo: JsonMetadataClass, name: string, isRequired?: boolean);
|
1900
1900
|
name: string;
|
1901
|
-
static getItemValuesDefaultValue: any;
|
1901
|
+
static getItemValuesDefaultValue: (val: any, type: string) => any;
|
1902
1902
|
static Index: number;
|
1903
1903
|
static mergableValues: any;
|
1904
1904
|
idValue: number;
|
@@ -1911,7 +1911,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
1911
1911
|
readOnlyValue: boolean;
|
1912
1912
|
visibleValue: boolean;
|
1913
1913
|
isLocalizableValue: boolean;
|
1914
|
-
choicesfunc: any;
|
1914
|
+
choicesfunc: (obj: any, choicesCallback: any) => any;
|
1915
1915
|
dependedProperties: any;
|
1916
1916
|
isSerializable: boolean;
|
1917
1917
|
isLightSerializable: boolean;
|
@@ -1935,11 +1935,11 @@ export declare class JsonObjectProperty implements IObject {
|
|
1935
1935
|
minValue: any;
|
1936
1936
|
dataListValue: any;
|
1937
1937
|
layout: string;
|
1938
|
-
onGetValue: any;
|
1939
|
-
onSetValue: any;
|
1940
|
-
visibleIf: any;
|
1941
|
-
onExecuteExpression: any;
|
1942
|
-
onPropertyEditorUpdate: any;
|
1938
|
+
onGetValue: (obj: any) => any;
|
1939
|
+
onSetValue: (obj: any, value: any, jsonConv: JsonObject) => any;
|
1940
|
+
visibleIf: (obj: any) => boolean;
|
1941
|
+
onExecuteExpression: (obj: any, res: any) => any;
|
1942
|
+
onPropertyEditorUpdate: (obj: any, propEditor: any) => any;
|
1943
1943
|
get id(): number;
|
1944
1944
|
get classInfo(): JsonMetadataClass;
|
1945
1945
|
get type(): string;
|
@@ -1965,7 +1965,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
1965
1965
|
get choices(): any;
|
1966
1966
|
get hasChoices(): boolean;
|
1967
1967
|
getChoices(obj: any, choicesCallback?: any): Array<any>;
|
1968
|
-
setChoices(value: any, valueFunc?: any): void;
|
1968
|
+
setChoices(value: any, valueFunc?: (obj: any) => any): void;
|
1969
1969
|
getBaseValue(): string;
|
1970
1970
|
setBaseValue(val: any): void;
|
1971
1971
|
get readOnly(): boolean;
|
@@ -2001,19 +2001,19 @@ export declare class KeyDuplicationError extends SurveyError {
|
|
2001
2001
|
export declare class List extends SurveyElementBase<IListProps, any> {
|
2002
2002
|
constructor(props: any);
|
2003
2003
|
get model(): any;
|
2004
|
-
handleKeydown: any;
|
2004
|
+
handleKeydown: (event: any) => void;
|
2005
2005
|
getStateElement(): any;
|
2006
|
-
renderElement():
|
2006
|
+
renderElement(): JSX.Element;
|
2007
2007
|
renderItems(): any;
|
2008
|
-
searchElementContent():
|
2008
|
+
searchElementContent(): JSX.Element;
|
2009
2009
|
}
|
2010
2010
|
export declare class ListItem extends SurveyElementBase<IListItemProps, any> {
|
2011
2011
|
constructor(props: any);
|
2012
2012
|
get model(): any;
|
2013
2013
|
get item(): any;
|
2014
|
-
handleKeydown: any;
|
2014
|
+
handleKeydown: (event: any) => void;
|
2015
2015
|
getStateElement(): any;
|
2016
|
-
render():
|
2016
|
+
render(): JSX.Element;
|
2017
2017
|
}
|
2018
2018
|
/*
|
2019
2019
|
* The class represents the string that supports multi-languages and markdown.
|
@@ -2034,10 +2034,10 @@ export declare class LocalizableString implements ILocalizableString {
|
|
2034
2034
|
renderedText: string;
|
2035
2035
|
calculatedTextValue: string;
|
2036
2036
|
localizationName: string;
|
2037
|
-
onGetTextCallback:
|
2037
|
+
onGetTextCallback: (str: string) => string;
|
2038
2038
|
onGetDefaultTextCallback: any;
|
2039
|
-
onGetLocalizationTextCallback:
|
2040
|
-
onStrChanged:
|
2039
|
+
onGetLocalizationTextCallback: (str: string) => string;
|
2040
|
+
onStrChanged: (oldValue: string, newValue: string) => void;
|
2041
2041
|
onSearchChanged: any;
|
2042
2042
|
sharedData: LocalizableString;
|
2043
2043
|
searchText: string;
|
@@ -2076,7 +2076,7 @@ export declare class LocalizableStrings implements ILocalizableString {
|
|
2076
2076
|
constructor(owner: ILocalizableOwner);
|
2077
2077
|
owner: ILocalizableOwner;
|
2078
2078
|
values: any;
|
2079
|
-
onValueChanged: any;
|
2079
|
+
onValueChanged: (oldValue: any, newValue: any) => void;
|
2080
2080
|
getIsMultiple(): boolean;
|
2081
2081
|
get locale(): string;
|
2082
2082
|
get value(): any;
|
@@ -2160,6 +2160,9 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
2160
2160
|
get totalFormat(): string;
|
2161
2161
|
set totalFormat(val: string);
|
2162
2162
|
get locTotalFormat(): LocalizableString;
|
2163
|
+
get cellHint(): string;
|
2164
|
+
set cellHint(val: string);
|
2165
|
+
get locCellHint(): LocalizableString;
|
2163
2166
|
get renderAs(): string;
|
2164
2167
|
set renderAs(val: string);
|
2165
2168
|
get totalMaximumFractionDigits(): number;
|
@@ -2182,13 +2185,13 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
2182
2185
|
getRendererContext(locStr: LocalizableString): any;
|
2183
2186
|
getProcessedText(text: string): string;
|
2184
2187
|
createCellQuestion(row: MatrixDropdownRowModelBase): Question;
|
2185
|
-
updateCellQuestion(cellQuestion: Question, data: any, onUpdateJson?: any): void;
|
2188
|
+
updateCellQuestion(cellQuestion: Question, data: any, onUpdateJson?: (json: any) => any): void;
|
2186
2189
|
defaultCellTypeChanged(): void;
|
2187
2190
|
protected calcCellQuestionType(row: MatrixDropdownRowModelBase): string;
|
2188
2191
|
protected updateTemplateQuestion(newCellType?: string): void;
|
2189
2192
|
protected createNewQuestion(cellType: string): Question;
|
2190
2193
|
previousChoicesId: string;
|
2191
|
-
protected setQuestionProperties(question: Question, onUpdateJson?: any): void;
|
2194
|
+
protected setQuestionProperties(question: Question, onUpdateJson?: (json: any) => any): void;
|
2192
2195
|
protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
2193
2196
|
}
|
2194
2197
|
export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyImpl, ILocalizableOwner {
|
@@ -2261,7 +2264,7 @@ export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyI
|
|
2261
2264
|
getTextProcessor(): ITextProcessor;
|
2262
2265
|
get rowIndex(): number;
|
2263
2266
|
get editingObj(): Base;
|
2264
|
-
onEditingObjPropertyChanged: any;
|
2267
|
+
onEditingObjPropertyChanged: (sender: Base, options: any) => void;
|
2265
2268
|
editingObjValue: Base;
|
2266
2269
|
dispose(): void;
|
2267
2270
|
}
|
@@ -2280,8 +2283,8 @@ export declare class MatrixRow extends SurveyElementBase<IMAtrixRowProps, any> {
|
|
2280
2283
|
get model(): any;
|
2281
2284
|
get parentMatrix(): any;
|
2282
2285
|
protected getStateElement(): any;
|
2283
|
-
protected onPointerDownHandler: any;
|
2284
|
-
render():
|
2286
|
+
protected onPointerDownHandler: (event: any) => void;
|
2287
|
+
render(): JSX.Element;
|
2285
2288
|
}
|
2286
2289
|
export declare class MatrixRowModel extends Base {
|
2287
2290
|
constructor(item: ItemValue, fullName: string, data: IMatrixData, value: any);
|
@@ -2306,7 +2309,7 @@ export declare class MultipleTextItemModel extends Base implements IValidatorOwn
|
|
2306
2309
|
constructor(name?: any, title?: string);
|
2307
2310
|
editorValue: QuestionTextModel;
|
2308
2311
|
data: IMultipleTextData;
|
2309
|
-
valueChangedCallback: any;
|
2312
|
+
valueChangedCallback: (newValue: any) => void;
|
2310
2313
|
getType(): string;
|
2311
2314
|
get id(): string;
|
2312
2315
|
getOriginalObj(): Base;
|
@@ -2417,7 +2420,7 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
|
|
2417
2420
|
componentDidMount(): void;
|
2418
2421
|
componentWillUnmount(): void;
|
2419
2422
|
shouldComponentUpdate(nextProps: IPopupProps, nextState: any): boolean;
|
2420
|
-
render():
|
2423
|
+
render(): JSX.Element;
|
2421
2424
|
}
|
2422
2425
|
export declare class PopupBaseViewModel extends Base {
|
2423
2426
|
constructor(model: any, targetElement?: any);
|
@@ -2458,19 +2461,19 @@ export declare class PopupBaseViewModel extends Base {
|
|
2458
2461
|
export declare class PopupContainer extends SurveyElementBase<any, any> {
|
2459
2462
|
constructor(props: any);
|
2460
2463
|
prevIsVisible: boolean;
|
2461
|
-
handleKeydown: any;
|
2464
|
+
handleKeydown: (event: any) => void;
|
2462
2465
|
get model(): any;
|
2463
2466
|
protected getStateElement(): any;
|
2464
|
-
clickInside: any;
|
2467
|
+
clickInside: (ev: any) => void;
|
2465
2468
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2466
|
-
renderContainer():
|
2467
|
-
renderPointer():
|
2468
|
-
renderHeader():
|
2469
|
-
renderContent():
|
2470
|
-
renderCancelButton():
|
2471
|
-
renderApplyButton():
|
2472
|
-
renderFooter():
|
2473
|
-
render():
|
2469
|
+
renderContainer(): JSX.Element;
|
2470
|
+
renderPointer(): JSX.Element;
|
2471
|
+
renderHeader(): JSX.Element;
|
2472
|
+
renderContent(): JSX.Element;
|
2473
|
+
renderCancelButton(): JSX.Element;
|
2474
|
+
renderApplyButton(): JSX.Element;
|
2475
|
+
renderFooter(): JSX.Element;
|
2476
|
+
render(): JSX.Element;
|
2474
2477
|
}
|
2475
2478
|
export declare class PopupModel<T = any> extends Base {
|
2476
2479
|
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);
|
@@ -2492,7 +2495,7 @@ export declare class PopupModel<T = any> extends Base {
|
|
2492
2495
|
get isVisible(): boolean;
|
2493
2496
|
set isVisible(val: boolean);
|
2494
2497
|
toggleVisibility(): void;
|
2495
|
-
onVisibilityChanged:
|
2498
|
+
onVisibilityChanged: (isVisible: boolean) => void;
|
2496
2499
|
}
|
2497
2500
|
export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
2498
2501
|
constructor(cssClasses: any, isDetailRow?: boolean);
|
@@ -2577,7 +2580,7 @@ export declare class QuestionRowModel extends Base {
|
|
2577
2580
|
static rowCounter: number;
|
2578
2581
|
protected _scrollableParent: any;
|
2579
2582
|
protected _updateVisibility: any;
|
2580
|
-
startLazyRendering(rowContainerDiv: any, findScrollableContainer?: any): void;
|
2583
|
+
startLazyRendering(rowContainerDiv: any, findScrollableContainer?: (element: any) => any): void;
|
2581
2584
|
ensureVisibility(): void;
|
2582
2585
|
stopLazyRendering(): void;
|
2583
2586
|
idValue: string;
|
@@ -2647,25 +2650,25 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
|
|
2647
2650
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2648
2651
|
componentDidMount(): void;
|
2649
2652
|
componentWillUnmount(): void;
|
2650
|
-
doRender():
|
2651
|
-
protected renderElement():
|
2653
|
+
doRender(): JSX.Element;
|
2654
|
+
protected renderElement(): JSX.Element;
|
2652
2655
|
get css(): any;
|
2653
2656
|
set css(val: any);
|
2654
2657
|
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():
|
2658
|
+
protected renderCompleted(): JSX.Element;
|
2659
|
+
protected renderCompletedBefore(): JSX.Element;
|
2660
|
+
protected renderLoading(): JSX.Element;
|
2661
|
+
protected renderSurvey(): JSX.Element;
|
2662
|
+
protected renderTimerPanel(location: string): JSX.Element;
|
2663
|
+
protected renderPage(page: any): JSX.Element;
|
2664
|
+
protected renderProgress(isTop: boolean): JSX.Element;
|
2665
|
+
protected renderNavigation(navPosition: string): JSX.Element;
|
2666
|
+
protected renderEmptySurvey(): JSX.Element;
|
2664
2667
|
protected createSurvey(newProps: any): void;
|
2665
2668
|
protected updateSurvey(newProps: any, oldProps?: any): void;
|
2666
2669
|
protected setSurveyEvents(): void;
|
2667
|
-
createQuestionElement(question: any):
|
2668
|
-
renderError(key: string, error: any, cssClasses: any):
|
2670
|
+
createQuestionElement(question: any): JSX.Element;
|
2671
|
+
renderError(key: string, error: any, cssClasses: any): JSX.Element;
|
2669
2672
|
questionTitleLocation(): string;
|
2670
2673
|
questionErrorLocation(): string;
|
2671
2674
|
}
|
@@ -2673,7 +2676,7 @@ export declare class SurveyAction extends SurveyElementBase<IActionBarItemProps,
|
|
2673
2676
|
constructor(props: any);
|
2674
2677
|
get item(): any;
|
2675
2678
|
protected getStateElement(): Base;
|
2676
|
-
renderElement():
|
2679
|
+
renderElement(): JSX.Element;
|
2677
2680
|
}
|
2678
2681
|
export declare class SurveyActionBar extends SurveyElementBase<IActionBarProps, any> {
|
2679
2682
|
constructor(props: IActionBarProps);
|
@@ -2689,10 +2692,10 @@ export declare class SurveyActionBarItem extends SurveyElementBase<IActionBarIte
|
|
2689
2692
|
constructor(props: any);
|
2690
2693
|
get item(): any;
|
2691
2694
|
protected getStateElement(): Base;
|
2692
|
-
renderElement():
|
2693
|
-
renderText():
|
2694
|
-
renderButtonContent():
|
2695
|
-
renderInnerButton():
|
2695
|
+
renderElement(): JSX.Element;
|
2696
|
+
renderText(): JSX.Element;
|
2697
|
+
renderButtonContent(): JSX.Element;
|
2698
|
+
renderInnerButton(): JSX.Element;
|
2696
2699
|
}
|
2697
2700
|
export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
|
2698
2701
|
constructor(props: any);
|
@@ -2701,10 +2704,10 @@ export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
|
|
2701
2704
|
get question(): any;
|
2702
2705
|
get item(): any;
|
2703
2706
|
getStateElement(): any;
|
2704
|
-
render():
|
2705
|
-
protected renderIcon():
|
2706
|
-
protected renderInput():
|
2707
|
-
protected renderCaption():
|
2707
|
+
render(): JSX.Element;
|
2708
|
+
protected renderIcon(): JSX.Element;
|
2709
|
+
protected renderInput(): JSX.Element;
|
2710
|
+
protected renderCaption(): JSX.Element;
|
2708
2711
|
}
|
2709
2712
|
/*
|
2710
2713
|
* Base class of SurveyJS Elements and Survey.
|
@@ -2767,35 +2770,35 @@ export declare class SurveyPanelBase extends SurveyElementBase<any, any> {
|
|
2767
2770
|
protected canRender(): boolean;
|
2768
2771
|
renderedRowsCache: any;
|
2769
2772
|
protected renderRows(css: any): Array<Element>;
|
2770
|
-
protected createRow(row: any, css: any):
|
2773
|
+
protected createRow(row: any, css: any): JSX.Element;
|
2771
2774
|
}
|
2772
2775
|
export declare class SurveyProgress extends SurveyNavigationBase {
|
2773
2776
|
constructor(props: any);
|
2774
2777
|
protected get isTop(): boolean;
|
2775
2778
|
protected get progress(): number;
|
2776
2779
|
protected get progressText(): string;
|
2777
|
-
render():
|
2780
|
+
render(): JSX.Element;
|
2778
2781
|
}
|
2779
2782
|
export declare class SurveyProgressButtons extends SurveyNavigationBase {
|
2780
2783
|
constructor(props: any);
|
2781
2784
|
progressButtonsModel: any;
|
2782
2785
|
updateScroller: any;
|
2783
2786
|
listContainerRef: any;
|
2784
|
-
render():
|
2787
|
+
render(): JSX.Element;
|
2785
2788
|
protected getListElements(): Array<Element>;
|
2786
|
-
protected renderListElement(page: any, index: number):
|
2789
|
+
protected renderListElement(page: any, index: number): JSX.Element;
|
2787
2790
|
protected isListElementClickable(index: number): boolean;
|
2788
2791
|
protected getListElementCss(index: number): string;
|
2789
2792
|
protected clickListElement(index: number): void;
|
2790
2793
|
protected getScrollButtonCss(isLeftScroll: boolean): string;
|
2791
|
-
protected clickScrollButton(listContainerElement:
|
2794
|
+
protected clickScrollButton(listContainerElement: JSX.Element, isLeftScroll: boolean): void;
|
2792
2795
|
componentDidMount(): void;
|
2793
2796
|
componentWillUnmount(): void;
|
2794
2797
|
}
|
2795
2798
|
export declare class SurveyQuestion extends SurveyElementBase<any, any> {
|
2796
2799
|
constructor(props: any);
|
2797
2800
|
isNeedFocus: boolean;
|
2798
|
-
static renderQuestionBody(creator: ISurveyCreator, question: any):
|
2801
|
+
static renderQuestionBody(creator: ISurveyCreator, question: any): JSX.Element;
|
2799
2802
|
rootRef: any;
|
2800
2803
|
protected getStateElement(): Base;
|
2801
2804
|
protected get question(): any;
|
@@ -2803,15 +2806,15 @@ export declare class SurveyQuestion extends SurveyElementBase<any, any> {
|
|
2803
2806
|
componentWillUnmount(): void;
|
2804
2807
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2805
2808
|
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):
|
2809
|
+
protected renderQuestionContent(): JSX.Element;
|
2810
|
+
protected renderElement(): JSX.Element;
|
2811
|
+
protected wrapElement(element: JSX.Element): JSX.Element;
|
2812
|
+
protected wrapQuestionContent(element: JSX.Element): JSX.Element;
|
2813
|
+
protected renderQuestion(): JSX.Element;
|
2814
|
+
protected renderDescription(): JSX.Element;
|
2815
|
+
protected renderComment(cssClasses: any): JSX.Element;
|
2816
|
+
protected renderHeader(question: any): JSX.Element;
|
2817
|
+
protected renderErrors(cssClasses: any, location: string): JSX.Element;
|
2815
2818
|
}
|
2816
2819
|
export declare class SurveyQuestionElementBase extends SurveyElementBase<any, any> {
|
2817
2820
|
constructor(props: any);
|
@@ -2826,7 +2829,7 @@ export declare class SurveyQuestionElementBase extends SurveyElementBase<any, an
|
|
2826
2829
|
protected canRender(): boolean;
|
2827
2830
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
2828
2831
|
protected get isDisplayMode(): boolean;
|
2829
|
-
protected wrapCell(cell: any, element:
|
2832
|
+
protected wrapCell(cell: any, element: JSX.Element, reason: string): JSX.Element;
|
2830
2833
|
}
|
2831
2834
|
export declare class SurveyRow extends SurveyElementBase<any, any> {
|
2832
2835
|
constructor(props: any);
|
@@ -2834,16 +2837,16 @@ export declare class SurveyRow extends SurveyElementBase<any, any> {
|
|
2834
2837
|
protected getStateElement(): Base;
|
2835
2838
|
protected get css(): any;
|
2836
2839
|
protected canRender(): boolean;
|
2837
|
-
protected renderElementContent():
|
2838
|
-
protected renderElement():
|
2840
|
+
protected renderElementContent(): JSX.Element;
|
2841
|
+
protected renderElement(): JSX.Element;
|
2839
2842
|
componentDidMount(): void;
|
2840
2843
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
2841
2844
|
componentWillUnmount(): void;
|
2842
|
-
protected createElement(element: any, elementIndex?: number):
|
2845
|
+
protected createElement(element: any, elementIndex?: number): JSX.Element;
|
2843
2846
|
}
|
2844
2847
|
export declare class SurveyTimerModel extends Base {
|
2845
2848
|
constructor(survey: ISurvey);
|
2846
|
-
onTimer:
|
2849
|
+
onTimer: (page: PageModel) => void;
|
2847
2850
|
surveyValue: ISurvey;
|
2848
2851
|
text: string;
|
2849
2852
|
spent: number;
|
@@ -2860,7 +2863,7 @@ export declare class SurveyTimerModel extends Base {
|
|
2860
2863
|
export declare class SurveyValidator extends Base {
|
2861
2864
|
constructor();
|
2862
2865
|
errorOwner: ISurveyErrorOwner;
|
2863
|
-
onAsyncCompleted:
|
2866
|
+
onAsyncCompleted: (result: ValidatorResult) => void;
|
2864
2867
|
getSurvey(live?: boolean): ISurvey;
|
2865
2868
|
get text(): string;
|
2866
2869
|
set text(val: string);
|
@@ -2977,7 +2980,7 @@ export declare class UnaryOperand extends Operand {
|
|
2977
2980
|
get operator(): string;
|
2978
2981
|
get expression(): Operand;
|
2979
2982
|
getType(): string;
|
2980
|
-
toString(func?:
|
2983
|
+
toString(func?: (op: Operand) => string): string;
|
2981
2984
|
protected isContentEqual(op: Operand): boolean;
|
2982
2985
|
evaluate(processValue?: ProcessValue): boolean;
|
2983
2986
|
setVariables(variables: any): void;
|
@@ -3060,8 +3063,8 @@ export declare class ChoicesRestfull extends ChoicesRestful {
|
|
3060
3063
|
static get EncodeParameters(): boolean;
|
3061
3064
|
static set EncodeParameters(val: boolean);
|
3062
3065
|
static clearCache(): void;
|
3063
|
-
static get onBeforeSendRequest(): any;
|
3064
|
-
static set onBeforeSendRequest(val: any);
|
3066
|
+
static get onBeforeSendRequest(): (sender: ChoicesRestful, options: any) => void;
|
3067
|
+
static set onBeforeSendRequest(val: (sender: ChoicesRestful, options: any) => void);
|
3065
3068
|
}
|
3066
3069
|
export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
3067
3070
|
constructor(surveyValue?: ISurvey, creator?: any);
|
@@ -3193,8 +3196,8 @@ export declare class JsonMissingTypeError extends JsonMissingTypeErrorBase {
|
|
3193
3196
|
baseClassName: string;
|
3194
3197
|
}
|
3195
3198
|
export declare class ListModel extends ActionContainer {
|
3196
|
-
constructor(items: any, onItemSelect:
|
3197
|
-
onItemSelect:
|
3199
|
+
constructor(items: any, onItemSelect: (item: Action) => void, allowSelection: boolean, selectedItem?: IAction, onFilteredTextChangedCallback?: (text: string) => void);
|
3200
|
+
onItemSelect: (item: Action) => void;
|
3198
3201
|
allowSelection: boolean;
|
3199
3202
|
denySearch: boolean;
|
3200
3203
|
needFilter: boolean;
|
@@ -3205,11 +3208,11 @@ export declare class ListModel extends ActionContainer {
|
|
3205
3208
|
static MINELEMENTCOUNT: number;
|
3206
3209
|
isItemVisible(item: Action): boolean;
|
3207
3210
|
protected onSet(): void;
|
3208
|
-
selectItem:
|
3209
|
-
isItemDisabled:
|
3210
|
-
isItemSelected:
|
3211
|
-
getItemClass:
|
3212
|
-
getItemIndent: any;
|
3211
|
+
selectItem: (itemValue: Action) => void;
|
3212
|
+
isItemDisabled: (itemValue: Action) => boolean;
|
3213
|
+
isItemSelected: (itemValue: Action) => boolean;
|
3214
|
+
getItemClass: (itemValue: Action) => string;
|
3215
|
+
getItemIndent: (itemValue: any) => string;
|
3213
3216
|
get filteredTextPlaceholder(): any;
|
3214
3217
|
onKeyDown(event: any): void;
|
3215
3218
|
onPointerDown(event: any, item: any): void;
|
@@ -3298,7 +3301,7 @@ export declare class RegexValidator extends SurveyValidator {
|
|
3298
3301
|
export declare class SurveyActionBarItemDropdown extends SurveyActionBarItem {
|
3299
3302
|
constructor(props: any);
|
3300
3303
|
viewModel: any;
|
3301
|
-
renderButtonContent():
|
3304
|
+
renderButtonContent(): JSX.Element;
|
3302
3305
|
componentWillUnmount(): void;
|
3303
3306
|
}
|
3304
3307
|
export declare class SurveyCustomWidget extends SurveyQuestionElementBase {
|
@@ -3308,7 +3311,7 @@ export declare class SurveyCustomWidget extends SurveyQuestionElementBase {
|
|
3308
3311
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
3309
3312
|
componentWillUnmount(): void;
|
3310
3313
|
protected canRender(): boolean;
|
3311
|
-
protected renderElement():
|
3314
|
+
protected renderElement(): JSX.Element;
|
3312
3315
|
}
|
3313
3316
|
/*
|
3314
3317
|
* Base class of SurveyJS Elements.
|
@@ -3525,7 +3528,7 @@ export declare class SurveyElementErrors extends ReactSurveyElement {
|
|
3525
3528
|
tooltipRef: any;
|
3526
3529
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
3527
3530
|
componentWillUnmount(): void;
|
3528
|
-
protected renderElement():
|
3531
|
+
protected renderElement(): JSX.Element;
|
3529
3532
|
}
|
3530
3533
|
/*
|
3531
3534
|
* The `Survey` object contains information about the survey, Pages, Questions, flow logic and etc.
|
@@ -4692,7 +4695,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4692
4695
|
*/
|
4693
4696
|
mergeData(data: any): void;
|
4694
4697
|
setDataCore(data: any): void;
|
4695
|
-
onEditingObjPropertyChanged: any;
|
4698
|
+
onEditingObjPropertyChanged: (sender: Base, options: any) => void;
|
4696
4699
|
get editingObj(): Base;
|
4697
4700
|
set editingObj(val: Base);
|
4698
4701
|
get isEditingSurveyElement(): boolean;
|
@@ -4710,9 +4713,9 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4710
4713
|
getDataValueCore(valuesHash: any, key: string): any;
|
4711
4714
|
setDataValueCore(valuesHash: any, key: string, value: any): void;
|
4712
4715
|
deleteDataValueCore(valuesHash: any, key: string): void;
|
4713
|
-
valueHashGetDataCallback: any;
|
4714
|
-
valueHashSetDataCallback: any;
|
4715
|
-
valueHashDeleteDataCallback: any;
|
4716
|
+
valueHashGetDataCallback: (valuesHash: any, key: string) => any;
|
4717
|
+
valueHashSetDataCallback: (valuesHash: any, key: string, value: any) => void;
|
4718
|
+
valueHashDeleteDataCallback: (valuesHash: any, key: string) => void;
|
4716
4719
|
/*
|
4717
4720
|
* Returns all comments from the data.
|
4718
4721
|
*/
|
@@ -4883,17 +4886,17 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4883
4886
|
* 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.
|
4884
4887
|
* In this case, you should use `onAsyncValidation` parameter, which is a callback function: (hasErrors: boolean) => void
|
4885
4888
|
*/
|
4886
|
-
hasCurrentPageErrors(onAsyncValidation?:
|
4889
|
+
hasCurrentPageErrors(onAsyncValidation?: (hasErrors: boolean) => void): boolean;
|
4887
4890
|
/*
|
4888
4891
|
* Returns `true`, if a page contains an error. If there is an async function in an expression, then the function will return `undefined` value.
|
4889
4892
|
* In this case, you should use the second `onAsyncValidation` parameter, which is a callback function: (hasErrors: boolean) => void
|
4890
4893
|
*/
|
4891
|
-
hasPageErrors(page?: PageModel, onAsyncValidation?:
|
4894
|
+
hasPageErrors(page?: PageModel, onAsyncValidation?: (hasErrors: boolean) => void): boolean;
|
4892
4895
|
/*
|
4893
4896
|
* 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.
|
4894
4897
|
* In this case, you should use the third `onAsyncValidation` parameter, which is a callback function: (hasErrors: boolean) => void
|
4895
4898
|
*/
|
4896
|
-
hasErrors(fireCallback?: boolean, focusOnFirstError?: boolean, onAsyncValidation?:
|
4899
|
+
hasErrors(fireCallback?: boolean, focusOnFirstError?: boolean, onAsyncValidation?: (hasErrors: boolean) => void): boolean;
|
4897
4900
|
/*
|
4898
4901
|
* Checks whether survey elements (pages, panels, and questions) have unique question names.
|
4899
4902
|
* You can check for unique names for individual page and panel (and all their elements) or a question.
|
@@ -5069,19 +5072,19 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5069
5072
|
/*
|
5070
5073
|
* Uploads a file to server.
|
5071
5074
|
*/
|
5072
|
-
uploadFiles(question: IQuestion, name: string, files: any, uploadingCallback: any): void;
|
5075
|
+
uploadFiles(question: IQuestion, name: string, files: any, uploadingCallback: (status: string, data: any) => any): void;
|
5073
5076
|
/*
|
5074
5077
|
* Downloads a file from server
|
5075
5078
|
*/
|
5076
|
-
downloadFile(questionName: string, fileValue: any, callback: any): void;
|
5079
|
+
downloadFile(questionName: string, fileValue: any, callback: (status: string, data: any) => any): void;
|
5077
5080
|
/*
|
5078
5081
|
* Clears files from server.
|
5079
5082
|
*/
|
5080
|
-
clearFiles(question: IQuestion, name: string, value: any, fileName: string, callback: any): void;
|
5083
|
+
clearFiles(question: IQuestion, name: string, value: any, fileName: string, callback: (status: string, data: any) => any): void;
|
5081
5084
|
updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any): Array<ItemValue>;
|
5082
5085
|
loadedChoicesFromServer(question: IQuestion): void;
|
5083
5086
|
protected createSurveyService(): dxSurveyService;
|
5084
|
-
protected uploadFilesCore(name: string, files: any, uploadingCallback: any): void;
|
5087
|
+
protected uploadFilesCore(name: string, files: any, uploadingCallback: (status: string, data: any) => any): void;
|
5085
5088
|
getPage(index: number): PageModel;
|
5086
5089
|
/*
|
5087
5090
|
* Adds an existing page to the survey.
|
@@ -5181,7 +5184,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5181
5184
|
setJsonObject(jsonObj: any): void;
|
5182
5185
|
isEndLoadingFromJson: string;
|
5183
5186
|
endLoadingFromJson(): void;
|
5184
|
-
updateNavigationItemCssCallback:
|
5187
|
+
updateNavigationItemCssCallback: (strName?: string) => void;
|
5185
5188
|
protected createNavigationBar(): ActionContainer;
|
5186
5189
|
protected createNavigationActions(): Array<IAction>;
|
5187
5190
|
protected onBeforeCreating(): void;
|
@@ -5375,34 +5378,34 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5375
5378
|
export declare class SurveyMultipleTextItem extends ReactSurveyElement {
|
5376
5379
|
constructor(props: any);
|
5377
5380
|
protected getStateElements(): any;
|
5378
|
-
protected renderElement():
|
5379
|
-
protected renderItemTooltipError(item: any, cssClasses: any):
|
5381
|
+
protected renderElement(): JSX.Element;
|
5382
|
+
protected renderItemTooltipError(item: any, cssClasses: any): JSX.Element;
|
5380
5383
|
}
|
5381
5384
|
export declare class SurveyNavigationButton extends ReactSurveyElement {
|
5382
5385
|
constructor(props: any);
|
5383
5386
|
protected get item(): Action;
|
5384
5387
|
protected canRender(): boolean;
|
5385
|
-
protected renderElement():
|
5388
|
+
protected renderElement(): JSX.Element;
|
5386
5389
|
}
|
5387
5390
|
export declare class SurveyPage extends SurveyPanelBase {
|
5388
5391
|
constructor(props: any);
|
5389
5392
|
protected getPanelBase(): PanelModelBase;
|
5390
5393
|
get page(): any;
|
5391
|
-
protected renderElement():
|
5392
|
-
protected renderTitle():
|
5393
|
-
protected renderDescription():
|
5394
|
+
protected renderElement(): JSX.Element;
|
5395
|
+
protected renderTitle(): JSX.Element;
|
5396
|
+
protected renderDescription(): JSX.Element;
|
5394
5397
|
}
|
5395
5398
|
export declare class SurveyPanel extends SurveyPanelBase {
|
5396
5399
|
constructor(props: any);
|
5397
5400
|
hasBeenExpanded: boolean;
|
5398
5401
|
get panel(): any;
|
5399
|
-
protected renderElement():
|
5400
|
-
protected renderHeader():
|
5401
|
-
protected wrapElement(element:
|
5402
|
-
protected renderContent(style: any, rows: any, className: string):
|
5403
|
-
protected renderTitle():
|
5404
|
-
protected renderDescription():
|
5405
|
-
protected renderBottom():
|
5402
|
+
protected renderElement(): JSX.Element;
|
5403
|
+
protected renderHeader(): JSX.Element;
|
5404
|
+
protected wrapElement(element: JSX.Element): JSX.Element;
|
5405
|
+
protected renderContent(style: any, rows: any, className: string): JSX.Element;
|
5406
|
+
protected renderTitle(): JSX.Element;
|
5407
|
+
protected renderDescription(): JSX.Element;
|
5408
|
+
protected renderBottom(): JSX.Element;
|
5406
5409
|
}
|
5407
5410
|
export declare class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
|
5408
5411
|
constructor(props: any);
|
@@ -5415,11 +5418,11 @@ export declare class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
|
|
5415
5418
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
5416
5419
|
protected doAfterRender(): void;
|
5417
5420
|
protected canRender(): boolean;
|
5418
|
-
protected renderErrors(errorsLocation: string):
|
5419
|
-
protected renderContent():
|
5420
|
-
protected renderElement():
|
5421
|
+
protected renderErrors(errorsLocation: string): JSX.Element;
|
5422
|
+
protected renderContent(): JSX.Element;
|
5423
|
+
protected renderElement(): JSX.Element;
|
5421
5424
|
protected getShowErrors(): boolean;
|
5422
|
-
protected renderQuestion():
|
5425
|
+
protected renderQuestion(): JSX.Element;
|
5423
5426
|
}
|
5424
5427
|
export declare class SurveyQuestionBoolean extends SurveyQuestionElementBase {
|
5425
5428
|
constructor(props: any);
|
@@ -5432,27 +5435,27 @@ export declare class SurveyQuestionBoolean extends SurveyQuestionElementBase {
|
|
5432
5435
|
handleOnLabelClick(event: any, value: boolean): void;
|
5433
5436
|
handleOnKeyDown(event: any): void;
|
5434
5437
|
protected updateDomElement(): void;
|
5435
|
-
protected renderElement():
|
5438
|
+
protected renderElement(): JSX.Element;
|
5436
5439
|
}
|
5437
5440
|
export declare class SurveyQuestionButtonGroup extends SurveyQuestionElementBase {
|
5438
5441
|
constructor(props: any);
|
5439
5442
|
protected get question(): any;
|
5440
5443
|
getStateElement(): any;
|
5441
|
-
render():
|
5444
|
+
render(): JSX.Element;
|
5442
5445
|
renderItems(): any;
|
5443
5446
|
}
|
5444
5447
|
export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
5445
5448
|
constructor(props: any);
|
5446
5449
|
protected get question(): QuestionCheckboxModel;
|
5447
|
-
protected renderElement():
|
5450
|
+
protected renderElement(): JSX.Element;
|
5448
5451
|
protected getHeader(): any;
|
5449
5452
|
protected getFooter(): any;
|
5450
|
-
protected getColumnedBody(cssClasses: any):
|
5453
|
+
protected getColumnedBody(cssClasses: any): JSX.Element;
|
5451
5454
|
protected getColumns(cssClasses: any): any;
|
5452
5455
|
protected getItems(cssClasses: any): Array<any>;
|
5453
5456
|
protected get textStyle(): any;
|
5454
|
-
protected renderOther():
|
5455
|
-
protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string):
|
5457
|
+
protected renderOther(): JSX.Element;
|
5458
|
+
protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): JSX.Element;
|
5456
5459
|
}
|
5457
5460
|
export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
5458
5461
|
constructor(props: any);
|
@@ -5463,36 +5466,36 @@ export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
|
5463
5466
|
protected get isFirst(): any;
|
5464
5467
|
protected get index(): number;
|
5465
5468
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
5466
|
-
handleOnChange: any;
|
5467
|
-
selectAllChanged: any;
|
5469
|
+
handleOnChange: (event: any) => void;
|
5470
|
+
selectAllChanged: (event: any) => void;
|
5468
5471
|
protected canRender(): boolean;
|
5469
|
-
protected renderElement():
|
5472
|
+
protected renderElement(): JSX.Element;
|
5470
5473
|
protected get inputStyle(): any;
|
5471
|
-
protected renderCheckbox(isChecked: boolean, otherItem:
|
5474
|
+
protected renderCheckbox(isChecked: boolean, otherItem: JSX.Element): JSX.Element;
|
5472
5475
|
}
|
5473
5476
|
export declare class SurveyQuestionCommentItem extends ReactSurveyElement {
|
5474
5477
|
constructor(props: any);
|
5475
5478
|
protected canRender(): boolean;
|
5476
|
-
protected renderElement():
|
5479
|
+
protected renderElement(): JSX.Element;
|
5477
5480
|
}
|
5478
5481
|
export declare class SurveyQuestionEmpty extends SurveyQuestionElementBase {
|
5479
5482
|
constructor(props: any);
|
5480
5483
|
protected get question(): any;
|
5481
|
-
protected renderElement():
|
5484
|
+
protected renderElement(): JSX.Element;
|
5482
5485
|
}
|
5483
5486
|
export declare class SurveyQuestionExpression extends SurveyQuestionElementBase {
|
5484
5487
|
constructor(props: any);
|
5485
5488
|
protected get question(): any;
|
5486
|
-
protected renderElement():
|
5489
|
+
protected renderElement(): JSX.Element;
|
5487
5490
|
}
|
5488
5491
|
export declare class SurveyQuestionFile extends SurveyQuestionElementBase {
|
5489
5492
|
constructor(props: any);
|
5490
5493
|
protected get question(): any;
|
5491
|
-
protected renderElement():
|
5492
|
-
protected renderFileDecorator():
|
5493
|
-
protected renderClearButton(className: string):
|
5494
|
-
protected renderFileSign(className: string, val: any):
|
5495
|
-
protected renderPreview():
|
5494
|
+
protected renderElement(): JSX.Element;
|
5495
|
+
protected renderFileDecorator(): JSX.Element;
|
5496
|
+
protected renderClearButton(className: string): JSX.Element;
|
5497
|
+
protected renderFileSign(className: string, val: any): JSX.Element;
|
5498
|
+
protected renderPreview(): JSX.Element;
|
5496
5499
|
}
|
5497
5500
|
export declare class SurveyQuestionHtml extends SurveyQuestionElementBase {
|
5498
5501
|
constructor(props: any);
|
@@ -5501,7 +5504,7 @@ export declare class SurveyQuestionHtml extends SurveyQuestionElementBase {
|
|
5501
5504
|
componentWillUnmount(): void;
|
5502
5505
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
5503
5506
|
protected canRender(): boolean;
|
5504
|
-
protected renderElement():
|
5507
|
+
protected renderElement(): JSX.Element;
|
5505
5508
|
}
|
5506
5509
|
export declare class SurveyQuestionImage extends SurveyQuestionElementBase {
|
5507
5510
|
constructor(props: any);
|
@@ -5509,16 +5512,16 @@ export declare class SurveyQuestionImage extends SurveyQuestionElementBase {
|
|
5509
5512
|
componentWillUnmount(): void;
|
5510
5513
|
protected get question(): any;
|
5511
5514
|
protected canRender(): boolean;
|
5512
|
-
protected renderElement():
|
5515
|
+
protected renderElement(): JSX.Element;
|
5513
5516
|
}
|
5514
5517
|
export declare class SurveyQuestionImagePicker extends SurveyQuestionElementBase {
|
5515
5518
|
constructor(props: any);
|
5516
5519
|
protected get question(): any;
|
5517
|
-
protected renderElement():
|
5520
|
+
protected renderElement(): JSX.Element;
|
5518
5521
|
protected getColumns(cssClasses: any): any;
|
5519
5522
|
protected getItems(cssClasses: any): Array<any>;
|
5520
5523
|
protected get textStyle(): any;
|
5521
|
-
protected renderItem(key: string, item: any, cssClasses: any):
|
5524
|
+
protected renderItem(key: string, item: any, cssClasses: any): JSX.Element;
|
5522
5525
|
}
|
5523
5526
|
export declare class SurveyQuestionImagePickerItem extends ReactSurveyElement {
|
5524
5527
|
constructor(props: any);
|
@@ -5530,83 +5533,83 @@ export declare class SurveyQuestionImagePickerItem extends ReactSurveyElement {
|
|
5530
5533
|
protected get item(): any;
|
5531
5534
|
protected get question(): any;
|
5532
5535
|
handleOnChange(event: any): void;
|
5533
|
-
protected renderElement():
|
5536
|
+
protected renderElement(): JSX.Element;
|
5534
5537
|
}
|
5535
5538
|
export declare class SurveyQuestionMatrix extends SurveyQuestionElementBase {
|
5536
5539
|
constructor(props: any);
|
5537
5540
|
protected get question(): any;
|
5538
5541
|
componentDidMount(): void;
|
5539
5542
|
componentWillUnmount(): void;
|
5540
|
-
protected renderElement():
|
5543
|
+
protected renderElement(): JSX.Element;
|
5541
5544
|
}
|
5542
5545
|
export declare class SurveyQuestionMatrixActionsCell extends ReactSurveyElement {
|
5543
5546
|
constructor(props: any);
|
5544
5547
|
get model(): any;
|
5545
|
-
protected renderElement():
|
5548
|
+
protected renderElement(): JSX.Element;
|
5546
5549
|
}
|
5547
5550
|
export declare class SurveyQuestionMatrixDetailButton extends ReactSurveyElement {
|
5548
5551
|
constructor(props: any);
|
5549
5552
|
protected getStateElement(): any;
|
5550
5553
|
get item(): any;
|
5551
5554
|
handleOnShowHideClick(event: any): void;
|
5552
|
-
protected renderElement():
|
5555
|
+
protected renderElement(): JSX.Element;
|
5553
5556
|
}
|
5554
5557
|
export declare class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElementBase {
|
5555
5558
|
constructor(props: any);
|
5556
5559
|
protected get question(): any;
|
5557
5560
|
componentDidMount(): void;
|
5558
5561
|
componentWillUnmount(): void;
|
5559
|
-
protected renderElement():
|
5560
|
-
renderTableDiv():
|
5561
|
-
renderHeader():
|
5562
|
-
renderFooter():
|
5563
|
-
renderRows():
|
5564
|
-
renderRow(keyValue: any, row: any, cssClasses: any):
|
5565
|
-
renderCell(cell: any, index: number, cssClasses: any):
|
5562
|
+
protected renderElement(): JSX.Element;
|
5563
|
+
renderTableDiv(): JSX.Element;
|
5564
|
+
renderHeader(): JSX.Element;
|
5565
|
+
renderFooter(): JSX.Element;
|
5566
|
+
renderRows(): JSX.Element;
|
5567
|
+
renderRow(keyValue: any, row: any, cssClasses: any): JSX.Element;
|
5568
|
+
renderCell(cell: any, index: number, cssClasses: any): JSX.Element;
|
5566
5569
|
}
|
5567
5570
|
export declare class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
|
5568
5571
|
constructor(props: any);
|
5569
|
-
protected renderElement():
|
5572
|
+
protected renderElement(): JSX.Element;
|
5570
5573
|
}
|
5571
5574
|
export declare class SurveyQuestionMatrixDynamicRemoveButton extends ReactSurveyElement {
|
5572
5575
|
constructor(props: any);
|
5573
5576
|
handleOnRowRemoveClick(event: any): void;
|
5574
|
-
protected renderElement():
|
5577
|
+
protected renderElement(): JSX.Element;
|
5575
5578
|
}
|
5576
5579
|
export declare class SurveyQuestionMatrixRow extends ReactSurveyElement {
|
5577
5580
|
constructor(props: any);
|
5578
5581
|
handleOnChange(event: any): void;
|
5579
|
-
protected wrapCell(cell: any, element:
|
5582
|
+
protected wrapCell(cell: any, element: JSX.Element, reason: string): JSX.Element;
|
5580
5583
|
protected canRender(): boolean;
|
5581
|
-
protected renderElement():
|
5584
|
+
protected renderElement(): JSX.Element;
|
5582
5585
|
generateTds(): any;
|
5583
5586
|
cellClick(row: any, column: any): void;
|
5584
5587
|
}
|
5585
5588
|
export declare class SurveyQuestionMultipleText extends SurveyQuestionElementBase {
|
5586
5589
|
constructor(props: any);
|
5587
5590
|
protected get question(): any;
|
5588
|
-
protected renderElement():
|
5589
|
-
protected renderRow(rowIndex: number, items: any, cssClasses: any):
|
5591
|
+
protected renderElement(): JSX.Element;
|
5592
|
+
protected renderRow(rowIndex: number, items: any, cssClasses: any): JSX.Element;
|
5590
5593
|
}
|
5591
5594
|
export declare class SurveyQuestionOptionItem extends ReactSurveyElement {
|
5592
5595
|
constructor(props: any);
|
5593
5596
|
protected getStateElement(): Base;
|
5594
5597
|
protected canRender(): boolean;
|
5595
|
-
protected renderElement():
|
5598
|
+
protected renderElement(): JSX.Element;
|
5596
5599
|
}
|
5597
5600
|
export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBase {
|
5598
5601
|
constructor(props: any);
|
5599
5602
|
protected get question(): any;
|
5600
5603
|
componentDidMount(): void;
|
5601
5604
|
componentWillUnmount(): void;
|
5602
|
-
protected renderElement():
|
5603
|
-
protected renderNavigator():
|
5604
|
-
protected rendrerPrevButton():
|
5605
|
-
protected rendrerNextButton():
|
5606
|
-
protected renderRange():
|
5607
|
-
protected renderAddRowButton():
|
5608
|
-
protected renderNavigatorV2():
|
5609
|
-
protected renderPlaceholder():
|
5605
|
+
protected renderElement(): JSX.Element;
|
5606
|
+
protected renderNavigator(): JSX.Element;
|
5607
|
+
protected rendrerPrevButton(): JSX.Element;
|
5608
|
+
protected rendrerNextButton(): JSX.Element;
|
5609
|
+
protected renderRange(): JSX.Element;
|
5610
|
+
protected renderAddRowButton(): JSX.Element;
|
5611
|
+
protected renderNavigatorV2(): JSX.Element;
|
5612
|
+
protected renderPlaceholder(): JSX.Element;
|
5610
5613
|
}
|
5611
5614
|
export declare class SurveyQuestionPanelDynamicAction extends ReactSurveyElement {
|
5612
5615
|
constructor(props: any);
|
@@ -5623,55 +5626,55 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
|
5623
5626
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
5624
5627
|
handleOnChange(event: any): void;
|
5625
5628
|
protected canRender(): boolean;
|
5626
|
-
protected renderElement():
|
5629
|
+
protected renderElement(): JSX.Element;
|
5627
5630
|
}
|
5628
5631
|
export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase {
|
5629
5632
|
constructor(props: any);
|
5630
5633
|
protected get question(): any;
|
5631
|
-
protected renderElement():
|
5634
|
+
protected renderElement(): JSX.Element;
|
5632
5635
|
protected getFooter(): any;
|
5633
|
-
protected getColumnedBody(cssClasses: any):
|
5636
|
+
protected getColumnedBody(cssClasses: any): JSX.Element;
|
5634
5637
|
protected getColumns(cssClasses: any): any;
|
5635
5638
|
protected getItems(cssClasses: any): Array<any>;
|
5636
5639
|
protected get textStyle(): any;
|
5637
|
-
protected renderOther(cssClasses: any):
|
5640
|
+
protected renderOther(cssClasses: any): JSX.Element;
|
5638
5641
|
}
|
5639
5642
|
export declare class SurveyQuestionRanking extends SurveyQuestionElementBase {
|
5640
5643
|
constructor(props: any);
|
5641
5644
|
protected get question(): any;
|
5642
|
-
protected renderElement():
|
5645
|
+
protected renderElement(): JSX.Element;
|
5643
5646
|
protected getItems(): Array<any>;
|
5644
|
-
protected renderItem(item: ItemValue, i: number, handleKeydown: any, handlePointerDown: any, cssClasses: any, itemClass: string, question: any):
|
5647
|
+
protected renderItem(item: ItemValue, i: number, handleKeydown: (event: any) => void, handlePointerDown: (event: any) => void, cssClasses: any, itemClass: string, question: any): JSX.Element;
|
5645
5648
|
}
|
5646
5649
|
export declare class SurveyQuestionRankingItem extends ReactSurveyElement {
|
5647
5650
|
constructor(props: any);
|
5648
5651
|
protected get text(): string;
|
5649
5652
|
protected get index(): string;
|
5650
5653
|
protected get indexText(): string;
|
5651
|
-
protected get handleKeydown(): any;
|
5652
|
-
protected get handlePointerDown(): any;
|
5654
|
+
protected get handleKeydown(): (event: any) => void;
|
5655
|
+
protected get handlePointerDown(): (event: any) => void;
|
5653
5656
|
protected get cssClasses(): any;
|
5654
5657
|
protected get itemClass(): string;
|
5655
5658
|
protected get question(): any;
|
5656
|
-
protected renderElement():
|
5659
|
+
protected renderElement(): JSX.Element;
|
5657
5660
|
}
|
5658
5661
|
export declare class SurveyQuestionRating extends SurveyQuestionElementBase {
|
5659
5662
|
constructor(props: any);
|
5660
5663
|
protected get question(): any;
|
5661
5664
|
handleOnClick(event: any): void;
|
5662
|
-
protected renderElement():
|
5663
|
-
protected renderItem(key: string, item: any, index: number, cssClasses: any):
|
5665
|
+
protected renderElement(): JSX.Element;
|
5666
|
+
protected renderItem(key: string, item: any, index: number, cssClasses: any): JSX.Element;
|
5664
5667
|
}
|
5665
5668
|
export declare class SurveyQuestionSignaturePad extends SurveyQuestionElementBase {
|
5666
5669
|
constructor(props: any);
|
5667
5670
|
protected get question(): any;
|
5668
|
-
protected renderElement():
|
5669
|
-
renderCleanButton():
|
5671
|
+
protected renderElement(): JSX.Element;
|
5672
|
+
renderCleanButton(): JSX.Element;
|
5670
5673
|
}
|
5671
5674
|
export declare class SurveyQuestionUncontrolledElement<T> extends SurveyQuestionElementBase {
|
5672
5675
|
constructor(props: any);
|
5673
5676
|
protected get question(): T;
|
5674
|
-
updateValueOnEvent: any;
|
5677
|
+
updateValueOnEvent: (event: any) => void;
|
5675
5678
|
protected setValueCore(newValue: any): void;
|
5676
5679
|
protected getValueCore(): any;
|
5677
5680
|
protected updateDomElement(): void;
|
@@ -5680,7 +5683,7 @@ export declare class SurveyTimerPanel extends ReactSurveyElement {
|
|
5680
5683
|
constructor(props: any);
|
5681
5684
|
protected getStateElement(): Base;
|
5682
5685
|
protected get timerModel(): any;
|
5683
|
-
render():
|
5686
|
+
render(): JSX.Element;
|
5684
5687
|
}
|
5685
5688
|
/*
|
5686
5689
|
* It extends the Trigger base class and add properties required for SurveyJS classes.
|
@@ -5699,9 +5702,9 @@ export declare class SurveyWindow extends Survey {
|
|
5699
5702
|
protected getStateElements(): Array<Base>;
|
5700
5703
|
handleOnExpanded(event: any): void;
|
5701
5704
|
protected canRender(): boolean;
|
5702
|
-
protected renderElement():
|
5703
|
-
protected renderWindowHeader():
|
5704
|
-
protected renderBody():
|
5705
|
+
protected renderElement(): JSX.Element;
|
5706
|
+
protected renderWindowHeader(): JSX.Element;
|
5707
|
+
protected renderBody(): JSX.Element;
|
5705
5708
|
protected createSurvey(newProps: any): void;
|
5706
5709
|
}
|
5707
5710
|
/*
|
@@ -5748,7 +5751,7 @@ export declare class Variable extends Const {
|
|
5748
5751
|
valueInfo: any;
|
5749
5752
|
useValueAsItIs: boolean;
|
5750
5753
|
getType(): string;
|
5751
|
-
toString(func?:
|
5754
|
+
toString(func?: (op: Operand) => string): string;
|
5752
5755
|
get variable(): string;
|
5753
5756
|
evaluate(processValue?: ProcessValue): any;
|
5754
5757
|
setVariables(variables: any): void;
|
@@ -5780,8 +5783,8 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5780
5783
|
elementsValue: any;
|
5781
5784
|
isQuestionsReady: boolean;
|
5782
5785
|
questionsValue: any;
|
5783
|
-
addElementCallback:
|
5784
|
-
removeElementCallback:
|
5786
|
+
addElementCallback: (element: IElement) => void;
|
5787
|
+
removeElementCallback: (element: IElement) => void;
|
5785
5788
|
onGetQuestionTitleLocation: any;
|
5786
5789
|
/*
|
5787
5790
|
* Returns the question type.
|
@@ -6068,7 +6071,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6068
6071
|
customWidgetData: any;
|
6069
6072
|
focusCallback: any;
|
6070
6073
|
surveyLoadCallback: any;
|
6071
|
-
displayValueCallback:
|
6074
|
+
displayValueCallback: (text: string) => string;
|
6072
6075
|
defaultValueRunner: ExpressionRunner;
|
6073
6076
|
isChangingViaDefaultValue: boolean;
|
6074
6077
|
isValueChangedDirectly: boolean;
|
@@ -6077,9 +6080,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6077
6080
|
localeChangedCallback: any;
|
6078
6081
|
validateValueCallback: any;
|
6079
6082
|
questionTitleTemplateCallback: any;
|
6080
|
-
afterRenderQuestionCallback: any;
|
6081
|
-
valueFromDataCallback: any;
|
6082
|
-
valueToDataCallback: any;
|
6083
|
+
afterRenderQuestionCallback: (question: Question, element: any) => any;
|
6084
|
+
valueFromDataCallback: (val: any) => any;
|
6085
|
+
valueToDataCallback: (val: any) => any;
|
6083
6086
|
onGetSurvey: any;
|
6084
6087
|
locProcessedTitle: LocalizableString;
|
6085
6088
|
protected isReadyValue: boolean;
|
@@ -6482,7 +6485,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6482
6485
|
protected getDefaultRunner(runner: ExpressionRunner, expression: string): ExpressionRunner;
|
6483
6486
|
protected setDefaultValue(): void;
|
6484
6487
|
protected isValueExpression(val: any): boolean;
|
6485
|
-
protected setValueAndRunExpression(runner: ExpressionRunner, defaultValue: any, setFunc: any, values?: any, properties?: any): void;
|
6488
|
+
protected setValueAndRunExpression(runner: ExpressionRunner, defaultValue: any, setFunc: (val: any) => void, values?: any, properties?: any): void;
|
6486
6489
|
/*
|
6487
6490
|
* The question comment value.
|
6488
6491
|
*/
|
@@ -6534,7 +6537,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6534
6537
|
protected hasRequiredError(): boolean;
|
6535
6538
|
validatorRunner: ValidatorRunner;
|
6536
6539
|
isRunningValidatorsValue: boolean;
|
6537
|
-
onCompletedAsyncValidators:
|
6540
|
+
onCompletedAsyncValidators: (hasErrors: boolean) => void;
|
6538
6541
|
get isRunningValidators(): boolean;
|
6539
6542
|
protected getIsRunningValidators(): boolean;
|
6540
6543
|
protected runValidators(): Array<SurveyError>;
|
@@ -6606,53 +6609,53 @@ export declare class SurveyFlowPanel extends SurveyPanel {
|
|
6606
6609
|
protected renderQuestion(question: any): string;
|
6607
6610
|
protected renderRows(): Array<Element>;
|
6608
6611
|
renderedIndex: number;
|
6609
|
-
protected renderHtml():
|
6612
|
+
protected renderHtml(): JSX.Element;
|
6610
6613
|
protected renderNodes(domNodes: any): Array<Element>;
|
6611
|
-
protected renderParentNode(node: any):
|
6612
|
-
protected renderNode(node: any):
|
6613
|
-
protected renderContent(style: any, rows: any):
|
6614
|
+
protected renderParentNode(node: any): JSX.Element;
|
6615
|
+
protected renderNode(node: any): JSX.Element;
|
6616
|
+
protected renderContent(style: any, rows: any): JSX.Element;
|
6614
6617
|
}
|
6615
6618
|
export declare class SurveyMultipleTextItemEditor extends SurveyQuestionAndErrorsWrapped {
|
6616
6619
|
constructor(props: any);
|
6617
|
-
protected renderElement():
|
6620
|
+
protected renderElement(): JSX.Element;
|
6618
6621
|
}
|
6619
6622
|
export declare class SurveyQuestionAndErrorsCell extends SurveyQuestionAndErrorsWrapped {
|
6620
6623
|
constructor(props: any);
|
6621
6624
|
protected cellRef: any;
|
6622
6625
|
componentWillUnmount(): void;
|
6623
|
-
protected renderElement():
|
6626
|
+
protected renderElement(): JSX.Element;
|
6624
6627
|
protected getCellStyle(): any;
|
6625
6628
|
protected getHeaderText(): string;
|
6626
|
-
protected wrapCell(cell: any, element:
|
6629
|
+
protected wrapCell(cell: any, element: JSX.Element): JSX.Element;
|
6627
6630
|
}
|
6628
6631
|
export declare class SurveyQuestionBooleanCheckbox extends SurveyQuestionBoolean {
|
6629
6632
|
constructor(props: any);
|
6630
|
-
protected renderElement():
|
6633
|
+
protected renderElement(): JSX.Element;
|
6631
6634
|
}
|
6632
6635
|
export declare class SurveyQuestionBooleanRadio extends SurveyQuestionBoolean {
|
6633
6636
|
constructor(props: any);
|
6634
|
-
handleOnChange: any;
|
6635
|
-
protected renderElement():
|
6637
|
+
handleOnChange: (event: any) => void;
|
6638
|
+
protected renderElement(): JSX.Element;
|
6636
6639
|
}
|
6637
6640
|
export declare class SurveyQuestionComment extends SurveyQuestionUncontrolledElement<QuestionCommentModel> {
|
6638
6641
|
constructor(props: any);
|
6639
|
-
protected renderElement():
|
6642
|
+
protected renderElement(): JSX.Element;
|
6640
6643
|
}
|
6641
6644
|
export declare class SurveyQuestionComposite extends SurveyQuestionUncontrolledElement<QuestionCompositeModel> {
|
6642
6645
|
constructor(props: any);
|
6643
6646
|
protected canRender(): boolean;
|
6644
|
-
protected renderElement():
|
6647
|
+
protected renderElement(): JSX.Element;
|
6645
6648
|
}
|
6646
6649
|
export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElement<QuestionCustomModel> {
|
6647
6650
|
constructor(props: any);
|
6648
6651
|
protected getStateElements(): Array<Base>;
|
6649
|
-
protected renderElement():
|
6652
|
+
protected renderElement(): JSX.Element;
|
6650
6653
|
}
|
6651
6654
|
export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontrolledElement<T> {
|
6652
6655
|
constructor(props: any);
|
6653
6656
|
protected setValueCore(newValue: any): void;
|
6654
6657
|
protected getValueCore(): any;
|
6655
|
-
protected renderSelect(cssClasses: any):
|
6658
|
+
protected renderSelect(cssClasses: any): JSX.Element;
|
6656
6659
|
}
|
6657
6660
|
export declare class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {
|
6658
6661
|
constructor(props: any);
|
@@ -6661,44 +6664,44 @@ export declare class SurveyQuestionMatrixDynamic extends SurveyQuestionMatrixDro
|
|
6661
6664
|
constructor(props: any);
|
6662
6665
|
protected get matrix(): any;
|
6663
6666
|
handleOnRowAddClick(event: any): void;
|
6664
|
-
protected renderElement():
|
6665
|
-
protected renderAddRowButtonOnTop(cssClasses: any):
|
6666
|
-
protected renderAddRowButtonOnBottom(cssClasses: any):
|
6667
|
-
protected renderNoRowsContent(cssClasses: any):
|
6668
|
-
protected renderAddRowButton(cssClasses: any, isEmptySection?: boolean):
|
6667
|
+
protected renderElement(): JSX.Element;
|
6668
|
+
protected renderAddRowButtonOnTop(cssClasses: any): JSX.Element;
|
6669
|
+
protected renderAddRowButtonOnBottom(cssClasses: any): JSX.Element;
|
6670
|
+
protected renderNoRowsContent(cssClasses: any): JSX.Element;
|
6671
|
+
protected renderAddRowButton(cssClasses: any, isEmptySection?: boolean): JSX.Element;
|
6669
6672
|
}
|
6670
6673
|
export declare class SurveyQuestionPanelDynamicAddButton extends SurveyQuestionPanelDynamicAction {
|
6671
6674
|
constructor(props: any);
|
6672
|
-
protected handleClick: any;
|
6673
|
-
protected renderElement():
|
6675
|
+
protected handleClick: (event: any) => void;
|
6676
|
+
protected renderElement(): JSX.Element;
|
6674
6677
|
}
|
6675
6678
|
export declare class SurveyQuestionPanelDynamicItem extends SurveyPanel {
|
6676
6679
|
constructor(props: any);
|
6677
6680
|
protected getSurvey(): SurveyModel;
|
6678
6681
|
protected getCss(): any;
|
6679
6682
|
handleOnPanelRemoveClick(event: any): void;
|
6680
|
-
render():
|
6681
|
-
protected renderButton():
|
6683
|
+
render(): JSX.Element;
|
6684
|
+
protected renderButton(): JSX.Element;
|
6682
6685
|
}
|
6683
6686
|
export declare class SurveyQuestionPanelDynamicNextButton extends SurveyQuestionPanelDynamicAction {
|
6684
6687
|
constructor(props: any);
|
6685
|
-
protected handleClick: any;
|
6686
|
-
protected renderElement():
|
6688
|
+
protected handleClick: (event: any) => void;
|
6689
|
+
protected renderElement(): JSX.Element;
|
6687
6690
|
}
|
6688
6691
|
export declare class SurveyQuestionPanelDynamicPrevButton extends SurveyQuestionPanelDynamicAction {
|
6689
6692
|
constructor(props: any);
|
6690
|
-
protected handleClick: any;
|
6691
|
-
protected renderElement():
|
6693
|
+
protected handleClick: (event: any) => void;
|
6694
|
+
protected renderElement(): JSX.Element;
|
6692
6695
|
}
|
6693
6696
|
export declare class SurveyQuestionPanelDynamicProgressText extends SurveyQuestionPanelDynamicAction {
|
6694
6697
|
constructor(props: any);
|
6695
|
-
protected renderElement():
|
6698
|
+
protected renderElement(): JSX.Element;
|
6696
6699
|
}
|
6697
6700
|
export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElement<QuestionTextModel> {
|
6698
6701
|
constructor(props: any);
|
6699
6702
|
_isWaitingForEnter: boolean;
|
6700
|
-
protected renderInput():
|
6701
|
-
protected renderElement():
|
6703
|
+
protected renderInput(): JSX.Element;
|
6704
|
+
protected renderElement(): JSX.Element;
|
6702
6705
|
}
|
6703
6706
|
/*
|
6704
6707
|
* If expression returns true, it completes the survey.
|
@@ -7285,13 +7288,13 @@ export declare class QuestionFileModel extends Question {
|
|
7285
7288
|
getReadOnlyFileCss(): string;
|
7286
7289
|
get fileRootCss(): string;
|
7287
7290
|
getFileDecoratorCss(): string;
|
7288
|
-
onDragOver: any;
|
7289
|
-
onDrop: any;
|
7290
|
-
onDragLeave: any;
|
7291
|
-
doChange: any;
|
7292
|
-
doClean: any;
|
7291
|
+
onDragOver: (event: any) => boolean;
|
7292
|
+
onDrop: (event: any) => void;
|
7293
|
+
onDragLeave: (event: any) => void;
|
7294
|
+
doChange: (event: any) => void;
|
7295
|
+
doClean: (event: any) => void;
|
7293
7296
|
doRemoveFile(data: any): void;
|
7294
|
-
doDownloadFile: any;
|
7297
|
+
doDownloadFile: (event: any, data: any) => void;
|
7295
7298
|
}
|
7296
7299
|
/*
|
7297
7300
|
* A Model for a matrix base question.
|
@@ -7843,7 +7846,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7843
7846
|
dependedQuestions: any;
|
7844
7847
|
noneItemValue: ItemValue;
|
7845
7848
|
newItemValue: ItemValue;
|
7846
|
-
canShowOptionItemCallback:
|
7849
|
+
canShowOptionItemCallback: (item: ItemValue) => boolean;
|
7847
7850
|
getType(): string;
|
7848
7851
|
dispose(): void;
|
7849
7852
|
protected getItemValueType(): string;
|
@@ -7897,7 +7900,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7897
7900
|
protected runItemsEnableCondition(values: any, properties: any): any;
|
7898
7901
|
protected onAfterRunItemsEnableCondition(): void;
|
7899
7902
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
7900
|
-
changeItemVisisbility():
|
7903
|
+
changeItemVisisbility(): (item: ItemValue, val: boolean) => boolean;
|
7901
7904
|
protected getHasOther(val: any): boolean;
|
7902
7905
|
get validatedValue(): any;
|
7903
7906
|
protected createRestful(): ChoicesRestful;
|
@@ -7996,7 +7999,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7996
7999
|
get enabledChoices(): any;
|
7997
8000
|
protected updateVisibleChoices(): void;
|
7998
8001
|
protected canUseFilteredChoices(): boolean;
|
7999
|
-
setCanShowOptionItemCallback(func:
|
8002
|
+
setCanShowOptionItemCallback(func: (item: ItemValue) => boolean): void;
|
8000
8003
|
protected addToVisibleChoices(items: any, isAddAll: boolean): void;
|
8001
8004
|
protected canShowOptionItem(item: ItemValue, isAddAll: boolean, hasItem: boolean): boolean;
|
8002
8005
|
/*
|
@@ -8175,8 +8178,8 @@ export declare class QuestionTextBase extends Question {
|
|
8175
8178
|
}
|
8176
8179
|
export declare class SurveyQuestionDropdown extends SurveyQuestionDropdownBase<Question> {
|
8177
8180
|
constructor(props: any);
|
8178
|
-
protected renderElement():
|
8179
|
-
protected renderOther(cssClasses: any):
|
8181
|
+
protected renderElement(): JSX.Element;
|
8182
|
+
protected renderOther(cssClasses: any): JSX.Element;
|
8180
8183
|
}
|
8181
8184
|
export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndErrorsCell {
|
8182
8185
|
constructor(props: any);
|
@@ -8185,11 +8188,11 @@ export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndE
|
|
8185
8188
|
protected getShowErrors(): boolean;
|
8186
8189
|
protected getCellStyle(): any;
|
8187
8190
|
protected getHeaderText(): string;
|
8188
|
-
protected renderQuestion():
|
8191
|
+
protected renderQuestion(): JSX.Element;
|
8189
8192
|
}
|
8190
8193
|
export declare class SurveyQuestionRatingDropdown extends SurveyQuestionDropdownBase<QuestionRatingModel> {
|
8191
8194
|
constructor(props: any);
|
8192
|
-
protected renderElement():
|
8195
|
+
protected renderElement(): JSX.Element;
|
8193
8196
|
}
|
8194
8197
|
/*
|
8195
8198
|
* The flow panel object. It is a container with flow layout where you can mix questions with markdown text.
|
@@ -8198,7 +8201,7 @@ export declare class FlowPanelModel extends PanelModel {
|
|
8198
8201
|
constructor(name?: string);
|
8199
8202
|
static contentElementNamePrefix: string;
|
8200
8203
|
contentChangedCallback: any;
|
8201
|
-
onGetHtmlForQuestion:
|
8204
|
+
onGetHtmlForQuestion: (question: Question) => string;
|
8202
8205
|
onCustomHtmlProducing: any;
|
8203
8206
|
getType(): string;
|
8204
8207
|
getChildrenLayoutType(): string;
|
@@ -8451,12 +8454,12 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
8451
8454
|
protected isRowChanging: boolean;
|
8452
8455
|
columnsChangedCallback: any;
|
8453
8456
|
onRenderedTableResetCallback: any;
|
8454
|
-
onRenderedTableCreatedCallback:
|
8455
|
-
onCellCreatedCallback: any;
|
8456
|
-
onCellValueChangedCallback: any;
|
8457
|
-
onHasDetailPanelCallback:
|
8458
|
-
onCreateDetailPanelCallback:
|
8459
|
-
onCreateDetailPanelRenderedRowCallback:
|
8457
|
+
onRenderedTableCreatedCallback: (table: QuestionMatrixDropdownRenderedTable) => void;
|
8458
|
+
onCellCreatedCallback: (options: any) => void;
|
8459
|
+
onCellValueChangedCallback: (options: any) => void;
|
8460
|
+
onHasDetailPanelCallback: (row: MatrixDropdownRowModelBase) => boolean;
|
8461
|
+
onCreateDetailPanelCallback: (row: MatrixDropdownRowModelBase, panel: PanelModel) => void;
|
8462
|
+
onCreateDetailPanelRenderedRowCallback: (renderedRow: QuestionMatrixDropdownRenderedRow) => void;
|
8460
8463
|
protected createColumnValues(): any;
|
8461
8464
|
/*
|
8462
8465
|
* Returns the type of the object as a string as it represents in the json.
|
@@ -8837,7 +8840,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
8837
8840
|
}
|
8838
8841
|
export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown {
|
8839
8842
|
constructor(props: any);
|
8840
|
-
protected renderSelect(cssClasses: any):
|
8843
|
+
protected renderSelect(cssClasses: any): JSX.Element;
|
8841
8844
|
}
|
8842
8845
|
/*
|
8843
8846
|
* A Model for a button group question.
|
@@ -9000,7 +9003,7 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
|
|
9000
9003
|
protected supportResponsiveness(): boolean;
|
9001
9004
|
protected needResponsiveness(): boolean;
|
9002
9005
|
_width: number;
|
9003
|
-
onContentLoaded: any;
|
9006
|
+
onContentLoaded: (item: ImageItemValue, event: any) => void;
|
9004
9007
|
responsiveColCount: number;
|
9005
9008
|
protected getCurrentColCount(): number;
|
9006
9009
|
protected processResponsiveness(_: number, availableWidth: number): boolean;
|
@@ -9043,7 +9046,7 @@ export declare class QuestionMatrixDropdownModel extends QuestionMatrixDropdownM
|
|
9043
9046
|
*/
|
9044
9047
|
export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownModelBase implements IMatrixDropdownData {
|
9045
9048
|
constructor(name: string);
|
9046
|
-
onGetValueForNewRowCallBack: any;
|
9049
|
+
onGetValueForNewRowCallBack: (sender: QuestionMatrixDynamicModel) => any;
|
9047
9050
|
rowCounter: number;
|
9048
9051
|
initialRowCount: number;
|
9049
9052
|
setRowCountValueFromData: boolean;
|
@@ -9051,7 +9054,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
9051
9054
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
9052
9055
|
draggedRow: MatrixDropdownRowModelBase;
|
9053
9056
|
onPointerDown(pointerDownEvent: any, row: MatrixDropdownRowModelBase): void;
|
9054
|
-
startDragMatrixRow: any;
|
9057
|
+
startDragMatrixRow: (event: any, currentTarget: any) => void;
|
9055
9058
|
getType(): string;
|
9056
9059
|
get isRowsDynamic(): boolean;
|
9057
9060
|
/*
|
@@ -9078,7 +9081,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
9078
9081
|
protected isDefaultValueEmpty(): boolean;
|
9079
9082
|
protected valueFromData(val: any): any;
|
9080
9083
|
protected setDefaultValue(): void;
|
9081
|
-
moveRowByIndex:
|
9084
|
+
moveRowByIndex: (fromIndex: number, toIndex: number) => void;
|
9082
9085
|
/*
|
9083
9086
|
* The number of rows in the matrix.
|
9084
9087
|
*/
|
@@ -9116,7 +9119,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
9116
9119
|
* Returns true, if a new row can be added.
|
9117
9120
|
*/
|
9118
9121
|
get canAddRow(): boolean;
|
9119
|
-
canRemoveRowsCallback:
|
9122
|
+
canRemoveRowsCallback: (allow: boolean) => boolean;
|
9120
9123
|
/*
|
9121
9124
|
* Returns true, if row can be removed.
|
9122
9125
|
*/
|
@@ -9244,31 +9247,31 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
9244
9247
|
currentDropTarget: ItemValue;
|
9245
9248
|
dropTargetNodeMove: string;
|
9246
9249
|
endLoadingFromJson(): void;
|
9247
|
-
handlePointerDown: any;
|
9250
|
+
handlePointerDown: (event: any, choice: ItemValue, node: any) => void;
|
9248
9251
|
afterRenderQuestionElement(el: any): void;
|
9249
9252
|
beforeDestroyQuestionElement(el: any): void;
|
9250
|
-
handleKeydown: any;
|
9253
|
+
handleKeydown: (event: any, choice: ItemValue) => void;
|
9251
9254
|
protected supportSelectAll(): boolean;
|
9252
9255
|
supportOther(): boolean;
|
9253
9256
|
supportNone(): boolean;
|
9254
|
-
handleArrowUp:
|
9255
|
-
handleArrowDown:
|
9256
|
-
focusItem:
|
9257
|
+
handleArrowUp: (index: number, choice: ItemValue) => void;
|
9258
|
+
handleArrowDown: (index: number, choice: ItemValue) => void;
|
9259
|
+
focusItem: (index: number) => void;
|
9257
9260
|
setValue: any;
|
9258
9261
|
setValueFromUI: any;
|
9259
9262
|
syncNumbers: any;
|
9260
|
-
setGhostText:
|
9263
|
+
setGhostText: (text: string) => void;
|
9261
9264
|
getIconHoverCss(): string;
|
9262
9265
|
getIconFocusCss(): string;
|
9263
9266
|
}
|
9264
|
-
export declare function property(options?: any): any;
|
9265
|
-
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): any;
|
9267
|
+
export declare function property(options?: any): (target: any, key: string) => void;
|
9268
|
+
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
|
9266
9269
|
export declare function unwrap<T>(value: any): T;
|
9267
9270
|
export declare function getSize(value: any): any;
|
9268
9271
|
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
9269
9272
|
export declare function getCurrecyCodes(): Array<any>;
|
9270
9273
|
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
9271
|
-
export declare function attachKey2click(element:
|
9274
|
+
export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: any): JSX.Element;
|
9272
9275
|
/*
|
9273
9276
|
* Global survey settings
|
9274
9277
|
*/
|
@@ -9394,7 +9397,7 @@ export declare var settings: {
|
|
9394
9397
|
/*
|
9395
9398
|
* Override this function, set your function, if you want to show your own dialog confirm window instead of standard browser window.
|
9396
9399
|
*/
|
9397
|
-
confirmActionFunc:
|
9400
|
+
confirmActionFunc: (message: string) => boolean,
|
9398
9401
|
/*
|
9399
9402
|
* Set this property to change the default value of the minWidth constraint
|
9400
9403
|
*/
|
@@ -9472,10 +9475,10 @@ export declare var surveyLocalization: {
|
|
9472
9475
|
supportedLocales: any,
|
9473
9476
|
currentLocale: string,
|
9474
9477
|
defaultLocale: string,
|
9475
|
-
getLocaleStrings: any,
|
9476
|
-
getCurrentStrings: any,
|
9477
|
-
getString: any,
|
9478
|
-
getLocales: any,
|
9478
|
+
getLocaleStrings: (loc: string) => any,
|
9479
|
+
getCurrentStrings: (locale?: string) => any,
|
9480
|
+
getString: (strName: string, locale?: string) => any,
|
9481
|
+
getLocales: (removeDefaultLoc?: boolean) => any,
|
9479
9482
|
};
|
9480
9483
|
export declare var surveyStrings: any;
|
9481
9484
|
/*
|
@@ -9483,7 +9486,7 @@ export declare var surveyStrings: any;
|
|
9483
9486
|
*/
|
9484
9487
|
export declare var Serializer: JsonMetadata;
|
9485
9488
|
export declare var surveyBuiltInVarible: string;
|
9486
|
-
export declare var registerFunction: any;
|
9489
|
+
export declare var registerFunction: (name: string, func: any) => any;
|
9487
9490
|
export declare var parse: any;
|
9488
9491
|
export declare var defaultActionBarCss: {
|
9489
9492
|
root: string,
|
@@ -9828,23 +9831,23 @@ export declare var defaultStandardCss: {
|
|
9828
9831
|
},
|
9829
9832
|
};
|
9830
9833
|
export declare var surveyTimerFunctions: {
|
9831
|
-
setTimeout: any,
|
9832
|
-
clearTimeout:
|
9834
|
+
setTimeout: (func: any) => any,
|
9835
|
+
clearTimeout: (timerId: number) => void,
|
9833
9836
|
};
|
9834
9837
|
export declare var matrixDropdownColumnTypes: {
|
9835
9838
|
dropdown: {
|
9836
|
-
onCellQuestionUpdate: any,
|
9839
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9837
9840
|
},
|
9838
9841
|
checkbox: {
|
9839
|
-
onCellQuestionUpdate: any,
|
9842
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9840
9843
|
},
|
9841
9844
|
radiogroup: {
|
9842
|
-
onCellQuestionUpdate: any,
|
9845
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9843
9846
|
},
|
9844
9847
|
text: any,
|
9845
9848
|
comment: any,
|
9846
9849
|
boolean: {
|
9847
|
-
onCellQuestionUpdate: any,
|
9850
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9848
9851
|
},
|
9849
9852
|
expression: any,
|
9850
9853
|
rating: any,
|