survey-react 1.9.4 → 1.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/modern.css +2 -2
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +2 -2
- package/survey.min.css +2 -2
- package/survey.react.d.ts +147 -127
- package/survey.react.js +160 -73
- package/survey.react.min.js +5 -5
package/survey.react.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
|
-
* Type definition for Survey JavaScript library for React v1.9.
|
3
|
-
* Copyright (c) 2015-
|
2
|
+
* Type definition for Survey JavaScript library for React v1.9.5
|
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
|
*/
|
6
6
|
import * as React from "react";
|
@@ -26,7 +26,7 @@ export interface ILocalizableString {
|
|
26
26
|
getLocaleText(loc: string): string;
|
27
27
|
setLocaleText(loc: string, newValue: string): any;
|
28
28
|
getJson(): any;
|
29
|
-
getLocales(): any
|
29
|
+
getLocales(): Array<any>;
|
30
30
|
getIsMultiple(): boolean;
|
31
31
|
}
|
32
32
|
export interface IPropertyDecoratorOptions<T = any> {
|
@@ -195,7 +195,7 @@ export interface ISize {
|
|
195
195
|
height: number;
|
196
196
|
}
|
197
197
|
export interface ISurveyTriggerOwner {
|
198
|
-
getObjects(pages: any, questions: any): any
|
198
|
+
getObjects(pages: any, questions: any): Array<any>;
|
199
199
|
setCompleted(): any;
|
200
200
|
setTriggerValue(name: string, value: any, isVariable: boolean): any;
|
201
201
|
copyTriggerValue(name: string, fromName: string): any;
|
@@ -307,8 +307,8 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
307
307
|
questionTitlePattern: string;
|
308
308
|
getUpdatedQuestionTitle(question: IQuestion, title: string): string;
|
309
309
|
getUpdatedQuestionNo(question: IQuestion, no: string): string;
|
310
|
-
getUpdatedElementTitleActions(element: ISurveyElement, titleActions: any):
|
311
|
-
getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: MatrixDropdownRowModelBase, actions: any):
|
310
|
+
getUpdatedElementTitleActions(element: ISurveyElement, titleActions: any): Array<IAction>;
|
311
|
+
getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: MatrixDropdownRowModelBase, actions: any): Array<IAction>;
|
312
312
|
questionStartIndex: string;
|
313
313
|
questionTitleLocation: string;
|
314
314
|
questionDescriptionLocation: string;
|
@@ -320,7 +320,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
|
|
320
320
|
uploadFiles(question: IQuestion, name: string, files: any, uploadingCallback: any): any;
|
321
321
|
downloadFile(name: string, content: string, callback: any): any;
|
322
322
|
clearFiles(question: IQuestion, name: string, value: any, fileName: string, clearCallback: any): any;
|
323
|
-
updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any): any
|
323
|
+
updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any): Array<any>;
|
324
324
|
loadedChoicesFromServer(question: IQuestion): void;
|
325
325
|
updateQuestionCssClasses(question: IQuestion, cssClasses: any): any;
|
326
326
|
updatePanelCssClasses(panel: IPanel, cssClasses: any): any;
|
@@ -465,7 +465,7 @@ export interface IFindElement {
|
|
465
465
|
str: LocalizableString;
|
466
466
|
}
|
467
467
|
export interface IValidatorOwner {
|
468
|
-
getValidators():
|
468
|
+
getValidators(): Array<SurveyValidator>;
|
469
469
|
validatedValue: any;
|
470
470
|
getValidatorTitle(): string;
|
471
471
|
getDataFilteredValues(): any;
|
@@ -476,8 +476,8 @@ export interface IMatrixData {
|
|
476
476
|
getCorrectedRowValue(value: any): any;
|
477
477
|
}
|
478
478
|
export interface IMatrixCellsOwner extends ILocalizableOwner {
|
479
|
-
getRows(): any
|
480
|
-
getColumns(): any
|
479
|
+
getRows(): Array<any>;
|
480
|
+
getColumns(): Array<any>;
|
481
481
|
}
|
482
482
|
export interface IMultipleTextData extends ILocalizableOwner, IPanel {
|
483
483
|
getSurvey(): ISurvey;
|
@@ -692,10 +692,10 @@ export declare class Base {
|
|
692
692
|
protected getSearchableLocKeys(keys: any): void;
|
693
693
|
protected getSearchableItemValueKeys(keys: any): void;
|
694
694
|
protected AddLocStringToUsedLocales(locStr: LocalizableString, locales: any): void;
|
695
|
-
protected createItemValues(name: string): any
|
696
|
-
protected createNewArrayCore(name: string): any
|
695
|
+
protected createItemValues(name: string): Array<any>;
|
696
|
+
protected createNewArrayCore(name: string): Array<any>;
|
697
697
|
protected ensureArray(name: string, onPush?: any, onRemove?: any): any;
|
698
|
-
protected createNewArray(name: string, onPush?: any, onRemove?: any): any
|
698
|
+
protected createNewArray(name: string, onPush?: any, onRemove?: any): Array<any>;
|
699
699
|
protected getItemValueType(): string;
|
700
700
|
protected setArray(name: string, src: any, dest: any, isItemValues: boolean, onPush: any): void;
|
701
701
|
protected isTwoValueEquals(x: any, y: any, caseInSensitive?: boolean, trimString?: boolean): boolean;
|
@@ -706,13 +706,13 @@ export declare class Bindings {
|
|
706
706
|
properties: any;
|
707
707
|
values: any;
|
708
708
|
getType(): string;
|
709
|
-
getNames(): any
|
710
|
-
getProperties():
|
709
|
+
getNames(): Array<any>;
|
710
|
+
getProperties(): Array<JsonObjectProperty>;
|
711
711
|
setBinding(propertyName: string, valueName: string): void;
|
712
712
|
clearBinding(propertyName: string): void;
|
713
713
|
isEmpty(): boolean;
|
714
714
|
getValueNameByPropertyName(propertyName: string): string;
|
715
|
-
getPropertiesByValueName(valueName: string): any
|
715
|
+
getPropertiesByValueName(valueName: string): Array<any>;
|
716
716
|
getJson(): any;
|
717
717
|
setJson(value: any): void;
|
718
718
|
}
|
@@ -803,7 +803,7 @@ export declare class CustomPropertiesCollection {
|
|
803
803
|
static addProperty(className: string, property: any): void;
|
804
804
|
static removeProperty(className: string, propertyName: string): void;
|
805
805
|
static addClass(className: string, parentClassName: string): void;
|
806
|
-
static getProperties(className: string): any
|
806
|
+
static getProperties(className: string): Array<any>;
|
807
807
|
static createProperties(obj: any): void;
|
808
808
|
}
|
809
809
|
export declare class CustomWidgetCollection {
|
@@ -867,7 +867,7 @@ export declare class ElementFactory {
|
|
867
867
|
registerElement(elementType: string, elementCreator: any): void;
|
868
868
|
clear(): void;
|
869
869
|
unregisterElement(elementType: string, removeFromSerializer?: boolean): void;
|
870
|
-
getAllTypes(): any
|
870
|
+
getAllTypes(): Array<any>;
|
871
871
|
createElement(elementType: string, name: string): IElement;
|
872
872
|
}
|
873
873
|
export declare class Event<T, Options> {
|
@@ -892,7 +892,7 @@ export declare class ExpressionRunnerBase {
|
|
892
892
|
asyncFuncList: any;
|
893
893
|
get expression(): string;
|
894
894
|
set expression(val: string);
|
895
|
-
getVariables(): any
|
895
|
+
getVariables(): Array<any>;
|
896
896
|
hasFunction(): boolean;
|
897
897
|
get isAsync(): boolean;
|
898
898
|
canRun(): boolean;
|
@@ -909,7 +909,7 @@ export declare class FunctionFactory {
|
|
909
909
|
hasFunction(name: string): boolean;
|
910
910
|
isAsyncFunction(name: string): boolean;
|
911
911
|
clear(): void;
|
912
|
-
getAll(): any
|
912
|
+
getAll(): Array<any>;
|
913
913
|
run(name: string, params: any, properties?: any): any;
|
914
914
|
}
|
915
915
|
export declare class Helpers {
|
@@ -921,7 +921,7 @@ export declare class Helpers {
|
|
921
921
|
static isArrayContainsEqual(x: any, y: any): boolean;
|
922
922
|
static isArraysEqual(x: any, y: any, ignoreOrder?: boolean, caseSensitive?: boolean, trimStrings?: boolean): boolean;
|
923
923
|
static isTwoValueEquals(x: any, y: any, ignoreOrder?: boolean, caseSensitive?: boolean, trimStrings?: boolean): boolean;
|
924
|
-
static randomizeArray<T>(array: any):
|
924
|
+
static randomizeArray<T>(array: any): Array<T>;
|
925
925
|
static getUnbindValue(value: any): any;
|
926
926
|
static createCopy(obj: any): any;
|
927
927
|
static isConvertibleToNumber(value: any): boolean;
|
@@ -957,19 +957,19 @@ export declare class JsonMetadata {
|
|
957
957
|
removeClass(name: string): void;
|
958
958
|
overrideClassCreatore(name: string, creator: any): void;
|
959
959
|
overrideClassCreator(name: string, creator: any): void;
|
960
|
-
getProperties(className: string):
|
961
|
-
getPropertiesByObj(obj: any):
|
962
|
-
getDynamicPropertiesByObj(obj: any, dynamicType?: string):
|
960
|
+
getProperties(className: string): Array<JsonObjectProperty>;
|
961
|
+
getPropertiesByObj(obj: any): Array<JsonObjectProperty>;
|
962
|
+
getDynamicPropertiesByObj(obj: any, dynamicType?: string): Array<JsonObjectProperty>;
|
963
963
|
hasOriginalProperty(obj: Base, propName: string): boolean;
|
964
964
|
getOriginalProperty(obj: Base, propName: string): JsonObjectProperty;
|
965
965
|
getProperty(className: string, propertyName: string): JsonObjectProperty;
|
966
966
|
findProperty(className: string, propertyName: string): JsonObjectProperty;
|
967
|
-
findProperties(className: string, propertyNames: any):
|
968
|
-
getAllPropertiesByName(propertyName: string):
|
969
|
-
getAllClasses(): any
|
967
|
+
findProperties(className: string, propertyNames: any): Array<JsonObjectProperty>;
|
968
|
+
getAllPropertiesByName(propertyName: string): Array<JsonObjectProperty>;
|
969
|
+
getAllClasses(): Array<any>;
|
970
970
|
createClass(name: string, json?: any): any;
|
971
|
-
getChildrenClasses(name: string, canBeCreated?: boolean):
|
972
|
-
getRequiredProperties(name: string): any
|
971
|
+
getChildrenClasses(name: string, canBeCreated?: boolean): Array<JsonMetadataClass>;
|
972
|
+
getRequiredProperties(name: string): Array<any>;
|
973
973
|
addProperties(className: string, propertiesInfos: any): void;
|
974
974
|
addProperty(className: string, propertyInfo: any): JsonObjectProperty;
|
975
975
|
removeProperty(className: string, propertyName: string): boolean;
|
@@ -1108,7 +1108,7 @@ export declare class QuestionFactory {
|
|
1108
1108
|
registerQuestion(questionType: string, questionCreator: any): void;
|
1109
1109
|
unregisterElement(elementType: string): void;
|
1110
1110
|
clear(): void;
|
1111
|
-
getAllTypes(): any
|
1111
|
+
getAllTypes(): Array<any>;
|
1112
1112
|
createQuestion(questionType: string, name: string): Question;
|
1113
1113
|
}
|
1114
1114
|
export declare class QuestionMatrixDropdownRenderedCell {
|
@@ -1156,7 +1156,7 @@ export declare class ReactElementFactory {
|
|
1156
1156
|
static Instance: ReactElementFactory;
|
1157
1157
|
creatorHash: any;
|
1158
1158
|
registerElement(elementType: string, elementCreator: any): void;
|
1159
|
-
getAllTypes(): any
|
1159
|
+
getAllTypes(): Array<any>;
|
1160
1160
|
isElementRegistered(elementType: string): boolean;
|
1161
1161
|
createElement(elementType: string, params: any): any;
|
1162
1162
|
}
|
@@ -1165,7 +1165,7 @@ export declare class ReactQuestionFactory {
|
|
1165
1165
|
static Instance: ReactQuestionFactory;
|
1166
1166
|
creatorHash: any;
|
1167
1167
|
registerQuestion(questionType: string, questionCreator: any): void;
|
1168
|
-
getAllTypes(): any
|
1168
|
+
getAllTypes(): Array<any>;
|
1169
1169
|
createQuestion(questionType: string, params: any): any;
|
1170
1170
|
}
|
1171
1171
|
export declare class RendererFactory {
|
@@ -1227,12 +1227,12 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
|
|
1227
1227
|
render(): any;
|
1228
1228
|
protected wrapElement(element: any): any;
|
1229
1229
|
protected get isRendering(): boolean;
|
1230
|
-
protected getRenderedElement():
|
1230
|
+
protected getRenderedElement(): Base;
|
1231
1231
|
protected canRender(): boolean;
|
1232
1232
|
protected renderElement(): any;
|
1233
1233
|
protected get changedStatePropName(): string;
|
1234
|
-
protected getStateElements():
|
1235
|
-
protected getStateElement():
|
1234
|
+
protected getStateElements(): Array<Base>;
|
1235
|
+
protected getStateElement(): Base;
|
1236
1236
|
protected get isDisplayMode(): boolean;
|
1237
1237
|
protected renderLocString(locStr: any, style?: any): any;
|
1238
1238
|
protected canUsePropInState(key: string): boolean;
|
@@ -1355,7 +1355,7 @@ export declare class TitleActions extends React.Component<any, any> {
|
|
1355
1355
|
export declare class TitleContent extends React.Component<any, any> {
|
1356
1356
|
constructor(props: any);
|
1357
1357
|
render(): any;
|
1358
|
-
protected renderTitleSpans(element: any, cssClasses: any):
|
1358
|
+
protected renderTitleSpans(element: any, cssClasses: any): Array<Element>;
|
1359
1359
|
}
|
1360
1360
|
export declare class TitleElement extends React.Component<any, any> {
|
1361
1361
|
constructor(props: any);
|
@@ -1377,7 +1377,7 @@ export declare class ValidatorRunner {
|
|
1377
1377
|
constructor();
|
1378
1378
|
asyncValidators: any;
|
1379
1379
|
onAsyncCompleted: any;
|
1380
|
-
run(owner: IValidatorOwner):
|
1380
|
+
run(owner: IValidatorOwner): Array<SurveyError>;
|
1381
1381
|
}
|
1382
1382
|
export declare class XmlParser {
|
1383
1383
|
constructor();
|
@@ -1441,7 +1441,7 @@ export declare class Action extends Base implements IAction {
|
|
1441
1441
|
export declare class ActionContainer<T extends Action = Action> extends Base {
|
1442
1442
|
constructor();
|
1443
1443
|
actions: any;
|
1444
|
-
protected getRenderedActions():
|
1444
|
+
protected getRenderedActions(): Array<T>;
|
1445
1445
|
updateCallback: any;
|
1446
1446
|
containerCss: string;
|
1447
1447
|
protected raiseUpdate(isResetInitialized: boolean): void;
|
@@ -1467,7 +1467,7 @@ export declare class ArrayOperand extends Operand {
|
|
1467
1467
|
values: any;
|
1468
1468
|
getType(): string;
|
1469
1469
|
toString(func?: any): string;
|
1470
|
-
evaluate(processValue?: ProcessValue): any
|
1470
|
+
evaluate(processValue?: ProcessValue): Array<any>;
|
1471
1471
|
setVariables(variables: any): void;
|
1472
1472
|
hasFunction(): boolean;
|
1473
1473
|
hasAsyncFunction(): boolean;
|
@@ -1572,7 +1572,7 @@ export declare class ChoicesRestful extends Base {
|
|
1572
1572
|
protected sendRequest(): void;
|
1573
1573
|
getType(): string;
|
1574
1574
|
get isEmpty(): boolean;
|
1575
|
-
getCustomPropertiesNames(): any
|
1575
|
+
getCustomPropertiesNames(): Array<any>;
|
1576
1576
|
setData(json: any): void;
|
1577
1577
|
getData(): any;
|
1578
1578
|
/*
|
@@ -1747,7 +1747,7 @@ export declare class ItemValue extends Base implements ILocalizableOwner, IShort
|
|
1747
1747
|
getProcessedText(text: string): string;
|
1748
1748
|
static get Separator(): string;
|
1749
1749
|
static set Separator(val: string);
|
1750
|
-
static createArray(locOwner: ILocalizableOwner):
|
1750
|
+
static createArray(locOwner: ILocalizableOwner): Array<ItemValue>;
|
1751
1751
|
static setupArray(items: any, locOwner: ILocalizableOwner): void;
|
1752
1752
|
static setData(items: any, values: any): void;
|
1753
1753
|
static getData(items: any): any;
|
@@ -1873,7 +1873,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
1873
1873
|
*/
|
1874
1874
|
get choices(): any;
|
1875
1875
|
get hasChoices(): boolean;
|
1876
|
-
getChoices(obj: any, choicesCallback?: any): any
|
1876
|
+
getChoices(obj: any, choicesCallback?: any): Array<any>;
|
1877
1877
|
setChoices(value: any, valueFunc?: any): void;
|
1878
1878
|
getBaseValue(): string;
|
1879
1879
|
setBaseValue(val: any): void;
|
@@ -1888,7 +1888,7 @@ export declare class JsonObjectProperty implements IObject {
|
|
1888
1888
|
set dataList(val: any);
|
1889
1889
|
mergeWith(prop: JsonObjectProperty): void;
|
1890
1890
|
addDependedProperty(name: string): void;
|
1891
|
-
getDependedProperties(): any
|
1891
|
+
getDependedProperties(): Array<any>;
|
1892
1892
|
schemaType(): string;
|
1893
1893
|
}
|
1894
1894
|
export declare class JsonRequiredPropertyError extends JsonError {
|
@@ -1965,7 +1965,7 @@ export declare class LocalizableString implements ILocalizableString {
|
|
1965
1965
|
getLocaleText(loc: string): string;
|
1966
1966
|
setLocaleText(loc: string, value: string): void;
|
1967
1967
|
hasNonDefaultText(): boolean;
|
1968
|
-
getLocales(): any
|
1968
|
+
getLocales(): Array<any>;
|
1969
1969
|
getJson(): any;
|
1970
1970
|
setJson(value: any): void;
|
1971
1971
|
get renderAs(): string;
|
@@ -1993,17 +1993,17 @@ export declare class LocalizableStrings implements ILocalizableString {
|
|
1993
1993
|
set text(val: string);
|
1994
1994
|
getLocaleText(loc: string): string;
|
1995
1995
|
setLocaleText(loc: string, newValue: string): any;
|
1996
|
-
getValue(loc: string): any
|
1996
|
+
getValue(loc: string): Array<any>;
|
1997
1997
|
setValue(loc: string, val: any): void;
|
1998
1998
|
hasValue(loc?: string): boolean;
|
1999
1999
|
get isEmpty(): boolean;
|
2000
|
-
getLocales(): any
|
2000
|
+
getLocales(): Array<any>;
|
2001
2001
|
getJson(): any;
|
2002
2002
|
setJson(value: any): void;
|
2003
2003
|
}
|
2004
2004
|
export declare class MatrixDropdownColumn extends Base implements ILocalizableOwner, IWrapperObject {
|
2005
2005
|
constructor(name: string, title?: string);
|
2006
|
-
static getColumnTypes(): any
|
2006
|
+
static getColumnTypes(): Array<any>;
|
2007
2007
|
templateQuestionValue: Question;
|
2008
2008
|
colOwnerValue: IMatrixColumnOwner;
|
2009
2009
|
indexValue: number;
|
@@ -2145,7 +2145,7 @@ export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyI
|
|
2145
2145
|
getQuestionByColumnName(columnName: string): Question;
|
2146
2146
|
get questions(): any;
|
2147
2147
|
getQuestionByName(name: string): Question;
|
2148
|
-
getQuestionsByName(name: string):
|
2148
|
+
getQuestionsByName(name: string): Array<Question>;
|
2149
2149
|
protected getSharedQuestionByName(columnName: string): Question;
|
2150
2150
|
clearIncorrectValues(val: any): void;
|
2151
2151
|
getLocale(): string;
|
@@ -2275,7 +2275,7 @@ export declare class MultipleTextItemModel extends Base implements IValidatorOwn
|
|
2275
2275
|
*/
|
2276
2276
|
get validators(): any;
|
2277
2277
|
set validators(val: any);
|
2278
|
-
getValidators():
|
2278
|
+
getValidators(): Array<SurveyValidator>;
|
2279
2279
|
/*
|
2280
2280
|
* The item value.
|
2281
2281
|
*/
|
@@ -2543,7 +2543,7 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
|
|
2543
2543
|
static get cssType(): string;
|
2544
2544
|
static set cssType(val: string);
|
2545
2545
|
protected survey: ReactSurveyModel;
|
2546
|
-
protected getStateElement():
|
2546
|
+
protected getStateElement(): Base;
|
2547
2547
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
2548
2548
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2549
2549
|
componentDidMount(): void;
|
@@ -2574,7 +2574,7 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
|
|
2574
2574
|
export declare class SurveyAction extends SurveyElementBase<IActionBarItemProps, any> {
|
2575
2575
|
constructor(props: any);
|
2576
2576
|
get item(): any;
|
2577
|
-
protected getStateElement():
|
2577
|
+
protected getStateElement(): Base;
|
2578
2578
|
renderElement(): any;
|
2579
2579
|
}
|
2580
2580
|
export declare class SurveyActionBar extends SurveyElementBase<IActionBarProps, any> {
|
@@ -2583,14 +2583,14 @@ export declare class SurveyActionBar extends SurveyElementBase<IActionBarProps,
|
|
2583
2583
|
get model(): any;
|
2584
2584
|
componentDidMount(): void;
|
2585
2585
|
componentWillUnmount(): void;
|
2586
|
-
protected getStateElement():
|
2586
|
+
protected getStateElement(): Base;
|
2587
2587
|
renderElement(): any;
|
2588
2588
|
renderItems(): any;
|
2589
2589
|
}
|
2590
2590
|
export declare class SurveyActionBarItem extends SurveyElementBase<IActionBarItemProps, any> {
|
2591
2591
|
constructor(props: any);
|
2592
2592
|
get item(): any;
|
2593
|
-
protected getStateElement():
|
2593
|
+
protected getStateElement(): Base;
|
2594
2594
|
renderElement(): any;
|
2595
2595
|
renderText(): any;
|
2596
2596
|
renderButtonContent(): any;
|
@@ -2665,21 +2665,21 @@ export declare class SurveyNavigation extends SurveyNavigationBase {
|
|
2665
2665
|
export declare class SurveyPanelBase extends SurveyElementBase<any, any> {
|
2666
2666
|
constructor(props: any);
|
2667
2667
|
protected rootRef: any;
|
2668
|
-
protected getStateElement():
|
2668
|
+
protected getStateElement(): Base;
|
2669
2669
|
protected canUsePropInState(key: string): boolean;
|
2670
2670
|
protected get survey(): any;
|
2671
2671
|
protected get creator(): ISurveyCreator;
|
2672
2672
|
protected get css(): any;
|
2673
2673
|
get panelBase(): any;
|
2674
|
-
protected getPanelBase():
|
2675
|
-
protected getSurvey():
|
2674
|
+
protected getPanelBase(): PanelModelBase;
|
2675
|
+
protected getSurvey(): SurveyModel;
|
2676
2676
|
protected getCss(): any;
|
2677
2677
|
componentDidMount(): void;
|
2678
2678
|
componentWillUnmount(): void;
|
2679
2679
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
2680
2680
|
protected canRender(): boolean;
|
2681
2681
|
renderedRowsCache: any;
|
2682
|
-
protected renderRows(css: any):
|
2682
|
+
protected renderRows(css: any): Array<Element>;
|
2683
2683
|
protected createRow(row: any, css: any): any;
|
2684
2684
|
}
|
2685
2685
|
export declare class SurveyProgress extends SurveyNavigationBase {
|
@@ -2695,7 +2695,7 @@ export declare class SurveyProgressButtons extends SurveyNavigationBase {
|
|
2695
2695
|
updateScroller: any;
|
2696
2696
|
listContainerRef: any;
|
2697
2697
|
render(): any;
|
2698
|
-
protected getListElements():
|
2698
|
+
protected getListElements(): Array<Element>;
|
2699
2699
|
protected renderListElement(page: any, index: number): any;
|
2700
2700
|
protected isListElementClickable(index: number): boolean;
|
2701
2701
|
protected getListElementCss(index: number): string;
|
@@ -2710,7 +2710,7 @@ export declare class SurveyQuestion extends SurveyElementBase<any, any> {
|
|
2710
2710
|
isNeedFocus: boolean;
|
2711
2711
|
static renderQuestionBody(creator: ISurveyCreator, question: any): any;
|
2712
2712
|
rootRef: any;
|
2713
|
-
protected getStateElement():
|
2713
|
+
protected getStateElement(): Base;
|
2714
2714
|
protected get question(): any;
|
2715
2715
|
componentDidMount(): void;
|
2716
2716
|
componentWillUnmount(): void;
|
@@ -2732,7 +2732,7 @@ export declare class SurveyQuestionElementBase extends SurveyElementBase<any, an
|
|
2732
2732
|
componentWillUnmount(): void;
|
2733
2733
|
protected updateDomElement(): void;
|
2734
2734
|
protected get questionBase(): any;
|
2735
|
-
protected getRenderedElement():
|
2735
|
+
protected getRenderedElement(): Base;
|
2736
2736
|
protected get creator(): ISurveyCreator;
|
2737
2737
|
protected canRender(): boolean;
|
2738
2738
|
shouldComponentUpdate(): boolean;
|
@@ -2742,7 +2742,7 @@ export declare class SurveyQuestionElementBase extends SurveyElementBase<any, an
|
|
2742
2742
|
export declare class SurveyRow extends SurveyElementBase<any, any> {
|
2743
2743
|
constructor(props: any);
|
2744
2744
|
rootRef: any;
|
2745
|
-
protected getStateElement():
|
2745
|
+
protected getStateElement(): Base;
|
2746
2746
|
protected get css(): any;
|
2747
2747
|
protected canRender(): boolean;
|
2748
2748
|
protected renderElementContent(): any;
|
@@ -2908,7 +2908,7 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
|
|
2908
2908
|
protected invisibleItemsListModel: ListModel;
|
2909
2909
|
protected onSet(): void;
|
2910
2910
|
protected onPush(item: T): void;
|
2911
|
-
protected getRenderedActions():
|
2911
|
+
protected getRenderedActions(): Array<T>;
|
2912
2912
|
fit(dimension: number, dotsItemSize: number): void;
|
2913
2913
|
initResponsivityManager(container: any): void;
|
2914
2914
|
resetResponsivityManager(): void;
|
@@ -3164,7 +3164,7 @@ export declare class QuestionPanelDynamicItemTextProcessor extends QuestionTextP
|
|
3164
3164
|
}
|
3165
3165
|
export declare class ReactWindowModel extends SurveyWindowModel {
|
3166
3166
|
constructor(jsonObj?: any, model?: ReactSurveyModel);
|
3167
|
-
protected createSurvey(jsonObj: any):
|
3167
|
+
protected createSurvey(jsonObj: any): SurveyModel;
|
3168
3168
|
get renderCallback(): any;
|
3169
3169
|
set renderCallback(val: any);
|
3170
3170
|
}
|
@@ -3249,7 +3249,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3249
3249
|
getTitleToolbar(): AdaptiveActionContainer;
|
3250
3250
|
get titleActions(): any;
|
3251
3251
|
isTitleActionRequested: boolean;
|
3252
|
-
getTitleActions(): any
|
3252
|
+
getTitleActions(): Array<any>;
|
3253
3253
|
get hasTitleActions(): boolean;
|
3254
3254
|
get hasTitleEvents(): boolean;
|
3255
3255
|
getTitleComponentName(): string;
|
@@ -3315,7 +3315,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
|
|
3315
3315
|
get containsErrors(): boolean;
|
3316
3316
|
updateContainsErrors(): void;
|
3317
3317
|
protected getContainsErrors(): boolean;
|
3318
|
-
getElementsInDesign(includeHidden?: boolean):
|
3318
|
+
getElementsInDesign(includeHidden?: boolean): Array<IElement>;
|
3319
3319
|
get selectedElementInDesign(): SurveyElement;
|
3320
3320
|
set selectedElementInDesign(val: SurveyElement);
|
3321
3321
|
updateCustomWidgets(): void;
|
@@ -4294,7 +4294,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4294
4294
|
/*
|
4295
4295
|
* Returns an array of locales that are used in the survey's translation.
|
4296
4296
|
*/
|
4297
|
-
getUsedLocales(): any
|
4297
|
+
getUsedLocales(): Array<any>;
|
4298
4298
|
localeChanged(): void;
|
4299
4299
|
getLocale(): string;
|
4300
4300
|
locStrsChanged(): void;
|
@@ -4432,7 +4432,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4432
4432
|
*/
|
4433
4433
|
get questionTitlePattern(): string;
|
4434
4434
|
set questionTitlePattern(val: string);
|
4435
|
-
getQuestionTitlePatternOptions(): any
|
4435
|
+
getQuestionTitlePatternOptions(): Array<any>;
|
4436
4436
|
/*
|
4437
4437
|
* Gets or sets a question title template. Obsolete, please use questionTitlePattern
|
4438
4438
|
*/
|
@@ -4893,7 +4893,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4893
4893
|
dynamicPanelItemValueChanged(question: IQuestion, options: any): void;
|
4894
4894
|
dragAndDropAllow(options: any): boolean;
|
4895
4895
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
4896
|
-
getUpdatedElementTitleActions(element: ISurveyElement, titleActions: any):
|
4896
|
+
getUpdatedElementTitleActions(element: ISurveyElement, titleActions: any): Array<IAction>;
|
4897
4897
|
getUpdatedMatrixRowActions(question: IQuestion, row: any, actions: any): any;
|
4898
4898
|
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string): any;
|
4899
4899
|
/*
|
@@ -4908,7 +4908,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4908
4908
|
* Clears files from server.
|
4909
4909
|
*/
|
4910
4910
|
clearFiles(question: IQuestion, name: string, value: any, fileName: string, callback: any): void;
|
4911
|
-
updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any):
|
4911
|
+
updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any): Array<ItemValue>;
|
4912
4912
|
loadedChoicesFromServer(question: IQuestion): void;
|
4913
4913
|
protected createSurveyService(): dxSurveyService;
|
4914
4914
|
protected uploadFilesCore(name: string, files: any, uploadingCallback: any): void;
|
@@ -4936,12 +4936,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4936
4936
|
/*
|
4937
4937
|
* Returns all questions by their valueName. name property is used if valueName property is empty.
|
4938
4938
|
*/
|
4939
|
-
getQuestionsByValueName(valueName: string, caseInsensitive?: boolean):
|
4939
|
+
getQuestionsByValueName(valueName: string, caseInsensitive?: boolean): Array<Question>;
|
4940
4940
|
getCalculatedValueByName(name: string): CalculatedValue;
|
4941
4941
|
/*
|
4942
4942
|
* Gets a list of questions by their names.
|
4943
4943
|
*/
|
4944
|
-
getQuestionsByNames(names: any, caseInsensitive?: boolean):
|
4944
|
+
getQuestionsByNames(names: any, caseInsensitive?: boolean): Array<IQuestion>;
|
4945
4945
|
/*
|
4946
4946
|
* Returns a page on which an element (question or panel) is placed.
|
4947
4947
|
*/
|
@@ -4957,15 +4957,15 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4957
4957
|
/*
|
4958
4958
|
* Returns a list of pages by their names.
|
4959
4959
|
*/
|
4960
|
-
getPagesByNames(names: any):
|
4960
|
+
getPagesByNames(names: any): Array<PageModel>;
|
4961
4961
|
/*
|
4962
4962
|
* Returns a list of all questions in a survey.
|
4963
4963
|
*/
|
4964
|
-
getAllQuestions(visibleOnly?: boolean, includingDesignTime?: boolean):
|
4964
|
+
getAllQuestions(visibleOnly?: boolean, includingDesignTime?: boolean): Array<Question>;
|
4965
4965
|
/*
|
4966
4966
|
* Returns quiz questions. All visible questions that has input(s) widgets.
|
4967
4967
|
*/
|
4968
|
-
getQuizQuestions():
|
4968
|
+
getQuizQuestions(): Array<IQuestion>;
|
4969
4969
|
/*
|
4970
4970
|
* Returns a panel by its name.
|
4971
4971
|
*/
|
@@ -4973,7 +4973,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
4973
4973
|
/*
|
4974
4974
|
* Returns a list of all survey's panels.
|
4975
4975
|
*/
|
4976
|
-
getAllPanels(visibleOnly?: boolean, includingDesignTime?: boolean):
|
4976
|
+
getAllPanels(visibleOnly?: boolean, includingDesignTime?: boolean): Array<IPanel>;
|
4977
4977
|
/*
|
4978
4978
|
* Creates and returns a new page, but do not add it into the survey.
|
4979
4979
|
* You can use addPage(page) function to add it into survey later.
|
@@ -5024,7 +5024,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5024
5024
|
/*
|
5025
5025
|
* Returns all variables in the survey. Use setVariable function to create a new variable.
|
5026
5026
|
*/
|
5027
|
-
getVariableNames(): any
|
5027
|
+
getVariableNames(): Array<any>;
|
5028
5028
|
protected getUnbindValue(value: any): any;
|
5029
5029
|
/*
|
5030
5030
|
* Returns a question value (answer) by a question's name.
|
@@ -5159,7 +5159,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5159
5159
|
getSurveyData(): ISurveyData;
|
5160
5160
|
getSurvey(): ISurvey;
|
5161
5161
|
getTextProcessor(): ITextProcessor;
|
5162
|
-
getObjects(pages: any, questions: any): any
|
5162
|
+
getObjects(pages: any, questions: any): Array<any>;
|
5163
5163
|
setTriggerValue(name: string, value: any, isVariable: boolean): void;
|
5164
5164
|
copyTriggerValue(name: string, fromName: string): void;
|
5165
5165
|
isFocusingQuestion: boolean;
|
@@ -5175,7 +5175,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5175
5175
|
getItemValueWrapperComponentName(item: ItemValue, question: QuestionSelectBase): string;
|
5176
5176
|
getItemValueWrapperComponentData(item: ItemValue, question: QuestionSelectBase): any;
|
5177
5177
|
getMatrixCellTemplateData(cell: any): any;
|
5178
|
-
searchText(text: string):
|
5178
|
+
searchText(text: string): Array<IFindElement>;
|
5179
5179
|
skeletonComponentName: string;
|
5180
5180
|
getSkeletonComponentName(element: ISurveyElement): string;
|
5181
5181
|
/*
|
@@ -5185,7 +5185,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
5185
5185
|
}
|
5186
5186
|
export declare class SurveyPage extends SurveyPanelBase {
|
5187
5187
|
constructor(props: any);
|
5188
|
-
protected getPanelBase():
|
5188
|
+
protected getPanelBase(): PanelModelBase;
|
5189
5189
|
get page(): any;
|
5190
5190
|
protected renderElement(): any;
|
5191
5191
|
protected renderTitle(): any;
|
@@ -5205,10 +5205,10 @@ export declare class SurveyPanel extends SurveyPanelBase {
|
|
5205
5205
|
}
|
5206
5206
|
export declare class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
|
5207
5207
|
constructor(props: any);
|
5208
|
-
protected getStateElement():
|
5208
|
+
protected getStateElement(): Base;
|
5209
5209
|
protected get question(): any;
|
5210
5210
|
protected get creator(): ISurveyCreator;
|
5211
|
-
protected getQuestion():
|
5211
|
+
protected getQuestion(): Question;
|
5212
5212
|
protected get itemCss(): string;
|
5213
5213
|
componentDidMount(): void;
|
5214
5214
|
componentDidUpdate(prevProps: any, prevState: any): void;
|
@@ -5223,7 +5223,7 @@ export declare class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
|
|
5223
5223
|
export declare class SurveyQuestionBoolean extends SurveyQuestionElementBase {
|
5224
5224
|
constructor(props: any);
|
5225
5225
|
protected checkRef: any;
|
5226
|
-
protected getStateElement():
|
5226
|
+
protected getStateElement(): Base;
|
5227
5227
|
protected get question(): any;
|
5228
5228
|
handleOnChange(event: any): void;
|
5229
5229
|
handleOnClick(event: any): void;
|
@@ -5244,7 +5244,7 @@ export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
|
|
5244
5244
|
protected get question(): QuestionCheckboxModel;
|
5245
5245
|
protected renderElement(): any;
|
5246
5246
|
protected getColumns(cssClasses: any): any;
|
5247
|
-
protected getItems(cssClasses: any): any
|
5247
|
+
protected getItems(cssClasses: any): Array<any>;
|
5248
5248
|
protected get textStyle(): any;
|
5249
5249
|
protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): any;
|
5250
5250
|
}
|
@@ -5311,7 +5311,7 @@ export declare class SurveyQuestionImagePicker extends SurveyQuestionElementBase
|
|
5311
5311
|
protected get question(): any;
|
5312
5312
|
handleOnChange(event: any): void;
|
5313
5313
|
protected renderElement(): any;
|
5314
|
-
protected getItems(cssClasses: any): any
|
5314
|
+
protected getItems(cssClasses: any): Array<any>;
|
5315
5315
|
protected get textStyle(): any;
|
5316
5316
|
protected renderItem(key: string, item: any, cssClasses: any): any;
|
5317
5317
|
}
|
@@ -5375,7 +5375,7 @@ export declare class SurveyQuestionMultipleText extends SurveyQuestionElementBas
|
|
5375
5375
|
}
|
5376
5376
|
export declare class SurveyQuestionOptionItem extends ReactSurveyElement {
|
5377
5377
|
constructor(props: any);
|
5378
|
-
protected getStateElement():
|
5378
|
+
protected getStateElement(): Base;
|
5379
5379
|
protected canRender(): boolean;
|
5380
5380
|
protected renderElement(): any;
|
5381
5381
|
}
|
@@ -5399,7 +5399,7 @@ export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBas
|
|
5399
5399
|
}
|
5400
5400
|
export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
|
5401
5401
|
constructor(props: any);
|
5402
|
-
protected getStateElement():
|
5402
|
+
protected getStateElement(): Base;
|
5403
5403
|
protected get question(): any;
|
5404
5404
|
protected get item(): any;
|
5405
5405
|
protected get textStyle(): any;
|
@@ -5416,14 +5416,14 @@ export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase
|
|
5416
5416
|
protected get question(): any;
|
5417
5417
|
protected renderElement(): any;
|
5418
5418
|
protected getColumns(cssClasses: any): any;
|
5419
|
-
protected getItems(cssClasses: any): any
|
5419
|
+
protected getItems(cssClasses: any): Array<any>;
|
5420
5420
|
protected get textStyle(): any;
|
5421
5421
|
}
|
5422
5422
|
export declare class SurveyQuestionRanking extends SurveyQuestionElementBase {
|
5423
5423
|
constructor(props: any);
|
5424
5424
|
protected get question(): any;
|
5425
5425
|
protected renderElement(): any;
|
5426
|
-
protected getItems(): any
|
5426
|
+
protected getItems(): Array<any>;
|
5427
5427
|
protected renderItem(item: ItemValue, i: number, handleKeydown: any, handlePointerDown: any, cssClasses: any, itemClass: string, question: any): any;
|
5428
5428
|
}
|
5429
5429
|
export declare class SurveyQuestionRankingItem extends ReactSurveyElement {
|
@@ -5473,7 +5473,7 @@ export declare class SurveyTrigger extends Trigger {
|
|
5473
5473
|
export declare class SurveyWindow extends Survey {
|
5474
5474
|
constructor(props: any);
|
5475
5475
|
protected window: ReactWindowModel;
|
5476
|
-
protected getStateElements():
|
5476
|
+
protected getStateElements(): Array<Base>;
|
5477
5477
|
handleOnExpanded(event: any): void;
|
5478
5478
|
protected canRender(): boolean;
|
5479
5479
|
protected renderElement(): any;
|
@@ -5657,7 +5657,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
|
|
5657
5657
|
* Returns the list of the elements in the object, Panel/Page. Elements can be questions or panels. The function doesn't return elements in the nested Panels.
|
5658
5658
|
*/
|
5659
5659
|
get elements(): any;
|
5660
|
-
getElementsInDesign(includeHidden?: boolean):
|
5660
|
+
getElementsInDesign(includeHidden?: boolean): Array<IElement>;
|
5661
5661
|
/*
|
5662
5662
|
* Returns true if the current element belongs to the Panel/Page. It looks in nested Panels as well.
|
5663
5663
|
*/
|
@@ -5822,9 +5822,11 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
5822
5822
|
focusCallback: any;
|
5823
5823
|
surveyLoadCallback: any;
|
5824
5824
|
displayValueCallback: any;
|
5825
|
-
textPreProcessor: TextPreProcessor;
|
5826
5825
|
conditionEnabelRunner: ConditionRunner;
|
5827
5826
|
conditionRequiredRunner: ConditionRunner;
|
5827
|
+
defaultValueRunner: ExpressionRunner;
|
5828
|
+
isChangingViaDefaultValue: boolean;
|
5829
|
+
isValueChangedDirectly: boolean;
|
5828
5830
|
valueChangedCallback: any;
|
5829
5831
|
commentChangedCallback: any;
|
5830
5832
|
validateValueCallback: any;
|
@@ -6008,7 +6010,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6008
6010
|
/*
|
6009
6011
|
* Returns a copy of question errors survey. For some questions like matrix and panel dynamic it includes the errors of nested questions.
|
6010
6012
|
*/
|
6011
|
-
getAllErrors():
|
6013
|
+
getAllErrors(): Array<SurveyError>;
|
6012
6014
|
getErrorByType(errorType: string): SurveyError;
|
6013
6015
|
/*
|
6014
6016
|
* The link to the custom widget.
|
@@ -6152,7 +6154,19 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6152
6154
|
* Return true if there is a parent (page or panel) and it is visible
|
6153
6155
|
*/
|
6154
6156
|
get isParentVisible(): boolean;
|
6155
|
-
clearValueIfInvisible(): void;
|
6157
|
+
clearValueIfInvisible(reason?: string): void;
|
6158
|
+
/*
|
6159
|
+
* Gets or sets a value that specifies how invisible question clears the value. By default the behavior is define by Survey "clearInvisibleValues" property.
|
6160
|
+
*
|
6161
|
+
* The following options are available:
|
6162
|
+
*
|
6163
|
+
* - `default` (default) - Survey "clearInvisibleValues" property defines the behavior.
|
6164
|
+
* - `none` - do not clear invisible value.
|
6165
|
+
* - `onHidden` - clear the question value when it becomes invisible. If a question has value and it was invisible initially then survey clears the value on completing.
|
6166
|
+
* - `onComplete` - clear invisible question value on survey complete.
|
6167
|
+
*/
|
6168
|
+
get clearIfInvisible(): string;
|
6169
|
+
set clearIfInvisible(val: string);
|
6156
6170
|
get displayValue(): any;
|
6157
6171
|
/*
|
6158
6172
|
* Return the question value as a display text. For example, for dropdown, it would return the item text instead of item value.
|
@@ -6166,6 +6180,11 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6166
6180
|
*/
|
6167
6181
|
get defaultValue(): any;
|
6168
6182
|
set defaultValue(val: any);
|
6183
|
+
/*
|
6184
|
+
* Set the default value to the question via expression. This expression will keep change the question value until the value is changed by end-user or via API.
|
6185
|
+
* You can use expressions as: "today(2)" it will set the question value to after tomorrow or to today({q1}). If {q1} equals to 1, then the value will be tomorrow. If a user change it to 2 then aftertommrow.
|
6186
|
+
* It works in dynamic panel and matrices as well, please use prefix "panel." and "row." to access question value in the same panel or row.
|
6187
|
+
*/
|
6169
6188
|
get defaultValueExpression(): any;
|
6170
6189
|
set defaultValueExpression(val: any);
|
6171
6190
|
get resizeStyle(): "none" | "both";
|
@@ -6191,6 +6210,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6191
6210
|
protected getCorrectAnswerCount(): number;
|
6192
6211
|
isAnswerCorrect(): boolean;
|
6193
6212
|
updateValueWithDefaults(): void;
|
6213
|
+
protected get isClearValueOnHidden(): boolean;
|
6194
6214
|
getQuestionFromArray(name: string, index: number): IQuestion;
|
6195
6215
|
getDefaultValue(): any;
|
6196
6216
|
protected isDefaultValueEmpty(): boolean;
|
@@ -6218,8 +6238,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6218
6238
|
*/
|
6219
6239
|
get validators(): any;
|
6220
6240
|
set validators(val: any);
|
6221
|
-
getValidators():
|
6222
|
-
getSupportedValidators(): any
|
6241
|
+
getValidators(): Array<SurveyValidator>;
|
6242
|
+
getSupportedValidators(): Array<any>;
|
6223
6243
|
addConditionObjectsByContext(objects: any, context: any): void;
|
6224
6244
|
getConditionJson(operator?: string, path?: string): any;
|
6225
6245
|
/*
|
@@ -6251,7 +6271,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
|
|
6251
6271
|
onCompletedAsyncValidators: any;
|
6252
6272
|
get isRunningValidators(): boolean;
|
6253
6273
|
protected getIsRunningValidators(): boolean;
|
6254
|
-
protected runValidators():
|
6274
|
+
protected runValidators(): Array<SurveyError>;
|
6255
6275
|
protected raiseOnCompletedAsyncValidators(): void;
|
6256
6276
|
isValueChangedInSurvey: boolean;
|
6257
6277
|
protected allowNotifyValueChanged: boolean;
|
@@ -6319,12 +6339,12 @@ export declare class SurveyFlowPanel extends SurveyPanel {
|
|
6319
6339
|
get flowPanel(): any;
|
6320
6340
|
componentDidMount(): void;
|
6321
6341
|
componentWillUnmount(): void;
|
6322
|
-
protected getQuestion(name: string):
|
6342
|
+
protected getQuestion(name: string): Question;
|
6323
6343
|
protected renderQuestion(question: any): string;
|
6324
|
-
protected renderRows():
|
6344
|
+
protected renderRows(): Array<Element>;
|
6325
6345
|
renderedIndex: number;
|
6326
6346
|
protected renderHtml(): any;
|
6327
|
-
protected renderNodes(domNodes: any):
|
6347
|
+
protected renderNodes(domNodes: any): Array<Element>;
|
6328
6348
|
protected renderParentNode(node: any): any;
|
6329
6349
|
protected renderNode(node: any): any;
|
6330
6350
|
protected renderContent(style: any, rows: any): any;
|
@@ -6357,7 +6377,7 @@ export declare class SurveyQuestionComposite extends SurveyQuestionUncontrolledE
|
|
6357
6377
|
}
|
6358
6378
|
export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElement<QuestionCustomModel> {
|
6359
6379
|
constructor(props: any);
|
6360
|
-
protected getStateElements():
|
6380
|
+
protected getStateElements(): Array<Base>;
|
6361
6381
|
protected renderElement(): any;
|
6362
6382
|
}
|
6363
6383
|
export declare class SurveyQuestionDropdown extends SurveyQuestionUncontrolledElement<QuestionDropdownModel> {
|
@@ -6383,7 +6403,7 @@ export declare class SurveyQuestionMatrixDynamic extends SurveyQuestionMatrixDro
|
|
6383
6403
|
}
|
6384
6404
|
export declare class SurveyQuestionPanelDynamicItem extends SurveyPanel {
|
6385
6405
|
constructor(props: any);
|
6386
|
-
protected getSurvey():
|
6406
|
+
protected getSurvey(): SurveyModel;
|
6387
6407
|
protected getCss(): any;
|
6388
6408
|
handleOnPanelRemoveClick(event: any): void;
|
6389
6409
|
render(): any;
|
@@ -6531,7 +6551,7 @@ export declare class PageModel extends PanelModelBase implements IPage {
|
|
6531
6551
|
/*
|
6532
6552
|
* Returns the list of all panels in the page
|
6533
6553
|
*/
|
6534
|
-
getPanels(visibleOnly?: boolean, includingDesignTime?: boolean):
|
6554
|
+
getPanels(visibleOnly?: boolean, includingDesignTime?: boolean): Array<IPanel>;
|
6535
6555
|
/*
|
6536
6556
|
* The maximum time in seconds that end-user has to complete the page. If the value is 0 or less, the end-user has unlimited number of time to finish the page.
|
6537
6557
|
*/
|
@@ -7005,7 +7025,7 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
|
|
7005
7025
|
get rows(): any;
|
7006
7026
|
set rows(val: any);
|
7007
7027
|
protected processRowsOnSet(newRows: any): any;
|
7008
|
-
protected getVisibleRows():
|
7028
|
+
protected getVisibleRows(): Array<TRow>;
|
7009
7029
|
/*
|
7010
7030
|
* Returns the list of visible rows as model objects.
|
7011
7031
|
*/
|
@@ -7073,14 +7093,14 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
|
|
7073
7093
|
/*
|
7074
7094
|
* Returns the list of rendered rows.
|
7075
7095
|
*/
|
7076
|
-
getRows(): any
|
7096
|
+
getRows(): Array<any>;
|
7077
7097
|
isMultipleItemValueChanging: boolean;
|
7078
7098
|
protected onValueChanged(): void;
|
7079
7099
|
protected createTextItem(name: string, title: string): MultipleTextItemModel;
|
7080
7100
|
protected onItemValueChanged(): void;
|
7081
7101
|
protected getIsRunningValidators(): boolean;
|
7082
7102
|
hasErrors(fireCallback?: boolean, rec?: any): boolean;
|
7083
|
-
getAllErrors():
|
7103
|
+
getAllErrors(): Array<SurveyError>;
|
7084
7104
|
clearErrors(): void;
|
7085
7105
|
protected getContainsErrors(): boolean;
|
7086
7106
|
protected getIsAnswered(): boolean;
|
@@ -7116,7 +7136,7 @@ export declare class QuestionNonValue extends Question {
|
|
7116
7136
|
getTitleLocation(): string;
|
7117
7137
|
get hasComment(): boolean;
|
7118
7138
|
hasErrors(fireCallback?: boolean, rec?: any): boolean;
|
7119
|
-
getAllErrors():
|
7139
|
+
getAllErrors(): Array<SurveyError>;
|
7120
7140
|
supportGoNextPageAutomatic(): boolean;
|
7121
7141
|
addConditionObjectsByContext(objects: any, context: any): void;
|
7122
7142
|
getConditionJson(operator?: string, path?: string): any;
|
@@ -7243,7 +7263,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
7243
7263
|
* Returns true when showRangeInProgress equals to true, renderMode doesn't equal to "list" and panelCount is >= 2.
|
7244
7264
|
*/
|
7245
7265
|
get isRangeShowing(): boolean;
|
7246
|
-
getElementsInDesign(includeHidden?: boolean):
|
7266
|
+
getElementsInDesign(includeHidden?: boolean): Array<IElement>;
|
7247
7267
|
isAddingNewPanels: boolean;
|
7248
7268
|
addingNewPanelsValue: any;
|
7249
7269
|
isNewPanelsValueChanged: boolean;
|
@@ -7381,7 +7401,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
|
|
7381
7401
|
protected getIsAnswered(): boolean;
|
7382
7402
|
clearValueIfInvisible(): void;
|
7383
7403
|
protected getIsRunningValidators(): boolean;
|
7384
|
-
getAllErrors():
|
7404
|
+
getAllErrors(): Array<SurveyError>;
|
7385
7405
|
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
7386
7406
|
protected createNewPanel(): PanelModel;
|
7387
7407
|
protected createAndSetupNewPanelObject(): PanelModel;
|
@@ -7662,10 +7682,10 @@ export declare class QuestionSelectBase extends Question {
|
|
7662
7682
|
protected getDisplayValueEmpty(): string;
|
7663
7683
|
protected getChoicesDisplayValue(items: any, val: any): any;
|
7664
7684
|
protected get activeChoices(): any;
|
7665
|
-
protected getChoicesFromQuestion(question: QuestionSelectBase):
|
7685
|
+
protected getChoicesFromQuestion(question: QuestionSelectBase): Array<ItemValue>;
|
7666
7686
|
protected get hasActiveChoices(): boolean;
|
7667
7687
|
protected isBuiltInChoice(item: ItemValue, question: QuestionSelectBase): boolean;
|
7668
|
-
protected getChoices():
|
7688
|
+
protected getChoices(): Array<ItemValue>;
|
7669
7689
|
supportComment(): boolean;
|
7670
7690
|
supportOther(): boolean;
|
7671
7691
|
supportNone(): boolean;
|
@@ -7712,7 +7732,7 @@ export declare class QuestionSelectBase extends Question {
|
|
7712
7732
|
ariaItemChecked(item: ItemValue): "true" | "false";
|
7713
7733
|
isOtherItem(item: ItemValue): boolean;
|
7714
7734
|
get itemSvgIcon(): string;
|
7715
|
-
|
7735
|
+
getAriaItemLabel(item: ItemValue): string;
|
7716
7736
|
getItemId(item: ItemValue): string;
|
7717
7737
|
get questionName(): string;
|
7718
7738
|
getItemEnabled(item: ItemValue): any;
|
@@ -7812,7 +7832,7 @@ export declare class QuestionTextBase extends Question {
|
|
7812
7832
|
}
|
7813
7833
|
export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndErrorsCell {
|
7814
7834
|
constructor(props: any);
|
7815
|
-
protected getQuestion():
|
7835
|
+
protected getQuestion(): Question;
|
7816
7836
|
protected doAfterRender(): void;
|
7817
7837
|
protected getShowErrors(): boolean;
|
7818
7838
|
protected getCellStyle(): any;
|
@@ -7969,7 +7989,7 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
|
|
7969
7989
|
get selectedItem(): ItemValue;
|
7970
7990
|
supportGoNextPageAutomatic(): boolean;
|
7971
7991
|
minMaxChoices: any;
|
7972
|
-
protected getChoices():
|
7992
|
+
protected getChoices(): Array<ItemValue>;
|
7973
7993
|
/*
|
7974
7994
|
* Use this and choicesMax property to automatically add choices. For example choicesMin = 1 and choicesMax = 10 will generate ten additional choices from 1 to 10.
|
7975
7995
|
*/
|
@@ -8200,7 +8220,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
8200
8220
|
get locKeyDuplicationError(): LocalizableString;
|
8201
8221
|
get storeOthersAsComment(): boolean;
|
8202
8222
|
addColumn(name: string, title?: string): MatrixDropdownColumn;
|
8203
|
-
protected getVisibleRows():
|
8223
|
+
protected getVisibleRows(): Array<MatrixDropdownRowModelBase>;
|
8204
8224
|
get totalValue(): any;
|
8205
8225
|
protected getVisibleTotalRow(): MatrixDropdownRowModelBase;
|
8206
8226
|
get visibleTotalRow(): MatrixDropdownRowModelBase;
|
@@ -8214,7 +8234,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
8214
8234
|
* Set the row value.
|
8215
8235
|
*/
|
8216
8236
|
setRowValue(rowIndex: number, rowValue: any): any;
|
8217
|
-
protected generateRows():
|
8237
|
+
protected generateRows(): Array<MatrixDropdownRowModelBase>;
|
8218
8238
|
protected generateTotalRow(): MatrixDropdownRowModelBase;
|
8219
8239
|
protected createNewValue(nullOnEmpty?: boolean): any;
|
8220
8240
|
protected getRowValueCore(row: MatrixDropdownRowModelBase, questionValue: any, create?: boolean): any;
|
@@ -8229,8 +8249,8 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
8229
8249
|
protected getIsAnswered(): boolean;
|
8230
8250
|
hasErrors(fireCallback?: boolean, rec?: any): boolean;
|
8231
8251
|
protected getIsRunningValidators(): boolean;
|
8232
|
-
getAllErrors():
|
8233
|
-
protected getUniqueColumns():
|
8252
|
+
getAllErrors(): Array<SurveyError>;
|
8253
|
+
protected getUniqueColumns(): Array<MatrixDropdownColumn>;
|
8234
8254
|
protected getFirstInputElementId(): string;
|
8235
8255
|
protected getFirstErrorInputElementId(): string;
|
8236
8256
|
protected getFirstCellQuestion(onError: boolean): Question;
|
@@ -8247,7 +8267,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
|
|
8247
8267
|
onRowChanging(row: MatrixDropdownRowModelBase, columnName: string, rowValue: any): any;
|
8248
8268
|
onRowChanged(row: MatrixDropdownRowModelBase, columnName: string, newRowValue: any, isDeletingValue: boolean): void;
|
8249
8269
|
getRowIndex(row: MatrixDropdownRowModelBase): number;
|
8250
|
-
getElementsInDesign(includeHidden?: boolean):
|
8270
|
+
getElementsInDesign(includeHidden?: boolean): Array<IElement>;
|
8251
8271
|
hasDetailPanel(row: MatrixDropdownRowModelBase): boolean;
|
8252
8272
|
getIsDetailPanelShowing(row: MatrixDropdownRowModelBase): boolean;
|
8253
8273
|
setIsDetailPanelShowing(row: MatrixDropdownRowModelBase, val: boolean): void;
|
@@ -8295,14 +8315,14 @@ export declare class QuestionMatrixModel extends QuestionMatrixBaseModel<MatrixR
|
|
8295
8315
|
*/
|
8296
8316
|
get hideIfRowsEmpty(): boolean;
|
8297
8317
|
set hideIfRowsEmpty(val: boolean);
|
8298
|
-
getRows(): any
|
8299
|
-
getColumns(): any
|
8318
|
+
getRows(): Array<any>;
|
8319
|
+
getColumns(): Array<any>;
|
8300
8320
|
addColumn(value: any, text?: string): ItemValue;
|
8301
8321
|
getItemClass(row: any, column: any): string;
|
8302
8322
|
protected getQuizQuestionCount(): number;
|
8303
8323
|
protected getCorrectAnswerCount(): number;
|
8304
|
-
protected getVisibleRows():
|
8305
|
-
protected sortVisibleRows(array: any):
|
8324
|
+
protected getVisibleRows(): Array<MatrixRowModel>;
|
8325
|
+
protected sortVisibleRows(array: any): Array<MatrixRowModel>;
|
8306
8326
|
endLoadingFromJson(): void;
|
8307
8327
|
protected processRowsOnSet(newRows: any): any;
|
8308
8328
|
/*
|
@@ -8354,7 +8374,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
|
|
8354
8374
|
get inputType(): string;
|
8355
8375
|
set inputType(val: string);
|
8356
8376
|
runCondition(values: any, properties: any): void;
|
8357
|
-
getValidators():
|
8377
|
+
getValidators(): Array<SurveyValidator>;
|
8358
8378
|
isLayoutTypeSupported(layoutType: string): boolean;
|
8359
8379
|
/*
|
8360
8380
|
* The text input size
|
@@ -8606,7 +8626,7 @@ export declare class QuestionMatrixDropdownModel extends QuestionMatrixDropdownM
|
|
8606
8626
|
addConditionObjectsByContext(objects: any, context: any): void;
|
8607
8627
|
clearIncorrectValues(): void;
|
8608
8628
|
clearValueIfInvisible(): void;
|
8609
|
-
protected generateRows():
|
8629
|
+
protected generateRows(): Array<MatrixDropdownRowModel>;
|
8610
8630
|
protected createMatrixRow(item: ItemValue, value: any): MatrixDropdownRowModel;
|
8611
8631
|
protected getSearchableItemValueKeys(keys: any): void;
|
8612
8632
|
}
|
@@ -8758,8 +8778,8 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
|
|
8758
8778
|
supportGoNextPageAutomatic(): boolean;
|
8759
8779
|
get hasRowText(): boolean;
|
8760
8780
|
protected onCheckForErrors(errors: any, isOnValueChanged: boolean): void;
|
8761
|
-
protected getUniqueColumns():
|
8762
|
-
protected generateRows():
|
8781
|
+
protected getUniqueColumns(): Array<MatrixDropdownColumn>;
|
8782
|
+
protected generateRows(): Array<MatrixDynamicRowModel>;
|
8763
8783
|
protected createMatrixRow(value: any): MatrixDynamicRowModel;
|
8764
8784
|
protected onBeforeValueChanged(val: any): void;
|
8765
8785
|
protected createNewValue(): any;
|
@@ -8837,7 +8857,7 @@ export declare function propertyArray(options?: IArrayPropertyDecoratorOptions):
|
|
8837
8857
|
export declare function createPopupModalViewModel(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
|
8838
8858
|
export declare function unwrap<T>(value: any): T;
|
8839
8859
|
export declare function getSize(value: any): any;
|
8840
|
-
export declare function getCurrecyCodes(): any
|
8860
|
+
export declare function getCurrecyCodes(): Array<any>;
|
8841
8861
|
export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
|
8842
8862
|
export declare function attachKey2click(element: any, viewModel?: any, options?: any): any;
|
8843
8863
|
/*
|