survey-react-ui 1.9.14 → 1.9.17

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.14",
3
+ "version": "1.9.17",
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,21 +1,28 @@
1
1
  /*
2
- * Type definition for Survey JavaScript library for React (without core) v1.9.14
2
+ * Type definition for Survey JavaScript library for React (without core) v1.9.17
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
  */
6
6
  import { Action, PopupModel, ActionContainer, Question, SurveyError } from "survey-core";
7
7
  import { SurveyModel, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownModelBase, ListModel, HashTable } from "survey-core";
8
8
  import { QuestionRowModel, SurveyElement, QuestionSelectBase, ItemValue, QuestionMatrixDropdownRenderedCell } from "survey-core";
9
- import { LocalizableString, Base, SurveyTimerModel, ITitleOwner, PopupBaseViewModel } from "survey-core";
10
- import { PageModel, ButtonGroupItemModel, QuestionButtonGroupModel, ButtonGroupItemValue, PanelModelBase } from "survey-core";
11
- import { SurveyProgressButtonsModel, IElement, TooltipManager, PanelModel, QuestionBooleanModel } from "survey-core";
12
- import { QuestionCheckboxModel, QuestionEmptyModel, QuestionExpressionModel, QuestionFileModel, QuestionHtmlModel } from "survey-core";
13
- import { QuestionImageModel, QuestionImagePickerModel, QuestionMatrixModel, AdaptiveActionContainer, QuestionMultipleTextModel } from "survey-core";
14
- import { MultipleTextItemModel, QuestionPanelDynamicModel, QuestionRadiogroupModel, QuestionRankingModel, QuestionRatingModel } from "survey-core";
15
- import { RenderedRatingItem, QuestionSignaturePadModel, SurveyWindowModel, FlowPanelModel, QuestionCommentModel } from "survey-core";
16
- import { QuestionCompositeModel, QuestionCustomModel, QuestionDropdownModel, QuestionMatrixDynamicModel, QuestionTextModel } from "survey-core";
9
+ import { LocalizableString, Base, ITitleOwner, PopupBaseViewModel, PageModel } from "survey-core";
10
+ import { ButtonGroupItemModel, QuestionButtonGroupModel, ButtonGroupItemValue, PanelModelBase, SurveyProgressButtonsModel } from "survey-core";
11
+ import { IElement, TooltipManager, PanelModel, QuestionBooleanModel, QuestionCheckboxModel } from "survey-core";
12
+ import { QuestionEmptyModel, QuestionExpressionModel, QuestionFileModel, QuestionHtmlModel, QuestionImageModel } from "survey-core";
13
+ import { QuestionImagePickerModel, QuestionMatrixModel, AdaptiveActionContainer, QuestionMultipleTextModel, MultipleTextItemModel } from "survey-core";
14
+ import { QuestionPanelDynamicModel, QuestionRadiogroupModel, QuestionRankingModel, QuestionRatingModel, RenderedRatingItem } from "survey-core";
15
+ import { QuestionSignaturePadModel, SurveyTimerModel, SurveyWindowModel, FlowPanelModel, QuestionCommentModel } from "survey-core";
16
+ import { QuestionCompositeModel, QuestionCustomModel, QuestionMatrixDynamicModel, QuestionTextModel } from "survey-core";
17
17
  import * as React from "react";
18
18
 
19
+ export { SurveyModel } from "survey-core";
20
+ export { Model } from "survey-core";
21
+ export { SurveyWindowModel } from "survey-core";
22
+ export { settings } from "survey-core";
23
+ export { surveyLocalization } from "survey-core";
24
+ export { surveyStrings } from "survey-core";
25
+
19
26
  export enum DragTypeOverMeEnum {
20
27
  InsideEmptyPanel = 1,
21
28
  MultilineRight,
@@ -146,11 +153,6 @@ export declare class SurveyNavigationBase extends React.Component<any, any> {
146
153
  componentDidMount(): void;
147
154
  componentWillUnmount(): void;
148
155
  }
149
- export declare class SurveyTimerPanel extends React.Component<any, any> {
150
- constructor(props: any);
151
- protected get survey(): SurveyTimerModel;
152
- render(): any;
153
- }
154
156
  export declare class SvgIcon extends React.Component<any, any> {
155
157
  constructor(props: any);
156
158
  svgIconRef: any;
@@ -692,7 +694,6 @@ export declare class SurveyQuestionRating extends SurveyQuestionElementBase {
692
694
  handleOnClick(event: any): void;
693
695
  protected renderElement(): any;
694
696
  protected renderItem(key: string, item: RenderedRatingItem, index: number, cssClasses: any): any;
695
- protected renderOther(cssClasses: any): any;
696
697
  }
697
698
  export declare class SurveyQuestionSignaturePad extends SurveyQuestionElementBase {
698
699
  constructor(props: any);
@@ -707,6 +708,12 @@ export declare class SurveyQuestionUncontrolledElement<T> extends SurveyQuestion
707
708
  protected getValueCore(): any;
708
709
  protected updateDomElement(): void;
709
710
  }
711
+ export declare class SurveyTimerPanel extends ReactSurveyElement {
712
+ constructor(props: any);
713
+ protected getStateElement(): Base;
714
+ protected get timerModel(): SurveyTimerModel;
715
+ render(): any;
716
+ }
710
717
  export declare class SurveyWindow extends Survey {
711
718
  constructor(props: any);
712
719
  protected window: SurveyWindowModel;
@@ -769,13 +776,11 @@ export declare class SurveyQuestionCustom extends SurveyQuestionUncontrolledElem
769
776
  protected getStateElements(): Array<Base>;
770
777
  protected renderElement(): any;
771
778
  }
772
- export declare class SurveyQuestionDropdown extends SurveyQuestionUncontrolledElement<QuestionDropdownModel> {
779
+ export declare class SurveyQuestionDropdownBase<T> extends SurveyQuestionUncontrolledElement<T> {
773
780
  constructor(props: any);
774
781
  protected setValueCore(newValue: any): void;
775
782
  protected getValueCore(): any;
776
- protected renderElement(): any;
777
783
  protected renderSelect(cssClasses: any): any;
778
- protected renderOther(cssClasses: any): any;
779
784
  }
780
785
  export declare class SurveyQuestionMatrixDropdown extends SurveyQuestionMatrixDropdownBase {
781
786
  constructor(props: any);
@@ -804,6 +809,11 @@ export declare class SurveyQuestionText extends SurveyQuestionUncontrolledElemen
804
809
  protected renderInput(): any;
805
810
  protected renderElement(): any;
806
811
  }
812
+ export declare class SurveyQuestionDropdown extends SurveyQuestionDropdownBase<Question> {
813
+ constructor(props: any);
814
+ protected renderElement(): any;
815
+ protected renderOther(cssClasses: any): any;
816
+ }
807
817
  export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndErrorsCell {
808
818
  constructor(props: any);
809
819
  protected getQuestion(): Question;
@@ -813,5 +823,9 @@ export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndE
813
823
  protected getHeaderText(): string;
814
824
  protected renderQuestion(): any;
815
825
  }
826
+ export declare class SurveyQuestionRatingDropdown extends SurveyQuestionDropdownBase<QuestionRatingModel> {
827
+ constructor(props: any);
828
+ protected renderElement(): any;
829
+ }
816
830
  export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
817
831
  export declare function attachKey2click(element: any, viewModel?: any, options?: any): any;