amis-editor 4.0.1-beta.19 → 4.0.2-beta.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/component/AvailableRenderersPanel.d.ts +13 -1
- package/dist/component/BackTop.d.ts +26 -0
- package/dist/component/ContextMenuPanel.d.ts +8 -0
- package/dist/component/Control/APIControl.d.ts +4 -40
- package/dist/component/Editor.d.ts +1 -0
- package/dist/component/InputComponentName.d.ts +8 -0
- package/dist/component/Outline.d.ts +6 -0
- package/dist/component/Panel/AvailableRenderersPanel.d.ts +1 -11
- package/dist/component/Panel/DrawerRendererPanel.d.ts +15 -0
- package/dist/component/Panel/RenderersPanel.d.ts +32 -0
- package/dist/component/Preview.d.ts +1 -0
- package/dist/component/base/BackTop.d.ts +1 -1
- package/dist/component/base/SearchRendererPanel.d.ts +9 -1
- package/dist/exports.d.ts +8 -0
- package/dist/exports.min.js +1 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.min.js +1 -1
- package/dist/manager.d.ts +5 -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 -0
- 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 -0
- 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 +1 -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 -0
- 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 -0
- 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 -0
- 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 -0
- 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 -0
- 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.d.ts +1 -0
- 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/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 +13 -1
- package/dist/store/editor.d.ts +42 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/plugin/Form/Reset.d.ts +0 -7
- package/dist/plugin/Form/Submit.d.ts +0 -6
package/dist/manager.d.ts
CHANGED
@@ -32,7 +32,6 @@ export declare function getEditorPlugins(): PluginClass[];
|
|
32
32
|
export declare function unRegisterEditorPlugin(id: string): void;
|
33
33
|
/**
|
34
34
|
* 在 component/Editor.tsx 里面实例化的。
|
35
|
-
*
|
36
35
|
* 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
|
37
36
|
*/
|
38
37
|
export declare class EditorManager {
|
@@ -48,6 +47,7 @@ export declare class EditorManager {
|
|
48
47
|
private clipboardData;
|
49
48
|
readonly hackIn: any;
|
50
49
|
constructor(config: EditorManagerConfig, store: EditorStoreType, parent?: EditorManager | undefined);
|
50
|
+
dynamicAddPlugin(pluginName: string): void;
|
51
51
|
buildEventContext(idOrNode: string | EditorNodeType): {
|
52
52
|
node: {
|
53
53
|
parentId: string;
|
@@ -220,9 +220,9 @@ export declare class EditorManager {
|
|
220
220
|
buildToolbars(): void;
|
221
221
|
collectPanels(node: EditorNodeType, triggerEvent?: boolean, secondFactor?: boolean): BasicPanelItem[];
|
222
222
|
buildPanels(): void;
|
223
|
-
collectRenderers(region?: string, id?: string): SubRendererInfo[]
|
224
|
-
buildRenderers(region?: string): void
|
225
|
-
rebuild(): void
|
223
|
+
collectRenderers(region?: string, id?: string): Promise<SubRendererInfo[]>;
|
224
|
+
buildRenderers(region?: string): Promise<void>;
|
225
|
+
rebuild(): Promise<void>;
|
226
226
|
/**
|
227
227
|
* 可用组件面板里面会点进来,不同的区域可能可插入的组件不一样。
|
228
228
|
* @param region 区域的 key
|
@@ -233,7 +233,7 @@ export declare class EditorManager {
|
|
233
233
|
* @param region
|
234
234
|
* @param preferTag
|
235
235
|
*/
|
236
|
-
showInsertPanel(region: string, id?: string, preferTag?: string, mode?: 'insert' | 'replace', originId?: string, beforeId?: string): void
|
236
|
+
showInsertPanel(region: string, id?: string, preferTag?: string, mode?: 'insert' | 'replace', originId?: string, beforeId?: string): Promise<void>;
|
237
237
|
/**
|
238
238
|
* 显示组件更换面板
|
239
239
|
* @param region
|
package/dist/plugin/Alert.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import { SchemaObject } from 'amis';
|
2
2
|
import { BasePlugin } from '../plugin';
|
3
|
-
export declare class
|
3
|
+
export declare class AlertPlugin extends BasePlugin {
|
4
4
|
rendererName: string;
|
5
5
|
$schema: string;
|
6
6
|
name: string;
|
7
|
+
isBaseComponent: boolean;
|
7
8
|
description: string;
|
8
9
|
docLink: string;
|
9
10
|
icon: string;
|
package/dist/plugin/Audio.d.ts
CHANGED
package/dist/plugin/Avatar.d.ts
CHANGED
@@ -2,7 +2,9 @@ import { BasePlugin } from '../plugin';
|
|
2
2
|
export declare class BreadcrumbPlugin extends BasePlugin {
|
3
3
|
rendererName: string;
|
4
4
|
$schema: string;
|
5
|
+
disabledRendererPlugin: boolean;
|
5
6
|
name: string;
|
7
|
+
isBaseComponent: boolean;
|
6
8
|
icon: string;
|
7
9
|
description: string;
|
8
10
|
docLink: string;
|
package/dist/plugin/Button.d.ts
CHANGED
package/dist/plugin/CRUD.d.ts
CHANGED
package/dist/plugin/Card.d.ts
CHANGED
package/dist/plugin/Cards.d.ts
CHANGED
package/dist/plugin/Chart.d.ts
CHANGED
package/dist/plugin/Custom.d.ts
CHANGED
package/dist/plugin/Date.d.ts
CHANGED
package/dist/plugin/Dialog.d.ts
CHANGED
package/dist/plugin/Divider.d.ts
CHANGED
package/dist/plugin/Drawer.d.ts
CHANGED
package/dist/plugin/Each.d.ts
CHANGED
package/dist/plugin/Flex.d.ts
CHANGED
@@ -2,7 +2,9 @@ import { BasePlugin, PluginEvent, RegionConfig, RendererJSONSchemaResolveEventCo
|
|
2
2
|
export declare class FlexPlugin extends BasePlugin {
|
3
3
|
rendererName: string;
|
4
4
|
$schema: string;
|
5
|
+
disabledRendererPlugin: boolean;
|
5
6
|
name: string;
|
7
|
+
isBaseComponent: boolean;
|
6
8
|
icon: string;
|
7
9
|
description: string;
|
8
10
|
tags: string[];
|
@@ -2,7 +2,9 @@ import { BaseEventContext, BasePlugin, BasicToolbarItem, ContextMenuEventContext
|
|
2
2
|
export declare class ArrayControlPlugin extends BasePlugin {
|
3
3
|
rendererName: string;
|
4
4
|
$schema: string;
|
5
|
+
disabledRendererPlugin: boolean;
|
5
6
|
name: string;
|
7
|
+
isBaseComponent: boolean;
|
6
8
|
icon: string;
|
7
9
|
description: string;
|
8
10
|
docLink: string;
|
@@ -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;
|