amis-editor 4.0.1-beta.8 → 4.0.2-beta.12
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 +19 -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 +16 -6
- package/dist/plugin/CollapseGroup.d.ts +41 -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 +18 -5
- package/dist/store/editor.d.ts +54 -4
- package/dist/style.css +1 -1
- package/dist/util.d.ts +7 -2
- package/package.json +23 -15
- 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
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
|
}
|
package/dist/plugin/Tabs.d.ts
CHANGED
package/dist/plugin/Tasks.d.ts
CHANGED
package/dist/plugin/Time.d.ts
CHANGED
package/dist/plugin/Tpl.d.ts
CHANGED
package/dist/plugin/Video.d.ts
CHANGED
@@ -4,6 +4,7 @@ export declare class WebComponentPlugin extends BasePlugin {
|
|
4
4
|
rendererName: string;
|
5
5
|
$schema: string;
|
6
6
|
name: string;
|
7
|
+
isBaseComponent: boolean;
|
7
8
|
description: string;
|
8
9
|
tags: string[];
|
9
10
|
icon: string;
|
@@ -16,33 +17,9 @@ export declare class WebComponentPlugin extends BasePlugin {
|
|
16
17
|
tag: string;
|
17
18
|
};
|
18
19
|
panelTitle: string;
|
19
|
-
panelBody:
|
20
|
+
panelBody: {
|
20
21
|
type: string;
|
21
22
|
label: string;
|
22
23
|
name: string;
|
23
|
-
|
24
|
-
pipeIn?: undefined;
|
25
|
-
pipeOut?: undefined;
|
26
|
-
controls?: undefined;
|
27
|
-
} | {
|
28
|
-
type: string;
|
29
|
-
label: string;
|
30
|
-
name: string;
|
31
|
-
multiple: boolean;
|
32
|
-
pipeIn: (value: any) => any;
|
33
|
-
pipeOut: (value: any) => any;
|
34
|
-
controls: ({
|
35
|
-
placeholder: string;
|
36
|
-
type: string;
|
37
|
-
unique: boolean;
|
38
|
-
name: string;
|
39
|
-
columnClassName: string;
|
40
|
-
} | {
|
41
|
-
placeholder: string;
|
42
|
-
type: string;
|
43
|
-
name: string;
|
44
|
-
unique?: undefined;
|
45
|
-
columnClassName?: undefined;
|
46
|
-
})[];
|
47
|
-
})[];
|
24
|
+
}[];
|
48
25
|
}
|
package/dist/plugin/Wizard.d.ts
CHANGED
package/dist/plugin/Wrapper.d.ts
CHANGED
package/dist/plugin.d.ts
CHANGED
@@ -57,7 +57,7 @@ export interface RegionConfig {
|
|
57
57
|
optional?: boolean;
|
58
58
|
/**
|
59
59
|
* 有时候有些包括是需要其他条件的,所以要自己写包裹逻辑。
|
60
|
-
* 比如
|
60
|
+
* 比如 Panel 里面的 renderBody
|
61
61
|
*/
|
62
62
|
renderMethodOverride?: (regions: Array<RegionConfig>, insertRegion: (component: JSX.Element, dom: JSX.Element, regions: Array<RegionConfig>, info: RendererInfo, manager: EditorManager) => JSX.Element) => Function;
|
63
63
|
/**
|
@@ -131,6 +131,8 @@ export interface RendererInfo extends RendererScaffoldInfo {
|
|
131
131
|
* json schema 协议
|
132
132
|
*/
|
133
133
|
$schema?: string;
|
134
|
+
isBaseComponent?: boolean;
|
135
|
+
disabledRendererPlugin?: boolean;
|
134
136
|
/**
|
135
137
|
* 配置区域。
|
136
138
|
*/
|
@@ -182,7 +184,7 @@ export interface RendererInfo extends RendererScaffoldInfo {
|
|
182
184
|
*
|
183
185
|
* 表格的列,即是表格列,也可能是其他文本框。
|
184
186
|
*
|
185
|
-
* 配置了这个后会自动添加多个
|
187
|
+
* 配置了这个后会自动添加多个 Panel 面板来编辑。
|
186
188
|
*/
|
187
189
|
multifactor?: boolean;
|
188
190
|
/**
|
@@ -249,6 +251,10 @@ export interface ScaffoldForm extends PopOverForm {
|
|
249
251
|
* 子渲染器信息
|
250
252
|
*/
|
251
253
|
export interface SubRendererInfo extends RendererScaffoldInfo {
|
254
|
+
/**
|
255
|
+
* 用于判断是否是平台预置组件,平台预置组件为true。
|
256
|
+
*/
|
257
|
+
isBaseComponent?: boolean;
|
252
258
|
/**
|
253
259
|
* 首次拖入的时候可以用来配置个表单。
|
254
260
|
*/
|
@@ -274,13 +280,13 @@ export interface ToolbarItem {
|
|
274
280
|
className?: string;
|
275
281
|
draggable?: boolean;
|
276
282
|
onDragStart?: (e: React.DragEvent) => void;
|
277
|
-
icon
|
283
|
+
icon?: string;
|
278
284
|
iconSvg?: string;
|
279
285
|
onClick?: (e: React.MouseEvent) => void;
|
280
286
|
tooltip?: string;
|
281
287
|
placement?: 'top' | 'bottom' | 'right' | 'left';
|
282
288
|
}
|
283
|
-
export declare type BasicToolbarItem = Partial<ToolbarItem
|
289
|
+
export declare type BasicToolbarItem = Partial<ToolbarItem>;
|
284
290
|
export declare type ContextMenuItem = MenuItem | MenuDivider;
|
285
291
|
/**
|
286
292
|
* 面板的属性定义
|
@@ -304,10 +310,11 @@ export interface PanelItem {
|
|
304
310
|
key: string;
|
305
311
|
icon: string;
|
306
312
|
title: string;
|
307
|
-
component?: React.ComponentType<PanelProps>;
|
313
|
+
component?: React.ComponentType<PanelProps | any>;
|
308
314
|
order: number;
|
309
315
|
position?: 'left' | 'right';
|
310
316
|
render?: (props: PanelProps) => JSX.Element;
|
317
|
+
menus?: Array<any>;
|
311
318
|
}
|
312
319
|
export declare type BasicPanelItem = Omit<PanelItem, 'order'> & Partial<Pick<PanelItem, 'order'>>;
|
313
320
|
export interface EventContext {
|
@@ -539,6 +546,11 @@ export interface PluginInterface extends Partial<BasicRendererInfo>, Partial<Bas
|
|
539
546
|
* 构建子渲染器信息集合。
|
540
547
|
*/
|
541
548
|
buildSubRenderers?: (context: RendererEventContext, subRenderers: Array<SubRendererInfo>, renderers: Array<RendererConfig>) => BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
|
549
|
+
/**
|
550
|
+
* 更新NPM自定义组件分类和排序[异步方法]
|
551
|
+
* 备注:目前主要在npm自定义组件的分类和排序更新中使用
|
552
|
+
*/
|
553
|
+
asyncUpdateCustomSubRenderersInfo?: (context: RendererEventContext, subRenderers: Array<SubRendererInfo>, renderers: Array<RendererConfig>) => void;
|
542
554
|
markDom?: (dom: HTMLElement | Array<HTMLElement>, props: any) => void;
|
543
555
|
}
|
544
556
|
/**
|
@@ -573,6 +585,7 @@ export declare abstract class BasePlugin implements PluginInterface {
|
|
573
585
|
* @param menus
|
574
586
|
*/
|
575
587
|
buildEditorContextMenu({ id, schema, region, info }: ContextMenuEventContext, menus: Array<ContextMenuItem>): void;
|
588
|
+
buildEditorToolbar({ id, schema, info }: BaseEventContext, toolbars: Array<BasicToolbarItem>): void;
|
576
589
|
renderPlaceholder(text: string, key?: any): React.DetailedReactHTMLElement<{
|
577
590
|
key: any;
|
578
591
|
className: string;
|
package/dist/store/editor.d.ts
CHANGED
@@ -137,6 +137,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
137
137
|
setWidthMutable(value: any): void;
|
138
138
|
setHeightMutable(value: any): void;
|
139
139
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
140
|
+
theme: import("mobx-state-tree").IType<string | undefined, string, string>;
|
140
141
|
hoverId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
141
142
|
hoverRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
142
143
|
activeId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
@@ -161,16 +162,25 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
161
162
|
insertMode: import("mobx-state-tree").IType<string | undefined, string, string>;
|
162
163
|
insertOrigId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
163
164
|
insertBeforeId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
165
|
+
showInsertRenderer: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
164
166
|
schema: import("mobx-state-tree").IType<any, any, any>;
|
165
167
|
versionId: import("mobx-state-tree").IType<number | undefined, number, number>;
|
166
168
|
schemaHistory: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<SchemaHistory, SchemaHistory, SchemaHistory>>, [undefined]>;
|
167
169
|
toolbars: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<ToolbarItem[], ToolbarItem[], ToolbarItem[]>, [undefined]>;
|
168
170
|
panels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<PanelItem[], PanelItem[], PanelItem[]>, [undefined]>;
|
171
|
+
showCustomRenderersPanel: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
172
|
+
renderersTabsKey: import("mobx-state-tree").IType<string | undefined, string, string>;
|
173
|
+
renderersPanelUUID: import("mobx-state-tree").IType<string | undefined, string, string>;
|
174
|
+
subRenderers: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<SubRendererInfo[], SubRendererInfo[], SubRendererInfo[]>, [undefined]>;
|
169
175
|
subRenderersKeywords: import("mobx-state-tree").IType<string | undefined, string, string>;
|
176
|
+
subRenderersTag: import("mobx-state-tree").IType<string | undefined, string, string>;
|
170
177
|
subRendererRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
171
|
-
|
178
|
+
customRenderersPanelUUID: import("mobx-state-tree").IType<string | undefined, string, string>;
|
179
|
+
customRenderersKeywords: import("mobx-state-tree").IType<string | undefined, string, string>;
|
180
|
+
customRenderersTag: import("mobx-state-tree").IType<string | undefined, string, string>;
|
172
181
|
panelKey: import("mobx-state-tree").IType<string | undefined, string, string>;
|
173
182
|
leftPanelKey: import("mobx-state-tree").IType<string | undefined, string, string>;
|
183
|
+
leftPanelOpenStatus: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
174
184
|
jsonSchemaUri: import("mobx-state-tree").IType<string | undefined, string, string>;
|
175
185
|
scaffoldForm: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<ScaffoldFormContext, ScaffoldFormContext, ScaffoldFormContext>>;
|
176
186
|
scaffoldFormBuzy: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
@@ -357,6 +367,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
357
367
|
getLeftPanelKey(): string;
|
358
368
|
readonly leftPanels: PanelItem[];
|
359
369
|
readonly rightPanels: PanelItem[];
|
370
|
+
readonly contextMenuPanel: PanelItem | undefined;
|
360
371
|
getPanels(): Array<PanelItem>;
|
361
372
|
getLeftPanels(): Array<PanelItem>;
|
362
373
|
readonly sortedToolbars: ToolbarItem[];
|
@@ -840,10 +851,38 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
840
851
|
readonly dragging: boolean;
|
841
852
|
readonly needPatch: boolean;
|
842
853
|
readonly schemaRaw: any;
|
854
|
+
/** 获取平台预置组件(基础组件)*/
|
855
|
+
readonly subRenderersByOrder: SubRendererInfo[];
|
856
|
+
/** 获取自定义组件*/
|
857
|
+
readonly customRenderersByOrder: SubRendererInfo[];
|
858
|
+
/** 根据关键字过滤组件 */
|
859
|
+
groupedRenderersByKeyword(_subRenderers: Array<SubRendererInfo>, keywords?: string | undefined): {
|
860
|
+
[propName: string]: SubRendererInfo[];
|
861
|
+
};
|
862
|
+
/** 根据关键字过滤预置组件
|
863
|
+
* 备注:组件搜索中需要
|
864
|
+
*/
|
865
|
+
groupedSubRenderersByKeyword(_subRenderers?: SubRendererInfo[] | undefined, keywords?: string | undefined): {
|
866
|
+
[propName: string]: SubRendererInfo[];
|
867
|
+
};
|
868
|
+
/**
|
869
|
+
* 根据当前分类和关键字获取预置组件
|
870
|
+
* 备注:组件面板展示需要
|
871
|
+
*/
|
843
872
|
readonly groupedSubRenderers: {
|
844
873
|
[propName: string]: SubRendererInfo[];
|
845
874
|
};
|
846
|
-
|
875
|
+
/** 根据关键字过滤自定义组件 */
|
876
|
+
groupedCustomRenderersByKeyword(_subRenderers?: SubRendererInfo[] | undefined, keywords?: string | undefined): {
|
877
|
+
[propName: string]: SubRendererInfo[];
|
878
|
+
};
|
879
|
+
/**
|
880
|
+
* 根据当前分类和关键字获取自定义组件
|
881
|
+
*/
|
882
|
+
readonly groupedCustomRenderers: {
|
883
|
+
[propName: string]: SubRendererInfo[];
|
884
|
+
};
|
885
|
+
getSubRendererById(id: string): any;
|
847
886
|
readonly groupedInsertRenderers: {
|
848
887
|
[propName: string]: SubRendererInfo[];
|
849
888
|
};
|
@@ -861,7 +900,9 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
861
900
|
getIframe(): HTMLIFrameElement | undefined;
|
862
901
|
setIsMobile(value?: boolean | undefined): void;
|
863
902
|
setCtx(value: any): void;
|
903
|
+
setTheme(value: string): void;
|
864
904
|
setIsSubEditor(isSubEditor: boolean): void;
|
905
|
+
setShowCustomRenderersPanel(_showCustomRenderersPanel: boolean): void;
|
865
906
|
setSchema(json: any): void;
|
866
907
|
insertSchema(event: PluginEvent<InsertEventContext>): any;
|
867
908
|
moveSchema(event: PluginEvent<MoveEventContext>): void;
|
@@ -879,10 +920,17 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
879
920
|
setPanels(panels: Array<PanelItem>): void;
|
880
921
|
setSubRenderers(renderers: Array<SubRendererInfo>): void;
|
881
922
|
changeSubRenderersKeywords(keywords: string): void;
|
923
|
+
changeSubRenderersTag(tag: string): void;
|
882
924
|
resetSubRenderersKeywords(): void;
|
925
|
+
changeCustomRenderersKeywords(keywords: string): void;
|
926
|
+
changeCustomRenderersTag(tag: string): void;
|
927
|
+
resetCustomRenderersKeywords(): void;
|
883
928
|
changeSubRendererRegion(region: string): void;
|
884
|
-
changePanelKey(key: string
|
885
|
-
changeLeftPanelKey(key: string
|
929
|
+
changePanelKey(key: string): void;
|
930
|
+
changeLeftPanelKey(key: string): void;
|
931
|
+
changeRenderersTabsKey(key: string): void;
|
932
|
+
changeLeftPanelOpenStatus(isOpenStatus: boolean): void;
|
933
|
+
showRendererPanel(tag?: string | undefined, msg?: string | undefined): void;
|
886
934
|
changeValue(value: Schema, diff?: any): void;
|
887
935
|
changeValueById(id: string, value: Schema, diff?: any, replace?: boolean | undefined, noTrace?: boolean | undefined): void;
|
888
936
|
moveUp(id: string): void;
|
@@ -894,6 +942,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
|
|
894
942
|
replaceChild(id: string, json: any): void;
|
895
943
|
setInsertRegion(region: string, id?: string, tag?: string, mode?: 'insert' | 'replace', originId?: string, beforeId?: string | undefined): void;
|
896
944
|
closeInsertPanel(): void;
|
945
|
+
showInsertRendererPanel(): void;
|
946
|
+
closeInsertRendererPanel(): void;
|
897
947
|
setInsertRenderers(renderers: Array<SubRendererInfo>): void;
|
898
948
|
changeInsertRenderersKeywords(keywords: string): void;
|
899
949
|
resetInsertRenderersKeywords(): void;
|