survey-react 1.9.30 → 1.9.33
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 +35 -5
- package/defaultV2.min.css +2 -2
- package/modern.css +18 -3
- package/modern.min.css +2 -2
- package/package.json +3 -3
- package/survey.css +17 -2
- package/survey.min.css +2 -2
- package/survey.react.d.ts +448 -383
- package/survey.react.js +558 -318
- 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.33
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -31,14 +31,14 @@ export interface ILocalizableString {
|
|
31
31
|
export interface IPropertyDecoratorOptions<T = any> {
|
32
32
|
defaultValue?: T;
|
33
33
|
defaultSource?: string;
|
34
|
-
getDefaultValue?: any;
|
34
|
+
getDefaultValue?: (objectInstance?: any) => T;
|
35
35
|
localizable?: any;
|
36
|
-
onSet?: any;
|
36
|
+
onSet?: (val: T, objectInstance: any) => void;
|
37
37
|
}
|
38
38
|
export interface IArrayPropertyDecoratorOptions {
|
39
39
|
onPush?: any;
|
40
40
|
onRemove?: any;
|
41
|
-
onSet?: any;
|
41
|
+
onSet?: (val: any, target: any) => void;
|
42
42
|
}
|
43
43
|
export interface IObject {
|
44
44
|
}
|
@@ -90,7 +90,7 @@ export interface IExpresionExecutor {
|
|
90
90
|
/*
|
91
91
|
* This call back runs on executing expression if there is at least one async function
|
92
92
|
*/
|
93
|
-
onComplete: any;
|
93
|
+
onComplete: (res: any) => void;
|
94
94
|
}
|
95
95
|
/*
|
96
96
|
* An action item.
|
@@ -125,7 +125,7 @@ export interface IAction {
|
|
125
125
|
/*
|
126
126
|
* A function that is executed when users click the action item.
|
127
127
|
*/
|
128
|
-
action?: any;
|
128
|
+
action?: (context?: any) => void;
|
129
129
|
/*
|
130
130
|
* One or several CSS classes that you want to apply to the outer `<div>` element.
|
131
131
|
* In the markup, an action item is rendered as an `<input>` wrapped in a `<div>`. The `css` property applies classes to the `<div>`.
|
@@ -207,6 +207,7 @@ export interface ISize {
|
|
207
207
|
export interface ISurveyTriggerOwner {
|
208
208
|
getObjects(pages: any, questions: any): Array<any>;
|
209
209
|
setCompleted(): any;
|
210
|
+
triggerExecuted(trigger: Trigger): void;
|
210
211
|
setTriggerValue(name: string, value: any, isVariable: boolean): any;
|
211
212
|
copyTriggerValue(name: string, fromName: string): any;
|
212
213
|
focusQuestion(name: string): boolean;
|
@@ -331,9 +332,9 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
331
332
|
maxTextLength: number;
|
332
333
|
maxOthersLength: number;
|
333
334
|
clearValueOnDisableItems: boolean;
|
334
|
-
uploadFiles(question: IQuestion, name: string, files: any, uploadingCallback: any): any;
|
335
|
-
downloadFile(name: string, content: string, callback: any): any;
|
336
|
-
clearFiles(question: IQuestion, name: string, value: any, fileName: string, clearCallback: any): any;
|
335
|
+
uploadFiles(question: IQuestion, name: string, files: any, uploadingCallback: (status: string, data: any) => any): any;
|
336
|
+
downloadFile(name: string, content: string, callback: (status: string, data: any) => any): any;
|
337
|
+
clearFiles(question: IQuestion, name: string, value: any, fileName: string, clearCallback: (status: string, data: any) => any): any;
|
337
338
|
updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any): Array<any>;
|
338
339
|
loadedChoicesFromServer(question: IQuestion): void;
|
339
340
|
updateQuestionCssClasses(question: IQuestion, cssClasses: any): any;
|
@@ -482,8 +483,8 @@ export interface IFindElement {
|
|
482
483
|
str: LocalizableString;
|
483
484
|
}
|
484
485
|
export interface IExpressionRunnerInfo {
|
485
|
-
onExecute: any;
|
486
|
-
canRun?:
|
486
|
+
onExecute: (obj: Base, res: any) => void;
|
487
|
+
canRun?: (obj: Base) => boolean;
|
487
488
|
runner?: ExpressionRunner;
|
488
489
|
}
|
489
490
|
export interface IValidatorOwner {
|
@@ -514,7 +515,7 @@ export interface SurveyTemplateRendererTemplateData {
|
|
514
515
|
name: string;
|
515
516
|
data: any;
|
516
517
|
nodes?: any;
|
517
|
-
afterRender: any;
|
518
|
+
afterRender: (el: any, context: any) => void;
|
518
519
|
}
|
519
520
|
export interface SurveyTemplateRendererViewModel {
|
520
521
|
componentData: any;
|
@@ -584,8 +585,8 @@ export declare class Base {
|
|
584
585
|
static startCollectDependencies(updater: any, target: Base, property: string): void;
|
585
586
|
static get commentPrefix(): string;
|
586
587
|
static set commentPrefix(val: string);
|
587
|
-
static createItemValue: any;
|
588
|
-
static itemValueLocStrChanged: any;
|
588
|
+
static createItemValue: (item: any, type?: string) => any;
|
589
|
+
static itemValueLocStrChanged: (arr: any) => void;
|
589
590
|
/*
|
590
591
|
* Returns true if a value undefined, null, empty string or empty array.
|
591
592
|
*/
|
@@ -620,9 +621,9 @@ export declare class Base {
|
|
620
621
|
* options.newValue - new value
|
621
622
|
*/
|
622
623
|
onItemValuePropertyChanged: Event<(sender: Base, options: any) => any, any>;
|
623
|
-
getPropertyValueCoreHandler: any;
|
624
|
-
setPropertyValueCoreHandler: any;
|
625
|
-
createArrayCoreHandler: any;
|
624
|
+
getPropertyValueCoreHandler: (propertiesHash: any, name: string) => any;
|
625
|
+
setPropertyValueCoreHandler: (propertiesHash: any, name: string, val: any) => void;
|
626
|
+
createArrayCoreHandler: (propertiesHash: any, name: string) => any;
|
626
627
|
surveyChangedCallback: any;
|
627
628
|
isCreating: boolean;
|
628
629
|
dispose(): void;
|
@@ -654,6 +655,10 @@ export declare class Base {
|
|
654
655
|
* - [*"text"*](https://surveyjs.io/Documentation/Library?id=questiontextmodel)
|
655
656
|
*/
|
656
657
|
getType(): string;
|
658
|
+
/*
|
659
|
+
* Use this method to find out if the current instance is of the given `typeName` or inherited from it.
|
660
|
+
*/
|
661
|
+
isDescendantOf(typeName: string): boolean;
|
657
662
|
getSurvey(isLive?: boolean): ISurvey;
|
658
663
|
/*
|
659
664
|
* Returns true if the question in design mode right now.
|
@@ -708,7 +713,7 @@ export declare class Base {
|
|
708
713
|
geValueFromHash(): any;
|
709
714
|
protected setPropertyValueCore(propertiesHash: any, name: string, val: any): void;
|
710
715
|
get isEditingSurveyElement(): boolean;
|
711
|
-
iteratePropertiesHash(func: any): void;
|
716
|
+
iteratePropertiesHash(func: (hash: any, key: any) => void): void;
|
712
717
|
/*
|
713
718
|
* set property value
|
714
719
|
*/
|
@@ -721,7 +726,7 @@ export declare class Base {
|
|
721
726
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
722
727
|
protected propertyValueChanged(name: string, oldValue: any, newValue: any, arrayChanges?: ArrayChanges, target?: Base): void;
|
723
728
|
protected get isInternal(): boolean;
|
724
|
-
addExpressionProperty(name: string, onExecute: any, canRun?:
|
729
|
+
addExpressionProperty(name: string, onExecute: (obj: Base, res: any) => void, canRun?: (obj: Base) => boolean): void;
|
725
730
|
getDataFilteredValues(): any;
|
726
731
|
getDataFilteredProperties(): any;
|
727
732
|
protected runConditionCore(values: any, properties: any): void;
|
@@ -743,6 +748,9 @@ export declare class Base {
|
|
743
748
|
*/
|
744
749
|
unRegisterFunctionOnPropertiesValueChanged(names: any, key?: string): void;
|
745
750
|
createCustomLocalizableObj(name: string): void;
|
751
|
+
getLocale(): string;
|
752
|
+
getLocalizationString(strName: string): string;
|
753
|
+
getLocalizationFormatString(strName: string, args: any): string;
|
746
754
|
protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean, defaultStr?: string | boolean): LocalizableString;
|
747
755
|
getLocalizableString(name: string): LocalizableString;
|
748
756
|
getLocalizableStringText(name: string, defaultStr?: string): string;
|
@@ -799,9 +807,9 @@ export declare class ButtonGroupItemModel {
|
|
799
807
|
export declare class ComponentCollection {
|
800
808
|
static Instance: ComponentCollection;
|
801
809
|
customQuestionValues: any;
|
802
|
-
onCreateComposite:
|
803
|
-
onCreateCustom:
|
804
|
-
onAddingJson:
|
810
|
+
onCreateComposite: (name: string, questionJSON: ComponentQuestionJSON) => QuestionCompositeModel;
|
811
|
+
onCreateCustom: (name: string, questionJSON: ComponentQuestionJSON) => QuestionCustomModel;
|
812
|
+
onAddingJson: (name: string, isComposite: boolean) => void;
|
805
813
|
add(json: any): void;
|
806
814
|
get items(): any;
|
807
815
|
getCustomQuestionByName(name: string): ComponentQuestionJSON;
|
@@ -915,13 +923,13 @@ export declare class DragOrClickHelper {
|
|
915
923
|
currentY: any;
|
916
924
|
itemModel: any;
|
917
925
|
onPointerDown(pointerDownEvent: any, itemModel?: any): void;
|
918
|
-
onPointerUp: any;
|
919
|
-
tryToStartDrag: any;
|
926
|
+
onPointerUp: (pointerUpEvent: any) => void;
|
927
|
+
tryToStartDrag: (pointerMoveEvent: any) => boolean;
|
920
928
|
}
|
921
929
|
export declare class ElementFactory {
|
922
930
|
static Instance: ElementFactory;
|
923
931
|
creatorHash: any;
|
924
|
-
registerElement(elementType: string, elementCreator:
|
932
|
+
registerElement(elementType: string, elementCreator: (name: string) => IElement): void;
|
925
933
|
clear(): void;
|
926
934
|
unregisterElement(elementType: string, removeFromSerializer?: boolean): void;
|
927
935
|
getAllTypes(): Array<any>;
|
@@ -953,7 +961,7 @@ export declare class FunctionFactory {
|
|
953
961
|
static Instance: FunctionFactory;
|
954
962
|
functionHash: any;
|
955
963
|
isAsyncHash: any;
|
956
|
-
register(name: string, func: any, isAsync?: boolean): void;
|
964
|
+
register(name: string, func: (params: any) => any, isAsync?: boolean): void;
|
957
965
|
unregister(name: string): void;
|
958
966
|
hasFunction(name: string): boolean;
|
959
967
|
isAsyncFunction(name: string): boolean;
|
@@ -1000,7 +1008,7 @@ export declare class JsonMetadata {
|
|
1000
1008
|
classHashProperties: any;
|
1001
1009
|
getObjPropertyValue(obj: any, name: string): any;
|
1002
1010
|
setObjPropertyValue(obj: any, name: string, val: any): void;
|
1003
|
-
addClass(name: string, properties: any, creator?: any, parentName?: string): JsonMetadataClass;
|
1011
|
+
addClass(name: string, properties: any, creator?: (json?: any) => any, parentName?: string): JsonMetadataClass;
|
1004
1012
|
removeClass(name: string): void;
|
1005
1013
|
overrideClassCreatore(name: string, creator: any): void;
|
1006
1014
|
overrideClassCreator(name: string, creator: any): void;
|
@@ -1026,9 +1034,9 @@ export declare class JsonMetadata {
|
|
1026
1034
|
generateSchema(className?: string): any;
|
1027
1035
|
}
|
1028
1036
|
export declare class JsonMetadataClass {
|
1029
|
-
constructor(name: string, properties: any, creator?: any, parentName?: string);
|
1037
|
+
constructor(name: string, properties: any, creator?: (json?: any) => any, parentName?: string);
|
1030
1038
|
name: string;
|
1031
|
-
creator: any;
|
1039
|
+
creator: (json?: any) => any;
|
1032
1040
|
parentName: string;
|
1033
1041
|
static requiredSymbol: string;
|
1034
1042
|
static typeSymbol: string;
|
@@ -1052,7 +1060,7 @@ export declare class JsonObject {
|
|
1052
1060
|
}
|
1053
1061
|
export declare class LogoImage extends React.Component<ILogoImageProps, any> {
|
1054
1062
|
constructor(props: ILogoImageProps);
|
1055
|
-
render():
|
1063
|
+
render(): JSX.Element;
|
1056
1064
|
}
|
1057
1065
|
export declare class MatrixCells {
|
1058
1066
|
constructor(cellsOwner: IMatrixCellsOwner);
|
@@ -1088,7 +1096,7 @@ export declare class MatrixDropdownCell {
|
|
1088
1096
|
runCondition(values: any, properties: any): void;
|
1089
1097
|
}
|
1090
1098
|
export declare class Operand {
|
1091
|
-
toString(func?:
|
1099
|
+
toString(func?: (op: Operand) => string): string;
|
1092
1100
|
getType(): string;
|
1093
1101
|
evaluate(processValue?: ProcessValue): any;
|
1094
1102
|
setVariables(variables: any): any;
|
@@ -1149,7 +1157,7 @@ export declare class QuestionFactory {
|
|
1149
1157
|
static get DefaultRows(): any;
|
1150
1158
|
static get DefaultMutlipleTextItems(): any;
|
1151
1159
|
creatorHash: any;
|
1152
|
-
registerQuestion(questionType: string, questionCreator:
|
1160
|
+
registerQuestion(questionType: string, questionCreator: (name: string) => Question): void;
|
1153
1161
|
unregisterElement(elementType: string): void;
|
1154
1162
|
clear(): void;
|
1155
1163
|
getAllTypes(): Array<any>;
|
@@ -1198,24 +1206,24 @@ export declare class QuestionMatrixDropdownRenderedCell {
|
|
1198
1206
|
export declare class ReactElementFactory {
|
1199
1207
|
static Instance: ReactElementFactory;
|
1200
1208
|
creatorHash: any;
|
1201
|
-
registerElement(elementType: string, elementCreator: any): void;
|
1209
|
+
registerElement(elementType: string, elementCreator: (props: any) => JSX.Element): void;
|
1202
1210
|
getAllTypes(): Array<any>;
|
1203
1211
|
isElementRegistered(elementType: string): boolean;
|
1204
|
-
createElement(elementType: string, params: any):
|
1212
|
+
createElement(elementType: string, params: any): JSX.Element;
|
1205
1213
|
}
|
1206
1214
|
export declare class ReactQuestionFactory {
|
1207
1215
|
static Instance: ReactQuestionFactory;
|
1208
1216
|
creatorHash: any;
|
1209
|
-
registerQuestion(questionType: string, questionCreator:
|
1217
|
+
registerQuestion(questionType: string, questionCreator: (name: string) => JSX.Element): void;
|
1210
1218
|
getAllTypes(): Array<any>;
|
1211
|
-
createQuestion(questionType: string, params: any):
|
1219
|
+
createQuestion(questionType: string, params: any): JSX.Element;
|
1212
1220
|
}
|
1213
1221
|
export declare class ReactSurveyElementsWrapper {
|
1214
|
-
static wrapRow(survey: any, element:
|
1215
|
-
static wrapElement(survey: any, element:
|
1216
|
-
static wrapQuestionContent(survey: any, element:
|
1217
|
-
static wrapItemValue(survey: any, element:
|
1218
|
-
static wrapMatrixCell(survey: any, element:
|
1222
|
+
static wrapRow(survey: any, element: JSX.Element, row: any): JSX.Element;
|
1223
|
+
static wrapElement(survey: any, element: JSX.Element, question: any): JSX.Element;
|
1224
|
+
static wrapQuestionContent(survey: any, element: JSX.Element, question: any): JSX.Element;
|
1225
|
+
static wrapItemValue(survey: any, element: JSX.Element, question: any, item: any): JSX.Element;
|
1226
|
+
static wrapMatrixCell(survey: any, element: JSX.Element, cell: any, reason?: string): JSX.Element;
|
1219
1227
|
}
|
1220
1228
|
export declare class RendererFactory {
|
1221
1229
|
static Instance: RendererFactory;
|
@@ -1235,7 +1243,7 @@ export declare class ResponsivityManager {
|
|
1235
1243
|
separatorAddConst: number;
|
1236
1244
|
paddingSizeConst: number;
|
1237
1245
|
protected recalcMinDimensionConst: boolean;
|
1238
|
-
getComputedStyle: any;
|
1246
|
+
getComputedStyle: (elt: JSX.Element) => any;
|
1239
1247
|
protected getDimensions(element: any): IDimensions;
|
1240
1248
|
protected getAvailableSpace(): number;
|
1241
1249
|
protected calcItemSize(item: any): number;
|
@@ -1244,7 +1252,7 @@ export declare class ResponsivityManager {
|
|
1244
1252
|
export declare class Skeleton extends React.Component<any, any> {
|
1245
1253
|
constructor(props: any);
|
1246
1254
|
constructor(props: any, context: any);
|
1247
|
-
render():
|
1255
|
+
render(): JSX.Element;
|
1248
1256
|
}
|
1249
1257
|
export declare class StylesManager {
|
1250
1258
|
constructor();
|
@@ -1263,11 +1271,11 @@ export declare class StylesManager {
|
|
1263
1271
|
}
|
1264
1272
|
export declare class SurveyActionBarSeparator extends React.Component<any, any> {
|
1265
1273
|
constructor(props: any);
|
1266
|
-
render():
|
1274
|
+
render(): JSX.Element;
|
1267
1275
|
}
|
1268
1276
|
export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
1269
1277
|
constructor(props: any);
|
1270
|
-
static renderLocString(locStr: any, style?: any, key?: string):
|
1278
|
+
static renderLocString(locStr: any, style?: any, key?: string): JSX.Element;
|
1271
1279
|
changedStatePropNameValue: string;
|
1272
1280
|
componentDidMount(): void;
|
1273
1281
|
componentWillUnmount(): void;
|
@@ -1276,24 +1284,24 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
|
1276
1284
|
protected allowComponentUpdate(): void;
|
1277
1285
|
protected denyComponentUpdate(): void;
|
1278
1286
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
1279
|
-
render():
|
1280
|
-
protected wrapElement(element:
|
1287
|
+
render(): JSX.Element;
|
1288
|
+
protected wrapElement(element: JSX.Element): JSX.Element;
|
1281
1289
|
protected get isRendering(): boolean;
|
1282
1290
|
protected getRenderedElements(): Array<Base>;
|
1283
1291
|
protected canRender(): boolean;
|
1284
|
-
protected renderElement():
|
1292
|
+
protected renderElement(): JSX.Element;
|
1285
1293
|
protected get changedStatePropName(): string;
|
1286
1294
|
protected getStateElements(): Array<Base>;
|
1287
1295
|
protected getStateElement(): Base;
|
1288
1296
|
protected get isDisplayMode(): boolean;
|
1289
|
-
protected renderLocString(locStr: any, style?: any):
|
1297
|
+
protected renderLocString(locStr: any, style?: any): JSX.Element;
|
1290
1298
|
protected canUsePropInState(key: string): boolean;
|
1291
1299
|
}
|
1292
1300
|
export declare class SurveyElementHeader extends React.Component<any, any> {
|
1293
1301
|
constructor(props: any);
|
1294
1302
|
constructor(props: any, context: any);
|
1295
|
-
render():
|
1296
|
-
protected renderDescription():
|
1303
|
+
render(): JSX.Element;
|
1304
|
+
protected renderDescription(): JSX.Element;
|
1297
1305
|
}
|
1298
1306
|
export declare class SurveyError {
|
1299
1307
|
constructor(text?: string, errorOwner?: ISurveyErrorOwner);
|
@@ -1305,27 +1313,31 @@ export declare class SurveyError {
|
|
1305
1313
|
getText(): string;
|
1306
1314
|
getErrorType(): string;
|
1307
1315
|
protected getDefaultText(): string;
|
1316
|
+
protected getLocale(): string;
|
1317
|
+
protected getLocalizationString(locStrName: string): string;
|
1308
1318
|
}
|
1309
1319
|
export declare class SurveyHeader extends React.Component<ISurveyHeaderProps, any> {
|
1310
1320
|
constructor(props: ISurveyHeaderProps);
|
1311
1321
|
componentDidMount(): void;
|
1312
1322
|
componentWillUnmount(): void;
|
1313
|
-
render():
|
1323
|
+
render(): JSX.Element;
|
1314
1324
|
}
|
1315
1325
|
export declare class SurveyLocStringEditor extends React.Component<any, any> {
|
1316
1326
|
constructor(props: any);
|
1317
1327
|
componentDidMount(): void;
|
1318
1328
|
componentWillUnmount(): void;
|
1319
|
-
onInput: any;
|
1320
|
-
onClick: any;
|
1321
|
-
render():
|
1329
|
+
onInput: (event: any) => void;
|
1330
|
+
onClick: (event: any) => void;
|
1331
|
+
render(): JSX.Element;
|
1322
1332
|
}
|
1323
1333
|
export declare class SurveyLocStringViewer extends React.Component<any, any> {
|
1324
1334
|
constructor(props: any);
|
1325
1335
|
componentDidMount(): void;
|
1326
1336
|
componentWillUnmount(): void;
|
1327
1337
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
1328
|
-
|
1338
|
+
isRendering: boolean;
|
1339
|
+
render(): JSX.Element;
|
1340
|
+
protected renderString(): JSX.Element;
|
1329
1341
|
}
|
1330
1342
|
export declare class SurveyNavigationBase extends React.Component<any, any> {
|
1331
1343
|
constructor(props: any);
|
@@ -1361,7 +1373,7 @@ export declare class SvgIcon extends React.Component<any, any> {
|
|
1361
1373
|
svgIconRef: any;
|
1362
1374
|
updateSvg(): void;
|
1363
1375
|
componentDidUpdate(): void;
|
1364
|
-
render():
|
1376
|
+
render(): JSX.Element;
|
1365
1377
|
componentDidMount(): void;
|
1366
1378
|
}
|
1367
1379
|
export declare class SvgIconData {
|
@@ -1387,7 +1399,7 @@ export declare class SyntaxError {
|
|
1387
1399
|
}
|
1388
1400
|
export declare class TextPreProcessor {
|
1389
1401
|
_unObservableValues: any;
|
1390
|
-
onProcess:
|
1402
|
+
onProcess: (textValue: TextPreProcessorValue) => void;
|
1391
1403
|
process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
|
1392
1404
|
processValue(name: string, returnDisplayValue: boolean): TextPreProcessorValue;
|
1393
1405
|
get hasAllValuesOnLastRun(): boolean;
|
@@ -1409,23 +1421,23 @@ export declare class TitleActions extends React.Component<any, any> {
|
|
1409
1421
|
constructor(props: any, context: any);
|
1410
1422
|
protected get cssClasses(): any;
|
1411
1423
|
protected get element(): any;
|
1412
|
-
render():
|
1424
|
+
render(): JSX.Element;
|
1413
1425
|
}
|
1414
1426
|
export declare class TitleContent extends React.Component<any, any> {
|
1415
1427
|
constructor(props: any);
|
1416
|
-
render():
|
1428
|
+
render(): JSX.Element;
|
1417
1429
|
protected renderTitleSpans(element: any, cssClasses: any): Array<Element>;
|
1418
1430
|
}
|
1419
1431
|
export declare class TitleElement extends React.Component<any, any> {
|
1420
1432
|
constructor(props: any);
|
1421
|
-
render():
|
1433
|
+
render(): JSX.Element;
|
1422
1434
|
}
|
1423
1435
|
export declare class TooltipManager {
|
1424
1436
|
constructor(tooltipElement: any);
|
1425
1437
|
tooltipElement: any;
|
1426
1438
|
targetElement: any;
|
1427
1439
|
dispose(): void;
|
1428
|
-
onMouseMoveCallback: any;
|
1440
|
+
onMouseMoveCallback: (e: any) => void;
|
1429
1441
|
}
|
1430
1442
|
export declare class ValidatorResult {
|
1431
1443
|
constructor(value: any, error?: SurveyError);
|
@@ -1434,7 +1446,7 @@ export declare class ValidatorResult {
|
|
1434
1446
|
}
|
1435
1447
|
export declare class ValidatorRunner {
|
1436
1448
|
asyncValidators: any;
|
1437
|
-
onAsyncCompleted: any;
|
1449
|
+
onAsyncCompleted: (errors: any) => void;
|
1438
1450
|
run(owner: IValidatorOwner): Array<SurveyError>;
|
1439
1451
|
}
|
1440
1452
|
export declare class XmlParser {
|
@@ -1450,12 +1462,12 @@ export declare class dxSurveyService {
|
|
1450
1462
|
constructor();
|
1451
1463
|
static get serviceUrl(): string;
|
1452
1464
|
static set serviceUrl(val: string);
|
1453
|
-
loadSurvey(surveyId: string, onLoad: any): void;
|
1454
|
-
getSurveyJsonAndIsCompleted(surveyId: string, clientId: string, onLoad: any): void;
|
1455
|
-
sendResult(postId: string, result: any, onSendResult: any, clientId?: string, isPartialCompleted?: boolean): void;
|
1456
|
-
sendFile(postId: string, file: any, onSendFile: any): void;
|
1457
|
-
getResult(resultId: string, name: string, onGetResult: any): void;
|
1458
|
-
isCompleted(resultId: string, clientId: string, onIsCompleted: any): void;
|
1465
|
+
loadSurvey(surveyId: string, onLoad: (success: boolean, result: string, response: any) => void): void;
|
1466
|
+
getSurveyJsonAndIsCompleted(surveyId: string, clientId: string, onLoad: (success: boolean, surveyJson: any, result: string, response: any) => void): void;
|
1467
|
+
sendResult(postId: string, result: any, onSendResult: (success: boolean, response: any, request?: any) => void, clientId?: string, isPartialCompleted?: boolean): void;
|
1468
|
+
sendFile(postId: string, file: any, onSendFile: (success: boolean, response: any) => void): void;
|
1469
|
+
getResult(resultId: string, name: string, onGetResult: (success: boolean, data: any, dataList: any, response: any) => void): void;
|
1470
|
+
isCompleted(resultId: string, clientId: string, onIsCompleted: (success: boolean, result: string, response: any) => void): void;
|
1459
1471
|
}
|
1460
1472
|
export declare class Action extends Base implements IAction {
|
1461
1473
|
constructor(innerItem: IAction);
|
@@ -1469,7 +1481,7 @@ export declare class Action extends Base implements IAction {
|
|
1469
1481
|
tooltip: string;
|
1470
1482
|
enabled: boolean;
|
1471
1483
|
showTitle: boolean;
|
1472
|
-
action: any;
|
1484
|
+
action: (context?: any) => void;
|
1473
1485
|
css: string;
|
1474
1486
|
innerCss: string;
|
1475
1487
|
data: any;
|
@@ -1506,7 +1518,7 @@ export declare class ActionContainer<T extends Action = Action> extends Base {
|
|
1506
1518
|
actions: any;
|
1507
1519
|
cssClassesValue: any;
|
1508
1520
|
protected getRenderedActions(): Array<T>;
|
1509
|
-
updateCallback:
|
1521
|
+
updateCallback: (isResetInitialized: boolean) => void;
|
1510
1522
|
containerCss: string;
|
1511
1523
|
protected raiseUpdate(isResetInitialized: boolean): void;
|
1512
1524
|
protected onSet(): void;
|
@@ -1533,7 +1545,7 @@ export declare class ArrayOperand extends Operand {
|
|
1533
1545
|
constructor(values: any);
|
1534
1546
|
values: any;
|
1535
1547
|
getType(): string;
|
1536
|
-
toString(func?:
|
1548
|
+
toString(func?: (op: Operand) => string): string;
|
1537
1549
|
evaluate(processValue?: ProcessValue): Array<any>;
|
1538
1550
|
setVariables(variables: any): void;
|
1539
1551
|
hasFunction(): boolean;
|
@@ -1554,7 +1566,7 @@ export declare class BinaryOperand extends Operand {
|
|
1554
1566
|
get rightOperand(): any;
|
1555
1567
|
protected isContentEqual(op: Operand): boolean;
|
1556
1568
|
evaluate(processValue?: ProcessValue): any;
|
1557
|
-
toString(func?:
|
1569
|
+
toString(func?: (op: Operand) => string): string;
|
1558
1570
|
setVariables(variables: any): void;
|
1559
1571
|
hasFunction(): boolean;
|
1560
1572
|
hasAsyncFunction(): boolean;
|
@@ -1614,20 +1626,20 @@ export declare class ChoicesRestful extends Base {
|
|
1614
1626
|
static clearCache(): void;
|
1615
1627
|
static itemsResult: any;
|
1616
1628
|
static sendingSameRequests: any;
|
1617
|
-
static onBeforeSendRequest: any;
|
1629
|
+
static onBeforeSendRequest: (sender: ChoicesRestful, options: any) => void;
|
1618
1630
|
lastObjHash: string;
|
1619
1631
|
isRunningValue: boolean;
|
1620
1632
|
protected processedUrl: string;
|
1621
1633
|
protected processedPath: string;
|
1622
1634
|
isUsingCacheFromUrl: boolean;
|
1623
|
-
onProcessedUrlCallback:
|
1624
|
-
getResultCallback: any;
|
1635
|
+
onProcessedUrlCallback: (url: string, path: string) => void;
|
1636
|
+
getResultCallback: (items: any) => void;
|
1625
1637
|
beforeSendRequestCallback: any;
|
1626
|
-
updateResultCallback: any;
|
1627
|
-
getItemValueCallback: any;
|
1638
|
+
updateResultCallback: (items: any, serverResult: any) => any;
|
1639
|
+
getItemValueCallback: (item: any) => any;
|
1628
1640
|
error: SurveyError;
|
1629
1641
|
owner: IQuestion;
|
1630
|
-
createItemValue: any;
|
1642
|
+
createItemValue: (value: any) => ItemValue;
|
1631
1643
|
getSurvey(live?: boolean): ISurvey;
|
1632
1644
|
run(textProcessor?: ITextProcessor): void;
|
1633
1645
|
get isUsingCache(): boolean;
|
@@ -1681,14 +1693,14 @@ export declare class ChoicesRestful extends Base {
|
|
1681
1693
|
}
|
1682
1694
|
export declare class ConditionRunner extends ExpressionRunnerBase {
|
1683
1695
|
constructor(expression: string);
|
1684
|
-
onRunComplete:
|
1696
|
+
onRunComplete: (result: boolean) => void;
|
1685
1697
|
run(values: any, properties?: any): boolean;
|
1686
1698
|
protected doOnComplete(res: any): void;
|
1687
1699
|
}
|
1688
1700
|
export declare class Const extends Operand {
|
1689
1701
|
constructor(value: any);
|
1690
1702
|
getType(): string;
|
1691
|
-
toString(func?:
|
1703
|
+
toString(func?: (op: Operand) => string): string;
|
1692
1704
|
get correctValue(): any;
|
1693
1705
|
evaluate(): any;
|
1694
1706
|
setVariables(variables: any): void;
|
@@ -1701,7 +1713,7 @@ export declare class CustomError extends SurveyError {
|
|
1701
1713
|
getErrorType(): string;
|
1702
1714
|
}
|
1703
1715
|
export declare class DragDropCore<T> extends Base {
|
1704
|
-
constructor(surveyValue?: ISurvey, creator?: any);
|
1716
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
|
1705
1717
|
isBottom: boolean;
|
1706
1718
|
onGhostPositionChanged: EventBase<Base>;
|
1707
1719
|
protected ghostPositionChanged(): void;
|
@@ -1725,10 +1737,10 @@ export declare class DragDropCore<T> extends Base {
|
|
1725
1737
|
currentX: number;
|
1726
1738
|
currentY: number;
|
1727
1739
|
savedTargetNode: any;
|
1728
|
-
stopLongTapIfMoveEnough: any;
|
1729
|
-
stopLongTap: any;
|
1730
|
-
onContextMenu: any;
|
1731
|
-
dragOver: any;
|
1740
|
+
stopLongTapIfMoveEnough: (pointerMoveEvent: any) => void;
|
1741
|
+
stopLongTap: (e?: any) => void;
|
1742
|
+
onContextMenu: (event: any) => void;
|
1743
|
+
dragOver: (event: any) => void;
|
1732
1744
|
drop: any;
|
1733
1745
|
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
1734
1746
|
protected onStartDrag(): void;
|
@@ -1739,8 +1751,8 @@ export declare class DragDropCore<T> extends Base {
|
|
1739
1751
|
protected afterDragOver(dropTargetNode?: any): void;
|
1740
1752
|
getGhostPosition(item: any): string;
|
1741
1753
|
protected isDropTargetValid(dropTarget: any, dropTargetNode?: any): boolean;
|
1742
|
-
handlePointerCancel: any;
|
1743
|
-
protected handleEscapeButton: any;
|
1754
|
+
handlePointerCancel: (event: any) => void;
|
1755
|
+
protected handleEscapeButton: (event: any) => void;
|
1744
1756
|
protected banDropHere: any;
|
1745
1757
|
protected doBanDropHere: any;
|
1746
1758
|
protected getDataAttributeValueByNode(node: any): any;
|
@@ -1762,8 +1774,8 @@ export declare class ExceedSizeError extends SurveyError {
|
|
1762
1774
|
}
|
1763
1775
|
export declare class ExpressionExecutor implements IExpresionExecutor {
|
1764
1776
|
constructor(expression: string);
|
1765
|
-
static createExpressionExecutor:
|
1766
|
-
onComplete: any;
|
1777
|
+
static createExpressionExecutor: (expression: string) => IExpresionExecutor;
|
1778
|
+
onComplete: (res: any) => void;
|
1767
1779
|
expressionValue: string;
|
1768
1780
|
operand: Operand;
|
1769
1781
|
processValue: ProcessValue;
|
@@ -1801,7 +1813,7 @@ export declare class ExpressionItem extends Base implements ILocalizableOwner {
|
|
1801
1813
|
}
|
1802
1814
|
export declare class ExpressionRunner extends ExpressionRunnerBase {
|
1803
1815
|
constructor(expression: string);
|
1804
|
-
onRunComplete: any;
|
1816
|
+
onRunComplete: (result: any) => void;
|
1805
1817
|
run(values: any, properties?: any): any;
|
1806
1818
|
protected doOnComplete(res: any): void;
|
1807
1819
|
}
|
@@ -1813,7 +1825,7 @@ export declare class FunctionOperand extends Operand {
|
|
1813
1825
|
getType(): string;
|
1814
1826
|
evaluateAsync(processValue: ProcessValue): void;
|
1815
1827
|
evaluate(processValue?: ProcessValue): any;
|
1816
|
-
toString(func?:
|
1828
|
+
toString(func?: (op: Operand) => string): string;
|
1817
1829
|
setVariables(variables: any): void;
|
1818
1830
|
get isReady(): boolean;
|
1819
1831
|
hasFunction(): boolean;
|
@@ -1844,8 +1856,8 @@ export declare class ItemValue extends Base implements ILocalizableOwner, IShort
|
|
1844
1856
|
static getItemByValue(items: any, val: any): ItemValue;
|
1845
1857
|
static getTextOrHtmlByValue(items: any, val: any): string;
|
1846
1858
|
static locStrsChanged(items: any): void;
|
1847
|
-
static runConditionsForItems(items: any, filteredItems: any, runner: ConditionRunner, values: any, properties: any, useItemExpression?: boolean, onItemCallBack?:
|
1848
|
-
static runEnabledConditionsForItems(items: any, runner: ConditionRunner, values: any, properties: any, onItemCallBack?:
|
1859
|
+
static runConditionsForItems(items: any, filteredItems: any, runner: ConditionRunner, values: any, properties: any, useItemExpression?: boolean, onItemCallBack?: (item: ItemValue, val: boolean) => boolean): boolean;
|
1860
|
+
static runEnabledConditionsForItems(items: any, runner: ConditionRunner, values: any, properties: any, onItemCallBack?: (item: ItemValue, val: boolean) => boolean): boolean;
|
1849
1861
|
ownerPropertyName: string;
|
1850
1862
|
locTextValue: LocalizableString;
|
1851
1863
|
isVisibleValue: boolean;
|
@@ -1898,7 +1910,7 @@ export declare class JsonMissingTypeErrorBase extends JsonError {
|
|
1898
1910
|
export declare class JsonObjectProperty implements IObject {
|
1899
1911
|
constructor(classInfo: JsonMetadataClass, name: string, isRequired?: boolean);
|
1900
1912
|
name: string;
|
1901
|
-
static getItemValuesDefaultValue: any;
|
1913
|
+
static getItemValuesDefaultValue: (val: any, type: string) => any;
|
1902
1914
|
static Index: number;
|
1903
1915
|
static mergableValues: any;
|
1904
1916
|
idValue: number;
|
@@ -1911,7 +1923,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
1911
1923
|
readOnlyValue: boolean;
|
1912
1924
|
visibleValue: boolean;
|
1913
1925
|
isLocalizableValue: boolean;
|
1914
|
-
choicesfunc: any;
|
1926
|
+
choicesfunc: (obj: any, choicesCallback: any) => any;
|
1915
1927
|
dependedProperties: any;
|
1916
1928
|
isSerializable: boolean;
|
1917
1929
|
isLightSerializable: boolean;
|
@@ -1935,11 +1947,11 @@ export declare class JsonObjectProperty implements IObject {
|
|
1935
1947
|
minValue: any;
|
1936
1948
|
dataListValue: any;
|
1937
1949
|
layout: string;
|
1938
|
-
onGetValue: any;
|
1939
|
-
onSetValue: any;
|
1940
|
-
visibleIf: any;
|
1941
|
-
onExecuteExpression: any;
|
1942
|
-
onPropertyEditorUpdate: any;
|
1950
|
+
onGetValue: (obj: any) => any;
|
1951
|
+
onSetValue: (obj: any, value: any, jsonConv: JsonObject) => any;
|
1952
|
+
visibleIf: (obj: any) => boolean;
|
1953
|
+
onExecuteExpression: (obj: any, res: any) => any;
|
1954
|
+
onPropertyEditorUpdate: (obj: any, propEditor: any) => any;
|
1943
1955
|
get id(): number;
|
1944
1956
|
get classInfo(): JsonMetadataClass;
|
1945
1957
|
get type(): string;
|
@@ -1965,7 +1977,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
1965
1977
|
get choices(): any;
|
1966
1978
|
get hasChoices(): boolean;
|
1967
1979
|
getChoices(obj: any, choicesCallback?: any): Array<any>;
|
1968
|
-
setChoices(value: any, valueFunc?: any): void;
|
1980
|
+
setChoices(value: any, valueFunc?: (obj: any) => any): void;
|
1969
1981
|
getBaseValue(): string;
|
1970
1982
|
setBaseValue(val: any): void;
|
1971
1983
|
get readOnly(): boolean;
|
@@ -2001,19 +2013,19 @@ export declare class KeyDuplicationError extends SurveyError {
|
|
2001
2013
|
export declare class List extends SurveyElementBase<IListProps, any> {
|
2002
2014
|
constructor(props: any);
|
2003
2015
|
get model(): any;
|
2004
|
-
handleKeydown: any;
|
2016
|
+
handleKeydown: (event: any) => void;
|
2005
2017
|
getStateElement(): any;
|
2006
|
-
renderElement():
|
2018
|
+
renderElement(): JSX.Element;
|
2007
2019
|
renderItems(): any;
|
2008
|
-
searchElementContent():
|
2020
|
+
searchElementContent(): JSX.Element;
|
2009
2021
|
}
|
2010
2022
|
export declare class ListItem extends SurveyElementBase<IListItemProps, any> {
|
2011
2023
|
constructor(props: any);
|
2012
2024
|
get model(): any;
|
2013
2025
|
get item(): any;
|
2014
|
-
handleKeydown: any;
|
2026
|
+
handleKeydown: (event: any) => void;
|
2015
2027
|
getStateElement(): any;
|
2016
|
-
render():
|
2028
|
+
render(): JSX.Element;
|
2017
2029
|
}
|
2018
2030
|
/*
|
2019
2031
|
* The class represents the string that supports multi-languages and markdown.
|
@@ -2034,10 +2046,10 @@ export declare class LocalizableString implements ILocalizableString {
|
|
2034
2046
|
renderedText: string;
|
2035
2047
|
calculatedTextValue: string;
|
2036
2048
|
localizationName: string;
|
2037
|
-
onGetTextCallback:
|
2049
|
+
onGetTextCallback: (str: string) => string;
|
2038
2050
|
onGetDefaultTextCallback: any;
|
2039
|
-
onGetLocalizationTextCallback:
|
2040
|
-
onStrChanged:
|
2051
|
+
onGetLocalizationTextCallback: (str: string) => string;
|
2052
|
+
onStrChanged: (oldValue: string, newValue: string) => void;
|
2041
2053
|
onSearchChanged: any;
|
2042
2054
|
sharedData: LocalizableString;
|
2043
2055
|
searchText: string;
|
@@ -2076,7 +2088,7 @@ export declare class LocalizableStrings implements ILocalizableString {
|
|
2076
2088
|
constructor(owner: ILocalizableOwner);
|
2077
2089
|
owner: ILocalizableOwner;
|
2078
2090
|
values: any;
|
2079
|
-
onValueChanged: any;
|
2091
|
+
onValueChanged: (oldValue: any, newValue: any) => void;
|
2080
2092
|
getIsMultiple(): boolean;
|
2081
2093
|
get locale(): string;
|
2082
2094
|
get value(): any;
|
@@ -2160,6 +2172,9 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
2160
2172
|
get totalFormat(): string;
|
2161
2173
|
set totalFormat(val: string);
|
2162
2174
|
get locTotalFormat(): LocalizableString;
|
2175
|
+
get cellHint(): string;
|
2176
|
+
set cellHint(val: string);
|
2177
|
+
get locCellHint(): LocalizableString;
|
2163
2178
|
get renderAs(): string;
|
2164
2179
|
set renderAs(val: string);
|
2165
2180
|
get totalMaximumFractionDigits(): number;
|
@@ -2182,13 +2197,13 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
|
|
2182
2197
|
getRendererContext(locStr: LocalizableString): any;
|
2183
2198
|
getProcessedText(text: string): string;
|
2184
2199
|
createCellQuestion(row: MatrixDropdownRowModelBase): Question;
|
2185
|
-
updateCellQuestion(cellQuestion: Question, data: any, onUpdateJson?: any): void;
|
2200
|
+
updateCellQuestion(cellQuestion: Question, data: any, onUpdateJson?: (json: any) => any): void;
|
2186
2201
|
defaultCellTypeChanged(): void;
|
2187
2202
|
protected calcCellQuestionType(row: MatrixDropdownRowModelBase): string;
|
2188
2203
|
protected updateTemplateQuestion(newCellType?: string): void;
|
2189
2204
|
protected createNewQuestion(cellType: string): Question;
|
2190
2205
|
previousChoicesId: string;
|
2191
|
-
protected setQuestionProperties(question: Question, onUpdateJson?: any): void;
|
2206
|
+
protected setQuestionProperties(question: Question, onUpdateJson?: (json: any) => any): void;
|
2192
2207
|
protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
2193
2208
|
}
|
2194
2209
|
export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyImpl, ILocalizableOwner {
|
@@ -2261,7 +2276,7 @@ export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyI
|
|
2261
2276
|
getTextProcessor(): ITextProcessor;
|
2262
2277
|
get rowIndex(): number;
|
2263
2278
|
get editingObj(): Base;
|
2264
|
-
onEditingObjPropertyChanged: any;
|
2279
|
+
onEditingObjPropertyChanged: (sender: Base, options: any) => void;
|
2265
2280
|
editingObjValue: Base;
|
2266
2281
|
dispose(): void;
|
2267
2282
|
}
|
@@ -2280,8 +2295,8 @@ export declare class MatrixRow extends SurveyElementBase<IMAtrixRowProps, any> {
|
|
2280
2295
|
get model(): any;
|
2281
2296
|
get parentMatrix(): any;
|
2282
2297
|
protected getStateElement(): any;
|
2283
|
-
protected onPointerDownHandler: any;
|
2284
|
-
render():
|
2298
|
+
protected onPointerDownHandler: (event: any) => void;
|
2299
|
+
render(): JSX.Element;
|
2285
2300
|
}
|
2286
2301
|
export declare class MatrixRowModel extends Base {
|
2287
2302
|
constructor(item: ItemValue, fullName: string, data: IMatrixData, value: any);
|
@@ -2306,7 +2321,7 @@ export declare class MultipleTextItemModel extends Base implements IValidatorOwn
|
|
2306
2321
|
constructor(name?: any, title?: string);
|
2307
2322
|
editorValue: QuestionTextModel;
|
2308
2323
|
data: IMultipleTextData;
|
2309
|
-
valueChangedCallback: any;
|
2324
|
+
valueChangedCallback: (newValue: any) => void;
|
2310
2325
|
getType(): string;
|
2311
2326
|
get id(): string;
|
2312
2327
|
getOriginalObj(): Base;
|
@@ -2415,9 +2430,10 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
|
|
2415
2430
|
get model(): any;
|
2416
2431
|
protected getStateElement(): any;
|
2417
2432
|
componentDidMount(): void;
|
2433
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
2418
2434
|
componentWillUnmount(): void;
|
2419
2435
|
shouldComponentUpdate(nextProps: IPopupProps, nextState: any): boolean;
|
2420
|
-
render():
|
2436
|
+
render(): JSX.Element;
|
2421
2437
|
}
|
2422
2438
|
export declare class PopupBaseViewModel extends Base {
|
2423
2439
|
constructor(model: any, targetElement?: any);
|
@@ -2449,8 +2465,8 @@ export declare class PopupBaseViewModel extends Base {
|
|
2449
2465
|
clickOutside(): void;
|
2450
2466
|
cancel(): void;
|
2451
2467
|
apply(): void;
|
2452
|
-
get cancelButtonText():
|
2453
|
-
get applyButtonText():
|
2468
|
+
get cancelButtonText(): string;
|
2469
|
+
get applyButtonText(): string;
|
2454
2470
|
dispose(): void;
|
2455
2471
|
initializePopupContainer(): void;
|
2456
2472
|
unmountPopupContainer(): void;
|
@@ -2458,19 +2474,19 @@ export declare class PopupBaseViewModel extends Base {
|
|
2458
2474
|
export declare class PopupContainer extends SurveyElementBase<any, any> {
|
2459
2475
|
constructor(props: any);
|
2460
2476
|
prevIsVisible: boolean;
|
2461
|
-
handleKeydown: any;
|
2477
|
+
handleKeydown: (event: any) => void;
|
2462
2478
|
get model(): any;
|
2463
2479
|
protected getStateElement(): any;
|
2464
|
-
clickInside: any;
|
2480
|
+
clickInside: (ev: any) => void;
|
2465
2481
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2466
|
-
renderContainer():
|
2467
|
-
renderPointer():
|
2468
|
-
renderHeader():
|
2469
|
-
renderContent():
|
2470
|
-
renderCancelButton():
|
2471
|
-
renderApplyButton():
|
2472
|
-
renderFooter():
|
2473
|
-
render():
|
2482
|
+
renderContainer(): JSX.Element;
|
2483
|
+
renderPointer(): JSX.Element;
|
2484
|
+
renderHeader(): JSX.Element;
|
2485
|
+
renderContent(): JSX.Element;
|
2486
|
+
renderCancelButton(): JSX.Element;
|
2487
|
+
renderApplyButton(): JSX.Element;
|
2488
|
+
renderFooter(): JSX.Element;
|
2489
|
+
render(): JSX.Element;
|
2474
2490
|
}
|
2475
2491
|
export declare class PopupModel<T = any> extends Base {
|
2476
2492
|
constructor(contentComponentName: string, contentComponentData: T, verticalPosition?: any, horizontalPosition?: any, showPointer?: boolean, isModal?: boolean, onCancel?: any, onApply?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string);
|
@@ -2489,10 +2505,10 @@ export declare class PopupModel<T = any> extends Base {
|
|
2489
2505
|
title: string;
|
2490
2506
|
displayMode: "popup" | "overlay";
|
2491
2507
|
widthMode: "contentWidth" | "fixedWidth";
|
2508
|
+
onVisibilityChanged: EventBase<PopupModel<any>>;
|
2492
2509
|
get isVisible(): boolean;
|
2493
2510
|
set isVisible(val: boolean);
|
2494
2511
|
toggleVisibility(): void;
|
2495
|
-
onVisibilityChanged: any;
|
2496
2512
|
}
|
2497
2513
|
export declare class QuestionMatrixDropdownRenderedRow extends Base {
|
2498
2514
|
constructor(cssClasses: any, isDetailRow?: boolean);
|
@@ -2577,7 +2593,7 @@ export declare class QuestionRowModel extends Base {
|
|
2577
2593
|
static rowCounter: number;
|
2578
2594
|
protected _scrollableParent: any;
|
2579
2595
|
protected _updateVisibility: any;
|
2580
|
-
startLazyRendering(rowContainerDiv: any, findScrollableContainer?: any): void;
|
2596
|
+
startLazyRendering(rowContainerDiv: any, findScrollableContainer?: (element: any) => any): void;
|
2581
2597
|
ensureVisibility(): void;
|
2582
2598
|
stopLazyRendering(): void;
|
2583
2599
|
idValue: string;
|
@@ -2647,25 +2663,25 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
|
|
2647
2663
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2648
2664
|
componentDidMount(): void;
|
2649
2665
|
componentWillUnmount(): void;
|
2650
|
-
doRender():
|
2651
|
-
protected renderElement():
|
2666
|
+
doRender(): JSX.Element;
|
2667
|
+
protected renderElement(): JSX.Element;
|
2652
2668
|
get css(): any;
|
2653
2669
|
set css(val: any);
|
2654
2670
|
handleTryAgainClick(event: any): void;
|
2655
|
-
protected renderCompleted():
|
2656
|
-
protected renderCompletedBefore():
|
2657
|
-
protected renderLoading():
|
2658
|
-
protected renderSurvey():
|
2659
|
-
protected renderTimerPanel(location: string):
|
2660
|
-
protected renderPage(page: any):
|
2661
|
-
protected renderProgress(isTop: boolean):
|
2662
|
-
protected renderNavigation(navPosition: string):
|
2663
|
-
protected renderEmptySurvey():
|
2671
|
+
protected renderCompleted(): JSX.Element;
|
2672
|
+
protected renderCompletedBefore(): JSX.Element;
|
2673
|
+
protected renderLoading(): JSX.Element;
|
2674
|
+
protected renderSurvey(): JSX.Element;
|
2675
|
+
protected renderTimerPanel(location: string): JSX.Element;
|
2676
|
+
protected renderPage(page: any): JSX.Element;
|
2677
|
+
protected renderProgress(isTop: boolean): JSX.Element;
|
2678
|
+
protected renderNavigation(navPosition: string): JSX.Element;
|
2679
|
+
protected renderEmptySurvey(): JSX.Element;
|
2664
2680
|
protected createSurvey(newProps: any): void;
|
2665
2681
|
protected updateSurvey(newProps: any, oldProps?: any): void;
|
2666
2682
|
protected setSurveyEvents(): void;
|
2667
|
-
createQuestionElement(question: any):
|
2668
|
-
renderError(key: string, error: any, cssClasses: any):
|
2683
|
+
createQuestionElement(question: any): JSX.Element;
|
2684
|
+
renderError(key: string, error: any, cssClasses: any): JSX.Element;
|
2669
2685
|
questionTitleLocation(): string;
|
2670
2686
|
questionErrorLocation(): string;
|
2671
2687
|
}
|
@@ -2673,7 +2689,7 @@ export declare class SurveyAction extends SurveyElementBase<IActionBarItemProps,
|
|
2673
2689
|
constructor(props: any);
|
2674
2690
|
get item(): any;
|
2675
2691
|
protected getStateElement(): Base;
|
2676
|
-
renderElement():
|
2692
|
+
renderElement(): JSX.Element;
|
2677
2693
|
}
|
2678
2694
|
export declare class SurveyActionBar extends SurveyElementBase<IActionBarProps, any> {
|
2679
2695
|
constructor(props: IActionBarProps);
|
@@ -2689,10 +2705,10 @@ export declare class SurveyActionBarItem extends SurveyElementBase<IActionBarIte
|
|
2689
2705
|
constructor(props: any);
|
2690
2706
|
get item(): any;
|
2691
2707
|
protected getStateElement(): Base;
|
2692
|
-
renderElement():
|
2693
|
-
renderText():
|
2694
|
-
renderButtonContent():
|
2695
|
-
renderInnerButton():
|
2708
|
+
renderElement(): JSX.Element;
|
2709
|
+
renderText(): JSX.Element;
|
2710
|
+
renderButtonContent(): JSX.Element;
|
2711
|
+
renderInnerButton(): JSX.Element;
|
2696
2712
|
}
|
2697
2713
|
export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
|
2698
2714
|
constructor(props: any);
|
@@ -2701,10 +2717,10 @@ export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
|
|
2701
2717
|
get question(): any;
|
2702
2718
|
get item(): any;
|
2703
2719
|
getStateElement(): any;
|
2704
|
-
render():
|
2705
|
-
protected renderIcon():
|
2706
|
-
protected renderInput():
|
2707
|
-
protected renderCaption():
|
2720
|
+
render(): JSX.Element;
|
2721
|
+
protected renderIcon(): JSX.Element;
|
2722
|
+
protected renderInput(): JSX.Element;
|
2723
|
+
protected renderCaption(): JSX.Element;
|
2708
2724
|
}
|
2709
2725
|
/*
|
2710
2726
|
* Base class of SurveyJS Elements and Survey.
|
@@ -2767,35 +2783,35 @@ export declare class SurveyPanelBase extends SurveyElementBase<any, any> {
|
|
2767
2783
|
protected canRender(): boolean;
|
2768
2784
|
renderedRowsCache: any;
|
2769
2785
|
protected renderRows(css: any): Array<Element>;
|
2770
|
-
protected createRow(row: any, css: any):
|
2786
|
+
protected createRow(row: any, css: any): JSX.Element;
|
2771
2787
|
}
|
2772
2788
|
export declare class SurveyProgress extends SurveyNavigationBase {
|
2773
2789
|
constructor(props: any);
|
2774
2790
|
protected get isTop(): boolean;
|
2775
2791
|
protected get progress(): number;
|
2776
2792
|
protected get progressText(): string;
|
2777
|
-
render():
|
2793
|
+
render(): JSX.Element;
|
2778
2794
|
}
|
2779
2795
|
export declare class SurveyProgressButtons extends SurveyNavigationBase {
|
2780
2796
|
constructor(props: any);
|
2781
2797
|
progressButtonsModel: any;
|
2782
2798
|
updateScroller: any;
|
2783
2799
|
listContainerRef: any;
|
2784
|
-
render():
|
2800
|
+
render(): JSX.Element;
|
2785
2801
|
protected getListElements(): Array<Element>;
|
2786
|
-
protected renderListElement(page: any, index: number):
|
2802
|
+
protected renderListElement(page: any, index: number): JSX.Element;
|
2787
2803
|
protected isListElementClickable(index: number): boolean;
|
2788
2804
|
protected getListElementCss(index: number): string;
|
2789
2805
|
protected clickListElement(index: number): void;
|
2790
2806
|
protected getScrollButtonCss(isLeftScroll: boolean): string;
|
2791
|
-
protected clickScrollButton(listContainerElement:
|
2807
|
+
protected clickScrollButton(listContainerElement: JSX.Element, isLeftScroll: boolean): void;
|
2792
2808
|
componentDidMount(): void;
|
2793
2809
|
componentWillUnmount(): void;
|
2794
2810
|
}
|
2795
2811
|
export declare class SurveyQuestion extends SurveyElementBase<any, any> {
|
2796
2812
|
constructor(props: any);
|
2797
2813
|
isNeedFocus: boolean;
|
2798
|
-
static renderQuestionBody(creator: ISurveyCreator, question: any):
|
2814
|
+
static renderQuestionBody(creator: ISurveyCreator, question: any): JSX.Element;
|
2799
2815
|
rootRef: any;
|
2800
2816
|
protected getStateElement(): Base;
|
2801
2817
|
protected get question(): any;
|
@@ -2803,15 +2819,15 @@ export declare class SurveyQuestion extends SurveyElementBase<any, any> {
|
|
2803
2819
|
componentWillUnmount(): void;
|
2804
2820
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2805
2821
|
protected canRender(): boolean;
|
2806
|
-
protected renderQuestionContent():
|
2807
|
-
protected renderElement():
|
2808
|
-
protected wrapElement(element:
|
2809
|
-
protected wrapQuestionContent(element:
|
2810
|
-
protected renderQuestion():
|
2811
|
-
protected renderDescription():
|
2812
|
-
protected renderComment(cssClasses: any):
|
2813
|
-
protected renderHeader(question: any):
|
2814
|
-
protected renderErrors(cssClasses: any, location: string):
|
2822
|
+
protected renderQuestionContent(): JSX.Element;
|
2823
|
+
protected renderElement(): JSX.Element;
|
2824
|
+
protected wrapElement(element: JSX.Element): JSX.Element;
|
2825
|
+
protected wrapQuestionContent(element: JSX.Element): JSX.Element;
|
2826
|
+
protected renderQuestion(): JSX.Element;
|
2827
|
+
protected renderDescription(): JSX.Element;
|
2828
|
+
protected renderComment(cssClasses: any): JSX.Element;
|
2829
|
+
protected renderHeader(question: any): JSX.Element;
|
2830
|
+
protected renderErrors(cssClasses: any, location: string): JSX.Element;
|
2815
2831
|
}
|
2816
2832
|
export declare class SurveyQuestionElementBase extends SurveyElementBase<any, any> {
|
2817
2833
|
constructor(props: any);
|
@@ -2826,7 +2842,7 @@ export declare class SurveyQuestionElementBase extends SurveyElementBase<any, an
|
|
2826
2842
|
protected canRender(): boolean;
|
2827
2843
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
2828
2844
|
protected get isDisplayMode(): boolean;
|
2829
|
-
protected wrapCell(cell: any, element:
|
2845
|
+
protected wrapCell(cell: any, element: JSX.Element, reason: string): JSX.Element;
|
2830
2846
|
}
|
2831
2847
|
export declare class SurveyRow extends SurveyElementBase<any, any> {
|
2832
2848
|
constructor(props: any);
|
@@ -2834,16 +2850,16 @@ export declare class SurveyRow extends SurveyElementBase<any, any> {
|
|
2834
2850
|
protected getStateElement(): Base;
|
2835
2851
|
protected get css(): any;
|
2836
2852
|
protected canRender(): boolean;
|
2837
|
-
protected renderElementContent():
|
2838
|
-
protected renderElement():
|
2853
|
+
protected renderElementContent(): JSX.Element;
|
2854
|
+
protected renderElement(): JSX.Element;
|
2839
2855
|
componentDidMount(): void;
|
2840
2856
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
2841
2857
|
componentWillUnmount(): void;
|
2842
|
-
protected createElement(element: any, elementIndex?: number):
|
2858
|
+
protected createElement(element: any, elementIndex?: number): JSX.Element;
|
2843
2859
|
}
|
2844
2860
|
export declare class SurveyTimerModel extends Base {
|
2845
2861
|
constructor(survey: ISurvey);
|
2846
|
-
onTimer:
|
2862
|
+
onTimer: (page: PageModel) => void;
|
2847
2863
|
surveyValue: ISurvey;
|
2848
2864
|
text: string;
|
2849
2865
|
spent: number;
|
@@ -2860,7 +2876,7 @@ export declare class SurveyTimerModel extends Base {
|
|
2860
2876
|
export declare class SurveyValidator extends Base {
|
2861
2877
|
constructor();
|
2862
2878
|
errorOwner: ISurveyErrorOwner;
|
2863
|
-
onAsyncCompleted:
|
2879
|
+
onAsyncCompleted: (result: ValidatorResult) => void;
|
2864
2880
|
getSurvey(live?: boolean): ISurvey;
|
2865
2881
|
get text(): string;
|
2866
2882
|
set text(val: string);
|
@@ -2968,6 +2984,7 @@ export declare class Trigger extends Base {
|
|
2968
2984
|
check(value: any): void;
|
2969
2985
|
protected onSuccess(values: any, properties: any): void;
|
2970
2986
|
protected onFailure(): void;
|
2987
|
+
protected onSuccessExecuted(): void;
|
2971
2988
|
endLoadingFromJson(): void;
|
2972
2989
|
buildExpression(): string;
|
2973
2990
|
}
|
@@ -2977,7 +2994,7 @@ export declare class UnaryOperand extends Operand {
|
|
2977
2994
|
get operator(): string;
|
2978
2995
|
get expression(): Operand;
|
2979
2996
|
getType(): string;
|
2980
|
-
toString(func?:
|
2997
|
+
toString(func?: (op: Operand) => string): string;
|
2981
2998
|
protected isContentEqual(op: Operand): boolean;
|
2982
2999
|
evaluate(processValue?: ProcessValue): boolean;
|
2983
3000
|
setVariables(variables: any): void;
|
@@ -3060,11 +3077,11 @@ export declare class ChoicesRestfull extends ChoicesRestful {
|
|
3060
3077
|
static get EncodeParameters(): boolean;
|
3061
3078
|
static set EncodeParameters(val: boolean);
|
3062
3079
|
static clearCache(): void;
|
3063
|
-
static get onBeforeSendRequest(): any;
|
3064
|
-
static set onBeforeSendRequest(val: any);
|
3080
|
+
static get onBeforeSendRequest(): (sender: ChoicesRestful, options: any) => void;
|
3081
|
+
static set onBeforeSendRequest(val: (sender: ChoicesRestful, options: any) => void);
|
3065
3082
|
}
|
3066
3083
|
export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
3067
|
-
constructor(surveyValue?: ISurvey, creator?: any);
|
3084
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
|
3068
3085
|
protected get draggedElementType(): string;
|
3069
3086
|
protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
|
3070
3087
|
protected findDropTargetNodeByDragOverNode(dragOverNode: any): any;
|
@@ -3076,7 +3093,7 @@ export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
|
|
3076
3093
|
protected doClear(): void;
|
3077
3094
|
}
|
3078
3095
|
export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynamicModel> {
|
3079
|
-
constructor(surveyValue?: ISurvey, creator?: any);
|
3096
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
|
3080
3097
|
protected get draggedElementType(): string;
|
3081
3098
|
protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
|
3082
3099
|
fromIndex: number;
|
@@ -3090,7 +3107,7 @@ export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynam
|
|
3090
3107
|
protected doClear(): void;
|
3091
3108
|
}
|
3092
3109
|
export declare class DragDropSurveyElements extends DragDropCore<any> {
|
3093
|
-
constructor(surveyValue?: ISurvey, creator?: any);
|
3110
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
|
3094
3111
|
static newGhostPage: PageModel;
|
3095
3112
|
static restrictDragQuestionBetweenPages: boolean;
|
3096
3113
|
static edgeHeight: number;
|
@@ -3129,7 +3146,7 @@ export declare class EmailValidator extends SurveyValidator {
|
|
3129
3146
|
re: any;
|
3130
3147
|
getType(): string;
|
3131
3148
|
validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
|
3132
|
-
protected getDefaultErrorText(name: string):
|
3149
|
+
protected getDefaultErrorText(name: string): string;
|
3133
3150
|
}
|
3134
3151
|
/*
|
3135
3152
|
* Show error if expression returns false
|
@@ -3144,7 +3161,7 @@ export declare class ExpressionValidator extends SurveyValidator {
|
|
3144
3161
|
get isRunning(): boolean;
|
3145
3162
|
validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
|
3146
3163
|
protected generateError(res: boolean, value: any, name: string): ValidatorResult;
|
3147
|
-
protected getDefaultErrorText(name: string):
|
3164
|
+
protected getDefaultErrorText(name: string): string;
|
3148
3165
|
protected ensureConditionRunner(): boolean;
|
3149
3166
|
/*
|
3150
3167
|
* The expression property.
|
@@ -3193,8 +3210,8 @@ export declare class JsonMissingTypeError extends JsonMissingTypeErrorBase {
|
|
3193
3210
|
baseClassName: string;
|
3194
3211
|
}
|
3195
3212
|
export declare class ListModel extends ActionContainer {
|
3196
|
-
constructor(items: any, onItemSelect:
|
3197
|
-
onItemSelect:
|
3213
|
+
constructor(items: any, onItemSelect: (item: Action) => void, allowSelection: boolean, selectedItem?: IAction, onFilteredTextChangedCallback?: (text: string) => void);
|
3214
|
+
onItemSelect: (item: Action) => void;
|
3198
3215
|
allowSelection: boolean;
|
3199
3216
|
denySearch: boolean;
|
3200
3217
|
needFilter: boolean;
|
@@ -3205,12 +3222,12 @@ export declare class ListModel extends ActionContainer {
|
|
3205
3222
|
static MINELEMENTCOUNT: number;
|
3206
3223
|
isItemVisible(item: Action): boolean;
|
3207
3224
|
protected onSet(): void;
|
3208
|
-
selectItem:
|
3209
|
-
isItemDisabled:
|
3210
|
-
isItemSelected:
|
3211
|
-
getItemClass:
|
3212
|
-
getItemIndent: any;
|
3213
|
-
get filteredTextPlaceholder():
|
3225
|
+
selectItem: (itemValue: Action) => void;
|
3226
|
+
isItemDisabled: (itemValue: Action) => boolean;
|
3227
|
+
isItemSelected: (itemValue: Action) => boolean;
|
3228
|
+
getItemClass: (itemValue: Action) => string;
|
3229
|
+
getItemIndent: (itemValue: any) => string;
|
3230
|
+
get filteredTextPlaceholder(): string;
|
3214
3231
|
onKeyDown(event: any): void;
|
3215
3232
|
onPointerDown(event: any, item: any): void;
|
3216
3233
|
refresh(): void;
|
@@ -3252,7 +3269,7 @@ export declare class NumericValidator extends SurveyValidator {
|
|
3252
3269
|
constructor(minValue?: number, maxValue?: number);
|
3253
3270
|
getType(): string;
|
3254
3271
|
validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
|
3255
|
-
protected getDefaultErrorText(name: string):
|
3272
|
+
protected getDefaultErrorText(name: string): string;
|
3256
3273
|
/*
|
3257
3274
|
* The minValue property.
|
3258
3275
|
*/
|
@@ -3298,7 +3315,7 @@ export declare class RegexValidator extends SurveyValidator {
|
|
3298
3315
|
export declare class SurveyActionBarItemDropdown extends SurveyActionBarItem {
|
3299
3316
|
constructor(props: any);
|
3300
3317
|
viewModel: any;
|
3301
|
-
renderButtonContent():
|
3318
|
+
renderButtonContent(): JSX.Element;
|
3302
3319
|
componentWillUnmount(): void;
|
3303
3320
|
}
|
3304
3321
|
export declare class SurveyCustomWidget extends SurveyQuestionElementBase {
|
@@ -3308,7 +3325,7 @@ export declare class SurveyCustomWidget extends SurveyQuestionElementBase {
|
|
3308
3325
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
3309
3326
|
componentWillUnmount(): void;
|
3310
3327
|
protected canRender(): boolean;
|
3311
|
-
protected renderElement():
|
3328
|
+
protected renderElement(): JSX.Element;
|
3312
3329
|
}
|
3313
3330
|
/*
|
3314
3331
|
* Base class of SurveyJS Elements.
|
@@ -3472,7 +3489,9 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3472
3489
|
protected setPage(parent: IPanel, newPage: IPage): void;
|
3473
3490
|
protected getSearchableLocKeys(keys: any): void;
|
3474
3491
|
protected get isDefaultV2Theme(): boolean;
|
3492
|
+
get showErrorsAboveQuestion(): boolean;
|
3475
3493
|
get isErrorsModeTooltip(): boolean;
|
3494
|
+
protected getIsErrorsModeTooltip(): boolean;
|
3476
3495
|
get hasParent(): boolean;
|
3477
3496
|
protected get hasFrameV2(): boolean;
|
3478
3497
|
/*
|
@@ -3525,7 +3544,7 @@ export declare class SurveyElementErrors extends ReactSurveyElement {
|
|
3525
3544
|
tooltipRef: any;
|
3526
3545
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
3527
3546
|
componentWillUnmount(): void;
|
3528
|
-
protected renderElement():
|
3547
|
+
protected renderElement(): JSX.Element;
|
3529
3548
|
}
|
3530
3549
|
/*
|
3531
3550
|
* The `Survey` object contains information about the survey, Pages, Questions, flow logic and etc.
|
@@ -3547,11 +3566,16 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
3547
3566
|
valuesHash: any;
|
3548
3567
|
variablesHash: any;
|
3549
3568
|
editingObjValue: Base;
|
3550
|
-
localeValue: string;
|
3551
3569
|
textPreProcessor: TextPreProcessor;
|
3552
3570
|
timerModelValue: SurveyTimerModel;
|
3553
3571
|
navigationBarValue: any;
|
3554
3572
|
/*
|
3573
|
+
* The event is fired after a trigger has been executed
|
3574
|
+
* <br/> `sender` - the survey object that fires the event.
|
3575
|
+
* <br/> `options.trigger` - An instance of a trigger that has been just perform it's action.
|
3576
|
+
*/
|
3577
|
+
onTriggerExecuted: EventBase<SurveyModel>;
|
3578
|
+
/*
|
3555
3579
|
* The event is fired before the survey is completed and the `onComplete` event is fired. You can prevent the survey from completing by setting `options.allowComplete` to `false`
|
3556
3580
|
* <br/> `sender` - the survey object that fires the event.
|
3557
3581
|
* <br/> `options.allowComplete` - Specifies whether a user can complete a survey. Set this property to `false` to prevent the survey from completing. The default value is `true`.
|
@@ -4442,7 +4466,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4442
4466
|
getRendererContextForString(element: Base, locStr: LocalizableString): LocalizableString;
|
4443
4467
|
getExpressionDisplayValue(question: IQuestion, value: any, displayValue: string): string;
|
4444
4468
|
getProcessedText(text: string): string;
|
4445
|
-
getLocString(str: string):
|
4469
|
+
getLocString(str: string): string;
|
4446
4470
|
getErrorCustomText(text: string, error: SurveyError): string;
|
4447
4471
|
getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
|
4448
4472
|
/*
|
@@ -4692,7 +4716,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4692
4716
|
*/
|
4693
4717
|
mergeData(data: any): void;
|
4694
4718
|
setDataCore(data: any): void;
|
4695
|
-
onEditingObjPropertyChanged: any;
|
4719
|
+
onEditingObjPropertyChanged: (sender: Base, options: any) => void;
|
4696
4720
|
get editingObj(): Base;
|
4697
4721
|
set editingObj(val: Base);
|
4698
4722
|
get isEditingSurveyElement(): boolean;
|
@@ -4710,9 +4734,9 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4710
4734
|
getDataValueCore(valuesHash: any, key: string): any;
|
4711
4735
|
setDataValueCore(valuesHash: any, key: string, value: any): void;
|
4712
4736
|
deleteDataValueCore(valuesHash: any, key: string): void;
|
4713
|
-
valueHashGetDataCallback: any;
|
4714
|
-
valueHashSetDataCallback: any;
|
4715
|
-
valueHashDeleteDataCallback: any;
|
4737
|
+
valueHashGetDataCallback: (valuesHash: any, key: string) => any;
|
4738
|
+
valueHashSetDataCallback: (valuesHash: any, key: string, value: any) => void;
|
4739
|
+
valueHashDeleteDataCallback: (valuesHash: any, key: string) => void;
|
4716
4740
|
/*
|
4717
4741
|
* Returns all comments from the data.
|
4718
4742
|
*/
|
@@ -4883,17 +4907,17 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4883
4907
|
* Returns `true`, if the current page contains any error. If there is an async function in an expression, then the function will return `undefined` value.
|
4884
4908
|
* In this case, you should use `onAsyncValidation` parameter, which is a callback function: (hasErrors: boolean) => void
|
4885
4909
|
*/
|
4886
|
-
hasCurrentPageErrors(onAsyncValidation?:
|
4910
|
+
hasCurrentPageErrors(onAsyncValidation?: (hasErrors: boolean) => void): boolean;
|
4887
4911
|
/*
|
4888
4912
|
* Returns `true`, if a page contains an error. If there is an async function in an expression, then the function will return `undefined` value.
|
4889
4913
|
* In this case, you should use the second `onAsyncValidation` parameter, which is a callback function: (hasErrors: boolean) => void
|
4890
4914
|
*/
|
4891
|
-
hasPageErrors(page?: PageModel, onAsyncValidation?:
|
4915
|
+
hasPageErrors(page?: PageModel, onAsyncValidation?: (hasErrors: boolean) => void): boolean;
|
4892
4916
|
/*
|
4893
4917
|
* Returns `true`, if any of the survey pages contains errors. If there is an async function in an expression, then the function will return `undefined` value.
|
4894
4918
|
* In this case, you should use the third `onAsyncValidation` parameter, which is a callback function: (hasErrors: boolean) => void
|
4895
4919
|
*/
|
4896
|
-
hasErrors(fireCallback?: boolean, focusOnFirstError?: boolean, onAsyncValidation?:
|
4920
|
+
hasErrors(fireCallback?: boolean, focusOnFirstError?: boolean, onAsyncValidation?: (hasErrors: boolean) => void): boolean;
|
4897
4921
|
/*
|
4898
4922
|
* Checks whether survey elements (pages, panels, and questions) have unique question names.
|
4899
4923
|
* You can check for unique names for individual page and panel (and all their elements) or a question.
|
@@ -5069,19 +5093,19 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5069
5093
|
/*
|
5070
5094
|
* Uploads a file to server.
|
5071
5095
|
*/
|
5072
|
-
uploadFiles(question: IQuestion, name: string, files: any, uploadingCallback: any): void;
|
5096
|
+
uploadFiles(question: IQuestion, name: string, files: any, uploadingCallback: (status: string, data: any) => any): void;
|
5073
5097
|
/*
|
5074
5098
|
* Downloads a file from server
|
5075
5099
|
*/
|
5076
|
-
downloadFile(questionName: string, fileValue: any, callback: any): void;
|
5100
|
+
downloadFile(questionName: string, fileValue: any, callback: (status: string, data: any) => any): void;
|
5077
5101
|
/*
|
5078
5102
|
* Clears files from server.
|
5079
5103
|
*/
|
5080
|
-
clearFiles(question: IQuestion, name: string, value: any, fileName: string, callback: any): void;
|
5104
|
+
clearFiles(question: IQuestion, name: string, value: any, fileName: string, callback: (status: string, data: any) => any): void;
|
5081
5105
|
updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any): Array<ItemValue>;
|
5082
5106
|
loadedChoicesFromServer(question: IQuestion): void;
|
5083
5107
|
protected createSurveyService(): dxSurveyService;
|
5084
|
-
protected uploadFilesCore(name: string, files: any, uploadingCallback: any): void;
|
5108
|
+
protected uploadFilesCore(name: string, files: any, uploadingCallback: (status: string, data: any) => any): void;
|
5085
5109
|
getPage(index: number): PageModel;
|
5086
5110
|
/*
|
5087
5111
|
* Adds an existing page to the survey.
|
@@ -5181,7 +5205,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5181
5205
|
setJsonObject(jsonObj: any): void;
|
5182
5206
|
isEndLoadingFromJson: string;
|
5183
5207
|
endLoadingFromJson(): void;
|
5184
|
-
updateNavigationItemCssCallback:
|
5208
|
+
updateNavigationItemCssCallback: (strName?: string) => void;
|
5185
5209
|
protected createNavigationBar(): ActionContainer;
|
5186
5210
|
protected createNavigationActions(): Array<IAction>;
|
5187
5211
|
protected onBeforeCreating(): void;
|
@@ -5345,6 +5369,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5345
5369
|
getObjects(pages: any, questions: any): Array<any>;
|
5346
5370
|
setTriggerValue(name: string, value: any, isVariable: boolean): void;
|
5347
5371
|
copyTriggerValue(name: string, fromName: string): void;
|
5372
|
+
triggerExecuted(trigger: Trigger): void;
|
5348
5373
|
isFocusingQuestion: boolean;
|
5349
5374
|
isMovingQuestion: boolean;
|
5350
5375
|
startMovingQuestion(): void;
|
@@ -5375,34 +5400,34 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5375
5400
|
export declare class SurveyMultipleTextItem extends ReactSurveyElement {
|
5376
5401
|
constructor(props: any);
|
5377
5402
|
protected getStateElements(): any;
|
5378
|
-
protected renderElement():
|
5379
|
-
protected renderItemTooltipError(item: any, cssClasses: any):
|
5403
|
+
protected renderElement(): JSX.Element;
|
5404
|
+
protected renderItemTooltipError(item: any, cssClasses: any): JSX.Element;
|
5380
5405
|
}
|
5381
5406
|
export declare class SurveyNavigationButton extends ReactSurveyElement {
|
5382
5407
|
constructor(props: any);
|
5383
5408
|
protected get item(): Action;
|
5384
5409
|
protected canRender(): boolean;
|
5385
|
-
protected renderElement():
|
5410
|
+
protected renderElement(): JSX.Element;
|
5386
5411
|
}
|
5387
5412
|
export declare class SurveyPage extends SurveyPanelBase {
|
5388
5413
|
constructor(props: any);
|
5389
5414
|
protected getPanelBase(): PanelModelBase;
|
5390
5415
|
get page(): any;
|
5391
|
-
protected renderElement():
|
5392
|
-
protected renderTitle():
|
5393
|
-
protected renderDescription():
|
5416
|
+
protected renderElement(): JSX.Element;
|
5417
|
+
protected renderTitle(): JSX.Element;
|
5418
|
+
protected renderDescription(): JSX.Element;
|
5394
5419
|
}
|
5395
5420
|
export declare class SurveyPanel extends SurveyPanelBase {
|
5396
5421
|
constructor(props: any);
|
5397
5422
|
hasBeenExpanded: boolean;
|
5398
5423
|
get panel(): any;
|
5399
|
-
protected renderElement():
|
5400
|
-
protected renderHeader():
|
5401
|
-
protected wrapElement(element:
|
5402
|
-
protected renderContent(style: any, rows: any, className: string):
|
5403
|
-
protected renderTitle():
|
5404
|
-
protected renderDescription():
|
5405
|
-
protected renderBottom():
|
5424
|
+
protected renderElement(): JSX.Element;
|
5425
|
+
protected renderHeader(): JSX.Element;
|
5426
|
+
protected wrapElement(element: JSX.Element): JSX.Element;
|
5427
|
+
protected renderContent(style: any, rows: any, className: string): JSX.Element;
|
5428
|
+
protected renderTitle(): JSX.Element;
|
5429
|
+
protected renderDescription(): JSX.Element;
|
5430
|
+
protected renderBottom(): JSX.Element;
|
5406
5431
|
}
|
5407
5432
|
export declare class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
|
5408
5433
|
constructor(props: any);
|
@@ -5415,11 +5440,11 @@ export declare class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
|
|
5415
5440
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
5416
5441
|
protected doAfterRender(): void;
|
5417
5442
|
protected canRender(): boolean;
|
5418
|
-
protected renderErrors(errorsLocation: string):
|
5419
|
-
protected renderContent():
|
5420
|
-
protected renderElement():
|
5443
|
+
protected renderErrors(errorsLocation: string): JSX.Element;
|
5444
|
+
protected renderContent(): JSX.Element;
|
5445
|
+
protected renderElement(): JSX.Element;
|
5421
5446
|
protected getShowErrors(): boolean;
|
5422
|
-
protected renderQuestion():
|
5447
|
+
protected renderQuestion(): JSX.Element;
|
5423
5448
|
}
|
5424
5449
|
export declare class SurveyQuestionBoolean extends SurveyQuestionElementBase {
|
5425
5450
|
constructor(props: any);
|
@@ -5432,27 +5457,27 @@ export declare class SurveyQuestionBoolean extends SurveyQuestionElementBase {
|
|
5432
5457
|
handleOnLabelClick(event: any, value: boolean): void;
|
5433
5458
|
handleOnKeyDown(event: any): void;
|
5434
5459
|
protected updateDomElement(): void;
|
5435
|
-
protected renderElement():
|
5460
|
+
protected renderElement(): JSX.Element;
|
5436
5461
|
}
|
5437
5462
|
export declare class SurveyQuestionButtonGroup extends SurveyQuestionElementBase {
|
5438
5463
|
constructor(props: any);
|
5439
5464
|
protected get question(): any;
|
5440
5465
|
getStateElement(): any;
|
5441
|
-
render():
|
5466
|
+
render(): JSX.Element;
|
5442
5467
|
renderItems(): any;
|
5443
5468
|
}
|
5444
5469
|
export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
5445
5470
|
constructor(props: any);
|
5446
5471
|
protected get question(): QuestionCheckboxModel;
|
5447
|
-
protected renderElement():
|
5472
|
+
protected renderElement(): JSX.Element;
|
5448
5473
|
protected getHeader(): any;
|
5449
5474
|
protected getFooter(): any;
|
5450
|
-
protected getColumnedBody(cssClasses: any):
|
5475
|
+
protected getColumnedBody(cssClasses: any): JSX.Element;
|
5451
5476
|
protected getColumns(cssClasses: any): any;
|
5452
5477
|
protected getItems(cssClasses: any): Array<any>;
|
5453
5478
|
protected get textStyle(): any;
|
5454
|
-
protected renderOther():
|
5455
|
-
protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string):
|
5479
|
+
protected renderOther(): JSX.Element;
|
5480
|
+
protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): JSX.Element;
|
5456
5481
|
}
|
5457
5482
|
export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
5458
5483
|
constructor(props: any);
|
@@ -5463,36 +5488,36 @@ export declare class SurveyQuestionCheckboxItem extends ReactSurveyElement {
|
|
5463
5488
|
protected get isFirst(): any;
|
5464
5489
|
protected get index(): number;
|
5465
5490
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
5466
|
-
handleOnChange: any;
|
5467
|
-
selectAllChanged: any;
|
5491
|
+
handleOnChange: (event: any) => void;
|
5492
|
+
selectAllChanged: (event: any) => void;
|
5468
5493
|
protected canRender(): boolean;
|
5469
|
-
protected renderElement():
|
5494
|
+
protected renderElement(): JSX.Element;
|
5470
5495
|
protected get inputStyle(): any;
|
5471
|
-
protected renderCheckbox(isChecked: boolean, otherItem:
|
5496
|
+
protected renderCheckbox(isChecked: boolean, otherItem: JSX.Element): JSX.Element;
|
5472
5497
|
}
|
5473
5498
|
export declare class SurveyQuestionCommentItem extends ReactSurveyElement {
|
5474
5499
|
constructor(props: any);
|
5475
5500
|
protected canRender(): boolean;
|
5476
|
-
protected renderElement():
|
5501
|
+
protected renderElement(): JSX.Element;
|
5477
5502
|
}
|
5478
5503
|
export declare class SurveyQuestionEmpty extends SurveyQuestionElementBase {
|
5479
5504
|
constructor(props: any);
|
5480
5505
|
protected get question(): any;
|
5481
|
-
protected renderElement():
|
5506
|
+
protected renderElement(): JSX.Element;
|
5482
5507
|
}
|
5483
5508
|
export declare class SurveyQuestionExpression extends SurveyQuestionElementBase {
|
5484
5509
|
constructor(props: any);
|
5485
5510
|
protected get question(): any;
|
5486
|
-
protected renderElement():
|
5511
|
+
protected renderElement(): JSX.Element;
|
5487
5512
|
}
|
5488
5513
|
export declare class SurveyQuestionFile extends SurveyQuestionElementBase {
|
5489
5514
|
constructor(props: any);
|
5490
5515
|
protected get question(): any;
|
5491
|
-
protected renderElement():
|
5492
|
-
protected renderFileDecorator():
|
5493
|
-
protected renderClearButton(className: string):
|
5494
|
-
protected renderFileSign(className: string, val: any):
|
5495
|
-
protected renderPreview():
|
5516
|
+
protected renderElement(): JSX.Element;
|
5517
|
+
protected renderFileDecorator(): JSX.Element;
|
5518
|
+
protected renderClearButton(className: string): JSX.Element;
|
5519
|
+
protected renderFileSign(className: string, val: any): JSX.Element;
|
5520
|
+
protected renderPreview(): JSX.Element;
|
5496
5521
|
}
|
5497
5522
|
export declare class SurveyQuestionHtml extends SurveyQuestionElementBase {
|
5498
5523
|
constructor(props: any);
|
@@ -5501,7 +5526,7 @@ export declare class SurveyQuestionHtml extends SurveyQuestionElementBase {
|
|
5501
5526
|
componentWillUnmount(): void;
|
5502
5527
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
5503
5528
|
protected canRender(): boolean;
|
5504
|
-
protected renderElement():
|
5529
|
+
protected renderElement(): JSX.Element;
|
5505
5530
|
}
|
5506
5531
|
export declare class SurveyQuestionImage extends SurveyQuestionElementBase {
|
5507
5532
|
constructor(props: any);
|
@@ -5509,16 +5534,16 @@ export declare class SurveyQuestionImage extends SurveyQuestionElementBase {
|
|
5509
5534
|
componentWillUnmount(): void;
|
5510
5535
|
protected get question(): any;
|
5511
5536
|
protected canRender(): boolean;
|
5512
|
-
protected renderElement():
|
5537
|
+
protected renderElement(): JSX.Element;
|
5513
5538
|
}
|
5514
5539
|
export declare class SurveyQuestionImagePicker extends SurveyQuestionElementBase {
|
5515
5540
|
constructor(props: any);
|
5516
5541
|
protected get question(): any;
|
5517
|
-
protected renderElement():
|
5542
|
+
protected renderElement(): JSX.Element;
|
5518
5543
|
protected getColumns(cssClasses: any): any;
|
5519
5544
|
protected getItems(cssClasses: any): Array<any>;
|
5520
5545
|
protected get textStyle(): any;
|
5521
|
-
protected renderItem(key: string, item: any, cssClasses: any):
|
5546
|
+
protected renderItem(key: string, item: any, cssClasses: any): JSX.Element;
|
5522
5547
|
}
|
5523
5548
|
export declare class SurveyQuestionImagePickerItem extends ReactSurveyElement {
|
5524
5549
|
constructor(props: any);
|
@@ -5530,83 +5555,83 @@ export declare class SurveyQuestionImagePickerItem extends ReactSurveyElement {
|
|
5530
5555
|
protected get item(): any;
|
5531
5556
|
protected get question(): any;
|
5532
5557
|
handleOnChange(event: any): void;
|
5533
|
-
protected renderElement():
|
5558
|
+
protected renderElement(): JSX.Element;
|
5534
5559
|
}
|
5535
5560
|
export declare class SurveyQuestionMatrix extends SurveyQuestionElementBase {
|
5536
5561
|
constructor(props: any);
|
5537
5562
|
protected get question(): any;
|
5538
5563
|
componentDidMount(): void;
|
5539
5564
|
componentWillUnmount(): void;
|
5540
|
-
protected renderElement():
|
5565
|
+
protected renderElement(): JSX.Element;
|
5541
5566
|
}
|
5542
5567
|
export declare class SurveyQuestionMatrixActionsCell extends ReactSurveyElement {
|
5543
5568
|
constructor(props: any);
|
5544
5569
|
get model(): any;
|
5545
|
-
protected renderElement():
|
5570
|
+
protected renderElement(): JSX.Element;
|
5546
5571
|
}
|
5547
5572
|
export declare class SurveyQuestionMatrixDetailButton extends ReactSurveyElement {
|
5548
5573
|
constructor(props: any);
|
5549
5574
|
protected getStateElement(): any;
|
5550
5575
|
get item(): any;
|
5551
5576
|
handleOnShowHideClick(event: any): void;
|
5552
|
-
protected renderElement():
|
5577
|
+
protected renderElement(): JSX.Element;
|
5553
5578
|
}
|
5554
5579
|
export declare class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElementBase {
|
5555
5580
|
constructor(props: any);
|
5556
5581
|
protected get question(): any;
|
5557
5582
|
componentDidMount(): void;
|
5558
5583
|
componentWillUnmount(): void;
|
5559
|
-
protected renderElement():
|
5560
|
-
renderTableDiv():
|
5561
|
-
renderHeader():
|
5562
|
-
renderFooter():
|
5563
|
-
renderRows():
|
5564
|
-
renderRow(keyValue: any, row: any, cssClasses: any):
|
5565
|
-
renderCell(cell: any, index: number, cssClasses: any):
|
5584
|
+
protected renderElement(): JSX.Element;
|
5585
|
+
renderTableDiv(): JSX.Element;
|
5586
|
+
renderHeader(): JSX.Element;
|
5587
|
+
renderFooter(): JSX.Element;
|
5588
|
+
renderRows(): JSX.Element;
|
5589
|
+
renderRow(keyValue: any, row: any, cssClasses: any): JSX.Element;
|
5590
|
+
renderCell(cell: any, index: number, cssClasses: any): JSX.Element;
|
5566
5591
|
}
|
5567
5592
|
export declare class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
|
5568
5593
|
constructor(props: any);
|
5569
|
-
protected renderElement():
|
5594
|
+
protected renderElement(): JSX.Element;
|
5570
5595
|
}
|
5571
5596
|
export declare class SurveyQuestionMatrixDynamicRemoveButton extends ReactSurveyElement {
|
5572
5597
|
constructor(props: any);
|
5573
5598
|
handleOnRowRemoveClick(event: any): void;
|
5574
|
-
protected renderElement():
|
5599
|
+
protected renderElement(): JSX.Element;
|
5575
5600
|
}
|
5576
5601
|
export declare class SurveyQuestionMatrixRow extends ReactSurveyElement {
|
5577
5602
|
constructor(props: any);
|
5578
5603
|
handleOnChange(event: any): void;
|
5579
|
-
protected wrapCell(cell: any, element:
|
5604
|
+
protected wrapCell(cell: any, element: JSX.Element, reason: string): JSX.Element;
|
5580
5605
|
protected canRender(): boolean;
|
5581
|
-
protected renderElement():
|
5606
|
+
protected renderElement(): JSX.Element;
|
5582
5607
|
generateTds(): any;
|
5583
5608
|
cellClick(row: any, column: any): void;
|
5584
5609
|
}
|
5585
5610
|
export declare class SurveyQuestionMultipleText extends SurveyQuestionElementBase {
|
5586
5611
|
constructor(props: any);
|
5587
5612
|
protected get question(): any;
|
5588
|
-
protected renderElement():
|
5589
|
-
protected renderRow(rowIndex: number, items: any, cssClasses: any):
|
5613
|
+
protected renderElement(): JSX.Element;
|
5614
|
+
protected renderRow(rowIndex: number, items: any, cssClasses: any): JSX.Element;
|
5590
5615
|
}
|
5591
5616
|
export declare class SurveyQuestionOptionItem extends ReactSurveyElement {
|
5592
5617
|
constructor(props: any);
|
5593
5618
|
protected getStateElement(): Base;
|
5594
5619
|
protected canRender(): boolean;
|
5595
|
-
protected renderElement():
|
5620
|
+
protected renderElement(): JSX.Element;
|
5596
5621
|
}
|
5597
5622
|
export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBase {
|
5598
5623
|
constructor(props: any);
|
5599
5624
|
protected get question(): any;
|
5600
5625
|
componentDidMount(): void;
|
5601
5626
|
componentWillUnmount(): void;
|
5602
|
-
protected renderElement():
|
5603
|
-
protected renderNavigator():
|
5604
|
-
protected rendrerPrevButton():
|
5605
|
-
protected rendrerNextButton():
|
5606
|
-
protected renderRange():
|
5607
|
-
protected renderAddRowButton():
|
5608
|
-
protected renderNavigatorV2():
|
5609
|
-
protected renderPlaceholder():
|
5627
|
+
protected renderElement(): JSX.Element;
|
5628
|
+
protected renderNavigator(): JSX.Element;
|
5629
|
+
protected rendrerPrevButton(): JSX.Element;
|
5630
|
+
protected rendrerNextButton(): JSX.Element;
|
5631
|
+
protected renderRange(): JSX.Element;
|
5632
|
+
protected renderAddRowButton(): JSX.Element;
|
5633
|
+
protected renderNavigatorV2(): JSX.Element;
|
5634
|
+
protected renderPlaceholder(): JSX.Element;
|
5610
5635
|
}
|
5611
5636
|
export declare class SurveyQuestionPanelDynamicAction extends ReactSurveyElement {
|
5612
5637
|
constructor(props: any);
|
@@ -5623,55 +5648,55 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
|
5623
5648
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
5624
5649
|
handleOnChange(event: any): void;
|
5625
5650
|
protected canRender(): boolean;
|
5626
|
-
protected renderElement():
|
5651
|
+
protected renderElement(): JSX.Element;
|
5627
5652
|
}
|
5628
5653
|
export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase {
|
5629
5654
|
constructor(props: any);
|
5630
5655
|
protected get question(): any;
|
5631
|
-
protected renderElement():
|
5656
|
+
protected renderElement(): JSX.Element;
|
5632
5657
|
protected getFooter(): any;
|
5633
|
-
protected getColumnedBody(cssClasses: any):
|
5658
|
+
protected getColumnedBody(cssClasses: any): JSX.Element;
|
5634
5659
|
protected getColumns(cssClasses: any): any;
|
5635
5660
|
protected getItems(cssClasses: any): Array<any>;
|
5636
5661
|
protected get textStyle(): any;
|
5637
|
-
protected renderOther(cssClasses: any):
|
5662
|
+
protected renderOther(cssClasses: any): JSX.Element;
|
5638
5663
|
}
|
5639
5664
|
export declare class SurveyQuestionRanking extends SurveyQuestionElementBase {
|
5640
5665
|
constructor(props: any);
|
5641
5666
|
protected get question(): any;
|
5642
|
-
protected renderElement():
|
5667
|
+
protected renderElement(): JSX.Element;
|
5643
5668
|
protected getItems(): Array<any>;
|
5644
|
-
protected renderItem(item: ItemValue, i: number, handleKeydown: any, handlePointerDown: any, cssClasses: any, itemClass: string, question: any):
|
5669
|
+
protected renderItem(item: ItemValue, i: number, handleKeydown: (event: any) => void, handlePointerDown: (event: any) => void, cssClasses: any, itemClass: string, question: any): JSX.Element;
|
5645
5670
|
}
|
5646
5671
|
export declare class SurveyQuestionRankingItem extends ReactSurveyElement {
|
5647
5672
|
constructor(props: any);
|
5648
5673
|
protected get text(): string;
|
5649
5674
|
protected get index(): string;
|
5650
5675
|
protected get indexText(): string;
|
5651
|
-
protected get handleKeydown(): any;
|
5652
|
-
protected get handlePointerDown(): any;
|
5676
|
+
protected get handleKeydown(): (event: any) => void;
|
5677
|
+
protected get handlePointerDown(): (event: any) => void;
|
5653
5678
|
protected get cssClasses(): any;
|
5654
5679
|
protected get itemClass(): string;
|
5655
5680
|
protected get question(): any;
|
5656
|
-
protected renderElement():
|
5681
|
+
protected renderElement(): JSX.Element;
|
5657
5682
|
}
|
5658
5683
|
export declare class SurveyQuestionRating extends SurveyQuestionElementBase {
|
5659
5684
|
constructor(props: any);
|
5660
5685
|
protected get question(): any;
|
5661
5686
|
handleOnClick(event: any): void;
|
5662
|
-
protected renderElement():
|
5663
|
-
protected renderItem(key: string, item: any, index: number, cssClasses: any):
|
5687
|
+
protected renderElement(): JSX.Element;
|
5688
|
+
protected renderItem(key: string, item: any, index: number, cssClasses: any): JSX.Element;
|
5664
5689
|
}
|
5665
5690
|
export declare class SurveyQuestionSignaturePad extends SurveyQuestionElementBase {
|
5666
5691
|
constructor(props: any);
|
5667
5692
|
protected get question(): any;
|
5668
|
-
protected renderElement():
|
5669
|
-
renderCleanButton():
|
5693
|
+
protected renderElement(): JSX.Element;
|
5694
|
+
renderCleanButton(): JSX.Element;
|
5670
5695
|
}
|
5671
5696
|
export declare class SurveyQuestionUncontrolledElement<T> extends SurveyQuestionElementBase {
|
5672
5697
|
constructor(props: any);
|
5673
5698
|
protected get question(): T;
|
5674
|
-
updateValueOnEvent: any;
|
5699
|
+
updateValueOnEvent: (event: any) => void;
|
5675
5700
|
protected setValueCore(newValue: any): void;
|
5676
5701
|
protected getValueCore(): any;
|
5677
5702
|
protected updateDomElement(): void;
|
@@ -5680,7 +5705,7 @@ export declare class SurveyTimerPanel extends ReactSurveyElement {
|
|
5680
5705
|
constructor(props: any);
|
5681
5706
|
protected getStateElement(): Base;
|
5682
5707
|
protected get timerModel(): any;
|
5683
|
-
render():
|
5708
|
+
render(): JSX.Element;
|
5684
5709
|
}
|
5685
5710
|
/*
|
5686
5711
|
* It extends the Trigger base class and add properties required for SurveyJS classes.
|
@@ -5692,6 +5717,7 @@ export declare class SurveyTrigger extends Trigger {
|
|
5692
5717
|
setOwner(owner: ISurveyTriggerOwner): void;
|
5693
5718
|
getSurvey(live?: boolean): ISurvey;
|
5694
5719
|
get isOnNextPage(): boolean;
|
5720
|
+
protected onSuccessExecuted(): void;
|
5695
5721
|
}
|
5696
5722
|
export declare class SurveyWindow extends Survey {
|
5697
5723
|
constructor(props: any);
|
@@ -5699,9 +5725,9 @@ export declare class SurveyWindow extends Survey {
|
|
5699
5725
|
protected getStateElements(): Array<Base>;
|
5700
5726
|
handleOnExpanded(event: any): void;
|
5701
5727
|
protected canRender(): boolean;
|
5702
|
-
protected renderElement():
|
5703
|
-
protected renderWindowHeader():
|
5704
|
-
protected renderBody():
|
5728
|
+
protected renderElement(): JSX.Element;
|
5729
|
+
protected renderWindowHeader(): JSX.Element;
|
5730
|
+
protected renderBody(): JSX.Element;
|
5705
5731
|
protected createSurvey(newProps: any): void;
|
5706
5732
|
}
|
5707
5733
|
/*
|
@@ -5711,7 +5737,7 @@ export declare class TextValidator extends SurveyValidator {
|
|
5711
5737
|
constructor();
|
5712
5738
|
getType(): string;
|
5713
5739
|
validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult;
|
5714
|
-
protected getDefaultErrorText(name: string):
|
5740
|
+
protected getDefaultErrorText(name: string): string;
|
5715
5741
|
/*
|
5716
5742
|
* The minLength property.
|
5717
5743
|
*/
|
@@ -5748,7 +5774,7 @@ export declare class Variable extends Const {
|
|
5748
5774
|
valueInfo: any;
|
5749
5775
|
useValueAsItIs: boolean;
|
5750
5776
|
getType(): string;
|
5751
|
-
toString(func?:
|
5777
|
+
toString(func?: (op: Operand) => string): string;
|
5752
5778
|
get variable(): string;
|
5753
5779
|
evaluate(processValue?: ProcessValue): any;
|
5754
5780
|
setVariables(variables: any): void;
|
@@ -5756,7 +5782,7 @@ export declare class Variable extends Const {
|
|
5756
5782
|
protected isContentEqual(op: Operand): boolean;
|
5757
5783
|
}
|
5758
5784
|
export declare class DragDropRankingChoices extends DragDropChoices {
|
5759
|
-
constructor(surveyValue?: ISurvey, creator?: any);
|
5785
|
+
constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
|
5760
5786
|
protected get draggedElementType(): string;
|
5761
5787
|
protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
|
5762
5788
|
protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
|
@@ -5780,8 +5806,8 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5780
5806
|
elementsValue: any;
|
5781
5807
|
isQuestionsReady: boolean;
|
5782
5808
|
questionsValue: any;
|
5783
|
-
addElementCallback:
|
5784
|
-
removeElementCallback:
|
5809
|
+
addElementCallback: (element: IElement) => void;
|
5810
|
+
removeElementCallback: (element: IElement) => void;
|
5785
5811
|
onGetQuestionTitleLocation: any;
|
5786
5812
|
/*
|
5787
5813
|
* Returns the question type.
|
@@ -5972,6 +5998,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5972
5998
|
protected onAddElement(element: IElement, index: number): void;
|
5973
5999
|
protected onRemoveElement(element: IElement): void;
|
5974
6000
|
protected canRenderFirstRows(): boolean;
|
6001
|
+
protected getDragDropInfo(): any;
|
5975
6002
|
protected updateRowsRemoveElementFromRow(element: IElement, row: QuestionRowModel): void;
|
5976
6003
|
elementWidthChanged(el: IElement): void;
|
5977
6004
|
/*
|
@@ -6068,7 +6095,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6068
6095
|
customWidgetData: any;
|
6069
6096
|
focusCallback: any;
|
6070
6097
|
surveyLoadCallback: any;
|
6071
|
-
displayValueCallback:
|
6098
|
+
displayValueCallback: (text: string) => string;
|
6072
6099
|
defaultValueRunner: ExpressionRunner;
|
6073
6100
|
isChangingViaDefaultValue: boolean;
|
6074
6101
|
isValueChangedDirectly: boolean;
|
@@ -6077,9 +6104,9 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6077
6104
|
localeChangedCallback: any;
|
6078
6105
|
validateValueCallback: any;
|
6079
6106
|
questionTitleTemplateCallback: any;
|
6080
|
-
afterRenderQuestionCallback: any;
|
6081
|
-
valueFromDataCallback: any;
|
6082
|
-
valueToDataCallback: any;
|
6107
|
+
afterRenderQuestionCallback: (question: Question, element: any) => any;
|
6108
|
+
valueFromDataCallback: (val: any) => any;
|
6109
|
+
valueToDataCallback: (val: any) => any;
|
6083
6110
|
onGetSurvey: any;
|
6084
6111
|
locProcessedTitle: LocalizableString;
|
6085
6112
|
protected isReadyValue: boolean;
|
@@ -6304,6 +6331,10 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6304
6331
|
get cssDescription(): string;
|
6305
6332
|
protected setCssDescription(val: string): void;
|
6306
6333
|
protected getCssDescription(cssClasses: any): string;
|
6334
|
+
protected getIsErrorsModeTooltip(): boolean;
|
6335
|
+
showErrorOnCore(location: string): boolean;
|
6336
|
+
get showErrorOnTop(): boolean;
|
6337
|
+
get showErrorOnBottom(): boolean;
|
6307
6338
|
get cssError(): string;
|
6308
6339
|
protected setCssError(val: string): void;
|
6309
6340
|
protected getCssError(cssClasses: any): string;
|
@@ -6322,6 +6353,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6322
6353
|
protected fireCallback(callback: any): void;
|
6323
6354
|
getOthersMaxLength(): any;
|
6324
6355
|
protected onCreating(): void;
|
6356
|
+
getFirstQuestionToFocus(withError: boolean): Question;
|
6325
6357
|
protected getFirstInputElementId(): string;
|
6326
6358
|
protected getFirstErrorInputElementId(): string;
|
6327
6359
|
protected getProcessedTextValue(textValue: TextPreProcessorValue): void;
|
@@ -6482,7 +6514,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6482
6514
|
protected getDefaultRunner(runner: ExpressionRunner, expression: string): ExpressionRunner;
|
6483
6515
|
protected setDefaultValue(): void;
|
6484
6516
|
protected isValueExpression(val: any): boolean;
|
6485
|
-
protected setValueAndRunExpression(runner: ExpressionRunner, defaultValue: any, setFunc: any, values?: any, properties?: any): void;
|
6517
|
+
protected setValueAndRunExpression(runner: ExpressionRunner, defaultValue: any, setFunc: (val: any) => void, values?: any, properties?: any): void;
|
6486
6518
|
/*
|
6487
6519
|
* The question comment value.
|
6488
6520
|
*/
|
@@ -6534,7 +6566,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6534
6566
|
protected hasRequiredError(): boolean;
|
6535
6567
|
validatorRunner: ValidatorRunner;
|
6536
6568
|
isRunningValidatorsValue: boolean;
|
6537
|
-
onCompletedAsyncValidators:
|
6569
|
+
onCompletedAsyncValidators: (hasErrors: boolean) => void;
|
6538
6570
|
get isRunningValidators(): boolean;
|
6539
6571
|
protected getIsRunningValidators(): boolean;
|
6540
6572
|
protected runValidators(): Array<SurveyError>;
|
@@ -6606,53 +6638,54 @@ export declare class SurveyFlowPanel extends SurveyPanel {
|
|
6606
6638
|
protected renderQuestion(question: any): string;
|
6607
6639
|
protected renderRows(): Array<Element>;
|
6608
6640
|
renderedIndex: number;
|
6609
|
-
protected renderHtml():
|
6641
|
+
protected renderHtml(): JSX.Element;
|
6610
6642
|
protected renderNodes(domNodes: any): Array<Element>;
|
6611
|
-
protected renderParentNode(node: any):
|
6612
|
-
protected renderNode(node: any):
|
6613
|
-
protected renderContent(style: any, rows: any):
|
6643
|
+
protected renderParentNode(node: any): JSX.Element;
|
6644
|
+
protected renderNode(node: any): JSX.Element;
|
6645
|
+
protected renderContent(style: any, rows: any): JSX.Element;
|
6614
6646
|
}
|
6615
6647
|
export declare class SurveyMultipleTextItemEditor extends SurveyQuestionAndErrorsWrapped {
|
6616
6648
|
constructor(props: any);
|
6617
|
-
protected renderElement():
|
6649
|
+
protected renderElement(): JSX.Element;
|
6618
6650
|
}
|
6619
6651
|
export declare class SurveyQuestionAndErrorsCell extends SurveyQuestionAndErrorsWrapped {
|
6620
6652
|
constructor(props: any);
|
6621
6653
|
protected cellRef: any;
|
6622
6654
|
componentWillUnmount(): void;
|
6623
|
-
protected renderElement():
|
6655
|
+
protected renderElement(): JSX.Element;
|
6624
6656
|
protected getCellStyle(): any;
|
6625
6657
|
protected getHeaderText(): string;
|
6626
|
-
protected wrapCell(cell: any, element:
|
6658
|
+
protected wrapCell(cell: any, element: JSX.Element): JSX.Element;
|
6627
6659
|
}
|
6628
6660
|
export declare class SurveyQuestionBooleanCheckbox extends SurveyQuestionBoolean {
|
6629
6661
|
constructor(props: any);
|
6630
|
-
protected renderElement():
|
6662
|
+
protected renderElement(): JSX.Element;
|
6631
6663
|
}
|
6632
6664
|
export declare class SurveyQuestionBooleanRadio extends SurveyQuestionBoolean {
|
6633
6665
|
constructor(props: any);
|
6634
|
-
handleOnChange: any;
|
6635
|
-
protected renderElement():
|
6666
|
+
handleOnChange: (event: any) => void;
|
6667
|
+
protected renderElement(): JSX.Element;
|
6636
6668
|
}
|
6637
6669
|
export declare class SurveyQuestionComment extends SurveyQuestionUncontrolledElement<QuestionCommentModel> {
|
6638
6670
|
constructor(props: any);
|
6639
|
-
protected renderElement():
|
6671
|
+
protected renderElement(): JSX.Element;
|
6640
6672
|
}
|
6641
6673
|
export declare class SurveyQuestionComposite extends SurveyQuestionUncontrolledElement<QuestionCompositeModel> {
|
6642
6674
|
constructor(props: any);
|
6643
6675
|
protected canRender(): boolean;
|
6644
|
-
protected renderElement():
|
6676
|
+
protected renderElement(): JSX.Element;
|
6645
6677
|
}
|
6646
6678
|
export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElement<QuestionCustomModel> {
|
6647
6679
|
constructor(props: any);
|
6648
6680
|
protected getStateElements(): Array<Base>;
|
6649
|
-
protected renderElement():
|
6681
|
+
protected renderElement(): JSX.Element;
|
6650
6682
|
}
|
6651
6683
|
export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontrolledElement<T> {
|
6652
6684
|
constructor(props: any);
|
6685
|
+
onClick: (event: any) => void;
|
6653
6686
|
protected setValueCore(newValue: any): void;
|
6654
6687
|
protected getValueCore(): any;
|
6655
|
-
protected renderSelect(cssClasses: any):
|
6688
|
+
protected renderSelect(cssClasses: any): JSX.Element;
|
6656
6689
|
}
|
6657
6690
|
export declare class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {
|
6658
6691
|
constructor(props: any);
|
@@ -6661,44 +6694,44 @@ export declare class SurveyQuestionMatrixDynamic extends SurveyQuestionMatrixDro
|
|
6661
6694
|
constructor(props: any);
|
6662
6695
|
protected get matrix(): any;
|
6663
6696
|
handleOnRowAddClick(event: any): void;
|
6664
|
-
protected renderElement():
|
6665
|
-
protected renderAddRowButtonOnTop(cssClasses: any):
|
6666
|
-
protected renderAddRowButtonOnBottom(cssClasses: any):
|
6667
|
-
protected renderNoRowsContent(cssClasses: any):
|
6668
|
-
protected renderAddRowButton(cssClasses: any, isEmptySection?: boolean):
|
6697
|
+
protected renderElement(): JSX.Element;
|
6698
|
+
protected renderAddRowButtonOnTop(cssClasses: any): JSX.Element;
|
6699
|
+
protected renderAddRowButtonOnBottom(cssClasses: any): JSX.Element;
|
6700
|
+
protected renderNoRowsContent(cssClasses: any): JSX.Element;
|
6701
|
+
protected renderAddRowButton(cssClasses: any, isEmptySection?: boolean): JSX.Element;
|
6669
6702
|
}
|
6670
6703
|
export declare class SurveyQuestionPanelDynamicAddButton extends SurveyQuestionPanelDynamicAction {
|
6671
6704
|
constructor(props: any);
|
6672
|
-
protected handleClick: any;
|
6673
|
-
protected renderElement():
|
6705
|
+
protected handleClick: (event: any) => void;
|
6706
|
+
protected renderElement(): JSX.Element;
|
6674
6707
|
}
|
6675
6708
|
export declare class SurveyQuestionPanelDynamicItem extends SurveyPanel {
|
6676
6709
|
constructor(props: any);
|
6677
6710
|
protected getSurvey(): SurveyModel;
|
6678
6711
|
protected getCss(): any;
|
6679
6712
|
handleOnPanelRemoveClick(event: any): void;
|
6680
|
-
render():
|
6681
|
-
protected renderButton():
|
6713
|
+
render(): JSX.Element;
|
6714
|
+
protected renderButton(): JSX.Element;
|
6682
6715
|
}
|
6683
6716
|
export declare class SurveyQuestionPanelDynamicNextButton extends SurveyQuestionPanelDynamicAction {
|
6684
6717
|
constructor(props: any);
|
6685
|
-
protected handleClick: any;
|
6686
|
-
protected renderElement():
|
6718
|
+
protected handleClick: (event: any) => void;
|
6719
|
+
protected renderElement(): JSX.Element;
|
6687
6720
|
}
|
6688
6721
|
export declare class SurveyQuestionPanelDynamicPrevButton extends SurveyQuestionPanelDynamicAction {
|
6689
6722
|
constructor(props: any);
|
6690
|
-
protected handleClick: any;
|
6691
|
-
protected renderElement():
|
6723
|
+
protected handleClick: (event: any) => void;
|
6724
|
+
protected renderElement(): JSX.Element;
|
6692
6725
|
}
|
6693
6726
|
export declare class SurveyQuestionPanelDynamicProgressText extends SurveyQuestionPanelDynamicAction {
|
6694
6727
|
constructor(props: any);
|
6695
|
-
protected renderElement():
|
6728
|
+
protected renderElement(): JSX.Element;
|
6696
6729
|
}
|
6697
6730
|
export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElement<QuestionTextModel> {
|
6698
6731
|
constructor(props: any);
|
6699
6732
|
_isWaitingForEnter: boolean;
|
6700
|
-
protected renderInput():
|
6701
|
-
protected renderElement():
|
6733
|
+
protected renderInput(): JSX.Element;
|
6734
|
+
protected renderElement(): JSX.Element;
|
6702
6735
|
}
|
6703
6736
|
/*
|
6704
6737
|
* If expression returns true, it completes the survey.
|
@@ -6846,6 +6879,7 @@ export declare class PageModel extends PanelModelBase implements IPage {
|
|
6846
6879
|
protected onNumChanged(value: number): void;
|
6847
6880
|
protected onVisibleChanged(): void;
|
6848
6881
|
dragDropInfo: DragDropInfo;
|
6882
|
+
protected getDragDropInfo(): any;
|
6849
6883
|
dragDropStart(src: IElement, target: IElement, nestedPanelDepth?: number): void;
|
6850
6884
|
dragDropMoveTo(destination: ISurveyElement, isBottom?: boolean, isEdge?: boolean): boolean;
|
6851
6885
|
dragDropFinish(isCancel?: boolean): IElement;
|
@@ -7285,13 +7319,13 @@ export declare class QuestionFileModel extends Question {
|
|
7285
7319
|
getReadOnlyFileCss(): string;
|
7286
7320
|
get fileRootCss(): string;
|
7287
7321
|
getFileDecoratorCss(): string;
|
7288
|
-
onDragOver: any;
|
7289
|
-
onDrop: any;
|
7290
|
-
onDragLeave: any;
|
7291
|
-
doChange: any;
|
7292
|
-
doClean: any;
|
7322
|
+
onDragOver: (event: any) => boolean;
|
7323
|
+
onDrop: (event: any) => void;
|
7324
|
+
onDragLeave: (event: any) => void;
|
7325
|
+
doChange: (event: any) => void;
|
7326
|
+
doClean: (event: any) => void;
|
7293
7327
|
doRemoveFile(data: any): void;
|
7294
|
-
doDownloadFile: any;
|
7328
|
+
doDownloadFile: (event: any, data: any) => void;
|
7295
7329
|
}
|
7296
7330
|
/*
|
7297
7331
|
* A Model for a matrix base question.
|
@@ -7454,6 +7488,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
7454
7488
|
panelCountChangedCallback: any;
|
7455
7489
|
currentIndexChangedCallback: any;
|
7456
7490
|
get hasSingleInput(): boolean;
|
7491
|
+
getFirstQuestionToFocus(withError: boolean): Question;
|
7457
7492
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
7458
7493
|
getType(): string;
|
7459
7494
|
get isCompositeQuestion(): boolean;
|
@@ -7772,6 +7807,7 @@ export declare class QuestionRatingModel extends Question {
|
|
7772
7807
|
get renderedRateItems(): any;
|
7773
7808
|
getType(): string;
|
7774
7809
|
protected getFirstInputElementId(): string;
|
7810
|
+
getInputId(index: number): string;
|
7775
7811
|
supportGoNextPageAutomatic(): boolean;
|
7776
7812
|
supportComment(): boolean;
|
7777
7813
|
supportOther(): boolean;
|
@@ -7843,7 +7879,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7843
7879
|
dependedQuestions: any;
|
7844
7880
|
noneItemValue: ItemValue;
|
7845
7881
|
newItemValue: ItemValue;
|
7846
|
-
canShowOptionItemCallback:
|
7882
|
+
canShowOptionItemCallback: (item: ItemValue) => boolean;
|
7847
7883
|
getType(): string;
|
7848
7884
|
dispose(): void;
|
7849
7885
|
protected getItemValueType(): string;
|
@@ -7897,7 +7933,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7897
7933
|
protected runItemsEnableCondition(values: any, properties: any): any;
|
7898
7934
|
protected onAfterRunItemsEnableCondition(): void;
|
7899
7935
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
7900
|
-
changeItemVisisbility():
|
7936
|
+
changeItemVisisbility(): (item: ItemValue, val: boolean) => boolean;
|
7901
7937
|
protected getHasOther(val: any): boolean;
|
7902
7938
|
get validatedValue(): any;
|
7903
7939
|
protected createRestful(): ChoicesRestful;
|
@@ -7996,7 +8032,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7996
8032
|
get enabledChoices(): any;
|
7997
8033
|
protected updateVisibleChoices(): void;
|
7998
8034
|
protected canUseFilteredChoices(): boolean;
|
7999
|
-
setCanShowOptionItemCallback(func:
|
8035
|
+
setCanShowOptionItemCallback(func: (item: ItemValue) => boolean): void;
|
8000
8036
|
protected addToVisibleChoices(items: any, isAddAll: boolean): void;
|
8001
8037
|
protected canShowOptionItem(item: ItemValue, isAddAll: boolean, hasItem: boolean): boolean;
|
8002
8038
|
/*
|
@@ -8175,8 +8211,8 @@ export declare class QuestionTextBase extends Question {
|
|
8175
8211
|
}
|
8176
8212
|
export declare class SurveyQuestionDropdown extends SurveyQuestionDropdownBase<Question> {
|
8177
8213
|
constructor(props: any);
|
8178
|
-
protected renderElement():
|
8179
|
-
protected renderOther(cssClasses: any):
|
8214
|
+
protected renderElement(): JSX.Element;
|
8215
|
+
protected renderOther(cssClasses: any): JSX.Element;
|
8180
8216
|
}
|
8181
8217
|
export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndErrorsCell {
|
8182
8218
|
constructor(props: any);
|
@@ -8185,11 +8221,11 @@ export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndE
|
|
8185
8221
|
protected getShowErrors(): boolean;
|
8186
8222
|
protected getCellStyle(): any;
|
8187
8223
|
protected getHeaderText(): string;
|
8188
|
-
protected renderQuestion():
|
8224
|
+
protected renderQuestion(): JSX.Element;
|
8189
8225
|
}
|
8190
8226
|
export declare class SurveyQuestionRatingDropdown extends SurveyQuestionDropdownBase<QuestionRatingModel> {
|
8191
8227
|
constructor(props: any);
|
8192
|
-
protected renderElement():
|
8228
|
+
protected renderElement(): JSX.Element;
|
8193
8229
|
}
|
8194
8230
|
/*
|
8195
8231
|
* The flow panel object. It is a container with flow layout where you can mix questions with markdown text.
|
@@ -8198,7 +8234,7 @@ export declare class FlowPanelModel extends PanelModel {
|
|
8198
8234
|
constructor(name?: string);
|
8199
8235
|
static contentElementNamePrefix: string;
|
8200
8236
|
contentChangedCallback: any;
|
8201
|
-
onGetHtmlForQuestion:
|
8237
|
+
onGetHtmlForQuestion: (question: Question) => string;
|
8202
8238
|
onCustomHtmlProducing: any;
|
8203
8239
|
getType(): string;
|
8204
8240
|
getChildrenLayoutType(): string;
|
@@ -8277,7 +8313,6 @@ export declare class QuestionCompositeModel extends QuestionCustomModelBase {
|
|
8277
8313
|
textProcessing: QuestionCompositeTextProcessor;
|
8278
8314
|
protected createWrapper(): void;
|
8279
8315
|
getTemplate(): string;
|
8280
|
-
protected getCssType(): string;
|
8281
8316
|
protected getElement(): SurveyElement;
|
8282
8317
|
get contentPanel(): PanelModel;
|
8283
8318
|
hasErrors(fireCallback?: boolean, rec?: any): boolean;
|
@@ -8328,6 +8363,8 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
|
|
8328
8363
|
*/
|
8329
8364
|
export declare class QuestionDropdownModel extends QuestionSelectBase {
|
8330
8365
|
constructor(name: string);
|
8366
|
+
onOpened: EventBase<QuestionDropdownModel>;
|
8367
|
+
onOpenedCallBack(): void;
|
8331
8368
|
/*
|
8332
8369
|
* This flag controls whether to show options caption item ('Choose...').
|
8333
8370
|
*/
|
@@ -8365,10 +8402,13 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
8365
8402
|
*/
|
8366
8403
|
get autoComplete(): string;
|
8367
8404
|
set autoComplete(val: string);
|
8405
|
+
showClearButton: boolean;
|
8406
|
+
itemComponent: string;
|
8368
8407
|
denySearch: boolean;
|
8369
8408
|
dropdownWidthMode: "contentWidth" | "editorWidth";
|
8370
8409
|
getControlClass(): string;
|
8371
8410
|
get readOnlyText(): any;
|
8411
|
+
onClear(event: any): void;
|
8372
8412
|
protected onVisibleChoicesChanged(): void;
|
8373
8413
|
_popupModel: any;
|
8374
8414
|
get popupModel(): any;
|
@@ -8451,12 +8491,12 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
8451
8491
|
protected isRowChanging: boolean;
|
8452
8492
|
columnsChangedCallback: any;
|
8453
8493
|
onRenderedTableResetCallback: any;
|
8454
|
-
onRenderedTableCreatedCallback:
|
8455
|
-
onCellCreatedCallback: any;
|
8456
|
-
onCellValueChangedCallback: any;
|
8457
|
-
onHasDetailPanelCallback:
|
8458
|
-
onCreateDetailPanelCallback:
|
8459
|
-
onCreateDetailPanelRenderedRowCallback:
|
8494
|
+
onRenderedTableCreatedCallback: (table: QuestionMatrixDropdownRenderedTable) => void;
|
8495
|
+
onCellCreatedCallback: (options: any) => void;
|
8496
|
+
onCellValueChangedCallback: (options: any) => void;
|
8497
|
+
onHasDetailPanelCallback: (row: MatrixDropdownRowModelBase) => boolean;
|
8498
|
+
onCreateDetailPanelCallback: (row: MatrixDropdownRowModelBase, panel: PanelModel) => void;
|
8499
|
+
onCreateDetailPanelRenderedRowCallback: (renderedRow: QuestionMatrixDropdownRenderedRow) => void;
|
8460
8500
|
protected createColumnValues(): any;
|
8461
8501
|
/*
|
8462
8502
|
* Returns the type of the object as a string as it represents in the json.
|
@@ -8627,6 +8667,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
8627
8667
|
protected getIsRunningValidators(): boolean;
|
8628
8668
|
getAllErrors(): Array<SurveyError>;
|
8629
8669
|
protected getUniqueColumns(): Array<MatrixDropdownColumn>;
|
8670
|
+
getFirstQuestionToFocus(withError: boolean): Question;
|
8630
8671
|
protected getFirstInputElementId(): string;
|
8631
8672
|
protected getFirstErrorInputElementId(): string;
|
8632
8673
|
protected getFirstCellQuestion(onError: boolean): Question;
|
@@ -8837,7 +8878,8 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
8837
8878
|
}
|
8838
8879
|
export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown {
|
8839
8880
|
constructor(props: any);
|
8840
|
-
protected renderSelect(cssClasses: any):
|
8881
|
+
protected renderSelect(cssClasses: any): JSX.Element;
|
8882
|
+
createClearButton(): JSX.Element;
|
8841
8883
|
}
|
8842
8884
|
/*
|
8843
8885
|
* A Model for a button group question.
|
@@ -9000,7 +9042,7 @@ export declare class QuestionImagePickerModel extends QuestionCheckboxBase {
|
|
9000
9042
|
protected supportResponsiveness(): boolean;
|
9001
9043
|
protected needResponsiveness(): boolean;
|
9002
9044
|
_width: number;
|
9003
|
-
onContentLoaded: any;
|
9045
|
+
onContentLoaded: (item: ImageItemValue, event: any) => void;
|
9004
9046
|
responsiveColCount: number;
|
9005
9047
|
protected getCurrentColCount(): number;
|
9006
9048
|
protected processResponsiveness(_: number, availableWidth: number): boolean;
|
@@ -9043,7 +9085,7 @@ export declare class QuestionMatrixDropdownModel extends QuestionMatrixDropdownM
|
|
9043
9085
|
*/
|
9044
9086
|
export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownModelBase implements IMatrixDropdownData {
|
9045
9087
|
constructor(name: string);
|
9046
|
-
onGetValueForNewRowCallBack: any;
|
9088
|
+
onGetValueForNewRowCallBack: (sender: QuestionMatrixDynamicModel) => any;
|
9047
9089
|
rowCounter: number;
|
9048
9090
|
initialRowCount: number;
|
9049
9091
|
setRowCountValueFromData: boolean;
|
@@ -9051,7 +9093,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
9051
9093
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
9052
9094
|
draggedRow: MatrixDropdownRowModelBase;
|
9053
9095
|
onPointerDown(pointerDownEvent: any, row: MatrixDropdownRowModelBase): void;
|
9054
|
-
startDragMatrixRow: any;
|
9096
|
+
startDragMatrixRow: (event: any, currentTarget: any) => void;
|
9055
9097
|
getType(): string;
|
9056
9098
|
get isRowsDynamic(): boolean;
|
9057
9099
|
/*
|
@@ -9078,7 +9120,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
9078
9120
|
protected isDefaultValueEmpty(): boolean;
|
9079
9121
|
protected valueFromData(val: any): any;
|
9080
9122
|
protected setDefaultValue(): void;
|
9081
|
-
moveRowByIndex:
|
9123
|
+
moveRowByIndex: (fromIndex: number, toIndex: number) => void;
|
9082
9124
|
/*
|
9083
9125
|
* The number of rows in the matrix.
|
9084
9126
|
*/
|
@@ -9116,7 +9158,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
9116
9158
|
* Returns true, if a new row can be added.
|
9117
9159
|
*/
|
9118
9160
|
get canAddRow(): boolean;
|
9119
|
-
canRemoveRowsCallback:
|
9161
|
+
canRemoveRowsCallback: (allow: boolean) => boolean;
|
9120
9162
|
/*
|
9121
9163
|
* Returns true, if row can be removed.
|
9122
9164
|
*/
|
@@ -9219,7 +9261,7 @@ export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
|
|
9219
9261
|
get showClearButton(): boolean;
|
9220
9262
|
set showClearButton(val: boolean);
|
9221
9263
|
get canShowClearButton(): boolean;
|
9222
|
-
get clearButtonCaption():
|
9264
|
+
get clearButtonCaption(): string;
|
9223
9265
|
supportGoNextPageAutomatic(): boolean;
|
9224
9266
|
}
|
9225
9267
|
/*
|
@@ -9244,31 +9286,36 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
|
|
9244
9286
|
currentDropTarget: ItemValue;
|
9245
9287
|
dropTargetNodeMove: string;
|
9246
9288
|
endLoadingFromJson(): void;
|
9247
|
-
handlePointerDown: any;
|
9289
|
+
handlePointerDown: (event: any, choice: ItemValue, node: any) => void;
|
9248
9290
|
afterRenderQuestionElement(el: any): void;
|
9249
9291
|
beforeDestroyQuestionElement(el: any): void;
|
9250
|
-
handleKeydown: any;
|
9292
|
+
handleKeydown: (event: any, choice: ItemValue) => void;
|
9251
9293
|
protected supportSelectAll(): boolean;
|
9252
9294
|
supportOther(): boolean;
|
9253
9295
|
supportNone(): boolean;
|
9254
|
-
handleArrowUp:
|
9255
|
-
handleArrowDown:
|
9256
|
-
focusItem:
|
9296
|
+
handleArrowUp: (index: number, choice: ItemValue) => void;
|
9297
|
+
handleArrowDown: (index: number, choice: ItemValue) => void;
|
9298
|
+
focusItem: (index: number) => void;
|
9257
9299
|
setValue: any;
|
9258
9300
|
setValueFromUI: any;
|
9259
9301
|
syncNumbers: any;
|
9260
|
-
setGhostText:
|
9302
|
+
setGhostText: (text: string) => void;
|
9261
9303
|
getIconHoverCss(): string;
|
9262
9304
|
getIconFocusCss(): string;
|
9305
|
+
/*
|
9306
|
+
* For mobile devices. Set this property to false, to disable the "long tap" before drag start. Default is true.
|
9307
|
+
*/
|
9308
|
+
get longTap(): boolean;
|
9309
|
+
set longTap(val: boolean);
|
9263
9310
|
}
|
9264
|
-
export declare function property(options?: any): any;
|
9265
|
-
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): any;
|
9311
|
+
export declare function property(options?: any): (target: any, key: string) => void;
|
9312
|
+
export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
|
9266
9313
|
export declare function unwrap<T>(value: any): T;
|
9267
9314
|
export declare function getSize(value: any): any;
|
9268
9315
|
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
9269
9316
|
export declare function getCurrecyCodes(): Array<any>;
|
9270
9317
|
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
9271
|
-
export declare function attachKey2click(element:
|
9318
|
+
export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: any): JSX.Element;
|
9272
9319
|
/*
|
9273
9320
|
* Global survey settings
|
9274
9321
|
*/
|
@@ -9283,6 +9330,11 @@ export declare var settings: {
|
|
9283
9330
|
caseSensitive: boolean,
|
9284
9331
|
},
|
9285
9332
|
/*
|
9333
|
+
* Set this value to false, if you want to have UTC fuctions, for example setUTCHours inside our functions, like today.
|
9334
|
+
* By default it uses setHours function, with local date
|
9335
|
+
*/
|
9336
|
+
useLocalTimeZone: boolean,
|
9337
|
+
/*
|
9286
9338
|
* The prefix that uses to store the question comment, as {questionName} + {commentPrefix}.
|
9287
9339
|
* The default
|
9288
9340
|
*/
|
@@ -9394,7 +9446,7 @@ export declare var settings: {
|
|
9394
9446
|
/*
|
9395
9447
|
* Override this function, set your function, if you want to show your own dialog confirm window instead of standard browser window.
|
9396
9448
|
*/
|
9397
|
-
confirmActionFunc:
|
9449
|
+
confirmActionFunc: (message: string) => boolean,
|
9398
9450
|
/*
|
9399
9451
|
* Set this property to change the default value of the minWidth constraint
|
9400
9452
|
*/
|
@@ -9472,10 +9524,10 @@ export declare var surveyLocalization: {
|
|
9472
9524
|
supportedLocales: any,
|
9473
9525
|
currentLocale: string,
|
9474
9526
|
defaultLocale: string,
|
9475
|
-
getLocaleStrings: any,
|
9476
|
-
getCurrentStrings: any,
|
9477
|
-
getString: any,
|
9478
|
-
getLocales: any,
|
9527
|
+
getLocaleStrings: (loc: string) => any,
|
9528
|
+
getCurrentStrings: (locale?: string) => any,
|
9529
|
+
getString: (strName: string, locale?: string) => any,
|
9530
|
+
getLocales: (removeDefaultLoc?: boolean) => any,
|
9479
9531
|
};
|
9480
9532
|
export declare var surveyStrings: any;
|
9481
9533
|
/*
|
@@ -9483,7 +9535,7 @@ export declare var surveyStrings: any;
|
|
9483
9535
|
*/
|
9484
9536
|
export declare var Serializer: JsonMetadata;
|
9485
9537
|
export declare var surveyBuiltInVarible: string;
|
9486
|
-
export declare var registerFunction: any;
|
9538
|
+
export declare var registerFunction: (name: string, func: any) => any;
|
9487
9539
|
export declare var parse: any;
|
9488
9540
|
export declare var defaultActionBarCss: {
|
9489
9541
|
root: string,
|
@@ -9649,6 +9701,10 @@ export declare var defaultStandardCss: {
|
|
9649
9701
|
control: string,
|
9650
9702
|
selectWrapper: string,
|
9651
9703
|
other: string,
|
9704
|
+
cleanButton: string,
|
9705
|
+
cleanButtonSvg: string,
|
9706
|
+
cleanButtonIconId: string,
|
9707
|
+
controlValue: string,
|
9652
9708
|
},
|
9653
9709
|
html: {
|
9654
9710
|
root: string,
|
@@ -9828,23 +9884,23 @@ export declare var defaultStandardCss: {
|
|
9828
9884
|
},
|
9829
9885
|
};
|
9830
9886
|
export declare var surveyTimerFunctions: {
|
9831
|
-
setTimeout: any,
|
9832
|
-
clearTimeout:
|
9887
|
+
setTimeout: (func: any) => any,
|
9888
|
+
clearTimeout: (timerId: number) => void,
|
9833
9889
|
};
|
9834
9890
|
export declare var matrixDropdownColumnTypes: {
|
9835
9891
|
dropdown: {
|
9836
|
-
onCellQuestionUpdate: any,
|
9892
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9837
9893
|
},
|
9838
9894
|
checkbox: {
|
9839
|
-
onCellQuestionUpdate: any,
|
9895
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9840
9896
|
},
|
9841
9897
|
radiogroup: {
|
9842
|
-
onCellQuestionUpdate: any,
|
9898
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9843
9899
|
},
|
9844
9900
|
text: any,
|
9845
9901
|
comment: any,
|
9846
9902
|
boolean: {
|
9847
|
-
onCellQuestionUpdate: any,
|
9903
|
+
onCellQuestionUpdate: (cellQuestion: any, column: any, question: any, data: any) => void,
|
9848
9904
|
},
|
9849
9905
|
expression: any,
|
9850
9906
|
rating: any,
|
@@ -10634,7 +10690,6 @@ export declare var defaultV2Css: {
|
|
10634
10690
|
footer: string,
|
10635
10691
|
formGroup: string,
|
10636
10692
|
hasError: string,
|
10637
|
-
disabled: string,
|
10638
10693
|
collapsed: string,
|
10639
10694
|
nested: string,
|
10640
10695
|
invisible: string,
|
@@ -10754,7 +10809,11 @@ export declare var defaultV2Css: {
|
|
10754
10809
|
itemHover: string,
|
10755
10810
|
itemControl: string,
|
10756
10811
|
itemDecorator: string,
|
10812
|
+
cleanButton: string,
|
10813
|
+
cleanButtonSvg: string,
|
10814
|
+
cleanButtonIconId: string,
|
10757
10815
|
control: string,
|
10816
|
+
controlValue: string,
|
10758
10817
|
controlDisabled: string,
|
10759
10818
|
controlEmpty: string,
|
10760
10819
|
controlLabel: string,
|
@@ -10810,6 +10869,7 @@ export declare var defaultV2Css: {
|
|
10810
10869
|
cell: string,
|
10811
10870
|
headerCell: string,
|
10812
10871
|
rowTextCell: string,
|
10872
|
+
cellRequiredText: string,
|
10813
10873
|
detailButton: string,
|
10814
10874
|
detailButtonExpanded: string,
|
10815
10875
|
detailIcon: string,
|
@@ -10829,6 +10889,7 @@ export declare var defaultV2Css: {
|
|
10829
10889
|
cell: string,
|
10830
10890
|
headerCell: string,
|
10831
10891
|
rowTextCell: string,
|
10892
|
+
cellRequiredText: string,
|
10832
10893
|
button: string,
|
10833
10894
|
detailRow: string,
|
10834
10895
|
detailButton: string,
|
@@ -11219,6 +11280,10 @@ export declare var modernCss: {
|
|
11219
11280
|
selectWrapper: string,
|
11220
11281
|
other: string,
|
11221
11282
|
onError: string,
|
11283
|
+
cleanButton: string,
|
11284
|
+
cleanButtonSvg: string,
|
11285
|
+
cleanButtonIconId: string,
|
11286
|
+
controlValue: string,
|
11222
11287
|
},
|
11223
11288
|
imagepicker: {
|
11224
11289
|
root: string,
|