amis-editor 3.3.6-beta.15 → 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/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/DataDebug.d.ts +1 -0
- 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/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/InputSubForm.d.ts +1 -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/store/editor.d.ts +1 -0
- package/dist/types.d.ts +40 -0
- package/dist/util.d.ts +1 -1
- package/package.json +14 -38
@@ -0,0 +1,53 @@
|
|
1
|
+
export interface JsonString {
|
2
|
+
type: 'string';
|
3
|
+
value: string;
|
4
|
+
}
|
5
|
+
export interface JsonNull {
|
6
|
+
type: 'null';
|
7
|
+
value: null;
|
8
|
+
}
|
9
|
+
export interface JsonBoolean {
|
10
|
+
type: 'boolean';
|
11
|
+
value: boolean;
|
12
|
+
}
|
13
|
+
export interface JsonNumber {
|
14
|
+
type: 'number';
|
15
|
+
value: number;
|
16
|
+
raw: string;
|
17
|
+
}
|
18
|
+
export interface JsonArray {
|
19
|
+
type: 'array';
|
20
|
+
members: Array<JsonComment | JsonValue>;
|
21
|
+
}
|
22
|
+
export declare type JsonValue = JsonString | JsonNull | JsonBoolean | JsonNumber | JsonObject | JsonArray;
|
23
|
+
export interface JsonProperty {
|
24
|
+
type: 'property';
|
25
|
+
key: Array<JsonString | JsonComment>;
|
26
|
+
value: Array<JsonValue | JsonComment>;
|
27
|
+
}
|
28
|
+
export interface JsonObject {
|
29
|
+
type: 'object';
|
30
|
+
members: Array<JsonProperty | JsonComment>;
|
31
|
+
}
|
32
|
+
export interface JsonComment {
|
33
|
+
type: 'comment';
|
34
|
+
value: string;
|
35
|
+
}
|
36
|
+
export interface JsonDocument {
|
37
|
+
type: 'document';
|
38
|
+
body: Array<JsonObject | JsonComment>;
|
39
|
+
}
|
40
|
+
export declare type JsonAst = JsonValue | JsonComment | JsonDocument;
|
41
|
+
export interface JsonCommentsObject {
|
42
|
+
[propName: string]: [Array<string>, Array<string>, Array<string>, Array<string>];
|
43
|
+
}
|
44
|
+
/**
|
45
|
+
* 解析 json 字符串,保留注释信息。
|
46
|
+
* @param text
|
47
|
+
*/
|
48
|
+
export declare function parse(text: string): any;
|
49
|
+
/**
|
50
|
+
* 将 json 还原成字符串,保留注释信息。
|
51
|
+
* @param json
|
52
|
+
*/
|
53
|
+
export declare function stringify(json: any): any;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { BasePlugin } from '../plugin';
|
2
|
+
export declare class DiffEditorPlugin extends BasePlugin {
|
3
|
+
rendererName: string;
|
4
|
+
$schema: string;
|
5
|
+
name: string;
|
6
|
+
description: string;
|
7
|
+
tags: string[];
|
8
|
+
icon: string;
|
9
|
+
scaffold: {
|
10
|
+
type: string;
|
11
|
+
label: string;
|
12
|
+
};
|
13
|
+
previewSchema: {
|
14
|
+
type: string;
|
15
|
+
label: string;
|
16
|
+
};
|
17
|
+
panelTitle: string;
|
18
|
+
panelControls: any[];
|
19
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { BasicSubRenderInfo, RendererEventContext, SubRendererInfo, VRendererConfig } from '../../plugin';
|
2
|
+
import { AnchorNavPlugin } from '../AnchorNav';
|
3
|
+
export declare class AnchorNavControlPlugin extends AnchorNavPlugin {
|
4
|
+
rendererName: string;
|
5
|
+
$schema: string;
|
6
|
+
name: string;
|
7
|
+
icon: string;
|
8
|
+
description: string;
|
9
|
+
docLink: string;
|
10
|
+
tags: string[];
|
11
|
+
scaffold: any;
|
12
|
+
previewSchema: any;
|
13
|
+
patchContainers: string[];
|
14
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
15
|
+
vRendererConfig: VRendererConfig;
|
16
|
+
overrides: any;
|
17
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { BaseEventContext, BasePlugin, BasicSubRenderInfo, BasicToolbarItem, ContextMenuEventContext, ContextMenuItem, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class ArrayControlPlugin 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
|
+
items: {
|
15
|
+
type: string;
|
16
|
+
placeholder: string;
|
17
|
+
};
|
18
|
+
};
|
19
|
+
previewSchema: any;
|
20
|
+
panelTitle: string;
|
21
|
+
panelControlsCreator: (context: BaseEventContext) => any[];
|
22
|
+
filterProps(props: any): any;
|
23
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
24
|
+
buildEditorToolbar({ id, info }: BaseEventContext, toolbars: Array<BasicToolbarItem>): void;
|
25
|
+
buildEditorContextMenu({ id, schema, region, info }: ContextMenuEventContext, menus: Array<ContextMenuItem>): void;
|
26
|
+
editDetail(id: string): void;
|
27
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
import { ButtonPlugin } from '../Button';
|
3
|
+
export declare class ButtonControlPlugin extends ButtonPlugin {
|
4
|
+
rendererName: string;
|
5
|
+
$schema: string;
|
6
|
+
docLink: string;
|
7
|
+
tags: string[];
|
8
|
+
scaffold: any;
|
9
|
+
previewSchema: any;
|
10
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
11
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class ButtonGroupControlPlugin 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
|
+
name: string;
|
13
|
+
options: {
|
14
|
+
label: string;
|
15
|
+
value: string;
|
16
|
+
}[];
|
17
|
+
};
|
18
|
+
previewSchema: any;
|
19
|
+
panelTitle: string;
|
20
|
+
panelControls: any[];
|
21
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
22
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class CityControlPlugin 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
|
+
panelControls: any[];
|
18
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
19
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RegionConfig, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class ContainerControlPlugin extends BasePlugin {
|
3
|
+
rendererName: string;
|
4
|
+
$schema: string;
|
5
|
+
regions: Array<RegionConfig>;
|
6
|
+
name: string;
|
7
|
+
icon: string;
|
8
|
+
description: string;
|
9
|
+
docLink: string;
|
10
|
+
tags: string[];
|
11
|
+
scaffold: {
|
12
|
+
type: string;
|
13
|
+
label: string;
|
14
|
+
controls: {
|
15
|
+
placeholder: string;
|
16
|
+
type: string;
|
17
|
+
name: string;
|
18
|
+
label: boolean;
|
19
|
+
}[];
|
20
|
+
};
|
21
|
+
previewSchema: any;
|
22
|
+
panelTitle: string;
|
23
|
+
panelControls: {
|
24
|
+
label: string;
|
25
|
+
name: string;
|
26
|
+
type: string;
|
27
|
+
size: string;
|
28
|
+
description: string;
|
29
|
+
pipeIn: (value: any, values: any) => "form" | "other";
|
30
|
+
onChange: (value: any, oldValue: any, model: any, form: any) => void;
|
31
|
+
options: {
|
32
|
+
label: string;
|
33
|
+
value: string;
|
34
|
+
}[];
|
35
|
+
}[];
|
36
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
37
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class DateControlPlugin extends BasePlugin {
|
3
|
+
rendererName: string;
|
4
|
+
$schema: string;
|
5
|
+
order: number;
|
6
|
+
icon: string;
|
7
|
+
name: string;
|
8
|
+
description: string;
|
9
|
+
docLink: string;
|
10
|
+
tags: string[];
|
11
|
+
scaffold: {
|
12
|
+
type: string;
|
13
|
+
label: string;
|
14
|
+
name: string;
|
15
|
+
};
|
16
|
+
previewSchema: any;
|
17
|
+
panelTitle: string;
|
18
|
+
panelControls: any[];
|
19
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
20
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class DateRangeControlPlugin extends BasePlugin {
|
3
|
+
rendererName: string;
|
4
|
+
$schema: string;
|
5
|
+
order: number;
|
6
|
+
icon: string;
|
7
|
+
name: string;
|
8
|
+
description: string;
|
9
|
+
docLink: string;
|
10
|
+
tags: string[];
|
11
|
+
scaffold: {
|
12
|
+
type: string;
|
13
|
+
label: string;
|
14
|
+
name: string;
|
15
|
+
};
|
16
|
+
previewSchema: any;
|
17
|
+
panelTitle: string;
|
18
|
+
panelControls: any[];
|
19
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
20
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class DateTimeControlPlugin extends BasePlugin {
|
3
|
+
rendererName: string;
|
4
|
+
$schema: string;
|
5
|
+
icon: string;
|
6
|
+
name: 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
|
+
panelControls: any[];
|
18
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
19
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { TextControlPlugin } from './Text';
|
2
|
+
export declare class EmailControlPlugin extends TextControlPlugin {
|
3
|
+
rendererName: string;
|
4
|
+
$schema: string;
|
5
|
+
name: string;
|
6
|
+
icon: string;
|
7
|
+
description: string;
|
8
|
+
scaffold: {
|
9
|
+
type: string;
|
10
|
+
label: string;
|
11
|
+
name: string;
|
12
|
+
};
|
13
|
+
previewSchema: {
|
14
|
+
type: string;
|
15
|
+
className: string;
|
16
|
+
mode: string;
|
17
|
+
wrapWithPanel: boolean;
|
18
|
+
controls: {
|
19
|
+
type: string;
|
20
|
+
label: string;
|
21
|
+
name: string;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
panelTitle: string;
|
25
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class FileControlPlugin 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
|
+
panelControls: any[];
|
18
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
19
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { Schema } from 'amis/lib/types';
|
2
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo, VRendererConfig } from '../../plugin';
|
3
|
+
export declare class GridControlPlugin extends BasePlugin {
|
4
|
+
rendererName: string;
|
5
|
+
$schema: string;
|
6
|
+
icon: string;
|
7
|
+
name: string;
|
8
|
+
description: string;
|
9
|
+
docLink: string;
|
10
|
+
tags: string[];
|
11
|
+
scaffold: {
|
12
|
+
type: string;
|
13
|
+
label: string;
|
14
|
+
columns: {
|
15
|
+
controls: {
|
16
|
+
label: string;
|
17
|
+
name: string;
|
18
|
+
type: string;
|
19
|
+
}[];
|
20
|
+
}[];
|
21
|
+
};
|
22
|
+
previewSchema: any;
|
23
|
+
panelTitle: string;
|
24
|
+
panelControls: any[];
|
25
|
+
vRendererConfig: VRendererConfig;
|
26
|
+
vWrapperResolve: (dom: HTMLElement) => HTMLElement;
|
27
|
+
overrides: {
|
28
|
+
renderChild: (this: any, region: string, node: Schema, index: number, length: number) => any;
|
29
|
+
};
|
30
|
+
addControl(region: string, id: string): void;
|
31
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
32
|
+
}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import { Schema } from 'amis/lib/types';
|
2
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo, VRendererConfig } from '../../plugin';
|
3
|
+
export declare class HBoxControlPlugin extends BasePlugin {
|
4
|
+
rendererName: string;
|
5
|
+
$schema: string;
|
6
|
+
name: string;
|
7
|
+
icon: string;
|
8
|
+
description: string;
|
9
|
+
docLink: string;
|
10
|
+
tags: string[];
|
11
|
+
scaffold: {
|
12
|
+
type: string;
|
13
|
+
label: string;
|
14
|
+
columns: {
|
15
|
+
controls: {
|
16
|
+
label: string;
|
17
|
+
name: string;
|
18
|
+
type: string;
|
19
|
+
}[];
|
20
|
+
}[];
|
21
|
+
};
|
22
|
+
previewSchema: any;
|
23
|
+
panelTitle: string;
|
24
|
+
panelControls: ({
|
25
|
+
type: string;
|
26
|
+
name: string;
|
27
|
+
label: string;
|
28
|
+
multiple: boolean;
|
29
|
+
multiLine: boolean;
|
30
|
+
minLength: number;
|
31
|
+
draggable: boolean;
|
32
|
+
draggableTip: string;
|
33
|
+
addButtonText: string;
|
34
|
+
scaffold: {
|
35
|
+
controls: {
|
36
|
+
label: string;
|
37
|
+
name: string;
|
38
|
+
type: string;
|
39
|
+
}[];
|
40
|
+
};
|
41
|
+
strictMode: boolean;
|
42
|
+
controls: any[];
|
43
|
+
pipeIn?: undefined;
|
44
|
+
size?: undefined;
|
45
|
+
options?: undefined;
|
46
|
+
} | {
|
47
|
+
type: string;
|
48
|
+
name: string;
|
49
|
+
label: string;
|
50
|
+
pipeIn: (value: any) => any;
|
51
|
+
size: string;
|
52
|
+
options: {
|
53
|
+
value: string;
|
54
|
+
label: string;
|
55
|
+
}[];
|
56
|
+
multiple?: undefined;
|
57
|
+
multiLine?: undefined;
|
58
|
+
minLength?: undefined;
|
59
|
+
draggable?: undefined;
|
60
|
+
draggableTip?: undefined;
|
61
|
+
addButtonText?: undefined;
|
62
|
+
scaffold?: undefined;
|
63
|
+
strictMode?: undefined;
|
64
|
+
controls?: undefined;
|
65
|
+
})[];
|
66
|
+
vRendererConfig: VRendererConfig;
|
67
|
+
vWrapperResolve: (dom: HTMLElement) => HTMLElement;
|
68
|
+
overrides: {
|
69
|
+
renderChild: (this: any, region: string, node: Schema, index: number) => any;
|
70
|
+
};
|
71
|
+
addControl(region: string, id: string): void;
|
72
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
73
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class ImageControlPlugin extends BasePlugin {
|
3
|
+
rendererName: string;
|
4
|
+
$schema: string;
|
5
|
+
name: string;
|
6
|
+
description: string;
|
7
|
+
docLink: string;
|
8
|
+
tags: string[];
|
9
|
+
icon: string;
|
10
|
+
scaffold: {
|
11
|
+
type: string;
|
12
|
+
label: string;
|
13
|
+
name: string;
|
14
|
+
imageClassName: string;
|
15
|
+
};
|
16
|
+
previewSchema: any;
|
17
|
+
panelTitle: string;
|
18
|
+
panelControls: any[];
|
19
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
20
|
+
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { BaseEventContext, BasePlugin, BasicSubRenderInfo, BasicToolbarItem, ContextMenuEventContext, ContextMenuItem, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
3
|
export declare class SubFormControlPlugin extends BasePlugin {
|
3
4
|
rendererName: string;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class ListControlPlugin extends BasePlugin {
|
3
|
+
rendererName: string;
|
4
|
+
$schema: string;
|
5
|
+
order: number;
|
6
|
+
name: string;
|
7
|
+
icon: string;
|
8
|
+
description: string;
|
9
|
+
docLink: string;
|
10
|
+
tags: string[];
|
11
|
+
scaffold: {
|
12
|
+
type: string;
|
13
|
+
label: string;
|
14
|
+
name: string;
|
15
|
+
options: {
|
16
|
+
label: string;
|
17
|
+
value: string;
|
18
|
+
}[];
|
19
|
+
};
|
20
|
+
previewSchema: any;
|
21
|
+
panelTitle: string;
|
22
|
+
panelControls: any[];
|
23
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
24
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class LocationControlPlugin 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
|
+
name: string;
|
13
|
+
};
|
14
|
+
previewSchema: any;
|
15
|
+
panelTitle: string;
|
16
|
+
panelControls: ({
|
17
|
+
name: string;
|
18
|
+
label: string;
|
19
|
+
type: string;
|
20
|
+
mode: string;
|
21
|
+
className: string;
|
22
|
+
description?: undefined;
|
23
|
+
value?: undefined;
|
24
|
+
options?: undefined;
|
25
|
+
} | {
|
26
|
+
type: string;
|
27
|
+
name: string;
|
28
|
+
label: string;
|
29
|
+
description: string;
|
30
|
+
mode?: undefined;
|
31
|
+
className?: undefined;
|
32
|
+
value?: undefined;
|
33
|
+
options?: undefined;
|
34
|
+
} | {
|
35
|
+
type: string;
|
36
|
+
name: string;
|
37
|
+
label: string;
|
38
|
+
value: string;
|
39
|
+
options: {
|
40
|
+
label: string;
|
41
|
+
value: string;
|
42
|
+
}[];
|
43
|
+
mode?: undefined;
|
44
|
+
className?: undefined;
|
45
|
+
description?: undefined;
|
46
|
+
})[];
|
47
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
48
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class MatrixControlPlugin 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
|
+
name: string;
|
13
|
+
label: string;
|
14
|
+
rowLabel: string;
|
15
|
+
columns: {
|
16
|
+
label: string;
|
17
|
+
}[];
|
18
|
+
rows: {
|
19
|
+
label: string;
|
20
|
+
}[];
|
21
|
+
};
|
22
|
+
previewSchema: any;
|
23
|
+
panelTitle: string;
|
24
|
+
panelControls: any[];
|
25
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
26
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { DateControlPlugin } from './Date';
|
2
|
+
export declare class MonthControlPlugin extends DateControlPlugin {
|
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
|
+
name: string;
|
13
|
+
};
|
14
|
+
previewSchema: any;
|
15
|
+
panelTitle: string;
|
16
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class MonthRangeControlPlugin extends BasePlugin {
|
3
|
+
rendererName: string;
|
4
|
+
$schema: string;
|
5
|
+
order: number;
|
6
|
+
icon: string;
|
7
|
+
name: string;
|
8
|
+
description: string;
|
9
|
+
docLink: string;
|
10
|
+
tags: string[];
|
11
|
+
scaffold: {
|
12
|
+
type: string;
|
13
|
+
label: string;
|
14
|
+
name: string;
|
15
|
+
};
|
16
|
+
previewSchema: any;
|
17
|
+
panelTitle: string;
|
18
|
+
panelControls: any[];
|
19
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
20
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class NumberControlPlugin extends BasePlugin {
|
3
|
+
rendererName: string;
|
4
|
+
$schema: string;
|
5
|
+
order: number;
|
6
|
+
name: string;
|
7
|
+
icon: string;
|
8
|
+
description: string;
|
9
|
+
docLink: string;
|
10
|
+
tags: string[];
|
11
|
+
scaffold: {
|
12
|
+
type: string;
|
13
|
+
label: string;
|
14
|
+
name: string;
|
15
|
+
};
|
16
|
+
previewSchema: any;
|
17
|
+
panelTitle: string;
|
18
|
+
panelControls: any[];
|
19
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
20
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RegionConfig, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class PanelControlPlugin extends BasePlugin {
|
3
|
+
rendererName: string;
|
4
|
+
$schema: string;
|
5
|
+
regions: Array<RegionConfig>;
|
6
|
+
name: string;
|
7
|
+
icon: string;
|
8
|
+
description: string;
|
9
|
+
docLink: string;
|
10
|
+
tags: string[];
|
11
|
+
scaffold: {
|
12
|
+
type: string;
|
13
|
+
title: string;
|
14
|
+
controls: {
|
15
|
+
label: string;
|
16
|
+
type: string;
|
17
|
+
name: string;
|
18
|
+
}[];
|
19
|
+
};
|
20
|
+
previewSchema: any;
|
21
|
+
panelTitle: string;
|
22
|
+
panelControls: any[];
|
23
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
24
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { TextControlPlugin } from './Text';
|
2
|
+
export declare class PasswordControlPlugin extends TextControlPlugin {
|
3
|
+
rendererName: string;
|
4
|
+
$schema: string;
|
5
|
+
name: string;
|
6
|
+
icon: string;
|
7
|
+
description: string;
|
8
|
+
scaffold: {
|
9
|
+
type: string;
|
10
|
+
label: string;
|
11
|
+
name: string;
|
12
|
+
};
|
13
|
+
previewSchema: {
|
14
|
+
type: string;
|
15
|
+
className: string;
|
16
|
+
mode: string;
|
17
|
+
wrapWithPanel: boolean;
|
18
|
+
controls: {
|
19
|
+
type: string;
|
20
|
+
label: string;
|
21
|
+
name: string;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
panelTitle: string;
|
25
|
+
}
|