amis-editor 4.0.1-beta.9 → 4.0.2-beta.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cebfe0bc5a1dbde02da1.svg +10 -0
- package/dist/component/ContextMenuPanel.d.ts +8 -0
- package/dist/component/Control/APIControl.d.ts +504 -0
- package/dist/component/Control/OptionControl.d.ts +163 -0
- package/dist/component/Control/PopoverEdit.d.ts +57 -0
- package/dist/component/Control/ValidationControl.d.ts +30 -0
- package/dist/component/Editor.d.ts +1 -0
- package/dist/component/Panel/AMisCodeEditor.d.ts +37 -0
- package/dist/component/Panel/AvailableRenderersPanel.d.ts +10 -0
- package/dist/component/Panel/CodeEditorPanel.d.ts +6 -0
- package/dist/component/Panel/ContextMenuPanel.d.ts +8 -0
- package/dist/component/Panel/DrawerPanel.d.ts +15 -0
- package/dist/component/Panel/DrawerRendererPanel.d.ts +15 -0
- package/dist/component/Panel/InsertSubRendererPanel.d.ts +11 -0
- package/dist/component/Panel/LeftPanels.d.ts +20 -0
- package/dist/component/Panel/Outline.d.ts +18 -0
- package/dist/component/Panel/RenderersPanel.d.ts +32 -0
- package/dist/component/Panel/RightPanels.d.ts +21 -0
- package/dist/component/Panel/TargetNamePanel.d.ts +7 -0
- package/dist/component/Preview.d.ts +1 -0
- package/dist/component/ScaffoldModal.d.ts +1 -1
- package/dist/component/base/BackTop.d.ts +26 -0
- package/dist/component/base/ErrorRenderer.d.ts +4 -0
- package/dist/component/base/InputComponentName.d.ts +8 -0
- package/dist/component/base/SearchRendererPanel.d.ts +59 -0
- package/dist/component/base/WidthDraggableBtn.d.ts +16 -0
- package/dist/component/base/WidthDraggableContainer.d.ts +2 -0
- package/dist/component/remarkTpl.d.ts +150 -0
- package/dist/exports.d.ts +8 -0
- package/dist/exports.min.js +1 -0
- package/dist/index.d.ts +18 -14
- package/dist/index.min.js +1 -1
- package/dist/manager.d.ts +7 -5
- package/dist/plugin/Alert.d.ts +2 -1
- package/dist/plugin/AnchorNav.d.ts +1 -0
- package/dist/plugin/Audio.d.ts +1 -0
- package/dist/plugin/Avatar.d.ts +1 -0
- package/dist/plugin/Breadcrumb.d.ts +2 -0
- package/dist/plugin/Button.d.ts +1 -0
- package/dist/plugin/ButtonGroup.d.ts +1 -0
- package/dist/plugin/ButtonToolbar.d.ts +1 -0
- package/dist/plugin/CRUD.d.ts +1 -0
- package/dist/plugin/Card.d.ts +1 -1
- package/dist/plugin/Cards.d.ts +1 -0
- package/dist/plugin/Carousel.d.ts +1 -0
- package/dist/plugin/Chart.d.ts +1 -0
- package/dist/plugin/CodeView.d.ts +1 -0
- package/dist/plugin/Collapse.d.ts +1 -0
- package/dist/plugin/Container.d.ts +1 -0
- package/dist/plugin/Custom.d.ts +1 -0
- package/dist/plugin/Date.d.ts +1 -0
- package/dist/plugin/Datetime.d.ts +1 -0
- package/dist/plugin/Dialog.d.ts +1 -0
- package/dist/plugin/Divider.d.ts +1 -0
- package/dist/plugin/Drawer.d.ts +1 -0
- package/dist/plugin/DropDownButton.d.ts +1 -0
- package/dist/plugin/Each.d.ts +1 -0
- package/dist/plugin/ErrorRenderer.d.ts +1 -0
- package/dist/plugin/Flex.d.ts +2 -1
- package/dist/plugin/Form/ButtonGroupSelect.d.ts +1 -0
- package/dist/plugin/Form/ButtonToolbar.d.ts +1 -0
- package/dist/plugin/Form/ChainedSelect.d.ts +1 -0
- package/dist/plugin/Form/Checkbox.d.ts +1 -0
- package/dist/plugin/Form/Checkboxes.d.ts +1 -0
- package/dist/plugin/Form/CodeEditor.d.ts +40 -0
- package/dist/plugin/Form/Combo.d.ts +1 -0
- package/dist/plugin/Form/ConditionBuilder.d.ts +1 -0
- package/dist/plugin/Form/Control.d.ts +1 -0
- package/dist/plugin/Form/DiffEditor.d.ts +1 -0
- package/dist/plugin/Form/FieldSet.d.ts +1 -0
- package/dist/plugin/Form/Form.d.ts +1 -0
- package/dist/plugin/Form/Formula.d.ts +1 -0
- package/dist/plugin/Form/Group.d.ts +1 -0
- package/dist/plugin/Form/Hidden.d.ts +1 -0
- package/dist/plugin/Form/InputArray.d.ts +2 -0
- package/dist/plugin/Form/InputCity.d.ts +1 -0
- package/dist/plugin/Form/InputColor.d.ts +1 -0
- package/dist/plugin/Form/InputDate.d.ts +1 -0
- package/dist/plugin/Form/InputDateRange.d.ts +1 -0
- package/dist/plugin/Form/InputDateTime.d.ts +1 -0
- package/dist/plugin/Form/InputDateTimeRange.d.ts +1 -0
- package/dist/plugin/Form/InputEmail.d.ts +1 -0
- package/dist/plugin/Form/InputExcel.d.ts +1 -0
- package/dist/plugin/Form/InputFile.d.ts +1 -0
- package/dist/plugin/Form/InputGroup.d.ts +1 -2
- package/dist/plugin/Form/InputImage.d.ts +1 -0
- package/dist/plugin/Form/InputKV.d.ts +1 -0
- package/dist/plugin/Form/InputMonth.d.ts +1 -0
- package/dist/plugin/Form/InputMonthRange.d.ts +1 -0
- package/dist/plugin/Form/InputNumber.d.ts +1 -0
- package/dist/plugin/Form/InputPassword.d.ts +1 -0
- package/dist/plugin/Form/InputQuarter.d.ts +1 -0
- package/dist/plugin/Form/InputQuarterRange.d.ts +1 -0
- package/dist/plugin/Form/InputRange.d.ts +1 -0
- package/dist/plugin/Form/InputRating.d.ts +2 -1
- package/dist/plugin/Form/InputRepeat.d.ts +1 -0
- package/dist/plugin/Form/InputRichText.d.ts +1 -0
- package/dist/plugin/Form/InputSubForm.d.ts +1 -0
- package/dist/plugin/Form/InputTable.d.ts +1 -1
- package/dist/plugin/Form/InputTag.d.ts +1 -0
- package/dist/plugin/Form/InputText.d.ts +1 -0
- package/dist/plugin/Form/InputTime.d.ts +1 -0
- package/dist/plugin/Form/InputTree.d.ts +1 -0
- package/dist/plugin/Form/InputURL.d.ts +1 -0
- package/dist/plugin/Form/InputYear.d.ts +1 -0
- package/dist/plugin/Form/ListSelect.d.ts +1 -0
- package/dist/plugin/Form/LocationPicker.d.ts +1 -0
- package/dist/plugin/Form/MatrixCheckboxes.d.ts +1 -0
- package/dist/plugin/Form/NestedSelect.d.ts +1 -0
- package/dist/plugin/Form/Picker.d.ts +1 -0
- package/dist/plugin/Form/Radios.d.ts +1 -0
- package/dist/plugin/Form/Select.d.ts +1 -0
- package/dist/plugin/Form/Static.d.ts +1 -1
- package/dist/plugin/Form/Switch.d.ts +1 -0
- package/dist/plugin/Form/TabsTransfer.d.ts +1 -0
- package/dist/plugin/Form/Textarea.d.ts +1 -0
- package/dist/plugin/Form/Transfer.d.ts +1 -0
- package/dist/plugin/Form/TreeSelect.d.ts +1 -0
- package/dist/plugin/Form/UUID.d.ts +1 -0
- package/dist/plugin/Grid.d.ts +1 -0
- package/dist/plugin/HBox.d.ts +1 -1
- package/dist/plugin/IFrame.d.ts +1 -0
- package/dist/plugin/Image.d.ts +1 -0
- package/dist/plugin/Images.d.ts +1 -0
- package/dist/plugin/Json.d.ts +1 -0
- package/dist/plugin/Link.d.ts +1 -0
- package/dist/plugin/List.d.ts +1 -0
- package/dist/plugin/ListItem.d.ts +1 -1
- package/dist/plugin/Log.d.ts +1 -0
- package/dist/plugin/Mapping.d.ts +1 -0
- package/dist/plugin/Markdown.d.ts +1 -0
- package/dist/plugin/Nav.d.ts +1 -0
- package/dist/plugin/Operation.d.ts +1 -0
- package/dist/plugin/Others/Action.d.ts +8 -0
- package/dist/plugin/Others/BasicToolbar.d.ts +11 -0
- package/dist/plugin/Others/DataDebug.d.ts +19 -0
- package/dist/plugin/Others/TableCell.d.ts +8 -0
- package/dist/plugin/Others/Unknown.d.ts +5 -0
- package/dist/plugin/Page.d.ts +1 -0
- package/dist/plugin/Panel/AvailableRenderers.d.ts +8 -0
- package/dist/plugin/Panel/Code.d.ts +9 -0
- package/dist/plugin/Panel/Name.d.ts +8 -0
- package/dist/plugin/Panel.d.ts +16 -3
- package/dist/plugin/Plain.d.ts +1 -0
- package/dist/plugin/Progress.d.ts +1 -0
- package/dist/plugin/Property.d.ts +1 -0
- package/dist/plugin/QRCode.d.ts +1 -0
- package/dist/plugin/Reset.d.ts +1 -0
- package/dist/plugin/Service.d.ts +1 -0
- package/dist/plugin/Sparkline.d.ts +1 -0
- package/dist/plugin/Status.d.ts +1 -0
- package/dist/plugin/Steps.d.ts +1 -0
- package/dist/plugin/Submit.d.ts +1 -0
- package/dist/plugin/Table.d.ts +1 -0
- package/dist/plugin/TableCell.d.ts +0 -1
- package/dist/plugin/TableView.d.ts +1 -0
- package/dist/plugin/Tabs.d.ts +1 -0
- package/dist/plugin/Tasks.d.ts +1 -0
- package/dist/plugin/Time.d.ts +1 -0
- package/dist/plugin/Tpl.d.ts +1 -0
- package/dist/plugin/Video.d.ts +1 -0
- package/dist/plugin/WebComponent.d.ts +3 -26
- package/dist/plugin/Wizard.d.ts +1 -0
- package/dist/plugin/Wrapper.d.ts +1 -0
- package/dist/plugin.d.ts +17 -4
- package/dist/store/editor.d.ts +54 -4
- package/dist/style.css +1 -1
- package/dist/util.d.ts +2 -2
- package/package.json +21 -13
- package/static/side_hide_left.svg +10 -0
- package/.editorconfig +0 -12
- package/.fecsrc +0 -8
- package/.prettierrc +0 -20
- package/publish-local.sh +0 -37
- package/rollup.config.js +0 -24
@@ -1,8 +1,9 @@
|
|
1
1
|
import { BasePlugin } from '../../plugin';
|
2
|
-
export declare class
|
2
|
+
export declare class RatingControlPlugin extends BasePlugin {
|
3
3
|
rendererName: string;
|
4
4
|
$schema: string;
|
5
5
|
name: string;
|
6
|
+
isBaseComponent: boolean;
|
6
7
|
icon: string;
|
7
8
|
description: string;
|
8
9
|
docLink: string;
|
@@ -3,6 +3,7 @@ export declare class TableControlPlugin extends BasePlugin {
|
|
3
3
|
rendererName: string;
|
4
4
|
$schema: string;
|
5
5
|
name: string;
|
6
|
+
isBaseComponent: boolean;
|
6
7
|
icon: string;
|
7
8
|
description: string;
|
8
9
|
docLink: string;
|
@@ -34,6 +35,5 @@ export declare class TableControlPlugin extends BasePlugin {
|
|
34
35
|
panelTitle: string;
|
35
36
|
panelBodyCreator: (context: BaseEventContext) => any;
|
36
37
|
filterProps(props: any): any;
|
37
|
-
exchangeRenderer(id: string): void;
|
38
38
|
beforeInsert(event: PluginEvent<InsertEventContext>): void;
|
39
39
|
}
|
@@ -5,6 +5,7 @@ export declare class StaticControlPlugin extends BasePlugin {
|
|
5
5
|
$schema: string;
|
6
6
|
order: number;
|
7
7
|
name: string;
|
8
|
+
isBaseComponent: boolean;
|
8
9
|
icon: string;
|
9
10
|
description: string;
|
10
11
|
docLink: string;
|
@@ -18,5 +19,4 @@ export declare class StaticControlPlugin extends BasePlugin {
|
|
18
19
|
panelTitle: string;
|
19
20
|
panelBodyCreator: (context: BaseEventContext) => any[];
|
20
21
|
filterProps(props: any, node: EditorNodeType): any;
|
21
|
-
exchangeRenderer(id: string): void;
|
22
22
|
}
|
package/dist/plugin/Grid.d.ts
CHANGED
package/dist/plugin/HBox.d.ts
CHANGED
@@ -6,6 +6,7 @@ export declare class HBoxPlugin extends BasePlugin {
|
|
6
6
|
$schema: string;
|
7
7
|
disabledRendererPlugin: boolean;
|
8
8
|
name: string;
|
9
|
+
isBaseComponent: boolean;
|
9
10
|
icon: string;
|
10
11
|
description: string;
|
11
12
|
tags: string[];
|
@@ -31,7 +32,6 @@ export declare class HBoxPlugin extends BasePlugin {
|
|
31
32
|
overrides: {
|
32
33
|
renderColumn: (this: any, node: Schema, index: number) => any;
|
33
34
|
};
|
34
|
-
exchangeRenderer(id: string): void;
|
35
35
|
afterResolveJsonSchema(event: PluginEvent<RendererJSONSchemaResolveEventContext>): void;
|
36
36
|
buildEditorContextMenu(context: ContextMenuEventContext, menus: Array<ContextMenuItem>): void;
|
37
37
|
onWidthChangeStart(event: PluginEvent<ResizeMoveEventContext, {
|
package/dist/plugin/IFrame.d.ts
CHANGED
package/dist/plugin/Image.d.ts
CHANGED
package/dist/plugin/Images.d.ts
CHANGED
package/dist/plugin/Json.d.ts
CHANGED
package/dist/plugin/Link.d.ts
CHANGED
package/dist/plugin/List.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { BasePlugin, BasicRendererInfo, InsertEventContext, PluginEvent, RegionConfig, RendererInfoResolveEventContext, VRendererConfig } from '../plugin';
|
2
2
|
export declare class ListItemPlugin extends BasePlugin {
|
3
3
|
rendererName: string;
|
4
|
+
isBaseComponent: boolean;
|
4
5
|
$schema: string;
|
5
6
|
regions: Array<RegionConfig>;
|
6
7
|
panelTitle: string;
|
@@ -11,6 +12,5 @@ export declare class ListItemPlugin extends BasePlugin {
|
|
11
12
|
renderFeild: (this: any, region: string, field: any, index: any, props: any) => any;
|
12
13
|
};
|
13
14
|
vRendererConfig: VRendererConfig;
|
14
|
-
exchangeRenderer(id: string): void;
|
15
15
|
beforeInsert(event: PluginEvent<InsertEventContext>): void;
|
16
16
|
}
|
package/dist/plugin/Log.d.ts
CHANGED
package/dist/plugin/Mapping.d.ts
CHANGED
package/dist/plugin/Nav.d.ts
CHANGED
@@ -0,0 +1,8 @@
|
|
1
|
+
import { BaseEventContext, BasePlugin, BasicPanelItem, BasicToolbarItem, BuildPanelEventContext } from '../../plugin';
|
2
|
+
export declare class ActionPlugin extends BasePlugin {
|
3
|
+
panelTitle: string;
|
4
|
+
panelBodyCreator: (context: BaseEventContext) => any[];
|
5
|
+
buildEditorPanel(context: BuildPanelEventContext, panels: Array<BasicPanelItem>): void;
|
6
|
+
buildEditorToolbar({ id, schema, info }: BaseEventContext, toolbars: Array<BasicToolbarItem>): void;
|
7
|
+
editDetail(id: string): void;
|
8
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { BasePlugin, BaseEventContext, BasicToolbarItem, ContextMenuItem, ContextMenuEventContext, BasicPanelItem, BuildPanelEventContext, PluginEvent, InsertEventContext } from '../../plugin';
|
2
|
+
/**
|
3
|
+
* 用来给当前选中的元素添加一些基本的工具栏按钮。
|
4
|
+
*/
|
5
|
+
export declare class BasicToolbarPlugin extends BasePlugin {
|
6
|
+
order: number;
|
7
|
+
buildEditorToolbar({ id, schema }: BaseEventContext, toolbars: Array<BasicToolbarItem>): void;
|
8
|
+
buildEditorContextMenu({ id, schema, region, selections }: ContextMenuEventContext, menus: Array<ContextMenuItem>): void;
|
9
|
+
buildEditorPanel(context: BuildPanelEventContext, panels: Array<BasicPanelItem>): void;
|
10
|
+
afterInsert(event: PluginEvent<InsertEventContext>): void;
|
11
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { BaseEventContext, BasePlugin, BasicToolbarItem } from '../../plugin';
|
2
|
+
/**
|
3
|
+
* 添加调试功能
|
4
|
+
*/
|
5
|
+
export declare class DataDebugPlugin extends BasePlugin {
|
6
|
+
buildEditorToolbar({ id, schema, node }: BaseEventContext, toolbars: Array<BasicToolbarItem>): void;
|
7
|
+
dataViewer: {
|
8
|
+
type: string;
|
9
|
+
name: string;
|
10
|
+
asFormItem: boolean;
|
11
|
+
className: string;
|
12
|
+
component: ({ value, onChange, readOnly }: {
|
13
|
+
value: any;
|
14
|
+
onChange: (value: any) => void;
|
15
|
+
readOnly?: boolean | undefined;
|
16
|
+
}) => JSX.Element;
|
17
|
+
};
|
18
|
+
openDebugForm(data: any, callback?: (values: any) => void): Promise<void>;
|
19
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { BasePlugin, BasicRendererInfo, BaseEventContext, RendererInfoResolveEventContext, ReplaceEventContext, PluginEvent } from '../../plugin';
|
2
|
+
export declare class TableCellPlugin extends BasePlugin {
|
3
|
+
panelTitle: string;
|
4
|
+
panelIcon: string;
|
5
|
+
panelBodyCreator: (context: BaseEventContext) => any[];
|
6
|
+
getRendererInfo({ renderer, schema }: RendererInfoResolveEventContext): BasicRendererInfo | void;
|
7
|
+
beforeReplace(event: PluginEvent<ReplaceEventContext>): void;
|
8
|
+
}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { BasePlugin, BasicRendererInfo, RendererInfoResolveEventContext } from '../../plugin';
|
2
|
+
export declare class UnkownRendererPlugin extends BasePlugin {
|
3
|
+
order: number;
|
4
|
+
getRendererInfo({ renderer, schema, path }: RendererInfoResolveEventContext): BasicRendererInfo | void;
|
5
|
+
}
|
package/dist/plugin/Page.d.ts
CHANGED
@@ -0,0 +1,8 @@
|
|
1
|
+
import { BasePlugin, BasicPanelItem, BuildPanelEventContext } from '../../plugin';
|
2
|
+
/**
|
3
|
+
* 添加源码编辑功能
|
4
|
+
*/
|
5
|
+
export declare class AvailableRenderersPlugin extends BasePlugin {
|
6
|
+
order: number;
|
7
|
+
buildEditorPanel(context: BuildPanelEventContext, panels: Array<BasicPanelItem>): void;
|
8
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { BasePlugin, BasicPanelItem, RendererJSONSchemaResolveEventContext, BuildPanelEventContext } from '../../plugin';
|
2
|
+
/**
|
3
|
+
* 添加源码编辑功能
|
4
|
+
*/
|
5
|
+
export declare class CodePlugin extends BasePlugin {
|
6
|
+
order: number;
|
7
|
+
buildJSONSchema({ info }: RendererJSONSchemaResolveEventContext): string | undefined;
|
8
|
+
buildEditorPanel({ info, selections }: BuildPanelEventContext, panels: Array<BasicPanelItem>): void;
|
9
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { BasePlugin, BasicPanelItem, BuildPanelEventContext } from '../../plugin';
|
2
|
+
/**
|
3
|
+
* 添加名字面板,方便根据组件名字定位节点
|
4
|
+
*/
|
5
|
+
export declare class NamePlugin extends BasePlugin {
|
6
|
+
order: number;
|
7
|
+
buildEditorPanel({ info, selections }: BuildPanelEventContext, panels: Array<BasicPanelItem>): void;
|
8
|
+
}
|
package/dist/plugin/Panel.d.ts
CHANGED
@@ -1,15 +1,28 @@
|
|
1
|
-
import { SchemaObject } from 'amis';
|
2
1
|
import { BasePlugin, BaseEventContext, BasicPanelItem, RegionConfig, BuildPanelEventContext } from '../plugin';
|
3
2
|
export declare class PanelPlugin extends BasePlugin {
|
4
3
|
rendererName: string;
|
5
4
|
$schema: string;
|
6
5
|
name: string;
|
6
|
+
isBaseComponent: boolean;
|
7
7
|
icon: string;
|
8
8
|
description: string;
|
9
9
|
docLink: string;
|
10
10
|
tags: string;
|
11
|
-
scaffold:
|
12
|
-
|
11
|
+
scaffold: {
|
12
|
+
type: string;
|
13
|
+
title: string;
|
14
|
+
body: string;
|
15
|
+
};
|
16
|
+
previewSchema: {
|
17
|
+
type: string;
|
18
|
+
title: string;
|
19
|
+
body: string;
|
20
|
+
className: string;
|
21
|
+
actions: {
|
22
|
+
label: string;
|
23
|
+
type: string;
|
24
|
+
}[];
|
25
|
+
};
|
13
26
|
regions: Array<RegionConfig>;
|
14
27
|
panelTitle: string;
|
15
28
|
panelBodyCreator: (context: BaseEventContext) => any[];
|
package/dist/plugin/Plain.d.ts
CHANGED
package/dist/plugin/QRCode.d.ts
CHANGED
package/dist/plugin/Reset.d.ts
CHANGED
package/dist/plugin/Service.d.ts
CHANGED
package/dist/plugin/Status.d.ts
CHANGED
package/dist/plugin/Steps.d.ts
CHANGED
package/dist/plugin/Submit.d.ts
CHANGED
package/dist/plugin/Table.d.ts
CHANGED
@@ -4,6 +4,5 @@ export declare class TableCellPlugin extends BasePlugin {
|
|
4
4
|
panelIcon: string;
|
5
5
|
panelBodyCreator: (context: BaseEventContext) => any[];
|
6
6
|
getRendererInfo({ renderer, schema }: RendererInfoResolveEventContext): BasicRendererInfo | void;
|
7
|
-
exchangeRenderer(id: string): void;
|
8
7
|
beforeReplace(event: PluginEvent<ReplaceEventContext>): void;
|
9
8
|
}
|