survey-react-ui 1.9.10 → 1.9.14

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.10",
3
+ "version": "1.9.14",
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,24 +1,21 @@
1
1
  /*
2
- * Type definition for Survey JavaScript library for React (without core) v1.9.10
2
+ * Type definition for Survey JavaScript library for React (without core) v1.9.14
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
- import { LocalizableString, Base, SurveyElement, ITitleOwner, PopupBaseViewModel } from "survey-core";
8
+ import { QuestionRowModel, SurveyElement, QuestionSelectBase, ItemValue, QuestionMatrixDropdownRenderedCell } from "survey-core";
9
+ import { LocalizableString, Base, SurveyTimerModel, ITitleOwner, PopupBaseViewModel } from "survey-core";
9
10
  import { PageModel, ButtonGroupItemModel, QuestionButtonGroupModel, ButtonGroupItemValue, PanelModelBase } from "survey-core";
10
- import { QuestionRowModel, SurveyProgressButtonsModel, IElement, SurveyWindowModel, TooltipManager } from "survey-core";
11
- import { PanelModel, QuestionBooleanModel, QuestionCheckboxModel, ItemValue, QuestionEmptyModel } from "survey-core";
12
- import { QuestionExpressionModel, QuestionFileModel, QuestionHtmlModel, QuestionImageModel, QuestionImagePickerModel } from "survey-core";
13
- import { QuestionMatrixModel, AdaptiveActionContainer, QuestionMatrixDropdownRenderedCell, QuestionMultipleTextModel, MultipleTextItemModel } from "survey-core";
14
- import { QuestionPanelDynamicModel, QuestionRadiogroupModel, QuestionRankingModel, QuestionRatingModel, RenderedRatingItem } from "survey-core";
15
- import { QuestionSignaturePadModel, QuestionSelectBase, FlowPanelModel, QuestionCommentModel, QuestionCompositeModel } from "survey-core";
16
- import { QuestionCustomModel, QuestionDropdownModel, QuestionMatrixDynamicModel, QuestionTextModel, IArrayPropertyDecoratorOptions } 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";
17
17
  import * as React from "react";
18
18
 
19
- export { ReactSurveyModel as Model };
20
- export { ReactWindowModel as WindowModel };
21
-
22
19
  export enum DragTypeOverMeEnum {
23
20
  InsideEmptyPanel = 1,
24
21
  MultilineRight,
@@ -85,6 +82,12 @@ export declare class ReactQuestionFactory {
85
82
  getAllTypes(): Array<any>;
86
83
  createQuestion(questionType: string, params: any): any;
87
84
  }
85
+ export declare class ReactSurveyElementsWrapper {
86
+ static wrapRow(survey: SurveyModel, element: any, row: QuestionRowModel): any;
87
+ static wrapElement(survey: SurveyModel, element: any, question: SurveyElement): any;
88
+ static wrapItemValue(survey: SurveyModel, element: any, question: QuestionSelectBase, item: ItemValue): any;
89
+ static wrapMatrixCell(survey: SurveyModel, element: any, cell: QuestionMatrixDropdownRenderedCell, reason?: string): any;
90
+ }
88
91
  export declare class Skeleton extends React.Component<any, any> {
89
92
  constructor(props: any);
90
93
  constructor(props: any, context: any);
@@ -145,10 +148,7 @@ export declare class SurveyNavigationBase extends React.Component<any, any> {
145
148
  }
146
149
  export declare class SurveyTimerPanel extends React.Component<any, any> {
147
150
  constructor(props: any);
148
- protected get survey(): SurveyModel;
149
- update: any;
150
- componentDidMount(): void;
151
- componentWillUnmount(): void;
151
+ protected get survey(): SurveyTimerModel;
152
152
  render(): any;
153
153
  }
154
154
  export declare class SvgIcon extends React.Component<any, any> {
@@ -238,7 +238,7 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
238
238
  rootRef: any;
239
239
  static get cssType(): string;
240
240
  static set cssType(val: string);
241
- protected survey: ReactSurveyModel;
241
+ protected survey: SurveyModel;
242
242
  rootNodeId: string;
243
243
  rootNodeClassName: string;
244
244
  protected getStateElement(): Base;
@@ -254,7 +254,6 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
254
254
  protected renderCompleted(): any;
255
255
  protected renderCompletedBefore(): any;
256
256
  protected renderLoading(): any;
257
- protected renderStartPage(): any;
258
257
  protected renderSurvey(): any;
259
258
  protected renderTimerPanel(location: string): any;
260
259
  protected renderPage(page: PageModel): any;
@@ -308,7 +307,6 @@ export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
308
307
  }
309
308
  export declare class SurveyNavigation extends SurveyNavigationBase {
310
309
  constructor(props: any);
311
- mouseDownPage: any;
312
310
  handlePrevClick(event: any): void;
313
311
  handleNextClick(event: any): void;
314
312
  handleNextMouseDown(event: any): boolean;
@@ -409,12 +407,6 @@ export declare class SurveyRow extends SurveyElementBase<any, any> {
409
407
  componentWillUnmount(): void;
410
408
  protected createElement(element: IElement, elementIndex?: number): any;
411
409
  }
412
- export declare class ReactWindowModel extends SurveyWindowModel {
413
- constructor(jsonObj?: any, model?: ReactSurveyModel);
414
- protected createSurvey(jsonObj: any): SurveyModel;
415
- get renderCallback(): any;
416
- set renderCallback(val: any);
417
- }
418
410
  export declare class SurveyActionBarItemDropdown extends SurveyActionBarItem {
419
411
  constructor(props: any);
420
412
  renderButtonContent(): any;
@@ -717,7 +709,7 @@ export declare class SurveyQuestionUncontrolledElement<T> extends SurveyQuestion
717
709
  }
718
710
  export declare class SurveyWindow extends Survey {
719
711
  constructor(props: any);
720
- protected window: ReactWindowModel;
712
+ protected window: SurveyWindowModel;
721
713
  protected getStateElements(): Array<Base>;
722
714
  handleOnExpanded(event: any): void;
723
715
  protected canRender(): boolean;
@@ -726,21 +718,6 @@ export declare class SurveyWindow extends Survey {
726
718
  protected renderBody(): any;
727
719
  protected createSurvey(newProps: any): void;
728
720
  }
729
- export declare class ReactSurveyModel extends SurveyModel {
730
- constructor(jsonObj?: any);
731
- renderCallback: any;
732
- render(): void;
733
- mergeCss(src: any, dest: any): void;
734
- doAfterRenderSurvey(el: any): void;
735
- protected onLoadSurveyFromService(): void;
736
- protected onLoadingSurveyFromService(): void;
737
- setCompletedState(value: string, text: string): void;
738
- start(): boolean;
739
- wrapRow(element: any, row: QuestionRowModel): any;
740
- wrapElement(element: any, question: SurveyElement): any;
741
- wrapItemValue(element: any, question: QuestionSelectBase, item: ItemValue): any;
742
- wrapMatrixCell(element: any, cell: QuestionMatrixDropdownRenderedCell, reason?: string): any;
743
- }
744
721
  export declare class SurveyFlowPanel extends SurveyPanel {
745
722
  constructor(props: any);
746
723
  get flowPanel(): FlowPanelModel;
@@ -773,6 +750,11 @@ export declare class SurveyQuestionBooleanCheckbox extends SurveyQuestionBoolean
773
750
  constructor(props: any);
774
751
  protected renderElement(): any;
775
752
  }
753
+ export declare class SurveyQuestionBooleanRadio extends SurveyQuestionBoolean {
754
+ constructor(props: any);
755
+ handleOnChange: any;
756
+ protected renderElement(): any;
757
+ }
776
758
  export declare class SurveyQuestionComment extends SurveyQuestionUncontrolledElement<QuestionCommentModel> {
777
759
  constructor(props: any);
778
760
  protected renderElement(): any;
@@ -831,11 +813,5 @@ export declare class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndE
831
813
  protected getHeaderText(): string;
832
814
  protected renderQuestion(): any;
833
815
  }
834
- export declare function property(options?: any): any;
835
- export declare function propertyArray(options?: IArrayPropertyDecoratorOptions): any;
836
- export declare function createPopupModalViewModel(componentName: string, data: any, onApply: any, onCancel?: any, onHide?: any, onShow?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
837
- export declare function unwrap<T>(value: any): T;
838
- export declare function getSize(value: any): any;
839
- export declare function getCurrecyCodes(): Array<any>;
840
816
  export declare function showModal(componentName: string, data: any, onApply: any, onCancel?: any, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): void;
841
817
  export declare function attachKey2click(element: any, viewModel?: any, options?: any): any;