survey-react-ui 1.9.12 → 1.9.13

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.12",
3
+ "version": "1.9.13",
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,22 @@
1
1
  /*
2
- * Type definition for Survey JavaScript library for React (without core) v1.9.12
2
+ * Type definition for Survey JavaScript library for React (without core) v1.9.13
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, ITitleOwner, PopupBaseViewModel, PageModel } from "survey-core";
10
- import { ButtonGroupItemModel, QuestionButtonGroupModel, ButtonGroupItemValue, PanelModelBase, SurveyProgressButtonsModel } from "survey-core";
11
- import { IElement, SurveyWindowModel, TooltipManager, PanelModel, QuestionBooleanModel } 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
12
  import { QuestionCheckboxModel, QuestionEmptyModel, QuestionExpressionModel, QuestionFileModel, QuestionHtmlModel } from "survey-core";
13
13
  import { QuestionImageModel, QuestionImagePickerModel, QuestionMatrixModel, AdaptiveActionContainer, QuestionMultipleTextModel } from "survey-core";
14
14
  import { MultipleTextItemModel, QuestionPanelDynamicModel, QuestionRadiogroupModel, QuestionRankingModel, QuestionRatingModel } from "survey-core";
15
- import { RenderedRatingItem, QuestionSignaturePadModel, FlowPanelModel, QuestionCommentModel, QuestionCompositeModel } from "survey-core";
16
- import { QuestionCustomModel, QuestionDropdownModel, QuestionMatrixDynamicModel, QuestionTextModel, IArrayPropertyDecoratorOptions } from "survey-core";
15
+ import { RenderedRatingItem, QuestionSignaturePadModel, SurveyWindowModel, FlowPanelModel, QuestionCommentModel } from "survey-core";
16
+ import { QuestionCompositeModel, QuestionCustomModel, QuestionDropdownModel, QuestionMatrixDynamicModel, QuestionTextModel } from "survey-core";
17
+ import { IArrayPropertyDecoratorOptions } from "survey-core";
17
18
  import * as React from "react";
18
19
 
19
- export { ReactSurveyModel as Model };
20
- export { ReactWindowModel as WindowModel };
21
-
22
20
  export enum DragTypeOverMeEnum {
23
21
  InsideEmptyPanel = 1,
24
22
  MultilineRight,
@@ -86,12 +84,10 @@ export declare class ReactQuestionFactory {
86
84
  createQuestion(questionType: string, params: any): any;
87
85
  }
88
86
  export declare class ReactSurveyElementsWrapper {
89
- constructor(survey: SurveyModel);
90
- survey: SurveyModel;
91
- wrapRow(element: any, row: QuestionRowModel): any;
92
- wrapElement(element: any, question: SurveyElement): any;
93
- wrapItemValue(element: any, question: QuestionSelectBase, item: ItemValue): any;
94
- wrapMatrixCell(element: any, cell: QuestionMatrixDropdownRenderedCell, reason?: string): any;
87
+ static wrapRow(survey: SurveyModel, element: any, row: QuestionRowModel): any;
88
+ static wrapElement(survey: SurveyModel, element: any, question: SurveyElement): any;
89
+ static wrapItemValue(survey: SurveyModel, element: any, question: QuestionSelectBase, item: ItemValue): any;
90
+ static wrapMatrixCell(survey: SurveyModel, element: any, cell: QuestionMatrixDropdownRenderedCell, reason?: string): any;
95
91
  }
96
92
  export declare class Skeleton extends React.Component<any, any> {
97
93
  constructor(props: any);
@@ -153,10 +149,7 @@ export declare class SurveyNavigationBase extends React.Component<any, any> {
153
149
  }
154
150
  export declare class SurveyTimerPanel extends React.Component<any, any> {
155
151
  constructor(props: any);
156
- protected get survey(): SurveyModel;
157
- update: any;
158
- componentDidMount(): void;
159
- componentWillUnmount(): void;
152
+ protected get survey(): SurveyTimerModel;
160
153
  render(): any;
161
154
  }
162
155
  export declare class SvgIcon extends React.Component<any, any> {
@@ -246,7 +239,7 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
246
239
  rootRef: any;
247
240
  static get cssType(): string;
248
241
  static set cssType(val: string);
249
- protected survey: ReactSurveyModel;
242
+ protected survey: SurveyModel;
250
243
  rootNodeId: string;
251
244
  rootNodeClassName: string;
252
245
  protected getStateElement(): Base;
@@ -262,7 +255,6 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
262
255
  protected renderCompleted(): any;
263
256
  protected renderCompletedBefore(): any;
264
257
  protected renderLoading(): any;
265
- protected renderStartPage(): any;
266
258
  protected renderSurvey(): any;
267
259
  protected renderTimerPanel(location: string): any;
268
260
  protected renderPage(page: PageModel): any;
@@ -316,7 +308,6 @@ export declare class SurveyButtonGroupItem extends SurveyElementBase<any, any> {
316
308
  }
317
309
  export declare class SurveyNavigation extends SurveyNavigationBase {
318
310
  constructor(props: any);
319
- mouseDownPage: any;
320
311
  handlePrevClick(event: any): void;
321
312
  handleNextClick(event: any): void;
322
313
  handleNextMouseDown(event: any): boolean;
@@ -417,12 +408,6 @@ export declare class SurveyRow extends SurveyElementBase<any, any> {
417
408
  componentWillUnmount(): void;
418
409
  protected createElement(element: IElement, elementIndex?: number): any;
419
410
  }
420
- export declare class ReactWindowModel extends SurveyWindowModel {
421
- constructor(jsonObj?: any, model?: ReactSurveyModel);
422
- protected createSurvey(jsonObj: any): SurveyModel;
423
- get renderCallback(): any;
424
- set renderCallback(val: any);
425
- }
426
411
  export declare class SurveyActionBarItemDropdown extends SurveyActionBarItem {
427
412
  constructor(props: any);
428
413
  renderButtonContent(): any;
@@ -725,7 +710,7 @@ export declare class SurveyQuestionUncontrolledElement<T> extends SurveyQuestion
725
710
  }
726
711
  export declare class SurveyWindow extends Survey {
727
712
  constructor(props: any);
728
- protected window: ReactWindowModel;
713
+ protected window: SurveyWindowModel;
729
714
  protected getStateElements(): Array<Base>;
730
715
  handleOnExpanded(event: any): void;
731
716
  protected canRender(): boolean;
@@ -734,21 +719,6 @@ export declare class SurveyWindow extends Survey {
734
719
  protected renderBody(): any;
735
720
  protected createSurvey(newProps: any): void;
736
721
  }
737
- export declare class ReactSurveyModel extends SurveyModel {
738
- constructor(jsonObj?: any);
739
- renderCallback: any;
740
- render(): void;
741
- mergeCss(src: any, dest: any): void;
742
- doAfterRenderSurvey(el: any): void;
743
- protected onLoadSurveyFromService(): void;
744
- protected onLoadingSurveyFromService(): void;
745
- setCompletedState(value: string, text: string): void;
746
- start(): boolean;
747
- wrapRow(element: any, row: QuestionRowModel): any;
748
- wrapElement(element: any, question: SurveyElement): any;
749
- wrapItemValue(element: any, question: QuestionSelectBase, item: ItemValue): any;
750
- wrapMatrixCell(element: any, cell: QuestionMatrixDropdownRenderedCell, reason?: string): any;
751
- }
752
722
  export declare class SurveyFlowPanel extends SurveyPanel {
753
723
  constructor(props: any);
754
724
  get flowPanel(): FlowPanelModel;