survey-react 1.9.28 → 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 +18 -17
- package/defaultV2.min.css +2 -2
- 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 +387 -372
- package/survey.react.js +236 -129
- 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.
|
@@ -109,6 +109,7 @@ export interface IAction {
|
|
109
109
|
* The action item's title.
|
110
110
|
*/
|
111
111
|
title?: string;
|
112
|
+
locTitle?: any;
|
112
113
|
/*
|
113
114
|
* The action item's tooltip.
|
114
115
|
*/
|
@@ -124,7 +125,7 @@ export interface IAction {
|
|
124
125
|
/*
|
125
126
|
* A function that is executed when users click the action item.
|
126
127
|
*/
|
127
|
-
action?: any;
|
128
|
+
action?: (context?: any) => void;
|
128
129
|
/*
|
129
130
|
* One or several CSS classes that you want to apply to the outer `<div>` element.
|
130
131
|
* In the markup, an action item is rendered as an `<input>` wrapped in a `<div>`. The `css` property applies classes to the `<div>`.
|
@@ -330,9 +331,9 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
330
331
|
maxTextLength: number;
|
331
332
|
maxOthersLength: number;
|
332
333
|
clearValueOnDisableItems: boolean;
|
333
|
-
uploadFiles(question: IQuestion, name: string, files: any, uploadingCallback: any): any;
|
334
|
-
downloadFile(name: string, content: string, callback: any): any;
|
335
|
-
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;
|
336
337
|
updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any): Array<any>;
|
337
338
|
loadedChoicesFromServer(question: IQuestion): void;
|
338
339
|
updateQuestionCssClasses(question: IQuestion, cssClasses: any): any;
|
@@ -357,6 +358,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
357
358
|
matrixCellValueChanged(question: IQuestion, options: any): any;
|
358
359
|
matrixCellValueChanging(question: IQuestion, options: any): any;
|
359
360
|
isValidateOnValueChanging: boolean;
|
361
|
+
isValidateOnValueChanged: boolean;
|
360
362
|
matrixCellValidate(question: IQuestion, options: any): SurveyError;
|
361
363
|
dynamicPanelAdded(question: IQuestion): any;
|
362
364
|
dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel): any;
|
@@ -480,8 +482,8 @@ export interface IFindElement {
|
|
480
482
|
str: LocalizableString;
|
481
483
|
}
|
482
484
|
export interface IExpressionRunnerInfo {
|
483
|
-
onExecute: any;
|
484
|
-
canRun?:
|
485
|
+
onExecute: (obj: Base, res: any) => void;
|
486
|
+
canRun?: (obj: Base) => boolean;
|
485
487
|
runner?: ExpressionRunner;
|
486
488
|
}
|
487
489
|
export interface IValidatorOwner {
|
@@ -512,7 +514,7 @@ export interface SurveyTemplateRendererTemplateData {
|
|
512
514
|
name: string;
|
513
515
|
data: any;
|
514
516
|
nodes?: any;
|
515
|
-
afterRender: any;
|
517
|
+
afterRender: (el: any, context: any) => void;
|
516
518
|
}
|
517
519
|
export interface SurveyTemplateRendererViewModel {
|
518
520
|
componentData: any;
|
@@ -582,8 +584,8 @@ export declare class Base {
|
|
582
584
|
static startCollectDependencies(updater: any, target: Base, property: string): void;
|
583
585
|
static get commentPrefix(): string;
|
584
586
|
static set commentPrefix(val: string);
|
585
|
-
static createItemValue: any;
|
586
|
-
static itemValueLocStrChanged: any;
|
587
|
+
static createItemValue: (item: any, type?: string) => any;
|
588
|
+
static itemValueLocStrChanged: (arr: any) => void;
|
587
589
|
/*
|
588
590
|
* Returns true if a value undefined, null, empty string or empty array.
|
589
591
|
*/
|
@@ -618,9 +620,9 @@ export declare class Base {
|
|
618
620
|
* options.newValue - new value
|
619
621
|
*/
|
620
622
|
onItemValuePropertyChanged: Event<(sender: Base, options: any) => any, any>;
|
621
|
-
getPropertyValueCoreHandler: any;
|
622
|
-
setPropertyValueCoreHandler: any;
|
623
|
-
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;
|
624
626
|
surveyChangedCallback: any;
|
625
627
|
isCreating: boolean;
|
626
628
|
dispose(): void;
|
@@ -706,7 +708,7 @@ export declare class Base {
|
|
706
708
|
geValueFromHash(): any;
|
707
709
|
protected setPropertyValueCore(propertiesHash: any, name: string, val: any): void;
|
708
710
|
get isEditingSurveyElement(): boolean;
|
709
|
-
iteratePropertiesHash(func: any): void;
|
711
|
+
iteratePropertiesHash(func: (hash: any, key: any) => void): void;
|
710
712
|
/*
|
711
713
|
* set property value
|
712
714
|
*/
|
@@ -719,7 +721,7 @@ export declare class Base {
|
|
719
721
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
720
722
|
protected propertyValueChanged(name: string, oldValue: any, newValue: any, arrayChanges?: ArrayChanges, target?: Base): void;
|
721
723
|
protected get isInternal(): boolean;
|
722
|
-
addExpressionProperty(name: string, onExecute: any, canRun?:
|
724
|
+
addExpressionProperty(name: string, onExecute: (obj: Base, res: any) => void, canRun?: (obj: Base) => boolean): void;
|
723
725
|
getDataFilteredValues(): any;
|
724
726
|
getDataFilteredProperties(): any;
|
725
727
|
protected runConditionCore(values: any, properties: any): void;
|
@@ -797,9 +799,9 @@ export declare class ButtonGroupItemModel {
|
|
797
799
|
export declare class ComponentCollection {
|
798
800
|
static Instance: ComponentCollection;
|
799
801
|
customQuestionValues: any;
|
800
|
-
onCreateComposite:
|
801
|
-
onCreateCustom:
|
802
|
-
onAddingJson:
|
802
|
+
onCreateComposite: (name: string, questionJSON: ComponentQuestionJSON) => QuestionCompositeModel;
|
803
|
+
onCreateCustom: (name: string, questionJSON: ComponentQuestionJSON) => QuestionCustomModel;
|
804
|
+
onAddingJson: (name: string, isComposite: boolean) => void;
|
803
805
|
add(json: any): void;
|
804
806
|
get items(): any;
|
805
807
|
getCustomQuestionByName(name: string): ComponentQuestionJSON;
|
@@ -913,13 +915,13 @@ export declare class DragOrClickHelper {
|
|
913
915
|
currentY: any;
|
914
916
|
itemModel: any;
|
915
917
|
onPointerDown(pointerDownEvent: any, itemModel?: any): void;
|
916
|
-
onPointerUp: any;
|
917
|
-
tryToStartDrag: any;
|
918
|
+
onPointerUp: (pointerUpEvent: any) => void;
|
919
|
+
tryToStartDrag: (pointerMoveEvent: any) => boolean;
|
918
920
|
}
|
919
921
|
export declare class ElementFactory {
|
920
922
|
static Instance: ElementFactory;
|
921
923
|
creatorHash: any;
|
922
|
-
registerElement(elementType: string, elementCreator:
|
924
|
+
registerElement(elementType: string, elementCreator: (name: string) => IElement): void;
|
923
925
|
clear(): void;
|
924
926
|
unregisterElement(elementType: string, removeFromSerializer?: boolean): void;
|
925
927
|
getAllTypes(): Array<any>;
|
@@ -951,7 +953,7 @@ export declare class FunctionFactory {
|
|
951
953
|
static Instance: FunctionFactory;
|
952
954
|
functionHash: any;
|
953
955
|
isAsyncHash: any;
|
954
|
-
register(name: string, func: any, isAsync?: boolean): void;
|
956
|
+
register(name: string, func: (params: any) => any, isAsync?: boolean): void;
|
955
957
|
unregister(name: string): void;
|
956
958
|
hasFunction(name: string): boolean;
|
957
959
|
isAsyncFunction(name: string): boolean;
|
@@ -998,7 +1000,7 @@ export declare class JsonMetadata {
|
|
998
1000
|
classHashProperties: any;
|
999
1001
|
getObjPropertyValue(obj: any, name: string): any;
|
1000
1002
|
setObjPropertyValue(obj: any, name: string, val: any): void;
|
1001
|
-
addClass(name: string, properties: any, creator?: any, parentName?: string): JsonMetadataClass;
|
1003
|
+
addClass(name: string, properties: any, creator?: (json?: any) => any, parentName?: string): JsonMetadataClass;
|
1002
1004
|
removeClass(name: string): void;
|
1003
1005
|
overrideClassCreatore(name: string, creator: any): void;
|
1004
1006
|
overrideClassCreator(name: string, creator: any): void;
|
@@ -1024,9 +1026,9 @@ export declare class JsonMetadata {
|
|
1024
1026
|
generateSchema(className?: string): any;
|
1025
1027
|
}
|
1026
1028
|
export declare class JsonMetadataClass {
|
1027
|
-
constructor(name: string, properties: any, creator?: any, parentName?: string);
|
1029
|
+
constructor(name: string, properties: any, creator?: (json?: any) => any, parentName?: string);
|
1028
1030
|
name: string;
|
1029
|
-
creator: any;
|
1031
|
+
creator: (json?: any) => any;
|
1030
1032
|
parentName: string;
|
1031
1033
|
static requiredSymbol: string;
|
1032
1034
|
static typeSymbol: string;
|
@@ -1050,7 +1052,7 @@ export declare class JsonObject {
|
|
1050
1052
|
}
|
1051
1053
|
export declare class LogoImage extends React.Component<ILogoImageProps, any> {
|
1052
1054
|
constructor(props: ILogoImageProps);
|
1053
|
-
render():
|
1055
|
+
render(): JSX.Element;
|
1054
1056
|
}
|
1055
1057
|
export declare class MatrixCells {
|
1056
1058
|
constructor(cellsOwner: IMatrixCellsOwner);
|
@@ -1086,7 +1088,7 @@ export declare class MatrixDropdownCell {
|
|
1086
1088
|
runCondition(values: any, properties: any): void;
|
1087
1089
|
}
|
1088
1090
|
export declare class Operand {
|
1089
|
-
toString(func?:
|
1091
|
+
toString(func?: (op: Operand) => string): string;
|
1090
1092
|
getType(): string;
|
1091
1093
|
evaluate(processValue?: ProcessValue): any;
|
1092
1094
|
setVariables(variables: any): any;
|
@@ -1109,7 +1111,7 @@ export declare class PopupUtils {
|
|
1109
1111
|
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: any): any;
|
1110
1112
|
static updateVerticalPosition(targetRect: any, height: number, verticalPosition: any, showPointer: boolean, windowHeight: number): any;
|
1111
1113
|
static calculatePopupDirection(verticalPosition: any, horizontalPosition: any): string;
|
1112
|
-
static calculatePointerTarget(targetRect: any, top: number, left: number, verticalPosition: any, horizontalPosition: any,
|
1114
|
+
static calculatePointerTarget(targetRect: any, top: number, left: number, verticalPosition: any, horizontalPosition: any, marginLeft?: number, marginRight?: number): INumberPosition;
|
1113
1115
|
static updatePopupWidthBeforeShow(popupModel: any, e: any): void;
|
1114
1116
|
}
|
1115
1117
|
export declare class ProcessValue {
|
@@ -1147,7 +1149,7 @@ export declare class QuestionFactory {
|
|
1147
1149
|
static get DefaultRows(): any;
|
1148
1150
|
static get DefaultMutlipleTextItems(): any;
|
1149
1151
|
creatorHash: any;
|
1150
|
-
registerQuestion(questionType: string, questionCreator:
|
1152
|
+
registerQuestion(questionType: string, questionCreator: (name: string) => Question): void;
|
1151
1153
|
unregisterElement(elementType: string): void;
|
1152
1154
|
clear(): void;
|
1153
1155
|
getAllTypes(): Array<any>;
|
@@ -1196,24 +1198,24 @@ export declare class QuestionMatrixDropdownRenderedCell {
|
|
1196
1198
|
export declare class ReactElementFactory {
|
1197
1199
|
static Instance: ReactElementFactory;
|
1198
1200
|
creatorHash: any;
|
1199
|
-
registerElement(elementType: string, elementCreator: any): void;
|
1201
|
+
registerElement(elementType: string, elementCreator: (props: any) => JSX.Element): void;
|
1200
1202
|
getAllTypes(): Array<any>;
|
1201
1203
|
isElementRegistered(elementType: string): boolean;
|
1202
|
-
createElement(elementType: string, params: any):
|
1204
|
+
createElement(elementType: string, params: any): JSX.Element;
|
1203
1205
|
}
|
1204
1206
|
export declare class ReactQuestionFactory {
|
1205
1207
|
static Instance: ReactQuestionFactory;
|
1206
1208
|
creatorHash: any;
|
1207
|
-
registerQuestion(questionType: string, questionCreator:
|
1209
|
+
registerQuestion(questionType: string, questionCreator: (name: string) => JSX.Element): void;
|
1208
1210
|
getAllTypes(): Array<any>;
|
1209
|
-
createQuestion(questionType: string, params: any):
|
1211
|
+
createQuestion(questionType: string, params: any): JSX.Element;
|
1210
1212
|
}
|
1211
1213
|
export declare class ReactSurveyElementsWrapper {
|
1212
|
-
static wrapRow(survey: any, element:
|
1213
|
-
static wrapElement(survey: any, element:
|
1214
|
-
static wrapQuestionContent(survey: any, element:
|
1215
|
-
static wrapItemValue(survey: any, element:
|
1216
|
-
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;
|
1217
1219
|
}
|
1218
1220
|
export declare class RendererFactory {
|
1219
1221
|
static Instance: RendererFactory;
|
@@ -1233,7 +1235,7 @@ export declare class ResponsivityManager {
|
|
1233
1235
|
separatorAddConst: number;
|
1234
1236
|
paddingSizeConst: number;
|
1235
1237
|
protected recalcMinDimensionConst: boolean;
|
1236
|
-
getComputedStyle: any;
|
1238
|
+
getComputedStyle: (elt: JSX.Element) => any;
|
1237
1239
|
protected getDimensions(element: any): IDimensions;
|
1238
1240
|
protected getAvailableSpace(): number;
|
1239
1241
|
protected calcItemSize(item: any): number;
|
@@ -1242,7 +1244,7 @@ export declare class ResponsivityManager {
|
|
1242
1244
|
export declare class Skeleton extends React.Component<any, any> {
|
1243
1245
|
constructor(props: any);
|
1244
1246
|
constructor(props: any, context: any);
|
1245
|
-
render():
|
1247
|
+
render(): JSX.Element;
|
1246
1248
|
}
|
1247
1249
|
export declare class StylesManager {
|
1248
1250
|
constructor();
|
@@ -1261,11 +1263,11 @@ export declare class StylesManager {
|
|
1261
1263
|
}
|
1262
1264
|
export declare class SurveyActionBarSeparator extends React.Component<any, any> {
|
1263
1265
|
constructor(props: any);
|
1264
|
-
render():
|
1266
|
+
render(): JSX.Element;
|
1265
1267
|
}
|
1266
1268
|
export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
1267
1269
|
constructor(props: any);
|
1268
|
-
static renderLocString(locStr: any, style?: any, key?: string):
|
1270
|
+
static renderLocString(locStr: any, style?: any, key?: string): JSX.Element;
|
1269
1271
|
changedStatePropNameValue: string;
|
1270
1272
|
componentDidMount(): void;
|
1271
1273
|
componentWillUnmount(): void;
|
@@ -1274,24 +1276,24 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
|
1274
1276
|
protected allowComponentUpdate(): void;
|
1275
1277
|
protected denyComponentUpdate(): void;
|
1276
1278
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
1277
|
-
render():
|
1278
|
-
protected wrapElement(element:
|
1279
|
+
render(): JSX.Element;
|
1280
|
+
protected wrapElement(element: JSX.Element): JSX.Element;
|
1279
1281
|
protected get isRendering(): boolean;
|
1280
1282
|
protected getRenderedElements(): Array<Base>;
|
1281
1283
|
protected canRender(): boolean;
|
1282
|
-
protected renderElement():
|
1284
|
+
protected renderElement(): JSX.Element;
|
1283
1285
|
protected get changedStatePropName(): string;
|
1284
1286
|
protected getStateElements(): Array<Base>;
|
1285
1287
|
protected getStateElement(): Base;
|
1286
1288
|
protected get isDisplayMode(): boolean;
|
1287
|
-
protected renderLocString(locStr: any, style?: any):
|
1289
|
+
protected renderLocString(locStr: any, style?: any): JSX.Element;
|
1288
1290
|
protected canUsePropInState(key: string): boolean;
|
1289
1291
|
}
|
1290
1292
|
export declare class SurveyElementHeader extends React.Component<any, any> {
|
1291
1293
|
constructor(props: any);
|
1292
1294
|
constructor(props: any, context: any);
|
1293
|
-
render():
|
1294
|
-
protected renderDescription():
|
1295
|
+
render(): JSX.Element;
|
1296
|
+
protected renderDescription(): JSX.Element;
|
1295
1297
|
}
|
1296
1298
|
export declare class SurveyError {
|
1297
1299
|
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
@@ -1308,22 +1310,22 @@ export declare class SurveyHeader extends React.Component<ISurveyHeaderProps, an
|
|
1308
1310
|
constructor(props: ISurveyHeaderProps);
|
1309
1311
|
componentDidMount(): void;
|
1310
1312
|
componentWillUnmount(): void;
|
1311
|
-
render():
|
1313
|
+
render(): JSX.Element;
|
1312
1314
|
}
|
1313
1315
|
export declare class SurveyLocStringEditor extends React.Component<any, any> {
|
1314
1316
|
constructor(props: any);
|
1315
1317
|
componentDidMount(): void;
|
1316
1318
|
componentWillUnmount(): void;
|
1317
|
-
onInput: any;
|
1318
|
-
onClick: any;
|
1319
|
-
render():
|
1319
|
+
onInput: (event: any) => void;
|
1320
|
+
onClick: (event: any) => void;
|
1321
|
+
render(): JSX.Element;
|
1320
1322
|
}
|
1321
1323
|
export declare class SurveyLocStringViewer extends React.Component<any, any> {
|
1322
1324
|
constructor(props: any);
|
1323
1325
|
componentDidMount(): void;
|
1324
1326
|
componentWillUnmount(): void;
|
1325
1327
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
1326
|
-
render():
|
1328
|
+
render(): JSX.Element;
|
1327
1329
|
}
|
1328
1330
|
export declare class SurveyNavigationBase extends React.Component<any, any> {
|
1329
1331
|
constructor(props: any);
|
@@ -1359,7 +1361,7 @@ export declare class SvgIcon extends React.Component<any, any> {
|
|
1359
1361
|
svgIconRef: any;
|
1360
1362
|
updateSvg(): void;
|
1361
1363
|
componentDidUpdate(): void;
|
1362
|
-
render():
|
1364
|
+
render(): JSX.Element;
|
1363
1365
|
componentDidMount(): void;
|
1364
1366
|
}
|
1365
1367
|
export declare class SvgIconData {
|
@@ -1385,7 +1387,7 @@ export declare class SyntaxError {
|
|
1385
1387
|
}
|
1386
1388
|
export declare class TextPreProcessor {
|
1387
1389
|
_unObservableValues: any;
|
1388
|
-
onProcess:
|
1390
|
+
onProcess: (textValue: TextPreProcessorValue) => void;
|
1389
1391
|
process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
|
1390
1392
|
processValue(name: string, returnDisplayValue: boolean): TextPreProcessorValue;
|
1391
1393
|
get hasAllValuesOnLastRun(): boolean;
|
@@ -1407,23 +1409,23 @@ export declare class TitleActions extends React.Component<any, any> {
|
|
1407
1409
|
constructor(props: any, context: any);
|
1408
1410
|
protected get cssClasses(): any;
|
1409
1411
|
protected get element(): any;
|
1410
|
-
render():
|
1412
|
+
render(): JSX.Element;
|
1411
1413
|
}
|
1412
1414
|
export declare class TitleContent extends React.Component<any, any> {
|
1413
1415
|
constructor(props: any);
|
1414
|
-
render():
|
1416
|
+
render(): JSX.Element;
|
1415
1417
|
protected renderTitleSpans(element: any, cssClasses: any): Array<Element>;
|
1416
1418
|
}
|
1417
1419
|
export declare class TitleElement extends React.Component<any, any> {
|
1418
1420
|
constructor(props: any);
|
1419
|
-
render():
|
1421
|
+
render(): JSX.Element;
|
1420
1422
|
}
|
1421
1423
|
export declare class TooltipManager {
|
1422
1424
|
constructor(tooltipElement: any);
|
1423
1425
|
tooltipElement: any;
|
1424
1426
|
targetElement: any;
|
1425
1427
|
dispose(): void;
|
1426
|
-
onMouseMoveCallback: any;
|
1428
|
+
onMouseMoveCallback: (e: any) => void;
|
1427
1429
|
}
|
1428
1430
|
export declare class ValidatorResult {
|
1429
1431
|
constructor(value: any, error?: SurveyError);
|
@@ -1432,7 +1434,7 @@ export declare class ValidatorResult {
|
|
1432
1434
|
}
|
1433
1435
|
export declare class ValidatorRunner {
|
1434
1436
|
asyncValidators: any;
|
1435
|
-
onAsyncCompleted: any;
|
1437
|
+
onAsyncCompleted: (errors: any) => void;
|
1436
1438
|
run(owner: IValidatorOwner): Array<SurveyError>;
|
1437
1439
|
}
|
1438
1440
|
export declare class XmlParser {
|
@@ -1448,12 +1450,12 @@ export declare class dxSurveyService {
|
|
1448
1450
|
constructor();
|
1449
1451
|
static get serviceUrl(): string;
|
1450
1452
|
static set serviceUrl(val: string);
|
1451
|
-
loadSurvey(surveyId: string, onLoad: any): void;
|
1452
|
-
getSurveyJsonAndIsCompleted(surveyId: string, clientId: string, onLoad: any): void;
|
1453
|
-
sendResult(postId: string, result: any, onSendResult: any, clientId?: string, isPartialCompleted?: boolean): void;
|
1454
|
-
sendFile(postId: string, file: any, onSendFile: any): void;
|
1455
|
-
getResult(resultId: string, name: string, onGetResult: any): void;
|
1456
|
-
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;
|
1457
1459
|
}
|
1458
1460
|
export declare class Action extends Base implements IAction {
|
1459
1461
|
constructor(innerItem: IAction);
|
@@ -1464,11 +1466,10 @@ export declare class Action extends Base implements IAction {
|
|
1464
1466
|
iconName: string;
|
1465
1467
|
iconSize: number;
|
1466
1468
|
visible: boolean;
|
1467
|
-
title: string;
|
1468
1469
|
tooltip: string;
|
1469
1470
|
enabled: boolean;
|
1470
1471
|
showTitle: boolean;
|
1471
|
-
action: any;
|
1472
|
+
action: (context?: any) => void;
|
1472
1473
|
css: string;
|
1473
1474
|
innerCss: string;
|
1474
1475
|
data: any;
|
@@ -1484,6 +1485,10 @@ export declare class Action extends Base implements IAction {
|
|
1484
1485
|
disableTabStop: boolean;
|
1485
1486
|
disableShrink: boolean;
|
1486
1487
|
needSpace: boolean;
|
1488
|
+
locTitle: any;
|
1489
|
+
titleValue: string;
|
1490
|
+
get title(): string;
|
1491
|
+
set title(val: string);
|
1487
1492
|
cssClassesValue: any;
|
1488
1493
|
get cssClasses(): any;
|
1489
1494
|
get disabled(): boolean;
|
@@ -1501,7 +1506,7 @@ export declare class ActionContainer<T extends Action = Action> extends Base {
|
|
1501
1506
|
actions: any;
|
1502
1507
|
cssClassesValue: any;
|
1503
1508
|
protected getRenderedActions(): Array<T>;
|
1504
|
-
updateCallback:
|
1509
|
+
updateCallback: (isResetInitialized: boolean) => void;
|
1505
1510
|
containerCss: string;
|
1506
1511
|
protected raiseUpdate(isResetInitialized: boolean): void;
|
1507
1512
|
protected onSet(): void;
|
@@ -1528,7 +1533,7 @@ export declare class ArrayOperand extends Operand {
|
|
1528
1533
|
constructor(values: any);
|
1529
1534
|
values: any;
|
1530
1535
|
getType(): string;
|
1531
|
-
toString(func?:
|
1536
|
+
toString(func?: (op: Operand) => string): string;
|
1532
1537
|
evaluate(processValue?: ProcessValue): Array<any>;
|
1533
1538
|
setVariables(variables: any): void;
|
1534
1539
|
hasFunction(): boolean;
|
@@ -1549,7 +1554,7 @@ export declare class BinaryOperand extends Operand {
|
|
1549
1554
|
get rightOperand(): any;
|
1550
1555
|
protected isContentEqual(op: Operand): boolean;
|
1551
1556
|
evaluate(processValue?: ProcessValue): any;
|
1552
|
-
toString(func?:
|
1557
|
+
toString(func?: (op: Operand) => string): string;
|
1553
1558
|
setVariables(variables: any): void;
|
1554
1559
|
hasFunction(): boolean;
|
1555
1560
|
hasAsyncFunction(): boolean;
|
@@ -1609,20 +1614,20 @@ export declare class ChoicesRestful extends Base {
|
|
1609
1614
|
static clearCache(): void;
|
1610
1615
|
static itemsResult: any;
|
1611
1616
|
static sendingSameRequests: any;
|
1612
|
-
static onBeforeSendRequest: any;
|
1617
|
+
static onBeforeSendRequest: (sender: ChoicesRestful, options: any) => void;
|
1613
1618
|
lastObjHash: string;
|
1614
1619
|
isRunningValue: boolean;
|
1615
1620
|
protected processedUrl: string;
|
1616
1621
|
protected processedPath: string;
|
1617
1622
|
isUsingCacheFromUrl: boolean;
|
1618
|
-
onProcessedUrlCallback:
|
1619
|
-
getResultCallback: any;
|
1623
|
+
onProcessedUrlCallback: (url: string, path: string) => void;
|
1624
|
+
getResultCallback: (items: any) => void;
|
1620
1625
|
beforeSendRequestCallback: any;
|
1621
|
-
updateResultCallback: any;
|
1622
|
-
getItemValueCallback: any;
|
1626
|
+
updateResultCallback: (items: any, serverResult: any) => any;
|
1627
|
+
getItemValueCallback: (item: any) => any;
|
1623
1628
|
error: SurveyError;
|
1624
1629
|
owner: IQuestion;
|
1625
|
-
createItemValue: any;
|
1630
|
+
createItemValue: (value: any) => ItemValue;
|
1626
1631
|
getSurvey(live?: boolean): ISurvey;
|
1627
1632
|
run(textProcessor?: ITextProcessor): void;
|
1628
1633
|
get isUsingCache(): boolean;
|
@@ -1676,14 +1681,14 @@ export declare class ChoicesRestful extends Base {
|
|
1676
1681
|
}
|
1677
1682
|
export declare class ConditionRunner extends ExpressionRunnerBase {
|
1678
1683
|
constructor(expression: string);
|
1679
|
-
onRunComplete:
|
1684
|
+
onRunComplete: (result: boolean) => void;
|
1680
1685
|
run(values: any, properties?: any): boolean;
|
1681
1686
|
protected doOnComplete(res: any): void;
|
1682
1687
|
}
|
1683
1688
|
export declare class Const extends Operand {
|
1684
1689
|
constructor(value: any);
|
1685
1690
|
getType(): string;
|
1686
|
-
toString(func?:
|
1691
|
+
toString(func?: (op: Operand) => string): string;
|
1687
1692
|
get correctValue(): any;
|
1688
1693
|
evaluate(): any;
|
1689
1694
|
setVariables(variables: any): void;
|
@@ -1720,10 +1725,10 @@ export declare class DragDropCore<T> extends Base {
|
|
1720
1725
|
currentX: number;
|
1721
1726
|
currentY: number;
|
1722
1727
|
savedTargetNode: any;
|
1723
|
-
stopLongTapIfMoveEnough: any;
|
1724
|
-
stopLongTap: any;
|
1725
|
-
onContextMenu: any;
|
1726
|
-
dragOver: any;
|
1728
|
+
stopLongTapIfMoveEnough: (pointerMoveEvent: any) => void;
|
1729
|
+
stopLongTap: (e?: any) => void;
|
1730
|
+
onContextMenu: (event: any) => void;
|
1731
|
+
dragOver: (event: any) => void;
|
1727
1732
|
drop: any;
|
1728
1733
|
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
1729
1734
|
protected onStartDrag(): void;
|
@@ -1734,8 +1739,8 @@ export declare class DragDropCore<T> extends Base {
|
|
1734
1739
|
protected afterDragOver(dropTargetNode?: any): void;
|
1735
1740
|
getGhostPosition(item: any): string;
|
1736
1741
|
protected isDropTargetValid(dropTarget: any, dropTargetNode?: any): boolean;
|
1737
|
-
handlePointerCancel: any;
|
1738
|
-
protected handleEscapeButton: any;
|
1742
|
+
handlePointerCancel: (event: any) => void;
|
1743
|
+
protected handleEscapeButton: (event: any) => void;
|
1739
1744
|
protected banDropHere: any;
|
1740
1745
|
protected doBanDropHere: any;
|
1741
1746
|
protected getDataAttributeValueByNode(node: any): any;
|
@@ -1757,8 +1762,8 @@ export declare class ExceedSizeError extends SurveyError {
|
|
1757
1762
|
}
|
1758
1763
|
export declare class ExpressionExecutor implements IExpresionExecutor {
|
1759
1764
|
constructor(expression: string);
|
1760
|
-
static createExpressionExecutor:
|
1761
|
-
onComplete: any;
|
1765
|
+
static createExpressionExecutor: (expression: string) => IExpresionExecutor;
|
1766
|
+
onComplete: (res: any) => void;
|
1762
1767
|
expressionValue: string;
|
1763
1768
|
operand: Operand;
|
1764
1769
|
processValue: ProcessValue;
|
@@ -1796,7 +1801,7 @@ export declare class ExpressionItem extends Base implements ILocalizableOwner {
|
|
1796
1801
|
}
|
1797
1802
|
export declare class ExpressionRunner extends ExpressionRunnerBase {
|
1798
1803
|
constructor(expression: string);
|
1799
|
-
onRunComplete: any;
|
1804
|
+
onRunComplete: (result: any) => void;
|
1800
1805
|
run(values: any, properties?: any): any;
|
1801
1806
|
protected doOnComplete(res: any): void;
|
1802
1807
|
}
|
@@ -1808,7 +1813,7 @@ export declare class FunctionOperand extends Operand {
|
|
1808
1813
|
getType(): string;
|
1809
1814
|
evaluateAsync(processValue: ProcessValue): void;
|
1810
1815
|
evaluate(processValue?: ProcessValue): any;
|
1811
|
-
toString(func?:
|
1816
|
+
toString(func?: (op: Operand) => string): string;
|
1812
1817
|
setVariables(variables: any): void;
|
1813
1818
|
get isReady(): boolean;
|
1814
1819
|
hasFunction(): boolean;
|
@@ -1839,8 +1844,8 @@ export declare class ItemValue extends Base implements ILocalizableOwner, IShort
|
|
1839
1844
|
static getItemByValue(items: any, val: any): ItemValue;
|
1840
1845
|
static getTextOrHtmlByValue(items: any, val: any): string;
|
1841
1846
|
static locStrsChanged(items: any): void;
|
1842
|
-
static runConditionsForItems(items: any, filteredItems: any, runner: ConditionRunner, values: any, properties: any, useItemExpression?: boolean, onItemCallBack?:
|
1843
|
-
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;
|
1844
1849
|
ownerPropertyName: string;
|
1845
1850
|
locTextValue: LocalizableString;
|
1846
1851
|
isVisibleValue: boolean;
|
@@ -1893,7 +1898,7 @@ export declare class JsonMissingTypeErrorBase extends JsonError {
|
|
1893
1898
|
export declare class JsonObjectProperty implements IObject {
|
1894
1899
|
constructor(classInfo: JsonMetadataClass, name: string, isRequired?: boolean);
|
1895
1900
|
name: string;
|
1896
|
-
static getItemValuesDefaultValue: any;
|
1901
|
+
static getItemValuesDefaultValue: (val: any, type: string) => any;
|
1897
1902
|
static Index: number;
|
1898
1903
|
static mergableValues: any;
|
1899
1904
|
idValue: number;
|
@@ -1906,7 +1911,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
1906
1911
|
readOnlyValue: boolean;
|
1907
1912
|
visibleValue: boolean;
|
1908
1913
|
isLocalizableValue: boolean;
|
1909
|
-
choicesfunc: any;
|
1914
|
+
choicesfunc: (obj: any, choicesCallback: any) => any;
|
1910
1915
|
dependedProperties: any;
|
1911
1916
|
isSerializable: boolean;
|
1912
1917
|
isLightSerializable: boolean;
|
@@ -1930,11 +1935,11 @@ export declare class JsonObjectProperty implements IObject {
|
|
1930
1935
|
minValue: any;
|
1931
1936
|
dataListValue: any;
|
1932
1937
|
layout: string;
|
1933
|
-
onGetValue: any;
|
1934
|
-
onSetValue: any;
|
1935
|
-
visibleIf: any;
|
1936
|
-
onExecuteExpression: any;
|
1937
|
-
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;
|
1938
1943
|
get id(): number;
|
1939
1944
|
get classInfo(): JsonMetadataClass;
|
1940
1945
|
get type(): string;
|
@@ -1960,7 +1965,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
1960
1965
|
get choices(): any;
|
1961
1966
|
get hasChoices(): boolean;
|
1962
1967
|
getChoices(obj: any, choicesCallback?: any): Array<any>;
|
1963
|
-
setChoices(value: any, valueFunc?: any): void;
|
1968
|
+
setChoices(value: any, valueFunc?: (obj: any) => any): void;
|
1964
1969
|
getBaseValue(): string;
|
1965
1970
|
setBaseValue(val: any): void;
|
1966
1971
|
get readOnly(): boolean;
|
@@ -1996,19 +2001,19 @@ export declare class KeyDuplicationError extends SurveyError {
|
|
1996
2001
|
export declare class List extends SurveyElementBase<IListProps, any> {
|
1997
2002
|
constructor(props: any);
|
1998
2003
|
get model(): any;
|
1999
|
-
handleKeydown: any;
|
2004
|
+
handleKeydown: (event: any) => void;
|
2000
2005
|
getStateElement(): any;
|
2001
|
-
renderElement():
|
2006
|
+
renderElement(): JSX.Element;
|
2002
2007
|
renderItems(): any;
|
2003
|
-
searchElementContent():
|
2008
|
+
searchElementContent(): JSX.Element;
|
2004
2009
|
}
|
2005
2010
|
export declare class ListItem extends SurveyElementBase<IListItemProps, any> {
|
2006
2011
|
constructor(props: any);
|
2007
2012
|
get model(): any;
|
2008
2013
|
get item(): any;
|
2009
|
-
handleKeydown: any;
|
2014
|
+
handleKeydown: (event: any) => void;
|
2010
2015
|
getStateElement(): any;
|
2011
|
-
render():
|
2016
|
+
render(): JSX.Element;
|
2012
2017
|
}
|
2013
2018
|
/*
|
2014
2019
|
* The class represents the string that supports multi-languages and markdown.
|
@@ -2029,10 +2034,10 @@ export declare class LocalizableString implements ILocalizableString {
|
|
2029
2034
|
renderedText: string;
|
2030
2035
|
calculatedTextValue: string;
|
2031
2036
|
localizationName: string;
|
2032
|
-
onGetTextCallback:
|
2037
|
+
onGetTextCallback: (str: string) => string;
|
2033
2038
|
onGetDefaultTextCallback: any;
|
2034
|
-
onGetLocalizationTextCallback:
|
2035
|
-
onStrChanged:
|
2039
|
+
onGetLocalizationTextCallback: (str: string) => string;
|
2040
|
+
onStrChanged: (oldValue: string, newValue: string) => void;
|
2036
2041
|
onSearchChanged: any;
|
2037
2042
|
sharedData: LocalizableString;
|
2038
2043
|
searchText: string;
|
@@ -2071,7 +2076,7 @@ export declare class LocalizableStrings implements ILocalizableString {
|
|
2071
2076
|
constructor(owner: ILocalizableOwner);
|
2072
2077
|
owner: ILocalizableOwner;
|
2073
2078
|
values: any;
|
2074
|
-
onValueChanged: any;
|
2079
|
+
onValueChanged: (oldValue: any, newValue: any) => void;
|
2075
2080
|
getIsMultiple(): boolean;
|
2076
2081
|
get locale(): string;
|
2077
2082
|
get value(): any;
|
@@ -2155,6 +2160,9 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
2155
2160
|
get totalFormat(): string;
|
2156
2161
|
set totalFormat(val: string);
|
2157
2162
|
get locTotalFormat(): LocalizableString;
|
2163
|
+
get cellHint(): string;
|
2164
|
+
set cellHint(val: string);
|
2165
|
+
get locCellHint(): LocalizableString;
|
2158
2166
|
get renderAs(): string;
|
2159
2167
|
set renderAs(val: string);
|
2160
2168
|
get totalMaximumFractionDigits(): number;
|
@@ -2177,13 +2185,13 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
2177
2185
|
getRendererContext(locStr: LocalizableString): any;
|
2178
2186
|
getProcessedText(text: string): string;
|
2179
2187
|
createCellQuestion(row: MatrixDropdownRowModelBase): Question;
|
2180
|
-
updateCellQuestion(cellQuestion: Question, data: any, onUpdateJson?: any): void;
|
2188
|
+
updateCellQuestion(cellQuestion: Question, data: any, onUpdateJson?: (json: any) => any): void;
|
2181
2189
|
defaultCellTypeChanged(): void;
|
2182
2190
|
protected calcCellQuestionType(row: MatrixDropdownRowModelBase): string;
|
2183
2191
|
protected updateTemplateQuestion(newCellType?: string): void;
|
2184
2192
|
protected createNewQuestion(cellType: string): Question;
|
2185
2193
|
previousChoicesId: string;
|
2186
|
-
protected setQuestionProperties(question: Question, onUpdateJson?: any): void;
|
2194
|
+
protected setQuestionProperties(question: Question, onUpdateJson?: (json: any) => any): void;
|
2187
2195
|
protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
2188
2196
|
}
|
2189
2197
|
export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyImpl, ILocalizableOwner {
|
@@ -2256,7 +2264,7 @@ export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyI
|
|
2256
2264
|
getTextProcessor(): ITextProcessor;
|
2257
2265
|
get rowIndex(): number;
|
2258
2266
|
get editingObj(): Base;
|
2259
|
-
onEditingObjPropertyChanged: any;
|
2267
|
+
onEditingObjPropertyChanged: (sender: Base, options: any) => void;
|
2260
2268
|
editingObjValue: Base;
|
2261
2269
|
dispose(): void;
|
2262
2270
|
}
|
@@ -2275,8 +2283,8 @@ export declare class MatrixRow extends SurveyElementBase<IMAtrixRowProps, any> {
|
|
2275
2283
|
get model(): any;
|
2276
2284
|
get parentMatrix(): any;
|
2277
2285
|
protected getStateElement(): any;
|
2278
|
-
protected onPointerDownHandler: any;
|
2279
|
-
render():
|
2286
|
+
protected onPointerDownHandler: (event: any) => void;
|
2287
|
+
render(): JSX.Element;
|
2280
2288
|
}
|
2281
2289
|
export declare class MatrixRowModel extends Base {
|
2282
2290
|
constructor(item: ItemValue, fullName: string, data: IMatrixData, value: any);
|
@@ -2301,7 +2309,7 @@ export declare class MultipleTextItemModel extends Base implements IValidatorOwn
|
|
2301
2309
|
constructor(name?: any, title?: string);
|
2302
2310
|
editorValue: QuestionTextModel;
|
2303
2311
|
data: IMultipleTextData;
|
2304
|
-
valueChangedCallback: any;
|
2312
|
+
valueChangedCallback: (newValue: any) => void;
|
2305
2313
|
getType(): string;
|
2306
2314
|
get id(): string;
|
2307
2315
|
getOriginalObj(): Base;
|
@@ -2412,7 +2420,7 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
|
|
2412
2420
|
componentDidMount(): void;
|
2413
2421
|
componentWillUnmount(): void;
|
2414
2422
|
shouldComponentUpdate(nextProps: IPopupProps, nextState: any): boolean;
|
2415
|
-
render():
|
2423
|
+
render(): JSX.Element;
|
2416
2424
|
}
|
2417
2425
|
export declare class PopupBaseViewModel extends Base {
|
2418
2426
|
constructor(model: any, targetElement?: any);
|
@@ -2447,27 +2455,25 @@ export declare class PopupBaseViewModel extends Base {
|
|
2447
2455
|
get cancelButtonText(): any;
|
2448
2456
|
get applyButtonText(): any;
|
2449
2457
|
dispose(): void;
|
2450
|
-
createPopupContainer(): void;
|
2451
|
-
mountPopupContainer(): void;
|
2452
2458
|
initializePopupContainer(): void;
|
2453
|
-
|
2459
|
+
unmountPopupContainer(): void;
|
2454
2460
|
}
|
2455
2461
|
export declare class PopupContainer extends SurveyElementBase<any, any> {
|
2456
2462
|
constructor(props: any);
|
2457
2463
|
prevIsVisible: boolean;
|
2458
|
-
handleKeydown: any;
|
2464
|
+
handleKeydown: (event: any) => void;
|
2459
2465
|
get model(): any;
|
2460
2466
|
protected getStateElement(): any;
|
2461
|
-
clickInside: any;
|
2467
|
+
clickInside: (ev: any) => void;
|
2462
2468
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2463
|
-
renderContainer():
|
2464
|
-
renderPointer():
|
2465
|
-
renderHeader():
|
2466
|
-
renderContent():
|
2467
|
-
renderCancelButton():
|
2468
|
-
renderApplyButton():
|
2469
|
-
renderFooter():
|
2470
|
-
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;
|
2471
2477
|
}
|
2472
2478
|
export declare class PopupModel<T = any> extends Base {
|
2473
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);
|
@@ -2489,7 +2495,7 @@ export declare class PopupModel<T = any> extends Base {
|
|
2489
2495
|
get isVisible(): boolean;
|
2490
2496
|
set isVisible(val: boolean);
|
2491
2497
|
toggleVisibility(): void;
|
2492
|
-
onVisibilityChanged:
|
2498
|
+
onVisibilityChanged: (isVisible: boolean) => void;
|
2493
2499
|
}
|
2494
2500
|
export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
2495
2501
|
constructor(cssClasses: any, isDetailRow?: boolean);
|
@@ -2574,7 +2580,7 @@ export declare class QuestionRowModel extends Base {
|
|
2574
2580
|
static rowCounter: number;
|
2575
2581
|
protected _scrollableParent: any;
|
2576
2582
|
protected _updateVisibility: any;
|
2577
|
-
startLazyRendering(rowContainerDiv: any, findScrollableContainer?: any): void;
|
2583
|
+
startLazyRendering(rowContainerDiv: any, findScrollableContainer?: (element: any) => any): void;
|
2578
2584
|
ensureVisibility(): void;
|
2579
2585
|
stopLazyRendering(): void;
|
2580
2586
|
idValue: string;
|
@@ -2644,25 +2650,25 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
|
|
2644
2650
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2645
2651
|
componentDidMount(): void;
|
2646
2652
|
componentWillUnmount(): void;
|
2647
|
-
doRender():
|
2648
|
-
protected renderElement():
|
2653
|
+
doRender(): JSX.Element;
|
2654
|
+
protected renderElement(): JSX.Element;
|
2649
2655
|
get css(): any;
|
2650
2656
|
set css(val: any);
|
2651
2657
|
handleTryAgainClick(event: any): void;
|
2652
|
-
protected renderCompleted():
|
2653
|
-
protected renderCompletedBefore():
|
2654
|
-
protected renderLoading():
|
2655
|
-
protected renderSurvey():
|
2656
|
-
protected renderTimerPanel(location: string):
|
2657
|
-
protected renderPage(page: any):
|
2658
|
-
protected renderProgress(isTop: boolean):
|
2659
|
-
protected renderNavigation(navPosition: string):
|
2660
|
-
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;
|
2661
2667
|
protected createSurvey(newProps: any): void;
|
2662
2668
|
protected updateSurvey(newProps: any, oldProps?: any): void;
|
2663
2669
|
protected setSurveyEvents(): void;
|
2664
|
-
createQuestionElement(question: any):
|
2665
|
-
renderError(key: string, error: any, cssClasses: any):
|
2670
|
+
createQuestionElement(question: any): JSX.Element;
|
2671
|
+
renderError(key: string, error: any, cssClasses: any): JSX.Element;
|
2666
2672
|
questionTitleLocation(): string;
|
2667
2673
|
questionErrorLocation(): string;
|
2668
2674
|
}
|
@@ -2670,7 +2676,7 @@ export declare class SurveyAction extends SurveyElementBase<IActionBarItemProps,
|
|
2670
2676
|
constructor(props: any);
|
2671
2677
|
get item(): any;
|
2672
2678
|
protected getStateElement(): Base;
|
2673
|
-
renderElement():
|
2679
|
+
renderElement(): JSX.Element;
|
2674
2680
|
}
|
2675
2681
|
export declare class SurveyActionBar extends SurveyElementBase<IActionBarProps, any> {
|
2676
2682
|
constructor(props: IActionBarProps);
|
@@ -2686,10 +2692,10 @@ export declare class SurveyActionBarItem extends SurveyElementBase<IActionBarIte
|
|
2686
2692
|
constructor(props: any);
|
2687
2693
|
get item(): any;
|
2688
2694
|
protected getStateElement(): Base;
|
2689
|
-
renderElement():
|
2690
|
-
renderText():
|
2691
|
-
renderButtonContent():
|
2692
|
-
renderInnerButton():
|
2695
|
+
renderElement(): JSX.Element;
|
2696
|
+
renderText(): JSX.Element;
|
2697
|
+
renderButtonContent(): JSX.Element;
|
2698
|
+
renderInnerButton(): JSX.Element;
|
2693
2699
|
}
|
2694
2700
|
export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
|
2695
2701
|
constructor(props: any);
|
@@ -2698,10 +2704,10 @@ export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
|
|
2698
2704
|
get question(): any;
|
2699
2705
|
get item(): any;
|
2700
2706
|
getStateElement(): any;
|
2701
|
-
render():
|
2702
|
-
protected renderIcon():
|
2703
|
-
protected renderInput():
|
2704
|
-
protected renderCaption():
|
2707
|
+
render(): JSX.Element;
|
2708
|
+
protected renderIcon(): JSX.Element;
|
2709
|
+
protected renderInput(): JSX.Element;
|
2710
|
+
protected renderCaption(): JSX.Element;
|
2705
2711
|
}
|
2706
2712
|
/*
|
2707
2713
|
* Base class of SurveyJS Elements and Survey.
|
@@ -2764,35 +2770,35 @@ export declare class SurveyPanelBase extends SurveyElementBase<any, any> {
|
|
2764
2770
|
protected canRender(): boolean;
|
2765
2771
|
renderedRowsCache: any;
|
2766
2772
|
protected renderRows(css: any): Array<Element>;
|
2767
|
-
protected createRow(row: any, css: any):
|
2773
|
+
protected createRow(row: any, css: any): JSX.Element;
|
2768
2774
|
}
|
2769
2775
|
export declare class SurveyProgress extends SurveyNavigationBase {
|
2770
2776
|
constructor(props: any);
|
2771
2777
|
protected get isTop(): boolean;
|
2772
2778
|
protected get progress(): number;
|
2773
2779
|
protected get progressText(): string;
|
2774
|
-
render():
|
2780
|
+
render(): JSX.Element;
|
2775
2781
|
}
|
2776
2782
|
export declare class SurveyProgressButtons extends SurveyNavigationBase {
|
2777
2783
|
constructor(props: any);
|
2778
2784
|
progressButtonsModel: any;
|
2779
2785
|
updateScroller: any;
|
2780
2786
|
listContainerRef: any;
|
2781
|
-
render():
|
2787
|
+
render(): JSX.Element;
|
2782
2788
|
protected getListElements(): Array<Element>;
|
2783
|
-
protected renderListElement(page: any, index: number):
|
2789
|
+
protected renderListElement(page: any, index: number): JSX.Element;
|
2784
2790
|
protected isListElementClickable(index: number): boolean;
|
2785
2791
|
protected getListElementCss(index: number): string;
|
2786
2792
|
protected clickListElement(index: number): void;
|
2787
2793
|
protected getScrollButtonCss(isLeftScroll: boolean): string;
|
2788
|
-
protected clickScrollButton(listContainerElement:
|
2794
|
+
protected clickScrollButton(listContainerElement: JSX.Element, isLeftScroll: boolean): void;
|
2789
2795
|
componentDidMount(): void;
|
2790
2796
|
componentWillUnmount(): void;
|
2791
2797
|
}
|
2792
2798
|
export declare class SurveyQuestion extends SurveyElementBase<any, any> {
|
2793
2799
|
constructor(props: any);
|
2794
2800
|
isNeedFocus: boolean;
|
2795
|
-
static renderQuestionBody(creator: ISurveyCreator, question: any):
|
2801
|
+
static renderQuestionBody(creator: ISurveyCreator, question: any): JSX.Element;
|
2796
2802
|
rootRef: any;
|
2797
2803
|
protected getStateElement(): Base;
|
2798
2804
|
protected get question(): any;
|
@@ -2800,15 +2806,15 @@ export declare class SurveyQuestion extends SurveyElementBase<any, any> {
|
|
2800
2806
|
componentWillUnmount(): void;
|
2801
2807
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2802
2808
|
protected canRender(): boolean;
|
2803
|
-
protected renderQuestionContent():
|
2804
|
-
protected renderElement():
|
2805
|
-
protected wrapElement(element:
|
2806
|
-
protected wrapQuestionContent(element:
|
2807
|
-
protected renderQuestion():
|
2808
|
-
protected renderDescription():
|
2809
|
-
protected renderComment(cssClasses: any):
|
2810
|
-
protected renderHeader(question: any):
|
2811
|
-
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;
|
2812
2818
|
}
|
2813
2819
|
export declare class SurveyQuestionElementBase extends SurveyElementBase<any, any> {
|
2814
2820
|
constructor(props: any);
|
@@ -2823,7 +2829,7 @@ export declare class SurveyQuestionElementBase extends SurveyElementBase<any, an
|
|
2823
2829
|
protected canRender(): boolean;
|
2824
2830
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
2825
2831
|
protected get isDisplayMode(): boolean;
|
2826
|
-
protected wrapCell(cell: any, element:
|
2832
|
+
protected wrapCell(cell: any, element: JSX.Element, reason: string): JSX.Element;
|
2827
2833
|
}
|
2828
2834
|
export declare class SurveyRow extends SurveyElementBase<any, any> {
|
2829
2835
|
constructor(props: any);
|
@@ -2831,16 +2837,16 @@ export declare class SurveyRow extends SurveyElementBase<any, any> {
|
|
2831
2837
|
protected getStateElement(): Base;
|
2832
2838
|
protected get css(): any;
|
2833
2839
|
protected canRender(): boolean;
|
2834
|
-
protected renderElementContent():
|
2835
|
-
protected renderElement():
|
2840
|
+
protected renderElementContent(): JSX.Element;
|
2841
|
+
protected renderElement(): JSX.Element;
|
2836
2842
|
componentDidMount(): void;
|
2837
2843
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
2838
2844
|
componentWillUnmount(): void;
|
2839
|
-
protected createElement(element: any, elementIndex?: number):
|
2845
|
+
protected createElement(element: any, elementIndex?: number): JSX.Element;
|
2840
2846
|
}
|
2841
2847
|
export declare class SurveyTimerModel extends Base {
|
2842
2848
|
constructor(survey: ISurvey);
|
2843
|
-
onTimer:
|
2849
|
+
onTimer: (page: PageModel) => void;
|
2844
2850
|
surveyValue: ISurvey;
|
2845
2851
|
text: string;
|
2846
2852
|
spent: number;
|
@@ -2857,7 +2863,7 @@ export declare class SurveyTimerModel extends Base {
|
|
2857
2863
|
export declare class SurveyValidator extends Base {
|
2858
2864
|
constructor();
|
2859
2865
|
errorOwner: ISurveyErrorOwner;
|
2860
|
-
onAsyncCompleted:
|
2866
|
+
onAsyncCompleted: (result: ValidatorResult) => void;
|
2861
2867
|
getSurvey(live?: boolean): ISurvey;
|
2862
2868
|
get text(): string;
|
2863
2869
|
set text(val: string);
|
@@ -2974,7 +2980,7 @@ export declare class UnaryOperand extends Operand {
|
|
2974
2980
|
get operator(): string;
|
2975
2981
|
get expression(): Operand;
|
2976
2982
|
getType(): string;
|
2977
|
-
toString(func?:
|
2983
|
+
toString(func?: (op: Operand) => string): string;
|
2978
2984
|
protected isContentEqual(op: Operand): boolean;
|
2979
2985
|
evaluate(processValue?: ProcessValue): boolean;
|
2980
2986
|
setVariables(variables: any): void;
|
@@ -3057,8 +3063,8 @@ export declare class ChoicesRestfull extends ChoicesRestful {
|
|
3057
3063
|
static get EncodeParameters(): boolean;
|
3058
3064
|
static set EncodeParameters(val: boolean);
|
3059
3065
|
static clearCache(): void;
|
3060
|
-
static get onBeforeSendRequest(): any;
|
3061
|
-
static set onBeforeSendRequest(val: any);
|
3066
|
+
static get onBeforeSendRequest(): (sender: ChoicesRestful, options: any) => void;
|
3067
|
+
static set onBeforeSendRequest(val: (sender: ChoicesRestful, options: any) => void);
|
3062
3068
|
}
|
3063
3069
|
export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
3064
3070
|
constructor(surveyValue?: ISurvey, creator?: any);
|
@@ -3190,8 +3196,8 @@ export declare class JsonMissingTypeError extends JsonMissingTypeErrorBase {
|
|
3190
3196
|
baseClassName: string;
|
3191
3197
|
}
|
3192
3198
|
export declare class ListModel extends ActionContainer {
|
3193
|
-
constructor(items: any, onItemSelect:
|
3194
|
-
onItemSelect:
|
3199
|
+
constructor(items: any, onItemSelect: (item: Action) => void, allowSelection: boolean, selectedItem?: IAction, onFilteredTextChangedCallback?: (text: string) => void);
|
3200
|
+
onItemSelect: (item: Action) => void;
|
3195
3201
|
allowSelection: boolean;
|
3196
3202
|
denySearch: boolean;
|
3197
3203
|
needFilter: boolean;
|
@@ -3200,12 +3206,13 @@ export declare class ListModel extends ActionContainer {
|
|
3200
3206
|
filteredText: string;
|
3201
3207
|
static INDENT: number;
|
3202
3208
|
static MINELEMENTCOUNT: number;
|
3209
|
+
isItemVisible(item: Action): boolean;
|
3203
3210
|
protected onSet(): void;
|
3204
|
-
selectItem:
|
3205
|
-
isItemDisabled:
|
3206
|
-
isItemSelected:
|
3207
|
-
getItemClass:
|
3208
|
-
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;
|
3209
3216
|
get filteredTextPlaceholder(): any;
|
3210
3217
|
onKeyDown(event: any): void;
|
3211
3218
|
onPointerDown(event: any, item: any): void;
|
@@ -3294,7 +3301,7 @@ export declare class RegexValidator extends SurveyValidator {
|
|
3294
3301
|
export declare class SurveyActionBarItemDropdown extends SurveyActionBarItem {
|
3295
3302
|
constructor(props: any);
|
3296
3303
|
viewModel: any;
|
3297
|
-
renderButtonContent():
|
3304
|
+
renderButtonContent(): JSX.Element;
|
3298
3305
|
componentWillUnmount(): void;
|
3299
3306
|
}
|
3300
3307
|
export declare class SurveyCustomWidget extends SurveyQuestionElementBase {
|
@@ -3304,7 +3311,7 @@ export declare class SurveyCustomWidget extends SurveyQuestionElementBase {
|
|
3304
3311
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
3305
3312
|
componentWillUnmount(): void;
|
3306
3313
|
protected canRender(): boolean;
|
3307
|
-
protected renderElement():
|
3314
|
+
protected renderElement(): JSX.Element;
|
3308
3315
|
}
|
3309
3316
|
/*
|
3310
3317
|
* Base class of SurveyJS Elements.
|
@@ -3521,7 +3528,7 @@ export declare class SurveyElementErrors extends ReactSurveyElement {
|
|
3521
3528
|
tooltipRef: any;
|
3522
3529
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
3523
3530
|
componentWillUnmount(): void;
|
3524
|
-
protected renderElement():
|
3531
|
+
protected renderElement(): JSX.Element;
|
3525
3532
|
}
|
3526
3533
|
/*
|
3527
3534
|
* The `Survey` object contains information about the survey, Pages, Questions, flow logic and etc.
|
@@ -4688,7 +4695,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4688
4695
|
*/
|
4689
4696
|
mergeData(data: any): void;
|
4690
4697
|
setDataCore(data: any): void;
|
4691
|
-
onEditingObjPropertyChanged: any;
|
4698
|
+
onEditingObjPropertyChanged: (sender: Base, options: any) => void;
|
4692
4699
|
get editingObj(): Base;
|
4693
4700
|
set editingObj(val: Base);
|
4694
4701
|
get isEditingSurveyElement(): boolean;
|
@@ -4706,9 +4713,9 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4706
4713
|
getDataValueCore(valuesHash: any, key: string): any;
|
4707
4714
|
setDataValueCore(valuesHash: any, key: string, value: any): void;
|
4708
4715
|
deleteDataValueCore(valuesHash: any, key: string): void;
|
4709
|
-
valueHashGetDataCallback: any;
|
4710
|
-
valueHashSetDataCallback: any;
|
4711
|
-
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;
|
4712
4719
|
/*
|
4713
4720
|
* Returns all comments from the data.
|
4714
4721
|
*/
|
@@ -4879,17 +4886,17 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4879
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.
|
4880
4887
|
* In this case, you should use `onAsyncValidation` parameter, which is a callback function: (hasErrors: boolean) => void
|
4881
4888
|
*/
|
4882
|
-
hasCurrentPageErrors(onAsyncValidation?:
|
4889
|
+
hasCurrentPageErrors(onAsyncValidation?: (hasErrors: boolean) => void): boolean;
|
4883
4890
|
/*
|
4884
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.
|
4885
4892
|
* In this case, you should use the second `onAsyncValidation` parameter, which is a callback function: (hasErrors: boolean) => void
|
4886
4893
|
*/
|
4887
|
-
hasPageErrors(page?: PageModel, onAsyncValidation?:
|
4894
|
+
hasPageErrors(page?: PageModel, onAsyncValidation?: (hasErrors: boolean) => void): boolean;
|
4888
4895
|
/*
|
4889
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.
|
4890
4897
|
* In this case, you should use the third `onAsyncValidation` parameter, which is a callback function: (hasErrors: boolean) => void
|
4891
4898
|
*/
|
4892
|
-
hasErrors(fireCallback?: boolean, focusOnFirstError?: boolean, onAsyncValidation?:
|
4899
|
+
hasErrors(fireCallback?: boolean, focusOnFirstError?: boolean, onAsyncValidation?: (hasErrors: boolean) => void): boolean;
|
4893
4900
|
/*
|
4894
4901
|
* Checks whether survey elements (pages, panels, and questions) have unique question names.
|
4895
4902
|
* You can check for unique names for individual page and panel (and all their elements) or a question.
|
@@ -5052,6 +5059,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5052
5059
|
matrixCellValueChanged(question: IQuestion, options: any): void;
|
5053
5060
|
matrixCellValueChanging(question: IQuestion, options: any): void;
|
5054
5061
|
get isValidateOnValueChanging(): boolean;
|
5062
|
+
get isValidateOnValueChanged(): boolean;
|
5055
5063
|
matrixCellValidate(question: IQuestion, options: any): SurveyError;
|
5056
5064
|
dynamicPanelAdded(question: IQuestion): void;
|
5057
5065
|
dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel): void;
|
@@ -5064,19 +5072,19 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5064
5072
|
/*
|
5065
5073
|
* Uploads a file to server.
|
5066
5074
|
*/
|
5067
|
-
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;
|
5068
5076
|
/*
|
5069
5077
|
* Downloads a file from server
|
5070
5078
|
*/
|
5071
|
-
downloadFile(questionName: string, fileValue: any, callback: any): void;
|
5079
|
+
downloadFile(questionName: string, fileValue: any, callback: (status: string, data: any) => any): void;
|
5072
5080
|
/*
|
5073
5081
|
* Clears files from server.
|
5074
5082
|
*/
|
5075
|
-
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;
|
5076
5084
|
updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any): Array<ItemValue>;
|
5077
5085
|
loadedChoicesFromServer(question: IQuestion): void;
|
5078
5086
|
protected createSurveyService(): dxSurveyService;
|
5079
|
-
protected uploadFilesCore(name: string, files: any, uploadingCallback: any): void;
|
5087
|
+
protected uploadFilesCore(name: string, files: any, uploadingCallback: (status: string, data: any) => any): void;
|
5080
5088
|
getPage(index: number): PageModel;
|
5081
5089
|
/*
|
5082
5090
|
* Adds an existing page to the survey.
|
@@ -5176,8 +5184,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5176
5184
|
setJsonObject(jsonObj: any): void;
|
5177
5185
|
isEndLoadingFromJson: string;
|
5178
5186
|
endLoadingFromJson(): void;
|
5179
|
-
|
5180
|
-
updateNavigationItemCssCallback: any;
|
5187
|
+
updateNavigationItemCssCallback: (strName?: string) => void;
|
5181
5188
|
protected createNavigationBar(): ActionContainer;
|
5182
5189
|
protected createNavigationActions(): Array<IAction>;
|
5183
5190
|
protected onBeforeCreating(): void;
|
@@ -5368,31 +5375,37 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5368
5375
|
dispose(): void;
|
5369
5376
|
disposeCallback: any;
|
5370
5377
|
}
|
5378
|
+
export declare class SurveyMultipleTextItem extends ReactSurveyElement {
|
5379
|
+
constructor(props: any);
|
5380
|
+
protected getStateElements(): any;
|
5381
|
+
protected renderElement(): JSX.Element;
|
5382
|
+
protected renderItemTooltipError(item: any, cssClasses: any): JSX.Element;
|
5383
|
+
}
|
5371
5384
|
export declare class SurveyNavigationButton extends ReactSurveyElement {
|
5372
5385
|
constructor(props: any);
|
5373
5386
|
protected get item(): Action;
|
5374
5387
|
protected canRender(): boolean;
|
5375
|
-
protected renderElement():
|
5388
|
+
protected renderElement(): JSX.Element;
|
5376
5389
|
}
|
5377
5390
|
export declare class SurveyPage extends SurveyPanelBase {
|
5378
5391
|
constructor(props: any);
|
5379
5392
|
protected getPanelBase(): PanelModelBase;
|
5380
5393
|
get page(): any;
|
5381
|
-
protected renderElement():
|
5382
|
-
protected renderTitle():
|
5383
|
-
protected renderDescription():
|
5394
|
+
protected renderElement(): JSX.Element;
|
5395
|
+
protected renderTitle(): JSX.Element;
|
5396
|
+
protected renderDescription(): JSX.Element;
|
5384
5397
|
}
|
5385
5398
|
export declare class SurveyPanel extends SurveyPanelBase {
|
5386
5399
|
constructor(props: any);
|
5387
5400
|
hasBeenExpanded: boolean;
|
5388
5401
|
get panel(): any;
|
5389
|
-
protected renderElement():
|
5390
|
-
protected renderHeader():
|
5391
|
-
protected wrapElement(element:
|
5392
|
-
protected renderContent(style: any, rows: any, className: string):
|
5393
|
-
protected renderTitle():
|
5394
|
-
protected renderDescription():
|
5395
|
-
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;
|
5396
5409
|
}
|
5397
5410
|
export declare class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
|
5398
5411
|
constructor(props: any);
|
@@ -5405,11 +5418,11 @@ export declare class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
|
|
5405
5418
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
5406
5419
|
protected doAfterRender(): void;
|
5407
5420
|
protected canRender(): boolean;
|
5408
|
-
protected renderErrors(errorsLocation: string):
|
5409
|
-
protected renderContent():
|
5410
|
-
protected renderElement():
|
5421
|
+
protected renderErrors(errorsLocation: string): JSX.Element;
|
5422
|
+
protected renderContent(): JSX.Element;
|
5423
|
+
protected renderElement(): JSX.Element;
|
5411
5424
|
protected getShowErrors(): boolean;
|
5412
|
-
protected renderQuestion():
|
5425
|
+
protected renderQuestion(): JSX.Element;
|
5413
5426
|
}
|
5414
5427
|
export declare class SurveyQuestionBoolean extends SurveyQuestionElementBase {
|
5415
5428
|
constructor(props: any);
|
@@ -5422,27 +5435,27 @@ export declare class SurveyQuestionBoolean extends SurveyQuestionElementBase {
|
|
5422
5435
|
handleOnLabelClick(event: any, value: boolean): void;
|
5423
5436
|
handleOnKeyDown(event: any): void;
|
5424
5437
|
protected updateDomElement(): void;
|
5425
|
-
protected renderElement():
|
5438
|
+
protected renderElement(): JSX.Element;
|
5426
5439
|
}
|
5427
5440
|
export declare class SurveyQuestionButtonGroup extends SurveyQuestionElementBase {
|
5428
5441
|
constructor(props: any);
|
5429
5442
|
protected get question(): any;
|
5430
5443
|
getStateElement(): any;
|
5431
|
-
render():
|
5444
|
+
render(): JSX.Element;
|
5432
5445
|
renderItems(): any;
|
5433
5446
|
}
|
5434
5447
|
export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
5435
5448
|
constructor(props: any);
|
5436
5449
|
protected get question(): QuestionCheckboxModel;
|
5437
|
-
protected renderElement():
|
5450
|
+
protected renderElement(): JSX.Element;
|
5438
5451
|
protected getHeader(): any;
|
5439
5452
|
protected getFooter(): any;
|
5440
|
-
protected getColumnedBody(cssClasses: any):
|
5453
|
+
protected getColumnedBody(cssClasses: any): JSX.Element;
|
5441
5454
|
protected getColumns(cssClasses: any): any;
|
5442
5455
|
protected getItems(cssClasses: any): Array<any>;
|
5443
5456
|
protected get textStyle(): any;
|
5444
|
-
protected renderOther():
|
5445
|
-
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;
|
5446
5459
|
}
|
5447
5460
|
export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
5448
5461
|
constructor(props: any);
|
@@ -5453,36 +5466,36 @@ export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
|
5453
5466
|
protected get isFirst(): any;
|
5454
5467
|
protected get index(): number;
|
5455
5468
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
5456
|
-
handleOnChange: any;
|
5457
|
-
selectAllChanged: any;
|
5469
|
+
handleOnChange: (event: any) => void;
|
5470
|
+
selectAllChanged: (event: any) => void;
|
5458
5471
|
protected canRender(): boolean;
|
5459
|
-
protected renderElement():
|
5472
|
+
protected renderElement(): JSX.Element;
|
5460
5473
|
protected get inputStyle(): any;
|
5461
|
-
protected renderCheckbox(isChecked: boolean, otherItem:
|
5474
|
+
protected renderCheckbox(isChecked: boolean, otherItem: JSX.Element): JSX.Element;
|
5462
5475
|
}
|
5463
5476
|
export declare class SurveyQuestionCommentItem extends ReactSurveyElement {
|
5464
5477
|
constructor(props: any);
|
5465
5478
|
protected canRender(): boolean;
|
5466
|
-
protected renderElement():
|
5479
|
+
protected renderElement(): JSX.Element;
|
5467
5480
|
}
|
5468
5481
|
export declare class SurveyQuestionEmpty extends SurveyQuestionElementBase {
|
5469
5482
|
constructor(props: any);
|
5470
5483
|
protected get question(): any;
|
5471
|
-
protected renderElement():
|
5484
|
+
protected renderElement(): JSX.Element;
|
5472
5485
|
}
|
5473
5486
|
export declare class SurveyQuestionExpression extends SurveyQuestionElementBase {
|
5474
5487
|
constructor(props: any);
|
5475
5488
|
protected get question(): any;
|
5476
|
-
protected renderElement():
|
5489
|
+
protected renderElement(): JSX.Element;
|
5477
5490
|
}
|
5478
5491
|
export declare class SurveyQuestionFile extends SurveyQuestionElementBase {
|
5479
5492
|
constructor(props: any);
|
5480
5493
|
protected get question(): any;
|
5481
|
-
protected renderElement():
|
5482
|
-
protected renderFileDecorator():
|
5483
|
-
protected renderClearButton(className: string):
|
5484
|
-
protected renderFileSign(className: string, val: any):
|
5485
|
-
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;
|
5486
5499
|
}
|
5487
5500
|
export declare class SurveyQuestionHtml extends SurveyQuestionElementBase {
|
5488
5501
|
constructor(props: any);
|
@@ -5491,7 +5504,7 @@ export declare class SurveyQuestionHtml extends SurveyQuestionElementBase {
|
|
5491
5504
|
componentWillUnmount(): void;
|
5492
5505
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
5493
5506
|
protected canRender(): boolean;
|
5494
|
-
protected renderElement():
|
5507
|
+
protected renderElement(): JSX.Element;
|
5495
5508
|
}
|
5496
5509
|
export declare class SurveyQuestionImage extends SurveyQuestionElementBase {
|
5497
5510
|
constructor(props: any);
|
@@ -5499,16 +5512,16 @@ export declare class SurveyQuestionImage extends SurveyQuestionElementBase {
|
|
5499
5512
|
componentWillUnmount(): void;
|
5500
5513
|
protected get question(): any;
|
5501
5514
|
protected canRender(): boolean;
|
5502
|
-
protected renderElement():
|
5515
|
+
protected renderElement(): JSX.Element;
|
5503
5516
|
}
|
5504
5517
|
export declare class SurveyQuestionImagePicker extends SurveyQuestionElementBase {
|
5505
5518
|
constructor(props: any);
|
5506
5519
|
protected get question(): any;
|
5507
|
-
protected renderElement():
|
5520
|
+
protected renderElement(): JSX.Element;
|
5508
5521
|
protected getColumns(cssClasses: any): any;
|
5509
5522
|
protected getItems(cssClasses: any): Array<any>;
|
5510
5523
|
protected get textStyle(): any;
|
5511
|
-
protected renderItem(key: string, item: any, cssClasses: any):
|
5524
|
+
protected renderItem(key: string, item: any, cssClasses: any): JSX.Element;
|
5512
5525
|
}
|
5513
5526
|
export declare class SurveyQuestionImagePickerItem extends ReactSurveyElement {
|
5514
5527
|
constructor(props: any);
|
@@ -5520,84 +5533,83 @@ export declare class SurveyQuestionImagePickerItem extends ReactSurveyElement {
|
|
5520
5533
|
protected get item(): any;
|
5521
5534
|
protected get question(): any;
|
5522
5535
|
handleOnChange(event: any): void;
|
5523
|
-
protected renderElement():
|
5536
|
+
protected renderElement(): JSX.Element;
|
5524
5537
|
}
|
5525
5538
|
export declare class SurveyQuestionMatrix extends SurveyQuestionElementBase {
|
5526
5539
|
constructor(props: any);
|
5527
5540
|
protected get question(): any;
|
5528
5541
|
componentDidMount(): void;
|
5529
5542
|
componentWillUnmount(): void;
|
5530
|
-
protected renderElement():
|
5543
|
+
protected renderElement(): JSX.Element;
|
5531
5544
|
}
|
5532
5545
|
export declare class SurveyQuestionMatrixActionsCell extends ReactSurveyElement {
|
5533
5546
|
constructor(props: any);
|
5534
5547
|
get model(): any;
|
5535
|
-
protected renderElement():
|
5548
|
+
protected renderElement(): JSX.Element;
|
5536
5549
|
}
|
5537
5550
|
export declare class SurveyQuestionMatrixDetailButton extends ReactSurveyElement {
|
5538
5551
|
constructor(props: any);
|
5539
5552
|
protected getStateElement(): any;
|
5540
5553
|
get item(): any;
|
5541
5554
|
handleOnShowHideClick(event: any): void;
|
5542
|
-
protected renderElement():
|
5555
|
+
protected renderElement(): JSX.Element;
|
5543
5556
|
}
|
5544
5557
|
export declare class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElementBase {
|
5545
5558
|
constructor(props: any);
|
5546
5559
|
protected get question(): any;
|
5547
5560
|
componentDidMount(): void;
|
5548
5561
|
componentWillUnmount(): void;
|
5549
|
-
protected renderElement():
|
5550
|
-
renderTableDiv():
|
5551
|
-
renderHeader():
|
5552
|
-
renderFooter():
|
5553
|
-
renderRows():
|
5554
|
-
renderRow(keyValue: any, row: any, cssClasses: any):
|
5555
|
-
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;
|
5556
5569
|
}
|
5557
5570
|
export declare class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
|
5558
5571
|
constructor(props: any);
|
5559
|
-
protected renderElement():
|
5572
|
+
protected renderElement(): JSX.Element;
|
5560
5573
|
}
|
5561
5574
|
export declare class SurveyQuestionMatrixDynamicRemoveButton extends ReactSurveyElement {
|
5562
5575
|
constructor(props: any);
|
5563
5576
|
handleOnRowRemoveClick(event: any): void;
|
5564
|
-
protected renderElement():
|
5577
|
+
protected renderElement(): JSX.Element;
|
5565
5578
|
}
|
5566
5579
|
export declare class SurveyQuestionMatrixRow extends ReactSurveyElement {
|
5567
5580
|
constructor(props: any);
|
5568
5581
|
handleOnChange(event: any): void;
|
5569
|
-
protected wrapCell(cell: any, element:
|
5582
|
+
protected wrapCell(cell: any, element: JSX.Element, reason: string): JSX.Element;
|
5570
5583
|
protected canRender(): boolean;
|
5571
|
-
protected renderElement():
|
5584
|
+
protected renderElement(): JSX.Element;
|
5572
5585
|
generateTds(): any;
|
5573
5586
|
cellClick(row: any, column: any): void;
|
5574
5587
|
}
|
5575
5588
|
export declare class SurveyQuestionMultipleText extends SurveyQuestionElementBase {
|
5576
5589
|
constructor(props: any);
|
5577
5590
|
protected get question(): any;
|
5578
|
-
protected renderElement():
|
5579
|
-
protected
|
5580
|
-
protected renderRow(rowIndex: number, items: any, cssClasses: any): any;
|
5591
|
+
protected renderElement(): JSX.Element;
|
5592
|
+
protected renderRow(rowIndex: number, items: any, cssClasses: any): JSX.Element;
|
5581
5593
|
}
|
5582
5594
|
export declare class SurveyQuestionOptionItem extends ReactSurveyElement {
|
5583
5595
|
constructor(props: any);
|
5584
5596
|
protected getStateElement(): Base;
|
5585
5597
|
protected canRender(): boolean;
|
5586
|
-
protected renderElement():
|
5598
|
+
protected renderElement(): JSX.Element;
|
5587
5599
|
}
|
5588
5600
|
export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBase {
|
5589
5601
|
constructor(props: any);
|
5590
5602
|
protected get question(): any;
|
5591
5603
|
componentDidMount(): void;
|
5592
5604
|
componentWillUnmount(): void;
|
5593
|
-
protected renderElement():
|
5594
|
-
protected renderNavigator():
|
5595
|
-
protected rendrerPrevButton():
|
5596
|
-
protected rendrerNextButton():
|
5597
|
-
protected renderRange():
|
5598
|
-
protected renderAddRowButton():
|
5599
|
-
protected renderNavigatorV2():
|
5600
|
-
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;
|
5601
5613
|
}
|
5602
5614
|
export declare class SurveyQuestionPanelDynamicAction extends ReactSurveyElement {
|
5603
5615
|
constructor(props: any);
|
@@ -5614,55 +5626,55 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
|
5614
5626
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
5615
5627
|
handleOnChange(event: any): void;
|
5616
5628
|
protected canRender(): boolean;
|
5617
|
-
protected renderElement():
|
5629
|
+
protected renderElement(): JSX.Element;
|
5618
5630
|
}
|
5619
5631
|
export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase {
|
5620
5632
|
constructor(props: any);
|
5621
5633
|
protected get question(): any;
|
5622
|
-
protected renderElement():
|
5634
|
+
protected renderElement(): JSX.Element;
|
5623
5635
|
protected getFooter(): any;
|
5624
|
-
protected getColumnedBody(cssClasses: any):
|
5636
|
+
protected getColumnedBody(cssClasses: any): JSX.Element;
|
5625
5637
|
protected getColumns(cssClasses: any): any;
|
5626
5638
|
protected getItems(cssClasses: any): Array<any>;
|
5627
5639
|
protected get textStyle(): any;
|
5628
|
-
protected renderOther(cssClasses: any):
|
5640
|
+
protected renderOther(cssClasses: any): JSX.Element;
|
5629
5641
|
}
|
5630
5642
|
export declare class SurveyQuestionRanking extends SurveyQuestionElementBase {
|
5631
5643
|
constructor(props: any);
|
5632
5644
|
protected get question(): any;
|
5633
|
-
protected renderElement():
|
5645
|
+
protected renderElement(): JSX.Element;
|
5634
5646
|
protected getItems(): Array<any>;
|
5635
|
-
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;
|
5636
5648
|
}
|
5637
5649
|
export declare class SurveyQuestionRankingItem extends ReactSurveyElement {
|
5638
5650
|
constructor(props: any);
|
5639
5651
|
protected get text(): string;
|
5640
5652
|
protected get index(): string;
|
5641
5653
|
protected get indexText(): string;
|
5642
|
-
protected get handleKeydown(): any;
|
5643
|
-
protected get handlePointerDown(): any;
|
5654
|
+
protected get handleKeydown(): (event: any) => void;
|
5655
|
+
protected get handlePointerDown(): (event: any) => void;
|
5644
5656
|
protected get cssClasses(): any;
|
5645
5657
|
protected get itemClass(): string;
|
5646
5658
|
protected get question(): any;
|
5647
|
-
protected renderElement():
|
5659
|
+
protected renderElement(): JSX.Element;
|
5648
5660
|
}
|
5649
5661
|
export declare class SurveyQuestionRating extends SurveyQuestionElementBase {
|
5650
5662
|
constructor(props: any);
|
5651
5663
|
protected get question(): any;
|
5652
5664
|
handleOnClick(event: any): void;
|
5653
|
-
protected renderElement():
|
5654
|
-
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;
|
5655
5667
|
}
|
5656
5668
|
export declare class SurveyQuestionSignaturePad extends SurveyQuestionElementBase {
|
5657
5669
|
constructor(props: any);
|
5658
5670
|
protected get question(): any;
|
5659
|
-
protected renderElement():
|
5660
|
-
renderCleanButton():
|
5671
|
+
protected renderElement(): JSX.Element;
|
5672
|
+
renderCleanButton(): JSX.Element;
|
5661
5673
|
}
|
5662
5674
|
export declare class SurveyQuestionUncontrolledElement<T> extends SurveyQuestionElementBase {
|
5663
5675
|
constructor(props: any);
|
5664
5676
|
protected get question(): T;
|
5665
|
-
updateValueOnEvent: any;
|
5677
|
+
updateValueOnEvent: (event: any) => void;
|
5666
5678
|
protected setValueCore(newValue: any): void;
|
5667
5679
|
protected getValueCore(): any;
|
5668
5680
|
protected updateDomElement(): void;
|
@@ -5671,7 +5683,7 @@ export declare class SurveyTimerPanel extends ReactSurveyElement {
|
|
5671
5683
|
constructor(props: any);
|
5672
5684
|
protected getStateElement(): Base;
|
5673
5685
|
protected get timerModel(): any;
|
5674
|
-
render():
|
5686
|
+
render(): JSX.Element;
|
5675
5687
|
}
|
5676
5688
|
/*
|
5677
5689
|
* It extends the Trigger base class and add properties required for SurveyJS classes.
|
@@ -5690,9 +5702,9 @@ export declare class SurveyWindow extends Survey {
|
|
5690
5702
|
protected getStateElements(): Array<Base>;
|
5691
5703
|
handleOnExpanded(event: any): void;
|
5692
5704
|
protected canRender(): boolean;
|
5693
|
-
protected renderElement():
|
5694
|
-
protected renderWindowHeader():
|
5695
|
-
protected renderBody():
|
5705
|
+
protected renderElement(): JSX.Element;
|
5706
|
+
protected renderWindowHeader(): JSX.Element;
|
5707
|
+
protected renderBody(): JSX.Element;
|
5696
5708
|
protected createSurvey(newProps: any): void;
|
5697
5709
|
}
|
5698
5710
|
/*
|
@@ -5739,7 +5751,7 @@ export declare class Variable extends Const {
|
|
5739
5751
|
valueInfo: any;
|
5740
5752
|
useValueAsItIs: boolean;
|
5741
5753
|
getType(): string;
|
5742
|
-
toString(func?:
|
5754
|
+
toString(func?: (op: Operand) => string): string;
|
5743
5755
|
get variable(): string;
|
5744
5756
|
evaluate(processValue?: ProcessValue): any;
|
5745
5757
|
setVariables(variables: any): void;
|
@@ -5771,8 +5783,8 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5771
5783
|
elementsValue: any;
|
5772
5784
|
isQuestionsReady: boolean;
|
5773
5785
|
questionsValue: any;
|
5774
|
-
addElementCallback:
|
5775
|
-
removeElementCallback:
|
5786
|
+
addElementCallback: (element: IElement) => void;
|
5787
|
+
removeElementCallback: (element: IElement) => void;
|
5776
5788
|
onGetQuestionTitleLocation: any;
|
5777
5789
|
/*
|
5778
5790
|
* Returns the question type.
|
@@ -6059,7 +6071,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6059
6071
|
customWidgetData: any;
|
6060
6072
|
focusCallback: any;
|
6061
6073
|
surveyLoadCallback: any;
|
6062
|
-
displayValueCallback:
|
6074
|
+
displayValueCallback: (text: string) => string;
|
6063
6075
|
defaultValueRunner: ExpressionRunner;
|
6064
6076
|
isChangingViaDefaultValue: boolean;
|
6065
6077
|
isValueChangedDirectly: boolean;
|
@@ -6068,9 +6080,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6068
6080
|
localeChangedCallback: any;
|
6069
6081
|
validateValueCallback: any;
|
6070
6082
|
questionTitleTemplateCallback: any;
|
6071
|
-
afterRenderQuestionCallback: any;
|
6072
|
-
valueFromDataCallback: any;
|
6073
|
-
valueToDataCallback: any;
|
6083
|
+
afterRenderQuestionCallback: (question: Question, element: any) => any;
|
6084
|
+
valueFromDataCallback: (val: any) => any;
|
6085
|
+
valueToDataCallback: (val: any) => any;
|
6074
6086
|
onGetSurvey: any;
|
6075
6087
|
locProcessedTitle: LocalizableString;
|
6076
6088
|
protected isReadyValue: boolean;
|
@@ -6473,7 +6485,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6473
6485
|
protected getDefaultRunner(runner: ExpressionRunner, expression: string): ExpressionRunner;
|
6474
6486
|
protected setDefaultValue(): void;
|
6475
6487
|
protected isValueExpression(val: any): boolean;
|
6476
|
-
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;
|
6477
6489
|
/*
|
6478
6490
|
* The question comment value.
|
6479
6491
|
*/
|
@@ -6525,7 +6537,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6525
6537
|
protected hasRequiredError(): boolean;
|
6526
6538
|
validatorRunner: ValidatorRunner;
|
6527
6539
|
isRunningValidatorsValue: boolean;
|
6528
|
-
onCompletedAsyncValidators:
|
6540
|
+
onCompletedAsyncValidators: (hasErrors: boolean) => void;
|
6529
6541
|
get isRunningValidators(): boolean;
|
6530
6542
|
protected getIsRunningValidators(): boolean;
|
6531
6543
|
protected runValidators(): Array<SurveyError>;
|
@@ -6597,53 +6609,53 @@ export declare class SurveyFlowPanel extends SurveyPanel {
|
|
6597
6609
|
protected renderQuestion(question: any): string;
|
6598
6610
|
protected renderRows(): Array<Element>;
|
6599
6611
|
renderedIndex: number;
|
6600
|
-
protected renderHtml():
|
6612
|
+
protected renderHtml(): JSX.Element;
|
6601
6613
|
protected renderNodes(domNodes: any): Array<Element>;
|
6602
|
-
protected renderParentNode(node: any):
|
6603
|
-
protected renderNode(node: any):
|
6604
|
-
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;
|
6605
6617
|
}
|
6606
6618
|
export declare class SurveyMultipleTextItemEditor extends SurveyQuestionAndErrorsWrapped {
|
6607
6619
|
constructor(props: any);
|
6608
|
-
protected renderElement():
|
6620
|
+
protected renderElement(): JSX.Element;
|
6609
6621
|
}
|
6610
6622
|
export declare class SurveyQuestionAndErrorsCell extends SurveyQuestionAndErrorsWrapped {
|
6611
6623
|
constructor(props: any);
|
6612
6624
|
protected cellRef: any;
|
6613
6625
|
componentWillUnmount(): void;
|
6614
|
-
protected renderElement():
|
6626
|
+
protected renderElement(): JSX.Element;
|
6615
6627
|
protected getCellStyle(): any;
|
6616
6628
|
protected getHeaderText(): string;
|
6617
|
-
protected wrapCell(cell: any, element:
|
6629
|
+
protected wrapCell(cell: any, element: JSX.Element): JSX.Element;
|
6618
6630
|
}
|
6619
6631
|
export declare class SurveyQuestionBooleanCheckbox extends SurveyQuestionBoolean {
|
6620
6632
|
constructor(props: any);
|
6621
|
-
protected renderElement():
|
6633
|
+
protected renderElement(): JSX.Element;
|
6622
6634
|
}
|
6623
6635
|
export declare class SurveyQuestionBooleanRadio extends SurveyQuestionBoolean {
|
6624
6636
|
constructor(props: any);
|
6625
|
-
handleOnChange: any;
|
6626
|
-
protected renderElement():
|
6637
|
+
handleOnChange: (event: any) => void;
|
6638
|
+
protected renderElement(): JSX.Element;
|
6627
6639
|
}
|
6628
6640
|
export declare class SurveyQuestionComment extends SurveyQuestionUncontrolledElement<QuestionCommentModel> {
|
6629
6641
|
constructor(props: any);
|
6630
|
-
protected renderElement():
|
6642
|
+
protected renderElement(): JSX.Element;
|
6631
6643
|
}
|
6632
6644
|
export declare class SurveyQuestionComposite extends SurveyQuestionUncontrolledElement<QuestionCompositeModel> {
|
6633
6645
|
constructor(props: any);
|
6634
6646
|
protected canRender(): boolean;
|
6635
|
-
protected renderElement():
|
6647
|
+
protected renderElement(): JSX.Element;
|
6636
6648
|
}
|
6637
6649
|
export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElement<QuestionCustomModel> {
|
6638
6650
|
constructor(props: any);
|
6639
6651
|
protected getStateElements(): Array<Base>;
|
6640
|
-
protected renderElement():
|
6652
|
+
protected renderElement(): JSX.Element;
|
6641
6653
|
}
|
6642
6654
|
export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontrolledElement<T> {
|
6643
6655
|
constructor(props: any);
|
6644
6656
|
protected setValueCore(newValue: any): void;
|
6645
6657
|
protected getValueCore(): any;
|
6646
|
-
protected renderSelect(cssClasses: any):
|
6658
|
+
protected renderSelect(cssClasses: any): JSX.Element;
|
6647
6659
|
}
|
6648
6660
|
export declare class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {
|
6649
6661
|
constructor(props: any);
|
@@ -6652,44 +6664,44 @@ export declare class SurveyQuestionMatrixDynamic extends SurveyQuestionMatrixDro
|
|
6652
6664
|
constructor(props: any);
|
6653
6665
|
protected get matrix(): any;
|
6654
6666
|
handleOnRowAddClick(event: any): void;
|
6655
|
-
protected renderElement():
|
6656
|
-
protected renderAddRowButtonOnTop(cssClasses: any):
|
6657
|
-
protected renderAddRowButtonOnBottom(cssClasses: any):
|
6658
|
-
protected renderNoRowsContent(cssClasses: any):
|
6659
|
-
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;
|
6660
6672
|
}
|
6661
6673
|
export declare class SurveyQuestionPanelDynamicAddButton extends SurveyQuestionPanelDynamicAction {
|
6662
6674
|
constructor(props: any);
|
6663
|
-
protected handleClick: any;
|
6664
|
-
protected renderElement():
|
6675
|
+
protected handleClick: (event: any) => void;
|
6676
|
+
protected renderElement(): JSX.Element;
|
6665
6677
|
}
|
6666
6678
|
export declare class SurveyQuestionPanelDynamicItem extends SurveyPanel {
|
6667
6679
|
constructor(props: any);
|
6668
6680
|
protected getSurvey(): SurveyModel;
|
6669
6681
|
protected getCss(): any;
|
6670
6682
|
handleOnPanelRemoveClick(event: any): void;
|
6671
|
-
render():
|
6672
|
-
protected renderButton():
|
6683
|
+
render(): JSX.Element;
|
6684
|
+
protected renderButton(): JSX.Element;
|
6673
6685
|
}
|
6674
6686
|
export declare class SurveyQuestionPanelDynamicNextButton extends SurveyQuestionPanelDynamicAction {
|
6675
6687
|
constructor(props: any);
|
6676
|
-
protected handleClick: any;
|
6677
|
-
protected renderElement():
|
6688
|
+
protected handleClick: (event: any) => void;
|
6689
|
+
protected renderElement(): JSX.Element;
|
6678
6690
|
}
|
6679
6691
|
export declare class SurveyQuestionPanelDynamicPrevButton extends SurveyQuestionPanelDynamicAction {
|
6680
6692
|
constructor(props: any);
|
6681
|
-
protected handleClick: any;
|
6682
|
-
protected renderElement():
|
6693
|
+
protected handleClick: (event: any) => void;
|
6694
|
+
protected renderElement(): JSX.Element;
|
6683
6695
|
}
|
6684
6696
|
export declare class SurveyQuestionPanelDynamicProgressText extends SurveyQuestionPanelDynamicAction {
|
6685
6697
|
constructor(props: any);
|
6686
|
-
protected renderElement():
|
6698
|
+
protected renderElement(): JSX.Element;
|
6687
6699
|
}
|
6688
6700
|
export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElement<QuestionTextModel> {
|
6689
6701
|
constructor(props: any);
|
6690
6702
|
_isWaitingForEnter: boolean;
|
6691
|
-
protected renderInput():
|
6692
|
-
protected renderElement():
|
6703
|
+
protected renderInput(): JSX.Element;
|
6704
|
+
protected renderElement(): JSX.Element;
|
6693
6705
|
}
|
6694
6706
|
/*
|
6695
6707
|
* If expression returns true, it completes the survey.
|
@@ -7276,13 +7288,13 @@ export declare class QuestionFileModel extends Question {
|
|
7276
7288
|
getReadOnlyFileCss(): string;
|
7277
7289
|
get fileRootCss(): string;
|
7278
7290
|
getFileDecoratorCss(): string;
|
7279
|
-
onDragOver: any;
|
7280
|
-
onDrop: any;
|
7281
|
-
onDragLeave: any;
|
7282
|
-
doChange: any;
|
7283
|
-
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;
|
7284
7296
|
doRemoveFile(data: any): void;
|
7285
|
-
doDownloadFile: any;
|
7297
|
+
doDownloadFile: (event: any, data: any) => void;
|
7286
7298
|
}
|
7287
7299
|
/*
|
7288
7300
|
* A Model for a matrix base question.
|
@@ -7626,6 +7638,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
7626
7638
|
setVisibleIndex(value: number): number;
|
7627
7639
|
/*
|
7628
7640
|
* Returns true when an end user may add a new panel. The question is not read only and panelCount less than maxPanelCount
|
7641
|
+
* and renderMode is "list" or the current panel doesn't have any errors
|
7629
7642
|
*/
|
7630
7643
|
get canAddPanel(): boolean;
|
7631
7644
|
/*
|
@@ -7650,6 +7663,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
7650
7663
|
getProgressInfo(): IProgressInfo;
|
7651
7664
|
/*
|
7652
7665
|
* Add a new dynamic panel based on the template Panel. It checks if canAddPanel returns true and then calls addPanel method.
|
7666
|
+
* If a renderMode is different from "list" and the current panel has erros, then
|
7653
7667
|
*/
|
7654
7668
|
addPanelUI(): PanelModel;
|
7655
7669
|
/*
|
@@ -7662,8 +7676,9 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
7662
7676
|
removePanelUI(value: any): void;
|
7663
7677
|
/*
|
7664
7678
|
* Goes to the next panel in the PanelDynamic
|
7679
|
+
* Returns true, if it can move to the next panel. It can return false if the renderMode is "list" or the current panel has errors.
|
7665
7680
|
*/
|
7666
|
-
goToNextPanel():
|
7681
|
+
goToNextPanel(): boolean;
|
7667
7682
|
/*
|
7668
7683
|
* Goes to the previous panel in the PanelDynamic
|
7669
7684
|
*/
|
@@ -7831,7 +7846,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7831
7846
|
dependedQuestions: any;
|
7832
7847
|
noneItemValue: ItemValue;
|
7833
7848
|
newItemValue: ItemValue;
|
7834
|
-
canShowOptionItemCallback:
|
7849
|
+
canShowOptionItemCallback: (item: ItemValue) => boolean;
|
7835
7850
|
getType(): string;
|
7836
7851
|
dispose(): void;
|
7837
7852
|
protected getItemValueType(): string;
|
@@ -7885,7 +7900,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7885
7900
|
protected runItemsEnableCondition(values: any, properties: any): any;
|
7886
7901
|
protected onAfterRunItemsEnableCondition(): void;
|
7887
7902
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
7888
|
-
changeItemVisisbility():
|
7903
|
+
changeItemVisisbility(): (item: ItemValue, val: boolean) => boolean;
|
7889
7904
|
protected getHasOther(val: any): boolean;
|
7890
7905
|
get validatedValue(): any;
|
7891
7906
|
protected createRestful(): ChoicesRestful;
|
@@ -7984,7 +7999,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7984
7999
|
get enabledChoices(): any;
|
7985
8000
|
protected updateVisibleChoices(): void;
|
7986
8001
|
protected canUseFilteredChoices(): boolean;
|
7987
|
-
setCanShowOptionItemCallback(func:
|
8002
|
+
setCanShowOptionItemCallback(func: (item: ItemValue) => boolean): void;
|
7988
8003
|
protected addToVisibleChoices(items: any, isAddAll: boolean): void;
|
7989
8004
|
protected canShowOptionItem(item: ItemValue, isAddAll: boolean, hasItem: boolean): boolean;
|
7990
8005
|
/*
|
@@ -8163,8 +8178,8 @@ export declare class QuestionTextBase extends Question {
|
|
8163
8178
|
}
|
8164
8179
|
export declare class SurveyQuestionDropdown extends SurveyQuestionDropdownBase<Question> {
|
8165
8180
|
constructor(props: any);
|
8166
|
-
protected renderElement():
|
8167
|
-
protected renderOther(cssClasses: any):
|
8181
|
+
protected renderElement(): JSX.Element;
|
8182
|
+
protected renderOther(cssClasses: any): JSX.Element;
|
8168
8183
|
}
|
8169
8184
|
export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndErrorsCell {
|
8170
8185
|
constructor(props: any);
|
@@ -8173,11 +8188,11 @@ export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndE
|
|
8173
8188
|
protected getShowErrors(): boolean;
|
8174
8189
|
protected getCellStyle(): any;
|
8175
8190
|
protected getHeaderText(): string;
|
8176
|
-
protected renderQuestion():
|
8191
|
+
protected renderQuestion(): JSX.Element;
|
8177
8192
|
}
|
8178
8193
|
export declare class SurveyQuestionRatingDropdown extends SurveyQuestionDropdownBase<QuestionRatingModel> {
|
8179
8194
|
constructor(props: any);
|
8180
|
-
protected renderElement():
|
8195
|
+
protected renderElement(): JSX.Element;
|
8181
8196
|
}
|
8182
8197
|
/*
|
8183
8198
|
* The flow panel object. It is a container with flow layout where you can mix questions with markdown text.
|
@@ -8186,7 +8201,7 @@ export declare class FlowPanelModel extends PanelModel {
|
|
8186
8201
|
constructor(name?: string);
|
8187
8202
|
static contentElementNamePrefix: string;
|
8188
8203
|
contentChangedCallback: any;
|
8189
|
-
onGetHtmlForQuestion:
|
8204
|
+
onGetHtmlForQuestion: (question: Question) => string;
|
8190
8205
|
onCustomHtmlProducing: any;
|
8191
8206
|
getType(): string;
|
8192
8207
|
getChildrenLayoutType(): string;
|
@@ -8439,12 +8454,12 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
8439
8454
|
protected isRowChanging: boolean;
|
8440
8455
|
columnsChangedCallback: any;
|
8441
8456
|
onRenderedTableResetCallback: any;
|
8442
|
-
onRenderedTableCreatedCallback:
|
8443
|
-
onCellCreatedCallback: any;
|
8444
|
-
onCellValueChangedCallback: any;
|
8445
|
-
onHasDetailPanelCallback:
|
8446
|
-
onCreateDetailPanelCallback:
|
8447
|
-
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;
|
8448
8463
|
protected createColumnValues(): any;
|
8449
8464
|
/*
|
8450
8465
|
* Returns the type of the object as a string as it represents in the json.
|
@@ -8825,7 +8840,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
8825
8840
|
}
|
8826
8841
|
export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown {
|
8827
8842
|
constructor(props: any);
|
8828
|
-
protected renderSelect(cssClasses: any):
|
8843
|
+
protected renderSelect(cssClasses: any): JSX.Element;
|
8829
8844
|
}
|
8830
8845
|
/*
|
8831
8846
|
* A Model for a button group question.
|
@@ -8988,7 +9003,7 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
|
|
8988
9003
|
protected supportResponsiveness(): boolean;
|
8989
9004
|
protected needResponsiveness(): boolean;
|
8990
9005
|
_width: number;
|
8991
|
-
onContentLoaded: any;
|
9006
|
+
onContentLoaded: (item: ImageItemValue, event: any) => void;
|
8992
9007
|
responsiveColCount: number;
|
8993
9008
|
protected getCurrentColCount(): number;
|
8994
9009
|
protected processResponsiveness(_: number, availableWidth: number): boolean;
|
@@ -9031,7 +9046,7 @@ export declare class QuestionMatrixDropdownModel extends QuestionMatrixDropdownM
|
|
9031
9046
|
*/
|
9032
9047
|
export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownModelBase implements IMatrixDropdownData {
|
9033
9048
|
constructor(name: string);
|
9034
|
-
onGetValueForNewRowCallBack: any;
|
9049
|
+
onGetValueForNewRowCallBack: (sender: QuestionMatrixDynamicModel) => any;
|
9035
9050
|
rowCounter: number;
|
9036
9051
|
initialRowCount: number;
|
9037
9052
|
setRowCountValueFromData: boolean;
|
@@ -9039,7 +9054,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
9039
9054
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
9040
9055
|
draggedRow: MatrixDropdownRowModelBase;
|
9041
9056
|
onPointerDown(pointerDownEvent: any, row: MatrixDropdownRowModelBase): void;
|
9042
|
-
startDragMatrixRow: any;
|
9057
|
+
startDragMatrixRow: (event: any, currentTarget: any) => void;
|
9043
9058
|
getType(): string;
|
9044
9059
|
get isRowsDynamic(): boolean;
|
9045
9060
|
/*
|
@@ -9066,7 +9081,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
9066
9081
|
protected isDefaultValueEmpty(): boolean;
|
9067
9082
|
protected valueFromData(val: any): any;
|
9068
9083
|
protected setDefaultValue(): void;
|
9069
|
-
moveRowByIndex:
|
9084
|
+
moveRowByIndex: (fromIndex: number, toIndex: number) => void;
|
9070
9085
|
/*
|
9071
9086
|
* The number of rows in the matrix.
|
9072
9087
|
*/
|
@@ -9104,7 +9119,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
9104
9119
|
* Returns true, if a new row can be added.
|
9105
9120
|
*/
|
9106
9121
|
get canAddRow(): boolean;
|
9107
|
-
canRemoveRowsCallback:
|
9122
|
+
canRemoveRowsCallback: (allow: boolean) => boolean;
|
9108
9123
|
/*
|
9109
9124
|
* Returns true, if row can be removed.
|
9110
9125
|
*/
|
@@ -9232,31 +9247,31 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
9232
9247
|
currentDropTarget: ItemValue;
|
9233
9248
|
dropTargetNodeMove: string;
|
9234
9249
|
endLoadingFromJson(): void;
|
9235
|
-
handlePointerDown: any;
|
9250
|
+
handlePointerDown: (event: any, choice: ItemValue, node: any) => void;
|
9236
9251
|
afterRenderQuestionElement(el: any): void;
|
9237
9252
|
beforeDestroyQuestionElement(el: any): void;
|
9238
|
-
handleKeydown: any;
|
9253
|
+
handleKeydown: (event: any, choice: ItemValue) => void;
|
9239
9254
|
protected supportSelectAll(): boolean;
|
9240
9255
|
supportOther(): boolean;
|
9241
9256
|
supportNone(): boolean;
|
9242
|
-
handleArrowUp:
|
9243
|
-
handleArrowDown:
|
9244
|
-
focusItem:
|
9257
|
+
handleArrowUp: (index: number, choice: ItemValue) => void;
|
9258
|
+
handleArrowDown: (index: number, choice: ItemValue) => void;
|
9259
|
+
focusItem: (index: number) => void;
|
9245
9260
|
setValue: any;
|
9246
9261
|
setValueFromUI: any;
|
9247
9262
|
syncNumbers: any;
|
9248
|
-
setGhostText:
|
9263
|
+
setGhostText: (text: string) => void;
|
9249
9264
|
getIconHoverCss(): string;
|
9250
9265
|
getIconFocusCss(): string;
|
9251
9266
|
}
|
9252
|
-
export declare function property(options?: any): any;
|
9253
|
-
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;
|
9254
9269
|
export declare function unwrap<T>(value: any): T;
|
9255
9270
|
export declare function getSize(value: any): any;
|
9256
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;
|
9257
9272
|
export declare function getCurrecyCodes(): Array<any>;
|
9258
9273
|
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
9259
|
-
export declare function attachKey2click(element:
|
9274
|
+
export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: any): JSX.Element;
|
9260
9275
|
/*
|
9261
9276
|
* Global survey settings
|
9262
9277
|
*/
|
@@ -9382,7 +9397,7 @@ export declare var settings: {
|
|
9382
9397
|
/*
|
9383
9398
|
* Override this function, set your function, if you want to show your own dialog confirm window instead of standard browser window.
|
9384
9399
|
*/
|
9385
|
-
confirmActionFunc:
|
9400
|
+
confirmActionFunc: (message: string) => boolean,
|
9386
9401
|
/*
|
9387
9402
|
* Set this property to change the default value of the minWidth constraint
|
9388
9403
|
*/
|
@@ -9460,10 +9475,10 @@ export declare var surveyLocalization: {
|
|
9460
9475
|
supportedLocales: any,
|
9461
9476
|
currentLocale: string,
|
9462
9477
|
defaultLocale: string,
|
9463
|
-
getLocaleStrings: any,
|
9464
|
-
getCurrentStrings: any,
|
9465
|
-
getString: any,
|
9466
|
-
getLocales: any,
|
9478
|
+
getLocaleStrings: (loc: string) => any,
|
9479
|
+
getCurrentStrings: (locale?: string) => any,
|
9480
|
+
getString: (strName: string, locale?: string) => any,
|
9481
|
+
getLocales: (removeDefaultLoc?: boolean) => any,
|
9467
9482
|
};
|
9468
9483
|
export declare var surveyStrings: any;
|
9469
9484
|
/*
|
@@ -9471,7 +9486,7 @@ export declare var surveyStrings: any;
|
|
9471
9486
|
*/
|
9472
9487
|
export declare var Serializer: JsonMetadata;
|
9473
9488
|
export declare var surveyBuiltInVarible: string;
|
9474
|
-
export declare var registerFunction: any;
|
9489
|
+
export declare var registerFunction: (name: string, func: any) => any;
|
9475
9490
|
export declare var parse: any;
|
9476
9491
|
export declare var defaultActionBarCss: {
|
9477
9492
|
root: string,
|
@@ -9816,23 +9831,23 @@ export declare var defaultStandardCss: {
|
|
9816
9831
|
},
|
9817
9832
|
};
|
9818
9833
|
export declare var surveyTimerFunctions: {
|
9819
|
-
setTimeout: any,
|
9820
|
-
clearTimeout:
|
9834
|
+
setTimeout: (func: any) => any,
|
9835
|
+
clearTimeout: (timerId: number) => void,
|
9821
9836
|
};
|
9822
9837
|
export declare var matrixDropdownColumnTypes: {
|
9823
9838
|
dropdown: {
|
9824
|
-
onCellQuestionUpdate: any,
|
9839
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9825
9840
|
},
|
9826
9841
|
checkbox: {
|
9827
|
-
onCellQuestionUpdate: any,
|
9842
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9828
9843
|
},
|
9829
9844
|
radiogroup: {
|
9830
|
-
onCellQuestionUpdate: any,
|
9845
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9831
9846
|
},
|
9832
9847
|
text: any,
|
9833
9848
|
comment: any,
|
9834
9849
|
boolean: {
|
9835
|
-
onCellQuestionUpdate: any,
|
9850
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9836
9851
|
},
|
9837
9852
|
expression: any,
|
9838
9853
|
rating: any,
|