survey-creator-react 1.9.15 → 1.9.19
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 +2 -2
- package/package.json +2 -2
- package/survey-creator-react.d.ts +22 -11
- package/survey-creator-react.js +87 -37
- package/survey-creator-react.min.js +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Survey Creator V2 for React
|
|
1
|
+
# Survey Creator V2 for React
|
|
2
2
|
|
|
3
3
|
[](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>
|
|
@@ -26,7 +26,7 @@ import { Component, Fragment } from "react";
|
|
|
26
26
|
import { SurveyCreatorComponent, SurveyCreator } from "survey-creator-react";
|
|
27
27
|
// Import CSS files for SurveyJS (survey-core) and Survey Creator
|
|
28
28
|
import "survey-core/defaultV2.min.css";
|
|
29
|
-
import "survey-creator-
|
|
29
|
+
import "survey-creator-core/survey-creator-core.min.css";
|
|
30
30
|
|
|
31
31
|
export class SurveyCreatorWidget extends Component {
|
|
32
32
|
constructor() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-react",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.19",
|
|
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.
|
|
36
|
+
"survey-creator-core": "1.9.19",
|
|
37
37
|
"react": "^17.0.1",
|
|
38
38
|
"react-dom": "^17.0.1"
|
|
39
39
|
},
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Type definition for Survey Creator library for React v1.9.
|
|
2
|
+
* Type definition for Survey Creator library for React v1.9.19
|
|
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 { SidebarModel, TabDesignerViewModel, EmbedModel, AceJsonEditorModel, TextareaJsonEditorModel } from "survey-creator-core";
|
|
8
8
|
import { ObjectSelectorModel, PropertyGridViewModel, PageViewModel, ImageItemValueWrapperViewModel, ItemValueWrapperViewModel } from "survey-creator-core";
|
|
9
|
-
import { LogoImageViewModel, MatrixCellWrapperViewModel, RowViewModel, ITabbedMenuItem
|
|
10
|
-
import { QuestionEmbeddedSurveyModel, PageNavigatorViewModel, QuestionLinkValueModel, SurveyResultsModel
|
|
11
|
-
import {
|
|
9
|
+
import { LogoImageViewModel, MatrixCellWrapperViewModel, QuestionRatingAdornerViewModel, RowViewModel, ITabbedMenuItem } from "survey-creator-core";
|
|
10
|
+
import { ToolboxToolViewModel, QuestionEmbeddedSurveyModel, PageNavigatorViewModel, QuestionLinkValueModel, SurveyResultsModel } from "survey-creator-core";
|
|
11
|
+
import { QuestionImageAdornerViewModel, IPortableMouseEvent, ICreatorOptions, IPortableDragEvent } from "survey-creator-core";
|
|
12
12
|
import { Action, Question, QuestionRowModel, SurveyModel, PageModel } from "survey-core";
|
|
13
13
|
import { QuestionSelectBase, ItemValue, ImageItemValue, Base, SurveyError } from "survey-core";
|
|
14
14
|
import { IAction, ResponsivityManager, VerticalResponsivityManager } from "survey-core";
|
|
@@ -239,6 +239,15 @@ export declare class QuestionEditorContentComponent extends React.Component<IQue
|
|
|
239
239
|
renderError(key: string, error: SurveyError, cssClasses: any): any;
|
|
240
240
|
render(): any;
|
|
241
241
|
}
|
|
242
|
+
export declare class QuestionRatingAdornerComponent extends SurveyElementBase<QuestionAdornerComponentProps, any> {
|
|
243
|
+
constructor(props: QuestionAdornerComponentProps);
|
|
244
|
+
modelValue: QuestionAdornerViewModel;
|
|
245
|
+
protected createQuestionViewModel(): QuestionAdornerViewModel;
|
|
246
|
+
get ratingModel(): QuestionRatingAdornerViewModel;
|
|
247
|
+
get model(): QuestionAdornerViewModel;
|
|
248
|
+
protected getStateElement(): Base;
|
|
249
|
+
protected renderElement(): any;
|
|
250
|
+
}
|
|
242
251
|
export declare class QuestionWrapperFooter extends React.Component<QuestionWrapperFooterProps, any> {
|
|
243
252
|
constructor(props: any);
|
|
244
253
|
constructor(props: QuestionWrapperFooterProps, context: any);
|
|
@@ -353,8 +362,16 @@ export declare class SvgBundleComponent extends React.Component {
|
|
|
353
362
|
export declare class TabDesignerComponent extends SurveyElementBase<ITabDesignerComponentProps, any> {
|
|
354
363
|
constructor(props: any);
|
|
355
364
|
protected get creator(): CreatorBase;
|
|
365
|
+
denyUpdate: any;
|
|
366
|
+
allowUpdate: any;
|
|
367
|
+
addDragDropEvents: any;
|
|
368
|
+
clearDragDropEvents: any;
|
|
369
|
+
componentDidMount(): void;
|
|
370
|
+
componentWillUnmount(): void;
|
|
356
371
|
protected getStateElements(): Array<Base>;
|
|
357
|
-
|
|
372
|
+
renderedPagesCache: any;
|
|
373
|
+
protected getRenderedPages(): Array<Element>;
|
|
374
|
+
protected createRenderedPage(page: PageModel, index: number): any;
|
|
358
375
|
protected renderPage(pageV: PageModel): any;
|
|
359
376
|
renderElement(): any;
|
|
360
377
|
renderPlaceHolder(): any;
|
|
@@ -467,12 +484,6 @@ export declare class QuestionImageAdornerComponent extends QuestionAdornerCompon
|
|
|
467
484
|
protected renderHeader(): any;
|
|
468
485
|
renderElementPlaceholder(): any;
|
|
469
486
|
}
|
|
470
|
-
export declare class QuestionRatingAdornerComponent extends QuestionAdornerComponent {
|
|
471
|
-
constructor(props: QuestionAdornerComponentProps);
|
|
472
|
-
protected createQuestionViewModel(): QuestionAdornerViewModel;
|
|
473
|
-
get ratingModel(): QuestionRatingAdornerViewModel;
|
|
474
|
-
protected renderFooter(): any;
|
|
475
|
-
}
|
|
476
487
|
export declare class QuestionWidgetAdornerComponent extends QuestionAdornerComponent {
|
|
477
488
|
constructor(props: QuestionAdornerComponentProps);
|
|
478
489
|
protected createQuestionViewModel(): QuestionAdornerViewModel;
|