survey-creator-react 1.12.2 → 1.12.4
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/index.html +2 -2
- package/package.json +4 -4
- package/survey-creator-react.js +1973 -1800
- package/survey-creator-react.js.map +1 -1
- package/survey-creator-react.min.js +1 -1
- package/survey-creator-react.min.js.LICENSE.txt +1 -1
- package/typings/ObjectSelector.d.ts +1 -1
- package/typings/PropertyGrid.d.ts +14 -14
- package/typings/Search.d.ts +14 -14
- package/typings/SideBar.d.ts +19 -19
- package/typings/SideBarPropertyGridHeader.d.ts +1 -1
- package/typings/SideBarPropertyGridPlaceholderHeader.d.ts +1 -1
- package/typings/adorners/Page.d.ts +1 -0
- package/typings/adorners/Question.d.ts +4 -0
- package/typings/adorners/QuestionImage.d.ts +1 -3
- package/typings/components/SurfacePlaceholder.d.ts +11 -0
- package/typings/custom-questions/BooleanSwitch.d.ts +5 -0
- package/typings/entries/index.d.ts +11 -9
- package/typings/side-bar/ObjectSelector.d.ts +1 -0
- package/typings/side-bar/PropertyGrid.d.ts +14 -0
- package/typings/side-bar/PropertyGridPlaceholder.d.ts +4 -0
- package/typings/side-bar/Search.d.ts +14 -0
- package/typings/side-bar/SideBar.d.ts +18 -0
- package/typings/side-bar/SideBarDefaultHeader.d.ts +13 -0
- package/typings/side-bar/SideBarHeader.d.ts +1 -0
- package/typings/side-bar/SideBarPropertyGridHeader.d.ts +1 -0
- package/typings/side-bar/TabButton.d.ts +13 -0
- package/typings/side-bar/TabControl.d.ts +1 -0
- package/typings/tab-control/TabButton.d.ts +13 -13
- package/typings/tab-control/TabControl.d.ts +1 -1
- package/typings/tabs/Preview.d.ts +2 -0
- package/typings/tabs/PropertyGridPlaceholder.d.ts +4 -4
- package/typings/tabs/Theme.d.ts +2 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PropertyGridViewModel } from "survey-creator-core";
|
|
3
|
-
import { Base } from "survey-core";
|
|
4
|
-
import { SurveyElementBase } from "survey-react-ui";
|
|
5
|
-
interface IPropertyGridComponentProps {
|
|
6
|
-
model: PropertyGridViewModel;
|
|
7
|
-
}
|
|
8
|
-
export declare class PropertyGridComponent extends SurveyElementBase<IPropertyGridComponentProps, any> {
|
|
9
|
-
get model(): PropertyGridViewModel;
|
|
10
|
-
protected getStateElement(): Base;
|
|
11
|
-
canRender(): boolean;
|
|
12
|
-
renderElement(): JSX.Element;
|
|
13
|
-
}
|
|
14
|
-
export default PropertyGridComponent;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PropertyGridViewModel } from "survey-creator-core";
|
|
3
|
+
import { Base } from "survey-core";
|
|
4
|
+
import { SurveyElementBase } from "survey-react-ui";
|
|
5
|
+
interface IPropertyGridComponentProps {
|
|
6
|
+
model: PropertyGridViewModel;
|
|
7
|
+
}
|
|
8
|
+
export declare class PropertyGridComponent extends SurveyElementBase<IPropertyGridComponentProps, any> {
|
|
9
|
+
get model(): PropertyGridViewModel;
|
|
10
|
+
protected getStateElement(): Base;
|
|
11
|
+
canRender(): boolean;
|
|
12
|
+
renderElement(): JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export default PropertyGridComponent;
|
package/typings/Search.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Base } from "survey-core";
|
|
3
|
-
import { SearchManager } from "survey-creator-core";
|
|
4
|
-
import { SurveyElementBase } from "survey-react-ui";
|
|
5
|
-
interface ISearchComponentProps {
|
|
6
|
-
model: SearchManager;
|
|
7
|
-
}
|
|
8
|
-
export declare class SearchComponent extends SurveyElementBase<ISearchComponentProps, any> {
|
|
9
|
-
protected get model(): SearchManager;
|
|
10
|
-
protected getStateElement(): Base;
|
|
11
|
-
constructor(props: any);
|
|
12
|
-
renderElement(): JSX.Element;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Base } from "survey-core";
|
|
3
|
+
import { SearchManager } from "survey-creator-core";
|
|
4
|
+
import { SurveyElementBase } from "survey-react-ui";
|
|
5
|
+
interface ISearchComponentProps {
|
|
6
|
+
model: SearchManager;
|
|
7
|
+
}
|
|
8
|
+
export declare class SearchComponent extends SurveyElementBase<ISearchComponentProps, any> {
|
|
9
|
+
protected get model(): SearchManager;
|
|
10
|
+
protected getStateElement(): Base;
|
|
11
|
+
constructor(props: any);
|
|
12
|
+
renderElement(): JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
package/typings/SideBar.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SidebarModel } from "survey-creator-core";
|
|
3
|
-
import { Base } from "survey-core";
|
|
4
|
-
import { SurveyElementBase } from "survey-react-ui";
|
|
5
|
-
interface ISidebarComponentProps {
|
|
6
|
-
model: SidebarModel;
|
|
7
|
-
}
|
|
8
|
-
export declare class SidebarComponent extends SurveyElementBase<ISidebarComponentProps, any> {
|
|
9
|
-
private containerRef;
|
|
10
|
-
get model(): SidebarModel;
|
|
11
|
-
constructor(props: ISidebarComponentProps);
|
|
12
|
-
protected getStateElement(): Base;
|
|
13
|
-
componentDidMount(): void;
|
|
14
|
-
componentWillUnmount(): void;
|
|
15
|
-
canRender(): boolean;
|
|
16
|
-
renderDefaultHeader(): JSX.Element;
|
|
17
|
-
renderElement(): JSX.Element;
|
|
18
|
-
}
|
|
19
|
-
export default SidebarComponent;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SidebarModel } from "survey-creator-core";
|
|
3
|
+
import { Base } from "survey-core";
|
|
4
|
+
import { SurveyElementBase } from "survey-react-ui";
|
|
5
|
+
interface ISidebarComponentProps {
|
|
6
|
+
model: SidebarModel;
|
|
7
|
+
}
|
|
8
|
+
export declare class SidebarComponent extends SurveyElementBase<ISidebarComponentProps, any> {
|
|
9
|
+
private containerRef;
|
|
10
|
+
get model(): SidebarModel;
|
|
11
|
+
constructor(props: ISidebarComponentProps);
|
|
12
|
+
protected getStateElement(): Base;
|
|
13
|
+
componentDidMount(): void;
|
|
14
|
+
componentWillUnmount(): void;
|
|
15
|
+
canRender(): boolean;
|
|
16
|
+
renderDefaultHeader(): JSX.Element;
|
|
17
|
+
renderElement(): JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
export default SidebarComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -12,6 +12,7 @@ export declare class CreatorSurveyPageComponent extends CreatorModelElement<ICre
|
|
|
12
12
|
private rootRef;
|
|
13
13
|
constructor(props: ICreatorSurveyPageComponentProps);
|
|
14
14
|
protected createModel(props: any): void;
|
|
15
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
15
16
|
protected getUpdatedModelProps(): string[];
|
|
16
17
|
protected getStateElement(): Base;
|
|
17
18
|
componentDidMount(): void;
|
|
@@ -10,6 +10,7 @@ export interface QuestionAdornerComponentProps {
|
|
|
10
10
|
export declare class QuestionAdornerComponent extends CreatorModelElement<QuestionAdornerComponentProps, any> {
|
|
11
11
|
private modelValue;
|
|
12
12
|
protected rootRef: React.RefObject<HTMLDivElement>;
|
|
13
|
+
constructor(props: QuestionAdornerComponentProps);
|
|
13
14
|
protected createModel(props: any): void;
|
|
14
15
|
protected createQuestionViewModel(props: any): QuestionAdornerViewModel;
|
|
15
16
|
protected getUpdatedModelProps(): string[];
|
|
@@ -24,5 +25,8 @@ export declare class QuestionAdornerComponent extends CreatorModelElement<Questi
|
|
|
24
25
|
protected renderCarryForwardBanner(): JSX.Element;
|
|
25
26
|
protected renderQuestionTitle(): JSX.Element;
|
|
26
27
|
protected renderElementContent(): JSX.Element;
|
|
28
|
+
componentDidMount(): void;
|
|
29
|
+
componentDidUpdate(prevProps: any, prevState: any): void;
|
|
27
30
|
renderElementPlaceholder(): JSX.Element;
|
|
31
|
+
componentWillUnmount(): void;
|
|
28
32
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { QuestionImageAdornerViewModel, QuestionAdornerViewModel } from "survey-creator-core";
|
|
3
|
-
import { QuestionAdornerComponent
|
|
3
|
+
import { QuestionAdornerComponent } from "./Question";
|
|
4
4
|
import { Base } from "survey-core";
|
|
5
5
|
export declare class QuestionImageAdornerComponent extends QuestionAdornerComponent {
|
|
6
|
-
constructor(props: QuestionAdornerComponentProps);
|
|
7
6
|
protected createQuestionViewModel(props: any): QuestionAdornerViewModel;
|
|
8
7
|
get imageModel(): QuestionImageAdornerViewModel;
|
|
9
|
-
componentDidMount(): void;
|
|
10
8
|
protected renderHeader(): JSX.Element;
|
|
11
9
|
renderLoadingPlaceholder(): JSX.Element;
|
|
12
10
|
renderChooseButton(): JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface ISurfacePlaceholderProps {
|
|
3
|
+
name: string;
|
|
4
|
+
placeholderTitleText: string;
|
|
5
|
+
placeholderDescriptionText: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class SurfacePlaceholder extends React.Component<ISurfacePlaceholderProps, any> {
|
|
8
|
+
constructor(props: ISurfacePlaceholderProps);
|
|
9
|
+
render(): JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -29,11 +29,12 @@ export * from "../toolbox/ToolboxList";
|
|
|
29
29
|
export * from "../toolbox/AdaptiveToolbox";
|
|
30
30
|
export * from "../TabbedMenu";
|
|
31
31
|
export * from "../Navigation";
|
|
32
|
-
export * from "../
|
|
33
|
-
export * from "../
|
|
34
|
-
export * from "../
|
|
35
|
-
export * from "../
|
|
36
|
-
export * from "../
|
|
32
|
+
export * from "../side-bar/TabControl";
|
|
33
|
+
export * from "../side-bar/TabButton";
|
|
34
|
+
export * from "../side-bar/SideBarDefaultHeader";
|
|
35
|
+
export * from "../side-bar/SideBarPropertyGridHeader";
|
|
36
|
+
export * from "../side-bar/SideBarHeader";
|
|
37
|
+
export * from "../side-bar/SideBar";
|
|
37
38
|
export * from "../tabs/translation/TranslationLineSkeleton";
|
|
38
39
|
export * from "../tabs/translation/TranslateFromAction";
|
|
39
40
|
export * from "../ActionButton";
|
|
@@ -45,14 +46,14 @@ export * from "../tabs/JsonEditorAce";
|
|
|
45
46
|
export * from "../tabs/JsonEditorTextarea";
|
|
46
47
|
export * from "../tabs/Logic";
|
|
47
48
|
export * from "../tabs/Preview";
|
|
48
|
-
export * from "../
|
|
49
|
+
export * from "../side-bar/PropertyGridPlaceholder";
|
|
49
50
|
export * from "../tabs/Theme";
|
|
50
51
|
export * from "../tabs/translation/Translation";
|
|
51
52
|
export * from "../tabs/SurveySimulator";
|
|
52
53
|
export * from "../events";
|
|
53
|
-
export * from "../ObjectSelector";
|
|
54
|
-
export * from "../PropertyGrid";
|
|
55
|
-
export * from "../Search";
|
|
54
|
+
export * from "../side-bar/ObjectSelector";
|
|
55
|
+
export * from "../side-bar/PropertyGrid";
|
|
56
|
+
export * from "../side-bar/Search";
|
|
56
57
|
export * from "../Switcher";
|
|
57
58
|
export * from "../tabs/JsonErrorItem";
|
|
58
59
|
export * from "../custom-questions/SpinEditor";
|
|
@@ -60,6 +61,7 @@ export * from "../custom-questions/ColorItem";
|
|
|
60
61
|
export * from "../custom-questions/ColorQuestion";
|
|
61
62
|
export * from "../custom-questions/FileEditQuestion";
|
|
62
63
|
export * from "../custom-questions/TextWithResetQuestion";
|
|
64
|
+
export * from "../custom-questions/BooleanSwitch";
|
|
63
65
|
export { editorLocalization, localization } from "survey-creator-core";
|
|
64
66
|
export { settings } from "survey-creator-core";
|
|
65
67
|
export { svgBundle } from "survey-creator-core";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PropertyGridViewModel } from "survey-creator-core";
|
|
3
|
+
import { Base } from "survey-core";
|
|
4
|
+
import { SurveyElementBase } from "survey-react-ui";
|
|
5
|
+
interface IPropertyGridComponentProps {
|
|
6
|
+
model: PropertyGridViewModel;
|
|
7
|
+
}
|
|
8
|
+
export declare class PropertyGridComponent extends SurveyElementBase<IPropertyGridComponentProps, any> {
|
|
9
|
+
get model(): PropertyGridViewModel;
|
|
10
|
+
protected getStateElement(): Base;
|
|
11
|
+
canRender(): boolean;
|
|
12
|
+
renderElement(): JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export default PropertyGridComponent;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Base } from "survey-core";
|
|
3
|
+
import { SearchManager } from "survey-creator-core";
|
|
4
|
+
import { SurveyElementBase } from "survey-react-ui";
|
|
5
|
+
interface ISearchComponentProps {
|
|
6
|
+
model: SearchManager;
|
|
7
|
+
}
|
|
8
|
+
export declare class SearchComponent extends SurveyElementBase<ISearchComponentProps, any> {
|
|
9
|
+
protected get model(): SearchManager;
|
|
10
|
+
protected getStateElement(): Base;
|
|
11
|
+
constructor(props: any);
|
|
12
|
+
renderElement(): JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SidebarModel } from "survey-creator-core";
|
|
3
|
+
import { Base } from "survey-core";
|
|
4
|
+
import { SurveyElementBase } from "survey-react-ui";
|
|
5
|
+
interface ISidebarComponentProps {
|
|
6
|
+
model: SidebarModel;
|
|
7
|
+
}
|
|
8
|
+
export declare class SidebarComponent extends SurveyElementBase<ISidebarComponentProps, any> {
|
|
9
|
+
private containerRef;
|
|
10
|
+
get model(): SidebarModel;
|
|
11
|
+
constructor(props: ISidebarComponentProps);
|
|
12
|
+
protected getStateElement(): Base;
|
|
13
|
+
componentDidMount(): void;
|
|
14
|
+
componentWillUnmount(): void;
|
|
15
|
+
canRender(): boolean;
|
|
16
|
+
renderElement(): JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
export default SidebarComponent;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Base } from "survey-core";
|
|
3
|
+
import { SurveyElementBase } from "survey-react-ui";
|
|
4
|
+
import { SidebarHeaderModel } from "survey-creator-core";
|
|
5
|
+
interface ISideBarHeaderProps {
|
|
6
|
+
model: SidebarHeaderModel;
|
|
7
|
+
}
|
|
8
|
+
export declare class SideBarDefaultHeader extends SurveyElementBase<ISideBarHeaderProps, any> {
|
|
9
|
+
get model(): SidebarHeaderModel;
|
|
10
|
+
protected getStateElement(): Base | null;
|
|
11
|
+
renderElement(): JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Base } from "survey-core";
|
|
3
|
+
import { SurveyElementBase } from "survey-react-ui";
|
|
4
|
+
import { MenuButton } from "survey-creator-core";
|
|
5
|
+
export declare class TabButtonComponent extends SurveyElementBase<{
|
|
6
|
+
model: MenuButton;
|
|
7
|
+
}, any> {
|
|
8
|
+
constructor(props: {
|
|
9
|
+
model: MenuButton;
|
|
10
|
+
});
|
|
11
|
+
protected getStateElement(): Base;
|
|
12
|
+
protected renderElement(): JSX.Element | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Base } from "survey-core";
|
|
3
|
-
import { SurveyElementBase } from "survey-react-ui";
|
|
4
|
-
import { MenuButton } from "survey-creator-core";
|
|
5
|
-
export declare class TabButtonComponent extends SurveyElementBase<{
|
|
6
|
-
model: MenuButton;
|
|
7
|
-
}, any> {
|
|
8
|
-
constructor(props: {
|
|
9
|
-
model: MenuButton;
|
|
10
|
-
});
|
|
11
|
-
protected getStateElement(): Base;
|
|
12
|
-
protected renderElement(): JSX.Element | null;
|
|
13
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Base } from "survey-core";
|
|
3
|
+
import { SurveyElementBase } from "survey-react-ui";
|
|
4
|
+
import { MenuButton } from "survey-creator-core";
|
|
5
|
+
export declare class TabButtonComponent extends SurveyElementBase<{
|
|
6
|
+
model: MenuButton;
|
|
7
|
+
}, any> {
|
|
8
|
+
constructor(props: {
|
|
9
|
+
model: MenuButton;
|
|
10
|
+
});
|
|
11
|
+
protected getStateElement(): Base;
|
|
12
|
+
protected renderElement(): JSX.Element | null;
|
|
13
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -10,6 +10,8 @@ export declare class TabPreviewSurveyComponent extends SurveyElementBase<any, an
|
|
|
10
10
|
constructor(props: any);
|
|
11
11
|
private get model();
|
|
12
12
|
protected getStateElement(): Base;
|
|
13
|
+
renderPlaceholder(): JSX.Element;
|
|
14
|
+
renderSimulator(): JSX.Element;
|
|
13
15
|
renderElement(): JSX.Element;
|
|
14
16
|
getBottomToolbar(): JSX.Element;
|
|
15
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export declare class PropertyGridPlaceholderComponent extends React.Component<any, any> {
|
|
3
|
-
render(): JSX.Element | null;
|
|
4
|
-
}
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare class PropertyGridPlaceholderComponent extends React.Component<any, any> {
|
|
3
|
+
render(): JSX.Element | null;
|
|
4
|
+
}
|
package/typings/tabs/Theme.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { SurveyElementBase } from "survey-react-ui";
|
|
|
4
4
|
export declare class TabThemeSurveyComponent extends SurveyElementBase<any, any> {
|
|
5
5
|
private get model();
|
|
6
6
|
protected getStateElement(): Base;
|
|
7
|
+
renderPlaceholder(): JSX.Element;
|
|
8
|
+
renderSimulator(): JSX.Element;
|
|
7
9
|
renderElement(): JSX.Element;
|
|
8
10
|
getBottomToolbar(): JSX.Element;
|
|
9
11
|
}
|