survey-react 1.9.38 → 1.9.41

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,5 +1,5 @@
1
1
  /*
2
- * Type definition for Survey JavaScript library for React v1.9.38
2
+ * Type definition for Survey JavaScript library for React v1.9.41
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -189,6 +189,10 @@ export interface IAction {
189
189
  visibleIndex?: number;
190
190
  needSpace?: boolean;
191
191
  }
192
+ export interface IAttachKey2clickOptions {
193
+ processEsc?: boolean;
194
+ disableTabStop?: boolean;
195
+ }
192
196
  export interface IDimensions {
193
197
  scroll: number;
194
198
  offset: number;
@@ -363,7 +367,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
363
367
  isValidateOnValueChanging: boolean;
364
368
  isValidateOnValueChanged: boolean;
365
369
  matrixCellValidate(question: IQuestion, options: any): SurveyError;
366
- dynamicPanelAdded(question: IQuestion): any;
370
+ dynamicPanelAdded(question: IQuestion, panelIndex?: number, panel?: IPanel): any;
367
371
  dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel): any;
368
372
  dynamicPanelItemValueChanged(question: IQuestion, options: any): any;
369
373
  dragAndDropAllow(options: any): boolean;
@@ -531,6 +535,129 @@ export interface IQuestionPanelDynamicData {
531
535
  getSurvey(): ISurvey;
532
536
  getRootData(): ISurveyData;
533
537
  }
538
+ /*
539
+ * An interface used to create custom question types.
540
+ *
541
+ * Refer to the following articles for more information:
542
+ *
543
+ * - [Create Specialized Question Types](https://surveyjs.io/Documentation/Survey-Creator?id=create-specialized-question-types)
544
+ * - [Create Composite Question Types](https://surveyjs.io/Documentation/Survey-Creator?id=create-composite-question-types)
545
+ */
546
+ export interface ICustomQuestionTypeConfiguration {
547
+ /*
548
+ * A name used to identify a custom question type.
549
+ */
550
+ name: string;
551
+ /*
552
+ * A title used for this custom question type in the UI. When `title` is not specified, the `name` property value is used.
553
+ */
554
+ title?: string;
555
+ /*
556
+ * An icon for the custom question type.
557
+ */
558
+ icon?: string;
559
+ /*
560
+ * A function that is called when the custom question type is initialized. Use it to add, remove, or modify the type's properties (see [Override Base Question Properties](https://surveyjs.io/Documentation/Survey-Creator?id=create-composite-question-types#override-base-question-properties)).
561
+ */
562
+ onInit(): void;
563
+ /*
564
+ * Specifies whether the custom question type is available in the Toolbox and the Add Question menu.
565
+ *
566
+ * Default value: `true`
567
+ *
568
+ * Set this property to `false` if your custom question type is used only to customize Property Grid content and is not meant for a survey.
569
+ */
570
+ showInToolbox?: boolean;
571
+ /*
572
+ * A function that is called when the custom question is created. Use it to access questions nested within a [composite question type](https://surveyjs.io/Documentation/Survey-Creator?id=create-composite-question-types).
573
+ *
574
+ * Parameters:
575
+ *
576
+ * - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - The custom question.
577
+ */
578
+ onCreated(question: Question): void;
579
+ /*
580
+ * A function that is called when JSON definitions are loaded.
581
+ *
582
+ * Parameters:
583
+ *
584
+ * - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - The custom question.
585
+ */
586
+ onLoaded(question: Question): void;
587
+ /*
588
+ * A function that is called after the entire question is rendered.
589
+ *
590
+ * Parameters:
591
+ *
592
+ * - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - The custom question.
593
+ * - `htmlElement`: any - An HTML element that represents the custom question.
594
+ */
595
+ onAfterRender(question: Question, htmlElement: any): void;
596
+ /*
597
+ * A function that is called each time a question nested within a [composite question](https://surveyjs.io/Documentation/Survey-Creator?id=create-composite-question-types) is rendered.
598
+ *
599
+ * Parameters:
600
+ *
601
+ * - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - The composite question.
602
+ * - `element`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - A nested question.
603
+ * - `htmlElement`: any - An HTML element that represents the nested question.
604
+ */
605
+ onAfterRenderContentElement(question: Question, element: Question, htmlElement: any): void;
606
+ /*
607
+ * A function that is called when a custom question type property is changed. Use it to handle property changes.
608
+ *
609
+ * Parameters:
610
+ *
611
+ * - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - The custom question.
612
+ * - `propertyName`: string - The name of the changed property.
613
+ * - `newValue`: any - A new value for the property.
614
+ */
615
+ onPropertyChanged(question: Question, propertyName: string, newValue: any): void;
616
+ /*
617
+ * A function that is called when the question value is changed.
618
+ *
619
+ * Parameters:
620
+ *
621
+ * - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - The custom question.
622
+ * - `name`: string - The question's [name](https://surveyjs.io/Documentation/Library?id=Question#name).
623
+ * - `newValue`: any - A new value for the question.
624
+ */
625
+ onValueChanged(question: Question, name: string, newValue: any): void;
626
+ /*
627
+ * A function that is called when an [ItemValue](https://surveyjs.io/Documentation/Library?id=itemvalue) property is changed.
628
+ *
629
+ * Parameters:
630
+ *
631
+ * - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - The custom question.
632
+ * - `options.obj`: [ItemValue](https://surveyjs.io/Documentation/Library?id=itemvalue) - An `ItemValue` object.
633
+ * - `options.propertyName`: string - The name of the property to which an array of `ItemValue` objects is assigned (for example, `"choices"` or `"rows"`).
634
+ * - `options.name`: string - The name of the changed property: `"text"` or `"value"`.
635
+ * - `options.newValue`: any - A new value for the property.
636
+ */
637
+ onItemValuePropertyChanged(question: Question, options: any): void;
638
+ /*
639
+ * A function that allows you to override the default `getDisplayValue()` implementation.
640
+ */
641
+ getDisplayValue?: any;
642
+ /*
643
+ * JSON definitions of nested questions. Specify this property to create a [composite question type](https://surveyjs.io/Documentation/Survey-Creator?id=create-composite-question-types).
644
+ */
645
+ elementsJSON?: any;
646
+ /*
647
+ * A function that allows you to create nested questions if you do not specify the `elementsJSON` property.
648
+ */
649
+ createElements?: any;
650
+ /*
651
+ * A JSON definition for a built-in question type on which the custom question type is based.
652
+ *
653
+ * Refer to the [Create Specialized Question Types](https://surveyjs.io/Documentation/Survey-Creator?id=create-specialized-question-types) help topic for more information.
654
+ */
655
+ questionJSON?: any;
656
+ /*
657
+ * A function that allows you to create a custom question if you do not specify the `questionJSON` property.
658
+ */
659
+ createQuestion?: any;
660
+ }
534
661
  export interface IActionBarItemProps {
535
662
  item: any;
536
663
  }
@@ -550,7 +677,7 @@ export interface ISurveyCreator {
550
677
  export interface ISurveyHeaderProps {
551
678
  survey: any;
552
679
  }
553
- export interface IMAtrixRowProps {
680
+ export interface IMatrixRowProps {
554
681
  model: any;
555
682
  parentMatrix: any;
556
683
  }
@@ -683,7 +810,7 @@ export declare class Base {
683
810
  */
684
811
  get isLoadingFromJson(): boolean;
685
812
  protected getIsLoadingFromJson(): boolean;
686
- startLoadingFromJson(): void;
813
+ startLoadingFromJson(json?: any): void;
687
814
  endLoadingFromJson(): void;
688
815
  /*
689
816
  * Deserialized the current object into JSON
@@ -717,6 +844,11 @@ export declare class Base {
717
844
  get isEditingSurveyElement(): boolean;
718
845
  iteratePropertiesHash(func: (hash: any, key: any) => void): void;
719
846
  /*
847
+ * set property value and before check if new property value is correct by calling JsonProperty onSettingValue function
848
+ * If onSettingValue is not set in declaration, then this function works as `setPropertyValue`.
849
+ */
850
+ checkAndSetPropertyValue(name: string, val: any): void;
851
+ /*
720
852
  * set property value
721
853
  */
722
854
  setPropertyValue(name: string, val: any): void;
@@ -787,6 +919,11 @@ export declare class Bindings {
787
919
  getJson(): any;
788
920
  setJson(value: any): void;
789
921
  }
922
+ export declare class BrandInfo extends React.Component<any, any> {
923
+ constructor(props: any);
924
+ constructor(props: any, context: any);
925
+ render(): JSX.Element;
926
+ }
790
927
  export declare class ButtonGroupItemModel {
791
928
  constructor(question: QuestionButtonGroupModel, item: ItemValue, index: number);
792
929
  question: QuestionButtonGroupModel;
@@ -813,7 +950,7 @@ export declare class ComponentCollection {
813
950
  onCreateComposite: (name: string, questionJSON: ComponentQuestionJSON) => QuestionCompositeModel;
814
951
  onCreateCustom: (name: string, questionJSON: ComponentQuestionJSON) => QuestionCustomModel;
815
952
  onAddingJson: (name: string, isComposite: boolean) => void;
816
- add(json: any): void;
953
+ add(json: ICustomQuestionTypeConfiguration): void;
817
954
  get items(): any;
818
955
  getCustomQuestionByName(name: string): ComponentQuestionJSON;
819
956
  clear(): void;
@@ -822,9 +959,9 @@ export declare class ComponentCollection {
822
959
  protected createCustomModel(name: string, questionJSON: ComponentQuestionJSON): QuestionCustomModel;
823
960
  }
824
961
  export declare class ComponentQuestionJSON {
825
- constructor(name: string, json: any);
962
+ constructor(name: string, json: ICustomQuestionTypeConfiguration);
826
963
  name: string;
827
- json: any;
964
+ json: ICustomQuestionTypeConfiguration;
828
965
  onInit(): void;
829
966
  onCreated(question: Question): void;
830
967
  onLoaded(question: Question): void;
@@ -944,6 +1081,8 @@ export declare class Event<T, Options> {
944
1081
  onCallbacksChanged: any;
945
1082
  protected callbacks: any;
946
1083
  get isEmpty(): boolean;
1084
+ get length(): number;
1085
+ fireByCreatingOptions(sender: any, createOptions: any): void;
947
1086
  fire(sender: any, options: any): void;
948
1087
  clear(): void;
949
1088
  add(func: T): void;
@@ -1121,13 +1260,13 @@ export declare class OperandMaker {
1121
1260
  }
1122
1261
  export declare class PopupUtils {
1123
1262
  static bottomIndent: number;
1124
- static calculatePosition(targetRect: any, height: number, width: number, verticalPosition: any, horizontalPosition: any, showPointer: boolean): INumberPosition;
1263
+ static calculatePosition(targetRect: any, height: number, width: number, verticalPosition: any, horizontalPosition: any, showPointer: boolean, positionMode?: any): INumberPosition;
1125
1264
  static updateVerticalDimensions(top: number, height: number, windowHeight: number): any;
1126
- static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: any): any;
1265
+ static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: any, positionMode?: any, margins?: any): any;
1127
1266
  static updateVerticalPosition(targetRect: any, height: number, verticalPosition: any, showPointer: boolean, windowHeight: number): any;
1128
1267
  static calculatePopupDirection(verticalPosition: any, horizontalPosition: any): string;
1129
1268
  static calculatePointerTarget(targetRect: any, top: number, left: number, verticalPosition: any, horizontalPosition: any, marginLeft?: number, marginRight?: number): INumberPosition;
1130
- static updatePopupWidthBeforeShow(popupModel: any, target: JSX.Element, e: any): void;
1269
+ static updatePopupWidthBeforeShow(popupModel: any, target: JSX.Element): void;
1131
1270
  }
1132
1271
  export declare class ProcessValue {
1133
1272
  constructor();
@@ -1709,7 +1848,6 @@ export declare class ConditionRunner extends ExpressionRunnerBase {
1709
1848
  export declare class Const extends Operand {
1710
1849
  constructor(value: any);
1711
1850
  getType(): string;
1712
- setValue(val: any): void;
1713
1851
  toString(func?: (op: Operand) => string): string;
1714
1852
  get correctValue(): any;
1715
1853
  evaluate(): any;
@@ -1757,8 +1895,8 @@ export declare class DragDropCore<T> extends Base {
1757
1895
  protected getShortcutText(draggedElement: IShortcutText): string;
1758
1896
  protected createDraggedElementShortcut(text: string, draggedElementNode?: any, event?: any): any;
1759
1897
  protected getDraggedElementClass(): string;
1760
- protected doDragOver(dropTargetNode?: any): void;
1761
- protected afterDragOver(dropTargetNode?: any): void;
1898
+ protected doDragOver(dropTargetNode?: any, event?: any): void;
1899
+ protected afterDragOver(dropTargetNode?: any, event?: any): void;
1762
1900
  getGhostPosition(item: any): string;
1763
1901
  protected isDropTargetValid(dropTarget: any, dropTargetNode?: any): boolean;
1764
1902
  handlePointerCancel: (event: any) => void;
@@ -1768,13 +1906,24 @@ export declare class DragDropCore<T> extends Base {
1768
1906
  protected getDataAttributeValueByNode(node: any): any;
1769
1907
  protected getDropTargetByNode(dropTargetNode: any, event: any): any;
1770
1908
  protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode?: any, event?: any): any;
1771
- protected calculateMiddleOfHTMLElement(HTMLElement: any): number;
1909
+ protected calculateVerticalMiddleOfHTMLElement(HTMLElement: any): number;
1910
+ protected calculateHorizontalMiddleOfHTMLElement(HTMLElement: any): number;
1772
1911
  protected calculateIsBottom(clientY: number, dropTargetNode?: any): boolean;
1773
1912
  protected findDropTargetNodeByDragOverNode(dragOverNode: any): any;
1774
1913
  protected doDrop(): any;
1775
1914
  protected clear: any;
1776
1915
  protected doClear(): void;
1777
1916
  }
1917
+ export declare class DropdownListModel extends Base {
1918
+ constructor(question: Question);
1919
+ _popupModel: any;
1920
+ get popupModel(): any;
1921
+ updateItems(): void;
1922
+ onClick(event: any): void;
1923
+ onClear(event: any): void;
1924
+ onKeyUp(event: any): void;
1925
+ onBlur(event: any): void;
1926
+ }
1778
1927
  export declare class EventBase<T> extends Event<any, any> {
1779
1928
  }
1780
1929
  export declare class ExceedSizeError extends SurveyError {
@@ -1958,6 +2107,7 @@ export declare class JsonObjectProperty implements IObject {
1958
2107
  dataListValue: any;
1959
2108
  layout: string;
1960
2109
  onGetValue: (obj: any) => any;
2110
+ onSettingValue: (obj: any, value: any) => any;
1961
2111
  onSetValue: (obj: any, value: any, jsonConv: JsonObject) => any;
1962
2112
  visibleIf: (obj: any) => boolean;
1963
2113
  onExecuteExpression: (obj: any, res: any) => any;
@@ -1978,6 +2128,7 @@ export declare class JsonObjectProperty implements IObject {
1978
2128
  getValue(obj: any): any;
1979
2129
  getPropertyValue(obj: any): any;
1980
2130
  get hasToUseSetValue(): any;
2131
+ settingValue(obj: any, value: any): any;
1981
2132
  setValue(obj: any, value: any, jsonConv: JsonObject): void;
1982
2133
  getObjType(objType: string): any;
1983
2134
  getClassName(className: string): string;
@@ -2058,6 +2209,7 @@ export declare class LocalizableString implements ILocalizableString {
2058
2209
  localizationName: string;
2059
2210
  onGetTextCallback: (str: string) => string;
2060
2211
  onGetDefaultTextCallback: any;
2212
+ storeDefaultText: boolean;
2061
2213
  onGetLocalizationTextCallback: (str: string) => string;
2062
2214
  onStrChanged: (oldValue: string, newValue: string) => void;
2063
2215
  onSearchChanged: any;
@@ -2152,6 +2304,9 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
2152
2304
  get fullTitle(): string;
2153
2305
  get isRequired(): boolean;
2154
2306
  set isRequired(val: boolean);
2307
+ get isRenderedRequired(): boolean;
2308
+ set isRenderedRequired(val: boolean);
2309
+ updateIsRenderedRequired(val: boolean): void;
2155
2310
  get requiredText(): string;
2156
2311
  get requiredErrorText(): string;
2157
2312
  set requiredErrorText(val: string);
@@ -2207,6 +2362,7 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
2207
2362
  getRendererContext(locStr: LocalizableString): any;
2208
2363
  getProcessedText(text: string): string;
2209
2364
  createCellQuestion(row: MatrixDropdownRowModelBase): Question;
2365
+ startLoadingFromJson(json?: any): void;
2210
2366
  updateCellQuestion(cellQuestion: Question, data: any, onUpdateJson?: (json: any) => any): void;
2211
2367
  defaultCellTypeChanged(): void;
2212
2368
  protected calcCellQuestionType(row: MatrixDropdownRowModelBase): string;
@@ -2300,8 +2456,8 @@ export declare class MatrixDropdownTotalCell extends MatrixDropdownCell {
2300
2456
  updateCellQuestion(): void;
2301
2457
  getTotalExpression(): string;
2302
2458
  }
2303
- export declare class MatrixRow extends SurveyElementBase<IMAtrixRowProps, any> {
2304
- constructor(props: IMAtrixRowProps);
2459
+ export declare class MatrixRow extends SurveyElementBase<IMatrixRowProps, any> {
2460
+ constructor(props: IMatrixRowProps);
2305
2461
  get model(): any;
2306
2462
  get parentMatrix(): any;
2307
2463
  protected getStateElement(): any;
@@ -2454,6 +2610,7 @@ export declare class PopupBaseViewModel extends Base {
2454
2610
  left: string;
2455
2611
  height: string;
2456
2612
  width: string;
2613
+ minWidth: string;
2457
2614
  isVisible: boolean;
2458
2615
  popupDirection: string;
2459
2616
  pointerTarget: IPosition;
@@ -2514,7 +2671,7 @@ export declare class PopupModel<T = any> extends Base {
2514
2671
  cssClass: string;
2515
2672
  title: string;
2516
2673
  displayMode: "popup" | "overlay";
2517
- widthMode: "contentWidth" | "fixedWidth";
2674
+ positionMode: any;
2518
2675
  onVisibilityChanged: EventBase<PopupModel<any>>;
2519
2676
  get isVisible(): boolean;
2520
2677
  set isVisible(val: boolean);
@@ -3042,6 +3199,7 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
3042
3199
  minVisibleItemsCount: number;
3043
3200
  isResponsivenessDisabled: boolean;
3044
3201
  protected invisibleItemsListModel: ListModel;
3202
+ static ContainerID: number;
3045
3203
  protected onSet(): void;
3046
3204
  protected onPush(item: T): void;
3047
3205
  protected getRenderedActions(): Array<T>;
@@ -3096,7 +3254,9 @@ export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
3096
3254
  protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
3097
3255
  protected findDropTargetNodeByDragOverNode(dragOverNode: any): any;
3098
3256
  protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
3257
+ protected doDragOver: any;
3099
3258
  protected isDropTargetValid(dropTarget: ItemValue): boolean;
3259
+ protected doBanDropHere: any;
3100
3260
  protected calculateIsBottom(clientY: number): boolean;
3101
3261
  protected afterDragOver(dropTargetNode: any): void;
3102
3262
  protected doDrop(): any;
@@ -3128,6 +3288,8 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
3128
3288
  protected ghostSurveyElement: IElement;
3129
3289
  protected get draggedElementType(): string;
3130
3290
  protected isDraggedElementSelected: boolean;
3291
+ isRight: boolean;
3292
+ protected prevIsRight: boolean;
3131
3293
  startDragToolboxItem(event: any, draggedElementJson: JsonObject, toolboxItemTitle: string): void;
3132
3294
  startDragSurveyElement(event: any, draggedElement: any, isElementSelected?: boolean): void;
3133
3295
  protected getShortcutText(draggedElement: IShortcutText): string;
@@ -3138,9 +3300,11 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
3138
3300
  protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode: any, event: any): any;
3139
3301
  protected isDropTargetValid(): boolean;
3140
3302
  protected calculateIsBottom(clientY: number, dropTargetNode?: any): boolean;
3303
+ protected calculateIsRight(clientX: number, dropTargetNode?: any): boolean;
3141
3304
  protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
3142
3305
  protected findDeepestDropTargetChild(parent: any): any;
3143
- protected afterDragOver(): void;
3306
+ protected doDragOver(dropTargetNode?: any, event?: any): void;
3307
+ protected afterDragOver(dropTargetNode: any, event: any): void;
3144
3308
  protected onStartDrag(): void;
3145
3309
  protected doBanDropHere: any;
3146
3310
  protected doDrop: any;
@@ -4252,6 +4416,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4252
4416
  get completedStateCss(): string;
4253
4417
  getCompletedStateCss(): string;
4254
4418
  lazyRenderingValue: boolean;
4419
+ showBrandInfo: boolean;
4255
4420
  /*
4256
4421
  * By default all rows are rendered no matters if they are visible or not.
4257
4422
  * Set it true, and survey markup rows will be rendered only if they are visible in viewport.
@@ -5036,6 +5201,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
5036
5201
  * Gets whether the question values on the current page are validating on the server at the current moment.
5037
5202
  */
5038
5203
  get isValidatingOnServer(): boolean;
5204
+ serverValidationEventCount: number;
5039
5205
  protected onIsValidatingOnServerChanged(): void;
5040
5206
  protected doServerValidation(doComplete: boolean, isPreview?: boolean): boolean;
5041
5207
  protected doNextPage(): void;
@@ -5093,7 +5259,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
5093
5259
  get isValidateOnValueChanging(): boolean;
5094
5260
  get isValidateOnValueChanged(): boolean;
5095
5261
  matrixCellValidate(question: IQuestion, options: any): SurveyError;
5096
- dynamicPanelAdded(question: IQuestion): void;
5262
+ dynamicPanelAdded(question: IQuestion, panelIndex?: number, panel?: IPanel): void;
5097
5263
  dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel): void;
5098
5264
  dynamicPanelItemValueChanged(question: IQuestion, options: any): void;
5099
5265
  dragAndDropAllow(options: any): boolean;
@@ -5345,6 +5511,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
5345
5511
  */
5346
5512
  get widthMode(): string;
5347
5513
  set widthMode(val: string);
5514
+ calculatedWidthMode: string;
5348
5515
  calculateWidthMode(): string;
5349
5516
  get timerInfoText(): string;
5350
5517
  get timerModel(): SurveyTimerModel;
@@ -5485,7 +5652,8 @@ export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
5485
5652
  protected getFooter(): any;
5486
5653
  protected getColumnedBody(cssClasses: any): JSX.Element;
5487
5654
  protected getColumns(cssClasses: any): any;
5488
- protected getItems(cssClasses: any): Array<any>;
5655
+ protected getBody(cssClasses: any): JSX.Element;
5656
+ protected getItems(cssClasses: any, choices: any): Array<any>;
5489
5657
  protected get textStyle(): any;
5490
5658
  protected renderOther(): JSX.Element;
5491
5659
  protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): JSX.Element;
@@ -5600,6 +5768,12 @@ export declare class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElem
5600
5768
  renderRow(keyValue: any, row: any, cssClasses: any): JSX.Element;
5601
5769
  renderCell(cell: any, index: number, cssClasses: any): JSX.Element;
5602
5770
  }
5771
+ export declare class SurveyQuestionMatrixDynamicAddButton extends ReactSurveyElement {
5772
+ constructor(props: any);
5773
+ protected get matrix(): any;
5774
+ handleOnRowAddClick(event: any): void;
5775
+ protected renderElement(): JSX.Element;
5776
+ }
5603
5777
  export declare class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
5604
5778
  constructor(props: any);
5605
5779
  protected renderElement(): JSX.Element;
@@ -5609,6 +5783,13 @@ export declare class SurveyQuestionMatrixDynamicRemoveButton extends ReactSurvey
5609
5783
  handleOnRowRemoveClick(event: any): void;
5610
5784
  protected renderElement(): JSX.Element;
5611
5785
  }
5786
+ export declare class SurveyQuestionMatrixHeaderRequired extends ReactSurveyElement {
5787
+ constructor(props: any);
5788
+ get column(): MatrixDropdownColumn;
5789
+ get question(): any;
5790
+ protected getStateElement(): Base;
5791
+ protected renderElement(): JSX.Element;
5792
+ }
5612
5793
  export declare class SurveyQuestionMatrixRow extends ReactSurveyElement {
5613
5794
  constructor(props: any);
5614
5795
  handleOnChange(event: any): void;
@@ -5626,6 +5807,8 @@ export declare class SurveyQuestionMultipleText extends SurveyQuestionElementBas
5626
5807
  }
5627
5808
  export declare class SurveyQuestionOptionItem extends ReactSurveyElement {
5628
5809
  constructor(props: any);
5810
+ componentDidUpdate(prevProps: any, prevState: any): void;
5811
+ componentWillUnmount(): void;
5629
5812
  protected getStateElement(): Base;
5630
5813
  protected canRender(): boolean;
5631
5814
  protected renderElement(): JSX.Element;
@@ -5668,7 +5851,8 @@ export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase
5668
5851
  protected getFooter(): any;
5669
5852
  protected getColumnedBody(cssClasses: any): JSX.Element;
5670
5853
  protected getColumns(cssClasses: any): any;
5671
- protected getItems(cssClasses: any): Array<any>;
5854
+ protected getBody(cssClasses: any): JSX.Element;
5855
+ protected getItems(cssClasses: any, choices: any): Array<any>;
5672
5856
  protected get textStyle(): any;
5673
5857
  protected renderOther(cssClasses: any): JSX.Element;
5674
5858
  }
@@ -6695,10 +6879,14 @@ export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElem
6695
6879
  }
6696
6880
  export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontrolledElement<T> {
6697
6881
  constructor(props: any);
6698
- onClick: (event: any) => void;
6882
+ click: (event: any) => void;
6883
+ clear: (event: any) => void;
6884
+ keyup: (event: any) => void;
6885
+ blur: (event: any) => void;
6699
6886
  protected setValueCore(newValue: any): void;
6700
6887
  protected getValueCore(): any;
6701
6888
  protected renderSelect(cssClasses: any): JSX.Element;
6889
+ createClearButton(): JSX.Element;
6702
6890
  }
6703
6891
  export declare class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {
6704
6892
  constructor(props: any);
@@ -7875,10 +8063,10 @@ export declare class QuestionRatingModel extends Question {
7875
8063
  get ratingRootCss(): string;
7876
8064
  getItemClass(item: ItemValue): string;
7877
8065
  getControlClass(): string;
7878
- get optionsCaption(): string;
7879
- set optionsCaption(val: string);
7880
- get locOptionsCaption(): LocalizableString;
7881
- get showOptionsCaption(): boolean;
8066
+ get placeholder(): string;
8067
+ set placeholder(val: string);
8068
+ get locPlaceholder(): LocalizableString;
8069
+ get allowClear(): boolean;
7882
8070
  get renderedValue(): boolean;
7883
8071
  set renderedValue(val: boolean);
7884
8072
  get visibleChoices(): any;
@@ -8125,10 +8313,14 @@ export declare class QuestionSelectBase extends Question {
8125
8313
  getControlLabelClass(item: ItemValue): string;
8126
8314
  get headItems(): any;
8127
8315
  get footItems(): any;
8316
+ get dataChoices(): any;
8317
+ get bodyItems(): any;
8128
8318
  get hasHeadItems(): boolean;
8129
8319
  get hasFootItems(): boolean;
8130
8320
  get columns(): any;
8131
8321
  get hasColumns(): boolean;
8322
+ get rowLayout(): boolean;
8323
+ get blockedRow(): boolean;
8132
8324
  choicesLoaded(): void;
8133
8325
  getItemValueWrapperComponentName(item: ItemValue): string;
8134
8326
  getItemValueWrapperComponentData(item: ItemValue): any;
@@ -8241,6 +8433,7 @@ export declare class QuestionTextBase extends Question {
8241
8433
  protected calcRenderedPlaceHolder(): void;
8242
8434
  protected hasPlaceHolder(): boolean;
8243
8435
  getControlClass(): string;
8436
+ get ariaRole(): string;
8244
8437
  }
8245
8438
  export declare class SurveyQuestionDropdown extends SurveyQuestionDropdownBase<Question> {
8246
8439
  constructor(props: any);
@@ -8347,6 +8540,7 @@ export declare class QuestionCompositeModel extends QuestionCustomModelBase {
8347
8540
  protected createWrapper(): void;
8348
8541
  getTemplate(): string;
8349
8542
  protected getElement(): SurveyElement;
8543
+ protected getCssRoot(cssClasses: any): string;
8350
8544
  get contentPanel(): PanelModel;
8351
8545
  hasErrors(fireCallback?: boolean, rec?: any): boolean;
8352
8546
  updateElementCss(reNew?: boolean): void;
@@ -8396,17 +8590,17 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
8396
8590
  */
8397
8591
  export declare class QuestionDropdownModel extends QuestionSelectBase {
8398
8592
  constructor(name: string);
8399
- /*
8400
- * This flag controls whether to show options caption item ('Choose...').
8401
- */
8593
+ dropdownListModel: DropdownListModel;
8402
8594
  get showOptionsCaption(): boolean;
8403
8595
  set showOptionsCaption(val: boolean);
8404
- /*
8405
- * Use this property to set the options caption different from the default value. The default value is taken from localization strings.
8406
- */
8407
8596
  get optionsCaption(): string;
8408
8597
  set optionsCaption(val: string);
8409
- get locOptionsCaption(): LocalizableString;
8598
+ /*
8599
+ * The input place holder.
8600
+ */
8601
+ get placeholder(): string;
8602
+ set placeholder(val: string);
8603
+ get locPlaceholder(): LocalizableString;
8410
8604
  getType(): string;
8411
8605
  get selectedItem(): ItemValue;
8412
8606
  supportGoNextPageAutomatic(): boolean;
@@ -8433,19 +8627,20 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
8433
8627
  */
8434
8628
  get autoComplete(): string;
8435
8629
  set autoComplete(val: string);
8436
- showClearButton: boolean;
8630
+ /*
8631
+ * Use it to clear the question value.
8632
+ */
8633
+ allowClear: boolean;
8437
8634
  itemComponent: string;
8438
8635
  denySearch: boolean;
8439
- dropdownWidthMode: "contentWidth" | "editorWidth";
8440
8636
  getControlClass(): string;
8441
8637
  get readOnlyText(): any;
8442
- onClear(event: any): void;
8443
- protected onVisibleChoicesChanged(): void;
8444
- _popupModel: any;
8445
8638
  get popupModel(): any;
8446
8639
  onOpened: EventBase<QuestionDropdownModel>;
8447
8640
  onOpenedCallBack(): void;
8448
- onClick(event: any): void;
8641
+ protected onVisibleChoicesChanged(): void;
8642
+ onClick(e: any): void;
8643
+ onKeyUp(event: any): void;
8449
8644
  }
8450
8645
  /*
8451
8646
  * A Model for html question. Unlike other questions it doesn't have value and title.
@@ -8532,6 +8727,8 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
8532
8727
  onHasDetailPanelCallback: (row: MatrixDropdownRowModelBase) => boolean;
8533
8728
  onCreateDetailPanelCallback: (row: MatrixDropdownRowModelBase, panel: PanelModel) => void;
8534
8729
  onCreateDetailPanelRenderedRowCallback: (renderedRow: QuestionMatrixDropdownRenderedRow) => void;
8730
+ onAddColumn: (column: MatrixDropdownColumn) => void;
8731
+ onRemoveColumn: (column: MatrixDropdownColumn) => void;
8535
8732
  protected createColumnValues(): any;
8536
8733
  /*
8537
8734
  * Returns the type of the object as a string as it represents in the json.
@@ -8659,11 +8856,13 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
8659
8856
  get choices(): any;
8660
8857
  set choices(val: any);
8661
8858
  /*
8662
- * The default options caption for dropdown cell type.
8859
+ * The default placeholder for dropdown cell type.
8663
8860
  */
8861
+ get placeholder(): string;
8862
+ set placeholder(val: string);
8863
+ get locPlaceholder(): LocalizableString;
8664
8864
  get optionsCaption(): string;
8665
8865
  set optionsCaption(val: string);
8666
- get locOptionsCaption(): LocalizableString;
8667
8866
  /*
8668
8867
  * The duplication value error text. Set it to show the text different from the default.
8669
8868
  */
@@ -8920,7 +9119,6 @@ export declare class QuestionTextModel extends QuestionTextBase {
8920
9119
  export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown {
8921
9120
  constructor(props: any);
8922
9121
  protected renderSelect(cssClasses: any): JSX.Element;
8923
- createClearButton(): JSX.Element;
8924
9122
  }
8925
9123
  /*
8926
9124
  * A Model for a button group question.
@@ -9370,10 +9568,11 @@ export declare function property(options?: any): (target: any, key: string) => v
9370
9568
  export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
9371
9569
  export declare function unwrap<T>(value: any): T;
9372
9570
  export declare function getSize(value: any): any;
9571
+ export declare function sanitizeEditableContent(element: any): void;
9373
9572
  export declare function createPopupModalViewModel(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
9374
9573
  export declare function getCurrecyCodes(): Array<any>;
9375
9574
  export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
9376
- export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: any): JSX.Element;
9575
+ export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: IAttachKey2clickOptions): JSX.Element;
9377
9576
  /*
9378
9577
  * Global survey settings
9379
9578
  */
@@ -9573,6 +9772,10 @@ export declare var settings: {
9573
9772
  panel: string,
9574
9773
  question: string,
9575
9774
  },
9775
+ questions: {
9776
+ inputTypes: any,
9777
+ dataList: any,
9778
+ },
9576
9779
  };
9577
9780
  export declare var surveyLocalization: {
9578
9781
  currentLocaleValue: string,
@@ -10659,6 +10862,7 @@ export declare var defaultV2Css: {
10659
10862
  titleCollapsed: string,
10660
10863
  titleOnExpand: string,
10661
10864
  titleOnError: string,
10865
+ titleBar: string,
10662
10866
  description: string,
10663
10867
  container: string,
10664
10868
  withFrame: string,
@@ -10744,6 +10948,7 @@ export declare var defaultV2Css: {
10744
10948
  titleExpandable: string,
10745
10949
  titleExpanded: string,
10746
10950
  titleCollapsed: string,
10951
+ titleBar: string,
10747
10952
  requiredText: string,
10748
10953
  number: string,
10749
10954
  description: string,
@@ -10760,6 +10965,7 @@ export declare var defaultV2Css: {
10760
10965
  expanded: string,
10761
10966
  nested: string,
10762
10967
  invisible: string,
10968
+ composite: string,
10763
10969
  },
10764
10970
  image: {
10765
10971
  mainRoot: string,
@@ -10786,6 +10992,7 @@ export declare var defaultV2Css: {
10786
10992
  },
10787
10993
  checkbox: {
10788
10994
  root: string,
10995
+ rootRow: string,
10789
10996
  rootMultiColumn: string,
10790
10997
  item: string,
10791
10998
  itemOnError: string,
@@ -10807,6 +11014,7 @@ export declare var defaultV2Css: {
10807
11014
  },
10808
11015
  radiogroup: {
10809
11016
  root: string,
11017
+ rootRow: string,
10810
11018
  rootMultiColumn: string,
10811
11019
  item: string,
10812
11020
  itemOnError: string,
@@ -11006,6 +11214,7 @@ export declare var defaultV2Css: {
11006
11214
  maxText: string,
11007
11215
  itemDisabled: string,
11008
11216
  control: string,
11217
+ controlValue: string,
11009
11218
  controlDisabled: string,
11010
11219
  controlEmpty: string,
11011
11220
  onError: string,