survey-react-ui 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-react-ui",
3
- "version": "1.9.39",
3
+ "version": "1.9.42",
4
4
  "description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Type definition for Survey JavaScript library for React (without core) v1.9.39
2
+ * Type definition for Survey JavaScript library for React (without core) 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
  */
@@ -11,10 +11,10 @@ import { ButtonGroupItemModel, QuestionButtonGroupModel, ButtonGroupItemValue, P
11
11
  import { IElement, ActionDropdownViewModel, TooltipManager, MultipleTextItemModel, PanelModel } from "survey-core";
12
12
  import { QuestionBooleanModel, QuestionCheckboxModel, QuestionEmptyModel, QuestionExpressionModel, QuestionFileModel } from "survey-core";
13
13
  import { QuestionHtmlModel, QuestionImageModel, QuestionImagePickerModel, ImageItemValue, QuestionMatrixModel } from "survey-core";
14
- import { AdaptiveActionContainer, QuestionMultipleTextModel, QuestionPanelDynamicModel, QuestionRadiogroupModel, QuestionRankingModel } from "survey-core";
15
- import { QuestionRatingModel, RenderedRatingItem, QuestionSignaturePadModel, SurveyTimerModel, SurveyWindowModel } from "survey-core";
16
- import { FlowPanelModel, QuestionCommentModel, QuestionCompositeModel, QuestionCustomModel, QuestionMatrixDynamicModel } from "survey-core";
17
- import { QuestionTextModel, IArrayPropertyDecoratorOptions } from "survey-core";
14
+ import { AdaptiveActionContainer, QuestionMatrixDynamicModel, MatrixDropdownColumn, QuestionMultipleTextModel, QuestionPanelDynamicModel } from "survey-core";
15
+ import { QuestionRadiogroupModel, QuestionRankingModel, QuestionRatingModel, RenderedRatingItem, QuestionSignaturePadModel } from "survey-core";
16
+ import { SurveyTimerModel, SurveyWindowModel, FlowPanelModel, QuestionCommentModel, QuestionCompositeModel } from "survey-core";
17
+ import { QuestionCustomModel, QuestionTextModel, IArrayPropertyDecoratorOptions, IDialogOptions, IAttachKey2clickOptions } from "survey-core";
18
18
  import * as React from "react";
19
19
 
20
20
  export { SurveyModel } from "survey-core";
@@ -48,7 +48,7 @@ export interface ISurveyCreator {
48
48
  export interface ISurveyHeaderProps {
49
49
  survey: SurveyModel;
50
50
  }
51
- export interface IMAtrixRowProps {
51
+ export interface IMatrixRowProps {
52
52
  model: QuestionMatrixDropdownRenderedRow;
53
53
  parentMatrix: QuestionMatrixDropdownModelBase;
54
54
  }
@@ -62,6 +62,11 @@ export interface IListProps {
62
62
  export interface ILogoImageProps {
63
63
  data: SurveyModel;
64
64
  }
65
+ export declare class BrandInfo extends React.Component<any, any> {
66
+ constructor(props: any);
67
+ constructor(props: any, context: any);
68
+ render(): JSX.Element;
69
+ }
65
70
  export declare class LogoImage extends React.Component<ILogoImageProps, any> {
66
71
  constructor(props: ILogoImageProps);
67
72
  render(): JSX.Element;
@@ -199,8 +204,8 @@ export declare class ListItem extends SurveyElementBase<IListItemProps, any> {
199
204
  getStateElement(): any;
200
205
  render(): JSX.Element;
201
206
  }
202
- export declare class MatrixRow extends SurveyElementBase<IMAtrixRowProps, any> {
203
- constructor(props: IMAtrixRowProps);
207
+ export declare class MatrixRow extends SurveyElementBase<IMatrixRowProps, any> {
208
+ constructor(props: IMatrixRowProps);
204
209
  get model(): QuestionMatrixDropdownRenderedRow;
205
210
  get parentMatrix(): QuestionMatrixDropdownModelBase;
206
211
  protected getStateElement(): QuestionMatrixDropdownRenderedRow;
@@ -308,7 +313,7 @@ export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
308
313
  get question(): QuestionButtonGroupModel;
309
314
  get item(): ButtonGroupItemValue;
310
315
  getStateElement(): ButtonGroupItemValue;
311
- render(): JSX.Element;
316
+ renderElement(): JSX.Element;
312
317
  protected renderIcon(): JSX.Element;
313
318
  protected renderInput(): JSX.Element;
314
319
  protected renderCaption(): JSX.Element;
@@ -498,7 +503,7 @@ export declare class SurveyQuestionButtonGroup extends SurveyQuestionElementBase
498
503
  constructor(props: any);
499
504
  protected get question(): QuestionButtonGroupModel;
500
505
  getStateElement(): QuestionButtonGroupModel;
501
- render(): JSX.Element;
506
+ renderElement(): JSX.Element;
502
507
  renderItems(): any;
503
508
  }
504
509
  export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
@@ -509,7 +514,8 @@ export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
509
514
  protected getFooter(): any;
510
515
  protected getColumnedBody(cssClasses: any): JSX.Element;
511
516
  protected getColumns(cssClasses: any): any;
512
- protected getItems(cssClasses: any): Array<any>;
517
+ protected getBody(cssClasses: any): JSX.Element;
518
+ protected getItems(cssClasses: any, choices: any): Array<any>;
513
519
  protected get textStyle(): any;
514
520
  protected renderOther(): JSX.Element;
515
521
  protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): JSX.Element;
@@ -624,6 +630,12 @@ export declare class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElem
624
630
  renderRow(keyValue: any, row: QuestionMatrixDropdownRenderedRow, cssClasses: any): JSX.Element;
625
631
  renderCell(cell: QuestionMatrixDropdownRenderedCell, index: number, cssClasses: any): JSX.Element;
626
632
  }
633
+ export declare class SurveyQuestionMatrixDynamicAddButton extends ReactSurveyElement {
634
+ constructor(props: any);
635
+ protected get matrix(): QuestionMatrixDynamicModel;
636
+ handleOnRowAddClick(event: any): void;
637
+ protected renderElement(): JSX.Element;
638
+ }
627
639
  export declare class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
628
640
  constructor(props: any);
629
641
  protected renderElement(): JSX.Element;
@@ -633,6 +645,13 @@ export declare class SurveyQuestionMatrixDynamicRemoveButton extends ReactSurvey
633
645
  handleOnRowRemoveClick(event: any): void;
634
646
  protected renderElement(): JSX.Element;
635
647
  }
648
+ export declare class SurveyQuestionMatrixHeaderRequired extends ReactSurveyElement {
649
+ constructor(props: any);
650
+ get column(): MatrixDropdownColumn;
651
+ get question(): Question;
652
+ protected getStateElement(): Base;
653
+ protected renderElement(): JSX.Element;
654
+ }
636
655
  export declare class SurveyQuestionMatrixRow extends ReactSurveyElement {
637
656
  constructor(props: any);
638
657
  handleOnChange(event: any): void;
@@ -694,7 +713,8 @@ export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase
694
713
  protected getFooter(): any;
695
714
  protected getColumnedBody(cssClasses: any): JSX.Element;
696
715
  protected getColumns(cssClasses: any): any;
697
- protected getItems(cssClasses: any): Array<any>;
716
+ protected getBody(cssClasses: any): JSX.Element;
717
+ protected getItems(cssClasses: any, choices: any): Array<any>;
698
718
  protected get textStyle(): any;
699
719
  protected renderOther(cssClasses: any): JSX.Element;
700
720
  }
@@ -808,10 +828,14 @@ export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElem
808
828
  }
809
829
  export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontrolledElement<T> {
810
830
  constructor(props: any);
811
- onClick: (event: any) => void;
831
+ click: (event: any) => void;
832
+ clear: (event: any) => void;
833
+ keyup: (event: any) => void;
834
+ blur: (event: any) => void;
812
835
  protected setValueCore(newValue: any): void;
813
836
  protected getValueCore(): any;
814
837
  protected renderSelect(cssClasses: any): JSX.Element;
838
+ createClearButton(): JSX.Element;
815
839
  }
816
840
  export declare class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {
817
841
  constructor(props: any);
@@ -881,13 +905,18 @@ export declare class SurveyQuestionRatingDropdown extends SurveyQuestionDropdown
881
905
  constructor(props: any);
882
906
  protected renderElement(): JSX.Element;
883
907
  }
908
+ export declare class SurveyQuestionTagbox extends SurveyQuestionDropdownBase<Question> {
909
+ constructor(props: any);
910
+ protected renderElement(): JSX.Element;
911
+ protected renderOther(cssClasses: any): JSX.Element;
912
+ }
884
913
  export declare class SurveyQuestionDropdownSelect extends SurveyQuestionDropdown {
885
914
  constructor(props: any);
886
915
  protected renderSelect(cssClasses: any): JSX.Element;
887
- createClearButton(): JSX.Element;
888
916
  }
889
917
  export declare function property(options?: any): (target: any, key: string) => void;
890
918
  export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): (target: any, key: string) => void;
891
919
  export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
892
- export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: any): JSX.Element;
920
+ export declare function showDialog(dialogOptions: IDialogOptions): void;
921
+ export declare function attachKey2click(element: JSX.Element, viewModel?: any, options?: IAttachKey2clickOptions): JSX.Element;
893
922
  export declare var registerFunction: (name: string, func: any) => any;