survey-react 1.9.4 → 1.9.8

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/survey.react.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- * Type definition for Survey JavaScript library for React v1.9.4
3
- * Copyright (c) 2015-2021 Devsoft Baltic OÜ - https://surveyjs.io/
2
+ * Type definition for Survey JavaScript library for React v1.9.8
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;
@@ -205,6 +205,7 @@ export interface IConditionObject {
205
205
  name: string;
206
206
  text: string;
207
207
  question: Question;
208
+ context?: Question;
208
209
  }
209
210
  export interface IMatrixColumnOwner extends ILocalizableOwner {
210
211
  getRequiredText(): string;
@@ -307,8 +308,8 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
307
308
  questionTitlePattern: string;
308
309
  getUpdatedQuestionTitle(question: IQuestion, title: string): string;
309
310
  getUpdatedQuestionNo(question: IQuestion, no: string): string;
310
- getUpdatedElementTitleActions(element: ISurveyElement, titleActions: any): any;
311
- getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: MatrixDropdownRowModelBase, actions: any): any;
311
+ getUpdatedElementTitleActions(element: ISurveyElement, titleActions: any): Array<IAction>;
312
+ getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: MatrixDropdownRowModelBase, actions: any): Array<IAction>;
312
313
  questionStartIndex: string;
313
314
  questionTitleLocation: string;
314
315
  questionDescriptionLocation: string;
@@ -320,7 +321,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
320
321
  uploadFiles(question: IQuestion, name: string, files: any, uploadingCallback: any): any;
321
322
  downloadFile(name: string, content: string, callback: any): any;
322
323
  clearFiles(question: IQuestion, name: string, value: any, fileName: string, clearCallback: any): any;
323
- updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any): any;
324
+ updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any): Array<any>;
324
325
  loadedChoicesFromServer(question: IQuestion): void;
325
326
  updateQuestionCssClasses(question: IQuestion, cssClasses: any): any;
326
327
  updatePanelCssClasses(panel: IPanel, cssClasses: any): any;
@@ -465,7 +466,7 @@ export interface IFindElement {
465
466
  str: LocalizableString;
466
467
  }
467
468
  export interface IValidatorOwner {
468
- getValidators(): any;
469
+ getValidators(): Array<SurveyValidator>;
469
470
  validatedValue: any;
470
471
  getValidatorTitle(): string;
471
472
  getDataFilteredValues(): any;
@@ -476,8 +477,8 @@ export interface IMatrixData {
476
477
  getCorrectedRowValue(value: any): any;
477
478
  }
478
479
  export interface IMatrixCellsOwner extends ILocalizableOwner {
479
- getRows(): any;
480
- getColumns(): any;
480
+ getRows(): Array<any>;
481
+ getColumns(): Array<any>;
481
482
  }
482
483
  export interface IMultipleTextData extends ILocalizableOwner, IPanel {
483
484
  getSurvey(): ISurvey;
@@ -692,10 +693,10 @@ export declare class Base {
692
693
  protected getSearchableLocKeys(keys: any): void;
693
694
  protected getSearchableItemValueKeys(keys: any): void;
694
695
  protected AddLocStringToUsedLocales(locStr: LocalizableString, locales: any): void;
695
- protected createItemValues(name: string): any;
696
- protected createNewArrayCore(name: string): any;
696
+ protected createItemValues(name: string): Array<any>;
697
+ protected createNewArrayCore(name: string): Array<any>;
697
698
  protected ensureArray(name: string, onPush?: any, onRemove?: any): any;
698
- protected createNewArray(name: string, onPush?: any, onRemove?: any): any;
699
+ protected createNewArray(name: string, onPush?: any, onRemove?: any): Array<any>;
699
700
  protected getItemValueType(): string;
700
701
  protected setArray(name: string, src: any, dest: any, isItemValues: boolean, onPush: any): void;
701
702
  protected isTwoValueEquals(x: any, y: any, caseInSensitive?: boolean, trimString?: boolean): boolean;
@@ -706,13 +707,13 @@ export declare class Bindings {
706
707
  properties: any;
707
708
  values: any;
708
709
  getType(): string;
709
- getNames(): any;
710
- getProperties(): any;
710
+ getNames(): Array<any>;
711
+ getProperties(): Array<JsonObjectProperty>;
711
712
  setBinding(propertyName: string, valueName: string): void;
712
713
  clearBinding(propertyName: string): void;
713
714
  isEmpty(): boolean;
714
715
  getValueNameByPropertyName(propertyName: string): string;
715
- getPropertiesByValueName(valueName: string): any;
716
+ getPropertiesByValueName(valueName: string): Array<any>;
716
717
  getJson(): any;
717
718
  setJson(value: any): void;
718
719
  }
@@ -737,7 +738,6 @@ export declare class ButtonGroupItemModel {
737
738
  onChange(): void;
738
739
  }
739
740
  export declare class ComponentCollection {
740
- constructor();
741
741
  static Instance: ComponentCollection;
742
742
  customQuestionValues: any;
743
743
  onCreateComposite: any;
@@ -777,7 +777,6 @@ export declare class ComputedUpdater<T = any> {
777
777
  dispose(): any;
778
778
  }
779
779
  export declare class ConditionsParser {
780
- constructor();
781
780
  conditionError: ConditionsParserError;
782
781
  static parserCache: any;
783
782
  createCondition(text: string): Operand;
@@ -790,24 +789,21 @@ export declare class ConditionsParserError {
790
789
  code: string;
791
790
  }
792
791
  export declare class CssClassBuilder {
793
- constructor();
794
792
  classes: any;
795
793
  isEmpty(): boolean;
796
794
  append(value: string, condition?: boolean): CssClassBuilder;
797
795
  toString(): string;
798
796
  }
799
797
  export declare class CustomPropertiesCollection {
800
- constructor();
801
798
  static properties: IObject;
802
799
  static parentClasses: any;
803
800
  static addProperty(className: string, property: any): void;
804
801
  static removeProperty(className: string, propertyName: string): void;
805
802
  static addClass(className: string, parentClassName: string): void;
806
- static getProperties(className: string): any;
803
+ static getProperties(className: string): Array<any>;
807
804
  static createProperties(obj: any): void;
808
805
  }
809
806
  export declare class CustomWidgetCollection {
810
- constructor();
811
807
  static Instance: CustomWidgetCollection;
812
808
  widgetsValues: any;
813
809
  widgetsActivatedBy: any;
@@ -837,7 +833,6 @@ export declare class DefaultTitle extends React.Component<any, any> {
837
833
  componentDidMount(): void;
838
834
  }
839
835
  export declare class DefaultTitleModel {
840
- constructor();
841
836
  static getIconCss(cssClasses: any, isCollapsed: boolean): string;
842
837
  }
843
838
  export declare class Dependencies {
@@ -861,17 +856,15 @@ export declare class DragDropInfo {
861
856
  isEdge: boolean;
862
857
  }
863
858
  export declare class ElementFactory {
864
- constructor();
865
859
  static Instance: ElementFactory;
866
860
  creatorHash: any;
867
861
  registerElement(elementType: string, elementCreator: any): void;
868
862
  clear(): void;
869
863
  unregisterElement(elementType: string, removeFromSerializer?: boolean): void;
870
- getAllTypes(): any;
864
+ getAllTypes(): Array<any>;
871
865
  createElement(elementType: string, name: string): IElement;
872
866
  }
873
867
  export declare class Event<T, Options> {
874
- constructor();
875
868
  onCallbacksChanged: any;
876
869
  protected callbacks: any;
877
870
  get isEmpty(): boolean;
@@ -892,7 +885,7 @@ export declare class ExpressionRunnerBase {
892
885
  asyncFuncList: any;
893
886
  get expression(): string;
894
887
  set expression(val: string);
895
- getVariables(): any;
888
+ getVariables(): Array<any>;
896
889
  hasFunction(): boolean;
897
890
  get isAsync(): boolean;
898
891
  canRun(): boolean;
@@ -900,7 +893,6 @@ export declare class ExpressionRunnerBase {
900
893
  protected doOnComplete(res: any): void;
901
894
  }
902
895
  export declare class FunctionFactory {
903
- constructor();
904
896
  static Instance: FunctionFactory;
905
897
  functionHash: any;
906
898
  isAsyncHash: any;
@@ -909,11 +901,10 @@ export declare class FunctionFactory {
909
901
  hasFunction(name: string): boolean;
910
902
  isAsyncFunction(name: string): boolean;
911
903
  clear(): void;
912
- getAll(): any;
904
+ getAll(): Array<any>;
913
905
  run(name: string, params: any, properties?: any): any;
914
906
  }
915
907
  export declare class Helpers {
916
- constructor();
917
908
  /*
918
909
  * A static methods that returns true if a value undefined, null, empty string or empty array.
919
910
  */
@@ -921,7 +912,7 @@ export declare class Helpers {
921
912
  static isArrayContainsEqual(x: any, y: any): boolean;
922
913
  static isArraysEqual(x: any, y: any, ignoreOrder?: boolean, caseSensitive?: boolean, trimStrings?: boolean): boolean;
923
914
  static isTwoValueEquals(x: any, y: any, ignoreOrder?: boolean, caseSensitive?: boolean, trimStrings?: boolean): boolean;
924
- static randomizeArray<T>(array: any): any;
915
+ static randomizeArray<T>(array: any): Array<T>;
925
916
  static getUnbindValue(value: any): any;
926
917
  static createCopy(obj: any): any;
927
918
  static isConvertibleToNumber(value: any): boolean;
@@ -945,7 +936,6 @@ export declare class JsonError {
945
936
  * The metadata object. It contains object properties' runtime information and allows you to modify it.
946
937
  */
947
938
  export declare class JsonMetadata {
948
- constructor();
949
939
  classes: any;
950
940
  alternativeNames: any;
951
941
  childrenClasses: any;
@@ -957,19 +947,19 @@ export declare class JsonMetadata {
957
947
  removeClass(name: string): void;
958
948
  overrideClassCreatore(name: string, creator: any): void;
959
949
  overrideClassCreator(name: string, creator: any): void;
960
- getProperties(className: string): any;
961
- getPropertiesByObj(obj: any): any;
962
- getDynamicPropertiesByObj(obj: any, dynamicType?: string): any;
950
+ getProperties(className: string): Array<JsonObjectProperty>;
951
+ getPropertiesByObj(obj: any): Array<JsonObjectProperty>;
952
+ getDynamicPropertiesByObj(obj: any, dynamicType?: string): Array<JsonObjectProperty>;
963
953
  hasOriginalProperty(obj: Base, propName: string): boolean;
964
954
  getOriginalProperty(obj: Base, propName: string): JsonObjectProperty;
965
955
  getProperty(className: string, propertyName: string): JsonObjectProperty;
966
956
  findProperty(className: string, propertyName: string): JsonObjectProperty;
967
- findProperties(className: string, propertyNames: any): any;
968
- getAllPropertiesByName(propertyName: string): any;
969
- getAllClasses(): any;
957
+ findProperties(className: string, propertyNames: any): Array<JsonObjectProperty>;
958
+ getAllPropertiesByName(propertyName: string): Array<JsonObjectProperty>;
959
+ getAllClasses(): Array<any>;
970
960
  createClass(name: string, json?: any): any;
971
- getChildrenClasses(name: string, canBeCreated?: boolean): any;
972
- getRequiredProperties(name: string): any;
961
+ getChildrenClasses(name: string, canBeCreated?: boolean): Array<JsonMetadataClass>;
962
+ getRequiredProperties(name: string): Array<any>;
973
963
  addProperties(className: string, propertiesInfos: any): void;
974
964
  addProperty(className: string, propertyInfo: any): JsonObjectProperty;
975
965
  removeProperty(className: string, propertyName: string): boolean;
@@ -990,7 +980,6 @@ export declare class JsonMetadataClass {
990
980
  createProperty(propInfo: any): JsonObjectProperty;
991
981
  }
992
982
  export declare class JsonObject {
993
- constructor();
994
983
  static typePropertyName: string;
995
984
  static positionPropertyName: string;
996
985
  static metaDataValue: JsonMetadata;
@@ -1041,7 +1030,6 @@ export declare class MatrixDropdownCell {
1041
1030
  runCondition(values: any, properties: any): void;
1042
1031
  }
1043
1032
  export declare class Operand {
1044
- constructor();
1045
1033
  toString(func?: any): string;
1046
1034
  getType(): string;
1047
1035
  evaluate(processValue?: ProcessValue): any;
@@ -1054,13 +1042,11 @@ export declare class Operand {
1054
1042
  protected areOperatorsEquals(op1: Operand, op2: Operand): boolean;
1055
1043
  }
1056
1044
  export declare class OperandMaker {
1057
- constructor();
1058
1045
  static unaryFunctions: any;
1059
1046
  static binaryFunctions: any;
1060
1047
  static signs: any;
1061
1048
  }
1062
1049
  export declare class PopupUtils {
1063
- constructor();
1064
1050
  static calculatePosition(targetRect: any, height: number, width: number, verticalPosition: any, horizontalPosition: any, showPointer: boolean): INumberPosition;
1065
1051
  static updateVerticalDimensions(top: number, height: number, windowHeight: number): any;
1066
1052
  static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: any): any;
@@ -1098,7 +1084,6 @@ export declare class QuestionCustomWidget {
1098
1084
  get pdfRender(): any;
1099
1085
  }
1100
1086
  export declare class QuestionFactory {
1101
- constructor();
1102
1087
  static Instance: QuestionFactory;
1103
1088
  static get DefaultChoices(): any;
1104
1089
  static get DefaultColums(): any;
@@ -1108,7 +1093,7 @@ export declare class QuestionFactory {
1108
1093
  registerQuestion(questionType: string, questionCreator: any): void;
1109
1094
  unregisterElement(elementType: string): void;
1110
1095
  clear(): void;
1111
- getAllTypes(): any;
1096
+ getAllTypes(): Array<any>;
1112
1097
  createQuestion(questionType: string, name: string): Question;
1113
1098
  }
1114
1099
  export declare class QuestionMatrixDropdownRenderedCell {
@@ -1152,24 +1137,21 @@ export declare class QuestionMatrixDropdownRenderedCell {
1152
1137
  calculateFinalClassName(matrixCssClasses: any): string;
1153
1138
  }
1154
1139
  export declare class ReactElementFactory {
1155
- constructor();
1156
1140
  static Instance: ReactElementFactory;
1157
1141
  creatorHash: any;
1158
1142
  registerElement(elementType: string, elementCreator: any): void;
1159
- getAllTypes(): any;
1143
+ getAllTypes(): Array<any>;
1160
1144
  isElementRegistered(elementType: string): boolean;
1161
1145
  createElement(elementType: string, params: any): any;
1162
1146
  }
1163
1147
  export declare class ReactQuestionFactory {
1164
- constructor();
1165
1148
  static Instance: ReactQuestionFactory;
1166
1149
  creatorHash: any;
1167
1150
  registerQuestion(questionType: string, questionCreator: any): void;
1168
- getAllTypes(): any;
1151
+ getAllTypes(): Array<any>;
1169
1152
  createQuestion(questionType: string, params: any): any;
1170
1153
  }
1171
1154
  export declare class RendererFactory {
1172
- constructor();
1173
1155
  static Instance: RendererFactory;
1174
1156
  renderersHash: any;
1175
1157
  unregisterRenderer(questionType: string, rendererAs: string): void;
@@ -1227,12 +1209,12 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
1227
1209
  render(): any;
1228
1210
  protected wrapElement(element: any): any;
1229
1211
  protected get isRendering(): boolean;
1230
- protected getRenderedElement(): any;
1212
+ protected getRenderedElement(): Base;
1231
1213
  protected canRender(): boolean;
1232
1214
  protected renderElement(): any;
1233
1215
  protected get changedStatePropName(): string;
1234
- protected getStateElements(): any;
1235
- protected getStateElement(): any;
1216
+ protected getStateElements(): Array<Base>;
1217
+ protected getStateElement(): Base;
1236
1218
  protected get isDisplayMode(): boolean;
1237
1219
  protected renderLocString(locStr: any, style?: any): any;
1238
1220
  protected canUsePropInState(key: string): boolean;
@@ -1284,12 +1266,10 @@ export declare class SurveyProgressButtonsModel {
1284
1266
  clickListElement(index: number): void;
1285
1267
  }
1286
1268
  export declare class SurveyProgressModel {
1287
- constructor();
1288
1269
  static getProgressTextInBarCss(css: any): string;
1289
1270
  static getProgressTextUnderBarCss(css: any): string;
1290
1271
  }
1291
1272
  export declare class SurveyTimer {
1292
- constructor();
1293
1273
  static instanceValue: SurveyTimer;
1294
1274
  static get instance(): SurveyTimer;
1295
1275
  listenerCounter: number;
@@ -1315,6 +1295,17 @@ export declare class SvgIcon extends React.Component<any, any> {
1315
1295
  render(): any;
1316
1296
  componentDidMount(): void;
1317
1297
  }
1298
+ export declare class SvgIconData {
1299
+ }
1300
+ export declare class SvgIconRegistry {
1301
+ icons: SvgIconData;
1302
+ iconPrefix: string;
1303
+ registerIconFromSymbol(iconId: string, iconSymbolSvg: string): void;
1304
+ registerIconFromSvgViaElement(iconId: string, iconSvg: string, iconPrefix?: string): void;
1305
+ registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
1306
+ iconsRenderedHtml(): any;
1307
+ renderIcons(): void;
1308
+ }
1318
1309
  export declare class SyntaxError {
1319
1310
  constructor(message: string, expected: any, found: string, location: IFileRange);
1320
1311
  static buildMessage(expected: any, found: string): string;
@@ -1325,7 +1316,6 @@ export declare class SyntaxError {
1325
1316
  name: string;
1326
1317
  }
1327
1318
  export declare class TextPreProcessor {
1328
- constructor();
1329
1319
  _unObservableValues: any;
1330
1320
  onProcess: any;
1331
1321
  process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
@@ -1333,7 +1323,6 @@ export declare class TextPreProcessor {
1333
1323
  get hasAllValuesOnLastRun(): boolean;
1334
1324
  }
1335
1325
  export declare class TextPreProcessorItem {
1336
- constructor();
1337
1326
  start: number;
1338
1327
  end: number;
1339
1328
  }
@@ -1355,7 +1344,7 @@ export declare class TitleActions extends React.Component<any, any> {
1355
1344
  export declare class TitleContent extends React.Component<any, any> {
1356
1345
  constructor(props: any);
1357
1346
  render(): any;
1358
- protected renderTitleSpans(element: any, cssClasses: any): any;
1347
+ protected renderTitleSpans(element: any, cssClasses: any): Array<Element>;
1359
1348
  }
1360
1349
  export declare class TitleElement extends React.Component<any, any> {
1361
1350
  constructor(props: any);
@@ -1374,13 +1363,11 @@ export declare class ValidatorResult {
1374
1363
  error: SurveyError;
1375
1364
  }
1376
1365
  export declare class ValidatorRunner {
1377
- constructor();
1378
1366
  asyncValidators: any;
1379
1367
  onAsyncCompleted: any;
1380
- run(owner: IValidatorOwner): any;
1368
+ run(owner: IValidatorOwner): Array<SurveyError>;
1381
1369
  }
1382
1370
  export declare class XmlParser {
1383
- constructor();
1384
1371
  parser: any;
1385
1372
  assignValue(target: any, name: string, value: any): void;
1386
1373
  xml2Json(xmlNode: any, result: any): void;
@@ -1428,20 +1415,23 @@ export declare class Action extends Base implements IAction {
1428
1415
  mode: "popup" | "large" | "small";
1429
1416
  disableTabStop: boolean;
1430
1417
  disableShrink: boolean;
1418
+ cssClassesValue: any;
1419
+ get cssClasses(): any;
1431
1420
  get disabled(): boolean;
1432
1421
  get hasTitle(): boolean;
1433
1422
  get isVisible(): boolean;
1434
1423
  get canShrink(): boolean;
1435
1424
  getActionRootCss(): string;
1425
+ getActionBarItemTitleCss(): string;
1436
1426
  getActionBarItemCss(): string;
1437
- getActionBarItemActiveCss(): string;
1438
1427
  minDimension: number;
1439
1428
  maxDimension: number;
1440
1429
  }
1441
1430
  export declare class ActionContainer<T extends Action = Action> extends Base {
1442
1431
  constructor();
1443
1432
  actions: any;
1444
- protected getRenderedActions(): any;
1433
+ cssClassesValue: any;
1434
+ protected getRenderedActions(): Array<T>;
1445
1435
  updateCallback: any;
1446
1436
  containerCss: string;
1447
1437
  protected raiseUpdate(isResetInitialized: boolean): void;
@@ -1451,7 +1441,8 @@ export declare class ActionContainer<T extends Action = Action> extends Base {
1451
1441
  get hasActions(): boolean;
1452
1442
  get renderedActions(): any;
1453
1443
  get visibleActions(): any;
1454
- get css(): string;
1444
+ getRootCss(): string;
1445
+ get cssClasses(): any;
1455
1446
  setItems(items: any, sortByVisibleIndex?: boolean): void;
1456
1447
  initResponsivityManager(container: any): void;
1457
1448
  resetResponsivityManager(): void;
@@ -1467,7 +1458,7 @@ export declare class ArrayOperand extends Operand {
1467
1458
  values: any;
1468
1459
  getType(): string;
1469
1460
  toString(func?: any): string;
1470
- evaluate(processValue?: ProcessValue): any;
1461
+ evaluate(processValue?: ProcessValue): Array<any>;
1471
1462
  setVariables(variables: any): void;
1472
1463
  hasFunction(): boolean;
1473
1464
  hasAsyncFunction(): boolean;
@@ -1572,7 +1563,7 @@ export declare class ChoicesRestful extends Base {
1572
1563
  protected sendRequest(): void;
1573
1564
  getType(): string;
1574
1565
  get isEmpty(): boolean;
1575
- getCustomPropertiesNames(): any;
1566
+ getCustomPropertiesNames(): Array<any>;
1576
1567
  setData(json: any): void;
1577
1568
  getData(): any;
1578
1569
  /*
@@ -1651,7 +1642,7 @@ export declare class DragDropCore<T> extends Base {
1651
1642
  protected draggedElementShortcut: any;
1652
1643
  scrollIntervalId: number;
1653
1644
  protected allowDropHere: boolean;
1654
- startDrag(event: any, draggedElement: any, parentElement?: any, draggedElementNode?: any): void;
1645
+ startDrag(event: any, draggedElement: any, parentElement?: any, draggedElementNode?: any, preventSaveTargetNode?: boolean): void;
1655
1646
  timeoutID: any;
1656
1647
  startX: number;
1657
1648
  startY: number;
@@ -1687,7 +1678,6 @@ export declare class DragDropCore<T> extends Base {
1687
1678
  protected doClear(): void;
1688
1679
  }
1689
1680
  export declare class EventBase<T> extends Event<any, any> {
1690
- constructor();
1691
1681
  }
1692
1682
  export declare class ExceedSizeError extends SurveyError {
1693
1683
  constructor(maxSize: number, errorOwner?: ISurveyErrorOwner);
@@ -1747,9 +1737,12 @@ export declare class ItemValue extends Base implements ILocalizableOwner, IShort
1747
1737
  getProcessedText(text: string): string;
1748
1738
  static get Separator(): string;
1749
1739
  static set Separator(val: string);
1750
- static createArray(locOwner: ILocalizableOwner): any;
1740
+ static createArray(locOwner: ILocalizableOwner): Array<ItemValue>;
1751
1741
  static setupArray(items: any, locOwner: ILocalizableOwner): void;
1752
- static setData(items: any, values: any): void;
1742
+ /*
1743
+ * Resets the input array and fills it with values from the values array
1744
+ */
1745
+ static setData(items: any, values: any, type?: string): void;
1753
1746
  static getData(items: any): any;
1754
1747
  static getItemByValue(items: any, val: any): ItemValue;
1755
1748
  static getTextOrHtmlByValue(items: any, val: any): string;
@@ -1873,7 +1866,7 @@ export declare class JsonObjectProperty implements IObject {
1873
1866
  */
1874
1867
  get choices(): any;
1875
1868
  get hasChoices(): boolean;
1876
- getChoices(obj: any, choicesCallback?: any): any;
1869
+ getChoices(obj: any, choicesCallback?: any): Array<any>;
1877
1870
  setChoices(value: any, valueFunc?: any): void;
1878
1871
  getBaseValue(): string;
1879
1872
  setBaseValue(val: any): void;
@@ -1888,7 +1881,7 @@ export declare class JsonObjectProperty implements IObject {
1888
1881
  set dataList(val: any);
1889
1882
  mergeWith(prop: JsonObjectProperty): void;
1890
1883
  addDependedProperty(name: string): void;
1891
- getDependedProperties(): any;
1884
+ getDependedProperties(): Array<any>;
1892
1885
  schemaType(): string;
1893
1886
  }
1894
1887
  export declare class JsonRequiredPropertyError extends JsonError {
@@ -1912,7 +1905,7 @@ export declare class List extends SurveyElementBase<IListProps, any> {
1912
1905
  get model(): any;
1913
1906
  handleKeydown: any;
1914
1907
  getStateElement(): any;
1915
- render(): any;
1908
+ renderElement(): any;
1916
1909
  renderItems(): any;
1917
1910
  searchElementContent(): any;
1918
1911
  }
@@ -1965,7 +1958,7 @@ export declare class LocalizableString implements ILocalizableString {
1965
1958
  getLocaleText(loc: string): string;
1966
1959
  setLocaleText(loc: string, value: string): void;
1967
1960
  hasNonDefaultText(): boolean;
1968
- getLocales(): any;
1961
+ getLocales(): Array<any>;
1969
1962
  getJson(): any;
1970
1963
  setJson(value: any): void;
1971
1964
  get renderAs(): string;
@@ -1993,17 +1986,17 @@ export declare class LocalizableStrings implements ILocalizableString {
1993
1986
  set text(val: string);
1994
1987
  getLocaleText(loc: string): string;
1995
1988
  setLocaleText(loc: string, newValue: string): any;
1996
- getValue(loc: string): any;
1989
+ getValue(loc: string): Array<any>;
1997
1990
  setValue(loc: string, val: any): void;
1998
1991
  hasValue(loc?: string): boolean;
1999
1992
  get isEmpty(): boolean;
2000
- getLocales(): any;
1993
+ getLocales(): Array<any>;
2001
1994
  getJson(): any;
2002
1995
  setJson(value: any): void;
2003
1996
  }
2004
1997
  export declare class MatrixDropdownColumn extends Base implements ILocalizableOwner, IWrapperObject {
2005
1998
  constructor(name: string, title?: string);
2006
- static getColumnTypes(): any;
1999
+ static getColumnTypes(): Array<any>;
2007
2000
  templateQuestionValue: Question;
2008
2001
  colOwnerValue: IMatrixColumnOwner;
2009
2002
  indexValue: number;
@@ -2145,7 +2138,7 @@ export declare class MatrixDropdownRowModelBase implements ISurveyData, ISurveyI
2145
2138
  getQuestionByColumnName(columnName: string): Question;
2146
2139
  get questions(): any;
2147
2140
  getQuestionByName(name: string): Question;
2148
- getQuestionsByName(name: string): any;
2141
+ getQuestionsByName(name: string): Array<Question>;
2149
2142
  protected getSharedQuestionByName(columnName: string): Question;
2150
2143
  clearIncorrectValues(val: any): void;
2151
2144
  getLocale(): string;
@@ -2275,7 +2268,7 @@ export declare class MultipleTextItemModel extends Base implements IValidatorOwn
2275
2268
  */
2276
2269
  get validators(): any;
2277
2270
  set validators(val: any);
2278
- getValidators(): any;
2271
+ getValidators(): Array<SurveyValidator>;
2279
2272
  /*
2280
2273
  * The item value.
2281
2274
  */
@@ -2543,7 +2536,9 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
2543
2536
  static get cssType(): string;
2544
2537
  static set cssType(val: string);
2545
2538
  protected survey: ReactSurveyModel;
2546
- protected getStateElement(): any;
2539
+ rootNodeId: string;
2540
+ rootNodeClassName: string;
2541
+ protected getStateElement(): Base;
2547
2542
  shouldComponentUpdate(nextProps: any, nextState: any): boolean;
2548
2543
  componentDidUpdate(prevProps: any, prevState: any): void;
2549
2544
  componentDidMount(): void;
@@ -2574,7 +2569,7 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
2574
2569
  export declare class SurveyAction extends SurveyElementBase<IActionBarItemProps, any> {
2575
2570
  constructor(props: any);
2576
2571
  get item(): any;
2577
- protected getStateElement(): any;
2572
+ protected getStateElement(): Base;
2578
2573
  renderElement(): any;
2579
2574
  }
2580
2575
  export declare class SurveyActionBar extends SurveyElementBase<IActionBarProps, any> {
@@ -2583,14 +2578,14 @@ export declare class SurveyActionBar extends SurveyElementBase<IActionBarProps,
2583
2578
  get model(): any;
2584
2579
  componentDidMount(): void;
2585
2580
  componentWillUnmount(): void;
2586
- protected getStateElement(): any;
2581
+ protected getStateElement(): Base;
2587
2582
  renderElement(): any;
2588
2583
  renderItems(): any;
2589
2584
  }
2590
2585
  export declare class SurveyActionBarItem extends SurveyElementBase<IActionBarItemProps, any> {
2591
2586
  constructor(props: any);
2592
2587
  get item(): any;
2593
- protected getStateElement(): any;
2588
+ protected getStateElement(): Base;
2594
2589
  renderElement(): any;
2595
2590
  renderText(): any;
2596
2591
  renderButtonContent(): any;
@@ -2626,8 +2621,10 @@ export declare class SurveyElementCore extends Base implements ILocalizableOwner
2626
2621
  * Question, Panel and Page description. It renders under element title by using smaller font. Unlike the question title, description can be empty.
2627
2622
  * Please note, this property is hidden for questions without input, for example html question.
2628
2623
  */
2624
+ hasDescription: boolean;
2629
2625
  get description(): string;
2630
2626
  set description(val: string);
2627
+ updateDescriptionVisibility(newDescription: any): void;
2631
2628
  get locDescription(): LocalizableString;
2632
2629
  get titleTagName(): string;
2633
2630
  protected getDefaultTitleTagName(): string;
@@ -2665,21 +2662,21 @@ export declare class SurveyNavigation extends SurveyNavigationBase {
2665
2662
  export declare class SurveyPanelBase extends SurveyElementBase<any, any> {
2666
2663
  constructor(props: any);
2667
2664
  protected rootRef: any;
2668
- protected getStateElement(): any;
2665
+ protected getStateElement(): Base;
2669
2666
  protected canUsePropInState(key: string): boolean;
2670
2667
  protected get survey(): any;
2671
2668
  protected get creator(): ISurveyCreator;
2672
2669
  protected get css(): any;
2673
2670
  get panelBase(): any;
2674
- protected getPanelBase(): any;
2675
- protected getSurvey(): any;
2671
+ protected getPanelBase(): PanelModelBase;
2672
+ protected getSurvey(): SurveyModel;
2676
2673
  protected getCss(): any;
2677
2674
  componentDidMount(): void;
2678
2675
  componentWillUnmount(): void;
2679
2676
  componentDidUpdate(prevProps: any, prevState: any): void;
2680
2677
  protected canRender(): boolean;
2681
2678
  renderedRowsCache: any;
2682
- protected renderRows(css: any): any;
2679
+ protected renderRows(css: any): Array<Element>;
2683
2680
  protected createRow(row: any, css: any): any;
2684
2681
  }
2685
2682
  export declare class SurveyProgress extends SurveyNavigationBase {
@@ -2695,7 +2692,7 @@ export declare class SurveyProgressButtons extends SurveyNavigationBase {
2695
2692
  updateScroller: any;
2696
2693
  listContainerRef: any;
2697
2694
  render(): any;
2698
- protected getListElements(): any;
2695
+ protected getListElements(): Array<Element>;
2699
2696
  protected renderListElement(page: any, index: number): any;
2700
2697
  protected isListElementClickable(index: number): boolean;
2701
2698
  protected getListElementCss(index: number): string;
@@ -2710,7 +2707,7 @@ export declare class SurveyQuestion extends SurveyElementBase<any, any> {
2710
2707
  isNeedFocus: boolean;
2711
2708
  static renderQuestionBody(creator: ISurveyCreator, question: any): any;
2712
2709
  rootRef: any;
2713
- protected getStateElement(): any;
2710
+ protected getStateElement(): Base;
2714
2711
  protected get question(): any;
2715
2712
  componentDidMount(): void;
2716
2713
  componentWillUnmount(): void;
@@ -2732,7 +2729,7 @@ export declare class SurveyQuestionElementBase extends SurveyElementBase<any, an
2732
2729
  componentWillUnmount(): void;
2733
2730
  protected updateDomElement(): void;
2734
2731
  protected get questionBase(): any;
2735
- protected getRenderedElement(): any;
2732
+ protected getRenderedElement(): Base;
2736
2733
  protected get creator(): ISurveyCreator;
2737
2734
  protected canRender(): boolean;
2738
2735
  shouldComponentUpdate(): boolean;
@@ -2742,7 +2739,7 @@ export declare class SurveyQuestionElementBase extends SurveyElementBase<any, an
2742
2739
  export declare class SurveyRow extends SurveyElementBase<any, any> {
2743
2740
  constructor(props: any);
2744
2741
  rootRef: any;
2745
- protected getStateElement(): any;
2742
+ protected getStateElement(): Base;
2746
2743
  protected get css(): any;
2747
2744
  protected canRender(): boolean;
2748
2745
  protected renderElementContent(): any;
@@ -2908,7 +2905,7 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
2908
2905
  protected invisibleItemsListModel: ListModel;
2909
2906
  protected onSet(): void;
2910
2907
  protected onPush(item: T): void;
2911
- protected getRenderedActions(): any;
2908
+ protected getRenderedActions(): Array<T>;
2912
2909
  fit(dimension: number, dotsItemSize: number): void;
2913
2910
  initResponsivityManager(container: any): void;
2914
2911
  resetResponsivityManager(): void;
@@ -3164,7 +3161,7 @@ export declare class QuestionPanelDynamicItemTextProcessor extends QuestionTextP
3164
3161
  }
3165
3162
  export declare class ReactWindowModel extends SurveyWindowModel {
3166
3163
  constructor(jsonObj?: any, model?: ReactSurveyModel);
3167
- protected createSurvey(jsonObj: any): any;
3164
+ protected createSurvey(jsonObj: any): SurveyModel;
3168
3165
  get renderCallback(): any;
3169
3166
  set renderCallback(val: any);
3170
3167
  }
@@ -3206,7 +3203,6 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3206
3203
  surveyValue: ISurvey;
3207
3204
  textProcessorValue: ITextProcessor;
3208
3205
  selectedElementInDesignValue: SurveyElement;
3209
- expandAction: Action;
3210
3206
  dragTypeOverMe: DragTypeOverMeEnum;
3211
3207
  isDragMe: boolean;
3212
3208
  readOnlyChangedCallback: any;
@@ -3249,7 +3245,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3249
3245
  getTitleToolbar(): AdaptiveActionContainer;
3250
3246
  get titleActions(): any;
3251
3247
  isTitleActionRequested: boolean;
3252
- getTitleActions(): any;
3248
+ getTitleActions(): Array<any>;
3253
3249
  get hasTitleActions(): boolean;
3254
3250
  get hasTitleEvents(): boolean;
3255
3251
  getTitleComponentName(): string;
@@ -3257,6 +3253,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3257
3253
  get titleAriaExpanded(): boolean;
3258
3254
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
3259
3255
  protected get surveyImpl(): ISurveyImpl;
3256
+ __setData(data: ISurveyData): void;
3260
3257
  get data(): ISurveyData;
3261
3258
  /*
3262
3259
  * Returns the survey object.
@@ -3315,7 +3312,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3315
3312
  get containsErrors(): boolean;
3316
3313
  updateContainsErrors(): void;
3317
3314
  protected getContainsErrors(): boolean;
3318
- getElementsInDesign(includeHidden?: boolean): any;
3315
+ getElementsInDesign(includeHidden?: boolean): Array<IElement>;
3319
3316
  get selectedElementInDesign(): SurveyElement;
3320
3317
  set selectedElementInDesign(val: SurveyElement);
3321
3318
  updateCustomWidgets(): void;
@@ -4078,6 +4075,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4078
4075
  get cssNavigationPrev(): string;
4079
4076
  get cssNavigationStart(): string;
4080
4077
  get cssNavigationNext(): string;
4078
+ get bodyCss(): string;
4081
4079
  get completedCss(): string;
4082
4080
  lazyRenderingValue: boolean;
4083
4081
  /*
@@ -4294,7 +4292,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4294
4292
  /*
4295
4293
  * Returns an array of locales that are used in the survey's translation.
4296
4294
  */
4297
- getUsedLocales(): any;
4295
+ getUsedLocales(): Array<any>;
4298
4296
  localeChanged(): void;
4299
4297
  getLocale(): string;
4300
4298
  locStrsChanged(): void;
@@ -4432,7 +4430,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4432
4430
  */
4433
4431
  get questionTitlePattern(): string;
4434
4432
  set questionTitlePattern(val: string);
4435
- getQuestionTitlePatternOptions(): any;
4433
+ getQuestionTitlePatternOptions(): Array<any>;
4436
4434
  /*
4437
4435
  * Gets or sets a question title template. Obsolete, please use questionTitlePattern
4438
4436
  */
@@ -4893,7 +4891,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4893
4891
  dynamicPanelItemValueChanged(question: IQuestion, options: any): void;
4894
4892
  dragAndDropAllow(options: any): boolean;
4895
4893
  elementContentVisibilityChanged(element: ISurveyElement): void;
4896
- getUpdatedElementTitleActions(element: ISurveyElement, titleActions: any): any;
4894
+ getUpdatedElementTitleActions(element: ISurveyElement, titleActions: any): Array<IAction>;
4897
4895
  getUpdatedMatrixRowActions(question: IQuestion, row: any, actions: any): any;
4898
4896
  scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string): any;
4899
4897
  /*
@@ -4908,7 +4906,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4908
4906
  * Clears files from server.
4909
4907
  */
4910
4908
  clearFiles(question: IQuestion, name: string, value: any, fileName: string, callback: any): void;
4911
- updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any): any;
4909
+ updateChoicesFromServer(question: IQuestion, choices: any, serverResult: any): Array<ItemValue>;
4912
4910
  loadedChoicesFromServer(question: IQuestion): void;
4913
4911
  protected createSurveyService(): dxSurveyService;
4914
4912
  protected uploadFilesCore(name: string, files: any, uploadingCallback: any): void;
@@ -4936,12 +4934,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4936
4934
  /*
4937
4935
  * Returns all questions by their valueName. name property is used if valueName property is empty.
4938
4936
  */
4939
- getQuestionsByValueName(valueName: string, caseInsensitive?: boolean): any;
4937
+ getQuestionsByValueName(valueName: string, caseInsensitive?: boolean): Array<Question>;
4940
4938
  getCalculatedValueByName(name: string): CalculatedValue;
4941
4939
  /*
4942
4940
  * Gets a list of questions by their names.
4943
4941
  */
4944
- getQuestionsByNames(names: any, caseInsensitive?: boolean): any;
4942
+ getQuestionsByNames(names: any, caseInsensitive?: boolean): Array<IQuestion>;
4945
4943
  /*
4946
4944
  * Returns a page on which an element (question or panel) is placed.
4947
4945
  */
@@ -4957,15 +4955,15 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4957
4955
  /*
4958
4956
  * Returns a list of pages by their names.
4959
4957
  */
4960
- getPagesByNames(names: any): any;
4958
+ getPagesByNames(names: any): Array<PageModel>;
4961
4959
  /*
4962
4960
  * Returns a list of all questions in a survey.
4963
4961
  */
4964
- getAllQuestions(visibleOnly?: boolean, includingDesignTime?: boolean): any;
4962
+ getAllQuestions(visibleOnly?: boolean, includingDesignTime?: boolean): Array<Question>;
4965
4963
  /*
4966
4964
  * Returns quiz questions. All visible questions that has input(s) widgets.
4967
4965
  */
4968
- getQuizQuestions(): any;
4966
+ getQuizQuestions(): Array<IQuestion>;
4969
4967
  /*
4970
4968
  * Returns a panel by its name.
4971
4969
  */
@@ -4973,7 +4971,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4973
4971
  /*
4974
4972
  * Returns a list of all survey's panels.
4975
4973
  */
4976
- getAllPanels(visibleOnly?: boolean, includingDesignTime?: boolean): any;
4974
+ getAllPanels(visibleOnly?: boolean, includingDesignTime?: boolean): Array<IPanel>;
4977
4975
  /*
4978
4976
  * Creates and returns a new page, but do not add it into the survey.
4979
4977
  * You can use addPage(page) function to add it into survey later.
@@ -4982,6 +4980,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4982
4980
  protected questionOnValueChanging(valueName: string, newValue: any): any;
4983
4981
  protected updateQuestionValue(valueName: string, newValue: any): void;
4984
4982
  protected notifyQuestionOnValueChanged(valueName: string, newValue: any): void;
4983
+ isRunningElementsBindings: boolean;
4985
4984
  isTriggerIsRunning: boolean;
4986
4985
  triggerValues: any;
4987
4986
  triggerKeys: any;
@@ -5024,7 +5023,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
5024
5023
  /*
5025
5024
  * Returns all variables in the survey. Use setVariable function to create a new variable.
5026
5025
  */
5027
- getVariableNames(): any;
5026
+ getVariableNames(): Array<any>;
5028
5027
  protected getUnbindValue(value: any): any;
5029
5028
  /*
5030
5029
  * Returns a question value (answer) by a question's name.
@@ -5159,7 +5158,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
5159
5158
  getSurveyData(): ISurveyData;
5160
5159
  getSurvey(): ISurvey;
5161
5160
  getTextProcessor(): ITextProcessor;
5162
- getObjects(pages: any, questions: any): any;
5161
+ getObjects(pages: any, questions: any): Array<any>;
5163
5162
  setTriggerValue(name: string, value: any, isVariable: boolean): void;
5164
5163
  copyTriggerValue(name: string, fromName: string): void;
5165
5164
  isFocusingQuestion: boolean;
@@ -5175,7 +5174,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
5175
5174
  getItemValueWrapperComponentName(item: ItemValue, question: QuestionSelectBase): string;
5176
5175
  getItemValueWrapperComponentData(item: ItemValue, question: QuestionSelectBase): any;
5177
5176
  getMatrixCellTemplateData(cell: any): any;
5178
- searchText(text: string): any;
5177
+ searchText(text: string): Array<IFindElement>;
5179
5178
  skeletonComponentName: string;
5180
5179
  getSkeletonComponentName(element: ISurveyElement): string;
5181
5180
  /*
@@ -5185,7 +5184,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
5185
5184
  }
5186
5185
  export declare class SurveyPage extends SurveyPanelBase {
5187
5186
  constructor(props: any);
5188
- protected getPanelBase(): any;
5187
+ protected getPanelBase(): PanelModelBase;
5189
5188
  get page(): any;
5190
5189
  protected renderElement(): any;
5191
5190
  protected renderTitle(): any;
@@ -5205,10 +5204,10 @@ export declare class SurveyPanel extends SurveyPanelBase {
5205
5204
  }
5206
5205
  export declare class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
5207
5206
  constructor(props: any);
5208
- protected getStateElement(): any;
5207
+ protected getStateElement(): Base;
5209
5208
  protected get question(): any;
5210
5209
  protected get creator(): ISurveyCreator;
5211
- protected getQuestion(): any;
5210
+ protected getQuestion(): Question;
5212
5211
  protected get itemCss(): string;
5213
5212
  componentDidMount(): void;
5214
5213
  componentDidUpdate(prevProps: any, prevState: any): void;
@@ -5223,7 +5222,7 @@ export declare class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
5223
5222
  export declare class SurveyQuestionBoolean extends SurveyQuestionElementBase {
5224
5223
  constructor(props: any);
5225
5224
  protected checkRef: any;
5226
- protected getStateElement(): any;
5225
+ protected getStateElement(): Base;
5227
5226
  protected get question(): any;
5228
5227
  handleOnChange(event: any): void;
5229
5228
  handleOnClick(event: any): void;
@@ -5244,7 +5243,7 @@ export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
5244
5243
  protected get question(): QuestionCheckboxModel;
5245
5244
  protected renderElement(): any;
5246
5245
  protected getColumns(cssClasses: any): any;
5247
- protected getItems(cssClasses: any): any;
5246
+ protected getItems(cssClasses: any): Array<any>;
5248
5247
  protected get textStyle(): any;
5249
5248
  protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): any;
5250
5249
  }
@@ -5311,7 +5310,7 @@ export declare class SurveyQuestionImagePicker extends SurveyQuestionElementBase
5311
5310
  protected get question(): any;
5312
5311
  handleOnChange(event: any): void;
5313
5312
  protected renderElement(): any;
5314
- protected getItems(cssClasses: any): any;
5313
+ protected getItems(cssClasses: any): Array<any>;
5315
5314
  protected get textStyle(): any;
5316
5315
  protected renderItem(key: string, item: any, cssClasses: any): any;
5317
5316
  }
@@ -5375,7 +5374,7 @@ export declare class SurveyQuestionMultipleText extends SurveyQuestionElementBas
5375
5374
  }
5376
5375
  export declare class SurveyQuestionOptionItem extends ReactSurveyElement {
5377
5376
  constructor(props: any);
5378
- protected getStateElement(): any;
5377
+ protected getStateElement(): Base;
5379
5378
  protected canRender(): boolean;
5380
5379
  protected renderElement(): any;
5381
5380
  }
@@ -5399,7 +5398,7 @@ export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBas
5399
5398
  }
5400
5399
  export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
5401
5400
  constructor(props: any);
5402
- protected getStateElement(): any;
5401
+ protected getStateElement(): Base;
5403
5402
  protected get question(): any;
5404
5403
  protected get item(): any;
5405
5404
  protected get textStyle(): any;
@@ -5416,14 +5415,14 @@ export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase
5416
5415
  protected get question(): any;
5417
5416
  protected renderElement(): any;
5418
5417
  protected getColumns(cssClasses: any): any;
5419
- protected getItems(cssClasses: any): any;
5418
+ protected getItems(cssClasses: any): Array<any>;
5420
5419
  protected get textStyle(): any;
5421
5420
  }
5422
5421
  export declare class SurveyQuestionRanking extends SurveyQuestionElementBase {
5423
5422
  constructor(props: any);
5424
5423
  protected get question(): any;
5425
5424
  protected renderElement(): any;
5426
- protected getItems(): any;
5425
+ protected getItems(): Array<any>;
5427
5426
  protected renderItem(item: ItemValue, i: number, handleKeydown: any, handlePointerDown: any, cssClasses: any, itemClass: string, question: any): any;
5428
5427
  }
5429
5428
  export declare class SurveyQuestionRankingItem extends ReactSurveyElement {
@@ -5473,7 +5472,7 @@ export declare class SurveyTrigger extends Trigger {
5473
5472
  export declare class SurveyWindow extends Survey {
5474
5473
  constructor(props: any);
5475
5474
  protected window: ReactWindowModel;
5476
- protected getStateElements(): any;
5475
+ protected getStateElements(): Array<Base>;
5477
5476
  handleOnExpanded(event: any): void;
5478
5477
  protected canRender(): boolean;
5479
5478
  protected renderElement(): any;
@@ -5567,7 +5566,6 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
5567
5566
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
5568
5567
  endLoadingFromJson(): void;
5569
5568
  get hasTitle(): boolean;
5570
- get hasDescription(): boolean;
5571
5569
  protected canShowTitle(): boolean;
5572
5570
  get _showDescription(): boolean;
5573
5571
  localeChanged(): void;
@@ -5657,7 +5655,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
5657
5655
  * 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
5656
  */
5659
5657
  get elements(): any;
5660
- getElementsInDesign(includeHidden?: boolean): any;
5658
+ getElementsInDesign(includeHidden?: boolean): Array<IElement>;
5661
5659
  /*
5662
5660
  * Returns true if the current element belongs to the Panel/Page. It looks in nested Panels as well.
5663
5661
  */
@@ -5822,9 +5820,11 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
5822
5820
  focusCallback: any;
5823
5821
  surveyLoadCallback: any;
5824
5822
  displayValueCallback: any;
5825
- textPreProcessor: TextPreProcessor;
5826
5823
  conditionEnabelRunner: ConditionRunner;
5827
5824
  conditionRequiredRunner: ConditionRunner;
5825
+ defaultValueRunner: ExpressionRunner;
5826
+ isChangingViaDefaultValue: boolean;
5827
+ isValueChangedDirectly: boolean;
5828
5828
  valueChangedCallback: any;
5829
5829
  commentChangedCallback: any;
5830
5830
  validateValueCallback: any;
@@ -6008,7 +6008,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6008
6008
  /*
6009
6009
  * Returns a copy of question errors survey. For some questions like matrix and panel dynamic it includes the errors of nested questions.
6010
6010
  */
6011
- getAllErrors(): any;
6011
+ getAllErrors(): Array<SurveyError>;
6012
6012
  getErrorByType(errorType: string): SurveyError;
6013
6013
  /*
6014
6014
  * The link to the custom widget.
@@ -6152,7 +6152,19 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6152
6152
  * Return true if there is a parent (page or panel) and it is visible
6153
6153
  */
6154
6154
  get isParentVisible(): boolean;
6155
- clearValueIfInvisible(): void;
6155
+ clearValueIfInvisible(reason?: string): void;
6156
+ /*
6157
+ * Gets or sets a value that specifies how invisible question clears the value. By default the behavior is define by Survey "clearInvisibleValues" property.
6158
+ *
6159
+ * The following options are available:
6160
+ *
6161
+ * - `default` (default) - Survey "clearInvisibleValues" property defines the behavior.
6162
+ * - `none` - do not clear invisible value.
6163
+ * - `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.
6164
+ * - `onComplete` - clear invisible question value on survey complete.
6165
+ */
6166
+ get clearIfInvisible(): string;
6167
+ set clearIfInvisible(val: string);
6156
6168
  get displayValue(): any;
6157
6169
  /*
6158
6170
  * Return the question value as a display text. For example, for dropdown, it would return the item text instead of item value.
@@ -6161,11 +6173,29 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6161
6173
  protected getDisplayValueCore(keyAsText: boolean, value: any): any;
6162
6174
  protected getDisplayValueEmpty(): string;
6163
6175
  /*
6164
- * Set the default value to the question. It will be assign to the question on loading the survey from JSON or adding a question to the survey or on setting this property of the value is empty.
6165
- * Please note, this property is hidden for question without input, for example html question.
6176
+ * A default value for the question. Ignored for question types that cannot have a [value](https://surveyjs.io/Documentation/Library?id=Question#value) (for example, HTML).
6177
+ *
6178
+ * The default value is used as a question value in the following cases:
6179
+ *
6180
+ * - While the survey is being loaded from JSON.
6181
+ * - The question is just added to the survey and does not yet have an answer.
6182
+ * - The respondent left the answer empty.
6166
6183
  */
6167
6184
  get defaultValue(): any;
6168
6185
  set defaultValue(val: any);
6186
+ /*
6187
+ * An expression used to calculate the [defaultValue](https://surveyjs.io/Documentation/Library?id=Question#defaultValue).
6188
+ *
6189
+ * This expression applies until the question [value](https://surveyjs.io/Documentation/Library?id=Question#value) is specified by an end user or programmatically.
6190
+ *
6191
+ * An expression can reference other questions as follows:
6192
+ *
6193
+ * - `{other_question_name}`
6194
+ * - `{panel.other_question_name}` (to access questions inside the same dynamic panel)
6195
+ * - `{row.other_question_name}` (to access questions inside the same dynamic matrix or multi-column dropdown)
6196
+ *
6197
+ * An expression can also include built-in and custom functions for advanced calculations. For example, if the `defaultValue` should be today's date, set the `defaultValueExpression` to `"today()"`, and the corresponding built-in function will be executed each time the survey is loaded. Refer to the following help topic for more information: [Use Functions in Expressions](https://surveyjs.io/Documentation/Library#conditions-functions).
6198
+ */
6169
6199
  get defaultValueExpression(): any;
6170
6200
  set defaultValueExpression(val: any);
6171
6201
  get resizeStyle(): "none" | "both";
@@ -6191,6 +6221,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6191
6221
  protected getCorrectAnswerCount(): number;
6192
6222
  isAnswerCorrect(): boolean;
6193
6223
  updateValueWithDefaults(): void;
6224
+ protected get isClearValueOnHidden(): boolean;
6194
6225
  getQuestionFromArray(name: string, index: number): IQuestion;
6195
6226
  getDefaultValue(): any;
6196
6227
  protected isDefaultValueEmpty(): boolean;
@@ -6218,8 +6249,8 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6218
6249
  */
6219
6250
  get validators(): any;
6220
6251
  set validators(val: any);
6221
- getValidators(): any;
6222
- getSupportedValidators(): any;
6252
+ getValidators(): Array<SurveyValidator>;
6253
+ getSupportedValidators(): Array<any>;
6223
6254
  addConditionObjectsByContext(objects: any, context: any): void;
6224
6255
  getConditionJson(operator?: string, path?: string): any;
6225
6256
  /*
@@ -6251,7 +6282,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6251
6282
  onCompletedAsyncValidators: any;
6252
6283
  get isRunningValidators(): boolean;
6253
6284
  protected getIsRunningValidators(): boolean;
6254
- protected runValidators(): any;
6285
+ protected runValidators(): Array<SurveyError>;
6255
6286
  protected raiseOnCompletedAsyncValidators(): void;
6256
6287
  isValueChangedInSurvey: boolean;
6257
6288
  protected allowNotifyValueChanged: boolean;
@@ -6319,12 +6350,12 @@ export declare class SurveyFlowPanel extends SurveyPanel {
6319
6350
  get flowPanel(): any;
6320
6351
  componentDidMount(): void;
6321
6352
  componentWillUnmount(): void;
6322
- protected getQuestion(name: string): any;
6353
+ protected getQuestion(name: string): Question;
6323
6354
  protected renderQuestion(question: any): string;
6324
- protected renderRows(): any;
6355
+ protected renderRows(): Array<Element>;
6325
6356
  renderedIndex: number;
6326
6357
  protected renderHtml(): any;
6327
- protected renderNodes(domNodes: any): any;
6358
+ protected renderNodes(domNodes: any): Array<Element>;
6328
6359
  protected renderParentNode(node: any): any;
6329
6360
  protected renderNode(node: any): any;
6330
6361
  protected renderContent(style: any, rows: any): any;
@@ -6357,7 +6388,7 @@ export declare class SurveyQuestionComposite extends SurveyQuestionUncontrolledE
6357
6388
  }
6358
6389
  export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElement<QuestionCustomModel> {
6359
6390
  constructor(props: any);
6360
- protected getStateElements(): any;
6391
+ protected getStateElements(): Array<Base>;
6361
6392
  protected renderElement(): any;
6362
6393
  }
6363
6394
  export declare class SurveyQuestionDropdown extends SurveyQuestionUncontrolledElement<QuestionDropdownModel> {
@@ -6383,7 +6414,7 @@ export declare class SurveyQuestionMatrixDynamic extends SurveyQuestionMatrixDro
6383
6414
  }
6384
6415
  export declare class SurveyQuestionPanelDynamicItem extends SurveyPanel {
6385
6416
  constructor(props: any);
6386
- protected getSurvey(): any;
6417
+ protected getSurvey(): SurveyModel;
6387
6418
  protected getCss(): any;
6388
6419
  handleOnPanelRemoveClick(event: any): void;
6389
6420
  render(): any;
@@ -6477,6 +6508,7 @@ export declare class PageModel extends PanelModelBase implements IPage {
6477
6508
  getType(): string;
6478
6509
  toString(): string;
6479
6510
  get isPage(): boolean;
6511
+ protected canShowPageNumber(): boolean;
6480
6512
  protected canShowTitle(): boolean;
6481
6513
  /*
6482
6514
  * Use this property to show title in navigation buttons. If the value is empty then page name is used.
@@ -6503,8 +6535,7 @@ export declare class PageModel extends PanelModelBase implements IPage {
6503
6535
  get isStarted(): boolean;
6504
6536
  protected calcCssClasses(css: any): any;
6505
6537
  get cssTitle(): string;
6506
- get num(): number;
6507
- set num(val: number);
6538
+ num: number;
6508
6539
  /*
6509
6540
  * Set this property to "hide" to make "Prev", "Next" and "Complete" buttons are invisible for this page. Set this property to "show" to make these buttons visible, even if survey showNavigationButtons property is false.
6510
6541
  */
@@ -6531,7 +6562,7 @@ export declare class PageModel extends PanelModelBase implements IPage {
6531
6562
  /*
6532
6563
  * Returns the list of all panels in the page
6533
6564
  */
6534
- getPanels(visibleOnly?: boolean, includingDesignTime?: boolean): any;
6565
+ getPanels(visibleOnly?: boolean, includingDesignTime?: boolean): Array<IPanel>;
6535
6566
  /*
6536
6567
  * 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
6568
  */
@@ -6704,6 +6735,7 @@ export declare class QuestionBooleanModel extends Question {
6704
6735
  get svgIcon(): string;
6705
6736
  get allowClick(): boolean;
6706
6737
  getCheckedLabel(): LocalizableString;
6738
+ protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void;
6707
6739
  onLabelClick(event: any, value: boolean): boolean;
6708
6740
  onSwitchClickModel(event: any): boolean;
6709
6741
  }
@@ -6986,8 +7018,6 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
6986
7018
  protected createColumnValues(): any;
6987
7019
  getType(): string;
6988
7020
  get isCompositeQuestion(): boolean;
6989
- get showColumnHeader(): boolean;
6990
- set showColumnHeader(val: boolean);
6991
7021
  /*
6992
7022
  * Set this property to false, to hide table header. The default value is true.
6993
7023
  */
@@ -7005,7 +7035,7 @@ export declare class QuestionMatrixBaseModel<TRow, TColumn> extends Question {
7005
7035
  get rows(): any;
7006
7036
  set rows(val: any);
7007
7037
  protected processRowsOnSet(newRows: any): any;
7008
- protected getVisibleRows(): any;
7038
+ protected getVisibleRows(): Array<TRow>;
7009
7039
  /*
7010
7040
  * Returns the list of visible rows as model objects.
7011
7041
  */
@@ -7073,14 +7103,14 @@ export declare class QuestionMultipleTextModel extends Question implements IMult
7073
7103
  /*
7074
7104
  * Returns the list of rendered rows.
7075
7105
  */
7076
- getRows(): any;
7106
+ getRows(): Array<any>;
7077
7107
  isMultipleItemValueChanging: boolean;
7078
7108
  protected onValueChanged(): void;
7079
7109
  protected createTextItem(name: string, title: string): MultipleTextItemModel;
7080
7110
  protected onItemValueChanged(): void;
7081
7111
  protected getIsRunningValidators(): boolean;
7082
7112
  hasErrors(fireCallback?: boolean, rec?: any): boolean;
7083
- getAllErrors(): any;
7113
+ getAllErrors(): Array<SurveyError>;
7084
7114
  clearErrors(): void;
7085
7115
  protected getContainsErrors(): boolean;
7086
7116
  protected getIsAnswered(): boolean;
@@ -7116,7 +7146,7 @@ export declare class QuestionNonValue extends Question {
7116
7146
  getTitleLocation(): string;
7117
7147
  get hasComment(): boolean;
7118
7148
  hasErrors(fireCallback?: boolean, rec?: any): boolean;
7119
- getAllErrors(): any;
7149
+ getAllErrors(): Array<SurveyError>;
7120
7150
  supportGoNextPageAutomatic(): boolean;
7121
7151
  addConditionObjectsByContext(objects: any, context: any): void;
7122
7152
  getConditionJson(operator?: string, path?: string): any;
@@ -7243,7 +7273,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
7243
7273
  * Returns true when showRangeInProgress equals to true, renderMode doesn't equal to "list" and panelCount is >= 2.
7244
7274
  */
7245
7275
  get isRangeShowing(): boolean;
7246
- getElementsInDesign(includeHidden?: boolean): any;
7276
+ getElementsInDesign(includeHidden?: boolean): Array<IElement>;
7247
7277
  isAddingNewPanels: boolean;
7248
7278
  addingNewPanelsValue: any;
7249
7279
  isNewPanelsValueChanged: boolean;
@@ -7381,7 +7411,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
7381
7411
  protected getIsAnswered(): boolean;
7382
7412
  clearValueIfInvisible(): void;
7383
7413
  protected getIsRunningValidators(): boolean;
7384
- getAllErrors(): any;
7414
+ getAllErrors(): Array<SurveyError>;
7385
7415
  protected getDisplayValueCore(keysAsText: boolean, value: any): any;
7386
7416
  protected createNewPanel(): PanelModel;
7387
7417
  protected createAndSetupNewPanelObject(): PanelModel;
@@ -7662,10 +7692,10 @@ export declare class QuestionSelectBase extends Question {
7662
7692
  protected getDisplayValueEmpty(): string;
7663
7693
  protected getChoicesDisplayValue(items: any, val: any): any;
7664
7694
  protected get activeChoices(): any;
7665
- protected getChoicesFromQuestion(question: QuestionSelectBase): any;
7695
+ protected getChoicesFromQuestion(question: QuestionSelectBase): Array<ItemValue>;
7666
7696
  protected get hasActiveChoices(): boolean;
7667
7697
  protected isBuiltInChoice(item: ItemValue, question: QuestionSelectBase): boolean;
7668
- protected getChoices(): any;
7698
+ protected getChoices(): Array<ItemValue>;
7669
7699
  supportComment(): boolean;
7670
7700
  supportOther(): boolean;
7671
7701
  supportNone(): boolean;
@@ -7712,7 +7742,8 @@ export declare class QuestionSelectBase extends Question {
7712
7742
  ariaItemChecked(item: ItemValue): "true" | "false";
7713
7743
  isOtherItem(item: ItemValue): boolean;
7714
7744
  get itemSvgIcon(): string;
7715
- ariaItemLabel(item: ItemValue): string;
7745
+ getSelectBaseRootCss(): string;
7746
+ getAriaItemLabel(item: ItemValue): string;
7716
7747
  getItemId(item: ItemValue): string;
7717
7748
  get questionName(): string;
7718
7749
  getItemEnabled(item: ItemValue): any;
@@ -7812,7 +7843,7 @@ export declare class QuestionTextBase extends Question {
7812
7843
  }
7813
7844
  export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndErrorsCell {
7814
7845
  constructor(props: any);
7815
- protected getQuestion(): any;
7846
+ protected getQuestion(): Question;
7816
7847
  protected doAfterRender(): void;
7817
7848
  protected getShowErrors(): boolean;
7818
7849
  protected getCellStyle(): any;
@@ -7946,6 +7977,7 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
7946
7977
  onSurveyValueChanged(newValue: any): void;
7947
7978
  protected getValueCore(): any;
7948
7979
  protected initElement(el: SurveyElement): void;
7980
+ updateElementCss(reNew?: boolean): void;
7949
7981
  protected updateElementCssCore(cssClasses: any): void;
7950
7982
  protected getDisplayValueCore(keyAsText: boolean, value: any): any;
7951
7983
  }
@@ -7969,7 +8001,7 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
7969
8001
  get selectedItem(): ItemValue;
7970
8002
  supportGoNextPageAutomatic(): boolean;
7971
8003
  minMaxChoices: any;
7972
- protected getChoices(): any;
8004
+ protected getChoices(): Array<ItemValue>;
7973
8005
  /*
7974
8006
  * 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
8007
  */
@@ -8200,7 +8232,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
8200
8232
  get locKeyDuplicationError(): LocalizableString;
8201
8233
  get storeOthersAsComment(): boolean;
8202
8234
  addColumn(name: string, title?: string): MatrixDropdownColumn;
8203
- protected getVisibleRows(): any;
8235
+ protected getVisibleRows(): Array<MatrixDropdownRowModelBase>;
8204
8236
  get totalValue(): any;
8205
8237
  protected getVisibleTotalRow(): MatrixDropdownRowModelBase;
8206
8238
  get visibleTotalRow(): MatrixDropdownRowModelBase;
@@ -8214,13 +8246,17 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
8214
8246
  * Set the row value.
8215
8247
  */
8216
8248
  setRowValue(rowIndex: number, rowValue: any): any;
8217
- protected generateRows(): any;
8249
+ protected generateRows(): Array<MatrixDropdownRowModelBase>;
8218
8250
  protected generateTotalRow(): MatrixDropdownRowModelBase;
8219
8251
  protected createNewValue(nullOnEmpty?: boolean): any;
8220
8252
  protected getRowValueCore(row: MatrixDropdownRowModelBase, questionValue: any, create?: boolean): any;
8221
8253
  protected getRowObj(row: MatrixDropdownRowModelBase): any;
8222
8254
  protected getRowDisplayValue(keysAsText: boolean, row: MatrixDropdownRowModelBase, rowValue: any): any;
8223
8255
  getPlainData(options?: any): any;
8256
+ addConditionObjectsByContext(objects: any, context: any): void;
8257
+ protected getConditionObjectRowName(index: number): string;
8258
+ protected getConditionObjectRowText(index: number): string;
8259
+ protected getConditionObjectsRowIndeces(): Array<any>;
8224
8260
  getProgressInfo(): IProgressInfo;
8225
8261
  protected onBeforeValueChanged(val: any): void;
8226
8262
  protected setQuestionValue(newValue: any): void;
@@ -8229,8 +8265,8 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
8229
8265
  protected getIsAnswered(): boolean;
8230
8266
  hasErrors(fireCallback?: boolean, rec?: any): boolean;
8231
8267
  protected getIsRunningValidators(): boolean;
8232
- getAllErrors(): any;
8233
- protected getUniqueColumns(): any;
8268
+ getAllErrors(): Array<SurveyError>;
8269
+ protected getUniqueColumns(): Array<MatrixDropdownColumn>;
8234
8270
  protected getFirstInputElementId(): string;
8235
8271
  protected getFirstErrorInputElementId(): string;
8236
8272
  protected getFirstCellQuestion(onError: boolean): Question;
@@ -8247,7 +8283,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
8247
8283
  onRowChanging(row: MatrixDropdownRowModelBase, columnName: string, rowValue: any): any;
8248
8284
  onRowChanged(row: MatrixDropdownRowModelBase, columnName: string, newRowValue: any, isDeletingValue: boolean): void;
8249
8285
  getRowIndex(row: MatrixDropdownRowModelBase): number;
8250
- getElementsInDesign(includeHidden?: boolean): any;
8286
+ getElementsInDesign(includeHidden?: boolean): Array<IElement>;
8251
8287
  hasDetailPanel(row: MatrixDropdownRowModelBase): boolean;
8252
8288
  getIsDetailPanelShowing(row: MatrixDropdownRowModelBase): boolean;
8253
8289
  setIsDetailPanelShowing(row: MatrixDropdownRowModelBase, val: boolean): void;
@@ -8295,14 +8331,14 @@ export declare class QuestionMatrixModel extends QuestionMatrixBaseModel<MatrixR
8295
8331
  */
8296
8332
  get hideIfRowsEmpty(): boolean;
8297
8333
  set hideIfRowsEmpty(val: boolean);
8298
- getRows(): any;
8299
- getColumns(): any;
8334
+ getRows(): Array<any>;
8335
+ getColumns(): Array<any>;
8300
8336
  addColumn(value: any, text?: string): ItemValue;
8301
8337
  getItemClass(row: any, column: any): string;
8302
8338
  protected getQuizQuestionCount(): number;
8303
8339
  protected getCorrectAnswerCount(): number;
8304
- protected getVisibleRows(): any;
8305
- protected sortVisibleRows(array: any): any;
8340
+ protected getVisibleRows(): Array<MatrixRowModel>;
8341
+ protected sortVisibleRows(array: any): Array<MatrixRowModel>;
8306
8342
  endLoadingFromJson(): void;
8307
8343
  protected processRowsOnSet(newRows: any): any;
8308
8344
  /*
@@ -8354,7 +8390,7 @@ export declare class QuestionTextModel extends QuestionTextBase {
8354
8390
  get inputType(): string;
8355
8391
  set inputType(val: string);
8356
8392
  runCondition(values: any, properties: any): void;
8357
- getValidators(): any;
8393
+ getValidators(): Array<SurveyValidator>;
8358
8394
  isLayoutTypeSupported(layoutType: string): boolean;
8359
8395
  /*
8360
8396
  * The text input size
@@ -8603,10 +8639,12 @@ export declare class QuestionMatrixDropdownModel extends QuestionMatrixDropdownM
8603
8639
  set rowTitleWidth(val: string);
8604
8640
  getRowTitleWidth(): string;
8605
8641
  protected getDisplayValueCore(keysAsText: boolean, value: any): any;
8606
- addConditionObjectsByContext(objects: any, context: any): void;
8642
+ protected getConditionObjectRowName(index: number): string;
8643
+ protected getConditionObjectRowText(index: number): string;
8644
+ protected getConditionObjectsRowIndeces(): Array<any>;
8607
8645
  clearIncorrectValues(): void;
8608
8646
  clearValueIfInvisible(): void;
8609
- protected generateRows(): any;
8647
+ protected generateRows(): Array<MatrixDropdownRowModel>;
8610
8648
  protected createMatrixRow(item: ItemValue, value: any): MatrixDropdownRowModel;
8611
8649
  protected getSearchableItemValueKeys(keys: any): void;
8612
8650
  }
@@ -8754,12 +8792,13 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
8754
8792
  set emptyRowsText(val: string);
8755
8793
  get locEmptyRowsText(): LocalizableString;
8756
8794
  protected getDisplayValueCore(keysAsText: boolean, value: any): any;
8757
- addConditionObjectsByContext(objects: any, context: any): void;
8795
+ protected getConditionObjectRowName(index: number): string;
8796
+ protected getConditionObjectsRowIndeces(): Array<any>;
8758
8797
  supportGoNextPageAutomatic(): boolean;
8759
8798
  get hasRowText(): boolean;
8760
8799
  protected onCheckForErrors(errors: any, isOnValueChanged: boolean): void;
8761
- protected getUniqueColumns(): any;
8762
- protected generateRows(): any;
8800
+ protected getUniqueColumns(): Array<MatrixDropdownColumn>;
8801
+ protected generateRows(): Array<MatrixDynamicRowModel>;
8763
8802
  protected createMatrixRow(value: any): MatrixDynamicRowModel;
8764
8803
  protected onBeforeValueChanged(val: any): void;
8765
8804
  protected createNewValue(): any;
@@ -8837,7 +8876,7 @@ export declare function propertyArray(options?: IArrayPropertyDecoratorOptions):
8837
8876
  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
8877
  export declare function unwrap<T>(value: any): T;
8839
8878
  export declare function getSize(value: any): any;
8840
- export declare function getCurrecyCodes(): any;
8879
+ export declare function getCurrecyCodes(): Array<any>;
8841
8880
  export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
8842
8881
  export declare function attachKey2click(element: any, viewModel?: any, options?: any): any;
8843
8882
  /*
@@ -8882,6 +8921,12 @@ export declare var settings: {
8882
8921
  */
8883
8922
  itemValueAlwaysSerializeAsObject: boolean,
8884
8923
  /*
8924
+ * Set it to true to serialize itemvalue text property, even if it is empty or equals to value
8925
+ * const item = new Survey.ItemValue("item1");
8926
+ * item.toJSON(); //will return {value: item1, text: "item1"}, instead of "item1" by default.
8927
+ */
8928
+ itemValueAlwaysSerializeText: boolean,
8929
+ /*
8885
8930
  * default locale name for localizable strings that uses during serialization, {"default": "My text", "de": "Mein Text"}
8886
8931
  */
8887
8932
  defaultLocaleName: string,
@@ -8997,6 +9042,7 @@ export declare var settings: {
8997
9042
  comment: any,
8998
9043
  text: any,
8999
9044
  checkbox: any,
9045
+ imagepicker: any,
9000
9046
  },
9001
9047
  /*
9002
9048
  * Set the value as string "yyyy-mm-dd". text questions with inputType "date" will not allow to set to survey date that less than this value
@@ -9042,6 +9088,15 @@ export declare var surveyStrings: any;
9042
9088
  export declare var Serializer: JsonMetadata;
9043
9089
  export declare var registerFunction: any;
9044
9090
  export declare var parse: any;
9091
+ export declare var defaultActionBarCss: {
9092
+ root: string,
9093
+ item: string,
9094
+ itemActive: string,
9095
+ itemPressed: string,
9096
+ itemIcon: string,
9097
+ itemTitle: string,
9098
+ itemTitleWithIcon: string,
9099
+ };
9045
9100
  export declare var FOCUS_INPUT_SELECTOR: any;
9046
9101
  export declare var surveyCss: {
9047
9102
  currentType: string,
@@ -9103,6 +9158,8 @@ export declare var defaultStandardCss: {
9103
9158
  requiredText: string,
9104
9159
  title: string,
9105
9160
  titleExpandable: string,
9161
+ titleExpanded: string,
9162
+ titleCollapsed: string,
9106
9163
  number: string,
9107
9164
  description: string,
9108
9165
  comment: string,
@@ -9120,6 +9177,8 @@ export declare var defaultStandardCss: {
9120
9177
  panel: {
9121
9178
  title: string,
9122
9179
  titleExpandable: string,
9180
+ titleExpanded: string,
9181
+ titleCollapsed: string,
9123
9182
  titleOnError: string,
9124
9183
  icon: string,
9125
9184
  iconExpanded: string,
@@ -9369,39 +9428,25 @@ export declare var surveyTimerFunctions: {
9369
9428
  };
9370
9429
  export declare var matrixDropdownColumnTypes: {
9371
9430
  dropdown: {
9372
- properties: any,
9373
9431
  onCellQuestionUpdate: any,
9374
9432
  },
9375
9433
  checkbox: {
9376
- properties: any,
9377
9434
  onCellQuestionUpdate: any,
9378
9435
  },
9379
9436
  radiogroup: {
9380
- properties: any,
9381
- onCellQuestionUpdate: any,
9382
- },
9383
- text: {
9384
- properties: any,
9385
- onCellQuestionUpdate: any,
9386
- },
9387
- comment: {
9388
- properties: any,
9389
9437
  onCellQuestionUpdate: any,
9390
9438
  },
9439
+ text: any,
9440
+ comment: any,
9391
9441
  boolean: {
9392
- properties: any,
9393
9442
  onCellQuestionUpdate: any,
9394
9443
  },
9395
- expression: {
9396
- properties: any,
9397
- onCellQuestionUpdate: any,
9398
- },
9399
- rating: {
9400
- properties: any,
9401
- },
9444
+ expression: any,
9445
+ rating: any,
9402
9446
  };
9403
9447
  export declare var _isMobile: boolean;
9404
9448
  export declare var vendor: any;
9449
+ export declare var _IPad: boolean;
9405
9450
  export declare var IsMobile: boolean;
9406
9451
  export declare var _isTouch: boolean;
9407
9452
  export declare var IsTouch: boolean;
@@ -9465,6 +9510,8 @@ export declare var defaultBootstrapCss: {
9465
9510
  titleLeftRoot: string,
9466
9511
  title: string,
9467
9512
  titleExpandable: string,
9513
+ titleExpanded: string,
9514
+ titleCollapsed: string,
9468
9515
  number: string,
9469
9516
  description: string,
9470
9517
  descriptionUnderInput: string,
@@ -9479,6 +9526,8 @@ export declare var defaultBootstrapCss: {
9479
9526
  panel: {
9480
9527
  title: string,
9481
9528
  titleExpandable: string,
9529
+ titleExpanded: string,
9530
+ titleCollapsed: string,
9482
9531
  titleOnError: string,
9483
9532
  icon: string,
9484
9533
  iconExpanded: string,
@@ -9778,6 +9827,8 @@ export declare var defaultBootstrapMaterialCss: {
9778
9827
  requiredText: string,
9779
9828
  title: string,
9780
9829
  titleExpandable: string,
9830
+ titleExpanded: string,
9831
+ titleCollapsed: string,
9781
9832
  number: string,
9782
9833
  description: string,
9783
9834
  descriptionUnderInput: string,
@@ -9791,6 +9842,8 @@ export declare var defaultBootstrapMaterialCss: {
9791
9842
  panel: {
9792
9843
  title: string,
9793
9844
  titleExpandable: string,
9845
+ titleExpanded: string,
9846
+ titleCollapsed: string,
9794
9847
  titleOnError: string,
9795
9848
  icon: string,
9796
9849
  iconExpanded: string,
@@ -10065,6 +10118,8 @@ export declare var defaultV2Css: {
10065
10118
  panel: {
10066
10119
  title: string,
10067
10120
  titleExpandable: string,
10121
+ titleExpanded: string,
10122
+ titleCollapsed: string,
10068
10123
  titleOnExpand: string,
10069
10124
  titleOnError: string,
10070
10125
  description: string,
@@ -10078,6 +10133,7 @@ export declare var defaultV2Css: {
10078
10133
  header: string,
10079
10134
  collapsed: string,
10080
10135
  nested: string,
10136
+ invisible: string,
10081
10137
  },
10082
10138
  paneldynamic: {
10083
10139
  mainRoot: string,
@@ -10133,6 +10189,9 @@ export declare var defaultV2Css: {
10133
10189
  titleOnAnswer: string,
10134
10190
  titleOnError: string,
10135
10191
  title: string,
10192
+ titleExpandable: string,
10193
+ titleExpanded: string,
10194
+ titleCollapsed: string,
10136
10195
  requiredText: string,
10137
10196
  number: string,
10138
10197
  description: string,
@@ -10148,6 +10207,7 @@ export declare var defaultV2Css: {
10148
10207
  disabled: string,
10149
10208
  collapsed: string,
10150
10209
  nested: string,
10210
+ invisible: string,
10151
10211
  },
10152
10212
  image: {
10153
10213
  mainRoot: string,
@@ -10171,6 +10231,7 @@ export declare var defaultV2Css: {
10171
10231
  },
10172
10232
  checkbox: {
10173
10233
  root: string,
10234
+ rootMultiColumn: string,
10174
10235
  item: string,
10175
10236
  itemOnError: string,
10176
10237
  itemSelectAll: string,
@@ -10191,6 +10252,7 @@ export declare var defaultV2Css: {
10191
10252
  },
10192
10253
  radiogroup: {
10193
10254
  root: string,
10255
+ rootMultiColumn: string,
10194
10256
  item: string,
10195
10257
  itemOnError: string,
10196
10258
  itemInline: string,
@@ -10255,6 +10317,7 @@ export declare var defaultV2Css: {
10255
10317
  itemDecorator: string,
10256
10318
  controlDisabled: string,
10257
10319
  controlLabel: string,
10320
+ controlEmpty: string,
10258
10321
  materialDecorator: string,
10259
10322
  },
10260
10323
  imagepicker: {
@@ -10307,6 +10370,9 @@ export declare var defaultV2Css: {
10307
10370
  detailIconId: string,
10308
10371
  detailIconExpandedId: string,
10309
10372
  actionsCell: string,
10373
+ emptyCell: string,
10374
+ verticalCell: string,
10375
+ cellQuestionWrapper: string,
10310
10376
  },
10311
10377
  matrixdynamic: {
10312
10378
  mainRoot: string,
@@ -10331,6 +10397,12 @@ export declare var defaultV2Css: {
10331
10397
  iconRemove: string,
10332
10398
  footer: string,
10333
10399
  emptyRowsSection: string,
10400
+ iconDrag: string,
10401
+ dragDropGhostPositionTop: string,
10402
+ dragDropGhostPositionBottom: string,
10403
+ emptyCell: string,
10404
+ verticalCell: string,
10405
+ cellQuestionWrapper: string,
10334
10406
  },
10335
10407
  rating: {
10336
10408
  root: string,
@@ -10425,6 +10497,14 @@ export declare var defaultV2Css: {
10425
10497
  itemIconFocusMod: string,
10426
10498
  itemGhostMod: string,
10427
10499
  itemDragMod: string,
10500
+ itemOnError: string,
10501
+ },
10502
+ actionBar: {
10503
+ root: string,
10504
+ item: string,
10505
+ itemPressed: string,
10506
+ itemAsIcon: string,
10507
+ itemIcon: string,
10428
10508
  },
10429
10509
  };
10430
10510
  export declare var modernCss: {
@@ -10453,6 +10533,8 @@ export declare var modernCss: {
10453
10533
  panel: {
10454
10534
  title: string,
10455
10535
  titleExpandable: string,
10536
+ titleExpanded: string,
10537
+ titleCollapsed: string,
10456
10538
  titleOnError: string,
10457
10539
  description: string,
10458
10540
  container: string,
@@ -10525,6 +10607,8 @@ export declare var modernCss: {
10525
10607
  titleOnError: string,
10526
10608
  title: string,
10527
10609
  titleExpandable: string,
10610
+ titleExpanded: string,
10611
+ titleCollapsed: string,
10528
10612
  icon: string,
10529
10613
  iconExpanded: string,
10530
10614
  requiredText: string,
@@ -10789,4 +10873,5 @@ export declare var modernCss: {
10789
10873
  },
10790
10874
  },
10791
10875
  };
10876
+ export declare var SvgRegistry: SvgIconRegistry;
10792
10877
  export declare var SvgBundleViewModel: any;