survey-creator-react 1.9.32 → 1.9.33

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/README.md CHANGED
@@ -1,65 +1,23 @@
1
- # Survey Creator V2 for React
1
+ # Survey Creator / Form Builder for React
2
2
 
3
3
  [![Build Status](https://dev.azure.com/SurveyJS/SurveyJS%20Integration%20Tests/_apis/build/status/SurveyJS%20Creator?branchName=master)](https://dev.azure.com/SurveyJS/SurveyJS%20Integration%20Tests/_build/latest?definitionId=8&branchName=master)
4
4
  <a href="https://www.npmjs.com/package/survey-creator"><img alt="NPM Version" src="https://img.shields.io/npm/v/survey-creator.svg" data-canonical-src="https://img.shields.io/npm/v/survey-creator.svg" style="max-width:100%;"></a>
5
5
 
6
- Survey Creator V2 for React is a visual survey designer / form builder for the React version of [SurveyJS](https://github.com/surveyjs/survey-library).
6
+ Survey Creator / Form Builder for React is a visual survey designer / form builder for the React version of [SurveyJS](https://github.com/surveyjs/survey-library).
7
7
 
8
- - [Live Examples](https://surveyjs.io/Examples/Survey-Creator?platform=ReactjsV2)
9
- - [Documentation](https://surveyjs.io/Documentation/Survey-Creator)
10
- - [Create your Survey or Form now](https://surveyjs.io/create-survey-v2)
11
-
12
- **NOTE**: This package contains Survey Creator V2. If you are looking for information on V1, refer to the [survey-creator](/packages/survey-creator) directory. Differences between these two versions are described in the following help topic: [SurveyJS Creator V2: What's new](https://surveyjs.io/Documentation/Survey-Creator?id=Creator-V2-Whats-New). For information on how to migrate to V2, refer to the [Migration Guide for SurveyJS Creator - from V1 to V2](https://surveyjs.io/Documentation/Survey-Creator?id=Migrate-from-V1-to-V2) article.
13
-
14
- ## Install
8
+ [Try Survey Creator / Form Builder](https://surveyjs.io/create-survey)
15
9
 
16
- ```
17
- npm install survey-creator-react --save
18
- ```
10
+ ## Get Started
19
11
 
20
- ## Add Survey Creator V2 to Your Project
12
+ [Add Survey Creator / Form Builder to a React Application](https://surveyjs.io/Documentation/Survey-Creator?id=get-started-react)
21
13
 
22
- Create a new component and use it in your React application:
14
+ ## Resources
23
15
 
24
- ```js
25
- import { Component, Fragment } from "react";
26
- import { SurveyCreatorComponent, SurveyCreator } from "survey-creator-react";
27
- // Import CSS files for SurveyJS (survey-core) and Survey Creator
28
- import "survey-core/defaultV2.min.css";
29
- import "survey-creator-core/survey-creator-core.min.css";
30
-
31
- export class SurveyCreatorWidget extends Component {
32
- constructor() {
33
- super();
34
- // Instantiate Survey Creator
35
- this.creator = new SurveyCreator({ showLogicTab: true });
36
- // Enable auto save
37
- this.creator.isAutoSave = true;
38
- // Save the survey definition JSON to your web service
39
- this.creator.saveSurveyFunc = (saveNo, callback) => {
40
- // Call a function on your web service to store the survey definition JSON
41
- // As an alternative to this.creator.JSON, you can use the this.creator.text string property
42
- // saveSurveyJSON(this.id, this.creator.JSON, () => {
43
- // callback(saveNo, true);
44
- // });
45
- };
46
- }
47
- componentDidMount() {
48
- // Load a survey definition JSON from you web service
49
- // ...
50
- // Assign the survey definition to Survey Creator
51
- // this.creator.JSON = yourJSON;
52
- }
53
- render() {
54
- return (
55
- <Fragment>
56
- <SurveyCreatorComponent creator={this.creator} />
57
- </Fragment>
58
- );
59
- }
60
- }
61
- ```
16
+ - [Website](https://surveyjs.io/)
17
+ - [Documentation](https://surveyjs.io/Documentation/Survey-Creator)
18
+ - [Live Examples](https://surveyjs.io/Examples/Survey-Creator)
19
+ - [What's New](https://surveyjs.io/WhatsNew)
62
20
 
63
- ## License
21
+ ## Licensing
64
22
 
65
- The Survey Creator (Form Builder) is **not available for free commercial usage**. You can find more information about licensing this product on the following page: [Licenses](http://surveyjs.io/Licenses).
23
+ Survey Creator is **not available for free commercial usage**. If you want to integrate it into your application, you must purchase a [commercial license](https://surveyjs.io/Licenses#SurveyCreator). However, you can use [online Survey Creator](https://surveyjs.io/create-survey) to produce JSON survey configurations and use them with SurveyJS in your application free of charge.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-react",
3
- "version": "1.9.32",
3
+ "version": "1.9.33",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "survey-core": "^1.9.9",
35
35
  "survey-react-ui": "^1.9.9",
36
- "survey-creator-core": "1.9.32",
36
+ "survey-creator-core": "1.9.33",
37
37
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0",
38
38
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
39
39
  },
@@ -1,18 +1,18 @@
1
1
  /*
2
- * Type definition for Survey Creator library for React v1.9.32
2
+ * Type definition for Survey Creator library for React v1.9.33
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
4
4
  * License: https://surveyjs.io/Licenses#SurveyCreator
5
5
  */
6
6
  import { TabbedMenuContainer, CreatorBase, Notifier, QuestionAdornerViewModel, IQuestionToolboxItem } from "survey-creator-core";
7
7
  import { QuestionToolboxCategory, QuestionToolbox, SidebarModel, PagesController, TabDesignerViewModel } from "survey-creator-core";
8
8
  import { EmbedModel, AceJsonEditorModel, TextareaJsonEditorModel, ObjectSelectorModel, PropertyGridViewModel } from "survey-creator-core";
9
- import { PageAdorner, ImageItemValueWrapperViewModel, ItemValueWrapperViewModel, LogoImageViewModel, MatrixCellWrapperViewModel } from "survey-creator-core";
10
- import { QuestionRatingAdornerViewModel, RowViewModel, ITabbedMenuItem, ToolboxToolViewModel, QuestionEmbeddedSurveyModel } from "survey-creator-core";
11
- import { PageNavigatorViewModel, QuestionLinkValueModel, SurveyResultsModel, QuestionImageAdornerViewModel, IPortableMouseEvent } from "survey-creator-core";
12
- import { ICreatorOptions, IPortableDragEvent } from "survey-creator-core";
13
- import { Action, Question, QuestionRowModel, SurveyModel, PageModel } from "survey-core";
14
- import { QuestionSelectBase, ItemValue, ImageItemValue, Base, QuestionImagePickerModel } from "survey-core";
15
- import { SurveyError, IAction, ResponsivityManager, VerticalResponsivityManager } from "survey-core";
9
+ import { ITabbedMenuItem, QuestionEmbeddedSurveyModel, QuestionLinkValueModel, PageAdorner, ImageItemValueWrapperViewModel } from "survey-creator-core";
10
+ import { ItemValueWrapperViewModel, LogoImageViewModel, MatrixCellWrapperViewModel, QuestionRatingAdornerViewModel, IPortableMouseEvent } from "survey-creator-core";
11
+ import { RowViewModel, ICreatorOptions, ToolboxToolViewModel, PageNavigatorViewModel, SurveyResultsModel } from "survey-creator-core";
12
+ import { QuestionImageAdornerViewModel, IPortableDragEvent } from "survey-creator-core";
13
+ import { Action, QuestionRowModel, Question, SurveyModel, PageModel } from "survey-core";
14
+ import { QuestionSelectBase, ItemValue, ImageItemValue, Base, SurveyError } from "survey-core";
15
+ import { ResponsivityManager, VerticalResponsivityManager, QuestionImagePickerModel } from "survey-core";
16
16
  import { SurveyElementBase, ISurveyCreator, SurveyQuestionElementBase } from "survey-react-ui";
17
17
  import * as React from "react";
18
18
 
@@ -55,15 +55,15 @@ export interface ISurveyCreatorComponentProps {
55
55
  creator: SurveyCreator;
56
56
  style?: any;
57
57
  }
58
- export interface QuestionAdornerComponentProps {
58
+ export interface RowWrapperComponentProps {
59
59
  element: any;
60
- question: Question;
61
60
  componentData: any;
61
+ row: QuestionRowModel;
62
62
  }
63
- export interface RowWrapperComponentProps {
63
+ export interface QuestionAdornerComponentProps {
64
64
  element: any;
65
+ question: Question;
65
66
  componentData: any;
66
- row: QuestionRowModel;
67
67
  }
68
68
  export interface QuestionWrapperHeaderProps {
69
69
  className?: string;
@@ -147,70 +147,21 @@ export declare class ActionButton extends SurveyElementBase<any, any> {
147
147
  constructor(props: any);
148
148
  renderElement(): any;
149
149
  }
150
- export declare class CellQuestionAdornerComponent extends SurveyElementBase<QuestionAdornerComponentProps, any> {
151
- constructor(props: QuestionAdornerComponentProps);
152
- model: QuestionAdornerViewModel;
153
- protected getStateElement(): Base;
154
- render(): any;
155
- }
156
- export declare class CellQuestionDropdownAdornerComponent extends SurveyElementBase<QuestionAdornerComponentProps, any> {
157
- constructor(props: QuestionAdornerComponentProps);
158
- model: QuestionAdornerViewModel;
159
- protected getStateElement(): Base;
160
- render(): any;
161
- }
162
- export declare class CreatorSurveyPageComponent extends SurveyElementBase<ICreatorSurveyPageComponentProps, any> {
163
- constructor(props: ICreatorSurveyPageComponentProps);
164
- model: PageAdorner;
165
- rootRef: any;
166
- protected getStateElement(): Base;
167
- componentDidMount(): void;
168
- componentWillUnmount(): void;
169
- protected canRender(): boolean;
170
- renderElement(): any;
171
- protected renderContent(): any;
172
- protected renderHeader(): any;
173
- protected renderFooter(): any;
174
- }
175
- export declare class ImageItemValueAdornerComponent extends SurveyElementBase<ImageItemValueAdornerComponentProps, any> {
176
- constructor(props: ImageItemValueAdornerComponentProps);
177
- model: ImageItemValueWrapperViewModel;
178
- rootRef: any;
179
- protected getStateElement(): Base;
180
- protected get question(): QuestionImagePickerModel;
181
- componentDidMount(): void;
182
- preventDragHandler: (e: any) => void;
183
- render(): any;
184
- }
185
- export declare class ItemValueAdornerComponent extends SurveyElementBase<ItemValueAdornerComponentProps, any> {
186
- constructor(props: ItemValueAdornerComponentProps);
187
- model: ItemValueWrapperViewModel;
188
- protected getStateElement(): Base;
189
- render(): any;
190
- }
191
- export declare class LogoImageComponent extends SurveyElementBase<ILogoImageComponentProps, any> {
192
- constructor(props: ILogoImageComponentProps);
193
- model: LogoImageViewModel;
194
- rootRef: any;
195
- protected getStateElement(): Base;
196
- componentDidMount(): void;
197
- render(): any;
198
- }
199
- export declare class MatrixCellAdornerComponent extends SurveyElementBase<MatrixCellAdornerComponentProps, any> {
200
- constructor(props: MatrixCellAdornerComponentProps);
201
- model: MatrixCellWrapperViewModel;
150
+ export declare class CreatorModelElement<P, S> extends SurveyElementBase<P, S> {
151
+ constructor(props: any);
202
152
  componentDidUpdate(prevProps: any, prevState: any): void;
203
- protected getStateElement(): Base;
204
- render(): any;
153
+ protected createModel(): void;
154
+ protected needUpdateModel(prevProps: any): boolean;
155
+ protected getUpdatedModelProps(): Array<any>;
205
156
  }
206
157
  export declare class NotifierComponent extends SurveyElementBase<NotifierComponentProps, any> {
207
- constructor(props: NotifierComponentProps);
158
+ constructor(props: any);
208
159
  get notifier(): any;
209
160
  protected getStateElement(): Base;
210
161
  renderElement(): any;
211
162
  }
212
163
  export declare class ObjectSelectorComponent extends SurveyElementBase<IObjectSelectorComponentProps, any> {
213
- constructor(props: IObjectSelectorComponentProps);
164
+ constructor(props: any);
214
165
  protected get model(): ObjectSelectorModel;
215
166
  protected getStateElement(): Base;
216
167
  renderElement(): any;
@@ -222,23 +173,9 @@ export declare class PropertyGridComponent extends SurveyElementBase<IPropertyGr
222
173
  canRender(): boolean;
223
174
  renderElement(): any;
224
175
  }
225
- export declare class QuestionAdornerComponent extends SurveyElementBase<QuestionAdornerComponentProps, any> {
226
- constructor(props: QuestionAdornerComponentProps);
227
- modelValue: QuestionAdornerViewModel;
228
- protected rootRef: any;
229
- protected createQuestionViewModel(): QuestionAdornerViewModel;
230
- get model(): QuestionAdornerViewModel;
231
- protected getStateElement(): Base;
232
- protected canRender(): boolean;
233
- renderElement(): any;
234
- protected renderContent(allowInteractions: boolean): any;
235
- protected renderHeader(): any;
236
- protected renderFooter(): any;
237
- protected renderElementContent(): any;
238
- renderElementPlaceholder(): any;
239
- }
240
176
  export declare class QuestionEditorContentComponent extends React.Component<IQuestionEditorContentComponentProps, any> implements ISurveyCreator {
241
- constructor(props: IQuestionEditorContentComponentProps);
177
+ constructor(props: any);
178
+ constructor(props: IQuestionEditorContentComponentProps, context: any);
242
179
  get survey(): any;
243
180
  createQuestionElement(question: Question): JSX.Element;
244
181
  questionTitleLocation(): string;
@@ -246,15 +183,6 @@ export declare class QuestionEditorContentComponent extends React.Component<IQue
246
183
  renderError(key: string, error: SurveyError, cssClasses: any): JSX.Element;
247
184
  render(): JSX.Element;
248
185
  }
249
- export declare class QuestionRatingAdornerComponent extends SurveyElementBase<QuestionAdornerComponentProps, any> {
250
- constructor(props: QuestionAdornerComponentProps);
251
- modelValue: QuestionRatingAdornerViewModel;
252
- protected createQuestionViewModel(): QuestionRatingAdornerViewModel;
253
- get ratingModel(): QuestionRatingAdornerViewModel;
254
- get model(): QuestionRatingAdornerViewModel;
255
- protected getStateElement(): Base;
256
- protected renderElement(): JSX.Element;
257
- }
258
186
  export declare class QuestionWrapperFooter extends React.Component<QuestionWrapperFooterProps, any> {
259
187
  constructor(props: any);
260
188
  constructor(props: QuestionWrapperFooterProps, context: any);
@@ -265,12 +193,6 @@ export declare class QuestionWrapperHeader extends React.Component<QuestionWrapp
265
193
  constructor(props: QuestionWrapperHeaderProps, context: any);
266
194
  render(): JSX.Element;
267
195
  }
268
- export declare class RowWrapper extends SurveyElementBase<RowWrapperComponentProps, any> {
269
- constructor(props: RowWrapperComponentProps);
270
- model: RowViewModel;
271
- protected getStateElement(): Base;
272
- render(): JSX.Element;
273
- }
274
196
  export declare class SidebarComponent extends SurveyElementBase<ISidebarComponentProps, any> {
275
197
  constructor(props: ISidebarComponentProps);
276
198
  containerRef: any;
@@ -310,23 +232,6 @@ export declare class SurveyCreatorToolboxCategory extends SurveyElementBase<ISur
310
232
  protected renderCategoryContent(): Array<any>;
311
233
  renderItems(items: any, isCompact?: boolean): any;
312
234
  }
313
- export declare class SurveyCreatorToolboxItem extends SurveyElementBase<ISurveyCreatorToolboxItemProps, any> {
314
- constructor(props: any);
315
- model: ToolboxToolViewModel;
316
- get item(): any;
317
- get creator(): any;
318
- protected getStateElement(): Base;
319
- render(): JSX.Element;
320
- }
321
- export declare class SurveyCreatorToolboxTool extends SurveyElementBase<ISurveyCreatorToolboxItemProps, any> {
322
- constructor(props: any);
323
- model: ToolboxToolViewModel;
324
- get item(): any;
325
- get creator(): any;
326
- get isCompact(): any;
327
- protected getStateElement(): Base;
328
- render(): JSX.Element;
329
- }
330
235
  export declare class SurveyElementEmbeddedSurvey extends SurveyQuestionElementBase {
331
236
  constructor(props: any);
332
237
  protected get embeddedSurvey(): QuestionEmbeddedSurveyModel;
@@ -345,39 +250,12 @@ export declare class SurveyNavigation extends SurveyElementBase<any, any> {
345
250
  protected canRender(): boolean;
346
251
  renderElement(): JSX.Element;
347
252
  }
348
- export declare class SurveyPageNavigator extends SurveyElementBase<ISurveyPageNavigatorProps, any> {
349
- constructor(props: ISurveyPageNavigatorProps);
350
- model: PageNavigatorViewModel;
351
- containerRef: any;
352
- protected getStateElement(): Base;
353
- componentDidMount(): void;
354
- componentWillUnmount(): void;
355
- renderElement(): JSX.Element;
356
- }
357
- export declare class SurveyPageNavigatorItem extends SurveyElementBase<any, any> {
358
- constructor(props: IAction);
359
- protected getStateElement(): Base;
360
- renderElement(): JSX.Element;
361
- }
362
253
  export declare class SurveyQuestionLinkValue extends SurveyQuestionElementBase {
363
254
  constructor(props: any);
364
255
  protected get question(): QuestionLinkValueModel;
365
256
  protected renderClear(): JSX.Element;
366
257
  protected renderElement(): JSX.Element;
367
258
  }
368
- export declare class SurveyResults extends SurveyElementBase<ISurveyResultsProps, any> {
369
- constructor(props: ISurveyResultsProps);
370
- model: SurveyResultsModel;
371
- protected getStateElement(): Base;
372
- render(): JSX.Element;
373
- renderResultAsText(): JSX.Element;
374
- renderResultAsTable(): JSX.Element;
375
- }
376
- export declare class SurveyResultsByRow extends SurveyElementBase<any, any> {
377
- constructor(props: any);
378
- protected getStateElement(): Base;
379
- render(): JSX.Element;
380
- }
381
259
  export declare class SurveySimulator extends SurveyElementBase<any, any> {
382
260
  constructor(props: any);
383
261
  protected getStateElement(): Base;
@@ -404,6 +282,7 @@ export declare class TabDesignerComponent extends SurveyElementBase<ITabDesigner
404
282
  protected createRenderedPage(page: PageModel, index: number, isGhostPage?: boolean): any;
405
283
  protected renderPage(pageV: PageModel): JSX.Element;
406
284
  renderElement(): JSX.Element;
285
+ renderHeader(condition: boolean): JSX.Element;
407
286
  renderPlaceHolder(): JSX.Element;
408
287
  renderPlaceHolderContent(): JSX.Element;
409
288
  renderTabContent(): JSX.Element;
@@ -473,7 +352,7 @@ export declare class TabbedMenuItemWrapper extends SurveyElementBase<any, any> {
473
352
  renderElement(): JSX.Element;
474
353
  }
475
354
  export declare class Toolbox extends SurveyElementBase<ISurveyCreatorToolboxProps, any> {
476
- constructor(props: ISurveyCreatorToolboxProps);
355
+ constructor(props: any);
477
356
  get creator(): any;
478
357
  get toolbox(): any;
479
358
  protected getStateElement(): Base;
@@ -494,28 +373,103 @@ export declare class AdaptiveToolbox extends Toolbox {
494
373
  componentWillUnmount(): void;
495
374
  render(): JSX.Element;
496
375
  }
497
- export declare class PanelAdornerComponent extends QuestionAdornerComponent {
376
+ export declare class CellQuestionAdornerComponent extends CreatorModelElement<QuestionAdornerComponentProps, any> {
498
377
  constructor(props: QuestionAdornerComponentProps);
499
- renderElementPlaceholder(): JSX.Element;
500
- protected renderFooter(): JSX.Element;
378
+ model: QuestionAdornerViewModel;
379
+ protected createModel(): void;
380
+ protected getStateElement(): Base;
381
+ protected getUpdatedModelProps(): Array<any>;
382
+ render(): JSX.Element;
501
383
  }
502
- export declare class QuestionDropdownAdornerComponent extends QuestionAdornerComponent {
384
+ export declare class CellQuestionDropdownAdornerComponent extends CreatorModelElement<QuestionAdornerComponentProps, any> {
503
385
  constructor(props: QuestionAdornerComponentProps);
504
- renderElementPlaceholder(): JSX.Element;
386
+ model: QuestionAdornerViewModel;
387
+ protected createModel(): void;
388
+ protected getUpdatedModelProps(): Array<any>;
389
+ protected getStateElement(): Base;
390
+ render(): JSX.Element;
505
391
  }
506
- export declare class QuestionImageAdornerComponent extends QuestionAdornerComponent {
507
- constructor(props: QuestionAdornerComponentProps);
508
- protected createQuestionViewModel(): QuestionAdornerViewModel;
509
- get imageModel(): QuestionImageAdornerViewModel;
392
+ export declare class CreatorSurveyPageComponent extends CreatorModelElement<ICreatorSurveyPageComponentProps, any> {
393
+ constructor(props: ICreatorSurveyPageComponentProps);
394
+ model: PageAdorner;
395
+ rootRef: any;
396
+ protected createModel(): void;
397
+ protected getUpdatedModelProps(): Array<any>;
398
+ protected getStateElement(): Base;
510
399
  componentDidMount(): void;
400
+ componentWillUnmount(): void;
401
+ protected canRender(): boolean;
402
+ renderElement(): JSX.Element;
403
+ protected renderContent(): JSX.Element;
511
404
  protected renderHeader(): JSX.Element;
512
- renderElementPlaceholder(): JSX.Element;
405
+ protected renderFooter(): JSX.Element;
513
406
  }
514
- export declare class QuestionWidgetAdornerComponent extends QuestionAdornerComponent {
407
+ export declare class ImageItemValueAdornerComponent extends CreatorModelElement<ImageItemValueAdornerComponentProps, any> {
408
+ constructor(props: ImageItemValueAdornerComponentProps);
409
+ model: ImageItemValueWrapperViewModel;
410
+ rootRef: any;
411
+ protected createModel(): void;
412
+ protected getUpdatedModelProps(): Array<any>;
413
+ protected getStateElement(): Base;
414
+ protected get question(): QuestionImagePickerModel;
415
+ componentDidMount(): void;
416
+ preventDragHandler: (e: any) => void;
417
+ render(): JSX.Element;
418
+ }
419
+ export declare class ItemValueAdornerComponent extends CreatorModelElement<ItemValueAdornerComponentProps, any> {
420
+ constructor(props: ItemValueAdornerComponentProps);
421
+ model: ItemValueWrapperViewModel;
422
+ protected createModel(): void;
423
+ protected getUpdatedModelProps(): Array<any>;
424
+ protected getStateElement(): Base;
425
+ render(): JSX.Element;
426
+ }
427
+ export declare class LogoImageComponent extends CreatorModelElement<ILogoImageComponentProps, any> {
428
+ constructor(props: ILogoImageComponentProps);
429
+ model: LogoImageViewModel;
430
+ rootRef: any;
431
+ protected createModel(): void;
432
+ protected getUpdatedModelProps(): Array<any>;
433
+ protected getStateElement(): Base;
434
+ componentDidMount(): void;
435
+ render(): JSX.Element;
436
+ }
437
+ export declare class MatrixCellAdornerComponent extends CreatorModelElement<MatrixCellAdornerComponentProps, any> {
438
+ constructor(props: MatrixCellAdornerComponentProps);
439
+ model: MatrixCellWrapperViewModel;
440
+ protected createModel(): void;
441
+ protected getUpdatedModelProps(): Array<any>;
442
+ componentDidUpdate(prevProps: any, prevState: any): void;
443
+ protected getStateElement(): Base;
444
+ render(): JSX.Element;
445
+ }
446
+ export declare class QuestionAdornerComponent extends CreatorModelElement<QuestionAdornerComponentProps, any> {
515
447
  constructor(props: QuestionAdornerComponentProps);
448
+ modelValue: QuestionAdornerViewModel;
449
+ protected rootRef: any;
450
+ protected createModel(): void;
516
451
  protected createQuestionViewModel(): QuestionAdornerViewModel;
517
- get widgetModel(): QuestionAdornerViewModel;
452
+ protected getUpdatedModelProps(): Array<any>;
453
+ get model(): QuestionAdornerViewModel;
454
+ protected getStateElement(): Base;
455
+ protected canRender(): boolean;
456
+ renderElement(): JSX.Element;
457
+ protected renderContent(allowInteractions: boolean): JSX.Element;
458
+ protected renderHeader(): JSX.Element;
459
+ protected renderFooter(): JSX.Element;
518
460
  protected renderElementContent(): JSX.Element;
461
+ renderElementPlaceholder(): JSX.Element;
462
+ }
463
+ export declare class QuestionRatingAdornerComponent extends CreatorModelElement<QuestionAdornerComponentProps, any> {
464
+ constructor(props: QuestionAdornerComponentProps);
465
+ modelValue: QuestionRatingAdornerViewModel;
466
+ protected createModel(): void;
467
+ protected createQuestionViewModel(): QuestionRatingAdornerViewModel;
468
+ protected getUpdatedModelProps(): Array<any>;
469
+ get ratingModel(): QuestionRatingAdornerViewModel;
470
+ get model(): QuestionRatingAdornerViewModel;
471
+ protected getStateElement(): Base;
472
+ protected renderElement(): JSX.Element;
519
473
  }
520
474
  export declare class ReactMouseEvent implements IPortableMouseEvent {
521
475
  constructor(event: any);
@@ -531,6 +485,14 @@ export declare class ReactMouseEvent implements IPortableMouseEvent {
531
485
  get offsetX(): number;
532
486
  get offsetY(): number;
533
487
  }
488
+ export declare class RowWrapper extends CreatorModelElement<RowWrapperComponentProps, any> {
489
+ constructor(props: RowWrapperComponentProps);
490
+ model: RowViewModel;
491
+ protected createModel(): void;
492
+ protected getUpdatedModelProps(): Array<any>;
493
+ protected getStateElement(): Base;
494
+ render(): JSX.Element;
495
+ }
534
496
  export declare class SurveyCreator extends CreatorBase {
535
497
  constructor(options?: ICreatorOptions, options2?: ICreatorOptions);
536
498
  render(target: string | HTMLElement): void;
@@ -539,6 +501,81 @@ export declare class SurveyCreator extends CreatorBase {
539
501
  questionTitleLocation(): string;
540
502
  questionErrorLocation(): string;
541
503
  }
504
+ export declare class SurveyCreatorToolboxItem extends CreatorModelElement<ISurveyCreatorToolboxItemProps, any> {
505
+ constructor(props: any);
506
+ model: ToolboxToolViewModel;
507
+ protected createModel(): void;
508
+ protected getUpdatedModelProps(): Array<any>;
509
+ get item(): any;
510
+ get creator(): any;
511
+ protected getStateElement(): Base;
512
+ render(): JSX.Element;
513
+ }
514
+ export declare class SurveyCreatorToolboxTool extends CreatorModelElement<ISurveyCreatorToolboxItemProps, any> {
515
+ constructor(props: any);
516
+ model: ToolboxToolViewModel;
517
+ protected createModel(): void;
518
+ protected getUpdatedModelProps(): Array<any>;
519
+ get item(): any;
520
+ get creator(): any;
521
+ get isCompact(): any;
522
+ protected getStateElement(): Base;
523
+ render(): JSX.Element;
524
+ }
525
+ export declare class SurveyPageNavigator extends CreatorModelElement<ISurveyPageNavigatorProps, any> {
526
+ constructor(props: ISurveyPageNavigatorProps);
527
+ model: PageNavigatorViewModel;
528
+ containerRef: any;
529
+ protected createModel(): void;
530
+ protected getUpdatedModelProps(): Array<any>;
531
+ protected getStateElement(): Base;
532
+ componentDidMount(): void;
533
+ componentWillUnmount(): void;
534
+ renderElement(): JSX.Element;
535
+ }
536
+ export declare class SurveyPageNavigatorItem extends CreatorModelElement<any, any> {
537
+ constructor(props: any);
538
+ protected getStateElement(): Base;
539
+ renderElement(): JSX.Element;
540
+ }
541
+ export declare class SurveyResults extends CreatorModelElement<ISurveyResultsProps, any> {
542
+ constructor(props: ISurveyResultsProps);
543
+ model: SurveyResultsModel;
544
+ protected createModel(): void;
545
+ protected getUpdatedModelProps(): Array<any>;
546
+ protected getStateElement(): Base;
547
+ render(): JSX.Element;
548
+ renderResultAsText(): JSX.Element;
549
+ renderResultAsTable(): JSX.Element;
550
+ }
551
+ export declare class SurveyResultsByRow extends CreatorModelElement<any, any> {
552
+ constructor(props: any);
553
+ protected getStateElement(): Base;
554
+ render(): JSX.Element;
555
+ }
556
+ export declare class PanelAdornerComponent extends QuestionAdornerComponent {
557
+ constructor(props: QuestionAdornerComponentProps);
558
+ renderElementPlaceholder(): JSX.Element;
559
+ protected renderFooter(): JSX.Element;
560
+ }
561
+ export declare class QuestionDropdownAdornerComponent extends QuestionAdornerComponent {
562
+ constructor(props: QuestionAdornerComponentProps);
563
+ renderElementPlaceholder(): JSX.Element;
564
+ }
565
+ export declare class QuestionImageAdornerComponent extends QuestionAdornerComponent {
566
+ constructor(props: QuestionAdornerComponentProps);
567
+ protected createQuestionViewModel(): QuestionAdornerViewModel;
568
+ get imageModel(): QuestionImageAdornerViewModel;
569
+ componentDidMount(): void;
570
+ protected renderHeader(): JSX.Element;
571
+ renderElementPlaceholder(): JSX.Element;
572
+ }
573
+ export declare class QuestionWidgetAdornerComponent extends QuestionAdornerComponent {
574
+ constructor(props: QuestionAdornerComponentProps);
575
+ protected createQuestionViewModel(): QuestionAdornerViewModel;
576
+ get widgetModel(): QuestionAdornerViewModel;
577
+ protected renderElementContent(): JSX.Element;
578
+ }
542
579
  export declare class ReactDragEvent extends ReactMouseEvent implements IPortableDragEvent {
543
580
  constructor(event: any);
544
581
  event: any;