amis-editor 3.3.6-beta.10 → 3.3.6-beta.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Animation.d.ts +22 -0
- package/dist/BasicContainerEditor.d.ts +46 -0
- package/dist/BasicEditor.d.ts +214 -0
- package/dist/Breadcrumb.d.ts +19 -0
- package/dist/ClassNameControl.d.ts +31 -0
- package/dist/CodeEditor.d.ts +34 -0
- package/dist/Editor.d.ts +251 -0
- package/dist/HighlightBox.d.ts +17 -0
- package/dist/MiniEditor.d.ts +9 -0
- package/dist/Outline.d.ts +38 -0
- package/dist/PositionRegion.d.ts +7 -0
- package/dist/Preview.d.ts +76 -0
- package/dist/Region.d.ts +61 -0
- package/dist/RendererThumb.d.ts +23 -0
- package/dist/Renderers.d.ts +39 -0
- package/dist/RenderersPicker.d.ts +28 -0
- package/dist/SettingForm.d.ts +20 -0
- package/dist/Settings.d.ts +58 -0
- package/dist/component/ScaffoldModal.d.ts +1 -1
- package/dist/dom-helper.d.ts +2 -0
- package/dist/editors/Action.d.ts +14 -0
- package/dist/editors/Alert.d.ts +11 -0
- package/dist/editors/Audio.d.ts +9 -0
- package/dist/editors/ButtonGroup.d.ts +15 -0
- package/dist/editors/ButtonToolbar.d.ts +7 -0
- package/dist/editors/CRUD.d.ts +27 -0
- package/dist/editors/Card.d.ts +47 -0
- package/dist/editors/Cards.d.ts +20 -0
- package/dist/editors/Carousel.d.ts +9 -0
- package/dist/editors/Chart.d.ts +13 -0
- package/dist/editors/Collapse.d.ts +13 -0
- package/dist/editors/Container.d.ts +13 -0
- package/dist/editors/Date.d.ts +18 -0
- package/dist/editors/Dialog.d.ts +27 -0
- package/dist/editors/DiffEditor.d.ts +8 -0
- package/dist/editors/Divdier.d.ts +8 -0
- package/dist/editors/Drawer.d.ts +26 -0
- package/dist/editors/DropDownButton.d.ts +16 -0
- package/dist/editors/Each.d.ts +16 -0
- package/dist/editors/Form/Array.d.ts +12 -0
- package/dist/editors/Form/Button.d.ts +13 -0
- package/dist/editors/Form/ButtonGroup.d.ts +17 -0
- package/dist/editors/Form/ButtonToolbar.d.ts +15 -0
- package/dist/editors/Form/ChainedSelect.d.ts +8 -0
- package/dist/editors/Form/Checkbox.d.ts +8 -0
- package/dist/editors/Form/Checkboxes.d.ts +8 -0
- package/dist/editors/Form/City.d.ts +8 -0
- package/dist/editors/Form/Color.d.ts +8 -0
- package/dist/editors/Form/Combo.d.ts +19 -0
- package/dist/editors/Form/Container.d.ts +22 -0
- package/dist/editors/Form/Control.d.ts +15 -0
- package/dist/editors/Form/Date.d.ts +9 -0
- package/dist/editors/Form/DateRange.d.ts +9 -0
- package/dist/editors/Form/Datetime.d.ts +9 -0
- package/dist/editors/Form/DiffEditor.d.ts +8 -0
- package/dist/editors/Form/Editor.d.ts +12 -0
- package/dist/editors/Form/Email.d.ts +8 -0
- package/dist/editors/Form/FieldSet.d.ts +22 -0
- package/dist/editors/Form/File.d.ts +8 -0
- package/dist/editors/Form/Form.d.ts +26 -0
- package/dist/editors/Form/Formula.d.ts +11 -0
- package/dist/editors/Form/Grid.d.ts +21 -0
- package/dist/editors/Form/Group.d.ts +21 -0
- package/dist/editors/Form/HBox.d.ts +20 -0
- package/dist/editors/Form/Hidden.d.ts +21 -0
- package/dist/editors/Form/Image.d.ts +8 -0
- package/dist/editors/Form/InputGroup.d.ts +12 -0
- package/dist/editors/Form/Item.d.ts +8 -0
- package/dist/editors/Form/List.d.ts +16 -0
- package/dist/editors/Form/Matrix.d.ts +8 -0
- package/dist/editors/Form/NestedSelect.d.ts +50 -0
- package/dist/editors/Form/Number.d.ts +8 -0
- package/dist/editors/Form/Panel.d.ts +22 -0
- package/dist/editors/Form/Password.d.ts +10 -0
- package/dist/editors/Form/Picker.d.ts +17 -0
- package/dist/editors/Form/QRCode.d.ts +8 -0
- package/dist/editors/Form/Radios.d.ts +8 -0
- package/dist/editors/Form/Range.d.ts +8 -0
- package/dist/editors/Form/Rating.d.ts +8 -0
- package/dist/editors/Form/Repeat.d.ts +8 -0
- package/dist/editors/Form/Reset.d.ts +8 -0
- package/dist/editors/Form/RichText.d.ts +8 -0
- package/dist/editors/Form/Select.d.ts +8 -0
- package/dist/editors/Form/Service.d.ts +25 -0
- package/dist/editors/Form/Static.d.ts +18 -0
- package/dist/editors/Form/SubForm.d.ts +12 -0
- package/dist/editors/Form/Submit.d.ts +9 -0
- package/dist/editors/Form/Switch.d.ts +8 -0
- package/dist/editors/Form/Tab.d.ts +12 -0
- package/dist/editors/Form/Table.d.ts +25 -0
- package/dist/editors/Form/Tabs.d.ts +6 -0
- package/dist/editors/Form/Tag.d.ts +10 -0
- package/dist/editors/Form/Text.d.ts +10 -0
- package/dist/editors/Form/Textarea.d.ts +8 -0
- package/dist/editors/Form/Time.d.ts +9 -0
- package/dist/editors/Form/Tree.d.ts +50 -0
- package/dist/editors/Form/TreeSelect.d.ts +50 -0
- package/dist/editors/Form/Url.d.ts +8 -0
- package/dist/editors/Grid.d.ts +16 -0
- package/dist/editors/HBox.d.ts +13 -0
- package/dist/editors/IFrame.d.ts +11 -0
- package/dist/editors/Image.d.ts +9 -0
- package/dist/editors/Json.d.ts +9 -0
- package/dist/editors/Link.d.ts +8 -0
- package/dist/editors/List.d.ts +70 -0
- package/dist/editors/Mapping.d.ts +9 -0
- package/dist/editors/Nav.d.ts +142 -0
- package/dist/editors/Operation.d.ts +17 -0
- package/dist/editors/Page.d.ts +15 -0
- package/dist/editors/Panel.d.ts +13 -0
- package/dist/editors/Plain.d.ts +9 -0
- package/dist/editors/Progress.d.ts +9 -0
- package/dist/editors/QRCode.d.ts +8 -0
- package/dist/editors/Service.d.ts +5 -0
- package/dist/editors/Status.d.ts +9 -0
- package/dist/editors/Switch.d.ts +9 -0
- package/dist/editors/Tab.d.ts +13 -0
- package/dist/editors/Table.d.ts +27 -0
- package/dist/editors/TableCell.d.ts +29 -0
- package/dist/editors/TableColumnsRegion.d.ts +6 -0
- package/dist/editors/Tabs.d.ts +15 -0
- package/dist/editors/Tasks.d.ts +8 -0
- package/dist/editors/Tpl.d.ts +8 -0
- package/dist/editors/Video.d.ts +8 -0
- package/dist/editors/Wizard.d.ts +15 -0
- package/dist/editors/WizardStep.d.ts +19 -0
- package/dist/editors/Wrapper.d.ts +11 -0
- package/dist/editors/index.d.ts +101 -0
- package/dist/editors/templates.d.ts +3 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.min.js +1 -1
- package/dist/json-ast/index.d.ts +53 -0
- package/dist/plugin/CRUD.d.ts +5 -16
- package/dist/plugin/DiffEditor.d.ts +19 -0
- package/dist/plugin/Form/AnchorNav.d.ts +17 -0
- package/dist/plugin/Form/Array.d.ts +27 -0
- package/dist/plugin/Form/Button.d.ts +11 -0
- package/dist/plugin/Form/ButtonGroup.d.ts +22 -0
- package/dist/plugin/Form/City.d.ts +19 -0
- package/dist/plugin/Form/Container.d.ts +37 -0
- package/dist/plugin/Form/Date.d.ts +20 -0
- package/dist/plugin/Form/DateRange.d.ts +20 -0
- package/dist/plugin/Form/DateTime.d.ts +19 -0
- package/dist/plugin/Form/Email.d.ts +25 -0
- package/dist/plugin/Form/File.d.ts +19 -0
- package/dist/plugin/Form/Form.d.ts +2 -1
- package/dist/plugin/Form/Grid.d.ts +32 -0
- package/dist/plugin/Form/HBox.d.ts +73 -0
- package/dist/plugin/Form/Image.d.ts +20 -0
- package/dist/plugin/Form/List.d.ts +24 -0
- package/dist/plugin/Form/Location.d.ts +48 -0
- package/dist/plugin/Form/Matrix.d.ts +26 -0
- package/dist/plugin/Form/Month.d.ts +16 -0
- package/dist/plugin/Form/MonthRange.d.ts +20 -0
- package/dist/plugin/Form/Number.d.ts +20 -0
- package/dist/plugin/Form/Panel.d.ts +24 -0
- package/dist/plugin/Form/Password.d.ts +25 -0
- package/dist/plugin/Form/QRCode.d.ts +20 -0
- package/dist/plugin/Form/Range.d.ts +19 -0
- package/dist/plugin/Form/Rating.d.ts +19 -0
- package/dist/plugin/Form/Repeat.d.ts +19 -0
- package/dist/plugin/Form/RichText.d.ts +19 -0
- package/dist/plugin/Form/Service.d.ts +24 -0
- package/dist/plugin/Form/SubForm.d.ts +64 -0
- package/dist/plugin/Form/Table.d.ts +34 -0
- package/dist/plugin/Form/Tabs.d.ts +17 -0
- package/dist/plugin/Form/Tag.d.ts +21 -0
- package/dist/plugin/Form/Text.d.ts +20 -0
- package/dist/plugin/Form/Time.d.ts +19 -0
- package/dist/plugin/Form/Tree.d.ts +73 -0
- package/dist/plugin/Form/Url.d.ts +25 -0
- package/dist/plugin/Form/Year.d.ts +16 -0
- package/dist/plugin/Switch.d.ts +21 -0
- package/dist/types.d.ts +40 -0
- package/package.json +20 -43
@@ -0,0 +1,13 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import BasicContainerEditor from '../BasicContainerEditor';
|
3
|
+
export declare class TabEditor extends BasicContainerEditor {
|
4
|
+
tipName: string;
|
5
|
+
containers: string[];
|
6
|
+
containerLabels: string[];
|
7
|
+
settingsSchema: {
|
8
|
+
title: string;
|
9
|
+
controls: any;
|
10
|
+
};
|
11
|
+
renderRenderer(props: any): JSX.Element;
|
12
|
+
openEditForm(): void;
|
13
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Schema } from '../types';
|
3
|
+
import BasicContainerEditor from '../BasicContainerEditor';
|
4
|
+
export declare class TableEditor extends BasicContainerEditor {
|
5
|
+
tipName: string;
|
6
|
+
isCRUDBody: boolean;
|
7
|
+
dropable: boolean;
|
8
|
+
containers: string[];
|
9
|
+
containerLabels: string[];
|
10
|
+
childrenSortList: {
|
11
|
+
columns: string[];
|
12
|
+
};
|
13
|
+
handleAdd: () => void;
|
14
|
+
settingsSchema: {
|
15
|
+
title: string;
|
16
|
+
controls: any;
|
17
|
+
};
|
18
|
+
handleColumnsQuickEdit(): void;
|
19
|
+
handleHover(e: MouseEvent): void;
|
20
|
+
handleClick(e: MouseEvent): any;
|
21
|
+
renderChild(region: string, node: Schema, props: any): JSX.Element;
|
22
|
+
renderRenderer(props: any): JSX.Element;
|
23
|
+
getContextMenus(): any[];
|
24
|
+
emptyChild(key: string): void;
|
25
|
+
onAddNode(key: string, child: any): any;
|
26
|
+
}
|
27
|
+
export declare function mockValue(value: any, type: string): any;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import React = require('react');
|
2
|
+
import { RendererProps } from '../types';
|
3
|
+
import BasicContainerEditor from '../BasicContainerEditor';
|
4
|
+
export declare class TableCellEditor extends BasicContainerEditor {
|
5
|
+
tipName: string;
|
6
|
+
replaceable: boolean;
|
7
|
+
codeEditable: boolean;
|
8
|
+
draggable: boolean;
|
9
|
+
settingsSchema: {
|
10
|
+
title: string;
|
11
|
+
controls: any[];
|
12
|
+
};
|
13
|
+
childrenOrder: string[];
|
14
|
+
state: any;
|
15
|
+
constructor(props: RendererProps, context: any);
|
16
|
+
getContextMenus(): any[];
|
17
|
+
acceptChild(type: string, region?: string, rendererId?: string): boolean | null;
|
18
|
+
getSettingsValue(): any;
|
19
|
+
onChildSettingsGet(type: string, value: any): any;
|
20
|
+
onChildSettingsSet(type: string, value: any, origin: any, replaceMode?: boolean): any;
|
21
|
+
setSettingsValue(value: any): void;
|
22
|
+
handleToolbarAction(id: string): void;
|
23
|
+
handleQuickEditSetting(): void;
|
24
|
+
handlePopOverSetting(): void;
|
25
|
+
handleEditDetail(): void;
|
26
|
+
renderRenderer(props: any): React.FunctionComponentElement<{
|
27
|
+
'data-editor-id': any;
|
28
|
+
}>;
|
29
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import BasicEditor from '../BasicEditor';
|
3
|
+
export declare class TabsEditor extends BasicEditor {
|
4
|
+
tipName: string;
|
5
|
+
containers: string[];
|
6
|
+
settingsSchema: {
|
7
|
+
title: string;
|
8
|
+
controls: any;
|
9
|
+
};
|
10
|
+
handleClick(e: Event): void;
|
11
|
+
renderRenderer(props: any): JSX.Element;
|
12
|
+
switchTo(index: number): void;
|
13
|
+
getContextMenus(): any[];
|
14
|
+
handleAdd(): void;
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import BasicEditor from '../BasicEditor';
|
3
|
+
import { RendererProps } from '../types';
|
4
|
+
export declare class WizardEditor extends BasicEditor {
|
5
|
+
tipName: string;
|
6
|
+
settingsSchema: {
|
7
|
+
title: string;
|
8
|
+
controls: any[];
|
9
|
+
};
|
10
|
+
constructor(props: RendererProps, context: any);
|
11
|
+
handleJumpPrev(): void;
|
12
|
+
handleJumpNext(): void;
|
13
|
+
switchTo(index: number): void;
|
14
|
+
renderSecondaryToolbars(): JSX.Element;
|
15
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import BasicContainerEditor from '../BasicContainerEditor';
|
3
|
+
export declare class WizardStepEditor extends BasicContainerEditor {
|
4
|
+
tipName: string;
|
5
|
+
containers: string[];
|
6
|
+
containerLabels: string[];
|
7
|
+
settingsSchema: {
|
8
|
+
title: string;
|
9
|
+
controls: any;
|
10
|
+
};
|
11
|
+
regions2path: {
|
12
|
+
controls: string;
|
13
|
+
};
|
14
|
+
renderRenderer(props: any): JSX.Element;
|
15
|
+
renderFakeBody(): JSX.Element;
|
16
|
+
openEditForm(): void;
|
17
|
+
acceptChild(type: string, region?: string, rendererId?: string): boolean | null;
|
18
|
+
pickChild(region: 'actions' | 'controls', ...args: Array<any>): void;
|
19
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import BasicContainerEditor from '../BasicContainerEditor';
|
2
|
+
export declare class WrapperEditor extends BasicContainerEditor {
|
3
|
+
tipName: string;
|
4
|
+
dropable: boolean;
|
5
|
+
containers: string[];
|
6
|
+
containerLabels: string[];
|
7
|
+
settingsSchema: {
|
8
|
+
title: string;
|
9
|
+
controls: any;
|
10
|
+
};
|
11
|
+
}
|
@@ -0,0 +1,101 @@
|
|
1
|
+
import './Form/Form';
|
2
|
+
import './Form/Static';
|
3
|
+
import './Form/Text';
|
4
|
+
import './Form/Password';
|
5
|
+
import './Form/Email';
|
6
|
+
import './Form/Url';
|
7
|
+
import './Form/Number';
|
8
|
+
import './Form/Tag';
|
9
|
+
import './Form/Select';
|
10
|
+
import './Form/Checkbox';
|
11
|
+
import './Form/Switch';
|
12
|
+
import './Form/Checkboxes';
|
13
|
+
import './Form/Radios';
|
14
|
+
import './Form/List';
|
15
|
+
import './Form/ChainedSelect';
|
16
|
+
import './Form/Date';
|
17
|
+
import './Form/Datetime';
|
18
|
+
import './Form/Time';
|
19
|
+
import './Form/DateRange';
|
20
|
+
import './Form/Color';
|
21
|
+
import './Form/Textarea';
|
22
|
+
import './Form/RichText';
|
23
|
+
import './Form/Image';
|
24
|
+
import './Form/Range';
|
25
|
+
import './Form/File';
|
26
|
+
import './Form/Tree';
|
27
|
+
import './Form/TreeSelect';
|
28
|
+
import './Form/Hidden';
|
29
|
+
import './Form/Formula';
|
30
|
+
import './Form/Array';
|
31
|
+
import './Form/Combo';
|
32
|
+
import './Form/Picker';
|
33
|
+
import './Form/Editor';
|
34
|
+
import './Form/DiffEditor';
|
35
|
+
import './Form/Table';
|
36
|
+
import './Form/SubForm';
|
37
|
+
import './Form/Matrix';
|
38
|
+
import './Form/Repeat';
|
39
|
+
import './Form/Submit';
|
40
|
+
import './Form/Reset';
|
41
|
+
import './Form/Button';
|
42
|
+
import './Form/ButtonGroup';
|
43
|
+
import './Form/ButtonToolbar';
|
44
|
+
import './Form/Container';
|
45
|
+
import './Form/Control';
|
46
|
+
import './Form/FieldSet';
|
47
|
+
import './Form/Tabs';
|
48
|
+
import './Form/Group';
|
49
|
+
import './Form/Panel';
|
50
|
+
import './Form/Service';
|
51
|
+
import './Form/HBox';
|
52
|
+
import './Form/Grid';
|
53
|
+
import './Form/QRCode';
|
54
|
+
import './Form/NestedSelect';
|
55
|
+
import './Form/Rating';
|
56
|
+
import './Form/City';
|
57
|
+
import './Form/InputGroup';
|
58
|
+
import './Action';
|
59
|
+
import './Alert';
|
60
|
+
import './Audio';
|
61
|
+
import './ButtonGroup';
|
62
|
+
import './ButtonToolbar';
|
63
|
+
import './Card';
|
64
|
+
import './Cards';
|
65
|
+
import './Carousel';
|
66
|
+
import './Chart';
|
67
|
+
import './Collapse';
|
68
|
+
import './Container';
|
69
|
+
import './CRUD';
|
70
|
+
import './Date';
|
71
|
+
import './Dialog';
|
72
|
+
import './DiffEditor';
|
73
|
+
import './Divdier';
|
74
|
+
import './Drawer';
|
75
|
+
import './DropDownButton';
|
76
|
+
import './Each';
|
77
|
+
import './Grid';
|
78
|
+
import './HBox';
|
79
|
+
import './IFrame';
|
80
|
+
import './Image';
|
81
|
+
import './Json';
|
82
|
+
import './Link';
|
83
|
+
import './List';
|
84
|
+
import './Mapping';
|
85
|
+
import './Nav';
|
86
|
+
import './Operation';
|
87
|
+
import './Page';
|
88
|
+
import './Panel';
|
89
|
+
import './Plain';
|
90
|
+
import './Progress';
|
91
|
+
import './QRCode';
|
92
|
+
import './Service';
|
93
|
+
import './Status';
|
94
|
+
import './Switch';
|
95
|
+
import './Table';
|
96
|
+
import './Tabs';
|
97
|
+
import './Tasks';
|
98
|
+
import './Tpl';
|
99
|
+
import './Video';
|
100
|
+
import './Wizard';
|
101
|
+
import './Wrapper';
|
package/dist/index.d.ts
CHANGED
@@ -148,4 +148,5 @@ import { BasicToolbarPlugin } from './plugin/BasicToolbar';
|
|
148
148
|
import { VRenderer } from './component/VRenderer';
|
149
149
|
import { RegionWrapper } from './component/RegionWrapper';
|
150
150
|
import { GridPlugin } from './plugin/Grid';
|
151
|
-
|
151
|
+
import { mapReactElement } from './component/factory';
|
152
|
+
export { Editor, MiniEditor, utils, BasePlugin, getSchemaTpl, setSchemaTpl, defaultValue, registerEditorPlugin, mapReactElement, RendererEditor, BasicEditor, CodeEditor, VRenderer, RegionWrapper, mountInIframe, IFramePreview as IFrameEditor, AvailableRenderersPlugin, BasicToolbarPlugin, GridPlugin };
|