survey-react 1.9.39 → 1.9.42

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.39
2
+ * Type definition for Survey JavaScript library for React v1.9.42
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;
@@ -205,9 +209,21 @@ export interface ISize {
205
209
  width: number;
206
210
  height: number;
207
211
  }
212
+ export interface IDialogOptions {
213
+ componentName: string;
214
+ data: any;
215
+ onApply: any;
216
+ onCancel?: any;
217
+ onHide?: any;
218
+ onShow?: any;
219
+ cssClass?: string;
220
+ title?: string;
221
+ displayMode?: "popup" | "overlay";
222
+ }
208
223
  export interface ISurveyTriggerOwner {
209
224
  getObjects(pages: any, questions: any): Array<any>;
210
- setCompleted(): any;
225
+ setCompleted(): void;
226
+ canBeCompleted(): void;
211
227
  triggerExecuted(trigger: Trigger): void;
212
228
  setTriggerValue(name: string, value: any, isVariable: boolean): any;
213
229
  copyTriggerValue(name: string, fromName: string): any;
@@ -531,24 +547,127 @@ export interface IQuestionPanelDynamicData {
531
547
  getSurvey(): ISurvey;
532
548
  getRootData(): ISurveyData;
533
549
  }
534
- export interface ICustomComponentDescription {
550
+ /*
551
+ * An interface used to create custom question types.
552
+ *
553
+ * Refer to the following articles for more information:
554
+ *
555
+ * - [Create Specialized Question Types](https://surveyjs.io/Documentation/Survey-Creator?id=create-specialized-question-types)
556
+ * - [Create Composite Question Types](https://surveyjs.io/Documentation/Survey-Creator?id=create-composite-question-types)
557
+ */
558
+ export interface ICustomQuestionTypeConfiguration {
559
+ /*
560
+ * A name used to identify a custom question type.
561
+ */
535
562
  name: string;
563
+ /*
564
+ * A title used for this custom question type in the UI. When `title` is not specified, the `name` property value is used.
565
+ */
566
+ title?: string;
567
+ /*
568
+ * An icon for the custom question type.
569
+ */
570
+ icon?: string;
571
+ /*
572
+ * 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)).
573
+ */
536
574
  onInit(): void;
537
575
  /*
538
- * Set this property to false if you don't want to show the component in toolbox in Creator
576
+ * Specifies whether the custom question type is available in the Toolbox and the Add Question menu.
577
+ *
578
+ * Default value: `true`
579
+ *
580
+ * 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.
539
581
  */
540
582
  showInToolbox?: boolean;
583
+ /*
584
+ * 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).
585
+ *
586
+ * Parameters:
587
+ *
588
+ * - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - The custom question.
589
+ */
541
590
  onCreated(question: Question): void;
591
+ /*
592
+ * A function that is called when JSON definitions are loaded.
593
+ *
594
+ * Parameters:
595
+ *
596
+ * - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - The custom question.
597
+ */
542
598
  onLoaded(question: Question): void;
599
+ /*
600
+ * A function that is called after the entire question is rendered.
601
+ *
602
+ * Parameters:
603
+ *
604
+ * - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - The custom question.
605
+ * - `htmlElement`: any - An HTML element that represents the custom question.
606
+ */
543
607
  onAfterRender(question: Question, htmlElement: any): void;
608
+ /*
609
+ * 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.
610
+ *
611
+ * Parameters:
612
+ *
613
+ * - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - The composite question.
614
+ * - `element`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - A nested question.
615
+ * - `htmlElement`: any - An HTML element that represents the nested question.
616
+ */
544
617
  onAfterRenderContentElement(question: Question, element: Question, htmlElement: any): void;
618
+ /*
619
+ * A function that is called when a custom question type property is changed. Use it to handle property changes.
620
+ *
621
+ * Parameters:
622
+ *
623
+ * - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - The custom question.
624
+ * - `propertyName`: string - The name of the changed property.
625
+ * - `newValue`: any - A new value for the property.
626
+ */
545
627
  onPropertyChanged(question: Question, propertyName: string, newValue: any): void;
628
+ /*
629
+ * A function that is called when the question value is changed.
630
+ *
631
+ * Parameters:
632
+ *
633
+ * - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - The custom question.
634
+ * - `name`: string - The question's [name](https://surveyjs.io/Documentation/Library?id=Question#name).
635
+ * - `newValue`: any - A new value for the question.
636
+ */
546
637
  onValueChanged(question: Question, name: string, newValue: any): void;
638
+ /*
639
+ * A function that is called when an [ItemValue](https://surveyjs.io/Documentation/Library?id=itemvalue) property is changed.
640
+ *
641
+ * Parameters:
642
+ *
643
+ * - `question`: [Question](https://surveyjs.io/Documentation/Library?id=Question) - The custom question.
644
+ * - `options.obj`: [ItemValue](https://surveyjs.io/Documentation/Library?id=itemvalue) - An `ItemValue` object.
645
+ * - `options.propertyName`: string - The name of the property to which an array of `ItemValue` objects is assigned (for example, `"choices"` or `"rows"`).
646
+ * - `options.name`: string - The name of the changed property: `"text"` or `"value"`.
647
+ * - `options.newValue`: any - A new value for the property.
648
+ */
547
649
  onItemValuePropertyChanged(question: Question, options: any): void;
650
+ /*
651
+ * A function that allows you to override the default `getDisplayValue()` implementation.
652
+ */
548
653
  getDisplayValue?: any;
654
+ /*
655
+ * 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).
656
+ */
549
657
  elementsJSON?: any;
658
+ /*
659
+ * A function that allows you to create nested questions if you do not specify the `elementsJSON` property.
660
+ */
550
661
  createElements?: any;
662
+ /*
663
+ * A JSON definition for a built-in question type on which the custom question type is based.
664
+ *
665
+ * Refer to the [Create Specialized Question Types](https://surveyjs.io/Documentation/Survey-Creator?id=create-specialized-question-types) help topic for more information.
666
+ */
551
667
  questionJSON?: any;
668
+ /*
669
+ * A function that allows you to create a custom question if you do not specify the `questionJSON` property.
670
+ */
552
671
  createQuestion?: any;
553
672
  }
554
673
  export interface IActionBarItemProps {
@@ -570,7 +689,7 @@ export interface ISurveyCreator {
570
689
  export interface ISurveyHeaderProps {
571
690
  survey: any;
572
691
  }
573
- export interface IMAtrixRowProps {
692
+ export interface IMatrixRowProps {
574
693
  model: any;
575
694
  parentMatrix: any;
576
695
  }
@@ -703,7 +822,7 @@ export declare class Base {
703
822
  */
704
823
  get isLoadingFromJson(): boolean;
705
824
  protected getIsLoadingFromJson(): boolean;
706
- startLoadingFromJson(): void;
825
+ startLoadingFromJson(json?: any): void;
707
826
  endLoadingFromJson(): void;
708
827
  /*
709
828
  * Deserialized the current object into JSON
@@ -812,6 +931,11 @@ export declare class Bindings {
812
931
  getJson(): any;
813
932
  setJson(value: any): void;
814
933
  }
934
+ export declare class BrandInfo extends React.Component<any, any> {
935
+ constructor(props: any);
936
+ constructor(props: any, context: any);
937
+ render(): JSX.Element;
938
+ }
815
939
  export declare class ButtonGroupItemModel {
816
940
  constructor(question: QuestionButtonGroupModel, item: ItemValue, index: number);
817
941
  question: QuestionButtonGroupModel;
@@ -838,7 +962,7 @@ export declare class ComponentCollection {
838
962
  onCreateComposite: (name: string, questionJSON: ComponentQuestionJSON) => QuestionCompositeModel;
839
963
  onCreateCustom: (name: string, questionJSON: ComponentQuestionJSON) => QuestionCustomModel;
840
964
  onAddingJson: (name: string, isComposite: boolean) => void;
841
- add(json: ICustomComponentDescription): void;
965
+ add(json: ICustomQuestionTypeConfiguration): void;
842
966
  get items(): any;
843
967
  getCustomQuestionByName(name: string): ComponentQuestionJSON;
844
968
  clear(): void;
@@ -847,9 +971,9 @@ export declare class ComponentCollection {
847
971
  protected createCustomModel(name: string, questionJSON: ComponentQuestionJSON): QuestionCustomModel;
848
972
  }
849
973
  export declare class ComponentQuestionJSON {
850
- constructor(name: string, json: ICustomComponentDescription);
974
+ constructor(name: string, json: ICustomQuestionTypeConfiguration);
851
975
  name: string;
852
- json: ICustomComponentDescription;
976
+ json: ICustomQuestionTypeConfiguration;
853
977
  onInit(): void;
854
978
  onCreated(question: Question): void;
855
979
  onLoaded(question: Question): void;
@@ -1148,13 +1272,13 @@ export declare class OperandMaker {
1148
1272
  }
1149
1273
  export declare class PopupUtils {
1150
1274
  static bottomIndent: number;
1151
- static calculatePosition(targetRect: any, height: number, width: number, verticalPosition: any, horizontalPosition: any, showPointer: boolean): INumberPosition;
1275
+ static calculatePosition(targetRect: any, height: number, width: number, verticalPosition: any, horizontalPosition: any, showPointer: boolean, positionMode?: any): INumberPosition;
1152
1276
  static updateVerticalDimensions(top: number, height: number, windowHeight: number): any;
1153
- static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: any): any;
1277
+ static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: any, positionMode?: any, margins?: any): any;
1154
1278
  static updateVerticalPosition(targetRect: any, height: number, verticalPosition: any, showPointer: boolean, windowHeight: number): any;
1155
1279
  static calculatePopupDirection(verticalPosition: any, horizontalPosition: any): string;
1156
1280
  static calculatePointerTarget(targetRect: any, top: number, left: number, verticalPosition: any, horizontalPosition: any, marginLeft?: number, marginRight?: number): INumberPosition;
1157
- static updatePopupWidthBeforeShow(popupModel: any, target: JSX.Element, e: any): void;
1281
+ static updatePopupWidthBeforeShow(popupModel: any, target: JSX.Element): void;
1158
1282
  }
1159
1283
  export declare class ProcessValue {
1160
1284
  constructor();
@@ -1783,8 +1907,8 @@ export declare class DragDropCore<T> extends Base {
1783
1907
  protected getShortcutText(draggedElement: IShortcutText): string;
1784
1908
  protected createDraggedElementShortcut(text: string, draggedElementNode?: any, event?: any): any;
1785
1909
  protected getDraggedElementClass(): string;
1786
- protected doDragOver(dropTargetNode?: any): void;
1787
- protected afterDragOver(dropTargetNode?: any): void;
1910
+ protected doDragOver(dropTargetNode?: any, event?: any): void;
1911
+ protected afterDragOver(dropTargetNode?: any, event?: any): void;
1788
1912
  getGhostPosition(item: any): string;
1789
1913
  protected isDropTargetValid(dropTarget: any, dropTargetNode?: any): boolean;
1790
1914
  handlePointerCancel: (event: any) => void;
@@ -1794,13 +1918,28 @@ export declare class DragDropCore<T> extends Base {
1794
1918
  protected getDataAttributeValueByNode(node: any): any;
1795
1919
  protected getDropTargetByNode(dropTargetNode: any, event: any): any;
1796
1920
  protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode?: any, event?: any): any;
1797
- protected calculateMiddleOfHTMLElement(HTMLElement: any): number;
1921
+ protected calculateVerticalMiddleOfHTMLElement(HTMLElement: any): number;
1922
+ protected calculateHorizontalMiddleOfHTMLElement(HTMLElement: any): number;
1798
1923
  protected calculateIsBottom(clientY: number, dropTargetNode?: any): boolean;
1799
1924
  protected findDropTargetNodeByDragOverNode(dragOverNode: any): any;
1800
1925
  protected doDrop(): any;
1801
1926
  protected clear: any;
1802
1927
  protected doClear(): void;
1803
1928
  }
1929
+ export declare class DropdownListModel extends Base {
1930
+ constructor(question: Question, onSelectionChanged?: (item: IAction, ...params: any) => void);
1931
+ _popupModel: any;
1932
+ protected listModel: ListModel;
1933
+ protected getAvailableItems(): Array<Action>;
1934
+ protected createListModel(): ListModel;
1935
+ get popupModel(): any;
1936
+ setSearchEnabled(newValue: boolean): void;
1937
+ updateItems(): void;
1938
+ onClick(event: any): void;
1939
+ onClear(event: any): void;
1940
+ onKeyUp(event: any): void;
1941
+ onBlur(event: any): void;
1942
+ }
1804
1943
  export declare class EventBase<T> extends Event<any, any> {
1805
1944
  }
1806
1945
  export declare class ExceedSizeError extends SurveyError {
@@ -2086,6 +2225,7 @@ export declare class LocalizableString implements ILocalizableString {
2086
2225
  localizationName: string;
2087
2226
  onGetTextCallback: (str: string) => string;
2088
2227
  onGetDefaultTextCallback: any;
2228
+ storeDefaultText: boolean;
2089
2229
  onGetLocalizationTextCallback: (str: string) => string;
2090
2230
  onStrChanged: (oldValue: string, newValue: string) => void;
2091
2231
  onSearchChanged: any;
@@ -2180,6 +2320,9 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
2180
2320
  get fullTitle(): string;
2181
2321
  get isRequired(): boolean;
2182
2322
  set isRequired(val: boolean);
2323
+ get isRenderedRequired(): boolean;
2324
+ set isRenderedRequired(val: boolean);
2325
+ updateIsRenderedRequired(val: boolean): void;
2183
2326
  get requiredText(): string;
2184
2327
  get requiredErrorText(): string;
2185
2328
  set requiredErrorText(val: string);
@@ -2235,6 +2378,7 @@ export declare class MatrixDropdownColumn extends Base implements ILocalizableOw
2235
2378
  getRendererContext(locStr: LocalizableString): any;
2236
2379
  getProcessedText(text: string): string;
2237
2380
  createCellQuestion(row: MatrixDropdownRowModelBase): Question;
2381
+ startLoadingFromJson(json?: any): void;
2238
2382
  updateCellQuestion(cellQuestion: Question, data: any, onUpdateJson?: (json: any) => any): void;
2239
2383
  defaultCellTypeChanged(): void;
2240
2384
  protected calcCellQuestionType(row: MatrixDropdownRowModelBase): string;
@@ -2328,8 +2472,8 @@ export declare class MatrixDropdownTotalCell extends MatrixDropdownCell {
2328
2472
  updateCellQuestion(): void;
2329
2473
  getTotalExpression(): string;
2330
2474
  }
2331
- export declare class MatrixRow extends SurveyElementBase<IMAtrixRowProps, any> {
2332
- constructor(props: IMAtrixRowProps);
2475
+ export declare class MatrixRow extends SurveyElementBase<IMatrixRowProps, any> {
2476
+ constructor(props: IMatrixRowProps);
2333
2477
  get model(): any;
2334
2478
  get parentMatrix(): any;
2335
2479
  protected getStateElement(): any;
@@ -2481,6 +2625,7 @@ export declare class PopupBaseViewModel extends Base {
2481
2625
  top: string;
2482
2626
  left: string;
2483
2627
  height: string;
2628
+ width: string;
2484
2629
  minWidth: string;
2485
2630
  isVisible: boolean;
2486
2631
  popupDirection: string;
@@ -2542,6 +2687,7 @@ export declare class PopupModel<T = any> extends Base {
2542
2687
  cssClass: string;
2543
2688
  title: string;
2544
2689
  displayMode: "popup" | "overlay";
2690
+ positionMode: any;
2545
2691
  onVisibilityChanged: EventBase<PopupModel<any>>;
2546
2692
  get isVisible(): boolean;
2547
2693
  set isVisible(val: boolean);
@@ -2754,7 +2900,7 @@ export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
2754
2900
  get question(): any;
2755
2901
  get item(): any;
2756
2902
  getStateElement(): any;
2757
- render(): JSX.Element;
2903
+ renderElement(): JSX.Element;
2758
2904
  protected renderIcon(): JSX.Element;
2759
2905
  protected renderInput(): JSX.Element;
2760
2906
  protected renderCaption(): JSX.Element;
@@ -3017,7 +3163,9 @@ export declare class Trigger extends Base {
3017
3163
  set name(val: string);
3018
3164
  get expression(): string;
3019
3165
  set expression(val: string);
3020
- checkExpression(keys: any, values: any, properties?: any): void;
3166
+ protected canBeExecuted(isOnNextPage: boolean): boolean;
3167
+ protected isExecutingOnNextPage: boolean;
3168
+ checkExpression(isOnNextPage: boolean, keys: any, values: any, properties?: any): void;
3021
3169
  check(value: any): void;
3022
3170
  protected onSuccess(values: any, properties: any): void;
3023
3171
  protected onFailure(): void;
@@ -3069,6 +3217,7 @@ export declare class AdaptiveActionContainer<T extends Action = Action> extends
3069
3217
  minVisibleItemsCount: number;
3070
3218
  isResponsivenessDisabled: boolean;
3071
3219
  protected invisibleItemsListModel: ListModel;
3220
+ static ContainerID: number;
3072
3221
  protected onSet(): void;
3073
3222
  protected onPush(item: T): void;
3074
3223
  protected getRenderedActions(): Array<T>;
@@ -3123,7 +3272,9 @@ export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
3123
3272
  protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
3124
3273
  protected findDropTargetNodeByDragOverNode(dragOverNode: any): any;
3125
3274
  protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
3275
+ protected doDragOver: any;
3126
3276
  protected isDropTargetValid(dropTarget: ItemValue): boolean;
3277
+ protected doBanDropHere: any;
3127
3278
  protected calculateIsBottom(clientY: number): boolean;
3128
3279
  protected afterDragOver(dropTargetNode: any): void;
3129
3280
  protected doDrop(): any;
@@ -3155,6 +3306,8 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
3155
3306
  protected ghostSurveyElement: IElement;
3156
3307
  protected get draggedElementType(): string;
3157
3308
  protected isDraggedElementSelected: boolean;
3309
+ isRight: boolean;
3310
+ protected prevIsRight: boolean;
3158
3311
  startDragToolboxItem(event: any, draggedElementJson: JsonObject, toolboxItemTitle: string): void;
3159
3312
  startDragSurveyElement(event: any, draggedElement: any, isElementSelected?: boolean): void;
3160
3313
  protected getShortcutText(draggedElement: IShortcutText): string;
@@ -3165,9 +3318,11 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
3165
3318
  protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode: any, event: any): any;
3166
3319
  protected isDropTargetValid(): boolean;
3167
3320
  protected calculateIsBottom(clientY: number, dropTargetNode?: any): boolean;
3321
+ protected calculateIsRight(clientX: number, dropTargetNode?: any): boolean;
3168
3322
  protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
3169
3323
  protected findDeepestDropTargetChild(parent: any): any;
3170
- protected afterDragOver(): void;
3324
+ protected doDragOver(dropTargetNode?: any, event?: any): void;
3325
+ protected afterDragOver(dropTargetNode: any, event: any): void;
3171
3326
  protected onStartDrag(): void;
3172
3327
  protected doBanDropHere: any;
3173
3328
  protected doDrop: any;
@@ -3175,6 +3330,12 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
3175
3330
  protected insertGhostElementIntoSurvey(): boolean;
3176
3331
  protected removeGhostElementFromSurvey(): void;
3177
3332
  }
3333
+ export declare class DropdownMultiSelectListModel extends DropdownListModel {
3334
+ constructor(question: Question, onSelectionChanged?: (item: IAction, ...params: any) => void);
3335
+ protected override: any;
3336
+ createListModel(): MultiSelectListModel;
3337
+ onClear(event: any): void;
3338
+ }
3178
3339
  /*
3179
3340
  * Validate e-mail address in the text input
3180
3341
  */
@@ -3247,10 +3408,10 @@ export declare class JsonMissingTypeError extends JsonMissingTypeErrorBase {
3247
3408
  baseClassName: string;
3248
3409
  }
3249
3410
  export declare class ListModel extends ActionContainer {
3250
- constructor(items: any, onItemSelect: (item: Action) => void, allowSelection: boolean, selectedItem?: IAction, onFilteredTextChangedCallback?: (text: string) => void);
3251
- onItemSelect: (item: Action) => void;
3411
+ constructor(items: any, onSelectionChanged: (item: Action, ...params: any) => void, allowSelection: boolean, selectedItem?: IAction, onFilteredTextChangedCallback?: (text: string) => void);
3412
+ onSelectionChanged: (item: Action, ...params: any) => void;
3252
3413
  allowSelection: boolean;
3253
- denySearch: boolean;
3414
+ searchEnabled: boolean;
3254
3415
  needFilter: boolean;
3255
3416
  isExpanded: boolean;
3256
3417
  selectedItem: IAction;
@@ -3259,7 +3420,7 @@ export declare class ListModel extends ActionContainer {
3259
3420
  static MINELEMENTCOUNT: number;
3260
3421
  isItemVisible(item: Action): boolean;
3261
3422
  protected onSet(): void;
3262
- selectItem: (itemValue: Action) => void;
3423
+ onItemClick: (itemValue: Action) => void;
3263
3424
  isItemDisabled: (itemValue: Action) => boolean;
3264
3425
  isItemSelected: (itemValue: Action) => boolean;
3265
3426
  getItemClass: (itemValue: Action) => string;
@@ -3531,6 +3692,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3531
3692
  get isErrorsModeTooltip(): boolean;
3532
3693
  protected getIsErrorsModeTooltip(): boolean;
3533
3694
  get hasParent(): boolean;
3695
+ isSingleInRow: boolean;
3534
3696
  protected get hasFrameV2(): boolean;
3535
3697
  /*
3536
3698
  * Use it to set the specific width to the survey element like css style (%, px, em etc).
@@ -4279,6 +4441,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4279
4441
  get completedStateCss(): string;
4280
4442
  getCompletedStateCss(): string;
4281
4443
  lazyRenderingValue: boolean;
4444
+ showBrandInfo: boolean;
4282
4445
  /*
4283
4446
  * By default all rows are rendered no matters if they are visible or not.
4284
4447
  * Set it true, and survey markup rows will be rendered only if they are visible in viewport.
@@ -5068,6 +5231,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
5068
5231
  protected doServerValidation(doComplete: boolean, isPreview?: boolean): boolean;
5069
5232
  protected doNextPage(): void;
5070
5233
  setCompleted(): void;
5234
+ canBeCompleted(): void;
5071
5235
  /*
5072
5236
  * Returns the HTML content for the complete page.
5073
5237
  */
@@ -5373,6 +5537,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
5373
5537
  */
5374
5538
  get widthMode(): string;
5375
5539
  set widthMode(val: string);
5540
+ calculatedWidthMode: string;
5376
5541
  calculateWidthMode(): string;
5377
5542
  get timerInfoText(): string;
5378
5543
  get timerModel(): SurveyTimerModel;
@@ -5502,7 +5667,7 @@ export declare class SurveyQuestionButtonGroup extends SurveyQuestionElementBase
5502
5667
  constructor(props: any);
5503
5668
  protected get question(): any;
5504
5669
  getStateElement(): any;
5505
- render(): JSX.Element;
5670
+ renderElement(): JSX.Element;
5506
5671
  renderItems(): any;
5507
5672
  }
5508
5673
  export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
@@ -5513,7 +5678,8 @@ export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
5513
5678
  protected getFooter(): any;
5514
5679
  protected getColumnedBody(cssClasses: any): JSX.Element;
5515
5680
  protected getColumns(cssClasses: any): any;
5516
- protected getItems(cssClasses: any): Array<any>;
5681
+ protected getBody(cssClasses: any): JSX.Element;
5682
+ protected getItems(cssClasses: any, choices: any): Array<any>;
5517
5683
  protected get textStyle(): any;
5518
5684
  protected renderOther(): JSX.Element;
5519
5685
  protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): JSX.Element;
@@ -5628,6 +5794,12 @@ export declare class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElem
5628
5794
  renderRow(keyValue: any, row: any, cssClasses: any): JSX.Element;
5629
5795
  renderCell(cell: any, index: number, cssClasses: any): JSX.Element;
5630
5796
  }
5797
+ export declare class SurveyQuestionMatrixDynamicAddButton extends ReactSurveyElement {
5798
+ constructor(props: any);
5799
+ protected get matrix(): any;
5800
+ handleOnRowAddClick(event: any): void;
5801
+ protected renderElement(): JSX.Element;
5802
+ }
5631
5803
  export declare class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
5632
5804
  constructor(props: any);
5633
5805
  protected renderElement(): JSX.Element;
@@ -5637,6 +5809,13 @@ export declare class SurveyQuestionMatrixDynamicRemoveButton extends ReactSurvey
5637
5809
  handleOnRowRemoveClick(event: any): void;
5638
5810
  protected renderElement(): JSX.Element;
5639
5811
  }
5812
+ export declare class SurveyQuestionMatrixHeaderRequired extends ReactSurveyElement {
5813
+ constructor(props: any);
5814
+ get column(): MatrixDropdownColumn;
5815
+ get question(): any;
5816
+ protected getStateElement(): Base;
5817
+ protected renderElement(): JSX.Element;
5818
+ }
5640
5819
  export declare class SurveyQuestionMatrixRow extends ReactSurveyElement {
5641
5820
  constructor(props: any);
5642
5821
  handleOnChange(event: any): void;
@@ -5698,7 +5877,8 @@ export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase
5698
5877
  protected getFooter(): any;
5699
5878
  protected getColumnedBody(cssClasses: any): JSX.Element;
5700
5879
  protected getColumns(cssClasses: any): any;
5701
- protected getItems(cssClasses: any): Array<any>;
5880
+ protected getBody(cssClasses: any): JSX.Element;
5881
+ protected getItems(cssClasses: any, choices: any): Array<any>;
5702
5882
  protected get textStyle(): any;
5703
5883
  protected renderOther(cssClasses: any): JSX.Element;
5704
5884
  }
@@ -5757,7 +5937,7 @@ export declare class SurveyTrigger extends Trigger {
5757
5937
  get owner(): ISurveyTriggerOwner;
5758
5938
  setOwner(owner: ISurveyTriggerOwner): void;
5759
5939
  getSurvey(live?: boolean): ISurvey;
5760
- get isOnNextPage(): boolean;
5940
+ protected isRealExecution(): boolean;
5761
5941
  protected onSuccessExecuted(): void;
5762
5942
  }
5763
5943
  export declare class SurveyWindow extends Survey {
@@ -5838,6 +6018,14 @@ export declare class DragDropRankingChoices extends DragDropChoices {
5838
6018
  protected doDrop: any;
5839
6019
  protected doClear: any;
5840
6020
  }
6021
+ export declare class MultiSelectListModel extends ListModel {
6022
+ constructor(items: any, onSelectionChanged: (item: Action, status: string) => void, allowSelection: boolean, selectedItems?: any, onFilteredTextChangedCallback?: (text: string) => void);
6023
+ selectedItems: any;
6024
+ onItemClick: (item: Action) => void;
6025
+ isItemDisabled: (itemValue: Action) => boolean;
6026
+ isItemSelected: (itemValue: Action) => boolean;
6027
+ setSelectedItems(newItems: any): void;
6028
+ }
5841
6029
  /*
5842
6030
  * A base class for a Panel and Page objects.
5843
6031
  */
@@ -6725,10 +6913,14 @@ export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElem
6725
6913
  }
6726
6914
  export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontrolledElement<T> {
6727
6915
  constructor(props: any);
6728
- onClick: (event: any) => void;
6916
+ click: (event: any) => void;
6917
+ clear: (event: any) => void;
6918
+ keyup: (event: any) => void;
6919
+ blur: (event: any) => void;
6729
6920
  protected setValueCore(newValue: any): void;
6730
6921
  protected getValueCore(): any;
6731
6922
  protected renderSelect(cssClasses: any): JSX.Element;
6923
+ createClearButton(): JSX.Element;
6732
6924
  }
6733
6925
  export declare class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {
6734
6926
  constructor(props: any);
@@ -6786,7 +6978,7 @@ export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElemen
6786
6978
  export declare class SurveyTriggerComplete extends SurveyTrigger {
6787
6979
  constructor();
6788
6980
  getType(): string;
6789
- get isOnNextPage(): boolean;
6981
+ protected isRealExecution(): boolean;
6790
6982
  protected onSuccess(values: any, properties: any): void;
6791
6983
  }
6792
6984
  /*
@@ -6836,7 +7028,7 @@ export declare class SurveyTriggerSkip extends SurveyTrigger {
6836
7028
  getType(): string;
6837
7029
  get gotoName(): string;
6838
7030
  set gotoName(val: string);
6839
- get isOnNextPage(): boolean;
7031
+ protected canBeExecuted(isOnNextPage: boolean): boolean;
6840
7032
  protected onSuccess(values: any, properties: any): void;
6841
7033
  }
6842
7034
  /*
@@ -8155,10 +8347,14 @@ export declare class QuestionSelectBase extends Question {
8155
8347
  getControlLabelClass(item: ItemValue): string;
8156
8348
  get headItems(): any;
8157
8349
  get footItems(): any;
8350
+ get dataChoices(): any;
8351
+ get bodyItems(): any;
8158
8352
  get hasHeadItems(): boolean;
8159
8353
  get hasFootItems(): boolean;
8160
8354
  get columns(): any;
8161
8355
  get hasColumns(): boolean;
8356
+ get rowLayout(): boolean;
8357
+ get blockedRow(): boolean;
8162
8358
  choicesLoaded(): void;
8163
8359
  getItemValueWrapperComponentName(item: ItemValue): string;
8164
8360
  getItemValueWrapperComponentData(item: ItemValue): any;
@@ -8271,6 +8467,7 @@ export declare class QuestionTextBase extends Question {
8271
8467
  protected calcRenderedPlaceHolder(): void;
8272
8468
  protected hasPlaceHolder(): boolean;
8273
8469
  getControlClass(): string;
8470
+ get ariaRole(): string;
8274
8471
  }
8275
8472
  export declare class SurveyQuestionDropdown extends SurveyQuestionDropdownBase<Question> {
8276
8473
  constructor(props: any);
@@ -8290,6 +8487,11 @@ export declare class SurveyQuestionRatingDropdown extends SurveyQuestionDropdown
8290
8487
  constructor(props: any);
8291
8488
  protected renderElement(): JSX.Element;
8292
8489
  }
8490
+ export declare class SurveyQuestionTagbox extends SurveyQuestionDropdownBase<Question> {
8491
+ constructor(props: any);
8492
+ protected renderElement(): JSX.Element;
8493
+ protected renderOther(cssClasses: any): JSX.Element;
8494
+ }
8293
8495
  /*
8294
8496
  * The flow panel object. It is a container with flow layout where you can mix questions with markdown text.
8295
8497
  */
@@ -8377,6 +8579,7 @@ export declare class QuestionCompositeModel extends QuestionCustomModelBase {
8377
8579
  protected createWrapper(): void;
8378
8580
  getTemplate(): string;
8379
8581
  protected getElement(): SurveyElement;
8582
+ protected getCssRoot(cssClasses: any): string;
8380
8583
  get contentPanel(): PanelModel;
8381
8584
  hasErrors(fireCallback?: boolean, rec?: any): boolean;
8382
8585
  updateElementCss(reNew?: boolean): void;
@@ -8426,12 +8629,13 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
8426
8629
  */
8427
8630
  export declare class QuestionDropdownModel extends QuestionSelectBase {
8428
8631
  constructor(name: string);
8632
+ dropdownListModel: DropdownListModel;
8429
8633
  get showOptionsCaption(): boolean;
8430
8634
  set showOptionsCaption(val: boolean);
8431
8635
  get optionsCaption(): string;
8432
8636
  set optionsCaption(val: string);
8433
8637
  /*
8434
- * The input place holder.
8638
+ * A text displayed in the input field when it doesn't have a value.
8435
8639
  */
8436
8640
  get placeholder(): string;
8437
8641
  set placeholder(val: string);
@@ -8463,20 +8667,25 @@ export declare class QuestionDropdownModel extends QuestionSelectBase {
8463
8667
  get autoComplete(): string;
8464
8668
  set autoComplete(val: string);
8465
8669
  /*
8466
- * Use it to clear the question value.
8670
+ * Specifies whether to display a button that clears the selected value.
8467
8671
  */
8468
8672
  allowClear: boolean;
8673
+ /*
8674
+ * The name of a component used to render drop-down menu items.
8675
+ */
8469
8676
  itemComponent: string;
8470
- denySearch: boolean;
8677
+ /*
8678
+ * Specifies whether to display a search bar in the drop-down menu.
8679
+ */
8680
+ searchEnabled: boolean;
8471
8681
  getControlClass(): string;
8472
8682
  get readOnlyText(): any;
8473
- onClear(event: any): void;
8474
- protected onVisibleChoicesChanged(): void;
8475
- _popupModel: any;
8476
8683
  get popupModel(): any;
8477
8684
  onOpened: EventBase<QuestionDropdownModel>;
8478
8685
  onOpenedCallBack(): void;
8479
- onClick(event: any): void;
8686
+ protected onVisibleChoicesChanged(): void;
8687
+ onClick(e: any): void;
8688
+ onKeyUp(event: any): void;
8480
8689
  }
8481
8690
  /*
8482
8691
  * A Model for html question. Unlike other questions it doesn't have value and title.
@@ -8563,6 +8772,8 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
8563
8772
  onHasDetailPanelCallback: (row: MatrixDropdownRowModelBase) => boolean;
8564
8773
  onCreateDetailPanelCallback: (row: MatrixDropdownRowModelBase, panel: PanelModel) => void;
8565
8774
  onCreateDetailPanelRenderedRowCallback: (renderedRow: QuestionMatrixDropdownRenderedRow) => void;
8775
+ onAddColumn: (column: MatrixDropdownColumn) => void;
8776
+ onRemoveColumn: (column: MatrixDropdownColumn) => void;
8566
8777
  protected createColumnValues(): any;
8567
8778
  /*
8568
8779
  * Returns the type of the object as a string as it represents in the json.
@@ -8953,7 +9164,6 @@ export declare class QuestionTextModel extends QuestionTextBase {
8953
9164
  export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown {
8954
9165
  constructor(props: any);
8955
9166
  protected renderSelect(cssClasses: any): JSX.Element;
8956
- createClearButton(): JSX.Element;
8957
9167
  }
8958
9168
  /*
8959
9169
  * A Model for a button group question.
@@ -9399,14 +9609,47 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
9399
9609
  get longTap(): boolean;
9400
9610
  set longTap(val: boolean);
9401
9611
  }
9612
+ /*
9613
+ * A Model for a tagbox question
9614
+ */
9615
+ export declare class QuestionTagboxModel extends QuestionCheckboxModel {
9616
+ constructor(name: string);
9617
+ dropdownListModel: DropdownMultiSelectListModel;
9618
+ onSurveyLoad(): void;
9619
+ get readOnlyText(): any;
9620
+ /*
9621
+ * Specifies whether to display a button that clears the selected value.
9622
+ */
9623
+ allowClear: boolean;
9624
+ /*
9625
+ * Specifies whether to display a search bar in the drop-down menu.
9626
+ */
9627
+ searchEnabled: boolean;
9628
+ /*
9629
+ * A text displayed in the input field when it doesn't have a value.
9630
+ */
9631
+ get placeholder(): string;
9632
+ set placeholder(val: string);
9633
+ get locPlaceholder(): LocalizableString;
9634
+ getType(): string;
9635
+ get popupModel(): any;
9636
+ getControlClass(): string;
9637
+ protected onVisibleChoicesChanged(): void;
9638
+ }
9402
9639
  export declare function property(options?: any): (target: any, key: string) => void;
9403
9640
  export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
9404
9641
  export declare function unwrap<T>(value: any): T;
9405
9642
  export declare function getSize(value: any): any;
9406
- export declare function createPopupModalViewModel(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
9643
+ export declare function doKey2ClickBlur(evt: any): void;
9644
+ export declare function doKey2ClickUp(evt: any, options?: IAttachKey2clickOptions): void;
9645
+ export declare function doKey2ClickDown(evt: any, options?: IAttachKey2clickOptions): void;
9646
+ export declare function sanitizeEditableContent(element: any): void;
9647
+ export declare function createDialogOptions(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): IDialogOptions;
9648
+ export declare function createPopupModalViewModel(options: IDialogOptions): PopupBaseViewModel;
9407
9649
  export declare function getCurrecyCodes(): Array<any>;
9408
9650
  export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
9409
- export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: any): JSX.Element;
9651
+ export declare function showDialog(dialogOptions: any): void;
9652
+ export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: IAttachKey2clickOptions): JSX.Element;
9410
9653
  /*
9411
9654
  * Global survey settings
9412
9655
  */
@@ -9606,6 +9849,10 @@ export declare var settings: {
9606
9849
  panel: string,
9607
9850
  question: string,
9608
9851
  },
9852
+ questions: {
9853
+ inputTypes: any,
9854
+ dataList: any,
9855
+ },
9609
9856
  };
9610
9857
  export declare var surveyLocalization: {
9611
9858
  currentLocaleValue: string,
@@ -9976,6 +10223,18 @@ export declare var defaultStandardCss: {
9976
10223
  variables: {
9977
10224
  themeMark: string,
9978
10225
  },
10226
+ tagbox: {
10227
+ root: string,
10228
+ small: string,
10229
+ selectWrapper: string,
10230
+ other: string,
10231
+ cleanButton: string,
10232
+ cleanButtonSvg: string,
10233
+ cleanButtonIconId: string,
10234
+ control: string,
10235
+ controlValue: string,
10236
+ controlEmpty: string,
10237
+ },
9979
10238
  };
9980
10239
  export declare var surveyTimerFunctions: {
9981
10240
  setTimeout: (func: any) => any,
@@ -10759,6 +11018,7 @@ export declare var defaultV2Css: {
10759
11018
  pageDescription: string,
10760
11019
  row: string,
10761
11020
  rowMultiple: string,
11021
+ pageRow: string,
10762
11022
  question: {
10763
11023
  mainRoot: string,
10764
11024
  flowRoot: string,
@@ -10795,6 +11055,7 @@ export declare var defaultV2Css: {
10795
11055
  expanded: string,
10796
11056
  nested: string,
10797
11057
  invisible: string,
11058
+ composite: string,
10798
11059
  },
10799
11060
  image: {
10800
11061
  mainRoot: string,
@@ -10821,6 +11082,7 @@ export declare var defaultV2Css: {
10821
11082
  },
10822
11083
  checkbox: {
10823
11084
  root: string,
11085
+ rootRow: string,
10824
11086
  rootMultiColumn: string,
10825
11087
  item: string,
10826
11088
  itemOnError: string,
@@ -10842,6 +11104,7 @@ export declare var defaultV2Css: {
10842
11104
  },
10843
11105
  radiogroup: {
10844
11106
  root: string,
11107
+ rootRow: string,
10845
11108
  rootMultiColumn: string,
10846
11109
  item: string,
10847
11110
  itemOnError: string,
@@ -11041,6 +11304,7 @@ export declare var defaultV2Css: {
11041
11304
  maxText: string,
11042
11305
  itemDisabled: string,
11043
11306
  control: string,
11307
+ controlValue: string,
11044
11308
  controlDisabled: string,
11045
11309
  controlEmpty: string,
11046
11310
  onError: string,
@@ -11159,6 +11423,29 @@ export declare var defaultV2Css: {
11159
11423
  imagepickerGapBetweenItems: string,
11160
11424
  themeMark: string,
11161
11425
  },
11426
+ tagbox: {
11427
+ root: string,
11428
+ small: string,
11429
+ selectWrapper: string,
11430
+ other: string,
11431
+ onError: string,
11432
+ label: string,
11433
+ item: string,
11434
+ itemDisabled: string,
11435
+ itemChecked: string,
11436
+ itemHover: string,
11437
+ itemControl: string,
11438
+ itemDecorator: string,
11439
+ cleanButton: string,
11440
+ cleanButtonSvg: string,
11441
+ cleanButtonIconId: string,
11442
+ control: string,
11443
+ controlValue: string,
11444
+ controlDisabled: string,
11445
+ controlEmpty: string,
11446
+ controlLabel: string,
11447
+ materialDecorator: string,
11448
+ },
11162
11449
  };
11163
11450
  export declare var modernCss: {
11164
11451
  root: string,