survey-creator-react 1.9.31 → 1.9.34

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.31",
3
+ "version": "1.9.34",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -33,9 +33,9 @@
33
33
  "dependencies": {
34
34
  "survey-core": "^1.9.9",
35
35
  "survey-react-ui": "^1.9.9",
36
- "survey-creator-core": "1.9.31",
37
- "react": "^17.0.1",
38
- "react-dom": "^17.0.1"
36
+ "survey-creator-core": "1.9.34",
37
+ "react": "^16.5.0 || ^17.0.1 || ^18.1.0",
38
+ "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
39
39
  },
40
40
  "devDependencies": {}
41
41
  }
@@ -1,17 +1,18 @@
1
1
  /*
2
- * Type definition for Survey Creator library for React v1.9.31
2
+ * Type definition for Survey Creator library for React v1.9.34
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
- import { SidebarModel, PagesController, TabDesignerViewModel, EmbedModel, AceJsonEditorModel } from "survey-creator-core";
8
- import { TextareaJsonEditorModel, ObjectSelectorModel, PropertyGridViewModel, PageAdorner, ImageItemValueWrapperViewModel } from "survey-creator-core";
9
- import { ItemValueWrapperViewModel, LogoImageViewModel, MatrixCellWrapperViewModel, QuestionRatingAdornerViewModel, RowViewModel } from "survey-creator-core";
10
- import { ITabbedMenuItem, ToolboxToolViewModel, QuestionEmbeddedSurveyModel, PageNavigatorViewModel, QuestionLinkValueModel } from "survey-creator-core";
11
- import { SurveyResultsModel, QuestionImageAdornerViewModel, IPortableMouseEvent, ICreatorOptions, IPortableDragEvent } from "survey-creator-core";
12
- import { Action, Question, QuestionRowModel, SurveyModel, PageModel } from "survey-core";
13
- import { QuestionSelectBase, ItemValue, ImageItemValue, Base, QuestionImagePickerModel } from "survey-core";
14
- import { SurveyError, IAction, ResponsivityManager, VerticalResponsivityManager } from "survey-core";
7
+ import { QuestionToolboxCategory, QuestionToolbox, SidebarModel, PagesController, TabDesignerViewModel } from "survey-creator-core";
8
+ import { EmbedModel, AceJsonEditorModel, TextareaJsonEditorModel, ObjectSelectorModel, PropertyGridViewModel } from "survey-creator-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";
15
16
  import { SurveyElementBase, ISurveyCreator, SurveyQuestionElementBase } from "survey-react-ui";
16
17
  import * as React from "react";
17
18
 
@@ -54,15 +55,15 @@ export interface ISurveyCreatorComponentProps {
54
55
  creator: SurveyCreator;
55
56
  style?: any;
56
57
  }
57
- export interface QuestionAdornerComponentProps {
58
+ export interface RowWrapperComponentProps {
58
59
  element: any;
59
- question: Question;
60
60
  componentData: any;
61
+ row: QuestionRowModel;
61
62
  }
62
- export interface RowWrapperComponentProps {
63
+ export interface QuestionAdornerComponentProps {
63
64
  element: any;
65
+ question: Question;
64
66
  componentData: any;
65
- row: QuestionRowModel;
66
67
  }
67
68
  export interface QuestionWrapperHeaderProps {
68
69
  className?: string;
@@ -110,6 +111,10 @@ export interface ISurveyCreatorToolboxItemProps {
110
111
  creator: CreatorBase;
111
112
  isCompact: boolean;
112
113
  }
114
+ export interface ISurveyCreatorToolboxCategoryProps {
115
+ category: QuestionToolboxCategory;
116
+ toolbox: QuestionToolbox;
117
+ }
113
118
  export interface ISurveyCreatorToolboxProps {
114
119
  model: CreatorBase;
115
120
  }
@@ -142,70 +147,21 @@ export declare class ActionButton extends SurveyElementBase<any, any> {
142
147
  constructor(props: any);
143
148
  renderElement(): any;
144
149
  }
145
- export declare class CellQuestionAdornerComponent extends SurveyElementBase<QuestionAdornerComponentProps, any> {
146
- constructor(props: QuestionAdornerComponentProps);
147
- model: QuestionAdornerViewModel;
148
- protected getStateElement(): Base;
149
- render(): any;
150
- }
151
- export declare class CellQuestionDropdownAdornerComponent extends SurveyElementBase<QuestionAdornerComponentProps, any> {
152
- constructor(props: QuestionAdornerComponentProps);
153
- model: QuestionAdornerViewModel;
154
- protected getStateElement(): Base;
155
- render(): any;
156
- }
157
- export declare class CreatorSurveyPageComponent extends SurveyElementBase<ICreatorSurveyPageComponentProps, any> {
158
- constructor(props: ICreatorSurveyPageComponentProps);
159
- model: PageAdorner;
160
- rootRef: any;
161
- protected getStateElement(): Base;
162
- componentDidMount(): void;
163
- componentWillUnmount(): void;
164
- protected canRender(): boolean;
165
- renderElement(): any;
166
- protected renderContent(): any;
167
- protected renderHeader(): any;
168
- protected renderFooter(): any;
169
- }
170
- export declare class ImageItemValueAdornerComponent extends SurveyElementBase<ImageItemValueAdornerComponentProps, any> {
171
- constructor(props: ImageItemValueAdornerComponentProps);
172
- model: ImageItemValueWrapperViewModel;
173
- rootRef: any;
174
- protected getStateElement(): Base;
175
- protected get question(): QuestionImagePickerModel;
176
- componentDidMount(): void;
177
- preventDragHandler: (e: any) => void;
178
- render(): any;
179
- }
180
- export declare class ItemValueAdornerComponent extends SurveyElementBase<ItemValueAdornerComponentProps, any> {
181
- constructor(props: ItemValueAdornerComponentProps);
182
- model: ItemValueWrapperViewModel;
183
- protected getStateElement(): Base;
184
- render(): any;
185
- }
186
- export declare class LogoImageComponent extends SurveyElementBase<ILogoImageComponentProps, any> {
187
- constructor(props: ILogoImageComponentProps);
188
- model: LogoImageViewModel;
189
- rootRef: any;
190
- protected getStateElement(): Base;
191
- componentDidMount(): void;
192
- render(): any;
193
- }
194
- export declare class MatrixCellAdornerComponent extends SurveyElementBase<MatrixCellAdornerComponentProps, any> {
195
- constructor(props: MatrixCellAdornerComponentProps);
196
- model: MatrixCellWrapperViewModel;
150
+ export declare class CreatorModelElement<P, S> extends SurveyElementBase<P, S> {
151
+ constructor(props: any);
197
152
  componentDidUpdate(prevProps: any, prevState: any): void;
198
- protected getStateElement(): Base;
199
- render(): any;
153
+ protected createModel(): void;
154
+ protected needUpdateModel(prevProps: any): boolean;
155
+ protected getUpdatedModelProps(): Array<any>;
200
156
  }
201
157
  export declare class NotifierComponent extends SurveyElementBase<NotifierComponentProps, any> {
202
- constructor(props: NotifierComponentProps);
158
+ constructor(props: any);
203
159
  get notifier(): any;
204
160
  protected getStateElement(): Base;
205
161
  renderElement(): any;
206
162
  }
207
163
  export declare class ObjectSelectorComponent extends SurveyElementBase<IObjectSelectorComponentProps, any> {
208
- constructor(props: IObjectSelectorComponentProps);
164
+ constructor(props: any);
209
165
  protected get model(): ObjectSelectorModel;
210
166
  protected getStateElement(): Base;
211
167
  renderElement(): any;
@@ -217,23 +173,9 @@ export declare class PropertyGridComponent extends SurveyElementBase<IPropertyGr
217
173
  canRender(): boolean;
218
174
  renderElement(): any;
219
175
  }
220
- export declare class QuestionAdornerComponent extends SurveyElementBase<QuestionAdornerComponentProps, any> {
221
- constructor(props: QuestionAdornerComponentProps);
222
- modelValue: QuestionAdornerViewModel;
223
- protected rootRef: any;
224
- protected createQuestionViewModel(): QuestionAdornerViewModel;
225
- get model(): QuestionAdornerViewModel;
226
- protected getStateElement(): Base;
227
- protected canRender(): boolean;
228
- renderElement(): any;
229
- protected renderContent(allowInteractions: boolean): any;
230
- protected renderHeader(): any;
231
- protected renderFooter(): any;
232
- protected renderElementContent(): any;
233
- renderElementPlaceholder(): any;
234
- }
235
176
  export declare class QuestionEditorContentComponent extends React.Component<IQuestionEditorContentComponentProps, any> implements ISurveyCreator {
236
- constructor(props: IQuestionEditorContentComponentProps);
177
+ constructor(props: any);
178
+ constructor(props: IQuestionEditorContentComponentProps, context: any);
237
179
  get survey(): any;
238
180
  createQuestionElement(question: Question): JSX.Element;
239
181
  questionTitleLocation(): string;
@@ -241,15 +183,6 @@ export declare class QuestionEditorContentComponent extends React.Component<IQue
241
183
  renderError(key: string, error: SurveyError, cssClasses: any): JSX.Element;
242
184
  render(): JSX.Element;
243
185
  }
244
- export declare class QuestionRatingAdornerComponent extends SurveyElementBase<QuestionAdornerComponentProps, any> {
245
- constructor(props: QuestionAdornerComponentProps);
246
- modelValue: QuestionRatingAdornerViewModel;
247
- protected createQuestionViewModel(): QuestionRatingAdornerViewModel;
248
- get ratingModel(): QuestionRatingAdornerViewModel;
249
- get model(): QuestionRatingAdornerViewModel;
250
- protected getStateElement(): Base;
251
- protected renderElement(): JSX.Element;
252
- }
253
186
  export declare class QuestionWrapperFooter extends React.Component<QuestionWrapperFooterProps, any> {
254
187
  constructor(props: any);
255
188
  constructor(props: QuestionWrapperFooterProps, context: any);
@@ -260,12 +193,6 @@ export declare class QuestionWrapperHeader extends React.Component<QuestionWrapp
260
193
  constructor(props: QuestionWrapperHeaderProps, context: any);
261
194
  render(): JSX.Element;
262
195
  }
263
- export declare class RowWrapper extends SurveyElementBase<RowWrapperComponentProps, any> {
264
- constructor(props: RowWrapperComponentProps);
265
- model: RowViewModel;
266
- protected getStateElement(): Base;
267
- render(): JSX.Element;
268
- }
269
196
  export declare class SidebarComponent extends SurveyElementBase<ISidebarComponentProps, any> {
270
197
  constructor(props: ISidebarComponentProps);
271
198
  containerRef: any;
@@ -294,22 +221,16 @@ export declare class SurveyCreatorComponent extends SurveyElementBase<ISurveyCre
294
221
  renderCreatorTab(tab: ITabbedMenuItem): JSX.Element;
295
222
  renderSidebar(): JSX.Element;
296
223
  }
297
- export declare class SurveyCreatorToolboxItem extends SurveyElementBase<ISurveyCreatorToolboxItemProps, any> {
224
+ export declare class SurveyCreatorToolboxCategory extends SurveyElementBase<ISurveyCreatorToolboxCategoryProps, any> {
298
225
  constructor(props: any);
299
- model: ToolboxToolViewModel;
300
- get item(): any;
301
- get creator(): any;
302
- protected getStateElement(): Base;
303
- render(): JSX.Element;
304
- }
305
- export declare class SurveyCreatorToolboxTool extends SurveyElementBase<ISurveyCreatorToolboxItemProps, any> {
306
- constructor(props: any);
307
- model: ToolboxToolViewModel;
308
- get item(): any;
309
- get creator(): any;
310
- get isCompact(): any;
226
+ get category(): any;
227
+ get toolbox(): any;
311
228
  protected getStateElement(): Base;
312
229
  render(): JSX.Element;
230
+ renderCategoryHeader(): JSX.Element;
231
+ renderButton(): JSX.Element;
232
+ protected renderCategoryContent(): Array<any>;
233
+ renderItems(items: any, isCompact?: boolean): any;
313
234
  }
314
235
  export declare class SurveyElementEmbeddedSurvey extends SurveyQuestionElementBase {
315
236
  constructor(props: any);
@@ -329,39 +250,12 @@ export declare class SurveyNavigation extends SurveyElementBase<any, any> {
329
250
  protected canRender(): boolean;
330
251
  renderElement(): JSX.Element;
331
252
  }
332
- export declare class SurveyPageNavigator extends SurveyElementBase<ISurveyPageNavigatorProps, any> {
333
- constructor(props: ISurveyPageNavigatorProps);
334
- model: PageNavigatorViewModel;
335
- containerRef: any;
336
- protected getStateElement(): Base;
337
- componentDidMount(): void;
338
- componentWillUnmount(): void;
339
- renderElement(): JSX.Element;
340
- }
341
- export declare class SurveyPageNavigatorItem extends SurveyElementBase<any, any> {
342
- constructor(props: IAction);
343
- protected getStateElement(): Base;
344
- renderElement(): JSX.Element;
345
- }
346
253
  export declare class SurveyQuestionLinkValue extends SurveyQuestionElementBase {
347
254
  constructor(props: any);
348
255
  protected get question(): QuestionLinkValueModel;
349
256
  protected renderClear(): JSX.Element;
350
257
  protected renderElement(): JSX.Element;
351
258
  }
352
- export declare class SurveyResults extends SurveyElementBase<ISurveyResultsProps, any> {
353
- constructor(props: ISurveyResultsProps);
354
- model: SurveyResultsModel;
355
- protected getStateElement(): Base;
356
- render(): JSX.Element;
357
- renderResultAsText(): JSX.Element;
358
- renderResultAsTable(): JSX.Element;
359
- }
360
- export declare class SurveyResultsByRow extends SurveyElementBase<any, any> {
361
- constructor(props: any);
362
- protected getStateElement(): Base;
363
- render(): JSX.Element;
364
- }
365
259
  export declare class SurveySimulator extends SurveyElementBase<any, any> {
366
260
  constructor(props: any);
367
261
  protected getStateElement(): Base;
@@ -385,9 +279,10 @@ export declare class TabDesignerComponent extends SurveyElementBase<ITabDesigner
385
279
  protected getStateElements(): Array<Base>;
386
280
  renderedPagesCache: any;
387
281
  protected getRenderedPages(): Array<Element>;
388
- protected createRenderedPage(page: PageModel, index: number): any;
282
+ protected createRenderedPage(page: PageModel, index: number, isGhostPage?: boolean): any;
389
283
  protected renderPage(pageV: PageModel): JSX.Element;
390
284
  renderElement(): JSX.Element;
285
+ renderHeader(condition: boolean): JSX.Element;
391
286
  renderPlaceHolder(): JSX.Element;
392
287
  renderPlaceHolderContent(): JSX.Element;
393
288
  renderTabContent(): JSX.Element;
@@ -457,15 +352,13 @@ export declare class TabbedMenuItemWrapper extends SurveyElementBase<any, any> {
457
352
  renderElement(): JSX.Element;
458
353
  }
459
354
  export declare class Toolbox extends SurveyElementBase<ISurveyCreatorToolboxProps, any> {
460
- constructor(props: ISurveyCreatorToolboxProps);
355
+ constructor(props: any);
461
356
  get creator(): any;
462
357
  get toolbox(): any;
463
358
  protected getStateElement(): Base;
464
359
  render(): JSX.Element;
465
- renderItems(items: any): any;
360
+ renderItems(items: any, isCompact?: boolean): any;
466
361
  renderCategories(): any;
467
- renderCategoryHeader(category: any): JSX.Element;
468
- protected renderCategoryContent(category: any): Array<any>;
469
362
  }
470
363
  export declare class TranslationLineSkeleton extends React.Component<any, any> {
471
364
  constructor(props: any);
@@ -479,31 +372,104 @@ export declare class AdaptiveToolbox extends Toolbox {
479
372
  componentDidMount(): void;
480
373
  componentWillUnmount(): void;
481
374
  render(): JSX.Element;
482
- renderItems(items: any, isCompact?: boolean): any;
483
- protected renderCategoryContent(category: any): Array<any>;
484
375
  }
485
- export declare class PanelAdornerComponent extends QuestionAdornerComponent {
376
+ export declare class CellQuestionAdornerComponent extends CreatorModelElement<QuestionAdornerComponentProps, any> {
486
377
  constructor(props: QuestionAdornerComponentProps);
487
- renderElementPlaceholder(): JSX.Element;
488
- protected renderFooter(): JSX.Element;
378
+ model: QuestionAdornerViewModel;
379
+ protected createModel(): void;
380
+ protected getStateElement(): Base;
381
+ protected getUpdatedModelProps(): Array<any>;
382
+ render(): JSX.Element;
489
383
  }
490
- export declare class QuestionDropdownAdornerComponent extends QuestionAdornerComponent {
384
+ export declare class CellQuestionDropdownAdornerComponent extends CreatorModelElement<QuestionAdornerComponentProps, any> {
491
385
  constructor(props: QuestionAdornerComponentProps);
492
- renderElementPlaceholder(): JSX.Element;
386
+ model: QuestionAdornerViewModel;
387
+ protected createModel(): void;
388
+ protected getUpdatedModelProps(): Array<any>;
389
+ protected getStateElement(): Base;
390
+ render(): JSX.Element;
493
391
  }
494
- export declare class QuestionImageAdornerComponent extends QuestionAdornerComponent {
495
- constructor(props: QuestionAdornerComponentProps);
496
- protected createQuestionViewModel(): QuestionAdornerViewModel;
497
- 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;
498
399
  componentDidMount(): void;
400
+ componentWillUnmount(): void;
401
+ protected canRender(): boolean;
402
+ renderElement(): JSX.Element;
403
+ protected renderContent(): JSX.Element;
499
404
  protected renderHeader(): JSX.Element;
500
- renderElementPlaceholder(): JSX.Element;
405
+ protected renderFooter(): JSX.Element;
501
406
  }
502
- 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> {
503
447
  constructor(props: QuestionAdornerComponentProps);
448
+ modelValue: QuestionAdornerViewModel;
449
+ protected rootRef: any;
450
+ protected createModel(): void;
504
451
  protected createQuestionViewModel(): QuestionAdornerViewModel;
505
- 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;
506
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;
507
473
  }
508
474
  export declare class ReactMouseEvent implements IPortableMouseEvent {
509
475
  constructor(event: any);
@@ -519,6 +485,14 @@ export declare class ReactMouseEvent implements IPortableMouseEvent {
519
485
  get offsetX(): number;
520
486
  get offsetY(): number;
521
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
+ }
522
496
  export declare class SurveyCreator extends CreatorBase {
523
497
  constructor(options?: ICreatorOptions, options2?: ICreatorOptions);
524
498
  render(target: string | HTMLElement): void;
@@ -527,6 +501,81 @@ export declare class SurveyCreator extends CreatorBase {
527
501
  questionTitleLocation(): string;
528
502
  questionErrorLocation(): string;
529
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
+ }
530
579
  export declare class ReactDragEvent extends ReactMouseEvent implements IPortableDragEvent {
531
580
  constructor(event: any);
532
581
  event: any;