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,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
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class QRCodeControlPlugin 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
|
+
value: 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 RangeControlPlugin 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,19 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class RangeControlPlugin 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,19 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class RepeatControlPlugin 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,19 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class RichTextControlPlugin 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,24 @@
|
|
1
|
+
import { BasePlugin, BaseEventContext, BasicSubRenderInfo, RendererEventContext, SubRendererInfo, RegionConfig } from '../../plugin';
|
2
|
+
export declare class ServiceControlPlugin 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
|
+
controls: {
|
14
|
+
type: string;
|
15
|
+
label: string;
|
16
|
+
name: string;
|
17
|
+
}[];
|
18
|
+
};
|
19
|
+
previewSchema: any;
|
20
|
+
regions: Array<RegionConfig>;
|
21
|
+
panelTitle: string;
|
22
|
+
panelControlsCreator: (context: BaseEventContext) => any[];
|
23
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
24
|
+
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { BaseEventContext, BasePlugin, BasicSubRenderInfo, BasicToolbarItem, ContextMenuEventContext, ContextMenuItem, RendererEventContext, SubRendererInfo } from '../../plugin';
|
3
|
+
export declare class SubFormControlPlugin 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
|
+
name: string;
|
14
|
+
label: string;
|
15
|
+
form: {
|
16
|
+
title: string;
|
17
|
+
controls: {
|
18
|
+
type: string;
|
19
|
+
label: string;
|
20
|
+
name: string;
|
21
|
+
}[];
|
22
|
+
};
|
23
|
+
};
|
24
|
+
previewSchema: any;
|
25
|
+
panelTitle: string;
|
26
|
+
panelControlsCreator: (context: BaseEventContext) => ({
|
27
|
+
children: ({ value, onChange }: any) => JSX.Element;
|
28
|
+
name?: undefined;
|
29
|
+
type?: undefined;
|
30
|
+
value?: undefined;
|
31
|
+
label?: undefined;
|
32
|
+
description?: undefined;
|
33
|
+
visibleOn?: undefined;
|
34
|
+
} | {
|
35
|
+
name: string;
|
36
|
+
type: string;
|
37
|
+
value: string;
|
38
|
+
label: string;
|
39
|
+
description: string;
|
40
|
+
children?: undefined;
|
41
|
+
visibleOn?: undefined;
|
42
|
+
} | {
|
43
|
+
name: string;
|
44
|
+
label: string;
|
45
|
+
value: string;
|
46
|
+
type: string;
|
47
|
+
children?: undefined;
|
48
|
+
description?: undefined;
|
49
|
+
visibleOn?: undefined;
|
50
|
+
} | {
|
51
|
+
name: string;
|
52
|
+
visibleOn: string;
|
53
|
+
label: string;
|
54
|
+
type: string;
|
55
|
+
children?: undefined;
|
56
|
+
value?: undefined;
|
57
|
+
description?: undefined;
|
58
|
+
})[];
|
59
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
60
|
+
filterProps(props: any): any;
|
61
|
+
buildEditorToolbar({ id, info }: BaseEventContext, toolbars: Array<BasicToolbarItem>): void;
|
62
|
+
buildEditorContextMenu({ id, schema, region, info }: ContextMenuEventContext, menus: Array<ContextMenuItem>): void;
|
63
|
+
editDetail(id: string): void;
|
64
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class TableControlPlugin 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
|
+
columns: ({
|
15
|
+
label: string;
|
16
|
+
name: string;
|
17
|
+
quickEdit: {
|
18
|
+
type: string;
|
19
|
+
mode?: undefined;
|
20
|
+
};
|
21
|
+
} | {
|
22
|
+
label: string;
|
23
|
+
name: string;
|
24
|
+
quickEdit: {
|
25
|
+
type: string;
|
26
|
+
mode: string;
|
27
|
+
};
|
28
|
+
})[];
|
29
|
+
};
|
30
|
+
previewSchema: any;
|
31
|
+
panelTitle: string;
|
32
|
+
panelControls: never[];
|
33
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
34
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { BasicSubRenderInfo, RendererEventContext, SubRendererInfo, VRendererConfig } from '../../plugin';
|
2
|
+
import { TabsPlugin } from '../Tabs';
|
3
|
+
export declare class TabsControlPlugin extends TabsPlugin {
|
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,21 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class TagControlPlugin 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: string[];
|
16
|
+
};
|
17
|
+
previewSchema: any;
|
18
|
+
panelTitle: string;
|
19
|
+
panelControls: any[];
|
20
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
21
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class TextControlPlugin 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,19 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class TimeControlPlugin 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,73 @@
|
|
1
|
+
import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
|
2
|
+
export declare class TreeControlPlugin 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
|
+
options: ({
|
15
|
+
label: string;
|
16
|
+
value: string;
|
17
|
+
children: {
|
18
|
+
label: string;
|
19
|
+
value: string;
|
20
|
+
}[];
|
21
|
+
} | {
|
22
|
+
label: string;
|
23
|
+
value: string;
|
24
|
+
children?: undefined;
|
25
|
+
})[];
|
26
|
+
};
|
27
|
+
previewSchema: any;
|
28
|
+
panelTitle: string;
|
29
|
+
panelDefinitions: {
|
30
|
+
options: {
|
31
|
+
label: string;
|
32
|
+
name: string;
|
33
|
+
type: string;
|
34
|
+
multiple: boolean;
|
35
|
+
multiLine: boolean;
|
36
|
+
draggable: boolean;
|
37
|
+
addButtonText: string;
|
38
|
+
scaffold: {
|
39
|
+
label: string;
|
40
|
+
value: string;
|
41
|
+
};
|
42
|
+
controls: ({
|
43
|
+
type: string;
|
44
|
+
controls: ({
|
45
|
+
type: string;
|
46
|
+
name: string;
|
47
|
+
placeholder: string;
|
48
|
+
required: boolean;
|
49
|
+
unique?: undefined;
|
50
|
+
} | {
|
51
|
+
type: string;
|
52
|
+
name: string;
|
53
|
+
placeholder: string;
|
54
|
+
unique: boolean;
|
55
|
+
required?: undefined;
|
56
|
+
})[];
|
57
|
+
$ref?: undefined;
|
58
|
+
label?: undefined;
|
59
|
+
name?: undefined;
|
60
|
+
addButtonText?: undefined;
|
61
|
+
} | {
|
62
|
+
$ref: string;
|
63
|
+
label: string;
|
64
|
+
name: string;
|
65
|
+
addButtonText: string;
|
66
|
+
type?: undefined;
|
67
|
+
controls?: undefined;
|
68
|
+
})[];
|
69
|
+
};
|
70
|
+
};
|
71
|
+
panelControls: any[];
|
72
|
+
buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
73
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { TextControlPlugin } from './Text';
|
2
|
+
export declare class URLControlPlugin 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,16 @@
|
|
1
|
+
import { DateControlPlugin } from './Date';
|
2
|
+
export declare class YearControlPlugin 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,21 @@
|
|
1
|
+
import { BaseEventContext, BasePlugin } from '../plugin';
|
2
|
+
export declare class SwitchPlugin 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
|
+
name: string;
|
12
|
+
};
|
13
|
+
previewSchema: {
|
14
|
+
value: boolean;
|
15
|
+
disabled: boolean;
|
16
|
+
type: string;
|
17
|
+
name: string;
|
18
|
+
};
|
19
|
+
panelTitle: string;
|
20
|
+
panelControlsCreator: (context: BaseEventContext) => any[];
|
21
|
+
}
|
package/dist/types.d.ts
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
import { RenderOptions, fetcherConfig, RootRenderProps, RenderSchemaFilter, RendererConfig, RendererComponent, TestFunc, RendererBasicConfig, RendererEnv, RendererProps, renderChildProps } from 'amis/lib/factory';
|
2
|
+
import { ClassNamesFn, ThemeInstance } from 'amis/lib/theme';
|
3
|
+
import { ApiObject, ApiString, Api, fetcherResult, fetchOptions, Schema, Button, Action } from 'amis/lib/types';
|
4
|
+
export interface Location {
|
5
|
+
pathname: string;
|
6
|
+
search: string;
|
7
|
+
state: any;
|
8
|
+
hash: string;
|
9
|
+
key?: string;
|
10
|
+
query?: any;
|
11
|
+
}
|
12
|
+
export interface PlainObject {
|
13
|
+
[propsName: string]: any;
|
14
|
+
}
|
15
|
+
export interface JSONSchema {
|
16
|
+
[propsName: string]: any;
|
17
|
+
}
|
18
|
+
export declare type RequiredKnownKeys<T> = {
|
19
|
+
[K in keyof T]: {} extends Pick<T, K> ? never : K;
|
20
|
+
} extends {
|
21
|
+
[_ in keyof T]: infer U;
|
22
|
+
} ? {} extends U ? never : U : never;
|
23
|
+
export declare type OptionalKnownKeys<T> = {
|
24
|
+
[K in keyof T]: string extends K ? never : number extends K ? never : {} extends Pick<T, K> ? K : never;
|
25
|
+
} extends {
|
26
|
+
[_ in keyof T]: infer U;
|
27
|
+
} ? {} extends U ? never : U : never;
|
28
|
+
export declare type Override<T, U> = {
|
29
|
+
[K in Exclude<RequiredKnownKeys<T>, keyof U>]: K extends keyof T ? T[K] : never;
|
30
|
+
} & {
|
31
|
+
[K in Exclude<OptionalKnownKeys<T>, keyof U>]?: K extends keyof T ? T[K] : never;
|
32
|
+
} & U;
|
33
|
+
export declare type MakeOptional<T, U> = {
|
34
|
+
[K in OptionalKnownKeys<T>]?: K extends keyof T ? T[K] : never;
|
35
|
+
} & {
|
36
|
+
[K in Exclude<RequiredKnownKeys<T>, keyof U>]: K extends keyof T ? T[K] : never;
|
37
|
+
} & {
|
38
|
+
[K in Extract<RequiredKnownKeys<T>, keyof U>]?: K extends keyof T ? T[K] : never;
|
39
|
+
};
|
40
|
+
export { ApiObject, ApiString, Api, fetcherResult, fetchOptions, Schema, Button, Action, TestFunc, RendererBasicConfig, ClassNamesFn, ThemeInstance, RendererEnv, RendererProps, renderChildProps, RendererComponent, RendererConfig, RenderSchemaFilter, RootRenderProps, RenderOptions, fetcherConfig };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "amis-editor",
|
3
|
-
"version": "3.3.6-beta.
|
3
|
+
"version": "3.3.6-beta.18",
|
4
4
|
"description": "amis 可视化编辑器",
|
5
5
|
"main": "dist/index.min.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -22,10 +22,8 @@
|
|
22
22
|
"license": "ISC",
|
23
23
|
"dependencies": {
|
24
24
|
"@types/deep-diff": "^1.0.0",
|
25
|
-
"amis": "*",
|
26
25
|
"deep-diff": "1.0.2",
|
27
|
-
"
|
28
|
-
"json-ast-comments": "^1.0.6",
|
26
|
+
"json-ast-comments": "^1.0.7",
|
29
27
|
"mobx": "^4.5.0",
|
30
28
|
"mobx-react": "^6.1.4",
|
31
29
|
"mobx-state-tree": "^3.17.3",
|
@@ -33,74 +31,53 @@
|
|
33
31
|
},
|
34
32
|
"devDependencies": {
|
35
33
|
"@fortawesome/fontawesome-free": "^5.15.3",
|
36
|
-
"@rollup/plugin-buble": "^0.21.3",
|
37
|
-
"@rollup/plugin-commonjs": "^15.0.0",
|
38
|
-
"@rollup/plugin-typescript": "^6.0.0",
|
39
34
|
"@svgr/webpack": "^5.5.0",
|
40
35
|
"@types/async": "^2.0.45",
|
41
36
|
"@types/classnames": "^2.2.3",
|
42
|
-
"@types/dom-helpers": "^3.4.1",
|
43
37
|
"@types/history": "^4.6.0",
|
44
38
|
"@types/hoist-non-react-statics": "^3.0.1",
|
45
39
|
"@types/lodash": "^4.14.76",
|
46
40
|
"@types/node": "^14.0.24",
|
47
|
-
"@types/pretty-bytes": "^4.0.0",
|
48
|
-
"@types/prop-types": "^15.5.2",
|
49
41
|
"@types/qs": "^6.5.1",
|
50
42
|
"@types/react": "^16.9.11",
|
51
|
-
"@types/react-addons-update": "^0.14.19",
|
52
|
-
"@types/react-color": "^2.13.3",
|
53
|
-
"@types/react-cropper": "^0.10.1",
|
54
43
|
"@types/react-dom": "^16.9.4",
|
55
|
-
"@types/react-dropzone": "^4.1.0",
|
56
|
-
"@types/react-json-tree": "^0.6.6",
|
57
|
-
"@types/react-onclickoutside": "^6.0.2",
|
58
44
|
"@types/react-overlays": "^0.6.9",
|
59
45
|
"@types/react-router": "^4.0.16",
|
60
|
-
"
|
61
|
-
"@types/react-transition-group": "^2.0.6",
|
62
|
-
"@types/sortablejs": "^1.3.32",
|
63
|
-
"@types/whatwg-fetch": "0.0.33",
|
64
|
-
"animate.css": "3.5.2",
|
65
|
-
"axios": "0.16.2",
|
66
|
-
"bootstrap": "3.3.7",
|
46
|
+
"axios": "0.21.1",
|
67
47
|
"concurrently": "^6.2.0",
|
68
|
-
"css-loader": "^
|
69
|
-
"faker": "^
|
70
|
-
"fis-parser-sass": "^1.0
|
48
|
+
"css-loader": "^6.2.0",
|
49
|
+
"faker": "^5.5.3",
|
50
|
+
"fis-parser-sass": "^1.1.0",
|
71
51
|
"fis-parser-svgr": "^1.0.1",
|
72
52
|
"fis3": "^3.4.45",
|
73
53
|
"fis3-hook-commonjs": "^0.1.32",
|
74
54
|
"fis3-hook-node_modules": "^2.3.1",
|
75
|
-
"fis3-parser-typescript": "^1.
|
55
|
+
"fis3-parser-typescript": "^1.4.0",
|
76
56
|
"fis3-postpackager-loader": "^2.1.12",
|
77
57
|
"fis3-prepackager-stand-alone-pack": "^1.0.1",
|
78
58
|
"fis3-preprocessor-js-require-css": "^0.1.3",
|
79
59
|
"fis3-preprocessor-js-require-file": "^0.1.3",
|
80
|
-
"highlight.js": "^10.7.2",
|
81
60
|
"husky": "^6.0.0",
|
82
|
-
"
|
83
|
-
"marked": "^0.3.7",
|
84
|
-
"mini-css-extract-plugin": "^0.9.0",
|
85
|
-
"mobx-wiretap": "^0.12.0",
|
61
|
+
"mini-css-extract-plugin": "^2.3.0",
|
86
62
|
"prettier": "^2.2.1",
|
87
63
|
"pretty-quick": "^3.1.0",
|
88
64
|
"react": "^16.8.6",
|
89
65
|
"react-dom": "^16.8.6",
|
90
66
|
"react-router": "3.2.0",
|
91
|
-
"rollup": "^2.27.0",
|
92
67
|
"sass": "^1.26.10",
|
93
|
-
"sass-loader": "^
|
94
|
-
"
|
95
|
-
"
|
96
|
-
"
|
97
|
-
"
|
98
|
-
"
|
99
|
-
"webpack": "^4.
|
100
|
-
"webpack-
|
101
|
-
"
|
68
|
+
"sass-loader": "^12.1.0",
|
69
|
+
"style-loader": "^3.2.1",
|
70
|
+
"ts-loader": "^9.2.5",
|
71
|
+
"tslib": "^2.3.1",
|
72
|
+
"typescript": "^4.4.2",
|
73
|
+
"webpack": "^5.52.1",
|
74
|
+
"webpack-cli": "^4.8.0",
|
75
|
+
"webpack-node-externals": "^3.0.0",
|
76
|
+
"amis": "1.2.4-beta.11"
|
77
|
+
},
|
78
|
+
"peerDependencies": {
|
79
|
+
"amis": "*"
|
102
80
|
},
|
103
|
-
"peerDependencies": {},
|
104
81
|
"husky": {
|
105
82
|
"hooks": {
|
106
83
|
"pre-commit": "pretty-quick --staged"
|