amis-editor 4.0.2-beta.4 → 4.1.0-beta.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/component/RegionWrapper.d.ts +11 -8
- package/dist/component/RendererThumb.d.ts +5 -5
- package/dist/component/VRenderer.d.ts +1 -1
- package/dist/component/base/SearchRendererPanel.d.ts +1 -1
- package/dist/exports.min.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.min.js +1 -1
- package/dist/manager.d.ts +4 -3
- package/dist/plugin/Collapse.d.ts +15 -6
- package/dist/plugin/CollapseGroup.d.ts +41 -0
- package/dist/plugin/DropDownButton.d.ts +1 -0
- package/dist/plugin/Form/Combo.d.ts +1 -1
- package/dist/plugin/TooltipWrapper.d.ts +30 -0
- package/dist/plugin.d.ts +3 -1
- package/dist/store/editor.d.ts +6 -2
- package/dist/style.css +1 -1
- package/dist/util.d.ts +12 -2
- package/package.json +5 -5
- package/dist/component/AvailableRenderersPanel.d.ts +0 -20
- package/dist/component/BackTop.d.ts +0 -26
- package/dist/component/CodeEditor.d.ts +0 -37
- package/dist/component/CodeEditorPanel.d.ts +0 -12
- package/dist/component/ContextMenuPanel.d.ts +0 -8
- package/dist/component/ErrorRenderer.d.ts +0 -4
- package/dist/component/InputComponentName.d.ts +0 -8
- package/dist/component/InsertSubRendererPanel.d.ts +0 -11
- package/dist/component/Outline.d.ts +0 -18
- package/dist/component/Panels.d.ts +0 -17
- package/dist/component/TargetNamePanel.d.ts +0 -7
- package/dist/plugin/Action.d.ts +0 -6
- package/dist/plugin/AvailableRenderers.d.ts +0 -8
- package/dist/plugin/BasicToolbar.d.ts +0 -11
- package/dist/plugin/Code.d.ts +0 -9
- package/dist/plugin/DataDebug.d.ts +0 -19
- package/dist/plugin/Form/Editor.d.ts +0 -39
- package/dist/plugin/Name.d.ts +0 -8
- package/dist/plugin/TableCell.d.ts +0 -8
- package/dist/plugin/Unknown.d.ts +0 -5
@@ -1,37 +0,0 @@
|
|
1
|
-
/// <reference types="lodash" />
|
2
|
-
import React from 'react';
|
3
|
-
export interface AMisCodeEditorProps {
|
4
|
-
value: any;
|
5
|
-
onChange: (value: any, diff: any) => void;
|
6
|
-
onPaste?: () => void;
|
7
|
-
disabled?: boolean;
|
8
|
-
$schemaUrl?: string;
|
9
|
-
$schema?: string;
|
10
|
-
className?: string;
|
11
|
-
theme?: string;
|
12
|
-
}
|
13
|
-
export default class AMisCodeEditor extends React.Component<AMisCodeEditorProps, any> {
|
14
|
-
state: {
|
15
|
-
wrongSchema: string;
|
16
|
-
value: any;
|
17
|
-
contents: any;
|
18
|
-
};
|
19
|
-
lastResult: any;
|
20
|
-
toDispose: Array<() => void>;
|
21
|
-
editor: any;
|
22
|
-
monaco: any;
|
23
|
-
model: any;
|
24
|
-
decorations: any;
|
25
|
-
uri: string;
|
26
|
-
componentDidUpdate(prevProps: AMisCodeEditorProps): void;
|
27
|
-
obj2str(value: any, props: AMisCodeEditorProps): any;
|
28
|
-
str2obj(str: string): any;
|
29
|
-
emitChange: import("lodash").DebouncedFunc<() => void>;
|
30
|
-
changeJsonOptions(props?: AMisCodeEditorProps): void;
|
31
|
-
editorFactory: (containerElement: HTMLElement, monaco: any, options: any) => any;
|
32
|
-
editorDidMount: (editor: any, monaco: any) => void;
|
33
|
-
editorWillUnmount: (editor: any, monaco: any) => void;
|
34
|
-
handleChange: (value: string) => void;
|
35
|
-
handleBlur: () => Promise<void>;
|
36
|
-
render(): JSX.Element;
|
37
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { PanelProps } from '../plugin';
|
3
|
-
export declare class CodeEditorPanel extends React.Component<PanelProps> {
|
4
|
-
startX: number;
|
5
|
-
startWidth: number;
|
6
|
-
codeWrap: HTMLElement;
|
7
|
-
handleResizeMouseDown(e: React.MouseEvent): void;
|
8
|
-
handleResizeMouseMove(e: MouseEvent): void;
|
9
|
-
handleResizeMouseUp(): void;
|
10
|
-
handleCodePaste(): void;
|
11
|
-
render(): JSX.Element;
|
12
|
-
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { EditorStoreType } from '../store/editor';
|
3
|
-
export interface ContextMenuPanelProps {
|
4
|
-
store: EditorStoreType;
|
5
|
-
}
|
6
|
-
export declare class ContextMenuPanel extends React.Component<ContextMenuPanelProps> {
|
7
|
-
render(): JSX.Element | null;
|
8
|
-
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { RendererProps } from 'amis/lib/factory';
|
3
|
-
interface InputCompoonentNameProps extends RendererProps {
|
4
|
-
value: any;
|
5
|
-
onChange: (value: any) => void;
|
6
|
-
}
|
7
|
-
export declare function InputCompoonentName(props: InputCompoonentNameProps): JSX.Element;
|
8
|
-
export {};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { PanelProps } from '../plugin';
|
3
|
-
export declare class InsertSubRendererPanel extends React.Component<PanelProps> {
|
4
|
-
handleLeftClick(e: React.MouseEvent): void;
|
5
|
-
handleClick(e: React.MouseEvent): void;
|
6
|
-
hadnlDBClick(e: React.MouseEvent): void;
|
7
|
-
handleInsert(): void;
|
8
|
-
handleReplace(): void;
|
9
|
-
handleCancel(): void;
|
10
|
-
render(): JSX.Element;
|
11
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { PanelProps } from '../plugin';
|
3
|
-
import { EditorNodeType } from '../store/node';
|
4
|
-
export declare class OutlinePanel extends React.Component<PanelProps> {
|
5
|
-
state: {
|
6
|
-
curSearchElemKey: string;
|
7
|
-
};
|
8
|
-
handleClick(e: React.MouseEvent<HTMLAnchorElement>): void;
|
9
|
-
handleEnter(e: React.MouseEvent): void;
|
10
|
-
handleDragStart(e: React.DragEvent): void;
|
11
|
-
handleDragOver(e: React.DragEvent): void;
|
12
|
-
handleDrop(e: React.DragEvent): void;
|
13
|
-
handleSearchElemKeyChange(searchVal: string): void;
|
14
|
-
clearSearchElemKey(): void;
|
15
|
-
renderTitleByKeyword(rendererTitle: string, curSearchTitle: string): string | JSX.Element;
|
16
|
-
renderItem(option: EditorNodeType, index: number): JSX.Element | null;
|
17
|
-
render(): JSX.Element;
|
18
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { EditorManager } from '../manager';
|
3
|
-
import { EditorStoreType } from '../store/editor';
|
4
|
-
export interface PanelsProps {
|
5
|
-
store: EditorStoreType;
|
6
|
-
manager: EditorManager;
|
7
|
-
theme?: string;
|
8
|
-
isLeftPanel?: boolean;
|
9
|
-
}
|
10
|
-
export declare class Panels extends React.Component<PanelsProps> {
|
11
|
-
isLeftPanel: boolean;
|
12
|
-
handleSelect(key: string): void;
|
13
|
-
getPopOverContainer(): HTMLElement;
|
14
|
-
resizeSensor?: () => void;
|
15
|
-
tabsRef(ref: any): void;
|
16
|
-
render(): JSX.Element;
|
17
|
-
}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { PanelProps } from '../plugin';
|
3
|
-
export declare class TargetNamePanel extends React.Component<PanelProps> {
|
4
|
-
handleClick(e: React.MouseEvent<HTMLElement>): void;
|
5
|
-
handleEnter(e: React.MouseEvent<HTMLElement>): void;
|
6
|
-
render(): JSX.Element;
|
7
|
-
}
|
package/dist/plugin/Action.d.ts
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
import { BaseEventContext, BasePlugin, BasicPanelItem, 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
|
-
}
|
@@ -1,8 +0,0 @@
|
|
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
|
-
}
|
@@ -1,11 +0,0 @@
|
|
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
|
-
}
|
package/dist/plugin/Code.d.ts
DELETED
@@ -1,9 +0,0 @@
|
|
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
|
-
}
|
@@ -1,19 +0,0 @@
|
|
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
|
-
}
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import { BasePlugin } from '../../plugin';
|
2
|
-
export declare class EditorControlPlugin extends BasePlugin {
|
3
|
-
rendererName: string;
|
4
|
-
$schema: string;
|
5
|
-
name: string;
|
6
|
-
icon: string;
|
7
|
-
description: string;
|
8
|
-
docLink: string;
|
9
|
-
tags: string[];
|
10
|
-
scaffold: {
|
11
|
-
type: string;
|
12
|
-
label: string;
|
13
|
-
name: string;
|
14
|
-
};
|
15
|
-
previewSchema: any;
|
16
|
-
panelTitle: string;
|
17
|
-
panelBody: ({
|
18
|
-
label: string;
|
19
|
-
name: string;
|
20
|
-
type: string;
|
21
|
-
value: string;
|
22
|
-
searchable: boolean;
|
23
|
-
options: string[];
|
24
|
-
size?: undefined;
|
25
|
-
pipeIn?: undefined;
|
26
|
-
} | {
|
27
|
-
name: string;
|
28
|
-
type: string;
|
29
|
-
size: string;
|
30
|
-
pipeIn: (value: any) => any;
|
31
|
-
label: string;
|
32
|
-
options: {
|
33
|
-
label: string;
|
34
|
-
value: string;
|
35
|
-
}[];
|
36
|
-
value?: undefined;
|
37
|
-
searchable?: undefined;
|
38
|
-
})[];
|
39
|
-
}
|
package/dist/plugin/Name.d.ts
DELETED
@@ -1,8 +0,0 @@
|
|
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
|
-
}
|
@@ -1,8 +0,0 @@
|
|
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
|
-
}
|
package/dist/plugin/Unknown.d.ts
DELETED
@@ -1,5 +0,0 @@
|
|
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
|
-
}
|