survey-react-ui 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-react-ui",
3
- "version": "1.9.4",
3
+ "version": "1.9.8",
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,6 +1,6 @@
1
1
  /*
2
- * Type definition for Survey JavaScript library for React (without core) v1.9.4
3
- * Copyright (c) 2015-2021 Devsoft Baltic OÜ - https://surveyjs.io/
2
+ * Type definition for Survey JavaScript library for React (without core) 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 { Action, PopupModel, ActionContainer, Question, SurveyError } from "survey-core";
@@ -70,20 +70,18 @@ export declare class LogoImage extends React.Component<ILogoImageProps, any> {
70
70
  render(): any;
71
71
  }
72
72
  export declare class ReactElementFactory {
73
- constructor();
74
73
  static Instance: ReactElementFactory;
75
74
  creatorHash: any;
76
75
  registerElement(elementType: string, elementCreator: any): void;
77
- getAllTypes(): any;
76
+ getAllTypes(): Array<any>;
78
77
  isElementRegistered(elementType: string): boolean;
79
78
  createElement(elementType: string, params: any): any;
80
79
  }
81
80
  export declare class ReactQuestionFactory {
82
- constructor();
83
81
  static Instance: ReactQuestionFactory;
84
82
  creatorHash: any;
85
83
  registerQuestion(questionType: string, questionCreator: any): void;
86
- getAllTypes(): any;
84
+ getAllTypes(): Array<any>;
87
85
  createQuestion(questionType: string, params: any): any;
88
86
  }
89
87
  export declare class Skeleton extends React.Component<any, any> {
@@ -109,7 +107,7 @@ export declare class SurveyElementBase<P, S> extends React.Component<P, S> {
109
107
  protected canRender(): boolean;
110
108
  protected renderElement(): any;
111
109
  protected get changedStatePropName(): string;
112
- protected getStateElements(): any;
110
+ protected getStateElements(): Array<Base>;
113
111
  protected getStateElement(): Base;
114
112
  protected get isDisplayMode(): boolean;
115
113
  protected renderLocString(locStr: LocalizableString, style?: any): any;
@@ -170,7 +168,7 @@ export declare class TitleActions extends React.Component<any, any> {
170
168
  export declare class TitleContent extends React.Component<any, any> {
171
169
  constructor(props: any);
172
170
  render(): any;
173
- protected renderTitleSpans(element: ITitleOwner, cssClasses: any): any;
171
+ protected renderTitleSpans(element: ITitleOwner, cssClasses: any): Array<Element>;
174
172
  }
175
173
  export declare class TitleElement extends React.Component<any, any> {
176
174
  constructor(props: any);
@@ -181,7 +179,7 @@ export declare class List extends SurveyElementBase<IListProps, any> {
181
179
  get model(): ListModel;
182
180
  handleKeydown: any;
183
181
  getStateElement(): ListModel;
184
- render(): any;
182
+ renderElement(): any;
185
183
  renderItems(): any;
186
184
  searchElementContent(): any;
187
185
  }
@@ -238,6 +236,8 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
238
236
  static get cssType(): string;
239
237
  static set cssType(val: string);
240
238
  protected survey: ReactSurveyModel;
239
+ rootNodeId: string;
240
+ rootNodeClassName: string;
241
241
  protected getStateElement(): Base;
242
242
  shouldComponentUpdate(nextProps: any, nextState: any): boolean;
243
243
  componentDidUpdate(prevProps: any, prevState: any): void;
@@ -333,7 +333,7 @@ export declare class SurveyPanelBase extends SurveyElementBase<any, any> {
333
333
  componentDidUpdate(prevProps: any, prevState: any): void;
334
334
  protected canRender(): boolean;
335
335
  renderedRowsCache: any;
336
- protected renderRows(css: any): any;
336
+ protected renderRows(css: any): Array<Element>;
337
337
  protected createRow(row: QuestionRowModel, css: any): any;
338
338
  }
339
339
  export declare class SurveyProgress extends SurveyNavigationBase {
@@ -349,7 +349,7 @@ export declare class SurveyProgressButtons extends SurveyNavigationBase {
349
349
  updateScroller: any;
350
350
  listContainerRef: any;
351
351
  render(): any;
352
- protected getListElements(): any;
352
+ protected getListElements(): Array<Element>;
353
353
  protected renderListElement(page: PageModel, index: number): any;
354
354
  protected isListElementClickable(index: number): boolean;
355
355
  protected getListElementCss(index: number): string;
@@ -498,7 +498,7 @@ export declare class SurveyQuestionCheckbox extends SurveyQuestionElementBase {
498
498
  protected get question(): QuestionCheckboxModel;
499
499
  protected renderElement(): any;
500
500
  protected getColumns(cssClasses: any): any;
501
- protected getItems(cssClasses: any): any;
501
+ protected getItems(cssClasses: any): Array<any>;
502
502
  protected get textStyle(): any;
503
503
  protected renderItem(key: string, item: any, isFirst: boolean, cssClasses: any, index: string): any;
504
504
  }
@@ -565,7 +565,7 @@ export declare class SurveyQuestionImagePicker extends SurveyQuestionElementBase
565
565
  protected get question(): QuestionImagePickerModel;
566
566
  handleOnChange(event: any): void;
567
567
  protected renderElement(): any;
568
- protected getItems(cssClasses: any): any;
568
+ protected getItems(cssClasses: any): Array<any>;
569
569
  protected get textStyle(): any;
570
570
  protected renderItem(key: string, item: ItemValue, cssClasses: any): any;
571
571
  }
@@ -670,14 +670,14 @@ export declare class SurveyQuestionRadiogroup extends SurveyQuestionElementBase
670
670
  protected get question(): QuestionRadiogroupModel;
671
671
  protected renderElement(): any;
672
672
  protected getColumns(cssClasses: any): any;
673
- protected getItems(cssClasses: any): any;
673
+ protected getItems(cssClasses: any): Array<any>;
674
674
  protected get textStyle(): any;
675
675
  }
676
676
  export declare class SurveyQuestionRanking extends SurveyQuestionElementBase {
677
677
  constructor(props: any);
678
678
  protected get question(): QuestionRankingModel;
679
679
  protected renderElement(): any;
680
- protected getItems(): any;
680
+ protected getItems(): Array<any>;
681
681
  protected renderItem(item: ItemValue, i: number, handleKeydown: any, handlePointerDown: any, cssClasses: any, itemClass: string, question: QuestionRankingModel): any;
682
682
  }
683
683
  export declare class SurveyQuestionRankingItem extends ReactSurveyElement {
@@ -716,7 +716,7 @@ export declare class SurveyQuestionUncontrolledElement<T> extends SurveyQuestion
716
716
  export declare class SurveyWindow extends Survey {
717
717
  constructor(props: any);
718
718
  protected window: ReactWindowModel;
719
- protected getStateElements(): any;
719
+ protected getStateElements(): Array<Base>;
720
720
  handleOnExpanded(event: any): void;
721
721
  protected canRender(): boolean;
722
722
  protected renderElement(): any;
@@ -746,10 +746,10 @@ export declare class SurveyFlowPanel extends SurveyPanel {
746
746
  componentWillUnmount(): void;
747
747
  protected getQuestion(name: string): Question;
748
748
  protected renderQuestion(question: Question): string;
749
- protected renderRows(): any;
749
+ protected renderRows(): Array<Element>;
750
750
  renderedIndex: number;
751
751
  protected renderHtml(): any;
752
- protected renderNodes(domNodes: any): any;
752
+ protected renderNodes(domNodes: any): Array<Element>;
753
753
  protected renderParentNode(node: any): any;
754
754
  protected renderNode(node: any): any;
755
755
  protected renderContent(style: any, rows: any): any;
@@ -782,7 +782,7 @@ export declare class SurveyQuestionComposite extends SurveyQuestionUncontrolledE
782
782
  }
783
783
  export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElement<QuestionCustomModel> {
784
784
  constructor(props: any);
785
- protected getStateElements(): any;
785
+ protected getStateElements(): Array<Base>;
786
786
  protected renderElement(): any;
787
787
  }
788
788
  export declare class SurveyQuestionDropdown extends SurveyQuestionUncontrolledElement<QuestionDropdownModel> {
@@ -834,6 +834,6 @@ export declare function propertyArray(options?: IArrayPropertyDecoratorOptions):
834
834
  export declare function createPopupModalViewModel(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
835
835
  export declare function unwrap<T>(value: any): T;
836
836
  export declare function getSize(value: any): any;
837
- export declare function getCurrecyCodes(): any;
837
+ export declare function getCurrecyCodes(): Array<any>;
838
838
  export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
839
839
  export declare function attachKey2click(element: any, viewModel?: any, options?: any): any;